query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO: Update argument type and name
public void onInsuranceFragmentInteraction(Uri uri, int selectedImageView, Bitmap croppedBitmapImage, String base64Path);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}", "@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }", "@Override\n\tpublic void traverseArg(UniArg node) {\n\t}", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "Object[] getArguments();", "Object[] getArguments();", "String getArguments();", "@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}", "@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }", "ArgList createArgList();", "public Object[] getArguments() { return args;}", "@Override\n public String getInputArg(String argName) {\n Log.w(TAG, \"Test input args is not supported.\");\n return null;\n }", "@Override\n protected String getName() {return _parms.name;}", "private static AbstractType<?>[] argumentsType(@Nullable StringType algorithmArgumentType)\n {\n return algorithmArgumentType == null\n ? DEFAULT_ARGUMENTS\n : new AbstractType<?>[]{ algorithmArgumentType };\n }", "uicargs createuicargs();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}", "public getType_args(getType_args other) {\n }", "Object[] args();", "protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }", "@Test\n void getArgString() {\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "int getArgIndex();", "@Override\n\tpublic void addArg(FormulaElement arg){\n\t}", "public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }", "@Override\n public Object[] getArguments() {\n return null;\n }", "public login_1_argument() {\n }", "Optional<String[]> arguments();", "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "@Override\n\tprotected GATKArgumentCollection getArgumentCollection() {\n\t\treturn argCollection;\n\t}", "protected void sequence_Argument(ISerializationContext context, Argument semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.ARGUMENT__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.ARGUMENT__NAME));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getArgumentAccess().getNameSTRINGTerminalRuleCall_0_0(), semanticObject.getName());\n\t\tfeeder.finish();\n\t}", "void setArguments(String arguments);", "@Override\n\tpublic List<String> getArgumentDesc() {\n\t\treturn desc;\n\t}", "OpFunctionArgAgregate createOpFunctionArgAgregate();", "protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);", "void visitArgument(Argument argument);", "public Thaw_args(Thaw_args other) {\r\n }", "@Override\r\n\tpublic List<String> getArguments()\r\n\t{\n\t\treturn null;\r\n\t}", "private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }", "public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}", "@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }", "public abstract ValidationResults validArguments(String[] arguments);", "public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }", "public String getArgumentString() {\n\t\treturn null;\n\t}", "@Override\n public String kind() {\n return \"@param\";\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }", "void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }", "@Override\n\tprotected byte[] getArgByte() {\n\t\treturn paramsJson.getBytes();\n\t}", "void onArgumentsChanged();", "com.google.protobuf.ByteString\n\t\tgetArgBytes();", "@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }", "MyArg(int value){\n this.value = value;\n }", "public ArgList(Object arg1) {\n super(1);\n addElement(arg1);\n }", "public Clear_args(Clear_args other) {\r\n }", "private ParameterInformation processArgumentReference(Argument argument,\n List<NameDescriptionType> argTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation argumentInfo = null;\n\n // Initialize the argument's attributes\n String argName = argument.getName();\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n BigInteger argBitSize = null;\n String enumeration = null;\n String description = null;\n UnitSet unitSet = null;\n String units = null;\n String minimum = null;\n String maximum = null;\n\n // Step through each command argument type\n for (NameDescriptionType argType : argTypeSet)\n {\n // Check if this is the same command argument referenced in the argument list (by\n // matching the command and argument names between the two)\n if (argument.getArgumentTypeRef().equals(argType.getName()))\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Check if this is an array parameter\n if (seqEntry instanceof ArrayParameterRefEntryType)\n {\n arraySize = \"\";\n\n // Store the reference to the array parameter type\n ArrayDataTypeType arrayType = (ArrayDataTypeType) argType;\n argType = null;\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1)\n + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // The array parameter type references a non-array parameter type that\n // describes the individual array members. Step through each data type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : argTypeSet)\n {\n // Check if the array parameter's array type reference matches the data\n // type name\n if (arrayType.getArrayTypeRef().equals(type.getName()))\n {\n // Store the reference to the array parameter's data type and stop\n // searching\n argType = type;\n break;\n }\n }\n }\n\n // Check if a data type entry for the parameter exists in the parameter type set\n // (note that if the parameter is an array the steps above locate the data type\n // entry for the individual array members)\n if (argType != null)\n {\n long dataTypeBitSize = 0;\n\n // Check if the argument is an integer data type\n if (argType instanceof IntegerArgumentType)\n {\n IntegerArgumentType icmd = (IntegerArgumentType) argType;\n\n // Get the number of bits occupied by the argument\n argBitSize = icmd.getSizeInBits();\n\n // Get the argument units reference\n unitSet = icmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (icmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the argument alarm\n IntegerArgumentType.ValidRangeSet alarmType = icmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<IntegerRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Store the minimum alarm value\n minimum = alarmRange.get(0).getMinInclusive();\n\n // Store the maximum alarm value\n maximum = alarmRange.get(0).getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the argument is a floating point data type\n else if (argType instanceof FloatArgumentType)\n {\n // Get the float argument attributes\n FloatArgumentType fcmd = (FloatArgumentType) argType;\n dataTypeBitSize = fcmd.getSizeInBits().longValue();\n unitSet = fcmd.getUnitSet();\n\n // Get the argument alarm\n FloatArgumentType.ValidRangeSet alarmType = fcmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<FloatRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Get the minimum value\n Double min = alarmRange.get(0).getMinInclusive();\n\n // Check if a minimum value exists\n if (min != null)\n {\n // Get the minimum alarm value\n minimum = String.valueOf(min);\n }\n\n // Get the maximum value\n Double max = alarmRange.get(0).getMaxInclusive();\n\n // Check if a maximum value exists\n if (max != null)\n {\n // Get the maximum alarm value\n maximum = String.valueOf(max);\n }\n }\n }\n\n isFloat = true;\n }\n // Check if the argument is a string data type\n else if (argType instanceof StringDataType)\n {\n // Get the string argument attributes\n StringDataType scmd = (StringDataType) argType;\n dataTypeBitSize = Integer.valueOf(scmd.getStringDataEncoding()\n .getSizeInBits()\n .getFixed()\n .getFixedValue());\n unitSet = scmd.getUnitSet();\n isString = true;\n }\n // Check if the argument is an enumerated data type\n else if (argType instanceof EnumeratedDataType)\n {\n EnumeratedDataType ecmd = (EnumeratedDataType) argType;\n EnumerationList enumList = ecmd.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \", \";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n argBitSize = ecmd.getIntegerDataEncoding().getSizeInBits();\n unitSet = ecmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (ecmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the data type from the data type table that matches the base\n // type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the description exists\n if (argType.getLongDescription() != null)\n {\n // Store the description\n description = argType.getLongDescription();\n }\n\n // Check if the argument bit size exists\n if (argBitSize != null && argBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = argBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null)\n {\n List<UnitType> unitType = unitSet.getUnit();\n\n // Check if the units is set\n if (!unitType.isEmpty())\n {\n // Store the units\n units = unitType.get(0).getContent();\n }\n }\n\n argumentInfo = new ParameterInformation(argName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n 0,\n seqIndex);\n }\n\n break;\n }\n }\n\n return argumentInfo;\n }", "public abstract interface QueryArgs {\n\n /** Return the catalog associated with this object */\n public Catalog getCatalog();\n\n /** Set the value for the ith parameter */\n public void setParamValue(int i, Object value);\n\n /** Set the value for the parameter with the given label */\n public void setParamValue(String label, Object value);\n\n /** Set the min and max values for the parameter with the given label */\n public void setParamValueRange(String label, Object minValue, Object maxValue);\n\n /** Set the int value for the parameter with the given label */\n public void setParamValue(String label, int value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValue(String label, double value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValueRange(String label, double minValue, double maxValue);\n\n /** Set the array of parameter values directly. */\n public void setParamValues(Object[] values);\n\n /** Get the value of the ith parameter */\n public Object getParamValue(int i);\n\n /** Get the value of the named parameter\n *\n * @param label the parameter name or id\n * @return the value of the parameter, or null if not specified\n */\n public Object getParamValue(String label);\n\n /**\n * Get the value of the named parameter as an integer.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public int getParamValueAsInt(String label, int defaultValue);\n\n /**\n * Get the value of the named parameter as a double.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public double getParamValueAsDouble(String label, double defaultValue);\n\n /**\n * Get the value of the named parameter as a String.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public String getParamValueAsString(String label, String defaultValue);\n\n\n /**\n * Return the object id being searched for, or null if none was defined.\n */\n public String getId();\n\n /**\n * Set the object id to search for.\n */\n public void setId(String id);\n\n\n /**\n * Return an object describing the query region (center position and\n * radius range), or null if none was defined.\n */\n public CoordinateRadius getRegion();\n\n /**\n * Set the query region (center position and radius range) for\n * the search.\n */\n public void setRegion(CoordinateRadius region);\n\n\n /**\n * Return an array of SearchCondition objects indicating the\n * values or range of values to search for.\n */\n public SearchCondition[] getConditions();\n\n /** Returns the max number of rows to be returned from a table query */\n public int getMaxRows();\n\n /** Set the max number of rows to be returned from a table query */\n public void setMaxRows(int maxRows);\n\n\n /** Returns the query type (an optional string, which may be interpreted by some catalogs) */\n public String getQueryType();\n\n /** Set the query type (an optional string, which may be interpreted by some catalogs) */\n public void setQueryType(String queryType);\n\n /**\n * Returns a copy of this object\n */\n public QueryArgs copy();\n\n /**\n * Optional: If not null, use this object for displaying the progress of the background query\n */\n public StatusLogger getStatusLogger();\n}", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n\tprotected Collection<ArgumentTypeDescriptor> getArgumentTypeDescriptors() {\n\t\treturn Arrays.asList(new VCFWriterArgumentTypeDescriptor(engine, System.out, bisulfiteArgumentSources), new SAMReaderArgumentTypeDescriptor(engine),\n\t\t\t\tnew SAMFileWriterArgumentTypeDescriptor(engine, System.out), new OutputStreamArgumentTypeDescriptor(engine, System.out));\n\t}", "@Override\n public int getArgent() {\n return _argent;\n }", "private static @NonNull String resolveInputName(@NonNull Argument<?> argument) {\n String inputName = argument.getAnnotationMetadata().stringValue(Bindable.NAME).orElse(null);\n if (StringUtils.isEmpty(inputName)) {\n inputName = argument.getName();\n }\n return inputName;\n }", "private Object[] getArguments (String className, Object field)\n\t{\n\t\treturn ((field == null) ? new Object[]{className} : \n\t\t\tnew Object[]{className, field});\n\t}", "PermissionSerializer (GetArg arg) throws IOException, ClassNotFoundException {\n\tthis( \n\t create(\n\t\targ.get(\"targetType\", null, Class.class),\n\t\targ.get(\"type\", null, String.class),\n\t\targ.get(\"targetName\", null, String.class),\n\t\targ.get(\"targetActions\", null, String.class) \n\t )\n\t);\n }", "public Type getArgumentDirection() {\n return direction;\n }", "public String argTypes() {\n return \"I\";//NOI18N\n }", "public static void main(String arg[]) {\n\n }", "godot.wire.Wire.Value getArgs(int index);", "@Override\n protected String[] getArguments() {\n String[] args = new String[1];\n args[0] = _game_file_name;\n return args;\n }", "public void setArgs(java.lang.String value) {\n this.args = value;\n }", "private Argument(Builder builder) {\n super(builder);\n }", "@Override\n public void execute(String[] args) {\n\n }", "@Override\n\tprotected final void setFromArgument(CommandContext<ServerCommandSource> context, String name) {\n\t}", "UUID createArgument(ArgumentCreateRequest request);", "@Override\n public void initialise(String[] arguments) {\n\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "protected abstract void parseArgs() throws IOException;" ]
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.59906125", "0.59906125", "0.5984017", "0.59791875", "0.5977681", "0.59532714", "0.5946838", "0.59457266", "0.59452903", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.5909717", "0.5889277", "0.588111", "0.5871162", "0.5866624", "0.58613646", "0.58519953", "0.58381283", "0.58083445", "0.58059824", "0.5795826", "0.57816726", "0.57670826", "0.57556796", "0.57471323", "0.57418406", "0.5729463", "0.57291526", "0.5716928", "0.5713024", "0.56974274", "0.56782854", "0.56723106", "0.5664594", "0.5664104", "0.5660337", "0.5652865", "0.5647883", "0.5642134", "0.5635645", "0.5634968", "0.562251", "0.56210977", "0.56167537", "0.56138444", "0.56044126", "0.56044126", "0.5602371", "0.56012225", "0.55986875", "0.55893147", "0.5588273", "0.5583255", "0.5582767", "0.55681497", "0.55626017", "0.55577534", "0.55524325", "0.5549442", "0.55378276", "0.5536797", "0.5527675", "0.5511817", "0.55099154", "0.550257" ]
0.0
-1
Describe the columns you'd like to have returned. Selecting from the Thumbnails location gives you both the Thumbnail Image ID, as well as the original image ID
public Uri getImageFromCamera() { String[] projection = { MediaStore.Images.Thumbnails._ID, // The columns we want MediaStore.Images.Thumbnails.IMAGE_ID, MediaStore.Images.Thumbnails.KIND, MediaStore.Images.Thumbnails.DATA}; String selection = MediaStore.Images.Thumbnails.KIND + "=" + // Select only mini's MediaStore.Images.Thumbnails.MINI_KIND; String sort = MediaStore.Images.Thumbnails._ID + " DESC"; //At the moment, this is a bit of a hack, as I'm returning ALL images, and just taking the latest one. There is a better way to narrow this down I think with a WHERE clause which is currently the selection variable Cursor myCursor = getActivity().managedQuery(MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI, projection, selection, null, sort); long imageId = 0l; long thumbnailImageId = 0l; String thumbnailPath = ""; try { myCursor.moveToFirst(); imageId = myCursor.getLong(myCursor.getColumnIndexOrThrow(MediaStore.Images.Thumbnails.IMAGE_ID)); thumbnailImageId = myCursor.getLong(myCursor.getColumnIndexOrThrow(MediaStore.Images.Thumbnails._ID)); thumbnailPath = myCursor.getString(myCursor.getColumnIndexOrThrow(MediaStore.Images.Thumbnails.DATA)); } finally { myCursor.close(); } //Create new Cursor to obtain the file Path for the large image String[] largeFileProjection = { MediaStore.Images.ImageColumns._ID, MediaStore.Images.ImageColumns.DATA }; String largeFileSort = MediaStore.Images.ImageColumns._ID + " DESC"; myCursor = getActivity().managedQuery(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, largeFileProjection, null, null, largeFileSort); String largeImagePath = ""; try { myCursor.moveToFirst(); //This will actually give yo uthe file path location of the image. largeImagePath = myCursor.getString(myCursor.getColumnIndexOrThrow(MediaStore.Images.ImageColumns.DATA)); } finally { myCursor.close(); } // These are the two URI's you'll be interested in. They give you a handle to the actual images Uri uriLargeImage = Uri.withAppendedPath(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, String.valueOf(imageId)); Uri uriThumbnailImage = Uri.withAppendedPath(MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI, String.valueOf(thumbnailImageId)); // I've left out the remaining code, as all I do is assign the URI's to my own objects anyways... return uriLargeImage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Image getColumnImage(Object arg0, int arg1) {\n\t\t\t\treturn null;\r\n\t\t\t\t\r\n\t\t\t}", "public static String[] detailsColumnProjection() {\n\n\t\treturn new String[]{KEY_ID, KEY_ADDRESS, KEY_NAME, KEY_VOLUME};\n\t}", "public Image getColumnImage(Object arg0, int arg1) {\n\t\t\treturn null;\r\n\t\t}", "public void dumpImageMetaData(Uri uri) {\n // BEGIN_INCLUDE (dump_metadata)\n\n // The query, since it only applies to a single document, will only return one row.\n // no need to filter, sort, or select fields, since we want all fields for one\n // document.\n Cursor cursor = getActivity().getContentResolver()\n .query(uri, null, null, null, null, null);\n\n try {\n // moveToFirst() returns false if the cursor has 0 rows. Very handy for\n // \"if there's anything to look at, look at it\" conditionals.\n if (cursor != null && cursor.moveToFirst()) {\n\n // Note it's called \"Display Name\". This is provider-specific, and\n // might not necessarily be the file name.\n String displayName = cursor.getString(\n cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));\n //Toast.makeText(getActivity(),\"Display Name: \"+ displayName, Toast.LENGTH_SHORT).show();\n imageInfo += \"Name:\" + displayName;\n int sizeIndex = cursor.getColumnIndex(OpenableColumns.SIZE);\n // If the size is unknown, the value stored is null. But since an int can't be\n // null in java, the behavior is implementation-specific, which is just a fancy\n // term for \"unpredictable\". So as a rule, check if it's null before assigning\n // to an int. This will happen often: The storage API allows for remote\n // files, whose size might not be locally known.\n String size = null;\n if (!cursor.isNull(sizeIndex)) {\n // Technically the column stores an int, but cursor.getString will do the\n // conversion automatically.\n size = cursor.getString(sizeIndex);\n } else {\n size = \"Unknown\";\n }\n imageInfo += \"Size: \" + size;\n //Toast.makeText(getActivity(),\"Size: \"+size,Toast.LENGTH_SHORT).show();\n }\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n // END_INCLUDE (dump_metadata)\n }", "public String getThumbnail();", "@Override\n public Image getColumnImage(Object element, int columnIndex) {\n return null;\n }", "@Override\r\n\t@RequestMapping(\"\")\r\n\tpublic String index(HttpServletRequest request, ModelMap map) {\r\n\t\treturn getViewName(\"ftls/imagesColumn/index\");\r\n\t}", "public abstract List<ColumnSpecification> metadata();", "public static void printColumnDetails(ColumnMetadata columns)\n {\n writeMessage(\"**** COLUMN:\");\n writeMessage(\" TABLE_CAT: \" + columns.getTableCat());\n writeMessage(\" TABLE_SCHEM: \"\n + columns.getTableSchema());\n writeMessage(\" TABLE_NAME: \" + columns.getTableName());\n writeMessage(\" COLUMN_NAME: \"\n + columns.getColumnName());\n writeMessage(\" DATA_TYPE: \" + columns.getDataType());\n writeMessage(\" TYPE_NAME: \" + columns.getTypeName());\n writeMessage(\" COLUMN_SIZE: \" + columns.getColumnSize());\n writeMessage(\" BUFFER_LENGTH: \"\n + columns.getBufferLength());\n writeMessage(\" DECIMAL_DIGITS: \"\n + columns.getDecimalDigits());\n writeMessage(\" NUM_PREC_RADIX: \"\n + columns.getNumPrecRadix() );\n writeMessage(\" NULLABLE: \" + columns.getNullable());\n writeMessage(\" REMARKS: \" + columns.getRemarks());\n writeMessage(\" COLUMN_DEF: \" + columns.getColumnDefault());\n writeMessage(\" SQL_DATA_TYPE: \"\n + columns.getSqlDataType());\n writeMessage(\" SQL_DATETIME_SUB: \"\n + columns.getSqlDateTimeSub());\n writeMessage(\" CHAR_OCTET_LENGTH: \"\n + columns.getCharOctetLength());\n writeMessage(\" ORDINAL_POSITION: \"\n + columns.getOrdinalPosition());\n writeMessage(\" IS_NULLABLE: \"\n + columns.getIsNullable());\n /*\n writeMessage(\" SCOPE_CATALOG: \"\n + columns.getString(\"SCOPE_CATALOG\"));\n writeMessage(\" SCOPE_SCHEMA: \"\n + columns.getString(\"SCOPE_SCHEMA\"));\n writeMessage(\" SCOPE_TABLE: \"\n + columns.getString(\"SCOPE_TABLE\"));\n writeMessage(\" SOURCE_DATA_TYPE: \"\n + columns.getString(\"SOURCE_DATA_TYPE\"));\n */\n writeMessage(\" IS_AUTOINCREMENT: \"\n + columns.getIsAutoIncrement());\n }", "public Properties getImageMetaData() {\n\t\treturn null;\n\t}", "@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }", "public ObjectProperty<ImageData> thumbnailSelectedProperty(){\n return THUMBNAIL_SELECTED_EVENT;\n }", "@Override\r\n\tpublic Image getColumnImage(Object element, int columnIndex) {\n\t\treturn null;\r\n\t}", "private void defineColumn_Dimension() {\r\n\r\n\t\tfinal ColumnDefinition colDef = TableColumnFactory.PHOTO_FILE_DIMENSION.createColumn(_columnManager, _pc);\r\n\r\n\t\tcolDef.setIsDefaultColumn();\r\n\t\tcolDef.setLabelProvider(new CellLabelProvider() {\r\n\t\t\t@Override\r\n\t\t\tpublic void update(final ViewerCell cell) {\r\n\r\n\t\t\t\tfinal Photo photo = (Photo) cell.getElement();\r\n\r\n\t\t\t\tcell.setText(photo.getDimensionText());\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\r\n public Image getColumnImage(Object element, int columnIndex) {\r\n return null;\r\n }", "@Override\r\n public Image getColumnImage(Object element, int columnIndex) {\r\n return null;\r\n }", "@Override\r\n public Image getColumnImage(Object element, int columnIndex) {\r\n return null;\r\n }", "public List<HashMap<String, Object>> imgListSel() {\n\t\treturn sql.selectList(\"imageMapper.imgListSel\", null);\n\t}", "@Override\n\tpublic Image getColumnImage(Object element, int columnIndex) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Image getColumnImage(Object element, int columnIndex) {\n\t\treturn null;\n\t}", "public String getDisplayColumns() {\n return query.getDisplayColumns();\n }", "public static String getDataColumn(Context context, Uri uri,\r\n String selection, String[] selectionArgs) {\r\n Cursor cursor = null;\r\n final String column = MediaStore.Images.ImageColumns.DATA;\r\n final String[] projection = {column};\r\n try {\r\n cursor = context.getContentResolver().query(uri, projection, selection,\r\n selectionArgs, null);\r\n if (cursor != null && cursor.moveToFirst()) {\r\n final int column_index = cursor.getColumnIndexOrThrow(column);\r\n return cursor.getString(column_index);\r\n }\r\n } finally {\r\n if (cursor != null)\r\n cursor.close();\r\n }\r\n return null;\r\n }", "public List<CameraRecord> loadThumbnail();", "public Map<String, ColumnMetaData> getColumns();", "PicInfo selectByPrimaryKey(Integer r_p_i);", "SysPic selectByPrimaryKey(Integer id);", "public List<Object[]> select() {\n return selectColumns(metadata.getColumns());\n }", "public Image getColumnImage(Object element, int columnIndex) {\n \t\t\t\treturn null;\n \t\t\t}", "private List<PgColumn> getColumnsWithStatistics() {\n final List<PgColumn> list = new ArrayList<PgColumn>();\n \n for (PgColumn column : columns) {\n if (column.getStatistics() != null) {\n list.add(column);\n }\n }\n \n return list;\n }", "EnterprisePicture selectByPrimaryKey(Integer id);", "public ColumnInfo[] getColumnInfos() {\n return new ColumnInfo[] {\n new NameInfo(),\n new TypeInfo(),\n new CoverInfo(),\n new LocationInfo()\n };\n }", "@Override\n\tpublic Map<String, String[]> loadColumnMetas(String databaseName) throws SQLException {\n\t\tString sql=\"select utc.*,UCC.comments from user_tab_columns utc\\n\" + \n\t\t\t\t\"left join user_col_comments ucc on UCC.table_name=UTC.table_name and UCC.column_name=UTC.column_name\";\n\t\tMap<String, String[]> ret=new HashMap<>();\n\t\t try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\t\twhile(resultSet.next()) {\n\t\t\t\tString tableName=resultSet.getString(\"TABLE_NAME\")\n\t\t\t\t\t\t,columnName=resultSet.getString(\"COLUMN_NAME\")\n\t\t\t\t\t\t,dataLength=resultSet.getString(\"DATA_LENGTH\")\n\t\t ,nullable=resultSet.getString(\"NULLABLE\")\n\t\t ,comments=resultSet.getString(\"COMMENTS\")\n\t\t\t\t\t\t;\n\t\t\t\tString key=tableName+\":\"+columnName;\n\t\t\t\tret.put(key, new String[] {dataLength,nullable,comments});\n\t\t\t\t\n\t\t\t}\n\t }\n\t\t\n\t\treturn ret;\n\t}", "@Override\n public List<String> getColumnLabels() {\n return columns;\n }", "private List<StageColumn> getStageColumnDetailsForLinks(String usingType, String jobRid) throws IGCException {\n final String methodName = \"getStageColumnDetailsForLinks\";\n IGCSearch igcSearch = new IGCSearch(usingType);\n igcSearch.addProperties(DataStageConstants.getStageColumnSearchProperties());\n IGCSearchCondition condition = new IGCSearchCondition(\"link.job_or_container\", \"=\", jobRid);\n IGCSearchConditionSet conditionSet = new IGCSearchConditionSet(condition);\n igcSearch.addConditions(conditionSet);\n ItemList<StageColumn> stageCols = igcRestClient.search(igcSearch);\n if (stageCols.getPaging().getNumTotal() > 0) {\n return igcRestClient.getAllPages(null, stageCols);\n }\n return null;\n }", "public String getThumbnail() {\r\n return thumbnail;\r\n }", "public String getThumbnailUUID() {\n\t\treturn this.thumbnailUUID;\n\t}", "@Override\r\n public Image getColumnImage(Object element, int columnIndex) {\r\n\r\n Model item = (Model) element;\r\n\r\n if (columnIndex == 0) {\r\n int itemId = item.getId();\r\n\r\n if (itemId == 1 || itemId == 7 || itemId == 13 || itemId == 19) {\r\n return testImage;\r\n }\r\n else if (itemId == 3 || itemId == 9 || itemId == 15) {\r\n return test2Image;\r\n }\r\n else if (itemId == 5 || itemId == 11 || itemId == 17) {\r\n return test3Image;\r\n }\r\n }\r\n\r\n return null;\r\n }", "public Image getColumnImage (Object element, int columnIndex) {\n\t\t\treturn null;\n\t\t}", "public Collection<TapColumn> findAllColumns();", "public List<Column> getColumns();", "@JsonIgnore\n public Map<String, ColumnSchema> getColumnsById() {\n return columnsById;\n }", "List<String> getColumns();", "public List getColumns() {\r\n return columns;\r\n }", "public Image getColumnImage(Object element, int columnIndex) {\n\t\tif (element instanceof TreeNode) {\n\t\t\tTreeNode node = (TreeNode) element;\n\t\t\tImage image = null;\n\t\t\tImageManager manager = ImageManager.getInstance();\n\t\t\tif(columnIndex == 0) {\n\t\t\t\tswitch (node.getType()) {\n\t\t\t\tcase IViewConstant.TYPE_COLUMNS_FOLDER:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_TREE_FOLDER);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_CONSTRAINT_FOLDER:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_TREE_FOLDER);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_COLUMNS_NODE:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_MODEL_TYPE_PROPERTY);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_DATASOURCE:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_DATASOURCE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_PRIMARY_KEY:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_PROPERTY_PRIMARYKEY);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_REFERENCE_KEY:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_REFERENCE_KEY);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_REPOSITORY:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_REPOSITORY);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_SCHEMAS:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_TREE_FOLDER);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_TABLE_FOLDER:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_TREE_FOLDER);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_USER:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_USER);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_VIEWS_FOLDER:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_TREE_FOLDER);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_VIEWS_NODE:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_VIEW);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_SEQUENCES_FOLDER:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_TREE_FOLDER);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_SEQUENCES_NODE:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_SEQUENCES);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_TABLE_NODE:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_TABLE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_PROJECTS:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_PROJECTS);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_DIRECTORY:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_TREE_FOLDER);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_OM_FILE:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_OM);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_BUSINESSCLASS:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_MODEL_TYPE_BUSINESSCLASS);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_PROPERTY_NODE:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_MODEL_TYPE_OPERATION);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_PACKAGE:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_PACKAGE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_PRIMARY_COLUMN:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_PROPERTY_PRIMARYKEY);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_REFERENCE_COLUMN:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_REFERENCE_KEY);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_PRIMARY_PROPERTY:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_PROPERTY_PRIMARYKEY);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_RELATION:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_MODEL_TYPE_ASSOCIATION_ONE2MULT);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_BUSINESSCLASS_ERROR:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_BUSINESSCLASS_ERROR);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_OPERATION_ERROR:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_OPERATION_ERROR);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_PRIMARYKEY_ERROR:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_PRIMARYKEY_ERROR);\n\t\t\t\t\tbreak;\n\t\t\t\tcase IViewConstant.TYPE_BUSINESSCLASS_CONFLICT:\n\t\t\t\t\timage = manager.getImage(ImageKeys.IMG_BUSINESSCLASS_CONFLICT);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn image;\n\t\t}\n\t\treturn null;\n\t}", "private void addColumnDetails()\n {\n Vector cols = m_recProf.getColumnProfiles();\n for (int i = 0 ; i < cols.size() ; i++)\n {\n ColumnProfile c = (ColumnProfile)cols.elementAt(i);\n addColumnDetail(c, i);\n }\n }", "public static String[] columnProjection() {\n\n\t\treturn new String[]{KEY_ID, KEY_ADDRESS, KEY_NAME, KEY_VOLUME, KEY_POOL_LOCALE, KEY_FINISH, KEY_SANITIZER, KEY_PUMP_BRAND, KEY_PUMP_MODEL, KEY_FILTER, KEY_CLEANER_BRAND, KEY_CLEANER_MODEL, KEY_TRAFFIC, KEY_MIN_DEPTH, KEY_MAX_DEPTH, KEY_TILING, KEY_COVER, KEY_ATTACHED_SPA, KEY_HEATER, KEY_DIVING_BOARD, KEY_SLIDE, KEY_LADDER, KEY_FOUNTAINS, KEY_ROCK_WATERFALL, KEY_LIGHTS, KEY_INFINITY, KEY_SPORTING_EQUIPMENT, KEY_BEACH_ENTRY, KEY_SAND, KEY_IMAGE, KEY_WEATHER_NOTIFICATIONS, KEY_WATER_TEST_REMINDERS, KEY_FILTER_REMINDERS, KEY_SAFETY_NOTIFICATIONS, KEY_MAINTENANCE_REMINDERS, KEY_CUSTOM_NOTIFICATIONS, KEY_COUPON_NOTIFICATIONS};\n\t}", "private String _columnInfo(int i, DBField f, boolean isDefined)\n {\n String ndx = StringTools.format(i,\"00\");\n String name = StringTools.leftAlign(f.getName(),22);\n String desc = isDefined? (\": \" + f.getTitle(null)) : \"\";\n String type = f.getSqlType();\n if (f.isPrimaryKey()) { type += \" key\"; }\n if (f.isAlternateKey()) { type += \" altkey\"; }\n if (f.isAutoIncrement()) { type += \" auto\"; }\n if (f.isUTF8()) { type += \" utf8\"; }\n type = StringTools.leftAlign(type, 32);\n return ndx + \") \" + name + \" \" + type + desc;\n }", "public List<ImageInformation> imageInformation() {\n return this.innerProperties() == null ? null : this.innerProperties().imageInformation();\n }", "private void showImageDetail() {\n }", "public ImageObject thumbnail() {\n return this.thumbnail;\n }", "private void getStageColumnDetailsForLinks() throws IGCException {\n String jobRid = job.getId();\n log.debug(\"Retrieving stage column details for job: {}\", jobRid);\n List<StageColumn> stageCols = getStageColumnDetailsForLinks(\"stage_column\", jobRid);\n if (stageCols == null) {\n log.info(\"Unable to identify stage columns for job by 'stage_column', reverting to 'ds_stage_column'.\");\n stageCols = getStageColumnDetailsForLinks(\"ds_stage_column\", jobRid);\n }\n if (stageCols != null) {\n buildMap(columnMap, stageCols);\n } else if (type.equals(JobType.JOB)) {\n // Only warn about finding no columns if this is a Job (Sequences in general will not have stage columns)\n log.warn(\"Unable to identify any stage columns for job: {}\", jobRid);\n }\n }", "public Column[] getColumns() {return columns;}", "private void defineColumn_ExifTime() {\r\n\r\n\t\tfinal ColumnDefinition colDef = TableColumnFactory.PHOTO_FILE_TIME.createColumn(_columnManager, _pc);\r\n\t\tcolDef.setLabelProvider(new CellLabelProvider() {\r\n\t\t\t@Override\r\n\t\t\tpublic void update(final ViewerCell cell) {\r\n\r\n\t\t\t\tfinal Photo photo = (Photo) cell.getElement();\r\n\r\n\t\t\t\tcell.setText(_timeFormatter.print(photo.imageExifTime));\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public String getThumbnail() {\r\n\t\treturn thumbnail;\r\n\t}", "Bitmap getThumbnail() {\n\t\treturn this.mThumbnail;\n\t}", "public String getThumbnailUrl();", "public ResultViewerColumnInfo getColumnInfo(int index) throws IndexOutOfBoundsException {\n\t\treturn (ResultViewerColumnInfo)columns.get(index);\n\t}", "public int getColumns() {\n return this.columns;\n }", "private List<String> getAllShownImagesPath(Activity context) {\n String[] columns = {MediaStore.Images.Media.DATA, MediaStore.Images.Media.DATE_ADDED};\n\n Cursor cursor = context.getContentResolver().query(\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI, // Specify the provider\n columns, // The columns we're interested in m\n MediaStore.Images.ImageColumns.BUCKET_DISPLAY_NAME + \" = \" + \"'Camera'\", // A WHERE-filter query\n null, // The arguments for the filter-query\n MediaStore.Images.Media.DATE_ADDED + \" DESC\" // Order the results, newest first\n );\n //\n\n List<String> result = new ArrayList<String>(cursor.getCount());\n\n if (cursor.moveToFirst()) {\n final int image_path_col = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n do {\n result.add(cursor.getString(image_path_col));\n } while (cursor.moveToNext());\n }\n cursor.close();\n\n\n return result;\n\n }", "Column[] getColumns() { return columns; }", "ImmutableList<SchemaOrgType> getThumbnailUrlList();", "public interface ImageMetadata extends Named, HasMetaTable {\n\n\t/** Sets width (in pixels) of thumbnail planes in this image. */\n\tvoid setThumbSizeX(long thumbSizeX);\n\n\t/** Sets height (in pixels) of thumbnail planes in this image. */\n\tvoid setThumbSizeY(long thumbSizeY);\n\n\t/**\n\t * Sets the data type associated with a pixel. Valid pixel type constants\n\t * (e.g., {@link FormatTools#INT8}) are enumerated in {@link FormatTools}.\n\t */\n\tvoid setPixelType(int pixelType);\n\n\t/** Sets the number of valid bits per pixel. */\n\tvoid setBitsPerPixel(int bitsPerPixel);\n\n\t/**\n\t * Sets whether or not we are confident that the dimension order is correct.\n\t */\n\tvoid setOrderCertain(boolean orderCertain);\n\n\t/** Sets whether or not each pixel's bytes are in little endian order. */\n\tvoid setLittleEndian(boolean littleEndian);\n\n\t/**\n\t * Sets whether or not the planes are stored as indexed color. An indexed\n\t * color image treats each pixel value as an index into a color table\n\t * containing one or more (typically 3) actual values for the pixel.\n\t */\n\tvoid setIndexed(boolean indexed);\n\n\t/**\n\t * Sets the number of planar axes in this image. This value represents the\n\t * number of dimensional axes constituting each {@link Plane} (as returned by\n\t * the {@link Reader#openPlane} methods). This value is necessary to determine\n\t * the total plane count for an N-dimensional image, as well as how many\n\t * pixels there are per plane.\n\t * <p>\n\t * For example, suppose we have a 4-dimensional image with axes (X, Y, Z, T)\n\t * and extents (768, 512, 7, 13). If there are two planar axes, then each\n\t * plane is 768 x 512 and there are 7 x 13 = 91 total planes. But if we have\n\t * three planar axes, then each plane is 768 x 512 x 7 and there are 13 total\n\t * planes.\n\t * </p>\n\t *\n\t * @see Reader#openPlane(int, long)\n\t */\n\tvoid setPlanarAxisCount(final int count);\n\n\t/**\n\t * Sets the number of interleaved axes in this image. This must be a value\n\t * between [0, planarAxisCount). Interleaved axes are planar axes that do not\n\t * constitute the \"canonical\" axes - e.g., in a CXY image with an interleaved\n\t * axis count of 1, the C axis is interleaved, and each plane is an XY plane\n\t * with C different representations.\n\t */\n\tvoid setInterleavedAxisCount(final int count);\n\n\t/** Sets whether or not we can ignore the color map (if present). */\n\tvoid setFalseColor(boolean falseColor);\n\n\t/**\n\t * Sets whether or not we are confident that all of the metadata stored within\n\t * the image has been parsed.\n\t */\n\tvoid setMetadataComplete(boolean metadataComplete);\n\n\t/**\n\t * Sets whether or not this image is a lower-resolution copy of another image.\n\t */\n\tvoid setThumbnail(boolean thumbnail);\n\n\t/**\n\t * Convenience method to set both the axis types and lengths for this\n\t * ImageMetadata.\n\t */\n\tvoid setAxes(CalibratedAxis[] axes, long[] axisLengths);\n\n\t/**\n\t * Sets the Axes types for this image. Order is implied by ordering within\n\t * this array\n\t */\n\tvoid setAxisTypes(AxisType... axisTypes);\n\n\t/**\n\t * Sets the Axes types for this image. Order is implied by ordering within\n\t * this array\n\t */\n\tvoid setAxes(CalibratedAxis... axes);\n\n\t/**\n\t * Sets the lengths of each axis. Order is parallel of {@code axes}.\n\t * <p>\n\t * NB: axes must already exist for this method to be called. Use\n\t * {@link #setAxes(CalibratedAxis[])} or {@link #setAxes}\n\t */\n\tvoid setAxisLengths(long[] axisLengths);\n\n\t/**\n\t * Sets the length for the specified axis. Adds the axis if if its type is not\n\t * already present in the image.\n\t */\n\tvoid setAxisLength(CalibratedAxis axis, long length);\n\n\t/**\n\t * As {@link #setAxisLength(CalibratedAxis, long)} but requires only the\n\t * AxisType.\n\t */\n\tvoid setAxisLength(AxisType axis, long length);\n\n\t/**\n\t * Sets the axis at the specified index, if an axis with a matching type is\n\t * not already defined. Otherwise the axes are re-ordered, per\n\t * {@link java.util.List#add(int, Object)}.\n\t */\n\tvoid setAxis(int index, CalibratedAxis axis);\n\n\t/**\n\t * As {@link #setAxis(int, CalibratedAxis)} but using the default calibration\n\t * values, per {@link FormatTools#createAxis(AxisType)}.\n\t */\n\tvoid setAxisType(int index, AxisType axis);\n\n\t// TODO: Consider typing rois and tables on more specific data structures.\n\n\t/** Sets the ROIs associated with this image. */\n\tvoid setROIs(Object rois);\n\n\t/** Sets the tables associated with this image. */\n\tvoid setTables(Object tables);\n\n\t/** Returns the size, in bytes, of all planes in this image. */\n\tlong getSize();\n\n\t/** Returns the size, in bytes, of one plane in this image. */\n\tlong getPlaneSize();\n\n\t/** Returns the width (in pixels) of the thumbnail planes in this image. */\n\tlong getThumbSizeX();\n\n\t/** Returns the height (in pixels) of the thumbnail planes in this image. */\n\tlong getThumbSizeY();\n\n\t/**\n\t * Returns the CalibratedAxis associated with the given type. Useful to\n\t * retrieve calibration information.\n\t */\n\tCalibratedAxis getAxis(AxisType axisType);\n\n\t/**\n\t * Returns the data type associated with a pixel. Valid pixel type constants\n\t * (e.g., {@link FormatTools#INT8}) are enumerated in {@link FormatTools}.\n\t */\n\tint getPixelType();\n\n\t/** Returns the number of valid bits per pixel. */\n\tint getBitsPerPixel();\n\n\t/**\n\t * Returns true if we are confident that the dimension order is correct.\n\t */\n\tboolean isOrderCertain();\n\n\t/** Returns true if each pixel's bytes are in little endian order. */\n\tboolean isLittleEndian();\n\n\t/** Returns true if the planes are stored as indexed color. */\n\tboolean isIndexed();\n\n\t/** Returns the number of planar axes in this image. */\n\tint getPlanarAxisCount();\n\n\t/**\n\t * Returns the number of interleaved axes in this image.\n\t */\n\tint getInterleavedAxisCount();\n\n\t/** Returns true if the {@link Axes#CHANNEL} axis is a planar axis. */\n\tboolean isMultichannel();\n\n\t/** Returns true if we can ignore the color map (if present). */\n\tboolean isFalseColor();\n\n\t/**\n\t * Returns true if we are confident that all of the metadata stored within the\n\t * image has been parsed.\n\t */\n\tboolean isMetadataComplete();\n\n\t/**\n\t * Determines whether or not this image is a lower-resolution copy of another\n\t * image.\n\t *\n\t * @return true if this image is a thumbnail\n\t */\n\tboolean isThumbnail();\n\n\t/**\n\t * Gets the axis of the (zero-indexed) specified plane.\n\t *\n\t * @param axisIndex - index of the desired axis within this image\n\t * @return Type of the desired plane.\n\t */\n\tCalibratedAxis getAxis(final int axisIndex);\n\n\t/**\n\t * Gets the length of the (zero-indexed) specified plane.\n\t *\n\t * @param axisIndex - index of the desired axis within this image\n\t * @return Length of the desired axis, or 1 if the axis is not found.\n\t */\n\tlong getAxisLength(final int axisIndex);\n\n\t/**\n\t * A convenience method for looking up the length of an axis based on its\n\t * type. No knowledge of plane ordering is necessary.\n\t *\n\t * @param t - CalibratedAxis to look up\n\t * @return Length of axis t, or 1 if the axis is not found.\n\t */\n\tlong getAxisLength(final CalibratedAxis t);\n\n\t/**\n\t * As {@link #getAxisLength(CalibratedAxis)} but only requires the\n\t * {@link AxisType} of the desired axis.\n\t *\n\t * @param t - CalibratedAxis to look up\n\t * @return Length of axis t, or 1 if the axis is not found.\n\t */\n\tlong getAxisLength(final AxisType t);\n\n\t/**\n\t * Returns the array index for the specified CalibratedAxis. This index can be\n\t * used in other Axes methods for looking up lengths, etc...\n\t * <p>\n\t * This method can also be used as an existence check for the target\n\t * CalibratedAxis.\n\t * </p>\n\t *\n\t * @param axis - axis to look up\n\t * @return The index of the desired axis or -1 if not found.\n\t */\n\tint getAxisIndex(final CalibratedAxis axis);\n\n\t/**\n\t * As {@link #getAxisIndex(CalibratedAxis)} but only requires the\n\t * {@link AxisType} of the desired axis.\n\t *\n\t * @param axisType - axis type to look up\n\t * @return The index of the desired axis or -1 if not found.\n\t */\n\tint getAxisIndex(final AxisType axisType);\n\n\t/**\n\t * Returns an array of the types for axes associated with the specified image\n\t * index. Order is consistent with the axis length (int) array returned by\n\t * {@link #getAxesLengths()}.\n\t * <p>\n\t * CalibratedAxis order is sorted and represents order within the image.\n\t * </p>\n\t *\n\t * @return List of CalibratedAxes. Ordering in the list indicates the axis\n\t * order in the image.\n\t */\n\tList<CalibratedAxis> getAxes();\n\n\t/**\n\t * Returns an array of the CalibratedAxis that, together, define the bounds of a\n\t * single plane in the dataset.\n\t *\n\t * @return List of CalibratedAxes. Ordering in the list indicates the axis\n\t * order in the image.\n\t */\n\tList<CalibratedAxis> getAxesPlanar();\n\n\t/**\n\t * Returns an array of the CalibratedAxis that define the number of planes in the\n\t * dataset.\n\t *\n\t * @return List of CalibratedAxes. Ordering in the list indicates the axis\n\t * order in the image.\n\t */\n\tList<CalibratedAxis> getAxesNonPlanar();\n\n\t/**\n\t * @return the number of planes in this image\n\t */\n\tlong getPlaneCount();\n\n\t/**\n\t * Returns an array of the lengths for axes associated with the specified\n\t * image index.\n\t * <p>\n\t * Ordering is consistent with the CalibratedAxis array returned by\n\t * {@link #getAxes()}.\n\t * </p>\n\t *\n\t * @return Sorted axis length array\n\t */\n\tlong[] getAxesLengths();\n\n\t/**\n\t * Returns an array of the lengths for axes in the provided CalibratedAxis list.\n\t * <p>\n\t * Ordering of the lengths is consistent with the provided ordering.\n\t * </p>\n\t *\n\t * @return Sorted axis length array\n\t */\n\tlong[] getAxesLengths(final List<CalibratedAxis> axes);\n\n\t/**\n\t * Returns an array of the lengths for the planar axes in this image.\n\t *\n\t * @return Sorted axis length array\n\t */\n\tlong[] getAxesLengthsPlanar();\n\n\t/**\n\t * Returns an array of the lengths for the non-planar axes in this image.\n\t *\n\t * @return Sorted axis length array\n\t */\n\tlong[] getAxesLengthsNonPlanar();\n\n\t// TODO: Consider typing rois and tables on more specific data structures.\n\n\t/** Retrieves the ROIs associated with this image. */\n\tObject getROIs();\n\n\t/** Retrieves the tables associated with this image. */\n\tObject getTables();\n\n\t/**\n\t * Appends the provided {@link CalibratedAxis} to the metadata's list of axes,\n\t * with a length of 1.\n\t *\n\t * @param axis - The new axis\n\t */\n\tvoid addAxis(final CalibratedAxis axis);\n\n\t/**\n\t * Appends the provided CalibratedAxis to the current CalibratedAxis array and\n\t * creates a corresponding entry with the specified value in axis lengths.\n\t *\n\t * @param axis - The new axis\n\t * @param value - length of the new axis\n\t */\n\tvoid addAxis(final CalibratedAxis axis, final long value);\n\n\t/**\n\t * As {@link #addAxis(CalibratedAxis, long)} using the default calibration\n\t * value, per {@link FormatTools#createAxis(AxisType)}.\n\t */\n\tvoid addAxis(final AxisType axisType, final long value);\n\n\t/**\n\t * @return A new copy of this ImageMetadata.\n\t */\n\tImageMetadata copy();\n\n\t/**\n\t * Populates this ImageMetadata using the provided instance.\n\t *\n\t * @param toCopy - ImageMetadata to copy\n\t */\n\tvoid copy(ImageMetadata toCopy);\n\n\t/**\n\t * As\n\t * {@link #populate(String, List, long[], int, boolean, boolean, boolean, boolean, boolean)}\n\t * but automatically determines bits per pixel.\n\t */\n\tvoid populate(String name, List<CalibratedAxis> axes, long[] lengths,\n\t\tint pixelType, boolean orderCertain, boolean littleEndian, boolean indexed,\n\t\tboolean falseColor, boolean metadataComplete);\n\n\t/**\n\t * Convenience method for manually populating an ImageMetadata.\n\t */\n\tvoid populate(String name, List<CalibratedAxis> axes, long[] lengths,\n\t\tint pixelType, int bitsPerPixel, boolean orderCertain, boolean littleEndian,\n\t\tboolean indexed, boolean falseColor, boolean metadataComplete);\n}", "@Test\n public void testGridViewImages() {\n /* use of the content desc from the cursor data gets us the specific imageview.\n Use of the 'anyOf' is an or statement for matching multiple content descriptions if necessary\n */\n final int COL_TITLE = 2;\n Cursor cursor = mActivityRule.getActivity().getContentResolver().query(\n TVContract.TVEntry.CONTENT_URI,\n null, // leaving \"columns\" null just returns all the columns.\n null, // cols for \"where\" clause\n null, // values for \"where\" clause\n null // sort order\n );\n\n cursor.moveToFirst();\n onView(anyOf(withContentDescription(cursor.getString(COL_TITLE)))).check(matches(isDisplayed()));\n }", "public List<String> getColumns();", "@Override\r\n\tpublic Image getColumnImage(Object element, int columnIndex) {\n\t\tif (columnIndex == 0) {\r\n\t\t\treturn ImageHelper.LoadImage(Activator.PLUGIN_ID, \"icons/state_red_hover.gif\");\r\n\t\t}else if (columnIndex == 1) {\r\n\t\t\treturn ImageHelper.LoadImage(Activator.PLUGIN_ID, \"icons/refreshtab.gif\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<Column> getQueryColumns();", "private String[] getHeaderColumns() {\n int length = CallLogQuery._PROJECTION.length;\n String[] columns = new String[length + 1];\n System.arraycopy(CallLogQuery._PROJECTION, 0, columns, 0, length);\n columns[length] = CallLogQuery.SECTION_NAME;\n return columns;\n }", "public List getColumns () {\n\t\tif (this.columns == null) {\n\t\t\tthis.columns = new ArrayList();\n\t\t\tthis.columns.add (new DcsTableColumn (\"Collection\", \"name\", \"name\", Constants.ASCENDING, \"listAllRecords\"));\n\t\t\tthis.columns.add (new DcsTableColumn (\"Create record\", \"create\", null, -1, \"createRecord\"));\n\t\t\tthis.columns.add (new DcsTableColumn (\"Metadata format\", \"format\", \"format\", Constants.ASCENDING, null));\n\t\t\tthis.columns.add (new DcsTableColumn (\"Num Records\", \"numFiles\", \"numFiles\", Constants.DESCENDING, \"listAllRecords\"));\n\t\t\tthis.columns.add (new DcsTableColumn (\"Not Valid\", \"numNotValid\", \"numNotValid\", Constants.DESCENDING, \"listNotValidRecords\"));\n\t\t}\n\t\treturn this.columns;\n\t}", "int getColumns();", "int getColumns();", "public int columns() {\n\treturn columns;\n}", "List<AliUserInfoDO> selectByExampleWithBLOBsWithRowbounds(AliUserInfoDOExample example, RowBounds rowBounds);", "public ImageDescriptor getImageDescriptor();", "List<BufferedImage> listarHuellas(Integer fcdc_id) throws SQLException, IOException;", "@Override\n public String getName() {\n return columnInfo.getName();\n }", "public int getColumns()\n {\n return columns;\n }", "public HashMap<String, Object> DetailEtcImage(HashMap<String, Object> param) {\n\t\treturn sqlSession.selectOne(\"main.DetailEtcImage\",param);\r\n\t}", "public int getImageId(){\n \t\treturn imageId;\n \t}", "public Iterable<SequenceInformation> extractMetadata(ExtractionContext extractionContext) throws SQLException;", "interface PlaceDetailsColumns {\n\t\tString PLACE_ID = \"place_id\";\n\t\tString PLACE_NAME = \"name\";\n\t\tString PLACE_ADDRESS = \"address\";\n\t\tString PLACE_PHONE = \"phone\";\n\t\tString PLACE_LATITUDE = \"latitude\";\n\t\tString PLACE_LONGITUDE = \"longitude\";\n\t\tString PLACE_ICON = \"icon\";\n\t\tString PLACE_REFERENCE = \"reference\";\n\t\tString PLACE_TYPES = \"types\";\n\t\tString PLACE_VICINITY = \"vicinity\";\n\t\tString PLACE_RATING = \"rating\";\n\t\tString PLACE_URL = \"url\";\n\t\tString PLACE_WEBSITE = \"website\";\n\t\tString PLACE_LAST_UPDATED = \"last_update_time\";\n\t}", "private List<String> getImages(String query, int id) {\n\t\tResultSet rs=null;\n\t\tList<String> imageList = new ArrayList<String>();\n\t\ttry {\n\t\t\t\n\t\t\t//pstmt = con.prepareStatement(query);\n\t\t\tPreparedStatement pstmt = dataSource.getConnection().prepareStatement(query);\n\t\t\tpstmt.setInt(1, id);\n\t\t\trs = pstmt.executeQuery();\n\t\t\twhile (rs.next()) \n\t\t\t{\n\t\t\t\timageList.add(rs.getString(1));\n\t\t\t}\n\t\t}catch (SQLException e) {\n\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\treturn imageList;\n\t}", "@Override\n public Class getColumnClass(int column) {\n\n if (column == 2) {\n// return ImageIcon.class;\n }\n return Object.class;\n }", "@Override\n\tpublic List<String> getAllImages() {\n\t\t\n\t\treturn jdbcTemplate.query(\"select * from news\", new BeanPropertyRowMapper<News>());\n\t}", "public StrColumn getDetails() {\n return delegate.getColumn(\"details\", DelegatingStrColumn::new);\n }", "public StrColumn getDetails() {\n return delegate.getColumn(\"details\", DelegatingStrColumn::new);\n }", "public StrColumn getDetails() {\n return delegate.getColumn(\"details\", DelegatingStrColumn::new);\n }", "public StrColumn getDetails() {\n return delegate.getColumn(\"details\", DelegatingStrColumn::new);\n }", "public ArrayList getColumns() {\n return columns;\n }", "public int getImage_id() {\n\t\treturn image_id;\n\t}", "public MetadataViewer() {\n initComponents();\n imageMetadataModel_ = new MetadataTableModel();\n summaryMetadataModel_ = new MetadataTableModel();\n ImagePlus.addImageListener(this);\n GUIUtils.registerImageFocusListener(this);\n \n update(ij.IJ.getImage());\n imageMetadataTable.setModel(imageMetadataModel_);\n summaryMetadataTable.setModel(summaryMetadataModel_);\n \n setDisplayState(CompositeImage.COMPOSITE);\n }", "private Map getColumns(TableConfiguration tc) throws SQLException {\n String localCatalog;\n String localSchema;\n String localTableName;\n \n boolean delimitIdentifiers = tc.isDelimitIdentifiers()\n || StringUtility.stringContainsSpace(tc.getCatalog())\n || StringUtility.stringContainsSpace(tc.getSchema())\n || StringUtility.stringContainsSpace(tc.getTableName());\n\n if (delimitIdentifiers) {\n localCatalog = tc.getCatalog();\n localSchema = tc.getSchema();\n localTableName = tc.getTableName();\n } else if (databaseMetaData.storesLowerCaseIdentifiers()) {\n localCatalog = tc.getCatalog() == null ? null : tc.getCatalog()\n .toLowerCase();\n localSchema = tc.getSchema() == null ? null : tc.getSchema()\n .toLowerCase();\n localTableName = tc.getTableName() == null ? null : tc\n .getTableName().toLowerCase();\n } else if (databaseMetaData.storesUpperCaseIdentifiers()) {\n localCatalog = tc.getCatalog() == null ? null : tc.getCatalog()\n .toUpperCase();\n localSchema = tc.getSchema() == null ? null : tc.getSchema()\n .toUpperCase();\n localTableName = tc.getTableName() == null ? null : tc\n .getTableName().toUpperCase();\n } else {\n localCatalog = tc.getCatalog();\n localSchema = tc.getSchema();\n localTableName = tc.getTableName();\n }\n\n if (tc.isWildcardEscapingEnabled()) {\n String escapeString = databaseMetaData.getSearchStringEscape();\n \n StringBuffer sb = new StringBuffer();\n StringTokenizer st;\n if (localSchema != null) {\n st = new StringTokenizer(localSchema, \"_%\", true); //$NON-NLS-1$\n while (st.hasMoreTokens()) {\n String token = st.nextToken();\n if (token.equals(\"_\") //$NON-NLS-1$\n || token.equals(\"%\")) { //$NON-NLS-1$\n sb.append(escapeString);\n }\n sb.append(token);\n }\n localSchema = sb.toString();\n }\n \n sb.setLength(0);\n st = new StringTokenizer(localTableName, \"_%\", true); //$NON-NLS-1$\n while (st.hasMoreTokens()) {\n String token = st.nextToken();\n if (token.equals(\"_\") //$NON-NLS-1$\n || token.equals(\"%\")) { //$NON-NLS-1$\n sb.append(escapeString);\n }\n sb.append(token);\n }\n localTableName = sb.toString();\n }\n\n Map answer = new HashMap();\n \n ResultSet rs = databaseMetaData.getColumns(localCatalog, localSchema,\n localTableName, null);\n\n while (rs.next()) {\n ColumnDefinition cd = new ColumnDefinition(tc.getAlias(), abatorContext);\n\n cd.setJdbcType(rs.getInt(\"DATA_TYPE\")); //$NON-NLS-1$\n cd.setLength(rs.getInt(\"COLUMN_SIZE\")); //$NON-NLS-1$\n cd.setActualColumnName(rs.getString(\"COLUMN_NAME\")); //$NON-NLS-1$\n cd.setNullable(rs.getInt(\"NULLABLE\") == DatabaseMetaData.columnNullable); //$NON-NLS-1$\n cd.setScale(rs.getInt(\"DECIMAL_DIGITS\")); //$NON-NLS-1$\n cd.setTypeName(rs.getString(\"TYPE_NAME\")); //$NON-NLS-1$\n \n ActualTableName atn = new ActualTableName(rs.getString(\"TABLE_CAT\"), //$NON-NLS-1$\n rs.getString(\"TABLE_SCHEM\"), //$NON-NLS-1$\n rs.getString(\"TABLE_NAME\")); //$NON-NLS-1$\n \n List columns = (List) answer.get(atn);\n if (columns == null) {\n columns = new ArrayList();\n answer.put(atn, columns);\n }\n \n columns.add(cd);\n }\n \n closeResultSet(rs);\n \n return answer;\n }", "@Override\n public String toString() {\n return \"Image{\" +\n \"id=\" + id +\n \", filename='\" + filename + '\\'' +\n \", viewOrder=\" + viewOrder +\n \", mimeType=\" + mimeType +\n '}';\n }", "private String getAllColumnName() {\n\t\t\n\t\tStringBuilder builder = new StringBuilder();\n\t\t// .append(COLUMN_id).append(\"=?,\").\n\t\tbuilder.append(\"user_id\").append(\"=?,\");\n\t\tbuilder.append(\"lib_book_id\").append(\"=?,\");\n\t\tbuilder.append(\"lending_date\").append(\"=?,\");\n\t\tbuilder.append(\"return_date\").append(\"=?,\");\n\t\tbuilder.append(\"returned_date\").append(\"=?,\");\n\t\tbuilder.append(\"status\").append(\"=?\");\n\t\t\n\t\treturn builder.toString();\n\t}", "@Override\n\tprotected String getColumns()\n\t{\n\t\treturn null;\n\t}", "private ArrayList<String> getAllShownImagesPath(Activity activity) {\n Uri uri;\n Cursor cursor;\n int column_index_data, column_index_folder_name;\n ArrayList<String> listOfAllImages = new ArrayList<String>();\n String absolutePathOfImage = null;\n uri = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n\n String[] projection = { MediaStore.MediaColumns.DATA,\n MediaStore.Images.Media.BUCKET_DISPLAY_NAME };\n\n cursor = activity.getContentResolver().query(uri, projection, null,\n null, null);\n\n column_index_data = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA);\n column_index_folder_name = cursor\n .getColumnIndexOrThrow(MediaStore.Images.Media.BUCKET_DISPLAY_NAME);\n while (cursor.moveToNext()) {\n absolutePathOfImage = cursor.getString(column_index_data);\n\n listOfAllImages.add(absolutePathOfImage);\n }\n return listOfAllImages;\n }", "@Override\n public java.util.List<Column> getColumnsList() {\n return columns_;\n }", "public static String[] concreteColumnProjection() {\n\n\t\treturn new String[]{CONCRETE_ID, CONCRETE_ADDRESS, CONCRETE_NAME, CONCRETE_VOLUME, CONCRETE_POOL_LOCALE, CONCRETE_FINISH, CONCRETE_SANITIZER, CONCRETE_PUMP_BRAND, CONCRETE_PUMP_MODEL, CONCRETE_FILTER, CONCRETE_CLEANER_BRAND, CONCRETE_CLEANER_MODEL, CONCRETE_TRAFFIC, CONCRETE_MIN_DEPTH, CONCRETE_MAX_DEPTH, CONCRETE_TILING, CONCRETE_COVER, CONCRETE_ATTACHED_SPA, CONCRETE_HEATER, CONCRETE_DIVING_BOARD, CONCRETE_SLIDE, CONCRETE_LADDER, CONCRETE_FOUNTAINS, CONCRETE_ROCK_WATERFALL, CONCRETE_LIGHTS, CONCRETE_INFINITY, CONCRETE_SPORTING_EQUIPMENT, CONCRETE_BEACH_ENTRY, CONCRETE_SAND, CONCRETE_IMAGE, CONCRETE_WEATHER_NOTIFICATIONS, CONCRETE_WATER_TEST_REMINDERS, CONCRETE_FILTER_REMINDERS, CONCRETE_SAFETY_NOTIFICATIONS, CONCRETE_MAINTENANCE_REMINDERS, CONCRETE_CUSTOM_NOTIFICATIONS, CONCRETE_COUPON_NOTIFICATIONS};\n\t}", "FieldDesc getColumnDesc(int i);", "public void showAllColumns() {\n\t\tObject[] ids = hiddenCols.keySet().toArray();\n\t\tfor (int i = ids.length - 1; i >= 0; i--) {\n\t\t\tshowColumn(ids[i]);\n\t\t}\n\t}", "SportAlbumPicture selectByPrimaryKey(String id);" ]
[ "0.6048984", "0.6002166", "0.5981683", "0.5780414", "0.5609057", "0.5499247", "0.54023355", "0.53893214", "0.53879267", "0.5337824", "0.5301075", "0.5285746", "0.5264482", "0.5253475", "0.52227694", "0.52227694", "0.52227694", "0.5220152", "0.52198637", "0.52198637", "0.52063394", "0.5185651", "0.5181845", "0.51612127", "0.5154791", "0.5154315", "0.5147496", "0.51378846", "0.51155376", "0.5096743", "0.50780916", "0.5076098", "0.50730395", "0.50534874", "0.50497526", "0.5012315", "0.5008379", "0.5005536", "0.5005307", "0.50024295", "0.4998953", "0.49939442", "0.49888578", "0.49863127", "0.49828845", "0.4977693", "0.49722025", "0.49690732", "0.49646896", "0.49592024", "0.49555576", "0.49517295", "0.4948808", "0.49437317", "0.49379823", "0.49331802", "0.49180156", "0.49135017", "0.49069285", "0.49050054", "0.48996434", "0.4897962", "0.48902795", "0.48891678", "0.48884848", "0.4878754", "0.4877281", "0.48753378", "0.48748633", "0.48748633", "0.4872537", "0.48706806", "0.48671657", "0.48636204", "0.48635253", "0.4859465", "0.4856409", "0.48546034", "0.48505247", "0.4841881", "0.48414055", "0.4828551", "0.4820781", "0.48190877", "0.48190877", "0.48190877", "0.48190877", "0.4815263", "0.48141193", "0.48041472", "0.48014584", "0.48012176", "0.47977847", "0.47958842", "0.4795855", "0.47864866", "0.47775975", "0.47768095", "0.4771246", "0.4748958" ]
0.5459449
6
/ Splits a merged VCF into individual files with noise
static void splitVcf(String inputFile, String outDir) throws Exception { int n = countInputs(inputFile); if(n == 0) { return; } // Make output directory for the split VCF files Path currentRelativePath = Paths.get(""); outDir = currentRelativePath.toAbsolutePath().toString() + "/" + outDir; File f = new File(outDir); f.mkdir(); String[] fns = new String[n]; for(int i = 0; i<n; i++) fns[i] = outDir + "/" + "sample" + (i+1) + ".vcf"; PrintWriter[] outs = new PrintWriter[n]; for(int i = 0; i<n; i++) { outs[i] = new PrintWriter(new File(fns[i])); } // Write split VCF filenames to filelist.txt PrintWriter out = new PrintWriter(new File(outDir + "/filelist.txt")); for(int i = 0; i<n; i++) { out.println(fns[i]); } out.close(); Scanner input = new Scanner(new FileInputStream(new File(inputFile))); while(input.hasNext()) { String line = input.nextLine(); if(line.length() == 0) { continue; } if(line.startsWith("#")) { for(int i = 0; i<n; i++) { outs[i].println(line); } } else { VcfEntry entry = new VcfEntry(line); String suppVec = entry.getInfo("SUPP_VEC"); String method = entry.getInfo("SVMETHOD"); int supp = Integer.parseInt(entry.getInfo("SUPP")); // Get the list of IDs - the way of doing that depends on the method used to merge them String[] idList = new String[supp]; if(method.equals("JASMINE")) { idList = entry.getInfo("IDLIST").split(","); } else if(method.startsWith("SURVIVOR")) { ArrayList<String> ids = new ArrayList<String>(); for(int i = 9; i<entry.tabTokens.length; i++) { String val = entry.tabTokens[i].split(":")[7]; if(!val.equalsIgnoreCase("nan")) ids.add(val); } for(int i = 0; i<ids.size(); i++) { idList[i] = ids.get(i); } } int idIdx = 0; for(int i = 0; i<n; i++) { boolean inSample = suppVec.charAt(i) == '1'; if(inSample) { VcfEntry newEntry = new VcfEntry(entry.originalLine); newEntry.setId(idList[idIdx]); long oldStart = newEntry.getPos(); int curNoise = Math.min(AVERAGE_POS_ERROR, (int)(Math.abs(newEntry.getLength()) * 0.25)); // Add some noise to different parts of it int dPos = randomDelta(curNoise); int dLen = randomDelta(curNoise); long newStart = oldStart + dPos; int newLen = newEntry.getLength() + dLen; long newEnd = newStart + newLen; // Set start newEntry.setPos(newEntry.getPos() + dPos); // Set SVLEN INFO field if(newEntry.hasInfoField("SVLEN")) { newEntry.setInfo("SVLEN", newLen + ""); } String type = newEntry.getType(); int refLength = newEntry.getRef().length(); int altLength = newEntry.getAlt().length(); if(!newEntry.getAlt().contains("<") && !newEntry.getRef().contains("N")) { if(refLength > altLength) { type = "DEL"; } if(refLength < altLength) { type = "INS"; } } // Set END INFO field if(newEntry.hasInfoField("END")) { if(type.equals("INS")) { newEntry.setInfo("END", newStart + ""); } else { newEntry.setInfo("END", newEnd + ""); } } // Set REF and ALT fields depending on SV type if(!newEntry.getAlt().contains("<") && !newEntry.getRef().contains("N")) { if(type.equals("INS")) { if(entry.getLength() < 0) { System.out.println(entry); } entry.setAlt(adjustStringLength(entry.getAlt(), newLen + 1)); if(entry.hasInfoField("SEQ")) { entry.setInfo("SEQ", entry.getAlt().substring(1)); } } else if(type.equals("DEL")) { entry.setRef(adjustStringLength(entry.getRef(), Math.abs(newLen) + 1)); if(entry.hasInfoField("SEQ")) { entry.setInfo("SEQ", entry.getRef().substring(1)); } } else if(type.equals("DEL/INV")) { entry.setRef(adjustStringLength(entry.getRef(), Math.abs(newLen) + 1)); if(entry.hasInfoField("SEQ")) { entry.setInfo("SEQ", entry.getRef().substring(1)); } } else { System.out.println(type); System.out.println(entry.getRef()+" "+entry.getAlt()); } } outs[i].println(newEntry); idIdx++; } } } } for(int i = 0; i<n; i++) { outs[i].close(); } input.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void makeSubcutaneousFatVOIfromIntensityProfiles() {\r\n \r\n int[] xLocsSubcutaneousVOI;\r\n int[] yLocsSubcutaneousVOI;\r\n int[] zVals;\r\n try {\r\n xLocsSubcutaneousVOI = new int [360 / angularResolution];\r\n yLocsSubcutaneousVOI = new int [360 / angularResolution];\r\n zVals = new int [360 / angularResolution];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeSubcutaneousFatVOIfromIntensityProfiles(): Can NOT allocate xLocsSubcutaneousVOI\");\r\n return;\r\n }\r\n \r\n for(int idx = 0; idx < 360 / angularResolution; idx++) {\r\n zVals[idx] = 0;\r\n }\r\n \r\n int numSamples;\r\n \r\n for(int idx = 0; idx < 360 / angularResolution; idx++) {\r\n numSamples = intensityProfiles[idx].size();\r\n \r\n int sampleIdx = numSamples - 10; // skip over the skin\r\n while (sampleIdx >= 0 &&\r\n intensityProfiles[idx].get(sampleIdx) < muscleThresholdHU &&\r\n intensityProfiles[idx].get(sampleIdx) > airThresholdHU) {\r\n sampleIdx--;\r\n }\r\n if (sampleIdx <= 0) {\r\n // could not find a valid subcutaneous fat point in the intensity profile\r\n// MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find the subcutaneous fat VOI point in the intensity profile for angle: \" +idx * angularResolution);\r\n if (idx > 0) {\r\n // assign this subcutaneous fat VOI point to the previous point if one exists\r\n xLocsSubcutaneousVOI[idx] = xLocsSubcutaneousVOI[idx-1];\r\n yLocsSubcutaneousVOI[idx] = yLocsSubcutaneousVOI[idx-1];\r\n } else {\r\n // assign this subcutaneous fat VOI point to the abdomen VOI point\r\n xLocsSubcutaneousVOI[idx] = xProfileLocs[idx].get(numSamples - 1);\r\n yLocsSubcutaneousVOI[idx] = yProfileLocs[idx].get(numSamples - 1);\r\n }\r\n } else {\r\n // we found a point in the intensity profile that matches subcutaneous fat\r\n xLocsSubcutaneousVOI[idx] = xProfileLocs[idx].get(sampleIdx);\r\n yLocsSubcutaneousVOI[idx] = yProfileLocs[idx].get(sampleIdx);\r\n }\r\n \r\n } // end for (int idx = 0; ...)\r\n\r\n // make the VOI's and add the points to them\r\n subcutaneousVOI = new VOI((short)0, \"Subcutaneous area\");\r\n subcutaneousVOI.importCurve(xLocsSubcutaneousVOI, yLocsSubcutaneousVOI, zVals);\r\n\r\n }", "public void trainFeatureList(){\n File trainFolder = new File(SoundEffectDemo.s_basePath);\n File[] trainList = trainFolder.listFiles();\n\n try {\n\n FileWriter fwMs = new FileWriter(s_msFeaturePath);\n FileWriter fwEnergy = new FileWriter(s_energyFeaturePath);\n FileWriter fwZc = new FileWriter(s_zcFeaturePath);\n FileWriter fwMfcc = new FileWriter(s_mfccFeaturePath);\n\n for (int i = 0; i < trainList.length; i++) {\n WaveIO waveIO = new WaveIO();\n short[] signal = waveIO.readWave(trainList[i].getAbsolutePath());\n\n // Extract Magnitude Spectrum\n MagnitudeSpectrum ms = new MagnitudeSpectrum();\n double[] msFeature = ms.getFeature(signal);\n \n String line = trainList[i].getName() + \"\\t\";\n for (double f: msFeature){\n line += f + \"\\t\";\n }\n fwMs.append(line+\"\\n\");\n \n // Extract Energy\n Energy energy = new Energy();\n double[] energyFeature = energy.getFeature(signal);\n \n String line2 = trainList[i].getName() + \"\\t\";\n for (double f: energyFeature){\n line2 += f + \"\\t\";\n }\n fwEnergy.append(line2+\"\\n\");\n \n // Extract Zero Crossing\n ZeroCrossing zc = new ZeroCrossing();\n double[] zcFeature = zc.getFeature(signal);\n \n String line3 = trainList[i].getName() + \"\\t\";\n for (double f: zcFeature){\n line3 += f + \"\\t\";\n }\n fwZc.append(line3+\"\\n\");\n \n // Extract mfcc\n MFCC mfcc = new MFCC(Frames.frameLength);\n mfcc.process(signal);\n double[] mfccFeature = mfcc.getMeanFeature();\n \n String line4 = trainList[i].getName() + \"\\t\";\n for (double f: mfccFeature){\n line4 += f + \"\\t\";\n }\n fwMfcc.append(line4+\"\\n\");\n \n System.out.println(\"@=========@\" + i);\n }\n fwMs.close();\n fwEnergy.close();\n fwZc.close();\n fwMfcc.close();\n }catch (Exception e){\n e.printStackTrace();\n }\n }", "private void splitHuffmanData()\n\t{\n\t\tbyte[] ext = new byte[fileArray[256]];\n\t\tint index = 0;\n\t\tfor(int i = 0; i < canonLengths.length; i++)\n\t\t{\n\t\t\tcanonLengths[i] = (int)(fileArray[i] & 0x0FF);\n\t\t\tindex++;\n\t\t}\n\t\tindex++;\n\t\t\n\t\tfor(int i = 0; i < ext.length; i++)\n\t\t\text[i] = fileArray[index++];\n\t\t\n\t\tfileExtension = new String(ext);\n\t\tbyte[] temp = fileArray;\n\t\tfileArray = new byte[\n\t\t temp.length - canonLengths.length - (ext.length + 1)];\n\t\t\n\t\tSystem.arraycopy(temp, index, fileArray, 0, fileArray.length);\n\t}", "private void makeSubcutaneousFatVOIfromIntensityProfiles(int sliceNum) {\r\n \r\n int[] xLocsSubcutaneousVOI;\r\n int[] yLocsSubcutaneousVOI;\r\n int[] zVals;\r\n try {\r\n xLocsSubcutaneousVOI = new int [360 / angularResolution];\r\n yLocsSubcutaneousVOI = new int [360 / angularResolution];\r\n zVals = new int [360 / angularResolution];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeSubcutaneousFatVOIfromIntensityProfiles(): Can NOT allocate xLocsSubcutaneousVOI\");\r\n return;\r\n }\r\n \r\n for(int idx = 0; idx < 360 / angularResolution; idx++) {\r\n // fixSubcutaneiousFat2DVOI requires the zVal to be 0 (does VOI extraction on a 2D slice image)\r\n zVals[idx] = 0;\r\n }\r\n \r\n int numSamples;\r\n \r\n for(int idx = 0; idx < 360 / angularResolution; idx++) {\r\n numSamples = intensityProfiles[idx].size();\r\n \r\n int sampleIdx = numSamples - 10; // skip over the skin\r\n while (sampleIdx >= 0 &&\r\n intensityProfiles[idx].get(sampleIdx) < muscleThresholdHU &&\r\n intensityProfiles[idx].get(sampleIdx) > airThresholdHU) {\r\n sampleIdx--;\r\n }\r\n if (sampleIdx <= 0) {\r\n // could not find a valid subcutaneous fat point in the intensity profile\r\n// MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find the subcutaneous fat VOI point in the intensity profile for angle: \" +idx * angularResolution);\r\n if (idx > 0) {\r\n // assign this subcutaneous fat VOI point to the previous point if one exists\r\n xLocsSubcutaneousVOI[idx] = xLocsSubcutaneousVOI[idx-1];\r\n yLocsSubcutaneousVOI[idx] = yLocsSubcutaneousVOI[idx-1];\r\n } else {\r\n // assign this subcutaneous fat VOI point to the abdomen VOI point\r\n xLocsSubcutaneousVOI[idx] = xProfileLocs[idx].get(numSamples - 1);\r\n yLocsSubcutaneousVOI[idx] = yProfileLocs[idx].get(numSamples - 1);\r\n }\r\n } else {\r\n // we found a point in the intensity profile that matches subcutaneous fat\r\n xLocsSubcutaneousVOI[idx] = xProfileLocs[idx].get(sampleIdx);\r\n yLocsSubcutaneousVOI[idx] = yProfileLocs[idx].get(sampleIdx);\r\n }\r\n \r\n } // end for (int idx = 0; ...)\r\n\r\n // make the VOI's and add the points to them\r\n subcutaneousVOI.importCurve(xLocsSubcutaneousVOI, yLocsSubcutaneousVOI, zVals);\r\n\r\n }", "public static void addCNVTrack(String inDir, String outDir) {\n\t\tString[] split;\n\t\tString toWrite = \"\", chr, load;\n\t\tArrayList<Point> regions;\n\t\tint loc_min = Integer.MAX_VALUE, loc_max = Integer.MIN_VALUE;\n\t\tfloat min, max;\n\t\tFile[] files = (new File(inDir)).listFiles();\n\t\tfor (int i = 1; i<=22; i++) { //iterate through chromosomes\n\t\t\tif (i<=21)\n\t\t\t\tchr = Integer.toString(i);\n\t\t\telse\n\t\t\t\tchr = \"X\";\n\t\t\tSystem.out.println(\"chr\" + chr);\n\t\t\tfor (File file : files) {\n\t\t\t\tif (file.getName().indexOf(\".txt\")!=-1) {\n\t\t\t\t\tSystem.out.print(file.getName().split(\".txt\")[0] + \" \");\n\t\t\t\t\tload = FileOps.loadFromFile(file.getAbsolutePath());\n\t\t\t\t\tsplit = load.split(\"\\tchr\" + chr + \"\\t\"); //sans-\"chr\" for hepato\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttoWrite = \"\";\n\t\t\t\t\t\tregions = new ArrayList<Point>();\n\t\t\t\t\t\tmin = Float.MAX_VALUE; max = -1 * Float.MAX_VALUE;\n\t\t\t\t\t\tloc_min = Integer.MAX_VALUE; loc_max = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int j = 1; j<split.length; j++) { //iterate through regions -- grab bounds\n\t\t\t\t\t\t\tif (Float.parseFloat(split[j].split(\"\\t\")[1].split(\"\\n\")[0]) > max)\n\t\t\t\t\t\t\t\tmax = Float.parseFloat(split[j].split(\"\\t\")[1].split(\"\\n\")[0]);\n\t\t\t\t\t\t\tif (Float.parseFloat(split[j].split(\"\\t\")[1].split(\"\\n\")[0]) < min)\n\t\t\t\t\t\t\t\tmin = Float.parseFloat(split[j].split(\"\\t\")[1].split(\"\\n\")[0]);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (Integer.parseInt(split[j].split(\"\\t\")[0]) < loc_min)\n\t\t\t\t\t\t\t\tloc_min = Integer.parseInt(split[j].split(\"\\t\")[0]);\n\t\t\t\t\t\t\tif (Integer.parseInt(split[j].split(\"\\t\")[0]) > loc_max)\n\t\t\t\t\t\t\t\tloc_max = Integer.parseInt(split[j].split(\"\\t\")[0]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int j = 1; j<split.length; j++) { //iterate through regions -- collect/merge\n\t\t\t\t\t\t\tif (regions.size()==0)\n\t\t\t\t\t\t\t\tregions.add(new Point(Integer.parseInt(split[j].split(\"\\t\")[0]), Integer.parseInt(split[j].split(\"\\t\")[0])\n\t\t\t\t\t\t\t\t\t\t, Float.parseFloat(split[j].split(\"\\t\")[1].split(\"\\n\")[0]) - min));\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tregions = cnvSplice(new Point(Integer.parseInt(split[j].split(\"\\t\")[0]), Integer.parseInt(split[j].split(\"\\t\")[0])\n\t\t\t\t\t\t\t\t\t\t, Float.parseFloat(split[j].split(\"\\t\")[1].split(\"\\n\")[0]) - min), regions);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(split.length + \" | \" + regions.size());\n\t\t\t\t\t\tfor (Point region : regions) //iterate through regions -- dump\n\t\t\t\t\t\t\tFileOps.appendToFile(outDir + \"/chr\" + chr + \".txt\", \"chr\" + chr + \" \" + region.x + \" \" + region.y + \" cn\" + (region.score / (float)region.z) + \" \" + Utils.normalize((float)Math.pow(2, Math.abs(region.score / (float)region.z)), (float)Math.pow(2, 0), (float)Math.pow(2, Math.abs(max - min)), 200, 900) + \" + \" + region.x + \" \" + region.y + \"\\n\");\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) { e.printStackTrace(); System.out.println(\"throwing chr\" + chr); }\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ttoWrite = \"browser position chr\" + chr + \":\" + loc_min + \"-\" + loc_max + \"\\nbrowser hide all\\n\"\n\t\t\t\t+ \"track name=\\\"CopyNumVar\\\" description=\\\" \\\" visibility=dense useScore=1\\n\";\n\t\t\tFileOps.writeToFile(outDir + \"/chr\" + chr + \".txt\", toWrite + FileOps.loadFromFile(outDir + \"/chr\" + chr + \".txt\"));\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\r\n private void makeSubcutaneousFat2DVOI() {\r\n\r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n \r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n // there should be only one VOI and one curve\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().get(0));\r\n int[] xVals = new int [curve.size()];\r\n int[] yVals = new int [curve.size()];\r\n int[] zVals = new int [curve.size()];\r\n curve.exportArrays(xVals, yVals, zVals);\r\n \r\n int[] xValsSubcutaneousVOI = new int [curve.size()];\r\n int[] yValsSubcutaneousVOI = new int [curve.size()];\r\n \r\n \r\n // the intensity profile along a radial line for a given angle\r\n short[] profile;\r\n \r\n // the x, y location of all the pixels along a radial line for a given angle\r\n int[] xLocs;\r\n int[] yLocs;\r\n try {\r\n profile = new short[xDim];\r\n xLocs = new int[xDim];\r\n yLocs = new int[xDim];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT allocate profile\");\r\n return;\r\n }\r\n\r\n try {\r\n srcImage.exportData(0, sliceSize, sliceBuffer);\r\n } catch (IOException ex) {\r\n System.err.println(\"JCATsegmentAbdomen2D(): Error exporting data\");\r\n return;\r\n }\r\n\r\n\r\n // find a subcutaneous fat contour point for each abdominal contour point\r\n // we know the abdominal contour points are located at three degree increments\r\n double angleRad;\r\n int count;\r\n int contourPointIdx = 0;\r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n count = 0;\r\n int x = xcm;\r\n int y = ycm;\r\n int yOffset = y * xDim;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = sliceBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n\r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the abdomen VOI point\r\n // Find where the subcutaneous fat ends and the muscle starts\r\n \r\n // start at the end of the profile array since its order is from the\r\n // center-of-mass to the abdomen voi point\r\n \r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU && profile[idx] > airThresholdHU) {\r\n idx--;\r\n }\r\n if (idx <= 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n break;\r\n }\r\n xValsSubcutaneousVOI[contourPointIdx] = xLocs[idx];\r\n yValsSubcutaneousVOI[contourPointIdx] = yLocs[idx];\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = sliceBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends\r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU&& profile[idx] > airThresholdHU) {\r\n idx--;\r\n }\r\n if (idx == 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n return;\r\n }\r\n xValsSubcutaneousVOI[contourPointIdx] = xLocs[idx];\r\n yValsSubcutaneousVOI[contourPointIdx] = yLocs[idx];\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = sliceBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends\r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU&& profile[idx] > airThresholdHU) {\r\n idx--;\r\n }\r\n if (idx == 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n return;\r\n }\r\n xValsSubcutaneousVOI[contourPointIdx] = xLocs[idx];\r\n yValsSubcutaneousVOI[contourPointIdx] = yLocs[idx];\r\n \r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = sliceBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends\r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU&& profile[idx] > airThresholdHU) {\r\n idx--;\r\n }\r\n if (idx == 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n return;\r\n }\r\n xValsSubcutaneousVOI[contourPointIdx] = xLocs[idx];\r\n yValsSubcutaneousVOI[contourPointIdx] = yLocs[idx];\r\n\r\n }\r\n \r\n contourPointIdx++;\r\n } // end for (angle = 0; ...\r\n\r\n\r\n // make the VOI's and add the points to them\r\n subcutaneousVOI = new VOI((short)0, \"Subcutaneous area\");\r\n subcutaneousVOI.importCurve(xValsSubcutaneousVOI, yValsSubcutaneousVOI, zVals);\r\n\r\n }", "private void fixSubcutaneousFatVOIs() {\r\n VOI theVOI = subcutaneousVOI;\r\n \r\n if (theVOI.getName() != \"Subcutaneous area\") {\r\n MipavUtil.displayError(\"fixSubcutaneousFatVOIs(): SubcutaneousVOI is not properly set\");\r\n return;\r\n }\r\n \r\n // make a 2D image to hold one slice and curve from the VOI\r\n int[] extents = new int[2];\r\n extents[0] = xDim;\r\n extents[1] = yDim;\r\n ModelImage sliceImage = new ModelImage(ModelStorageBase.UBYTE, extents, \"tmpSliceImage\");\r\n\r\n // There should be one curve on each slice and\r\n // each curve should have the same number of points since each was resampled\r\n int numPoints = ((VOIContour)theVOI.getCurves().get(0)).size();\r\n int[] xVals;\r\n int[] yVals;\r\n int[] zVals;\r\n try {\r\n xVals = new int [numPoints];\r\n yVals = new int [numPoints];\r\n zVals = new int [numPoints];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"fixSubcutaneousFatVOIs(): Can NOT allocate the subcutaneous fat VOI arrays\");\r\n return;\r\n } \r\n\r\n int numCurves;\r\n VOIContour curve;\r\n for (int sliceIdx = 0; sliceIdx < zDim; sliceIdx++) {\r\n ViewUserInterface.getReference().getMessageFrame().append(\" Extracting VOI for slice: \" +sliceIdx +\" \", ViewJFrameMessage.DEBUG);\r\n long time = System.currentTimeMillis();\r\n\r\n // make a new VOI\r\n VOI sliceVOI = new VOI((short)0, \"SliceVOI\");\r\n \r\n // copy and remove a curve from the 3D image into the 2D image\r\n curve = ((VOIContour)theVOI.getCurves().remove(0));\r\n sliceVOI.importCurve(curve);\r\n sliceImage.registerVOI(sliceVOI);\r\n \r\n ViewUserInterface.getReference().getMessageFrame().append(+((System.currentTimeMillis() - time)) / 1000.0f +\" sec\\n\", ViewJFrameMessage.DEBUG);\r\n\r\n \r\n // make a binary image out of the subcutaneousVOI on the 2D VOI\r\n ViewUserInterface.getReference().getMessageFrame().append(\" Making a binary image from the VOI: \", ViewJFrameMessage.DEBUG);\r\n time = System.currentTimeMillis();\r\n ModelImage binImage = sliceImage.generateBinaryImage(); \r\n ViewUserInterface.getReference().getMessageFrame().append(+((System.currentTimeMillis() - time)) / 1000.0f +\" sec\\n\", ViewJFrameMessage.DEBUG);\r\n\r\n ViewUserInterface.getReference().getMessageFrame().append(\" Smoothing Image with \"+sliceVOI.getNumPoints()+\"points: \", ViewJFrameMessage.DEBUG);\r\n time = System.currentTimeMillis();\r\n new AlgorithmBSmooth(binImage, sliceVOI, sliceVOI.getNumPoints()/3, true);\r\n ViewUserInterface.getReference().getMessageFrame().append(+((System.currentTimeMillis() - time)) / 1000.0f +\" sec\\n\", ViewJFrameMessage.DEBUG);\r\n \r\n // close the binaryImage with a huge structuring element to fill in all the major gaps\r\n ViewUserInterface.getReference().getMessageFrame().append(\" Morphology to the image: \", ViewJFrameMessage.DEBUG);\r\n time = System.currentTimeMillis();\r\n closeImage(binImage, 61.0f);\r\n ViewUserInterface.getReference().getMessageFrame().append(+((System.currentTimeMillis() - time)) / 1000.0f +\" sec\\n\", ViewJFrameMessage.DEBUG);\r\n \r\n // convert the binary image into a VOI\r\n ViewUserInterface.getReference().getMessageFrame().append(\" Extracting the new VOI: \", ViewJFrameMessage.DEBUG);\r\n time = System.currentTimeMillis();\r\n AlgorithmVOIExtraction VOIExtractionAlgo = new AlgorithmVOIExtraction(binImage);\r\n VOIExtractionAlgo.setRunningInSeparateThread(false);\r\n VOIExtractionAlgo.run();\r\n VOIExtractionAlgo.setCompleted(true);\r\n\r\n\r\n // make sure we got one VOI with one curve\r\n VOIVector vois = binImage.getVOIs();\r\n if(vois.size() != 1) {\r\n System.err.println(\"fixSubcutaneousFatVOIs() Error, did not get 1 VOI for the subcutaneous fat VOI\");\r\n return;\r\n }\r\n \r\n // binImage has one VOI, lets get it\r\n VOI theFixedVOI = vois.get(0);\r\n \r\n // Keep only the largest VOI as the subcutaneous fat\r\n numCurves = theFixedVOI.getCurves().size();\r\n \r\n int maxIdx = 0;\r\n int maxNumPoints = ((VOIContour)theFixedVOI.getCurves().get(maxIdx)).size();\r\n for (int idx = 1; idx < numCurves; idx++) {\r\n if (((VOIContour)theFixedVOI.getCurves().get(idx)).size() > maxNumPoints) {\r\n maxIdx = idx;\r\n }\r\n } // end for (int idx = 0; ...)\r\n for (int idx = numCurves-1; idx >= 0; idx--) {\r\n if (idx != maxIdx) {\r\n theFixedVOI.getCurves().remove(idx);\r\n }\r\n } // end for (int idx = 0; ...)\r\n ViewUserInterface.getReference().getMessageFrame().append(+((System.currentTimeMillis() - time)) / 1000.0f +\" sec\\n\", ViewJFrameMessage.DEBUG);\r\n\r\n ViewUserInterface.getReference().getMessageFrame().append(\" Copying the new VOI: \", ViewJFrameMessage.DEBUG);\r\n time = System.currentTimeMillis();\r\n // copy a curve from the 2D image into the 3D image\r\n // new arrays need to be made for each slice because the array size\r\n // is used when importing the curve to the VOI. The extracted VOI\r\n // cannot be determined, unless we resample the subcutaneous VOI\r\n \r\n // resample the subcutaneous fat VOI so it has the same number of\r\n // sampes as the abdomen VOI. Furthermore, the samples will be on a\r\n // throught the center of mass of the abdomen and the abdomen VOI samples\r\n resampleCurve(theFixedVOI, sliceIdx);\r\n curve = ((VOIContour)theFixedVOI.getCurves().get(0));\r\n/*\r\n int[] newXVals;\r\n int[] newYVals;\r\n int[] newZVals;\r\n numPoints = curve.size(); try {\r\n newXVals = new int [numPoints];\r\n newYVals = new int [numPoints];\r\n newZVals = new int [numPoints];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"fixSubcutaneousFatVOIs(): Can NOT allocate the subcutaneous fat VOI arrays\");\r\n return;\r\n } \r\n \r\n curve.exportArrays(newXVals, newYVals, newZVals);\r\n theVOI.importCurve(newXVals, newYVals, newZVals, sliceIdx);\r\n*/\r\n curve.exportArrays(xVals, yVals, zVals);\r\n theVOI.importCurve(xVals, yVals, zVals);\r\n ViewUserInterface.getReference().getMessageFrame().append(+((System.currentTimeMillis() - time)) / 1000.0f +\" sec\\n\", ViewJFrameMessage.DEBUG);\r\n \r\n // need to remove the curve because registering a VOI makes a copy of it\r\n sliceVOI.removeCurves();\r\n sliceImage.unregisterAllVOIs();\r\n\r\n } // end for (int sliceIdx = 0; ...)\r\n\r\n //ShowImage(sliceImage, \"sliceImage\");\r\n\r\n }", "@Test public void testWithSegmentation() throws IOException\n {\n final File inDir = tempDir.toFile();\n final File outDir = tempDir.toFile();\n // Copy HDD file.\n try(final Reader r = DDNExtractorTest.getETVEGLLHDD2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_HDD)))\n { cpReaderToWriter(r, w); }\n }\n // Copy sample household data file.\n try(final Reader r = ETVParseTest.getNBulkSH2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_NKWH)))\n { cpReaderToWriter(r, w); }\n }\n // Copy valve logs (from compressed to uncompressed form in, in this case).\n try(final Reader r = HDDUtil.getGZIPpedASCIIResourceReader(ETVParseTest.class, ETVParseTest.VALVE_LOG_SAMPLE_DIR + \"/2d1a.json.gz\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, \"3015.json\")))\n { cpReaderToWriter(r, w); }\n }\n // Create (trivial) grouping...\n try(final Reader r = new StringReader(\"5013,3015\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, OTLogActivityParse.LOGDIR_PATH_TO_GROUPING_CSV)))\n { cpReaderToWriter(r, w); }\n }\n\n // Ensure no old result files hanging around...\n final File basicResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_BASIC);\n basicResultFile.delete(); // Make sure no output file.\n assertFalse(\"output file should not yet exist\", basicResultFile.isFile());\n final File basicFilteredResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_FILTERED_BASIC);\n basicFilteredResultFile.delete(); // Make sure no output file.\n assertFalse(\"output filtered file should not yet exist\", basicFilteredResultFile.isFile());\n final File segmentedResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_SEGMENTED);\n segmentedResultFile.delete(); // Make sure no output file.\n assertFalse(\"output segmented file should not yet exist\", segmentedResultFile.isFile());\n final File summaryResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_MULITHOUSEHOLD_SUMMARY);\n summaryResultFile.delete(); // Make sure no output file.\n assertFalse(\"output summary file should not yet exist\", summaryResultFile.isFile());\n // Do the computation...\n ETVSimpleDriverNBulkInputs.doComputation(inDir, outDir);\n // Check results.\n assertTrue(\"output file should now exist\", basicResultFile.isFile());\n assertTrue(\"output filtered file should now exist\", basicFilteredResultFile.isFile());\n assertTrue(\"output segmented file should now exist\", segmentedResultFile.isFile());\n assertTrue(\"output summary file should now exist\", summaryResultFile.isFile());\n final String expected =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.5532478,1.3065631,0.62608224,156,\\n\";\n final String actualBasic = new String(Files.readAllBytes(basicResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualBasic);\n final String actualFilteredBasic = new String(Files.readAllBytes(basicFilteredResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualFilteredBasic);\n final String expectedS =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.138506,5.764153,0.24607657,10,1.9855182\\n\";\n final String actualSegmented = new String(Files.readAllBytes(segmentedResultFile.toPath()), \"ASCII7\");\n//System.out.println(actualSegmented);\n assertEquals(expectedS, actualSegmented);\n final String expectedSummary =\n ETVHouseholdGroupSimpleSummaryStatsToCSV.headerCSV + '\\n' +\n \"1,1,10,0.24607657,0.0,1.138506,0.0,1.9855182,0.0\\n\";\n final String actualSummary = new String(Files.readAllBytes(summaryResultFile.toPath()), \"ASCII7\");\nSystem.out.println(actualSummary);\n assertEquals(expectedSummary, actualSummary);\n // TODO: verify textual report if any?\n }", "protected abstract void splitBAMs();", "@SuppressWarnings(\"unused\")\r\n private void JCATsegmentSubcutaneousFat2D() {\r\n \r\n // a buffer to store a slice from the source Image\r\n short[] srcBuffer;\r\n try {\r\n srcBuffer = new short [sliceSize];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"JCATsegmentVisceralFat2D(): Can NOT allocate srcBuffer\");\r\n return;\r\n }\r\n \r\n // get the data from the segmented abdomenImage and the srcImage\r\n try {\r\n abdomenImage.exportData(0, sliceSize, sliceBuffer);\r\n srcImage.exportData(0, sliceSize, srcBuffer);\r\n } catch (IOException ex) {\r\n// System.err.println(\"JCATsegmentVisceralFat2D(): Error exporting data\");\r\n MipavUtil.displayError(\"JCATsegmentVisceralFat2D(): Error exporting data\");\r\n return;\r\n }\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n\r\n // Use the CM, the abdomenImage, and the srcImage to define points on the\r\n // abdomen and visceral VOI's\r\n ArrayList<Integer> xArrAbdom = new ArrayList<Integer>();\r\n ArrayList<Integer> yArrAbdom = new ArrayList<Integer>();\r\n ArrayList<Integer> xArrVis = new ArrayList<Integer>();\r\n ArrayList<Integer> yArrVis = new ArrayList<Integer>();\r\n findVOIs(centerOfMass, xArrAbdom, yArrAbdom, srcBuffer, xArrVis, yArrVis);\r\n \r\n int[] x1 = new int[xArrAbdom.size()];\r\n int[] y1 = new int[xArrAbdom.size()];\r\n int[] z1 = new int[xArrAbdom.size()];\r\n for(int idx = 0; idx < xArrAbdom.size(); idx++) {\r\n x1[idx] = xArrAbdom.get(idx);\r\n y1[idx] = yArrAbdom.get(idx);\r\n z1[idx] = 0;\r\n }\r\n\r\n // make the VOI's and add the points to them\r\n abdomenVOI = new VOI((short)0, \"Abdomen\");\r\n abdomenVOI.importCurve(x1, y1, z1);\r\n \r\n\r\n for(int idx = 0; idx < xArrVis.size(); idx++) {\r\n x1[idx] = xArrVis.get(idx);\r\n y1[idx] = yArrVis.get(idx);\r\n }\r\n\r\n subcutaneousVOI = new VOI((short)0, \"Subcutaneous area\");\r\n subcutaneousVOI.importCurve(x1, y1, z1);\r\n \r\n/*\r\n ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm);\r\n sliceBuffer[ycm * xDim + xcm] = 20;\r\n for (int idx = 0; idx < xArr.size(); idx++) {\r\n sliceBuffer[yArr.get(idx) * xDim + xArr.get(idx)] = 20;\r\n sliceBuffer[yArrVis.get(idx) * xDim + xArrVis.get(idx)] = 30;\r\n }\r\n // save the sliceBuffer into the abdomenImage\r\n try {\r\n abdomenImage.importData(0, sliceBuffer, false);\r\n } catch (IOException ex) {\r\n System.err.println(\"segmentThighTissue(): Error importing data\");\r\n }\r\n*/\r\n// ShowImage(srcImage, \"Segmented Abdomen\");\r\n\r\n\r\n// ViewUserInterface.getReference().getMessageFrame().append(\"Abdomen VOI points:\");\r\n// for (int idx = 0; idx < xArr.size(); idx++) {\r\n// ViewUserInterface.getReference().getMessageFrame().append(xArr.get(idx) +\" \" + yArr.get(idx));\r\n// }\r\n\r\n }", "static void filterVCF(String fn, TreeSet<Insertion> svs, PrintWriter out) throws IOException\n{\n\tScanner input = new Scanner(new FileInputStream(new File(fn)));\n\twhile(input.hasNext())\n\t{\n\t\tString line = input.nextLine();\n\t\tif(line.length() == 0 || line.charAt(0) == '#') continue;\n\t\tif(filter && !line.contains((svType == DELETE) ? \"SVTYPE=DEL\" : \"SVTYPE=INS\")) continue;\n\t\tInsertion cur = new Insertion(line);\n\t\tif(svs.contains(cur)) out.println(line);\n\t}\n}", "@SuppressWarnings(\"unused\")\r\n private void JCATsegmentVisceralFat2D01() {\r\n \r\n // get the VOI for the external boundary of the abdomen\r\n VOIVector vois = abdomenImage.getVOIs();\r\n if(vois.size() != 1) {\r\n System.err.println(\"segmentVisceralFat2D() Error, did not get 1 VOI\");\r\n return;\r\n }\r\n\r\n // abdomenImage has one VOI, lets get it\r\n VOI theVOI = vois.get(0);\r\n \r\n // find the center-of-mass of the contour\r\n VOIContour maxContour = ((VOIContour)theVOI.getCurves().get(0));\r\n int[] xVals = new int [maxContour.size()];\r\n int[] yVals = new int [maxContour.size()];\r\n int[] zVals = new int [maxContour.size()];\r\n maxContour.exportArrays(xVals, yVals, zVals);\r\n \r\n int xcm = 0, ycm = 0, zcm = 0;\r\n for (int idx = 0; idx < maxContour.size(); idx++) {\r\n xcm += xVals[idx];\r\n ycm += yVals[idx];\r\n zcm += zVals[idx];\r\n }\r\n \r\n xcm /= maxContour.size();\r\n ycm /= maxContour.size();\r\n zcm /= maxContour.size();\r\n \r\n ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm +\" Zcm: \" +zcm+\"\\n\", ViewJFrameMessage.DEBUG);\r\n \r\n // This point should be inside the abdomen\r\n // walk right until you find the external border of the abdomen\r\n \r\n // update the volumeBitSet to match the closed abdomenImage\r\n short[] srcSliceBuffer = new short[sliceSize];\r\n short[] profile = new short[xDim];\r\n try {\r\n abdomenImage.exportData(0, sliceSize, sliceBuffer);\r\n srcImage.exportData(0, sliceSize, srcSliceBuffer);\r\n } catch (IOException ex) {\r\n System.err.println(\"Error exporting data\");\r\n return;\r\n }\r\n\r\n int x = xcm;\r\n int elementCount = 0;\r\n int yOffset = ycm * xDim;\r\n while (x < xDim && sliceBuffer[x + yOffset] == abdomenTissueLabel) {\r\n profile[elementCount] = srcSliceBuffer[x + yOffset];\r\n x++;\r\n elementCount++;\r\n } // end while(...)\r\n \r\n // profile has an intensity profile of the pixels along the ray from the \r\n // contour CM to the external skin boundary. \r\n \r\n \r\n }", "public static void main(String[] args) throws IOException, ClassNotFoundException {\n\n //Test library merge and append\n File file1 = new File(\"C:/pandyDS/SpecA.mgf\");\n File file2 = new File(\"C:/pandyDS/SpecA_converted.msp\");\n SpectraReader rd = new MgfReader(file1);\n SpectraWriter wr = new MspWriter(file2);\n \n ArrayList<Spectrum> spectraAll;\n spectraAll=rd.readAll();\n for(Spectrum s:spectraAll){\n wr.write(s);\n }\n \n // File file3 = new File(\"C:/pandyDS/testfile3.msp\");\n // MergeLibrary mrg = new MergeLibrary(file1, file2, file3);\n // mrg.Start();\n\n //AppendLibrary appnd=new AppendLibrary(file1, file2);\n //appnd.Append();\n// File file=new File(\"C:/pandyDS/testfile.mgf\");\n// File decoyFile = new File(\"C:/pandyDS/testfile_decoy\" + \".mgf\");\n// BufferedWriter bw=null;\n// \n// Indexer gi;\n// try {\n// gi = new Indexer(file);\n// \n// List<IndexKey> indxList=gi.generate();\n// \n// \n// SpectraReader rd = new MgfReader(file, indxList);\n// SpectraWriter wr = new MgfWriter(decoyFile);\n//\n// bw = new BufferedWriter(new FileWriter(decoyFile));\n// Spectrum spectrum;\n// for (IndexKey indx : indxList) {\n// Long pos = indx.getPos();\n// spectrum = rd.readAt(pos);\n// wr.write(spectrum, bw);\n// }\n//\n// \n// } catch (IOException ex) {\n// Logger.getLogger(MspWriter.class.getName()).log(Level.SEVERE, null, ex);\n// }finally {\n// try {\n// bw.close();\n// } catch (IOException ex) {\n// Logger.getLogger(MspWriter.class.getName()).log(Level.SEVERE, null, ex);\n// }\n// }\n// \n// \n// \n// File specfile = new File(\"C:/pandyDS/MSMSpos20_6.mzML\");// human_hcd_selected.msp// MSMSpos20_6.mzML//AdLungCD4_Medium.mgf\n// File opfile = new File(\"C:/pandyDS/AdLungCD4_Medium.mgf\");\n//\n//// if (specfile.getName().endsWith(\"mzML\")) {\n////\n//// MzmlReader reader = new MzmlReader(specfile);\n//// ArrayList<Spectrum> spec = reader.readAll();\n//// System.out.println(\"reading finished\" + spec.toString());\n////\n//// }\n//\n// String indxfilename = specfile.getName().substring(0, specfile.getName().lastIndexOf(\".\"));\n// File indxfile = new File(specfile.getParent(), indxfilename + \".idx\");\n//\n// double pcm = 1298.5546875;//584.8876; //;\n// double error = 0.03;\n//\n// List<Spectrum> spectra = null;\n// List<IndexKey> indxList;\n//\n// if (indxfile.exists()) {\n//\n// Indexer indxer = new Indexer();\n// indxList = indxer.readFromFile(indxfile);\n//\n// } else {\n//\n// Indexer gi = new Indexer(specfile);\n// indxList = gi.generate();\n// Collections.sort(indxList);\n//\n// }\n//\n// SpectraReader rd = null;\n// SpectraWriter wr = null;\n// if (specfile.getName().endsWith(\"mgf\")) {\n// rd = new MgfReader(specfile, indxList);\n// wr = new MspWriter(opfile, spectra);\n//\n// } else if (specfile.getName().endsWith(\"msp\")) {\n// rd = new MspReader(specfile, indxList);\n// wr = new MspWriter(opfile, spectra);\n//\n// }\n//\n// if (rd != null) {\n// spectra = rd.readPart(pcm, error);\n// wr.write();\n// }\n }", "public static void processData() {\n\t\tString dirName = \"C:\\\\research_data\\\\mouse_human\\\\homo_b47_data\\\\\";\r\n\t//\tString GNF1H_fName = \"GNF1H_genes_chopped\";\r\n\t//\tString GNF1M_fName = \"GNF1M_genes_chopped\";\r\n\t\tString GNF1H_fName = \"GNF1H\";\r\n\t\tString GNF1M_fName = \"GNF1M\";\r\n\t\tString mergedValues_fName = \"GNF1_merged_expression.txt\";\r\n\t\tString mergedPMA_fName = \"GNF1_merged_PMA.txt\";\r\n\t\tString discretizedMI_fName = \"GNF1_discretized_MI.txt\";\r\n\t\tString discretizedLevels_fName = \"GNF1_discretized_levels.txt\";\r\n\t\tString discretizedData_fName = \"GNF1_discretized_data.txt\";\r\n\t\t\r\n\t\tboolean useMotifs = false;\r\n\t\tMicroArrayData humanMotifs = null;\r\n\t\tMicroArrayData mouseMotifs = null;\r\n\t\t\r\n\t\tMicroArrayData GNF1H_value = new MicroArrayData();\r\n\t\tMicroArrayData GNF1H_PMA = new MicroArrayData();\r\n\t\tGNF1H_PMA.setDiscrete();\r\n\t\tMicroArrayData GNF1M_value = new MicroArrayData();\r\n\t\tMicroArrayData GNF1M_PMA = new MicroArrayData();\r\n\t\tGNF1M_PMA.setDiscrete();\r\n\t\t\r\n\t\ttry {\r\n\t\t/*\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.txt\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.txt\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma\"); */\r\n\t\t/*\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.txt.homob44\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma.txt.homob44\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.txt.homob44\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma.txt.homob44\"); */\r\n\t\t\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.snco.txt\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma.sn.txt\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.snco.txt\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma.sn.txt\");\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\tif (useMotifs) {\r\n\t\t\thumanMotifs = new MicroArrayData();\r\n\t\t\tmouseMotifs = new MicroArrayData();\r\n\t\t\tloadMotifs(humanMotifs,GNF1H_value.geneNames,mouseMotifs,GNF1M_value.geneNames);\r\n\t\t}\r\n\t\t\r\n\t\t// combine replicates in PMA values\r\n\t\tint[][] H_PMA = new int[GNF1H_PMA.numRows][GNF1H_PMA.numCols/2];\r\n\t\tint[][] M_PMA = new int[GNF1M_PMA.numRows][GNF1M_PMA.numCols/2];\r\n\t\t\r\n\t\tint i = 0;\r\n\t\tint j = 0;\r\n\t\tint k = 0;\r\n\t\tint v = 0;\r\n\t\tk = 0;\r\n\t\tj = 0;\r\n\t\twhile (j<GNF1H_PMA.numCols-1) {\r\n\t\t\tfor (i=0;i<H_PMA.length;i++) {\r\n\t\t\t\tv = 0;\r\n\t\t\t//\tif (GNF1H_PMA.dvalues[i][j] > 0 & GNF1H_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\tif (GNF1H_PMA.dvalues[i][j] > 0 | GNF1H_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\t\tv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tH_PMA[i][k] = v;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\t\t\r\n\t\tj = 0;\r\n\t\tk = 0;\r\n\t\twhile (j<GNF1M_PMA.numCols-1) {\r\n\t\t\tfor (i=0;i<M_PMA.length;i++) {\r\n\t\t\t\tv = 0;\r\n\t\t\t//\tif (GNF1M_PMA.dvalues[i][j] > 0 & GNF1M_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\tif (GNF1M_PMA.dvalues[i][j] > 0 | GNF1M_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\t\tv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tM_PMA[i][k] = v;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\t\t\r\n\t\tint numMatched = 31;\r\n\t\t\r\n\t/*\tGNF1H_value.numCols = numMatched;\r\n\t\tGNF1M_value.numCols = numMatched; */\r\n\t\t\r\n\t\tint[][] matchPairs = new int[numMatched][2];\r\n\t\tfor(i=0;i<numMatched;i++) {\r\n\t\t\tmatchPairs[i][0] = i;\r\n\t\t\tmatchPairs[i][1] = i + GNF1H_value.numCols;\r\n\t\t}\r\n\t\t\r\n\t//\tDiscretizeAffyData H_discretizer = new DiscretizeAffyData(GNF1H_value.values,H_PMA,0);\r\n\t//\tH_discretizer.adjustIntensities();\r\n\t\ttransformRelativeAbundance(GNF1H_value.values,H_PMA,GNF1H_value.numCols);\r\n\t\t\r\n\t//\tDiscretizeAffyData M_discretizer = new DiscretizeAffyData(GNF1M_value.values,M_PMA,0);\r\n\t//\tM_discretizer.adjustIntensities();\r\n\t\ttransformRelativeAbundance(GNF1M_value.values,M_PMA,GNF1M_value.numCols);\r\n\t\t\r\n\t\tdouble[][] mergedExpression = new double[GNF1H_value.numRows][GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\tint[][] mergedPMA = new int[GNF1H_value.numRows][GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\tint[] species = null;\r\n\t\tif (!useMotifs) {\r\n\t\t\tspecies = new int[GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\t} else {\r\n\t\t\tspecies = new int[GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t}\r\n\t\t\r\n\t\tfor (i=0;i<GNF1H_value.numRows;i++) {\r\n\t\t\tSystem.arraycopy(GNF1H_value.values[i],0,mergedExpression[i],0,GNF1H_value.numCols);\r\n\t\t\tSystem.arraycopy(H_PMA[i],0,mergedPMA[i],0,GNF1H_value.numCols);\t\r\n\t\t}\r\n\t\tfor (i=0;i<GNF1M_value.numRows;i++) {\r\n\t\t\tSystem.arraycopy(GNF1M_value.values[i],0,mergedExpression[i],GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\t\tSystem.arraycopy(M_PMA[i],0,mergedPMA[i],GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\t}\r\n\t\t\r\n\t\t// concatenate experiment and gene names\r\n\t\tfor (i=0;i<GNF1H_value.numCols;i++) {\r\n\t\t\tGNF1H_value.experimentNames[i] = \"h_\" + GNF1H_value.experimentNames[i];\r\n\t\t\tspecies[i] = 1;\r\n\t\t}\r\n\t\tfor (i=0;i<GNF1M_value.numCols;i++) {\r\n\t\t\tGNF1M_value.experimentNames[i] = \"m_\" + GNF1M_value.experimentNames[i];\r\n\t\t\tspecies[i+GNF1H_value.numCols] = 2;\r\n\t\t}\r\n\t\t\r\n\t\tString[] mergedExperimentNames = null;\r\n\t\tif (!useMotifs) {\r\n\t\t\tmergedExperimentNames = new String[GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\t} else {\r\n\t\t\tmergedExperimentNames = new String[GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t}\r\n\t\tSystem.arraycopy(GNF1H_value.experimentNames,0,mergedExperimentNames,0,GNF1H_value.numCols);\r\n\t\tSystem.arraycopy(GNF1M_value.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\tif (useMotifs) {\r\n\t\t\tSystem.arraycopy(humanMotifs.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols+GNF1M_value.numCols,humanMotifs.numCols);\r\n\t\t\tSystem.arraycopy(mouseMotifs.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols+GNF1M_value.numCols+humanMotifs.numCols,mouseMotifs.numCols);\r\n\t\t\tfor (i=0;i<humanMotifs.numCols;i++) {\r\n\t\t\t\tspecies[i + GNF1H_value.numCols+GNF1M_value.numCols] = 3;\r\n\t\t\t}\r\n\t\t\tfor (i=0;i<mouseMotifs.numCols;i++) {\r\n\t\t\t\tspecies[i + GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols] = 4;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tString[] mergedGeneNames = new String[GNF1H_value.numRows];\r\n\t\tfor (i=0;i<GNF1M_value.numRows;i++) {\r\n\t\t\tmergedGeneNames[i] = GNF1H_value.geneNames[i] + \"|\" + GNF1M_value.geneNames[i];\r\n\t\t}\r\n\t\t\r\n\t\tint[] filterList = new int[GNF1M_value.numRows];\r\n\t\tint numFiltered = 0;\r\n\t\tdouble maxExpressedPercent = 1.25;\r\n\t\tint maxExpressed_H = (int) Math.floor(maxExpressedPercent*((double) GNF1H_value.numCols));\r\n\t\tint maxExpressed_M = (int) Math.floor(maxExpressedPercent*((double) GNF1M_value.numCols));\r\n\t\tint numExpressed_H = 0;\r\n\t\tint numExpressed_M = 0;\r\n\t\t\r\n\t\tfor (i=0;i<GNF1H_value.numRows;i++) {\r\n\t\t\tnumExpressed_H = 0;\r\n\t\t\tfor (j=0;j<GNF1H_value.numCols;j++) {\r\n\t\t\t\tif (GNF1H_PMA.dvalues[i][j] > 0) {\r\n\t\t\t//\tif (!Double.isNaN(GNF1H_value.values[i][j])) {\r\n\t\t\t//\tif (GNF1H_value.values[i][j] > 1.5) {\r\n\t\t\t\t\tnumExpressed_H++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tnumExpressed_M = 0;\r\n\t\t\tfor (j=0;j<GNF1M_value.numCols;j++) {\r\n\t\t\t\tif (GNF1M_PMA.dvalues[i][j] > 0) {\r\n\t\t\t//\tif (GNF1H_value.values[i][j] > 1.5) {\r\n\t\t\t//\tif (!Double.isNaN(GNF1M_value.values[i][j])) {\r\n\t\t\t\t\tnumExpressed_M++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (numExpressed_M >= maxExpressed_M | numExpressed_H >= maxExpressed_H) {\r\n\t\t\t\tfilterList[i] = 1;\r\n\t\t\t\tnumFiltered++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tGNF1H_value = null;\r\n\t\tGNF1H_PMA = null;\r\n\t\tGNF1M_value = null;\r\n\t\tGNF1M_PMA = null;\r\n\t\t\r\n\t\tdouble[][] mergedExpression2 = null;\r\n\t\tif (numFiltered > 0) {\r\n\t\t\tk = 0;\r\n\t\t\tint[][] mergedPMA2 = new int[mergedPMA.length-numFiltered][mergedPMA[0].length];\r\n\t\t\tif (!useMotifs) {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length-numFiltered][mergedExpression[0].length];\r\n\t\t\t} else {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length-numFiltered][mergedExpression[0].length + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t\t}\r\n\t\t\tString[] mergedGeneNames2 = new String[mergedGeneNames.length-numFiltered];\r\n\t\t\tfor (i=0;i<filterList.length;i++) {\r\n\t\t\t\tif (filterList[i] == 0) {\r\n\t\t\t\t\tmergedPMA2[k] = mergedPMA[i];\r\n\t\t\t\t\tif (!useMotifs) {\r\n\t\t\t\t\t\tmergedExpression2[k] = mergedExpression[i];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.arraycopy(mergedExpression[i],0,mergedExpression2[k],0,mergedExpression[i].length);\r\n\t\t\t\t\t\tSystem.arraycopy(humanMotifs.values[i],0,mergedExpression2[k],mergedExpression[i].length,humanMotifs.numCols);\r\n\t\t\t\t\t\tSystem.arraycopy(mouseMotifs.values[i],0,mergedExpression2[k],humanMotifs.numCols+mergedExpression[i].length,mouseMotifs.numCols);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmergedGeneNames2[k] = mergedGeneNames[i];\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmergedPMA = mergedPMA2;\r\n\t\t\tmergedExpression = mergedExpression2;\r\n\t\t\tmergedGeneNames = mergedGeneNames2;\r\n\t\t} else {\r\n\t\t\tif (useMotifs) {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length][mergedExpression[0].length + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t\t\tfor (i=0;i<mergedExpression.length;i++) {\r\n\t\t\t\t\tSystem.arraycopy(mergedExpression[i],0,mergedExpression2[i],0,mergedExpression[i].length);\r\n\t\t\t\t\tSystem.arraycopy(humanMotifs.values[i],0,mergedExpression2[i],mergedExpression[i].length,humanMotifs.numCols);\r\n\t\t\t\t\tSystem.arraycopy(mouseMotifs.values[i],0,mergedExpression2[i],humanMotifs.numCols+mergedExpression[i].length,mouseMotifs.numCols);\r\n\t\t\t\t}\r\n\t\t\t\tmergedExpression = mergedExpression2;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tDiscretizeAffyPairedData discretizer = new DiscretizeAffyPairedData(mergedExpression,mergedPMA,matchPairs,20);\r\n\t\tMicroArrayData mergedData = new MicroArrayData();\r\n\t\tmergedData.values = discretizer.expression;\r\n\t\tmergedData.geneNames = mergedGeneNames;\r\n\t\tmergedData.experimentNames = mergedExperimentNames;\r\n\t\tmergedData.experimentCode = species;\r\n\t\tmergedData.numCols = discretizer.numExperiments;\r\n\t\tmergedData.numRows = discretizer.numGenes;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmergedData.writeFile(dirName+mergedValues_fName);\r\n\t\t\tdiscretizer.discretizeDownTree(dirName+discretizedMI_fName);\r\n\t\t\tdiscretizer.mergeDownLevels(3,dirName+discretizedLevels_fName);\r\n\t\t\tdiscretizer.transposeDExpression();\r\n\t\t\tmergedData.setDiscrete();\r\n\t\t\tmergedData.values = null;\r\n\t\t\tmergedData.dvalues = discretizer.dExpression;\r\n\t\t\tmergedData.writeFile(dirName+discretizedData_fName);\r\n\t\r\n\t\t\tmergedData.dvalues = mergedPMA;\r\n\t\t\tmergedData.numCols = mergedPMA[0].length;\r\n\t\t\tmergedData.writeFile(dirName+mergedPMA_fName);\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t/*\tMicroArrayData mergedData = new MicroArrayData();\r\n\t\tmergedData.values = mergedExpression;\r\n\t\tmergedData.geneNames = mergedGeneNames;\r\n\t\tmergedData.experimentNames = mergedExperimentNames;\r\n\t\tmergedData.experimentCode = species;\r\n\t\tmergedData.numCols = mergedExpression[0].length;\r\n\t\tmergedData.numRows = mergedExpression.length;\r\n\t\ttry {\r\n\t\t\tmergedData.writeFile(dirName+mergedValues_fName);\r\n\t\t\tmergedData.setDiscrete();\r\n\t\t\tmergedData.values = null;\r\n\t\t//\tmergedData.dvalues = simpleDiscretization(mergedExpression,mergedPMA);\r\n\t\t\tmergedData.dvalues = simpleDiscretization2(mergedExpression,species);\r\n\t\t\tmergedData.writeFile(dirName+discretizedData_fName);\r\n\t\r\n\t\t\tmergedData.dvalues = mergedPMA;\r\n\t\t\tmergedData.numCols = mergedPMA[0].length;\r\n\t\t\tmergedData.writeFile(dirName+mergedPMA_fName);\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t} */\r\n\t\t\r\n\t}", "public void splitColsDataFiles() throws IOException, InterruptedException{\n String mkdir_command = \"mkdir models/temp\";\n Process mkdir_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", mkdir_command});\n mkdir_process.waitFor();\n \n String countColsCommand = \"head -n1 \" + dataPathTrain + \" | tr -cd \\\",\\\" | wc -c\";\n Process countCols_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", countColsCommand});\n countCols_process.waitFor();\n BufferedReader br = new BufferedReader(new InputStreamReader(countCols_process.getInputStream()));\n String numFeaturesS = br.readLine();\n int numFeatures = Integer.parseInt(numFeaturesS);\n \n for(int i=1;i<=numFeatures;i++){\n String cutColTr_command = \"cut -d',' -f\" + i + \" \" + dataPathTrain + \" > models/temp/tr_\" + i + \".csv\";\n Process cutColTr_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", cutColTr_command});\n cutColTr_process.waitFor();\n String cutColTe_command = \"cut -d',' -f\" + i + \" \" + dataPathTest + \" > models/temp/te_\" + i + \".csv\";\n Process cutColTe_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", cutColTe_command});\n cutColTe_process.waitFor();\n }\n int targetsIndex = numFeatures + 1;\n String cutColTr_command = \"cut -d',' -f\" + targetsIndex + \" \" + dataPathTrain + \" > models/temp/tr_targets.csv\";\n Process cutColTr_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", cutColTr_command});\n cutColTr_process.waitFor();\n String cutColTe_command = \"cut -d',' -f\" + targetsIndex + \" \" + dataPathTest + \" > models/temp/te_targets.csv\";\n Process cutColTe_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", cutColTe_command});\n cutColTe_process.waitFor();\n }", "public void combine(ArrayList<String> files){\n\n ArrayList<String> tsList = null;\n ArrayList<String> mp4List;\n AppLog.i(TAG, \"Video Combin\" );\n\n try {\n tsList = mp42Ts2(files);\n } catch (Exception e){\n AppLog.e(TAG,\"mp42Ts2 error\");\n }\n\n if (tsList == null) {\n AppLog.e(TAG,\"mp42Ts2 error\");\n return;\n }\n\t\tAppLog.i(TAG,\"mp4 to ts convert finished\");\n\t\t\n mp4List = combineTs2Mp4(tsList);\n if (mp4List == null) {\n AppLog.e(TAG,\"combineTs2Mp4 error\");\n return;\n }\n\n\t\tAppLog.i(TAG,\"ts to mp4 convert finished\");\n\n for (int i=0;i<tsList.size();i++){\n File f = new File(tsList.get(i));\n f.delete();\n }\n\n if (isDeleteOld){\n\t\t\t/* the first file is use as the target file */\n for (int i=1;i<files.size();i++){\n File f = new File(files.get(i));\n f.delete();\n }\n }\n }", "public void stopImage() {\r\n\t\tint nComps = m_blocks.size();\r\n\t\tassert(nComps == 3);\r\n\t\t\r\n\t\t// Pack the DCT features\r\n\t\tIterator<double[][]> it1 = m_blocks.get(0).iterator();\r\n\t\tIterator<double[][]> it2 = m_blocks.get(1).iterator();\r\n\t\tIterator<double[][]> it3 = m_blocks.get(2).iterator();\t\t\t\t\r\n\r\n\t\tfor (int i = 0; i < m_blocks.get(0).size(); i++) {\r\n\t\t DataVec vec = new DataVec();\r\n\t\t \r\n\t\t\tdouble[][] Y = it1.next();\r\n\t\t\tdouble[][] Cb = it2.next();\r\n\t\t\tdouble[][] Cr = it3.next();\r\n\t\t\t\r\n\t\t\t// Only supports 4:4:4 JPEG format (maybe standard)\r\n\t\t\tassert(Cb.length == Y.length);\r\n\t\t\tassert(Cr.length == Y.length);\r\n\t\t\t\r\n\t\t\t// Zigzag scan\r\n\t\t\tfor (int z = 0; z < useDctFeature; z++) {\r\n\t\t\t\tint j = jpegNaturalOrder[z] / 8;\r\n\t\t\t\tint k = jpegNaturalOrder[z] % 8;\r\n\t\t\t\tvec.add(Y[j][k]);\r\n\t\t\t\tvec.add(Cb[j][k]);\r\n\t\t\t\tvec.add(Cr[j][k]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tm_feature.add(vec);\r\n\t\t}\r\n\r\n\t\t// Number of blocks\r\n\t\tint nBlocks = m_feature.size();\r\n\r\n\t\t// Cluster parameters\r\n\t\tfinal int paramClusterNum = 40; // if members > this number, then add to dictionary\r\n\t\tfinal int paramCountThres = 10; // if members > this number, then add to dictionary\r\n\r\n\t\t// Cluster\r\n\t\tCluster cluster = new Cluster(m_feature, 0, 1); // check min and max\r\n\t\tTriple<Integer[], Integer[], DataVec[]> res = cluster.cluster(System.out, \r\n\t\t\t\tparamClusterNum, 20);\r\n\t\tInteger[] groups = res.first;\r\n\t\tInteger[] memberCount = res.second;\r\n\t\tDataVec[] centroids = res.third;\r\n\r\n\t\t// Feature select\r\n\t\tfor (int i = 0; i < memberCount.length; i++) {\r\n\t\t if (memberCount[i] >= paramCountThres) {\r\n\t\t Vector<double[][]> block = dataVecToBlock(nComps, centroids[i]);\r\n\t\t m_blockArchive.add(block);\r\n\t\t }\r\n\t\t}\r\n\t}", "protected void initFile(String id) throws FormatException, IOException {\n super.initFile(id);\n in = new RandomAccessFile(id, \"r\");\n \n // initialize an array containing tag offsets, so we can\n // use an O(1) search instead of O(n) later.\n // Also determine whether we will be reading color or grayscale\n // images\n \n //in.seek(0);\n byte[] toRead = new byte[4];\n in.read(toRead);\n long order = batoi(toRead); // byte ordering\n little = toRead[2] != 0xff || toRead[3] != 0xff;\n \n toRead = new byte[4];\n Vector v = new Vector(); // a temp vector containing offsets.\n \n // Get first offset.\n in.seek(16);\n in.read(toRead);\n int nextOffset = batoi(toRead);\n int nextOffsetTemp;\n \n boolean first = true;\n while(nextOffset != 0) {\n in.seek(nextOffset + 4);\n in.read(toRead);\n // get next tag, but still need this one\n nextOffsetTemp = batoi(toRead);\n in.read(toRead);\n if ((new String(toRead)).equals(\"PICT\")) {\n boolean ok = true;\n if (first) {\n // ignore first image if it is called \"Original Image\" (pure white)\n first = false;\n in.skipBytes(47);\n byte[] layerNameBytes = new byte[127];\n in.read(layerNameBytes);\n String layerName = new String(layerNameBytes);\n if (layerName.startsWith(\"Original Image\")) ok = false;\n }\n if (ok) v.add(new Integer(nextOffset)); // add THIS tag offset\n }\n if (nextOffset == nextOffsetTemp) break;\n nextOffset = nextOffsetTemp;\n }\n \n in.seek(((Integer) v.firstElement()).intValue());\n \n // create and populate the array of offsets from the vector\n numBlocks = v.size();\n offsets = new int[numBlocks];\n for (int i = 0; i < numBlocks; i++) {\n offsets[i] = ((Integer) v.get(i)).intValue();\n }\n \n // populate the imageTypes that the file uses\n toRead = new byte[2];\n imageType = new int[numBlocks];\n for (int i = 0; i < numBlocks; i++) {\n in.seek(offsets[i]);\n in.skipBytes(40);\n in.read(toRead);\n imageType[i] = batoi(toRead);\n }\n \n initMetadata();\n }", "public void accumulateDetailedLogFiles(){\r\n\t\tString filter2 = \"_advanced_detail_analyzed\";\r\n\t\tString filter1 = \"_standard_detail_analyzed\";\r\n\r\n\t\tArrayList<File> files1 = new ArrayList<File>();\r\n\t\tArrayList<File> files2 = new ArrayList<File>();\r\n\t\t\r\n\t\t//begin with creation of new file\r\n\t\tJFileChooser fc = new JFileChooser();\r\n\t\t\r\n\t\t//set directory and \".log\" filter\r\n\t\tfc.setMultiSelectionEnabled(true);\r\n\t\tfc.setCurrentDirectory(new File(System.getProperty(\"user.dir\")));\r\n\t\tfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\t\r\n\t\tint status = fc.showDialog(this, Messages.getString(\"EditLogControlPanel.approveButton\"));\r\n\t\t\r\n\t\tif(status == JFileChooser.APPROVE_OPTION){\r\n\t\t\tFile[] tmpFiles = fc.getSelectedFiles();\r\n\t\t\t//sort the files\r\n\t\t\tArrayList<File> sortedFiles = new ArrayList<File>();\r\n\t\t\t\r\n\t\r\n\t\t\tfor(int i = 0; i < tmpFiles.length; i++){\r\n\t\t\t\tif(sortedFiles.size() == 0) sortedFiles.add(tmpFiles[i]);\r\n\t\t\t\telse{\r\n\t\t\t\t\tboolean sorted = false;\r\n\t\t\t\t\tfor(File f:sortedFiles){\r\n\t\t\t\t\t\tif(compare(tmpFiles[i].getName().split(\"_\"),f.getName().split(\"_\")) < 0) {\r\n\t\t\t\t\t\t\tsorted = true;\r\n\t\t\t\t\t\t\tsortedFiles.add(sortedFiles.indexOf(f), tmpFiles[i]);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!sorted) sortedFiles.add(tmpFiles[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tFileWriter fstream1;\r\n\t\t\tFileWriter fstream2;\r\n\t\t\ttry {\r\n\t\t\t\tif(!(new File(tmpFiles[0].getParent() + \"/diagramms/\")).exists()) (new File(tmpFiles[0].getParent() + \"/diagramms/\")).mkdir();\r\n\t\t\t\tfstream1 = new FileWriter(tmpFiles[0].getParent() + \"/diagramms/standardAttackedDetailedDiagramm.txt\", false);\r\n\t\t\t\tBufferedWriter out1 = new BufferedWriter(fstream1);\r\n\t\t\t\t\r\n\t\t\t\tfstream2 = new FileWriter(tmpFiles[0].getParent() + \"/diagramms/advancedAttackedDetailedDiagramm.txt\", false);\r\n\t\t\t\tBufferedWriter out2 = new BufferedWriter(fstream2);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tfloat[][] standardArray = new float[100][100];\r\n\t\t\t\tfloat[][] advancedArray = new float[100][100];\r\n\t\t\t\t\r\n\t\t\t\tfor(int i = 0; i < standardArray.length; i++){\r\n\t\t\t\t\tfor(int j = 0; j < standardArray[0].length; j++){\r\n\t\t\t\t\t\tstandardArray[i][j] = -1;\r\n\t\t\t\t\t\tadvancedArray[i][j] = -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tint counter = 0;\r\n\t\t\t\tfor(File file:sortedFiles){\r\n\t\t\t\t\t//get log names\r\n\t\t\t\t\tArrayList<File> files = getFileList(file);\r\n\t\t\t\t\r\n\t\t\t\t\tfiles1 = new ArrayList<File>();\r\n\t\t\t\t\tfiles2 = new ArrayList<File>();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(File f:files){\r\n\t\t\t\t\t\tif(f.getName().contains(filter1)) files1.add(f);\r\n\t\t\t\t\t\telse if(f.getName().contains(filter2)) files2.add(f);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tfloat [] accu1 = accumulateDetailFiles(files1);\r\n\t\t\t\t\tfloat [] accu2 = accumulateDetailFiles(files2);\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int i = 0; i < accu1.length; i++){\r\n\t\t\t\t\t\tstandardArray[i][counter] = accu1[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int i = 0; i < accu2.length; i++){\r\n\t\t\t\t\t\tadvancedArray[i][counter] = accu2[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor(int j = 0; j < tmpFiles.length; j++) {\r\n\t\t\t\t\tout1.write(\"1 \");\r\n\t\t\t\t\tout2.write(\"1 \");\r\n\t\t\t\t}\r\n\t\t\t\tout1.write(\"\\n\");\r\n\t\t\t\tout2.write(\"\\n\");\r\n\t\t\t\tfor(int i = 1; i < standardArray.length; i++) {\r\n\t\t\t\t\tif(standardArray[i][0] == -1) break;\r\n\t\t\t\t\tfor(int j = 0; j < tmpFiles.length; j++){\r\n\t\t\t\t\t\tif(standardArray[i][j] == -1) out1.write(\"0 \");\r\n\t\t\t\t\t\telse out1.write(standardArray[i][j] + \" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tout1.write(\"\\n\");\r\n\t\t\t\t}\r\n\t\t\t\tfor(int i = 1; i < advancedArray.length; i++) {\r\n\t\t\t\t\tif(advancedArray[i][0] == -1) break;\r\n\t\t\t\t\tfor(int j = 0; j < tmpFiles.length; j++){\r\n\t\t\t\t\t\tif(advancedArray[i][j] == -1) out2.write(\"0 \");\r\n\t\t\t\t\t\telse out2.write(advancedArray[i][j] + \" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tout2.write(\"\\n\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tout1.close();\r\n\t\t\t\tout2.close();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Test\n public void mergeWithStopAfterFirstSegment() throws IOException, MkvElementVisitException {\n final CountVisitor countVisitor = runMergerToStopAtFirstNonMatchingSegment(\"output_get_media.mkv\");\n\n //Validate that there is only one EBML header and segment and tracks\n //but there are 32 clusters and tracks as expected.\n assertCountsAfterMerge(countVisitor);\n }", "public static void main(String[] args) throws Exception {\n\n String dataPath = FileLoader.getDataPath(CropFileTest.class);\n Fits inFits = FileLoader.loadFits(CropFileTest.class, fileName);\n\n //create first FITS file\n String outFitsName1 =dataPath+ \"cropFileUsingMinMax_\"+fileName;\n int min_x = 47, min_y = 50, max_x = 349, max_y = 435;\n Fits outFits1 = CropFile.do_crop(inFits, min_x, min_y, max_x, max_y);\n FileOutputStream fout1 = new java.io.FileOutputStream(outFitsName1);\n BufferedDataOutputStream out1 = new BufferedDataOutputStream(fout1);\n outFits1.write(out1);\n fout1.close();\n out1.close();\n\n\n inFits = FileLoader.loadFits(CropFileTest.class, fileName);\n String outFitsName2 =dataPath+ \"cropFileUsingMinMaxExtension_\"+fileName;\n //create first FITS file\n Fits outFits2 = CropFile.do_crop(inFits, 0, min_x, min_y, max_x, max_y);\n FileOutputStream fout2 = new java.io.FileOutputStream(outFitsName2);\n BufferedDataOutputStream out2 = new BufferedDataOutputStream(fout2);\n outFits2.write(out2);\n fout2.close();\n out2.close();\n\n\n\n\n //create the third FITS file\n //reload FITS file since the continues reading caused the file pointer issue\n inFits = FileLoader.loadFits(CropFileTest.class, fileName);\n String outFitsName3 =dataPath+ \"cropFileUsingWorldPtRadius_\"+fileName;\n double ra = 329.162375;\n double dec = 62.2954;\n double radius = 3.18;\n FileOutputStream fout3 = new java.io.FileOutputStream(outFitsName3);\n Fits outFits3 =CropFile.do_crop(inFits, new WorldPt(ra, dec), radius);\n BufferedDataOutputStream out3 = new BufferedDataOutputStream(fout3);\n outFits3.write(out3);\n fout3.close();\n out3.close();\n\n\n\n }", "public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}", "private File testFiltering(final File vcf, final String outputExtension, final double minAb, final int minDp, final int minGq, final double maxFs) throws Exception {\n final File out = VcfTestUtils.createTemporaryIndexedFile(\"filterVcfTest.\", outputExtension);\n\n final FilterVcf filterer = new FilterVcf();\n filterer.CREATE_INDEX = true;\n filterer.INPUT = vcf;\n filterer.OUTPUT = out;\n filterer.MIN_AB = minAb;\n filterer.MIN_DP = minDp;\n filterer.MIN_GQ = minGq;\n filterer.MAX_FS = maxFs;\n\n final int retval = filterer.doWork();\n if (retval != 0) {\n throw new PicardException(\"Return value non-zero: \" + retval);\n }\n\n return out;\n }", "public static List<File> splitData(String treeFileName, int foldSize) {\n ArrayList<File> tempFilePaths = new ArrayList<File>();\n Random random = new Random(100);\n for (int i = 0; i < foldSize+1; i++) {\n tempFilePaths.add(new File(String.valueOf(random.nextInt())));\n }\n URL treeResource = CommonUtils.class.getClassLoader().getResource(treeFileName);\n if (treeResource == null) {\n logger.error(\"Make sure the file is in the classpath of the project: \" + treeFileName);\n return null;\n }\n\n URL trainResource = null;\n\n File treeFile = new File(treeResource.getPath());\n ArrayList<String> tempAttributeList = new ArrayList<String>();\n try {\n FileReader treeFileInputStream = new FileReader(treeFile);\n BufferedReader bufferedReader = new BufferedReader(treeFileInputStream);\n String line = null;\n String line1 = null;\n int count = 0;\n try {\n while ((line = bufferedReader.readLine()) != null) {\n if (count == 0) {\n trainResource = CommonUtils.class.getClassLoader().getResource(line);\n if (trainResource == null) {\n logger.error(\"Make sure the file is in the classpath of the project: \" + line);\n return null;\n }\n FileReader fileReader = new FileReader(new File(trainResource.getPath()));\n BufferedReader bufferedReader1 = new BufferedReader(fileReader);\n int count1 = 0;\n while ((line1 = bufferedReader1.readLine()) != null) {\n if (count1 == 0) {\n BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(tempFilePaths.get(0)));\n bufferedWriter.write(line1);\n bufferedWriter.write(\"\\n\");\n bufferedWriter.flush();\n bufferedWriter.close();\n }else {\n tempAttributeList.add(line1);\n }\n count1++;\n }\n }\n count++;\n logger.info(line);\n }\n } catch (IOException e) {\n logger.error(e.getMessage(), e);\n }\n\n\n } catch (IOException e) {\n logger.error(e.getMessage(), e);\n }\n\n // now we randomly write data\n int fileIndex = 1;\n while(tempAttributeList.size()!=0) {\n int index0 = new Random(100).nextInt();\n if(index0<0){\n index0 = index0 * -1;\n }\n String s = tempAttributeList.get(index0 % tempAttributeList.size());\n\n try {\n BufferedWriter bufferedWriter1 = new BufferedWriter(new FileWriter(tempFilePaths.get(fileIndex),true));\n bufferedWriter1.write(s);\n bufferedWriter1.write(\"\\n\");\n bufferedWriter1.flush();\n bufferedWriter1.close();\n } catch (IOException e) {\n logger.error(e.getMessage(), e);\n }\n tempAttributeList.remove(s);\n if(fileIndex==foldSize){\n fileIndex=1;\n }else{\n fileIndex++;\n }\n }\n return tempFilePaths;\n }", "private ListMap<String, String> slurpFilters(final File vcf) {\n final ListMap<String, String> map = new ListMap<>();\n final VCFFileReader in = new VCFFileReader(vcf, false);\n for (final VariantContext ctx : in) {\n if (ctx.isNotFiltered()) continue;\n for (final String filter : ctx.getFilters()) {\n map.add(ctx.getID(), filter);\n }\n }\n in.close();\n return map;\n }", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "public static void opencv_line_removal(String destinationDir) {\n\n\t\tString dirPath = destinationDir;\n\t\t// System.out.println(destinationDir);\n\t\tFile dir = new File(dirPath);\n\t\tString filename, filepath;\n\t\t// System.out.println(\"directory read\");\n\n\t\tFile[] files = dir.listFiles();\n\t\tfor (File aFile : files) {\n\n\t\t\tfilename = aFile.getName();\n\t\t\tfilepath = destinationDir + '/' + filename;\n\n\t\t\t// System.out.println(\"file \"+filename);\n\t\t\t// System.out.println(filepath);\n\n\t\t\t// Load the image\n\t\t\tMat source = Imgcodecs.imread(filepath);\n\n\t\t\t// Mat Template class for specifying the size of an image\n\t\t\tMat image_h = Mat.zeros(source.size(), CvType.CV_8UC1);\n\t\t\tMat image_v = Mat.zeros(source.size(), CvType.CV_8UC1);\n\t\t\tMat output = new Mat();\n\n\t\t\t// Inverse vertical image\n\t\t\tCore.bitwise_not(source, output);\n\t\t\tMat output_result = new Mat();\n\n\t\t\t// Create structure element for extracting horizontal lines through morphology\n\t\t\t// operations\n\t\t\tMat kernel_h = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(20, 1));\n\n\t\t\t// Apply morphology operations\n\t\t\tImgproc.morphologyEx(output, image_h, Imgproc.MORPH_OPEN, kernel_h);\n\n\t\t\tCore.subtract(output, image_h, output_result);\n\n\t\t\t// Create structure element for extracting vertical lines through morphology\n\t\t\t// operations\n\t\t\tMat kernel_v = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(1, 20));\n\n\t\t\t// Apply morphology operations vertical\n\t\t\tImgproc.morphologyEx(output_result, image_v, Imgproc.MORPH_OPEN, kernel_v);\n\t\t\tMat output_result2 = new Mat();\n\n\t\t\tCore.subtract(output_result, image_v, output_result2);\n\n\t\t\t// write an image after removed horizontal and vertical line from image\n\t\t\tImgcodecs.imwrite(filepath, output_result2);\n\n\t\t\tSystem.out.println(filename + \" written \");\n\t\t\tBufferedImage img = null;\n\t\t\tFile f = null;\n\n\t\t\ttry {\n\t\t\t\tf = new File(filepath);\n\t\t\t\timg = ImageIO.read(f);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t\t// get image width and height\n\t\t\tint width = img.getWidth();\n\t\t\tint height = img.getHeight();\n\t\t\t// convert to negative\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\t\tint p = img.getRGB(x, y);\n\t\t\t\t\tint a = (p >> 24) & 0xff;\n\t\t\t\t\tint r = (p >> 16) & 0xff;\n\t\t\t\t\tint g = (p >> 8) & 0xff;\n\t\t\t\t\tint b = p & 0xff;\n\t\t\t\t\t// subtract RGB from 255\n\t\t\t\t\tr = 255 - r;\n\t\t\t\t\tg = 255 - g;\n\t\t\t\t\tb = 255 - b;\n\t\t\t\t\t// set new RGB value\n\t\t\t\t\tp = (a << 24) | (r << 16) | (g << 8) | b;\n\t\t\t\t\timg.setRGB(x, y, p);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// write image\n\t\t\ttry {\n\t\t\t\tf = new File(filepath);\n\n\t\t\t\tImageIO.write(img, \"jpg\", f);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}\n\n\t\t//System.out.println(\" Convert all doccument type into Image \");\n\t}", "public void accumulateSimpleLogFiles(String mode){\r\n\t\tString filter2 = \"_advanced_simple_analyzed\";\r\n\t\tString filter1 = \"_standard_simple_analyzed\";\r\n\r\n\t\tArrayList<File> files1 = new ArrayList<File>();\r\n\t\tArrayList<File> files2 = new ArrayList<File>();\r\n\t\t\r\n\t\t//begin with creation of new file\r\n\t\tJFileChooser fc = new JFileChooser();\r\n\t\t\r\n\t\t//set directory and \".log\" filter\r\n\t\tfc.setMultiSelectionEnabled(true);\r\n\t\tfc.setCurrentDirectory(new File(System.getProperty(\"user.dir\")));\r\n\t\tfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\t\r\n\t\tint status = fc.showDialog(this, Messages.getString(\"EditLogControlPanel.approveButton\"));\r\n\t\t\r\n\t\tif(status == JFileChooser.APPROVE_OPTION){\r\n\t\t\tFile[] tmpFiles = fc.getSelectedFiles();\r\n\t\t\t//sort the files\r\n\t\t\tArrayList<File> sortedFiles = new ArrayList<File>();\r\n\t\t\t\r\n\t\r\n\t\t\tfor(int i = 0; i < tmpFiles.length; i++){\r\n\t\t\t\tif(sortedFiles.size() == 0) sortedFiles.add(tmpFiles[i]);\r\n\t\t\t\telse{\r\n\t\t\t\t\tboolean sorted = false;\r\n\t\t\t\t\tfor(File f:sortedFiles){\r\n\t\t\t\t\t\tif(compare(tmpFiles[i].getName().split(\"_\"),f.getName().split(\"_\")) < 0) {\r\n\t\t\t\t\t\t\tsorted = true;\r\n\t\t\t\t\t\t\tsortedFiles.add(sortedFiles.indexOf(f), tmpFiles[i]);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!sorted) sortedFiles.add(tmpFiles[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tFileWriter fstream1;\r\n\t\t\ttry {\r\n\t\t\t\tif(!(new File(tmpFiles[0].getParent() + \"/diagramms/\")).exists()) (new File(tmpFiles[0].getParent() + \"/diagramms/\")).mkdir();\r\n\t\t\t\tfstream1 = new FileWriter(tmpFiles[0].getParent() + \"/diagramms/simpleDiagramm.txt\", false);\r\n\t\t\t\tBufferedWriter out = new BufferedWriter(fstream1);\r\n\r\n\t\t\t\tfor(File file:sortedFiles){\r\n\t\t\t\t\t//get log names\r\n\t\t\t\t\tArrayList<File> files = getFileList(file);\r\n\t\t\t\t\r\n\t\t\t\t\tfiles1 = new ArrayList<File>();\r\n\t\t\t\t\tfiles2 = new ArrayList<File>();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(File f:files){\r\n\t\t\t\t\t\tif(f.getName().contains(filter1)) files1.add(f);\r\n\t\t\t\t\t\telse if(f.getName().contains(filter2)) files2.add(f);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tfloat [] accu1;\r\n\t\t\t\t\tfloat [] accu2;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(mode.equals(\"SP\")){\r\n\t\t\t\t\t\taccu1 = accumulateSimpleSilentPeriodFiles(files1);\r\n\t\t\t\t\t\taccu2 = accumulateSimpleSilentPeriodFiles(files2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\taccu1 = accumulateSimpleMixFiles(files1);\r\n\t\t\t\t\t\taccu2 = accumulateSimpleMixFiles(files2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tout.write(\"\" + accu1[0]);\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int i = 0; i < accu2.length; i++){\r\n\t\t\t\t\t\tif(accu2[i] != 0)out.write(\" \" + accu2[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tout.write(\"\\n\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tout.write(\"#\");\r\n\t\t\t\t\tfor(int i = 0; i < accu1.length; i++){\r\n\t\t\t\t\t\tif(accu1[i] != 0)out.write(\" \" + accu1[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tout.write(\"\\n\");\r\n\t\t\t\t}\t\t\t\t\r\n\r\n\t\t\t\tout.close();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "private ThirdLevelFrameGroup [] groupIntoScenes() {\r\n\r\n\t\t/**-----------------------------------------------------------------------**/\r\n\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t/**Get all the motion values within each frame into one array\r\n\t\t * and computed the standard deviation of these values. **/\r\n\t\tVector<Double> all_motion_values = new Vector<Double>();\r\n\t\tfor(int i = 0; i < skeletonNodes.length; i++) {\r\n\t\t\tSkeletonNode [] root_iter = skeletonNodes[i].getIterator();\r\n\t\t\tfor(int k = 0; k < root_iter.length; k++)\r\n\t\t\t\tall_motion_values.add(root_iter[k].getMotionValue());\r\n\t\t}\r\n\r\n\t\tdouble[]all_motion_values_arr = new double[all_motion_values.size()];\r\n\t\tEnumeration<Double> mot_val_enum = all_motion_values.elements();\r\n\t\tint mot_val_counter = 0;\r\n\r\n\t\twhile(mot_val_enum.hasMoreElements()) {\r\n\t\t\tdouble next_val = mot_val_enum.nextElement();\r\n\t\t\tif(next_val > 0) {\r\n\t\t\t\tall_motion_values_arr[mot_val_counter++] = next_val;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tdouble motion_val_std = PCATools.getStdDev(all_motion_values_arr);\r\n\t\tdouble num_stds = ControlVariables.num_third_level_motion_val_stds;\r\n\t\t/**-----------------------------------------------------------------------**/\r\n\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t/**-----------------------------------------------------------------------**/\r\n\t\t/**Create frame groups for each node that has been\r\n\t\t * found to contain a significant motion value**/\r\n\t\tfor(int i = 0; i < skeletonWrappers.length-ControlVariables.min_slack_size; i++) {\r\n\r\n\t\t\t/**---------------------------------------------------------------**/\r\n\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\tSkeletonWrapper main_wrapper = skeletonWrappers[i];\r\n\t\t\tSkeletonNode main_wrapper_root = main_wrapper.getRoot();\r\n\t\t\tdouble main_wrapper_root_size = main_wrapper_root.getSize();\r\n\r\n\t\t\t/**---------------------------------------------------------------**/\r\n\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t/**---------------------------------------------------------------**/\r\n\t\t\tSkeletonNode [] root_iter = main_wrapper_root .getIterator();\r\n\t\t\tint roots_iterated = 0;\r\n\r\n\t\t\tfor(int k = 0; k < root_iter.length; k++) {\r\n\t\t\t\troots_iterated++;\r\n\t\t\t\t\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t\tboolean first_level = \t\troot_iter[k].isFirstLevel();\r\n\t\t\t\tdouble next_root_mot_val =\troot_iter[k].getMotionValue();\r\n\t\t\t\tdouble next_root_size =\t\troot_iter[k].getSize();\r\n\t\t\t\tint next_root_mag =\t\t\troot_iter[k].getMag();\r\n\t\t\t\tdouble [] next_root_disp =\troot_iter[k].getDisplacement();\r\n\r\n\t\t\t\tString next_root_name = \troot_iter[k].getName();\r\n\t\t\t\tString next_root_parent_name =\r\n\t\t\t\t\t\troot_iter[k].getParent() == null ? next_root_name : root_iter[k].getParent().getName();\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\t/**See if a frame group can be created from this group.\r\n\t\t\t\t * Not existing in the wrapped hashtable means in must\r\n\t\t\t\t * belong to some other frame group already.**/\r\n\t\t\t\tdouble motion_val_threshold = num_stds*motion_val_std;\r\n\t\t\t\tif(\r\n\t\t\t\t\t\t(!first_level) &&\r\n\t\t\t\t\t\t(next_root_mag > 1) &&\r\n\t\t\t\t\t\t(main_wrapper.getFromHash(next_root_name) != null) &&\r\n\t\t\t\t\t\t(next_root_mot_val > motion_val_threshold) &&\r\n\t\t\t\t\t\t(ControlVariables.skeleton_sub_size_factor*next_root_size < main_wrapper_root_size)\r\n\t\t\t\t\t\t) {\r\n\r\n\t\t\t\t\tThirdLevelFrameGroup tlfg = createFrameGroup(\r\n\t\t\t\t\t\t\tskeletonWrappers,\r\n\t\t\t\t\t\t\ti,\r\n\t\t\t\t\t\t\tnext_root_parent_name,\r\n\t\t\t\t\t\t\tnext_root_mot_val,\r\n\t\t\t\t\t\t\tnext_root_disp,\r\n\t\t\t\t\t\t\tmotion_val_threshold);\r\n\t\t\t\t\tif(tlfg.getRightBoundOffset() > ControlVariables.min_slack_size)\r\n\t\t\t\t\t\troot_iter[k].setTLFG(tlfg);\r\n\t\t\t\t\t\r\n\t\t\t\t\t/**Make sure a left bound is created here**/\r\n\t\t\t\t\tint abc = 11;\r\n\t\t\t\t\tif(abc<0) {\r\n\t\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\t\"Frame: \"+ i +\r\n\t\t\t\t\t\t\t\t\" Roots iterated: \"+roots_iterated+\r\n\t\t\t\t\t\t\t\t\" Frame Group Size: \" + tlfg.getRightBoundOffset());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t}\r\n\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t/**---------------------------------------------------------------**/\r\n\t\t}\r\n\t\t/**-----------------------------------------------------------------------**/\r\n\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t/**-----------------------------------------------------------------------**/\r\n\t\t/**Extract all the frame groups collected**/\r\n\t\tVector<ThirdLevelFrameGroup> all_frame_groups = new Vector<ThirdLevelFrameGroup>();\r\n\t\tfor(int i = 0; i < skeletonNodes.length; i++) {\r\n\r\n\t\t\tSkeletonNode [] root_iter = skeletonNodes[i].getIterator();\r\n\t\t\tfor(int k = 0; k < root_iter.length; k++) {\r\n\r\n\t\t\t\tThirdLevelFrameGroup temp_TLFG = root_iter[k].getTLFG();\r\n\t\t\t\tif(temp_TLFG != null)\r\n\t\t\t\t\tall_frame_groups.add(temp_TLFG);\r\n\t\t\t}\r\n\t\t}\r\n\t\tThirdLevelFrameGroup [] all_frame_groups_arr =\r\n\t\t\t\tnew ThirdLevelFrameGroup [all_frame_groups.size()];\r\n\t\tall_frame_groups.toArray(all_frame_groups_arr);\r\n\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t/**-----------------------------------------------------------------------**/\r\n\r\n\t\treturn all_frame_groups_arr;\r\n\t}", "private static void tezt_readXXXAndWriteXXX_overlapping_instance_FC_FC_io_impl() {\n // Using random arguments, in case treatments actually mess-up\n // with unthought combinations of counts, chunk sizes and byte shifts.\n final Random random = new Random(123456789L);\n // Doing all with a single file.\n final File file = TestUtils.newTempFile();\n final boolean appendMode = false;\n // Used if not using dst as src.\n final FCHolder otherSrcFCH = new FCHolder(file, \"r\");\n final FCHolder dstFCH = new FCHolder(file, \"rw\");\n \n final int maxSize = MAX_COUNT_IO;\n \n try {\n final int nbrOfCopies = NBR_OF_RANDOM_COPIES_IO;\n for (int k=0;k<nbrOfCopies;k++) {\n final int size = 1 + random.nextInt(maxSize);\n final int srcPos = random.nextInt(size);\n final int dstPos = random.nextInt(size);\n final int maxRem = Math.min(size-srcPos, size-dstPos);\n final int count = 1 + random.nextInt(maxRem);\n // Sometimes < count, sometimes not.\n final int maxChunkSize = 1 + random.nextInt(2*count);\n if (DEBUG) {\n System.out.println(\"count = \"+count);\n System.out.println(\"maxChunkSize = \"+maxChunkSize);\n }\n \n System.gc(); // making room\n final ByteCopyUtils utils = newBCU(\n DefaultMBBHelper.INSTANCE,\n false, // threadSafe\n maxChunkSize);\n if (DEBUG) {\n System.out.println(\"utils = \"+utils);\n }\n for (boolean sameInstance : FALSE_TRUE) {\n if (DEBUG) {\n System.out.println(\"sameInstance = \"+sameInstance);\n }\n final FCHolder srcFCH;\n if (sameInstance) {\n srcFCH = dstFCH;\n } else {\n srcFCH = otherSrcFCH;\n }\n\n final boolean posInSrc = false;\n final boolean posInDst = false;\n final boolean readAllCount = true;\n final boolean writeAllRead = true;\n\n dstFCH.setSizeAndFill(size);\n if (!sameInstance) {\n // size is in file\n assertEquals(size, UncheckedIO.size(srcFCH.getFC()));\n }\n final boolean cancelIfHugeCopy = false;\n final boolean checkAdjacentDstBytes = true;\n final boolean mightOverlap = true;\n callAndCheck_readXXXAndWriteXXX(\n utils,\n new MyFCHContainer(srcFCH, appendMode),\n new MyFCHContainer(dstFCH, appendMode),\n srcPos,\n dstPos,\n posInSrc,\n posInDst,\n count,\n readAllCount,\n writeAllRead,\n cancelIfHugeCopy,\n checkAdjacentDstBytes,\n mightOverlap);\n }\n }\n } finally {\n otherSrcFCH.release();\n dstFCH.release();\n }\n }", "public static void main(String[] args) throws FileNotFoundException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\tif (args.length != 2) {\n\t\t\tSystem.out.println(\"Usage: java PE1910_SplitFiles souceFile numberOfPieces\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t// Get number of pieces\n\t\tint numberOfPiecesArg = Integer.parseInt(args[1]);\n\n\t\t// Get Source file and create input stream for it\n\t\tBufferedInputStream inputArg = new BufferedInputStream(new FileInputStream(\n\t\t\t\tnew File(\"C:/Java/examples/\" + args[0])));\n\n\t\t// Get fileName and extension of the source file\n\t\tFile sourceFileArg = new File(\"C:/Java/examples/\" + args[0]);\n\t\tString fileNameArg = sourceFileArg.getName().substring(0, sourceFileArg.getName().length() - 4);\n\n\t\t// Get fileSize and size of the split file\n\t\tlong fileSizeArg = inputArg.available();\n\t\tint partArg = (int)\n\t\t\t\tMath.ceil(1.0 * fileSizeArg / numberOfPiecesArg);\n\t\tSystem.out.println(partArg);\n\t\t// Copy the content of the sourceFile into split files\n\t\tfor (int i = 0; i < numberOfPiecesArg; i++) {\n\t\t\tBufferedOutputStream outputArg = new BufferedOutputStream(\n\t\t\t\t\tnew FileOutputStream(new File(\"C:/Java/examples/\" + fileNameArg + \".part\" + i)));\n\t\t\tint value;\n\t\t\tint numberOfBytesArg = 0;\n\t\t\twhile (numberOfBytesArg++ < partArg && (value = inputArg.read()) != -1) {\n\t\t\t\toutputArg.write(value);\n\t\t\t}\n\t\t\toutputArg.close();\n\t\t}\n\t\t\n\t\tinputArg.close();\n\t\tSystem.out.println(\"[\" + sourceFileArg.length() + \"]\");\n\n\t}", "private void getFiles() {\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(inputFileName);\n\t\t\tinputBuffer = new BufferedReader(fr);\n\n\t\t\tFileWriter fw = new FileWriter(outputFileName);\n\t\t\toutputBuffer = new BufferedWriter(fw);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found: \" + e.getMessage());\n\t\t\tSystem.exit(-2);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-3);\n\t\t}\n\t}", "private ArrayList<VideoFile> receiveData(ObjectInputStream in, String mode) {\n ArrayList<VideoFile> returned = new ArrayList<>();\n ArrayList<VideoFile> chunks = new ArrayList<>();\n\n //resetChunks();\n\n VideoFile file; //COUNTER IS HOW MANY NULL STRINGS ARE READ\n int counter = 0; //WHEN COUNTER ==2 THEN END ALL FILE CHUNKS\n try {\n while (counter < 2) {\n try {\n while ((file = (VideoFile) in.readObject()) != null) {\n chunks.add(file);\n /*if (mode.equals(\"mode1\")) {\n //addChunk(file);\n }*/\n counter = 0;\n }\n if (!chunks.isEmpty()) {\n if (mode.equals(\"save\")) {\n VideoFile merged = VideoFileHandler.merge(chunks);\n returned.add(merged);\n }\n }\n chunks.clear();\n ++counter;\n } catch (IOException e) {\n Extras.printError(\"CONSUMER: receiveData: exception in reading chunks\");\n }\n if (counter > 2) break;\n }\n return returned;\n } catch (ClassNotFoundException e) {\n Extras.printError(\"CONSUMER: RECEIVE DATA: ERROR: Could not cast Object to MusicFile\");\n }\n return null;\n }", "private static void removeSSRs(File input){\n try(\n FileReader fRead = new FileReader(input+\".ssr\");\n BufferedReader bRead = new BufferedReader(fRead);\n FileReader fRead2 = new FileReader(input);\n BufferedReader bRead2 = new BufferedReader(fRead2)\n ){\n ArrayList<String> noSSRFilenames = new ArrayList<>();\n while (true){\n String line = bRead.readLine();\n if (line == null){\n break;\n }\n else{\n String [] nLine = line.split(\"\\t\");\n if (!nLine[0].equals(\"Name\")){\n if (!noSSRFilenames.contains(nLine[0])){\n noSSRFilenames.add(nLine[0]);\n }\n }\n }\n }\n boolean match = false;\n Sequence raw;\n String seqName = \"\";\n while (true) {\n String seqLine = bRead2.readLine();\n if (seqLine == null) {\n break;\n }\n else {\n if (seqLine.charAt(0) == '>') {\n match = false;\n for (String name : noSSRFilenames) {\n if (seqLine.equals(name)) {\n match = true;\n break;\n }\n }\n if (!match) {\n seqName = seqLine;\n }\n }\n //** Sequence objects are created and added to Metagenome\n else if(!match && seqLine.length() > DMMController.getIgnoreShortSeq() ){\n raw = new Sequence(seqName,seqLine,seqLine.length());\n sequences.add(raw);\n }\n }\n }\n }\n catch (Exception e){\n System.out.println(e.getMessage() + \"----------Remove SSRs issue\");\n }\n }", "public File[] writeChunks(String save, int chunkSize) throws IOException {\n\t\tCollection<File> rtrn=new TreeSet<File>();\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(new FileInputStream(this.fastqFile)));\n\t\tString nextLine;\n\t\tFileWriter writer=new FileWriter(save+\".0.fq\");\n \tint i=0;\n while ((nextLine = reader.readLine()) != null && (nextLine.trim().length() > 0)) {\n \tif(nextLine.startsWith(\"@\")){\n \t\tif(i%chunkSize ==0){\n \t\t\twriter.close();\n \t\t\trtrn.add(new File(save+\".\"+(i/chunkSize)+\".fq\")); \n \t\t\twriter=new FileWriter(save+\".\"+(i/chunkSize)+\".fq\"); \n \t\t\tSystem.err.println(i);\n \t\t}\n \t\tString firstLine=nextLine;\n \t\tString secondLine=reader.readLine();\n \t\tString thirdLine=reader.readLine();\n \t\tString fourthLine=reader.readLine();\n \t\t\n \t\tFastqSequence seq=new FastqSequence(firstLine, secondLine, thirdLine, fourthLine);\n \t\t//String sequence=seq.getSequence();\n \t\twriter.write(seq.toFastq()+\"\\n\");\n \t\ti++;\n \t\tif(i % 100000 == 0){System.err.println(\"Iterating.. \"+ i);}\n \t}\n \t\n \t\n }\n this.numberOfSeq=i;\n File[] files=new File[rtrn.size()];\n int counter=0;\n for(File file: rtrn){files[counter++]=file;}\n\t\treturn files;\n\t}", "private static void getResults() {\n\t\t//Variables\n\t\tFile directoryOfChunks = new File(\"output\");\n\t\tFile[] files = directoryOfChunks.listFiles();\n\t\tArrayList<String> filesInFolder = new ArrayList<>();\n\t\tArrayList<String> chunkResults = new ArrayList<>();\n\t\tBufferedReader br = null;\n\t\tReadFromFile rf = new ReadFromFile();\n\n\t\t//Get files from output folder\n\t\tif(directoryOfChunks.exists() && directoryOfChunks.isDirectory()){\n\t\t\tdirectoryName = \"output\";\n\t\t\t//Copy file names into arraylist\n\t\t\tfor (File f: files) {\n\t\t\t\t//Save file names into arraylist.\n\t\t\t\tfilesInFolder.add(f.getName());\n\t\t\t}\n\t\t}\n\t\t//if not a file or directory print error message\n\t\telse{\n\t\t\tSystem.out.println(\"No such file/directory: \" + directoryOfChunks);\n\t\t}\n\n\t\t//for loop to open and read each individual file\n\t\tfor (String file : filesInFolder) {\n\t\t\ttry {\n\n\t\t\t\tFileReader reader = new FileReader(directoryName + \"\\\\\" + file);\n\t\t\t\tbr = new BufferedReader(reader);\n\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tchunkResults.addAll(rf.readFromChunk(br));\n\t\t}\n\n\t\t//Call sanitizeAndSplit\n\t\tsanitizeAndSplit(chunkResults);\n\t}", "public static void getListOfAllFileVarianta2() {\n\t\tPath pathToSrc = Paths.get(\"D:\\\\TorrentsMd\");\r\n\t\ttry {\r\n\t\t\t//cu method references\r\n//\t\t\tFiles.walk(pathToSrc)\r\n//\t\t\t\t.map(Path::toFile)\r\n//\t\t\t\t.filter(File::isFile)\r\n//\t\t\t\t.map(File::getName)\r\n//\t\t\t\t.sorted()\r\n//\t\t\t\t.forEach(System.out::println);\r\n\t\t\t\r\n\t\t\t//cu lambda, dar dpdv semantic sunt identice\r\n\t\t\tFiles.walk(pathToSrc)\r\n\t\t\t\t .map(path -> path.toFile()) //trasnform fiecare Path din stream intr-un File\r\n\t\t\t\t .filter(file -> file.isFile()) //filtrez doar fisierele\r\n\t\t\t\t .map(file -> file.getName())//transform fiecare File din stream intr-un String, care e numele sau\r\n\t\t\t\t .sorted()\r\n\t\t\t\t .forEach(file -> System.out.println(file));\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n private void makeIntensityProfiles() {\r\n\r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n \r\n // There should be only one VOI\r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n // there should be only one curve corresponding to the external abdomen boundary\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().get(0));\r\n int[] xVals;\r\n int[] yVals;\r\n int[] zVals;\r\n try {\r\n xVals = new int [curve.size()];\r\n yVals = new int [curve.size()];\r\n zVals = new int [curve.size()];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate the abdomen VOI arrays\");\r\n return;\r\n }\r\n curve.exportArrays(xVals, yVals, zVals);\r\n \r\n // one intensity profile for each radial line. Each radial line is 3 degrees and\r\n // there are 360 degrees in a circle\r\n try {\r\n intensityProfiles = new ArrayList[360 /angularResolution];\r\n xProfileLocs = new ArrayList[360 / angularResolution];\r\n yProfileLocs = new ArrayList[360 / angularResolution];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate profile arrays\");\r\n return;\r\n }\r\n \r\n // load the srcImage into the slice buffer (it has the segmented abdomen image in it now)\r\n try {\r\n srcImage.exportData(0, sliceSize, sliceBuffer);\r\n } catch (IOException ex) {\r\n System.err.println(\"JCATsegmentAbdomen2D(): Error exporting data\");\r\n return;\r\n }\r\n\r\n double angleRad;\r\n int count;\r\n int contourPointIdx = 0;\r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n count = 0;\r\n int x = xcm;\r\n int y = ycm;\r\n int yOffset = y * xDim;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n // allocate the ArrayLists for each radial line\r\n try {\r\n intensityProfiles[contourPointIdx] = new ArrayList<Short>();\r\n xProfileLocs[contourPointIdx] = new ArrayList<Integer>();\r\n yProfileLocs[contourPointIdx] = new ArrayList<Integer>();\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate profile list: \" +contourPointIdx);\r\n return;\r\n }\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n }\r\n \r\n contourPointIdx++;\r\n } // end for (angle = 0; ...\r\n\r\n // intensityProfiles, xProfileLocs, and yProfileLocs are set, we can find the \r\n // internal boundary of the subcutaneous fat now\r\n }", "private static Wine[] read() {\r\n\t\t// We can add files we would like to parse in the following array. We use an array list\r\n\t\t// because it allows us to add dynamically.\r\n\t\tString[] file_adr = { \"data/winemag-data_first150k.txt\", \"data/winemag-data-130k-v2.csv\" };\r\n\t\tArrayList<Wine> arr_list = new ArrayList<Wine>();\r\n\t\t\r\n\t\tint k = 0;\r\n\t\twhile (k < file_adr.length) {\r\n\t\t\tboolean flag = false;\r\n\t\t\tif (file_adr[k].endsWith(\".csv\")) {\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t\tFile f = new File(file_adr[k]);\r\n\t\t\tScanner sc = null;\r\n\t\t\ttry {\r\n\t\t\t\tsc = new Scanner(f, \"UTF-8\");\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tsc.nextLine();\r\n\t\t\tInteger id_count = 0;\r\n\t\t\tif(!flag) {\r\n\t\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t\tString scanned = sc.nextLine();\r\n\t\t\t\t\t// if there is a blank line, skip it before a fail.\r\n\t\t\t\t\tif (scanned.isEmpty()) {\r\n\t\t\t\t\t\tscanned = sc.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// use this instead of StringTokenizer because it won't skip empty fields.\r\n\t\t\t\t\tString[] st = scanned.split(\",\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* was put here to make sure all fields show up.\r\n\t\t\t\t\tString toString = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\t\t\t\ttoString += st[i] + \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\r\n\t\t\t\t\tString country = st[1];\r\n\t\t\t\t\tString description = \"\";\r\n\t\t\t\t\t// This piece grabs our entire description! this paragraph has our delimiters so it gets split.\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor (int i = 2; i < (st.length - 10) + 2; i++) {\r\n\t\t\t\t\t\tif (st[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\t\t\tdescription += st[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdescription += st[i] + \", \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString designation = st[count+2];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// next two fields will fail if the field is empty, so make sure we assign it something.\r\n\t\t\t\t\tInteger points = !(st[count+3].isEmpty()) ? Integer.parseInt(st[count+3]) : -1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble price = !(st[count+4].isEmpty()) ? Double.parseDouble(st[count+4]) : -1.0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString province = st[count+5];\r\n\t\t\t\t\tString[] region = {\r\n\t\t\t\t\t\t\tst[count+6],\r\n\t\t\t\t\t\t\tst[count+7]\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString variety = st[count+8];\r\n\t\t\t\t\tString winery = st[count+9];\r\n\t\t\t\t\t//System.out.println(id_count);\r\n\t\t\t\t\t// unique ID system because some wine bottles have empty names.\r\n\t\t\t\t\tInteger unique_id = id_count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] items = {\r\n\t\t\t\t\t\t\tcountry,\r\n\t\t\t\t\t\t\tdescription,\r\n\t\t\t\t\t\t\tdesignation,\r\n\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\twinery,\r\n\t\t\t\t\t\t\tvariety\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] reviewer = {\r\n\t\t\t\t\t\t\t\"\",\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] taste = {};\r\n\t\t\t\t\t// Object constructor.\r\n\t\t\t\t\tWine curr_obj = new Wine(items, taste, region, points, unique_id, price, reviewer);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr_list.add(curr_obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tk++;\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t\tString scanned = sc.nextLine();\r\n\t\t\t\t\t// if there is a blank line, skip it before a fail.\r\n\t\t\t\t\tif (scanned.isEmpty()) {\r\n\t\t\t\t\t\tscanned = sc.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// use this instead of StringTokenizer because it won't skip empty fields.\r\n\t\t\t\t\tString[] st = scanned.split(\",\");\r\n\t\t\t\t\t//System.out.println(arr_list.size());\r\n\t\t\t\t\tid_count = arr_list.size();\r\n\t\t\t\t\t/* was put here to make sure all fields show up.\r\n\t\t\t\t\tString toString = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\t\t\t\ttoString += st[i] + \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\t//System.out.println(st[0]);\r\n\t\t\t\t\t/*if(Integer.parseInt(st[0]) == 30350) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tString country = st[1];\r\n\t\t\t\t\tString description = \"\";\r\n\t\t\t\t\t// This piece grabs our entire description! this paragraph has our delimiters so it gets split.\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor (int i = 2; i < (st.length - 12) + 2; i++) {\r\n\t\t\t\t\t\tif (st[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\t\t\tdescription += st[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdescription += st[i] + \", \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString designation = st[count+2];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// next two fields will fail if the field is empty, so make sure we assign it something.\r\n\t\t\t\t\tInteger points = !(st[count+3].isEmpty()) ? Integer.parseInt(st[count+3]) : -1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble price = !(st[count+4].isEmpty()) ? Double.parseDouble(st[count+4]) : -1.0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString province = st[count+5];\r\n\t\t\t\t\tString[] region = {\r\n\t\t\t\t\t\t\tst[count+6],\r\n\t\t\t\t\t\t\tst[count+7]\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString taster_name = st[count+8];\r\n\t\t\t\t\tString taster_handle = st[count+9];\r\n\t\t\t\t\tString variety = st[count+10];\r\n\t\t\t\t\tString winery = st[count+11];\r\n\t\t\t\t\t//System.out.println(id_count);\r\n\t\t\t\t\t// unique ID system because some wine bottles have empty names.\r\n\t\t\t\t\tInteger unique_id = id_count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] items = {\r\n\t\t\t\t\t\t\tcountry,\r\n\t\t\t\t\t\t\tdescription,\r\n\t\t\t\t\t\t\tdesignation,\r\n\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\twinery,\r\n\t\t\t\t\t\t\tvariety\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString[] reviewer = {\r\n\t\t\t\t\t\t\ttaster_name,\r\n\t\t\t\t\t\t\ttaster_handle\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] taste = {};\r\n\t\t\t\t\t// Object constructor.\r\n\t\t\t\t\tWine curr_obj = new Wine(items, taste, region, points, unique_id, price, reviewer);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr_list.add(curr_obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tk++;\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// We no longer need an array list. we have our size required. Put into an array.\r\n\t\tWine[] array_wines = new Wine[arr_list.size()];\r\n\t\tarray_wines = arr_list.toArray(array_wines);\r\n\t\t\r\n\t\treturn array_wines;\r\n\t\r\n\t}", "void read() {\n try {\n pre_list = new ArrayList<>();\n suf_list = new ArrayList<>();\n p_name = new ArrayList<>();\n stem_word = new ArrayList<>();\n\n //reading place and town name\n for (File places : place_name.listFiles()) {\n fin = new FileInputStream(places);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n place.add(temp);\n }\n\n }\n\n //reading month name\n for (File mont : month_name.listFiles()) {\n fin = new FileInputStream(mont);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n month.add(temp);\n }\n }\n\n //reading compound words first\n for (File comp_word : com_word_first.listFiles()) {\n fin = new FileInputStream(comp_word);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n comp_first.add(temp);\n }\n }\n //reading next word of the compound\n for (File comp_word_next : com_word_next.listFiles()) {\n fin = new FileInputStream(comp_word_next);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n comp_next.add(temp);\n }\n }\n //reading chi square feature\n for (File entry : chifile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n chiunion.add(temp);\n }\n newunions.clear();\n newunions.addAll(chiunion);\n chiunion.clear();\n chiunion.addAll(newunions);\n chiunion.removeAll(stop_word_list);\n chiunion.removeAll(p_name);\n chiunion.removeAll(month);\n chiunion.removeAll(place);\n }\n //reading short form from abbrivation \n for (File short_list : abbrivation_short.listFiles()) {\n fin = new FileInputStream(short_list);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n shortform.add(temp);\n }\n }\n //reading long form from the abrivation \n for (File long_list : abbrivation_long.listFiles()) {\n fin = new FileInputStream(long_list);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n longform.add(temp);\n }\n }\n //reading file from stop word\n for (File stoplist : stop_word.listFiles()) {\n fin = new FileInputStream(stoplist);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n stop_word_list.add(temp);\n }\n }\n\n //reading person name list\n for (File per_name : person_name.listFiles()) {\n fin = new FileInputStream(per_name);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n p_name.add(temp);\n }\n }\n\n //reading intersection union\n for (File entry : interfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n interunion.add(temp);\n }\n }\n newunions.clear();\n newunions.addAll(interunion);\n interunion.clear();\n interunion.addAll(newunions);\n interunion.removeAll(stop_word_list);\n interunion.removeAll(p_name);\n interunion.removeAll(month);\n interunion.removeAll(place);\n }\n // reading ig union\n for (File entry : igfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n igunion.add(temp);\n }\n }\n for (String str : igunion) {\n int index = igunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n igunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(igunion);\n igunion.clear();\n igunion.addAll(newunions);\n igunion.removeAll(stop_word_list);\n igunion.removeAll(p_name);\n igunion.removeAll(month);\n igunion.removeAll(place);\n }\n //read df uinfion\n for (File entry : dffile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n dfunion.add(temp);\n }\n }\n for (String str : dfunion) {\n int index = dfunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n dfunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(dfunion);\n dfunion.clear();\n dfunion.addAll(newunions);\n dfunion.removeAll(stop_word_list);\n dfunion.removeAll(p_name);\n dfunion.removeAll(month);\n dfunion.removeAll(place);\n }\n //reading unified model\n for (File entry : unionall_3.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n union_3.add(temp);\n }\n }\n for (String str : union_3) {\n int index = union_3.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n union_3.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(union_3);\n union_3.clear();\n union_3.addAll(newunions);\n union_3.removeAll(stop_word_list);\n union_3.removeAll(p_name);\n union_3.removeAll(month);\n union_3.removeAll(place);\n }\n //unified feature for the new model\n for (File entry : unified.listFiles()) {\n\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n newunion.add(temp);\n\n }\n for (String str : newunion) {\n int index = newunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n newunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(newunion);\n newunion.clear();\n newunion.addAll(newunions);\n newunion.removeAll(stop_word_list);\n newunion.removeAll(p_name);\n newunion.removeAll(month);\n newunion.removeAll(place);\n\n // newunion.addAll(newunions);\n }\n // reading test file and predict the class\n for (File entry : test_doc.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n file_test.add(temp);\n\n }\n newunions.clear();\n newunions.addAll(file_test);\n file_test.clear();\n file_test.addAll(newunions);\n file_test.removeAll(stop_word_list);\n file_test.removeAll(p_name);\n file_test.removeAll(month);\n file_test.removeAll(place);\n }\n //reading the whole document under economy class\n for (File entry : economy.listFiles()) {\n fill = new File(economy + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n economydocument[count1] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n economydocument[count1].add(temp);\n if (temp.length() < 2) {\n economydocument[count1].remove(temp);\n }\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n economydocument[count1].remove(temp);\n }\n }\n for (String str : economydocument[count1]) {\n int index = economydocument[count1].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n economydocument[count1].set(index, stem_word.get(i));\n }\n }\n }\n }\n economydocument[count1].removeAll(stop_word_list);\n economydocument[count1].removeAll(p_name);\n economydocument[count1].removeAll(month);\n economydocument[count1].removeAll(place);\n allecofeature.addAll(economydocument[count1]);\n ecofeature.addAll(economydocument[count1]);\n allfeature.addAll(ecofeature);\n all.addAll(allecofeature);\n count1++;\n\n }\n //reading the whole documents under education category \n for (File entry : education.listFiles()) {\n fill = new File(education + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n educationdocument[count2] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n educationdocument[count2].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n educationdocument[count2].remove(temp);\n }\n }\n }\n\n for (String str : educationdocument[count2]) {\n int index = educationdocument[count2].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n educationdocument[count2].set(index, stem_word.get(i));\n }\n }\n }\n educationdocument[count2].removeAll(stop_word_list);\n educationdocument[count2].removeAll(p_name);\n educationdocument[count2].removeAll(month);\n educationdocument[count2].removeAll(place);\n alledufeature.addAll(educationdocument[count2]);\n edufeature.addAll(educationdocument[count2]);\n allfeature.addAll(edufeature);\n all.addAll(alledufeature);\n count2++;\n }\n// //reading all the documents under sport category\n for (File entry : sport.listFiles()) {\n fill = new File(sport + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n sportdocument[count3] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n sportdocument[count3].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n sportdocument[count3].remove(temp);\n }\n }\n }\n\n for (String str : sportdocument[count3]) {\n int index = sportdocument[count3].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n sportdocument[count3].set(index, stem_word.get(i));\n }\n }\n }\n sportdocument[count3].removeAll(stop_word_list);\n sportdocument[count3].removeAll(p_name);\n sportdocument[count3].removeAll(month);\n sportdocument[count3].removeAll(place);\n allspofeature.addAll(sportdocument[count3]);\n spofeature.addAll(sportdocument[count3]);\n allfeature.addAll(spofeature);\n all.addAll(allspofeature);\n count3++;\n }\n\n// //reading all the documents under culture category\n for (File entry : culture.listFiles()) {\n fill = new File(culture + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n culturedocument[count4] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n\n culturedocument[count4].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n culturedocument[count4].remove(temp);\n }\n }\n\n }\n for (String str : culturedocument[count4]) {\n int index = culturedocument[count4].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n culturedocument[count4].set(index, stem_word.get(i));\n }\n }\n }\n culturedocument[count4].removeAll(stop_word_list);\n culturedocument[count4].removeAll(p_name);\n culturedocument[count4].removeAll(month);\n culturedocument[count4].removeAll(place);\n allculfeature.addAll(culturedocument[count4]);\n culfeature.addAll(culturedocument[count4]);\n allfeature.addAll(culfeature);\n all.addAll(allculfeature);\n count4++;\n\n }\n\n// //reading all the documents under accident category\n for (File entry : accident.listFiles()) {\n fill = new File(accident + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n accedentdocument[count5] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n accedentdocument[count5].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n accedentdocument[count5].remove(temp);\n }\n }\n\n }\n\n for (String str : accedentdocument[count5]) {\n int index = accedentdocument[count5].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n accedentdocument[count5].set(index, stem_word.get(i));\n }\n }\n }\n accedentdocument[count5].removeAll(stop_word_list);\n accedentdocument[count5].removeAll(p_name);\n accedentdocument[count5].removeAll(month);\n accedentdocument[count5].removeAll(place);\n allaccfeature.addAll(accedentdocument[count5]);\n accfeature.addAll(accedentdocument[count5]);\n allfeature.addAll(accfeature);\n all.addAll(allaccfeature);\n count5++;\n }\n\n// //reading all the documents under environmental category\n for (File entry : environmntal.listFiles()) {\n fill = new File(environmntal + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n environmntaldocument[count6] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n environmntaldocument[count6].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n environmntaldocument[count6].remove(temp);\n }\n }\n }\n\n for (String str : environmntaldocument[count6]) {\n int index = environmntaldocument[count6].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n environmntaldocument[count6].set(index, stem_word.get(i));\n }\n }\n }\n environmntaldocument[count6].removeAll(stop_word_list);\n environmntaldocument[count6].removeAll(p_name);\n environmntaldocument[count6].removeAll(month);\n environmntaldocument[count6].removeAll(place);\n allenvfeature.addAll(environmntaldocument[count6]);\n envfeature.addAll(environmntaldocument[count6]);\n allfeature.addAll(envfeature);\n all.addAll(allenvfeature);\n count6++;\n }\n\n// //reading all the documents under foreign affairs category\n for (File entry : foreign_affair.listFiles()) {\n fill = new File(foreign_affair + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n foreign_affairdocument[count7] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n foreign_affairdocument[count7].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n foreign_affairdocument[count7].remove(temp);\n }\n }\n\n }\n for (String str : foreign_affairdocument[count7]) {\n int index = foreign_affairdocument[count7].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n foreign_affairdocument[count7].set(index, stem_word.get(i));\n }\n }\n }\n foreign_affairdocument[count7].removeAll(stop_word_list);\n foreign_affairdocument[count7].removeAll(p_name);\n foreign_affairdocument[count7].removeAll(month);\n foreign_affairdocument[count7].removeAll(place);\n alldepfeature.addAll(foreign_affairdocument[count7]);\n depfeature.addAll(foreign_affairdocument[count7]);\n allfeature.addAll(depfeature);\n all.addAll(alldepfeature);\n count7++;\n }\n\n// //reading all the documents under law and justices category\n for (File entry : law_justice.listFiles()) {\n fill = new File(law_justice + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n law_justicedocument[count8] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n law_justicedocument[count8].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n law_justicedocument[count8].remove(temp);\n }\n }\n\n }\n for (String str : law_justicedocument[count8]) {\n int index = law_justicedocument[count8].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n law_justicedocument[count8].set(index, stem_word.get(i));\n }\n }\n }\n law_justicedocument[count8].removeAll(stop_word_list);\n law_justicedocument[count8].removeAll(p_name);\n law_justicedocument[count8].removeAll(month);\n law_justicedocument[count8].removeAll(month);\n alllawfeature.addAll(law_justicedocument[count8]);\n lawfeature.addAll(law_justicedocument[count8]);\n allfeature.addAll(lawfeature);\n all.addAll(alllawfeature);\n count8++;\n }\n\n// //reading all the documents under other category\n for (File entry : agri.listFiles()) {\n fill = new File(agri + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n agriculture[count9] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n agriculture[count9].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n agriculture[count9].remove(temp);\n }\n }\n\n }\n for (String str : agriculture[count9]) {\n int index = agriculture[count9].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n agriculture[count9].set(index, stem_word.get(i));\n }\n }\n }\n agriculture[count9].removeAll(stop_word_list);\n agriculture[count9].removeAll(p_name);\n agriculture[count9].removeAll(month);\n agriculture[count9].removeAll(place);\n allagrifeature.addAll(agriculture[count9]);\n agrifeature.addAll(agriculture[count9]);\n allfeature.addAll(agrifeature);\n all.addAll(allagrifeature);\n count9++;\n }\n //reading all the documents under politics category\n for (File entry : politics.listFiles()) {\n fill = new File(politics + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n politicsdocument[count10] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n politicsdocument[count10].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n politicsdocument[count10].remove(temp);\n }\n }\n }\n for (String str : politicsdocument[count10]) {\n int index = politicsdocument[count10].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n politicsdocument[count10].set(index, stem_word.get(i));\n }\n }\n }\n politicsdocument[count10].removeAll(stop_word_list);\n politicsdocument[count10].removeAll(p_name);\n politicsdocument[count10].removeAll(month);\n politicsdocument[count10].removeAll(place);\n allpolfeature.addAll(politicsdocument[count10]);\n polfeature.addAll(politicsdocument[count10]);\n allfeature.addAll(polfeature);\n all.addAll(allpolfeature);\n count10++;\n }\n //reading all the documents under science and technology category\n for (File entry : science_technology.listFiles()) {\n fill = new File(science_technology + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n science_technologydocument[count12] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n science_technologydocument[count12].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n science_technologydocument[count12].remove(temp);\n }\n }\n\n }\n for (String str : science_technologydocument[count12]) {\n int index = science_technologydocument[count12].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n science_technologydocument[count12].set(index, stem_word.get(i));\n }\n }\n }\n science_technologydocument[count12].removeAll(stop_word_list);\n science_technologydocument[count12].removeAll(p_name);\n science_technologydocument[count12].removeAll(month);\n science_technologydocument[count12].removeAll(place);\n allscifeature.addAll(science_technologydocument[count12]);\n scifeature.addAll(science_technologydocument[count12]);\n allfeature.addAll(scifeature);\n all.addAll(allscifeature);\n count12++;\n\n }\n\n //reading all the documents under health category\n for (File entry : health.listFiles()) {\n fill = new File(health + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n healthdocument[count13] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n healthdocument[count13].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n healthdocument[count13].remove(temp);\n }\n }\n }\n for (String str : healthdocument[count13]) {\n int index = healthdocument[count13].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n healthdocument[count13].set(index, stem_word.get(i));\n }\n }\n }\n healthdocument[count13].removeAll(stop_word_list);\n healthdocument[count13].removeAll(p_name);\n healthdocument[count13].removeAll(month);\n healthdocument[count13].removeAll(place);\n allhelfeature.addAll(healthdocument[count13]);\n helfeature.addAll(healthdocument[count13]);\n allfeature.addAll(helfeature);\n all.addAll(allhelfeature);\n count13++;\n }\n\n //reading all the file of relgion categories \n for (File entry : army_file.listFiles()) {\n fill = new File(army_file + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n army[count14] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n army[count14].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n army[count14].remove(temp);\n }\n }\n\n }\n for (String str : army[count14]) {\n int index = army[count14].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n army[count14].set(index, stem_word.get(i));\n }\n }\n }\n army[count14].removeAll(stop_word_list);\n army[count14].removeAll(p_name);\n army[count14].removeAll(month);\n army[count14].removeAll(place);\n allarmfeature.addAll(army[count14]);\n armfeature.addAll(army[count14]);\n allfeature.addAll(armfeature);\n all.addAll(allarmfeature);\n count14++;\n }\n } catch (Exception ex) {\n System.out.println(\"here\");\n }\n }", "public static void main( String[] args ) throws Exception\n { \t\n \tFile inputFile = new File(args[0]);\n \tByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); \t\n \tString outputAudiosFolder = args[3]; \t \t \t \t\n \tint audioStreams = Integer.parseInt(args[5]);\n \tint selectedStream = Integer.parseInt(args[6]);\n \tlong halfSegmentSize = Integer.parseInt(args[7]);\n \t\n \t//Read shot boundaries and keyframe positions \t\n \tShotList shotList = ShotReader.readFromCSV(args[1]);\n \tArrayList<IntLongPair> keyframes = KeyframeReader.readFromCSV(args[2]); \t \t \t \t \t\n \t\n \t//Create a millisecond map to the audio segments\n \tXuggleVideo inputVideo = new XuggleVideo(inputFile); \t\n \tdouble videoFPS = inputVideo.getFPS();\n \tinputVideo.close();\n \tlong lastBoundary = 0;\n \tArrayList<AuralSegment> auralSegments = new ArrayList<AuralSegment>(); \n \tint lastShot = 0;\n \tint segmentIndex = 0;\n \tfor(IntLongPair keyframe : keyframes)\n \t{ \t\t\n \t\t\n \t\tlong keyframeTime = Math.round((keyframe.getSecond() / videoFPS) * 1000);\n \t\tShot shot = shotList.getList().get(keyframe.getFirst());\n \t\tlong shotBeginTime = Math.round((shot.getStartBoundary() / videoFPS) * 1000);\n \t\tlong shotEndTime = Math.round((shot.getEndBoundary() / videoFPS) * 1000);\n \t\t\n \t\t//Compute segment boundaries\n \t\tlong segmentStartTime, segmentEndTime;\n \t\t\n \t\t\n \t\t//Compute start boundary\n \t\t//Check if the new segment overlaps with last segment.\n \t\tif( (keyframeTime - halfSegmentSize) > lastBoundary)\n \t\t{\n \t\t\tsegmentStartTime = keyframeTime - halfSegmentSize;\n \t\t}\n \t\telse\n \t\t{\n \t\t\tsegmentStartTime = lastBoundary + 1;\n \t\t}\n \t\t//Check if the start boundary happens inside the shot\n \t\tif(segmentStartTime < shotBeginTime)\n \t\t{\n \t\t\tsegmentStartTime = shotBeginTime;\n \t\t}\n \t\t\n \t\t//Compute end boundary\n \t\t//If end boundary isn't greater than start boundary do nothing \n \t\tif( (keyframeTime + halfSegmentSize) > segmentStartTime )\n \t\t{\n \t\t\tif((keyframeTime + halfSegmentSize) < shotEndTime)\n \t\t\t{\n \t\t\t\tsegmentEndTime = (keyframeTime + halfSegmentSize); \t\t\t\t\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tsegmentEndTime = shotEndTime;\n \t\t\t}\n \t\t\t\n \t\t\tif(segmentStartTime < segmentEndTime)\n \t\t\t{\n \t\t\t\tif(keyframe.getFirst() != lastShot)\n \t\t\t\t{\n \t\t\t\t\tlastShot = keyframe.getFirst();\n \t\t\t\t\tsegmentIndex = 0;\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tsegmentIndex++;\n \t\t\t\t}\n \t\t\t\tauralSegments.add(new AuralSegment(keyframe.getFirst(),segmentIndex, segmentStartTime, segmentEndTime));\n \t\t\t}\n \t\t}\n \t} \t\n\n \t//Generate and write MFCC descriptors\n\t\tXuggleAudio inputAudioMFCCRaw = new XuggleAudio(inputFile); \t\n\t\n\t\t//If there is more than one stream (dual audio videos for example) choose one\n\t\tif(audioStreams > 1)\n\t\t{\n\t\t\tinputAudioMFCCRaw = AudioStreamSelector.separateAudioStream(inputAudioMFCCRaw, audioStreams, selectedStream);\n\t\t} \n\t\n\t\t//Calculate how many audio samples must be in a millisecond\n\t\tdouble samplesInAMillisecond = inputAudioMFCCRaw.getFormat().getSampleRateKHz();\n\t\t//30ms Audio frames\n\t\tint frameSizeInSamples = (int)(samplesInAMillisecond * 30);\n\t\t//10ms Overlap between frames\n\t\tint overlapSizeInSamples = (int)(samplesInAMillisecond *10);\n\t\t//Fixes the audio processor to work with 30ms windows and 10ms overlap between adjacent windows\n\t\tFixedSizeSampleAudioProcessor inputAudioMFCC = new FixedSizeSampleAudioProcessor(inputAudioMFCCRaw, \n\t\t\tframeSizeInSamples, overlapSizeInSamples);\n\t\n\t\tMFCC mfcc = new MFCC( inputAudioMFCC );\n\t\tSampleChunk scMFCC = null;\n\t\tIterator<AuralSegment> auralSegmentsIterator = auralSegments.iterator();\n\t\tAuralSegment actualSegment;\n\t\tFileWriter mfccWriter = new FileWriter(args[4]);\n\t\tscMFCC = mfcc.nextSampleChunk();\n\t\tlong chunkIndex = 0;\n\t\tlong sampleStartTime = scMFCC.getStartTimecode().getTimecodeInMilliseconds()/scMFCC.getFormat().getNumChannels();\n\t\tlong sampleEndTime = sampleStartTime + 30;\n\t\twhile( auralSegmentsIterator.hasNext() && (actualSegment = auralSegmentsIterator.next()) != null ) \n\t\t{\n\t\t\t//I don't know why, but getTimecodeInMilliseconds when using window overlap returns two times the correct timecode.\n\t\t\t\n\t\t\t//Look for the audio correspoinding to the segment\n\t\t\twhile(scMFCC != null && sampleStartTime < actualSegment.getStartTime())\n\t\t\t{\n\t\t\t\tscMFCC = mfcc.nextSampleChunk();\n\t\t\t\tchunkIndex++;\n\t\t\t\tsampleStartTime = scMFCC.getStartTimecode().getTimecodeInMilliseconds()/scMFCC.getFormat().getNumChannels();\n\t\t\t\tsampleEndTime = sampleStartTime + 30;\n\t\t\t}\n\t\t\t//Write it down while\n\t\t\twhile(scMFCC != null && sampleEndTime < actualSegment.getEndTime())\n\t\t\t{\n\t\t\t\tsampleStartTime = scMFCC.getStartTimecode().getTimecodeInMilliseconds()/scMFCC.getFormat().getNumChannels();\n\t\t\t\tsampleEndTime = sampleStartTime + 30;\n\t\t\t\t\n\t\t\t\tdouble[][] mfccs = mfcc.getLastCalculatedFeature();\n\t\t\t\tmfccWriter.write(Long.toString(actualSegment.getShotIndex()));\n\t\t\t\tfor(int i = 0; i < mfccs[0].length; i++)\n\t\t\t\t{\n\t\t\t\t\tmfccWriter.write(\" \" + mfccs[0][i]);\n\t\t\t\t}\n\t\t\t\tmfccWriter.write(\"\\n\");\n\t\t\t\t\n\t\t\t\t//Write output stream not including overlapped chunks \n\t\t\t\tif(chunkIndex % 3 == 0)\n\t\t\t\t{\n\t\t\t\t\tbyteArrayOutputStream.flush();\n\t\t\t\t\tbyteArrayOutputStream.write(scMFCC.getSamples());\n\t\t\t\t\tbyteArrayOutputStream.flush(); \n\t\t\t\t}\t\n\t\t\t\tscMFCC = mfcc.nextSampleChunk();\n\t\t\t\tchunkIndex++;\n\t\t\t}\n\t\t\t\n\t\t\t//Write file on disk\n\t\t\tByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArrayOutputStream.toByteArray());\n\t\t\tAudioInputStream audioInputStream = new AudioInputStream(byteArrayInputStream, inputAudioMFCC.getFormat().getJavaAudioFormat(), byteArrayOutputStream.size());\n\t\t\tString audioSampleName = \"shot\" + String.format(\"%04d\", actualSegment.getShotIndex()) + \"seg\" + String.format(\"%04d\", actualSegment.getSegIndex()) + \".wav\";\n\t\t\tAudioSystem.write(audioInputStream, AudioFileFormat.Type.WAVE, new File(outputAudiosFolder + audioSampleName));\t\t\t\n\t\t\t//Clear the byteArrayOutputStream\n\t\t\tbyteArrayOutputStream.reset();\t\t\t\t\n\t\t\t\n\t\t}\n\t\tmfccWriter.close();\n\t \t\n\t System.exit(0); \t \n }", "private void createTrackingPipeline() throws ConfigurationException\n {\n fgDetector = new HSVFGDetector();\n // fgDetector = new DifferenceFGDetector();\n\n blobDetector = opencv_legacy.cvCreateBlobDetectorSimple();\n // blobTracker = opencv_legacy.cvCreateBlobTrackerCCMSPF();\n blobTracker = opencv_legacy.cvCreateBlobTrackerCC();\n trackerPostProcessor = opencv_legacy.cvCreateModuleBlobTrackPostProcKalman();\n trackerFrameCount = 0;\n blobs.Clear();\n badFramesForBlob.clear();\n }", "@SuppressWarnings(\"unused\")\n public static MassSpecExtractedData extractMetaAndBlockDataFromFileVersion_1_2(Path inputDataFile) throws IOException {\n MassSpecExtractedData massSpecExtractedData = new MassSpecExtractedData();\n List<String> contentsByLine = new ArrayList<>(Files.readAllLines(inputDataFile, Charset.defaultCharset()));\n // test for version 1.20\n if ((!contentsByLine.get(2).trim().startsWith(\"Version,1.\")) && (!contentsByLine.get(2).trim().startsWith(\"Version,2.\"))) {\n throw new IOException(\"Expecting Version 1.2.n of data file.\");\n } else {\n // first pass is to assemble data by blocks\n List<String[]> headerByLineSplit = new ArrayList<>();\n List<String[]> detectorsByLineSplit = new ArrayList<>();\n List<String[]> columnNamesSplit = new ArrayList<>();\n List<List<String>> dataByBlocks = new ArrayList<>();\n List<String> dataByBlock = new ArrayList<>();\n\n int phase = 0;\n int currentBlockNumber = 1;\n for (String line : contentsByLine) {\n if (!line.trim().isBlank()) {\n if (line.startsWith(\"#COLLECTORS\")) {\n massSpecExtractedData.populateHeader(headerByLineSplit);\n phase = 1;\n } else if (line.startsWith(\"#BASELINES\")) {\n massSpecExtractedData.populateDetectors(detectorsByLineSplit);\n phase = 3;\n } else if (line.startsWith(\"#ONPEAK\")) {\n phase = 6;\n } else if (line.startsWith(\"#END\")) {\n phase = 9;\n }\n\n switch (phase) {\n case 0 -> headerByLineSplit.add(line.split(\",\"));\n case 1 -> phase = 2;\n case 2 -> detectorsByLineSplit.add(line.split(\",\"));\n case 3 -> phase = 4;\n case 4 -> {\n columnNamesSplit.add(line.split(\",\"));\n massSpecExtractedData.populateColumnNamesList(columnNamesSplit);\n phase = 5;\n }\n case 6 -> phase = 7;\n case 7 -> phase = 8;\n\n case 5, 8 -> {\n String[] lineSplit = line.split(\",\");\n // each block gets treated as a singleton block #1\n int blockNumber = Integer.parseInt(lineSplit[1].trim());\n if (blockNumber != currentBlockNumber) {\n // save off block and prepare for next block new for BL and add to for OPeak\n if (8 == phase) {\n dataByBlocks.get(currentBlockNumber - 1).addAll(dataByBlock);\n massSpecExtractedData.addBlockRecord(\n parseAndBuildSingleBlockRecord(2, currentBlockNumber, dataByBlocks.get(currentBlockNumber - 1)));\n } else {\n dataByBlocks.add(dataByBlock);\n }\n dataByBlock = new ArrayList<>();\n currentBlockNumber = blockNumber;\n }\n dataByBlock.add(line);\n }\n }\n } else if ((5 == phase) && !dataByBlock.isEmpty()) {\n // clean up last block\n dataByBlocks.add(dataByBlock);\n dataByBlock = new ArrayList<>();\n currentBlockNumber = 1;\n } else if ((8 == phase) && !dataByBlock.isEmpty()) {\n // clean up last block\n // check for missing baseline action\n if (dataByBlocks.isEmpty()) {\n dataByBlocks.add(dataByBlock);\n } else {\n dataByBlocks.get(currentBlockNumber - 1).addAll(dataByBlock);\n }\n massSpecExtractedData.addBlockRecord(\n parseAndBuildSingleBlockRecord(2, currentBlockNumber, dataByBlocks.get(currentBlockNumber - 1)));\n }\n }\n }\n return massSpecExtractedData;\n }", "@Test(expectedExceptions = PicardException.class)\n public void testFilteringToVcfWithNoSequenceDictionary() throws Exception {\n final File out = File.createTempFile(\"filterVcfTest.\", \".vcf\");\n out.deleteOnExit();\n\n final FilterVcf filterer = new FilterVcf();\n filterer.CREATE_INDEX = true;\n filterer.INPUT = BAD_INPUT;\n filterer.OUTPUT = out;\n filterer.MIN_AB = 0;\n filterer.MIN_DP = 18;\n filterer.MIN_GQ = 0;\n filterer.MAX_FS = Double.MAX_VALUE;\n\n filterer.doWork();\n }", "public List<String> splitByCount(String fileName, int count)\n throws IOException, InterruptedException {\n\n List<String> parts = new ArrayList<String>();\n File file = new File(fileName);\n int blockSize = (int) Math.ceil(file.length() / (double) count);\n RandomAccessFile raf = new RandomAccessFile(fileName, \"r\");\n long totalLen = raf.length();\n CountDownLatch latch = new CountDownLatch(count);\n\n long startPos = 0L;\n long nextPos = 0L;\n\n for (int i = 0; i < count; i++) {\n nextPos = Long.min((long) (i + 1) * blockSize, totalLen - 1);\n raf.seek(nextPos);\n //Calculate the start position for the next file.\n do {\n raf.seek(nextPos);\n if (raf.readByte() == '\\n') {\n nextPos = nextPos + 1;\n break;\n }\n nextPos--;\n } while (true);\n long readSizeTemp = nextPos - startPos;\n int readSize = (int) readSizeTemp;\n String partFileName = fileName.replace(\"raw\", \"raw\" + (i + 1));\n new SplitRunnable(readSize, startPos, partFileName, file, latch).run();\n startPos = nextPos;\n parts.add(partFileName);\n }\n //Wait until all the files are written.\n latch.await();\n return parts;\n }", "public float[] accumulateDetailFiles(ArrayList<File> files){\r\n\t\tfloat[] values = new float[100];\r\n\t\tint counter = 0;\r\n\r\n\t for(File file:files){\t\t\r\n\t \tSystem.out.println(file.getName());\r\n\t \tcounter = 0;\r\n\t BufferedReader reader;\r\n\t try{\r\n\t reader = new BufferedReader(new FileReader(file));\r\n\t String line = reader.readLine(); \r\n\t while(line != null){\t\r\n\t \tif(!line.substring(0,1).equals(\"#\")){\r\n\t \t\tString[] values2 = line.split(\" \");\r\n\t \t\tvalues[counter] += Float.valueOf(values2[values2.length-1]);\r\n\t\t \tcounter++;\r\n\t \t}\r\n\t \tline = reader.readLine();\r\n\t }\r\n\t \r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t System.err.println(\"FileNotFoundException: \" + e.getMessage());\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t System.err.println(\"Caught IOException: \" + e.getMessage());\r\n\t\t\t}\r\n\t }\r\n\r\n\t float[] returnValues = new float[counter];\r\n\t \r\n\t for(int j = 0; j < returnValues.length; j++) \treturnValues[j] = ((float)values[j]/files.size());\r\n\t\r\n\t \r\n \treturn returnValues;\r\n\t}", "public static Instances[] splitData(String inputFilename) throws Exception {\r\n\t\tDataSource ds = new DataSource(inputFilename);\r\n\t\t\r\n\t\tInstances is = ds.getDataSet();\r\n\t\tis.setClassIndex(is.numAttributes() - 1);\r\n\t\t\r\n//\t\tis.randomize(new Random(59543875318231387L));\r\n\t\tis.randomize(new Random());\r\n\t\t\r\n\t\tRemovePercentage rp = new RemovePercentage();\r\n\t\trp.setPercentage(50);\r\n\t\t\r\n\t\trp.setInputFormat(is);\r\n\t\tInstances newIs1 = Filter.useFilter(is, rp);\r\n//\t\tSystem.out.println(newIs1);\r\n\t\t\r\n\t\trp.setInvertSelection(true);\r\n\t\trp.setInputFormat(is);\r\n\t\tInstances newIs2 = Filter.useFilter(is, rp);\r\n//\t\tSystem.out.println(newIs2);\r\n\t\t\r\n\t\tInstances[] isArray = {newIs1, newIs2};\r\n\t\t\r\n\t\treturn isArray;\r\n\t}", "public static void readfile(String FILENAME) {\n\t\tString[] parts = null;\n\t\t// Initialising s as 9100 since the cardinality for a src is 9060\n\t\tint s = 2500;\n\t\t// Choosing m\n\t\tint m = 500000000;\n\t\tArrayList<ArrayList<Integer>> UniversalHashList = new ArrayList<ArrayList<Integer>>();\n\t\tArrayList<ArrayList<Integer>> XsrcMasterList = new ArrayList<ArrayList<Integer>>();\n\t\tList masterDstList = new ArrayList<ArrayList<String>>();\n\t\tString[] BitArray = new String[m];\n\t\tPrintStream out = null;\n\t\ttry {\n\t\t\tout = new PrintStream(new FileOutputStream(\"output_virbitmap.csv\"));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString src = null;\n\t\tHashMap<String, List> srcDstMap = new HashMap<String, List>();\n\t\tArrayList<Integer> R = new ArrayList<Integer>();\n\t\tR = genRandomArray(s);\n\t\t// initializing bit array\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tBitArray[i] = \"False\";\n\t\t}\n\t\t// reading input file and writing to HashMap<src,dstlist>\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(FILENAME))) {\n\n\t\t\tString sCurrentLine;\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\tparts = sCurrentLine.trim().split(\"\\\\s+\");\n\t\t\t\tsrc = parts[0];\n\t\t\t\tString dst = parts[1];\n\t\t\t\tif (!srcDstMap.containsKey(src)) {\n\t\t\t\t\tArrayList<String> dstList = new ArrayList<String>();\n\t\t\t\t\tdstList.add(dst);\n\t\t\t\t\tsrcDstMap.put(src, dstList);\n\t\t\t\t\t// hashing(B,convertIPAddress(tokens[0]));\n\t\t\t\t} else\n\t\t\t\t\tsrcDstMap.get(src).add(dst);\n\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfor (int i = 0; i < srcDstMap.size(); i++) {\n\t\t\tArrayList<Integer> masterHashList = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> XsrcList = new ArrayList<Integer>();\n\t\t\tUniversalHashList.add(masterHashList);\n\t\t\tXsrcMasterList.add(XsrcList);\n\t\t\t// System.out.println(\"XsrcmasterList\" + XsrcList);\n\n\t\t}\n\t\tIterator srcDstMapIt = srcDstMap.entrySet().iterator();\n\t\tfor (int i = 0; i < srcDstMap.size(); i++) {\n\t\t\tArrayList<Integer> XsrcList = XsrcMasterList.get(i);\n\t\t\tArrayList<Integer> masterHashList = UniversalHashList.get(i);\n\t\t\twhile (srcDstMapIt.hasNext()) {\n\t\t\t\tMap.Entry pair = (Map.Entry) srcDstMapIt.next();\n\t\t\t\tsrc = pair.getKey().toString();\n\t\t\t\tList dstList = (List) pair.getValue();\n\t\t\t\tmasterDstList.add(dstList);\n\t\t\t\tIterator dstListIt = dstList.iterator();\n\t\t\t\twhile (dstListIt.hasNext()) {\n\t\t\t\t\tint hashedSrc = masterHashSetGen(src, dstListIt.next().toString(), s, R);\n\t\t\t\t\t// String[] partsGeneratedStuff =\n\t\t\t\t\t// generatedStuff.trim().split(\":\");\n\t\t\t\t\t// String generatedIndex = partsGeneratedStuff[0];\n\t\t\t\t\t// String hashedSrc = partsGeneratedStuff[1];\n\t\t\t\t\tmasterHashList.add(hashedSrc % BitArray.length);\n\t\t\t\t\t// System.out.println(masterHashList);\n\t\t\t\t\tXsrcList.add(hashedSrc);\n\t\t\t\t\t// System.out.println(XsrcList);\n\t\t\t\t\tBitArray[Math.abs(hashedSrc % (BitArray.length))] = \"True\";\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tdouble bitMapCount = BitMapCount(BitArray, BitArray.length, s);\n\t\t// System.out.println(\"bitMapCount\"+bitMapCount);\n\n\t\tint XsrcIndexperDst = 0;\n\t\tIterator srcDstMapItrecons = srcDstMap.entrySet().iterator();\n\t\twhile (srcDstMapItrecons.hasNext()) {\n\t\t\tdouble XsrcRatio;\n\t\t\tMap.Entry pair = (Map.Entry) srcDstMapItrecons.next();\n\t\t\tsrc = pair.getKey().toString();\n\t\t\t// System.out.println(\"src\" + src);\n\t\t\tList dstList = (List) pair.getValue();\n\t\t\tmasterDstList.add(dstList);\n\t\t\tIterator dstListIt = dstList.iterator();\n\t\t\tString[] srcArray = new String[s];\n\t\t\tdouble count = 0;\n\t\t\t\twhile(dstListIt.hasNext()) {\n\t\t\t\t\tXsrcIndexperDst = XsrcIndexperDst(XsrcMasterList, masterDstList, s, BitArray, src,dstListIt.next().toString(), R) % m;\n\t\t\t\t\t// System.out.println(\"Value\"+BitArray[XsrcIndexperDst]);\n\t\t\t\t\tif (BitArray[XsrcIndexperDst] == \"True\") {\n\t\t\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\t}\n\t\t\t//System.out.println(\"count per source\" + count + \",\" + (s - count));\n\t\t\tXsrcRatio = -s * Math.log((s-count)/s);\n\t\t\tdouble estimatedSpread = -bitMapCount + XsrcRatio;\n\t\t\tif(estimatedSpread<=0)\n\t\t\t{\n\t\t\t\testimatedSpread=0;\n\t\t\t}\n\t\t\tout.println(dstList.size() + \",\" + estimatedSpread);\n\t\t}\n\n\t}", "public void detect_lines(float[] image,long width, long height, Lines contours, MutableLong num_result, double sigma, double low, double high, long mode, boolean compute_width, boolean correct_pos,boolean extend_lines, Junctions junctions)\r\n\t{\r\n\t byte[] ismax;\r\n\t float[] ev, n1, n2, p1, p2;\r\n\t float[][] k = new float[5][(int) (width*height)];\r\n\t \r\n\t// for (i=0;i<5;i++)\r\n\t// k[i] = xcalloc(width*height,sizeof(float));\r\n\t Convol convol = new Convol();\r\n\t convol.convolve_gauss(image,k[0],width,height,sigma,LinesUtil.DERIV_R);\r\n\t convol.convolve_gauss(image,k[1],width,height,sigma,LinesUtil.DERIV_C);\r\n\t convol.convolve_gauss(image,k[2],width,height,sigma,LinesUtil.DERIV_RR);\r\n\t convol.convolve_gauss(image,k[3],width,height,sigma,LinesUtil.DERIV_RC);\r\n\t \r\n\t convol.convolve_gauss(image,k[4],width,height,sigma,LinesUtil.DERIV_CC);\r\n\t\r\n\t ismax = new byte[(int) (width*height)];\r\n\t ev = new float[(int) (width*height)];\r\n\t n1 = new float[(int) (width*height)];\r\n\t n2 = new float[(int) (width*height)];\r\n\t p1 = new float[(int) (width*height)];\r\n\t p2 = new float[(int) (width*height)];\r\n\t /*\r\n\t * The C library function void *memset(void *str, int c, size_t n) \r\n\t * copies the character c (an unsigned char) to the first n characters \r\n\t * of the string pointed to by the argument str.\r\n\t */\r\n\t // memset(ismax,0,width*height*sizeof(*ismax));\r\n\t // memset(ev,0,width*height*sizeof(*ev));\r\n\t for(int j = 0; j < ismax.length; j++){\r\n\t\t ev[j] = 0;\r\n\t\t ismax[j] = 0;\r\n\t }\r\n\r\n\t compute_line_points(k,ismax,ev,n1,n2,p1,p2,width,height,low,high,mode);\r\n\t \r\n\t Link l = new Link();\r\n\t l.compute_contours(ismax,ev,n1,n2,p1,p2,k[0],k[1],contours,num_result,sigma,\r\n\t extend_lines,(int)mode,low,high,width,height,junctions);\r\n\t Width w = new Width();\r\n\t if (compute_width)\r\n\t w.compute_line_width(k[0],k[1],width,height,sigma,mode,correct_pos,contours,\r\n\t num_result);\r\n\r\n\t}", "void mergeOut() {\n String outputName = outputDir + flist.get(0).getName().substring(0,\n flist.get(0).getName().lastIndexOf(\".\"));\n if (outputType.equals(\"Text\")) {\n for (int i = 0; i < files.size(); i++) {\n Process p;\n String line;\n try {\n if (files.get(i).startsWith(\"pdf\")) {\n String[] images = files.get(i).split(\"\\n\");\n FileWriter writer = new FileWriter(outputName + \".txt\", true);\n BufferedWriter bWriter = new BufferedWriter(writer);\n for (int j = 1; j < images.length; j++) {\n p = Runtime.getRuntime().exec(SCRIPT + images[j]);\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n while ((line = r.readLine()) != null) {\n bWriter.write(line);\n bWriter.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n }\n bWriter.close();\n //cleanTempImages(images);\n } else if (files.get(i).startsWith(\"err\")) {\n System.out.println(\"Error with reading pdf.\");\n //cleanTempImages(files.get(i).split(\"\\n\"));\n } else {\n p = Runtime.getRuntime().exec(SCRIPT + files.get(i));\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n FileWriter writer = new FileWriter(outputName + \".txt\", true);\n BufferedWriter bWriter = new BufferedWriter(writer);\n while ((line = r.readLine()) != null) {\n bWriter.write(line);\n bWriter.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n bWriter.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n } else if (outputType.equals(\"PDF\")) {\n PDDocument document = new PDDocument();\n for (int i = 0; i < files.size(); i++) {\n Process p;\n String line;\n try {\n if (files.get(i).startsWith(\"pdf\")) {\n String[] images = files.get(i).split(\"\\n\");\n for (int j = 1; j < images.length; j++) {\n PDPage page = new PDPage();\n document.addPage(page);\n PDPageContentStream contentStream = new PDPageContentStream(document, page);\n contentStream.beginText();\n contentStream.setFont(PDType1Font.TIMES_ROMAN, 12);\n contentStream.setLeading(14.5f);\n contentStream.newLineAtOffset(25, 700);\n p = Runtime.getRuntime().exec(SCRIPT + images[j]);\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n while ((line = r.readLine()) != null) {\n contentStream.showText(line);\n contentStream.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n contentStream.endText();\n contentStream.close();\n }\n //cleanTempImages(images);\n } else if (files.get(i).startsWith(\"err\")) {\n System.out.println(\"Error with reading pdf.\");\n //cleanTempImages(files.get(i).split(\"\\n\"));\n } else {\n p = Runtime.getRuntime().exec(SCRIPT + files.get(i));\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n PDPage page = new PDPage();\n document.addPage(page);\n PDPageContentStream contentStream = new PDPageContentStream(document, page);\n contentStream.beginText();\n contentStream.setFont(PDType1Font.TIMES_ROMAN, 12);\n contentStream.setLeading(14.5f);\n contentStream.newLineAtOffset(25, 700);\n while ((line = r.readLine()) != null) {\n contentStream.showText(line);\n contentStream.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n contentStream.endText();\n contentStream.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n try {\n document.save(outputName + \".pdf\");\n document.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n }", "private void resampleAbdomenVOI() {\r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().get(0));\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n// ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm);\r\n \r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n int x = xcm;\r\n int y = ycm;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xDim && curve.contains(x, y)) {\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > 0 && curve.contains(x, y)) {\r\n\r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > 0 && curve.contains(x, y)) {\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yDim && curve.contains(x, y)) {\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n }\r\n } // end for (angle = 0; ...\r\n \r\n// ViewUserInterface.getReference().getMessageFrame().append(\"resample VOI number of points: \" +xValsAbdomenVOI.size());\r\n curve.clear();\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n curve.add( new Vector3f( xValsAbdomenVOI.get(idx), yValsAbdomenVOI.get(idx), 0 ) );\r\n }\r\n }", "public void execute(OutputManager om) {\n\n int numRegions = allROIs.length;\n \n \n // get the voxel classification\n // either from a voxel class map or from a brain / background segmentation\n int[][][] vc = new int[xDataDim][yDataDim][zDataDim];\n \n // number of PDs in each voxel (for Bayesian images)\n int[][][] voxelNumPDs = new int[xDataDim][yDataDim][zDataDim];\n \n for (int k = 0; k < zDataDim; k++) {\n for (int j = 0; j < yDataDim; j++) {\n for (int i = 0; i < xDataDim; i++) {\n vc[i][j][k] = 2;\n voxelNumPDs[i][j][k] = 1;\n }\n }\n }\n \n if (CL_Initializer.bgMaskFile != null) {\n \n if (ImageHeader.imageExists(CL_Initializer.bgMaskFile)) {\n if ( !CL_Initializer.headerTemplate.sameSpace(CL_Initializer.bgMaskFile) ) {\n throw new LoggedException(\"Brain mask must be in the same voxel space as the input data\");\n }\n }\n\n CL_Initializer.initMaskSource();\n \n for (int k = 0; k < zDataDim; k++) {\n for (int j = 0; j < yDataDim; j++) {\n for (int i = 0; i < xDataDim; i++) {\n \n double maskValue = CL_Initializer.bgMask.nextVoxel()[0];\n \n vc[i][j][k] = maskValue > 0.0 ? 2 : -1;\n voxelNumPDs[i][j][k] = maskValue > 0.0 ? 1 : 0;\n }\n }\n }\n \n }\n \n \n // use VC from file if we have it - note this overrides the bgmask\n\n // This needs generalizing to support NIfTI files / other formats. Ideally it should be decoupled from the\n // SH order (which is ambiguous over order 4 anyhow), it should be simply the number of PDs in the voxel\n //\n // Actually doing this will require work to the TractographyImage tree and other classes\n //\n if (CL_Initializer.voxelClassMap != null) {\n vc = new int[xDataDim][yDataDim][zDataDim];\n \n DataSource vcSource = ExternalDataSource.getDataSource(CL_Initializer.voxelClassMap, 1, \"int\");\n \n for (int k = 0; k < zDataDim; k++) {\n for (int j = 0; j < yDataDim; j++) {\n for (int i = 0; i < xDataDim; i++) {\n vc[i][j][k] = (int)vcSource.nextVoxel()[0];\n }\n }\n }\n }\n \n // get the anisotropy map, if any\n //\n // Could be FA or any scalar image where we cease tracking below a threshold\n double[][][] anisMap = null;\n \n if (anisMapFile != null) {\n if (ImageHeader.imageExists(anisMapFile)) {\n try {\n \n ImageHeader ih = ImageHeader.readHeader(anisMapFile);\n\n \n if (!CL_Initializer.headerTemplate.sameSpace(ih)) {\n throw new LoggedException(\"Anisotropy image must be in the same voxel space as the input data\");\n }\n\n\n anisMap = ih.readSingleVolumeData();\n }\n catch (IOException e) {\n throw new LoggedException(e);\n }\n }\n else {\n anisMap = new double[xDataDim][yDataDim][zDataDim];\n \n DataSource anisSource =\n ExternalDataSource.getDataSource(anisMapFile, 1, CL_Initializer.inputDataType);\n \n for (int k = 0; k < zDataDim; k++) {\n for (int j = 0; j < yDataDim; j++) {\n for (int i = 0; i < xDataDim; i++) {\n anisMap[i][j][k] = anisSource.nextVoxel()[0];\n }\n }\n }\n \n }\n }\n\n\n // set up the image\n \n TractographyImage image = null;\n \n switch (imageType) {\n\n\tcase BEDPOSTX : case BEDPOSTX_DYAD :\n\n\t boolean probabilistic = ( imageType == ImageType.BEDPOSTX ); \n\t \n\t image = BedpostxTractographyImage.getTractographyImage(bedpostxDir, probabilistic, bedpostxMinF, anisMap, anisThresh,\n\t\t\t\t\t\t\t\t new int[] {xDataDim, yDataDim, zDataDim},\n\t\t\t\t\t\t\t\t new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n\t \n\t break;\n\n \n case REPBS_DT: case REPBS_MULTITENSOR: \n \n CL_Initializer.initImagingScheme();\n \n \n image =\n RepBS_DWI_TractographyImage.getTractographyImage(CL_Initializer.bsDataFiles,\n CL_Initializer.inputDataType,\n CL_Initializer.imPars,\n CL_Initializer.inversionIndices,\n vc, anisMap, anisThresh,\n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n \n break;\n \n \n case WILDBS_DT:\n\t CL_Initializer.initImagingScheme();\n \n\t image =\n\t\tDT_WildBS_DWI_TractographyImage.getTractographyImage(CL_Initializer.inputFile,\n\t\t\t\t\t\t\t\t CL_Initializer.inputDataType,\n\t\t\t\t\t\t\t\t CL_Initializer.imPars,\n\t\t\t\t\t\t\t\t vc, anisMap, anisThresh, \n\t\t\t\t\t\t\t\t new int[] {xDataDim, yDataDim, zDataDim},\n\t\t\t\t\t\t\t\t new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n \n\t break;\n \n \n \n case PICO :\n \n image = PICoTractographyImage.getTractographyImage\n (CL_Initializer.inputFile, CL_Initializer.inputDataType, CL_Initializer.numPDsIO,\n picoPDF, anisMap, anisThresh, new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n \n break;\n \n case BAYESDIRAC: case BAYESDIRAC_DT :\n \n CL_Initializer.initImagingScheme();\n \n // Friman Bayesian method\n // add anisotropy map option\n\n BayesDataModel dataModel = imageType == ImageType.BAYESDIRAC ? BayesDataModel.BALL_STICK : BayesDataModel.CYL_SYMM_DT;\n\n BayesDiracTractographyImage bi = BayesDiracTractographyImage.getTractographyImage\n (CL_Initializer.inputFile, CL_Initializer.inputDataType,\n CL_Initializer.imPars, dataModel, voxelNumPDs, anisMap, anisThresh,\n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, CL_Initializer.pointSetInd, ran);\n \n if (curvePriorK > 0.0) {\n bi.setCurvePriorKappa(curvePriorK);\n }\n if (curvePriorG > 0.0) {\n bi.setCurvePriorGamma(curvePriorG);\n }\n \n if (externalPriorImageFile != null) {\n PICoTractographyImage ePrior = PICoTractographyImage.getTractographyImage\n (externalPriorImageFile, externalPriorDataType, CL_Initializer.numPDsIO,\n picoPDF, anisMap, anisThresh, new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n \n bi.setExternalPriors(ePrior);\n }\n \n image = bi;\n \n break;\n \n case SF_PEAK :\n image =\n SF_TractographyImage.getTractographyImage(CL_Initializer.inputFile, CL_Initializer.inputDataType,\n CL_Initializer.numPDsIO, anisMap, anisThresh,\n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim});\n break;\n \n case DT: case MULTITENSOR :\n image =\n DT_TractographyImage.getTractographyImage(CL_Initializer.inputFile, CL_Initializer.inputDataType,\n CL_Initializer.maxTensorComponents, anisMap, anisThresh,\n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim});\n break;\n\n case DWI_DT : case DWI_MULTITENSOR:\n\n CL_Initializer.initImagingScheme();\n\n image =\n DWI_TractographyImage.getTractographyImage(CL_Initializer.inputFile, CL_Initializer.inputDataType,\n CL_Initializer.imPars, CL_Initializer.inversionIndices,\n vc, anisMap, anisThresh, \n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim});\n break;\n\n\tcase VECTOR : \n\n\t image = PD_TractographyImage.getTractographyImage(vectorFiles, CL_Initializer.inputDataType,\n\t\t\t\t\t\t\t anisMap, anisThresh, \n\t\t\t\t\t\t\t new int[] {xDataDim, yDataDim, zDataDim},\n\t\t\t\t\t\t\t new double[] {xVoxelDim, yVoxelDim, zVoxelDim});\n\t break;\n \n default : throw new LoggedException(\"Unsupported image type : \" + imageType);\n \n }\n \n \n // Set up the interpolation\n\n ImageInterpolator interp = null;\n\n \n switch (dataInterpolation) {\n\n\n case NEAREST_NEIGHBOUR: \n \n interp = new NearestNeighbourInterpolator(image);\n\n break;\n\n case NEIGHBOUR_CHOICE: \n\n interp = new NeighbourChoiceInterpolator(image, ran);\n\n break;\n\n case DWI_TRILINEAR: \n\n interp = new DWI_LinearInterpolator((DWI_TractographyImage)image);\n\n break;\n\n case VECTOR_TRILINEAR: \n\n interp = new VectorLinearInterpolator(image);\n\n break;\n\n case TEND_NN: case TEND_NC:\n\n // how to interpolate the tensor data itself, in order to provide\n // the tensor for the TEND term\n TensorInterpolator dataInterp = null;\n\n if (dataInterpolation == DataInterpolation.TEND_NC) {\n dataInterp = new DT_NC_Interpolator((TensorTractographyImage)image, ran);\n }\n else {\n dataInterp = new DT_NN_Interpolator((TensorTractographyImage)image);\n }\n\n if (tendF_File != null) {\n try { \n ImageHeader ih = ImageHeader.readHeader(tendF_File);\n \n interp = new TendInterpolator((TensorTractographyImage)image, dataInterp, ih.readSingleVolumeData(), tendG);\n }\n catch (IOException e) {\n throw new LoggedException(e);\n\n }\n \n }\n else {\n interp = new TendInterpolator((TensorTractographyImage)image, dataInterp, tendF, tendG); \n }\n \n break;\n\n default: throw new LoggedException(\"Unsupported interpolation : \" + dataInterpolation);\n\n\n }\n\n \n // set up the tracker\n\n FibreTracker tracker = null;\n\n\n switch (trackingAlgorithm) {\n\n case FACT:\n \n tracker = new FACT_FibreTracker(image);\n \n break;\n \n case EULER: \n \n tracker = new EulerFibreTracker(interp, stepSize); \n\n break;\n\n case RK4: \n\n tracker = new RK4FibreTracker(interp, stepSize);\n\n break;\n }\n\n tracker.setCurveCheckInterval(checkCurveLength);\n tracker.setIP_Threshold(ipThresh);\n \n \n // And finally, do the tracking\n \n regions : for (int region = 0; region < allROIs.length; region++) {\n\n RegionOfInterest roi = allROIs[region];\n \n if (regionIndex > -1) {\n if (roi.getRegionLabel() != regionIndex) {\n continue;\n }\n }\n \n \n int outputRegionID = roi.getRegionLabel();\n \n \n // points defined in Camino space\n Point3D[] seeds = roi.getSeedPoints();\n \n if (!silent) {\n System.err.println(\"Processing ROI \" + (region + 1) + \" of \" + numRegions);\n }\n \n FileOutputStream fout = null;\n DataOutputStream dout = null;\n \n try {\n \n if (outputRoot == null) {\n dout = om.getOutputStream();\n }\n else {\n \n if (gzip) {\n fout = new FileOutputStream(outputRoot + outputRegionID + \".Bfloat.gz\");\n dout = new DataOutputStream(new GZIPOutputStream(fout, 1024*1024*16));\n \n }\n else {\n fout = new FileOutputStream(outputRoot + outputRegionID + \".Bfloat\");\n dout = new DataOutputStream\n (new BufferedOutputStream(fout, 1024*1024*16));\n }\n }\n \n \n \n \n seed: for (int sp = 0; sp < seeds.length; sp++) {\n \n if (!silent) {\n System.err.print(\"\\rProcessing seed \" + (sp + 1) + \" of \" + seeds.length);\n }\n \n Point3D seedPoint = seeds[sp];\n \n if (!tracker.inBounds(seedPoint)) {\n logger.warning(\"Seed point \\n\\t\" + seedPoint + \"\\n is outside the diffusion image space, ignoring\");\n continue seed;\n }\n\n int xVox = (int)(seedPoint.x / xVoxelDim);\n int yVox = (int)(seedPoint.y / yVoxelDim);\n int zVox = (int)(seedPoint.z / zVoxelDim);\n \n int numPDs = image.numberOfPDs(xVox, yVox, zVox);\n \n // if number of PDs is zero, track once\n // tracker will return the seed point\n numPDs = numPDs == 0 ? 1 : numPDs;\n \n for (int p = 0; p < numPDs; p++) {\n \n for (int i = 0; i < iterations; i++) {\n \n Tract t = tracker.trackFromSeed(seedPoint, p);\n \n // warp tracts to physical space\n t.transformToPhysicalSpace(voxelToPhysicalTrans, xVoxelDim, yVoxelDim, zVoxelDim);\n \n t.writeRaw(dout);\n \n }\n \n }\n \n } // end for seedpoints\n \n if (!silent) {\n System.err.println(\"\\n\");\n }\n \n if (outputRoot != null) {\n // want to close file\n dout.close();\n }\n \n }\n catch(IOException e) {\n throw new LoggedException(e);\n }\n \n } // end for all ROIs\n \n // close om stream\n if(om != null)\n om.close();\n \n }", "@Test\r\n public void testStripCommonTags() {\r\n String fileName = \"Modern.Family.S05E17.720p.DD5.1.AAC2.0.H.264.mkv\";\r\n String expResult = \"Modern.Family.S05E17.....mkv\";\r\n assertEquals(expResult, TVMatcher.stripCommonTags(fileName));\r\n fileName = \"the.walking.dead.s03e01.1080p.bluray.x264.mkv\";\r\n expResult = \"the.walking.dead.s03e01..bluray..mkv\";\r\n assertEquals(expResult, TVMatcher.stripCommonTags(fileName));\r\n fileName = \"house.of.cards.(2013).s01e01.bluray.dts.x264.mkv\";\r\n expResult = \"house.of.cards.(2013).s01e01.bluray.dts..mkv\";\r\n assertEquals(expResult, TVMatcher.stripCommonTags(fileName));\r\n }", "private void findVOIs(short[] cm, ArrayList<Integer> xValsAbdomenVOI, ArrayList<Integer> yValsAbdomenVOI, short[] srcBuffer, ArrayList<Integer> xValsVisceralVOI, ArrayList<Integer> yValsVisceralVOI) {\r\n \r\n // angle in radians\r\n double angleRad;\r\n \r\n // the intensity profile along a radial line for a given angle\r\n short[] profile;\r\n \r\n // the x, y location of all the pixels along a radial line for a given angle\r\n int[] xLocs;\r\n int[] yLocs;\r\n try {\r\n profile = new short[xDim];\r\n xLocs = new int[xDim];\r\n yLocs = new int[xDim];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT allocate profile\");\r\n return;\r\n }\r\n \r\n // the number of pixels along the radial line for a given angle\r\n int count;\r\n \r\n // The threshold value for muscle as specified in the JCAT paper\r\n int muscleThresholdHU = 16;\r\n \r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n count = 0;\r\n int x = cm[0];\r\n int y = cm[1];\r\n int yOffset = y * xDim;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xDim && sliceBuffer[yOffset + x] == abdomenTissueLabel) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = srcBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = cm[1] - (int)((x - cm[0]) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n // x, y is a candidate abdomen VOI point\r\n // if there are more abdomenTissueLabel pixels along the radial line,\r\n // then we stopped prematurely\r\n \r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends and the muscle starts\r\n \r\n // start at the end of the profile array since its order is from the\r\n // center-of-mass to the abdomen voi point\r\n \r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU) {\r\n idx--;\r\n }\r\n if (idx <= 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n break;\r\n }\r\n xValsVisceralVOI.add(xLocs[idx]);\r\n yValsVisceralVOI.add(yLocs[idx]);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > 0 && sliceBuffer[yOffset + x] == abdomenTissueLabel) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = srcBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = cm[0] + (int)((cm[1] - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends\r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU) {\r\n idx--;\r\n }\r\n if (idx == 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n return;\r\n }\r\n xValsVisceralVOI.add(xLocs[idx]);\r\n yValsVisceralVOI.add(yLocs[idx]);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > 0 && sliceBuffer[yOffset + x] == abdomenTissueLabel) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = srcBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n x--;\r\n y = cm[1] - (int)((cm[0] - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends\r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU) {\r\n idx--;\r\n }\r\n if (idx == 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n return;\r\n }\r\n xValsVisceralVOI.add(xLocs[idx]);\r\n yValsVisceralVOI.add(yLocs[idx]);\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yDim && sliceBuffer[yOffset + x] == abdomenTissueLabel) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = srcBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n y++;\r\n x = cm[0] - (int)((y - cm[1]) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends\r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU) {\r\n idx--;\r\n }\r\n if (idx == 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n return;\r\n }\r\n xValsVisceralVOI.add(xLocs[idx]);\r\n yValsVisceralVOI.add(yLocs[idx]);\r\n\r\n }\r\n } // end for (angle = 0; ...\r\n\r\n }", "private static void merge(String[] inFiles, String mergedFile){\n \n List<BufferedReader> readers = new ArrayList<BufferedReader>();\n //create list of Readers for all files \n for (int i = 0; i < inFiles.length; ++i) \n {\n try {\n BufferedReader bfr = new BufferedReader(new FileReader(inFiles[i]));\n readers.add(bfr); \n }\n catch (FileNotFoundException ex){ \n System.out.println(\"ERROR: File \" + inFiles[i] + \" was not found.\");\n }\n catch (Exception ex){ \n System.out.println(\"ERROR: Could not open \" + inFiles[i] + \".\");\n }\n }\n \n StringBuilder sb = new StringBuilder(); \n boolean stop = false;\n \n //read lines from each file simultaneously \n //and store them in string\n //until there are no more lines in any file \n while (!stop) { \n int emptyFile = 0; //number of files whose all lines have been read\n for (BufferedReader reader: readers)\n {\n try { //read one line from all files\n String line = reader.readLine(); \n if (line == null) \n emptyFile++; \n else {\n sb.append(line);\n sb.append(System.getProperty(\"line.separator\"));\n }\n }\n catch (IOException ex) {\n System.out.println(\"Error reading line.\");\n }\n }\n //stop when all lines from all files have been read\n if (emptyFile == readers.size()) \n stop = true;\n }\n \n //write the lines read from input files into destination file\n try {\n BufferedWriter writer = new BufferedWriter(new FileWriter(mergedFile));\n writer.write(sb.toString()); \n try {\n writer.close();\n } \n catch(IOException ie) { }\n }\n catch (IOException ex) {\n System.out.println(\"ERROR: Could not open \" + mergedFile + \".\");\n }\n \n }", "public OIFitsFile createOIFitsFromCurrentSubsetDefinition() {\n final SubsetDefinition subsetDefinition = getCurrentSubsetDefinitionRef();\n\n final SelectorResult result = findOIData(subsetDefinition);\n\n final OIFitsFile oiFitsFile = Merger.process(result);\n oiFitsFile.analyze();\n\n return oiFitsFile;\n }", "double[] Write(){\n\n double[] volumes = new double[3]; /** Feature Vector */\n\n /** Reading image from file */\n ImageReader imageReader = new ImageReader(image_Location);\n \n /** Writing 175 images */\n imageReader.writeImagefiles();\n\n /** Image array of full size */\n Image = imageReader.getImage();\n\n\n /** Image compression by interpolation */\n Compress compress = new Compress(Image);\n\n /** Reduced image */\n Data_Nn = compress.getReduced();\n\n /** Writing Features in a text file */\n ImageWriter imageWriter = new ImageWriter(Data_Nn,text_Location);\n \n /** get feature vector from compressed image */\n volumes = imageWriter.getVolume();\n return volumes;\n }", "static void getVisible3() throws IOException {\n\t\tDelimitedWriter dw = new DelimitedWriter(Main.file_visible_str);\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbdump_3_str_noh_sb1);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tdw.write(l[0], \"str0\", l[1], l[2]);\r\n\t\t\t}\r\n\t\t\tdr.close();\r\n\t\t}\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible + \".4\");\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tif (!l[3].startsWith(\"/m/\")) {\r\n\t\t\t\t\tdw.write(l[0], \"str1\", l[2], l[3], l[4]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdr.close();\r\n\t\t}\r\n\t\tdw.close();\r\n\t}", "public static void testTrackBreakdown(){\n\t\tImageJ imj = new ImageJ(ImageJ.NO_SHOW);\n\t\t\n//\t\tExperiment_Processor ep;\n\t\t\n//\t\tProcessingParameters prParam = new ProcessingParameters();\n//\t\tprParam.diagnosticIm = false;\n\t\t\n\t\t//Set src and dest\n\t\tString srcName = \"E:\\\\testing\\\\Java Backbone Fitting\\\\Fitting Params\\\\fullExptWithAreaSplit_0.7-1.4_otherPtSplit\\\\divergedTrackExp.prejav\";\n\t\tString dstBaseDir = \"E:\\\\testing\\\\Java Backbone Fitting\\\\Track Breakdown\\\\\";\n\t\t\n\t\tExperiment ex = new Experiment(srcName);\n\t\t//Find a long track\n\t\t\n//\t\tint len = 16726;\n\t\t//Find a track that's the length of the experiment\n//\t\tSystem.out.println(\"Finding full-experiment track in \"+ex.tracks.size()+\" tracks...\");\n\t\tTrack longTrack = null;\n//\t\tint i;\n//\t\tfor (i=0; (i<ex.tracks.size() && longTrack==null); i++){\n//\t\t\tif (ex.getTrackFromInd(i).points.size()==len) longTrack=ex.getTrackFromInd(i);\n//\t\t}\n//\t\tSystem.out.println(\"Found track (ind=\"+i+\")\");\n\t\t\n\t\t\n\t\tVector<Track> fits = new Vector<Track>();\n\t\tVector<Track> divs = new Vector<Track>();\n\t\tBackboneFitter bbf;\n\t\tfor (int j=0; j<ex.tracks.size(); j++){\n\t\t\t\n\t\t\tlongTrack = ex.tracks.get(j);\n\t\t\tint len = longTrack.points.size();\n\t\t\tint clipLen = 500;\n\t\t\tif (len>(clipLen*3)){\n\t\t\t\tVector<Track> fitTracks = new Vector<Track>();\n\t\t\t\tVector<Track> divTracks = new Vector<Track>();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Clipping and Fitting track...\");\n\t\t\t\tfor (int i=0; i<=len/clipLen; i++){\n\t\t\t\t\n\t\t\t\t\tbbf = new BackboneFitter();\n\t\t//\t\t\tbbf.clipEnds = true;\n\t\t\t\t\tint sf = 1+i*clipLen;\n\t\t\t\t\tint ef = (len<((i+1)*clipLen))? len-1: (i+1)*clipLen;\n\t\t\t\t\t\n\t\t\t\t\tTrack clipTrack = new Track(longTrack.getPoints().subList(sf, ef), i);\n\t\t\t\t\t\t\n\t\t\t\t\t///method no longer exists\n\t\t\t\t\t//bbf.fitTrack(clipTrack);\n\t\t\t\t\t///\n\t\t\t\t\t\n\t\t\t\t\tif (bbf.getTrack()!=null){\n\t\t\t\t\t\tfitTracks.add(bbf.getTrack());\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdivTracks.add(clipTrack);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfits.addAll(fitTracks);\n\t\t\t\tdivs.addAll(divTracks);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"...Done fitting: \"+fitTracks.size()+\"/\"+(fitTracks.size()+divTracks.size()+\" were fit properly\"));\n\t\t\t\t\n\t\t\t\tExperiment fitEx = new Experiment();\n\t\t\t\tfitEx.tracks = fitTracks;\n\t\t\t\tExperiment divEx = new Experiment();\n\t\t\t\tdivEx.tracks = divTracks;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tFile f = new File(dstBaseDir+\"tracks\\\\track\"+j+\"\\\\\");\n\t\t\t\t\tif (!f.exists()) f.mkdirs();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tf = new File(dstBaseDir+\"tracks\\\\track\"+j+\"\\\\\"+\"fitTrackExp.jav\");\n\t\t\t\t\tSystem.out.println(\"Saving fit track experiment to \"+f.getPath());\n\t\t\t\t\ttry{\n\t\t\t\t\t\tDataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f))); \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tfitEx.toDisk(dos, null);\n\t\t\t\t\t\tdos.close();\n\t\t\t\t\t\tSystem.out.println(\"Done saving fit tracks\");\n\t\t\t\t\t} catch(Exception e){\n\t\t\t\t\t\tSystem.out.println(\"Save error\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tf = new File(dstBaseDir+\"tracks\\\\track\"+j+\"\\\\\"+\"divergedTrackExp.prejav\");\n\t\t\t\t\tSystem.out.println(\"Saving error track experiment to \"+f.getPath());\n\t\t\t\t\ttry{\n\t\t\t\t\t\tDataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f))); \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tdivEx.toDisk(dos, null);\n\t\t\t\t\t\tdos.close();\n\t\t\t\t\t\tSystem.out.println(\"Done saving diverged tracks\");\n\t\t\t\t\t} catch(Exception e){\n\t\t\t\t\t\tSystem.out.println(\"Save error\");\n\t\t\t\t\t}\n\t\t\n\t\t\t\t} catch (Exception e){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tExperiment fitEx = new Experiment();\n\t\tfitEx.tracks = fits;\n\t\tExperiment divEx = new Experiment();\n\t\tdivEx.tracks = divs;\n\t\t\n\t\ttry {\n\t\t\tFile f = new File(dstBaseDir+\"allFitTracks.jav\");\n\t\t\tSystem.out.println(\"Saving fit track experiment to \"+f.getPath());\n\t\t\ttry{\n\t\t\t\tDataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f))); \n\t\t\t\t\t\t\n\t\t\t\tfitEx.toDisk(dos, null);\n\t\t\t\tdos.close();\n\t\t\t\tSystem.out.println(\"Done saving fit tracks\");\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.out.println(\"Save error\");\n\t\t\t}\n\t\t\t\n\t\t\tf = new File(dstBaseDir+\"allDivTracks.prejav\");\n\t\t\tSystem.out.println(\"Saving error track experiment to \"+f.getPath());\n\t\t\ttry{\n\t\t\t\tDataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f))); \n\t\t\t\t\t\t\n\t\t\t\tdivEx.toDisk(dos, null);\n\t\t\t\tdos.close();\n\t\t\t\tSystem.out.println(\"Done saving diverged tracks\");\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.out.println(\"Save error\");\n\t\t\t}\n\n\t\t} catch (Exception e){\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\timj.quit();\n\t}", "void separateOut() {\n for (int i = 0; i < files.size(); i++) {\n Process p;\n String line;\n try {\n if (files.get(i).startsWith(\"pdf\")) {\n String[] images = files.get(i).split(\"\\n\");\n if (outputType.equals(\"Text\")) {\n FileWriter writer = new FileWriter(outputDir\n + flist.get(i).getName().substring(0,\n flist.get(i).getName().lastIndexOf(\".\")) + \".txt\", false);\n BufferedWriter bWriter = new BufferedWriter(writer);\n for (int j = 1; j < images.length; j++) {\n p = Runtime.getRuntime().exec(SCRIPT + images[j]);\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n while ((line = r.readLine()) != null) {\n bWriter.write(line);\n bWriter.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n }\n bWriter.close();\n } else if (outputType.equals(\"PDF\")) {\n PDDocument document = new PDDocument();\n for (int j = 1; j < images.length; j++) {\n PDPage page = new PDPage();\n document.addPage(page);\n PDPageContentStream contentStream = new PDPageContentStream(document, page);\n contentStream.beginText();\n contentStream.setFont(PDType1Font.TIMES_ROMAN, 12);\n contentStream.setLeading(14.5f);\n contentStream.newLineAtOffset(25, 700);\n p = Runtime.getRuntime().exec(SCRIPT + images[j]);\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n while ((line = r.readLine()) != null) {\n contentStream.showText(line);\n contentStream.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n contentStream.endText();\n contentStream.close();\n }\n document.save(outputDir + flist.get(i).getName().substring(0,\n flist.get(i).getName().lastIndexOf(\".\")) + \".pdf\");\n document.close();\n }\n //cleanTempImages(images);\n } else if (files.get(i).startsWith(\"err\")) {\n System.out.println(\"Error with reading pdf.\");\n //cleanTempImages(files.get(i).split(\"\\n\"));\n } else {\n p = Runtime.getRuntime().exec(SCRIPT + files.get(i));\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n if (outputType.equals(\"Text\")) {\n FileWriter writer = new FileWriter(outputDir + flist.get(i).getName().substring(0,\n flist.get(i).getName().lastIndexOf(\".\")) + \".txt\", false);\n BufferedWriter bWriter = new BufferedWriter(writer);\n while ((line = r.readLine()) != null) {\n bWriter.write(line);\n bWriter.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n bWriter.close();\n } else if (outputType.equals(\"PDF\")) {\n PDDocument document = new PDDocument();\n PDPage page = new PDPage();\n document.addPage(page);\n PDPageContentStream contentStream = new PDPageContentStream(document, page);\n contentStream.beginText();\n contentStream.setFont(PDType1Font.TIMES_ROMAN, 12);\n contentStream.setLeading(14.5f);\n contentStream.newLineAtOffset(25, 700);\n while ((line = r.readLine()) != null) {\n contentStream.showText(line);\n contentStream.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n contentStream.endText();\n contentStream.close();\n document.save(outputDir + flist.get(i).getName().substring(0,\n flist.get(i).getName().lastIndexOf(\".\")) + \".pdf\");\n document.close();\n }\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n }", "@Test(dataProvider = \"goodInputVcfs\")\n public void testNoFiltering(final File input) throws Exception {\n final File out = testFiltering(input, \".vcf.gz\", 0, 0, 0, Double.MAX_VALUE);\n final VCFFileReader in = new VCFFileReader(out, false);\n for (final VariantContext ctx : in) {\n if (!ctx.filtersWereApplied() || ctx.isFiltered()) {\n Assert.fail(\"Context should not have been filtered: \" + ctx.toString());\n }\n }\n in.close();\n }", "public void prepareVisionProcessing(){\n usbCamera = CameraServer.getInstance().startAutomaticCapture();\n /*\n MjpegServer mjpegServer1 = new MjpegServer(\"serve_USB Camera 0\", 1181);\n mjpegServer1.setSource(usbCamera);\n\n // Creates the CvSink and connects it to the UsbCamera\n CvSink cvSink = new CvSink(\"opencv_USB Camera 0\");\n cvSink.setSource(usbCamera);\n\n // Creates the CvSource and MjpegServer [2] and connects them\n CvSource outputStream = new CvSource(\"Blur\", PixelFormat.kMJPEG, 640, 480, 30);\n MjpegServer mjpegServer2 = new MjpegServer(\"serve_Blur\", 1182);\n mjpegServer2.setSource(outputStream);\n */\n }", "public Vector loadAffyGCOSExpressionFile(File f) throws IOException {\r\n \tthis.setTMEVDataType();\r\n final int preSpotRows = this.sflp.getXRow()+1;\r\n final int preExperimentColumns = this.sflp.getXColumn();\r\n int numLines = this.getCountOfLines(f);\r\n int spotCount = numLines - preSpotRows;\r\n\r\n if (spotCount <= 0) {\r\n JOptionPane.showMessageDialog(superLoader.getFrame(), \"There is no spot data available.\", \"TDMS Load Error\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n \r\n int[] rows = new int[] {0, 1, 0};\r\n int[] columns = new int[] {0, 1, 0};\r\n //String value,pvalue;\r\n String detection;\r\n\r\n float cy3, cy5;\r\n\r\n String[] moreFields = new String[1];\r\n String[] extraFields=null;\r\n final int rColumns = 1;\r\n final int rRows = spotCount;\r\n \r\n ISlideData slideDataArray[]=null;\r\n AffySlideDataElement sde=null;\r\n FloatSlideData slideData=null;\r\n \r\n BufferedReader reader = new BufferedReader(new FileReader(f));\r\n StringSplitter ss = new StringSplitter((char)0x09);\r\n String currentLine;\r\n int counter, row, column,experimentCount=0;\r\n counter = 0;\r\n row = column = 1;\r\n this.setFilesCount(1);\r\n this.setRemain(1);\r\n this.setFilesProgress(0);\r\n this.setLinesCount(numLines);\r\n this.setFileProgress(0);\r\n float[] intensities = new float[2];\r\n \r\n while ((currentLine = reader.readLine()) != null) {\r\n if (stop) {\r\n return null;\r\n }\r\n// fix empty tabbs appending to the end of line by wwang\r\n while(currentLine.endsWith(\"\\t\")){\r\n \tcurrentLine=currentLine.substring(0,currentLine.length()-1);\r\n }\r\n ss.init(currentLine);\r\n \r\n if (counter == 0) { // parse header\r\n \t\r\n \tif(sflp.onlyIntensityRadioButton.isSelected()) \r\n \t\texperimentCount = ss.countTokens()- preExperimentColumns;\r\n \t\t\r\n \tif(sflp.intensityWithDetectionRadioButton.isSelected()) \r\n \t\texperimentCount = (ss.countTokens()+1- preExperimentColumns)/2;\r\n \t\t\r\n \tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()) \r\n \t\texperimentCount = (ss.countTokens()+1- preExperimentColumns)/3;\r\n \t\r\n \t\r\n \tslideDataArray = new ISlideData[experimentCount];\r\n \tSampleAnnotation sampAnn=new SampleAnnotation();\r\n \tslideDataArray[0] = new SlideData(rRows, rColumns, sampAnn);//Added by Sarita to include SampleAnnotation model.\r\n \r\n slideDataArray[0].setSlideFileName(f.getPath());\r\n for (int i=1; i<experimentCount; i++) {\r\n \tsampAnn=new SampleAnnotation();\r\n \tslideDataArray[i] = new FloatSlideData(slideDataArray[0].getSlideMetaData(),spotCount, sampAnn);//Added by Sarita \r\n \tslideDataArray[i].setSlideFileName(f.getPath());\r\n \t//System.out.println(\"slideDataArray[i].slide file name: \"+ f.getPath());\r\n }\r\n if(sflp.onlyIntensityRadioButton.isSelected()){\r\n \tString [] fieldNames = new String[1];\r\n \t//extraFields = new String[1];\r\n \tfieldNames[0]=\"AffyID\";\r\n \tslideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n }else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \tString [] fieldNames = new String[2];\r\n \textraFields = new String[1];\r\n fieldNames[0]=\"AffyID\";\r\n fieldNames[1]=\"Detection\";\r\n slideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n }else{\r\n \tString [] fieldNames = new String[3];\r\n \textraFields = new String[2];\r\n fieldNames[0]=\"AffyID\";\r\n fieldNames[1]=\"Detection\";\r\n fieldNames[2]=\"P-value\";\r\n slideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n \r\n }\r\n ss.nextToken();//parse the blank on header\r\n for (int i=0; i<experimentCount; i++) {\r\n \tString val=ss.nextToken();\r\n\t\t\t\t\tslideDataArray[i].setSampleAnnotationLoaded(true);\r\n\t\t\t\t\tslideDataArray[i].getSampleAnnotation().setAnnotation(\"Default Slide Name\", val);\r\n\t\t\t\t\tslideDataArray[i].setSlideDataName(val);\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.mav.getData().setSampleAnnotationLoaded(true);\r\n\t\t\t \t \r\n if(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \tss.nextToken();//parse the detection\r\n ss.nextToken();//parse the pvalue\r\n }else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \tss.nextToken();//parse the detection \r\n } \r\n }\r\n \r\n } else if (counter >= preSpotRows) { // data rows\r\n \trows[0] = rows[2] = row;\r\n \tcolumns[0] = columns[2] = column;\r\n \tif (column == rColumns) {\r\n \t\tcolumn = 1;\r\n \t\trow++;//commented by sarita\r\n \t\t\r\n \t\t\r\n \t} else {\r\n \t\tcolumn++;//commented by sarita\r\n \t\t\r\n \t\t\r\n \t}\r\n\r\n \t//affy ID\r\n \tmoreFields[0] = ss.nextToken();\r\n \r\n \t\r\n \t\r\n String cloneName = moreFields[0];\r\n if(_tempAnno.size()!=0) {\r\n \t \r\n \t \t \r\n \t if(((MevAnnotation)_tempAnno.get(cloneName))!=null) {\r\n \t\t MevAnnotation mevAnno = (MevAnnotation)_tempAnno.get(cloneName);\r\n\r\n \t\t sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, intensities, moreFields, mevAnno);\r\n \t }else {\r\n \t /**\r\n \t * Sarita: clone ID explicitly set here because if the data file\r\n \t * has a probe (for eg. Affy house keeping probes) for which Resourcerer\r\n \t * does not have annotation, MeV would still work fine. NA will be\r\n \t * appended for the rest of the fields. \r\n \t * \r\n \t * \r\n \t */\r\n \t\tMevAnnotation mevAnno = new MevAnnotation();\r\n \t\tmevAnno.setCloneID(cloneName);\r\n sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, new float[2], moreFields, mevAnno);\r\n \t \t\t \r\n }\r\n }\r\n /* Added by Sarita\r\n * Checks if annotation was loaded and accordingly use\r\n * the appropriate constructor.\r\n * \r\n * \r\n */\r\n \r\n else {\r\n sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, intensities, moreFields);\r\n }\r\n \r\n \t\r\n \t//sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, new float[2], moreFields);\r\n\r\n \tslideDataArray[0].addSlideDataElement(sde);\r\n \tint i=0;\r\n\r\n \tfor ( i=0; i<slideDataArray.length; i++) { \r\n \t\ttry {\t\r\n\r\n \t\t\t// Intensity\r\n \t\t\tintensities[0] = 1.0f;\r\n \t\t\tintensities[1] = ss.nextFloatToken(0.0f);\r\n \t\t\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\t\r\n \t\t\t\textraFields[0]=ss.nextToken();//detection\r\n \t\t\t\textraFields[1]=ss.nextToken();//p-value\r\n \t\t\t\t\r\n \t\t\t}else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\textraFields[0]=ss.nextToken();//detection\r\n \t\t\t}\r\n\r\n \t\t} catch (Exception e) {\r\n \t\t\t\r\n \t\t\tintensities[1] = Float.NaN;\r\n \t\t}\r\n \t\tif(i==0){\r\n \t\t\t\r\n \t\t\tslideDataArray[i].setIntensities(counter - preSpotRows, intensities[0], intensities[1]);\r\n \t\t\t//sde.setExtraFields(extraFields);\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\tsde.setDetection(extraFields[0]);\r\n \t\t\t\tsde.setPvalue(new Float(extraFields[1]).floatValue());\r\n \t\t\t}else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\tsde.setDetection(extraFields[0]);\r\n \t\t\t}\r\n \t\t}else{\r\n \t\t\tif(i==1){\r\n \t\t\t\tmeta = slideDataArray[0].getSlideMetaData(); \t\r\n \t\t\t}\r\n \t\t\tslideDataArray[i].setIntensities(counter-preSpotRows,intensities[0],intensities[1]);\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setDetection(counter-preSpotRows,extraFields[0]);\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setPvalue(counter-preSpotRows,new Float(extraFields[1]).floatValue());\r\n \t\t\t}\r\n \t\t\tif(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setDetection(counter-preSpotRows,extraFields[0]);\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n\r\n } else {\r\n //we have additional sample annoation\r\n \r\n \tfor (int i = 0; i < preExperimentColumns - 1; i++) {\r\n\t\t\t\t\tss.nextToken();\r\n\t\t\t\t}\r\n\t\t\t\tString key = ss.nextToken();\r\n\r\n\t\t\t\tfor (int j = 0; j < slideDataArray.length; j++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(slideDataArray[j].getSampleAnnotation()!=null){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tString val=ss.nextToken();\r\n\t\t\t\t\t\tslideDataArray[j].getSampleAnnotation().setAnnotation(key, val);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tSampleAnnotation sampAnn=new SampleAnnotation();\r\n\t\t\t\t\t\t\tsampAnn.setAnnotation(key, ss.nextToken());\r\n\t\t\t\t\t\t\tslideDataArray[j].setSampleAnnotation(sampAnn);\r\n\t\t\t\t\t\t\tslideDataArray[j].setSampleAnnotationLoaded(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n \t}\r\n \t\r\n this.setFileProgress(counter);\r\n \tcounter++;\r\n \t//System.out.print(counter);\r\n \t}\r\n reader.close();\r\n \r\n \r\n Vector data = new Vector(slideDataArray.length);\r\n \r\n for(int j = 0; j < slideDataArray.length; j++)\r\n \tdata.add(slideDataArray[j]);\r\n \r\n this.setFilesProgress(1);\r\n return data;\r\n }", "List<VcfEntry> runVcf(boolean createList) {\n\t\t// Iterate over file\n\t\tArrayList<VcfEntry> list = new ArrayList<>();\n\t\tVcfFileIterator vcf = new VcfFileIterator(vcfFile);\n\t\tvcf.setDebug(debug);\n\t\tString chrPrev = \"\";\n\t\tfor (VcfEntry ve : vcf) {\n\t\t\tif (vcf.isHeadeSection()) {\n\t\t\t\t// Add header line\n\t\t\t\tvcf.getVcfHeader().addLine(\"##INFO=<ID=\" + VCF_INFO_PHASTCONS_FIELD + \",Number=1,Type=Float,Description=\\\"PhastCons conservation score\\\">\");\n\n\t\t\t\t// Show header\n\t\t\t\tif (!createList) System.out.println(vcf.getVcfHeader());\n\t\t\t}\n\n\t\t\t// Do we need to load a database?\n\t\t\tif (!chrPrev.equals(ve.getChromosomeName())) {\n\t\t\t\tchrPrev = ve.getChromosomeName();\n\t\t\t\tloadChromo(chrPrev, ve);\n\t\t\t}\n\n\t\t\t// Annotate entry\n\t\t\tannotateVcf(ve);\n\n\t\t\t// Show or add to list\n\t\t\tif (createList) list.add(ve);\n\t\t\telse System.out.println(ve);\n\t\t}\n\n\t\treturn list;\n\t}", "public void editDetailLogFiles(){\r\n\t\tString filter1 = \"_advanced_detail_analyzed\";\r\n\t\tString filter2 = \"_standard_detail_analyzed\";\r\n\t\t\r\n\t\t//begin with creation of new file\r\n\t\tJFileChooser fc = new JFileChooser();\r\n\t\tfc.setSize(2560, 1300);\r\n\t\t//set directory and \".log\" filter\r\n\t\tfc.setMultiSelectionEnabled(true);\r\n\t\tfc.setCurrentDirectory(new File(System.getProperty(\"user.dir\")));\r\n\t\tfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\t\r\n\t\tint status = fc.showDialog(this, Messages.getString(\"EditLogControlPanel.approveButton\"));\r\n\t\t\r\n\t\tif(status == JFileChooser.APPROVE_OPTION){\r\n\t\t\tFile[] tmpFiles = fc.getSelectedFiles();\r\n\t\t\t\r\n\t\t\tfor(File file:tmpFiles){\r\n\t\t\t\t//get log names\r\n\t\t\t\tArrayList<File> files = getFileList(file);\r\n\t\t\t\r\n\t\t\t\tfor(File f:files){\r\n\t\t\t\t\tif(f.getName().contains(filter1) || f.getName().contains(filter2)){\r\n\t\t\t\t FileWriter fstream;\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tif(!(new File(f.getParent() + \"/corrected/\")).exists()) (new File(f.getParent() + \"/corrected/\")).mkdir();\r\n\t\t\t\t\t\t\tfstream = new FileWriter(f.getParent() + \"/corrected/\" + f.getName(), false);\r\n\t\t\t\t\t\t\tBufferedWriter out = new BufferedWriter(fstream);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tint vehiclesTotal = 0;\r\n\t\t\t\t\t\t\tString[] data;\r\n\t\t\t\t\t\t\tfloat[] tmpData = new float[100];\r\n\t\t\t\t\t\t\tfloat[][] tmpData2 = new float[100][100];\r\n\t\t\t\t\t\t\tint counter = 0;\r\n\t\t\t\t\t\t\t//read file\r\n\t\t\t\t\t BufferedReader reader;\r\n\t\t\t\t\t \r\n\t\t\t\t\t //get maximal vehicles count and calculates values of line\r\n\t\t\t\t\t try{\r\n\t\t\t\t\t reader = new BufferedReader(new FileReader(f));\r\n\t\t\t\t\t String line = reader.readLine(); \r\n\t\t\t\t\t while(line != null){\t\r\n\t\t\t\t\t \tif(!line.substring(0, 1).equals(\"#\") && !line.equals(\"\")){\r\n\t\t\t\t\t \t\tdata = line.split(\" \");\r\n\t\t\t\t\t \t\t\r\n\t\t\t\t\t \t\tfor(int i = 1; i < data.length-1;i++){\r\n\t\t\t\t\t \t\t\ttmpData[counter] += Integer.parseInt(data[i]);\r\n\t\t\t\t\t \t\t\tvehiclesTotal += Integer.parseInt(data[i]);\r\n\t\t\t\t\t \t\t\ttmpData2[counter][i-1] = Integer.parseInt(data[i]);\r\n\t\t\t\t\t \t\t}\r\n\t\t\t\t\t \t\tcounter++;\r\n\t\t\t\t\t \t}\r\n\t\t\t\t\t \telse out.write(line + \"\\n\");\r\n\t\t\t\t\t \t\r\n\t\t\t\t\t \tline = reader.readLine();\r\n\t\t\t\t\t }\r\n\t\t\t\t\t \r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t System.err.println(\"FileNotFoundException: \" + e.getMessage());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t \r\n\t\t\t\t\t float tmpSum = 0;\r\n\t\t\t\t\t\t\tfloat vehiclesTotal2 = 0;\r\n\t\t\t\t\t\t\tfor(int l = 0; l < counter;l++){\t\r\n\t\t\t\t\t\t\t\tout.write(\"\" + l);\r\n\t\t\t\t\t\t\t\tfor(int j = 0; j < counter-1; j++) out.write(\" \" + (int)tmpData2[l][j]);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(l == 0){\r\n\t\t\t\t\t\t\t\t\tout.write(\" \" + (float)(tmpData[l]/vehiclesTotal) + \"\\n\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(l == 1){\r\n\t\t\t\t\t\t\t\t\ttmpSum = 0;\r\n\t\t\t\t\t\t\t\t\tfor(int i = l; i < counter; i++) tmpSum += tmpData[i];\r\n\t\t\t\t\t\t\t\t\tout.write(\" \" + (float)(tmpSum/vehiclesTotal) + \"\\n\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\ttmpSum = 0;\r\n\t\t\t\t\t\t\t\t\tfor(int i = l; i < counter; i++) tmpSum += tmpData[i];\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tvehiclesTotal2 = vehiclesTotal;\r\n\t\t\t\t\t\t\t\t\tfor(int n = 0; n < (l-1);n++){\r\n\t\t\t\t\t\t\t\t\t\tfor(int o = 0; o < l;o++){\r\n\t\t\t\t\t\t\t\t\t\t\tvehiclesTotal2 -= tmpData2[o][n];\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tout.write(\" \" + (float)(tmpSum/vehiclesTotal2) + \"\\n\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t out.close();\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t \r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void trackFilteredObject(com.ilos.wiser.ILOSDataCollection.Object theObject, Mat threshold, Mat HSV, Mat cameraFeed, String colour, int counter) {\n ArrayList<com.ilos.wiser.ILOSDataCollection.Object> Objects = new ArrayList<>();\n Mat temp = new Mat();\n threshold.copyTo(temp);\n //Contours track the edges of the binary image\n List<MatOfPoint> contours = new ArrayList<>();\n Mat hierarchy = new Mat();\n boolean redFound = false;\n boolean blueFound = false;\n //Copies contours to the list contours\n Imgproc.findContours(temp,contours,hierarchy,Imgproc.RETR_EXTERNAL,Imgproc.CHAIN_APPROX_SIMPLE);\n boolean objectFound = false;\n if (!hierarchy.empty()) {\n for (int i = 0; i >=0; i = (int)hierarchy.get(i, 0)[1]) {\n MatOfPoint contour = contours.get(i);\n Moments moment = Imgproc.moments(contour);\n double area = moment.m00;\n if(area > MIN_AREA) {\n com.ilos.wiser.ILOSDataCollection.Object object = new com.ilos.wiser.ILOSDataCollection.Object(counter);\n //sets fields for the object based on the moment class\n object.setXPos(moment.m10/area);\n object.setYPos(moment.m01/area);\n object.type = theObject.type;\n object.colour = theObject.colour;\n //Tags if each object has been found to track how long it has been off screen for\n if(object.colour == new Scalar(255,0,0)){\n redFound = true;\n }\n if(object.colour == new Scalar(0,255,0)){\n blueFound = true;\n }\n //Appends a list of the object that are seen on the current frame\n Objects.add(object);\n\n objectFound = true;\n\n }else {objectFound = false;}\n }\n if(!redFound){\n if(redStart==1) {\n redStart = System.currentTimeMillis();\n }\n else{\n redEnd = System.currentTimeMillis();\n }\n if(redStart!=1 && redEnd!=0) {\n redGone = redEnd - redStart;\n if(redGone > 300) {\n System.out.println(\"RED OFF SCREEN: \" + redGone);\n }\n redStart = 1;\n redEnd = 0;\n }\n\n }\n if(!blueFound){\n if(blueStart==1) {\n blueStart = System.currentTimeMillis();\n }\n else{\n blueEnd = System.currentTimeMillis();\n }\n if(blueStart!=1 && blueEnd!=0) {\n blueGone = blueEnd - blueStart;\n if(blueGone > 300) {\n System.out.println(\"BLUE OFF SCREEN\" + blueGone);\n }\n blueStart = 1;\n blueEnd = 0;\n }\n }\n if(objectFound == true && collectData) {\n //This does all of the highlighting of the circles on the scren\n drawObject(Objects, mRgba, temp, contours, hierarchy);\n }\n //If collection is finished\n if(!collectData && redList.size()>0 && blueList.size()>0){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n coordText.setText(\"Press back to select a new path!\");\n }\n });\n }\n }\n }", "public void saveTrainingDataToFileHybridSampling1() throws Exception {\n NGramTokenizer tokenizer = new NGramTokenizer();\r\n tokenizer.setNGramMinSize(1);\r\n tokenizer.setNGramMaxSize(1);\r\n tokenizer.setDelimiters(\"\\\\W\");\r\n\r\n //set stemmer - set english stemmer\r\n SnowballStemmer stemmer = new SnowballStemmer();\r\n stemmer.setStemmer(\"english\");\r\n\r\n //set lemmatizer\r\n StanfordCoreNLPLemmatizer scnlpl = new StanfordCoreNLPLemmatizer();\r\n\r\n //create new filter for vector transformation\r\n StringToWordVector filter = new StringToWordVector();\r\n filter.setLowerCaseTokens(true);\r\n filter.setOutputWordCounts(true);\r\n filter.setTFTransform(true);\r\n filter.setIDFTransform(true);\r\n filter.setStopwords(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\StopWordsR2.txt\")); // stop word removal given in research paper\r\n filter.setTokenizer(tokenizer);\r\n filter.setStemmer(scnlpl);\r\n\r\n System.out.println(\"Stemmer Name- \" + filter.getStemmer());\r\n\r\n InstanceQuery query = new InstanceQuery();\r\n query.setUsername(\"root\");\r\n query.setPassword(\"\");\r\n\r\n int numberOfPapers = 5;\r\n Instances[] otherArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'other'\");\r\n otherArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='other'\");\r\n otherArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='other'\");\r\n otherArticles[2] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'other'\");\r\n otherArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'other'\");\r\n otherArticles[4] = query.retrieveInstances();\r\n\r\n Instances[] crimeArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'crime'\");\r\n crimeArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='crime'\");\r\n crimeArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='crime'\");\r\n crimeArticles[2] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'crime'\");\r\n crimeArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'crime'\");\r\n crimeArticles[4] = query.retrieveInstances();\r\n\r\n FastVector attributeList = new FastVector(2);\r\n Attribute a1 = new Attribute(\"text\", (FastVector) null);\r\n FastVector classVal = new FastVector();\r\n classVal.addElement(\"crime\");\r\n classVal.addElement(\"other\");\r\n Attribute c = new Attribute(\"@@class@@\", classVal);\r\n //add class attribute and news text\r\n attributeList.addElement(a1);\r\n attributeList.addElement(c);\r\n Instances trainingData = new Instances(\"TrainingNews\", attributeList, 0);\r\n trainingData.setClassIndex(1);\r\n\r\n //up sampling using SMOTE\r\n int crimeArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < crimeArticles[i].numInstances(); j++) {\r\n\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, crimeArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, crimeArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n crimeArticlesCount++;\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n\r\n System.out.println(\"Total Number of Crime Instances: \" + crimeArticlesCount);\r\n\r\n //downsampling using ?? \r\n int otherArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < otherArticles[i].numInstances(); j++) {\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, otherArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, otherArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n otherArticlesCount++;\r\n\r\n if (otherArticlesCount == 4872) {\r\n break;\r\n }\r\n }\r\n if (otherArticlesCount == 4872) {\r\n break;\r\n }\r\n }\r\n System.out.println(\"Total Number of Other Instances: \" + otherArticlesCount);\r\n System.out.println(\"Total num of instances= \" + trainingData.numInstances());\r\n\r\n // apply the StringToWordVector filter\r\n filter.setInputFormat(trainingData);\r\n Instances dataFiltered = Filter.useFilter(trainingData, filter);\r\n System.out.println(\"Number of Attributes after stop words removal- \" + dataFiltered.numAttributes());\r\n System.out.println(\"\\n\\nFiltered data:\\n\\n\" + dataFiltered);\r\n\r\n /**\r\n * Resamples a dataset by applying the Synthetic Minority Oversampling\r\n * TEchnique (SMOTE)\r\n * http://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node6.html\r\n * http://weka.sourceforge.net/doc.packages/SMOTE/weka/filters/supervised/instance/SMOTE.html \r\n *\r\n */\r\n SMOTE s = new SMOTE();\r\n s.setInputFormat(dataFiltered);\r\n // Specifies percentage of SMOTE instances to create.\r\n s.setPercentage(300.0);//464\r\n Instances dataBalanced = Filter.useFilter(dataFiltered, s);\r\n\r\n Random r = new Random();\r\n dataBalanced.randomize(r);\r\n\r\n ArffSaver saver = new ArffSaver();\r\n saver.setInstances(dataBalanced);\r\n saver.setFile(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataHybridRandom.arff\"));\r\n saver.writeBatch();\r\n }", "public void saveAndTransferVideoComplexObs(){\n\n try{\n List<Encounter> encounters = Context.getEncounterService().getEncounters(null, null, null, null, null, null, true);\n Encounter lastEncounter = encounters.get(encounters.size()-1);\n\n Person patient = lastEncounter.getPatient();\n ConceptComplex conceptComplex = Context.getConceptService().getConceptComplex(14);\n Location location = Context.getLocationService().getDefaultLocation();\n Obs obs = new Obs(patient, conceptComplex, new Date(), location) ;\n\n String mergedUrl = tempMergedVideoFile.getCanonicalPath();\n InputStream out1 = new FileInputStream(new File(mergedUrl));\n\n ComplexData complexData = new ComplexData(\"mergedFile1.flv\", out1);\n obs.setComplexData(complexData);\n obs.setEncounter(lastEncounter);\n\n Context.getObsService().saveObs(obs, null);\n tempMergedVideoFile.delete();\n\n }catch (Exception e){\n log.error(e);\n }\n }", "public float[] accumulateSimpleMixFiles(ArrayList<File> files){\r\n\t\t\tfloat[] returnValue = new float[10];\r\n\t\t\tfloat[] values = new float[10];\r\n\t\t\t\r\n\t\t for(File file:files){\t\t\t\t\t\r\n\t\t BufferedReader reader;\r\n\t\t try{\r\n\t\t reader = new BufferedReader(new FileReader(file));\r\n\t\t String line = reader.readLine(); \r\n\t\t while(line != null){\t\r\n\t\t \tif(line.substring(0,5).equals(\"Total\")){\r\n\t\t \t\tString[] values2 = line.split(\" \");\r\n\t\t \t\t\r\n\t\t \t\tfor(int i = 2; i < values2.length; i++) values[i-2] += Float.valueOf(values2[i]);\r\n\t\t \t}\r\n\t\t \tline = reader.readLine();\r\n\t\t }\r\n\t\t \r\n\t\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t System.err.println(\"FileNotFoundException: \" + e.getMessage());\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t System.err.println(\"Caught IOException: \" + e.getMessage());\r\n\t\t\t\t}\r\n\t\t }\r\n\r\n\t\t for(int j = 0; j < values.length; j++) returnValue[j] = (float)values[j]/files.size();\t\r\n\t\t \r\n\t\t return returnValue;\r\n\t\t}", "private byte [] mergeTestInternal(final List<EBMLTypeInfo> typeInfosToMergeOn)\n throws IOException, MkvElementVisitException {\n final byte [] inputBytes = TestResourceUtil.getTestInputByteArray(\"output_get_media.mkv\");\n\n\n //Reading again purely to show that the OutputSegmentMerger works even with streams\n //where all the data is not in memory.\n final InputStream in = TestResourceUtil.getTestInputStream(\"output_get_media.mkv\");\n\n //Stream to receive the merged output.\n final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\n //Do the actual merge.\n final OutputSegmentMerger merger =\n OutputSegmentMerger.create(outputStream, OutputSegmentMerger.Configuration.builder()\n .typeInfosToMergeOn(typeInfosToMergeOn)\n .build());\n\n final StreamingMkvReader mkvStreamReader =\n StreamingMkvReader.createDefault(new InputStreamParserByteSource(in));\n while (mkvStreamReader.mightHaveNext()) {\n final Optional<MkvElement> mkvElement = mkvStreamReader.nextIfAvailable();\n if (mkvElement.isPresent()) {\n mkvElement.get().accept(merger);\n }\n }\n\n final byte []outputBytes = outputStream.toByteArray();\n Assert.assertFalse(Arrays.equals(inputBytes, outputBytes));\n\n //Count different types of elements present in the merged stream.\n final CountVisitor countVisitor = getCountVisitorResult(outputBytes);\n\n //Validate that there is only one EBML header and segment and tracks\n //but there are 5 clusters and tracks as expected.\n assertCountsAfterMerge(countVisitor);\n\n return outputBytes;\n }", "public static void readDataPatterns(int sizeX, int sizeY, boolean trainORtest){\n StreamTokenizer tok=null;\n String filenameX, filenameY;\n if(trainORtest){\n filenameX=trainDataFileX;\n filenameY=trainDataFileY;\n }\n else{\n filenameX=testDataFileX;\n filenameY=testDataFileY;\n }\n try{\n tok = new StreamTokenizer(new BufferedReader(new FileReader(filenameX)));\n tok.ordinaryChar('\\n');\n //tok.ordinaryChar()\n }\n catch(java.io.FileNotFoundException e){\n System.out.println(e+\" in Context.java\");\n }\n int i=0;\n int j=0;\n float [][] curDat=new float[sizeX][sizeY];\n \n String str;\n try{\n j=0;\n while(tok.nextToken()!=StreamTokenizer.TT_EOF){\n if(j>=44){j=0;i++;}\n switch (tok.ttype){\n case StreamTokenizer.TT_EOL:\n i++;\n j=0;\n break;\n case '\\r': \n i++;\n j=0;\n break;\n case 'n':\n i++;\n j=0;\n break;\n case StreamTokenizer.TT_NUMBER:\n curDat[i][j]=(float)tok.nval;\n // System.out.println(tok.nval);\n // j=j+1;\n // if(j==3){\n // j=0;\n // i++;\n // }\n j++;\n break;\n default:\n // if(tok.ttype!=StreamTokenizer.TT_NUMBER && (tok.sval.compareTo(\"\\t\")!=0||tok.sval.compareTo(\" \")!=0)){//means a newline\n // j=0;\n // i++;\n // }\n break;\n }\n }\n }\n catch(java.io.EOFException e){\n //do nothing\n }\n catch(java.io.IOException e){\n //do nothing\n }\n catch(java.lang.ArrayIndexOutOfBoundsException e){\n //do nothing agin :(\n System.out.println(e+\"Here lies the bug\"+trainORtest+j+i);\n // System.exit(0);\n }\n System.out.println(\"Here is what I read\\n\"+i+j);\n for(i=0;i<2;i++){\n for(j=0;j<3;j++)\n System.out.print(curDat[i][j]+\"\\t\");\n System.out.println();\n }\n try{\n tok = new StreamTokenizer(new BufferedReader(new FileReader(filenameY)));\n tok.ordinaryChar('\\n');\n //tok.ordinaryChar()\n }\n catch(java.io.FileNotFoundException e){\n System.out.println(e+\" in Context.java\");\n }\n i=0;\n double [] DatY=new double[sizeX]; \n try{\n j=0;\n while(tok.nextToken()!=StreamTokenizer.TT_EOF){\n switch (tok.ttype){\n case StreamTokenizer.TT_EOL:\n // i++;\n break;\n // case '\\n':\n // i++;\n // j=0;\n // break;\n case StreamTokenizer.TT_NUMBER:\n DatY[i]=tok.nval;\n i++;\n // System.out.println(tok.nval);\n break;\n default:\n // j++;\n break;\n }\n }\n }\n catch(java.io.EOFException e){\n //do nothing\n }\n catch(java.io.IOException e){\n //do nothing\n }\n catch(java.lang.ArrayIndexOutOfBoundsException e){\n //do nothing agin :(\n System.out.println(e+\"Here lies the bug\");\n System.exit(0);\n }\n if(trainORtest){\n XData=curDat;\n Target=DatY;\n }\n else{\n TestXData=curDat;\n TestTarget=DatY;\n }\n// for(int jj=0;jj<XData.length;jj++){\n // XData[jj][1]*=100;\n // }\n }", "public void processData() {\n\t\t SamReader sfr = SamReaderFactory.makeDefault().validationStringency(ValidationStringency.LENIENT).open(this.inputFile);\n\t\t \n\t\t\t\n\t\t\t//Set up file writer\n\t\t SAMFileWriterFactory sfwf = new SAMFileWriterFactory();\n\t\t sfwf.setCreateIndex(true);\n\t\t SAMFileWriter sfw = sfwf.makeSAMOrBAMWriter(sfr.getFileHeader(), false, this.outputFile);\n\t\t \n\t\t \n\t\t\t\n\t\t\t\n\t\t\t//counters\n\t\t\tint totalReads = 0;\n\t\t\tint trimmedReads = 0;\n\t\t\tint droppedReads = 0;\n\t\t\tint dropTrimReads = 0;\n\t\t\tint dropMmReads = 0;\n\t\t\t\n\t\t\t//Containers\n\t\t\tHashSet<String> notFound = new HashSet<String>();\n\t\t\tHashMap<String, SAMRecord> mateList = new HashMap<String,SAMRecord>();\n\t\t\tHashSet<String> removedList = new HashSet<String>();\n\t\t\tHashMap<String,SAMRecord> editedList = new HashMap<String,SAMRecord>();\n\t\t\t\n\t\t\tfor (SAMRecord sr: sfr) {\n\t\t\t\t//Messaging\n\t\t\t\tif (totalReads % 1000000 == 0 && totalReads != 0) {\n\t\t\t\t\tSystem.out.println(String.format(\"Finished processing %d reads. %d were trimmed, %d were set as unmapped. Currently storing mates for %d reads.\",totalReads,trimmedReads,droppedReads,mateList.size()));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ttotalReads += 1;\n\t\t\t\t\n\t\t\t\tString keyToCheck = sr.getReadName() + \":\" + String.valueOf(sr.getIntegerAttribute(\"HI\"));\n\t\t\t\n\t\t\t\t//Make sure chromsome is available\n\t\t\t\tString chrom = sr.getReferenceName();\n\t\t\t\tif (!this.refHash.containsKey(chrom)) {\n\t\t\t\t\tif (!notFound.contains(chrom)) {\n\t\t\t\t\t\tnotFound.add(chrom);\n\t\t\t\t\t\tMisc.printErrAndExit(String.format(\"Chromosome %s not found in reference file, skipping trimming step\", chrom));\n\t\t\t\t\t}\n\t\t\t\t} else if (!sr.getReadUnmappedFlag()) {\n\t\t\t\t\tString refSeq = null;\n\t\t\t\t\tString obsSeq = null;\n\t\t\t\t\tList<CigarElement> cigar = null;\n\t\t\t\t\t\n\t\t\t\t\t//Get necessary sequence information depending on orientation\n\t\t\t\t\tif (sr.getReadNegativeStrandFlag()) {\n\t\t\t\t\t\trefSeq = this.revComp(this.refHash.get(chrom).substring(sr.getAlignmentStart()-1,sr.getAlignmentEnd()));\n\t\t\t\t\t\tobsSeq = this.revComp(sr.getReadString());\n\t\t\t\t\t\tcigar = this.reverseCigar(sr.getCigar().getCigarElements());\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\trefSeq = this.refHash.get(chrom).substring(sr.getAlignmentStart()-1,sr.getAlignmentEnd());\n\t\t\t\t\t\tobsSeq = sr.getReadString();\n\t\t\t\t\t\tcigar = sr.getCigar().getCigarElements();\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Get alignments\n\t\t\t\t\tString[] alns = this.createAlignmentStrings(cigar, refSeq, obsSeq, totalReads);\n\t\t\t\t\t\n\t\t\t\t\t//Identify Trim Point\n\t\t\t\t\tint idx = this.identifyTrimPoint(alns,sr.getReadNegativeStrandFlag());\n\t\t\t\t\t\n\t\t\t\t\t//Check error rate\n\t\t\t\t\tboolean mmPassed = false;\n\t\t\t\t\tif (mmMode) {\n\t\t\t\t\t\tmmPassed = this.isPoorQuality(alns, sr.getReadNegativeStrandFlag(), idx);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Create new cigar string\n\t\t\t\t\tif (idx < minLength || mmPassed) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tsr.setAlignmentStart(0);\n\t\t\t\t\t\tsr.setReadUnmappedFlag(true);\n\t\t\t\t\t\tsr.setProperPairFlag(false);\n\t\t\t\t\t\tsr.setReferenceIndex(-1);\n\t\t\t\t\t\tsr.setMappingQuality(0);\n\t\t\t\t\t\tsr.setNotPrimaryAlignmentFlag(false);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\t\tmateList.put(keyToCheck, this.changeMateUnmapped(mateList.get(keyToCheck)));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tremovedList.add(keyToCheck);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} \n\t\t\t\t\t\tdroppedReads += 1;\n\t\t\t\t\t\tif (idx < minLength) {\n\t\t\t\t\t\t\tdropTrimReads += 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdropMmReads += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (idx+1 != alns[0].length()) {\n\t\t\t\t\t\ttrimmedReads++;\n\t\t\t\t\t\tCigar oldCig = sr.getCigar();\n\t\t\t\t\t\tCigar newCig = this.createNewCigar(alns, cigar, idx, sr.getReadNegativeStrandFlag());\n\t\t\t\t\t\tsr.setCigar(newCig);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sr.getReadNegativeStrandFlag()) {\n\t\t\t\t\t\t\tint newStart = this.determineStart(oldCig, newCig, sr.getAlignmentStart());\n\t\t\t\t\t\t\tsr.setAlignmentStart(newStart);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (this.verbose) {\n\t\t\t\t\t\t\tthis.printAlignments(sr, oldCig, alns, idx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\t\tmateList.put(keyToCheck, this.changeMatePos(mateList.get(keyToCheck),sr.getAlignmentStart()));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\teditedList.put(keyToCheck,sr);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(sr.getReadName());\n\t\t\t\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t//String rn = sr.getReadName();\n\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\tif (editedList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\tsr = this.changeMatePos(sr,editedList.get(keyToCheck).getAlignmentStart());\n\t\t\t\t\t\t\teditedList.remove(keyToCheck);\n\t\t\t\t\t\t} else if (removedList.contains(keyToCheck)) {\n\t\t\t\t\t\t\tsr = this.changeMateUnmapped(sr);\n\t\t\t\t\t\t\tremovedList.remove(keyToCheck);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsfw.addAlignment(sr);\n\t\t\t\t\t\tsfw.addAlignment(mateList.get(keyToCheck));\n\t\t\t\t\t\tmateList.remove(keyToCheck);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmateList.put(keyToCheck, sr);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsfw.addAlignment(sr);\n\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\tmateList.remove(keyToCheck);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(String.format(\"Finished processing %d reads. %d were trimmed, %d were set as unmapped. Of the unmapped, %d were too short and %d had too many mismatches. Currently storing mates for %d reads.\",\n\t\t\t\t\ttotalReads,trimmedReads,droppedReads,dropTrimReads, dropMmReads, mateList.size()));\n\t\t\tSystem.out.println(String.format(\"Reads left in hash: %d. Writing to disk.\",mateList.size()));\n\t\t\tfor (SAMRecord sr2: mateList.values()) {\n\t\t\t\tsfw.addAlignment(sr2);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tsfw.close();\n\t\t\ttry {\n\t\t\t\tsfr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\t\n\t}", "public void run(){\n\n for (int locIdx = begN; locIdx < endN; locIdx++) {\n\n // do mean-shift for profiles at these locations\n\n for (int profileIdx=0; profileIdx<profiles.get(locIdx).size(); profileIdx++) {\n\n // access the detection\n// int profileLength = profiles.get(locIdx).get(profileIdx).length;\n\n // calculate peaks for the ring 'profileIdx'\n ArrayList<Float> currPeaks = extractPeakIdxsList(profiles.get(locIdx).get(profileIdx), startIdx.get(profileIdx), finishIdx.get(locIdx).get(profileIdx));\n\n //if (currPeaks.size()<3) {\n // // it is not a bifurcation according to MS for this ring, don't calculate further, leave empty fields of peakIdx at this location\n // break;\n //}\n //else {\n // add those points\n for (int pp=0; pp<currPeaks.size(); pp++){\n peakIdx.get(locIdx).get(profileIdx).add(pp, currPeaks.get(pp));\n }\n //}\n\n/*\n\t\t\t\tfor (int k=0; k<nrPoints; k++) {\n start[k] = ((float) k / nrPoints) * profileLength;\n }\n\n\t\t\t\tTools.runMS( \tstart,\n \tprofiles.get(locIdx).get(profileIdx),\n \tmaxIter,\n \tepsilon,\n \th,\n\t\t\t\t\t\t\t\tmsFinish);\n*/\n\n /*\n for (int i1=0; i1<nrPoints; i1++) {\n convIdx.get(locIdx).get(profileIdx)[i1] = (float) msFinish[i1];\n }\n*/\n/*\n int inputProfileLength = profiles.get(locIdx).get(profileIdx).length;\n Vector<float[]> cls = Tools.extractClusters1(msFinish, minD, M, inputProfileLength);\n\t\t\t\textractPeakIdx(cls, locIdx, profileIdx); // to extract 3 major ones (if there are three)\n*/\n\n }\n\n }\n\n }", "private void subdivide(EChannel cod_info) {\n\t\tint scfb_anz = 0;\n\n\t\tif ( bigvalues_region == 0) {\n\t\t\t/* no big_values region */\n\t\t\tcod_info.region0_count = 0;\n\t\t\tcod_info.region1_count = 0;\n\t\t} else {\n\n\t\t\tif ( cod_info.window_switching_flag == 0 ) {\n\n\t\t\t\tint index0, index1;\n\n\t\t\t\t/* Calculate scfb_anz */\n\t\t\t\twhile (scalefac_band_long[scfb_anz] < bigvalues_region)\n\t\t\t\t\tscfb_anz++;\n\t\t\t\t/*\t\t\tassert (scfb_anz < 23); */\n\n\t\t\t\tindex0 = (cod_info.region0_count = subdv_table[scfb_anz][0]) + 1;\n\t\t\t\tindex1 = (cod_info.region1_count = subdv_table[scfb_anz][1]) + 1;\n\n\t\t\t\tcod_info.address1 = scalefac_band_long[index0];\n\t\t\t\tcod_info.address2 = scalefac_band_long[index0 + index1];\n\t\t\t\tcod_info.address3 = bigvalues_region;\n\t\t\t} else {\n\t\t\t\tif ( (cod_info.block_type == 2) && (cod_info.mixed_block_flag == 0) ) {\n\t\t\t\t\tcod_info.region0_count = 8;\n\t\t\t\t\tcod_info.region1_count = 12;\n\t\t\t\t\tcod_info.address1 = 36;\n\t\t\t\t} else {\n\t\t\t\t\tcod_info.region0_count = 7;\n\t\t\t\t\tcod_info.region1_count = 13;\n\t\t\t\t\tcod_info.address1 = scalefac_band_long[ cod_info.region0_count + 1 ];\n\t\t\t\t}\n\t\t\t\tcod_info.address2 = bigvalues_region;\n\t\t\t\tcod_info.address3 = 0;\n\n\t\t\t}\n\t\t}\n\t}", "void loadNextSplitCurrentDir() throws IOException {\n\t\tCollection<File> files = fsIterator.getFiles();\n\t\n\t\tif (files == null || files.size() == 0)\n\t\t\treturn;\n\t\t\n\t\tIterator<File> it = files.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tFile file = it.next();\n\t\t\tRandomAccessFile raf = openedRAFs.get(file.getAbsolutePath());\n\t\t\tif (raf == null) {\n\t\t\t\ttry {\n\t\t\t\t\traf = new RandomAccessFile(file, \"r\");\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t// TODO: show warning that the file cannot be read\n\t\t\t\t\tit.remove();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tRandomAccessFile old = \n\t\t\t\t\t\topenedRAFs.put(file.getAbsolutePath(), raf);\n\t\t\t\tif (old != null)\n\t\t\t\t\told.close();\n\t\t\t}\n\t\t\t\n\t\t\tlong begin = splitter.splitBegin(raf);\n\t\t\tif (begin == -1) {\n\t\t\t\traf.close();\n\t\t\t\tit.remove();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\traf.seek(begin);\n\t\t\t\n\t\t\tlong end = splitter.splitEnd(raf, blocksize);\n\t\t\t\n\t\t\tif (begin == end) {\n\t\t\t\traf.close();\n\t\t\t\tit.remove();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\traf.seek(end);\n\t\t\t\n\t\t\tcurrentRAF = new RandomAccessFile(file, \"r\");\n\t\t\tcurrentRAF.seek(begin);\n\t\t\tcurrentLength = end - begin;\n\t\t\t\n\t\t\tlogger.debug(String.format(\"Generated Split. %s %d %d\",\n\t\t\t\t\tfile.getAbsolutePath(), begin, end));\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t}", "static void ReadAndWriteDataSet(String folderName) throws IOException\n\t{\n\t\t\n\t\t String path = \"data\"+FS+\"data_stage_one\"+FS+folderName; // Folder path \n\t\t \n\t\t String filename, line;\n\t\t File folder = new File(path);\n\t\t File[] listOfFiles = folder.listFiles();\n\t\t BufferedReader br = null;\n\t\t for(int i=0; i < listOfFiles.length; i++)\n\t\t { \n\t\t\t System.out.println(listOfFiles[i].getName());\n\t\t\t filename = path+FS+listOfFiles[i].getName();\n\t\t\t try\n\t\t\t {\n\t\t\t\t br= new BufferedReader(new FileReader(new File(filename)));\n\t\t\t\t while((line = br.readLine())!= null)\n\t\t\t\t {\n\t\t\t\t\tfor(int j=0; j<prep.length; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(line);\n\t\t\t\t\t\twhile(st.hasMoreTokens())\n\t\t\t\t\t\t\tif(st.nextToken().equalsIgnoreCase(prep[j]))\n\t\t\t\t\t\t\t{\t//System.out.println(line);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(arr[j] == null)\n\t\t\t\t\t\t\t\t\tarr[j] = new ArrayList<String>();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tarr[j].add(line.toLowerCase().replaceAll(\"\\\\p{Punct}\",\"\").trim().replaceAll(\"\\\\s+\", \" \"));\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t\t catch(Exception e)\n\t\t\t {\n\t\t\t\t System.err.println(\"exception: \"+e.getMessage() );\n\t\t\t\t e.printStackTrace();\n\t\t\t\t System.exit(0);\n\t\t\t }\n\t\t\t finally\n\t\t\t {\n\t\t\t\t br.close();\n\t\t\t }\n\t\t }\n\t\t \n\t\t // Writes the entire arraylist(preposition wise seperated files)\n\t\t \n\t\t WriteSeperated(folderName);\n\t\t \n\t\t for(int i=0; i<prep.length; i++)\n\t\t {\n\t\t\t arr[i].clear();\n\t\t }\n\t\t \n\t}", "public void flat()throws IOException{\n String input = j.showInputDialog(\"Choose a file to use:\");\n Scanner ab = new Scanner(new File(input+\".ppm\"));input = j.showInputDialog(\"Choose a name for the new file:\");\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(input+\".ppm\")));\n out.println(ab.next());out.println(ab.next()); out.println(ab.next()); out.println(ab.next());\n input = j.showInputDialog(\"Choose a color to flatten: (1)R (2)G (3)B (4)All\");\n int da;\n if(Integer.parseInt(input)==3){\n da=2;\n }else if(Integer.parseInt(input)==2){\n da=1;\n }else if(Integer.parseInt(input)==4){\n da=3;\n }else{\n da=0; \n }\n while(ab.hasNext()){\n for(int rgb=0;rgb<3;rgb++){\n if(rgb==da){\n if(ab.hasNext()){\n ab.next();}\n out.println(\"\"+0);\n\n }else if(da==3){\n if(ab.hasNext()){\n ab.next();}\n out.println(\"\"+0);\n }else{\n if(ab.hasNext()){\n out.println(ab.next());}\n }\n }\n }\n out.close(); \n ab.close();\n System.exit(0);\n }", "public File sort(String path){\n try {\r\n File file = new File(path);\r\n BufferedReader readStream = new BufferedReader(new FileReader(file));\r\n String currentLine;\r\n int index = 0;\r\n int fileNumber = 1;\r\n while((currentLine = readStream.readLine()) != null){\r\n tempArray[index++] = currentLine;//read next line into the temporary array\r\n if(index >= limit){//check whether the number of lines stored in the temp has reached the maximum allowed\r\n Arrays.sort(tempArray);//sort tempArray\r\n Writer writeStream = null;//create a writer\r\n String currentFileName = \"temp\" + fileNumber + \".txt\";//this name is passed to the buffered writer\r\n writeStream = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(currentFileName)));//create a new temporary file to be written to\r\n fileArrayList.add(new File(currentFileName));//add file to list\r\n for(String line : tempArray){// write the lines currently stored in the array into the newly created file\r\n writeStream.write(line);\r\n writeStream.write(\"\\n\");\r\n }\r\n writeStream.close();//close the output stream\r\n index = 0;//reset\r\n ++fileNumber;//increment the file number so that the next block of lines is written to a different file name\r\n }\r\n\r\n\r\n }\r\n readStream.close();\r\n }catch(Exception e){\r\n System.out.println(e.getMessage() + \" occurred during split\");\r\n }\r\n\r\n //merge temporary files and write to output file\r\n try {\r\n System.out.println(Arrays.toString(fileArrayList.toArray()));\r\n fileArrayList.trimToSize();\r\n int sortedFileID = 0;//used to differentiate between temporary files while merging\r\n int head = 0;//used to access file names stored in array list from the start\r\n int tail = fileArrayList.size() - 1;//used to access file names stored in array list from the end\r\n while(fileArrayList.size() > 1) {\r\n sortedFileID++;//increment to create a unique file name\r\n String mergedFileName = \"sorted\"+sortedFileID+\".txt\";\r\n File firstFile = fileArrayList.get(head);\r\n File secondFile = fileArrayList.get(tail);\r\n System.out.println(head + \" + \" + tail);\r\n //merge first and second\r\n File combinedFile = mergeFiles(firstFile, secondFile, mergedFileName);\r\n //delete both temporary files once they are merged\r\n\r\n if(!secondFile.delete()){\r\n System.out.println(\"warning file could not be deleted\");\r\n }\r\n if(!firstFile.delete()){\r\n System.out.println(\"warning file could not be deleted\");\r\n }\r\n fileArrayList.set(head, combinedFile);//replace the first of the two merged files with the new combined file\r\n fileArrayList.remove(tail);//remove the second of the two merged files\r\n head++;//increment both indexes one position closer towards the center of the array list\r\n tail--;\r\n if(head >= tail){//check if there are no remaining files between the head and the tail\r\n head = 0;//reset to the beginning of the array list\r\n fileArrayList.trimToSize();\r\n tail = fileArrayList.size() - 1;//reset to the end of the array list\r\n }\r\n }\r\n }catch(Exception e){\r\n System.out.println(e.getMessage() + \" occurred during merge\");\r\n }\r\n //after iteratively merging head and tail, and storing the result at the head index\r\n //the final resulting file that combines all temporary files will be stored at index (0)\r\n return fileArrayList.get(0);//return the final combined file\r\n }", "void getSegmentFiles(DataSegment segment, File dir) throws SegmentLoadingException;", "static public void main(String[] args) throws IOException{\n\t\tString sample = \"h19x24\";\n\t\tString parentFolder = \"/media/kyowon/Data1/Dropbox/fCLIP/new24/\";\t\t\n\t\tString bedFileName = \"/media/kyowon/Data1/fCLIP/samples/sample3/bed/\" + sample + \".sorted.bed\";\n\t\tString dbFasta = \"/media/kyowon/Data1/RPF_Project/genomes/hg19.fa\";\n\t\tString parameterFileName = \"/media/kyowon/Data1/fCLIP/samples/sample3/bed/\" + sample + \".sorted.param\";\n\t\t\n\t\tString trainOutFileName = parentFolder + sample + \".train.csv\";\n\t\tString arffTrainOutFileName = parentFolder + sample + \".train.arff\";\n\t\t\n\t\tString cisOutFileName = parentFolder + sample + \".csv\";\n\t\tString transOutFileNameM = parentFolder + sample + \".pair.M.csv\";\n\t\tString transOutFileNameU = parentFolder + sample + \".pair.U.csv\";\n\t\tString transControlOutFileNameM = parentFolder + sample + \".pair.M.AntiSense.csv\";\n\t\tString transControlOutFileNameU = parentFolder + sample + \".pair.U.AntiSense.csv\";\n\t\tString rmskBed = \"/media/kyowon/Data1/fCLIP/Data/cat.rmsk.bed\";\n\t\tString siControlBed = \"/media/kyowon/Data1/fCLIP/RNAseq/siControl_R1_Aligned_Sorted.bed\";\n\t\tString siKDDroshaBed = \"/media/kyowon/Data1/fCLIP/RNAseq/siDrosha_R1_Aligned_Sorted.bed\";\n\t\tString siKDDicerBed = \"/media/kyowon/Data1/fCLIP/RNAseq/siDicer_R1_Aligned_Sorted.bed\";\n\t\t\n\t\tString cisBed5pFileName = cisOutFileName + \".5p.bed\";\n\t\tString cisBed3pFileName = cisOutFileName + \".3p.bed\";\n\t\t\n\t\tdouble unpairedScoreThreshold = 0.25; \n\t\tdouble pairedScoreThreshold = unpairedScoreThreshold/5;\n\t//\tdouble motifScoreThreshold = 0.15;\n\t\t\n\t\tint num3pPaired = 10;\n\t\tint num5pPaired = 20;\n\t\t\n\t\tString filteredTransOutFileName = transOutFileNameM + \".filtered.csv\";\n\t\t\n\t\tint blatHitThreshold = 100000000;\n\t\tint transPairSeqLength = FCLIP_Scorer.getFlankingNTNumber() *2 + 80;\n\t\t\n\t\tZeroBasedFastaParser fastaParser = new ZeroBasedFastaParser(dbFasta);\n\t\tMirGff3FileParser mirParser = new MirGff3FileParser(\"/media/kyowon/Data1/fCLIP/genomes/hsa_hg19.gff3\");\n\t\tAnnotationFileParser annotationParser = new AnnotationFileParser(\"/media/kyowon/Data1/fCLIP/genomes/hg19.refFlat.txt\");\n\t\tFCLIP_ScorerTrainer.train(parameterFileName, bedFileName, mirParser, annotationParser);\n\t\t\n\t\ttrain(trainOutFileName, arffTrainOutFileName, bedFileName, fastaParser, annotationParser, mirParser, parameterFileName, unpairedScoreThreshold, pairedScoreThreshold);\n\t\trunCis(cisOutFileName, arffTrainOutFileName, bedFileName, fastaParser, annotationParser, mirParser, parameterFileName, unpairedScoreThreshold, pairedScoreThreshold);\n\n\t\tScoredPositionOutputParser.generateBedFromCsv(cisOutFileName, cisBed5pFileName, cisBed3pFileName, false); // for fold change..\n\t//\tScoredPositionOutputParser.generateFastaForMotif(cisOutFileName, cisOutFileName + \".5p.motif.fa\", cisOutFileName + \".3p.motif.fa\",cisOutFileName + \".motif.m\", \"M\");\n\t\t\n\t\trunTrans(transOutFileNameM, transOutFileNameU, cisOutFileName, arffTrainOutFileName, blatHitThreshold, transPairSeqLength, false);\n\t\tCheckRepeat.generate(cisOutFileName, transOutFileNameM, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tCheckRepeat.generate(cisOutFileName, transOutFileNameU, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tScoredPairOutputParser.generateFastaForMotif(transOutFileNameM, transOutFileNameM + \".5p.motif.fa\", transOutFileNameM + \".3p.motif.fa\");\n\t\t//GenerateCircosLinkFiles.run(transOutFileNameM + \".rmsk.csv\", transOutFileNameM + \".link.txt\");\n\t//\tCheckCoverage.generate(cisOutFileName, transOutFileNameM, cisBed5pFileName, cisBed3pFileName, siKDDroshaBed, siControlBed);\n\t///\tCheckCoverage.generate(cisOutFileName, transOutFileNameM, cisBed5pFileName, cisBed3pFileName, siKDDicerBed, siControlBed);\n\t\t\n\t\trunTrans(transControlOutFileNameM, transControlOutFileNameU, cisOutFileName, arffTrainOutFileName, blatHitThreshold, transPairSeqLength, true);\t\t\n\t\tCheckRepeat.generate(cisOutFileName, transControlOutFileNameM, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tCheckRepeat.generate(cisOutFileName, transControlOutFileNameU, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tScoredPairOutputParser.generateFastaForMotif(transControlOutFileNameM, transControlOutFileNameM + \".5p.motif.fa\", transControlOutFileNameM + \".3p.motif.fa\");\n\t//\tGenerateCircosLinkFiles.run(transControlOutFileNameM + \".rmsk.csv\", transControlOutFileNameM + \".link.txt\");\n\t\t//CheckCoverage.generate(cisOutFileName, transControlOutFileNameM, cisBed5pFileName, cisBed3pFileName, siKDDroshaBed, siControlBed);\n\t//\tCheckCoverage.generate(cisOutFileName, transControlOutFileNameM, cisBed5pFileName, cisBed3pFileName, siKDDicerBed, siControlBed);\n\t\t\n\t\tfilterTransPairs(transOutFileNameM, filteredTransOutFileName, num3pPaired, num5pPaired);\n\t\tCheckRepeat.generate(cisOutFileName, filteredTransOutFileName, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tScoredPairOutputParser.generateFastaForMotif(filteredTransOutFileName, filteredTransOutFileName + \".5p.motif.fa\", filteredTransOutFileName + \".3p.motif.fa\");\n\t\t//GenerateCircosLinkFiles.run(filteredTransOutFileName + \".rmsk.csv\", filteredTransOutFileName + \".link.txt\");\n\t///\tCheckCoverage.generate(cisOutFileName, filteredTransOutFileName, cisBed5pFileName, cisBed3pFileName, siKDDroshaBed, siControlBed);\n\t//\tCheckCoverage.generate(cisOutFileName, filteredTransOutFileName, cisBed5pFileName, cisBed3pFileName, siKDDicerBed, siControlBed);\n\t\t\n\t\t\n\t\t// generate background for drosha and dicer..\n\t\t\n\t\t\n\t\t// motif different conditioin?? \n\t\t\n\t\t\t\t\n\t\t//GenerateDepthsForEncodeDataSets.generate(outFileName, outFileName + \".encode.csv\", annotationParser);\n\t\t\n\t\t\n\t}", "public static void main(String[] args) throws IOException{\n\t\tString txtFileName = \"src\\\\stream\\\\step1\\\\source\\\\input\\\\not_today.txt\";\r\n\t\tString img1FileName = \"src\\\\stream\\\\step1\\\\source\\\\input\\\\bts1.jpg\";\r\n\t\tString img2FileName = \"src\\\\stream\\\\step1\\\\source\\\\input\\\\bts2.jpg\";\r\n\t\t\r\n\t\t// file name String - output\r\n\t\tString result_txt = \"src\\\\stream\\\\step1\\\\source\\\\output\\\\result_not_today.txt\";\r\n\t\tString result_img1 = \"src\\\\stream\\\\step1\\\\source\\\\output\\\\result_bts1_img.jpg\";\r\n\t\tString result_img2 = \"src\\\\stream\\\\step1\\\\source\\\\output\\\\result_bts2_img.jpg\";\r\n\t\t\r\n\t\t// node stream - input\r\n\t\tFileReader fr = new FileReader(txtFileName);\r\n\t\tFileInputStream fis1 = new FileInputStream(img1FileName);\r\n\t\tFileInputStream fis2 = new FileInputStream(img2FileName);\r\n\t\t\r\n\t\t// filter stream - input\r\n\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\tDataInputStream dis1 = new DataInputStream(fis1);\r\n\t\tDataInputStream dis2 = new DataInputStream(fis2);\r\n\t\t\r\n\t\t// node stream - output\r\n\t\tFileOutputStream fos1 = new FileOutputStream(result_img1);\r\n\t\tFileOutputStream fos2 = new FileOutputStream(result_img2);\r\n\t\tPrintWriter pw = new PrintWriter(result_txt);\r\n\t\t\r\n\t\t// filter strea - output\r\n\t\tDataOutputStream dos1 = new DataOutputStream(fos1);\r\n\t\tDataOutputStream dos2 = new DataOutputStream(fos2);\r\n\t\t\r\n\t\t// Data reading & Stream closing\r\n\t\tString contents = null;\r\n\t\twhile((contents = br.readLine()) != null){\r\n\t\t\tpw.write(contents + \"\\n\");\r\n\t\t}\t\t\r\n\t\t\r\n\t\tpw.close();\r\n\t\t\r\n\t\tint data = 0;\r\n\t\ttry {\r\n\t\t\twhile((data = dis1.readInt()) != -1){\r\n\t\t\t\tdos1.writeInt(data);\r\n\t\t\t}\r\n\t\t} catch (EOFException e) {\r\n\t\t\tSystem.out.println(\"프린트 끝\");\r\n\t\t}finally{\r\n\t\t\tdos1.close();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tdata = 0;\r\n\t\t\twhile((data = dis2.readInt()) != -1){\r\n\t\t\t\tdos2.writeInt(data);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"프린트 끝\");\r\n\t\t}finally{\r\n\t\t\tdos2.close();\r\n\t\t}\r\n\t\t\t\r\n\t}", "public String VerticalOp() {\n String line;\n try {\n BufferedReader br = new BufferedReader(new FileReader(file1));\n BufferedReader br2 = new BufferedReader(new FileReader(file2));\n BufferedWriter bw = new BufferedWriter(new FileWriter(\"output\" + mProcCount + extension));\n\n do{\n line = br.readLine();\n bw.write(line);\n }while(line != null);\n\n do{\n line = br2.readLine();\n bw.write(line);\n bw.newLine();\n }while(line != null);\n bw.flush();\n }\n catch(FileNotFoundException e) {\n System.out.println(\"ERROR: File does not exist. Please input a valid input file.\");\n }\n catch(IOException e) {\n System.out.println(\"ERROR: Failure while reading from file.\");\n }\n ++mProcCount;\n return \"output\" + mProcCount + extension;\n }", "private void createOutputFiles(){\n\t\tFile folder = new File(C.appFolderPath + C.DEBUG_FOLDER);\n\t\tboolean success = true;\n\t\tif(folder.exists()){\n\t\t\t// erase the folder\n\t\t\tDeleteRecursive(folder);\n\t\t}\n\t\t\n\t\t// create necessary folders\n\t\tif (!folder.exists()) {\n\t\t success = folder.mkdir();\n\t\t Log.d(C.LOG_TAG, \"folder is not existed, create one\");\n\t\t} else {\n\t\t\tLog.e(C.LOG_TAG, \"ERROR: folder has not been deleted\");\n\t\t}\n\t\tFile monitorFolder = new File(C.appFolderPath + C.DEBUG_FOLDER + logFolder);\n\t\tmonitorFolder.mkdir();\n\n\t\ttry {\n\t\t\tmMatlabOutFile = new PrintWriter(new FileOutputStream(new File(C.appFolderPath+ C.DEBUG_FOLDER +\"matlab.txt\"),true));\n\t\t\tmMatlabOutFile.println(inputPrefix+audioSettingName);\n\t\t\tmMatlabOutFile.println(RECODER_CHANNEL_CNT);\n\t\t\tmMatlabOutFile.println(C.DEFAULT_VOL);\n\t\t\tmMatlabOutFile.close();\n\t\t\tmMatlabOutFile = null;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(C.LOG_TAG, \"ERROR: can't open sensor file to write\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\r\n private void makeIntensityProfiles(int sliceNum) {\r\n \r\n // sanity check\r\n if (sliceNum < 0 || sliceNum >= zDim) return;\r\n\r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM(sliceNum);\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n \r\n // There should be only one VOI\r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n // there should be only one curve on each slice corresponding to the external abdomen boundary\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().elementAt(sliceNum)); \r\n int[] xVals;\r\n int[] yVals;\r\n int[] zVals;\r\n try {\r\n xVals = new int [curve.size()];\r\n yVals = new int [curve.size()];\r\n zVals = new int [curve.size()];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate the abdomen VOI arrays\");\r\n return;\r\n }\r\n curve.exportArrays(xVals, yVals, zVals);\r\n \r\n // one intensity profile for each radial line. Each radial line is 3 degrees and\r\n // there are 360 degrees in a circle\r\n try {\r\n intensityProfiles = new ArrayList[360 /angularResolution];\r\n xProfileLocs = new ArrayList[360 / angularResolution];\r\n yProfileLocs = new ArrayList[360 / angularResolution];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate profile arrays\");\r\n return;\r\n }\r\n \r\n // load the srcImage into the slice buffer (it has the segmented abdomen image in it now)\r\n try {\r\n srcImage.exportData(sliceNum * sliceSize, sliceSize, sliceBuffer);\r\n } catch (IOException ex) {\r\n System.err.println(\"JCATsegmentAbdomen2D(): Error exporting data\");\r\n return;\r\n }\r\n\r\n double angleRad;\r\n int count;\r\n int contourPointIdx = 0;\r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n count = 0;\r\n int x = xcm;\r\n int y = ycm;\r\n int yOffset = y * xDim;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n // allocate the ArrayLists for each radial line\r\n try {\r\n intensityProfiles[contourPointIdx] = new ArrayList<Short>();\r\n xProfileLocs[contourPointIdx] = new ArrayList<Integer>();\r\n yProfileLocs[contourPointIdx] = new ArrayList<Integer>();\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate profile list: \" +contourPointIdx);\r\n return;\r\n }\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n }\r\n \r\n contourPointIdx++;\r\n } // end for (angle = 0; ...\r\n\r\n // intensityProfiles, xProfileLocs, and yProfileLocs are set, we can find the \r\n // internal boundary of the subcutaneous fat now\r\n }", "public static void produceFiles(DataLoaders d, double p, String corpus) throws CompressorException, IOException{\n//\t\tsort -t$'\\t' -k5 -nr conll.ambiverse.mappings > conll.ambiverse.mappings.sorted\n//\t\tsort -t$'\\t' -k5 -nr conll.babelfy.mappings > conll.babelfy.mappings.sorted\n//\t\tsort -t$'\\t' -k5 -nr conll.tagme.mappings > conll.tagme.mappings.sorted\n\t\t\n//\t\thead -n 23865 conll.tagme.mappings > conll_tagme_train.mappings\n\t\t\n\t\tdouble prop = 0;\n\n//\t\tTreeMap<String,String> ambiverseMap = new TreeMap<String, String>(); \n//\t\tTreeMap<String,String> babelfyMap = new TreeMap<String, String>();\n//\t\tTreeMap<String,String> tagmeMap = new TreeMap<String, String>();\n//\t\t\n\t\n\t\tOutputStreamWriter Ambp = new OutputStreamWriter(new FileOutputStream(\"./resources/ds/\"+corpus+\"/ds.amb.\"+p+\".txt\"), StandardCharsets.UTF_8);\n\t\tOutputStreamWriter Babp = new OutputStreamWriter(new FileOutputStream(\"./resources/ds/\"+corpus+\"/ds.bab.\"+p+\".txt\"), StandardCharsets.UTF_8);\n\t\tOutputStreamWriter Tagp = new OutputStreamWriter(new FileOutputStream(\"./resources/ds/\"+corpus+\"/ds.tag.\"+p+\".txt\"), StandardCharsets.UTF_8);\n\t\tCSVWriter csvWriterAmbp = new CSVWriter(Ambp, ',' , '\\'', '\\\\');\n\t\tCSVWriter csvWriterBabp = new CSVWriter(Babp, ',' , '\\'', '\\\\');\n\t\tCSVWriter csvWriterTagp = new CSVWriter(Tagp, ',' , '\\'', '\\\\');\n\t\t\n\t\tBufferedReader bffReaderAmbiverse = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".ambiverse.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\tBufferedReader bffReaderBabelfy = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".babelfy.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\tBufferedReader bffReaderTagme = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".tagme.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\n\t\t\n\t\tString line=\"\";\n\t\tint countAmbiverse = 0;\n\t\twhile ((line = bffReaderAmbiverse.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tif(entity.equalsIgnoreCase(\"null\")){ \n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tString confidence = elements[4];\n\t\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\t\tString key = docid+\"\\t\"+mention+\"\\t\"+offset;\n\t\t\t\t\tcountAmbiverse++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tline=\"\";\n\t\tint countBabelfy = 0;\n\t\twhile ((line = bffReaderBabelfy.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tif(entity.equalsIgnoreCase(\"null\")){ \n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tString confidence = elements[4];\n\t\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\t\tString key = docid+\"\\t\"+mention+\"\\t\"+offset;\n\t\t\t\t\tcountBabelfy++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tline=\"\";\n\t\tint countTagme = 0;\n\t\twhile ((line = bffReaderTagme.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tmention = mention.replaceAll(\"\\\"\", \" \");\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tif(entity.equalsIgnoreCase(\"null\")){ \n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tString confidence = elements[4];\n\t\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\t\tString key = docid+\"\\t\"+mention+\"\\t\"+offset;\n\t\t\t\t\tcountTagme++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tbffReaderAmbiverse.close();\n\t\tbffReaderBabelfy.close();\n\t\tbffReaderTagme.close();\n\t\t\n/* End */\n\t\t\n\t\t\n//\t\t// *** Producing files ***//\n\t\tbffReaderAmbiverse = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".ambiverse.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\n\t\tprop = ( p/100.0 )* countAmbiverse;\n\t\t\n\t\tint count = 0;\n\t\tline=\"\";\n\t\twhile ((line = bffReaderAmbiverse.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tString confidence = elements[4];\n\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\tcount++;\n\t\t\t\tif(count <= prop ){\n\t\t\t\t\tAmbp.write(docid+\"\\t\"+mention+\"\\t\"+offset+\"\\t\"+entity+\"\\t\"+confidence+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(prop);\n\t\t\n\t\tbffReaderBabelfy = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".babelfy.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\tprop = ( p/100.0 )* countBabelfy;\n\t\tcount = 0;\n\t\tline=\"\";\n\t\twhile ((line = bffReaderBabelfy.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tString confidence = elements[4];\n\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\tcount++;\n\t\t\t\tif(count <= prop){\n\t\t\t\t\tBabp.write(docid+\"\\t\"+mention+\"\\t\"+offset+\"\\t\"+entity+\"\\t\"+confidence+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(prop);\n\t\t\n\t\tbffReaderTagme = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".tagme.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\tprop = ( p/100.0 )* countTagme;\n\t\tcount = 0;\n\t\tline=\"\";\n\t\twhile ((line = bffReaderTagme.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tString confidence = elements[4];\n\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\tcount++;\n\t\t\t\tif(count <= prop){\n\t\t\t\t\tTagp.write(docid+\"\\t\"+mention+\"\\t\"+offset+\"\\t\"+entity+\"\\t\"+confidence+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(prop);\n\t\t\n\t\tbffReaderAmbiverse.close();\n\t\tbffReaderBabelfy.close();\n\t\tbffReaderTagme.close();\n\t\t\n\t\tAmbp.close();\n\t\tBabp.close();\n\t\tTagp.close();\n\t\t\n\t\t\n\t}", "public Vector<line> detectLines(Boolean doBlobExtract) {\n\n BufferedImage bin = cloneImage(untouchedImage);\n bin = ImageHelpers.scale(bin, maxHeight);\n orig = cloneImage(untouchedImage);\n orig = ImageHelpers.scale(orig, maxHeight);\n BufferedImage stored = cloneImage(ImageHelpers.scale(orig, 1000));\n BufferedImage copy = cloneImage(untouchedImage);\n copy = ImageHelpers.scale(copy, maxHeight);\n // PlanarImage threshedImage = JAI.create(\"fileload\", imageFile.getAbsolutePath());\n BufferedImage ok = cloneImage(untouchedImage);\n bin = ImageHelpers.scale(ImageHelpers.binaryThreshold(ok, 4), maxHeight);\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n\n if (doBlobExtract) {\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n Vector<blob> blobs = new Vector<blob>();\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n if (bin.getRGB(i, j) != -1) {\n blob thisOne = new blob(i, j);\n thisOne.copy = orig;\n if (blobs.size() % 3 == 0) {\n thisOne.color = 0xcc0000;\n }\n if (blobs.size() % 3 == 1) {\n thisOne.color = 0x000099;\n }\n if (blobs.size() % 3 == 2) {\n thisOne.color = 0x006600;\n }\n thisOne.count(bin, thisOne.getX(), thisOne.getY());\n if (thisOne.size > 5) {\n blobs.add(thisOne);\n if ((thisOne.getSize() - (thisOne.getSize() % 10)) != 5000 && (thisOne.getSize() - (thisOne.getSize() % 10)) != 0) {\n\n thisOne.calculateRelativeCoordinates();\n thisOne.drawBlob(orig, thisOne.color);\n\n }\n }\n }\n }\n }\n\n for (int i = 0; i < blobs.size(); i++) {\n if ((blobs.get(i).size < 4000)) {\n blob.drawBlob(orig, blobs.get(i).x, blobs.get(i).y, blobs.get(i), 0x000000);\n }\n }\n\n }\n\n try {\n\n\n if (!doBlobExtract) {\n orig = bin;\n }\n\n\n Vector<line> lines = new Vector();\n createViewableVerticalProfile(orig, \"\", lines);\n FileWriter writer = null;\n\n orig = ImageHelpers.scale(orig, 1000);\n Detector d = new Detector(orig, orig);\n if (lines.size() > 3) {\n lines = new Vector();\n lines.add(new line());\n lines.get(0).setStartHorizontal(0);\n lines.get(0).setStartVertical(0);\n lines.get(0).setWidth(orig.getWidth());\n lines.get(0).setDistance(maxHeight);\n }\n //d.detect();\n Vector<line> allLines = new Vector();\n for (int i = 0; i < lines.size(); i++) {\n line col = lines.get(i);\n BufferedImage storedBin = ImageHelpers.binaryThreshold(stored, 4);\n BufferedImage colOnly = storedBin.getSubimage(col.getStartHorizontal(), col.getStartVertical(), col.getWidth(), col.getDistance());\n d = new Detector(colOnly, colOnly);\n //d.debugLabel = imageFile.getName();\n d.forceSingle = true;\n d.detect();\n System.out.print(\"total lines in col is \" + d.lines.size() + \"\\n\");\n for (int j = 0; j < d.lines.size(); j++) {\n line r = d.lines.get(j);\n allLines.add(r);\n r.setStartHorizontal(r.getStartHorizontal() + col.getStartHorizontal());\n r.setStartVertical(r.getStartVertical() + col.getStartVertical());\n// r.commitQuery(writer, imageFile.getName());\n if (j % 2 == 1) {\n int color = 0x0000ff;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n } else {\n int color = 0xff0000;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n }\n }\n }\n //ImageHelpers.writeImage(stored, \"\" + \"/usr/web/processed/\" + imageFile.getName());\n\n\n //ImageHelpers.writeImage(orig, \"/usr/web/broken/\" + imageFile.getName() + \"broken\" + \".jpg\");\n return allLines;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "abstract E createSplit(RandomAccessFile raf, long length) throws IOException;", "public Files(){\n this.fileNameArray.add(\"bridge_1.txt\");\n this.fileNameArray.add(\"bridge_2.txt\");\n this.fileNameArray.add(\"bridge_3.txt\");\n this.fileNameArray.add(\"bridge_4.txt\");\n this.fileNameArray.add(\"bridge_5.txt\");\n this.fileNameArray.add(\"bridge_6.txt\");\n this.fileNameArray.add(\"bridge_7.txt\");\n this.fileNameArray.add(\"bridge_8.txt\");\n this.fileNameArray.add(\"bridge_9.txt\");\n this.fileNameArray.add(\"ladder_1.txt\");\n this.fileNameArray.add(\"ladder_2.txt\");\n this.fileNameArray.add(\"ladder_3.txt\");\n this.fileNameArray.add(\"ladder_4.txt\");\n this.fileNameArray.add(\"ladder_5.txt\");\n this.fileNameArray.add(\"ladder_6.txt\");\n this.fileNameArray.add(\"ladder_7.txt\");\n this.fileNameArray.add(\"ladder_8.txt\");\n this.fileNameArray.add(\"ladder_9.txt\");\n }", "protected void preprocess() {\n log.info(\"Processing files. Max size is {} bytes\", max);\n\n int idx = 0;\n boolean closed = false;\n\n Bag current = new Bag();\n PayloadManifest currentManifest = new PayloadManifest();\n\n for (PayloadFile file : b.getFiles().values()) {\n closed = false;\n current.addFile(file);\n currentManifest.addPayloadFile(file);\n\n if (current.getSize() >= max) {\n finishProcessing(current, currentManifest, idx++);\n\n closed = true;\n current = new Bag();\n currentManifest = new PayloadManifest();\n }\n }\n\n // Close out the final bag\n if (!closed) {\n finishProcessing(current, currentManifest, idx);\n }\n }", "private void joinFiles(String[] listFileContent, String filename0)\n\t{\n\t\tSystem.out.println(\"co vao day\");\n\t\tint[] start = new int[nu], next = new int[nu], copyPos = new int[nu];\n\t\tstart = intialStart();\n\t\tArrayList<Double> sumArray;\n\t\ttry {\n\t\t\tBufferedWriter out = new BufferedWriter(new FileWriter(filename0));\n\t\t\twhile (true)//while next1 = find (file1,+1)\n\t\t\t{\n\t\t\t\tnext = findNext(start, listFileContent);//find next\n\t\t\t\tif (checkNotFound(next)) break;\n\t\t\t\tcopyPos = findCopyPos(next);//find copyPos\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/*printNam(\"Day la next1: \");System.out.println(next1);\n\t\t\t\tprintNam(\"next2: \"); System.out.println(next2);\n\t\t\t\tprintNam(\"start1: \"); System.out.println(start1);\n\t\t\t\tprintNam(\"start2: \"); System.out.println(start2);\n\t\t\t\tprintNam(\"file: \"); System.out.println(index);*/\n\t\t\t\t//concatString = file1.substring(start1, copyPos1).concat(file2.substring(start2, copyPos2));\n\t\t\t\t\n\t\t\t\tsumArray = genConcatString(listFileContent, start, copyPos);\n\t\t\t\t\n\t\t\t\twriteToFile(out, sumArray);//write to 0.data.\n\t\t\t\t//update start\n\t\t\t\tstart = updateStart(next);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t/*sumArray = genConcatString(listFileContent, start);\n\t\t\t\t\n\t\t\twriteToFile(out, sumArray);*/\n\t\t\t\t\n\t\t\tout.close();\n\t\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\n\t}", "@Test\n void testSubset() throws IOException {\n Long expectedNumberOfVariables = 13L;\n Long expectedNumberOfCases = 24L; // aka the number of lines in the TAB file produced by the ingest plugin\n\n TabularDataIngest ingestResult;\n File file = getFile(\"csv/ingest/election_precincts.csv\");\n try (BufferedInputStream stream = new BufferedInputStream(new FileInputStream(file))) {\n CSVFileReader instance = createInstance();\n ingestResult = instance.read(Tuple.of(stream, file), null);\n }\n\n File generatedTabFile = ingestResult.getTabDelimitedFile();\n DataTable generatedDataTable = ingestResult.getDataTable();\n\n assertThat(generatedDataTable).isNotNull();\n assertThat(generatedDataTable.getDataVariables()).isNotNull();\n assertThat(generatedDataTable.getVarQuantity()).isEqualTo((long) generatedDataTable.getDataVariables().size());\n assertThat(generatedDataTable.getVarQuantity()).isEqualTo(expectedNumberOfVariables);\n assertThat(generatedDataTable.getCaseQuantity()).isEqualTo(expectedNumberOfCases);\n\n // And now let's try and subset the individual vectors\n // First, the \"continuous\" vectors (we should be able to read these as Double[]):\n int[] floatColumns = {2};\n\n Double[][] floatVectors = {\n { 1.0, 3.0, 4.0, 6.0, 7.0, 8.0, 11.0, 12.0, 76.0, 77.0, 77.0, 77.0, 77.0, 77.0, 77.0, 77.0, 77.0, 77.0, 77.0, 77.0, 77.0, 77.0, 77.0, 77.0 },\n };\n\n IngestDataProvider dataProvider = new InMemoryIngestDataProvider();\n dataProvider.initialize(generatedDataTable, generatedTabFile);\n\n int vectorCount = 0;\n for (int i : floatColumns) {\n // We'll be subsetting the column vectors one by one, re-opening the\n // file each time. Inefficient - but we don't care here.\n\n if (!generatedDataTable.getDataVariables().get(i).isIntervalContinuous()) {\n fail(\"Column \" + i + \" was not properly processed as \\\"continuous\\\"\");\n }\n\n Double[] columnVector = dataProvider.getDoubleColumn(i);\n\n assertThat(columnVector).isEqualTo(floatVectors[vectorCount++]);\n }\n\n // Discrete Numerics (aka, integers):\n int[] integerColumns = { 1, 4, 6, 7, 8, 9, 10, 11, 12 };\n\n Long[][] longVectors = {\n { 1L, 3L, 4L, 6L, 7L, 8L, 11L, 12L, 76L, 77L, 77L, 77L, 77L, 77L, 77L, 77L, 77L, 77L, 77L, 77L, 77L, 77L, 77L, 77L },\n { 1L, 2L, 3L, 4L, 5L, 11L, 13L, 15L, 19L, 19L, 19L, 19L, 19L, 19L, 19L, 19L, 19L, 19L, 19L, 19L, 19L, 19L, 19L, 19L },\n { 85729227L, 85699791L, 640323976L, 85695847L, 637089796L, 637089973L, 85695001L, 85695077L, 1111111L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L },\n { 205871733L, 205871735L, 205871283L, 258627915L, 257444575L, 205871930L, 260047422L, 262439738L, 1111111L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L },\n { 205871673L, 205871730L, 205871733L, 205872857L, 258627915L, 257444584L, 205873413L, 262439738L, 1111111L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L },\n { 25025000201L, 25025081001L, 25025000701L, 25025050901L, 25025040600L, 25025000502L, 25025040401L, 25025100900L, 1111111L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L },\n { 250250502002L, 250250502003L, 250250501013L, 250250408011L, 250250503001L, 250250103001L, 250250406002L, 250250406001L, 1111111L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L },\n { 250251011024001L, 250251011013003L, 250251304041007L, 250251011013006L, 250251010016000L, 250251011024002L, 250251001005004L, 250251002003002L, 1111111L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L },\n { 2109L, 2110L, 2111L, 2120L, 2121L, 2115L, 2116L, 2122L, 11111L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L, 4444444L }\n };\n\n vectorCount = 0;\n\n for (int i : integerColumns) {\n if (!generatedDataTable.getDataVariables().get(i).isIntervalDiscrete()\n || !generatedDataTable.getDataVariables().get(i).isTypeNumeric()) {\n fail(\"Column \" + i + \" was not properly processed as \\\"discrete numeric\\\"\");\n }\n\n Long[] columnVector = dataProvider.getLongColumn(i);\n\n assertThat(columnVector).isEqualTo(longVectors[vectorCount++]);\n }\n\n // And finally, Strings:\n int[] stringColumns = {0, 3, 5};\n\n String[][] stringVectors = {\n { \"Dog\", \"Squirrel\", \"Antelope\", \"Zebra\", \"Lion\", \"Gazelle\", \"Cat\", \"Giraffe\", \"Cat\", \"Donkey\", \"Donkey\", \"Donkey\", \"Donkey\", \"Donkey\", \"Donkey\", \"Donkey\", \"Donkey\", \"Donkey\", \"Donkey\", \"Donkey\", \"Donkey\", \"Donkey\", \"Donkey\", \"Donkey\" },\n { \"East Boston\", \"Charlestown\", \"South Boston\", \"Bronx\", \"Roslindale\", \"Mission Hill\", \"Jamaica Plain\", \"Hyde Park\", \"Fenway/Kenmore\", \"Queens\", \"Queens\", \"Queens\", \"Queens\", \"Queens\", \"Queens\", \"Queens\", \"Queens\", \"Queens\", \"Queens\", \"Queens\", \"Queens\", \"Queens\", \"Queens\", \"Queens\" },\n { \"2-06\", \"1-09\", \"1-1A\", \"1-1B\", \"2-04\", \"3-05\", \"1-1C\", \"1-10A\", \"41-10A\", \"41-10A\", \"41-10A\", \"41-10A\", \"41-10A\", \"41-10A\", \"41-10A\", \"41-10A\", \"41-10A\", \"41-10A\", \"41-10A\", \"41-10A\", \"41-10A\", \"41-10A\", \"41-10A\", \"41-10A\", }\n };\n\n vectorCount = 0;\n\n for (int i : stringColumns) {\n if (!generatedDataTable.getDataVariables().get(i).isTypeCharacter()) {\n fail(\"Column \" + i + \" was not properly processed as a character vector\");\n }\n String[] columnVector = dataProvider.getStringColumn(i);\n\n assertThat(columnVector).isEqualTo(stringVectors[vectorCount++]);\n }\n }", "public void run() {\n System.out.print(Thread.currentThread().getId() + \"\\n\");\n try {\n try {\n File outfile = new File(dataPath + imageFile.getName().replace(\"jpg\", \"txt\"));\n if (outfile.exists()) {\n return;\n }\n String ms = \"nada\";\n records.write(\"<\");\n records.write(imageFile.getName() + \">\\n\");\n BufferedImage bin = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n bin = ImageHelpers.scale(bin, maxHeight);\n orig = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n orig = ImageHelpers.scale(orig, maxHeight);\n BufferedImage stored = cloneImage(ImageHelpers.scale(orig, maxHeight));\n BufferedImage copy = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n copy = ImageHelpers.scale(copy, maxHeight);\n records.flush();\n System.out.println(imageFile.getName());\n PlanarImage threshedImage = JAI.create(\"fileload\", imageFile.getAbsolutePath());\n BufferedImage ok = threshedImage.getAsBufferedImage();\n bin = ImageHelpers.scale(ImageHelpers.binaryThreshold(ok, 4), maxHeight);\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n Boolean doBlobExtract = true;\n if (doBlobExtract) {\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n //ImageHelpers.writeImage(bin, \"/usr/web/broken/\" + imageFile.getName() + \"bin\" + \".jpg\");\n Vector<blob> blobs = new Vector<blob>();\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n if (bin.getRGB(i, j) != -1) {\n blob thisOne = new blob(i, j);\n thisOne.copy = orig;\n if (blobs.size() % 3 == 0) {\n thisOne.color = 0xcc0000;\n }\n if (blobs.size() % 3 == 1) {\n thisOne.color = 0x000099;\n }\n if (blobs.size() % 3 == 2) {\n thisOne.color = 0x006600;\n }\n thisOne.count(bin, thisOne.getX(), thisOne.getY());\n if (thisOne.size > 5) {\n blobs.add(thisOne);\n if ((thisOne.getSize() - (thisOne.getSize() % 10)) != 5000 && (thisOne.getSize() - (thisOne.getSize() % 10)) != 0) {\n\n thisOne.calculateRelativeCoordinates();\n thisOne.drawBlob(orig, thisOne.color);\n\n }\n }\n }\n }\n }\n BufferedWriter blobWriter = new BufferedWriter(new FileWriter(outfile));\n\n int ctr = 1;\n for (int i = 0; i < blobs.size(); i++) {\n if ((blobs.get(i).size < 4000)) {\n try {\n blobs.get(i).id = ctr;\n ctr++;\n //blobs.get(i).color=0x000000;\n blobs.get(i).arrayVersion = blobs.get(i).pixels.toArray(new pixel[blobs.get(i).pixels.size()]);\n int maxX = 0;\n for (int k = 0; k < blobs.get(i).arrayVersion.length; k++) {\n if (blobs.get(i).arrayVersion[k].x > maxX) {\n maxX = blobs.get(i).arrayVersion[k].x;\n }\n }\n blobs.get(i).width = maxX;\n int maxY = 0;\n for (int k = 0; k < blobs.get(i).arrayVersion.length; k++) {\n if (blobs.get(i).arrayVersion[k].y > maxY) {\n maxY = blobs.get(i).arrayVersion[k].y;\n }\n }\n blobs.get(i).height = maxY;\n\n\n blobs.get(i).matrixVersion = new matrixBlob(blobs.get(i));\n } catch (Exception e) {\n e.printStackTrace();\n }\n // blob.writeBlob(blobWriter, blobs.get(i));\n blob.writeMatrixBlob(blobWriter, blobs.get(i));\n blobs.set(i, null);//.matrixVersion=null;\n //blobs.get(i).arrayVersion=null;\n // blob.writeBlob(blobWriter, blobs.get(i));\n //blob.drawBlob(orig, blobs.get(i).x, blobs.get(i).y, blobs.get(i), 0x000000);\n }\n }\n System.out.print(\"found \" + ctr + \" blobs\\n\");\n\n }\n\n try {\n\n\n if (!doBlobExtract) {\n orig = bin;\n }\n //ImageHelpers.writeImage(orig, \"/usr/web/broken/\" + imageFile.getName() + \"broken\" + \".jpg\");\n\n Vector<line> lines = new Vector();\n createViewableVerticalProfile(orig, imageFile.getName(), lines);\n //ImageHelpers.writeImage(ImageHelpers.createViewableVerticalProfile(orig, imageFile.getName(), lines), \"/usr/web/broken/profile\" + imageFile.getName() + \"broken\" + \".jpg\");\n FileWriter writer = null;\n //writer = new FileWriter(new File(\"/usr/web/queries/\" + imageFile.getName() + \"\"));\n orig = ImageHelpers.scale(orig, 1000);\n Detector d = new Detector(orig, orig);\n if (lines.size() > 3) {\n lines = new Vector();\n lines.add(new line());\n lines.get(0).setStartHorizontal(0);\n lines.get(0).setStartVertical(0);\n lines.get(0).setWidth(orig.getWidth());\n lines.get(0).setDistance(maxHeight);\n }\n //d.detect();\n for (int i = 0; i < lines.size(); i++) {\n line col = lines.get(i);\n BufferedImage storedBin = ImageHelpers.binaryThreshold(stored, 4);\n BufferedImage colOnly = storedBin.getSubimage(col.getStartHorizontal(), col.getStartVertical(), col.getWidth(), col.getDistance());\n d = new Detector(colOnly, colOnly);\n d.debugLabel = imageFile.getName();\n d.forceSingle = true;\n d.detect();\n System.out.print(\"total lines in col is \" + d.lines.size() + \"\\n\");\n for (int j = 0; j < d.lines.size(); j++) {\n line r = d.lines.get(j);\n r.setStartHorizontal(r.getStartHorizontal() + col.getStartHorizontal());\n r.setStartVertical(r.getStartVertical() + col.getStartVertical());\n //r.commitQuery(writer, imageFile.getName());\n if (j % 2 == 1) {\n int color = 0x0000ff;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n } else {\n int color = 0xff0000;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n }\n }\n }\n //ImageHelpers.writeImage(stored, \"\" + \"/usr/web/processed/\" + imageFile.getName());\n\n\n\n //writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n } catch (IOException ex) {\n System.out.print(ex.getMessage() + \"\\n\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return;\n }", "protected abstract List<O> parseFileForObservations(Scanner scn);", "List<F> getChunks();", "private void extractCards() {\n String fileSeparator = System.getProperty(\"file.separator\");\n String path = System.getProperty(\"user.dir\");\n path = path + fileSeparator + \"Client\" + fileSeparator + \"src\" + fileSeparator + \"Images\" + fileSeparator;\n System.out.println(path);\n\n for (Picture p : cardlist) {\n BufferedImage image = null;\n try {\n image = javax.imageio.ImageIO.read(new ByteArrayInputStream(p.getStream()));\n File outputfile = new File(path + p.getName());\n ImageIO.write(image, \"png\", outputfile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public List<String> getFileLines() {\n\t\tspeciesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\ttissuesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tcellTypesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tdiseaseByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tquantificationByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tinstrumentByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tmodificationByExperiment = new TIntObjectHashMap<List<String>>();\n\t\texperimental_factorByExperiment = new TIntObjectHashMap<List<String>>();\n\n\t\tfinal List<String> ret = new ArrayList<String>();\n\t\tfinal Map<String, PexFileMapping> fileLocationsMapping = new THashMap<String, PexFileMapping>();\n\t\tfinal List<PexFileMapping> totalFileList = new ArrayList<PexFileMapping>();\n\t\tint fileCounter = 1;\n\t\t// organize the files by experiments\n\t\tfor (final Experiment experiment : experimentList.getExperiments()) {\n\n\t\t\tfinal File prideXmlFile = experiment.getPrideXMLFile();\n\t\t\tif (prideXmlFile != null) {\n\t\t\t\t// FILEMAPPINGS\n\t\t\t\t// PRIDE XML\n\t\t\t\tfinal int resultNum = fileCounter;\n\t\t\t\tfinal PexFileMapping prideXMLFileMapping = new PexFileMapping(\"result\", fileCounter++,\n\t\t\t\t\t\tprideXmlFile.getAbsolutePath(), null);\n\n\t\t\t\ttotalFileList.add(prideXMLFileMapping);\n\t\t\t\tfileLocationsMapping.put(prideXMLFileMapping.getPath(), prideXMLFileMapping);\n\n\t\t\t\t// Iterate over replicates\n\t\t\t\tfinal List<Replicate> replicates = experiment.getReplicates();\n\t\t\t\tfor (final Replicate replicate : replicates) {\n\t\t\t\t\t// sample metadatas\n\t\t\t\t\taddSampleMetadatas(resultNum, replicate);\n\n\t\t\t\t\t// PEak lists\n\t\t\t\t\tfinal List<PexFileMapping> peakListFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// raw files\n\t\t\t\t\tfinal List<PexFileMapping> rawFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// search engine output lists\n\t\t\t\t\tfinal List<PexFileMapping> outputSearchEngineFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// MIAPE MS and MSI reports\n\t\t\t\t\tfinal List<PexFileMapping> miapeReportFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// RAW FILES\n\t\t\t\t\tfinal List<PexFile> rawFiles = getReplicateRawFiles(replicate);\n\n\t\t\t\t\tif (rawFiles != null) {\n\t\t\t\t\t\tfor (final PexFile rawFile : rawFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(rawFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping rawFileMapping = new PexFileMapping(\"raw\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\trawFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\trawFileMappings.add(rawFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(rawFile.getFileLocation(), rawFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> RAW file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(rawFileMapping.getId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// PEAK LISTS\n\t\t\t\t\tfinal List<PexFile> peakListFiles = getPeakListFiles(replicate);\n\t\t\t\t\tfinal List<PexFileMapping> replicatePeakListFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\tif (peakListFiles != null) {\n\t\t\t\t\t\tfor (final PexFile peakList : peakListFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(peakList.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping peakListFileMapping = new PexFileMapping(\"peak\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tpeakList.getFileLocation(), null);\n\t\t\t\t\t\t\t\tpeakListFileMappings.add(peakListFileMapping);\n\t\t\t\t\t\t\t\treplicatePeakListFileMappings.add(peakListFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(peakList.getFileLocation(), peakListFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> PEAK LIST file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(peakListFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> PEAK LIST file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(peakListFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// prideXMLFileMapping\n\t\t\t\t\t\t\t\t// .addRelationship(peakListFileMapping\n\t\t\t\t\t\t\t\t// .getId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// MIAPE MS REPORTS\n\t\t\t\t\tfinal List<PexFile> miapeMSReportFiles = getMiapeMSReportFiles(replicate);\n\t\t\t\t\tif (miapeMSReportFiles != null)\n\t\t\t\t\t\tfor (final PexFile miapeMSReportFile : miapeMSReportFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(miapeMSReportFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping miapeReportFileMapping = new PexFileMapping(\"other\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tmiapeMSReportFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\tmiapeReportFileMappings.add(miapeReportFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(miapeMSReportFile.getFileLocation(), miapeReportFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> MIAPE MS report\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> MIAPE MS report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST file -> MIAPE MS report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// SEARCH ENGINE OUTPUT FILES\n\t\t\t\t\tfinal List<PexFile> searchEngineOutputFiles = getSearchEngineOutputFiles(replicate);\n\t\t\t\t\tfinal List<PexFileMapping> replicatesearchEngineOutputFilesMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\tif (searchEngineOutputFiles != null) {\n\t\t\t\t\t\tfor (final PexFile peakList : searchEngineOutputFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(peakList.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping searchEngineOutputFileMapping = new PexFileMapping(\"search\",\n\t\t\t\t\t\t\t\t\t\tfileCounter++, peakList.getFileLocation(), null);\n\t\t\t\t\t\t\t\toutputSearchEngineFileMappings.add(searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\treplicatesearchEngineOutputFilesMappings.add(searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(peakList.getFileLocation(), searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\t// PRIDE XML -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST FILE -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// MIAPE MSI REPORTS\n\t\t\t\t\tfinal List<PexFile> miapeMSIReportFiles = getMiapeMSIReportFiles(replicate);\n\t\t\t\t\tif (miapeMSIReportFiles != null)\n\t\t\t\t\t\tfor (final PexFile miapeMSIReportFile : miapeMSIReportFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(miapeMSIReportFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping miapeReportFileMapping = new PexFileMapping(\"other\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tmiapeMSIReportFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\tmiapeReportFileMappings.add(miapeReportFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(miapeMSIReportFile.getFileLocation(), miapeReportFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> MIAPE MSI report\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST FILE -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// SEARCH ENGINE OUTPUT file -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping searchEngineOutputFileMapping : replicatesearchEngineOutputFilesMappings) {\n\t\t\t\t\t\t\t\t\tsearchEngineOutputFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t// Add all to the same list and then sort by id\n\t\t\t\t\ttotalFileList.addAll(outputSearchEngineFileMappings);\n\t\t\t\t\ttotalFileList.addAll(miapeReportFileMappings);\n\t\t\t\t\ttotalFileList.addAll(peakListFileMappings);\n\t\t\t\t\ttotalFileList.addAll(rawFileMappings);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Sort the list of files\n\t\tCollections.sort(totalFileList, new Comparator<PexFileMapping>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(PexFileMapping o1, PexFileMapping o2) {\n\n\t\t\t\treturn Integer.valueOf(o1.getId()).compareTo(Integer.valueOf(o2.getId()));\n\n\t\t\t}\n\n\t\t});\n\t\tfor (final PexFileMapping pexFileMapping : totalFileList) {\n\t\t\tret.add(pexFileMapping.toString());\n\t\t}\n\t\treturn ret;\n\t}", "public void readfiles1(String file_name){\n \n\n try{\n File fname1 = new File(file_name);\n Scanner sc = new Scanner(fname1);\n \n while (sc.hasNext()){\n String temp = sc.nextLine();\n String[] sts = temp.split(\" \");\n outs.addAll(Arrays.asList(sts));\n\n }\n\n // for (int i = 0;i<outs.size();i++){\n // System.out.println(outs.get(i));\n //}\n\n }catch(Exception ex){\n System.out.println(ex.getMessage());\n }\n }", "public void addConclusions() {\n\t\tif(conclusionNumbers1.size()==0) {\n\t\t\tconclusion1=\"\";\n\t\t}\n\t\telse if(conclusionNumbers1.size()==1) {\n\t\t\tconclusion1 = \"Bacteroides was detected from sample \"+conclusionNumbers1.get(0)+\".\";\n\t\t}\n\t\telse if(conclusionNumbers1.size()==2) {\n\t\t\tconclusion1 = \"Bacteroides was detected from samples \"+conclusionNumbers1.get(0) + \" and \"+ conclusionNumbers1.get(1) + \".\";\n\t\t}\n\t\telse {\n\t\t\tconclusion1 = \"Bacteroides was detected from samples \";\n\t\t\tfor(int i=0;i<conclusionNumbers1.size()-2;i++) {\n\t\t\t\tconclusion1+=conclusionNumbers1.get(i) + \", \";\n\t\t\t}\n\t\t\tconclusion1+= conclusionNumbers1.get(conclusionNumbers1.size()-2) + \" and \"+ conclusionNumbers1.get(conclusionNumbers1.size()-1) + \".\";\n\t\t}\n\t\t\n\t\tif(conclusionNumbers2.size()==0) {\n\t\t\tconclusion2=\"\";\n\t\t}\n\t\telse if(conclusionNumbers2.size()==1) {\n\t\t\tconclusion2 = \"no Bacteroides was detected from sample \"+conclusionNumbers2.get(0)+\".\";\n\t\t}\n\t\telse if(conclusionNumbers2.size()==2) {\n\t\t\tconclusion2 = \"no Bacteroides was detected from samples \"+conclusionNumbers2.get(0) + \" and \"+ conclusionNumbers2.get(1) + \".\";\n\t\t}\n\t\telse {\n\t\t\tconclusion2 = \"no Bacteroides was detected from samples \";\n\t\t\tfor(int i=0;i<conclusionNumbers2.size()-2;i++) {\n\t\t\t\tconclusion2+=conclusionNumbers2.get(i) + \", \";\n\t\t\t}\n\t\t\tconclusion2+= conclusionNumbers2.get(conclusionNumbers2.size()-2) + \" and \"+ conclusionNumbers2.get(conclusionNumbers2.size()-1) + \".\";\n\t\t}\n\t\t\n\t}", "private List<String> extractFeatures() {\n List<String> result = new ArrayList<String>();\n\n int startPoint = -1;\n\n List<TextPosition> featureItem;\n for (int i = 0; i < infoBlock.size(); i++) {\n // To get index of the text in the information block, if the text does not exist, the index will be -1.\n int index = CommonUtils.collectTextBuffer(infoBlock.get(i)).indexOf(FEATURE_KEY);\n if (index != -1) {\n startPoint = i + 1;\n\n // To locate the PDF object from the text feature to the end of the information block.\n featureItem = infoBlock.get(i).subList(index, index + FEATURE_KEY.length());\n\n // To extract information vertically. startPoint now is where the information block next to the\n // one that contains text feature.\n if (startPoint != -1) {\n result = filterTextBuffersVerical(featureItem, infoBlock, startPoint, 10);\n/*\t\t\t\t\t\tfor(String item: result)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(item);\n\t\t\t\t\t\t}*/\n }\n\n break;\n }\n }\n\n return result;\n }", "public static Mat[] split(Mat m, int size) {\n Mat cArr[] = new Mat[3];\n Mat c1 = new Mat(), c2 = new Mat(), c3 = new Mat();\n Mat c1TempDest = new Mat(),c1TempDest2 = new Mat(), c2TempDest = new Mat();\n Mat max=new Mat(size, size, CvType.CV_8UC1, new Scalar(255));\n List<Mat> lRgb = new ArrayList<Mat>(3);\n\n Core.split(m, lRgb);\n Mat R = lRgb.get(0);\n Mat G = lRgb.get(1);\n Mat B = lRgb.get(2);\n\n //C1\n Core.add(R,G,c1TempDest);\n Core.add(c1TempDest, B, c1TempDest2);\n Core.divide(c1TempDest2,new Scalar(3),c1);\n cArr[0] = c1;\n\n //C2\n Mat maxMinusB = new Mat(), maxMinusBPlusR= new Mat();\n Core.subtract(max,B,maxMinusB);\n Core.add(maxMinusB,R,maxMinusBPlusR);\n Core.divide(maxMinusBPlusR,new Scalar(2),c2);\n cArr[1] = c2;\n\n //C3\n Mat maxMinusG = new Mat() , maxMinusGTimes2 = new Mat(), maxMinusGTimes2PlusR = new Mat(), maxMinusGTimes2PlusRPlusB = new Mat();\n Core.subtract(max,G, maxMinusG);\n Core.multiply(maxMinusG, new Scalar(2), maxMinusGTimes2);\n Core.add(maxMinusGTimes2, R, maxMinusGTimes2PlusR);\n Core.add(maxMinusGTimes2PlusR, B, maxMinusGTimes2PlusRPlusB);\n Core.divide(maxMinusGTimes2PlusRPlusB, new Scalar(4), c3);\n cArr[2] = c3;\n return cArr;\n }" ]
[ "0.55757934", "0.5501059", "0.5460714", "0.54273987", "0.5396955", "0.5348446", "0.5307879", "0.52325016", "0.51669323", "0.51575124", "0.51069134", "0.5082644", "0.5049809", "0.5022725", "0.49703425", "0.4906847", "0.49060032", "0.48953727", "0.48716265", "0.48532808", "0.48440313", "0.48096153", "0.47551355", "0.47388366", "0.4727343", "0.471129", "0.47111624", "0.46905848", "0.46816906", "0.46761188", "0.46675202", "0.46600124", "0.4652243", "0.4651049", "0.46255767", "0.46251363", "0.462389", "0.46062917", "0.46039698", "0.46026966", "0.4583309", "0.4580697", "0.45729685", "0.4572245", "0.45649853", "0.45350492", "0.45199922", "0.45049644", "0.4500789", "0.45001966", "0.44955277", "0.44895056", "0.44895014", "0.4489109", "0.44836587", "0.44717842", "0.44615012", "0.4454119", "0.44479838", "0.44407922", "0.4439884", "0.4437429", "0.4430119", "0.4429324", "0.44150665", "0.4414787", "0.44110358", "0.44049653", "0.4401442", "0.44009435", "0.4397719", "0.4390679", "0.43855828", "0.43799752", "0.43735248", "0.43713906", "0.43680334", "0.43676287", "0.43624625", "0.43586862", "0.4350725", "0.43488744", "0.4347844", "0.43390173", "0.43376034", "0.43167832", "0.4313727", "0.43123668", "0.43103307", "0.43092397", "0.43012604", "0.42992124", "0.42910832", "0.42900002", "0.42817974", "0.42815566", "0.42786092", "0.42724967", "0.42697713", "0.4269474" ]
0.69053996
0
/ Adjusts a string to incorporate errors and changes in its length
static String adjustStringLength(String s, int newLength) { char[] res = new char[newLength]; res[0] = s.charAt(0); if(newLength == s.length()) { // In this case no insertions or deletions are needed for(int i = 1; i<res.length; i++) { res[i] = s.charAt(i); } } else if(newLength < s.length()) { // Deletions needed so pick random subsequence of indices to keep int[] subseq = getRandomSubsequence(1, s.length() - 1, newLength - 1); for(int i = 1; i<res.length; i++) { res[i] = s.charAt(subseq[i-1]); } } else { // Insert random bases in gaps for(int i = 1; i<res.length; i++) { res[i] = intToBase(rand.nextInt(4)); } // Randomly select how the bases from the original sequence get placed int[] subseq = getRandomSubsequence(1, newLength - 1, s.length() - 1); for(int i = 0; i<subseq.length; i++) { res[subseq[i]] = s.charAt(i+1); } } // Mutate each base with a fixed probability for(int i = 1; i<res.length; i++) { res[i] = mutateBaseWithProb(res[i], SEQ_ERROR); } return new String(res); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String makeCorrectSize(String s, int length){\n\t\tStringBuilder sb = new StringBuilder(s); \n\t\tfor(int i = sb.length(); i<length; i++){\n sb.append(\" \");\n }\n\t\treturn sb.toString(); \n\n\t}", "@Test\n public void testAdjustString() {\n System.out.println(\"adjustString\");\n String str = \"holaholaholahola\";\n int num = 6;\n String expResult = \"holaholaholahola \";\n String result = utilsHill.adjustString(str, num);\n assertEquals(expResult, result);\n }", "private String formatString(String s) {\n \t\tif (s.length() > 13) return s.substring(0,11) + \"...\"; \n \t\telse return s;\n \t}", "private String formatString(String s, int len){\n if(len<=s.length()){\n return s.substring(0,len);\n }\n StringBuilder sb = new StringBuilder(s);\n for(int i=s.length(); i<len; ++i){\n sb.append(\" \");\n }\n return sb.toString();\n }", "private final static String truncate( String s, int slength ) {\n\n char[] ca = s.toCharArray();\n char[] ca2 = new char [slength];\n\n\n if (slength < ca.length) { // if string is longer than allowed\n\n for ( int i=0; i<slength; i++ ) {\n ca2[i] = ca[i];\n } // end for\n\n } else {\n\n return (s);\n }\n\n return new String (ca2);\n\n }", "private String makeStringThisLong(String oldString, int length, Character padding) {\n \tString newString = \"\";\n \t\n \tif(oldString.length()>length) {\n \t\tnewString = oldString.substring(0, length);\n \t\n \t}else {\n \t\tnewString = new String(oldString);\n \t\tfor( int i=newString.length(); i<=length; i++ )\n \t\t\tnewString += padding;\n \t}\n \t\n \t\n \treturn newString;\n \t\n }", "void replaceSpaces(String strmain, int trueLen) {\n char[] str = strmain.toCharArray();\n int spaceCount = 0, index, i = 0;\n for (i = 0; i < trueLen; i++) {\n if(str[i]==' ')\n spaceCount++;\n }\n index = trueLen + spaceCount * 2; //length of the final string\n if (trueLen < str.length)\n str[trueLen] = '\\0';\n for (i = trueLen - 1; i >= 0; i--) {\n if (str[i] == ' ') {\n str[index - 1] = '0';\n str[index - 2] = '2';\n str[index - 3] = '%';\n index = index - 3;\n } else {\n str[index - 1] = str[i];\n index--;\n }\n }\n System.out.println(str);\n }", "private static String fixedLengthString(String str, int len, boolean reverse){\n return (reverse ? String.format(\"%1$\" + len + \"s\", str) : String.format(\"%-\" + len +\"s\", str));\n //return (reverse ? String.format(\"%\" + len/2 + \"%1$\" + len/2 + \"s\", str)\n // : String.format(\"%-\" + len +\"s\", str));\n\n }", "private String editString(String s) {\n s = s.replace(\"[31m\", \"\");\n s = s.replace(\"[0m\", \"\");\n s = s.replace(\"[33m\", \"\");\n s = s.replace(\"[36m\", \"\");\n s = s.replace(\"[34m\", \"\");\n s = s.replace(\"*\", \"\");\n s = s.replace(\"|\", \"\");\n //s = s.replace(\"]\", \"]\\n\");\n s = s.replace(\"\\t\", \"\\n\");\n\n\n return s;\n }", "int calcStringLength(String str) {\n return this.lang.a(str);\n }", "public static int replaceBlank(char[] string, int length) {\n int count = 0;\n for(int i=0;i<length;i++){\n if(string[i]==' '){\n count++;\n }\n }\n int ans = length+count*2;\n int j=ans-1;\n for(int i=length-1;i>-1;i--){\n if(string[i]==' '){\n string[j--]='0';\n string[j--]='2';\n string[j--]='%';\n }else{\n string[j--]=string[i];\n }\n }\n return ans;\n }", "public String setTenLenString(String sInput) {\n String sReturn = sInput;\n int nCount = 10 - sReturn.length();\n for (int i = 0; i < nCount; i++) {\n sReturn += \" \";\n }\n return sReturn;\n\n }", "static String padToLength(String s, int len) {\n\t\tStringBuffer sb = new StringBuffer(len);\n\t\tsb.append(s);\n\t\tfor (int i = s.length(); i < len; i++) sb.append(' ');\n\t\treturn sb.toString();\n\t}", "private static String modifyString(String input) {\n final StringBuilder stringBuilder = new StringBuilder(input);\n\n for (int index = 0; index < stringBuilder.length();) {\n if (stringBuilder.charAt(index) == ' ') {\n stringBuilder.replace(index, index + 1, \"%20\");\n index = index + 3;\n } else {\n index++;\n }\n }\n return stringBuilder.toString();\n }", "private static String fillStr(String str, int len) throws IllegalArgumentException\n {\n // String buffer containing the leading zeros.\n StringBuffer leaders;\n\n // The requested length must be greater or equal to the\n // string length.\n if (len <= str.length()) {\n throw new IllegalArgumentException(\"len less than length of string\");\n }\n\n // Make the string buffer with leading zeros and fill it.\n leaders = new StringBuffer(len - str.length());\n for (int iChar = 0; iChar < (len - str.length()); iChar++) {\n leaders.append('0');\n }\n\n // Construct and return the resulting string.\n return (leaders.toString() + str);\n }", "String checkString(String str) {\n\t\tString output = \"\";\n\t\tfor (int index = str.length() - 1; index >= 0; index--) {\n\t\t\toutput = output + str.charAt(index);\n\t\t}\n\t\treturn output;\n\t}", "private String stringShortener(String str) {\n if (str.length() <= 5) {\n return str;\n }\n str = str.substring(0, 5);\n str = str + \"...\";\n return str;\n }", "public static String shorten(String s, int len) {\n\t\tif (s==null) return null;\n\t\tif (s.length()>len) s=s.substring(0, len-2)+\"..\";\n\t\treturn s;\n\t}", "protected static String padString(String string, UIFont font, double width) {\n StringBuilder sb = new StringBuilder();\n CGSize size = new CGSize(Float.MAX_VALUE, Float.MAX_VALUE);\n NSStringDrawingOptions options = NSStringDrawingOptions.with(NSStringDrawingOptions.TruncatesLastVisibleLine,\n NSStringDrawingOptions.UsesLineFragmentOrigin);\n NSAttributedStringAttributes attr = new NSAttributedStringAttributes().setFont(font);\n while (true) {\n sb.append(\" \");\n CGSize resultSize = NSString.getBoundingRect(sb.toString(), size, options, attr, null).getSize();\n if (resultSize.getWidth() >= width) {\n break;\n }\n }\n\n // Add final spaces to be ready for first word\n sb.append(String.format(\" %s\", string));\n return sb.toString();\n }", "public static String toFixedWidth(String s) {\n return toFixedWidth(s, 80);\n }", "public String replace(char[] str, int length) {\n int spaceCount = 0, newLength;\n for (int i = 0; i < length; i++) {\n if (str[i] == ' ') {\n spaceCount++;\n }\n }\n\n newLength = length + spaceCount * 2;\n char[] newStr=new char[newLength];\n for(int i=length-1;i>=0;i--)\n {\n if(str[i]==' ')\n {\n newStr[newLength-1]='0';\n newStr[newLength-2]='2';\n newStr[newLength-3]='%';\n newLength=newLength-3;\n }else\n {\n newStr[newLength-1]=str[i];\n newLength=newLength-1;\n }\n }\n return new String(newStr);\n }", "public static String fillupStringToCertainLength(final String sourceString, int size, char fillupchar) {\n\t\tStringBuilder result = new StringBuilder(size);\n\t\tString string = sourceString;\n\t\tif (string == null)\n\t\t\tstring = \"\";\n\t\tStringBuilder fillup = new StringBuilder();\n\t\tfor (int i = 0; i < size - string.length(); i++) {\n\t\t\tfillup.append(fillupchar);\n\t\t}\n\t\tresult.append(fillup).append(string);\n\t\treturn result.toString();\n\n\t}", "public static StringBuffer addSpace(double str1, int len) {\n\t\tString str = String.valueOf(str1);\n\t\tStringBuffer result = new StringBuffer();\n\t\tif (len < str.getBytes().length)\n\t\t\tSystem.err.println(\"填充报文时出现错误,字段数据溢出。重新确认字段长度和验证程序的正确性\");\n\t\tresult.append(str + createSpace(len - str.getBytes().length));\n\t\treturn result;\n\t}", "private void validate(String s, int length, String msg) {\n Logger.getLogger(getClass()).info(\"valore della stringa inserita\"+s);\n \tif (s != null && s.length()>length)\n throw new IllegalArgumentException(msg);\n }", "public static String extendStringToLength(String stringToExtend, int length)\n\t{\n\t\tif(stringToExtend.length() >= length) return stringToExtend.substring(0, length-1);\n\t\telse \n\t\t{\n\t\t\tfor (int i = stringToExtend.length(); i < length; i++) stringToExtend += \" \";\n\t\t\treturn stringToExtend;\n\t\t}\n\t}", "private static String testString(String str, int minLen, int maxLen) throws Exception {\n if (str.length() > maxLen || str.length() < minLen) {\n throw new Exception(str + \" has a length not in [\" + minLen + \", \" + maxLen + \"]\");\n }\n return str;\n }", "public String reFormatStringForURL(String string, int length) {\n\t\t string = string.substring(0, length);\n\t\t return reFormatStringForURL(string);\n\t\t }", "public static StringBuffer addSpace(long str1, int len) {\n\t\tString str = (new Long(str1)).toString();\n\t\tStringBuffer result = new StringBuffer();\n\t\tif (len < str.getBytes().length)\n\t\t\tSystem.err.println(\"填充报文时出现错误,字段数据溢出。重新确认字段长度和验证程序的正确性\");\n\t\tresult.append(str + createSpace(len - str.getBytes().length));\n\t\treturn result;\n\t}", "public static String complete(String string) throws IntegerTooBigException {\n StringBuilder sb = new StringBuilder();\n if(string.length() < 32){\n for(int i=0;i<32 - string.length();i++){\n sb.append(\"0\");\n }\n }\n sb.append(string);\n return sb.toString();\n }", "public static StringBuffer addSpace(int str1, int len) {\n\t\tString str = String.valueOf(str1);\n\t\tStringBuffer result = new StringBuffer();\n\t\tif (len < str.getBytes().length)\n\t\t\tSystem.err.println(\"填充报文时出现错误,字段数据溢出。重新确认字段长度和验证程序的正确性\");\n\t\tresult.append(str + createSpace(len - str.getBytes().length));\n\t\treturn result;\n\t}", "private String format(String s){\n\t\tint len = s.length();\n\t\tfor (int i = 0; i < 6 - len; i++){\n\t\t\ts = \"0\" + s;\n\t\t}\n\t\t\n\t\treturn s;\n\t}", "@Override\r\n public void insertString(int offs, String str, AttributeSet a)\r\n throws BadLocationException {\n\r\n if (getLength() + str.length() > max) {\r\n // If it does, then truncate it\r\n\r\n str = str.substring(0, max - getLength());\r\n }\r\n super.insertString(offs, str, a);\r\n }", "public static String URLify1(String s, int length) {\n if (s == null || s.isEmpty())\n return \"\";\n int count = 0;\n char[] result = new char[s.length()];\n for (int i = 0; i < length; i ++) {\n if (s.charAt(i) == ' ') {\n result[count] = '%';\n result[count + 1] = '2';\n result[count + 2] = '0';\n count = count + 3;\n } else {\n result[count] = s.charAt(i);\n count++;\n }\n }\n return String.valueOf(result);\n }", "public static void replaceSpaces(char str[], int length) {\n\t\tint spaceCount = 0;\n\t\tint newLength = 0;\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (str[i] == ' ') {\n\t\t\t\tspaceCount++;\n\t\t\t}\n\t\t}\n\t\tnewLength = length + 2 * spaceCount;\n\t\t// take a new array\n\t\tchar[] newStr = new char[newLength];\n\t\t// insert from the end\n\t\tfor (int i = length - 1; i >= 0; i--) {\n\t\t\tif (str[i] == ' ') {\n\t\t\t\tnewStr[newLength - 1] = '0';\n\t\t\t\tnewStr[newLength - 2] = '2';\n\t\t\t\tnewStr[newLength - 3] = '%';\n\t\t\t\tnewLength = newLength - 3;\n\t\t\t} else {\n\t\t\t\tnewStr[newLength - 1] = str[i];\n\t\t\t\tnewLength--;\n\t\t\t}\n\t\t}\n\t\tSystem.err.println(String.valueOf(newStr));\n\t}", "private void convertToString(String s)\n\t{\n\t\tchar chars[] = s.toCharArray();\n\t\tfor(int i = 0; i < chars.length; i+=3)\n\t\t{\n\t\t\tString temp = \"\";\n\t\t\ttemp += chars[i];\n\t\t\ttemp += chars[i+1];\n\t\t\tif(chars[i] < '3')\n\t\t\t{\n\t\t\t\ttemp += chars[i+2];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti -= 1;\n\t\t\t}\n\t\t\t\n\t\t\tif(!temp.equals(\"256\"))\n\t\t\t{\n\t\t\t\tmyDecryptedMessage += (char)(Integer.parseInt(temp));\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testSanitizeText() {\n assertEquals(text.length() - 9, WordUtil.sanitizeText(text).length());\n }", "private void updateErrorText()\n {\n mErrorText.clear();\n mErrorText.clearSpans();\n final int length = mTextInputLayout.getText().length();\n if(length >= 0){\n mErrorText.append(String.valueOf(length));\n mErrorText.append(\" / \");\n mErrorText.append(String.valueOf(mMaxLen));\n mErrorText.setSpan(mAlignmentSpan, 0, mErrorText.length(),\n Spanned.SPAN_INCLUSIVE_EXCLUSIVE);\n if(hasValidLength()){\n mErrorText.setSpan(mNormalTextAppearance, 0, mErrorText.length(),\n Spanned.SPAN_INCLUSIVE_EXCLUSIVE);\n }\n }\n mCharacterLimit.setText(mErrorText);\n }", "private static String m12563a(String str, String str2) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 3 + String.valueOf(str2).length());\n sb.append(str);\n sb.append(\"|S|\");\n sb.append(str2);\n return sb.toString();\n }", "public static String URLify2(char[] str, int length) {\n int end = str.length - 1;\n int curr = length - 1;\n while (curr >= 0) {\n char temp = str[curr];\n if (temp == ' ') {\n str[end] = '0';\n str[end - 1] = '2';\n str[end -2] = '%';\n end -= 3;\n } else {\n str[end] = temp;\n end--;\n }\n curr--;\n }\n return String.valueOf(str);\n }", "private final StringBuffer shrink(StringBuffer i2Shrink, int iLength)\n \t{\n \t\tiLength = i2Shrink.length() - iLength;\n \t\tif (iLength < 0)\n \t\t\tthrow new ArgumentError(ruby, \"X outside of string\" );\n \t\ti2Shrink.setLength(iLength);\n \t\treturn i2Shrink;\n \t}", "private String avoidErrorChar (String original) {\n\t\tStringBuffer modSB = new StringBuffer();\n\t\tfor (int j=0; j < original.length(); j++) {\n\t\t\tchar c = original.charAt(j);\n\t\t\tif (c == '\\n') {\n\t\t\t\tmodSB.append(\"\\\\n\"); // rimpiazzo il ritorno a capo con il simbolo \\n\n\t\t\t} else if (c == '\"') {\n\t\t\t\tmodSB.append(\"''\"); // rimpiazzo le doppie virgolette (\") con due apostofi ('')\n\t\t\t} else if ((int)c > 31 || (int)c !=127){ // non stampo i primi 32 caratteri di controllo\n\t\t\t\tmodSB.append(c);\n\t\t\t}\n\t\t}\n\t\treturn modSB.toString();\n\t}", "private static char[] replaceSpaceInString(char[] array, int length) {\n\tint spaceCount = 0;\n\tfor(int i =0;i<length;i++)\n\t\tif(array[i]==' ')\n\t\t\tspaceCount++;\n\tchar newArr[] = new char[length + 2*spaceCount+1];\n\tint newLength = 0;\n\tnewArr[length + 2*spaceCount] = '\\0';\n\tfor(int i =0;i<length;i++){\n\t\tif(array[i]==' '){\n\t\t\tnewArr[newLength] = '%';\n\t\t\tnewArr[newLength+1] = '2';\n\t\t\tnewArr[newLength+2] = '0';\n\t\t\tnewLength+=3;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewArr[newLength] = array[i];\n\t\t\tnewLength++;\n\t\t}\n\t}\n\t\n\treturn newArr;\n}", "private static String getMaxString(String str) {\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tif (stripColors(str.substring(0, i)).length() == maxLength) {\n\t\t\t\tif (stripColors(str.substring(i, i+1)) == \"\")\n\t\t\t\t\treturn str.substring(0, i-1);\n\t\t\t\telse\n\t\t\t\t\treturn str.substring(0, i);\n\t\t\t}\n\t\t}\n\t\treturn str;\n\t}", "public static String truncate(String string, int len) {\n Preconditions.checkArgument(len >= 4, \"len < 4\");\n if (string.length() <= len)\n return string;\n return string.substring(0, len - 3) + \"...\";\n }", "public static int longerThanOriginalOne(String s){\n\n\t\tint count = 1;\n\t\tchar c = s.charAt(0);\n\n\t\tint total = 0;\n\n\t\tfor (int i = 1; i < s.length(); i++){\n\t\t\tif (s.charAt(i) == c){\n\t\t\t\tcount += 1;\n\t\t\t}else{\n\t\t\t\ttotal += 1 + Integer.toString(count).length();\n\t\t\t\tc = s.charAt(i);\n\t\t\t\tcount = 1;\n\n\t\t\t}\n\t\t}\n\t\ttotal += 1 + Integer.toString(count).length();\n\t return total;\n\n\n\t}", "public static String right(String str, int len) {\n return StringUtils.right(str, len);\n }", "private byte[] setStringSize(StringBuffer s, int n) {\n\n byte b[];\n int i, slen;\n\n slen = s.length();\n\n if (slen >= n) {\n return (s.toString().substring(0, n).getBytes());\n }\n\n b = new byte[n];\n for (i = 0; i < slen; i++) {\n b[i] = (byte) s.charAt(i);\n }\n for (i = slen; i < n; i++) {\n b[i] = 0;\n }\n\n return (b);\n }", "private String reduce(String str, int i) {\n\t\tString ret = str;\n\t\tif (i == 8) {\n\t\t\tif (str.length() > 2) {\n\t\t\t\tret = str.substring(str.length()-2);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "protected static String fixFilenameLength(String input, int maxLength) {\n String result = input;\n result = StringUtils.stripAccents(result);\n result =\n result.replaceAll(\"\\uF022\", \"_\")\n .replaceAll(\"„\", \"_\")\n .replaceAll(\"“\", \"_\")\n .replaceAll(\":\", \".\")\n .replaceAll(\"'\", \"_\")\n .replaceAll(\"..mp3\", \".mp3\")\n ;\n int length = maxLength;\n while (result.getBytes(StandardCharsets.UTF_8).length > maxLength) {\n length--;\n result = StringUtils.abbreviate(result, \"...\", length);\n }\n return result;\n }", "private static String checkAddress(String raw) \n\t{\n\t\t// Check to see if the length is greater than the maxLength of user input.\n\t\tif(raw.length() > maxLength) \n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\treturn raw;\n\t}", "static String replaceBlankInString(char[] s) {\n if (s == null || s.length <=0) return null;\n int originStrLen = s.length;\n int numOfBlanks = 0,destStrLen = 0;\n int p1 = originStrLen-1,p2;\n for (int i=0;i<originStrLen;i++) {\n if (s[i] == ' ') {\n numOfBlanks++;\n }\n }\n destStrLen = originStrLen + 2 * numOfBlanks;\n p2 = destStrLen-1;\n\n char descArr[] = new char[destStrLen];\n\n System.arraycopy(s,0,descArr,0,originStrLen);\n while (p1 != p2 && p1 >=0) {\n if (s[p1] == ' ') {\n descArr[p2--] = '0';\n descArr[p2--] = '2';\n descArr[p2--] = '%';\n } else {\n descArr[p2--] = s[p1];\n }\n p1--;\n }\n return new String(descArr);\n }", "public static String shorten(String s) {\n\t\tif (s==null) return null;\n\t\tif (s.length()>70) s=s.substring(0, 67)+\"...\";\n\t\treturn s;\n\t}", "public static String truncateString( String input, int len ) {\n\t\tint spaceAt = 0;\n\t\tif ( input.length() <= len ) {\n\t\t\treturn input;\n\t\t} else {\n\t\t\tspaceAt = input.lastIndexOf( \" \", len+1 );\n\t\t\tif ( spaceAt > 0 ) {\n\t\t\t\treturn input.substring( 0, spaceAt );\n\t\t\t} else {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t}\n\t}", "static String super_reduced_string(String s) {\n if (s.equals(\"\")) return \"Empty String\";\n\n StringBuffer buffer = new StringBuffer(s);\n for (int i = 1; i < buffer.length(); i++) {\n if (buffer.charAt(i) == buffer.charAt(i - 1)) {\n // Delete both if they are the same\n buffer.delete(i - 1, i + 1);\n i = 0;\n }\n\n if (buffer.length() == 0) {\n return \"Empty String\";\n }\n }\n\n return buffer.toString();\n }", "static public String pad(String str, int len)\n {\n int curlen = str.length();\n StringBuffer sb = new StringBuffer(len);\n \n for (int i=0; i<(len-curlen); i++)\n {\n sb.append(\" \");\n }\n sb.append(str);\n \n //System.out.println(\"Str len= \" + curlen + \" new len= \" + len);\n return sb.toString();\n }", "static String m60358a(String str, String str2) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 3 + String.valueOf(str2).length());\n sb.append(str);\n sb.append(\"|S|\");\n sb.append(str2);\n return sb.toString();\n }", "public static String centerString(int width, String s) {\n \treturn String.format(\"%-\" + width + \"s\", String.format(\"%\" + (s.length() + (width - s.length()) / 2) + \"s\", s));\n\t}", "private String LeftPad(String str, int length)\n {\n //pad and return String\n return String.format(\"%1$\" + length + \"s\", str);\n }", "private String limitString(String str, int max_chars)\n {\n if(str != null && str.length() > max_chars)\n {\n return str.substring(0, max_chars - 2) + \"..\";\n }\n \n else return str;\n }", "private int normalize(char[] dest, int start, int length) {\n int lacount = 0;\n for (int i = start, e = i + length; i < e; ++i) {\n char ch = dest[i];\n if (ch >= '\\uFE70' && ch <= '\\uFEFC') {\n if (isLamAlefChar(ch)) {\n ++lacount;\n }\n dest[i] = (char)convertFEto06[ch - '\\uFE70'];\n }\n }\n return lacount;\n }", "public static int getStringLength(CharSequence s) {\r\n int n = 0;\r\n for (int i = 0; i < s.length(); i++) {\r\n int c = (int) s.charAt(i);\r\n if (c < 55296 || c > 56319) n++; // don't count high surrogates, i.e. D800 to DBFF\r\n }\r\n return n;\r\n }", "static String superReducedString(String s) {\n StringBuffer buff = new StringBuffer(s);\n for(int i = buff.length() - 1; i >= 0; i--){\n int j = i + 1;\n if(j >= buff.length()) continue;\n\n if(buff.charAt(i) == buff.charAt(j)) {\n buff.delete(i, j + 1);\n }\n }\n\n if(buff.length() == 0) return \"Empty String\";\n return String.valueOf(buff);\n }", "public static String padL(String s, int width) {\n\t\tif (s == null) {\n\t\t\ts = \"null\";\n\t\t}\n\t\twhile (s.length() < width) {\n\t\t\ts = \" \" + s;\n\t\t}\n\t\treturn s;\n\t}", "public char[] urlify(char[] givenArray, int length){\n int spacesNumber = 0;\n for(int i = 0; i < length; i++) {\n if(givenArray[i] == ' ') {\n spacesNumber++;\n }\n }\n \n\n if(spacesNumber == 0) return givenArray;\n\n // shift and replace\n int currentLetter = length - 1;\n while(spacesNumber > 0) {\n while(givenArray[currentLetter] != ' ') {\n givenArray[currentLetter + (2 * spacesNumber)] = givenArray[currentLetter];\n currentLetter--;\n }\n givenArray[currentLetter + (2 * spacesNumber)] = '0';\n givenArray[currentLetter + (2 * spacesNumber)-1] = '2';\n givenArray[currentLetter + (2 * spacesNumber)-2] = '%';\n\n currentLetter--;\n spacesNumber--;\n }\n return givenArray; \n }", "public int stringWidth(String str) {\r\n\t\treturn substringWidth(str, 0, str.length());\r\n\t}", "private static String getMaxLength(String input) {\n\t\tif(null == input || \"\".equals(input)){\n\t\t\treturn \"输入不能为空\";\n\t\t}\n\t\tString regex = \"\\\\s+\";\n\t\tString[] strArry = input.split(regex);\n\t\tString temp = \"\";\n\t\tfor (int i = 0; i < strArry.length; i++) {\n\t\t\tif(strArry[i].length() > temp.length()){\n\t\t\t\ttemp = strArry[i];\n\t\t\t}\n\t\t}\n\t\t\n//\t\treturn removePunctuation(temp);\n\t\treturn temp;\n\t}", "public static String blowup(String str) {\n\t\tString result = \"\";\n\t\tfor(int i = 0; i < str.length() - 1; i++){\n\t\t\tif(Character.isDigit(str.charAt(i))){\n\t\t\t\tresult += miniBlow(str.charAt(i + 1), (str.charAt(i) - '0'));\n\t\t\t} else {\n\t\t\t\tresult += str.charAt(i);\n\t\t\t}\n\t\t}\n\t\tif(str.length() != 0 && !Character.isDigit(str.charAt(str.length() - 1))) {\n\t\t\tresult += str.charAt(str.length() - 1);\n\t\t}\n\t\treturn result;\n\t}", "private String intChecker(String s) {\n\t\tString newS = \"\";\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\tif(s.charAt(i) > 47 && s.charAt(i) < 58) {\n\t\t\t\tnewS += s.charAt(i);\n\t\t\t}\n\t\t}\n\t\treturn newS;\n\t}", "@Test\n public void testFirstNameMaxLength()\n {\n String invalid = repeatM(21);\n owner.setFirstName(invalid);\n assertInvalid(owner, \"firstName\", \"First name must be between 2 and 20 characters\", invalid);\n }", "public static char[] URLify(char[] str, int trueLength) {\n\t\tint cur = str.length - 1;\n\t\tfor(int i = trueLength - 1; i > -1; i--) {\n\t\t\tif(str[i] == ' ') {\n\t\t\t\tstr[cur] = '0';\n\t\t\t\tstr[cur-1] = '2';\n\t\t\t\tstr[cur-2] = '%';\n\t\t\t\tcur = cur - 3;\n\t\t\t} else {\n\t\t\t\tstr[cur] = str[i];\n\t\t\t\tcur = cur - 1;\n\t\t\t}\n\t\t}\n\t\treturn str;\n\t}", "public static String truncateString(String string, int length) {\n return string.substring(0, Math.min(string.length(), length));\n }", "private static String normalizeB64String(String s) {\n while(s.length() % 4 != 0)\n s += \"=\";\n return s;\n }", "private String doubleChecker(String s) {\n\t\tString newS = \"\";\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\tif((s.charAt(i) > 47 && s.charAt(i) < 58) || s.charAt(i) == '.') {\n\t\t\t\tnewS += s.charAt(i);\n\t\t\t}\n\t\t}\n\t\treturn newS;\n\t}", "public static String setLen(String s, int nofSpaces) {\n\t\tStringBuilder sb = new StringBuilder(s);\n\t\tfor (int i = 0; i < nofSpaces; i++)\n\t\tsb.insert(0, \" \");\n\t\t2\n\t\treturn sb.toString();\n\t}", "private final static String remZeroS( String s ) {\n\n char[] ca = s.toCharArray();\n char[] ca2 = new char [ca.length - 1];\n\n\n for ( int i=0; i<ca2.length; i++ ) {\n ca2[i] = ca[i+1];\n } // end for\n\n return new String (ca2);\n\n }", "public String cleanTheString(String input) {\n String result = \"\";\n if (input != null && !input.isEmpty()) {\n\n for (int k = 0; k < input.length(); k++) {\n if (!(input.charAt(k) == '0'\n || // unallowed characters\n input.charAt(k) == '1' || input.charAt(k) == '2' || input.charAt(k) == '3'\n || input.charAt(k) == '4' || input.charAt(k) == '5' || input.charAt(k) == '6'\n || input.charAt(k) == '7' || input.charAt(k) == '8' || input.charAt(k) == '9'\n || input.charAt(k) == 'A' || input.charAt(k) == 'B' || input.charAt(k) == 'C'\n || input.charAt(k) == 'D' || input.charAt(k) == 'E' || input.charAt(k) == 'F')) {\n } else\n result = result + Character.toString(input.charAt(k));\n\n }\n\n }\n\n return result;\n }", "@Test\n\tpublic void invalidLengthShort() {\n\t\tboolean result = validator.isValid(\"73602851\");\n\t\tassertFalse(result);\n\t}", "public static String lpad(String s, int len, char ch)\r\n {\r\n if (s == null || s.length() >= len)\r\n return s;\r\n \r\n StringBuffer buf = new StringBuffer(len);\r\n for (len -= s.length(); len > 0; len--)\r\n buf.append(ch);\r\n \r\n buf.append(s);\r\n return buf.toString();\r\n }", "private static String pad(String s, int len, char j) {\n\n\t\tif (s.length() >= len) {\n\t\t\treturn s;\n\t\t}\n\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tfor (int i = 0; i < len - s.length(); ++i) {\n\t\t\tsb.append(j);\n\t\t}\n\t\tsb.append(s);\n\n\t\treturn sb.toString();\n\t}", "public static void main(String[] args) {\n\r\n\t\tString str = \"Mr John Smith \";\r\n\t\tint trueLength= 13;\r\n\t\tint count=0;\r\n\t\tchar[] strArray = str.toCharArray();\r\n\t\t\r\n\t\tint charLength = strArray.length;\r\n\t\t\r\n\t\tfor(int i=0;i<str.length();i++) {\r\n\t\t\tif(str.charAt(i)==' ') count++;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Total white spaces \"+ count);\r\n\t\t\r\n\t\tint index = charLength+2*count;\r\n\t\tif(trueLength<str.length()) strArray[trueLength]='\\0';\r\n\t\t\r\n\t\tfor(int i=charLength-1;i>=0;i--) {\r\n\t\t\tif(strArray[i]==' ') {\r\n\t\t\t\tstrArray[index-1]='0';\r\n\t\t\t\tstrArray[index-2]='2';\r\n\t\t\t\tstrArray[index-3]='%';\r\n\t\t\t\tindex=index-3;\r\n\t\t\t} else {\r\n\t\t\t\tstrArray[index-1]=strArray[i];\r\n\t\t\t\tindex--;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Final String \"+ strArray.toString());\r\n\t\t\r\n\t}", "private String trimString(String input) {\n final int maxWidth = 16; // Scoreboard string length is 16.\n\n // Check to see if the input length is greater than the maxWidth of characters.\n if (input.length() > maxWidth) {\n int amountOver = input.length() - maxWidth;\n return input.substring(0, input.length() - amountOver);\n } else {\n // The input is less than 15 characters so it does not need to be trimmed.\n return input;\n }\n }", "@Override\n\tpublic void insertString(FilterBypass fb, int offset, String string, AttributeSet attr)\n\t\t\tthrows BadLocationException {\n\t\tif((fb.getDocument().getLength() + string.length()) <= MAX_NUMBER_DIGITS && string.matches(REGEX)) {\n\t\t\t//replace in string to append only characters that are digits \n\t\t\tfb.insertString(offset, string, attr);\n\t\t}else {\n\t\t\tToolkit.getDefaultToolkit().beep();\n\t\t}\n\t}", "public static String createValidString(final String string) {\n\t\tStringBuilder stringBuilder = null; //we'll only create a string buffer if there are invalid characters\n\t\tfor(int i = string.length() - 1; i >= 0; --i) { //look at all the characters in the string\n\t\t\tif(!isChar(string.charAt(i))) { //if this is not a valid character\n\t\t\t\tif(stringBuilder == null) //if we haven't create a string buffer, yet\n\t\t\t\t\tstringBuilder = new StringBuilder(string); //create a string buffer to hold our replacements\n\t\t\t\tstringBuilder.setCharAt(i, SPACE_CHAR); //replace this character with a space\n\t\t\t}\n\t\t}\n\t\treturn stringBuilder != null ? stringBuilder.toString() : string; //return the original string unless we've actually modified something\n\t}", "public int stringWidth(String str) {\n\t\tint strWidth = 0;\n\t\tCharsetString[] cs = gpf.makeMultiCharsetString(str);\n\t\t\n\t\tfor(int i=0;i<cs.length;i++)\n\t\t{\n\t\t\tbyte[] s = new byte[cs[i].length*3];\n\t\t\tint len;\n\t\t\t\n\t\t\ttry {\n\t\t\t\tlen = cs[i].fontDescriptor.fontCharset.convertAny(cs[i].charsetChars, cs[i].offset, cs[i].length, s, 0, s.length);\n\t\t\t} catch(Exception e)\n\t\t\t{\n\t\t\t\t/* FIXME ... */\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tint gdkfont = gpf.getGdkFont(cs[i].fontDescriptor);\n\t\t\tstrWidth += stringWidthNative(s, len, gdkfont);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn strWidth;\n }", "private final static String cleanRecord3( String s ) {\n\n char[] ca = s.toCharArray();\n char[] ca2 = new char [ca.length +16]; // allow for all commas\n char letter;\n char lastLetter = 'a'; // init for complier\n int i2 = 0;\n\n for ( int i=0; i<ca.length; i++ ) {\n\n letter = ca[i];\n if ( letter == ',' ) { // if a comma\n\n if (lastLetter == ',') { // if 2 commas in a row\n\n ca2[i2] = '?'; // replace with a '?'\n i2++;\n }\n }\n\n ca2[i2] = letter; // copy this character to work area\n i2++;\n\n lastLetter = letter; // save last letter\n\n } // end of loop\n\n char[] ca3 = new char [i2];\n\n for ( int i=0; i<i2; i++ ) {\n letter = ca2[i]; // get from first array\n ca3[i] = letter; // move to correct size array\n }\n\n return new String (ca3);\n\n }", "public void adjustTextSize(String str) {\n int i;\n int i2 = this.mMinTextSize;\n int height = (this.mEditText.getHeight() - this.mEditText.getCompoundPaddingBottom()) - this.mEditText.getCompoundPaddingTop();\n int width = (this.mEditText.getWidth() - this.mEditText.getCompoundPaddingLeft()) - this.mEditText.getCompoundPaddingRight();\n this.mWidthLimit = width;\n this.mAvailableSpaceRect.right = (float) width;\n this.mAvailableSpaceRect.bottom = (float) height;\n if (!this.mIsMultiLine || Math.min(getRect().width(), getRect().height()) <= 40.0f) {\n i = binarySearch(i2, this.mMaxTextSize, this.mSizeTester, this.mAvailableSpaceRect);\n } else {\n i = 40;\n }\n this.mEditText.setTextSize(0, (float) i);\n }", "private String checkLimitText(String s, int limit) {\n\n if (s == null) {\n s = \"\";\n }\n\n if (s.length() > limit) {\n s = s.substring(0, limit);\n s = s + \"...\";\n }\n\n return s;\n }", "private static String normalize(String s) {\r\n\t\t//return Normalizer.normalize(s, Normalizer.Form.NFC);\r\n\t\treturn s;\r\n\t}", "public int getStringWidth(String text);", "public String fixNumTeam(String input, String team) {\n if (input.length() < 4) {\n //System.out.println(\"Shorter than 4 digits\");\n return fixNumTeam(\"0\".concat(input), team);\n } else if (input.length() > 4) {\n System.out.println(\"Err - Longer than 4\");\n //JOptionPane.showMessageDialog(tester,\n // team + \" team number greater than 4 digits\",\n // \"Team number error\",\n // JOptionPane.ERROR_MESSAGE);\n input = input.substring(0, 4);\n }\n return input;\n }", "int getMaxStringLiteralSize();", "public String form(String s)\n {\n if (fmt != 's')\n {\n throw new java.lang.IllegalArgumentException();\n }\n\n if (precision >= 0)\n {\n s = s.substring(0, precision);\n }\n\n return pad(s);\n }", "public double strLen(String str, double size) {\n return mcFont().getStringWidth(str) * size / mcFont().FONT_HEIGHT;\n }", "public final void mo4373a(String str) {\n int position = this.f20658c.position();\n try {\n int g = zzut.m22576g(str.length() * 3);\n int g2 = zzut.m22576g(str.length());\n if (g2 == g) {\n g = this.f20658c.position() + g2;\n this.f20658c.position(g);\n m27213c(str);\n g2 = this.f20658c.position();\n this.f20658c.position(position);\n mo4376b(g2 - g);\n this.f20658c.position(g2);\n return;\n }\n mo4376b(dr.m11788a((CharSequence) str));\n m27213c(str);\n } catch (zzyn e) {\n this.f20658c.position(position);\n m22612a(str, e);\n } catch (Throwable e2) {\n throw new zzc(e2);\n }\n }", "public static String rpad(String s, int len, char ch)\r\n {\r\n if (s == null || s.length() >= len)\r\n return s;\r\n \r\n StringBuffer buf = new StringBuffer(len);\r\n buf.append(s);\r\n for (len -= s.length(); len > 0; len--)\r\n buf.append(ch);\r\n \r\n return buf.toString();\r\n }", "@Test\n\t public void test5 ()\n\t{\n\t\t\tString s = new String(\"aaabaaaaabaabaaaabaaaaaaaaaaaaaabaaaaaaaaaaaaaaabaaaaaaaaaaaaaaba\");\n\t s = s.replaceAll(\"\\\\s+\", \" \");\n\t assertEquals(\"aaaaaaaaaaaaaabaaaaaaaaaaaaaa\", LRS.lrs(s)); \n\t}", "public int substringWidth(String str, int offset, int length) {\r\n\t\tint w = 0;\r\n\t\tfor (int i = offset; i < offset + length; i++) {\r\n\t\t\tw += charWidth(str.charAt(i));\r\n\t\t}\r\n\t\treturn w;\r\n\t}", "private void prepareInput() {\n\t\tif(input.charAt(0) == '-') input = \"0\" + input;\n\t\tfor(int i = 0; i < input.length() - 1; i++) {\n\t\t\tif(input.charAt(i) == '(' && input.charAt(i+1) == '-') input = input.substring(0, i+1) + \"0\" + input.substring(i+1); \n\t\t}\n\t}", "private String formatStr(String s) {\r\n\t\treturn formatStr(s, null, null);\r\n\t}", "public static String formatString(String s) {\n char[] charArray = s.toCharArray();\n StringBuilder normalizedString = new StringBuilder();\n for (char character:charArray\n ) {\n if (character == 'd' || character == 'D'){\n normalizedString.append('d');\n continue;\n }\n normalizedString.append(Normalizer.normalize(String.valueOf(character), Normalizer.Form.NFD));\n }\n\n return normalizedString.toString().replaceAll(\"[^\\\\p{ASCII}]\", \"\");\n }" ]
[ "0.70637816", "0.7045708", "0.6254327", "0.6241633", "0.62220216", "0.6212878", "0.61340225", "0.6071452", "0.6008066", "0.6000565", "0.59916633", "0.59761924", "0.5936974", "0.59234554", "0.5901248", "0.5886373", "0.5843666", "0.58312094", "0.5817645", "0.58051026", "0.5779417", "0.57764107", "0.5762983", "0.5749192", "0.57462996", "0.57418776", "0.5736699", "0.5714872", "0.5703664", "0.5703172", "0.56795055", "0.5596887", "0.5595658", "0.5584145", "0.5576531", "0.55733275", "0.55612785", "0.5543353", "0.55428064", "0.5542111", "0.5539225", "0.55300105", "0.5527241", "0.5526572", "0.5510098", "0.5504576", "0.54766697", "0.5467036", "0.5457739", "0.54509115", "0.54158884", "0.54104507", "0.54069656", "0.54020715", "0.54014707", "0.5398858", "0.53968346", "0.5392728", "0.5390514", "0.5386441", "0.5370636", "0.53598166", "0.5359571", "0.53525275", "0.5348699", "0.53251934", "0.53221315", "0.5321303", "0.5316299", "0.53153795", "0.53146654", "0.53142256", "0.5310887", "0.53060156", "0.53035295", "0.52990836", "0.5296827", "0.52952266", "0.528368", "0.5282732", "0.52813464", "0.5279283", "0.5278366", "0.527275", "0.526763", "0.52620304", "0.5249688", "0.52456784", "0.5243475", "0.5241569", "0.52262235", "0.52187246", "0.52067226", "0.5202748", "0.5193782", "0.5191234", "0.5177262", "0.5175254", "0.51751745", "0.51731545" ]
0.6452237
2
/ Mutates a given base to a random other base with a fixed probability
static char mutateBaseWithProb(char base, double p) { if(rand.nextDouble() < p) { int baseAsInt = baseToInt(base); char newBase = intToBase((baseAsInt + rand.nextInt(3) + 1)%4); if(Character.isLowerCase(base)) { newBase += 'a' - 'A'; } return newBase; } else { return base; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setRand(){\n rand = generator.nextInt(9) + 1;\n }", "private double genMultiplier() {\n return (random.nextInt(81) + 60)/100.0;\n }", "private void mutate(float probability) {\r\n\r\n individual[] temp_pop = new individual[this.pop_size];\r\n\r\n for (int i = 0; i < this.pop_size; i++) {\r\n\r\n float temp_genes[] = this.offspring_population.getPopulation()[i].getGenes();\r\n\r\n // mutation can now mutate wild cards\r\n for (int j = 0; j < temp_genes.length; j++) {\r\n float k = new Random().nextFloat();\r\n\r\n if (k <= probability) {\r\n float temp = new Random().nextFloat();\r\n temp_genes[j] = temp; // add a float between 0-1 // just mutate a new float\r\n }\r\n }\r\n individual child = new individual(temp_genes, solutions, output);\r\n temp_pop[i] = child;\r\n }\r\n this.main_population.setPopulation(temp_pop);\r\n this.main_population.update_population();\r\n }", "@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(10, 20); \t\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}", "public abstract void randomize();", "@Override\n\t public Node apply(Node gen) {\n\t\t gen = gen.clone(null);\n\t\t int n = gen.weight();\n\t\t int m = (int)(Math.random()*n);\n\t\t Node mutate_node = gen.get(m);\n\t\t int x = (int)(Math.random()*codes.length);\n\t\t mutate_node.oper = codes[x];\n\t\t return gen;\n\t }", "public static float uniform(float a, float b) {\n return a + (b - a) * (float) Math.random();\n }", "public void mutate(float p)\n {\n int regCount = this.registers.size();\n\n /**\n * Parameter mutation replace parameters by random terminals\n */\n for (int i = 0; i < registers.size(); i++)\n {\n LinearRegister reg = this.registers.get(i);\n \n if (1 - GPRunner.RANDOM.nextFloat() <= p)\n {\n if (reg.parameters.length == 0)\n {\n /**\n * Mutate whole register\n */\n this.registers.set(i, randomRegister());\n }\n else\n {\n int parameter = GPRunner.RANDOM\n .nextInt(reg.parameters.length + 1);\n \n if (parameter >= reg.parameters.length)\n {\n /**\n * Mutate whole register\n */\n this.registers.set(i, randomRegister());\n }\n else\n {\n /**\n * Mutate parameter\n */\n reg.parameters[parameter] = randomTerminal();\n }\n }\n }\n }\n\n /**\n * Mutate output register\n */\n\t\t// if(1 - Register.RANDOM.nextFloat() <= p)\n // {\n // this.outputRegister = Register.RANDOM.nextInt(registers.size());\n // }\n }", "public void setRandom(Random r) {\n this.r = r;\n }", "public ProbabilityDistribution(Random random) {\n\t\trandom_ = random;\n\t\titemProbs_ = new MutableKeyMap<T, Double>();\n\t}", "public void growSocial(){\n social += Math.round(Math.random());\n social -= Math.round(Math.random());\n \n if(social > 100){\n social = 100;\n }\n \n if(social < 0){\n social = 0;\n }\n }", "public static int uniform( int a, int b ) {\n return a + uniform( b - a );\n }", "@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(500, 800);\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}", "public Builder setSpecialProb(float value) {\n \n specialProb_ = value;\n onChanged();\n return this;\n }", "public void setBase(Integer base);", "public double pissRandom(double a, double b){\n\t\tdouble min = b, max = a;\n\t\tif (a < b){\n\t\t\tmin = a;\n\t\t\tmax = b;\n\t\t}\n\t\treturn min + pissRandom(max - min);\n\t}", "public static double uniform( double a, double b ) {\n return a + uniform() * ( b - a );\n }", "public void growLiving(){\n living += Math.round(Math.random());\n living -= Math.round(Math.random());\n \n if(living > 100){\n living = 100;\n }\n \n if(living < 0){\n living = 0;\n }\n }", "private void uniformMutation(){\n Random random = new Random();\n double newValue = random.nextGaussian()*16.6 + 50.0;\n if(newValue < 0) newValue = 0;\n if(newValue > 100) newValue = 100;\n int gene = random.nextInt(6);\n switch (gene){\n case 0 : this.x1 = newValue; break;\n case 1 : this.x2 = newValue; break;\n case 2 : this.x3 = newValue; break;\n case 3 : this.y1 = newValue; break;\n case 4 : this.y2 = newValue; break;\n case 5 : this.y3 = newValue; break;\n }\n }", "public synchronized int setPassengerWeight(){\n return random.nextInt((100-40)+1)+40;\n }", "public void generateR(){\n\t\t\tdo{\n\t\t\t\tr = new BigInteger(80, new Random());\n\t\t\t}while(!(q.gcd(r).equals(BigInteger.ONE)&&r.compareTo(q)<0&&r.compareTo(BigInteger.ONE)>=0));\n\t}", "private int randomGen(int upperBound) {\n\t\tRandom r = new Random();\n\t\treturn r.nextInt(upperBound);\n\t}", "float genChance();", "public abstract void setGen(int i, double value);", "public Builder setSamplingProbability(double value) {\n \n samplingProbability_ = value;\n onChanged();\n return this;\n }", "public void setProbability(double v) {\n probability = v;\n }", "public abstract int getRandomDamage();", "private static int getSecretNum(int arg1) {\n Random rand = new Random();\n return rand.nextInt(UPPERBOUND)+1; //make range 1-100\n }", "public void mutate(NeuralPlayer p)\n\t{\n\t\tdouble[] genome = NetworkCODEC.networkToArray(p.net);\n\t\tRandom g = new Random();\n\t\tfor (int i = 0; i< genome.length; i++)\n\t\t{\n\t\t\tif (g.nextDouble() <= mutationPer)\n\t\t\t\tgenome[i] = randomNum(g) + genome[i];\n\t\t}\n\t\tNetworkCODEC.arrayToNetwork(genome, p.net);\n\t}", "private static void mutate(IndividualList offspring) {\n for (Individual individual : offspring) {\n for (byte b : individual.getDNA()) {\n int i = Util.rand((int) Math.ceil(1 / mutaRate));\n if (i == 0) { //1 in x chance to randomly generate 0, therefore 1/x chance to mutate\n b = swap(b);\n }\n }\n individual.setFitness(individual.currentFitness());\n }\n }", "private int rand(int lower, int higher) {\n\t\treturn lower + (int) ((higher - lower + 1) * Math.random());\n\t\t\n\t}", "private int rand(int lower, int upper) {\n return lower + (int)(Math.random() * ((upper - lower) + 1));\n }", "public void setProbMut (float value) {\r\n mut_prob= value;\r\n }", "public static int customRandom(int range)\n {\n \tint random = (int)(Math.random()*10)%range;\n\t\n\treturn random;\n }", "default void setRandomModifier(double value, int duration){\n Random random = new Random();\n Modifier.ModifierType[] modifierTypes = Modifier.ModifierType.values();\n Modifier.ModifierType randomType = modifierTypes[random.nextInt(modifierTypes.length)];\n Modifier randomModifier = new Modifier(randomType, value, duration);\n this.setModifier(randomModifier);\n }", "public static double random(double input){\n\t\treturn Math.random()*input;\n\t}", "private double getRandom() {\n return 2*Math.random() - 1;\n }", "public void generateNewSecret() {\r\n \r\n //Get Random Number With Correct Digits\r\n int intRand = randomNumberGenerator.nextInt((int)(Math.pow(10, numDigits) - Math.pow(10, numDigits - 1))) + (int)Math.pow(10, numDigits - 1);\r\n \r\n //Set To String\r\n String strRand = String.valueOf(intRand);\r\n \r\n //Set Value\r\n secretNumber = convertNumToDigitArray(strRand);\r\n \r\n }", "Multiplication createRandomMultiplication();", "Multiplication createRandomMultiplication();", "private int randomNum() {\r\n\t return((int)(Math.random() * 100));\r\n\t }", "public DynamicPart applyRandomMultiplier(float applyRandomMultiplier) {\n this.applyRandomMultiplier = applyRandomMultiplier;\n return this;\n }", "public void mutate() {\n\t\tsynchronized (this) {\n\t\t\tRandom rand = new Random();\n\t\t\tint mutate = rand.nextInt(4);\n\t\t\twhile (mutate == 0) {\n\t\t\t\tmutateHelper();\n\t\t\t\tmutate = rand.nextInt(4);\n\t\t\t}\n\t\t}\n\t}", "private void random() {\n\n\t}", "public void rollRandom() {\n\t\tthis.strength = randomWithRange();\r\n\t\tthis.wisdom = randomWithRange();\r\n\t\tthis.dexterity = randomWithRange();\r\n\t\tthis.constitution = randomWithRange();\r\n\t\tthis.intelligence = randomWithRange();\r\n\t\tthis.charisma = randomWithRange();\r\n\t}", "int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }", "abstract double rightProbability();", "public final void rand() {\n\t\tpush(randomNumberGenerator.nextDouble());\n\t}", "public void randomChange() {\n\t\tif (Math.random() < .5) {\n\t\t\tthis.setOn(true);\n\t\t} else {\n\t\t\tthis.setOn(false);\n\t\t}\n\t}", "void move()\n {\n Random rand = new Random();\n int moveOrNot = rand.nextInt(2);//50% chance\n if(moveOrNot == 1)\n super.move();\n }", "public void setBase(double base) {\n\t\tthis.base = base;\n\t}", "public abstract void initiateRandomCells(double probabilityForEachCell);", "private char getSampledBaseForPosition(int pos) {\n double[] freq=pwm[pos];\n double chosen=Math.random();\n if (chosen==0) chosen=1.0; // a value of 0 is not allowed here but a value of 1 is\n double sum=0;\n for (int i=0;i<freq.length;i++) {\n sum+=freq[i];\n if (chosen<=sum) return bases[i];\n }\n return 'N'; // this should not happen! (unless all bases have frequency=0)\n }", "public static double sample(double a, double b, Random random) {\n assert (b > 0.0);\n return a - b * Math.log(random.nextDouble());\n }", "public static double random() {\r\n return uniform();\r\n }", "public static void main(String[] args) {\n\r\n\t\tRandom rr=new Random();\r\n\t\t\r\n\t\tSystem.out.println(Math.random());//[0,1)\r\n\t\t \r\n\t\t// 第一种情况 int(强转之后最终的值一定是0)\r\n\t\t// 第二种情况 int(强转之后将小数点舍去 1-5)\r\n\t\tSystem.out.println((int)Math.random()*5);//0.99*5永远到不了5\r\n\t\tSystem.out.println((int)(Math.random()*5+1));//[1,5.)\r\n\t\t\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\t\r\n\t\tfor(int i=0;i<=20;i++){\r\n\t\t\tSystem.out.print(i%7+\"-\");\r\n\t\t\t\r\n\t\t}\r\n\t\t//1-M的随机产生\r\n\t\t//(int)(Math.random()*M+1)\r\n\t\t\r\n\t\t\r\n\t\t//产生0 1的概率不同 Math.random()<p?0:1\r\n\t\tSystem.out.println(\"----\"+rr.rand01p());\r\n\t\tSystem.out.println(\"----\"+rr.rand01());\r\n\t\tfor(int i=0;i<=11;i++){\r\n\t\t\tSystem.out.print(i%6+\"-\");\r\n\t\t \t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(rr.rand106());\r\n\t}", "public void setToRandomValue(RandomGenerator a_numberGenerator) {\n // maps the randomly determined value to the current bounds.\n // ---------------------------------------------------------\n setAllele(new Float( (m_upperBound - m_lowerBound) *\n a_numberGenerator.nextFloat() + m_lowerBound));\n }", "Chromosome getRandom();", "private int randomWeight()\n {\n return dice.nextInt(1000000);\n }", "private int[] mutateChild(int[] child) {\n println(\"mutateChild()\", 1);\n int first = (int)(Math.random() * num_shipping_points);\n int second = (int)(Math.random() * num_shipping_points);\n //make sure first and second are different\n while(first == second) {\n second = (int)(Math.random() * num_shipping_points);\n }\n int temp = child[first];\n child[first] = child[second];\n child[second] = temp;\n \n return child;\n }", "private int newSpeed() {\n //makes a random speed for the ball in (-50,-15)U(15,50)\n int n = r.nextInt(71) - 35;\n if (n < 0) {\n n = n - 15;\n } else {\n n = n + 15;\n }\n return n;\n }", "private double getRandomNumber(){\n double rand = Math.random();//produce a number between 0 and 1\n rand = rand - 0.5;\n return rand;\n }", "private static int newSecretNumber(int min, int max)\n {\n Random rnd = new Random();\n return rnd.nextInt((max + 1 - min) + min);\n }", "public static void randomInit(int r) { }", "public static int randomanint(int a, int b, int semilla){ \n Random rnd = new Random(semilla);\n int rndInd = (int)(b + ( a - b ) * rnd.nextDouble());\n return rndInd;\n }", "@Override\n\tpublic void setToRandomValue(RandomGenerator a_numberGenerator) {\n\n\t}", "public static double uniform() {\r\n return random.nextDouble();\r\n }", "public static double random()\n {\n return _prng2.nextDouble();\n }", "RandomnessSource copy();", "public static double randomadec(int a, int b, int semilla){ \n Random r = new Random(semilla);\n Double ri = b + ( a - b ) * r.nextDouble(); \n return ri;\n }", "public void randomWalk(){\r\n int newAngle = (int) ( (double) Math.random() * 360) ;\r\n\r\n super.xVelocity = (velocity * Math.cos(newAngle * Math.PI/180));\r\n super.yVelocity = (velocity * Math.cos(newAngle * Math.PI/180));\r\n }", "@Override\n public int quantityDroppedWithBonus(int par1, Random par2Random)\n {\n return 1 + par2Random.nextInt(par1 * 2 + 1);\n }", "public static Double[] mutate(Double[] genotype) {\n\t\tRandom random = new Random();\n\t\tint position = random.nextInt(variableNum);\n\t\tgenotype[position]+=((Math.random()-0.5)*mutateVal);\n\t\tif(genotype[position] > maxValue) genotype[position] = maxValue;\n\t\tif(genotype[position] < minValue) genotype[position] = minValue;\n\t\treturn genotype;\n\t}", "public static int getRandomBalance(){\n return rand.nextInt(1000000);\n }", "public interface Random {\n /**\n * @return positive random value below q\n */\n BigInteger nextRandom(BigInteger q);\n }", "@Override\r\n\tpublic void setProbability(double probability) {\n\t\tthis.probability = probability;\r\n\t}", "@Override\r\n\tpublic void setNextProbability(double probability) {\n\t\tthis.nextProbability = probability;\r\n\t}", "public void SetRandom(boolean random);", "@Override\n public void run() {\n if (random.nextInt(10) == 0)\n addPowerUp(random.nextInt(256));\n }", "int getRandom(int max);", "public static void setMutationProbability(double value) { mutationProbability = value; }", "private int random(int from, int to) {\n return from + (int) (Math.random() * (to - from + 1));\n }", "public static double uniform() {\n return random.nextDouble();\n }", "public int getRandom(int bound) {\n return ThreadLocalRandom.current().nextInt(bound);\n }", "public void setRandomValues(float avg, float distr) {\n\t\tfor(int i = 0; i < size; i++)\n\t\t\tvector[i] = avg+MathUtils.randomTriangular()*distr;\n\t}", "@Override\n public void setExperiencia(){\n experiencia1=Math.random()*50*nivel;\n experiencia=experiencia+experiencia1;\n subida();\n }", "public void jitter() {\n // jitter +- 20% of the value\n double amount = 0.20;\n double change = 1.0 - amount + (Evolve.getRandomNumber() * amount * 2); \n value *= change;\n }", "int random(int m)\n {\n return (int) (1 + Math.random()%m);\n }", "public void setPoistumisaika(double poistumisaika) {\n\t\tthis.poistumisaika = poistumisaika + ThreadLocalRandom.current().nextDouble(1, 10);\n\t}", "public static final BigInteger generateRandomNumber(int bitLength, Random random)\r\n\t{\r\n\t\tBigInteger base = ElGamalKeyParameters.TWO.pow(bitLength-1);\r\n\t\tBigInteger r = new BigInteger(bitLength-1, random); //random value in [0, 2^(bitLength-1)[ \r\n\t\treturn base.add(r);\r\n\t}", "public BernoulliDistribution(double p){\n\t\tsuper(1, p);\n\t}", "void compute() {\n\n if (random.nextBoolean()) {\n value = value + random.nextInt(variation);\n ask = value + random.nextInt(variation / 2);\n bid = value + random.nextInt(variation / 2);\n } else {\n value = value - random.nextInt(variation);\n ask = value - random.nextInt(variation / 2);\n bid = value - random.nextInt(variation / 2);\n }\n\n if (value <= 0) {\n value = 1.0;\n }\n if (ask <= 0) {\n ask = 1.0;\n }\n if (bid <= 0) {\n bid = 1.0;\n }\n\n if (random.nextBoolean()) {\n // Adjust share\n int shareVariation = random.nextInt(100);\n if (shareVariation > 0 && share + shareVariation < stocks) {\n share += shareVariation;\n } else if (shareVariation < 0 && share + shareVariation > 0) {\n share += shareVariation;\n }\n }\n }", "public static double random(double a, double b){\n\t\tdouble min = b, max = a;\n\t\tif (a < b){\n\t\t\tmin = a;\n\t\t\tmax = b;\n\t\t}\n\t\treturn min + random(max - min);\n\t}", "private void mutate(Chromosome c){\n for(double[] gene:c.getGeneData()){\n for(int i=0; i<gene.length; i++){\n if(Math.random()<mutationRate){\n //Mutate the data\n gene[i] += (Math.random()-Math.random())*maxPerturbation;\n }\n }\n }\n }", "void setExtremeSpikeProbability(double p);", "public void roll(){\n currentValue = rand.nextInt(6)+1;\n }", "public void changeToBaseOne() {\r\n\t\tthis.numberBase = 1;\r\n\t}", "private static BigInteger generateAFactor(Random randomSeed, BigInteger p, BigInteger q) {\n long time = System.nanoTime();\n BigInteger a = null, h = MathUtils.random(p.subtract(BigInteger.ONE), randomSeed);\n int step = 0;\n while ((step++) < MAX_STEPS) {\n a = MathUtils.powModFast(h, p.subtract(BigInteger.ONE).divide(q), p);\n if (a.compareTo(BigInteger.ONE) != 0) {\n LOGGER.info(\n String.format(\n \"Generated a number, took=%dms\\nq=%s\",\n TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - time),\n a.toString(RADIX)\n )\n );\n break;\n }\n h = h.add(BigInteger.ONE);\n }\n return a;\n }", "public static int randomNumberRatio(){\r\n int max = 10;\r\n int min = 1;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }", "private static void mating() {\n\t\tint getRand = 0;\n\t\tint parentA = 0;\n\t\tint parentB = 0;\n\t\tint newIndex1 = 0;\n\t\tint newIndex2 = 0;\n\t\tChromosome newChromo1 = null;\n\t\tChromosome newChromo2 = null;\n\n\t\tfor (int i = 0; i < OFFSPRING_PER_GENERATION; i++) {\n\t\t\tparentA = chooseParent();\n\t\t\t// Test probability of mating.\n\t\t\tgetRand = getRandomNumber(0, 100);\n\t\t\tif (getRand <= MATING_PROBABILITY * 100) {\n\t\t\t\tparentB = chooseParent(parentA);\n\t\t\t\tnewChromo1 = new Chromosome();\n\t\t\t\tnewChromo2 = new Chromosome();\n\t\t\t\tpopulation.add(newChromo1);\n\t\t\t\tnewIndex1 = population.indexOf(newChromo1);\n\t\t\t\tpopulation.add(newChromo2);\n\t\t\t\tnewIndex2 = population.indexOf(newChromo2);\n\n\t\t\t\t// Choose either, or both of these:\n\t\t\t\tpartiallyMappedCrossover(parentA, parentB, newIndex1, newIndex2);\n\t\t\t\t// positionBasedCrossover(parentA, parentB, newIndex1, newIndex2);\n\n\t\t\t\tif (childCount - 1 == nextMutation) {\n\t\t\t\t\texchangeMutation(newIndex1, 1);\n\t\t\t\t} else if (childCount == nextMutation) {\n\t\t\t\t\texchangeMutation(newIndex2, 1);\n\t\t\t\t}\n\n\t\t\t\tpopulation.get(newIndex1).computeConflicts();\n\t\t\t\tpopulation.get(newIndex2).computeConflicts();\n\n\t\t\t\tchildCount += 2;\n\n\t\t\t\t// Schedule next mutation.\n\t\t\t\tif (childCount % (int) Math.round(1.0 / MUTATION_RATE) == 0) {\n\t\t\t\t\tnextMutation = childCount + getRandomNumber(0, (int) Math.round(1.0 / MUTATION_RATE));\n\t\t\t\t}\n\t\t\t}\n\t\t} // i\n\t\treturn;\n\t}" ]
[ "0.5991264", "0.5880356", "0.5833723", "0.5724698", "0.5721356", "0.5650893", "0.560793", "0.5554363", "0.55371135", "0.55323243", "0.5528489", "0.5525791", "0.5508436", "0.5501425", "0.5499583", "0.5485345", "0.54806244", "0.5476071", "0.547198", "0.5454653", "0.54276955", "0.5423724", "0.54201126", "0.5418521", "0.53896093", "0.538955", "0.5386059", "0.5371263", "0.5371093", "0.5363771", "0.535746", "0.5354834", "0.5353147", "0.5324859", "0.53244257", "0.5316859", "0.5310395", "0.528068", "0.5278805", "0.5278805", "0.5270988", "0.52709085", "0.52635646", "0.52625203", "0.5259667", "0.5257576", "0.52566594", "0.52536094", "0.52442473", "0.52436227", "0.5240848", "0.5238951", "0.5236163", "0.5227301", "0.522707", "0.5223511", "0.52195084", "0.521835", "0.52122176", "0.520894", "0.5200575", "0.5195374", "0.5193557", "0.5190612", "0.5189282", "0.5179631", "0.5173943", "0.5172809", "0.51702094", "0.5169605", "0.51692814", "0.5167081", "0.5165628", "0.5160824", "0.5156264", "0.5152938", "0.5149054", "0.51459223", "0.5130814", "0.51189435", "0.5118488", "0.5118362", "0.510454", "0.50956696", "0.5095323", "0.5094518", "0.5083439", "0.5080344", "0.50750154", "0.50732046", "0.5067326", "0.5061751", "0.50592065", "0.5055613", "0.5054497", "0.5052844", "0.5048306", "0.50421023", "0.5039435", "0.50228053" ]
0.76701105
0
/ Converts integer in [0, 3] to the corresponding element of [A, C, G, T]
static char intToBase(int val) { if(val == 0) { return 'A'; } if(val == 1) { return 'C'; } if(val == 2) { return 'G'; } return 'T'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Integer> singleNumberIII(int[] A) {\n List<Integer> result = new ArrayList<>();\n if (A == null || A.length == 0) {\n return result;\n }\n\n int oxr = 0;\n\n for (int a : A) {\n oxr ^= a;\n }\n\n //2. 查看OXR 1的位置\n int indexOfOne = getIndexOfOne(oxr);\n\n //3. 根据indexOfOne的位置进行分组\n int ra = 0, rb = 0;\n\n for (int a : A) {\n\n if (isBit1(a, indexOfOne)) {\n ra ^= a;\n } else {\n rb ^= a;\n }\n\n }\n\n result.add(ra);\n result.add(rb);\n return result;\n }", "protected int[] transformGenElementToList(GenElement pGenElement) throws Exception {\r\n\t\tint[] vRet = new int[3];\r\n\t\t\r\n\t\tif (pGenElement != null) {\r\n\t\t\tvRet[0] = pGenElement.getNumber();\r\n\t\t\tvRet[1] = pGenElement.getSide();\r\n\t\t\tvRet[2] = pGenElement.getOffset();\r\n\t\t}else throw new Exception(\"04; tGEtL,Edi\");\r\n\t\t\r\n\t\treturn vRet;\r\n\t}", "List<C45111a> mo107674a(Integer num);", "int[] getGivenByOrder();", "int[] getDigits();", "private static int[] getArrayFromInteger(int i1) {\n\t\tString str = String.valueOf(i1);\r\n\t\tint length = str.length();\r\n\t\tint digits[] = new int[length];\r\n\t\tfor (int i = 0; i < length; i++) {\r\n\t\t\t// Converting char to int.\r\n\t\t\tdigits[i] = str.charAt(i) - 48;\r\n\t\t}\r\n\t\treturn digits;\r\n\t}", "List<C45111a> mo107675a(Integer num, Integer num2);", "List<C1111j> mo5869a(int i);", "public void encodeInt() {\n charToInt = new int[uniqueChars.size()];\n Iterator<Character> mover = uniqueChars.iterator();\n for(int b = 0; b < uniqueChars.size(); b++) {\n charToInt[b] = mover.next();\n }\n System.out.print(\"\\nEncoding integer value to its ASCII characters:\\n\");\n intToChars = new char[uniqueChars.size()];\n for(int c = 0; c < uniqueChars.size(); c++) {\n intToChars[c] = (char)charToInt[c];\n charToInt[c] = charToInt[c] / charToInt[c] + c - 1;\n System.out.print(charToInt[c] + \" : \" + intToChars[c] + \", \");\n }\n\n }", "public void coFromInt(int coord) {\n int twist = 0;\n for(int j = 0; j < 7; j ++) {\n co[6 - j] = coord % 3;\n twist = (twist + coord % 3) % 3;\n coord /= 3;\n }\n co[7] = (3 - twist) % 3;\n }", "public static int convert(char c) {\n switch (c) {\n case 'A': return 0;\n case 'T': return 1;\n case 'G': return 2;\n case 'C': return 3;\n default: return 4;\n }\n }", "int[] toArray();", "private static int[] fix23(int[] arr) {\n int[] output = new int[3];\n for (int i = 0; i < arr.length-1; i++) {\n if (arr[i]==2 && arr[i+1]==3) {\n arr[i+1]=0;\n }\n\n }\n return arr;\n }", "public static void convert (int arr[])\r\n\t{\n\t\tArrayList l = new ArrayList ();\r\n\t\t//loop and add element \r\n\t\tfor (int i = 0 ;i<arr.length ; i++) \r\n\t\t{\r\n\t\t\t// index element\r\n\t\t\t// | |\r\n\t\t\tl.add( i , arr[i] );\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// ouput l element \r\n\t\tSystem.out.println(l);\r\n\t}", "private static int[] toIntArray(List<Integer> shorts) {\n int[] array = new int[shorts.size()];\n for (int i = 0; i < shorts.size(); i++)\n array[i] = shorts.get(i).shortValue();\n return array;\n }", "public int [] covertirInt(String [] a) {\n\t\n\t\n\t int [] temporal = new int [a.length-1];\n\t\n\t\n\t for (int i =0; i<temporal.length;i++) {\n\t \n\t\t temporal[i]=Integer.parseInt(a[i+1]);\n\t }\n \n \n\t return temporal;\n\t\n}", "public int[] convert(){\r\n int[] arreglo = new int[cedula.length()];\r\n for(int i=0; i<cedula.length(); i++){\r\n // convierte los char en int\r\n arreglo[i] = Character.getNumericValue(cedula.charAt(i));\r\n }\r\n return arreglo;\r\n }", "private int toLeds(int i) {\n\n if (i == 0)\n return zero;\n else if (i == 1)\n return one;\n else if (i == 2)\n return two;\n else if (i == 3)\n return three;\n else if (i == 4)\n return four;\n else if (i == 5)\n return five;\n else if (i == 6)\n return six;\n else if (i == 7)\n return seven;\n else if (i == 8)\n return eight;\n else\n return nine;\n }", "public static int[] getThreeOfAKind(Integer[] cards) {\n int[] result = new int[2];\n if (cards[1] != cards[0]) {\n result[0] = cards[1];\n result[1] = cards[0];\n } else {\n result[0] = cards[0];\n result[1] = cards[3];\n }\n return result;\n }", "public static int[] convertIntegersToArray(List<Integer> integers){\n \n \tint[] newArray = new int[integers.size()]; \n \tIterator<Integer> iterator = integers.iterator(); // Declare and create iterator on integers arraylist.\n \n for (int i = 0; i < newArray.length; i++){\n newArray[i] = iterator.next().intValue(); // add elements to newArray \n }\n \n return newArray;\n }", "private int[] swapDigits(int[] arrValue) {\n // swap first with third\n int tempValue = arrValue[0];\n arrValue[0] = arrValue[2];\n arrValue[2] = tempValue;\n\n // swap second with fourth\n tempValue = arrValue[1];\n arrValue[1] = arrValue[3];\n arrValue[3] = tempValue;\n\n return arrValue;\n }", "private int convertX(int i) {\n return i % width;\n }", "public int[] threeLuckyNumbers() {\n\t\tint[] intArray = new int[3];\n\t\tRandom rand = new Random(); \n\t\tint rand_int1 = rand.nextInt(101);\n\t\tint rand_int2 = rand.nextInt(101);\n\t\tint rand_int3 = rand.nextInt(101);\n\t\tintArray[0] = rand_int1;\n\t\tintArray[1] = rand_int2;\n\t\tintArray[2] = rand_int3;\n\t\t\n\t\t\n\t\t\n\t\treturn intArray;\n\t}", "private List<Integer> toList(int[] array) {\n List<Integer> list = new LinkedList<Integer>();\n for (int item : array) {\n list.add(item);\n }\n return list;\n }", "public int singleNumber_k5_p3(int[] A) {\n int x1 = 0, x2 = 0, x3 = 0, mask = 0;\n\n for (int i : A) {\n x3 ^= x2 & x1 & i;\n x2 ^= x1 & i;\n x1 ^= i;\n mask = ~(x1 & ~x2 & x3);\n x3 &= mask;\n x2 &= mask;\n x1 &= mask;\n }\n\n return x1; // p = 3, in binary form p = '011', then p1 = p2 = 1, so we can\n // return either x1 or x2. But if p = 4, in binary form p = '100',\n // only p3 = 1, which implies we can only return x3.\n }", "static private int makeInt(int b3, int b2, int b1, int b0) {\n return (((b3 ) << 24) |\n ((b2 & 0xff) << 16) |\n ((b1 & 0xff) << 8) |\n ((b0 & 0xff) ));\n }", "public int singleNumber_k3_p1(int[] A) {\n int x1 = 0, x2 = 0, mask = 0;\n\n for (int i : A) {\n x2 ^= x1 & i;\n x1 ^= i;\n mask = ~(x1 & x2);\n x2 &= mask;\n x1 &= mask;\n }\n\n return x1; // p = 1, in binary form p = '01', then p1 = 1, so we should return x1;\n // if p = 2, in binary form p = '10', then p2 = 1, so we should return x2.\n }", "public int[] singleNumberIII(int[] nums) {\n int bit = 0;\n for (int i : nums) {\n bit ^= i;\n }\n bit &= -bit;\n int[] ans = new int[2];\n for (int i : nums) {\n if ((i & bit) == 0) ans[0] ^= i;\n else ans[1] ^= i;\n }\n return ans;\n }", "public static void intercambiar(int []Grado1, int ii, int jj){\nint aux=Grado1[ii];\nGrado1[ii]= Grado1[jj];\nGrado1[jj]=aux;\n}", "public int[] getIntList();", "private int[] arrayListToIntList(ArrayList<Integer> arrayList){\n int[] list=new int[arrayList.size()];\n for(Integer integer:arrayList){\n list[arrayList.indexOf(integer)]=integer;\n }\n return list;\n }", "int[] mo12208a(int i);", "public static List<Integer> addToArrayForm(int[] A, int K) {\n\t\tList<Integer> res = new LinkedList<>();\n\t\t\n\t\tfor(int i = A.length - 1; i >= 0; i--) {\n\t\t\tres.add(0, (A[i] + K) % 10);\n\t\t\tK = (A[i] + K) / 10;\n\t\t}\n\t\twhile(K > 0) {\n\t\t\tres.add(0, K % 10);\n\t\t\tK /= 10;\n\t\t}\n\t\t\n\t\treturn res;\n\t}", "int[] getInts();", "private static void arrCHS2LBA(int[][] arr) {\n\t\tfor(int[] chs : arr){\n\t\t\tchs[3] = 255 * 63 * chs[0] + 63 * chs[1] + chs[2] - 1;\n\t\t\tchs[7] = 255 * 63 * chs[4] + 63 * chs[5] + chs[6] - 1 ;\n\t\t}\n\t}", "private String getByAsc(int index) {\n int asc = 0;\n for (int i = 7; i >= 0; i--) {\n int tempInt = this.code[++index] - 48;\n asc += tempInt * Math.pow(2, i);\n }\n char ret = (char) asc;\n return String.valueOf(ret);\n }", "private int m14712a(int i, int i2, int i3) {\n int i4 = 0;\n int i5 = 0;\n int i6 = 0;\n int i7 = 0;\n int i8 = 0;\n for (int i9 = i; i9 < this.f10966u + i; i9++) {\n byte[] bArr = this.f10957l;\n if (i9 >= bArr.length || i9 >= i2) {\n break;\n }\n int i10 = this.f10946a[bArr[i9] & 255];\n if (i10 != 0) {\n i4 += (i10 >> 24) & 255;\n i5 += (i10 >> 16) & 255;\n i6 += (i10 >> 8) & 255;\n i7 += i10 & 255;\n i8++;\n }\n }\n int i11 = i + i3;\n for (int i12 = i11; i12 < this.f10966u + i11; i12++) {\n byte[] bArr2 = this.f10957l;\n if (i12 >= bArr2.length || i12 >= i2) {\n break;\n }\n int i13 = this.f10946a[bArr2[i12] & 255];\n if (i13 != 0) {\n i4 += (i13 >> 24) & 255;\n i5 += (i13 >> 16) & 255;\n i6 += (i13 >> 8) & 255;\n i7 += i13 & 255;\n i8++;\n }\n }\n if (i8 == 0) {\n return 0;\n }\n return ((i4 / i8) << 24) | ((i5 / i8) << 16) | ((i6 / i8) << 8) | (i7 / i8);\n }", "private static char[] initNum() {\n\t\tchar[] values = {'0', '1', '2', '3', '4', '5',\n\t\t\t\t'6', '7', '8', '9'};\n\t\tchar[] answer = new char[4];\n\t\t\n\t\tint countReady = 0;\n\t\t\n\t\twhile(countReady != 4) {\n\t\t\tint tempChar = rndChar();\n\t\t\tif(values[tempChar] != 'x') {\n\t\t\t\tanswer[countReady] = values[tempChar];\n\t\t\t\tvalues[tempChar] = 'x';\n\t\t\t\tcountReady++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn answer;\n\t}", "private Pair<Integer, Integer> trans(int i) {\r\n\t\tif (i == 0) {\r\n\t\t\treturn new Pair(0, -1);\r\n\t\t} else if (i == 1) {\r\n\t\t\treturn new Pair(1, 0);\r\n\t\t} else if (i == 2) {\r\n\t\t\treturn new Pair(0, 1);\r\n\t\t} else {\r\n\t\t\treturn new Pair(-1, 0);\r\n\t\t}\r\n\t}", "protected static ArrayList<String> GenNumber() {\n\n ArrayList<String> initialList = new ArrayList<>();\n\n initialList.add(\"1\"); //Add element\n initialList.add(\"2\");\n initialList.add(\"3\");\n initialList.add(\"4\");\n initialList.add(\"5\");\n initialList.add(\"6\");\n initialList.add(\"7\");\n initialList.add(\"8\");\n initialList.add(\"9\");\n\n Collections.shuffle(initialList); //Random the position\n\n return initialList;\n }", "public abstract int[] toIntArray();", "static List<Integer> arrayToList(int[] array) {\r\n List<Integer> list = new ArrayList<Integer>();\r\n for(int i : array)\r\n list.add(i);\r\n return list;\r\n }", "public String getChoice3(int a){\n String choice2 = choices[a][2];\n return choice2;\n }", "public int ItoZ(int i){\n return i%zDim;\n }", "static int baseToInt(char c)\n\t{\n\t\tif(c == 'a' || c == 'A')\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tif(c == 'c' || c == 'C')\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\tif(c == 'g' || c == 'G')\n\t\t{\n\t\t\treturn 2;\n\t\t}\n\t\treturn 3;\n\t}", "void mo22044oA(int i);", "public static int convert3(String a)\r\n {\r\n HashMap<String,Integer> map = new HashMap<String,Integer>();\r\n \r\n map.put(\"ORADEA\", 0);\r\n\t\tmap.put(\"SIBIU\", 1);\r\n\t\tmap.put(\"ZERIND\", 2);\r\n\t\tmap.put(\"ARAD\", 3);\r\n\t\tmap.put(\"TIMISOARA\", 4);\r\n\t\tmap.put(\"LUGOJ\", 5);\r\n\t\tmap.put(\"MEHADIA\", 6);\r\n\t\tmap.put(\"DROBETA\", 7);\r\n\t\tmap.put(\"FAGARAS\", 8);\r\n\t\tmap.put( \"PITESTI\", 9);\r\n\t\tmap.put(\"CRAIOVA\", 10);\r\n\t\tmap.put(\"Giugiu\", 11);\r\n\t\tmap.put(\"Neamt\", 12);\r\n\t\tmap.put(\"Pitesti\", 13);\r\n\t\tmap.put(\"Rimnicu_Vikea\", 14);\r\n\t\tmap.put(\"Urziceni\", 15);\r\n\t\tmap.put(\"Valsui\", 16);\r\n\t\tmap.put( \"BUCHAREST\", 17);\r\n\t\tmap.put(\"LASI\",18);\r\n\t\tmap.put(\"EFORIE\", 19);\r\n\t\tmap.put(\"HIRSOVA\",20);\r\n \r\n return(map.get(a));\r\n \r\n }", "int main()\n {\n int tri[][] = {{1, 0, 0},\n {4, 8, 0},\n {1, 5, 3}};\n return 0;\n }", "public ArrayList<Integer> toIntMultipleAnswer(String answer) {\n String[] list = answer.split(\"\");\n ArrayList<Integer> multipleChoices = new ArrayList();\n for (String a : list) {\n if (a.equals(\"A\")) {\n multipleChoices.add(1);\n } else if (a.equals(\"B\")) {\n multipleChoices.add(2);\n } else if (a.equals(\"C\")) {\n multipleChoices.add(3);\n } else {\n multipleChoices.add(4);\n }\n }\n return multipleChoices;\n }", "private String cacViTri(int i) {\n\t\tString gio = \"\";\n\t\tfor (int j = 0; j < arrInt.length; j++) {\n\t\t\tif (this.arrInt[j] == i) {\n\t\t\t\tgio += j + \" \";\n\t\t\t}\n\t\t}\n\t\treturn gio;\n\t}", "void m15860a(int i, int i2, int i3);", "private static int base64toInt(char c, byte[] alphaToInt) {\r\n int result = alphaToInt[c];\r\n if (result < 0)\r\n throw new IllegalArgumentException(\"Illegal character \" + c);\r\n return result;\r\n }", "private static int base64toInt(char c, byte[] alphaToInt) {\n int result = alphaToInt[c];\n if (result < 0) {\n throw new IllegalArgumentException(\"Illegal character \" + c);\n }\n return result;\n }", "public void arrayToState(int[] gX){\r\n int i = 0;\r\n int j = 0;\r\n int count = 0;\r\n while(count < gX.length){\r\n this.setState(i, j, gX[count]);\r\n count++;\r\n if(j == 3){\r\n i++;\r\n j = 0;\r\n }\r\n else\r\n j++;\r\n }\r\n }", "public String get_integer_part();", "List<C1111j> mo5873b();", "public List<List<Integer>> threeSum(int[] nums) {\n\n if (nums.length < 3) {\n return new ArrayList<>();\n }\n\n Arrays.sort(nums);\n\n // ex. [-1, 0, 1, 2,-1,-4] =>\n // [-4,-1,-1, 0, 1, 2]\n\n // ex. [ 3, 0,-2,-1, 1, 2] =>\n // [-2,-1, 0, 1, 2, 3]\n\n // ex. [-1, 0, 1, 2,-1,-4] =>\n // [-4,-1,-1, 0, 1, 2]\n\n List<List<Integer>> list = new ArrayList<List<Integer>>();\n\n // Loop throught the array\n for (int i = 0; i < nums.length - 2; i++) {\n\n if (i > 0 && nums[i] == nums[i - 1]) {\n continue;\n }\n\n // Index of first number\n int first = i;\n\n // Indices of second and third numbers\n int left = i + 1;\n int right = nums.length - 1;\n\n // Find nums[left] and nums[right] that add up to -firstNum\n // (Implies that the 3 numbers add up to 0)\n while (left < right) {\n int leftNum = nums[left];\n int rightNum = nums[right];\n int firstNumComplement = -nums[first];\n if (nums[left] + nums[right] == firstNumComplement) {\n List<Integer> triplet = new ArrayList<Integer>(3);\n triplet.add(nums[first]);\n triplet.add(nums[left]);\n triplet.add(nums[right]);\n list.add(triplet);\n left++;\n right--;\n while (left < right && nums[left] == leftNum) {\n left++;\n }\n while (left < right && nums[right] == rightNum) {\n right--;\n }\n } else if (nums[left] + nums[right] > firstNumComplement) {\n right--;\n } else {\n left++;\n }\n }\n }\n\n return list;\n }", "int processThirdShort(int index) {\n\t\t// process the third Short integer in the Key Entry Set\n\t\treturn (int) keyEntrySet.get(index + 2);\n\t}", "@Test\n public void basicNumberSerializerTest() {\n int[] input = {0, 1, 2, 3};\n\n // Want to map 0 -> \"d\", 1 -> \"c\", 2 -> \"b\", 3 -> \"a\"\n char[] alphabet = {'d', 'c', 'b', 'a'};\n\n String expectedOutput = \"dcba\";\n assertEquals(expectedOutput,\n DigitsToStringConverter.convertDigitsToString(\n input, 4, alphabet));\n }", "private int rowCombo2Key(int[] combo) {\n int key = 0;\n for (int i : combo) {\n key = (key << 3) | i;\n }\n return key;\n }", "public static int asInt(char c) {\n int temp = 0;\n switch (c) {\n case '2':\n temp = 2;\n break;\n case '3':\n temp = 3;\n break;\n case '4':\n temp = 4;\n break;\n case '5':\n temp = 5;\n break;\n case '6':\n temp = 6;\n break;\n case '7':\n temp = 7;\n break;\n case '8':\n temp = 8;\n break;\n case '9':\n temp = 9;\n break;\n case 'T':\n temp = 10;\n break;\n case 'J':\n temp = 11;\n break;\n case 'Q':\n temp = 12;\n break;\n case 'K':\n temp = 13;\n break;\n case 'A':\n temp = 14;\n break;\n\n default:\n throw new AssertionFailedError(\n \"Invalid Character \" + c + \" in card number column: Expected 1-9,J,Q,K,A\");\n\n }\n return temp;\n }", "@Override\r\n\tpublic int challengeThree(int[] arr) {\n\t\treturn 0;\r\n\t}", "private static int m3066a(int i, int i2, int i3, int i4, int i5) {\n if (i5 == 0) {\n return 0;\n }\n return (((i * NormalGiftView.ALPHA_255) * i2) + ((i3 * i4) * (255 - i2))) / (i5 * NormalGiftView.ALPHA_255);\n }", "public int ItoX(int i){\n return i/(yDim*zDim);\n }", "private static long makeQueueElement(int value, int index)\n {\n return index | (((long) value) << 32);\n }", "private String[] getCrossProduct(String digits) {\n\t\tString finalDigit[] = dict[Integer.parseInt(digits.charAt(0)+\"\")];\n\t\tString nextDigit[];\n\t\tString[] str ;\n\t\tint idx;\n\t\t\n\t\tfor(int k = 1; k < digits.length(); k++) {\n\t\t\tnextDigit= dict[Integer.parseInt(digits.charAt(k)+\"\")];\n\t\t\tidx = 0;\n\t\t\tstr = new String[finalDigit.length* nextDigit.length];\n\t\t\tfor(int i = 0; i < finalDigit.length; i++) {\n\t\t\t\tfor(int j = 0; j < nextDigit.length; j++){\n\t\t\t\t\tstr[idx++] = finalDigit[i] + nextDigit[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinalDigit = str;\n\t\t\t\n\t\t}\n\t\treturn finalDigit;\n\t}", "public static void convert(int[] A){\r\n\t\t// last internal node\r\n\t\tint i = (A.length - 2)/2;\r\n\t\twhile(i>=0){\r\n\t\t\tHeapify(A , i-- ,A.length);\r\n\t\t}\r\n\t}", "public static int[] getindex(int[] values) {\n\t \n\t \n\t \n\t int[] b = {64,128,192,256};\n\t \n\t int redindex = 0;\n\t int greenindex=0;\n\t int blueindex=0;\n\t \n\t for(int i=0; i<indexlevel8.length;i++) {\n\t if(values[0] <= indexlevel8[i]) { redindex = i; break;}\n\t }\n\t \n\t for(int i=0; i<indexlevel8.length;i++) {\n\t\t if(values[1] <= indexlevel8[i]) { greenindex = i; break;}\n\t\t }\n\t \n\t for(int i=0; i<b.length;i++) {\n\t\t if(values[2] <= b[i]) { blueindex = i; break;}\n\t }\n\t \n\t values[0] = redindex*32+16;\n\t values[1] = greenindex*32+16;\n\t values[2] = blueindex*64+32;\n\t \n\t \n\t return values; // the values of the lookup table for 8bit scale\n }", "public char intToLetter(int val){\n\t\t\t// val is assumed to be an integer < MAXUINT so its unsigned value is the same\n\t\t\t// as the signed representation so we don't need to do any conversion.\n\t\t\treturn ALPHABET[val];\n\t\t}", "public int translateNum(int num) {\n String s = String.valueOf(num);\n int a=1,b=1;\n for(int i=s.length()-2; i>-1; i--){\n String tmp = s.substring(i, i+2);\n int c= tmp.compareTo(\"10\") >= 0 && tmp.compareTo(\"25\") <= 0 ? a+b:a;\n b=a;\n a=c;\n }\n return a;\n }", "public List<List<Integer>> threeSum(int[] nums) {\n HashMap<Integer, Integer> new_nums = new HashMap<Integer, Integer>();\n for (int i = 0; i < nums.length; i++) {\n new_nums.put(nums[i], i);\n }\n \n // find triplets\n HashSet<List<Integer>> product = new HashSet<List<Integer>>();\n for (int i = 0; i < nums.length; i++) {\n int nums_i = nums[i];\n for (int j = i + 1; j < nums.length; j++) {\n int target = 0 - (nums_i + nums[j]);\n int index = new_nums.get(target) != null ? new_nums.get(target) : -1;\n if (index != -1 && index > j) {\n List<Integer> triplet = new ArrayList<Integer>();\n int[] list = findOrder(nums_i, nums[j], target);\n triplet.add(list[0]);\n triplet.add(list[1]);\n triplet.add(list[2]);\n product.add(triplet);\n }\n }\n }\n return new ArrayList<List<Integer>>(product);\n \n }", "private List<Coordinate> getOneSort(int[] ints, List<Coordinate> list) {\n List<Coordinate> temp = new ArrayList<>();\n for (int i : ints) {\n temp.add(list.get(i));\n }\n return temp;\n }", "public void set(int[] ai);", "public int[] numbers();", "public abstract ArrayList<Object> calculateTransform(ArrayList<Integer> arr);", "public static void convert(int [] arr) {\n int[] temp = arr.clone();\n Arrays.sort(temp);\n HashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\n int value = 1;\n for (int e : temp) {\n map.put(e, value++);\n }\n\n for (int i=0; i<arr.length; ++i) {\n arr[i] = map.get(arr[i]);\n }\n }", "public int[] toIntArray(){\n int[] array = new int[getSeq().size()];\n for (int i = 0; i < array.length; i++) {\n char c = Character.toUpperCase(getSeq().get(i));\n array[i] = Sequence.convert(c);\n }\n return array;\n }", "private void intListToArrayList(int[] list, ArrayList<Integer> arrayList){\n for(int integer: list){\n arrayList.add(integer);\n }\n }", "int getAsInt32Color(int a) {\r\n\t\tint r = (int) (x * 255);\r\n\t\tint g = (int) (y * 255);\r\n\t\tint b = (int) (z * 255);\r\n\t\tif (r > 255) {\r\n\t\t\tr = 255;\r\n\t\t}\r\n\t\tif (g > 255) {\r\n\t\t\tg = 255;\r\n\t\t}\r\n\t\tif (b > 255) {\r\n\t\t\tb = 255;\r\n\t\t}\r\n\r\n\t\tif (r < 0) {\r\n\t\t\tr = 0;\r\n\t\t}\r\n\t\tif (g < 0) {\r\n\t\t\tg = 0;\r\n\t\t}\r\n\t\tif (b < 0) {\r\n\t\t\tb = 0;\r\n\t\t}\r\n\r\n\t\treturn (b | g << 8 | r << 16 | a << 24);\r\n\t}", "public static int[] converter(String[] a){\n int size = a.length - 1;\n int[] integers = new int[size];\n for (int i = 0; i < size; i++) {\n integers[i] = Integer.parseInt(a[i+1]);\n }\n return integers;\n }", "public String indexToLetter(int index) {\r\n\t\tif (index == 0)\r\n\t\t\treturn \"a\";\r\n\t\telse if (index == 1)\r\n\t\t\treturn \"b\";\r\n\t\telse if (index == 2)\r\n\t\t\treturn \"c\";\r\n\t\telse if (index == 3)\r\n\t\t\treturn \"d\";\r\n\t\telse if (index == 4)\r\n\t\t\treturn \"e\";\r\n\t\telse if (index == 5)\r\n\t\t\treturn \"f\";\r\n\t\telse if (index == 6)\r\n\t\t\treturn \"g\";\r\n\t\telse if (index == 7)\r\n\t\t\treturn \"h\";\r\n\t\telse if (index == 8)\r\n\t\t\treturn \"i\";\r\n\t\telse if (index == 9)\r\n\t\t\treturn \"j\";\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "List<C1111j> mo5868a();", "protected static int[] convert(byte[] packet) {\n\t\tint[] p = new int[packet.length - 3];\n\t\t\n\t\t// would arrayscopy work here?\n\t\tfor(int i = 2; i < packet.length - 1; i++) {\n\t\t\tp[i - 2] = packet[i] & 0xFF;\n\t\t}\n\t\t\n\t\treturn p;\n\t}", "private static int[] arrangeIntegers(int[] a) {\n\n\t\tint i = 0, j = a.length - 1, k = 0;\n\t\tint[] temp = new int[a.length];\n\n\t\twhile (k<a.length) {\n\t\t\t\n\t\t\tif(a[k]<0)\n\t\t\t{\n\t\t\t\ttemp[i]= a[k];\n\t\t\t\ti++;\n\t\t\t\tk++;\n\t\t\t}\n\t\t\t\n\t\t\telse if(a[k]>0)\n\t\t\t{\n\t\t\t\ttemp[j]= a[k];\n\t\t\t\tj--;\n\t\t\t\tk++;\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tk++;\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tif(i!=j)\n\t\t{\n\t\t\twhile(i!=j)\n\t\t\t{\n\t\t\t\ttemp[i]=0;\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\n\t\treturn temp;\n\t}", "void mo9148a(int i, ArrayList<C0889x> arrayList);", "public static List<Integer> replace(List<Integer> list){\n\t\tList<Integer> r= new ArrayList<Integer>();\n\t\tr.add(7);\n\t\tr.add(-4);\n\t\tr.add(0);\n\t\tr.add(7);\n\t\tr.add(7);\n\t\t\n\t\treturn r;\n\t}", "public static ListUtilities arrayToList(int[] array){\n\t\tListUtilities startNode = new ListUtilities();\n\t\tif (array.length != 0){\n\t\t\tstartNode.setInt(array[0]);\n\t\t\tfor (int i = 1; i < array.length; i++){\n\t\t\t\tstartNode.addNum(array[i]);\n\t\t\t}\n\t\t}\n\t\treturn startNode;\n\t}", "public static interface ToInteger<T> {\n /**\n * What integer should we use for sorting purposes for\n * the given item?\n */\n int v(T item);\n }", "private char enumerate(char input, int t) {\n boolean charfound = false;\n char output = 0;\n\n char[] n1 = {'1','2','3','4','5','6'}; //first set of numbers\n char[] n2 = {'3','4','5','6','1','2'}; //second set, if previous value was number\n char[] c = {'A','E','I','O','U','Y'};\n\n for (int i=0;i<c.length;i++) { // go through c and see if match is made, and then change to value in n1 and n2\n if (charfound==false) {\n if (t==1 && input==c[i]) {\n charfound = true;\n output = n1[i];\n }\n if (t==2 &&input==c[i]) {\n charfound = true;\n output = n2[i];\n }\n }\n }\n return output;\n }", "int[] mo56159c();", "int[] translate() {\n int[] ans = new int[6];\n ans[0] = registers[CPU.IF_ID[0]];\n ans[1] = (CPU.IF_ID[4] == 0 ? CPU.IF_ID[3] : registers[CPU.IF_ID[1]]);\n ans[2] = registers[CPU.IF_ID[2]];\n ans[3] = CPU.IF_ID[2];\n ans[4] = CPU.IF_ID[4];\n ans[5] = CPU.IF_ID[3];\n CPU.alu.used = true;\n ufile = false;\n return ans;\n }", "public static String labelIntegerList(List<Integer> nums) {\t\t\n\t\tList<String> strs = nums.stream()\n\t\t\t\t\t\t\t\t.map(i -> i % 2 == 0 ? \"e\" + i : \"o\" + i)\n\t\t\t\t \t\t\t .collect(toList());\n\t\treturn String.join(\",\", strs);\t\t\n\t}", "private char denumerate(char input, int t) {\n boolean charfound = false;\n char output = 0;\n\n char[] n1 = {'1','2','3','4','5','6'};//first set of numbers\n\n char[] n2 = {'3','4','5','6','1','2'};//second set, if previous value was number\n char[] c = {'A','E','I','O','U','Y'};\n\n for (int i=0;i<c.length;i++) { // go through n1 or n2 and see if match is made, and then change to value in c\n if (charfound==false) {\n if (t==1 && input==n1[i]) {\n charfound = true;\n output = c[i];\n }\n if (t==2 &&input==n2[i]) {\n charfound = true;\n output = c[i];\n }\n }\n }\n return output;\n }", "public String convert2(int a)\r\n {\r\n HashMap<Integer, String> map = new HashMap<Integer,String>();\r\n \r\n map.put(0,\"ORADEA\");\r\n\t\tmap.put(1,\"SIBIU\");\r\n\t\tmap.put(2,\"ZERIND\");\r\n\t\tmap.put(3,\"ARAD\");\r\n\t\tmap.put(4,\"TIMISOARA\");\r\n\t\tmap.put(5,\"LUGOJ\");\r\n\t\tmap.put(6,\"MEHADIA\");\r\n\t\tmap.put(7,\"DROBETA\");\r\n\t\tmap.put(8,\"FAGARAS\");\r\n\t\tmap.put(9,\"PITESTI\");\r\n\t\tmap.put(10,\"CRAIOVA\");\r\n\t\tmap.put(11,\"Giugiu\");\r\n\t\tmap.put(12,\"Neamt\");\r\n\t\tmap.put(13,\"Pitesti\");\r\n\t\tmap.put(14,\"Rimnicu_Vikea\");\r\n\t\tmap.put(15,\"Urziceni\");\r\n\t\tmap.put(16,\"Valsui\");\r\n\t\tmap.put(17, \"BUCHAREST\");\r\n\t\tmap.put(18,\"LASI\");\r\n\t\tmap.put(19,\"EFORIE\");\r\n\t\tmap.put(20,\"HIRSOVA\");\r\n \r\n return map.get(a);\r\n }", "static int getValue(char c) {\n\t\tswitch(c) {\n\t\tcase 'A': return 0;\n\t\tcase 'C': return 1;\n\t\tcase 'G': return 2;\n\t\tcase 'T': return 3;\n\t\tdefault: return -1;\n\t\t}\n\t}", "private static int getDigit(ArrayList<Integer> num, int index) {\n return index < num.size() ? num.get(index) : 0;\n }", "private static int[] generateArray(int i, int j) {\n int[] col = new int[j+1];\n for(int k = 0; k <= j; k++)\n {\n col[k] = (i+k)%Algo.x.length;\n } \n return col;\n }", "@Override\n\tpublic int ConvertDigit(byte[][] data, int digitPosition) {\n\t\tint hash = hashDigit(data,digitPosition);\n\t\treturn numbers.getOrDefault(hash,NA);\n\t}", "public abstract int[] getInts(int paramInt1, int paramInt2, int paramInt3, int paramInt4);", "private int matrixRowToGridVal(int i) \n {\n return i % gDim + 1;\n }" ]
[ "0.5643091", "0.55038077", "0.5395798", "0.5190243", "0.5164543", "0.5156837", "0.5153239", "0.5127192", "0.5117741", "0.51004356", "0.50989026", "0.5078068", "0.5074811", "0.5072243", "0.506977", "0.50574476", "0.504451", "0.5039742", "0.50355417", "0.50186723", "0.49862832", "0.4983373", "0.49736804", "0.49209437", "0.4909824", "0.48693144", "0.48675892", "0.48672664", "0.48660642", "0.48539478", "0.48393637", "0.48393568", "0.4837655", "0.48297095", "0.48173356", "0.48108652", "0.4800748", "0.47893927", "0.47873303", "0.47833943", "0.4781941", "0.4778191", "0.4771847", "0.47604287", "0.47581288", "0.47524756", "0.47403556", "0.47370946", "0.47368976", "0.47360474", "0.47272894", "0.47263488", "0.472364", "0.47114837", "0.47104186", "0.46818277", "0.46801174", "0.46785742", "0.46781856", "0.46758884", "0.4673771", "0.46732214", "0.4670917", "0.46704406", "0.46700057", "0.46606463", "0.4655113", "0.46532208", "0.46528664", "0.4646423", "0.4645996", "0.46281147", "0.46236768", "0.46124646", "0.46033427", "0.45997745", "0.4593497", "0.45922232", "0.4586787", "0.45860308", "0.4583816", "0.45822275", "0.45812222", "0.45788425", "0.45725644", "0.4567958", "0.45662445", "0.456266", "0.45624617", "0.45618963", "0.45605877", "0.45469657", "0.45456424", "0.45397276", "0.4537494", "0.4536921", "0.45365605", "0.45363876", "0.45363724", "0.45355663" ]
0.53411853
3
/ Converts basepair characters to an index (A = 0, C = 1, G = 2, T = 3)
static int baseToInt(char c) { if(c == 'a' || c == 'A') { return 0; } if(c == 'c' || c == 'C') { return 1; } if(c == 'g' || c == 'G') { return 2; } return 3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int letter2index(char c) { \t\n \treturn (int)(c - 'A')%26 ;\n }", "String getIndexBits();", "private char getMappingCode(char c) {\n if (!Character.isLetter(c)) {\n return 0;\n } \n else {\n return soundexMapping[Character.toUpperCase(c) - 'A'];\n }\n }", "private int char2Int(char _char){\n \tswitch(_char){\r\n \tcase 'A': case 'a': return 0; \r\n \tcase 'R': case 'r': return 1;\r\n \tcase 'N': case 'n': return 2; \t\r\n \tcase 'D': case 'd': return 3;\r\n \tcase 'C': case 'c': return 4;\r\n \tcase 'Q': case 'q': return 5;\r\n \tcase 'E': case 'e': return 6;\r\n \tcase 'G': case 'g': return 7;\r\n \tcase 'H': case 'h': return 8;\r\n \tcase 'I': case 'i': return 9;\r\n \tcase 'L': case 'l': return 10;\r\n \tcase 'K': case 'k': return 11;\r\n \tcase 'M': case 'm': return 12;\r\n \tcase 'F': case 'f': return 13;\r\n \tcase 'P': case 'p': return 14;\r\n \tcase 'S': case 's': return 15;\r\n \tcase 'T': case 't': return 16;\r\n \tcase 'W': case 'w': return 17;\r\n \tcase 'Y': case 'y': return 18;\r\n \tcase 'V': case 'v': return 19;\r\n \tcase 'B': case 'b': return 20;\r\n \tcase 'Z': case 'z': return 21;\r\n \tcase 'X': case 'x': return 22; \t\r\n \tdefault: return 23;\r\n \t}\r\n \t//\"A R N D C Q E G H I L K M F P S T W Y V B Z X *\"\r\n }", "static boolean isBasePair(char c)\n{\n\treturn c >= 'A' && c <= 'Z';\n}", "static char intToBase(int val)\n\t{\n\t\tif(val == 0)\n\t\t{\n\t\t\treturn 'A';\n\t\t}\n\t\tif(val == 1)\n\t\t{\n\t\t\treturn 'C';\n\t\t}\n\t\tif(val == 2)\n\t\t{\n\t\t\treturn 'G';\n\t\t}\n\t\treturn 'T';\n\t}", "private static int getCombiningIndexFromStarter(char paramChar1, char paramChar2)\n/* */ {\n/* 1213 */ long l = getNorm32(paramChar1);\n/* 1214 */ if (paramChar2 != 0) {\n/* 1215 */ l = getNorm32FromSurrogatePair(l, paramChar2);\n/* */ }\n/* 1217 */ return extraData[(getExtraDataIndex(l) - 1)];\n/* */ }", "public int letterToIndex(char letter) {\r\n\t\tif (Character.toLowerCase(letter) == 'a')\r\n\t\t\treturn 0;\r\n\t\telse if (Character.toLowerCase(letter) == 'b')\r\n\t\t\treturn 1;\r\n\t\telse if (Character.toLowerCase(letter) == 'c')\r\n\t\t\treturn 2;\r\n\t\telse if (Character.toLowerCase(letter) == 'd')\r\n\t\t\treturn 3;\r\n\t\telse if (Character.toLowerCase(letter) == 'e')\r\n\t\t\treturn 4;\r\n\t\telse if (Character.toLowerCase(letter) == 'f')\r\n\t\t\treturn 5;\r\n\t\telse if (Character.toLowerCase(letter) == 'g')\r\n\t\t\treturn 6;\r\n\t\telse if (Character.toLowerCase(letter) == 'h')\r\n\t\t\treturn 7;\r\n\t\telse if (Character.toLowerCase(letter) == 'i')\r\n\t\t\treturn 8;\r\n\t\telse if (Character.toLowerCase(letter) == 'j')\r\n\t\t\treturn 9;\r\n\t\telse\r\n\t\t\treturn -1;\r\n\t}", "private int c2i(char c) {\n if (c >= 'A' && c <= 'Z')\n return c - 'A';\n else\n throw new BadCharException(c);\n }", "public static int convert(char c) {\n switch (c) {\n case 'A': return 0;\n case 'T': return 1;\n case 'G': return 2;\n case 'C': return 3;\n default: return 4;\n }\n }", "int getIndex(Character c)\n{\n int a = Character.getNumericValue('a');\n int z = Character.getNumericValue('z');\n int val = Character.getNumericValue(c);\n \n if (a <= val && val <= z) return val - a;\n return -1;\n}", "static int getIdx(char ch)\n {\n return (ch - 'a');\n }", "private static int letterToXOrdinate(char c) {\n\t\t\n\t\tswitch (c) {\n\t\t\tcase 'A': return 0;\n\t\t\t\n\t\t\tcase 'B': return 1;\n\t\t\t\n\t\t\tcase 'C': return 2;\n\t\t\t\n\t\t\tcase 'D': return 3;\n\t\t\t\n\t\t\tcase 'E': return 4;\n\t\t\t\n\t\t\tcase 'F': return 5;\n\t\t\t\n\t\t\tcase 'G': return 6;\n\t\t\t\n\t\t\tcase 'H': return 7;\n\t\t\t\n\t\t\tcase 'I': return 8;\n\t\t\t\n\t\t\tdefault: return -1;\t\n\t\t}\n\t\n\t}", "int getStartCharIndex();", "public char index2letter(int i) { \t\n \treturn (char) (i + 'A');\n }", "private int getIndex(char c) {\n // if the character is a-z then return 0-25 based on position in alphabet\n if (c >= 'a' && c <= 'z') {\n return c - 'a';\n }\n // if the character is an appostrophe return 26 (last element in node array)\n else if (c == '\\'') {\n return 26;\n }\n // if the character is not a-z nor an apostrophe, return -1 to signify error\n else {\n return -1;\n }\n }", "private char denumerate(char input, int t) {\n boolean charfound = false;\n char output = 0;\n\n char[] n1 = {'1','2','3','4','5','6'};//first set of numbers\n\n char[] n2 = {'3','4','5','6','1','2'};//second set, if previous value was number\n char[] c = {'A','E','I','O','U','Y'};\n\n for (int i=0;i<c.length;i++) { // go through n1 or n2 and see if match is made, and then change to value in c\n if (charfound==false) {\n if (t==1 && input==n1[i]) {\n charfound = true;\n output = c[i];\n }\n if (t==2 &&input==n2[i]) {\n charfound = true;\n output = c[i];\n }\n }\n }\n return output;\n }", "protected char map(char c) {\r\n int index = findFromIndex(c);\r\n if(index < 0) return c;\r\n return toChars[index];\r\n }", "public static int lookup(char letter) {\n\t\tswitch (letter) {\n\t\tcase 'A':\n\t\t\treturn 0;\n\t\tcase 'R':\n\t\t\treturn 1;\n\t\tcase 'N':\n\t\t\treturn 2;\n\t\tcase 'D':\n\t\t\treturn 3;\n\t\tcase 'C':\n\t\t\treturn 4;\n\t\tcase 'Q':\n\t\t\treturn 5;\n\t\tcase 'E':\n\t\t\treturn 6;\n\t\tcase 'G':\n\t\t\treturn 7;\n\t\tcase 'H':\n\t\t\treturn 8;\n\t\tcase 'I':\n\t\t\treturn 9;\n\t\tcase 'L':\n\t\t\treturn 10;\n\t\tcase 'K':\n\t\t\treturn 11;\n\t\tcase 'M':\n\t\t\treturn 12;\n\t\tcase 'F':\n\t\t\treturn 13;\n\t\tcase 'P':\n\t\t\treturn 14;\n\t\tcase 'S':\n\t\t\treturn 15;\n\t\tcase 'T':\n\t\t\treturn 16;\n\t\tcase 'W':\n\t\t\treturn 17;\n\t\tcase 'Y':\n\t\t\treturn 18;\n\t\tcase 'V':\n\t\t\treturn 19;\n\t\tcase 'B':\n\t\t\treturn 20;\n\t\tcase 'Z':\n\t\t\treturn 21;\n\t\tcase 'X':\n\t\t\treturn 22;\n\t\tcase '*':\n\t\t\treturn 23;\n\t\tcase '|':\n\t\t\treturn 24;\n\t\tcase '.':\n\t\t\treturn 25;\n\n\t\tdefault:\n\t\t\treturn -1;\n\t\t}\n\n\t}", "private char enumerate(char input, int t) {\n boolean charfound = false;\n char output = 0;\n\n char[] n1 = {'1','2','3','4','5','6'}; //first set of numbers\n char[] n2 = {'3','4','5','6','1','2'}; //second set, if previous value was number\n char[] c = {'A','E','I','O','U','Y'};\n\n for (int i=0;i<c.length;i++) { // go through c and see if match is made, and then change to value in n1 and n2\n if (charfound==false) {\n if (t==1 && input==c[i]) {\n charfound = true;\n output = n1[i];\n }\n if (t==2 &&input==c[i]) {\n charfound = true;\n output = n2[i];\n }\n }\n }\n return output;\n }", "private char getMappingCode(String string2, int n2) {\n char c2;\n char c3;\n char c4 = c2 = this.map(string2.charAt(n2));\n if (n2 <= 1) return c4;\n c4 = c2;\n if (c2 == '0') return c4;\n char c5 = string2.charAt(n2 - 1);\n if ('H' != c5) {\n c4 = c2;\n if ('W' != c5) return c4;\n }\n if (this.map(c3 = string2.charAt(n2 - 2)) == c2) return '\\u0000';\n if ('H' == c3) return '\\u0000';\n c4 = c2;\n if ('W' != c3) return c4;\n return '\\u0000';\n }", "protected int charIndex(char c) {\r\n\t\ttry {\r\n\t\t\treturn characterMap.indexOf(c);\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}", "public int firstUniqChar2(String s) {\r\n \r\n char[] arr= s.toCharArray();\r\n int index = -1;\r\n HashMap<Character, Integer> map = new HashMap<>();\r\n \r\n for (int i=0;i<arr.length;i++){\r\n if (map.containsKey(arr[i])){\r\n map.put(arr[i], -1);\r\n } else {\r\n map.put(arr[i],i);\r\n }\r\n }\r\n \r\n for (int i : map.values()){\r\n if (i >-1){\r\n if (index == -1){\r\n index = i;\r\n } else if (i<index) {\r\n index = i; \r\n }\r\n \r\n }\r\n }\r\n \r\n return index;\r\n }", "private char resolveIntToChar(int i) {\n switch (i) {\n case 1:\n return 'a';\n case 2:\n return 'b';\n case 3:\n return 'c';\n case 4:\n return 'd';\n case 5:\n return 'e';\n case 6:\n return 'f';\n case 7:\n return 'g';\n case 8:\n return 'h';\n default:\n return 'x';\n }\n }", "public static int convert3(String a)\r\n {\r\n HashMap<String,Integer> map = new HashMap<String,Integer>();\r\n \r\n map.put(\"ORADEA\", 0);\r\n\t\tmap.put(\"SIBIU\", 1);\r\n\t\tmap.put(\"ZERIND\", 2);\r\n\t\tmap.put(\"ARAD\", 3);\r\n\t\tmap.put(\"TIMISOARA\", 4);\r\n\t\tmap.put(\"LUGOJ\", 5);\r\n\t\tmap.put(\"MEHADIA\", 6);\r\n\t\tmap.put(\"DROBETA\", 7);\r\n\t\tmap.put(\"FAGARAS\", 8);\r\n\t\tmap.put( \"PITESTI\", 9);\r\n\t\tmap.put(\"CRAIOVA\", 10);\r\n\t\tmap.put(\"Giugiu\", 11);\r\n\t\tmap.put(\"Neamt\", 12);\r\n\t\tmap.put(\"Pitesti\", 13);\r\n\t\tmap.put(\"Rimnicu_Vikea\", 14);\r\n\t\tmap.put(\"Urziceni\", 15);\r\n\t\tmap.put(\"Valsui\", 16);\r\n\t\tmap.put( \"BUCHAREST\", 17);\r\n\t\tmap.put(\"LASI\",18);\r\n\t\tmap.put(\"EFORIE\", 19);\r\n\t\tmap.put(\"HIRSOVA\",20);\r\n \r\n return(map.get(a));\r\n \r\n }", "private int getCharNumber(Character letter) {\n\t\tint integerA = Character.getNumericValue('a');\n\t\tint integerZ = Character.getNumericValue('z');\n\t\tint integerLetter = Character.getNumericValue(letter);\n\t\tif (integerLetter >= integerA && integerLetter <= integerZ) {\n\t\t\treturn integerLetter - integerA; //a -> 0, b -> 1, c -> 2, etc\n\t\t}\n\t\treturn -1;\n\t}", "static int charToInt(char c) {\n if (c >= 'A' && c <= 'Z') return c - 'A';\n else if (c >= 'a' && c <= 'z') return c - 'a' + 26;\n else return -1;\n }", "Index getIndex(String symbol);", "private String getByAsc(int index) {\n int asc = 0;\n for (int i = 7; i >= 0; i--) {\n int tempInt = this.code[++index] - 48;\n asc += tempInt * Math.pow(2, i);\n }\n char ret = (char) asc;\n return String.valueOf(ret);\n }", "public static String baseConversion(String A, int bI, int bK)\n\t{\n\t\tif(bI == bK) { return A; }\n\n\t\tboolean isNegative = (A.charAt(0) == '-');\n\t\tfinal char[] chars = isNegative ? A.substring(1).toCharArray() : A.toCharArray();\n\n\t\tStringBuilder baseK = new StringBuilder();\n\t\tint column = 0;\n\t\tint baseTenValue = 0;\n\n\t\t// convert to base 10\n\t\tfor(int i = chars.length - 1; i >=0; i--)\n\t\t{\n\t\t\tbaseTenValue += getNumericValue(chars[i]) * Math.pow(10, column);\n\t\t\tcolumn++;\n\t\t}\n\n\t\t// convert from base 10 to K\n\t\twhile(baseTenValue !=0)\n\t\t{\n\t\t\tint x = baseTenValue % bK;\n\t\t\tbaseTenValue /= bK;\n\t\t\tbaseK.append(getCharReprentation(x));\n\t\t}\n\n\t\tif(isNegative) { baseK.append('-'); }\n\n\t\tbaseK.reverse();\n\t\treturn baseK.toString();\n\t}", "private static int base64toInt(char c, byte[] alphaToInt) {\r\n int result = alphaToInt[c];\r\n if (result < 0)\r\n throw new IllegalArgumentException(\"Illegal character \" + c);\r\n return result;\r\n }", "private static int base64toInt(char c, byte[] alphaToInt) {\n int result = alphaToInt[c];\n if (result < 0) {\n throw new IllegalArgumentException(\"Illegal character \" + c);\n }\n return result;\n }", "public String indexToLetter(int index) {\r\n\t\tif (index == 0)\r\n\t\t\treturn \"a\";\r\n\t\telse if (index == 1)\r\n\t\t\treturn \"b\";\r\n\t\telse if (index == 2)\r\n\t\t\treturn \"c\";\r\n\t\telse if (index == 3)\r\n\t\t\treturn \"d\";\r\n\t\telse if (index == 4)\r\n\t\t\treturn \"e\";\r\n\t\telse if (index == 5)\r\n\t\t\treturn \"f\";\r\n\t\telse if (index == 6)\r\n\t\t\treturn \"g\";\r\n\t\telse if (index == 7)\r\n\t\t\treturn \"h\";\r\n\t\telse if (index == 8)\r\n\t\t\treturn \"i\";\r\n\t\telse if (index == 9)\r\n\t\t\treturn \"j\";\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "static void lxi_to_reg_pair(String passed){\n\t\tchar fourth = passed.charAt(4);\n\t\tif(fourth=='B'){\n\t\t\tregisters.put('B', passed.substring(6,8));\n\t\t\tregisters.put('C', passed.substring(8));\n\t\t}\n\t\telse if(fourth=='D'){\n\t\t\tregisters.put('D', passed.substring(6,8));\n\t\t\tregisters.put('E', passed.substring(8));\n\t\t}\n\t\telse if(fourth=='H'){\n\t\t\tregisters.put('H', passed.substring(6,8));\n\t\t\tregisters.put('L', passed.substring(8));\n\t\t}\n\t}", "Character getCode();", "public int convertToInteger(char letterToEncode)\n\t{\n\t\tfor (int i = 0; i<characters.length; i++)\n\t\t{\n\t\t\tif(letterToEncode == characters[i])\n\t\t\t{\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t\t\n\t\t\n\t}", "private int getValueFromBase64Alphabet(char character)\r\n {\r\n if (character >= 'A' && character <= 'Z')\r\n {\r\n return character - 'A';\r\n }\r\n if (character >= 'a' && character <= 'z')\r\n {\r\n return character - 'a' + 26;\r\n }\r\n if (character >= '0' && character <= '9')\r\n {\r\n return character - '0' + 52;\r\n }\r\n if (character == '+')\r\n {\r\n return 62;\r\n }\r\n if (character == '/')\r\n {\r\n return 63;\r\n }\r\n if (character == '=')\r\n {\r\n return 0;\r\n }\r\n return -1;\r\n }", "public static void main(String args[]){\n String str = \"aabcadceklmeb\";\n\n HashMap<Character, Integer> map = new HashMap<>();\n\n\n for(int i = 0; i < str.length();i++){\n if(!map.containsKey(str.charAt(i))){\n map.put(str.charAt(i), 1);\n }else{\n int value = map.get(str.charAt(i));\n value++;\n map.put(str.charAt(i), value);\n }\n }\n\n for( char c : map.keySet()){\n if(map.get(c) == 2){\n System.out.println(c);\n }\n }\n \n }", "private void buildCharMap() {\n\t\tcharMap = new HashMap<Character , Integer>();\n\t\tcharMap.put('a', 0);\n\t\tcharMap.put('b', 1);\n\t\tcharMap.put('c', 2);\n\t\tcharMap.put('d', 3);\n\t\tcharMap.put('e', 4);\n\t\tcharMap.put('f', 5);\n\t\tcharMap.put('g', 6);\n\t\tcharMap.put('h', 7);\n\t\tcharMap.put('i', 8);\n\t\tcharMap.put('j', 9);\n\t\tcharMap.put('k', 10);\n\t\tcharMap.put('l', 11);\n\t\tcharMap.put('m', 12);\n\t\tcharMap.put('n', 13);\n\t\tcharMap.put('o', 14);\n\t\tcharMap.put('p', 15);\n\t\tcharMap.put('q', 16);\n\t\tcharMap.put('r', 17);\n\t\tcharMap.put('s', 18);\n\t\tcharMap.put('t', 19);\n\t\tcharMap.put('u', 20);\n\t\tcharMap.put('v', 21);\n\t\tcharMap.put('w', 22);\n\t\tcharMap.put('x', 23);\n\t\tcharMap.put('y', 24);\n\t\tcharMap.put('z', 25);\t\n\t}", "public static char nextBase(char srcBase, char currentBase) {\n\t\tchar output;\r\n\t\t\r\n\t\tif(srcBase == 'C' || srcBase == 'A' || srcBase == 'T' || srcBase == 'G') {\r\n\t\t\treturn srcBase;\r\n\t\t}\r\n\t\t\r\n\t\tswitch(srcBase) {\r\n\t\tcase 'U':\r\n\t\t\toutput = 'T';\r\n\t\t\tbreak;\r\n\t\tcase 'R':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'A';\r\n\t\t\telse\r\n\t\t\t\toutput = 'G';\r\n\t\t\tbreak;\r\n\t\tcase 'Y':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'T';\r\n\t\t\telse\r\n\t\t\t\toutput = 'C';\r\n\t\t\tbreak;\r\n\t\tcase 'K':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'T';\r\n\t\t\telse\r\n\t\t\t\toutput = 'G';\r\n\t\t\tbreak;\r\n\t\tcase 'M':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'A';\r\n\t\t\telse\r\n\t\t\t\toutput = 'C';\r\n\t\t\tbreak;\r\n\t\tcase 'S':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'G';\r\n\t\t\telse\r\n\t\t\t\toutput = 'C';\r\n\t\t\tbreak;\r\n\t\tcase 'W':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'A';\r\n\t\t\telse\r\n\t\t\t\toutput = 'T';\r\n\t\t\tbreak;\r\n\t\tcase 'B':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'C';\r\n\t\t\telse if(currentBase == 'C')\r\n\t\t\t\toutput = 'G';\r\n\t\t\telse\r\n\t\t\t\toutput = 'T';\r\n\t\t\tbreak;\r\n\t\tcase 'H':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'A';\r\n\t\t\telse if(currentBase == 'A')\r\n\t\t\t\toutput = 'C';\r\n\t\t\telse\r\n\t\t\t\toutput = 'T';\r\n\t\t\tbreak;\r\n\t\tcase 'V':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'A';\r\n\t\t\telse if(currentBase == 'A')\r\n\t\t\t\toutput = 'C';\r\n\t\t\telse\r\n\t\t\t\toutput = 'G';\r\n\t\t\tbreak;\r\n\t\tcase 'D':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'A';\r\n\t\t\telse if(currentBase == 'A')\r\n\t\t\t\toutput = 'G';\r\n\t\t\telse\r\n\t\t\t\toutput = 'T';\r\n\t\t\tbreak;\r\n\t\tcase 'N':\r\n\t\t\tif(currentBase == srcBase) \r\n\t\t\t\toutput = 'A';\r\n\t\t\telse if(currentBase == 'A')\r\n\t\t\t\toutput = 'T';\r\n\t\t\telse if(currentBase == 'T')\r\n\t\t\t\toutput = 'C';\r\n\t\t\telse\r\n\t\t\t\toutput = 'G';\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tprintWriter.print(\"Invalid source base provided.\");\r\n\t\t\toutput = 'Z';\r\n\t\t}\r\n\t\t\r\n\t\treturn output;\r\n\t}", "static int getValue(char c) {\n\t\tswitch(c) {\n\t\tcase 'A': return 0;\n\t\tcase 'C': return 1;\n\t\tcase 'G': return 2;\n\t\tcase 'T': return 3;\n\t\tdefault: return -1;\n\t\t}\n\t}", "private static int letterToNumber(String str) {\n return (\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\".indexOf(str))%26+1;\n }", "private void getMapping() {\n double [][] chars = new double[CHAR_SET_SIZE][1];\n for (int i = 0; i < chars.length; i++) {\n chars[i][0] = i;\n }\n Matrix b = new Matrix(key).times(new Matrix(chars));\n map = b.getArray();\n }", "int toHashKey(String s)\n\t{\n\t\tint A = 1952786893;\n\t\tint B = 367257;\n\t\tint v = B;\n\t\tfor (int j = 0; j < s.length(); j++)\n\t\t{\n\t\t\tchar c = s.charAt(j);\n\t\t\tv = A * (v + (int) c + j) + B;\n\t\t}\n\n\t\tif (v < 0) v = -v;\n\t\treturn v;\n\t}", "private static String lettre2Chiffre1(String n) {\n\t\tString c= new String() ;\n\t\tswitch(n) {\n\t\tcase \"A\": case \"J\":\n\t\t\tc=\"1\";\n\t\t\treturn c;\n\t\tcase \"B\": case \"K\": case \"S\":\n\t\t\tc=\"2\";\n\t\t\treturn c;\n\t\tcase \"C\": case\"L\": case \"T\":\n\t\t\tc=\"3\";\n\t\t\treturn c;\n\t\tcase \"D\": case \"M\": case \"U\":\n\t\t\tc=\"4\";\n\t\t\treturn c;\n\t\tcase \"E\": case \"N\": case \"V\":\n\t\t\tc=\"5\";\n\t\t\treturn c;\n\t\tcase \"F\": case \"O\": case \"W\":\n\t\t\tc=\"6\";\n\t\t\treturn c;\n\t\tcase \"G\": case \"P\": case \"X\":\n\t\t\tc=\"7\";\n\t\t\treturn c;\n\t\tcase \"H\": case \"Q\": case \"Y\":\n\t\t\tc=\"8\";\n\t\t\treturn c;\n\t\tcase \"I\": case \"R\": case \"Z\":\n\t\t\tc=\"4\";\n\t\t\treturn c;\n\t\t\t\n\t\t}\n\t\treturn c;\n\t\t\n\t\n\t\t}", "private static int convertCharToInt(char charAt) {\n\t\tif(charAt == 48) {\t\n\t\t\treturn 0;\n\t\t}else {\n\t\t\treturn 1;\n\t\t}\n\t}", "int toInt(String a){\n\t\tint name=0;\r\n\t\tfor(int i=0;i<a.length();i++){\r\n\t\t\tname+=(int)a.charAt(i);\r\n\t\t}\r\n\t\treturn name;\r\n\t}", "private int getCharacterIndex(Character c, int index) {\r\n if (c instanceof CommonInfected) {\r\n return (index % cInfectedNum);\r\n\t\t}\r\n else if (c instanceof Tank) {\r\n return (index % tankNum);\r\n\t\t}\r\n else if (c instanceof Child) {\r\n return (index % childNum);\r\n\t\t}\r\n else if (c instanceof Teacher) {\r\n return (index % teacherNum);\r\n\t\t}\r\n else if (c instanceof Soldier) {\r\n return (index % soldierNum);\r\n\t\t}\r\n else {\r\n return -1;\r\n\t\t}\r\n }", "public static int charToGroup(char a){\n int group=0;\n if(a<112){\n group= ((a-'a')/3) +2;\n }\n else if(a<116){\n group = 7;\n }\n else{\n group= (a < 'w') ? 8 : 9;\n }\n return group;\n }", "public int fromBeginning(String str) {\n if(str == null || str.length() == 0)\n return 0;\n char[] ca = str.toCharArray();\n int res = 0, pre = 0;\n for(char c : ca) {\n res += map.get(c);\n if(pre != 0 && pre < map.get(c))\n res -= 2 * pre;\n pre = map.get(c);\n }\n return res;\n }", "protected abstract int getSurrogateOffset(char paramChar1, char paramChar2);", "public void letterCombinations(String digits,String current,String[] mappings,int index,List<String> result){\n if(digits.length()==current.length()){\n result.add(current);\n return;\n }\n // if digit is \"2\" , mappings['2' - '0' ] will give me mappings[2] .i.e abc\n String letters = mappings[digits.charAt(index)-'0'];\n\n //for all letters in mappings[i] call recursively\n // i.e. mappings[2] => \"abc\",call for a, then b and then c\n for (int i=0;i<letters.length();i++){\n // add to current character at index i\n // increment index to simulate selection condition\n letterCombinations(digits,current+letters.charAt(i),mappings,index+1,result);\n }\n }", "void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}", "public int b(char paramChar)\r\n/* 714: */ {\r\n/* 715:706 */ return this.f[\"0123456789abcdef\".indexOf(paramChar)];\r\n/* 716: */ }", "char caseconverter(int k,int k1)\n{\nif(k>=65 && k<=90)\n{\nk1=k1+32;\n}\nelse\nif(k>=97 && k<=122)\n{\nk1=k1-32;\n}\nreturn((char)k1);\n}", "protected void int2alphaCount(long val, CharArrayWrapper aTable,\n FastStringBuffer stringBuf)\n {\n\n int radix = aTable.getLength();\n char[] table = new char[radix];\n\n // start table at 1, add last char at index 0. Reason explained above and below.\n int i;\n\n for (i = 0; i < radix - 1; i++)\n {\n table[i + 1] = aTable.getChar(i);\n }\n\n table[0] = aTable.getChar(i);\n\n // Create a buffer to hold the result\n // TODO: size of the table can be detereined by computing\n // logs of the radix. For now, we fake it.\n char buf[] = new char[100];\n\n //some languages go left to right(ie. english), right to left (ie. Hebrew),\n //top to bottom (ie.Japanese), etc... Handle them differently\n //String orientation = thisBundle.getString(org.apache.xml.utils.res.XResourceBundle.LANG_ORIENTATION);\n // next character to set in the buffer\n int charPos;\n\n charPos = buf.length - 1; // work backward through buf[] \n\n // index in table of the last character that we stored\n int lookupIndex = 1; // start off with anything other than zero to make correction work\n\n // Correction number\n //\n // Correction can take on exactly two values:\n //\n // 0 if the next character is to be emitted is usual\n //\n // radix - 1\n // if the next char to be emitted should be one less than\n // you would expect\n // \n // For example, consider radix 10, where 1=\"A\" and 10=\"J\"\n //\n // In this scheme, we count: A, B, C ... H, I, J (not A0 and certainly\n // not AJ), A1\n //\n // So, how do we keep from emitting AJ for 10? After correctly emitting the\n // J, lookupIndex is zero. We now compute a correction number of 9 (radix-1).\n // In the following line, we'll compute (val+correction) % radix, which is,\n // (val+9)/10. By this time, val is 1, so we compute (1+9) % 10, which\n // is 10 % 10 or zero. So, we'll prepare to emit \"JJ\", but then we'll\n // later suppress the leading J as representing zero (in the mod system,\n // it can represent either 10 or zero). In summary, the correction value of\n // \"radix-1\" acts like \"-1\" when run through the mod operator, but with the\n // desireable characteristic that it never produces a negative number.\n long correction = 0;\n\n // TODO: throw error on out of range input\n do\n {\n\n // most of the correction calculation is explained above, the reason for the\n // term after the \"|| \" is that it correctly propagates carries across\n // multiple columns.\n correction =\n ((lookupIndex == 0) || (correction != 0 && lookupIndex == radix - 1))\n ? (radix - 1) : 0;\n\n // index in \"table\" of the next char to emit\n lookupIndex = (int)(val + correction) % radix;\n\n // shift input by one \"column\"\n val = (val / radix);\n\n // if the next value we'd put out would be a leading zero, we're done.\n if (lookupIndex == 0 && val == 0)\n break;\n\n // put out the next character of output\n buf[charPos--] = table[lookupIndex]; // left to right or top to bottom \n }\n while (val > 0);\n\n stringBuf.append(buf, charPos + 1, (buf.length - charPos - 1));\n }", "int toInt(char c) {\n for (int i = 0; i < size(); i += 1) {\n if (_chars[i] == c) {\n return i;\n }\n }\n throw new EnigmaException(\"Character \" + c + \" not found.\");\n }", "private char translateChar(char[] mapping, char character)\n { if (character==' ') return character;\n\n int lower = lowerKeyCodeMapping.indexOf(character);\n int upper = upperKeyCodeMapping.indexOf(character);\n\n int mapValue = lower;\n if (lower<0) mapValue = upper;\n if (mapValue<0) return '\\0';\n return mapping[mapValue];\n }", "char toChar(int index) {\n return _letters.charAt(index);\n }", "int toInt(char ch) {\n return _letters.indexOf(ch);\n }", "private static int slowCharToNibble( char c ) \r\n { \r\n if ( '0' <= c && c <= '9' ) \r\n { \r\n return c - '0'; \r\n } \r\n else if ( 'a' <= c && c <= 'f' ) \r\n { \r\n return c - 'a' + 0xa; \r\n } \r\n else if ( 'A' <= c && c <= 'F' ) \r\n { \r\n return c - 'A' + 0xa; \r\n } \r\n else \r\n { \r\n throw new IllegalArgumentException( \"Invalid hex character: \" + c ); \r\n } \r\n }", "int fixIndex(int i) {\n int ALPHABET_SCOPE = 26;\n char ch = (char) (isEncryption ? i - shift : i + shift);\n int index = i;\n\n if (ch >= 65 && ch <= 90) {\n while (index < 65)\n index += ALPHABET_SCOPE;\n while (index > 90)\n index -= ALPHABET_SCOPE;\n } else {\n while (index < 97)\n index += ALPHABET_SCOPE;\n while (index > 122)\n index -= ALPHABET_SCOPE;\n }\n return index;\n }", "private int getUseOfLetter(String word) {\n int result = 0;\n for (int i = 0; i < word.length(); i++) {\n result |= tables[word.charAt(i)];\n }\n return result;\n }", "public final String A01(char[] cArr, int i, int i2, int i3) {\n int i4 = i2;\n if (i4 < 1) {\n return \"\";\n }\n int i5 = i;\n char[] cArr2 = cArr;\n if (!this.A09) {\n return new String(cArr2, i5, i4);\n }\n int i6 = (i3 + (i3 >>> 15)) & this.A00;\n String str = this.A07[i6];\n if (str != null) {\n if (str.length() == i4) {\n int i7 = 0;\n while (str.charAt(i7) == cArr[i + i7] && (i7 = i7 + 1) < i4) {\n while (str.charAt(i7) == cArr[i + i7] && (i7 = i7 + 1) < i4) {\n }\n }\n }\n C12990hi r0 = this.A06[i6 >> 1];\n if (r0 != null) {\n String str2 = r0.A01;\n C12990hi r7 = r0.A00;\n while (true) {\n if (str2.length() == i4) {\n int i8 = 0;\n while (str2.charAt(i8) == cArr[i + i8] && (i8 = i8 + 1) < i4) {\n while (str2.charAt(i8) == cArr[i + i8] && (i8 = i8 + 1) < i4) {\n }\n }\n if (i8 == i4) {\n break;\n }\n }\n if (r7 == null) {\n str2 = null;\n break;\n }\n str2 = r7.A01;\n r7 = r7.A00;\n }\n if (str2 != null) {\n return str2;\n }\n }\n }\n if (!this.A05) {\n String[] strArr = this.A07;\n int length = strArr.length;\n String[] strArr2 = new String[length];\n this.A07 = strArr2;\n System.arraycopy(strArr, 0, strArr2, 0, length);\n C12990hi[] r3 = this.A06;\n int length2 = r3.length;\n C12990hi[] r02 = new C12990hi[length2];\n this.A06 = r02;\n System.arraycopy(r3, 0, r02, 0, length2);\n this.A05 = true;\n } else if (this.A02 >= this.A03) {\n String[] strArr3 = this.A07;\n int i9 = r4 + r4;\n if (i9 > 65536) {\n this.A02 = 0;\n Arrays.fill(strArr3, (Object) null);\n Arrays.fill(this.A06, (Object) null);\n this.A05 = true;\n } else {\n C12990hi[] r13 = this.A06;\n this.A07 = new String[i9];\n this.A06 = new C12990hi[(i9 >> 1)];\n this.A00 = i9 - 1;\n this.A03 = i9 - (i9 >> 2);\n int i10 = 0;\n int i11 = 0;\n for (String str3 : strArr3) {\n if (str3 != null) {\n i10++;\n int length3 = str3.length();\n int i12 = this.A08;\n for (int i13 = 0; i13 < length3; i13++) {\n i12 = (i12 * 33) + str3.charAt(i13);\n }\n if (i12 == 0) {\n i12 = 1;\n }\n int i14 = (i12 + (i12 >>> 15)) & this.A00;\n String[] strArr4 = this.A07;\n if (strArr4[i14] == null) {\n strArr4[i14] = str3;\n } else {\n int i15 = i14 >> 1;\n C12990hi[] r1 = this.A06;\n r1[i15] = new C12990hi(str3, r1[i15]);\n i11 = Math.max(i11, 1);\n }\n }\n }\n int i16 = r4 >> 1;\n for (int i17 = 0; i17 < i16; i17++) {\n for (C12990hi r4 = r13[i17]; r4 != null; r4 = r4.A00) {\n i10++;\n String str4 = r4.A01;\n int length4 = str4.length();\n int i18 = this.A08;\n for (int i19 = 0; i19 < length4; i19++) {\n i18 = (i18 * 33) + str4.charAt(i19);\n }\n if (i18 == 0) {\n i18 = 1;\n }\n int i20 = (i18 + (i18 >>> 15)) & this.A00;\n String[] strArr5 = this.A07;\n if (strArr5[i20] == null) {\n strArr5[i20] = str4;\n } else {\n int i21 = i20 >> 1;\n C12990hi[] r12 = this.A06;\n r12[i21] = new C12990hi(str4, r12[i21]);\n i11 = Math.max(i11, 1);\n }\n }\n }\n this.A01 = i11;\n int i22 = this.A02;\n if (i10 != i22) {\n throw new Error(AnonymousClass000.A08(\"Internal error on SymbolTable.rehash(): had \", i22, \" entries; now have \", i10, \".\"));\n }\n }\n int i23 = this.A08;\n for (int i24 = 0; i24 < i4; i24++) {\n i23 = (i23 * 33) + cArr[i24];\n }\n if (i23 == 0) {\n i23 = 1;\n }\n i6 = (i23 + (i23 >>> 15)) & this.A00;\n }\n str = new String(cArr2, i5, i4);\n if (this.A0A) {\n str = C13190i2.A00.A00(str);\n }\n int i25 = this.A02 + 1;\n this.A02 = i25;\n String[] strArr6 = this.A07;\n if (strArr6[i6] == null) {\n strArr6[i6] = str;\n return str;\n }\n int i26 = i6 >> 1;\n C12990hi[] r14 = this.A06;\n r14[i26] = new C12990hi(str, r14[i26]);\n int max = Math.max(1, this.A01);\n this.A01 = max;\n if (max > 255) {\n throw new IllegalStateException(AnonymousClass000.A08(\"Longest collision chain in symbol table (of size \", i25, \") now exceeds maximum, \", 255, \" -- suspect a DoS attack based on hash collisions\"));\n }\n return str;\n }", "public static Integer SheetLetterToCol(String letter) {\n int loc_RetVal = 0;\n int loc_Val = 0;\n\n letter = letter.toUpperCase().trim();\n\n loc_RetVal = letter.charAt(letter.length() - 1) - 65;\n\n if (letter.length() > 1) {\n\n //loc_RetVal++;\n\n //A\n //AA\n //AB\n\n for (int loc_Conta = 1; loc_Conta < letter.length(); loc_Conta++) {\n\n loc_Val = letter.charAt((letter.length() - 1) - loc_Conta) - 64;\n\n loc_RetVal += loc_Val * (26 * (letter.length() - loc_Conta));\n\n }\n\n }\n\n return loc_RetVal;\n }", "public static int a(String name) {\n/* 80 */ String value = (String)a.get(name);\n/* 81 */ return (value != null) ? value.charAt(0) : -1;\n/* */ }", "private static int typeToIndex(String orbit) {\n int value = 0;\n switch (orbit){\n case \"Trefoil\": value = ORBIT_6_KNOT; break;\n case \"Trefoil2\": value = ORBIT_4_KNOT; break;\n case \"Simple3\": value = ORBIT_4_SIMPLE; break;\n case \"Simple4\": value = ORBIT_3_SIMPLE; break;\n case \"Simple5\": value = ORBIT_5_SIMPLE; break;\n case \"Chasing\": value = ORBIT_8; break;\n }\n return value;\n }", "private int rowCombo2Key(int[] combo) {\n int key = 0;\n for (int i : combo) {\n key = (key << 3) | i;\n }\n return key;\n }", "protected int findFromIndex(char c) {\r\n int len = fromChars.length;\r\n for(int i = 0; i < len; i++) {\r\n if(fromChars[i] == c) return i;\r\n }\r\n return -1;\r\n }", "private static int ind(char a, char b) {\n return (a == b) ? 1 : 0;\n }", "short getKeyIx();", "public int tranzition(int qi,String letter) {\r\n \t\r\n \tif(qi==0&&letter.equals(\"a\")) {return 0;}\r\n \telse if (qi==0&&letter.equals(\"b\")) {return 1;}\r\n \telse if (qi==1&&letter.equals(\"a\")) {return 2;}\r\n \telse if (qi==1&&letter.equals(\"b\")) {return 1;}\r\n \telse if (qi==2&&letter.equals(\"a\")) {return 3;}\r\n \telse if (qi==2&&letter.equals(\"b\")) {return 1;}\r\n \telse if (qi==3&&letter.equals(\"a\")) {return 0;}\r\n \telse if (qi==3&&letter.equals(\"b\")) {return 1;}\r\n \telse return -1;\r\n \t\r\n }", "public static int stringToInt(String aKey){\r\n\t\t\r\n\t\tint pseudoKey = 0;\r\n\t\tint n = 1;\r\n\t\tint cn = 0;\r\n\t\tchar c[] = aKey.toCharArray();\r\n\t\tint grouping = 0;\r\n\t\t\r\n\t\twhile(cn < aKey.length()){\r\n\t\t\t\r\n\t\t\tgrouping = grouping << 8;\r\n\t\t\tgrouping += c[cn];\r\n\t\t\tcn++;\r\n\t\t\t\r\n\t\t\tif(n == 4 || cn == aKey.length()){\r\n\t\t\t\tpseudoKey += grouping;\r\n\t\t\t\tn = 0;\r\n\t\t\t\tgrouping = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tn++;\r\n\t\t\t\r\n\t\t}// End of while loop\r\n\t\treturn Math.abs(pseudoKey);\r\n\t\t\r\n\t}", "int[] buildFrequencyTable(String s)\n{\n int[] table = new int [Character.getNumericValue('z') - Character.getNumericValue('a') + 1];\n for (char c : s.toCharArray())\n {\n int x = getCharNumber(c);\n if (x != -1) table[x]++;\n }\n return table;\n}", "public String convert2(int a)\r\n {\r\n HashMap<Integer, String> map = new HashMap<Integer,String>();\r\n \r\n map.put(0,\"ORADEA\");\r\n\t\tmap.put(1,\"SIBIU\");\r\n\t\tmap.put(2,\"ZERIND\");\r\n\t\tmap.put(3,\"ARAD\");\r\n\t\tmap.put(4,\"TIMISOARA\");\r\n\t\tmap.put(5,\"LUGOJ\");\r\n\t\tmap.put(6,\"MEHADIA\");\r\n\t\tmap.put(7,\"DROBETA\");\r\n\t\tmap.put(8,\"FAGARAS\");\r\n\t\tmap.put(9,\"PITESTI\");\r\n\t\tmap.put(10,\"CRAIOVA\");\r\n\t\tmap.put(11,\"Giugiu\");\r\n\t\tmap.put(12,\"Neamt\");\r\n\t\tmap.put(13,\"Pitesti\");\r\n\t\tmap.put(14,\"Rimnicu_Vikea\");\r\n\t\tmap.put(15,\"Urziceni\");\r\n\t\tmap.put(16,\"Valsui\");\r\n\t\tmap.put(17, \"BUCHAREST\");\r\n\t\tmap.put(18,\"LASI\");\r\n\t\tmap.put(19,\"EFORIE\");\r\n\t\tmap.put(20,\"HIRSOVA\");\r\n \r\n return map.get(a);\r\n }", "private static Map<Character, Integer> createKey(String subString) {\n Map map = new HashMap<Character, Integer>();\n for (int i = 0; i < subString.length(); i++) {\n Character c = subString.charAt(i);\n\n if (map.containsKey(c)) {\n int count = (int) map.get(c);\n map.put(c, ++count);\n } else {\n map.put(c, 1);\n }\n }\n return map;\n }", "private void buildKeyMap() {\n\t\tcharMapKey = new HashMap<Character , Integer>();\n\t\tcharMapKey.put('a', 0);\n\t\tcharMapKey.put('b', 0);\n\t\tcharMapKey.put('c', 1);\n\t\tcharMapKey.put('d', 1);\n\t\tcharMapKey.put('e', 2);\n\t\tcharMapKey.put('f', 2);\n\t\tcharMapKey.put('g', 3);\n\t\tcharMapKey.put('h', 3);\n\t\tcharMapKey.put('i', 4);\n\t\tcharMapKey.put('j', 4);\n\t\tcharMapKey.put('k', 5);\n\t\tcharMapKey.put('l', 5);\n\t\tcharMapKey.put('m', 6);\n\t\tcharMapKey.put('n', 6);\n\t\tcharMapKey.put('o', 7);\n\t\tcharMapKey.put('p', 7);\n\t\tcharMapKey.put('q', 8);\n\t\tcharMapKey.put('r', 8);\n\t\tcharMapKey.put('s', 9);\n\t\tcharMapKey.put('t', 9);\n\t\tcharMapKey.put('u', 10);\n\t\tcharMapKey.put('v', 10);\n\t\tcharMapKey.put('w', 11);\n\t\tcharMapKey.put('x', 11);\n\t\tcharMapKey.put('y', 12);\n\t\tcharMapKey.put('z', 12);\n\t}", "private char hexaToChar(int[] i){\n char c;\n String h = \"\" + Integer.toHexString(i[0]) + Integer.toHexString(i[1]);\n c = (char) Integer.parseInt(h, 16);\n return c;\n }", "public static void main(String[] args){\n\t\tString str = \"level\";\n\t\t\n\t\t// Approach-1\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tboolean unique = true;\n\t\t\t\n\t\t\tfor(int j=0;j<str.length();j++){\n\t\t\t\tif(i!=j && str.charAt(i)==str.charAt(j)){\n\t\t\t\t\tunique = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(unique){\n\t\t\t\tSystem.out.println(str.charAt(i));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Approach-2\n\t\tMap<Character, Integer> map = new HashMap<>();\n\t\t\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tchar ch = str.charAt(i);\n\t\t\tif(map.containsKey(ch)){\n\t\t\t\tmap.put(ch, map.get(ch)+1);\t\n\t\t\t}else{\n\t\t\t\tmap.put(ch,1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(map);\n\t\t\n\t\tfor(Map.Entry<Character, Integer> entryset : map.entrySet()){\n\t\t\tif(entryset.getValue()==1){\n\t\t\t\tSystem.out.println(entryset.getKey());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private List<Tuple> charCountMap(Tuple input) {\n \n String[] words = input.snd().replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase().split(\"\\\\s+\");\n \n List<Tuple> output = new ArrayList<Tuple>();\n \n for(String word : words) {\n Integer chars = word.length();\n output.add(new Tuple(chars.toString(),\"1\"));\n }\n \n lolligag();\n \n //<charCount, 1>, <charCount, 1> ...\n return output;\n }", "int getCharacterOrdering(char key);", "private int getNucIndex(char c) {\n\t\tswitch(c) {\n\t\tcase 'A':\n\t\t\treturn 0;\n\t\tcase 'C':\n\t\t\treturn 1;\n\t\tcase 'G':\n\t\t\treturn 2;\n\t\tcase 'T':\n\t\t\treturn 3;\n\t\tcase '-':\n\t\t\treturn 4;\n\t\tdefault:\n\t\t\treturn 4;\n\t\t}\n\t}", "private int convertCharNumtoNum(char charIn){\n\t\tint number = -1;\n\t\tint convertedNum = Character.getNumericValue(charIn);\n\t\t\n\t\tfor(int i: Seats.SEAT_NUMS){\n\t\t\tif(i == convertedNum){\n\t\t\t\tnumber = convertedNum; \n\t\t\t}\n\t\t}\n\t\treturn number;\n\t}", "private static int alphabetPos(char l) {\n\t\tfor (int x = 0; x < ALPHABET.length; x++) {\n\t\t\tif (ALPHABET[x] == l) {\n\t\t\t\treturn x;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "private static int firstUniqChar3(String s) {\n if (s == null || s.isEmpty()) {\n return -1;\n }\n\n int idx = Integer.MAX_VALUE;\n for (char c = 'a'; c <= 'z'; c++) {\n int first = s.indexOf(c);\n int last = s.lastIndexOf(c);\n\n if (first != -1 && first == last) {\n idx = Math.min(idx, first);\n }\n }\n\n return idx == Integer.MAX_VALUE ? -1 : idx;\n }", "static int getKey(String raw) {\n\t\tint key = 0;\n\t\tfor (int i = 0; i < raw.length(); i++) {\n\t\t\tkey = key * HASH_VALUE + raw.charAt(i);\n\t\t}\n\t\tif (key < 0) {\n\t\t\tkey = -key;\n\t\t}\n\t\treturn key % HASH_SIZE;\n\t}", "public static int intForChar(char c) {\n for (int i = 0; i < DICT.length; i++) {\n if (DICT[i] == c) {\n return i;\n }\n }\n //Return 0 if character can't be found.\n return 0;\n }", "public static char[] degenerateToBases(final char base) {\n\tswitch(base) {\n\t case 'A':\n\t case 'C':\n\t case 'G':\n\t case 'T':\n\t case 'U': return new char[]{base};\n\t case 'R': return new char[]{'A','G'}; \n\t case 'Y': return new char[]{'C','T'}; \n\t case 'S': return new char[]{'G','C'};\n\t case 'W': return new char[]{'A','T'};\n\t case 'K': return new char[]{'G','T'};\n\t case 'M' :return new char[]{'A','C'};\n\t case 'B': return new char[]{'C','G','T'};\n\t case 'D': return new char[]{'A','G','T'};\n\t case 'H': return new char[]{'A','C','T'};\n\t case 'V': return new char[]{'A','C','G'};\n\t case 'N': return new char[]{'A','C','G','T'};\n\t //\n\t case 'a':\n\t case 'c':\n\t case 'g':\n\t case 't':\n\t case 'u': return new char[]{base};\n\t case 'r': return new char[]{'a','g'}; \n\t case 'y': return new char[]{'c','t'}; \n\t case 's': return new char[]{'g','c'};\n\t case 'w': return new char[]{'a','t'};\n\t case 'k': return new char[]{'g','t'};\n\t case 'm' :return new char[]{'a','c'};\n\t case 'b': return new char[]{'c','g','t'};\n\t case 'd': return new char[]{'a','g','t'};\n\t case 'h': return new char[]{'a','c','t'};\n\t case 'v': return new char[]{'a','c','g'};\n\t case 'n': return new char[]{'a','c','g','t'};\n\t default: throw new IllegalArgumentException(\"bad DNA base:\"+base);\n\t\t}\n\t}", "public static void main(String[] args) {\n HashMap<Character,Integer> hMapOutPut = new HashMap<>();\n //HashMap map = new HashMap();\n String sInput = \"india\";\n char[] strInputArray = sInput.toCharArray();\n for(char fLoop: strInputArray) {\n System.out.println(fLoop);\n if(hMapOutPut.containsKey(fLoop)) {\n int temp=hMapOutPut.get(fLoop)+1;\n hMapOutPut.put(fLoop,temp );\n }else {\n hMapOutPut.put(fLoop, 1);\n }\n }\nSystem.out.println(hMapOutPut);\n }", "private static int fromHexChar(final char c) {\n\t\tif (c >= 0x30 && c <= 0x39) {\n\t\t\t// ASCII codes from 0 to 9\n\t\t\treturn c - 0x30;\n\t\t} else if (c >= 0x61 && c <= 0x66) {\n\t\t\t// ASCII codes from 'a' to 'f'\n\t\t\treturn c - 0x57;\n\t\t} else if (c >= 0x41 && c <= 0x46) {\n\t\t\t// ASCII codes from 'A' to 'F'\n\t\t\treturn c - 0x37;\n\t\t}\n\t\treturn 0;\n\t}", "public static void main(String args[]){\n Scanner sc=new Scanner(System.in);\n String str=sc.nextLine();\n int len=str.length();\n int stat[]=new int[26];\n for(int i=0;i<len;i++)\n {\n if((str.charAt(i)>='a') && ( str.charAt(i)<='z'))\n {\n int offset=str.charAt(i) - 'a';\n stat[offset]++; \n }\n if((str.charAt(i)>='A') && ( str.charAt(i)<='Z'))\n {\n int offset=str.charAt(i) - 'A';\n stat[offset]++; \n }\n }\n for(int i=0;i<26;i++)\n {\n \n if( stat[i]==0)\n {\n char ch=(char)('a'+i);\n System.out.print(ch+\" \");\n \n \n \n }\n }\n}", "private int createPosition (String s) {\r\n\t\tint x = 37;\r\n\t\tdouble hashCode=0;\r\n\t\tfor (int i=0; i<s.length(); i++) {\r\n\t\t\thashCode = (double) (hashCode+ (int)(s.charAt(s.length()-(i+1)))*(Math.pow(x,i)));\r\n\t\t}\r\n\t\treturn (int)(hashCode % size);\r\n\t}", "int[] prefix_suffix_tabble(String pattern){\n\n // ABAB\n int[] table = pattern.length;\n\n int M = pattern.length();\n int i=0;\n int j=1;\n\n table[0] = 0;\n\n while(j<M){\n if(pattern.charAt(i) == pattern.charAt(j)){\n table[j] = i+1;\n i++;\n j++;\n }\n else{ // charAt(i) != charAt(j)\n\n\n if(i==0){ // cant go to previous, so just set it to 0 and move on. Almost our base case\n table[j] = 0;\n j++;\n continue;\n }\n\n // set i to the value of the previous and keep doing it\n int valueAtPrevious = table[i-1];\n i = valueAtPrevious;\n }\n }\n return table;\n // ith index indicates a prefix that is also a suffix from 0 including i. Cant be the whole String\n\n\n }", "private int convertIncreasingName(int cbindex) // convertIncreasingName method start\n\t\t{\n\t\t\tswitch(cbindex)\n\t\t\t{\n\t\t\tcase 0: return 0;\n\t\t\tcase 1: return 2;\n\t\t\tcase 2: return 5;\n\t\t\tcase 3: return 7;\n\t\t\tcase 4: return 8;\n\t\t\tcase 5: return 10;\n\t\t\tcase 6: return 11;\n\t\t\tcase 7: return 13;\n\t\t\tcase 8: return 14;\n\t\t\tcase 9: return 15;\n\t\t\tcase 10: return 16;\n\t\t\tcase 11: return 17;\n\t\t\tcase 12: return 19;\n\t\t\tcase 13: return 20;\n\t\t\tcase 14: return 22;\n\t\t\tcase 15: return 24;\n\t\t\tcase 16: return 25;\n\t\t\tcase 17: return 26;\n\t\t\tcase 18: return 28;\n\t\t\tcase 19: return 30;\n\t\t\tcase 20: return 31;\n\t\t\tcase 21: return 32;\n\t\t\tcase 22: return 33;\n\t\t\tcase 23: return 38;\n\t\t\tcase 24: return 40;\n\t\t\tcase 25: return 41;\n\t\t\tcase 26: return 42;\n\t\t\tcase 27: return 43;\n\t\t\tcase 28: return 45;\n\t\t\tcase 29: return 47;\n\t\t\tcase 30: return 48;\n\t\t\tcase 31: return 50;\n\t\t\tcase 32: return 52;\n\t\t\tcase 33: return 53;\n\t\t\tcase 34: return 56;\n\t\t\tdefault: return 0;\n\t\t\t} // end switch\n\t\t}", "public static int getLetterIndex(String word, byte startFrom) {\r\n int i, j;\r\n if (startFrom == head) // start checking from beginning\r\n {\r\n for (i = 0; i < word.length(); i++) {\r\n if (word.charAt(i) >= 'a' && word.charAt(i) <= 'z')\r\n return i;\r\n }\r\n return -1; // cannot found any letter in the string\r\n } else if (startFrom == tail) // start check from the ed\r\n {\r\n for (j = word.length() - 1; j >= 0; j--) {\r\n if (word.charAt(j) >= 'a' && word.charAt(j) <= 'z')\r\n return j;\r\n }\r\n return -1; // cannot found any letter in the string\r\n }\r\n return 0;\r\n }", "public char charAt(int index);", "public static int charToInt(char c) \n\t{\n\t\tswitch (c) \n\t\t{\n\t\tcase '0':\n\t\t\treturn 0;\n\t\tcase '1':\n\t\t\treturn 1;\n\t\tcase '2':\n\t\t\treturn 2;\n\t\tcase '3':\n\t\t\treturn 3;\n\t\tcase '4':\n\t\t\treturn 4;\n\t\tcase '5':\n\t\t\treturn 5;\n\t\tcase '6':\n\t\t\treturn 6;\n\t\tcase '7':\n\t\t\treturn 7;\n\t\tcase '8':\n\t\t\treturn 8;\n\t\tcase '9':\n\t\t\treturn 9;\n\t\tcase 'A':\n\t\t\treturn 10;\n\t\tcase 'B':\n\t\t\treturn 11;\n\t\tcase 'C':\n\t\t\treturn 12;\n\t\tcase 'D':\n\t\t\treturn 13;\n\t\tcase 'E':\n\t\t\treturn 14;\n\t\tcase 'F':\n\t\t\treturn 15;\n\t\tcase 'G':\n\t\t\treturn 16;\n\t\tcase 'H':\n\t\t\treturn 17;\n\t\tcase 'I':\n\t\t\treturn 18;\n\t\tcase 'J':\n\t\t\treturn 19;\n\t\tcase 'K':\n\t\t\treturn 20;\n\t\tcase 'L':\n\t\t\treturn 21;\n\t\tcase 'M':\n\t\t\treturn 22;\n\t\tcase 'N':\n\t\t\treturn 23;\n\t\tcase 'O':\n\t\t\treturn 24;\n\t\tcase 'P':\n\t\t\treturn 25;\n\t\tcase 'Q':\n\t\t\treturn 26;\n\t\tcase 'R':\n\t\t\treturn 27;\n\t\tcase 'S':\n\t\t\treturn 28;\n\t\tcase 'T':\n\t\t\treturn 29;\n\t\tcase 'U':\n\t\t\treturn 30;\n\t\tcase 'V':\n\t\t\treturn 31;\n\t\tcase 'W':\n\t\t\treturn 32;\n\t\tcase 'X':\n\t\t\treturn 33;\n\t\tcase 'Y':\n\t\t\treturn 34;\n\t\tcase 'Z':\n\t\t\treturn 35;\n\t\tcase '-':\n\t\t\treturn 36;\n\t\tdefault:\n\t\t\treturn -1;\n\t\t}\n\t}", "String getWordIn(String schar, String echar);", "public static int asInt(char c) {\n int temp = 0;\n switch (c) {\n case '2':\n temp = 2;\n break;\n case '3':\n temp = 3;\n break;\n case '4':\n temp = 4;\n break;\n case '5':\n temp = 5;\n break;\n case '6':\n temp = 6;\n break;\n case '7':\n temp = 7;\n break;\n case '8':\n temp = 8;\n break;\n case '9':\n temp = 9;\n break;\n case 'T':\n temp = 10;\n break;\n case 'J':\n temp = 11;\n break;\n case 'Q':\n temp = 12;\n break;\n case 'K':\n temp = 13;\n break;\n case 'A':\n temp = 14;\n break;\n\n default:\n throw new AssertionFailedError(\n \"Invalid Character \" + c + \" in card number column: Expected 1-9,J,Q,K,A\");\n\n }\n return temp;\n }", "public static void main(String[] args) {\n\t\t\n\t\tString s = \"asdfasdfafk asd234asda\";\n\t //Map<Character, Integer> charMap = new HashMap<Character, Integer>();\n\t \n\t Map<Character,Integer> map = new HashMap<Character,Integer>();\n\t for (int i = 0; i < s.length(); i++) {\n\t char c = s.charAt(i);\n\t System.out.println(c);\n\t //if (Character.isAlphabetic(c)) {\n\t if (map.containsKey(c)) {\n\t int cnt = map.get(c);\n\t System.out.println(cnt);\n\t map.put(c,++cnt);\n\t } else {\n\t map.put(c, 1);\n\t }\n\t \n\t }\n\t // }\n\t System.out.println(map);\n\t \n\t \n\t /* char[] arr = str.toCharArray();\n\t System.out.println(arr);\n\t \n\n\t\t\n\t\tfor (char value: arr) {\n\t\t \n\t\t if (Character.isAlphabetic(value)) { \n\t\t\t if (charMap.containsKey(value)) {\n\t\t charMap.put(value, charMap.get(value) + 1);\n\t\t \n\t\t } \n\t\t\t else { charMap.put(value, 1); \n\t\t } \n\t\t\t } \n\t\t }\n\t\t \n\t\t System.out.println(charMap);*/\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t \n \t}" ]
[ "0.66499263", "0.63773", "0.6307429", "0.620913", "0.6199498", "0.61847806", "0.6169923", "0.61368096", "0.6120434", "0.6099664", "0.6098816", "0.6057878", "0.59742576", "0.5955479", "0.5954874", "0.5936698", "0.5934349", "0.59114885", "0.58920705", "0.58916366", "0.58727956", "0.5821691", "0.5818357", "0.5720682", "0.5719996", "0.57016826", "0.5699952", "0.5697838", "0.56707525", "0.5658015", "0.56517845", "0.5642531", "0.56409955", "0.5638095", "0.56130093", "0.56075543", "0.55963254", "0.5596148", "0.5576419", "0.55694956", "0.55637515", "0.55598545", "0.5544742", "0.5507287", "0.54963166", "0.5492077", "0.54759526", "0.546713", "0.5462983", "0.5455571", "0.54273427", "0.5418343", "0.5413317", "0.54064524", "0.5399116", "0.53967535", "0.53839314", "0.5378255", "0.5357388", "0.5352003", "0.5347849", "0.5342297", "0.53405833", "0.53381884", "0.5335832", "0.532877", "0.53283644", "0.53263605", "0.5321319", "0.53176683", "0.5315596", "0.53108346", "0.5304319", "0.5303961", "0.5300828", "0.5300232", "0.52994615", "0.52757615", "0.52699447", "0.5262276", "0.5262167", "0.52500516", "0.5240272", "0.5239649", "0.52352184", "0.5231076", "0.5226383", "0.5216938", "0.5215319", "0.5212928", "0.520902", "0.5207712", "0.5207254", "0.51887906", "0.518863", "0.5182607", "0.5181666", "0.51812637", "0.51744264", "0.5172746" ]
0.64226156
1
/ Gets a random subsequence of a given length of integers in the range [minVal, maxVal]
static int[] getRandomSubsequence(int minVal, int maxVal, int subseqLength) { ArrayList<Integer> vals = new ArrayList<Integer>(); for(int i = minVal; i<=maxVal; i++) { vals.add(i); } Collections.shuffle(vals); int[] res = new int[subseqLength]; for(int i = 0; i<res.length; i++) { res[i] = vals.get(i); } Arrays.sort(res); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int[] getRandomIntervalSamplingLengthFirst(Random rand, int min, int max, int seriesLength) throws Exception {\n\t\tint[] interval = new int[3]; //[start_index,end_index,length]\n\t\t\n\t\tif (max > seriesLength || max <= 0) {//if max == 0, assume max possible length\n\t\t\tmax = seriesLength;\n\t\t}\n\t\tif (min < 1) {\n\t\t\tmin = 1;\n\t\t}\n\n\t\tinterval[2] = rand.nextInt((max - min) + 1) + min; //interval[2] is length of the interval\n\t\t\n \tinterval[0] = rand.nextInt((seriesLength - interval[2]) + 1);\n \t//min and and max are in terms of length which starts at 1, but interval[0] and [1] are in terms of index positions which start at 0\n \tinterval[1] = interval[0] + interval[2] - 1;\t \n\n\t\treturn interval;\n\t}", "public static int randomRangeBound(int minDigits, int maxDigits) {\r\n int digitBoundDiff = maxDigits - minDigits + 1;\r\n int i = rn.nextInt() % digitBoundDiff;\r\n if (i < 0) {\r\n i = -i;\r\n }\r\n return minDigits + i;\r\n }", "private int _getRandomFromRange(int min, int max) {\n\t \n return min + random_.nextInt(max - min + 1);\n }", "int getRandom(int max);", "public static String generate(int min_length, int max_length) {\n int length = (int) (Math.random() * (max_length - min_length)) + min_length;\n String result = \"\";\n int value_random;\n\n int[] interval_chars = new int[122 - 97];\n Arrays.setAll(interval_chars, i -> i + 97);\n for (int num = 0; num < length; num++) {\n value_random = (Math.abs((int) System.nanoTime())) % 58;\n if (value_random >= 48 && value_random <= 57) {\n result = result.concat(Character.toString((char) value_random));\n continue;\n }\n result = result.concat(Character.toString((char) (interval_chars[(int) (Math.random() * interval_chars.length)] - (Math.random() > 0.5 ? 32 : 0))));\n }\n return result;\n }", "public int randomValueFromClosedInterval(int min, int max, MersenneTwisterFast random)\n {\n if (max - min < 0) // we had an overflow\n {\n int l = 0;\n do l = random.nextInt();\n while(l < min || l > max);\n return l;\n }\n else return min + random.nextInt(max - min + 1);\n }", "private int randomRange(int min, int max) {\n\t\tRandom random = new Random();\n\t\treturn random.nextInt((max - min) + 1) + min;\n\t}", "public int originalgetRandomPositiveInt(int min, int max){\r\n int number = getRandomPositiveInt(); \r\n return (int)number%(max - min + 1)+min;\r\n }", "int getRandom(int limit){\n Random rand = new Random();\n int upperBound = limit;\n return rand.nextInt(upperBound) + 1;\n }", "public static ArrayList<String> generateNumberArray(int min, int max) {\n int[] ran = new int[]{-20, -10, 10, 20};\n ArrayList<Integer> integerArrayList;\n HashSet<Integer> set = new HashSet<>();\n\n int diff = min / 5;\n\n int target = randInt(min + diff, max - diff);\n set.add(target);\n while (set.size() != 4) {\n int badChoice = target + NumberGenerator.randInt(-diff, diff);\n set.add(badChoice);\n }\n set.remove(target);\n integerArrayList = new ArrayList<>(set);\n\n integerArrayList.add(0, target);\n\n ArrayList<String> integers = new ArrayList<>();\n for (Integer myInt : integerArrayList) {\n integers.add(String.valueOf(myInt));\n }\n\n //add a number which has the same last number as target\n while (true) {\n int insertPos = NumberGenerator.randInt(1, 4);\n int subIndex = NumberGenerator.randInt(0, 3);\n int badChoice = target + ran[subIndex];\n\n if (!set.contains(badChoice) && target!= badChoice && badChoice >= min && badChoice <= max) {\n integers.add(insertPos, String.valueOf(badChoice));\n break;\n }\n }\n return integers;\n }", "private int randomInt(final int start, final int end) {\n return random.nextInt(end - start + 1) + start;\n }", "public static Set<Integer> rndSet(int size, int min, int max){\n\n\t\tif (max < size)\n\t\t{\n\t\t throw new IllegalArgumentException(\"Can't ask for more numbers than are available\");\n\t\t}\n\n\t\tSet<Integer> generated = new LinkedHashSet<Integer>();\n\t\twhile (generated.size() < size)\n\t\t{\n\t\t Integer next = rng.nextInt(max - min + 1) + min;\n\t\t // As we're adding to a set, this will automatically do a containment check\n\t\t generated.add(next);\n\t\t}\n\t\tSystem.out.println(\"line sampled: \"+generated.toString());\n\t\treturn generated;\n\t}", "private static int newSecretNumber(int min, int max)\n {\n Random rnd = new Random();\n return rnd.nextInt((max + 1 - min) + min);\n }", "private static int randInt(final int min, final int max) {\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n return rand.nextInt((max - min) + 1) + min;\n }", "private int randBetween(int start, int end) {\n\t\treturn start + (int)Math.round(Math.random() * (end - start));\n\t}", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "public int randInt(int min, int max) {\n Random rand = new Random();\n\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n int randomNum = rand.nextInt((max - min) + 1) + min;\n\n return randomNum;\n}", "static int getRandint(int min, int max) {\r\n\t\tRandom r = new Random();\r\n\t\treturn r.nextInt((max - min) + 1) + min;\r\n\t}", "public void test_subSequence() {\n assertTrue(\"Incorrect substring returned\", hw1.subSequence(0, 5).equals(\n \"Hello\") && (hw1.subSequence(5, 10).equals(\"World\")));\n assertTrue(\"not identical\", hw1.subSequence(0, hw1.length()) == hw1);\n\n try {\n hw1.subSequence(0, Integer.MAX_VALUE);\n fail(\"IndexOutOfBoundsException was not thrown.\");\n } catch(IndexOutOfBoundsException ioobe) {\n //expected\n }\n\n try {\n hw1.subSequence(Integer.MAX_VALUE, hw1.length());\n fail(\"IndexOutOfBoundsException was not thrown.\");\n } catch(IndexOutOfBoundsException ioobe) {\n //expected\n }\n\n try {\n hw1.subSequence(-1, hw1.length());\n fail(\"IndexOutOfBoundsException was not thrown.\");\n } catch(IndexOutOfBoundsException ioobe) {\n //expected\n }\n }", "private int randomGen(int upperBound) {\n\t\tRandom r = new Random();\n\t\treturn r.nextInt(upperBound);\n\t}", "private static String createRandomInteger(int aStart, long aEnd,Random aRandom){\n \tif ( aStart > aEnd ) {\n\t throw new IllegalArgumentException(\"Start cannot exceed End.\");\n\t }\n\t long range = aEnd - (long)aStart + 1;\n\t long fraction = (long)(range * aRandom.nextDouble());\n\t long randomNumber = fraction + (long)aStart;\n\t return Long.toString(randomNumber);\n\t }", "public static int getRandom(int min, int max){\n\t int x = (int)(Math.random()*((max-min)+1))+min;\n\t return x;\n\t}", "Chromosome getRandomAmongFittest(int limit);", "private static int randomBetween(Random r, int min, int max) {\n return r.nextInt(max - min) + min;\n }", "private static int generateRandom(int min, int max) {\n // max - min + 1 will create a number in the range of min and max, including max. If you don´t want to include it, just delete the +1.\n // adding min to it will finally create the number in the range between min and max\n return r.nextInt(max-min+1) + min;\n }", "private int randomIntRange(int min, int max) {\r\n Random random = new Random();\r\n if (min < 0 || max < 0) {\r\n return (random.nextInt(Math.abs(max - min)) + Math.abs(min) + 1) * -1;\r\n }\r\n return random.nextInt(max - min) + min + 1;\r\n }", "private int getRandomInteger(int start, int end){\n\t\tif (start > end) {\n\t\t\tthrow new IllegalArgumentException(\"Start cannot exceed End.\");\n\t\t}\n\t\tRandom random = new Random();\n\t\tlong range = (long)end - (long)start + 1;\n\t\tlong fraction = (long)(range * random.nextDouble());\n\t\tint randomNumber = (int)(fraction + start); \n\t\treturn(randomNumber);\n\t}", "private int getRandomNumberInRange(int min, int max) {\n Random rand = new Random();\n return rand.nextInt((max - min) + 1) + min;\n }", "public static int getRandomInt(int min, int max) {\n return getInstance().rand.nextInt((max - min) + 1) + min;\n }", "public int getRandomArbitrary(int min, int max) {\n\t\treturn (int) (Math.random() * (max - min) + min);\n\t}", "public static int getRandomNumber(int min, int max){\r\n Random r = new Random();\r\n return r.nextInt((max - min) +1) + min;\r\n }", "private static int randInt(int min, int max) {\n Random rand = new Random();\n\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n int randomNum = rand.nextInt((max - min) + 1) + min;\n\n return randomNum;\n }", "private int generatePiece()\n\t{\n\t\tint toReturn = 0;\n\t\tint max = 1;\n\t\tint min = -1;\n\t\t\n\t\twhile(toReturn == 0)\n\t\t{\n\t\t\ttoReturn = r.nextInt((max - min) + 1) + min;\n\t\t}\n\t\tSystem.out.println(toReturn);\n\t\treturn toReturn;\n\t}", "private static int randomInt(int min, int max) {\n if (min >= max) {\n throw new IllegalArgumentException(\"max must be greater than min\");\n }\n\n Random r = new Random();\n return r.nextInt(max - min) + min;\n }", "private static int getRandomNumber(int min, int max) \n { //generates a random number within a range\n return (min + rand.nextInt((max - min) + 1));\n }", "private static int getRandomNumberInRange(int min, int max) {\n\n if (min >= max) {\n throw new IllegalArgumentException(\"max must be greater than min\");\n }\n Random r = new Random();\n return r.nextInt((max - min) + 1) + min;\n }", "public int getRandomNumberInInterval() {\n\t\treturn getRandomNumberUsingNextInt(min, max);\n\t}", "static Node generate(int length, int min, int max) {\n Random rand = new Random();\n Node head = null;\n int range = max - min + 1;\n for (int i = 0; i < length; i++) {\n Node t = new Node(rand.nextInt(range) + min);\n if (head == null)\n head = t;\n else {\n t.next = head;\n head = t;\n }\n }\n return head;\n }", "public static int generateIntRange(int min, int max) {\n return random.nextInt(max - min + 1) + min;\n }", "private int generateRandomNb(int min, int max) {\n Random random = new Random();\n\n return random.nextInt((max - min) + 1) + min;\n }", "int randomIntInRange(int min, int max) {\n\t\tRandom rand = new Random();\n\t\treturn rand.nextInt(max + 1 - min) + min;\n\t}", "private int alea(final int valeurMin,\n final int valeurMax) {\n Random r = new Random();\n return valeurMin + r.nextInt(valeurMax - valeurMin);\n }", "protected int random(int min, int max) {\n\t\treturn this.rand.nextInt(max-min) + min;\n\t}", "public static String rndString(int length, char min, char max) {\r\n char[] c = RBytes.rndCharArray(length, min, max);\r\n return new String(c);\r\n }", "public static int getRandomBetween(int lb, int ub)\n\t{\n\t\tRandom generator = new Random();\n\t\tint ret = generator.nextInt(ub+1-lb) + lb;\n\n\t\treturn ret;\n\t}", "protected static int randBetween(int min, int max) {\n\t\tRandom rand = new Random();\n\t\treturn rand.nextInt(max - (min + 1)) + min;\n\t}", "public int randint(int max, int min)\n {\n Random rand = new Random();\n int randomNum = rand.nextInt((max - min) + 1) + min;\n return randomNum;\n }", "public static int[] generateArray(int min, int max, int size) {\n int[] arr = new int[size];\n for (int i = 0; i < size; i++) {\n arr[i] = min + (int) (Math.random() * (max - min));\n }\n return arr;\n }", "public static void main(String[] args) {\n int min=100;\n int max=999;\n int random = (int) (min + Math.random() * (max - min));\n int a=random%10;\n int a1=(random/10)%10;\n int a2=(random/100)%10;\n System.out.println(\"Число = \" +random +\" наибольшее число = \" +Math.max(a, Math.max(a1,a2)));\n}", "private static int randomNumberBetween(final int start, final int end) {\n\t\treturn start + (int) Math.round(Math.random() * (end - start));\n\t}", "public Randp(int max) {\n\t\t\n\t\tnumsLeft = max;\n\t\t\n\t\tfor (int i = 1; i <= max; i++) {\n\t\t\t\n\t\t\t// Adds all numbers to array list\n\t\t\tlistOfNums.add(i);\n\t\t}\n\t}", "public void testSubSequence() {\n System.out.println(\"subSequence\");\n int start = 0;\n int end = 0;\n BufferedCharSequence instance = null;\n CharSequence expResult = null;\n CharSequence result = instance.subSequence(start, end);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public int getRandom(int bound) {\n return ThreadLocalRandom.current().nextInt(bound);\n }", "public AppendableCharSequence subSequence(int start, int end)\r\n/* 39: */ {\r\n/* 40: 52 */ return new AppendableCharSequence(Arrays.copyOfRange(this.chars, start, end));\r\n/* 41: */ }", "private static int generateRandomNumber(int min, int max) {\n return (int)Math.floor(Math.random() * (max - min + 1)) + min;\n }", "public static int getRndInt(int upperBound){\n\t\tRandom randomNumber; \n\t\trandomNumber = new Random(); \n\t\tint z = randomNumber.nextInt(upperBound);\n\t\treturn z;\n\t}", "private ArrayList _getRandomList(int num, int min, int max) {\n ArrayList list = new ArrayList();\n ArrayList tmp = new ArrayList();\n for (int i = min; i <= max; i++) {\n tmp.add(new Integer(i));\n }\n \n for (int i = 0; i < num; i++) {\n \tif(tmp.size() > 1){\n\t int pos = _getRandomFromRange(0, tmp.size() - 1);\n\t list.add( (Integer) tmp.get(pos));\n\t tmp.remove(pos);\n \t}\n }\n\n return list;\n }", "public int randBetween(int start, int end) {\n\t\treturn start + (int) Math.round(Math.random() * (end - start));\n\t}", "public static int generate(int min, int max) {\n\t\n\treturn min + (int) (Math.random() * ((max - min) + 1));\n\t\n\t}", "private static int[] generateArray(int size, int startRange, int endRange) {\n\t\tint[] array = new int[size];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\tarray[i] = (int)((Math.random()*(endRange - startRange + 1)) + startRange);\n\t\t}\n\t\treturn array;\n\t}", "public static int createRandom(int min, int max){\n\t\tif (min == max){\n\t\t\treturn min;\n\t\t}\n\t\telse{\t\t\t\n\t\t\treturn (int)(Math.random() * (max - min) + min); \n\t\t}\n\t}", "private int getRandomNumberInRange(int min, int max) {\r\n\r\n\t\tRandom r = new Random();\r\n\t\treturn ((r.nextInt(max - min) + 1) + min)*40;\r\n\t}", "public static int getRandomInt(int start, int end) {\n\t\tint randomInt = start + (int)((end - start) * Math.random());\n\t\treturn randomInt;\n\t}", "private Integer randomBilirrubina(){\n\t\t\tint Min = 0, Max = 14;\n\t\t\treturn Min + (int)(Math.random() * ((Max - Min) + 1));\n\t\t}", "public static int randBetween(int start, int end) {\n return start + (int)Math.round(Math.random() * (end - start));\n }", "private static int[] calculateLotto(int size, int min, int max) {\n int[] lotto = new int [size];\n int[] numbers = new int [max - min + 1];\n for(int i = 0; i < numbers.length; i++) {\n numbers [i] = min + i;\n }\n for(int i = 0; i < lotto.length; i++) {\n int index = Math.getRandom(0, numbers.length - 1);\n lotto [i] = numbers [index];\n numbers = Arrays.removeIndex(numbers, index);\n }\n return lotto;\n }", "public static int nextInt(int minVal, int maxVal) {\n\t\treturn minVal + Utilities.rand.nextInt((maxVal - minVal));\n\t}", "public int getRandom() {\n return sub.get(rand.nextInt(sub.size()));\n }", "public static String randNum(int min, int max){\n return String.valueOf(rand.nextInt(max - min + 1) + min);\n }", "private static String createRandomString(int minLen, int maxLen, Random random) {\n int len = (minLen == maxLen) ? minLen : (random.nextInt(maxLen - minLen) + minLen);\n StringBuilder sb = new StringBuilder(len);\n while (sb.length() < len) {\n sb.append(CHARACTERS[random.nextInt(CHARACTERS.length)]);\n }\n return sb.toString();\n }", "public int randomGenerator(int min, int max) {\n int random = (int) ((Math.random()*((max-min)+1))+min);\n return random;\n }", "public static int random(int min, int max) {\r\n\t\tint diff = max - min + 1;\r\n\t\treturn ((int) (Math.random() * diff)) + min;\r\n\t}", "public static int pseudo(int min, int max) {\n int value = generator.nextInt();\n return value < 0 ? (-value) % (max - min + 1) + min : value % (max - min + 1) + min;\n }", "private static int[] getMeRandomArray(int length) {\n\t\tint array[] = new int[length];\n\t\tint min = -1000;\n\t\tint max = 1000;\n\t\tfor(int i = 0; i < length; i++) {\n\t\t\tarray[i] = (int)(Math.random() * ((max - min) + 1)) + min;\n\t\t}\n\t\treturn array;\n\t}", "public CharSequence subSequence(int from, int to) {\n return content.subSequence(from, to);\n }", "public static void rand_generator(int[] ran,int n,int min, int max){\r\n Random r1 = new Random(); // rand function\r\n for(int i=0;i<n;i++)\r\n {\r\n ran[i] = r1.nextInt((max - min) + 1) + min; // saving the random values in the corresponding arrays\r\n }\r\n }", "public static int randomNumber(int start, int end) {\n long range = (long) end - (long) start + 1;\n // compute a fraction of the range, 0 <= frac < range\n long fraction = (long) (range * RANDOM.nextDouble());\n return (int) (fraction + start);\n }", "private int genRandomWaveNum(int min, int max){\n int m = genRandomInt(min, max);\n return m;\n }", "public static void findMaxIncreasingSubseq() {\n\t\tint[] a = {1,2,5,3,4,7,6};\n\t\tint n = a.length;\n\t\tint[] aux = new int[n];\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tint maxinc = 0;\n\t\t\tfor(int j=0; j<i; j++) {\n\t\t\t\tif(a[j] < a[i] && aux[j] > maxinc) {\n\t\t\t\t\tmaxinc = aux[j];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\taux[i] = maxinc+1;\n\t\t}\n\t\tint m = 0;\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tif(aux[i] > m) {\n\t\t\t\tm = aux[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"max sub \"+m);\n\t}", "private static int[] generate_random_array(int max) {\n int size = ThreadLocalRandom.current().nextInt(2, max + 1);\n int[] array = new int[size];\n for (int i = 0; i < size - 1; i++) {\n int distance = size - i > i ? size - i : i;\n array[i] = ThreadLocalRandom.current().nextInt(1, distance);\n }\n array[size - 1] = 0;\n return array;\n }", "private int getRandomWithExclusion(int bound, List<Integer> exclude) {\n int random = Constants.RAND.nextInt(bound - exclude.size());\n for (int ex : exclude) {\n if (random < ex) break;\n random++;\n }\n return random;\n \n }", "private static int random(int min, int max) {\r\n\t\tRandom rand = java.util.concurrent.ThreadLocalRandom.current();\r\n\t\treturn min + (int) (rand.nextDouble()*(max-min));\r\n\t}", "public CharSequence subSequence(int aStart, int anEnd)\n {\n return _xstr.subSequence(_start + aStart, _start + anEnd);\n }", "public static String randomStringGenerator(int len)\n {\n \t int lLimit = 97; \n \t int rLimit = 122; \n \t int targetStringLength =len;\n \t Random random = new Random();\n String generatedString = random.ints(lLimit, rLimit + 1)\n \t .limit(targetStringLength)\n \t .collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append)\n \t .toString();\n return generatedString;\n }", "public Interval(long start, long length, long max) {\n super();\n if (0 >= max) throw new IllegalArgumentException();\n if (0 > start || max <= start) throw new IllegalArgumentException();\n if (0 >= length) throw new IllegalArgumentException();\n if (max < start + length) throw new IllegalArgumentException();\n this.start = start;\n this.max = max;\n this.length = length;\n }", "public static long getRandomLong(long start, long end) {\n\t\tlong randomlong = start + (long)((end - start) * Math.random());\n\t\treturn randomlong;\n\t}", "@Override\n public int[] next() {\n min = rand.nextInt(100);\n max = rand.nextInt(100);\n Thread.yield();\n if (min > max) max = min;\n int[] ia = {min, max};\n return ia;\n }", "public static int randomNumberAlg(){\r\n int max = 10;\r\n int min = 1;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }", "public static String generateSubarrays(int[] sequence)\n {\n String result = \"\";\n List<String> list = new ArrayList<>();\n list.add(\"[\"+sequence[0]+\"]\");\n return generateSubarraysUsingRecursion(sequence,list,1);\n }", "public static int generatesRandomIntBetween(int start, int end) {\n return start + (int) Math.round(Math.random() * (end - start));\n }", "@Override\r\n\tpublic int randOfMax(int max) {\n\t\tRandom r = new Random();\r\n\t\t\r\n\t\tint i = r.nextInt(max);\r\n\t\twhile(0==i){//the restriction of the Random Number\r\n\t\t\ti = r.nextInt(max);\r\n\t\t}\r\n\t\treturn i;\r\n\t}", "public IRubyObject subseq(long beg, long len) {\n if (beg < 0 || beg > getSize() || len < 0) {\n getRuntime().getNil();\n }\n \n if (beg + len > getSize()) {\n len = getSize() - beg;\n }\n if (len < 0) {\n len = 0;\n }\n if (len == 0) {\n return getRuntime().newArray();\n }\n \n RubyArray arr = getRuntime().newArray(0);\n for (long i = beg; i < beg + len; i++) {\n arr.append(group(i));\n }\n return arr;\n }", "public static Integer[] makeRandomArray(int size, int min, int max){\n\t\tRandom rand = new Random();\n\t\tInteger[] list = new Integer[size];\n\n\t\tfor (int i = 0; i < list.length; i++){\n\t\t\tlist[i] = rand.nextInt((max - min) + 1) + min;\n\t\t}\t\n\t\t\n\t\treturn list;\n\t}", "static int createInjection(int min, int max){\n\t\t\tint myInjection = (int)(Math.random() * 10 * (Math.random() > 0.5 ? max : min));\t\n\t\t\treturn myInjection;\n\t\t\t}", "public static int customRandom(int range)\n {\n \tint random = (int)(Math.random()*10)%range;\n\t\n\treturn random;\n }", "public int getRandomNumber(int lowerLimit, int upperLimit)\n {\n int num = random.nextInt(upperLimit);\n // repeat while the number is lower than the lower limit.\n while(num < lowerLimit){\n num = random.nextInt(upperLimit);\n }\n return num;\n }", "private static int randInt(int lower, int upper) {\n\t\tRandom random = new Random();\n\t\treturn random.nextInt((upper - lower) + 1) + lower;\n\t}", "private int generateWholoeNumInRange( int min, int max ) {\r\n\r\n // Evaluate random number from min to max including min and max\r\n return (int)(Math.random()*(max - min + 1) + min);\r\n\r\n }", "public static int getRandIntBetween(int lowerBound, int upperBound) {\n return rand.nextInt(upperBound - lowerBound)+lowerBound;\n }", "public static int randInt(int min, int max) {\n Random rand = new Random();\n return rand.nextInt((max - min) + 1) + min;\n }" ]
[ "0.6524938", "0.6133722", "0.6060131", "0.59981275", "0.59344244", "0.5891631", "0.588068", "0.5872285", "0.57640976", "0.5726641", "0.5711402", "0.56781834", "0.5673868", "0.5670869", "0.56539994", "0.56469226", "0.56449425", "0.5633841", "0.562376", "0.5611668", "0.56046045", "0.5603043", "0.55816543", "0.55815834", "0.5576551", "0.5573468", "0.556935", "0.55515903", "0.5520782", "0.5500397", "0.54901487", "0.5487266", "0.5486816", "0.5474378", "0.54705113", "0.54694235", "0.54649156", "0.54504246", "0.54484785", "0.5446107", "0.54450387", "0.54448164", "0.5439375", "0.54273576", "0.54262906", "0.5426289", "0.541979", "0.5415848", "0.5415598", "0.5405731", "0.53952175", "0.5392448", "0.5369126", "0.53665686", "0.53664947", "0.536602", "0.5362488", "0.53573936", "0.53506035", "0.5342032", "0.53321415", "0.5325607", "0.53215975", "0.5317276", "0.5313348", "0.53111", "0.5303479", "0.530125", "0.5281969", "0.5281189", "0.5279896", "0.5278823", "0.5277385", "0.526728", "0.52660567", "0.52459896", "0.5231488", "0.52273196", "0.5212201", "0.5206142", "0.52048427", "0.5190941", "0.5187384", "0.51834923", "0.5182459", "0.5181206", "0.51795286", "0.5173282", "0.51730967", "0.5153841", "0.51521236", "0.5149144", "0.51459527", "0.51453847", "0.5140421", "0.5138908", "0.51296264", "0.512664", "0.5125789", "0.510209" ]
0.8407534
0
/ Gets a uniform random number between 2average and 2average, inclusive
static int randomDelta(int average) { return rand.nextInt(4*average + 1) - 2*average; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double uniform() {\r\n return random.nextDouble();\r\n }", "public static double uniform() {\n return random.nextDouble();\n }", "public static double random() {\r\n return uniform();\r\n }", "private double getRandom() {\n return 2*Math.random() - 1;\n }", "public float gaussianRandom() {\n\t\treturn (CCMath.constrain((float)nextGaussian() / 4,-1 ,1 ) + 1) / 2;\n\t}", "private double getRandomNumber(){\n double rand = Math.random();//produce a number between 0 and 1\n rand = rand - 0.5;\n return rand;\n }", "private double randn(){\r\n\t\t//* http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.html\r\n\t\t//RandomNumber rnd = new RandomNumber(System.currentTimeMillis());\r\n\t\t//return rnd.normal();\r\n\t\treturn rnd.nextGaussian();\r\n\t\t//return 0;\r\n\t}", "public static long normalRandom(long mean) {\n\t\t// create random object \n Random ran = new Random(); \n // generating integer \n double nxt = ran.nextGaussian(); \n long wage = mean + (long)(mean * nxt);\n if(wage < 0 ) wage = 0;\n return wage;\n\t}", "int midFavoringRandom(int upperBound) {\n int runningTotal = 0;\n int rolls = 3;\n for (int i = 0; i < rolls; i++) {\n int result = random.nextInt(upperBound);\n runningTotal += result;\n }\n int mean = (int) Math.round((double) runningTotal / rolls);\n return mean;\n }", "public static double rangedRandom(double a){\n\t\treturn -a + Calc.random(a * 2);\n\t}", "public static double getRandomRating() {\n return (double) (RandomNumberGenerator.getRandomInt(0, 10) / 2d);\n }", "public static double random()\n {\n return _prng2.nextDouble();\n }", "public static float uniform(float a, float b) {\n return a + (b - a) * (float) Math.random();\n }", "public double getRandom() {\n return 20*Math.random() - 10;\n }", "public static double fastRandomDouble(){\n\t\treturn rdm.nextDouble();\n\t\t//return rdm.nextDoubleFast();\n\t\t//return ((double)(fastRandomInt()) - ((double)Integer.MIN_VALUE)) / (-(Integer.MIN_VALUE * 2.0));\n\t}", "private int rand(int lower, int higher) {\n\t\treturn lower + (int) ((higher - lower + 1) * Math.random());\n\t\t\n\t}", "private double generateRandomValue(int min, int max) {\n\t\tdouble number = (Math.random() * max * 100) / 100 + min;\n\t\treturn number;\n\t}", "public static double random(double a, double b){\n\t\tdouble min = b, max = a;\n\t\tif (a < b){\n\t\t\tmin = a;\n\t\t\tmax = b;\n\t\t}\n\t\treturn min + random(max - min);\n\t}", "public float randomize() {\n return nextFloat(this.min, this.max);\n }", "float getRandomValue(float min, float max)\r\n\t{\n\t\tRandom r = new Random(/*SEED!!!*/);\r\n\t\t//get a float between 0 and 1 then multiply it by the min/max difference.\r\n\t\tfloat num = r.nextFloat();\r\n\t\tnum = num * (max-min) + min;\r\n\t\treturn num;\r\n\t}", "public static double random()\n {\n final int MAX_INT = 2147483647;\n int n = MAX_INT;\n \n // Just to ensure it does not return 1.0\n while(n == MAX_INT)\n \tn = abs (RAND.nextInt());\n \n return n * (1.0 / MAX_INT);\n }", "public double pissRandom(double a, double b){\n\t\tdouble min = b, max = a;\n\t\tif (a < b){\n\t\t\tmin = a;\n\t\t\tmax = b;\n\t\t}\n\t\treturn min + pissRandom(max - min);\n\t}", "public static int getRandomBalance(){\n return rand.nextInt(1000000);\n }", "public static double uniform( double a, double b ) {\n return a + uniform() * ( b - a );\n }", "private double getRandomDouble(double min, double max)\r\n\t{\r\n\t\tdouble randNum = Math.random() * (max - min) + min;\r\n\t\treturn randNum;\r\n\t}", "public double getRandom(){\n\t\treturn random.nextDouble();\n\t}", "public static double randomNum(Random g)\n\t{\n\t\treturn -5+g.nextDouble()*10;\n\t}", "private int randomNumber(int high, int low){\n \t\t Random r = new Random();\n \t\t return (r.nextInt(high-low) + low);\n \t }", "private static double randomGenerator(double min, double max) {\n return (double)java.lang.Math.random() * (max - min +1) + min;\n }", "public static int uniform( int a, int b ) {\n return a + uniform( b - a );\n }", "public static int uniform(int N) {\r\n return random.nextInt(N);\r\n }", "private int randomGen(int upperBound) {\n\t\tRandom r = new Random();\n\t\treturn r.nextInt(upperBound);\n\t}", "public static int uniform( int N ) {\n return random.nextInt( N + 1 );\n }", "int getRandom(int max);", "public static int randomNumber(int start, int end) {\n long range = (long) end - (long) start + 1;\n // compute a fraction of the range, 0 <= frac < range\n long fraction = (long) (range * RANDOM.nextDouble());\n return (int) (fraction + start);\n }", "private int rand(int lower, int upper) {\n return lower + (int)(Math.random() * ((upper - lower) + 1));\n }", "private static double randDouble(double lower, double upper) {\n\t\tRandom random = new Random();\n\t\treturn (random.nextDouble() * (upper - lower)) + lower;\n\t}", "public static int getRndInt(int upperBound){\n\t\tRandom randomNumber; \n\t\trandomNumber = new Random(); \n\t\tint z = randomNumber.nextInt(upperBound);\n\t\treturn z;\n\t}", "public static double rng(double min, double max) {\r\n\r\n return (Math.random() * ((max - min) + 1)) + min;\r\n }", "public static double rand() {\n return (new Random()).nextDouble();\n }", "private static int getSecretNum(int arg1) {\n Random rand = new Random();\n return rand.nextInt(UPPERBOUND)+1; //make range 1-100\n }", "public double randomValue(){\n\t\treturn _randomValue() + _randomValue() + _randomValue();\n\t}", "private int randBetween(int start, int end) {\n\t\treturn start + (int)Math.round(Math.random() * (end - start));\n\t}", "public double rand (double min, double max) {\r\n\t\tdouble r = rand();\r\n\t\tr = min + (max - min) * r;\r\n\t\treturn r;\r\n\t}", "public int randomizeSecondNumber() {\n b = random.nextInt(100);\n question.setA(b);\n return b;\n }", "public int randomNum() {\n\t\treturn 1 + (int) (Math.random() * 3); // randomNum = minimum + (int)(Math.random() * maximum);\n\t}", "int nextSample(final double mean);", "public static Double getGaussian(final Double average, final Double relStdDeviation){\r\n\t\tDouble absStdDeviation = average * relStdDeviation;\r\n\t\treturn new Random().nextGaussian() * absStdDeviation + average; \r\n\t}", "public static int randomNumberRatio(){\r\n int max = 10;\r\n int min = 1;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }", "private static int random(int min, int max) {\r\n\t\tRandom rand = java.util.concurrent.ThreadLocalRandom.current();\r\n\t\treturn min + (int) (rand.nextDouble()*(max-min));\r\n\t}", "public static double sample(double a, double b, Random random) {\n assert (b > 0.0);\n return a - b * Math.log(random.nextDouble());\n }", "public int randomGQ() {\n\t\treturn(getRandomInteger(10,100));\n\t}", "int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }", "public int getRandomNumber(int bound1, int bound2) {\n int min = Math.min(bound1, bound2);\n int max = Math.max(bound1, bound2);\n //math.random gives random number from 0 to 1\n return (int) (min + (Math.random() * (max - min)));\n }", "private static int randomNumberBetween(final int start, final int end) {\n\t\treturn start + (int) Math.round(Math.random() * (end - start));\n\t}", "private static int myRandom(int low, int high) {\n return (int) (Math.random() * (high + 1 - low) + low);\n }", "public static int randomRound(){\r\n int max = 1000;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n return randNum;\r\n }", "public int halfRand(int limit) {\n\t\tint realLimit = limit * 2 + 1;\n\t\tint r = _generator.nextInt(realLimit);\n\n\t\tint retVal = 0;\n\t\tif (r < limit) {\n\t\t\tretVal = -r;\n\t\t} else if (r > limit) {\n\t\t\tretVal = r - (limit + 1);\n\t\t}\n\n\t\treturn retVal;\n\t}", "public static int randomanint(int a, int b, int semilla){ \n Random rnd = new Random(semilla);\n int rndInd = (int)(b + ( a - b ) * rnd.nextDouble());\n return rndInd;\n }", "public int getRandomNumberInInterval() {\n\t\treturn getRandomNumberUsingNextInt(min, max);\n\t}", "public static double nextGaussian() {\n return randGen.nextGaussian();\n }", "private int getRandomInteger(int start, int end){\n\t\tif (start > end) {\n\t\t\tthrow new IllegalArgumentException(\"Start cannot exceed End.\");\n\t\t}\n\t\tRandom random = new Random();\n\t\tlong range = (long)end - (long)start + 1;\n\t\tlong fraction = (long)(range * random.nextDouble());\n\t\tint randomNumber = (int)(fraction + start); \n\t\treturn(randomNumber);\n\t}", "public static void main(String[] args) {\n// System.out.println(Math.floor(12.34));/\n// System.out.println(Math.(12.34));/\n// System.out.println(Math.ceil(12.34));/\n// System.out.println(Math.ceil(12.34));/\n int start=5;\n int end=66;\n int i=start+(int)(Math.round(Math.random()*(end-start)) );\n System.out.println(i);\n }", "public static int randomNumber50(){\r\n int max = 50;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }", "@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(10, 20); \t\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}", "public int randInt(int min, int max) {\n Random rand = new Random();\n\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n int randomNum = rand.nextInt((max - min) + 1) + min;\n\n return randomNum;\n}", "private int randomWeight()\n {\n return dice.nextInt(1000000);\n }", "private int randomNum() {\r\n\t return((int)(Math.random() * 100));\r\n\t }", "public static double randomDouble() {\n return randomDouble(-Double.MAX_VALUE, Double.MAX_VALUE);\n }", "public static double genRandomRestNumber() {\n return Simulator.randomGenerator.genRandomRest();\n }", "public int getRandomInt(int upper) {\n int retVal = myRandom.nextInt() % upper;\n if (retVal < 0) {\n retVal += upper;\n }\n return (retVal);\n }", "public static double random(double input){\n\t\treturn Math.random()*input;\n\t}", "int random(int m)\n {\n return (int) (1 + Math.random()%m);\n }", "public static double doubleSample() {\n return random_.nextDouble();\n }", "public static int generateRandomNumber(int topBoundary)\n\t{\n\t\tRandom r = new Random();\n\t\treturn r.nextInt(topBoundary);\n\t}", "public static int randInt() {\n\t\tint min = 10;\n\t\tint max = 99999999;\n\t\tRandom rand = new Random();\n\t\tint randomNum = (rand.nextInt((max - min) + 1) + rand.nextInt((max - min) + 1)) / 2;\n\t\treturn randomNum;\n\t}", "public static void main(String[] args) {\n\r\n\t\tRandom rr=new Random();\r\n\t\t\r\n\t\tSystem.out.println(Math.random());//[0,1)\r\n\t\t \r\n\t\t// 第一种情况 int(强转之后最终的值一定是0)\r\n\t\t// 第二种情况 int(强转之后将小数点舍去 1-5)\r\n\t\tSystem.out.println((int)Math.random()*5);//0.99*5永远到不了5\r\n\t\tSystem.out.println((int)(Math.random()*5+1));//[1,5.)\r\n\t\t\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\t\r\n\t\tfor(int i=0;i<=20;i++){\r\n\t\t\tSystem.out.print(i%7+\"-\");\r\n\t\t\t\r\n\t\t}\r\n\t\t//1-M的随机产生\r\n\t\t//(int)(Math.random()*M+1)\r\n\t\t\r\n\t\t\r\n\t\t//产生0 1的概率不同 Math.random()<p?0:1\r\n\t\tSystem.out.println(\"----\"+rr.rand01p());\r\n\t\tSystem.out.println(\"----\"+rr.rand01());\r\n\t\tfor(int i=0;i<=11;i++){\r\n\t\t\tSystem.out.print(i%6+\"-\");\r\n\t\t \t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(rr.rand106());\r\n\t}", "public float randomQual() {\n\t\treturn((float) getRandomInteger(30,250));\n\t}", "private int randomInt(int lower, int upper) {\n\t\treturn (int) ((upper - lower + 1) * Math.random()) + lower;\n\t}", "public int root2(){\n\t\t\tRandom r1=new Random();\n\t\t\tint r2= r1.nextInt((9) + 1) + 1;\n\t\t\treturn r2;\n\t}", "private int randomAge() {\n \tint low = 18;\n \tint high = 100;\n \tint offset = high - low;\n \tRandom r = new Random();\n \treturn r.nextInt(offset) + low;\n \t\n }", "public static double newRand(double low, double high) {\n //Calculates the range from high to low\n double range = high - low;\n\n //Calculates a value within the range\n double value = range * Math.random();\n\n //Returns the relevant value\n return high - value;\n }", "public int rand(int idT){\r\n Random r = new Random(); \r\n int Low = ((idT*2) + (idT-2));\r\n int High = idT*3;\r\n \r\n int R = r.nextInt ((High+1)-Low) + Low;\r\n System.out.print(\"Low :\"+Low+\",\"+\" high :\"+High+ \" \");\r\n return R;\r\n }", "public static float fastRandomFloat(){\n\t\treturn rdm.nextFloat();\n\t\t//return ((double)(fastRandomInt()) - ((double)Integer.MIN_VALUE)) / (-(Integer.MIN_VALUE * 2.0));\n\t}", "@Override\r\n public Double getValue() {\r\n return Math.random()*Integer.MAX_VALUE;\r\n \r\n }", "public static int getRndSalary() {\n return ThreadLocalRandom.current().nextInt(10, 100000 + 1);\n }", "public double doubleRandomNegativeNumbers() {\n\t\tdouble result = 0.0;\n\t\tresult = rnd.nextDouble() * (-10);\n\t\treturn result;\n\t}", "public static int customRandom(int range)\n {\n \tint random = (int)(Math.random()*10)%range;\n\t\n\treturn random;\n }", "public double sample_value() {\n checkHasParams();\n return -Math.log(Util.random()) / this.lambda;\n }", "private static int getRandomNumber(int min, int max) \n { //generates a random number within a range\n return (min + rand.nextInt((max - min) + 1));\n }", "public int generateNumberMonster (double low, double high){\r\n\r\n\t\trandom = (int)((high - low+1 )*Math.random() + high);\r\n\r\n\t\treturn random;\t\t\t\t\t\t\r\n\r\n\t}", "public int getRandomNum (int first, int last)\n\t{\n\t\tint smallerNum, largerNum;\n\t\tsmallerNum = Math.min(first, last);\n\t\tlargerNum = Math.max(first, last);\n\t\t\n\t\t return (int)(smallerNum + Math.random() * (largerNum-smallerNum+1));\n\t}", "public int randBetween(int start, int end) {\n\t\treturn start + (int) Math.round(Math.random() * (end - start));\n\t}", "int RandomGenerator0To29 (){\n\t\t int randomInt2 = 0;\n\t\t Random randomGenerator2 = new Random();\n\t\t for (int idx2 = 1; idx2 <= 10; ++idx2) {\n\t\t\t randomInt2 = randomGenerator2.nextInt(30);\n\t\t }\n\t\t return randomInt2;\n\t }", "public static int getRandomAmount(){\n return rand.nextInt(1000);\n }", "public static double rand(double min, double max) {\n\n\t\treturn min + (max - min) * Math.random();\n\n\t}", "private int _getRandomFromRange(int min, int max) {\n\t \n return min + random_.nextInt(max - min + 1);\n }", "private int rand() {\n return (int)(Math.random()*(RAND_MAX + 1));\n }", "private int genRandomWaveNum(int min, int max){\n int m = genRandomInt(min, max);\n return m;\n }", "protected int random(int min, int max) {\n\t\treturn this.rand.nextInt(max-min) + min;\n\t}" ]
[ "0.6992015", "0.69555426", "0.6952166", "0.6914932", "0.68452257", "0.68041396", "0.6784181", "0.67606777", "0.6719297", "0.6629036", "0.6597988", "0.6589608", "0.6552947", "0.64801246", "0.6456781", "0.64458084", "0.6424464", "0.64132077", "0.6411718", "0.6390132", "0.6336216", "0.63283306", "0.63219404", "0.63196146", "0.63100135", "0.63062394", "0.6290606", "0.6277733", "0.6268777", "0.6261506", "0.6239349", "0.6211429", "0.6209162", "0.6173827", "0.6171275", "0.61704594", "0.61702496", "0.61628944", "0.6162061", "0.61552143", "0.6128231", "0.612787", "0.61152196", "0.60876054", "0.60822874", "0.60767037", "0.6070349", "0.60671514", "0.6057502", "0.6057069", "0.6053643", "0.6052282", "0.6050451", "0.60448915", "0.6039597", "0.60369915", "0.6032364", "0.6024446", "0.60159993", "0.60148644", "0.6009814", "0.59975564", "0.59707063", "0.5968178", "0.59611374", "0.5947948", "0.59399956", "0.5916069", "0.5911715", "0.59010434", "0.5878953", "0.5877824", "0.58742523", "0.5866102", "0.5851699", "0.58512515", "0.58497036", "0.58469903", "0.58439046", "0.5835797", "0.5835152", "0.58335793", "0.58267456", "0.58176434", "0.58169067", "0.58148426", "0.58121854", "0.5803952", "0.5797545", "0.5786253", "0.5785543", "0.5784375", "0.5782535", "0.57794696", "0.57771873", "0.57711697", "0.5765772", "0.57609355", "0.57540876", "0.5752765" ]
0.6869718
4
/ Counts how many input files were used to produced a given merged VCF File based on length of SUPP_VEC field
static int countInputs(String mergedVcf) throws Exception { Scanner input = new Scanner(new FileInputStream(new File(mergedVcf))); while(input.hasNext()) { String line = input.nextLine(); if(line.length() == 0 || line.startsWith("#")) { continue; } VcfEntry entry = new VcfEntry(line); input.close(); return entry.getInfo("SUPP_VEC").length(); } input.close(); return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int computeCount() {\n \n int count;\n try{\n count = this.clippingFeatures.size() * this.featuresToClip.size();\n }catch(ArithmeticException e ){\n \n count = Integer.MAX_VALUE;\n }\n return count;\n }", "int getSourceFileCount();", "int countByExample(AvwFileprocessExample example);", "int getFileCount();", "int getFilesCount();", "int getFilesCount();", "int getFileInfoCount();", "int getFileNamesCount();", "int getFileNamesCount();", "int sizeOfFeatureArray();", "int sizeOfFeatureArray();", "int countFeatures();", "int countFeatures();", "int getSrcIdCount();", "public Vector<file> count()\n {\n Vector<Model.file> files = new Vector<>();\n try\n {\n pw.println(11);\n\n files = (Vector<Model.file>) ois.readObject();\n\n }\n catch (ClassNotFoundException | IOException e)\n {\n System.out.println(e.getMessage());\n }\n return files ;\n }", "public long getCount() {\n long count = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n count += encoder.getCount();\n }\n }\n \n return count;\n }", "public synchronized int size() {\n return\n this.oPreprocessingParams.size() +\n this.oFeatureExtractionParams.size() +\n this.oClassificationParams.size();\n }", "int sizeOfClassificationArray();", "int getChunksCount();", "int getChunksCount();", "private int getFilesCount(File inputFile) {\n File[] files = inputFile.listFiles();\n int result = 0;\n\n for (File file : Objects.requireNonNull(files)) {\n if (!shouldInterrupt.get()) {\n if (file.isDirectory()) {\n result = result + getFilesCount(file);\n }\n else {\n result++;\n }\n }\n }\n return result;\n }", "int getBloomFilterSizeInBytesCount();", "public static native int Size(long lpjFbxArrayVector2);", "int getProbeFieldsCount();", "int getInputsCount();", "int getInputsCount();", "int getInputsCount();", "public int getMuxSize(ArrayList<VerilogComp> inputs) {\n int count = 0;\n for (int i = 0; i < inputs.size(); i++) {\n boolean isDup = false;\n for (int j = i + 1; j < inputs.size(); j++) {\n if (inputs.get(i).getName().equals(inputs.get(j).getName()))\n isDup = true;\n }\n if (!isDup)\n count++;\n }\n\n int size = IntToBinary.strickBinary(count - 1).length();\n\n\n switch (size) {\n case 1:\n return 2;\n case 2:\n return 4;\n case 3:\n return 8;\n\n }\n return 16;\n }", "int sizeOfRelatedArray();", "public int getFileCount() {\n waitPainted(-1);\n Component list = getFileList();\n if(list instanceof JList)\n return ((JList)list).getModel().getSize();\n else if(list instanceof JTable)\n return ((JTable)list).getModel().getRowCount();\n else\n throw new IllegalStateException(\"Wrong component type\");\n }", "int getNumOfChunks();", "private int mergeVectors() throws IOException {\n final TermVectorsWriter termVectorsWriter = codec.termVectorsFormat().vectorsWriter(directory, mergeState.segmentInfo, context);\n\n try {\n return termVectorsWriter.merge(mergeState);\n } finally {\n termVectorsWriter.close();\n }\n }", "@SuppressWarnings(\"deprecation\")\r\n\tpublic CountingResult count(\r\n\t\t\tboolean useInlinedVersion,\r\n\t\t\tString suffix,\t\t//for naming purposes\r\n\t\t\tboolean useCaller, //Compressor.compress\r\n\t\t\tboolean useCallee1_CodeTable_of, //CodeTable.of\r\n\t\t\tboolean useCallee2_CodeTable_set, //CodeTable.set\r\n\t\t\tboolean useCallee3_HashTable_clear, //HashTable.clear\r\n\t\t\tboolean useCallee4_HashTable_hsize, //HashTable.hsize\r\n\t\t\tboolean useCallee5_HashTable_of_hash, //HashTable.of_hash\r\n\t\t\tboolean useCallee6_HashTable_set_hash, //HashTable.set_hash\r\n\t\t\tboolean useCallee7_Compressor_clblock, //Compressor.clblock\r\n\t\t\tboolean useCallee8_Compressor_output, //Compressor.output\r\n\t\t\tboolean useCallee9_InputBuffer_readByte, //InputBuffer.readByte\r\n\t\t\tboolean useCalleeA_Compressor_getMaxCode, //\r\n\t\t\tboolean useCalleeB_OutputBuffer_writeByte,\r\n\t\t\tboolean useCalleeC_OutputBuffer_writeBytes\r\n\t\t\t\r\n\t\t\t) {\r\n\t\tlog.debug(\"Entering SPECCompressStartingCounter.count with file \"+\r\n\t\t\t\tHarness.MK_FILES_NAMES[Harness.MK_getFileIndex()]+\", size \"+\r\n\t\t\t\tHarness.MK_FILES_SIZES[Harness.MK_getFileIndex()]+\"\");\r\n\t\tString packageName = \"spec.benchmarks.compress\";\r\n\t\tif (useInlinedVersion){\r\n\t\t\tpackageName = \"spec.benchmarks.compress_inlined\";\r\n\t\t}\r\n\t\t\r\n//1. Set up a BytecodeCounter instance to use ByCounter, using a parameterless constructor. \r\n\t\tBytecodeCounter counter = new BytecodeCounter(); //the only constructor available\r\n\t\tCountingResultCollector.getInstance().clearResults();\r\n\r\n//2. Specify the methods to be instrumented //TODO shift into \"if\"-bodies\r\n\t\tList<MethodDescriptor> methodsToInstrument = new ArrayList<MethodDescriptor>();\r\n\t\t\r\n\t\tprepareMethodsToInstrument(\r\n\t\t\t\tuseInlinedVersion, \r\n\t\t\t\tuseCaller, \r\n\t\t\t\tuseCallee1_CodeTable_of,\r\n\t\t\t\tuseCallee2_CodeTable_set, \r\n\t\t\t\tuseCallee3_HashTable_clear, //problematic\r\n\t\t\t\tuseCallee4_HashTable_hsize, //problematic\r\n\t\t\t\tuseCallee5_HashTable_of_hash, \r\n\t\t\t\tuseCallee6_HashTable_set_hash,\r\n\t\t\t\tuseCallee7_Compressor_clblock, \r\n\t\t\t\tuseCallee8_Compressor_output, \r\n\t\t\t\tuseCallee9_InputBuffer_readByte,\r\n\t\t\t\tuseCalleeA_Compressor_getMaxCode, \r\n\t\t\t\tuseCalleeB_OutputBuffer_writeByte,\r\n\t\t\t\tuseCalleeC_OutputBuffer_writeBytes,\r\n\t\t\t\tpackageName,\r\n\t\t\t\tmethodsToInstrument);\r\n\t\r\n\t\tInstrumentationParameters ip = new InstrumentationParameters(\r\n\t\t\t\tmethodsToInstrument, //methods to instrument\r\n\t\t\t\ttrue, // use high registers for counting\r\n\t\t\t\ttrue, // use resultCollector\r\n\t\t\t\tfalse, // use array parameter recording\r\n\t\t\t\tfalse, // count statically\r\n//\t\t\t\t-1, // start line\r\n//\t\t\t\t-1, // stop line\r\n\t\t\t\tInstrumentationParameters.COUNTER_PRECISION_LONG);\r\n\t\tcounter.setInstrumentationParams(ip);\r\n\t\t\r\n//3. now tell ByCounter to instrument the specified method(s)\r\n\t\tcounter.instrument();\r\n\t\t\r\n//4. let ByCounter execute a (not necessarily instrumented) method \r\n\t\t//note that this class must be reloaded! TODO check TODO explain: reloaded <by whom>?\r\n\t\tMethodDescriptor methodToExecute = new MethodDescriptor(\r\n\t\t\t\tpackageName+\".Main\", \r\n\t\t\t\t\"public static void main(java.lang.String args[])\");\r\n\t\tcounter.execute(methodToExecute, new Object[] {new String[]{}});\r\n\t\t\r\n//5. now that ByCounter has completed counting, we can fetch all the results,\r\n\t\t//i.e. get the results list from CountingResultCollector\r\n\t\tCountingResultCollector crc = CountingResultCollector.getInstance();\r\n\t\tList<CountingResult> results = \r\n\t\t\tcrc.retrieveAllCountingResults_nonRecursively();\r\n\t\tlog.info(results.size()+\" counting results found in CountingResultCollector\");\r\n//\t\tif(results!=null && results.size()>0){//this check should happen further above...\r\n//\t\t\tCountingResult lastResultInCollection = results.get(results.size()-1);\r\n//\t\t\tlog.debug(\"Last CountingResult in collection: \");\r\n//\t\t\tCountingResultCollector.getInstance().logResult(lastResultInCollection);\r\n////\t\t\tcsvrw = new CSVResultWriter(true,';',true,true,\"CountingResult_last\",\"MK.csv\",\"MK_results\",true,false,true,true,false);\r\n////\t\t\tcsvrw.writeResult(lastResultInCollection);\r\n//\t\t}\r\n\t\t\r\n\t\tSystem.err.println(\"START of full CountingResult logging, reinstante \\\"last results\\\" logging instead!\");\r\n\t\tfor(CountingResult r : results){\r\n//\t\t\tcrc.logResult(r, true, true);\r\n\t\t\tlog.debug(r);\r\n\t\t}\r\n\t\tSystem.err.println(\"END of full CountingResult logging, reinstante \\\"last results\\\" logging instead!\");\r\n\t\t\r\n//6.+7. aggregate and compare total results\r\n\t\tCountingResult sumOfAllCountingResults = aggregateEvaluateAndCompareResults(\r\n\t\t\t\tsuffix, //TODO \r\n\t\t\t\tcrc, //CountingResultCollector instance\r\n\t\t\t\tresults //List of CountingResults, not yet aggregated (i.e. not yet evaluated)\r\n\t\t);\r\n\t\t\r\n\t\tlog.info(\"Finished compressing the file \"+\r\n\t\t\t\tHarness.MK_FILES_NAMES[Harness.MK_getFileIndex()]+\"with size \"+\r\n\t\t\t\tHarness.MK_FILES_SIZES[Harness.MK_getFileIndex()]+\"\");\r\n\t\t//8. clear the results as we do not need them anymore\r\n\t\tCountingResultCollector.getInstance().clearResults();\r\n\t\treturn sumOfAllCountingResults;\r\n\t}", "public int count()\r\n {\r\n return this.classNameToJavaSourceFileMap.size();\r\n }", "int getFeaturesCount();", "public int calculateSize( int numSamples )\n {\n return numSamples * 2;\n }", "private Map<ServerFile, Integer> totalFiles(){\n\t\tMap<ServerFile, Integer> ret = new HashMap<ServerFile, Integer>();\n\t\tfor (ClientObj c : clients){\n\t\t\tfor (ServerFile f : c.getFiles()){\n\t\t\t\tif (!ret.containsKey(f))\n\t\t\t\t\tret.put(f, 1);\n\t\t\t\telse\n\t\t\t\t\tret.put(f, ret.get(f) + 1);\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public int vecLength();", "public void incFileCount(){\n\t\tthis.num_files++;\n\t}", "int getFieldCount();", "public long numCandidates();", "int sizeOfPerformerArray();", "int countTypedFeatures();", "default int countItems(Predicate<ItemStack> filter) {\n return streamStacks().filter(filter).mapToInt(InvTools::sizeOf).sum();\n }", "int getProcessorpathCount();", "public static native int GetNbItems(long lpjFbxStatistics);", "private int countIfs (CtMethod<?> ifin){\n List<CtIf> ifCalls = ifin.getElements(new TypeFilter<CtIf>(CtIf.class));\n return ifCalls.size();\n }", "int sizeOfPlanFeatureArray();", "public double getNumFiles(){\n\t\treturn (this.num_files);\n\t}", "public int getnumFiles() {\r\n\t\t//initialize the variable numFiles \r\n\t\tthis.numFiles=0;\r\n\r\n\t\t/*An enhanced for loop is used to iterate through the arraylist.\r\n\t\t * An if statement checks in the object at the \"item\" index is of type file\r\n\t\t * If it is the numFiles variable is incremented by 1.\r\n\t\t * Otherwise, it is a directory, and the the getnumFiles is called recursively to search\r\n\t\t * for files in the folder.\r\n\t\t */\r\n\t\tfor (DirectoryComponent item : DirectoryList){\r\n\t\t\tif(item instanceof File){\r\n\t\t\t\tthis.numFiles ++;\r\n\t\t\t} else {\r\n\t\t\t\tthis.numFiles += item.getnumFiles();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn numFiles;\r\n\t}", "int getBlockNumbersCount();", "public void testF() {\n\t\tfor (int k = 0; k < usedSS; k++) {\n\t\t\tList<Integer> subStr = vals.subList(k*compSize, (k+1)*compSize);\n\t\t\tint sum = (int) subStr.stream().filter(i -> i != BipartiteMatching.FREE).count();\n\t\t\tfData.add(sum);\t\t\t\n\t\t}\n\t}", "public int nbOutputFiles() {\n\treturn getOutputFiles().size();\n }", "int getChunksLocationCount();", "public int getFileInfoCount() {\n if (fileInfoBuilder_ == null) {\n return fileInfo_.size();\n } else {\n return fileInfoBuilder_.getCount();\n }\n }", "public int getVcCount() {\n return vc_.size();\n }", "public int getFilesCount() {\n if (filesBuilder_ == null) {\n return files_.size();\n } else {\n return filesBuilder_.getCount();\n }\n }", "public int getFeaturesCount();", "private int countFors (CtMethod<?> Forin){\n List<CtFor> forCalls = Forin.getElements(new TypeFilter<CtFor>(CtFor.class));\n List<CtForEach> forEachCalls = Forin.getElements(new TypeFilter<CtForEach>(CtForEach.class));\n return forCalls.size()+forEachCalls.size();\n }", "int countByExample(ProcurementSourceExample example);", "public int size(Feature f){\n\t\treturn featureIndex(f).size();\n\t}", "public int getNoOfPermutationsCV(ArrayList<String[]> records){\n\t\tString[] firstLine=records.get(0);\n\t\treturn Integer.parseInt(firstLine[2]);\n\t}", "public long findByConditionCount(FFileInputDO FFileInput) throws DataAccessException;", "public static int filesWithSizes (File f)\n\t{\n\t\tif (f.isFile())\n\t\t{\n\t\t\tif (f.length()>= 10000 && f.length() <= 25000)\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint count = 0;\n\t\t\tfor (File file: f.listFiles())\n\t\t\t{\n\t\t\t\tcount += filesWithSizes(file);\n\t\t\t}\n\t\t\treturn count;\n\t\t}\n\t}", "int getBlockNumsCount();", "int getBlockNumsCount();", "public int getFeaturesSize(int chromosome);", "int sizeOfObjectDefinitionArray();", "int getFHPackagesCount();", "public static int getNumAlignedBasesCountingSoftClips(final GATKSAMRecord r) {\n int n = 0;\n final Cigar cigar = r.getCigar();\n if (cigar == null) return 0;\n\n for (final CigarElement e : cigar.getCigarElements())\n if (ALIGNED_TO_GENOME_PLUS_SOFTCLIPS.contains(e.getOperator()))\n n += e.getLength();\n\n return n;\n }", "int sizeOfGuideArray();", "public int getVcCount() {\n if (vcBuilder_ == null) {\n return vc_.size();\n } else {\n return vcBuilder_.getCount();\n }\n }", "public int sizeOfImportArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(IMPORT$0);\n }\n }", "public int sizeOf();", "public int sizeFilter() {\n\t\treturn this.size(FILTER);\n\t}", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n Paths sapComponents = sap(v, w);\n return sapComponents == null ? NO_ANCESTOR : sapComponents.length();\n }", "int getTokenSegmentCount();", "@Override\r\n public int getSize() {\n return vs.size();\r\n }", "public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$14);\r\n }\r\n }", "public int getNumComps(){\n return this.mFarm.getNumComps();\n }", "public static int sizeOf()\n {\n return 4;\n }", "static int size_of_cpe(String passed){\n\t\treturn 3;\n\t}", "public int countInversion(){\n\t\tsetInversiones(0);\n\t\tnumeros = countStep(numeros, 0, numeros.size()-1);\n\t\treturn getInversiones();\n\t}", "int getSourcepathCount();", "int getSourcepathCount();", "public String getNumFiles() {\n\t\ttry {\n\t\t\tFile dir = new File(getLocationOfFiles());\n\t\t\treturn Long.toString(dir.listFiles(new XMLFileFilter()).length);\n\t\t} catch (Throwable e) {\n\t\t\treturn \"0\";\n\t\t}\n\t}", "static int size_of_ori(String passed){\n\t\treturn 2;\n\t}", "public int count(){\n\tboolean val = false;\n\tint cont = 0;\n\tfor(int i =0;i<arch.length && !val;i++){\n\t\tif(arch[i]!=null){\n\t\t\tcont++;\n\t\t}\n\t\telse{\n\t\t\tval=true;\n\t\t}\n\t}\n\treturn cont;\n}", "static native int jniSize(\n long patch, int includeContext, int includeHunkHeaders, int includeFileHeaders);", "public int getFeaturesCount(Das2FeaturesQueryI query) { want to support fast way of determining feature count across entire genome assembly\n\t// query requirements to support fast method:\n\t// no overlaps, insides, excludes, coordinates, links, names, notes parameters\n\t// single captype parameter\n\t// note that this will be less efficient for \"split\" data types, where each sequence in the \n\t// assembly has its own table, thus requiring either querying each table or querying \n\t// mysql INFORMATION_SCHEMA.TABLES and summing across table counts. Fortunately there \n\t// appears to be a practical limit on the the number of tables one would need to query, \n\t// since for partial assemblies where the number of sequences in the assembly is likely \n\t// to be large (example, bosTau4, 12,000 sequences) UCSC doesn't use split tables \n\t// (I'm assuming to avoid for example 12,000 tables needed for a bosTau4 split data captype)\n\n\t// example of alternative with querying INFORMATION_SCHEMA.TABLES: \n\t// SELECT TABLE_NAME, TABLE_ROWS, UPDATE_TIME FROM INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA = 'apiMel2' AND TABLE_NAME like '%_chainDm2';\n\t//\n\t// see http://stackoverflow.com/questions/1018336/getting-row-count-for-a-table-in-mysql\n\t// for argument for using INFORMATION_SCHEMA instead of \"select count(*)\", if mysql is \n\t// using InnoDB engine or if engine is unknown. If engine is known to be MyISAM then \n\t// \"select count(*)\" is fine. Based on current hgcentral.sql DB initialization script, \n\t// UCSC appears to only use MyISAM, but not sure if this will always be the case\n\t//\n\t// would also like to support fast method of feature count for a single sequence\n\t// but for many UCSC data types, this would require a much less efficient \n\t// select statement with a \"where\" clause, so not supporting this at least for no\n\t//\n\tint feat_count = 0;\n\tList<URI> types = query.getTypes();\n\tif (types.size() == 1 && \n\t query.getOverlaps().size() == 0 &&\n\t query.getInsides().size() == 0 &&\n\t query.getExcludes().size() == 0 && \n\t query.getCoordinates().size() == 0 &&\n\t query.getLinks().size() == 0 && \n\t query.getNames().size() == 0 &&\n\t query.getNotes().size() == 0 ) {\n\n\t URI typeuri = types.get(0);\n\t UcscType utype = (UcscType) getTypesCapability().getType(typeuri);\n\t boolean is_split = utype.isSplit();\n\t TrackType track_type = utype.getTrackType();\n\t String table_name_clause;\n\t if (is_split) {\n\t\ttable_name_clause = \"TABLE_NAME like '%_\" + utype.getName() + \"'\";\n\t }\n\t else {\n\t\ttable_name_clause = \"TABLE_NAME = '\" + utype.getTableName() + \"'\";\n\t }\n\t Connection conn = null;\n\t Statement stmt = null;\n\t ResultSet rs = null;\n\t try {\n\t\tconn = ucsc_version.getDbConnection();\n\t\tString genome_name = ucsc_version.getName();\n\t\t// String count_query = \"SELECT COUNT(*) FROM \" + utype.getName();\n\t\tString count_query = \"SELECT TABLE_NAME, TABLE_ROWS FROM INFORMATION_SCHEMA.TABLES \" + \n\t\t \"where TABLE_SCHEMA = '\" + genome_name + \"' AND \" + table_name_clause;\n\t\tstmt = conn.createStatement();\n\t\trs = stmt.executeQuery(count_query);\n\t\t// looping will cover both non-split cases (single entry) and \n\t\t// split cases (entry per sequence)\n\t\twhile (rs.next()) {\n\t\t if (is_split && rs.getString(\"TABLE_NAME\").startsWith(\"all_\")) {\n\t\t\t// skip \"all_***\" tables for split table types, since counts should be reflected \n\t\t\t// in individaul sequence tables\n\t\t\tcontinue;\n\t\t }\n\t\t else {\n\t\t\tfeat_count += rs.getInt(\"TABLE_ROWS\");\n\t\t }\n\t\t}\n\t\tif (DEBUG_ANNOT_COUNT) { System.out.println(utype.getName() + \" total annot count: \" + feat_count); }\n\t } catch (Exception ex) {\n\t\tLogger.getLogger(UcscFeaturesCapability.class.getName()).log(Level.SEVERE, null, ex);\n\t\tfeat_count = -1; // return feat_count of -1 ==> means couldn't be determined\n\t }\n\t finally {\n\t\ttry {\n\t\t if (rs != null) { rs.close(); }\n\t\t if (stmt != null) { stmt.close(); }\n\t\t if (conn != null) { conn.close(); }\n\t\t} catch (SQLException ex) { ex.printStackTrace(); }\n\t }\n\t}\n\t \n\telse {\n\t // can also easily add support for inefficient but more general query mechanism by \n\t // calling getFeatues(query), then doing response.getFeatures().size()\n\t //\tString count_query = \"SELECT COUNT(*) FROM \" + table_name;\n\n\t // return feat_count of -1 ==> means couldn't be determined\n\t feat_count = -1;\n\t}\n\treturn feat_count;\n }", "private int getSelectedCount() {\r\n\t int count = 0;\r\n\t for (int i = 0; i < _selectedList.size(); ++i) {\r\n\t count += _selectedList.get(i) ? 1 : 0;\r\n\t }\r\n\t return count;\r\n\t}", "public static int getNSectors()\n {\n return Disk.NUM_OF_SECTORS - ADisk.REDO_LOG_SECTORS - 1;\n }", "int getPartsCount();", "int getPartsCount();", "public int getNumberOfInProcessFiles() {\n return numberOfInProcessFiles;\n }", "int getNumSources();", "public long getSize() {\n long size = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n size += encoder.size();\n }\n }\n \n return size;\n }", "private void countCharactersInFile() {\n\t\ttry (BufferedReader reader = Files.newBufferedReader(sourceFile, CHARSET)) {\n\t\t\tfinal char[] buffer = new char[8192];\n\t\t\tint nb = -1;\n\t\t\twhile (reader.ready()) {\n\t\t\t\tnb = reader.read(buffer);\n\t\t\t\tfor (int i = 0; i < nb; i++) {\n\t\t\t\t\tcharacterCount[buffer[i]]++;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (final IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "String aggrConfigInfoCount(int size, boolean isIn);", "public int sizeFilter2() {\n\t\treturn this.size(FILTER2);\n\t}" ]
[ "0.6198377", "0.59910977", "0.5948674", "0.59035665", "0.5897613", "0.5897613", "0.5859766", "0.58228683", "0.58228683", "0.57049954", "0.57049954", "0.563565", "0.563565", "0.5627574", "0.5602646", "0.55733144", "0.55460197", "0.5530989", "0.5529719", "0.5529719", "0.551636", "0.5511328", "0.54954195", "0.54590344", "0.5458496", "0.5458496", "0.5458496", "0.5447117", "0.5441012", "0.54173124", "0.54127276", "0.53898394", "0.5384257", "0.53619397", "0.53515345", "0.535102", "0.5341192", "0.5324427", "0.5321205", "0.53176755", "0.53140026", "0.53135216", "0.5308191", "0.5305407", "0.5292943", "0.5292438", "0.5290715", "0.52886873", "0.5280251", "0.526852", "0.5268505", "0.52605176", "0.52573514", "0.525311", "0.5240943", "0.5234958", "0.5231629", "0.5223776", "0.5220927", "0.52185905", "0.52162635", "0.52094823", "0.5205895", "0.5203831", "0.5202558", "0.5202558", "0.5197299", "0.51871467", "0.51833296", "0.5180433", "0.5170954", "0.5168701", "0.5162", "0.51603526", "0.5157534", "0.51558197", "0.51514465", "0.51493853", "0.5147206", "0.51453793", "0.5139817", "0.51386976", "0.51339865", "0.51317865", "0.51317865", "0.5129646", "0.5126655", "0.5125176", "0.5118342", "0.51180124", "0.51154655", "0.51148957", "0.5113344", "0.5113344", "0.5110937", "0.51067245", "0.51055205", "0.5104766", "0.5104193", "0.5098652" ]
0.79652673
0
TODO Autogenerated method stub
public static void sycNewTraderClient() { String key = "123"; try { if(newTradeServiceLock.tryLock(5, TimeUnit.SECONDS)){ try{ if(mapTradeService.containsKey(key)){ //客户端发起重连,但是服务端没有断开 } }finally{ newTradeServiceLock.unlock(); } } else{ System.err.println("线程已经超时返回! key : "+key); } } catch (InterruptedException e) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Creates an effect that causes one more cards not on table (e.g. in a card pile, in hand, etc.) to be placed in a card pile simultaneously.
public PlaceCardsInCardPileFromOffTableSimultaneouslyEffect(Action action, Collection<PhysicalCard> cardsToPlaceInCardPile, Zone cardPile, String cardPileOwner, boolean toBottomOfPile) { super(action); _originalCardsToPlaceInCardPile = Collections.unmodifiableCollection(cardsToPlaceInCardPile); _cardPile = cardPile; if (_cardPile == Zone.LOST_PILE) throw new UnsupportedOperationException("Should not call this with cardPile " + cardPile); _cardPileOwner = cardPileOwner; _toBottomOfPile = toBottomOfPile; _that = this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fakeCards(){\n this.drawPile = new ArrayList<>();\n drawPile.add(new RemoveActionCard(\"Fernsprechgerät\", (float) 0.5, 4, new SpecialActions(0,0,1) ));\n drawPile.add(new MovingCard(\"Millionärin\", 4, 5, 4, 99, new COLOR[]{COLOR.SAND}));\n drawPile.add(new RemoveMoveSellCard(\"Propellerflugzeug\", 4, 4, 4, 99, new COLOR[]{COLOR.SAND, COLOR.RIVER, COLOR.JUNGLE,COLOR.ENDFIELDJUNGLE,COLOR.ENDFIELDRIVER}));\n drawPile.add(new MovingCard(\"Ureinwohner\", (float) 0.5, 5, 99, 1, new COLOR[]{COLOR.BASECAMP, COLOR.RUBBLE, COLOR.JUNGLE, COLOR.SAND, COLOR.RIVER,COLOR.ENDFIELDJUNGLE,COLOR.ENDFIELDRIVER}));\n drawPile.add(new ActionCard(\"Wissenschaftlerin\", (float) 0.5, 4, new SpecialActions(1,1,0)));\n drawPile.add(new MovingCard(\"Pionier\", (float) 0.5, 5, 5, 99, new COLOR[]{COLOR.JUNGLE,COLOR.ENDFIELDJUNGLE}));\n drawPile.add(new ActionCard(\"Kartograph\", (float) 0.5, 4, new SpecialActions(2,0,0)));\n drawPile.add(new ActionCard(\"Kartograph\", (float) 0.5, 4, new SpecialActions(2,0,0)));\n Collections.shuffle(drawPile);\n }", "private void doCardEffects(Card c) {\r\n\t\tcurrentPlayer.updateSkill(c.getSkill());\r\n\t\tcurrentPlayer.updateBoots(c.getBoots());\r\n\t\tcurrentPlayer.updateSwords(c.getSwords());\r\n\t\tcurrentPlayer.updateGold(c.getGold());\r\n\t\tcurrentPlayer.updateClankOnBoard(c.getClank());\r\n\t\tif (c.isTeleport()) {\r\n\t\t\tcurrentPlayer.updateTeleports(1);\r\n\t\t}\r\n\t\t\r\n\t\t// Do swag effect\r\n\t\tif (currentPlayer.getSwags() > 0 && c.getClank() > 0) currentPlayer.updateSkill(c.getClank()*currentPlayer.getSwags());\r\n\t\t\r\n\t\t// Draw last (not sure if required)\r\n\t\tcurrentPlayer.draw(c.getDraw());\r\n\t\t\r\n\t\t// Calculate conditions\r\n\t\tif (c.getCondition() != null) {\r\n\t\t\tif (c.getCondition()[0].contentEquals(\"companion\")) {\r\n\t\t\t\tif (currentPlayer.hasCompanion()) {\r\n\t\t\t\t\tcurrentPlayer.draw(1);\r\n\t\t\t\t}\r\n\t\t\t} else if (c.getCondition()[0].contentEquals(\"artifact\")) {\r\n\t\t\t\tif (currentPlayer.has(\"Artifact\")) {\r\n\t\t\t\t\tif (c.getCondition()[1].contentEquals(\"teleport\")) {\r\n\t\t\t\t\t\tcurrentPlayer.updateTeleports(1);\r\n\t\t\t\t\t} else if (c.getCondition()[1].contentEquals(\"skill\")) {\r\n\t\t\t\t\t\tcurrentPlayer.updateSkill(2);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (c.getCondition()[0].contentEquals(\"crown\")) {\r\n\t\t\t\tif (currentPlayer.has(\"Crown\")) {\r\n\t\t\t\t\tif (c.getCondition()[1].contentEquals(\"heart\")) {\r\n\t\t\t\t\t\tupdateHealth(currentPlayer,1);\r\n\t\t\t\t\t} else if (c.getCondition()[1].contentEquals(\"swordboot\")) {\r\n\t\t\t\t\t\tcurrentPlayer.updateSwords(1);\r\n\t\t\t\t\t\tcurrentPlayer.updateBoots(1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (c.getCondition()[0].contentEquals(\"monkeyidol\")) {\r\n\t\t\t\tif (currentPlayer.has(\"MonkeyIdol\")) {\r\n\t\t\t\t\tcurrentPlayer.updateSkill(2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Unique Cards\r\n\t\tif (c.isUnique()) {\r\n\t\t\t// Choose cards\r\n\t\t\tif (c.getName().contentEquals(\"Shrine\") || c.getName().contentEquals(\"Dragon Shrine\") ||\r\n\t\t\t\tc.getName().contentEquals(\"Treasure Hunter\") || \r\n\t\t\t\tc.getName().contentEquals(\"Underworld Dealing\") || c.getName().contentEquals(\"Mister Whiskers\") ||\r\n\t\t\t\tc.getName().contentEquals(\"Wand of Wind\")) {\r\n\t\t\t\tmustChoose.add(c.getName());\r\n\t\t\t\tchoosePrompt();\r\n\t\t\t} else if (c.getName().endsWith(\"Master Burglar\")) {\r\n\t\t\t\tcurrentPlayer.trash(\"Burgle\");\r\n\t\t\t} else if (c.getName().contentEquals(\"Dead Run\")) {\r\n\t\t\t\tcurrentPlayer.setRunning(true);\r\n\t\t\t} else if (c.getName().contentEquals(\"Flying Carpet\")) {\r\n\t\t\t\tcurrentPlayer.setFlying(true);\r\n\t\t\t} else if (c.getName().contentEquals(\"Watcher\") || c.getName().contentEquals(\"Tattle\")) {\r\n\t\t\t\tgiveOthersClank(1);\r\n\t\t\t} else if (c.getName().contentEquals(\"Swagger\")) {\r\n\t\t\t\tcurrentPlayer.setSwags(currentPlayer.getSwags()+1);\r\n\t\t\t} else if (c.getName().contentEquals(\"Search\")) {\r\n\t\t\t\tcurrentPlayer.setSearches(currentPlayer.getSearches()+1);\r\n\t\t\t} else if (c.getName().contentEquals(\"Sleight of Hand\") || c.getName().contentEquals(\"Apothecary\")) {\r\n\t\t\t\t// Including itself\r\n\t\t\t\t// If there are other cards, add discard\r\n\t\t\t\tif (currentPlayer.getPlayArea().getNonPlayedSize() > 1) {\r\n\t\t\t\t\tmustDiscard.add(c.getName());\r\n\t\t\t\t\tdiscardPrompt();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void executeEffect() {\n\t\texecuteEffect(myCard);\n\t}", "void effect(Entity e, BoardPosition bp);", "public void addToDiscardPile(Card card) {\n CardSprite sprite = card.getSprite();\n discardPile.add(sprite);\n gameDrawer.removeFromDrawList(sprite);\n gameDrawer.addToDrawList(sprite);\n }", "public void giveOutCards() {\n boolean shared = false;\n while (!shared) {\n for (Player player : this.players) {\n if (this.cards.size() == 0) {\n shared = true;\n } else {\n Card card = this.cards.get(0);\n this.cards.remove(0);\n if (!envelope.has(card)) {\n player.addCard(card);\n }\n }\n }\n }\n }", "public void draw(Integer amount) {\n int amountTmp = amount;\n //CardAction cardAct = new CardAction(\"Draw \" + amountTmp + \" cards.\");\n\n while (drawPile.size() > 0 && amount > 0) {\n //cardAct.addCard(this.drawPile.get(0));\n handPile.add(drawPile.remove(0));\n amount--;\n }\n Random rand = new Random();\n if (drawPile.size() < 1 && amount != 0 && discardPile.size() > 0) {\n for (int i = discardPile.size(); i > 0; i--) {\n int rnd = rand.nextInt(discardPile.size());\n drawPile.add(discardPile.remove(rnd));\n //System.out.println(\"balbab\");\n }\n draw(amount);\n }\n }", "public void addCardFaceDown(Card c){\n c.setFaceDown();\n pile[pilePlace] = c;\n pilePlace++;\n }", "public void doArriveEffect(Card c) {\r\n\t\t// May change later\r\n\t\tif (c.getName().contentEquals(\"Shrine\")) {\r\n\t\t\tdragonClank += 3;\r\n\t\t\tif (dragonClank > 24) {\r\n\t\t\t\tdragonClank = 24;\r\n\t\t\t}\r\n\t\t// Overlord and Watcher so far\r\n\t\t} else {\r\n\t\t\tfor (int j = 0; j < players.size(); j++) {\r\n\t\t\t\tif (!players.get(j).isDead() && !players.get(j).isFree()) {\r\n\t\t\t\t\tplayers.get(j).updateClankOnBoard(1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tupdateBoardNoImageChange();\r\n\t}", "private void start(){\n character.fillEnergy();\n piles.getDrawPile().shuffle();\n for(int i = 1 ; i <= 5 ; i++ ){\n piles.drawCard();\n }\n effectHandler.startFight();\n\n }", "private void addAdditionalEffects()\n {\n // make them fly so they do not fall from suspension\n FLYING flying = new FLYING(p, duration + 10, targetID);\n Ollivanders2API.getPlayers().playerEffects.addEffect(flying);\n additionalEffects.add(O2EffectType.FLYING);\n\n // add an immbolize effect with a duration slightly longer than this one so that they cannot move while suspended\n IMMOBILIZE immbobilize = new IMMOBILIZE(p, duration + 10, targetID);\n Ollivanders2API.getPlayers().playerEffects.addEffect(immbobilize);\n additionalEffects.add(O2EffectType.IMMOBILIZE);\n }", "public void resolveEffect(Card playedCard, int row, int col)\r\n {\r\n char type = playedCard.getEffectType();\r\n char target = playedCard.getEffectTarget();\r\n \r\n //Temp variables for this method\r\n int validTarget;\r\n int[] choice = new int[2];\r\n \r\n switch(type)\r\n {\r\n case 'H': //DISCARD HAND\r\n boolean discard = true; //PLACEHOLDER, ASK USER IF THEY WISH TO DISCARD\r\n if(discard)\r\n {\r\n final int NEW_HAND = 7;\r\n \r\n if(playerTurn == 0)\r\n {\r\n red.discard();\r\n for(int i = 0; i < NEW_HAND; i++)\r\n red.draw();\r\n }\r\n else\r\n {\r\n blue.discard();\r\n for(int i = 0; i < NEW_HAND; i++)\r\n blue.draw();\r\n }\r\n }\r\n break;\r\n case 'D': //DRAW\r\n final int DRAW_THRESHOLD = 4;\r\n if(playerTurn == 0)\r\n {\r\n if(red.getHand().size() >= 4)\r\n {\r\n while(red.getHand().size() < 7)\r\n red.draw();\r\n }\r\n }\r\n else\r\n {\r\n if(blue.getHand().size() >= 4)\r\n {\r\n while(blue.getHand().size() < 7)\r\n blue.draw();\r\n }\r\n }\r\n break;\r\n case '0': //ZERO\r\n if(playerTurn == 0)\r\n validTarget = 1;\r\n else\r\n validTarget = 0;\r\n \r\n choice[0] = 0; //PLACEHOLDER, ASK USER FOR TARGET\r\n choice[1] = 0;\r\n while(gameBoard.tilePlayer(choice[0], choice[1]) != validTarget )\r\n //REPROMPT FOR CHOICE\r\n \r\n gameBoard.getTile(choice[0], choice[1]).addEffect(playedCard.getEffect());\r\n break;\r\n case '-': //SUBTRACT\r\n if(target == 'X') //ANY\r\n {\r\n choice[0] = 0; //PLACEHOLDER, ASK USER FOR TARGET\r\n choice[1] = 0;\r\n \r\n while(gameBoard.tilePlayer(choice[0], choice[1]) != -1)\r\n //REPROMPT FOR CHOICE\r\n \r\n gameBoard.getTile(choice[0], choice[1]).addEffect(playedCard.getEffect()); \r\n }\r\n if(target == 'O') //OPPONENT\r\n {\r\n if(playerTurn == 0)\r\n validTarget = 1;\r\n else\r\n validTarget = 0;\r\n\r\n choice[0] = 0; //PLACEHOLDER, ASK USER FOR TARGET\r\n choice[1] = 0;\r\n\r\n while(gameBoard.tilePlayer(choice[0], choice[1]) != validTarget )\r\n //REPROMPT FOR CHOICE\r\n\r\n gameBoard.getTile(choice[0], choice[1]).addEffect(playedCard.getEffect()); \r\n }\r\n case '+':\r\n if(target == 'X') //ANY\r\n {\r\n choice[0] = 0; //PLACEHOLDER, ASK USER FOR TARGET\r\n choice[1] = 0;\r\n \r\n while(gameBoard.tilePlayer(choice[0], choice[1]) != -1)\r\n //REPROMPT FOR CHOICE\r\n \r\n gameBoard.getTile(choice[0], choice[1]).addEffect(playedCard.getEffect()); \r\n }\r\n if(target == 'O') //OPPONENT\r\n {\r\n if(playerTurn == 0)\r\n validTarget = 1;\r\n else\r\n validTarget = 0;\r\n\r\n choice[0] = 0; //PLACEHOLDER, ASK USER FOR TARGET\r\n choice[1] = 0;\r\n\r\n while(gameBoard.tilePlayer(choice[0], choice[1]) != validTarget )\r\n //REPROMPT FOR CHOICE\r\n\r\n gameBoard.getTile(choice[0], choice[1]).addEffect(playedCard.getEffect()); \r\n }\r\n if(target == 'A') //ADJACENT\r\n {\r\n ArrayList<Tile> adj = gameBoard.getAdjacent(row, col);\r\n \r\n for(int i = 0; i < adj.size(); i++)\r\n adj.get(i).addEffect(playedCard.getEffect());\r\n }\r\n if(target == 'N')\r\n {\r\n ArrayList<Tile> nonadj = gameBoard.getNonAdjacent(row, col);\r\n\r\n for(int i = 0; i < nonadj.size(); i++)\r\n nonadj.get(i).addEffect(playedCard.getEffect());\r\n }\r\n break;\r\n case '*':\r\n if(target == 'X') //ANY\r\n {\r\n choice[0] = 0; //PLACEHOLDER, ASK USER FOR TARGET\r\n choice[1] = 0;\r\n \r\n while(gameBoard.tilePlayer(choice[0], choice[1]) != -1)\r\n //REPROMPT FOR CHOICE\r\n \r\n gameBoard.getTile(choice[0], choice[1]).addEffect(playedCard.getEffect()); \r\n }\r\n if(target == 'O') //OPPONENT\r\n {\r\n if(playerTurn == 0)\r\n validTarget = 1;\r\n else\r\n validTarget = 0;\r\n\r\n choice[0] = 0; //PLACEHOLDER, ASK USER FOR TARGET\r\n choice[1] = 0;\r\n\r\n while(gameBoard.tilePlayer(choice[0], choice[1]) != validTarget )\r\n //REPROMPT FOR CHOICE\r\n\r\n gameBoard.getTile(choice[0], choice[1]).addEffect(playedCard.getEffect()); \r\n }\r\n if(target == 'A') //ADJACENT\r\n {\r\n ArrayList<Tile> adj = gameBoard.getAdjacent(row, col);\r\n \r\n for(int i = 0; i < adj.size(); i++)\r\n adj.get(i).addEffect(playedCard.getEffect());\r\n }\r\n if(target == 'N')\r\n {\r\n ArrayList<Tile> nonadj = gameBoard.getNonAdjacent(row, col);\r\n\r\n for(int i = 0; i < nonadj.size(); i++)\r\n nonadj.get(i).addEffect(playedCard.getEffect());\r\n }\r\n break;\r\n }\r\n }", "public void pushCards(int j)\n {\n for( int i = 0; i < warPile.getSize(); i++)\n {\n Card addMe = warPile.dequeue(); \n \n if(j == P1)\n dw.enqueue(addMe);\n if(j == P2)\n de.enqueue(addMe); \n \n }\n }", "private void cardEffect(Match match, Player player, ToolCardInput input) throws RemoteException {\n //Ottiene dati\n Die die = match.getMatchDice().retrieveDieFromDraftPool(input.getChosenDie());\n\n //Controlla giocatore non ha gia piazzato questo turno\n if (player.getTurnDiePlaced())\n throw new MatchException(\"hai gia piazzato un dado\");\n\n //Rilancia il dado\n die.roll();\n\n //Controlla se il dado è piazzabile\n if (player.getWindow().getValidCells(die).isEmpty()) {\n player.setTurnDiePlaced(true);\n throw new MatchException(\"non puoi piu piazzare il dado\");\n }\n\n //Aggiorna effetti\n player.getToolCardEffect().setChosenDie(die);\n }", "@Override\n public void effect(Table table, ArrayList<Player> players) {\n\n }", "private void mixDeck() {\n Random rnd = new Random();\n ArrayList<UnoCard> mixed = new ArrayList<UnoCard>();\n\n // mix it!\n for(int i = cards.size()-1; i>0;i--) {\n int index = rnd.nextInt(i+1);\n UnoCard helper = cards.get(index);\n cards.remove(index);\n mixed.add(helper);\n }\n\n // delete current arrayList\n cards = null;\n // set mixed cards to original carddeck\n cards = mixed;\n\n // paint cards again because order has changed\n for(UnoCard c : cards) {\n c.setContainer(deckPos);\n }\n\n }", "private void bladeAndActorOverlap() {\n for (BirdActor bird : birdList) {\n if (bird.isCircleOverlap(bladeActor.boundaryCircle)) {\n ExplosionActor explosionActor = new ExplosionActor(bird.getX(), bird.getY(), 0.03333f, explosionAtlas, Animation.PlayMode.NORMAL);\n gameStage.addActor(explosionActor);\n bird.setRandomPosition(birdActorLowestYPos);\n bird.flyAction.restart();\n lblHighScore.setText(scoreDefaultTxt + String.format(\"%04d\", ++score));\n ++destroyInOneShoot;\n }\n }\n }", "@Override\n public void preventEffectOnCard(PhysicalCard card) {\n _preventedCards.add(card);\n }", "void doEffect(Skill castSkill, double power, Creature performer, Item target) {\n/* 87 */ if ((!target.isMailBox() && !target.isSpringFilled() && !target.isPuppet() && \n/* 88 */ !target.isUnenchantedTurret() && !target.isEnchantedTurret()) || (target\n/* 89 */ .hasDarkMessenger() && !target.isEnchantedTurret())) {\n/* */ \n/* 91 */ performer.getCommunicator().sendNormalServerMessage(\"The spell fizzles.\", (byte)3);\n/* */ return;\n/* */ } \n/* 94 */ if (target.isUnenchantedTurret() || target.isEnchantedTurret()) {\n/* */ \n/* 96 */ int spirit = Zones.getSpiritsForTile(performer.getTileX(), performer.getTileY(), performer.isOnSurface());\n/* 97 */ String sname = \"no spirits\";\n/* 98 */ int templateId = 934;\n/* 99 */ if (spirit == 4) {\n/* */ \n/* 101 */ templateId = 942;\n/* 102 */ sname = \"There are plenty of air spirits at this height.\";\n/* */ } \n/* 104 */ if (spirit == 2) {\n/* */ \n/* 106 */ templateId = 968;\n/* 107 */ sname = \"Some water spirits were closeby.\";\n/* */ } \n/* 109 */ if (spirit == 3) {\n/* */ \n/* 111 */ templateId = 940;\n/* 112 */ sname = \"Earth spirits are everywhere below ground.\";\n/* */ } \n/* 114 */ if (spirit == 1) {\n/* */ \n/* 116 */ sname = \"Some nearby fire spirits are drawn to your contraption.\";\n/* 117 */ templateId = 941;\n/* */ } \n/* 119 */ if (templateId == 934) {\n/* */ \n/* 121 */ performer.getCommunicator().sendAlertServerMessage(\"There are no spirits nearby. Nothing happens.\", (byte)3);\n/* */ \n/* */ return;\n/* */ } \n/* 125 */ if (target.isUnenchantedTurret()) {\n/* */ \n/* 127 */ performer.getCommunicator().sendSafeServerMessage(sname);\n/* 128 */ target.setTemplateId(templateId);\n/* 129 */ target.setAuxData(performer.getKingdomId());\n/* */ }\n/* 131 */ else if (target.isEnchantedTurret()) {\n/* */ \n/* 133 */ if (target.getTemplateId() != templateId) {\n/* */ \n/* 135 */ performer.getCommunicator().sendAlertServerMessage(\"The nearby spirits ignore your contraption. Nothing happens.\", (byte)3);\n/* */ \n/* */ return;\n/* */ } \n/* */ \n/* 140 */ performer.getCommunicator().sendSafeServerMessage(sname);\n/* */ } \n/* */ } \n/* */ \n/* 144 */ ItemSpellEffects effs = target.getSpellEffects();\n/* 145 */ if (effs == null)\n/* 146 */ effs = new ItemSpellEffects(target.getWurmId()); \n/* 147 */ SpellEffect eff = effs.getSpellEffect(this.enchantment);\n/* 148 */ if (eff == null) {\n/* */ \n/* 150 */ performer.getCommunicator().sendNormalServerMessage(\"You summon nearby spirits into the \" + target\n/* 151 */ .getName() + \".\", (byte)2);\n/* */ \n/* 153 */ eff = new SpellEffect(target.getWurmId(), this.enchantment, (float)power, 20000000);\n/* 154 */ effs.addSpellEffect(eff);\n/* 155 */ Server.getInstance().broadCastAction(performer\n/* 156 */ .getName() + \" looks pleased as \" + performer.getHeSheItString() + \" summons some spirits into the \" + target\n/* 157 */ .getName() + \".\", performer, 5);\n/* 158 */ if (!target.isEnchantedTurret()) {\n/* 159 */ target.setHasCourier(true);\n/* */ \n/* */ }\n/* */ }\n/* 163 */ else if (eff.getPower() > power) {\n/* */ \n/* 165 */ performer.getCommunicator().sendNormalServerMessage(\"You frown as you fail to summon more spirits into the \" + target\n/* 166 */ .getName() + \".\", (byte)3);\n/* */ \n/* 168 */ Server.getInstance().broadCastAction(performer.getName() + \" frowns.\", performer, 5);\n/* */ }\n/* */ else {\n/* */ \n/* 172 */ performer.getCommunicator().sendNormalServerMessage(\"You succeed in summoning more spirits into the \" + this.name + \".\", (byte)2);\n/* */ \n/* */ \n/* 175 */ eff.improvePower(performer, (float)power);\n/* 176 */ if (!target.isEnchantedTurret())\n/* 177 */ target.setHasCourier(true); \n/* 178 */ Server.getInstance().broadCastAction(performer\n/* 179 */ .getName() + \" looks pleased as \" + performer.getHeSheItString() + \" summons some spirits into the \" + target\n/* 180 */ .getName() + \".\", performer, 5);\n/* */ } \n/* */ }", "public void baptism() {\n for (Card targetCard : Battle.getInstance().getActiveAccount().getActiveCardsOnGround().values()) {\n if (targetCard instanceof Minion) {\n targetCard.setHolyBuff(2, 1);\n }\n }\n }", "public void effect() {\n }", "@Override\n public void applyItem() {\n Player player;\n if (Battle.getRunningBattle().getTurn() % 2 == 1)\n player = Battle.getRunningBattle().getPlayer2();\n else\n player = Battle.getRunningBattle().getPlayer1();\n\n if (player.getInGameCards().size() == 0)\n return;\n Random random = new Random();\n int randomIndex = random.nextInt(player.getInGameCards().size());\n while (!(getPlayer().getInGameCards().get(randomIndex) instanceof Warrior)) {\n randomIndex = random.nextInt(getPlayer().getInGameCards().size());\n }\n\n Buff buff = new PoisonBuff(1, true);\n buff.setWarrior((Warrior) player.getInGameCards().get(randomIndex));\n Battle.getRunningBattle().getPassiveBuffs().add(buff);\n }", "public PileOfCards(int numCards) {\n descriptors = CardFactory.getDescriptorKeySet();\n pile = new ArrayList<Card>(numCards);\n for(int i = 0; i < numCards; i++)\n pile.add(CardFactory.drawCard());\n }", "public void pushCards(Card c, Card d)\n {\n warPile.enqueue(c);\n warPile.enqueue(d); \n }", "public void addCardToDiscardPile(Card card) {\r\n discardPile.add(card);\r\n if (discardPile.size() > maxDiscardPileSize) {\r\n discardPile = discardPile.subList(1, discardPile.size());\r\n }\r\n }", "public void giveFlop(Deck deck, ArrayList<Cards> table)\n {\n //Burn one card\n deck.getCard();\n\n //Add 3 cards\n for(int i=0; i < 3; i++)\n table.add(deck.getCard());\n }", "public void addCardsToDrawPile(List<Card> cards) {\r\n drawPile.addAll(cards);\r\n }", "void cut(int cardPosition);", "private void initPiles() {\n stockPile = new Pile(Pile.PileType.STOCK, \"Stock\", STOCK_GAP);\n stockPile.setBlurredBackground();\n stockPile.setLayoutX(STOCK_X_POS);\n stockPile.setLayoutY(STOCK_DISC_Y_POS);\n stockPile.setOnMouseClicked(stockReverseCardsHandler);\n getChildren().add(stockPile);\n // getChildren().add(undo);\n\n discardPile = new Pile(Pile.PileType.DISCARD, \"Discard\", DISCARD_GAP);\n discardPile.setBlurredBackground();\n discardPile.setLayoutX(DISCARD_X_POS);\n discardPile.setLayoutY(STOCK_DISC_Y_POS);\n getChildren().add(discardPile);\n\n for (int i = 0; i < 4; i++) {\n Pile foundationPile = new Pile(Pile.PileType.FOUNDATION, \"Foundation \" + i, FOUNDATION_GAP);\n foundationPile.setBlurredBackground();\n foundationPile.setLayoutX(610 + i * 180);\n foundationPile.setLayoutY(20);\n foundationPiles.add(foundationPile);\n getChildren().add(foundationPile);\n }\n for (int i = 0; i < 7; i++) {\n Pile tableauPile = new Pile(Pile.PileType.TABLEAU, \"Tableau \" + i, TABLEAU_GAP);\n tableauPile.setBlurredBackground();\n tableauPile.setLayoutX(95 + i * 180);\n tableauPile.setLayoutY(275);\n tableauPiles.add(tableauPile);\n getChildren().add(tableauPile);\n }\n }", "public void effect() {\n if (course == 2) {\n //RIGHT\n x += fac;\n } else if (course == 5) {\n //LEFT\n x -= fac;\n } else {\n y = (int)(origY + fac * f * Math.tan(angle)) + offsetY;\n x = (int)(origX + fac * f) + offsetX;\n }\n boolean b = computeCell();\n\n if (b) {\n //Detect ennemy\n if (current != null) {\n Player p = current.getOccupied();\n if (p != null && p != thrower) {\n p.makeHimWait((Params.howLongBlockingMagician * 1000) / 2);\n this.destroy();\n }\n }\n }\n //Detect ennemy's cell\n if (current != null) {\n Team te = current.getOwner();\n if (te != thrower.getTeam() && current.getType() == 1) {\n current.setHp(current.getHp() - Params.archerDammage);\n if (current.getHp() <= 0) {\n current.setOwner(thrower.getTeam());\n current.setHp(thrower.getInitHP());\n }\n }\n if (current.isHeight()) {\n this.destroy();\n }\n } else {\n int bound = 10;\n //System.out.println(game.getWidth());\n if (this.x < -bound || this.x > game.getWidth() + bound || this.y < -bound ||\n this.y > game.getHeight() + bound) {\n this.destroy();\n }\n }\n\n f++;\n }", "@Override\n protected void doPlayEffect(SwccgGame game) {\n if (gameState.getDuelState().canContinue(game)) {\n\n final SubAction duelCardEffectAction = new SubAction(subAction);\n duelCardEffectAction.appendEffect(\n new PassthruEffect(duelCardEffectAction) {\n @Override\n protected void doPlayEffect(SwccgGame game) {\n _duelDirections.performDuelDirections(duelCardEffectAction, game, gameState.getDuelState());\n }\n }\n );\n // Stack sub-action\n subAction.stackSubAction(duelCardEffectAction);\n }\n }", "public void addCardToPile(Card c)\r\n {\r\n pile.push(c);\r\n }", "private void createFishExplosions() {\n \n for (Map.Entry<GlowFish, GlowFish> e : fishCollisions.entrySet()) {\n \n //combine the colours\n Vector4 combine = ColourUtil.combine(\n e.getKey().getColour(), e.getValue().getColour());\n entities.add(new Explosion(e.getKey().getPos().clone(), combine));\n e.getKey().remove();\n e.getValue().remove();\n \n //play sound\n FxManager.play3d(sound, e.getKey().getPos(), 1.0f);\n }\n }", "private void beginDeal()\n { \n for (int i = 0; i < DEAL; i++)\n {\n FirstPlayer.addCard(gameDeck.dealCard());\n SecondPlayer.addCard(gameDeck.dealCard());\n }\n \n }", "private void War() \n { Player tempPlayer = new Player();\n Card First,Second;\n First=FirstPlayer.removeTheCard();\n Second=SecondPlayer.removeTheCard();\n \n for(int i=0;i<3;i++)\n {\n tempPlayer.addCardToBegining(First);\n tempPlayer.addCardToBegining(Second);\n }\n if(First.getCardValue() > Second.getCardValue())\n moveTheCardsTotheWinner(1,tempPlayer);\n if(First.getCardValue() < Second.getCardValue())\n moveTheCardsTotheWinner(2,tempPlayer);\n }", "@Override\r\n public void war(int playerOne, int playerTwo, int plDeckPosition, \r\n PlayingCard plOne, PlayingCard plTwo){\r\n \r\n //check to see if any player has run out of cards\r\n if(this.checkOnePlayerDecksEmpty(plDeckPosition)){\r\n \r\n // if a player has run out of cards have the player who has cards\r\n // win war and give them the cards\r\n if(!this.checkPlayerPlayingDeck(plDeckPosition, playerTwo)){\r\n this.giveCardToPlayer(plTwo, playerTwo, plDeckPosition+1);\r\n this.giveCardToPlayer(plOne, playerTwo, plDeckPosition+1);\r\n }\r\n else{\r\n this.giveCardToPlayer(plTwo, playerOne, plDeckPosition+1);\r\n this.giveCardToPlayer(plOne, playerOne, plDeckPosition+1);\r\n }\r\n this.currentAction.addActionReturnValue(plOne, plTwo);\r\n }\r\n\r\n else{\r\n \r\n // set a war flag to true, and add it to the action return values\r\n boolean hasWarOccured = true; \r\n this.currentAction.addActionReturnValue(plOne, plTwo, hasWarOccured);\r\n \r\n // initialize variables that will hold the playing cards that will\r\n // be inserted into an array \r\n PlayingCard plOneCard;\r\n PlayingCard plTwoCard;\r\n \r\n // create an array of PlayingCards that will hold the cards\r\n // that will be won by the winner of the war and array of cards to return\r\n // to acction return values\r\n ArrayList<PlayingCard> returnOneCards = new ArrayList<>();\r\n ArrayList<PlayingCard> returnTwoCards = new ArrayList<>();\r\n ArrayList<PlayingCard> plCardToReward = new ArrayList<>();\r\n \r\n // add the cards that triggered the war to the array of cards that\r\n // will be given to the winner of the war\r\n plCardToReward.add(plOne); \r\n plCardToReward.add(plTwo); \r\n \r\n // transfer cards from discard to deck if discard pile has cards\r\n if(!this.checkPlayerPlayingDeck(plDeckPosition+1, \r\n playerOne)){\r\n this.transferFromDiscard(plDeckPosition, playerOne);\r\n }\r\n if(!this.checkPlayerPlayingDeck(plDeckPosition+1, \r\n playerTwo)){\r\n this.transferFromDiscard(plDeckPosition, playerTwo);\r\n } \r\n \r\n // initialize length of war\r\n int lengthOfWar = 4;\r\n // add cards used in war into the arraylist of cards to be returned\r\n // to winner, and to the action return values\r\n for(int i = 0; i < lengthOfWar; i++){\r\n plOneCard = (PlayingCard)this.getPlayerCard(playerOne,\r\n plDeckPosition);\r\n plTwoCard = (PlayingCard)this.getPlayerCard(playerTwo,\r\n plDeckPosition);\r\n returnOneCards.add(plOneCard);\r\n returnTwoCards.add(plTwoCard);\r\n plCardToReward.add(plOneCard);\r\n plCardToReward.add(plTwoCard);\r\n if(this.checkOnePlayerDecksEmpty(plDeckPosition)){\r\n this.currentAction.addActionReturnValue(returnOneCards, \r\n returnTwoCards);\r\n break;\r\n }\r\n if(i == lengthOfWar - 1){\r\n if(!(this.comparePlayingCards(returnOneCards.get(\r\n returnOneCards.size() - 1),\r\n returnTwoCards.get(returnTwoCards.size() - 1)) \r\n instanceof Card)){\r\n this.currentAction.addActionReturnValue(returnOneCards,\r\n returnTwoCards, hasWarOccured);\r\n returnOneCards = new ArrayList<>();\r\n returnTwoCards = new ArrayList<>();\r\n lengthOfWar += 4;\r\n }\r\n else{\r\n this.currentAction.addActionReturnValue(returnOneCards,\r\n returnTwoCards);\r\n }\r\n }\r\n } \r\n\r\n // Compare the two player cards\r\n PlayingCard higherCard = this.comparePlayingCards(returnOneCards.get(\r\n returnOneCards.size() -1),\r\n returnTwoCards.get(returnTwoCards.size() -1));\r\n \r\n // See who owned that card and distribute cards accordingly or initialize\r\n if (higherCard == returnOneCards.get(returnOneCards.size() -1)) {\r\n for(PlayingCard p : plCardToReward){\r\n this.giveCardToPlayer(p, playerOne, plDeckPosition+1); \r\n }\r\n }\r\n else if (higherCard == returnTwoCards.get(returnTwoCards.size() -1)) {\r\n for(PlayingCard p : plCardToReward){\r\n this.giveCardToPlayer(p, playerTwo, plDeckPosition+1); \r\n }\r\n }\r\n else{\r\n if(!this.checkPlayerPlayingDeck(plDeckPosition, playerTwo)){\r\n for(PlayingCard p : plCardToReward){\r\n this.giveCardToPlayer(p, playerTwo, plDeckPosition+1);\r\n }\r\n }\r\n else{\r\n for(PlayingCard p : plCardToReward){\r\n this.giveCardToPlayer(p, playerOne, plDeckPosition+1); \r\n }\r\n }\r\n }\r\n }\r\n }", "public void dealCards() {\n for(int i=0; i < 5; i++) { \n for(PokerPlayer player : players) {\n player.takeCard(deck.draw());\n }\n }\n }", "private static void registerCardEffects(Card newCard, JsonObject card){\n\t List<Tuple<JsonValue, JsonValue>> instantEffectList = parseEffect(card.get(\"instantEffect\"),\n card.get(\"instantPayload\"));\n\t if(!instantEffectList.isEmpty()){\n\t Tuple<JsonValue, JsonValue> instantEffect = instantEffectList.get(0);\n\t newCard.registerInstantEffect(getEffectFromRegistry(instantEffect.getFirstArg().asString(),\n\t instantEffect.getSecondArg()));\n\t }\n\n\t List<Tuple<JsonValue, JsonValue>> permanentEffectList = parseEffect(card.get(\"permanentEffect\"),\n card.get(\"permanentPayload\"));\n\t if(!permanentEffectList.isEmpty()){\n Tuple<JsonValue, JsonValue> permanentEffect = permanentEffectList.get(0);\n newCard.registerPermanentEffect(getEffectFromRegistry(permanentEffect.getFirstArg().asString(),\n\t permanentEffect.getSecondArg()));\n\t }\n\t}", "@Override\n\tpublic void tick() {\n\t\tsuper.tick();\n\t\tif(isNthTick(5) && !getPlayer().hasPotionEffect(PotionEffectType.WITHER)){\n\t\t\tgetPlayer().addPotionEffect(new PotionEffect(PotionEffectType.WITHER, getRemainingTicks(), 1));\n\t\t}\n\t}", "public void modifyPile(Hand pile, Card player1FaceCard, Card player2FaceCard, Card player3FaceCard) {\n if (pile == null)\n pile = new Hand();\n pile.addCardToTop(player1FaceCard);\n pile.addCardToTop(player2FaceCard);\n pile.addCardToTop(player3FaceCard);\n }", "@Override\n\tprotected void enterEffect() {\n\t\t\n\t}", "public void areaEffect(Player player){\n if(object.getProperties().containsKey(\"endLevel\")) {\n System.out.println(\"Fin du level\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n PlayScreen.setEndLevel();\n }\n\n if(object.getProperties().containsKey(\"startBossFight\")) {\n\n System.out.println(\"Start Boss Fight\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n\n TiledMapTileLayer.Cell cell = new TiledMapTileLayer.Cell();\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 6, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 7, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 8, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 9, cell);\n\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 6, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 7, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 8, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 9, cell);\n\n PlayScreen.cameraChangeBoss(true);\n setCategoryFilterFixture(GameTest.GROUND_BIT, PlayScreen.getFixtureStartBoss());\n\n }\n\n if(object.getProperties().containsKey(\"blueKnight\")) {\n System.out.println(\"Changement en bleu\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"blue\");\n }\n\n if(object.getProperties().containsKey(\"greyKnight\")) {\n System.out.println(\"Changement en gris\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"grey\");\n }\n\n if(object.getProperties().containsKey(\"redKnight\")) {\n System.out.println(\"Changement en rouge\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"red\");\n }\n\n }", "@Override\n protected void doPlayEffect(SwccgGame game) {\n if (gameState.getDuelState().canContinue(game)) {\n final SubAction duelCardEffectAction = new SubAction(subAction);\n duelCardEffectAction.appendEffect(\n new PassthruEffect(duelCardEffectAction) {\n @Override\n protected void doPlayEffect(SwccgGame game) {\n _duelDirections.performDuelResults(duelCardEffectAction, game, gameState.getDuelState());\n }\n }\n );\n // Stack sub-action\n subAction.stackSubAction(duelCardEffectAction);\n }\n }", "private void transferCards(Player player) {\r\n\t\twhile(warPile.size() > 0) {\r\n\t\t\tplayer.addToWinningsPile(warPile.remove(0));\r\n\t\t}\r\n\t}", "private void multi(EntityManager manager) {\r\n if (manager.getAmmo(4) == 0 && !testMode) {\r\n changeGuns(0, manager);\r\n manager.outOfAmmo();\r\n return;\r\n }\r\n\r\n float newRotationR = rotationZ - 90;\r\n float newRotationL = rotationZ + 90;\r\n float newRotationD = rotationZ + 180;\r\n\r\n float leftX = (float) Math.sin(Math.toRadians(newRotationL));\r\n float leftY = (float) -Math.cos(Math.toRadians(newRotationL));\r\n\r\n float rightX = (float) Math.sin(Math.toRadians(newRotationR));\r\n float rightY = (float) -Math.cos(Math.toRadians(newRotationR));\r\n\r\n float downX = (float) Math.sin(Math.toRadians(newRotationD));\r\n float downY = (float) -Math.cos(Math.toRadians(newRotationD));\r\n\r\n Shot leftshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, leftX * 100, leftY * 100, 150, 1.5f, 0, 1, 0, true, 200, false);\r\n\r\n Shot rightshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, rightX * 100, rightY * 100, 150, 1.5f, 0, 0, 1, true, 200, false);\r\n\r\n Shot upshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, forwardX * 100, forwardY * 100, 150, 1.5f, 1, 0, 0, true, 200, false);\r\n\r\n Shot downshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, downX * 100, downY * 100, 150, 1.5f, 1, 1, 0.82f, true, 200, false);\r\n\r\n manager.addEntity(leftshot);\r\n manager.addEntity(rightshot);\r\n manager.addEntity(upshot);\r\n manager.addEntity(downshot);\r\n if (!testMode) manager.updateAmmo(4, -1, false);\r\n manager.shotFired(4);\r\n }", "public void makesHereBack(){this.piece.affect();}", "protected void onImpact(MovingObjectPosition position)\n {\n if (!this.worldObj.isRemote)\n {\n List<PotionEffect> list = ItemPotionCorePotion.instance.getEffects(potion);\n\n if (list != null && !list.isEmpty())\n {\n AxisAlignedBB axisalignedbb = this.getEntityBoundingBox().expand(4.0D, 2.0D, 4.0D);\n List<EntityLivingBase> list1 = this.worldObj.<EntityLivingBase>getEntitiesWithinAABB(EntityLivingBase.class, axisalignedbb);\n\n if (!list1.isEmpty())\n {\n for (EntityLivingBase entitylivingbase : list1)\n {\n double d0 = this.getDistanceSqToEntity(entitylivingbase);\n\n if (d0 < 16.0D)\n {\n double d1 = 1.0D - Math.sqrt(d0) / 4.0D;\n\n if (entitylivingbase == position.entityHit)\n {\n d1 = 1.0D;\n }\n\n for (PotionEffect potioneffect : list)\n {\n int i = potioneffect.getPotionID();\n\n if (Potion.potionTypes[i].isInstant())\n {\n Potion.potionTypes[i].affectEntity(this, this.getThrower(), entitylivingbase, potioneffect.getAmplifier(), d1);\n }\n else\n {\n int j = (int)(d1 * (double)potioneffect.getDuration() + 0.5D);\n\n if (j > 20)\n {\n entitylivingbase.addPotionEffect(new PotionEffect(i, j, potioneffect.getAmplifier()));\n }\n }\n }\n }\n }\n }\n }\n this.worldObj.playSoundAtEntity(this, \"game.potion.smash\", 1.0F, this.worldObj.rand.nextFloat() * 0.1F + 0.9F);\n this.setDead();\n }\n else {\n \tif(!smashed) {\n \t\tdoSmashEffects();\n \t\tsmashed = true;\n \t}\n }\n }", "private void drawActivePotionEffects() {\n/* 63 */ int i = this.guiLeft - 124;\n/* 64 */ int j = this.guiTop;\n/* 65 */ int k = 166;\n/* 66 */ Collection<PotionEffect> collection = this.mc.player.getActivePotionEffects();\n/* */ \n/* 68 */ if (!collection.isEmpty()) {\n/* */ \n/* 70 */ GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n/* 71 */ GlStateManager.disableLighting();\n/* 72 */ int l = 33;\n/* */ \n/* 74 */ if (collection.size() > 5)\n/* */ {\n/* 76 */ l = 132 / (collection.size() - 1);\n/* */ }\n/* */ \n/* 79 */ for (PotionEffect potioneffect : Ordering.natural().sortedCopy(collection)) {\n/* */ \n/* 81 */ Potion potion = potioneffect.getPotion();\n/* 82 */ GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n/* 83 */ this.mc.getTextureManager().bindTexture(INVENTORY_BACKGROUND);\n/* 84 */ drawTexturedModalRect(i, j, 0, 166, 140, 32);\n/* */ \n/* 86 */ if (potion.hasStatusIcon()) {\n/* */ \n/* 88 */ int i1 = potion.getStatusIconIndex();\n/* 89 */ drawTexturedModalRect(i + 6, j + 7, 0 + i1 % 8 * 18, 198 + i1 / 8 * 18, 18, 18);\n/* */ } \n/* */ \n/* 92 */ String s1 = I18n.format(potion.getName(), new Object[0]);\n/* */ \n/* 94 */ if (potioneffect.getAmplifier() == 1) {\n/* */ \n/* 96 */ s1 = String.valueOf(s1) + \" \" + I18n.format(\"enchantment.level.2\", new Object[0]);\n/* */ }\n/* 98 */ else if (potioneffect.getAmplifier() == 2) {\n/* */ \n/* 100 */ s1 = String.valueOf(s1) + \" \" + I18n.format(\"enchantment.level.3\", new Object[0]);\n/* */ }\n/* 102 */ else if (potioneffect.getAmplifier() == 3) {\n/* */ \n/* 104 */ s1 = String.valueOf(s1) + \" \" + I18n.format(\"enchantment.level.4\", new Object[0]);\n/* */ } \n/* */ \n/* 107 */ this.fontRendererObj.drawStringWithShadow(s1, (i + 10 + 18), (j + 6), 16777215);\n/* 108 */ String s = Potion.getPotionDurationString(potioneffect, 1.0F);\n/* 109 */ this.fontRendererObj.drawStringWithShadow(s, (i + 10 + 18), (j + 6 + 10), 8355711);\n/* 110 */ j += l;\n/* */ } \n/* */ } \n/* */ }", "public void discard(Card card) {\n discardPile.add(card);\n }", "private void courseEffects() {\n\t\t\n\t}", "public void addCardFaceUp(Card c){\n c.setFaceUp();\n pile[pilePlace] = c;\n pilePlace++;\n }", "@Override\n public void effect() {\n\n }", "@Override\n\tpublic void ontick(Player p) {\n\t\tp.pos = move; // port to move vector\n\t\t\n\t\tfor(Effect ef:p.effects){\n\t\t\tef.ttl = 1;\n\t\t}\n\t}", "public void explosion(){\n explosionEffect.play(pitch, volume);\n }", "@Override\n public void applyEffect(Battle battle, Cell cell, Account player, int activeTime) {\n /* if (activeTime != -1)\n return;\n ManaItemBuff manaItemBuff = new ManaItemBuff(player, 1);\n manaItemBuff.setTurnCounter(-5);\n manaItemBuff.castBuff();\n player.getOwnBuffs().add(manaItemBuff);*/\n }", "public void ajoutPions() {\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 10; j += 2) {\n if (i % 2 == 0) {\n this.ajoutPieces(new Pion(i, j, true, (String) JouerIA.getColor1().first()));\n\n } else {\n this.ajoutPieces(new Pion(i, j+1, true, (String) JouerIA.getColor1().first()));\n }\n }\n\n }\n\n for (int i = 6; i < 10; i++) {\n for (int j = 0; j < 10; j += 2) {\n if (i % 2 == 0) {\n this.ajoutPieces(new Pion(i, j, false, (String) JouerIA.getColor2().first()));\n } else {\n this.ajoutPieces(new Pion(i, j + 1, false, (String) JouerIA.getColor2().first()));\n }\n }\n\n }\n }", "private void dealCards(){\n\t\tfor(int k = 0; k <2;k++){\n\t\t\tfor(int i = 0; i < Players.size();i++){\n\t\t\t\tPlayers.get(i).addCardToHand(gameDeck.dealCard());\n\t\t\t}\n\t\t}\n\t\t\n\t setChanged();\n\t notifyObservers(\"CardsDealed\");\n\t}", "void addEffect(Effect effect, boolean temp) {\n/* 1782 */ if (this.isTransition && this.surfaced) {\n/* */ \n/* 1784 */ getCaveTile().addEffect(effect, temp);\n/* */ \n/* */ return;\n/* */ } \n/* 1788 */ if (!temp) {\n/* */ \n/* 1790 */ if (this.effects == null)\n/* 1791 */ this.effects = new HashSet<>(); \n/* 1792 */ this.effects.add(effect);\n/* */ } \n/* */ \n/* 1795 */ if (this.watchers != null)\n/* */ {\n/* 1797 */ for (Iterator<VirtualZone> it = this.watchers.iterator(); it.hasNext();) {\n/* 1798 */ ((VirtualZone)it.next()).addEffect(effect, temp);\n/* */ }\n/* */ }\n/* 1801 */ effect.setSurfaced(this.surfaced);\n/* */ \n/* */ try {\n/* 1804 */ effect.save();\n/* */ }\n/* 1806 */ catch (IOException iox) {\n/* */ \n/* 1808 */ logger.log(Level.INFO, iox.getMessage(), iox);\n/* */ } \n/* */ }", "public void atBattleStartPreDraw() {\n\n this.flash();\n ArrayList<Integer> orbs = new ArrayList();\n orbs.add(1);\n orbs.add(2);\n orbs.add(3);\n orbs.add(4);\n\n for (int i = 0; i < 2; i++) {\n\n Integer o = orbs.get(AbstractDungeon.cardRng.random(orbs.size() - 1));\n\n switch (o) {\n case 1:\n AbstractDungeon.actionManager.addToBottom(new SlimeSpawnAction(new AttackSlime(), false, true));\n break;\n case 2:\n AbstractDungeon.actionManager.addToBottom(new SlimeSpawnAction(new ShieldSlime(), false, true));\n break;\n case 3:\n AbstractDungeon.actionManager.addToBottom(new SlimeSpawnAction(new SlimingSlime(), false, true));\n break;\n case 4:\n AbstractDungeon.actionManager.addToBottom(new SlimeSpawnAction(new PoisonSlime(), false, true));\n break;\n }\n }\n\n com.megacrit.cardcrawl.dungeons.AbstractDungeon.actionManager.addToBottom(new com.megacrit.cardcrawl.actions.defect.IncreaseMaxOrbAction(1));\n AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(AbstractDungeon.player, AbstractDungeon.player, new PotencyPower(AbstractDungeon.player, AbstractDungeon.player, 1), 1));\n\n\n }", "public void craft() {\n \t\tItemStack[] clonedContents = this.getGrid().getClonedContents();\n \t\tfor (int i = 0; i < clonedContents.length; i++) {\n \t\t\tItemStack clickedItem = clonedContents[i];\n \t\t\tif (clickedItem == null) {\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\tclickedItem.setAmount(clickedItem.getAmount() - 1);\n \t\t\tif (clickedItem.isEmpty()) {\n \t\t\t\tclickedItem = null;\n \t\t\t}\n \t\t\tclonedContents[i] = clickedItem;\n \t\t}\n \t\tthis.getGrid().setContents(clonedContents);\n \t}", "@Test\n void doEffecthellion() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"hellion\");\n Weapon w5 = new Weapon(\"hellion\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w5);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w5);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w5.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n Terminator t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w5.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 1 && victim.getPb().countDamages() == 1 && t.getPb().getMarkedDamages('b') == 1);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n players.clear();\n players.add(victim);\n players.add(t);\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w5.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 2 && victim.getPb().countDamages() == 1 && t.getPb().getMarkedDamages('b') == 2);\n }", "public MemoryGameDrawing() {\n super();\n cards = new Card[5][2];\n flipped = new ArrayList<Card>();\n count = 0;\n delay = 1000;\n spacing = 0;\n int[] id = {0, 0, 1, 1, 2, 2, 3, 3, 4, 4};\n String[] names = {\"Burger\", \"Soda\", \"Fries\", \"IceCream\", \"Salad\"};\n for(int i = 0; i < id.length; i++) {\n int rand = (int)(Math.random()*id.length);\n int temp = id[rand];\n id[rand] = id[i];\n id[i] = temp;\n }\n for(int i = 0; i < 2; i++) {\n for(int j = 0; j < 5; j++) {\n cards[j][i] = new Card(names[id[i*5+j]], i*5+j, 60+j*140, 100+i*180, 120, 160);\n cards[j][i].activate();\n }\n }\n infoCard.activate();\n }", "public void act()\n {\n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Cabbage(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Eggplant(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Onion(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(300) < 3)\n {\n addObject(new Pizza(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(400) < 3)\n {\n addObject(new Cake(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(400) < 3)\n {\n addObject(new Icecream(), Greenfoot.getRandomNumber(600), 0);\n }\n countTime();\n }", "@Test\n public void multiplePiles() {\n Pile p1 = new Pile();\n Pile p2 = new Pile();\n\n Card c1 = new Card(0, 0);\n Card c2 = new Card(1, 1);\n Card c3 = new Card(2, 2);\n\n p1.addCard(c1);\n p2.addCard(c2);\n p1.addCard(c3);\n\n assertEquals(p1.size(), 2);\n\n p2.addCard(p1.pop());\n\n assertEquals(p2.size(), 2);\n assertEquals(p2.pop(), c3);\n }", "private void generateNewCards()\n {\n // Set the card sets to be drafted from.\n setsForDraft = new ArrayList<>();\n setsForDraft.add(M19_CARD_TABLE);\n\n // Generates sealed pool and places in openedCardPool.\n drawPacksFromSets();\n\n // Initialize a selectedCardPool that is empty, for the user to move cards into when desired.\n selectedCardPool = new ArrayList<>();\n }", "void applyEffects();", "public void dealCardsToPile()\n {\n // Set the first initial computer card to display\n computerCard = highCardGame.getCardFromDeck();\n\n // Sets the first initial player card\n playerCard = highCardGame.getCardFromDeck();\n }", "public void addCardsToDiscardPile(List<Card> cards) {\r\n discardPile.addAll(cards); // TODO: this triggers a nullpointerexception ( ava.lang.NullPointerException: Attempt to invoke interface method 'int java.util.Collection.size()' on a null object reference\r\n // at java.util.LinkedList.addAll(LinkedList.java:386)\r\n // at ch.ethz.inf.vs.a4.minker.einz.model.GlobalState.addCardsToDiscardPile(GlobalState.java:158) )\r\n discardPile.subList(Math.max(0, discardPile.size() - maxDiscardPileSize), discardPile.size());\r\n }", "private void actionPhase() {\n field.generateRandomFood( 100 );\n List<Blob> k = new ArrayList<>( this );\n Iterator<Blob> kIter;\n Blob currentBlob;\n\n while (!k.isEmpty()) {\n for (kIter = k.iterator(); kIter.hasNext(); ) {\n currentBlob = kIter.next();\n if ( currentBlob.getEnergy() > 0 && !currentBlob.isAtHome() ) {\n currentBlob.move();\n } else {\n kIter.remove();\n }\n }\n }\n }", "private void duotoneEffect(int firstC, int secC) {\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_DUOTONE);\n effect.setParameter(\"first_color\", firstC);\n effect.setParameter(\"second_color\", secC);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "private void makeCards() {\n //make number cards(76 cards)\n for (int i = 0; i < 10; i++) {\n String s = i + \"\";\n cards.add(new NumberCard(s, Color.RED, i));\n cards.add(new NumberCard(s, Color.GREEN, i));\n cards.add(new NumberCard(s, Color.BLUE, i));\n cards.add(new NumberCard(s, Color.YELLOW, i));\n if(i > 0) {\n cards.add(new NumberCard(s, Color.RED, i));\n cards.add(new NumberCard(s, Color.GREEN, i));\n cards.add(new NumberCard(s, Color.BLUE, i));\n cards.add(new NumberCard(s, Color.YELLOW, i));\n }\n }\n\n //make wild cards(8 cards)⨁\n for (int i = 0; i < 4; i++) {\n cards.add(new WildCard(\"W\", Color.BLACK));\n cards.add(new WildDrawCard(\"W+4\", Color.BLACK));\n }\n\n //make reverse cards(8 cards)⤤⤦\n for (int i = 0; i < 2; i++) {\n cards.add(new ReverseCard(\"Rev\", Color.RED));\n cards.add(new ReverseCard(\"Rev\", Color.GREEN));\n cards.add(new ReverseCard(\"Rev\", Color.BLUE));\n cards.add(new ReverseCard(\"Rev\", Color.YELLOW));\n }\n\n //make draw cards(8 cards)⧉\n for (int i = 0; i < 2; i++) {\n cards.add(new Draw2Card(\"D+2\", Color.RED));\n cards.add(new Draw2Card(\"D+2\", Color.GREEN));\n cards.add(new Draw2Card(\"D+2\", Color.BLUE));\n cards.add(new Draw2Card(\"D+2\", Color.YELLOW));\n }\n\n //make skip cards(8 cards)🚫\n for (int i = 0; i < 2; i++) {\n cards.add(new SkipCard(\"Ski\", Color.RED));\n cards.add(new SkipCard(\"Ski\", Color.GREEN));\n cards.add(new SkipCard(\"Ski\", Color.BLUE));\n cards.add(new SkipCard(\"Ski\", Color.YELLOW));\n }\n //Shuffling cards list\n Collections.shuffle(cards);\n }", "public void giveOneCard(Deck deck, ArrayList<Cards> table)\n {\n //Burn one card\n deck.getCard();\n\n //Add 1 card\n table.add(deck.getCard());\n }", "public PlaceCardsOutOfPlayFromTableSimultaneouslyEffect(Action action, Collection<PhysicalCard> cardsToPlaceOutOfPlay, boolean releaseCaptives) {\n super(action);\n _originalCardsToPlaceOutOfPlay = Collections.unmodifiableCollection(cardsToPlaceOutOfPlay);\n _releaseCaptives = releaseCaptives;\n _that = this;\n }", "private DrawDestinyToAttritionOnlyEffect(Action action, String playerId) {\n super(action);\n _playerId = playerId;\n }", "@Test\n void doEffectfurnace() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"furnace\");\n Weapon w3 = new Weapon(\"furnace\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w3);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w3.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('r'));\n Terminator t = new Terminator('g', Board.getSquare(5));\n t.setOwnerColor(victim.getColor());\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(victim.getPlayerPosition());\n try{\n p.getPh().getWeaponDeck().getWeapon(w3.getName()).doEffect(\"base\", null, null, p, null, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && t.getPb().countDamages() == 1);\n\n p.setPlayerPosition(Board.getSquare(0));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('r'));\n t = new Terminator('g', Board.getSpawnpoint('r'));\n t.setOwnerColor(victim.getColor());\n s.clear();\n s.add(Board.getSpawnpoint('r'));\n try{\n p.getPh().getWeaponDeck().getWeapon(w3.getName()).doEffect(\"alt\", null, null, p, null, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim.getPb().getMarkedDamages('b')==1 && t.getPb().countDamages() == 1 && t.getPb().getMarkedDamages('b')==1);\n\n }", "@Test\n void doEffectPlasmaGun() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"plasma gun\");\n Weapon w17 = new Weapon(\"plasma gun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w17);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w17.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n p.setPlayerPosition(Board.getSpawnpoint(2));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(6));\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"opt1\", \"base\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && p.getPlayerPosition() == Board.getSquare(6));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(1));\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"base\", \"opt1\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && p.getPlayerPosition() == Board.getSquare(1));\n\n p.setPlayerPosition(Board.getSpawnpoint(2));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(6));\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"opt1\", \"base\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && p.getPlayerPosition() == Board.getSquare(6));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSpawnpoint('b'));\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"base\", \"opt2\", \"opt1\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && p.getPlayerPosition() == Board.getSpawnpoint('b'));\n }", "private void addCardsToCommunalPile() {\n for (int i = 0; i < playersInGame.size(); i++) {\n Player playerToPopCard = playersInGame.get(i);\n communalPile.add(playerToPopCard.popCard());\n }\n }", "@Test\n void doEffectthor() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"t.h.o.r.\");\n Weapon w15 = new Weapon(\"t.h.o.r.\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w15);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w15.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim2);\n try {\n p.getPh().getWeaponDeck().getWeapon(w15.getName()).doEffect(\"base\", \"opt1\", null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(10));\n RealPlayer victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n players.add(victim2);\n players.add(victim3);\n try {\n p.getPh().getWeaponDeck().getWeapon(w15.getName()).doEffect(\"base\", \"opt1\", \"opt2\", p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 2);\n }", "public void act() \n {\n //plays animation with a delay between frames\n explosionSound.play();\n i = (i+1)%(frames.length); \n setImage(frames[i]);\n if(i == 0) getWorld().removeObject(this);\n }", "public void makesNotHere(){this.piece.unAffect();}", "public void moveTowards(){\n \n \n \n if(!exploded){\n \n \n move(speed);\n \n if(isTouching(Enemy.class)){\n move(explosionRadius); \n \n inRange = (ArrayList) getObjectsInRange(explosionRadius + 25, Enemy.class);\n for(Enemy e : inRange){\n e.hit(damage);\n }\n \n //explode\n exploded = true;\n \n image = new GreenfootImage(\"50x50 aoe.png\");\n image.scale(explosionRadius*2, explosionRadius*2);\n setImage(image);\n //getWorld().removeObject(this);\n }\n else if (isAtEdge())\n {\n getWorld().removeObject(this);\n }\n else if ( radius < distance) {\n getWorld().removeObject(this); \n }\n }\n else{\n setImage(image);\n image.setTransparency(image.getTransparency() - 5);\n if(image.getTransparency() <= 0) getWorld().removeObject(this);\n }\n }", "public void putCardMode(){\n for(int i = 0; i<3 ; i++){\n productionButtons[i].setText(\"Put here\");\n ProductionCard card = gui.getViewController().getGame().getProductionCard(i);\n if (card != null && card.getLevel() == 3){\n setEnabled(false);\n } else {\n productionButtons[i].setEnabled(true);\n }\n Gui.removeAllListeners(productionButtons[i]);\n productionButtons[i].addActionListener(new PutCardButtonListener(gui,chosenDeckNumber,i));\n }\n baseProductionPanel.disableButton();\n }", "protected final void hit() throws InsufficientCardsException {\n hand.add(deck.deal());\n update();\n }", "@Test\n void doEffectheatseeker() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"heatseeker\");\n Weapon w4 = new Weapon(\"heatseeker\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w4);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w4);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w4.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try{\n p.getPh().getWeaponDeck().getWeapon(w4.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3);\n }", "private void makeSnack() {\n\t\teating = true;\n\t\ttama.setLayoutX(200);\n\t\t\n\t\tsnack = new Sprite(3, 3, 22, 25, new Image(\"file:./res/images/snack.png\"), 1, 1000);\n\t\tsnack.setLayoutX(150);\n\t\tsnack.setLayoutY(150);\n\t\tsnack.setScaleX(0.3);\n\t\tsnack.setScaleY(0.3);\n\t\tgrid.getChildren().addAll(snack);\n\t\tPauseTransition pause = new PauseTransition(Duration.millis(1500));\n\t\tpause.setOnFinished(e -> {\n\t\t\tgrid.getChildren().remove(snack);\n\t\t\ttama.setLayoutX(190);\n\t\t\teating = false;\n\t\t\tmodel.getController().eatSnack();\n//\t\t\tif(!model.isHealthy()){\n//\t\t\t\tsetSickImg();\n//\t\t\t}\n\t\t});\n\t\tpause.play();\n\t\t\n\t}", "void smallgunHandler() {\n for (Sprite smb: smBullets) {\n \n smb.display();\n if(usingCoil){\n smb.forward(120);\n }else{\n smb.forward(40);\n }\n\n }\n}", "@Test\n void doEffectsledgehammer() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"sledgehammer\");\n Weapon w13 = new Weapon(\"sledgehammer\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w13);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w13.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try {\n p.getPh().getWeaponDeck().getWeapon(w13.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w13.getName()).doEffect(\"alt\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(10));\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n s.clear();\n try {\n p.getPh().getWeaponDeck().getWeapon(w13.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(6));\n }", "@Override\r\n\tpublic void collisionReaction(GameObject collidedWith)\r\n\t{\r\n\t\tif (\"Enemy\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(30,40);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\r\n\t\tif (\"StarBurst\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(20,40);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\t\tif (\"GeneralEnemyBullet\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(10,20);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\t\tif (\"AimedShot\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(1,5);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t}\r\n\r\n\r\n\t\tif (\"Asteroid\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(20, 45);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\r\n\t\t\t//DESTROYED ASTEROID CODE! NEEDS TO BE REUSED WITH SHOOTING!\r\n\t\t\tVec2 deathSpot = collidedWith.getPosition();\r\n\r\n\r\n\t\t\tint healthdropNum = 0;\r\n\t\t\twhile(healthdropNum <= 4)\r\n\t\t\t{\r\n\t\t\t\thealthdropNum++;\r\n\t\t\t\tGameObject healthDrop = new HealthDrops();\r\n\t\t\t\thealthDrop.setPosition(deathSpot.getX() + getRandomValue(-5, 5), deathSpot.getY() + getRandomValue(-5, 5));\r\n\t\t\t\tObjectManager.addGameObject(healthDrop);\r\n\r\n\t\t\t}\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\r\n\t\t\tif (ShipHealth <= 30)\r\n\t\t\t{\r\n\t\t\t\tSoundManager.playBackgroundSound(\"LowHealth\");\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\r\n\t\tif (\"HealthDrop\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\tscore = score + 1;\r\n\t\t\tSystem.out.println(\"Score: \"+ score);\r\n\t\t\tif (ShipHealth < 100)\r\n\t\t\t{\r\n\r\n\t\t\t\tShipHealth += 1;\r\n\t\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\r\n\t\t\t\tif (ShipHealth > 30)\r\n\t\t\t\t{\r\n\t\t\t\t\tSoundManager.stopBackgroundSound(\"LowHealth\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcollidedWith.kill();\r\n\t\t}\r\n\t\tif (\"EnemyHealthDrop\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\tscore = score + 2;\r\n\t\t\tSystem.out.println(\"Score: \"+ score);\r\n\t\t\tif (ShipHealth < 100)\r\n\t\t\t{\r\n\r\n\t\t\t\tShipHealth += 2;\r\n\t\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\t\tif (ShipHealth > 30)\r\n\t\t\t\t{\r\n\t\t\t\t\tSoundManager.stopBackgroundSound(\"LowHealth\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcollidedWith.kill();\r\n\t\t}\r\n\t\tif (\"HealthPickup\".equals(collidedWith.getName()))\r\n\t\t{\r\n\r\n\t\t\t//System.out.println(\"Score: \" + score);\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth = 100;\r\n\t\t\tSystem.out.println(\"HEALTH RESTORED\");\r\n\t\t\tSoundManager.stopBackgroundSound(\"LowHealth\");\r\n\r\n\t\t}\r\n\t\tif (\"FollowBullet\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\trandom = PFRandom.randomRange(0,2);\r\n\t\t\tshakeActivated = true;\r\n\t\t\tcollidedWith.kill();\r\n\t\t\tShipHealth -= PFRandom.randomRange(10, 30);\r\n\t\t\tSystem.out.println(\"Health: \" + ShipHealth);\r\n\t\t\tSoundManager.playBackgroundSound(\"Explode\");\r\n\t\t\tif (ShipHealth <= 30)\r\n\t\t\t{\r\n\t\t\t\tSoundManager.playBackgroundSound(\"LowHealth\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (\"BossFollower\".equals(collidedWith.getName()))\r\n\t\t{\r\n\t\t\tsetPositionY(165.7f);\r\n\t\t}\r\n\t}", "@Test\n void doEffectzx2() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"zx-2\");\n Weapon w8 = new Weapon(\"zx-2\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w8);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w8.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try{\n p.getPh().getWeaponDeck().getWeapon(w8.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim.getPb().getMarkedDamages('b') == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n Terminator t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSpawnpoint('r'));\n players.clear();\n players.add(victim);\n players.add(t);\n players.add(victim2);\n try{\n p.getPh().getWeaponDeck().getWeapon(w8.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 1 && victim2.getPb().getMarkedDamages('b') == 1 && t.getPb().getMarkedDamages('b') == 1);\n\n players.remove(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w8.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 2 && victim2.getPb().getMarkedDamages('b') == 2);\n }", "public void drawFromBag(int n) {\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tif (this.bag.size() == 0) {\r\n\t\t\t\tif (this.discard.size() == 0) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.bag = discard;\r\n\t\t\t\t\tthis.discard = new ArrayList<Card>();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (lockedCards.size() > 0) {\r\n\t\t\t\tthis.hand.add(this.lockedCards.remove(0));\r\n\t\t\t} else {\r\n\t\t\t\tint nextCard = (int) (Math.random() * this.bag.size());\r\n\t\t\t\tthis.hand.add(this.bag.remove(nextCard));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void step() {\r\n\t\tcard1 = player1.getCard();\r\n\t\tcard2 = player2.getCard();\r\n\t\twarPile.add(card1);\r\n\t\twarPile.add(card2);\r\n\t\tgameState = \"Player 1: \" + card1 + \"\\n\" + \"Player 2: \" + card2 + \"\\n\";\r\n\t\tif(card1.getRank() == card2.getRank()) {\r\n\t\t\tgameState = \"Cards added to the War Pile\" + \"\\n\";\r\n\t\t}else if(card1.getRank() > card2.getRank()){\r\n\t\t\ttransferCards(player1);\r\n\t\t\tgameState = \"Cards go to Player 1 \\n\";\r\n\t\t}else {\r\n\t\t\ttransferCards(player2);\r\n\t\t\tgameState = \"Cards go to Player 2 \\n\";\r\n\t\t}\r\n\t\tmoves ++;\r\n\t}", "public War()\n {\n //create deck of cards\n deck.shuffle();\n \n //deal cards to two different hands\n while(!deck.isEmpty())\n {\n card=deck.dealCard();\n player1Hand.enqueue(card);\n \n card=deck.dealCard();\n player2Hand.enqueue(card);\n }\n \n }", "@Override\n void planted() {\n super.planted();\n TimerTask Task = new TimerTask() {\n @Override\n public void run() {\n\n for (Drawable drawables : gameState.getDrawables()) {\n if (drawables instanceof Zombie) {\n int distance = (int) Math.sqrt(Math.pow((drawables.x - x), 2) + Math.pow((drawables.y - y), 2));\n if (distance <= explosionradious) {\n ((Zombie) drawables).hurt(Integer.MAX_VALUE);\n }\n }\n }\n\n life = 0;\n }\n\n };\n\n Timer timer = new Timer();\n timer.schedule(Task, 2000);\n }", "public ItemStack applyPassiveEffect(ItemStack stack);", "public void addCard(Card card){\n\t\tthis.pile.add(0, card);\n\t}", "public void deal() {\r\n\t\twhile(! deck.isEmpty()) {\r\n\t\t\tplayer1.addToUnplayedPile(deck.deal());\r\n\t\t\tplayer2.addToUnplayedPile(deck.deal());\r\n\t\t}\r\n\t}", "public void act()\r\n {\n if (Greenfoot.getRandomNumber(1000)< flyRate)\r\n {\r\n addObject(new Fly(), getWidth(), Greenfoot.getRandomNumber(300));\r\n //flyRate++;\r\n }\r\n }", "public void givePapalCard(int i){\n this.gameboardPanel.givePapalcard(i);\n }", "@Override\n public void execute() {\n //\"Making dough\"\n Component pastryDough = ctx.widgets.component(1371,44).component(5);\n Component mix = ctx.widgets.component(1370, 38);\n\n //Makes sure that pastry dough is highlighted, if not it clicks it\n if(pastryDough.textureId() != 15201) {\n ctx.widgets.component(1371, 44).component(4).click();\n }\n\n ctx.input.send(\"{VK_SPACE}\");\n ctx.backpack.select().id(ItemIds.PASTRY_DOUGH);\n int doughCountBefore = ctx.backpack.count();\n\n Condition.sleep(Random.nextInt(500,1500));\n Condition.wait(new Callable<Boolean>() {\n public Boolean call() throws Exception {\n System.out.println(\"Within Loop...\");\n return !ctx.widgets.component(1251, 0).component(0).visible();\n }\n }, 1000, 19);\n\n ctx.backpack.select().id(ItemIds.PASTRY_DOUGH);\n Vars.PASTRY_DOUGH_MIXED += ctx.backpack.count() - doughCountBefore;\n System.out.println(\"We have made it, created pastry dough.\");\n\n }", "private void add( int n ) {\r\n Card card = cards.get( n );\r\n if ( !card.isFaceUp() ) {\r\n card.toggleFace();\r\n push( card );\r\n ++this.moveCount;\r\n }\r\n }" ]
[ "0.65086865", "0.60870785", "0.6054639", "0.5920541", "0.58268386", "0.5792186", "0.5785783", "0.5745137", "0.5738647", "0.5728", "0.5688667", "0.56439817", "0.56064016", "0.5595598", "0.557219", "0.5550538", "0.5524084", "0.551515", "0.55105466", "0.54840034", "0.5474299", "0.54658973", "0.54501575", "0.54460984", "0.5439193", "0.54371065", "0.5426482", "0.5422059", "0.54172647", "0.5411975", "0.5401408", "0.5397878", "0.5389009", "0.5385465", "0.53802645", "0.53707963", "0.5350614", "0.53385806", "0.53381246", "0.53329223", "0.5329999", "0.532763", "0.53272396", "0.5325838", "0.5325444", "0.53183746", "0.53020006", "0.5299778", "0.52981216", "0.5289564", "0.52866066", "0.5279211", "0.5260363", "0.52580506", "0.5255928", "0.5239511", "0.5233818", "0.5231443", "0.52271324", "0.5221279", "0.5221166", "0.52082515", "0.5203127", "0.5200263", "0.5182868", "0.5173446", "0.5162514", "0.5153548", "0.5148851", "0.514754", "0.5136057", "0.5129731", "0.51272124", "0.5126097", "0.51254547", "0.5123609", "0.51228905", "0.51142645", "0.51086515", "0.51077366", "0.51070607", "0.5104623", "0.509764", "0.50945044", "0.5087079", "0.50786793", "0.5074682", "0.50742716", "0.5065589", "0.505978", "0.5059537", "0.5057395", "0.5055819", "0.50520766", "0.5050964", "0.5049916", "0.5048941", "0.5048245", "0.5045946", "0.5044996" ]
0.52209246
61
Sets some static variables during setup
public void setStaticVariables() throws KKException { KKConfiguration conf; StaticData staticData = staticDataHM.get(getStoreId()); if (staticData == null) { staticData = new StaticData(); staticDataHM.put(getStoreId(), staticData); } conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_ENVIRONMENT); if (conf == null) { throw new KKException( "The Configuration MODULE_PAYMENT_CYBERSOURCESA_ENVIRONMENT is not set. It must" + " be set to the either TEST or PRODUCTION"); } else if (!(conf.getValue().equals("TEST") || conf.getValue().equals("PRODUCTION"))) { throw new KKException( "The Configuration MODULE_PAYMENT_CYBERSOURCESA_ENVIRONMENT (currently set to " + conf.getValue() + ") must" + " be set to the either TEST or PRODUCTION"); } staticData.setEnvironment(conf.getValue()); conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_REQUEST_URL); if (conf == null) { throw new KKException( "The Configuration MODULE_PAYMENT_CYBERSOURCESA_REQUEST_URL must be set to the URL for" + " sending the request to CyberSource."); } staticData.setRequestUrl(conf.getValue()); conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_RESPONSE_URL); if (conf == null) { throw new KKException( "The Configuration MODULE_PAYMENT_CYBERSOURCESA_RESPONSE_URL must be set " + "to the Response Url"); } staticData.setResponseUrl(conf.getValue()); // conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_MERCHANT_ACC); // if (conf == null) // { // throw new KKException( // "The Configuration MODULE_PAYMENT_CYBERSOURCESA_MERCHANT_ACC must be set to " // + "the CyberSource Merchant Account"); // } // staticData.setMerchantAccount(conf.getValue()); conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_PROFILE_ID); if (conf == null) { throw new KKException( "The Configuration MODULE_PAYMENT_CYBERSOURCESA_PROFILE_ID must be set to " + "the CyberSource Merchant Profile Id"); } staticData.setProfileId(conf.getValue()); KKConfiguration conf1 = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_SHARED_SECRET1); if (conf1 == null) { throw new KKException( "The Configuration MODULE_PAYMENT_CYBERSOURCESA_SHARED_SECRET1 must be set to " + "the CyberSource Shared Secret - Part 1"); } KKConfiguration conf2 = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_SHARED_SECRET2); if (conf2 != null && conf2.getValue() != null) { // If both Part 1 and Part 2 are defined staticData.setSharedSecret(conf1.getValue() + conf2.getValue()); } else { // If only Part 1 is defined staticData.setSharedSecret(conf1.getValue()); } conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_ACCESS_KEY); if (conf == null) { throw new KKException( "The Configuration MODULE_PAYMENT_CYBERSOURCESA_ACCESS_KEY must be set to " + "the CyberSource Access Key"); } staticData.setAccessKey(conf.getValue()); conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_VERSION); if (conf == null) { throw new KKException( "The Configuration MODULE_PAYMENT_CYBERSOURCESA_VERSION must be set to " + "the CyberSource Gateway Version Number"); } staticData.setGatewayVersion(conf.getValue()); conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_ZONE); if (conf == null) { staticData.setZone(0); } else { staticData.setZone(new Integer(conf.getValue()).intValue()); } conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_SORT_ORDER); if (conf == null) { staticData.setSortOrder(0); } else { staticData.setSortOrder(new Integer(conf.getValue()).intValue()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initVars() {}", "static void init() {}", "private void initSetUp()\n\t{\n\t\tthis.setActionName(NAME);\n\t\tthis.setDescription(DESCRIPTION);\n\t\tthis.setMagic(IS_MAGIC);\n\t\tthis.setAttack(IS_ATTACK);\n\t\tthis.setTargetSelf(IS_TARGET_SELF);\n\t\tthis.setInternalName(INTERNAL_NAME);\n\t}", "public void init() {\n // These data structures are initialized here because other\n // module's startUp() might be called before ours\n this.systemStartTime = System.currentTimeMillis();\n }", "protected void initVars() {\n prefFile = \"./server.ini\";\n mimeFile = \"./mime.ini\";\n }", "public static void init() {}", "protected void setup() {\r\n }", "private static synchronized void init() {\n if (CONFIG_VALUES != null) {\n return;\n }\n\n CONFIG_VALUES = new Properties();\n processLocalConfig();\n processIncludedConfig();\n }", "@Before\n\tpublic void setup() {\n\t\tinit(rule.getProcessEngine());\n\t}", "@Override\r\n\tprotected final void setup() {\r\n \tsuper.setup();\r\n\r\n \tdoSetup();\r\n }", "@BeforeClass\n public static void setup() {\n // initialize the singleton of parking state\n ParkingState.getInstance();\n }", "void init() {\n\t\tinitTypes();\n\t\tinitGlobalFunctions();\n\t\tinitFunctions();\n\t\tinitClasses();\n\t}", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void setUp() {\r\n\tvariables = new Vector();\r\n\tstatements = new Vector();\r\n\tconstraints = new Vector();\r\n\tvariableGenerator = new SimpleVariableGenerator(\"v_\");\r\n }", "private void initConfigVar() {\n\t\tConfigUtils configUtils = new ConfigUtils();\n\t\tmenuColor = configUtils.readConfig(\"MENU_COLOR\");\n\t\taboutTitle = configUtils.readConfig(\"ABOUT_TITLE\");\n\t\taboutHeader = configUtils.readConfig(\"ABOUT_HEADER\");\n\t\taboutDetails = configUtils.readConfig(\"ABOUT_DETAILS\");\n\t\tgsTitle = configUtils.readConfig(\"GS_TITLE\");\n\t\tgsHeader = configUtils.readConfig(\"GS_HEADER\");\n\t\tgsDetailsFiles = configUtils.readConfig(\"GS_DETAILS_FILES\");\n\t\tgsDetailsCases = configUtils.readConfig(\"GS_DETAILS_CASES\");\n\t}", "private void initSharedPre() {\n\t}", "@BeforeAll\n static void init() {\n }", "public static void init() {\n\n }", "public static void init() {\n }", "public static void init() {\n }", "@BeforeAll\n public static void configInitialization() {\n System.setProperty(\"VSAC_DRC_URL\", \"https://vsac.nlm.nih.gov/vsac\");\n System.setProperty(\"SERVER_TICKET_URL\", \"https://vsac.nlm.nih.gov/vsac/ws/Ticket\");\n System.setProperty(\"SERVER_SINGLE_VALUESET_URL\", \"https://vsac.nlm.nih.gov/vsac/ws/RetrieveValueSet?\");\n System.setProperty(\"SERVER_MULTIPLE_VALUESET_URL_NEW\", \"https://vsac.nlm.nih.gov/vsac/svs/RetrieveMultipleValueSets?\");\n System.setProperty(\"SERVICE_URL\", \"http://umlsks.nlm.nih.gov\");\n System.setProperty(\"PROFILE_SERVICE\", \"https://vsac.nlm.nih.gov/vsac/profiles\");\n System.setProperty(\"VERSION_SERVICE\", \"https://vsac.nlm.nih.gov/vsac/oid/\");\n }", "public static void init() {\n\t\t\n\t}", "private void initJMeter() {\n\n JMeterUtils.setJMeterHome(PropertiesUtil.getBaseDir());\n JMeterUtils.loadJMeterProperties(PropertiesUtil.getJMeterPropertiesFile());\n JMeterUtils.initLogging();// you can comment this line out to see extra log messages of i.e. DEBUG level\n JMeterUtils.initLocale();\n userDefinedArguments = (Arguments) new ArgumentsPanel().createTestElement();\n }", "public void initialize() {\n\n getStartUp();\n }", "protected abstract void setup();", "protected void setupLocal() {}", "@BeforeClass\n\tpublic static void setup() {\n\t\tgetLogManager().init();\n\t}", "@PostConstruct\n\tpublic void init() {\n\t\tEnvironmentUtils.setEnvironment(env);\n\t}", "@Before\n public void setUp() {\n Assume.assumeTrue(!IS_CIRCLE_BUILD);\n\n searchField = myDashboard.searchField;\n showAllButton = myDashboard.showAllButton;\n subjectCheckboxes = myDashboard.subjectCheckboxes;\n openPresButton = myDashboard.openPresButton;\n fileChooser = myDashboard.fileChooser;\n menuBar = myDashboard.menuBar;\n calendarNode = myDashboard.calendarNode;\n calendar = myDashboard.calendar;\n\n subjectSortCombo = myDashboard.subjectSortCombo;\n moduleSortCombo = myDashboard.moduleSortCombo;\n presSortCombo = myDashboard.presSortCombo;\n\n subjectPanels = myDashboard.subjectPanels;\n presentationPanels = myDashboard.presentationPanels;\n modulePanels = subjectPanels.get(0).getModulePanels();\n }", "private void setupVariables() {\n mCalendarView = findViewById(R.id.calendarView);\n mTextView = findViewById(R.id.eventsView);\n }", "public GlobalSetup(){\n\t\t\n\t\tpropertyData = new Properties();\n\t\t\n\t\ttry{\n\t\t\tInputStream propertyPath = new FileInputStream(\"src/test/resources/properties/categoriesData.properties\");\n\t\t\tpropertyData.load(propertyPath);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t}", "@Before\n\tpublic void init() {\n\t}", "private void _init() {\n }", "protected void setupParameters() {\n \n \n\n }", "public void setUpTestdata() {\n\t\tsetDefaultUserName(Config.getProperty(\"defaultUserName\"));\r\n\t\tsetDefaultPassword(Config.getProperty(\"defaultPassword\"));\r\n\t\tsetTestsiteurl(Config.getProperty(\"testsiteurl\"));\r\n\t\tsetChromeDriverPath(Config.getProperty(\"chromeDriverPath\"));\r\n\t\tsetGeckoDriverPath(Config.getProperty(\"geckoDriverPath\"));\r\n\t\tsetIeDriverPath(Config.getProperty(\"ieDriverPath\"));\r\n\t}", "@Before\n\tpublic void setup() \n\t{\n\t\tsuper.setup();\n\t\t\n }", "protected void _init(){}", "@Before\n @Override\n public void init() {\n }", "@Before\n public void init() {\n }", "private void init() {\n\t\tinitDesign();\n\t\tinitHandlers();\n\t}", "private void init() {\n }", "@BeforeClass\r\n\tpublic static void setupSystem() {\r\n\t\tSystemActions.logSystemInfo();\r\n\t\tSystemActions.updateSettings();\r\n\t}", "private void init() {\n\n\t}", "@BeforeMethod\n\tpublic void setup() {\n\t\tinitialization();\n\t\tloginpage = new LoginPage();\n\t\tcontactpage=new ContactPage();\n\t\ttestutil = new TestUtil();\n\t\thomepage=loginpage.login(prop.getProperty(\"username\"), prop.getProperty(\"password\"));\n\t}", "@Before\r\n\tpublic void setup() {\r\n\t}", "@BeforeClass\n\tpublic static void setup() {\n\n\t}", "protected void setUp() {\n multiplicity = new MultiplicityImpl();\n owner = new StereotypeImpl();\n typedValue = new TaggedValueImpl();\n instance = new TagDefinitionImpl();\n }", "@Override\n\tpublic void initUtils() {\n\n\t}", "public static void init() {\n\t\tregisterRecipes();\n\t\tregisterShapelessRecipes();\n\t\tregisterSmeltingRecipes();\n\t}", "protected void init() {\n\t}", "protected void init() {\n\t}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "public void setup() {\n }", "private void setup() throws Exception {\n\t}", "protected void initialize() {}", "protected void initialize() {}", "@BeforeClass\n public static void startUp() {\n // \"override\" parent startUp\n resourceInitialization();\n }", "public void setupProperties() {\n // left empty for subclass to override\n }", "private void initSingletons() {\n\t\tModel.getInstance();\n\t\tSocialManager.getInstance();\n\t\tMensaDataSource.getInstance();\n\t}", "@Override\n\tpublic void beforeClassSetup() {\n\t\t\n\t}", "protected void setUp() {\n Collection<? extends ModuleInfo> infos = Lookup.getDefault().<ModuleInfo>lookupAll(ModuleInfo.class);\n }", "protected void init() {\n }", "@Before\n public void init() {\n this.testMethodName = this.getTestMethodName();\n this.initialize();\n }", "public void setup() {\r\n\t\ttry {\r\n\t\t\trecentFiles = new RecentFilesHandler();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tsetupRecentFiles();\r\n\t}", "private final void doSetup() {\r\n \tsetEnvironmentVariables();\r\n \t\r\n \tcreateAppWindows();\r\n \t\r\n \tcreateAppPages();\r\n\r\n \t//Set the default resource bundle. This necessary even for non-L10N tests, because even they\r\n \t// need to call localizeFieldLocators()\r\n\t\tsetResourceBundle(DDConstants.DEFAULT_L10N_BUNDLE);\r\n\t\t\r\n\t\t//MUST be called after super.setup!!!\r\n \t//NOTE that ddUser is the equivalent of a user that is found in the setup screen.\r\n \t// The user that logs in to the app is known as the auto user. Until we figure out\r\n \t// whether that model applies, don't call this.\r\n \t//setDDUser();\r\n }", "@Override\r\n\t@BeforeMethod\r\n\tpublic void initSetting() {\n\t\tSystem.out.println(\"start\");\r\n\t\toTest.initSetting();\r\n\t}", "protected void init()\n {\n Timestamp now = new Timestamp(System.currentTimeMillis());\n timestampCreated = now;\n timestampModified = now;\n createdByAgent = AppContextMgr.getInstance() == null? null : (AppContextMgr.getInstance().hasContext() ? Agent.getUserAgent() : null);\n modifiedByAgent = null;\n }", "protected void setUp()\n {\n /* Add any necessary initialization code here (e.g., open a socket). */\n }", "abstract void setup();", "private void initValues()\n {\n this.viewToolBar.setSelected(\n ConfigurationUtils.isChatToolbarVisible());\n\n this.viewSmileys.setSelected(\n ConfigurationUtils.isShowSmileys());\n\n this.chatSimpleTheme.setSelected(\n ConfigurationUtils.isChatSimpleThemeEnabled());\n }", "protected void setup() {\n\t\t\n\n\n\t\tif(PropertiesLoaderImpl.IS_MAIN_SIMULATION_NODE)addBehaviour(new HandleClockBehaviour(this, TimeRateControl));\n\t\telse addBehaviour(new SlaveNodeClockBehaviour(this, TimeRateControl));\n\t\t\n\t\tif(PropertiesLoaderImpl.DEBUG) System.out.println(this.getName() +\" alive!!!!!!!!!!\\nStarting the simulation time\");\n\t\t\n\t\n\t\t\tSimulationClock.getInstance().setSimulationStarted(true);\n\t\n\t}", "protected void setUp()\r\n {\r\n /* Add any necessary initialization code here (e.g., open a socket). */\r\n }", "@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}", "protected CommonSettings() {\r\n port = 1099;\r\n objectName = \"library\";\r\n }", "@BeforeEach\n\tpublic void setup() {\n\t\tif (!initialized) {\n\t\t\tbaseURI = String.format(uri, port);\n\t\t\tinitialized = true;\n\t\t}\n\t}", "public void init() {\r\n\r\n\t}", "private void init_settings() {\n\t\tSettings.setDifficulty(Difficulty.NORMAL);\n\t\tSettings.setGravity(BowmanConstants.DEFAULT_GRAVITY);\n\t}", "private void initialize() {\n }", "@Before\n public void setup() {\n config.setProperty(Constants.PROPERTY_RETRY_DELAY, \"1\");\n config.setProperty(Constants.PROPERTY_RETRY_LIMIT, \"3\");\n rc = new RequestContext(null);\n rc.setTimeToLiveSeconds(2);\n }", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "public static void initPackage() {\n\t\t(new Branch()).getCache();\n\t\t(new Change()).getCache();\n\t\t(new Client()).getCache();\n\t\t(new DirEntry()).getCache();\n\t\t(new FileEntry()).getCache();\n\t\t(new Job()).getCache();\n\t\t(new Label()).getCache();\n\t\t(new User()).getCache();\n\t\tProperties props = System.getProperties();\n\t}", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "@BeforeClass\n\tpublic static void setup() {\n\t\tdataMunger = new DataMunger();\n\n\t}", "public void init() throws BuildException {\n setJavaVersionProperty();\n \n ComponentHelper.getComponentHelper(this).initDefaultDefinitions();\n \n setSystemProperties();\n }", "@BeforeAll\r\n public static void globalSetup() {\r\n api = new AccessibilityCheckApi(getCredentialsHeader(),AxeImpactEnum.MODERATE);\r\n }", "@Test\n\tpublic void testInit() {\n\t\t/*\n\t\t * This test is just use to initialize everything and ensure a better\n\t\t * performance measure for all the other tests.\n\t\t */\n\t}", "@Before\n\tpublic void setup(){\n\t\tuuid = UUID.randomUUID();\n\t\ttitle = \"The Dark Knight\";\n\t\tdescription = \"Nanananana Batmaaaaan!\";\n\t\tstartDate = new Date(2008, 01, 01);\n\t\ttagLabel = \"Test-Tag\"; \n\t}", "private void setup() {\n py.exec(\"from org.python.core import Py\");\n py.exec(\"import python.main.PythonTraceFunction\");\n py.set(\"ptf\", ptf);\n py.exec(\"Py.getThreadState().tracefunc = ptf\");\n py.set(\"console\", python.panel.getImplementation());\n py.set(\"__impl\", python.bot.getImplementation());\n }", "protected void initialise() {\r\n loadDefaultConfig();\r\n loadCustomConfig();\r\n loadSystemConfig();\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"--- Scope properties ---\");\r\n for (Iterator i = properties.keySet().iterator(); i.hasNext(); ) {\r\n String key = (String) i.next();\r\n Object value = properties.get(key);\r\n LOG.debug(key + \" = \" + value);\r\n }\r\n LOG.debug(\"------------------------\");\r\n }\r\n }", "private void setupInitialValues(){\n\t\tString testDir = getTestDir();\n\t\tsetDirectoryInfoLabel(testDir);\n\t\tlastChoosedDirectory = new File(testDir);\n\t\tregexFrom.setText(sampleRegexFrom);\n\t\tregexTo.setText(sampleRegexTo);\n\t}", "private void initialize() {\n\t}", "public void setup() {\r\n\r\n\t}", "private void ensureInitialized() {\n if (mIncludes == null) {\n // Initialize\n if (!readSettings()) {\n // Couldn't read settings: probably the first time this code is running\n // so there is no known data about includes.\n\n // Yes, these should be multimaps! If we start using Guava replace\n // these with multimaps.\n mIncludes = new HashMap<String, List<String>>();\n mIncludedBy = new HashMap<String, List<String>>();\n\n scanProject();\n saveSettings();\n }\n }\n }", "void initGlobalAttributes() {\n\n\t}", "public static void init() {\n\t\tdrive = Drive.getInstance();\n\t\toi = OI.getInstance();\n\t\tshooter = Shooter.getInstance();\n\t\tarmservo = ArmServo.getInstance();\n\t\t//pneumatic = Pneumatic.getInstance();\n\t\tarmMotor = ArmMotor.getInstance();\n\t\tramp = RampMotor.getInstance();\n\t\tif(shooter == null) {\n\t\t\tSystem.out.println(\"Shooter in NULL in init\");\n\t\t}\n\t\t\n\t}" ]
[ "0.74041474", "0.70431113", "0.69591975", "0.6831681", "0.6746035", "0.67231715", "0.67092806", "0.6707551", "0.6653532", "0.66349995", "0.66340494", "0.66240525", "0.6609472", "0.65980834", "0.6574705", "0.6554909", "0.6554234", "0.654449", "0.65307164", "0.65307164", "0.65208375", "0.65087056", "0.6502746", "0.64983815", "0.6495829", "0.6493288", "0.6472329", "0.6467333", "0.6465317", "0.6442927", "0.6440733", "0.6438363", "0.64302385", "0.64159423", "0.6412137", "0.64100945", "0.6385778", "0.6377998", "0.637671", "0.6373605", "0.6373454", "0.63707936", "0.6370414", "0.6362777", "0.6362178", "0.63576066", "0.6341877", "0.6336955", "0.6334991", "0.6323238", "0.6323238", "0.63148427", "0.63148427", "0.63148427", "0.63148427", "0.6310071", "0.63025683", "0.62960064", "0.62960064", "0.6295497", "0.62866503", "0.62802035", "0.62797344", "0.6277125", "0.627153", "0.627134", "0.6269288", "0.6260718", "0.62591225", "0.62461114", "0.62449646", "0.6242134", "0.62364316", "0.6234051", "0.62327296", "0.62307686", "0.62228066", "0.62189627", "0.620904", "0.61971456", "0.6195148", "0.61934024", "0.6192443", "0.61840796", "0.6183042", "0.6183042", "0.6183042", "0.6182809", "0.6177136", "0.6175884", "0.61752856", "0.6173412", "0.61708844", "0.6167422", "0.6164856", "0.616034", "0.61578137", "0.6156401", "0.6155386", "0.61531556" ]
0.6463455
29
Return a payment details object for CyberSource IPN module
public PaymentDetails getPaymentDetails(Order order, PaymentInfo info) throws Exception { StaticData sd = staticDataHM.get(getStoreId()); /* * The CyberSourceZone zone, if greater than zero, should reference a GeoZone. If the * DeliveryAddress of the order isn't within that GeoZone, then we throw an exception */ if (sd.getZone() > 0) { checkZone(info, sd.getZone()); } // Get the scale for currency calculations int scale = new Integer(order.getCurrency().getDecimalPlaces()).intValue(); // Get the resource bundle ResourceBundle rb = getResourceBundle(mutex, bundleName, resourceBundleMap, info.getLocale()); if (rb == null) { throw new KKException("A resource file cannot be found for the country " + info.getLocale().getCountry()); } PaymentDetails pDetails = new PaymentDetails(); pDetails.setCode(CYBERSOURCESA_GATEWAY_CODE); pDetails.setSortOrder(sd.getSortOrder()); pDetails.setPaymentType(PaymentDetails.BROWSER_PAYMENT_GATEWAY); pDetails.setDescription(rb.getString(MODULE_PAYMENT_CYBERSOURCESA_TEXT_DESCRIPTION)); pDetails.setTitle(rb.getString(MODULE_PAYMENT_CYBERSOURCESA_TEXT_TITLE)); // Return now if the full payment details aren't required. This happens when the manager // just wants a list of payment gateways to display in the UI. if (info.isReturnDetails() == false) { return pDetails; } pDetails.setPostOrGet("post"); pDetails.setRequestUrl(sd.getRequestUrl()); // This gateway only requires details of the final price. No tax, sub-total etc. BigDecimal total = null; for (int i = 0; i < order.getOrderTotals().length; i++) { OrderTotal ot = (OrderTotal) order.getOrderTotals()[i]; if (ot.getClassName().equals(OrderTotalMgr.ot_total)) { total = ot.getValue().setScale(scale, BigDecimal.ROUND_HALF_UP); } } if (total == null) { throw new KKException("An Order Total was not found"); } // total = total.movePointRight(scale); // total.setScale(0); List<NameValueIf> parmList = new ArrayList<NameValueIf>(); // parmList.add(new NameValue(CYBERSOURCESA_MERCHANT_ACCOUNT, sd.getMerchantAccount())); parmList.add(new NameValue(CYBERSOURCESA_ACCESS_KEY, sd.getAccessKey())); parmList.add(new NameValue(CYBERSOURCESA_PROFILE_ID, sd.getProfileId())); // parmList.add(new NameValue(CYBERSOURCESA_VERSION_NUMBER, sd.getGatewayVersion())); // parmList.add(new NameValue(CYBERSOURCESA_ALLOW_UPDATES, "false")); parmList.add(new NameValue(CYBERSOURCESA_SIGNED_DATE_TIME, getUTCDateTime())); Set<String> signedFieldsSet = new TreeSet<String>(); String signedFieldNames = null; for (String fld : CYBERSOURCESA_SIGNED_FIELDS) { signedFieldsSet.add(fld); if (signedFieldNames == null) { signedFieldNames = fld; } else { signedFieldNames += "," + fld; } } parmList.add(new NameValue(CYBERSOURCESA_SIGNED_FIELD_NAMES, signedFieldNames)); parmList.add(new NameValue(CYBERSOURCESA_REFERENCE_NUM, order.getLifecycleId())); parmList.add(new NameValue(CYBERSOURCESA_TRAN_UUID, order.getLifecycleId())); // Save the shared secret on custom1 pDetails.setCustom1(sd.getSharedSecret()); // Put the environment on custom2 pDetails.setCustom2(sd.getEnvironment()); // parmList.add(new NameValue(CYBERSOURCESA_3D_STATUS, sd.isCheck3dSecure() ? "true" : // "false")); // if (sd.isCheck3dSecure()) // { // parmList.add(new NameValue(CYBERSOURCESA_3D_RESPONSE_URL, sd.getResponseUrl() // .replaceFirst(hostPortSubstitute, info.getHostAndPort()))); // } parmList.add(new NameValue(CYBERSOURCESA_RESPONSE_RECEIPT_URL, sd.getResponseUrl() .replaceFirst(hostPortSubstitute, info.getHostAndPort()))); // parmList.add(new NameValue(CYBERSOURCESA_RESPONSE_DECLINE_URL, sd.getResponseUrl() // .replaceFirst(hostPortSubstitute, info.getHostAndPort()))); // parmList.add(new NameValue(CYBERSOURCESA_CUST_EMAIL, order.getCustomerEmail())); // parmList.add(new NameValue("product_id", sd.getProductId())); // parmList.add(new NameValue("product_name", "Order #" + order.getId() + " from " // + info.getStoreName())); parmList.add(new NameValue(CYBERSOURCESA_PAYMENT_AMOUNT, total.toString())); parmList.add(new NameValue(CYBERSOURCESA_CURRENCY, order.getCurrencyCode())); if (!Utils.isBlank(info.getLocale().getVariant())) { parmList.add(new NameValue(CYBERSOURCESA_LOCALE, info.getLocale().getLanguage() + "-" + info.getLocale().getVariant())); } else { parmList.add(new NameValue(CYBERSOURCESA_LOCALE, info.getLocale().getLanguage())); } // --------------------------------------------------------------------------------------- // Set the billing details // Set the billing name from the billing address Id String[] bNames = getFirstAndLastNamesFromAddress(order.getBillingAddrId()); if (bNames != null) { parmList.add(new NameValue(CYBERSOURCESA_BILLTO_FNAME, bNames[0])); parmList.add(new NameValue(CYBERSOURCESA_BILLTO_LNAME, bNames[1])); } if (!Utils.isBlank(order.getBillingCompany())) { parmList.add(new NameValue(CYBERSOURCESA_BILLTO_COMP, order.getBillingCompany())); } parmList.add(new NameValue(CYBERSOURCESA_BILLTO_STREET1, order.getBillingStreetAddress())); parmList.add(new NameValue(CYBERSOURCESA_BILLTO_CITY, order.getBillingCity())); parmList.add(new NameValue(CYBERSOURCESA_BILLTO_STATE, getZoneCodeForZoneName(order .getBillingState()))); parmList.add(new NameValue(CYBERSOURCESA_BILLTO_POSTCODE, order.getBillingPostcode())); CountryIf country = getEng().getCountryPerName(order.getBillingCountry()); if (country != null) { parmList.add(new NameValue(CYBERSOURCESA_BILLTO_COUNTRY, country.getIsoCode2())); } if (!Utils.isBlank(order.getBillingTelephone())) { parmList.add(new NameValue(CYBERSOURCESA_BILLTO_PHONE, order.getBillingTelephone())); } parmList.add(new NameValue(CYBERSOURCESA_BILLTO_EMAIL, order.getCustomerEmail())); // --------------------------------------------------------------------------------------- // Set the delivery details // Set the delivery names from the delivery address Id String[] dNames = getFirstAndLastNamesFromAddress(order.getDeliveryAddrId()); if (dNames != null) { parmList.add(new NameValue(CYBERSOURCESA_SHIPTO_FNAME, dNames[0])); parmList.add(new NameValue(CYBERSOURCESA_SHIPTO_LNAME, dNames[1])); } if (!Utils.isBlank(order.getDeliveryCompany())) { parmList.add(new NameValue(CYBERSOURCESA_SHIPTO_COMP, order.getDeliveryCompany())); } parmList.add(new NameValue(CYBERSOURCESA_SHIPTO_STREET1, order.getDeliveryStreetAddress())); parmList.add(new NameValue(CYBERSOURCESA_SHIPTO_CITY, order.getDeliveryCity())); parmList.add(new NameValue(CYBERSOURCESA_SHIPTO_STATE, getZoneCodeForZoneName(order .getDeliveryState()))); parmList.add(new NameValue(CYBERSOURCESA_SHIPTO_POSTCODE, order.getDeliveryPostcode())); country = getEng().getCountryPerName(order.getDeliveryCountry()); if (country != null) { parmList.add(new NameValue(CYBERSOURCESA_BILLTO_COUNTRY, country.getIsoCode2())); } // Set the fields that should be visible in the UI when gathering Credit Card details // pDetails.setShowAddr(false); // pDetails.setShowCVV(true); // pDetails.setShowPostcode(false); // pDetails.setShowType(true); // pDetails.setShowOwner(true); String storeId = "?"; StoreIf store = getEng().getStore(); if (store != null) { storeId = store.getStoreId(); } int engineMode = getEng().getEngConf().getMode(); boolean customersShared = getEng().getEngConf().isCustomersShared(); boolean productsShared = getEng().getEngConf().isProductsShared(); boolean categoriesShared = getEng().getEngConf().isCategoriesShared(); String countryCode = order.getLocale().substring(0, 2); if (log.isDebugEnabled()) { log.debug("Used to create merchant defined data: \n" + " OrderId = " + order.getId() + "\n" + " OrderNumber = " + order.getOrderNumber() + "\n" + " StoreId = " + storeId + "\n" + " EngineMode = " + engineMode + "\n" + " CustomersShared = " + customersShared + "\n" + " ProductsShared = " + productsShared + "\n" + " CategoriesShared = " + categoriesShared + "\n" + " CountryCode = " + countryCode); } String merchantReference = order.getId() + "~" + order.getOrderNumber() + "~" + storeId + "~" + engineMode + "~" + customersShared + "~" + productsShared + "~" + categoriesShared + "~" + countryCode; parmList.add(new NameValue(CyberSourceSA.CYBERSOURCESA_MERCHANT_DATA1, merchantReference)); parmList.add(new NameValue(CyberSourceSA.CYBERSOURCESA_MERCHANT_DATA2, sd.getEnvironment())); parmList.add(new NameValue(CyberSourceSA.CYBERSOURCESA_TRAN_TYPE, "sale")); parmList.add(new NameValue(CyberSourceSA.CYBERSOURCESA_IGNORE_AVS, "true")); // String time = String.valueOf(System.currentTimeMillis()); // parmList.add(new NameValue(CyberSourceSA.CYBERSOURCESA_TIMESTAMP, time)); // Calculate the signature HashMap<String, String> hp = hashParameters(pDetails, parmList); // Now add the list of unsigned fields that we have String unsignedFieldNames = null; log.info("Unsigned fields:"); for (Map.Entry<String, String> entry : hp.entrySet()) { if (!signedFieldsSet.contains(entry.getKey())) { log.info(entry.getKey()); if (unsignedFieldNames == null) { unsignedFieldNames = entry.getKey(); } else { unsignedFieldNames += "," + entry.getKey(); } } } parmList.add(new NameValue(CyberSourceSA.CYBERSOURCESA_UNSIGNED_FIELD_NAMES, unsignedFieldNames)); // Calculate the signature hp.put(CyberSourceSA.CYBERSOURCESA_UNSIGNED_FIELD_NAMES, unsignedFieldNames); String data = null; for (String field : CYBERSOURCESA_SIGNED_FIELDS) { if (data == null) { data = field + "=" + hp.get(field); } else { data += "," + field + "=" + hp.get(field); } } log.info("Sign this: \n" + data); log.info("Secret Key: \n" + pDetails.getCustom1()); parmList.add(new NameValue(CyberSourceSA.CYBERSOURCESA_SIGNATURE, CyberSourceSAHMACTools .getBase64EncodedSignature(pDetails.getCustom1(), data))); // addParameters(pDetails, parmList); // Put the parameters into an array NameValue[] nvArray = new NameValue[parmList.size()]; parmList.toArray(nvArray); pDetails.setParameters(nvArray); // Remove shared secret for security // pd.setCustom1(null); if (log.isDebugEnabled()) { // to show what we're about to post to CyberSource String postStr = pDetails.getRequestUrl() + "?"; for (int p = 0; p < pDetails.getParameters().length; p++) { if (p > 0) { postStr += "&"; } if (pDetails.getParameters()[p].getValue() == null) { if (pDetails.getParameters()[p].getName() != null) { log.debug("Value for " + pDetails.getParameters()[p].getName() + " is null"); } } else { postStr += pDetails.getParameters()[p].getName() + "=" + URLEncoder.encode(pDetails.getParameters()[p].getValue(), "UTF-8"); } } log.debug("\n" + postStr); } if (log.isDebugEnabled()) { log.debug(pDetails.toString()); } return pDetails; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPaymentInformation();", "com.dogecoin.protocols.payments.Protos.Payment getPayment();", "public IBankTransfert payment();", "public CreditCard getDefaultPaymentInfo();", "CarPaymentMethod processPayPal();", "public java.lang.String getPaymentinformation () {\r\n\t\treturn paymentinformation;\r\n\t}", "@Override\n public String toString() {\n return payment; \n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderPayment getPayment();", "private Payer getPayerInformation() {\n\n\t\tPayer payer = new Payer();\n\t\tpayer.setPaymentMethod(\"paypal\");\n\n\t\tPayerInfo payerInfo = new PayerInfo();\n\n\t\tpayerInfo.setFirstName(\"Nguyen\").setLastName(\"Bang\").setEmail(\"huubang2k@gmail.com\");\n\n\t\tpayer.setPayerInfo(payerInfo);\n\t\treturn payer;\n\n\t}", "com.google.protobuf.ByteString getSerializedPaymentDetails();", "public PaymentInformation getPaymentInformation(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.paymentinformation.v1.PaymentInformation res){\n\t\tPaymentInformation paymentInformation = new PaymentInformation();\n\t\t\n\t\tpaymentInformation.setBookingNo( res.getBookingNo() );\n\t\tif( res.getCreditCardFlag() != null ){\n\t\t\tpaymentInformation.setCreditCardFlag( res.getCreditCardFlag().charAt(0) );\n\t\t}\n\t\tif( res.getGuaranteedCheckFlag() != null ){\n\t\t\tpaymentInformation.setGuaranteedCheckFlag( res.getGuaranteedCheckFlag().charAt(0) );\n\t\t}\n\t\tif( res.getMoneyTransferFlag() != null ){\n\t\t\tpaymentInformation.setMoneyTransferFlag( res.getMoneyTransferFlag().charAt(0) );\n\t\t}\n\t\tif( res.getImApplicationInfo() != null ){\n\t\t\tpaymentInformation.setImApplicationInfo( this.getIMApplicationInfo( res.getImApplicationInfo() ) );\n\t\t}\n\t\tif( res.getGuaranteedCheck() != null ){\n\t\t\tpaymentInformation.setGuaranteedCheck( this.getGuaranteedCheck( res.getGuaranteedCheck() ) );\n\t\t}\n\t\tif( res.getMoneyTransfer() != null ){\n\t\t\tpaymentInformation.setMoneyTransfer( this.getMoneyTransfer( res.getMoneyTransfer() ) );\n\t\t}\n\t\tif( res.getCreditCard() != null ){\n\t\t\tpaymentInformation.setCreditCard( this.getCreditCard( res.getCreditCard() ) );\n\t\t}\n\t\t\n\t\treturn paymentInformation;\n\t}", "public PaymentDetails () {\n\t}", "PaymentMethod getPaymentMethod();", "public void startPayment() {\r\n final Activity activity = this;\r\n\r\n final Checkout co = new Checkout();\r\n\r\n try {\r\n JSONObject options = new JSONObject();\r\n options.put(\"name\", \"Farm2Home\");\r\n options.put(\"description\", \"Consumption charges\");\r\n //You can omit the image option to fetch the image from dashboard\r\n // options.put(\"image\", \"https://rzp-mobile.s3.amazonaws.com/images/rzp.png\");\r\n options.put(\"currency\", \"INR\");\r\n options.put(\"amount\", \"500\");\r\n\r\n // JSONObject preFill = new JSONObject();\r\n // preFill.put(\"email\", \"sm@razorpay.com\");\r\n // preFill.put(\"contact\", \"9876543210\");\r\n\r\n // options.put(\"prefill\", preFill);\r\n\r\n co.open(activity, options);\r\n } catch (Exception e) {\r\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\r\n .show();\r\n e.printStackTrace();\r\n }\r\n }", "BillingSource billingSource();", "public String getPaymentData() {\n return paymentData;\n }", "@Override\n public String getDescription() {\n return \"Ordinary payment\";\n }", "public java.lang.String getPaymentinfotext () {\r\n\t\treturn paymentinfotext;\r\n\t}", "public Payment[] getPaymentInfo(){\n \t\n \treturn paymentArr;\n }", "public HLCPaymentDetails() { }", "public Payment(double amountPaid, int method, Timestamp date, int cardDetailsID, int invoiceID){\n this.recordID = recordID;\n this.amountPaid = amountPaid;\n this.method = method;\n this.date = date;\n this.cardDetailsID = cardDetailsID;\n this.invoiceID = invoiceID;\n }", "static Sbpayment newInstance() {\n return new DefaultSbpayment();\n }", "PaymentHandler createPaymentHandler();", "public void getPaymentInfo (View view) {\n Utility.showMyToast(\"Give me your payment info\", this);\n\n // Also send an Analytics hit\n sendPaymentInfoHit();\n\n // Show and hide buttons appropriately\n Button button = (Button) findViewById(R.id.checkout_step_2_btn);\n button.setVisibility(View.INVISIBLE);\n\n button = (Button) findViewById(R.id.purchase_btn);\n button.setVisibility(View.VISIBLE);\n }", "public ModelPayment(double payment) {\n this.payment = payment;\n }", "public Payment getPayment(){\n return payment;\n }", "public String getPayment() {\n if(payment==null) { payment = \"\"; }\n return payment;\n }", "private PaymentType(String payment) {\n this.payment = payment;\n }", "ShipmentItemBilling createShipmentItemBilling();", "@Override\n public byte getType() {\n return TYPE_PAYMENT;\n }", "private void returnDeposit(String paymentInfo) {\n }", "private PageAction getNewPaymentAction() {\n return new PageAction() {\n @Override\n public void run() { \n Parameters params = new Parameters();\n BasicMember member = data.getTransfer().getBasicMember();\n // Set if there is a member payment or system payment\n if(member != null) { \n params.set(ParameterKey.ID, member.getId()); \n } else {\n params.set(ParameterKey.IS_SYSTEM_ACCOUNT, true);\n }\n Navigation.get().go(PageAnchor.MAKE_PAYMENT, params);\n }\n @Override\n public String getLabel() { \n return messages.newPayment();\n } \n };\n }", "CarPaymentMethod processCreditCard();", "@java.lang.Override\n public com.google.protobuf.ByteString getSerializedPaymentDetails() {\n return instance.getSerializedPaymentDetails();\n }", "public Payment clone() {\n\t\tPayment clonedPayment = new Payment();\n\t\tclonedPayment.setIsReceivedPayment(this.isReceivedPayment);\n\t\tclonedPayment.setPaymentType(this.paymentType);\n\t\tclonedPayment.setPaymentCategory(this.paymentCategory);\n\t\tclonedPayment.setDescription(this.description);\n\t\tclonedPayment.setCurrencyCode(this.currencyCode);\n\t\tclonedPayment.setTotalAmount(this.totalAmount);\n\t\tclonedPayment.setPaymentMethodType(this.paymentMethodType);\n\t\tclonedPayment.setPayerPaymentMethodId(this.payerPaymentMethodId);\n\t\tclonedPayment.setPayeePaymentReceiveMethodId(this.payeePaymentReceiveMethodId);\n\t\tclonedPayment.setCheckNumber(this.checkNumber);\n\t\tclonedPayment.setPayerAccountId(this.payerAccountId);\n\t\tclonedPayment.setPayerAccountName(this.payerAccountName);\n\t\tclonedPayment.setPayerContactId(this.payerContactId);\n\t\tclonedPayment.setPayerContactName(this.payerContactName);\n\t\tclonedPayment.setPayerBillingAddressId(this.payerBillingAddressId);\n\t\tclonedPayment.setPayeeAccountId(this.payeeAccountId);\n\t\tclonedPayment.setPayeeAccountName(this.payeeAccountName);\n\t\tclonedPayment.setPayeeContactId(this.payeeContactId);\n\t\tclonedPayment.setPayeeContactName(this.payeeContactName);\n\t\tclonedPayment.setPayeeBillingAddressId(this.payeeBillingAddressId);\n\t\tclonedPayment.setDepartmentId(this.departmentId);\n\t\tclonedPayment.setCostCenterNumber(this.costCenterNumber);\n\t\tclonedPayment.setPrimaryPaymentReceiverEmpId(this.primaryPaymentReceiverEmpId);\n\t\tclonedPayment.setSecondaryPaymentReceiverEmpId(this.secondaryPaymentReceiverEmpId);\n\t\tclonedPayment.setPrimaryPaymentPayerEmpId(this.primaryPaymentPayerEmpId);\n\t\tclonedPayment.setSecondaryPaymentPayerEmpId(this.secondaryPaymentPayerEmpId);\n\t\tclonedPayment.setNotes(this.notes);\n\t\treturn clonedPayment;\n\t}", "public PaymentmethodRecord() {\n super(Paymentmethod.PAYMENTMETHOD);\n }", "public int getC_Payment_ID();", "public void startPayment() {\n double ruppes = Double.parseDouble(price);\n final Activity activity = this;\n final Checkout co = new Checkout();\n try {\n JSONObject options = new JSONObject();\n options.put(\"name\", getResources().getString(R.string.application_name));\n options.put(\"description\", \"\");\n //You can omit the image option to fetch the image from dashboard\n options.put(\"image\", getResources().getDrawable(R.mipmap.ic_app_logo));\n options.put(\"currency\", \"INR\");\n options.put(\"amount\", ruppes * 100);\n JSONObject preFill = new JSONObject();\n preFill.put(\"email\", \"multipz.paresh@gmail.com\");\n preFill.put(\"contact\", \"8758689113\");\n options.put(\"prefill\", preFill);\n co.open(activity, options);\n } catch (Exception e) {\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\n .show();\n e.printStackTrace();\n }\n }", "java.lang.String getPaymentUrl();", "public String getAccountPayment() {\r\n return accountPayment;\r\n }", "public String createPisCommonPayment() {\n return commonPaymentServiceBaseUrl + \"/pis/common-payments/\";\n }", "public CashPayment()\n {\n super();\n }", "void pay(Payment payment) {\n\n\t}", "public PaymentCard() {\n\t}", "public creditPayment(String nm,String expdate,long no,double paymentAmount)\n{\nname=nm;\nexdate=expdate;\ncardnumber=no;\namount = paymentAmount;\n}", "@Override\r\n\tpublic Member getPayment(int no) {\n\t\treturn session.selectOne(\"payments.selectOneMember\", no);\r\n\t}", "void setPaymentInformation(String information);", "public PaymentMethod()\n {\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getSerializedPaymentDetails() {\n return serializedPaymentDetails_;\n }", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.paymentinformation.v1.PaymentInformation getPaymentInformationReq(PaymentInformation paymentInformation){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.paymentinformation.v1.PaymentInformation paymentInformationReq = \n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.paymentinformation.v1.PaymentInformation();\n\t\t\n\t\tpaymentInformationReq.setBookingNo( paymentInformation.getBookingNo() );\n\t\tpaymentInformationReq.setCreditCardFlag( Character.toString(paymentInformation.getCreditCardFlag()) );\n\t\tpaymentInformationReq.setGuaranteedCheckFlag( Character.toString(paymentInformation.getGuaranteedCheckFlag() ) );\n\t\tpaymentInformationReq.setMoneyTransferFlag( Character.toString( paymentInformation.getMoneyTransferFlag() ) );\n\t\tif( paymentInformation.getCreditCard() != null ){\n\t\t\tpaymentInformationReq.setCreditCard( this.getCreditCardReq(paymentInformation.getCreditCard()) );\n\t\t}\n\t\tif( paymentInformation.getGuaranteedCheck() != null ){\n\t\t\tpaymentInformationReq.setGuaranteedCheck( this.getGuaranteedCheckReq(paymentInformation.getGuaranteedCheck()) );\n\t\t}\n\t\tif( paymentInformation.getMoneyTransfer() != null ){\n\t\t\tpaymentInformationReq.setMoneyTransfer( this.getMoneyTransferReq(paymentInformation.getMoneyTransfer()) );\n\t\t}\n\t\tif( this.getIMApplicationInfo() != null ){\n\t\t\tpaymentInformationReq.setImApplicationInfo( this.getIMApplicationInfoReq( this.getIMApplicationInfo() ) );\n\t\t}\n\t\t\n\t\treturn paymentInformationReq;\n\t}", "public PaymentTypeObject getPaymentType(int payment_type_id) throws AppException;", "public String getMerchantNo();", "public abstract PaymentType getPaymentType();", "@Override\n public ResponseEntity<PaymentInfo> purchase(@RequestBody PaymentInfo request) {\n return new ResponseEntity<PaymentInfo>(request, HttpStatus.OK);\n }", "@Override\r\n\tpublic void makePayment(Payment p, int amount) {\n\t\t\r\n\t}", "public String getPaymentIdByEncryptedString() {\n return commonPaymentServiceBaseUrl + \"/pis/payment/{payment-id}\";\n }", "public com.jspgou.cms.entity.Payment getPayment () {\r\n\t\treturn payment;\r\n\t}", "CarPaymentMethod creditCardNumber(String cardNumber);", "@GetMapping(\"/paymentGateway/payments/{payment_id}\")\n\tpublic PaymentDetails getPayment(@PathVariable String payment_id) {\n\t\treturn paymentQueryService.getPayment(payment_id);\n\t}", "public void setPaymentInfoInCart(CreditCard cc);", "public String getPaymentType() {\r\n return paymentType;\r\n }", "public void setPaymentId( Integer paymentId ) {\n this.paymentId = paymentId ;\n }", "public ContestPayment createContestPayment(ContestPayment contestPayment) throws ContestManagementException {\n return null;\r\n }", "public ContestPayment createContestPayment(ContestPayment contestPayment) throws ContestManagementException {\n return null;\r\n }", "@Override\n\tpublic RotatePayment getPayment(String id) {\n\t\tRotatePayment payment = paymentDao.getPayment(id);\n\t\tHashMap<String, Object> map = new HashMap<>();\n\t\tmap.put(\"paymentId\", id);\n\t\tList<RotatePaymentDetail> details=paymentDao.listPaymentDetail(map);\n\t\tpayment.setDetailList(details);\n\t\treturn payment;\n\t}", "@Test(priority = 4)\n\tpublic void testPayment() {\n\t\tlogger = extent.startTest(\"passed\");\n\t\tWebDriverWait wait = new WebDriverWait(driver, 100);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.className(\"payment-info\")));\n\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"swit\\\"]/div[1]\")).click();\n\t\tdriver.findElement(By.id(\"btn\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Payment Gateway\");\n\n\t\t// For netbanking login\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(\"123456\");\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"Pass@456\");\n\t\tdriver.findElement(By.xpath(\"//input[@type='submit' and @value='LOGIN']\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Payment Gateway\");\n\n\t\t//\n\t\tdriver.findElement(By.name(\"transpwd\")).sendKeys(\"Trans@456\");\n\t\tdriver.findElement(By.xpath(\"//input[@type='submit' and @value='PayNow']\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Order Details\");\n\t\tlogger.log(LogStatus.PASS, \"testPayment Testcase is passed\");\n\t}", "public Payment viewPayment(int id) {\n\t\treturn payments.get(id);\n\t}", "@Test\n public void testCrediCard() {\n PaymentInstrument instrument = new PaymentInstrument();\n instrument.setCardNumber(\"5424000000000015\");\n instrument.setCvv(\"999\");\n instrument.setMonth(\"12\");\n instrument.setYear(\"17\");\n\n PaymentGatewayRequest gatewayRequest = new PaymentGatewayRequest(\"Bying Test prodocut\", 6, instrument,300.00);\n gatewayRequest.setCustomerId(\"1419278590612\");\n gatewayRequest.setInvoiceNumber(\"INV0001\");\n gatewayRequest.setRefId(\"IN00021\");\n PaymentGatewayResponse process = authorizedNetGateway.process(gatewayRequest);\n\n LOG.debug(\"Response returend is \" + process);\n Assert.assertTrue(process.isSuccess());\n\n }", "public PaymentType getPaymentType()\n {\n return PAYMENT_TYPE;\n }", "private Payer getPayer() {\n Payer payer = new Payer();\n payer.setPaymentMethod(\"paypal\");\n\n return payer;\n }", "public int getPaymentNum() {\n \treturn this.paymentNum;\n }", "public ContestPayment getContestPayment(long contestPaymentId) throws ContestManagementException {\n return null;\r\n }", "public ContestPayment getContestPayment(long contestPaymentId) throws ContestManagementException {\n return null;\r\n }", "public String getPisCommonPaymentById() {\n return commonPaymentServiceBaseUrl + \"/pis/common-payments/{paymentId}\";\n }", "public String getIncomingPaymentBic() {\n return incomingPaymentBic;\n }", "public DebitCard(String n, int c, int p, Date e, Customer h, Provider p) {}", "public String getPAYMENT_TYPE() {\r\n return PAYMENT_TYPE;\r\n }", "@Remote\npublic interface PaymentRemote {\n\n /**\n * API address\n */\n static final String BASE_URL = \"https://test-api.pin.net.au/1\";\n /**\n * API secret key\n */\n static final String API_KEY_SECRET = \"***REMOVED***\";\n\n /**\n *\n */\n static final String PASSWORD = \"\";\n\n /**\n * createCustomer is used to create a customer return ResponseDTO\n *\n * @param pinCustomerPost\n * @return\n */\n SerialResponse createCustomer(PinCustomerPost pinCustomerPost);\n\n /**\n * charge function is used to charge the money\n *\n * @param pinChargePost\n * @return\n */\n SerialResponse charge(PinChargePost pinChargePost);\n\n /**\n * CreateRecipient function is used to create a recipient\n *\n * @param pinRecipientPost\n * @return\n */\n SerialResponse createRecipient(PinRecipientPost pinRecipientPost);\n\n /**\n * transfer function is used to transfer the money from API owner to bank account\n *\n * @param pinTransferPost\n * @return\n */\n SerialResponse transfer(PinTransferPost pinTransferPost);\n\n /**\n * Returns the details of a recipient. Note: A bank account is inside a recipient\n *\n * @param recipientToken\n * @return\n */\n JsonObject fetchRecipient(String recipientToken);\n\n /**\n * editRecipient function is used to edit the information of the recipient\n *\n * @param recipientToken\n * @param pinRecipientPut\n * @return\n */\n SerialResponse editRecipient(String recipientToken, PinRecipientPut pinRecipientPut);\n}", "@GetMapping(\"/consumer/payment/get/{id}\")\n //@HystrixCommand\n public CommonResult<Payment> getPayment(@PathVariable(\"id\") Long id) {\n return paymentService.getPaymentById(id);\n }", "Payment find(int paymentID);", "io.opencannabis.schema.commerce.CommercialOrder.OrderPaymentOrBuilder getPaymentOrBuilder();", "protected PaymentDetail populatePaymentDetail(PaymentRequestDocument paymentRequestDocument, Batch batch) {\r\n PaymentDetail paymentDetail = new PaymentDetail();\r\n\r\n paymentDetail.setCustPaymentDocNbr(paymentRequestDocument.getDocumentNumber());\r\n Map preqItemMap = new HashMap();\r\n preqItemMap.put(\"purapDocumentIdentifier\", paymentRequestDocument.getPurapDocumentIdentifier());\r\n OlePaymentRequestDocument olePaymentRequestDocument = (OlePaymentRequestDocument) getBusinessObjectService().findByPrimaryKey(OlePaymentRequestDocument.class, preqItemMap);\r\n\r\n if (olePaymentRequestDocument.getPaymentMethodId() != null) {\r\n OlePaymentMethod olePaymentMethod = SpringContext.getBean(BusinessObjectService.class)\r\n .findBySinglePrimaryKey(OlePaymentMethod.class, olePaymentRequestDocument.getPaymentMethodId());\r\n paymentDetail.setPaymentMethodCode(olePaymentMethod.getPaymentMethod());\r\n }\r\n String invoiceNumber = paymentRequestDocument.getInvoiceNumber();\r\n if(invoiceNumber != null) {\r\n if (invoiceNumber.length() > 25) {\r\n invoiceNumber = invoiceNumber.substring(0, 25);\r\n }\r\n }\r\n paymentDetail.setInvoiceNbr(invoiceNumber);\r\n\r\n if (paymentRequestDocument.getPurchaseOrderIdentifier() != null) {\r\n paymentDetail.setPurchaseOrderNbr(paymentRequestDocument.getPurchaseOrderIdentifier().toString());\r\n }\r\n\r\n if (paymentRequestDocument.getPurchaseOrderDocument().getRequisitionIdentifier() != null) {\r\n paymentDetail.setRequisitionNbr(paymentRequestDocument.getPurchaseOrderDocument().getRequisitionIdentifier().toString());\r\n }\r\n\r\n if (paymentRequestDocument.getDocumentHeader().getOrganizationDocumentNumber() != null) {\r\n paymentDetail.setOrganizationDocNbr(paymentRequestDocument.getDocumentHeader().getOrganizationDocumentNumber());\r\n }\r\n\r\n paymentDetail.setCustomerInstitutionNumber(StringUtils.defaultString(paymentRequestDocument.getVendorCustomerNumber()));\r\n\r\n final String paymentRequestDocType = getDataDictionaryService().getDocumentTypeNameByClass(paymentRequestDocument.getClass());\r\n paymentDetail.setFinancialDocumentTypeCode(paymentRequestDocType);\r\n paymentDetail.setFinancialSystemOriginCode(OLEConstants.ORIGIN_CODE_KUALI);\r\n\r\n paymentDetail.setInvoiceDate(paymentRequestDocument.getInvoiceDate());\r\n paymentDetail.setOrigInvoiceAmount(paymentRequestDocument.getVendorInvoiceAmount());\r\n if (paymentRequestDocument.isUseTaxIndicator()) {\r\n paymentDetail.setNetPaymentAmount(paymentRequestDocument.getGrandPreTaxTotal()); // including discounts\r\n } else {\r\n paymentDetail.setNetPaymentAmount(paymentRequestDocument.getGrandTotal()); // including discounts\r\n }\r\n\r\n KualiDecimal shippingAmount = KualiDecimal.ZERO;\r\n KualiDecimal discountAmount = KualiDecimal.ZERO;\r\n KualiDecimal creditAmount = KualiDecimal.ZERO;\r\n KualiDecimal debitAmount = KualiDecimal.ZERO;\r\n\r\n for (Iterator iter = paymentRequestDocument.getItems().iterator(); iter.hasNext(); ) {\r\n PaymentRequestItem item = (PaymentRequestItem) iter.next();\r\n\r\n KualiDecimal itemAmount = KualiDecimal.ZERO;\r\n if (item.getTotalRemitAmount() != null) {\r\n itemAmount = item.getTotalRemitAmount();\r\n }\r\n if (PurapConstants.ItemTypeCodes.ITEM_TYPE_PMT_TERMS_DISCOUNT_CODE.equals(item.getItemTypeCode())) {\r\n discountAmount = discountAmount.add(itemAmount);\r\n } else if (PurapConstants.ItemTypeCodes.ITEM_TYPE_SHIP_AND_HAND_CODE.equals(item.getItemTypeCode())) {\r\n shippingAmount = shippingAmount.add(itemAmount);\r\n } else if (PurapConstants.ItemTypeCodes.ITEM_TYPE_FREIGHT_CODE.equals(item.getItemTypeCode())) {\r\n shippingAmount = shippingAmount.add(itemAmount);\r\n } else if (PurapConstants.ItemTypeCodes.ITEM_TYPE_MIN_ORDER_CODE.equals(item.getItemTypeCode())) {\r\n debitAmount = debitAmount.add(itemAmount);\r\n } else if (PurapConstants.ItemTypeCodes.ITEM_TYPE_MISC_CODE.equals(item.getItemTypeCode())) {\r\n if (itemAmount.isNegative()) {\r\n creditAmount = creditAmount.add(itemAmount);\r\n } else {\r\n debitAmount = debitAmount.add(itemAmount);\r\n }\r\n }\r\n }\r\n\r\n paymentDetail.setInvTotDiscountAmount(discountAmount);\r\n paymentDetail.setInvTotShipAmount(shippingAmount);\r\n paymentDetail.setInvTotOtherCreditAmount(creditAmount);\r\n paymentDetail.setInvTotOtherDebitAmount(debitAmount);\r\n\r\n paymentDetail.setPrimaryCancelledPayment(Boolean.FALSE);\r\n\r\n addAccounts(paymentRequestDocument, paymentDetail, paymentRequestDocType);\r\n addNotes(paymentRequestDocument, paymentDetail);\r\n\r\n return paymentDetail;\r\n }", "public void setPaymentinfotext (java.lang.String paymentinfotext) {\r\n\t\tthis.paymentinfotext = paymentinfotext;\r\n\t}", "BillingAccount getBillingAccount();", "public CustomerPayment getCustomerPayment(String response) throws Exception {\n CustomerPayment customerPayments = new CustomerPayment();\n\n JSONObject jsonObject = new JSONObject(response.trim());\n\n JSONObject payment = jsonObject.getJSONObject(\"payment\"); //No I18N\n\n customerPayments.setPaymentId(payment.getString(\"payment_id\"));\n customerPayments.setCustomerId(payment.getString(\"customer_id\"));\n customerPayments.setCustomerName(payment.getString(\"customer_name\"));\n customerPayments.setPaymentMode(payment.getString(\"payment_mode\"));\n customerPayments.setDate(payment.getString(\"date\"));\n customerPayments.setAccountId(payment.getString(\"account_id\"));\n customerPayments.setAccountName(payment.getString(\"account_name\"));\n customerPayments.setExchangeRate(payment.getDouble(\"exchange_rate\")); //No I18N\n customerPayments.setAmount(payment.getDouble(\"amount\")); //No I18N\n customerPayments.setBankCharges(payment.getDouble(\"bank_charges\")); //No I18N\n customerPayments.setTaxAccountId(payment.getString(\"tax_account_id\"));\n customerPayments.setTaxAccountName(payment.getString(\"tax_account_name\"));\n customerPayments.setTaxAmountWithheld(payment.getDouble(\"tax_amount_withheld\")); //No I18N\n customerPayments.setDescription(payment.getString(\"description\"));\n customerPayments.setReferenceNumber(payment.getString(\"reference_number\"));\n //customerPayments.setIsSingleInvoicePayment(payment.getBoolean(\"is_single_invoice_payment\"));\n\n JSONArray invoices = payment.getJSONArray(\"invoices\"); //No I18N\n\n List<Invoice> invoicesList = new ArrayList<Invoice>();\n\n for (int i = 0; i < invoices.length(); i++) {\n Invoice invoice = new Invoice();\n\n invoice.setInvoiceNumber(invoices.getJSONObject(i).getString(\"invoice_number\"));\n invoice.setInvoicePaymentId(invoices.getJSONObject(i).getString(\"invoice_payment_id\"));\n invoice.setInvoiceId(invoices.getJSONObject(i).getString(\"invoice_id\"));\n invoice.setAmountApplied(invoices.getJSONObject(i).getDouble(\"amount_applied\")); //No I18N\n invoice.setTaxAmountWithheld(invoices.getJSONObject(i).getDouble(\"tax_amount_withheld\")); //No I18N\n invoice.setTotal(invoices.getJSONObject(i).getDouble(\"total\")); //No I18N\n invoice.setBalance(invoices.getJSONObject(i).getDouble(\"balance\")); //No I18N\n invoice.setDate(invoices.getJSONObject(i).getString(\"date\"));\n invoice.setDueDate(invoices.getJSONObject(i).getString(\"due_date\"));\n\n invoicesList.add(i, invoice);\n }\n\n customerPayments.setInvoices(invoicesList);\n\n return customerPayments;\n }", "public PaymentTransaction() {\n\t\tsuper(\"PAYMENT_TRANSACTION\", edu.uga.csci4050.group3.jooq.team3.Team3.TEAM3);\n\t}", "@java.lang.Override\n public com.dogecoin.protocols.payments.Protos.Payment getPayment() {\n return payment_ == null ? com.dogecoin.protocols.payments.Protos.Payment.getDefaultInstance() : payment_;\n }", "public interface Sbpayment {\n\n /**\n * Create Default sbpayment with sbpayment.properties in resource\n */\n static Sbpayment newInstance() {\n return new DefaultSbpayment();\n }\n\n /**\n * Create Default sbpayment with the file path in resource\n *\n * @param filePath properties file path in resource\n */\n static Sbpayment newInstance(String filePath) {\n return new DefaultSbpayment(filePath);\n }\n\n /**\n * Create Default sbpayment with properties object\n *\n * @param properties The {@link Properties}\n */\n static Sbpayment newInstance(Properties properties) {\n return new DefaultSbpayment(SpsConfig.from(properties));\n }\n\n /**\n * Create Default sbpayment with config object\n *\n * @param config The {@link SpsConfig}\n */\n static Sbpayment newInstance(SpsConfig config) {\n return new DefaultSbpayment(config);\n }\n\n /**\n * SPS Information\n */\n SpsConfig.SpsInfo getSpsInfo();\n\n\n /**\n * Gets made getMapper\n *\n * @return SpsMapper\n */\n SpsMapper getMapper();\n\n /**\n * Gets made getClient\n *\n * @return SpsClient\n */\n SpsClient getClient();\n\n /**\n * Gets made getReceiver\n *\n * @return SpsReceiver\n */\n SpsReceiver getReceiver();\n}", "@RequestMapping(method = RequestMethod.GET)\n public PaymentDTO getPayment(@PathVariable(value = \"paymentId\") String paymentId){\n Payment payment = this.readPaymentService.execute(paymentId);\n PaymentDTO paymentDTO = modelMapper.map(payment, PaymentDTO.class);\n BeanUtils.copyProperties(paymentDTO, payment);\n return paymentDTO;\n }", "public Payment(double actualCost) {\n this.actualCost = actualCost;\n }", "public Payment getPayment() {\n\t\treturn this.payment;\n\t}", "public String getPaymentCurrency() {\n return _paymentCurrency;\n }", "@java.lang.Override\n public java.lang.String getPaymentUrl() {\n return paymentUrl_;\n }", "public BoletoPaymentRequest() {\n\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getPaymentUrlBytes() {\n return instance.getPaymentUrlBytes();\n }", "public String getPaymentConvert () {\r\n\t\treturn this.getPayment().getName();\r\n\t}", "CarPaymentMethod city(String city);", "public void makePayment(String amount, String paymentRef) {\n JudoSDKManager.setKeyAndSecret(getApplicationContext(), API_TOKEN, API_SECRET);\n\n// Set environment to Sandbox\n JudoSDKManager.setSandboxMode(getApplicationContext());\n\n String customerRef = Settings.Secure.getString(getApplicationContext().getContentResolver(),\n Settings.Secure.ANDROID_ID);\n\n Intent intent = JudoSDKManager.makeAPayment(getApplicationContext(), JUDO_ID, \"GBP\", amount, paymentRef, customerRef, null);\n startActivityForResult(intent, ACTION_CARD_PAYMENT);\n }", "public void calculatePayment() {}", "@java.lang.Override\n public com.dogecoin.protocols.payments.Protos.Payment getPayment() {\n return instance.getPayment();\n }" ]
[ "0.70073175", "0.62787163", "0.6213744", "0.6105064", "0.6026886", "0.60026217", "0.59965587", "0.5992971", "0.59447753", "0.5907063", "0.5906196", "0.5902326", "0.58888435", "0.5835898", "0.5827223", "0.57899415", "0.5785694", "0.5751909", "0.57474583", "0.5740921", "0.57081574", "0.56964844", "0.56832767", "0.5667006", "0.5653347", "0.5630558", "0.56222916", "0.5621382", "0.56202036", "0.56083083", "0.55821985", "0.55766314", "0.55762786", "0.5576063", "0.55759865", "0.55677783", "0.5552685", "0.55501807", "0.5526122", "0.55207694", "0.55187875", "0.55138695", "0.55119604", "0.5495363", "0.5490648", "0.5482325", "0.5481947", "0.54600614", "0.5451761", "0.54345936", "0.5428112", "0.541865", "0.54182494", "0.54094", "0.5405278", "0.54020107", "0.5393751", "0.5371908", "0.53691596", "0.5363033", "0.53547776", "0.53509784", "0.5338884", "0.5338884", "0.53365266", "0.5331513", "0.53287625", "0.5319463", "0.53182995", "0.53180516", "0.53127134", "0.53088355", "0.53088355", "0.53087676", "0.5295806", "0.5293125", "0.5293104", "0.5289755", "0.5289748", "0.52896327", "0.5285091", "0.5278976", "0.527885", "0.5276516", "0.52752167", "0.5272565", "0.52723384", "0.52716964", "0.52687263", "0.52596784", "0.5237346", "0.52342963", "0.5224812", "0.52065444", "0.520647", "0.5203344", "0.5198514", "0.51958114", "0.5187294", "0.5185137" ]
0.62256473
2
Returns true or false
public boolean isAvailable() throws KKException { return isAvailable(MODULE_PAYMENT_CYBERSOURCESA_STATUS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getResult();", "boolean getResult();", "boolean getResult();", "boolean getResult();", "boolean getIsOk();", "protected boolean func_70814_o() { return true; }", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean isSuccess();", "boolean isSuccess();", "boolean isSuccess();", "boolean isSuccess();", "boolean isSuccess();", "boolean isSuccess();", "boolean isSuccess();", "boolean hasData2();", "boolean hasData2();", "boolean hasPass();", "boolean hasPass();", "boolean hasRt();", "boolean hasIsSuccess();", "public boolean isSuccess();", "public boolean isSuccess();", "boolean internal();", "Boolean conditionResult();", "public boolean isValid(){\r\n\t\t\r\n\t\t// TODO\r\n\t\t\r\n\t\treturn true;\r\n\t}", "boolean hasEresult();", "public boolean isValid(){\n\t\treturn true;\n\t}", "boolean isValid();", "boolean isValid();", "boolean isValid();", "boolean isValid();", "boolean isValid();", "boolean hasData1();", "boolean hasData1();", "boolean isSuccessful();", "boolean isOp();", "protected boolean isValid()\r\n {\r\n \treturn true;\r\n }", "Boolean isPassed();", "boolean hasOperation();", "Boolean getCompletelyCorrect();", "boolean isSetValue();", "boolean isSetValue();", "boolean hasAutomatic();", "private boolean Verific() {\n\r\n\treturn true;\r\n\t}", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean getStatus();", "boolean getStatus();", "boolean getStatus();", "boolean hasError();", "boolean hasError();", "boolean hasError();", "boolean isValidForNow ();", "public boolean isValid()\n\t{\n\t\treturn false;\n\t}", "boolean valid() {\n return true;\n }", "boolean valid() {\n return true;\n }", "boolean valid() {\n return true;\n }", "public boolean getReturn();", "public boolean isProcessed() \n{\nObject oo = get_Value(\"Processed\");\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}", "private boolean checkBackend() {\n \ttry{\n \t\tif(sendRequest(generateURL(0,\"1\")) == null ||\n \tsendRequest(generateURL(1,\"1\")) == null)\n \t\treturn true;\n \t} catch (Exception ex) {\n \t\tSystem.out.println(\"Exception is \" + ex);\n\t\t\treturn true;\n \t}\n\n \treturn false;\n \t}", "boolean isMatch();", "public boolean repOK(){\n if(passenger == null) return false;\n if(car == null) return false;\n return true;\n }", "boolean isFail();", "public boolean tom();", "boolean getValid();", "boolean hasUa();", "boolean hasErr();", "boolean getValue();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();" ]
[ "0.7090063", "0.7090063", "0.7090063", "0.7090063", "0.70810926", "0.69709766", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.68238145", "0.68238145", "0.68238145", "0.68238145", "0.68238145", "0.68238145", "0.68238145", "0.67665243", "0.67665243", "0.6749177", "0.6749177", "0.6733613", "0.67199373", "0.66839427", "0.66839427", "0.666094", "0.66389745", "0.6634318", "0.6611553", "0.6593367", "0.6570816", "0.6570816", "0.6570816", "0.6570816", "0.6570816", "0.6559863", "0.6559863", "0.6557114", "0.6517526", "0.65084857", "0.65064543", "0.65006393", "0.649277", "0.64885044", "0.64885044", "0.6463077", "0.6457941", "0.64540094", "0.64540094", "0.64540094", "0.64540094", "0.64540094", "0.64540094", "0.64540094", "0.64511853", "0.64511853", "0.64511853", "0.64337504", "0.64337504", "0.64337504", "0.6431509", "0.641802", "0.6400701", "0.6400701", "0.6400701", "0.6397505", "0.63869494", "0.6386323", "0.6382339", "0.6379228", "0.637823", "0.6370314", "0.6354438", "0.63470775", "0.63470554", "0.6331839", "0.63295287", "0.63295287", "0.63295287", "0.63295287", "0.63295287", "0.63295287", "0.63295287", "0.63295287", "0.63295287", "0.63295287", "0.63295287", "0.63295287", "0.63295287", "0.63295287", "0.63295287", "0.63295287", "0.63295287" ]
0.0
-1
Created by Malavika Ramprasad on 12/2/2017.
public interface PostSkillsAPI { @PUT("current_user/add_skills") Call<User> postSkills(@HeaderMap Map<String, String> headers,@Body @Root("user_skills") PostSkills skillObj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {\n\n }", "private void m50366E() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo38117a() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n void init() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo4359a() {\n }", "@Override\n public void init() {}", "@Override public int describeContents() { return 0; }", "protected boolean func_70814_o() { return true; }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void initialize() { \n }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "private void init() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n public void initialize() {\n \n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n public int getOrder() {\n return 0;\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}" ]
[ "0.5902683", "0.5626138", "0.5611584", "0.56093955", "0.54944634", "0.54927", "0.54815596", "0.5481312", "0.54764044", "0.54702437", "0.54702437", "0.5430193", "0.5397939", "0.53816694", "0.5371588", "0.5370238", "0.53642917", "0.5350794", "0.53412545", "0.53412545", "0.53412545", "0.53412545", "0.53412545", "0.53412545", "0.5328051", "0.5325598", "0.53141505", "0.52955943", "0.52841383", "0.5278435", "0.5276362", "0.5273333", "0.526546", "0.5254349", "0.52500546", "0.52343994", "0.5233832", "0.52280533", "0.52280533", "0.522503", "0.5221715", "0.5221715", "0.5221715", "0.5221715", "0.5221715", "0.5216756", "0.52115554", "0.52032745", "0.5201183", "0.5195519", "0.5184919", "0.51774675", "0.5168351", "0.5168351", "0.51577467", "0.5153763", "0.51530486", "0.5146042", "0.51432025", "0.5140985", "0.51408255", "0.5129098", "0.51270205", "0.51201725", "0.51201725", "0.51201725", "0.51194334", "0.51194334", "0.5119387", "0.51190287", "0.5117247", "0.51128817", "0.5108063", "0.5108063", "0.5108063", "0.5099644", "0.50990695", "0.50990695", "0.50990695", "0.50990695", "0.50990695", "0.50990695", "0.50990695", "0.5076153", "0.5076153", "0.5074261", "0.50732386", "0.5068291", "0.5066832", "0.5066832", "0.5066832", "0.5062897", "0.50612897", "0.5054629", "0.5052223", "0.50475764", "0.50467384", "0.5044975", "0.5044975", "0.5044975", "0.5031935" ]
0.0
-1
add by tsujioku. 2012.4.3
public void onItemImageClick(View view) { RecommendListAdapter listAdapter = new RecommendListAdapter(this, R.layout.search_row, itemList); String mediumURL = this.itemInfo.getMediumImageUrl(); final String largeURL = mediumURL.replace("ex=128x128", "ex=300x300"); listAdapter.wrapZoomimage(view, largeURL); // sub_item_info = item_info; // getItemDetail(item_info.getItemCode(),item_info.getShopId(),item_info.getShopName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void add() {\n\n\t}", "public void add() {\n\t\t\n\t}", "@Override\n\tpublic void add() {\n\t\t\n\t}", "@Override\r\n\tpublic int add() {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "private void add(String thestring) {\n\t\t\n\t}", "public void add() {\n }", "public Curstomers_add() {\n\t\tsuper();\n\t}", "void addData();", "public void add();", "public void add() {\n\n }", "@Override\n\tpublic void addRec() {\n\t\t\n\t}", "private void addition()\n\t{\n\t\tFun = Function.ADD;\t//Function set to determine what action should be taken later. \n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "@Override\r\n\tpublic void addMe() {\n\t\t\r\n\t}", "abstract void add();", "private Add() {}", "private Add() {}", "@Override\n\tpublic void add(T e) {\n\t\t\n\t}", "public void add (Object t)\r\n {\r\n }", "@Override\n\tpublic boolean add(Integer e) {\n\t\t// TODO Auto-generated method stub\n\t\treturn false;\n\t}", "protected int addInfo(syntaxMap toAdd){\n if(index == 10){\n return 0;\n }\n else if(index < 5) {\n this.array1[index] = toAdd;\n }\n else{\n this.array2[index - 5] = toAdd;\n }\n ++index;\n return 1;\n }", "public void addcode(String code){//להחליף את סטרינג למחלקה קוד או מזהה מספרי של קוד\r\n mycods.add(code);\r\n }", "private void addrec() {\n\t\tnmfkpinds.setPgmInd34(false);\n\t\tnmfkpinds.setPgmInd36(true);\n\t\tnmfkpinds.setPgmInd37(false);\n\t\tstateVariable.setActdsp(replaceStr(stateVariable.getActdsp(), 1, 8, \"ADDITION\"));\n\t\tstateVariable.setXwricd(\"INV\");\n\t\ttransactionTypeDescription.retrieve(stateVariable.getXwricd());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00003 Trn_Hst_Trn_Type not found on Transaction_type_description\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwtdsc(all(\"-\", 20));\n\t\t}\n\t\tstateVariable.setXwa2cd(\"EAC\");\n\t\tstateVariable.setUmdes(replaceStr(stateVariable.getUmdes(), 1, 11, um[1]));\n\t\taddrec0();\n\t}", "static void add_with_mem(String passed){\n\t\tint sum = hexa_to_deci(registers.get('A'));\n\t\t/*\n\t\t * This will be valid only when sign arithematic is being performed\n\t\t * if(S)\n\t\t\tsum*=-1;\n\t\t */\n\t\tsum+=hexa_to_deci(memory.get(memory_address_hl()));\n\t\tCS = sum>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(sum));\n\t\tmodify_status(registers.get('A'));\n\t}", "@Override\r\n public void add() {\n String ID =id.getText();\r\n String Name =name.getText();\r\n String form_date =date_start.getText();\r\n String to_date =date_finish.getText();\r\n String Status =status.getText();\r\n String MemberID = MemberId.getText();\r\n ArrayList<String> arr = new ArrayList<String>();\r\n arr.add(ID);\r\n arr.add(Name);\r\n arr.add(form_date);\r\n arr.add(to_date);\r\n arr.add(Status);\r\n arr.add(MemberID);\r\n String PathFile = \"/home/yara/Documents/4year/OODP/Task.txt\";\r\n FileFacade facade = new FileFacade();\r\n facade.Add(PathFile, arr);\r\n }", "public void initForAddNew() {\r\n\r\n\t}", "public void add() {\n\t\tSystem.out.println(\"I am from Add method\");\n\t}", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Aa addNewAa();", "static void perform_add(String passed){\n\t\tint type = type_of_add(passed);\n\t\tif(type==1)\n\t\t\tadd_with_reg(passed);\n\t\telse if(type==2)\n\t\t\tadd_with_mem(passed);\n\t}", "private void enableAdd(){\n addSubmit.setDisable(false);\n removeSubmit.setDisable(true);\n setSubmit.setDisable(true);\n addCS.setDisable(false);\n removeCS.setDisable(true);\n setCS.setDisable(true);\n addIT.setDisable(false);\n removeIT.setDisable(true);\n setIT.setDisable(true);\n addECE.setDisable(false);\n removeECE.setDisable(true);\n setECE.setDisable(true);\n partTime.setDisable(false);\n fullTime.setDisable(false);\n management.setDisable(false);\n dateAddText.setDisable(false);\n dateRemoveText.setDisable(true);\n dateSetText.setDisable(true);\n nameAddText.setDisable(false);\n nameRemoveText.setDisable(true);\n nameSetText.setDisable(true);\n hourlyAddText.setDisable(false);\n annualAddText.setDisable(false);\n managerRadio.setDisable(false);\n dHeadRadio.setDisable(false);\n directorRadio.setDisable(false);\n //codeAddText.setDisable(false);\n hoursSetText.setDisable(true);\n }", "private void addTwoNumbers() {\n\t\t\n\t}", "public void add(String name)\n/* 15: */ {\n/* 16:14 */ this.members.add(name);\n/* 17: */ }", "@Override\n\tpublic void add(Object o) {\n\t}", "void addButton_actionPerformed(ActionEvent e) {\n doAdd();\n }", "@Override\npublic void add(VirtualContainer parent, VirtualComponent comp, int pos) {\n\t\n}", "@Override\npublic void add(VirtualComponent comp, int pos) {\n\t\n}", "protected int insert(int toAdd){\n\n tnode object = new tnode();\n\n return object.insert(toAdd);\n\n }", "public void add(){\n list.add(smart);\n list.add(mega);\n list.add(smartMini);\n list.add(absolute);\n\n clientsList.add(client1);\n clientsList.add(client2);\n clientsList.add(client3);\n clientsList.add(client4);\n clientsList.add(client5);\n }", "@Override\n public void addItem(P_CK t) {\n \n }", "static int size_of_add(String passed){\n\t\treturn 1;\n\t}", "private void addActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addActionPerformed\n add();\n }", "@Override\n\tpublic void insertar() {\n\t\t\n\t}", "private void _add(final String value) {\n appended();\n\n buffer.encode(value);\n }", "public abstract void add(String element) throws RemoteException;", "static void add() {\r\n\t\t\r\n\t\tint a = 500;\r\n\t\tint b = 300;\r\n\t\t\r\n\t\tint s = a +b;\r\n\t\tSystem.out.println(s);\r\n\t}", "private static void addShapeless()\n {}", "public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }", "@Override\n\tpublic int add(Forge_Order_Detail t) {\n\t\treturn 0;\n\t}", "private void addNewSpinnerItem8() \n\t{\n\t\tmscust=ecust.getText().toString();\n\t\tCharSequence textHolder = \"\" +mscust; \n\t\tadapterpao.insert(textHolder, 0);\n\t\tspao.setAdapter(adapterpao);\n\t}", "static void add_with_reg(String passed){\n\t\tint sum = hexa_to_deci(registers.get('A'));\n\t\t/*\n\t\t * This will be valid only when sign arithematic is being performed\n\t\t * if(S)\n\t\t\tsum*=-1;\n\t\t */\n\t\tsum+=(hexa_to_deci(registers.get(passed.charAt(4))));\n\t\tCS = sum>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(sum));\n\t\tmodify_status(registers.get('A'));\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void addAndReturnOld() {\n\n }", "public A3Add(){}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public static void addList() {\n\t}", "public void add(String f){\n\t\tthis.vetor[contagem] = f;\n\t\tthis.contagem++;\n\t}", "public void add(String str);", "public void add(String str);", "@Override\n\t\tpublic int add(int a, int b) throws RemoteException {\n\t\t\tLog.i(TAG, \"add a = \" + a + \", b = \" + b);\n\t\t\treturn a+b;\n\t\t}", "@Override\n\t public void printAdd(int a,int b) { \n\t\t super.printAdd(10,20); \n\t }", "@Override\n\tpublic void add(double dx, double dy) {\n\t\t\n\t}", "public void add(int add){\n if (!elementOf(add)) {\n int[] added = new int[set.length + 1];\n for(int element = 0; element < set.length; element++){\n added[element] = set[element];\n }\n added[set.length] = add; \n setSet(added);\n added = null;\n }\n }", "public void dvAdded()\r\n/* 76: */ {\r\n/* 77:160 */ this.numDVRecords += 1;\r\n/* 78: */ }", "public void adding() {\n\t\t By cr=By.xpath(\"//a[@href=\\\"/cart?add&itemId=EST-2\\\"]\"); \r\n\t\tWebElement we_cr=wt.ElementToBeClickable(cr, 20);\r\n\t\twe_cr.click();\r\n\t}", "void addButton_actionPerformed(ActionEvent e) {\n addButton();\n }", "public void add(int v, int p){\n \n \n \n }", "private void addOp(final Op op) {\n result.add(op);\n }", "@Override\r\n\tpublic void add(Object object) {\n\t\t\r\n\t}", "void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}", "public void add(int add) {\r\n value += add;\r\n }", "@Test\r\n\tpublic void testAdd() {\n\t\tint num1=10;int num2=20;\r\n\t\t\r\n\t\t//Test here:\r\n\t\t//assertEquals(30, ClientMain.add(num1,num2));\r\n\t\t\r\n\t\t\r\n\t}", "public void addNew() {\n\t\t\n\t\tTag t = new Tag();\n\t\tt.setName(name);\n\t\tt.setColor(color);\n\t\t\n\t\tDAO.getInstance().addTag(t);\n\t\t\n\t\tname = null;\n\t\tcolor = null;\n\t\t\n\t}", "public void AddReliquias(){\n DLList reliquias = new DLList();\n reliquias.insertarInicio(NombreReliquia); \n }", "@Override\n\tpublic boolean add(E e) {\n\t\treturn false;\n\t}", "public void checkNewAdded(Instance add) {\n List<Instance> keySet = new LinkedList<Instance>();\n keySet.addAll(backRelation.keySet());\n Boolean added = false;\n for (Instance inst : keySet) {\n if (inst.getName().equals(add.getName()) || inst.getMd5().equals(add.getMd5())) {\n added = true;\n ArrayList<Instance> tmp = backRelation.get(inst);\n tmp.add(add);\n backRelation.remove(inst);\n backRelation.put(inst, tmp);\n if (relatedInstances.containsKey(inst)) {\n ArrayList<Instance> tmpRI = relatedInstances.get(add);\n tmpRI.add(inst);\n relatedInstances.remove(add);\n relatedInstances.put(add, tmpRI);\n\n } else {\n ArrayList<Instance> tmpRI = new ArrayList<Instance>();\n tmpRI.add(inst);\n relatedInstances.put(add, tmpRI);\n }\n\n }\n }\n if (added) {\n instances.add(add);\n }\n }", "abstract int add(String cruise_add, String advice_add);", "protected void onAdd( E entity, int index )\r\n\t{\r\n\t\t\r\n\t}", "private void add(String key) {\n dict = add(dict, key, 0);\n }", "private void addNewSpinnerItem4() \n\t{\n\t\tmscust=ecust.getText().toString();\n\t\tCharSequence textHolder = \"\" +mscust; \n\t\tadapterpah.insert(textHolder, 0);\n\t\tspah.setAdapter(adapterpah);\n\t}", "@Override\r\n\tpublic void add(HttpServletRequest request,HttpServletResponse response) throws IOException \t{\n\t\tthis.URL1=\"../admin/xiaoshuoadd.jsp\";\r\n\t\tRandom random=new Random();\r\n\t\tbean.setHits(1000+random.nextInt(8999));\r\n\t\tsuper.add(request,response);\r\n\t}", "public void add(Object value) {\n\n\t}", "public void add() {\r\n\t\tint num1=5,num2=3,sum;\r\n\r\n\t\tsum=num1+num2;\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Adding two numbers\" + sum);\r\n\t\r\n\t\t\r\n\t}", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Loc addNewLoc();", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic int add(int a,int b) {\n\t\treturn a+b;\r\n\t}", "static void add() {\r\n\t\tSystem.out.println(\"Overloading Method\");\r\n\t}", "private void addData() {\n Details d1 = new Details(\"Arpitha\", \"+91-9448907664\", \"25/05/1997\");\n Details d2 = new Details(\"Abhijith\", \"+91-993602342\", \"05/10/1992\");\n details.add(d1);\n details.add(d2);\n }", "@Override\r\n\t//public void sqlQueryAdd(JComboBox combo, String name, JTextArea textArea, Vector vectorCombo) {\r\n\tpublic void sqlQueryAdd(String name, Vector vectorCombo) {\n\t\ttry {\r\n\t\t\tstatement = conn.prepareStatement(\"INSERT INTO words VALUES(?, ?)\");\t\t\r\n\t\t\tstatement.setString(1, name);\r\n\t\t\tstatement.setString(2, \"put contents here & click Update!\"); \r\n\t // add a word into the words table\r\n\t statement.executeUpdate();\r\n\t \r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\ttextArea.setText(e.getMessage());\r\n\t\t\t\r\n\t\t}\r\n \r\n sqlQueryList(vectorCombo);\r\n comboBox.setSelectedItem(name);\r\n //JOptionPane.showMessageDialog(null, name + \" needs to be updated with contents\");\r\n sqlQueryDisplay(name);\r\n \r\n\t}", "public void addAddFile( String addfile ) {\n if ( addfile == null ) {\n return ;\n }\n addfiles .addElement( addfile );\n }", "public boolean add(String value){\n\t//add to the correct spot.\n\t//you may still use super.add(index,value)\n\tif (size() == getData().length) {\n\t resize();\n\t}\n\t//index = findIndex(value);\n\tint index = findIndexBinary(value);\n\tsuper.add(index,value);\n\treturn true;\n }", "public void add(){\n contador += 100;\n }", "@Override\r\n\tpublic void add() {\n\t\tif(alreadyAdded()) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Member is already added\");\r\n\t\t}else {\r\n\t\t\t\r\n\t\t\t\ttry(Connection connection= db.getConnection();) {\r\n\t \t\r\n\t\t\t\t\r\n\t\t\t\tString addString=\"INSERT INTO members VALUES(?,?,?,?)\";\r\n\t\t\t\tpreparedStatement=connection.prepareStatement(addString);\r\n\t\t\t\tpreparedStatement.setString(1, super.getIdString());\r\n\t\t\t\tpreparedStatement.setString(2, super.getNameString());\r\n\t\t\t\tpreparedStatement.setString(3, super.getSurnameString());\r\n\t\t\t\tpreparedStatement.setString(4, super.getEmailString());\r\n\t\t\t\t\r\n\t\t\t\tpreparedStatement.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Something went wrong\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t}", "void add(String value);", "public void setadd()\r\n\t{\r\n\t\tthis.jButtonadd.setEnabled(false);\r\n\r\n\t\tthis.jButtoncpsource.setEnabled(true);\r\n\t\tthis.jButtonctarget.setEnabled(false);\r\n\t\tthis.jButtonremend.setEnabled(false);\r\n\t\tthis.jButtonsave.setEnabled(true);\r\n\t\tthis.jButtonquery.setEnabled(true);\r\n\t\tthis.jButtoncopy.setEnabled(false);\r\n\t\tthis.jButtonfirst.setEnabled(true);\r\n\t\tthis.jButtonprev.setEnabled(true);\r\n\t\tthis.jButtonnext.setEnabled(true);\r\n\t\tthis.jButtonlast.setEnabled(true);\r\n\t\tthis.jButtonprint.setEnabled(true);\r\n\t\tthis.jButtonclose.setEnabled(false);\r\n\t\tthis.jButtoncancel.setEnabled(true);\t\r\n\t\tthis.jButtonaddrow.setEnabled(true);\t\t\r\n\t this.jButtondelrow.setEnabled(true);\r\n\t this.jButtondel.setEnabled(false);\r\n\t this.jButtonaddplus.setEnabled(false);\r\n\t this.jButtonapplied.setEnabled(true);\t \r\n\t this.jButtonSN.setEnabled(true);\t \r\n\t}", "@Override\n\tpublic int add(Message t) {\n\t\treturn 0;\n\t}", "void add(Point point) {\n\t\tpoints[posit]=point;\n\t\tposit++;\n\t\t//if method add is applied, size should also change\n\t\tsize++;\n\t}", "void add(Note note);", "public void addFjlx(Fjlx fx) {\n\r\n\t}", "public void add(Double addedAmount) {\n }" ]
[ "0.7607049", "0.7004746", "0.68011314", "0.67361027", "0.6637875", "0.6637875", "0.6637875", "0.66296834", "0.635024", "0.63419914", "0.6309294", "0.62991923", "0.62906057", "0.61788833", "0.61653996", "0.615469", "0.6139395", "0.598278", "0.598278", "0.5870988", "0.5850374", "0.5830754", "0.58260137", "0.5811968", "0.5810321", "0.5792825", "0.57919204", "0.57885605", "0.57754815", "0.57525456", "0.57502145", "0.5748724", "0.5742414", "0.5728674", "0.5721438", "0.5718049", "0.57085526", "0.5695606", "0.56846577", "0.56598616", "0.56525105", "0.56470346", "0.56430995", "0.5636791", "0.56304735", "0.562584", "0.5621638", "0.56171143", "0.56167316", "0.5612909", "0.5611696", "0.5608325", "0.5608057", "0.5605655", "0.5603629", "0.5600339", "0.55973005", "0.55929905", "0.55879104", "0.55879104", "0.5583057", "0.55830353", "0.55791795", "0.5575304", "0.5572124", "0.55682725", "0.555853", "0.555618", "0.55526346", "0.5548153", "0.55442166", "0.5525262", "0.55252266", "0.5516037", "0.55139285", "0.5510044", "0.5509429", "0.55059135", "0.550019", "0.5497952", "0.5494943", "0.5482061", "0.54752386", "0.5473506", "0.54671836", "0.54533005", "0.5450755", "0.5449926", "0.54482406", "0.54412836", "0.5437253", "0.5433301", "0.54317605", "0.54238236", "0.5419779", "0.541834", "0.54153186", "0.5410912", "0.5409397", "0.54049444", "0.5402778" ]
0.0
-1
TODO: NEW 0327 /itemSearch = new ItemDetailSearchTask(this, shopId, shopName);
public void getItemDetail(String itemCode, String shopId, String shopName) { itemSearch = new ItemDetailSearchTask(this, shopId, shopName, getUUID()); try { itemSearch.execute(itemCode); } catch (RejectedExecutionException e) { LogUtils.getInstance() .e(RecommendList.class, "RejectedExecutionException occurred on ItemDetailSearchTask"); if (this.progressDialog != null && this.progressDialog.isShowing()) this.progressDialog.dismiss(); Toast.makeText(this, R.string.toast_itemdetail_error, Toast.LENGTH_LONG).show(); } catch (Exception e) { LogUtils.getInstance().e(RecommendList.class, "Exception occurred on ItemDetailSearchTask"); if (this.progressDialog != null && this.progressDialog.isShowing()) this.progressDialog.dismiss(); Toast.makeText(this, R.string.toast_itemdetail_error, Toast.LENGTH_LONG).show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\n\t\t\t\tList<StoreArticle> list = getShop().searchByArticle(filter);\n\t\t\t\tStoreArticle[] array = list.toArray(new StoreArticle[0]);\n\t\t\t\tadapter = new SearchByArticleAdapter(SearchActivity.this, R.layout.search_view, array);\n\t\t\t\treturn null;\n\t\t\t}", "@Test(dependsOnMethods = {\"login\"})\n\tpublic void searchItem() {\n\t\thome.searchItem(data.readData(\"searchItem\"));\n\t\t// generating random number from total search result display using random number generator\n\t\tint index=data.randomeNum(getElementsCount(By.id(home.selectItem)));\n\t\t// storing title and price of searched item from search screen to verify later\n\t\ttitle= home.getTitle(index);\n\t\tprice=home.getPrice(index);\n\t\telementByIndex(By.id(home.selectItem), index).click();\n\t\twaitForElement(By.xpath(item.review));\n\t\t//Scrolling till we see addtocart button\n\t\tscrollPage();\n\t\tboolean actual = elementDisplay(By.xpath(item.addToCar));\n\t\tAssert.assertEquals(actual, true,\"Add to cart button not display\");\n\t}", "@Override\n\tprotected void startSearchResultActivity(String[] search_ifs) {\n\t\tItemSearchResultActivity.startThisActivity(this, getString(R.string.detail_search), search_ifs);\n\t}", "public Inventory searchForItem (TheGroceryStore g, Inventory i, String key);", "@Override\r\n\tpublic void process(ResultItems resultItems, Task task) {\n\t\tfinal String url = resultItems.getRequest().getUrl();\r\n\t\tSystem.out.println(\"****************--Entry Pipeline Process--*****************\");\r\n\t\tSystem.out.println(\"Get page: \" + url);\r\n\r\n\t\t/*\r\n\t\t * if(url.matches(\r\n\t\t * \"http://blog\\\\.sina\\\\.com\\\\.cn/s/articlelist_.*\\\\.html\")){//文章列表\r\n\t\t * System.out.println(\"No Op in Article List\"); // }else\r\n\t\t * if(url.matches(\"http://www\\\\.asianews\\\\.it/news-en/.*\")){\r\n\t\t */\r\n\t\t// 具体文章内容\r\n\t\tString time = null, title = null, content = null, abstracts = null, convertUrl = null,query=\"\";\r\n\r\n\t\tfor (Map.Entry<String, Object> entry : resultItems.getAll().entrySet()) {\r\n\t\t\t// System.out.println(entry.getKey()+\":\\n\"+entry.getValue());\r\n\r\n\t\t\tif (AsianViewDetailItem.TIME.equals(entry.getKey())) {\r\n\t\t\t\ttime = (String) entry.getValue();\r\n\t\t\t} else if (AsianViewDetailItem.TITLE.equals(entry.getKey())) {\r\n\t\t\t\ttitle = (String) entry.getValue();\r\n\t\t\t} else if (AsianViewDetailItem.ABSTRACT.equals(entry.getKey())) {\r\n\t\t\t\tabstracts = (String) entry.getValue();\r\n\t\t\t} else if (AsianViewDetailItem.CONTENT.equals(entry.getKey())) {\r\n\t\t\t\tcontent = (String) entry.getValue();\r\n\t\t\t} else if (AsianViewDetailItem.URL.equals(entry.getKey())) {\r\n\t\t\t\tassert url.equals(entry.getValue());\r\n\t\t\t} else if (AsianViewDetailItem.CONVERT_URL.equals(entry.getKey())) {\r\n\t\t\t\tconvertUrl = (String) entry.getValue();\r\n\t\t\t}else if(AsianViewDetailItem.QUERY.equals(entry.getKey())){\r\n//\t\t\t\tquery=\"//query_\"+(String) entry.getValue();\r\n\t\t\t\tquery=(entry.getValue()!=null)?\"//query_\"+entry.getValue():\"\";\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t// System.out.println(\"Time:\\n\"+CorpusFormatter.timeFormat(time));\r\n\t\t//\r\n\t\t// System.out.println(\"Title:\\n\"+title);\r\n\t\t//\r\n\t\t// System.out.println(\"Abstract:\\n\"+abstracts);\r\n\t\t//\r\n\t\t// System.out.println(\"Content:\\n\"+content);\r\n\t\t//\r\n\t\t// System.out.println(\"Url:\\n\"+url);\r\n\r\n\t\tString id = String.format(\"%s-%s\", time, ++counter);\r\n\r\n\t\tfinal String fileName = String.format(\".//\" + FileUtils.docName + \"%s//%s.txt\",query, id);\r\n\t\tSystem.out.println(\"File name :\" + fileName);\r\n\t\t// FileUtils.writeContent(fileName, time, title, content);\r\n\t\tFileUtils.writeCorpus(fileName,\r\n\t\t\t\tconvertUrl != null\r\n\t\t\t\t\t\t? CorpusFormatter.format(id, time, url, \"T\", \"P\", title, abstracts,\r\n\t\t\t\t\t\t\t\tcontent, \"\", \"\", convertUrl)\r\n\t\t\t\t\t\t: CorpusFormatter.format(id, time, url, \"T\", \"P\", title, abstracts,\r\n\t\t\t\t\t\t\t\tcontent, \"\", \"\"));\r\n\r\n\t\t// }else{\r\n\t\t// System.out.println(\"Can't match Url\");\r\n\t\t// }\r\n\t\tSystem.out.println(\"****************--Exit Pipeline Process--*****************\");\r\n\r\n\t}", "public String conductSearchForItem()\r\n\t{\r\n\t\tAdvancedSearch_Model query = new AdvancedSearch_Model();\r\n\t\t\r\n\t\tif (this.typeFilter.equals(\"Subject\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CATEGORY, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Type\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Creator\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CREATOR, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Location\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_LOCATION,\r\n\t\t\t this.selectedItem.getTerm());\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getType());\r\n\t\t}\r\n\t\t\r\n\t\t// Set the AdvancedSearch_Model on the Search Backing Bean\r\n\t\tthis.searchBackingBean.setAdvancedQueryModel(query);\r\n\t\tthis.searchBackingBean.setSimpleOrAdvanced(SimpleOrAdvanced.ADVANCED);\r\n\t\tthis.searchBackingBean.setSearchType(\"all\");\r\n\t\tthis.searchBackingBean.autoSearch();\r\n\t\t\r\n\t\t// Transfer the user to the Search Results page\r\n\t\tthis.pageBackingBean.setRenderPage(Constants.PAGE_RESTRICTED_SEARCHRESULTS);\r\n\t\t\r\n\t\treturn \"update\";\r\n\t}", "public Inventory inventorySearch (TheGroceryStore g, String searchKey);", "public Search(UserInput userInput) {\n\t\tthis.userInput = userInput;\n\t\tstorage = Storage.getInstance();\n\t\tfeedback = Feedback.getInstance();\n\t\tnew ArrayList<Task>();\n\t}", "public SearchRepositoryTask(RepositorySearchCriteria taskData, TaskResultHandlerI handler,\n DexStatusController statusController) {\n super( taskData, handler, statusController );\n\n // Replace start message from super-type.\n msgBuilder = new StringBuilder( \"Searching repository: \" );\n msgBuilder.append( taskData.getQuery() );\n updateMessage( msgBuilder.toString() );\n }", "List<ShipmentInfoPODDTO> search(String query);", "public void searchItem(String itemnum){\t\r\n\t\tString searchitem = getValue(itemnum);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+searchitem);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Item should be searched in the search box\");\r\n\t\ttry{\r\n\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\twaitforElementVisible(locator_split(\"txtSearch\"));\r\n\t\t\tclearWebEdit(locator_split(\"txtSearch\"));\r\n\t\t\tsendKeys(locator_split(\"txtSearch\"), searchitem);\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Item is searched in the search box\");\r\n\t\t\tSystem.out.println(\"Search item - \"+searchitem+\" is entered\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Item is not entered in the search box \"+elementProperties.getProperty(\"txtSearch\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtSearch\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "@GetMapping(value=\"/item/view/{searchId}/{itemId}\")\r\n\tpublic ModelAndView itemDetailGet(@PathVariable Long itemId, @PathVariable Long searchId) {\r\n\t\tEbayItem item;\r\n\t\tModelAndView modelAndView = new ModelAndView();\r\n\t\tSearch search;\r\n\t\ttry {\r\n\t\t\tsearch = searchService.getSearch(searchId);\r\n\t\t} catch (Exception e) {\r\n\t\t\tsearch = null;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\titem = itemService.getItemForDisplay(itemId, search);\r\n\t\t} catch (Exception e) {\r\n\t\t\tmodelAndView.setViewName(\"redirect:/error\");\r\n\t\t\treturn modelAndView;\r\n\t\t}\r\n\t\tsetUpModelAndView(modelAndView, item);\r\n\t\tmodelAndView.setViewName(\"itemDetail\");\r\n\t\treturn modelAndView;\r\n\t}", "public void invokeViewItem(String itemToSearch){\n AsyncHttpClient client = new AsyncHttpClient();\n client.setBasicAuth(globalUsername, globalPassword);\n client.get(\"http://\" + globalURL + \"/Auction_Server/items/\"+itemToSearch, new AsyncHttpResponseHandler() { // deleted params\n\n @Override\n public void onSuccess(int i, Header[] headers, byte[] bytes)\n {\n try {\n String response = new String(bytes, \"UTF-8\");\n JSONObject obj = new JSONObject(response);\n String itemId = obj.get(\"item_id\").toString();\n String itemName = obj.get(\"item_name\").toString();\n String itemCategory = obj.get(\"item_category\").toString();\n String itemDescription = obj.get(\"item_desc\").toString();\n String itemStartPrice = obj.get(\"item_start_price\").toString();\n String itemLastBidPrice = obj.get(\"item_latest_bid_price\").toString();\n String itemPictureString = \"\";\n if (!obj.isNull(\"item_picture\")) { // displaying the picture from string to byte[] to bitmap and display\n itemPictureString = obj.get(\"item_picture\").toString();\n byte[] itemPictureBytes = new BASE64Decoder().decodeBuffer(itemPictureString);\n Bitmap itemPictureBitmap = BitmapFactory.decodeByteArray(itemPictureBytes, 0, itemPictureBytes.length);\n ImageView showItemPicture = (ImageView) findViewById(R.id.viewItemImageViewId);\n showItemPicture.setImageBitmap(itemPictureBitmap);\n }\n TextView fillUserInfo = (TextView) findViewById(R.id.viewItemInfoTextViewId);\n fillUserInfo.setText(\"Item Name: \" + obj.get(\"item_name\") + \"\\nItem Description: \" + obj.get(\"item_desc\") +\n \"\\nCategory: \" + obj.get(\"item_category\") + \"\\nCurrent Bid: \" + obj.get(\"item_latest_bid_price\") +\n \"\\nStarting price: \" + obj.get(\"item_start_price\") + \"\\nNumber of Bids: \" + obj.get(\"item_num_bids\") +\n \"\\nLatest bid username: \" + obj.get(\"item_latest_bid_username\") + \"\\nLast Bid Time: \" + obj.get(\"item_latest_bid_time\").toString().substring(0,16));\n } catch (Exception e) {\n Toast.makeText(getApplicationContext(), \"Error Occured [Server's JSON response might be invalid]!\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(int i, Header[] headers, byte[] bytes, Throwable throwable)\n {\n String response = \"\";\n try {\n response = new String(bytes, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n Toast.makeText(getApplicationContext(), response, Toast.LENGTH_LONG).show();\n }\n\n });\n }", "public TaskItem findTask(String subject) throws HarnessException {\n\t Object[] params = {subject};\n\t return (TaskItem)GeneralUtility.waitFor(null, this, false, \"browseTask\", params, WAIT_FOR_OPERAND.NEQ, null, 30000, 1000);\n\t}", "@Override\n public void updateItemSearchIndex() {\n try {\n // all item IDs that don't have a search index yet\n int[] allMissingIds = mDatabaseAccess.itemsDAO().selectMissingSearchIndexIds();\n // Selects the item to the id, extract all parts of the item name to create the\n // search index (all ItemSearchEntity's) and insert them into the database\n for (int missingId : allMissingIds) {\n try {\n ItemEntity item = mDatabaseAccess.itemsDAO().selectItem(missingId);\n List<ItemSearchEntity> searchEntities = createItemSearchIndex(item);\n mDatabaseAccess.itemsDAO().insertItemSearchParts(searchEntities);\n } catch (Exception ex) {\n Log.e(TAG, \"An error occurred trying to create the search index to the id\" +\n missingId, ex);\n }\n }\n } catch (Exception ex) {\n Log.e(TAG, \"A general failure has occurred while trying to load and process all \" +\n \"item IDs to generate a search index\", ex);\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String showid = ((TextView) view.findViewById(R.id.search_show_id)).getText().toString();\n Log.d(\"Show\", showid + \"\");\n new getShowInfoTask().execute(showid);\n }", "@CSIContractTest( Project.SWA_MOPP )\n @Test\n public void testSearch_Success() throws Exception {\n TaskDefinitionSearchParameters taskDefSearchParams = new TaskDefinitionSearchParameters();\n\n taskDefSearchParams.setClassCode( taskDef1.getClassCd() );\n taskDefSearchParams.setSubclassCode( taskDef1.getSubclassCd() );\n taskDefSearchParams.setStatusCodes( Arrays.asList( taskDef1.getStatusCd() ) );\n taskDefSearchParams.setAssemblyId( taskDef1.getAssmblId() );\n\n List<TaskDefinition> results = testTaskDefinitionResource.search( taskDefSearchParams );\n\n assertEquals( \"Unexpected number of results returned: \", 1, results.size() );\n\n assertTaskDefinition( taskDef1, results.get( 0 ) );\n }", "public IndexedList<Task> search() {\n\t\treturn null;\n\t}", "@Override\n public void startSearchTask() {\n if (mSearchTask != null) {\n mSearchTask.cancelTask();\n }\n mSearchTask = new BackgroundTask(getActivity()) {\n @Override\n protected boolean performInBackground() {\n return mPresenter.loadDataInBackground();\n }\n\n @Override\n protected void performOnCompletion(boolean isSuccessful) {\n mPresenter.onDataLoaded(isSuccessful);\n }\n };\n\n mSearchTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }", "@Override\r\n\tprotected Task<String> createTask() {\r\n\t\t\r\n return new Task<String>() {\r\n @Override\r\n protected String call() {\r\n \t\tif (scannedFiles == null) {\r\n \t\t\tscannedFiles = FolderScanner.scan(Settings.SOURCE_TXT_FOLDER);\r\n \t\t\t\r\n \t\t\t// Return null since this step is only used for search engine \r\n \t\t\t// initialization (scan files).\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\t\r\n \treturn SearchingAdapter.getResultsPage(scannedFiles, keyword);\r\n }\r\n };\r\n\t}", "public TaskItem browseTask(String subject) throws HarnessException {\n\t // Get the list of tasks in the view\n List<TaskItem> tasks = zGetTasks();\n ZAssert.assertNotNull(tasks, \"Verify the list of tasks exists\");\n\n // Iterate over the task list, looking for the new task\n TaskItem found = null;\n for (TaskItem t : tasks ) {\n logger.info(\"Task: looking for \"+ subject +\" found: \"+ t.gSubject);\n if ( subject.equals(t.gSubject) ) {\n // Found it!\n found = t;\n }\n }\n return found;\n\t}", "public ItemDTO searchItemInventory(int idItem) {\n\t\tfor (ItemData item : items) {\n\t\t\tif (item.idItem == idItem) {\n\t\t\t\treturn new ItemDTO(item.idItem, item.description, item.price, item.VAT, item.quantitySold);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tLog.i(TAG, \"onItemSelected()\");\n\n\t\t\tswitch (item.getItemId()) { \n\t\t\tcase R.id.idSearchNew:\n\t\t\t\t// start a new search \n\t\t\t\tMakeToast.makeToast(this, \"start a new search\",\n\t\t\t\t\t\t\t\t\tMakeToast.LEVEL_DEBUG);\n\t\t\t\tbreak;\n\n\t\t\tcase R.id.idSearchAgain:\n\t\t\t\t// search again in current results \n\t\t\t\tMakeToast.makeToast(this, \"start search in current result\",\n\t\t\t\t\t\t\t\t\tMakeToast.LEVEL_DEBUG);\n\t\t\t\tbreak;\n\n\t\t\tcase R.id.idEndSearch:\n\t\t\t\t// done searching\n\t\t\t\tfinish();\t\t// end this task\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "List<ProductPurchaseItem> getAllSupplierProductPurchaseItems(long suppId, String searchStr);", "private List<ItemSearchEntity> createItemSearchIndex(@Nonnull final ItemEntity item) {\n String[] nameParts = determineItemNameParts(item);\n List<ItemSearchEntity> itemSearch = new ArrayList<>(nameParts.length);\n for (final String part : nameParts) {\n itemSearch.add(new ItemSearchEntity(item.getItemId(), part));\n }\n return itemSearch;\n }", "@Override\n public SearchResult search_item(String keyword, int page, int rows , int search_type) throws Exception{\n return null;\n }", "public Item getItem(long idItem) throws ItemNotFound;", "private void doSearch(String queryStr) {\n\t\t\n\t\t\n\t\tdbHelper = new DatabaseHelper(getApplicationContext());\n\t\tall_Item = Items.getSearchResults(dbHelper, queryStr);\n\t\t\n\n\t\tsearch_list = (ListView) findViewById(R.id.search_list);\n\t\tadapter = new SearchResultListAdaptor(this, R.layout.search_list_display, all_Item);\n\t\tfor(int i=0;i<all_Item.size();i++)\n\t\t adapter.add(all_Item.get(i));\n\t\t\n\t\tsearch_list.setAdapter(adapter);\n\t\t\n\t\t\n\t}", "@Override\n public void search(SearchQuery searchQuery) throws VanilaException {\n\n setKeepQuite(false);\n\n String query = searchQuery.query;\n SearchOptions options = searchQuery.options;\n\n if (isCacheHavingResults(query)) {\n searchComplete(query, mRecentSearchResultsMap.get(query), null);\n }\n else {\n if (mIsBusyInSearch) {\n mMostRecentAwaitingQuery = searchQuery;\n }\n else {\n\n mMostRecentAwaitingQuery = null;\n mIsBusyInSearch = true;\n\n FSRequestDTO request = mFSContext.buildVenueRequest(query, options);\n\n FSVenueSearchGateway gateway = mMobilePlatformFactory.getSyncAdapter()\n .getSyncGateway(FSVenueSearchGateway.CLASS_NAME);\n gateway.fireReadVenueListRequest(request);\n }\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n int relpos = position - 1;\n Intent intent = new Intent();\n intent.setClass(InspectTaskList.this, InspectTaskDetail.class);\n // getEntity\n if (list != null && list.size() > relpos) {\n Task task = list.get(relpos);\n String json = new Gson().toJson(task);\n intent.putExtra(AeaConstants.EXTRA_TASK, json);\n startActivityForResult(intent, REQUEST_CODE_TASK_REPORT);\n }\n selectedId = relpos;\n }", "private void searchItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public SearchResultRecyclerAdapter(TaskList myTaskList) {\n this.taskList = myTaskList;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (info != null && info.uid != null) {\n\t\t\t\t\tmSearch.poiDetailSearch(info.uid);\n\t\t\t\t}\n\t\t\t}", "public void start(final ElasticAsyncSearchTask task,\n final ResultStore resultStore) {\n final Runnable runnable = taskContextFactory.context(\n TASK_NAME,\n TerminateHandlerFactory.NOOP_FACTORY,\n taskContext -> {\n final AtomicBoolean destroyed = new AtomicBoolean();\n final ElasticAsyncSearchTaskHandler asyncSearchTaskHandler =\n elasticAsyncSearchTaskHandlerProvider.get();\n\n final SearchProcess searchProcess = new SearchProcess() {\n @Override\n public SearchTaskProgress getSearchTaskProgress() {\n final TaskProgress taskProgress =\n taskManager.getTaskProgress(taskContext);\n if (taskProgress != null) {\n return new SearchTaskProgress(\n taskProgress.getTaskName(),\n taskProgress.getTaskInfo(),\n taskProgress.getUserName(),\n taskProgress.getThreadName(),\n taskProgress.getNodeName(),\n taskProgress.getSubmitTimeMs(),\n taskProgress.getTimeNowMs());\n }\n return null;\n }\n\n @Override\n public void onTerminate() {\n destroyed.set(true);\n asyncSearchTaskHandler.terminateTasks(task, taskContext.getTaskId());\n }\n };\n\n // Set the search process.\n resultStore.setSearchProcess(searchProcess);\n\n // Don't begin execution if we have been asked to complete already.\n if (!destroyed.get()) {\n asyncSearchTaskHandler.search(taskContext, task, resultStore.getCoprocessors(), resultStore);\n }\n });\n CompletableFuture\n .runAsync(runnable, executor)\n .whenComplete((result, t) -> {\n if (t != null) {\n while (t instanceof CompletionException) {\n t = t.getCause();\n }\n\n // We can expect some tasks to throw a task terminated exception\n // as they may be terminated before we even try to execute them.\n if (!(t instanceof TaskTerminatedException)) {\n LOGGER.error(t.getMessage(), t);\n resultStore.addError(t);\n resultStore.signalComplete();\n throw new RuntimeException(t.getMessage(), t);\n }\n\n resultStore.signalComplete();\n }\n });\n }", "private static void searchForItem() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println(\" Please type your search queries\");\r\n\t\tSystem.out.println();\r\n\t\tString choice = \"\";\r\n\t\tif (scanner.hasNextLine()) {\r\n\t\t\tchoice = scanner.nextLine();\r\n\t\t}\r\n\t\t//Currently only supports filtering by name\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" All products that matches your search are as listed\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Id|Name |Brand |Price |Total Sales\");\r\n\t\tint productId = 0;\r\n\t\tfor (Shop shop : shops) {\r\n\t\t\tint l = shop.getAllSales().length;\r\n\t\t\tfor (int j = 0; j < l; j++) {\r\n\t\t\t\tif (shop.getAllSales()[j].getName().contains(choice)) {\r\n\t\t\t\t\tprintProduct(productId, shop.getAllSales()[j]);\r\n\t\t\t\t}\r\n\t\t\t\tproductId++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void InkandTonersearchbox(String searchitem){\r\n\t\tString inktonersearch = getValue(searchitem);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- The search item '\"+inktonersearch+\"' should be entered in the search box\");\r\n\t\ttry{\r\n\r\n\t\t\tsendKeys(locator_split(\"InkandTonersearchbox\"), inktonersearch);\r\n\t\t\tclick(locator_split(\"InkandTonersearchboxgo\"));\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(\"Search item \"+inktonersearch+\" is enterd\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Search item '\"+inktonersearch+\"' is enterd in search box\");\r\n\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Search item '\"+inktonersearch+\"' is not enterd in search box\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"InkandTonersearchbox\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+\" or \"+elementProperties.getProperty(\"InkandTonersearchboxgo\").toString().replace(\"By.\", \" \")+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public void findClick(View v){\n String taskName = justAddedTextView.getText().toString();\n PlannerDBHandler handler = new PlannerDBHandler(this);\n\n //Task task = handler.findTask(taskName);\n }", "private void search(String product) {\n // ..\n }", "public abstract S getSearch();", "private void search(String querySearch) {\n searchResult = new ArrayList<>();\n for (MonitoringModel item : searchList) {\n if (item.getPROG_ID().toLowerCase().contains(querySearch) || item.getPROG_ID().contains(querySearch) ||\n item.getKEPUTUSAN().toLowerCase().contains(querySearch) || item.getKEPUTUSAN().contains(querySearch) ||\n Common.formatTgl(item.getTGL_TARGET()).toLowerCase().contains(querySearch) || Common.formatTgl(item.getTGL_TARGET()).contains(querySearch) ||\n Common.formatStatusMonitoringToString(item.getLAST_STATUS()).toLowerCase().contains(querySearch) || Common.formatStatusMonitoringToString(item.getLAST_STATUS()).contains(querySearch)) {\n searchResult.add(item);\n }\n }\n if (searchResult.isEmpty())\n tvEmptySearch.setText(\"No results found for '\" + querySearch + \"'\");\n else\n tvEmptySearch.setText(\"\");\n\n searchAdapter = new ListAdapter(getContext(), searchResult);\n rvList.setAdapter(searchAdapter);\n }", "@Step(\"Work Order ServiceActivity Search Lookup\")\n public boolean lookupWorkOrderServiceActivitySearch(String searchText) {\n boolean flag = false;\n try {\n pageActions.clickAt(assignToMeBtn, \"Clicking on Assign to me button\");\n pageActions.clickAt(itemizedCostsButton, \"Clicking on Itemized Cost Button\");\n new WebDriverWait(driver, 45)\n .until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(itemizedFrame));\n logger.info(\"Switched to ItemizedCost Frame successfully\");\n new WebDriverWait(driver, 30).until(ExpectedConditions.visibilityOf(itemizedSubmitButton));\n pageActions.selectDropDown(itemize_CostType, \"Local Job Code\");\n pageActions.clickAt(localJobCodeLookup, \"Clicking on Local Job Code Look Up Search\");\n\n SeleniumWait.hold(GlobalVariables.ShortSleep);\n functions.switchToWindow(driver, 1);\n pageActions.selectDropDown(wrkOrdLookupSearchBy, \"Short Description\");\n pageActions.typeAndPressEnterKey(wrkOrdLookupSearch, searchText,\n \"Searching in the lookUp Window\");\n pageActions.typeAndPressEnterKey(shortDescriptionSearch, searchText,\n \"Searching in the lookUp Window Grid\");\n new WebDriverWait(driver, 30).until(ExpectedConditions\n .elementToBeClickable(By.xpath(\"//td[contains(text(),'\" + searchText + \"')]\")));\n flag =\n driver.findElement(By.xpath(\"//td[contains(text(),'\" + searchText + \"')]\")).isDisplayed();\n } catch (Exception e) {\n e.printStackTrace();\n System.out.println(e.getMessage());\n }\n finally {\n functions.switchToWindow(driver, 0);\n }\n return flag;\n }", "@Override\n public void doIT() throws RepositoryException {\n Repository repo = taskData.getRepository();\n\n if (repo instanceof RemoteRepository && taskData.getSubject() != null) {\n RemoteRepository rr = (RemoteRepository) repo;\n NamedEntity entity = (NamedEntity) taskData.getSubject().getTL();\n boolean includeIndirect = true;\n\n repoResults = new ArrayList<>();\n rr.getEntityWhereExtended( entity ).forEach( e -> repoResults.add( e ) );\n repoResults.addAll( rr.getEntityWhereUsed( entity, includeIndirect ) );\n // Returns list of repo items\n // RepositoryItem item = null;\n // rr.getItemWhereUsed( item, includeIndirect );\n log.debug( \"Found \" + repoResults.size() + \" entities.\" );\n } else {\n // Run full-text search\n // Result list contains both entity and library result items\n repoResults = repo.search( taskData.getQuery(), taskData.getIncludeStatus(),\n taskData.isLatestVersionsOnly(), taskData.getItemType() );\n log.debug( \"Found \" + repoResults.size() + \" items in repo.\" );\n }\n }", "@Test(dependsOnMethods = {\"searchItem\"})\n\tpublic void purchaseItem() {\n\t\tclickElement(By.xpath(item.addToCar));\n\t\twaitForText(By.id(item.cartButton), \"1\");\n\t\tclickElement(By.id(item.cartButton));\n\t\t// on checkout screen validating the title and price of item is same as what we selected on search result page by text.\n\t\tAssert.assertTrue(isPresent(locateElement(By.xpath(item.priceLocator(price)))));\n\t\tAssert.assertTrue(isPresent(locateElement(By.xpath(item.titlelocator(title)))));\t\n\t}", "private void onClickSearch() {\n if (lat.isEmpty() || lon.isEmpty()) {\n Toast.makeText(\n self,\n getResources()\n .getString(R.string.wait_for_getting_location),\n Toast.LENGTH_SHORT).show();\n getLatLong();\n }\n //get current distance search :\n distance = ((double) skbDistance.getProgress() / 10) + \"\";\n\n Bundle b = new Bundle();\n b.putString(GlobalValue.KEY_SEARCH, edtSearch.getText().toString());\n b.putString(GlobalValue.KEY_CATEGORY_ID, categoryId);\n b.putString(GlobalValue.KEY_CITY_ID, cityId);\n b.putString(GlobalValue.KEY_OPEN, ALL_OR_OPEN);\n b.putString(GlobalValue.KEY_DISTANCE, distance);\n b.putString(GlobalValue.KEY_SORT_BY, SORT_BY);\n b.putString(GlobalValue.KEY_SORT_TYPE, SORT_TYPE);\n if (Constant.isFakeLocation) {\n b.putString(GlobalValue.KEY_LAT, GlobalValue.glatlng.latitude + \"\");\n b.putString(GlobalValue.KEY_LONG, GlobalValue.glatlng.longitude + \"\");\n } else {\n b.putString(GlobalValue.KEY_LAT, lat);\n b.putString(GlobalValue.KEY_LONG, lon);\n }\n\n if (isSelectShop)\n ((MainTabActivity) getParent()).gotoActivity(\n SearchShopResultActivity.class, b);\n else\n ((MainTabActivity) getParent()).gotoActivity(\n SearchProductResultActivity.class, b);\n }", "void Search_for_item(String itemname) \n\t{ \n item it=new item();\n \n for(int i=0;i<it.itemfoundWithDescription.size();i++)\n {\n if(it.itemfoundWithDescription.get(i).equals(itemname))\n \t{\n System.out.println(\"item founded\");\n\t\t\texit(0);\n \t}\n \n }\n System.out.println(\"item not founded\");\n \n\t}", "@GetMapping(\"/search\")\n public ResultEntity<List<ItemDTO>> searchSaleRentItems(@RequestParam String name,\n @RequestParam String subId,\n @RequestParam String startTime,\n @RequestParam String endTime,\n @RequestParam String uId)\n {\n SearchDTO parameters=new SearchDTO(name,subId,startTime,endTime,uId);\n return itemService.searchItems(parameters, ConstantUtil.TYPE_SALE_RENT);\n }", "@Test\n public void searchItems_LocationIsInCityInfo_ReturnListOfItems(){\n assertEquals(Arrays.toString(workerI.searchItems(\"David\", null)), Collections.singletonList(\"Ho Chi Minh City, Downtown\").toString());\n assertNotEquals(Arrays.toString(workerI.searchItems(\"David\", null)), Collections.singletonList(\"Crescent Mall\").toString());\n assertNotEquals(Arrays.toString(workerI.searchItems(\"David\", null)), Collections.singletonList(\"abc\").toString());\n assertNotEquals(Arrays.toString(workerI.searchItems(\"David\",null)), Collections.singletonList(\"\").toString());\n }", "abstract public boolean performSearch();", "public IndexedList<Task> search(String partTitle) {\n\t\tpartTitle=partTitle.toLowerCase();\n\t\tLinkedList<Task> result=new LinkedList<Task>();\n\t\tfor(Task task : tasks) {\n\t\t\tif(task.getTitle().toLowerCase().contains(partTitle))\n\t\t\t\tresult.add(task);\n\t\t}\n\t\treturn result;\n\t}", "@Override\n public CommandResult execute(TaskList tasks, Storage storage) throws NoActionException {\n assert tasks != null;\n assert storage != null;\n if (this.searchTerms.length() == 0) {\n throw new NoActionException(\"Command 'find' requires search terms to be provided.\");\n }\n ArrayList<Task> matchList = new ArrayList<>();\n for (int i = 0; i < tasks.size(); i++) {\n Task currTask = tasks.get(i);\n if (currTask.contains(searchTerms)) {\n matchList.add(currTask);\n continue;\n }\n if (currTask.getTag().contains(searchTerms)) {\n matchList.add(currTask);\n }\n }\n return new CommandResult(Reply.showMatchingTasks(new TaskList(matchList)),\n true, super.isExit());\n }", "@Override\n\tpublic ArrayList<SearchItem> search(String key) {\n\t\treturn null;\n\t}", "private void search(){\n solo.waitForView(R.id.search_action_button);\n solo.clickOnView(solo.getView(R.id.search_action_button));\n\n //Click on search bar\n SearchView searchBar = (SearchView) solo.getView(R.id.search_experiment_query);\n solo.clickOnView(searchBar);\n solo.sleep(500);\n\n //Type in a word from the description\n solo.clearEditText(0);\n solo.typeText(0, searchTerm);\n }", "@Override\r\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n int id_To_Search = arg2 + 1;\r\n String name = (String) arg0.getItemAtPosition(arg2);\r\n\r\n Bundle dataBundle = new Bundle();\r\n dataBundle.putString(\"name\", name);\r\n dataBundle.putInt(\"id\", id_To_Search);\r\n\r\n Intent intent = new Intent(getApplicationContext(),DisplayCreatedRecipes.class);\r\n intent.putExtras(dataBundle);\r\n startActivity(intent);\r\n }", "@Override\n public void onCreateOptionsMenu(Menu menu,MenuInflater menuInflater) {\n\n menuInflater.inflate(R.menu.menu_search, menu);\n MenuItem menuItem = menu.findItem(R.id.action_search);\n SearchView searchView = null;\n if (menuItem != null)\n searchView = (SearchView) menuItem.getActionView();\n\n if (searchView != null) {\n searchView.setQueryHint(Tag.ENTER_PRODUCT);\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n\n @Override\n public boolean onQueryTextSubmit(String query) {\n if (UtilityFunctions.isNetworkAvailable(getActivity())) {\n //searching is done in async task\n searchQuery = query;\n UtilityFunctions.onProgressBarShow(getActivity());\n MyAsyncTaskDownloadDetails myAsyncTaskDownloadDetails = new MyAsyncTaskDownloadDetails();\n myAsyncTaskDownloadDetails.execute(new String[]{Tag.PLP_URL + query, Tag.PLP, \"\"});\n } else {\n Toast.makeText(getActivity(), Tag.NO_INTERNET, Toast.LENGTH_SHORT).show();\n }\n return true;\n }\n\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return true;\n }\n });\n }\n super.onCreateOptionsMenu(menu, menuInflater);\n }", "Search getSearch();", "private void performSearch() {\n try {\n final String searchVal = mSearchField.getText().toString().trim();\n\n if (searchVal.trim().equals(\"\")) {\n showNoStocksFoundDialog();\n }\n else {\n showProgressDialog();\n sendSearchResultIntent(searchVal);\n }\n }\n catch (final Exception e) {\n showSearchErrorDialog();\n logError(e);\n }\n }", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "private void setupSearchView(MenuItem searchItem) {\n\t\t if (isAlwaysExpanded()) {\n\t // mSearchView.setIconifiedByDefault(false);\n\t if (mSearchView.getVisibility() == View.VISIBLE) {\n\t\t\t\t mSearchView.setIconified(true);// to Expand the SearchView when clicked\n\t\t\t\t mSearchView.setVisibility(View.INVISIBLE);\n\t } else {\n\t \tmSearchView.setVisibility(View.VISIBLE);\n\t \tmSearchView.setIconified(false);\n\t }\n\t } else {\n\t searchItem.setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW);\n\t }\n\n\t SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n\t if (searchManager != null) {\n\t List<SearchableInfo> searchables = searchManager.getSearchablesInGlobalSearch();\n\n\t SearchableInfo info = searchManager.getSearchableInfo(getComponentName());\n\t for (SearchableInfo inf : searchables) {\n\t if (inf.getSuggestAuthority() != null\n\t && inf.getSuggestAuthority().startsWith(\"applications\")) {\n\t info = inf;\n\t }\n\t }\n\t mSearchView.setSearchableInfo(info);\n\t }\n\n\t mSearchView.setOnQueryTextListener(this);\n\t}", "public void searchInkAndTonnerItem(String itemnum){\t\r\n\t\tString searchitem = getValue(itemnum);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+searchitem);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Item should be searched in the Ink and Tonner search box\");\r\n\t\ttry{\r\n\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\twaitforElementVisible(locator_split(\"txtInkSearch\"));\r\n\t\t\tclearWebEdit(locator_split(\"txtInkSearch\"));\r\n\t\t\tsendKeys(locator_split(\"txtInkSearch\"), searchitem);\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Item is searched in the Ink and Tonner search box\");\r\n\t\t\tSystem.out.println(\"Ink and Tonner Search item - \"+searchitem+\" is entered\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Item is not entered in the search box \"+elementProperties.getProperty(\"txtSearch\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtInkSearch\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "public void search() {\r\n \t\r\n }", "private void search(String[] searchItem)\n {\n }", "public FindItemFragment() {\n }", "public ItemNotFoundException() {\n super();\n }", "List<SearchResult> search(SearchQuery searchQuery);", "@Override\r\n protected List<SearchResult> doInBackground(String... params) {\n if (searchResults == null)\r\n searchResults = new ArrayList<SearchResult>();\r\n\r\n return searchResults;\r\n\r\n }", "@ActionTrigger(action=\"KEY-ENTQRY\", function=KeyFunction.SEARCH)\n\t\tpublic void spriden_Search()\n\t\t{\n\t\t\t\n\t\t\t\texecuteAction(\"QUERY\");\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t}", "public Task gatherTaskInfo() {\n \t\n \tString title;\n \t\n \tEditText getTitle = (EditText)findViewById(R.id.titleTextBox);\n \t//EditText itemNum = (EditText)findViewById(R.id.showCurrentItemNum);\n \t \t\n \t//gathering the task information\n \ttitle = getTitle.getText().toString();\n\n \t//validate input \n \tboolean valid = validateInput(title);\n \t\n \t//if valid input and we have the properties create a task and return it\n \tif(valid && propertiesGrabbed) {\n \t\t\n\t \t//creating a task\n\t \tTask t = new TfTask();\n\t \tt.setTitle(title);\n\t \t\n\t \t//setting the visibility enum\n\t \tif(taskVisibility.equals(\"Public\")) { \t\t\n\t \t\tt.setVisibility(Visibility.PUBLIC); \t\t\n\t \t}else{\n\t \t\tt.setVisibility(Visibility.PRIVATE); \t\t\n\t \t}\n\t \t\n\t \t//creating each individual item\n\t \taddItemsToTask(t);\n\t \t\t \t\n\t \t//set the description\n\t \tt.setDescription(taskDescription);\n\n\t \t//set the email to respond to\n\t \tt.setEmail(taskResponseString);\n\t \t\n\t \t//return the task\t \t\n\t \treturn t;\n\t \t\n \t}else{\n \t\t//task not correct\n \t\treturn null;\n \t}\n }", "private void find(StorageSupportParameter searchParam) throws Exception\n\t{\t\n\n\t\tWorkingInformationSearchKey searchkey = new WorkingInformationSearchKey();\n\t\tWorkingInformationSearchKey consignorkey = new WorkingInformationSearchKey();\n\t\t//#CM570191\n\t\t// Set Work flag\n\t\tsearchkey.setJobType(SystemDefine.JOB_TYPE_STORAGE);\n\t\tconsignorkey.setJobType(SystemDefine.JOB_TYPE_STORAGE);\n\t\t//#CM570192\n\t\t// Set the Consignor code. Mandatory Item. \n\t\tsearchkey.setConsignorCode(searchParam.getConsignorCode());\n\t\tconsignorkey.setConsignorCode(searchParam.getConsignorCode());\n\t\t\n\t\tif(!StringUtil.isBlank(searchParam.getFromStoragePlanDate())){\n\t\t\t//#CM570193\n\t\t\t// Start Storage plan date\n\t\t\tsearchkey.setPlanDate(searchParam.getFromStoragePlanDate(),\">=\");\n\t\t\tconsignorkey.setPlanDate(searchParam.getFromStoragePlanDate(),\">=\");\n\t\t}\t\t\n\t\t\n\t\tif(!StringUtil.isBlank(searchParam.getToStoragePlanDate())){\n\t\t\t//#CM570194\n\t\t\t// End Storage plan date\n\t\t\tsearchkey.setPlanDate(searchParam.getToStoragePlanDate(),\"<=\");\n\t\t\tconsignorkey.setPlanDate(searchParam.getToStoragePlanDate(),\"<=\");\n\t\t}\n\t\t\n\t\tif(!StringUtil.isBlank(searchParam.getItemCode())){\n\t\t\t//#CM570195\n\t\t\t// Item Code\n\t\t\tsearchkey.setItemCode(searchParam.getItemCode());\n\t\t\tconsignorkey.setItemCode(searchParam.getItemCode());\n\t\t}\n\t\t\n\t\t//#CM570196\n\t\t//Check Case , Piece Flag\n\t\tif(!StringUtil.isBlank(searchParam.getCasePieceflg()))\n\t\t{\t\t\t\n\t\t\t\n\t\t\tif(SystemDefine.CASEPIECE_FLAG_CASE.equals(searchParam.getCasePieceflg()))\n\t\t\t{\t\t\t\n\t\t\t\tsearchkey.setWorkFormFlag(SystemDefine.CASEPIECE_FLAG_CASE);\n\t\t\t\tconsignorkey.setWorkFormFlag(SystemDefine.CASEPIECE_FLAG_CASE);\n\t\t\t}else if(SystemDefine.CASEPIECE_FLAG_PIECE.equals(searchParam.getCasePieceflg()))\n\t\t\t{\t\t\t\n\t\t\t\tsearchkey.setWorkFormFlag(SystemDefine.CASEPIECE_FLAG_PIECE);\n\t\t\t\tconsignorkey.setWorkFormFlag(SystemDefine.CASEPIECE_FLAG_PIECE);\n\t\t\t}else if(SystemDefine.CASEPIECE_FLAG_NOTHING.equals(searchParam.getCasePieceflg()))\n\t\t\t{\t\t\t\n\t\t\t\tsearchkey.setWorkFormFlag(SystemDefine.CASEPIECE_FLAG_NOTHING);\n\t\t\t\tconsignorkey.setWorkFormFlag(SystemDefine.CASEPIECE_FLAG_NOTHING);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//#CM570197\n\t\t// Work Status\n\t\tif(!StringUtil.isBlank(searchParam.getStatusFlagL()))\n\t\t{ \n\t\t\tif(searchParam.getStatusFlagL().equals(StorageSupportParameter.STATUS_FLAG_ALL))\n\t\t\t{\n\t\t\t\tsearchkey.setStatusFlag(WorkingInformation.STATUS_FLAG_DELETE,\"!=\");\n\t\t\t\tconsignorkey.setStatusFlag(WorkingInformation.STATUS_FLAG_DELETE,\"!=\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsearchkey.setStatusFlag(searchParam.getStatusFlagL());\n\t\t\t\tconsignorkey.setStatusFlag(searchParam.getStatusFlagL());\n\t\t\t}\n\t\t}\n\t\t//#CM570198\n\t\t// Retrieves excluding ASRS Work. \n\t\tsearchkey.setSystemDiscKey(SystemDefine.SYSTEM_DISC_KEY_ASRS, \"!=\");\n\t\tconsignorkey.setSystemDiscKey(SystemDefine.SYSTEM_DISC_KEY_ASRS, \"!=\");\n\t\t\n\t\t//#CM570199\n\t\t// Set the order of acquisition. \t\t\n\t\tsearchkey.setConsignorCodeCollect(\"\");\n\t\tsearchkey.setConsignorNameCollect(\"\");\n\t\tsearchkey.setPlanDateCollect(\"\");\n\t\tsearchkey.setItemCodeCollect(\"\");\n\t\tsearchkey.setItemName1Collect(\"\");\n\t\tsearchkey.setWorkFormFlagCollect(\"\");\n\t\tsearchkey.setResultLocationNoCollect(\"\");\n\t\tsearchkey.setLocationNoCollect(\"\");\n\t\tsearchkey.setEnteringQtyCollect(\"\");\n\t\tsearchkey.setBundleEnteringQtyCollect(\"\");\n\t\tsearchkey.setHostPlanQtyCollect(\"\");\n\t\tsearchkey.setResultUseByDateCollect(\"\");\n\t\tsearchkey.setUseByDateCollect(\"\");\n\t\tsearchkey.setPlanEnableQtyCollect(\"\");\n\t\tsearchkey.setItfCollect(\"\");\n\t\tsearchkey.setBundleItfCollect(\"\");\n\t\t\n\t\t//#CM570200\n\t\t// Set the order of sorting. \n\t\tif (!StringUtil.isBlank(searchParam.getStatusFlagL()))\n\t\t{\n\t\t\tsearchkey.setPlanDateOrder(1,true);\n\t\t\tsearchkey.setItemCodeOrder(2,true);\n\t\t\tsearchkey.setWorkFormFlagOrder(3,true);\n\t\t\tsearchkey.setLocationNoOrder(4,true);\n\t\t\t\t\n\t\t\tif (WmsParam.IS_USE_BY_DATE_UNIQUEKEY)\n\t\t\t{\n\t\t\t\tsearchkey.setUseByDateOrder(5,true);\n\t\t\t}\t\n\t\t}\n\t\t\n\t\twFinder = new WorkingInformationFinder(wConn);\n\t\t//#CM570201\n\t\t// Cursor open\n\t\twFinder.open();\n\t\tint count = ((WorkingInformationFinder)wFinder).search(searchkey);\n\t\t//#CM570202\n\t\t// Initialization\n\t\twLength = count;\n\t\twCurrent = 0;\n\t\t\n\t\t//#CM570203\n\t\t// Acquire Consignor Name. \n\t\tconsignorkey.setConsignorNameCollect(\"\");\n\t\tconsignorkey.setRegistDateOrder(1, false);\n\n\t\tWorkingInformationFinder consignorFinder = new WorkingInformationFinder(wConn);\n\t\tconsignorFinder.open();\n\t\tint nameCountCsg = consignorFinder.search(consignorkey);\n\t\tif (nameCountCsg > 0 && nameCountCsg <= DatabaseFinder.MAXDISP)\n\t\t{\n\t\t\tWorkingInformation view[] = (WorkingInformation[]) consignorFinder.getEntities(0, 1);\n\n\t\t\tif (view != null && view.length != 0)\n\t\t\t{\n\t\t\t\twConsignorName = view[0].getConsignorName();\n\t\t\t}\n\t\t}\n\t\tconsignorFinder.close();\n\t}", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);", "public CommandResult execute() {\n int i = 0;\n int found = 0;\n for (Task task : Duke.taskList) {\n i++;\n if (task.description.contains(keyword)) {\n System.out.println(i + \".[\" + task.getTaskID() + \"]\" +\n \"[\" + task.getStatusIcon() +\n \"] \" + task.description + \" \" + task.getDate());\n found++;\n }\n }\n if (found == 0) {\n return new CommandResult(\"No results found :(\");\n } else {\n return new CommandResult(System.lineSeparator() + found + \" results found!\");\n }\n }", "SearchResult<TimelineMeta> search(SearchQuery searchQuery);", "SearchResponse search(SearchRequest searchRequest) throws IOException;", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3)\n\t\t\t{\n\t\t\t\tString str = ((TextView) arg1\n\t\t\t\t\t\t.findViewById(R.id.search_item_name)).getText()\n\t\t\t\t\t\t.toString();\n\t\t\t\tintent.putExtra(\"name\", str);\n\t\t\t\tintent.setClass(SearchView.this.getActivity(),\n\t\t\t\t\t\tDetailInfoActivity.class);\n\t\t\t\tSearchView.this.startActivity(intent);\n\t\t\t}", "@Override\n\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tHashMap<String, String> map = (HashMap<String, String>) list_found.getItemAtPosition(position);\n\t\t\tString title = map.get(\"tv_title\");\n\t\t\tString phone = map.get(\"tv_photo\");\n\t\t\tString describe = map.get(\"tv_describe\");\n\t\t\tString _id = map.get(\"_id\");\n\t\t\tIntent intent = new Intent(FoundActivity.this, DetailedActivity.class);\n\t\t\tintent.putExtra(\"flag\", \"Found\");\n\t\t\tintent.putExtra(\"title\", title);\n\t\t\tintent.putExtra(\"phone\", phone);\n\t\t\tintent.putExtra(\"describe\", describe);\n\t\t\tintent.putExtra(\"_id\", _id);\n\t\t\tstartActivity(intent);\n\t\t}", "public Item getItemById(Integer itemId);", "public void search() {\n }", "protected NbaSearchVO lookupWork() throws NbaBaseException {\t//SPR2992 changed method signature\n\t\t//NBA213 deleted code\n\t\t\tNbaSearchVO searchVO = new NbaSearchVO();\n\t\t\tString entryPoints[] = { NbaVpmsAdaptor.EP_REIN_PRIMARY_SEARCH_FIELDS, NbaVpmsAdaptor.EP_REIN_SECONDARY_SEARCH_FIELDS };\n\t\t\tfor (int i = 0; i < entryPoints.length; i++) {\n\t\t\t\tNbaVpmsResultsData data = getDataFromVpms(entryPoints[i]);\n\t\t\t\t//begin SPR2806\n\t\t\t\tArrayList aList = data.getResultsData();\n\t\t\t\t//check if sufficient lob data is present on work, if not just skip this matching criteria\n\t\t\t\tif (!checkLobPresence(getWork().getNbaLob(), aList)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tsetLookupDataFound(true);\t//SPR2992\t\t\t\t\t\n\t\t\t\tsearchVO.setNbaLob(getNbaLobForLookup(aList));\n\t\t\t\t//Code moved ALS5171\n\t\t\t\t// end SPR2806\n\t\t\t\tif (getWork().getTransaction().getWorkType().equalsIgnoreCase(A_WT_REINSURANCE)) {\n\t\t\t\t\tsearchVO.setWorkType(A_WT_TEMP_REINSURANCE);\n\t\t\t\t\tsearchVO.setStatus(A_STATUS_REINSURANCE_INDEXED);//ALS5171\n\t\t\t\t} else {\n\t\t\t\t\tsearchVO.setWorkType(A_WT_REINSURANCE);\n\t\t\t\t\tif(isAdditionalInfo) {//ALS5494\n\t\t\t\t\t\tsearchVO.setQueue(END_QUEUE);//ALS5494\n\t\t\t\t\t}else {\n\t\t\t\t\t\tsearchVO.setStatus(A_STATUS_REINSURANCE_ORDERED);//ALS5171\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsearchVO.setResultClassName(\"NbaTransactionSearchResultVO\");\n\t\t\t\tsearchVO = lookupWork(getUser(), searchVO);\t//SPR3009, NBA213\n\t\t if (searchVO.isMaxResultsExceeded()){\t//NBA146\n\t\t throw new NbaBaseException(NbaBaseException.SEARCH_RESULT_EXCEEDED_SIZE, NbaExceptionType.FATAL);\t//NBA146\n\t\t }\t//NBA146\n\t\t\t\tif (!(searchVO.getSearchResults().isEmpty())) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn searchVO;\n\t\t//NBA213 deleted code\n\t}", "@OnClick(R.id.search_estate_bt_search)\n public void search(View view) {\n Log.d(TAG, \"search: \");\n\n mSearchEstateViewModel.searchEstate(\n mEstateType.getText().toString(),\n mPrice1.getText().toString(),\n mPrice2.getText().toString(),\n mSurface1.getText().toString(),\n mSurface2.getText().toString(),\n mCity.getText().toString(),\n mNumbersRooms1.getText().toString(),\n mNumbersRooms2.getText().toString(),\n mNumbersBathrooms1.getText().toString(),\n mNumbersBathrooms2.getText().toString(),\n mNumbersBedrooms1.getText().toString(),\n mNumbersBedrooms2.getText().toString(),\n mNumbersPhoto1.getText().toString(),\n mNumbersPhoto2.getText().toString(),\n // Point of Interest\n mChipGarden.isChecked(),\n mChipLibrary.isChecked(),\n mChipRestaurant.isChecked(),\n mChipSchool.isChecked(),\n mChipSwimmingPool.isChecked(),\n mChipTownHall.isChecked()\n );\n }", "@Override\r\n\tpublic Book searchBook(long ISBN) {\n\t\t transactionTemplate.setReadOnly(true);\r\n\t\treturn transactionTemplate.execute(new TransactionCallback<Book>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Book doInTransaction(TransactionStatus status) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n//\t\t\t\tBook book = bookDAO.serachBook(ISBN);\r\n\t\t\t\tBook book=new Book();\r\n\t\t\t\tbook.setISBN(ISBN);\r\n\t\t\t\tbookDAO.addBook(book);\r\n\t\t\t\treturn book;\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t}", "public SearchResultItem(AbstractIdentifier identifierA) {\n\t\tthis(identifierA, null);\n\t}", "abstract public void search();", "public TaskViewHolder(View itemView) {\n super(itemView);\n\n taskDescriptionView = (TextView) itemView.findViewById(R.id.taskDescription);\n\n }", "@Override\n public Item get(long idItem) throws EntityNotFound;", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n PlaceAutoComplete selected = (PlaceAutoComplete) parent.getItemAtPosition(position);\n // set distance to render because the search is up to 5000m\n radarPlugin.setMaxDistance(6000);\n mBeyondarFragment.setMaxDistanceToRender(6000);\n performPlaceDetailSearch(selected.getPlaceID());\n }", "public void searchFindItems(Search search, Boolean automatic) throws Exception {\r\n\t\t\r\n\t\tFindItemsAdvancedRequest request = SearchRequestMaker.createRequest(search);\r\n\t\tList<FindItemsAdvancedResponse> responses = new ArrayList<>();\r\n\t\r\n\t\tfixedPriceListings(request, responses, search, automatic);\r\n\t\tauctionListings(request, responses, search, automatic);\r\n\t\t\r\n\t\titemService.processEbayResponse(responses, search, automatic);\r\n\t}", "private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n SearchModuleDataHolder filter = SearchModuleDataHolder.getSearchModuleDataHolder();\n //set search content text for full text search\n filter.setSearchText(view.getSearchContent().getText());\n forwardToCurrentView(filter);\n } else {\n eventBus.showPopupNoSearchCriteria();\n }\n }", "SearchProductsResult searchProducts(SearchProductsRequest searchProductsRequest);", "public Show search(String title){\n return super.search(title);\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n long id_To_Search = arg3;\n Bundle dataBundle = new Bundle();\n dataBundle.putLong(\"id\", id_To_Search);\n Intent intent = new Intent(getApplicationContext(), DisplayContactActivity.class);\n intent.putExtras(dataBundle);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n EditText searchBar = (EditText) findViewById(R.id.searchBar);\n String searchTerms = searchBar.getText().toString();\n\n //Perform the search\n new SearchStationsAsync(getBaseContext(), searchTerms).execute();\n }", "protected HomeItem itemFindCurrentTx(final Site site)\n\t{\n\t\tString sql = \"SELECT ID, PUBLISHED, RELEASE_DATE, SOURCE, TITLE, CONTENT, URL, DIMENSIONS, ALT, CREATED_BY, CREATED_ON, MODIFIED_BY, MODIFIED_ON FROM HOME_ITEM WHERE SITE=?\"\n\t\t\t\t+ \" AND PUBLISHED=1 AND RELEASE_DATE < ? ORDER BY RELEASE_DATE DESC LIMIT 1\";\n\t\tObject[] fields = new Object[2];\n\t\tfields[0] = site.getId();\n\t\tfields[1] = new Date();\n\t\tList<HomeItem> rv = sqlService().select(sql, fields, new SqlService.Reader<HomeItem>()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic HomeItem read(ResultSet result)\n\t\t\t{\n\t\t\t\tHomeItemImpl item = new HomeItemImpl();\n\t\t\t\titem.initSite(site);\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tint i = 1;\n\t\t\t\t\titem.initId(sqlService().readLong(result, i++));\n\t\t\t\t\titem.initPublished(sqlService().readBoolean(result, i++));\n\t\t\t\t\titem.initReleaseDate(sqlService().readDate(result, i++));\n\t\t\t\t\titem.initSource(HomeItem.Source.fromCode(sqlService().readString(result, i++)));\n\t\t\t\t\titem.initTitle(sqlService().readString(result, i++));\n\t\t\t\t\titem.initContentReferenceId(sqlService().readLong(result, i++));\n\t\t\t\t\titem.initUrl(sqlService().readString(result, i++));\n\t\t\t\t\titem.initDimensions(sqlService().readString(result, i++));\n\t\t\t\t\titem.initAlt(sqlService().readString(result, i++));\n\t\t\t\t\titem.initCreatedBy(userService().wrap(sqlService().readLong(result, i++)));\n\t\t\t\t\titem.initCreatedOn(sqlService().readDate(result, i++));\n\t\t\t\t\titem.initModifiedBy(userService().wrap(sqlService().readLong(result, i++)));\n\t\t\t\t\titem.initModifiedOn(sqlService().readDate(result, i++));\n\n\t\t\t\t\titem.initStatus(HomeItem.Status.current);\n\n\t\t\t\t\titem.setLoaded();\n\n\t\t\t\t\treturn item;\n\t\t\t\t}\n\t\t\t\tcatch (SQLException e)\n\t\t\t\t{\n\t\t\t\t\tM_log.warn(\"itemFindCurrentTx: \" + e);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tif (rv.size() > 0)\n\t\t{\n\t\t\treturn rv.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public void search (String title, AsyncHttpResponseHandler handler) {\n String apiUrl = getApiUrl(\"track.search\");\n RequestParams params = new RequestParams();\n params.put(\"track\", title);\n params.put(\"api_key\", API_KEY);\n //client.addHeader(\"Authorization\", \"Bearer \" + accessToken );\n client.get(apiUrl, params, handler);\n }", "public ItemDetailsPage(String token) {\r\n\t\tsuper(token);\r\n\t\t\r\n\t\tlong id = getLongParameter(\"id\");\r\n\t\t\r\n\t\tAsyncCallback<ItemEntity> callback = \r\n\t\t\t\tnew AsyncCallback<ItemEntity>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\tSystem.err.println(\"Error: RPC Call Failed\");\r\n\t\t \tcaught.printStackTrace();\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccess(ItemEntity result) {\r\n\t\t\t\t\r\n\t\t\t\titem = result;\r\n\t\t\t\tsetUpContent();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t};\r\n\t\t\titemSvc.retrieveAnItem(id,callback);\r\n\t\t\tsetupUI();\r\n\t\t\r\n\t}", "ShoppingItem getShoppingItemByGuid(String itemGuid);", "@FXML void onActionPPartSearch(ActionEvent event) throws IOException{\n String searchStr = pPartSearchField.getText();\n ObservableList<Part> searchedParts = Inventory.lookupPart(searchStr);\n\n if (searchedParts.isEmpty()) {\n try {\n int id = Integer.parseInt(searchStr);\n Part returnedPart = Inventory.lookupPart(id);\n if (returnedPart != null){\n searchedParts.add(returnedPart);\n }\n } catch (NumberFormatException e) {\n }\n }\n\n partTableView.setItems(searchedParts);\n }", "@FXML\n\tvoid search(ActionEvent event) {\n\n\t\ttry {\n\n\t\t\tif(idEditText.getText().equals(\"\")) {\n\n\t\t\t\tthrow new InsufficientInformationException();\n\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\tPlanetarySystem ps = ns.search(Integer.parseInt(idEditText.getText()));\n\n\t\t\t\tif(ps != null) {\n\t\t\t\t\t\n\t\t\t\t\tloadInformation(ps);\t\t\t\t\t\n\t\t\t\t\teditSelectionAlerts();\n\t\t\t\t\tupdateValidationsAvailability(true);\n\t\t\t\t\tupdateButtonsAvailability(true, true, true);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsystemNotFoundAlert();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tcatch(InsufficientInformationException e) {\n\t\t\tinsufficientDataAlert();\n\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tsystemNotFoundAlert();\n\t\t}\n\n\t}", "private Search() {}", "private void search() {\n \t\tString searchString = m_searchEditText.getText().toString();\n \n \t\t// Remove the refresh if it's scheduled\n \t\tm_handler.removeCallbacks(m_refreshRunnable);\n \t\t\n\t\tif ((searchString != null) && (!searchString.equals(\"\"))) {\n \t\t\tLog.d(TAG, \"Searching string: \\\"\" + searchString + \"\\\"\");\n \n \t\t\t// Save the search string\n \t\t\tm_lastSearch = searchString;\n \n \t\t\t// Disable the Go button to show that the search is in progress\n \t\t\tm_goButton.setEnabled(false);\n \n \t\t\t// Remove the keyboard to better show results\n \t\t\t((InputMethodManager) this\n \t\t\t\t\t.getSystemService(Service.INPUT_METHOD_SERVICE))\n \t\t\t\t\t.hideSoftInputFromWindow(m_searchEditText.getWindowToken(),\n \t\t\t\t\t\t\t0);\n \n \t\t\t// Start the search task\n \t\t\tnew HTTPTask().execute(searchString);\n \t\t\t\n \t\t\t// Schedule the refresh\n \t\t\tm_handler.postDelayed(m_refreshRunnable, REFRESH_DELAY);\n \t\t} else {\n \t\t\tLog.d(TAG, \"Ignoring null or empty search string.\");\n \t\t}\n \t}", "public abstract void performSearch(SearchCaller caller, SearchManager manager, Connection connection, MediaSearch mediaSearch);", "public String conductUnRestrictedSearchForItem()\r\n\t{\r\n\t\tAdvancedSearch_Model query = new AdvancedSearch_Model();\r\n\t\t\r\n\t\tif (this.typeFilter.equals(\"Subject\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CATEGORY,\r\n\t\t\t \"\\\"\" + this.selectedItem.getTerm() + \"\\\"\");\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Type\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Creator\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CREATOR,\r\n\t\t\t \"\\\"\" + this.selectedItem.getTerm() + \"\\\"\");\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Location\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_LOCATION,\r\n\t\t\t this.selectedItem.getTerm());\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getType());\r\n\t\t}\r\n\t\t\r\n\t\t// Set the AdvancedSearch_Model on the Search Backing Bean\r\n\t\tthis.searchBackingBean.setAdvancedQueryModel(query);\r\n\t\tthis.searchBackingBean.setSimpleOrAdvanced(SimpleOrAdvanced.ADVANCED);\r\n\t\tthis.searchBackingBean.setSearchType(\"all\");\r\n\t\tthis.searchBackingBean.autoSearch();\r\n\t\t\r\n\t\treturn \"search\";\r\n\t}" ]
[ "0.6019238", "0.5904888", "0.5874917", "0.5873434", "0.58527076", "0.57987225", "0.5711463", "0.5606134", "0.56034064", "0.55855906", "0.55730015", "0.5564699", "0.5560635", "0.555451", "0.54890186", "0.54827225", "0.547976", "0.5472562", "0.547255", "0.5459685", "0.54340816", "0.5392735", "0.5388874", "0.5386107", "0.5382689", "0.5367902", "0.5365635", "0.5309004", "0.53026927", "0.5302643", "0.5285502", "0.52777493", "0.5274201", "0.5269317", "0.5257657", "0.5253652", "0.5242385", "0.52399737", "0.5233037", "0.5216225", "0.5214273", "0.5209272", "0.520887", "0.52042764", "0.5200282", "0.51998144", "0.5196696", "0.5194085", "0.518906", "0.5183446", "0.5180677", "0.5178526", "0.5170747", "0.5161702", "0.51596665", "0.51551473", "0.5153113", "0.515088", "0.5147696", "0.51396775", "0.5134454", "0.5133001", "0.51305896", "0.5125142", "0.51242423", "0.51137984", "0.51096046", "0.5106122", "0.50874543", "0.5082615", "0.5081065", "0.5079542", "0.5077942", "0.50756264", "0.50735295", "0.5063707", "0.50592595", "0.5047598", "0.50442725", "0.50422794", "0.50393015", "0.5033997", "0.50297296", "0.50146323", "0.5013376", "0.50124687", "0.5003605", "0.500347", "0.50026315", "0.5000553", "0.499917", "0.49970752", "0.49931487", "0.49898246", "0.49774116", "0.49763256", "0.4964304", "0.49636114", "0.49611", "0.495947" ]
0.7237693
0
Pages order in placing an order: ProductPage > CartPage > OrderAddressPage > OrderShippingPage > OrderPaymentPage > OrderSummaryPage > OrderConfirmationPage When
@Test(groups = {"smoke tests"}) public void validPurchase() { page.GetInstance(CartPage.class) .clickProceedToCheckoutButton() //to OrderAddressPage .clickProceedToCheckoutButton() //to OrderShippingPage .acceptTermsAndProceedToCheckout() //to OrderPaymentPage .clickPayByBankWireButton() //to OrderSummaryPage .clickIConfirmMyOrderButton(); //to OrderConfirmationPage // Then page.GetInstance(OrderConfirmationPage.class).confirmValidOrder("Your order on My Store is complete."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void placeOrder(TradeOrder order)\r\n {\r\n brokerage.placeOrder(order);\r\n }", "public static void PurchaseOrder_Navigation() {\n\n\t\tWebdriverWait.findElement(\"link\", \"PROCUREMENT\").click();\n\t\tWebdriverWait.findElement(\"link\", \"Purchase Order\").click();\n\n\t}", "Order placeNewOrder(Order order, Project project, User user);", "public void orderPlace() {\n Log.d(\"Method\", \"orderPlaced()\");\n\n if (coffeeCount < getResources().getInteger(R.integer.min_coffee)) {\n Log.e(\"\", \"coffeeCount < minimum coffee order\");\n displayMessage(String.format(Locale.getDefault(), getString(R.string.min_order_message), getResources().getInteger(R.integer.min_coffee)));\n } else if (coffeeCount > getResources().getInteger(R.integer.max_coffee)) {\n Log.e(\"\", \"coffeeCount > maximum coffee order\");\n displayMessage(String.format(Locale.getDefault(), getString(R.string.max_order_message), getResources().getInteger(R.integer.max_coffee)));\n } else {\n Log.i(\"\", \"Order placed: \" + coffeeCount + \" coffee.\");\n displayMessage(String.format(Locale.getDefault(), getString(R.string.order_thanks), 176));\n }\n resetQuantity();\n }", "@Then(\"Order is placed successfully confirmed by screenshot\")\r\n public void successfulOrder() throws InterruptedException {\n ProductPage prodPage = new ProductPage(driver);\r\n prodPage.goToCartAfterProductAdding();\r\n //Finishing an order form cart\r\n CartAndOrderProcess cartAndOrderProcess = new CartAndOrderProcess(driver);\r\n cartAndOrderProcess.proceedToChekout();\r\n cartAndOrderProcess.addressContinue();\r\n cartAndOrderProcess.shippingContinue();\r\n cartAndOrderProcess.payByCheckAndOrder();\r\n // Taking screenshot of successfully placed order\r\n // Also checking order history to make sure that amount is the same in order history\r\n cartAndOrderProcess.takeScreenshot(driver);\r\n cartAndOrderProcess.checkOfTotalCostAndPaymentStatus();\r\n }", "@Test (priority = 3)\n\t@Then(\"^Create Order$\")\n\tpublic void create_Order() throws Throwable {\n\t\tCommonFunctions.clickButton(\"wlnk_Home\", \"Sheet1\", \"Home\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WLNK_OrderNewServices\", \"Sheet1\", \"Oreder New Service\", \"CLICK\");\n\t\t//Thread.sleep(3000);\n\t\tCommonFunctions.clickButton(\"WRD_complete\", \"Sheet1\", \"Complete\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WLK_continue\", \"Sheet1\", \"Contine\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WCB_Additional\", \"Sheet1\", \"Additional\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WLK_continue\", \"Sheet1\", \"Complete\", \"CLICK\");\n\t\tCommonFunctions.clickButton(\"WBT_checkout\", \"Sheet1\", \"Checkout\", \"CLICK\");\n\t\tCommonFunctions.clickButton(\"WBT_completeOrder\", \"Sheet1\", \"complete order\", \"CLICK\");\n\t\tCommonFunctions.clickButton(\"WBT_PayNow\", \"Sheet1\", \"Pay Now\", \"CLICK\");\n\t\tCommonFunctions.checkObjectExist(\"WBT_PayPal\", \"Sheet1\", \"Pay pal\", \"NO\");\n\t\tCommonFunctions.clickButton(\"WBT_PayPal\", \"Sheet1\", \"Pay pal\", \"CLICK\");\n\t}", "@Override\n\tpublic boolean PlaceOrder(Order order) {\n\t\treturn false;\n\t}", "public APIResponse placeOrder(@NotNull Order order){\n try {\n validateOrder(order);\n \n order.getItems().addAll(\n orderItemRepository.saveAll(order.getItems())\n );\n orderRepository.save( order );\n return APIResponse.builder()\n .success( true)\n .data( true )\n .error( null )\n .build();\n }catch (Exception exception){\n\n log.error(exception.getMessage());\n return APIResponse.builder()\n .success( true)\n .data( false )\n .error( exception.getMessage() )\n .build();\n }\n }", "@Test(dependsOnMethods = \"checkSiteVersion\")\n public void createNewOrder() {\n actions.openRandomProduct();\n\n // save product parameters\n actions.saveProductParameters();\n\n // add product to Cart and validate product information in the Cart\n actions.addToCart();\n actions.goToCart();\n actions.validateProductInfo();\n\n // proceed to order creation, fill required information\n actions.proceedToOrderCreation();\n\n // place new order and validate order summary\n\n // check updated In Stock value\n }", "private static String placeOrderResource() {\n return \"/store/order\";\n }", "public void orderClicked(View view) {\n Log.d(\"Method\", \"orderClicked()\");\n orderPlace();\n }", "public void PaymentPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public void viewOrderDetails(){\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"StatisticsTab\"), \"StatisticsTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"OrdersTab\"), \"OrdersTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnOrderDetails\"), \"Order Details Button\");\t\n\t}", "@Override\n\tpublic void placeOrder() {\n\t\t\n\t}", "@RequestMapping(value =\"/customer/place_order\", method = RequestMethod.POST)\n public String placeOrder(ModelMap model, Order order, @RequestParam(\"code\") String code) {\n logger.info(\"*** OrderController - placeOrder ***\");\n Product product = productService.getProduct(code);\n order.setProduct(product);\n order.setStatus(\"completed\");\n order.setOrderDate(new Date());\n Order completedOrder = orderService.placeOrder(order);\n if(!completedOrder.equals(null)){\n productService.updateInventory(product,order.getQuantity());\n }\n model.addAttribute(\"completedOrder\", completedOrder);\n return \"success\";\n }", "@GetMapping(\"/placeOrder\")\n public String placeOrder(HttpServletRequest request, Model model){\n Map<String, String[]> requestParam = request.getParameterMap();\n String customerName[] = requestParam.get(\"customerName\");\n String orderQuantity[] = requestParam.get(\"orderQty\");\n String productTypes[] = requestParam.get(\"productType\");\n OrderDetails orderDetails = new OrderDetails();\n orderDetails.setCustomerName(customerName[0]);\n orderDetails.setOrderQty(orderQuantity[0]);\n orderDetails.setOrderProduct(productTypes[0]);\n String orderConfirmation = sportyShoesService.saveCustomerOrder(orderDetails);\n\n model.addAttribute(\"appName\", appName);\n model.addAttribute(\"orderConfirmation\", orderConfirmation);\n\n return \"orderPlaceSuccess\";\n }", "@Test\n public void placeOrderTest() {\n Order body = new Order().id(10L)\n .petId(10L)\n .complete(false)\n .status(Order.StatusEnum.PLACED)\n .quantity(1);\n Order response = api.placeOrder(body);\n\n Assert.assertEquals(10L, response.getId().longValue());\n Assert.assertEquals(10L, response.getPetId().longValue());\n Assert.assertEquals(1, response.getQuantity().intValue());\n Assert.assertEquals(true, response.isComplete());\n Assert.assertEquals(Order.StatusEnum.APPROVED, response.getStatus());\n\n verify(exactly(1), postRequestedFor(urlEqualTo(\"/store/order\")));\n }", "@When(\"User search for {string}\")\r\n public void placingAnOrder(String product) {\n MainPage main = new MainPage(driver);\r\n main.searchFor(product);\r\n main.chooseThisOne(product);\r\n }", "public void placeSingleTaskOrder(User user, SingleTaskOrder order);", "public CheckoutOrderPage(WebDriver driver) {\n\t\t// TODO Auto-generated constructor stub\n\t\t\n\t\tsuper(driver);\n\t\tcheckoutOrderPropertiesReader = new ObjectReader(PageConstant.CHECKOUT_ORDER_PROPERTIES_FILE_PATH);\n\t}", "public void placeOrder(String custID) {\r\n //creates Order object based on current cart\r\n Order order = new Order(custID, getItems());\r\n //inserts new order into DB\r\n order.insertDB();\r\n }", "@Override\n\tpublic void placeOrder(Map<String, Integer> orderDetails, Buyer buyer) {\n\t\tif (successor != null) {\n\t\t\tsuccessor.placeOrder(orderDetails, buyer);\n\t\t} else {\n\t\t\tSystem.out.println(\"Did not set successor of SupplierProxy\");\n\t\t}\n\t\t\n\t}", "private void requestOrderDetail() {\n\n ModelHandler.OrderRequestor.requestOrderDetail(client, mViewData.getOrder().getId(), (order) -> {\n mViewData.setOrder(order);\n onViewDataChanged();\n }, this::showErrorMessage);\n }", "void navigateToOrderingDonut() {\n Intent gotoOrderDonut = new Intent(this, OrderingDonutActivity.class);\n startActivity(gotoOrderDonut);\n }", "public interface OrderService {\n PageInfo<OrderEntity> getOrders(int index, int size);\n PageInfo<OrderEntity> getOrdersForScript(int index, int size, OrderEntity entity);\n PageInfo<OrderEntity> getAll();\n int insertOrder(OrderEntity entity);\n}", "@Then(\"^verify order is placed successfully in Order History$\")\r\n\tpublic void verifyOrderHistory() throws Exception {\n\t assertTrue(new ProductCheckout(driver).isOrderPlaced());\r\n\t}", "void navigateToStoreOrders() {\n Intent gotoStoreOrders = new Intent(this, StoreOrdersActivity.class);\n startActivity(gotoStoreOrders);\n }", "private void checkToMyOrder() {\n toolbar.setTitle(R.string.my_order);\n MyOrderFragment myOrderFragment = new MyOrderFragment();\n displaySelectedFragment(myOrderFragment);\n }", "public void Placement_BySession_PageNav() {\n\t\t\t\n\t\t\t\n\t\t\tControls.hoverclick(By.linkText(\"Placements\"), By.linkText(\"By Session\"));\n\t\t\tControls.dynemicwait(By.xpath(\"//*[@id=\\\"mainBody\\\"]/div[3]/div[2]/div/div[1]/div[2]\"));\n\t\t\t\n\t\t\t\n\t\t\tif(Controls.GetText(By.xpath(placementProp.getProperty(\"title.xpath\"))).trim().equalsIgnoreCase(\"By Session\"))\n\t\t\t{\n\t\t\t\tReports.log(Status.PASS, \"Page is redirected on Placement 'By Session' page successfully\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tReports.log(Status.FAIL, \"Page is redirected on incorrect page\");\n\t\t\t\t\n\t\t\t}\t\n\t\t\t\n\t\t\t\n\t\t}", "private void orderHomePage() {\n setLayout(new FlowLayout(FlowLayout.CENTER));\n\n JButton button = new JButton(\"New Order\");\n add(button);\n\n button.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() instanceof JButton) {\n JButton button1 = (JButton)e.getSource();\n\n if (button1.getText().equals(button.getText())) {\n removeAll(); // Removes everything from the panel\n message();\n orderFood();\n }\n }\n }\n });\n }", "@Secured(\"@\")\n public void doBackPage() {\n infoOrderDetail = false;\n haveDepositPrice = false;\n orderStockTag.resetOrderStock();\n }", "@Override\n\tpublic void confirmOrders() {\n\t\t\n\t}", "@Override\n\tpublic void confirmOrders() {\n\t\t\n\t}", "@Override\n\tpublic void confirmOrders() {\n\t\t\n\t}", "public void placeOrder(TradeOrder order) {\r\n\t\tString msg = \"New order: \";\r\n\t\tif (order.isBuy()) {\r\n\t\t\tbuy.add(order);\r\n\t\t\tmsg += \"Buy \";\r\n\r\n\t\t}\r\n\r\n\t\tif (order.isSell()) {\r\n\t\t\tsell.add(order);\r\n\t\t\tmsg += \"Sell \";\r\n\t\t}\r\n\r\n\t\tmsg += this.getSymbol() + \" (\" + this.getName() + \")\";\r\n\t\tmsg += \"\\n\" + order.getShares() + \" shares at \";\r\n\r\n\t\tif (order.isLimit())\r\n\t\t\tmsg += money.format(order.getPrice());\r\n\t\telse\r\n\t\t\tmsg += \"market\";\r\n\t\tdayVolume += order.getShares();\r\n\t\torder.getTrader().receiveMessage(msg);\r\n\t\t\r\n\t}", "void navigateToCurrentOrder() {\n Intent gotoCurrentOrder = new Intent(this, CurrentOrderActivity.class);\n startActivity(gotoCurrentOrder);\n }", "public OutOfOrderPlanningPage() {\n waitUntilPageObjectIsLoaded();\n }", "public void EditOrderTest() {\n wait.until(ExpectedConditions.visibilityOfElementLocated(editOrderQuantityLocator));\n WebElement editOrderQuantity = driver.findElement(editOrderQuantityLocator);\n editOrderQuantity.click();\n // Click on the checkout button\n By goToCheckOutBtnLocator = By.xpath(\"//div[@class='Basket-bf28b64c20927ec7']//button[contains(@class,'ccl-d0484b0360a2b432')]\");\n wait.until(ExpectedConditions.visibilityOfElementLocated(goToCheckOutBtnLocator));\n WebElement goToCheckOutBtn = driver.findElement(goToCheckOutBtnLocator);\n goToCheckOutBtn.click();\n // Check that the order added to the basket\n By basketSectionSummaryLocator = By.className(\"ccl-9aab795066526b4d ccl-24c197eb36c1c3d3\");\n wait.until(ExpectedConditions.visibilityOfElementLocated(basketSectionSummaryLocator));\n\n }", "@Override\n public void onClick(View view) {\n String location = \"\";\n boolean met = false;\n if(method == 0){\n location = spTableChoice.getSelectedItem().toString();\n met = true;\n }else if(method == 1 && !etPickupName.getText().toString().isEmpty()){\n met = true;\n location = etPickupName.getText().toString();\n }else{\n Toast.makeText(getApplicationContext(), \"Please enter a pickup name!\", Toast.LENGTH_SHORT).show();\n }\n\n if(met){\n // Finalise the order as an order object\n order.setDestination(location);\n order.setOrderItems(orderHeld);\n order.setTotalPrice(totalPrice);\n\n addOrderDB();\n Toast.makeText(getApplicationContext(), \"Placed!\", Toast.LENGTH_SHORT).show();\n\n // Move to payment now\n //PayPalPay(totalPrice);\n }\n\n }", "@Override\n public void onClick(View v) {\n PageType pageType = PageType.HOME_PAGE;\n CustomerCart customerCart = new CustomerCart();\n boolean wasIncentiveDisplayed = false;\n customerCart.setCartId(Config.CART_ID);\n String wizCartCouponCode = null;\n wizCartClientWrapper.sendTrackingPageView(pageType, customerCart,wasIncentiveDisplayed, wizCartCouponCode);\n }", "public void orderSummaryPage(View v){\n\n String order = gatherOrder(v);\n\n Intent redirect = new Intent(this, SummaryActivity.class);\n redirect.putExtra(EXTRA_MESSAGE,order);\n startActivity(redirect);\n }", "public void addPages() {\t\t\n\t\tpage1 = new Opera2ActionsTransformationWizardPage1(selection, operaModel);\n\t\taddPage(page1);\t\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n initiateOrder(request, response);\n }", "Order sendNotificationNewOrder(Order order);", "@PostMapping(\"/order\")\n public ResponseEntity<OrderConfirmation> placeOrder(final HttpSession session) throws Exception {\n Map<String, CartProduct> initialCart = (Map<String, CartProduct>) session.getAttribute(CART_SESSION_CONSTANT);\n log.info(session.getId() + \" : Reviewing the order\");\n //check if the cart is empty\n ControllerUtils.checkEmptyCart(initialCart, session.getId());\n\n //check if items are still available during confirmation of order\n List<OrderProduct> orderProducts = new ArrayList<>();\n for (String key : initialCart.keySet())\n orderProducts.add(ControllerUtils.parse(initialCart.get(key)));\n List<String> chckQuantity = prodService.checkQuantityList(orderProducts);\n if (chckQuantity != null) {\n log.error(session.getId() + \" : Error submitting order for products unavailable\");\n throw new AvailabilityException(chckQuantity);\n }\n\n //Confirm order and update tables\n log.info(session.getId() + \" : confirming the order and killing the session\");\n OrderConfirmation orderConfirmation = prodService.confirmOrder(initialCart);\n session.invalidate();\n return ResponseEntity.status(HttpStatus.OK).body(orderConfirmation);\n }", "void paymentOrder(long orderId);", "public void setOrder(Order order){\n this.order = order;\n }", "public void myorders() {\r\n\t\t\tdriver.findElement(orders).click();\r\n\t\t\t\r\n\t\t\t}", "@Override\n @Transactional\n public PurchaseResponse placeOrder(Purchase purchase) {\n Order order = purchase.getOrder();\n\n //genrate traking number\n String orderTrakingNumber = genrateOrderTrakingnumber();\n order.setOrderTrackingNumber(orderTrakingNumber);\n\n //populate order with order item\n Set<OrderItem> orderItems = purchase.getOrderItems();\n orderItems.forEach(item-> order.add(item));\n\n //populate order with billingAddress and shipplingAddress\n order.setBillingAddress(purchase.getBillingAddress());\n order.setShippingAddress(purchase.getShippingAddress());\n\n //populate customer with order\n Customer customer = purchase.getCustomer();\n\n // checck if the existing customer\n String theEmail = customer.getEmail();\n Customer customerFromDB = customerRepository.findByEmail(theEmail);\n\n if(customerFromDB != null){\n // we found it let assign them\n customer = customerFromDB;\n }\n\n customer.add(order);\n\n //sqve to the db\n customerRepository.save(customer);\n\n\n\n // return the response\n return new PurchaseResponse(orderTrakingNumber);\n }", "public void clickOnElementOfCheckoutOrderPage(String key){\n\t\t\n\t\tclickOnElement(checkoutOrderPropertiesReader.getProperties(key));\t\t\n\t}", "public void saveOrder(Order order) {\n Client client = clientService.findBySecurityNumber(order.getClient().getSecurityNumber());\n Product product = productService.findByBarcode(order.getProduct().getBarcode());\n order.setClient(client);\n order.setProduct(product);\n if (isClientPresent(order) && isProductPresent(order)) {\n do {\n currencies = parseCurrencies();\n } while (currencies.isEmpty());\n\n generateTransactionDate(order);\n\n// Client client = ClientServiceImpl.getClientRepresentationMap().get(order.getClient());\n// Product product = ProductServiceImpl.getProductRepresentationMap().get(order.getProduct());\n convertPrice(order);\n orders.add(order);\n orderedClients.add(client);\n orderedProducts.add(product);\n }\n }", "public Long placeOrderInCart(Business business, CheckIn checkIn, OrderDTO orderData) {\n\t\tcheckNotNull(business, \"business was null\");\n\t\tcheckNotNull(checkIn, \"checkIn was null\");\n\t\t\n\t\tif(business.isBasic()) {\n\t\t\tlogger.error(\"Unable to place order at business with basic subscription.\");\n\t\t\tthrow new IllegalAccessException(\"Unable to place Orders at Business with basic subscription\");\n\t\t}\n\t\t\n\t\tif(checkIn.getStatus() != CheckInStatus.CHECKEDIN && checkIn.getStatus() != CheckInStatus.ORDER_PLACED) {\n\t\t\tthrow new OrderFailureException(\"Order cannot be placed, payment already requested or not checked in\");\n\t\t}\n\t\t\n\t\tif( orderData.getStatus() != OrderStatus.CART ) {\n\t\t\tthrow new OrderFailureException(\"Order cannot be placed, unexpected order status: \"+orderData.getStatus());\n\t\t}\n\n\t\t// Check that the order will be placed at the correct business.\n\t\tif(business.getId() != checkIn.getBusiness().getId()) {\n\t\t\tthrow new ValidationException(\"Order cannot be placed, checkin is not at the same business to which the order was sent: id=\"+checkIn.getBusiness().getId());\n\t\t}\n\t\t\n\t\tArea area = areaRepo.getByKey(checkIn.getArea());\n\t\tif(area.isWelcome()) {\n\t\t\tlogger.error(\"Unable to place order at welcome area.\");\n\t\t\tthrow new IllegalAccessException(\"Unable to place Orders at welcome area.\");\n\t\t}\n\t\t\n\t\t// Check if the product to be ordered exists\t\n\t\tProduct product;\n\t\ttry {\n\t\t\tproduct = productRepo.getById(checkIn.getBusiness(), orderData.getProductId());\n\t\t} catch (com.googlecode.objectify.NotFoundException e) {\n\t\t\tlogger.error(\"Unable to place order: Unknown productId={}\", orderData.getProductId());\n\t\t\tthrow new ValidationException(\"Order cannot be placed, productId unknown\",e);\n\t\t}\n\t\t\n\t\tif(product.isNoOrder()) {\n\t\t\tlogger.error(\"Unable to place order for Product, noOrder=true. id={}\", product.getId());\n\t\t\tthrow new ValidationException(\"Order cannot be placed, product can't be ordered.\");\n\t\t}\n\t\t\n\t\tboolean isProductAssignedToArea = false;\n\t\t\n\t\t// Check if the Menu of the ordered Product is assigned to this Area.\n\t\tfor (Key<Menu> menuKey : area.getMenus()) {\n\t\t\tif(menuKey.equals(product.getMenu())) {\n\t\t\t\tisProductAssignedToArea = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!isProductAssignedToArea) {\n\t\t\tlogger.error(ERROR_PRODUCT_NOT_FROM_AREA);\n\t\t\tthrow new ValidationException(ERROR_PRODUCT_NOT_FROM_AREA);\n\t\t}\n\t\t\n\t\tLong orderId = null;\n\t\tList<OrderChoice> choices = null;\n\t\tif(orderData.getChoices() != null\n\t\t\t\t&& !orderData.getChoices().isEmpty()) {\n\t\t\t\n\t\t\tif(product.getChoices() == null || product.getChoices().isEmpty()) {\n\t\t\t\t// The product did not contain any choices any more, but the client sent some.\n\t\t\t\t// That can only mean the choice was removed from the product by the business and a checkin was added.\n\t\t\t\tthrow new DataConflictException(\"Conflict while placing order, refresh resource.\");\n\t\t\t}\n\t\t\t\n\t\t\tchoices = new ArrayList<OrderChoice>();\n\t\t\tMap<Key<Choice>, Choice> originalChoiceMap = choiceRepo.getByKeysAsMap(product.getChoices());\n\t\t\t\n\t\t\tfor (ChoiceDTO choiceDto : orderData.getChoices()) {\n\t\t\t\tint selected = 0;\n\t\t\t\t\n\t\t\t\tOrderChoice choice = new OrderChoice();\n\t\t\t\t\n\t\t\t\tChoice originalChoice = originalChoiceMap.get(Choice.getKey(business.getKey(), choiceDto.getOriginalChoiceId()));\n\t\t\t\tif(originalChoice == null)\n\t\t\t\t\tthrow new DataConflictException(\"Conflict while placing order, unknown originalChoiceId \" + choiceDto.getOriginalChoiceId() + \". Reload product resource.\");\n\t\t\t\t\n\t\t\t\tif(choiceDto.getOptions() != null ) {\n\t\t\t\t\tselected = checkOptions(choiceDto, originalChoice);\n\t\t\t\t\t\n\t\t\t\t\toriginalChoice.setOptions(new ArrayList<ProductOption>(choiceDto.getOptions()));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tchoice.setChoice(originalChoice);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tchoices.add(choice);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\n\t\tKey<Order> orderKey = createAndSaveOrder(business.getKey(), checkIn.getKey(), product, orderData.getAmount(), choices, orderData.getComment());\n\t\tif(orderKey != null) {\n\t\t\t// order successfully saved\n\t\t\torderId = orderKey.getId();\n\t\t}\n\t\t\n\t\teventBus.post(new CheckInActivityEvent(checkIn, true));\n\t\t\n\t\treturn orderId;\n\t}", "public void gotoDetailSalesOrder() {\n\t}", "@Then(\"^click on add to basket$\")\r\n\tpublic void click_on_add_to_basket() throws Throwable {\n\t\tverbose(\"***********************************************************\");\r\n\t\tAssert.assertTrue(navigate_rsc.addbasket());\r\n\t\tverbose(\"***********************************************************\");\r\n\t \r\n\t}", "@Override\r\n\tpublic void PassOrder(Order order) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tem.persist(order);\r\n\t\t\r\n\t}", "public String navigatePurchaseOrderList() {\n Product attachedSelected = this.getAttachedSelected();\n\n if (attachedSelected != null) {\n purchaseOrderListController.setItems(this.getAttachedSelected().getPurchaseOrderList());\n purchaseOrderListController.setLazyItems(this.getAttachedSelected().getPurchaseOrderList());\n }\n return this.mobilePageController.getMobilePagesPrefix() + \"/crud/purchaseOrder/index?faces-redirect=true\";\n }", "@RequestMapping(value = \"/orders\")\r\n\tpublic ModelAndView openOrdersPage() {\r\n\t\tList<Order> orders = databaseInfo.selectOrders();\r\n\r\n\t\treturn new ModelAndView(\"orders\", \"orderslist\", orders);\r\n\t}", "public interface OrderService {\n\n void insertOrder(Order order);\n\n void updateState(String state);\n\n Order selectByPrice(String uuid);\n\n PageInfo<Order> queryOrderList(Page page);\n}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tPageUtil.jumpTo(MyOrderActivity.this, MyOrderAll.class);\n\t\t\t}", "private void orderItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public void proceedToCheckOut()\n\t{\n\t\tproceedtocheckoutpage = productpage.addToCartBtnClick();\n\t}", "@RequestMapping(value =\"/customer/buy_now\", method = RequestMethod.POST)\n public String initiateOrder(@RequestParam(\"pcode\") String code,Order order, ModelMap model) {\n logger.info(\"*** OrderController - initiateOrder ***\");\n String username = \"BookMan\";\n Product product = productService.getProduct(code);\n order.setProduct(product);\n order.setStatus(\"initiated\");\n order.setCustomerName(username);\n order.setOrderDate(new Date());\n order.setBill(order.getQuantity()*product.getPrice());\n Order orderInserted = orderService.newOrder(order);\n model.addAttribute(\"order\",orderInserted);\n return \"customer_shipping_details\";\n }", "public void setOrder(String Order) {\n this.Order = Order;\n }", "private static void placeOrder() {\n System.out.println();\n System.out.println(\"Menu : \");\n for (int i = 0; i < menuItems.length; i++) {\n System.out.printf(\"%2d. %-30s Price: %8.2f Baht%n\", i + 1, menuItems[i], menuPrices[i]);\n }\n System.out.println();\n\n int orderNo = getIntReply(\"What would you like to menuOrder (by menu number)\");\n if (orderNo > menuOrder.length || orderNo == -1) {\n System.out.println(\"Invalid menu number\");\n return;\n }\n\n int amount = getIntReply(\"How many of them\");\n if (amount == -1) return;\n menuOrder[orderNo - 1] += amount;\n\n System.out.printf(\"You've ordered %s for %d piece(s)%n%n\", menuItems[orderNo - 1], menuOrder[orderNo - 1]);\n }", "@Override\n\tpublic void sendOrderConfirmationHtmlEmail(Order order) {\n\t\t\n\t}", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n finalList = adapter.getMenu();\n Order newOrder = new Order();\n newOrder.setVendor(Id);\n newOrder.setCustomer(userID);\n newOrder.setCustomerLocation(latitude+\",\"+longitude);\n newOrder.setVendorName(curr.getName());\n newOrder.setDate(new SimpleDateFormat(\"dd/MM/yyyy\", Locale.getDefault()).format(new Date()));\n HashMap<String, CartItem> newCart = new HashMap<>();\n float amount = 0;\n for (MenuItem item : finalList) {\n if (!item.getQuantity().equals(\"0\")) {\n amount += Integer.parseInt(item.getQuantity()) * Integer.parseInt(item.getPrice());\n newCart.put(item.getName(), new CartItem(item.getPrice(), item.getQuantity()));\n }\n }\n if(newCart.size()==0)\n {\n Toast.makeText(restrauntPage.this, \"Please add atleast 1 item\", Toast.LENGTH_SHORT).show();\n return;\n }\n amount = amount * 1.14f;\n newOrder.setTotalAmount(String.valueOf(amount));\n newOrder.setItemsOrdered(newCart);\n Log.d(\"checkout\", newOrder.toString());\n Intent mainIntent = new Intent(restrauntPage.this, paymentOrder.class);\n mainIntent.putExtra(\"order\",newOrder);\n mainIntent.putExtra(\"userId\",userID);\n mainIntent.putExtra(\"userInfo\",currUser);\n startActivity(mainIntent);\n finish();\n }\n }", "public interface OrderService {\n\n OrderDTO create(OrderDTO orderDTO);\n\n OrderDTO findOne(String orderId);\n\n Page <OrderDTO> findList(String buyerOpenId, Pageable pageable);\n\n\n OrderDTO cancel(OrderDTO orderDTO);\n\n OrderDTO finish(OrderDTO orderDTO);\n\n OrderDTO paid(OrderDTO orderDTO);\n\n}", "void navigateToOrderingCoffee() {\n Intent gotoOrderCoffee = new Intent(this, OrderingCoffeeActivity.class);\n startActivity(gotoOrderCoffee);\n }", "public void saveOrder() {\n setVisibility();\n Order order = checkInputFromUser();\n if (order == null){return;}\n if(orderToLoad != null) DBSOperations.remove(connection,orderToLoad);\n DBSOperations.add(connection, order);\n }", "void saveOrder(RouteDTO routeDTO, OrderDTO orderDTO);", "@Override\n\tpublic void execute(final CheckoutActionContext context) throws EpSystemException {\n\t\tcheckoutEventHandler.preCheckoutOrderPersist(context.getShoppingCart(),\n\t\t\t\tcontext.getOrderPaymentList(), context.getOrder());\n\n\t\t//process and update order - should limit our updates to once\n\t\tfinal Order updatedOrder = orderService.processOrderOnCheckout(context.getOrder(),\n\t\t\t\tcontext.getShoppingCart().isExchangeOrderShoppingCart());\n\t\tcontext.setOrder(updatedOrder);\n\t\tcontext.setOrderPaymentList(updatedOrder.getOrderPayments());\n\t}", "public interface ShopOrderService {\n Page<OrderBiz> queryPageOrderInfo(ShopOrderQuery query);\n\n OrderRechargeBiz queryOrderRechargeInfoByOrderId(Long orderid);\n\n void send(Long orderid,String remark) throws ManagerException;\n\n void rechargeOrder(Long orderid) throws ManagerException;\n\n void rechargeResult(Long orderid,Integer resultstatus);\n\n boolean updateSendRemarkById(Long orderid, String sendremark);\n\n boolean updateRemarkById(Long orderid, String remark);\n\n String queryRemarkById(Long orderid);\n}", "@Then(\"^user is on Your Account page$\")\r\n public void user_is_on_Your_Account_page() throws Throwable {\n throw new PendingException();\r\n }", "Receipt chargeOrder(PizzaOrder order, CreditCard creditCard);", "public void myorders() {\n\t\t\t\r\n\t\t\t\r\n\t\tBy my=By.xpath(\"//a[@href='/my/orders/create?form']\");\r\n\t\tWebElement We_my=wt.ElementToBeClickable(my, 20);\r\n\t\tWe_my.click();\r\n\t\t}", "public void startOrder() {\r\n this.o= new Order();\r\n }", "@Then(\"^click on checkout$\")\r\n\tpublic void click_on_checkout() throws Throwable {\n\t\tverbose(\"***********************************************************\");\r\n\t\tAssert.assertTrue(navigate_rsc.checkout());\r\n\t\tverbose(\"***********************************************************\");\r\n\t \r\n\t}", "void order() {\n\n\t\tSystem.out.println(\"In Zomato order method\");\n\t\tclass Hotels {\n\t\t\tString name;\n\t\t\tHotels(String name ) {\n\t\t\t\tthis.name = name;\n\t\t\t}\n\n\t\t\tvoid orderPlaced() {\n\t\t\t\tSystem.out.println(\"Order placd at hotel \"+ name);\n\t\t\t}\n\t\t}\n\t}", "public void submit(OrderInternal order_, OrderManagementContext orderManagementContext_);", "void placeOrder(Cashier cashier){\n }", "@Override\n\tpublic void addOrder(Order order) {\n\t\t\n\t em.getTransaction().begin();\n\t\t\tem.persist(order);\n\t\t\tem.getTransaction().commit();\n\t\t\tem.close();\n\t\t\temf.close();\n\t \n\t}", "void newOrder();", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n //Get order details from form\r\n String deliveryMethod = request.getParameter(\"delMethod\");\r\n boolean pizzaDelivered = false;\r\n String[] deliveryDetails = new String[3];\r\n \r\n //If delivery is selected, get delivery details from form\r\n if(deliveryMethod.equals(\"delivery\")) {\r\n pizzaDelivered = true;\r\n deliveryDetails = validateDeliveryDetails(request, response);\r\n request.setAttribute(\"deliveryDetails\", deliveryDetails);\r\n }\r\n \r\n //Get pizza size\r\n String size = request.getParameter(\"size\");\r\n \r\n //Get pizza toppings\r\n String[] toppings = request.getParameterValues(\"topping\");\r\n \r\n //Create instance of PizzaOrder\r\n PizzaOrder order = new PizzaOrder();\r\n order.setDelivery(pizzaDelivered);\r\n order.setSize(size);\r\n \r\n //If user selected 0 topping, convert null array to empty array\r\n if(toppings != null)\r\n order.setToppings(toppings);\r\n else {\r\n String[] noToppings = new String[0];\r\n order.setToppings(noToppings);\r\n }\r\n \r\n //Set request attribute with the pizza order\r\n request.setAttribute(\"pizzaOrder\", order);\r\n \r\n //Forward request to appriopriate JSP page\r\n String jsp = \"/displayOrder.jsp\";\r\n \r\n //Dispatch order confirmation JSP\r\n RequestDispatcher dispatcher = \r\n getServletContext().getRequestDispatcher(jsp);\r\n dispatcher.forward(request, response);\r\n \r\n }", "public void makeOrder(Order order) {\n for(Order_Item x : order.getOrdered()){\n TableRow item_row = build_row(x.getItem().getName(), String.valueOf(x.getQuantity()), (x.getPrice()*x.getQuantity()) + \"€\");\n orderLayout.addView(item_row);\n }\n\n refreshPriceView();\n }", "@Override\n\tpublic void addPages() {\n\t\t_fileWizard = new NewPlotFilenameWizardPage(selection);\n\t\t_scaleWizard = new ScaleWizardPage(selection);\n\t\t_coastWizard = new CoastWizardPage(selection);\n\t\t_gridWizard = new GridWizardPage(selection);\n\n\t\t// check there's ETOPO data before we add the page\n\t\t_etopoWizard = new ETOPOWizardPage(selection);\n\n\t\taddPage(_fileWizard);\n\t\taddPage(_scaleWizard);\n\t\taddPage(_coastWizard);\n\t\taddPage(_gridWizard);\n\t\tif (_etopoWizard.isAvailable())\n\t\t\taddPage(_etopoWizard);\n\t}", "public void clickOnProceedToCheckoutButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnProceedToCheckoutButton.click();\n\n \t}", "void prepareOrder(int orderId);", "public void seeOrder(Order order) {\n if (getCurrentOrder() == null) {\n order.setSeen(true);\n takeOrder(order);\n getRestaurant().getOrderSystem().seenOrder(order);\n EventLogger.log(\"Order #\" + order.getOrderNum() + \" has been seen by chef \" + this.getName());\n }\n }", "static void addOrder(orders orders) {\n }", "public void cashondelivery_submit(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- shopping cart link should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"cashondelivery\"));\r\n\t\t\tclick(locator_split(\"cashondelivery\"));\r\n\t\t\twaitForPageToLoad(100);\r\n\t\t\twaitforElementVisible(locator_split(\"submitorder\"));\r\n\t\t\tclick(locator_split(\"submitorder\"));\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(\"shopping cart link is clicked.\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- shopping cart link is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- shopping cart link is not clicked \");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"submitorder\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\tpublic void visit(Page page) {\r\n\t\t// Some business logic I won't expose here\r\n\t\t// My boss won't be happy ;-)\r\n\t}", "public void createOrderInSession(HttpServletRequest request, HttpServletResponse response) {\n\t\tOrder order = new Order();\n\t\tSet<CartItem> orderLines = new HashSet<>();\n\t\tShoppingCart cart = new ShoppingCart();\n\t\tcart.setOrder(order);\n\t\tcart.setOrderLines(orderLines);\n\t\trequest.getSession().setAttribute(\"shoppingCart\", cart);\n\t}", "public void submitOrder(){\t\n\t\tSharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n\t\tint tableNumber = Integer.parseInt(sharedPref.getString(\"table_num\", \"\"));\n\t\t\n\t\tif(menu != null){\n\t\t\tParseUser user = ParseUser.getCurrentUser();\n\t\t\tParseObject order = new ParseObject(\"Order\");\n\t\t\torder.put(\"user\", user);\n\t\t\torder.put(\"paid\", false);\n\t\t\torder.put(\"tableNumber\", tableNumber); // Fix this -- currently hard coding table number\n\t\t\t\n\t\t\tParseRelation<ParseObject> items = order.getRelation(\"items\");\n\t\t\t\n\t\t\tfor(ParseObject item : selectedItems) {\n\t\t\t\titems.add(item);\n\t\t\t}\n\t\t\t\n\t\t\torder.saveInBackground(new SaveCallback(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void done(ParseException e) {\n\t\t\t\t\tif(e == null){\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Order Submitted!\", 5).show();\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Submitting Order Failed!\", 5).show();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t}\n\t}", "@Override\n public void addPages() {\n super.addPages();\n page1 = new NewReviewWizardPage();\n addPage(page1);\n }", "@POST\r\n\t@Produces({\"application/xml\" , \"application/json\"})\r\n\t@Path(\"/order\")\r\n\tpublic String addOrder(OrderRequest orderRequest) {\n\t\tOrderActivity ordActivity = new OrderActivity();\r\n\t\treturn ordActivity.addOrder(orderRequest.getOrderDate(),orderRequest.getTotalPrice(), orderRequest.getProductOrder(),orderRequest.getCustomerEmail());\r\n\t}", "public void displayOrder(Order order) {\n ProductType productType;\n// State state;\n \n productType = order.getProductType();\n// state = order.getState();\n \n ui.say(\n \"Customer Name: \" + order.getCustomerName() + \"\\n\" +\n \"State: \" + order.getState().getName() + \"\\n\" + \n \"Product Type: \" + productType.getName() + \"\\n\" +\n \"Area: \" + order.getArea()+ \" sq ft\\n\" + \n// \"Material Cost Per Square Foot: $\" + productType.getMaterialCostPerSquareFoot() + \"\\n\" +\n \"Material Cost: $\" + order.getMaterialCost() + \"\\n\" +\n// \"Labor Cost Per Square Foot: $\" + productType.getLaborCostPerSquareFoot() + \"\\n\" +\n \"Labor Cost: $\" + order.getLaborCost() + \"\\n\" + \n// \"Tax Rate: \" + state.getTaxRate() + \"\\n\" +\n \"Tax: $\" + order.getTax() + \"\\n\" +\n \"Total: $\" + order.getTotal() \n );\n }", "public void submitorder( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- submit order link is clicked entered\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"submitorder\"));\r\n\t\t\tclick(locator_split(\"submitorder\"));\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(\"submit link clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:-submit link clicked \");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- unable to click submit button\" );\r\n\r\n\t\t}\r\n\t}", "public void commitOrderInSession(HttpServletRequest request){\n\t\tShoppingCart cart = (ShoppingCart) request.getSession().getAttribute(\"shoppingCart\");\n\t\t\n\t\t\n\t\t//persisting the Order object changes the id of the referenced order.\n\t\t//The empty order id will have a value\n\t\t\n\t\tOrder order = cart.getOrder();\n\t\torder.setStatus(statusDAO.getStatusFromName(\"Received\"));\n\t\torder.setType(typeDAO.getTypeFromName(\"Delivery\"));\n\t\torder.setSubmitted(Calendar.getInstance());\n\t\torder.setUser((GDFUser) request.getSession().getAttribute(\"user\"));\n\t\tdao.createOrder(order);\n\t\tSet<CartItem> orderLines = cart.getOrderLines();\n\t\tfor(CartItem item: orderLines){\n\t\t\tOrderLine newOrderLine = new OrderLine();\n\t\t\tnewOrderLine.setDish(item.getDish());\n\t\t\tnewOrderLine.setOrder(order);\n\t\t\tnewOrderLine.setQuantity(item.getQuantity());\n\t\t\tdao.addOrderLineToOrder(newOrderLine);\n\t\t}\n\t\trequest.getSession().removeAttribute(\"shoppingCart\");\n\t}", "public void submitOrder(View view) {\n //int price = calculatePrice();\n String priceMessage = createOrderSummary();\n\n displayMessage(priceMessage);\n\n }", "public interface OrderContract {\n interface View extends BaseView{\n void showOrderList(List<OrderDto> orderEntities, int page);\n void getPayOrderSuccess(PayOrderDto payOrderDto);\n\n }\n interface Presenter extends BasePresenter{\n void loadOrder(int page,String finishOrder);\n void getPayOrder(OrderDto orderDto);\n }\n}" ]
[ "0.63020027", "0.62504756", "0.6133002", "0.6109666", "0.6081264", "0.6056312", "0.6047293", "0.602191", "0.59453213", "0.59353584", "0.59197706", "0.5917716", "0.5914041", "0.58948475", "0.5889732", "0.5835492", "0.5815264", "0.575167", "0.5749833", "0.5706022", "0.57056165", "0.5685296", "0.5671879", "0.5645103", "0.56430554", "0.5631128", "0.5622791", "0.5611557", "0.55958354", "0.5593107", "0.5592965", "0.558187", "0.558187", "0.558187", "0.5571849", "0.5569017", "0.55684817", "0.5550901", "0.5546321", "0.554506", "0.5540024", "0.5522901", "0.5517273", "0.54982305", "0.5483681", "0.5476993", "0.5475075", "0.5464728", "0.54620546", "0.5430932", "0.54165655", "0.54001427", "0.53871095", "0.5365013", "0.53621346", "0.53558385", "0.5351717", "0.5344537", "0.53444177", "0.53435904", "0.53383857", "0.533084", "0.53291786", "0.5326861", "0.5318263", "0.53010947", "0.52952", "0.5294139", "0.52883565", "0.5263479", "0.52517945", "0.5249914", "0.5244846", "0.5230603", "0.5224214", "0.52207553", "0.5219511", "0.52194333", "0.52100295", "0.5208079", "0.52035433", "0.5195337", "0.5184742", "0.5180819", "0.5178336", "0.51757675", "0.5166046", "0.51626134", "0.51607364", "0.5157109", "0.51566035", "0.51561683", "0.5156065", "0.51558536", "0.51410013", "0.5134198", "0.512506", "0.5124641", "0.5123897", "0.51138" ]
0.6305569
0
Destruction of the servlet.
public void destroy() { super.destroy(); // Just puts "destroy" string in log // Put your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void destroy() {\n\t\tsuper.destroy(); \n\t\tSystem.out.println(\"=====destory servlet=========\");\n\t}", "public final void destroy()\n {\n log.info(\"PerformanceData Servlet: Done shutting down!\");\n }", "@Override\r\n\tpublic void destroy() {\n\t\tSystem.out.println(\"second servlet destory\");\r\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t\tSystem.out.println(\"Destory LoginServlet\");\n\t}", "@Override\n\tpublic void destroy() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.destroy();\n\t\tSystem.out.println(\"Servlet Destroy Call\");\n\t}", "public void stop() {\n\t\t// To be garbage collected if adapter remains active\n\t\tservletOut = null;\n\t}", "@Override\n\tpublic void destroy() {\n\t\tlogService=null;\n\t\tnoInterceptUrlRegxList=null;\n\n\t}", "@Override\n\tfinal public void destroy() {\n\t\tjspDestroy();\n\t}", "public void destroy() {\n\t\ttermMap = null;\n\t\tdoc = null;\n\t}", "public static void destroy() {\n\t}", "public void destroy() {\n \t\n }", "public void onDestroy() {\n requestTracker.clearRequests();\n }", "@Override\n public void close() {\n for (Servlet registeredServlet : registeredServlets) {\n paxWeb.unregisterServlet(registeredServlet);\n }\n for (Filter filter : registeredFilters) {\n paxWeb.unregisterFilter(filter);\n }\n for (EventListener eventListener : registeredEventListeners) {\n paxWeb.unregisterEventListener(eventListener);\n }\n for (String alias : registeredResources) {\n paxWeb.unregister(alias);\n }\n }", "public void destroy() {\r\n\r\n\t}", "public void destroy() {\n\t\texcludeItem = null;\r\n\t\tloginPage=null;\r\n\t\tloaginAction=null;\r\n\t\tauthority = null;\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\r\n }", "public void unregisterAll()\n {\n final Set<javax.servlet.Servlet> servlets = new HashSet<>(this.localServlets);\n for (final javax.servlet.Servlet servlet : servlets)\n {\n unregisterServlet(servlet);\n }\n }", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public static void destroy() {\n handler = null;\n initialized = false;\n }", "public void destroy() {}", "public void destroy() {}", "public void destroy()\r\n\t{\r\n\t}", "public void destroy()\r\n\t{\n\t\t\r\n\t}", "public void destroy()\r\n {\r\n }", "@Override\n public void destroy() {\n // destroy any persistent resources\n // such as thread pools or persistent connections\n }", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\r\n\t\tsuper.destroy();\r\n\t\tBirtEngine.destroyBirtEngine();\r\n\t}", "public void destroy()\n\t{\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t//取消某个网络请求\n\t\tNMApplication.getRequestQueue().cancelAll(VOLLEY_POST);\n\t}", "public final void destroy() {\n requestExit();\n }", "public void destroy()\n\t{\n\t\tM_log.info(\"destroy()\");\n\t}", "public void destroy() {\n this.bfc.cleanUp();\n }", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void contextDestroyed(ServletContextEvent servletcontextevent) \n\t {\n\t\t \n\t }", "public final void destroy()\n {\n processDestroy();\n super.destroy();\n }", "public void destroy() {\r\n final String METHOD_NAME = \"destroy\";\r\n LOGGER.info(\"Entering \" + METHOD_NAME);\r\n\r\n this.filterConfig = null;\r\n\r\n LOGGER.info(\"Exiting \" + METHOD_NAME);\r\n }", "public void stop () {\n if (server != null)\n server.shutDown ();\n server = null;\n }", "public void destroy() {\n\r\n\t}", "public void destroy() {\n\r\n\t}", "public void destroy() {\n\r\n\t}", "public void destroy() {\n\r\n\t}", "public void destroy() {\n\r\n\t}", "public void destroy()\r\n {\n }", "public static void destruct() {\n\t\tinstance = null;\n\t}", "public void destroy()\r\n\t{\r\n\t\tlog.fine(\"destroy\");\r\n\t}", "void destruct()\n\t{\n\t\tlistenerList = null;\n\t}", "public void destroy() {\n }", "@PreDestroy\n\tpublic void destroy() {\n\t\tthis.executorService.shutdown();\n\t}", "public void testDestroyAccuracy() throws Exception {\r\n // Initial the vairables.\r\n servlet.init(config);\r\n assertEquals(\"init fails.\", \"UserId\",\r\n TestHelper.getVariable(AjaxSupportServlet.class, \"userIdAttributeName\", servlet));\r\n\r\n Map handlers = (Map) TestHelper.getVariable(AjaxSupportServlet.class, \"handlers\", servlet);\r\n assertEquals(\"destroy fails\", 5, handlers.size());\r\n\r\n // destroy the variables.\r\n servlet.destroy();\r\n\r\n assertNull(\"destroy fails.\",\r\n TestHelper.getVariable(AjaxSupportServlet.class, \"userIdAttributeName\", servlet));\r\n\r\n Map handlers1 = (Map) TestHelper.getVariable(AjaxSupportServlet.class, \"handlers\", servlet);\r\n assertTrue(\"init fails.\", handlers1.isEmpty());\r\n }", "public void destroy() {\n\t\tsuper.destroy(); \n\t\t// Put your code here\n\t}", "void destroy() {\n INSTANCE = null;\n }", "public void destroyOsgi();", "@PreDestroy\n public void destroy() {\n TempObjectCache tempObjectCache = TempObjectCache.getInstance();\n tempObjectCache.cleanUp();\n\n // release all persist caches & persist cache redis client\n PersistObjectCache persistObjectCache = PersistObjectCache.getInstance();\n persistObjectCache.cleanUp();\n\n // destroy redis client pool\n RedisTool.destroy();\n\n // Shutdown UniRest\n try {\n Unirest.shutdown();\n } catch (IOException ignore) {\n }\n }", "public void destroy() {\r\n // applet is going away...\r\n }" ]
[ "0.8357607", "0.8068459", "0.7901647", "0.7500556", "0.7443264", "0.6997455", "0.69502616", "0.6783583", "0.6645547", "0.66289103", "0.65331405", "0.64577305", "0.641841", "0.6385528", "0.63693154", "0.63544", "0.63544", "0.63544", "0.63544", "0.6344062", "0.63351953", "0.63341576", "0.63341576", "0.63341576", "0.63341576", "0.63341576", "0.63341576", "0.63341576", "0.63341576", "0.63341576", "0.63341576", "0.63341576", "0.63341576", "0.63341576", "0.63341576", "0.63341576", "0.63308233", "0.63308233", "0.63308233", "0.63308233", "0.63308233", "0.63308233", "0.63234544", "0.6322065", "0.6322065", "0.6319162", "0.6313391", "0.6288546", "0.62868494", "0.6279833", "0.6279833", "0.6279833", "0.6279833", "0.6279833", "0.6279833", "0.62774146", "0.62774146", "0.62774146", "0.62774146", "0.62774146", "0.62774146", "0.62774146", "0.62774146", "0.62774146", "0.62774146", "0.62774146", "0.6274251", "0.6243125", "0.6239625", "0.6232916", "0.62293404", "0.6226734", "0.6224445", "0.6224445", "0.6224445", "0.6224445", "0.6224445", "0.6224445", "0.6224445", "0.6224445", "0.6221436", "0.6220263", "0.62140006", "0.62036896", "0.6199201", "0.6199201", "0.6199201", "0.6199201", "0.6199201", "0.6196082", "0.6191672", "0.618707", "0.61530524", "0.6149596", "0.6139847", "0.6137327", "0.6120341", "0.6104901", "0.6094133", "0.60930544", "0.60869396" ]
0.0
-1
The doGet method of the servlet. This method is called when a form has its tag value method equals to get.
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { this.doPost(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Override\r\n protected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n throws ServletException, IOException {\n this.doPost(req, resp);\r\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n throws ServletException, IOException {\r\n\r\n doPost(req, resp); // call doPost processing\r\n\r\n }", "@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n doPost(request, response);\r\n }", "@Override\n protected void doGet( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException {\n doPost( request, response );\n }", "@Override\n\tpublic void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tthis.doPost(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tdoPost(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n doPost(request, response);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\tthrows ServletException, IOException {\nthis.doPost(request, response);\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n \tdoPost(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req,resp);;\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n \n doPost(request, response);\n }", "public void doGet(\r\n HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n doPost(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response); // calling doPost method\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException\r\n\t{\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\t\tprotected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t this.doGet(request, response);\r\n\t }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t doPost(request, response);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost( final HttpServletRequest request, final HttpServletResponse response ) throws ServletException, IOException {\r\n\t\tdoGet( request, response );\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "public synchronized void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {\r\n\t\tdoPost(request, response);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n doGet(request, response);\r\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n\r\n\t\tdoPost(request, response);\r\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "protected void doGet(HttpServletRequest request, \r\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\r\n\t\t// Send all get requests to doPost\r\n\t\tdoPost(request, response);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req,resp);\n\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException,\n IOException\n {\n doPost(request,response);\n }", "@Override\n protected void doGet( HttpServletRequest req, HttpServletResponse resp )\n throws ServletException, IOException {\n log( \"GET\" );\n createInputBloodDonationForm( req, resp );\n }", "protected void doGet(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\r\n\t\tdoPost(request,response);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\ndoPost(request, response);\n\t\t\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\r\n\t{\r\n\t\tdoPost(request, response);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(request, response);\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n\n doGet(request, response);\n\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\r\n\t\tdoGet(request, response);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n this.doPost(request, response);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\t}", "public void doGet(HttpServletRequest request, \n HttpServletResponse response)\n throws ServletException, IOException \n {\n response.setContentType(\"text/html\");\n\n // Writing message to the web page\n PrintWriter out = response.getWriter();\n String title = \"Using GET Method to Read Form Data\";\n String docType =\n \"<!doctype html public \\\"-//w3c//dtd html 4.0 \" + \"transitional//en\\\">\\n\";\n \n out.println(docType +\n \t \"<html>\\n\" +\n \t \"<head><title>\" + title + \"</title></head>\\n\" +\n \t \"<body bgcolor = \\\"#f0f0f0\\\">\\n\" +\n \t \"<h1 align = \\\"center\\\">\" + title + \"</h1>\\n\" +\n \t \"<ul>\\n\" +\n \t \" <li><b>Email</b>: \"\n \t + request.getParameter(\"uname\") + \"\\n\" +\n \t \" <li><b>Password</b>: \"\n \t + request.getParameter(\"psw\") + \"\\n\" +\n \t \"\t<li><b>Remember?</b>: \"\n \t + request.getParameter(\"remember\") +\n \t \"</ul>\\n\" +\n \t \"</body>\" +\n \t \"</html>\"\n \t );\n \n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request,response);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "public void doGet(HttpServletRequest request,\n HttpServletResponse response) throws ServletException,\n IOException {\n doPost(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doGet(request, response);\n }" ]
[ "0.7432514", "0.73521626", "0.7254457", "0.7252173", "0.7243877", "0.72416717", "0.7207163", "0.7207163", "0.7205729", "0.72009903", "0.72009677", "0.71832514", "0.71736676", "0.717088", "0.7159246", "0.71558", "0.71525633", "0.71515167", "0.71400803", "0.7138813", "0.7138813", "0.71347684", "0.71347684", "0.71347684", "0.71338934", "0.7124325", "0.71160007", "0.7108819", "0.71001637", "0.70978236", "0.709085", "0.709085", "0.709085", "0.709085", "0.709085", "0.7087061", "0.7087061", "0.7087061", "0.7087061", "0.7086715", "0.7075651", "0.7074198", "0.70691264", "0.70691246", "0.7054483", "0.704961", "0.70495355", "0.70495355", "0.70477206", "0.70355606", "0.7032538", "0.70091456", "0.70091456", "0.70049864", "0.70037985", "0.70004797", "0.6996423", "0.6996423", "0.69934", "0.69931644", "0.6990276", "0.69860625", "0.6984705", "0.6980132", "0.6979644", "0.69790673", "0.69754714", "0.6975102", "0.6970448", "0.69696593", "0.6969614", "0.6968336", "0.69657004", "0.69655716", "0.6965131", "0.6951971", "0.6936411", "0.6936411", "0.6936411", "0.692907", "0.69250554", "0.69035095", "0.69035095", "0.69035095", "0.69035095", "0.69035095", "0.69035095", "0.69035095", "0.69035095", "0.69035095", "0.69035095", "0.69035095", "0.69035095", "0.68986136", "0.6896207", "0.6896207", "0.6890813", "0.6890366", "0.68847865", "0.68820864" ]
0.68978524
94
The doPost method of the servlet. This method is called when a form has its tag value method equals to post.
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String xml = request.getParameter("xml"); System.out.println(xml); PrintWriter out = response.getWriter(); String result = "<Items><Item><error>0</error><Message>ERROR</Message><MidID>OK</MidID></Item></Items>"; out.print(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "public void doPost( )\n {\n \n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }", "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }", "public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\r\n\t/**\r\n\t * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse\r\n\t * response)\r\n\t */\r\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoGet(request, response);\r\n\t}", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\t\n\t\t\tdoGet(request, response);\n\t\t\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\n\tsuper.doPost(req, resp);\n\t\n\tSystem.out.println(\"dddd\");\n}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\ndoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n this.doGet(request, response);\n\t\t\n\t\t\t\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoGet(request, response);\r\n\t\t\r\n\t}", "@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n \tdoGet(request, response);\n }", "protected void doPost(HttpServletRequest request, \r\n \t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tdoGet(request, response);\r\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n processRequest(request, response);\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n doPost(request, response);\r\n }", "public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString string= request.getParameter(\"action\");\n\t\tif(string.equals(\"fileUpload\")) {\n\t\t\tfileUpload(request, response);\n\t\t}\n\t\telse if(string.equals(\"updateImformation\")) {\n\t\t\tupdateImformation(request, response);\n\t\t}\n\t\telse {\n\t\t\trequest.getRequestDispatcher(\"index.jsp\").forward(request, response);\n\t\t}\n\t}", "protected void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n {\n doGet(request,response);\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "protected void doPost(final HttpServletRequest request,final HttpServletResponse response)\r\n throws ServletException, IOException {\r\n this.doGet(request, response);\r\n \r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, java.io.IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, java.io.IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n protected void doGet( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException {\n doPost( request, response );\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n doGet(request,response);\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\tdoGet(request, response);\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException\r\n {\r\n processRequest(request, response);\r\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\tthrows ServletException, IOException {\n\t\tMap<String, String> messages = new HashMap<String, String>();\n\t\treq.setAttribute(\"messages\", messages);\n\n\t\tList<MeetUps> meetups = new ArrayList<MeetUps>();\n \n\t\t// Retrieve and validate the user last name that is retrieved from the form POST submission. By default, it\n\t\t// is populated by the URL query string (in FindUsers.jsp).\n\t\tString district = req.getParameter(\"district\");\n\t\tif (district == null || district.trim().isEmpty()) {\n\t\t\tmessages.put(\"success\", \"Please enter a valid intensity value.\");\n\t\t} else {\n\t\t\t// Retrieve meetups, and store as a message.\n\t\t\ttry {\n\t\t\t\tmeetups = meetupsDao.getAllMeetUpsByDistrict(district);\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new IOException(e);\n\t\t\t}\n\t\t\tmessages.put(\"success\", \"Displaying results for meetups in the district: \" + district);\n\t\t}\n\t\treq.setAttribute(\"meetups\", meetups);\n \n\t\treq.getRequestDispatcher(\"/MeetUp.jsp\").forward(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req,resp);;\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, java.io.IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response\n )\n throws ServletException\n , IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, java.io.IOException\n {\n internalProcessRequest(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n \tif(\"Submit Request\".equalsIgnoreCase(request.getParameter(\"action\"))){\t\t\t\r\n \t\tSite site = getLoggedOnSite(request);\r\n \t\tUser user = getLoggedOnUser(request);\r\n\r\n\t \tint itemId = Integer.parseInt(request.getParameter(\"itemId\"));\r\n\t \tint numRequested = Integer.parseInt(request.getParameter(\"numberUnits\"));\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tmakeFoodBankRequestDAO.makeFoodBankRequest(itemId, site.getId(), user.getEmail(), numRequested);\r\n\t\t\t\t\r\n\t\t\t\tresponse.getWriter().write((\"Success\"));\t\t\t\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e) {\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tresponse.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e.toString());\r\n\t\t\t}\r\n\t\t}\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n \r\n }", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\t}" ]
[ "0.7658935", "0.7604116", "0.7525584", "0.7470697", "0.7470697", "0.7470697", "0.7470697", "0.7470697", "0.7470697", "0.7470697", "0.7470697", "0.7470697", "0.7470697", "0.7470697", "0.7468392", "0.74292463", "0.74133605", "0.7403894", "0.7386615", "0.7372828", "0.7371357", "0.7371357", "0.7370587", "0.73488665", "0.7346323", "0.7339343", "0.7325697", "0.73215467", "0.7315276", "0.731039", "0.7307446", "0.7303447", "0.7303447", "0.7303447", "0.7271688", "0.7271688", "0.7271688", "0.7269701", "0.72266066", "0.72266066", "0.72266066", "0.72264814", "0.72264814", "0.7147569", "0.7128926", "0.7117914", "0.70894367", "0.7069853", "0.70592475", "0.7050274", "0.70421344", "0.70386136", "0.7036501", "0.70324016", "0.7015911", "0.6999827", "0.69889575", "0.6983668", "0.6976544", "0.6937482", "0.69347405", "0.692614", "0.692614", "0.692614", "0.692614", "0.692614", "0.692614", "0.692614", "0.6920002", "0.6920002", "0.6920002", "0.6920002", "0.6920002", "0.69168127", "0.6913625", "0.6911367", "0.6909474", "0.68985796", "0.68985796", "0.689429", "0.68907124", "0.688534", "0.6874588", "0.6874588", "0.6874588", "0.6873758", "0.6867684", "0.6864849", "0.6862469", "0.6858738", "0.6852916", "0.68519276", "0.68482614", "0.68457115", "0.68406534", "0.6840045", "0.6833267", "0.6829742", "0.68213916", "0.6820616", "0.6813743" ]
0.0
-1
Initialization of the servlet.
public void init() throws ServletException { // Put your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() throws ServletException {\r\n\r\n\t}", "public void init() throws ServletException {\n }", "public void init() throws ServletException {\n\t\t\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t\t\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\n\t}", "public void init() throws ServletException {\r\n\t\t\r\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t\tSystem.out.println(\"Servlet initializing\");\n\t}", "public void init() throws ServletException{\n\t\tSystem.out.println(this.getServletName()+\" is INITILIAZED\");\n\t\tsuper.init();\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t\tcounter = 1;\n\t\tSystem.out.println(\"Servlet Init Call\");\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init(ServletConfig arg0) throws ServletException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\r\n\t}", "@Override\r\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\r\n\t}", "public void init(HttpServletRequest request) throws ServletException {\n\t}", "public void init() {\n ServletContext context = getServletContext();\r\n host = context.getInitParameter(\"host\");\r\n port = context.getInitParameter(\"port\");\r\n user = context.getInitParameter(\"user\");\r\n pass = context.getInitParameter(\"pass\");\r\n }" ]
[ "0.8178207", "0.8166057", "0.81264925", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.81109667", "0.80646193", "0.805903", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.8043129", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.802835", "0.7824761", "0.77752554", "0.7764671", "0.7764671", "0.7764671", "0.7742791", "0.77389", "0.76973546", "0.7680793", "0.7680793", "0.7680321", "0.76795906" ]
0.7924157
88
Showing notification with text only
private void showNotificationMessage(Context context, String title, String message, String timeStamp, Intent intent) { notificationUtils = new NotificationUtils(context); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); notificationUtils.showNotificationMessage(title, message, timeStamp, intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showNotification(final CharSequence text) {\n if (DEBUG) {\n Log.v(TAG, \"showNotification:\" + text);\n }\n // Set the info for the views that show in the notification panel.\n final Notification notification = new Notification.Builder(this)\n .setSmallIcon(R.mipmap.ic_launcher) // the status icon\n .setTicker(text) // the status text\n .setWhen(System.currentTimeMillis()) // the time stamp\n .setContentTitle(getText(R.string.app_name)) // the label of the entry\n .setContentText(text) // the contents of the entry\n .setContentIntent(createPendingIntent()) // The intent to send when the entry is clicked\n .build();\n\n startForeground(NOTIFICATION, notification);\n // Send the notification.\n mNotificationManager.notify(NOTIFICATION, notification);\n }", "public void showNotification(String notificationText) {\n View parentLayout = findViewById(android.R.id.content);\n Snackbar mySnackbar = Snackbar.make(parentLayout, notificationText, Snackbar.LENGTH_LONG);\n mySnackbar.show();\n }", "private void showBigTextNotification() {\n Notification notification = new NotificationCompat.Builder(getActivity())\n .setContentTitle(getString(R.string.nf_big_text_title))\n //This will show on devices that don't support the big text and if further notifications\n //come in after the big text notification.\n .setContentText(getString(R.string.nf_big_text_truncated))\n .setTicker(getString(R.string.nf_big_text_truncated))\n .setSmallIcon(R.drawable.ic_notify)\n .setLargeIcon(BitmapFactory.decodeResource(getActivity().getResources(), R.drawable.ic_launcher))\n .setContentIntent(pendingIntentForNotification())\n //This will show on devices that do support big text.\n .setStyle(new NotificationCompat.BigTextStyle()\n .bigText(getString(R.string.nf_big_text_long)))\n .build();\n\n //Same deal as the simple notification.\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n NotificationManager notificationManager = (NotificationManager)\n getActivity().getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(TAG_BIG_TEXT_NOTIFICATION, notification);\n }", "public String getNotificationText() {\r\n\t\treturn notificationText;\r\n\t}", "private void showNotification() {\n CharSequence text = \"Running\";\n\n // The PendingIntent to launch our activity if the user selects this notification\n PendingIntent contentIntent = PendingIntent.getActivity(this, 0,\n new Intent(this, MainActivity.class), 0);\n\n // Set the info for the views that show in the notification panel.\n Notification notification = new Notification.Builder(this)\n //.setSmallIcon(R.drawable.stat_sample) // the status icon\n .setTicker(text) // the status text\n //.setWhen(System.currentTimeMillis()) // the time stamp\n .setContentTitle(\"PodcastFTPService\") // the label of the entry\n .setContentText(text) // the contents of the entry\n .setContentIntent(contentIntent) // The intent to send when the entry is clicked\n .build();\n\n // Send the notification.\n mNM.notify(0, notification);\n }", "private void showNotification() {\n }", "public String getNotificationText() {\n\t\treturn notificationText;\n\t}", "public void displayNotificationMessage(String notificationMessage) {\n userMessage.setTextFill(Color.BLACK);\n userMessage.setText(notificationMessage);\n }", "private void showNotification() {\n\n }", "private void showEndOfTripNotification() {\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(\"End of trip\")\n .setContentText(\"Notification text has been sent to \" + myFriendObject.getName());\n int mNotificationId = 001;\n NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n manager.notify(mNotificationId, mBuilder.build());\n }", "public static void showNotification(Project project, MessageType type, String text) {\n StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);\n JBPopupFactory.getInstance()\n .createHtmlTextBalloonBuilder(text, type, null)\n .setFadeoutTime(7500)\n .createBalloon()\n .show(RelativePoint.getCenterOf(statusBar.getComponent()), Balloon.Position.atRight);\n }", "private void showNotification() {\r\n\t\t// In this sample, we'll use the same text for the ticker and the\r\n\t\t// expanded notification\r\n\t\tCharSequence text = getText(R.string.local_service_started);\r\n\r\n\t\t// Set the icon, scrolling text and timestamp\r\n\t\tNotification notification = new Notification(R.drawable.compass25,\r\n\t\t\t\ttext, System.currentTimeMillis());\r\n\t\tnotification.sound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\r\n\t\t// The PendingIntent to launch our activity if the user selects this\r\n\t\t// notification\r\n\t\tIntent intent = new Intent(this, TaskOverViewActivity.class);\r\n\t\t//intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\r\n\t\tPendingIntent contentIntent = PendingIntent.getActivity(this, 0,\r\n\t\t\t\tintent, PendingIntent.FLAG_UPDATE_CURRENT);\r\n\r\n\t\t// Set the info for the views that show in the notification panel.\r\n\t\tnotification.setLatestEventInfo(this, getText(R.string.service_name),\r\n\t\t\t\ttext, contentIntent);\r\n\r\n\t\t// Send the notification.\r\n\t\t// We use a layout id because it is a unique number. We use it later to\r\n\t\t// cancel.\r\n\t\tmNM.notify(R.string.local_service_started, notification);\r\n\t}", "private void showNotification() {\r\n\t\t// In this sample, we'll use the same text for the ticker and the\r\n\t\t// expanded notification\r\n\t\tCharSequence text = getText(R.string.local_service_started);\r\n\r\n\t\t// Set the icon, scrolling text and timestamp\r\n\t\tNotification notification = new Notification(R.drawable.service_icon,\r\n\t\t\t\ttext, System.currentTimeMillis());\r\n\r\n\t\t// The PendingIntent to launch our activity if the user selects this\r\n\t\t// notification\r\n\t\tPendingIntent contentIntent = PendingIntent.getActivity(this, 0,\r\n\t\t\t\tnew Intent(this, stopServiceJ.class), 0);\r\n\r\n\t\t// Set the info for the views that show in the notification panel.\r\n\t\tnotification.setLatestEventInfo(this, getText(R.string.service_name),\r\n\t\t\t\ttext, contentIntent);\r\n\r\n\t\t// Send the notification.\r\n\t\t// We use a layout id because it is a unique number. We use it later to\r\n\t\t// cancel.\r\n\t\tmNM.notify(R.string.local_service_started, notification);\r\n\t}", "private void showArrivalNotification(String body) {\n\n PendingIntent contentIntent = PendingIntent.getActivity(getBaseContext()\n , 0, new Intent(), PendingIntent.FLAG_ONE_SHOT);\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(getBaseContext());\n\n builder.setAutoCancel(true).setDefaults(android.app.Notification.DEFAULT_LIGHTS| android.app.Notification.DEFAULT_SOUND)\n .setWhen(System.currentTimeMillis()).setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(\"Arrival\").setContentText(body)\n .setContentIntent(contentIntent);\n NotificationManager manager = (NotificationManager)getBaseContext().getSystemService(Context.NOTIFICATION_SERVICE);\n manager.notify(1, builder.build());\n }", "private void showNotification() {\n // In this sample, we'll use the same text for the ticker and the expanded notification\n CharSequence text = getText(R.string.local_service_started);\n\n // Set the icon, scrolling text and timestamp\n Notification notification = new Notification(R.drawable.icon, text,\n System.currentTimeMillis());\n\n // The PendingIntent to launch our activity if the user selects this notification\n PendingIntent contentIntent = PendingIntent.getActivity(this, 0,\n new Intent(this, ServiceActivity.class), 0);\n\n // Set the info for the views that show in the notification panel.\n notification.setLatestEventInfo(this, getText(R.string.local_service_label),\n text, contentIntent);\n\n // Send the notification.\n mNM.notify(NOTIFICATION, notification);\n }", "public void showNoNotifications(){\n noNotificationsTitle.setVisibility(View.VISIBLE);\n noNotificationsText.setVisibility(View.VISIBLE);\n noNotificationsImage.setVisibility(View.VISIBLE);\n }", "private void showNotification() {\n // In this sample, we'll use the same text for the ticker and the expanded notification\n CharSequence text = \"Siguiendo el trayecto\";\n\n // The PendingIntent to launch our activity if the user selects this notification\n PendingIntent contentIntent = PendingIntent.getActivity(this, 0,\n new Intent(this, InformacionServicio.class), 0);\n\n // Set the info for the views that show in the notification panel.\n Notification notification = new Notification.Builder(this)\n .setSmallIcon(R.drawable.estrella_full) // the status icon\n .setTicker(text) // the status text\n .setWhen(System.currentTimeMillis()) // the time stamp\n .setContentTitle(\"Conductor Serv\") // the label of the entry\n .setContentText(text) // the contents of the entry\n .setContentIntent(contentIntent) // The intent to send when the entry is clicked\n .build();\n\n // Send the notification.\n //mNM.notify(55, notification);\n //startForeground(56,notification);\n\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)\n startMyOwnForeground();\n else\n startForeground(1, notification);\n\n }", "public void sendNotification(String notifTitle, String notifText) {\n\n }", "private void displayMessage(String text) {\n toggleProgress();\n userMessage.setVisibility(View.VISIBLE);\n userMessage.setText(text);\n }", "public void setNotificationText(String notificationText) {\r\n\t\tthis.notificationText = notificationText;\r\n\t}", "private void showForegroundNotification(String contentText) {\n Intent showTaskIntent = new Intent(getApplicationContext(), MainActivity.class);\n showTaskIntent.setAction(Intent.ACTION_MAIN);\n showTaskIntent.addCategory(Intent.CATEGORY_LAUNCHER);\n showTaskIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n PendingIntent contentIntent = PendingIntent.getActivity(\n getApplicationContext(),\n 0,\n showTaskIntent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n\n Notification notification = new Notification.Builder(getApplicationContext())\n .setContentTitle(getString(R.string.app_name))\n .setContentText(contentText)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setWhen(System.currentTimeMillis())\n .setContentIntent(contentIntent)\n .build();\n startForeground(NOTIFICATION_ID, notification);\n }", "int displayNotification(Message message);", "private void showNotification() {\n\t\t\t\tPendingIntent contentIntent = PendingIntent.getActivity(this, 0, \n\t\t\t\t\t\tnew Intent(this, MainActivity.class), 0);\n\t\t\t\t\n\t\t// Use NotificationCompat.Builder to build the notification, display using mNM\n\t\tNotificationCompat.Builder mNotifyBuilder= new NotificationCompat.Builder(this)\n\t\t\t.setContentTitle(getText(R.string.notificationTitle))\n\t\t\t.setContentText(getText(R.string.notificationText))\n\t\t\t.setSmallIcon(R.drawable.ic_launcher)\n\t\t\t.setContentIntent(contentIntent);\n\t\t\n\t\tmNM.notify(notifyID, mNotifyBuilder.build());\n\t}", "@RequiresApi(api = Build.VERSION_CODES.M)\n private void showNotification(String title, String body)\n {\n Intent intent = new Intent(this, LoginActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 1, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n Notification notification = new NotificationCompat.Builder(this, CHANNEL_ID)\n .setSmallIcon(R.drawable.ic_notification)\n .setContentTitle(title)\n .setContentText(body)\n .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.mipmap.app_icon))\n .setPriority(NotificationCompat.PRIORITY_HIGH) // for lower than api 26\n .setContentIntent(pendingIntent)\n .setAutoCancel(true) // removes notification on click\n .build();\n\n NotificationManager notificationManager = getSystemService(NotificationManager.class);\n notificationManager.notify(new Random().nextInt(), notification);\n }", "public void showToast(String text)\n {\n Text icon = GlyphsDude.createIcon(FontAwesomeIconName.CHECK_CIRCLE,\"1.5em\");\n icon.setFill(Color.WHITE);\n Label l = new Label(text) ;\n l.setTextFill(Color.WHITE);\n l.setGraphic(icon);\n snackbar = new JFXSnackbar(PrinciplePane);\n snackbar.enqueue( new JFXSnackbar.SnackbarEvent(l));\n }", "private Notification getActivityNotification(String title, String text){\n Intent main = getApplicationContext().getPackageManager().getLaunchIntentForPackage(getApplicationContext().getPackageName());\n main.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 1000, main, PendingIntent.FLAG_UPDATE_CURRENT);\n\n int icon = R.drawable.star_big_on;\n int normalIcon = getResources().getIdentifier(\"icon\", \"drawable\", getPackageName());\n int notificationIcon = getResources().getIdentifier(\"notificationicon\", \"drawable\", getPackageName());\n if(notificationIcon != 0) {\n Log.d(TAG, \"Found Custom Notification Icon!\");\n icon = notificationIcon;\n }\n else if(normalIcon != 0) {\n Log.d(TAG, \"Found normal Notification Icon!\");\n icon = normalIcon;\n }\n\n Notification.Builder builder = new Notification.Builder(this);\n builder.setContentTitle(title);\n builder.setContentText(text);\n builder.setSmallIcon(icon);\n builder.setContentIntent(pendingIntent);\n Notification notification;\n if (android.os.Build.VERSION.SDK_INT >= 16) {\n notification = buildForegroundNotification(builder);\n } else {\n notification = buildForegroundNotificationCompat(builder);\n }\n notification.flags |= Notification.FLAG_ONGOING_EVENT | Notification.FLAG_FOREGROUND_SERVICE | Notification.FLAG_NO_CLEAR;\n return notification;\n }", "private void mostrarNotificacion(String title, String body)\r\n {\r\n Intent intent = new Intent(this, MainActivity.class);\r\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_ONE_SHOT);\r\n\r\n Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\r\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\r\n .setSmallIcon(R.mipmap.ic_launcher)\r\n .setContentTitle(title)\r\n .setContentText(body)\r\n .setAutoCancel(true)\r\n .setSound(soundUri)\r\n .setContentIntent(pendingIntent);\r\n\r\n NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\r\n notificationManager.notify(0/*ID de l notificación*/, notificationBuilder.build());\r\n }", "private void showSimpleNotification() {\n Notification notification = new NotificationCompat.Builder(getActivity())\n //Title of the notification\n .setContentTitle(getString(R.string.nf_simple_title))\n //Content of the notification once opened\n .setContentText(getString(R.string.nf_simple_message))\n //This bit will show up in the notification area in devices that support that\n .setTicker(getString(R.string.nf_simple_ticker))\n //Icon that shows up in the notification area\n .setSmallIcon(R.drawable.ic_notify)\n //Icon that shows up in the drawer\n .setLargeIcon(BitmapFactory.decodeResource(getActivity().getResources(), R.drawable.ic_launcher))\n //Set the intent\n .setContentIntent(pendingIntentForNotification())\n //Build the notification with all the stuff you've just set.\n .build();\n\n //Add the auto-cancel flag to make it dismiss when clicked on\n //This is a bitmask value so you have to pipe-equals it.\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n\n //Grab the NotificationManager and post the notification\n NotificationManager notificationManager = (NotificationManager)\n getActivity().getSystemService(Context.NOTIFICATION_SERVICE);\n\n //Set a tag so that the same notification doesn't get reposted over and over again and\n //you can grab it again later if you need to.\n notificationManager.notify(TAG_SIMPLE_NOTIFICATION, notification);\n }", "@Override\n public void onNotificationPosted(StatusBarNotification sbn) {\n int notificationCode = matchNotificationCode(sbn);\n String pack = \"\";\n Bundle extras = null;\n String title = \"\";\n String text = \"\";\n String subtext = \"\";\n String key = \"\";\n try {\n pack = sbn.getPackageName();\n extras = sbn.getNotification().extras;\n //Prendo i dati della notifica\n title = extras.getString(\"android.title\");\n //Parso il titolo\n if (title.contains(\"(\") && title.contains(\")\") && (title.contains((\"messaggi\")) || title.contains(\"messaggio\"))) {\n int posA = title.lastIndexOf('(');\n title = title.substring(0, posA - 1);\n }\n text = extras.getCharSequence(\"android.text\").toString();\n subtext = \"\";\n } catch (Exception ex) {\n Log.d(\"WHATSAPP RIGA 100\", \"Conv fallita\");\n }\n if (matchNotificationCode(sbn) != InterceptedNotificationCode.OTHER_NOTIFICATIONS_CODE) {\n if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)) {\n //EDIT\n /* Used for SendBroadcast */\n try {\n Parcelable b[] = (Parcelable[]) extras.get(Notification.EXTRA_MESSAGES);\n String content;\n if (b != null) {\n content = \"\";\n for (Parcelable tmp : b) {\n key = String.valueOf(tmp.hashCode());\n Bundle msgBundle = (Bundle) tmp;\n subtext = msgBundle.getString(\"text\");\n //content = content + msgBundle.getString(\"text\") + \"\\n\";\n }\n /*Toast.makeText(getApplicationContext(), content,\n Toast.LENGTH_LONG).show();*/\n }\n if (subtext.isEmpty()) {\n subtext = text;\n }\n } catch (Exception e) {\n Log.d(\"ERRORE RIGA 90 WHATSAPP\", \"Probabilmente la notifica è sballata\");\n }\n Notifica nuovaNotifica = new Notifica();\n\n if (subtext != null) {\n if (!text.contains(\"nuovi messaggi\") && !text.contains(\"WhatsApp Web is currently active\") && !text.contains(\"WhatsApp Web login\") && !title.toLowerCase().equals(\"whatsapp\")) {\n try {\n DateFormat df = new SimpleDateFormat(\"ddMMyyyyHHmmss\");\n String date = df.format(Calendar.getInstance().getTime());\n nuovaNotifica = new Notifica(key, pack, title, subtext, date);\n } catch (Exception ex) {\n Log.d(\"WHATSAPP RIGA 100\", \"Conversione fallita\");\n }\n try {\n //Parso il messaggio se viene da instagram\n if (matchNotificationCode(sbn) == InterceptedNotificationCode.INSTAGRAM_CODE) {\n //Elimino l'username nel messaggio\n if (subtext.contains(\":\"))\n subtext = subtext.substring(subtext.indexOf(':') + 2, subtext.length());\n else {\n if (subtext.contains(title)) {\n int ind = subtext.indexOf(title);\n subtext = subtext.replace(title, \"\");\n subtext = subtext.substring(1, subtext.length());\n }\n }\n }\n } catch (Exception ex) {\n Log.d(\"WHATSAPP RIGA 160\", \"Parser fallito\");\n }\n //Controllo che non abbia già ricevuto il messaggio\n String contatto = title + matchNotificationCode(sbn);\n int posizioneContatto = TrovaContattoInUltimiMessaggi(contatto);\n boolean daInviare = true;\n //Se ho trovato il contatto, controllo il valore se è diverso aggiungo e invio\n //Altrimenti modifico e non invio\n //Se non lo trovo lo registro e invio\n if (posizioneContatto != -1) {\n String strV = UltimiMessaggi.get(posizioneContatto).UltimoMessaggio;\n if (strV.equals(subtext)) {\n daInviare = false;\n } else {\n SettaUltimoMessaggio(posizioneContatto, subtext);\n }\n } else {\n //Aggiungo il contatto e il messaggio nella lista\n UltimiMessaggi.add(new ContattoAC(contatto, subtext));\n }\n //Invio la notifica alla mainActivity\n if (daInviare) {\n Intent intent = new Intent(\"ricevitoreNotifiche\");\n try {\n /*//LOG\n Log.d(\"Notifica KEY\", key);\n Log.d(\"Contatto\", title);\n Log.d(\"Messaggio\", subtext);*/\n intent.putExtra(\"ID\", nuovaNotifica.getID());\n intent.putExtra(\"Applicazione\", nuovaNotifica.getApplicazione());\n intent.putExtra(\"Titolo\", nuovaNotifica.getTitolo());\n intent.putExtra(\"Testo\", nuovaNotifica.getTesto());\n intent.putExtra(\"DateTime\", nuovaNotifica.getDateTime());\n sendBroadcast(intent);\n } catch (Exception ex) {\n Log.d(\"ERROR RIGA 103 WHATSAPP\", \"Non riesco a inviare in broadcast\");\n }\n }\n }\n /* End Used for Toast */\n }\n }\n }\n\n }", "public void setNotificationText(String notificationText) {\n\t\tthis.notificationText = notificationText;\n\t}", "@SuppressWarnings(\"deprecation\")\n\tprivate void showNotification() {\n\t\t// What happens when the notification item is clicked\n\t\tIntent contentIntent = new Intent(this, MainActivity.class);\n\n\t\tPendingIntent pending = PendingIntent.getActivity(\n\t\t\t\tgetApplicationContext(), 0, contentIntent,\n\t\t\t\tandroid.content.Intent.FLAG_ACTIVITY_NEW_TASK);\n\n\t\tNotification nfc = new Notification(R.drawable.ic_launcher, null,\n\t\t\t\tSystem.currentTimeMillis());\n\t\tnfc.flags |= Notification.FLAG_ONGOING_EVENT;\n\n\t\tString contentText = getString(R.string.service_label);\n\n\t\tnfc.setLatestEventInfo(getApplicationContext(), contentText,\n\t\t\t\tcontentText, pending);\n\n\t\tmNM.notify(NOTIFICATION, nfc);\n\t\tSession.setNotificationVisible(true);\n\t}", "private String getUnexpandedContentText(int numOfNotifications) {\n /*switch (numOfNotifications) {\n case 0:\n return \"\";\n case 1:\n return \"\";\n default:*/\n return numOfNotifications + \" news received\";\n }", "private void showNotification() {\n // In this sample, we'll use the same text for the ticker and the expanded notification\n // Set the icon, scrolling text and timestamp\n Notification notification = new Notification(R.drawable.icon, \"Longitude is active\", System.currentTimeMillis());\n\n // The PendingIntent to launch our activity if the user selects this notification\n PendingIntent contentIntent = PendingIntent.getActivity(this, 0,\n new Intent(this, LongitudeActivity.class), 0);\n\n // Set the info for the views that show in the notification panel.\n notification.setLatestEventInfo(this, \"Longitude\", \"Tracking your location\", contentIntent);\n\n // Send the notification.\n notificationManager.notify(NOTIFICATION, notification);\n }", "private void AlarmByNotification(String message) {\n\t\tToast.makeText(this, message, Toast.LENGTH_LONG).show();\r\n\t}", "private void showNotification(Notification notification) {\n notification.setDelayMsec(2000);\r\n notification.show(Page.getCurrent());\r\n }", "public void showComingSoonMessage() {\n showToastMessage(\"Coming soon!\");\n }", "public void showMessage(String text)\n {\n Toast.makeText(this, text, Toast.LENGTH_SHORT).show();\n }", "private void messageToUser(CharSequence text)\n {\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }", "private void showNotification() throws NullPointerException\n\t{\n\t\tint status;\n//\t\tstatus = mqttClient != null ? R.string.connected_to_server\n//\t\t\t\t: R.string.cannot_connect_to_server;\n//\t\tPendingIntent contentIntent = PendingIntent.getActivity( this, 0,\n//\t\t\t\tnew Intent( this, MainActivity.class ), 0 );\n//\t\tnotification = new Notification.Builder( this )\n//\t\t\t\t.setContentTitle( this.getString( R.string.service_label ) )\n//\t\t\t\t.setContentText( getResources().getString( status ) )\n//\t\t\t\t.setSmallIcon( Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP\n//\t\t\t\t\t\t? R.mipmap.pristine_zen_icon_silhouette : R.mipmap.pristine_zen_icon )\n//\t\t\t\t.setContentIntent( contentIntent )\n//\t\t\t\t.setAutoCancel( false )\n//\t\t\t\t.setOngoing( true )\n//\t\t\t\t.build();\n\t\tmNotificationManager =\n\t\t\t\t(NotificationManager) getApplicationContext().getSystemService( NOTIFICATION_SERVICE );\n\t\t//notification.flags |= Notification.FLAG_ONGOING_EVENT;\n\t\t//notification.flags |= Notification.FLAG_AUTO_CANCEL;\n\n\t\tmNotificationManager.notify( 123321, notification );\n\t}", "public void showNotification(String msg) {\n Notification.show(msg);\n }", "public void showNotification(String title,\n String message) {\n Intent intent = new Intent(this, MainActivity.class);\n String channel_id = getString(R.string.channel_id);\n\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent\n = PendingIntent.getActivity(\n this, 0, intent,\n PendingIntent.FLAG_ONE_SHOT);\n\n NotificationCompat.Builder builder\n = new NotificationCompat\n .Builder(getApplicationContext(),\n channel_id)\n .setSmallIcon(R.drawable.ic_launcher_foreground)\n .setAutoCancel(true)\n .setVibrate(new long[]{1000, 1000, 1000,\n 1000, 1000})\n .setOnlyAlertOnce(true)\n .setContentIntent(pendingIntent);\n\n if (Build.VERSION.SDK_INT\n >= Build.VERSION_CODES.JELLY_BEAN) {\n builder = builder.setContent(\n getCustomDesign(title, message));\n }\n else {\n builder = builder.setContentTitle(title)\n .setContentText(message)\n .setSmallIcon(R.drawable.ic_launcher_foreground);\n }\n\n NotificationManager notificationManager\n = (NotificationManager) getSystemService(\n Context.NOTIFICATION_SERVICE);\n if (Build.VERSION.SDK_INT\n >= Build.VERSION_CODES.O) {\n NotificationChannel notificationChannel\n = new NotificationChannel(\n channel_id, getString(R.string.channel_name),\n NotificationManager.IMPORTANCE_HIGH);\n notificationManager.createNotificationChannel(\n notificationChannel);\n }\n\n notificationManager.notify(0, builder.build());\n }", "private void showText(String msg)\n {\n\n popup.setText(msg);\n\n listView.animate().alpha(0.3f).setDuration(1000);\n\n popup.setVisibility(View.VISIBLE);\n\n }", "public void notificacionToast(String mensaje){\n Toast toast = Toast.makeText(getApplicationContext(),mensaje,Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n toast.show();\n }", "public void showNotification(Notification notification, boolean save) {\n Player recipient = null;\n if (notification.hasRecipient()) {\n String text = notification.getTemplate().compile(notification.getData());\n recipient = Bukkit.getPlayer(notification.getPlayer());\n if (!afk.isPlayerAFK(recipient)) {\n recipient.sendMessage(text);\n notification.playerRead();\n recipient.playSound(recipient.getLocation(), notification.getTemplate().getSound(), 1f, 1f);\n }\n }\n if (notification.isGlobal()) {\n if (recipient == null || !afk.isPlayerAFK(recipient)) {\n String text = notification.getBroadcastTemplate().compile(notification.getData());\n for (Player player : Bukkit.getOnlinePlayers()) {\n if (player == recipient) {\n continue;\n }\n player.sendMessage(text);\n player.playSound(player.getLocation(), notification.getBroadcastTemplate().getSound(), 1f, 1f);\n }\n }\n }\n if (save) {\n saveNotification(notification);\n }\n }", "private void ShowNotification()\n {\n Notification n = new Notification.Builder(this)\n .setContentTitle(\"Message from Himanshu\")\n .setContentText(\"Thank you Sir. Enjoyed Your Class!\")\n .setSmallIcon(R.drawable.cloud)\n //.setContentIntent(pIntent)\n .setAutoCancel(true)\n //.addAction(R.drawable.icon, \"Call\", pIntent)\n //.addAction(R.drawable.icon, \"More\", pIntent)\n //.addAction(R.drawable.icon, \"And more\", pIntent)\n .getNotification();\n\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n try {\n notificationManager.notify(0, n);\n }catch (Exception ex) {\n Log.d(\"MyApp\", \"Exception Occured!\");\n }\n }", "public void showNotification(String title,\n String message) {\n\n Intent intent\n = new Intent(this, HomeActivity.class);\n\n String channel_id = \"CCULife\";\n\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent\n = PendingIntent.getActivity(\n this, 0, intent,\n PendingIntent.FLAG_ONE_SHOT);\n\n // Create a Builder object using NotificationCompat\n // class. This will allow control over all the flags\n NotificationCompat.Builder builder\n = new NotificationCompat\n .Builder(getApplicationContext(),\n channel_id)\n .setSmallIcon(R.drawable.sicon)\n .setAutoCancel(true)\n .setVibrate(new long[]{1000, 1000, 1000,\n 1000, 1000})\n .setOnlyAlertOnce(true)\n .setContentIntent(pendingIntent);\n\n // A customized design for the notification can be\n // set only for Android versions 4.1 and above. Thus\n // condition for the same is checked here.\n if (Build.VERSION.SDK_INT\n >= Build.VERSION_CODES.JELLY_BEAN) {\n builder = builder.setContent(\n getCustomDesign(title, message));\n } // If Android Version is lower than Jelly Beans,\n // customized layout cannot be used and thus the\n // layout is set as follows\n else {\n builder = builder.setContentTitle(title)\n .setContentText(message)\n .setSmallIcon(getNotificationIcon());\n }\n // Create an object of NotificationManager class to\n // notify the\n // user of events that happen in the background.\n NotificationManager notificationManager\n = (NotificationManager) getSystemService(\n Context.NOTIFICATION_SERVICE);\n // Check if the Android Version is greater than Oreo\n if (Build.VERSION.SDK_INT\n >= Build.VERSION_CODES.O) {\n NotificationChannel notificationChannel\n = new NotificationChannel(\n channel_id, \"CCULife\",\n NotificationManager.IMPORTANCE_HIGH);\n notificationManager.createNotificationChannel(\n notificationChannel);\n }\n\n notificationManager.notify(0, builder.build());\n }", "@SkipValidation\n public String makeChangesToShowMessage() {\n important = impService.getImportantNews(important.getImportantNewsId());\n if (important.isShowMessage() == false) {\n important.setShowMessage(true);\n impService.updateImportantNews(important);\n }\n return SUCCESS;\n }", "private void sendNotification(String ttl, String messageBody) {\n Intent intent = new Intent(this, ActivitySplash.class);\n\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,\n PendingIntent.FLAG_ONE_SHOT);\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this);\n if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n notificationBuilder.setSmallIcon(R.mipmap.splash_screen_logo);\n notificationBuilder.setColor(getResources().getColor(R.color.white));\n } else {\n notificationBuilder.setSmallIcon(R.mipmap.logo);\n }\n notificationBuilder.setContentTitle(ttl)\n .setContentText(messageBody)\n // .setStyle(new NotificationCompat.BigPictureStyle().bigPicture(image))/*Notification with Image*/\n .setAutoCancel(true)\n .setStyle(new NotificationCompat.BigTextStyle().bigText(messageBody))\n .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.mipmap.logo))\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());\n }", "private void showNotification(LBSBundle lbs,int status){\n\t\tScenario scenario = (Scenario) EntityPool.instance(\r\n\t\t\t\t).forId(lbs.getParentId(), lbs.getParentTag());\r\n\t\t\r\n\t\t\r\n\t\t// Set the icon, scrolling text and timestamp\r\n\t\tNotification notification = new Notification(R.drawable.compass25,\r\n\t\t\t\tscenario.getName(), System.currentTimeMillis());\r\n\t\tnotification.flags |= Notification.FLAG_AUTO_CANCEL;\r\n\t\tnotification.sound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\r\n\t\t// The PendingIntent to launch our activity if the user selects this\r\n\t\t// notification\r\n\t\tIntent intent = new Intent(this, TaskOverViewActivity.class);\r\n\t\tintent.setAction(TaskOverViewActivity.TASK_OVERVIEWBY_SCENARIO);\r\n\t\tintent.putExtra(TaskOverViewActivity.IN_SCENAIRO_ID, scenario.getId());\r\n\t\t//intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\r\n\t\tPendingIntent contentIntent = PendingIntent.getActivity(this, 0,\r\n\t\t\t\tintent, PendingIntent.FLAG_UPDATE_CURRENT);\r\n\r\n\t\tCharSequence text = getText(status);\r\n\t\t// Set the info for the views that show in the notification panel.\r\n\t\tnotification.setLatestEventInfo(this, scenario.getName(),\r\n\t\t\t\ttext, contentIntent);\r\n\r\n\t\t// Send the notification.\r\n\t\t// We use a layout id because it is a unique number. We use it later to\r\n\t\t// cancel.\r\n\t\tmNM.notify(\tstatus, notification);\r\n\t}", "private void showNotification(Intent intent) {\r\n\t\t// This is the 'title' of the notification\r\n\r\n\t\tString title = intent.getStringExtra(\"TITLE\");\r\n\r\n\t\t// This is the icon to use on the notification\r\n\t\tint icon = R.drawable.ic_popup_reminder;\r\n\t\t// This is the scrolling text of the notification\r\n\t\tString date = intent.getStringExtra(\"DATE\");\r\n\t\tString time = intent.getStringExtra(\"TIME\");\r\n\t\tLog.d(\"NILU\", \"SHOW NOTIFICATION::: \" + title + \" \" + date + \" \"\r\n\t\t\t\t+ time);\r\n\r\n\t\tCharSequence text = \"Due on \" + date + \" at \" + time;\r\n\t\t// What time to show on the notification\r\n\t\tlong when = System.currentTimeMillis();\r\n\r\n\t\tNotificationCompat.Builder mBuilder = new NotificationCompat.Builder(\r\n\t\t\t\tthis).setTicker(title + \" Due Soon\")\r\n\r\n\t\t.setContentTitle(title).setSmallIcon(icon).setWhen(when)\r\n\t\t\t\t.setContentText(text);\r\n\t\t// Creates an explicit intent for an Activity in your app\r\n\t\tIntent resultIntent = new Intent(this, NotificationDisplay.class);\r\n\r\n\t\t// The stack builder object will contain an artificial back stack for\r\n\t\t// the\r\n\t\t// started Activity.\r\n\t\t// This ensures that navigating backward from the Activity leads out of\r\n\t\t// your application to the Home screen.\r\n\t\tTaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\r\n\t\t// Adds the back stack for the Intent (but not the Intent itself)\r\n\t\tstackBuilder.addParentStack(NotificationDisplay.class);\r\n\t\t// Adds the Intent that starts the Activity to the top of the stack\r\n\r\n\t\tstackBuilder.addNextIntent(resultIntent);\r\n\t\tPendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0,\r\n\t\t\t\tPendingIntent.FLAG_UPDATE_CURRENT);\r\n\t\tmBuilder.setContentIntent(resultPendingIntent);\r\n\t\tNotification notification = mBuilder.build();\r\n\t\tnotification.flags |= Notification.FLAG_AUTO_CANCEL;\r\n\r\n\t\tmNM.notify(NOTIFICATION, notification);\r\n\r\n\t\t// Stop the service when we are finished\r\n\t\tstopSelf();\r\n\t}", "private void sendNotification(String messageBody, String titleMessage) {\n Intent intent = new Intent(this, HomeMenu.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_ONE_SHOT);\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this);\n\n if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n notificationBuilder.setSmallIcon(R.mipmap.ic_launcher);\n }\n\n notificationBuilder.setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(titleMessage)\n .setContentText(messageBody)\n .setAutoCancel(true)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent)\n .setStyle(new NotificationCompat.BigTextStyle().bigText(messageBody)); //Making the text in big Picture Style\n\n\n NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(0, notificationBuilder.build());\n }", "private void showNotification(String message) {\n // Prepare intent which is triggered if the\n // notification is selected\n Intent intent = new Intent(this, LoginActivity.class);\n int mNotificationId = (int) System.currentTimeMillis();\n PendingIntent pIntent =\n PendingIntent.getActivity(this,\n mNotificationId,\n intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.ic_logo)\n .setContentTitle(getString(R.string.app_name))\n .setContentText(message)\n .setContentIntent(pIntent)\n .setAutoCancel(true);\n\n NotificationManager mNotifyMgr = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n mNotifyMgr.notify(mNotificationId, mBuilder.build());\n }", "public static void showInfoNotification(Project project, String text) {\n showNotification(project, MessageType.INFO, text);\n }", "public void MostrarNotificacion(Boolean estado, int cancelar){\n //hora del evento\n long hora = System.currentTimeMillis();\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(getApplicationContext(), CHANNEL_ID);\n builder.setSmallIcon(R.drawable.ic_launcher_background);\n builder.setContentTitle(\"Titulo\");\n builder.setContentText(\"Cuerpo\");\n builder.setWhen(hora);\n builder.setPriority(NotificationCompat.PRIORITY_DEFAULT);\n\n //para poner la notificacion permanente\n builder.setOngoing(estado);\n\n //construir la notificacion\n NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(getApplicationContext());\n notificationManagerCompat.notify(NOTIFICACION_ID, builder.build());\n\n //para quitar la notificacion\n notificationManagerCompat.cancel(cancelar);\n\n\n\n }", "private void displayToast(CharSequence text){\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }", "private void showNotification() {\n Intent intent = new Intent(this, MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n Notification notification = new NotificationCompat.Builder(getApplicationContext())\n .setContentIntent(PendingIntent.getActivity(this, 0, intent, 0))\n .setSmallIcon(R.drawable.ic_launcher)\n .setContentText(getText(R.string.local_service_running))\n .setContentTitle(getText(R.string.local_service_notification)).build();\n notificationManager.notify(NOTIFICATION, notification);\n }", "public void displayToastMessage(String msg) {\n\t\tToast toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);\n\t\ttoast.setGravity(Gravity.CENTER, 0, 0);\n\t\ttoast.show();\n\t}", "@Override\n public void displayMessage(String message) {\n Toast.makeText(getActivity(),message,Toast.LENGTH_SHORT).show();\n }", "private void displayNotificationMessage(String message)\n\t{\n\n\t\tString CHANNEL_ID = \"my_channel_01\";\n\t\tint NOTIFICATION_ID = 0;\n\n\t\tif (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {\n\t\t\tCharSequence name = \"my_channel\";\n\t\t\tString Description = \"This is my channel\";\n\t\t\tint importance = NotificationManager.IMPORTANCE_HIGH;\n\t\t\tNotificationChannel mChannel = new NotificationChannel(CHANNEL_ID, name, importance);\n\t\t\tmChannel.setDescription(Description);\n\t\t\tmChannel.enableLights(true);\n\t\t\tmChannel.setLightColor(Color.RED);\n\t\t\tmChannel.enableVibration(true);\n\t\t\tmChannel.setVibrationPattern(new long[]{100, 200, 300, 400, 500, 400, 300, 200, 400});\n\t\t\tmChannel.setShowBadge(false);\n\t\t\tnotificationManager.createNotificationChannel(mChannel);\n\t\t}\n\n\t\tNotificationCompat.Builder builder = new NotificationCompat.Builder(this, CHANNEL_ID)\n\t\t\t\t.setSmallIcon(R.drawable.image2)\n\t\t\t\t.setContentTitle(\"Ting skjer!!!\")\n\t\t\t\t.setContentText(message);\n\n\t\tIntent resultIntent = new Intent(this, MyActivity.class);\n\t\tTaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n\t\t//stackBuilder.addParentStack(MainActivity.class);\n\t\tstackBuilder.addNextIntent(resultIntent);\n\t\tPendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);\n\n\t\tbuilder.setContentIntent(resultPendingIntent);\n\n\t\tnotificationManager.notify(NOTIFICATION_ID, builder.build());\n\t}", "public void run() {\n String lg_ti = \"Test.\";\n String des_ti = \"The license valid until \";\n String ban_ti = \"Warning!\";\n getNotificationData();\n //notificationShow(des_ti,lg_ti,ban_ti);\n }", "private void showNotificationMessage (Context context, String title, String message, String timeStamp, Intent intent) {\n notificationUtils = new com.actiknow.plothr.gcm.NotificationUtils(context);\n intent.setFlags (Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n notificationUtils.showNotificationMessage (title, message, timeStamp, intent);\n }", "private void displayNotification(final String id, final String name, final String detail, String title, final String url) {\n\n NotificationManager manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n Notification notification = new Notification(R.drawable.noti, name + \" ตอนใหม่\", System.currentTimeMillis());\n notification.defaults |= Notification.DEFAULT_SOUND;\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n\n // The PendingIntent will launch activity if the user selects this notification\n Intent browserIntent = null;\n/*\t\tbrowserIntent = new Intent(Intent.ACTION_VIEW);\n\t\tUri data = Uri.parse(url+\"#story_body\");\n\t\tbrowserIntent.setData(data);*/\n if (Setting.getArrowSelectSetting(context).equals(\"0\")) {\n browserIntent = new Intent(Intent.ACTION_VIEW);\n Uri data = Uri.parse(url + \"#story_body\");\n browserIntent.setData(data);\n } else if (Setting.getArrowSelectSetting(context).equals(\"1\")) {\n browserIntent = new Intent(this, DekdeeBrowserActivity.class);\n browserIntent.putExtra(\"id\", id);\n browserIntent.putExtra(\"url\", url);\n browserIntent.putExtra(\"title\", name);\n } else {\n browserIntent = new Intent(this, TextReadActivity.class);\n browserIntent.putExtra(\"url\", url);\n }\n System.out.println(\"moti \" + url);\n\n //PendingIntent contentIntent = PendingIntent.getActivity(context, REQUEST_CODE,browserIntent, 0);\n PendingIntent contentIntent = PendingIntent.getActivity(getApplicationContext(), REQUEST_CODE, browserIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n notification.contentIntent = contentIntent;\n //notification.contentView = contentView;\n if (title.contains(\":\")) {\n title = \":\" + title;\n }\n if (title.indexOf(\":\") + 2 < title.length()) {\n notification.setLatestEventInfo(context, name, title.substring(title.indexOf(\":\") + 2) + \" (\" + detail + \")\", contentIntent);\n } else if (title.indexOf(\":\") + 1 < title.length()) {\n notification.setLatestEventInfo(context, name, title.substring(title.indexOf(\":\") + 1) + \" (\" + detail + \")\", contentIntent);\n } else if ((!title.contains(\":\")) && (title.indexOf(\":\") < title.length())) {\n notification.setLatestEventInfo(context, name, title.substring(title.indexOf(\":\")) + \" (\" + detail + \")\", contentIntent);\n } else {\n notification.setLatestEventInfo(context, name, title + \" (\" + detail + \")\", contentIntent);\n }\n manager.notify(REQUEST_CODE, notification);\n }", "private static String getNotificationMessage(UserEvent event) {\n return \"Activity \" + event.getCategory().getTitle() + \" in progress\";\n }", "public void showMessage(){\n\t jsfMessageHelper.addInfo(\"Mesaj:\", (messageTxt==null?\"?\":messageTxt));\r\n\t}", "public void show(String message, int duration, int mcolor, int mtextsize) {\n\t\ttry {\n\n\t\t\tif (null == mNotificationDialog) {\n\t\t\t\tmNotificationDialog = (View) inflateManager.inflate(\n\t\t\t\t\t\tR.layout.unipointnotificationtoast, null);\n\t\t\t\t// Set the window params and set it to TYPE_TOAST .\n\t\t\t\tWindowManager.LayoutParams lp = new WindowManager.LayoutParams(\n\t\t\t\t\t\tLayoutParams.WRAP_CONTENT,\n\t\t\t\t\t\tLayoutParams.WRAP_CONTENT,\n\t\t\t\t\t\tWindowManager.LayoutParams.TYPE_TOAST,\n\t\t\t\t\t\tWindowManager.LayoutParams.FLAG_NOT_TOUCHABLE\n\t\t\t\t\t\t\t\t| WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,\n\t\t\t\t\t\tPixelFormat.OPAQUE);\n\n\t\t\t\tlp.gravity = Gravity.BOTTOM;\n\t\t\t\t// lp.x = 0;\n\t\t\t\t// lp.y = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\tmWindowManager.addView(mNotificationDialog, lp);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tif (Unipoint_ServiceActivity.bDEBUG)\n\t\t\t\t\t\tLog.v(TAG,\"Add View got exception, may already added \");\n\t\t\t\t}\n\n\t\t\t\tmNotificationDialog.setVisibility(View.INVISIBLE);\n\n\t\t\t\t((LinearLayout) mNotificationDialog).setGravity(Gravity.TOP);\n\n\t\t\t}\n\n\t\t\tmNotificationDialog.setVisibility(View.INVISIBLE);\n\n\t\t\tif (!mShowing) {\n\t\t\t\tmShowing = true;\n\t\t\t}\n\t\t\tmNotificationDialog.setVisibility(View.VISIBLE);\n\n\t\t\t// It is shown already\n\t\t\tTextView descriptions = (TextView) mNotificationDialog\n\t\t\t\t\t.findViewById(R.id.notificationdescription);\n\t\t\tdescriptions.setText(message);\n\t\t\tdescriptions.setTextColor(mcolor);\n\t\t\tdescriptions.setTextSize(mtextsize);\n\n\t\t\tif (Unipoint_ServiceActivity.bDEBUG)\n\t\t\t\tLog.v(TAG, \"Start to Show the dialog, context :\" + message\n\t\t\t\t\t\t+ \" textsize : \" + mtextsize + \" Color :\" + mcolor);\n\n\t\t\tmUIthreadHandler.removeCallbacks(mRemoveWindowRunnable);\n\n\t\t\tboolean ret = mUIthreadHandler.postDelayed(mRemoveWindowRunnable,\n\t\t\t\t\tduration);\n\t\t\tif (ret) {\n\t\t\t\tif (Unipoint_ServiceActivity.bDEBUG)\n\t\t\t\t\tLog.v(TAG,\n\t\t\t\t\t\t\t\"Add delayed callbakc, duration Successfully\"\n\t\t\t\t\t\t\t\t\t+ duration);\n\n\t\t\t} else {\n\t\t\t\tif (Unipoint_ServiceActivity.bDEBUG)\n\t\t\t\t\tLog.v(TAG, \"Add delayed callbakc, duration Failed\"\n\t\t\t\t\t\t\t+ duration);\n\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic String getNotification() {\n\t\treturn null;\n\t}", "public void showNotificationMessage(final String title, final String message, final String timeStamp, Intent intent, String imageUrl) {\n if (TextUtils.isEmpty(message))\n return;\n \n \n // notification icon\n final int icon = R.mipmap.ic_launcher_round;\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\n final PendingIntent resultPendingIntent =\n PendingIntent.getActivity(\n mContext,\n 0,\n intent,\n PendingIntent.FLAG_CANCEL_CURRENT\n );\n \n final NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(\n mContext);\n final Uri alarmSound= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n showSmallNotification(mBuilder, icon, title, message, timeStamp, resultPendingIntent, alarmSound);\n playNotificationSound();\n }", "private void showNotification(boolean isError, boolean isProgressbar, int progress, String... info){\n\t\tString tickerText;\n\t\tmBuilder = new NotificationCompat.Builder(context);\n\t\tmBuilder\n .setSmallIcon(R.drawable.ic_stat_notify_default)\n .setContentTitle(info[0]);\n\t\ttickerText = info[0];\n\t\tif (info.length == 2){\n\t\t\tmBuilder\n\t\t .setContentText(info[1])\n\t\t .setStyle(new NotificationCompat.BigTextStyle()\n\t\t .bigText(info[1]));\n\t\t\ttickerText = info[1];\n\t\t}\n\t\tif(isProgressbar){\n\t\t\tmBuilder.setOngoing(true); \n\t\t}\n\t\t\n\t\tmBuilder.setTicker(tickerText);\n\t\tmNotificationManager =\n\t\t\t\tNotificationManagerCompat.from(context);\n\t\tmNotificationManager.notify(null, mId, mBuilder.build());\n\t}", "private static void showToastText(String infoStr, int TOAST_LENGTH) {\n Context context = null;\n\t\ttoast = getToast(context);\n\t\tTextView textView = (TextView) toast.getView().findViewById(R.id.tv_toast);\n\t\ttextView.setText(infoStr);\n textView.setTypeface(Typeface.SANS_SERIF);\n\t\ttoast.setDuration(TOAST_LENGTH);\n\t\ttoast.show();\n\t}", "private void showNotification() {\n\n Intent intent = new Intent(this, DashboardActivity.class);\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n stackBuilder.addParentStack(DashboardActivity.class);\n stackBuilder.addNextIntent(intent);\n\n final NotificationCompat.Builder builder = new NotificationCompat.Builder(this);\n\n builder.setSmallIcon(R.drawable.ic_gps);\n builder.setContentText(getText(R.string.local_service_started));\n builder.setContentTitle(getText(R.string.local_service_label));\n builder.setOngoing(true);\n builder.setContentIntent(stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT));\n\n final Notification notification = builder.build();\n\n // Send the notification.\n mNotificationManager.notify(NOTIFICATION, notification);\n }", "public void showMessage(int severity, String text) {\n\t\tswitch (severity) {\n\t\tcase WARNING:\n\t\t\tmessageBarLabel.setImage(StatusDisplayInfo\n\t\t\t\t\t.getStatusImage(Severity.WARNING));\n\t\t\tbreak;\n\t\tcase ERROR:\n\t\t\tmessageBarLabel.setImage(StatusDisplayInfo\n\t\t\t\t\t.getStatusImage(Severity.CRITICAL));\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tmessageBarLabel.setImage(SharedIcons.IMG_INFORMATION);\n\t\t\tbreak;\n\t\t}\n\t\tmessageBarLabel.setText(text);\n\t\tmessageBar.setVisible(true);\n\t\t((FormData) content.getLayoutData()).top = new FormAttachment(\n\t\t\t\tmessageBar, 0, SWT.BOTTOM);\n\t\tlayout(true, true);\n\t}", "private void showStatusBarNotification(String title, String sendMessage) {\n }", "public java.lang.String getNotification()\r\n\t{\r\n\t\tString results = \"\";\r\n\t\tif (!locked)\r\n\t\t{\r\n\t\t\tif (notification == null)\r\n\t\t\t\tresults = \"No notification\";\r\n\t\t\tif (notification != null)\r\n\t\t\t\tresults = notification;\t\r\n\t\t}\r\n\t\tif (locked == true && notification != null)\r\n\t\t\tresults = \"You have a notification\";\r\n\t\treturn results;\r\n\t}", "@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }", "private void showInfo(String message){ infoLabel.setText(message);}", "public void displayNotificationDialog(Context ctx, String title, String msg){\n AlertDialog.Builder dialog = new AlertDialog.Builder(ctx);\n dialog.setTitle(title);\n dialog.setMessage(msg);\n dialog.setPositiveButton(ctx.getResources().getString(R.string.ok_en), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }", "void showToast(String message);", "void showToast(String message);", "@SuppressLint(\"PrivateResource\")\n public void showToastMessage(String message) {\n View includedLayout = findViewById(R.id.llToast);\n\n final TextView text = includedLayout.findViewById(R.id.tv_toast_message);\n text.setText(message);\n\n animation = AnimationUtils.loadAnimation(this,\n R.anim.abc_fade_in);\n\n text.setAnimation(animation);\n text.setVisibility(View.VISIBLE);\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @SuppressLint(\"PrivateResource\")\n @Override\n public void run() {\n animation = AnimationUtils.loadAnimation(SupportActivity.this,\n R.anim.abc_fade_out);\n\n text.setAnimation(animation);\n text.setVisibility(View.GONE);\n }\n }, 2000);\n }", "private void drawNoti(String noti) {\n if (noti != null) {\n notification = noti;\n }\n\n lblNoti.setText(notification);\n }", "void onMessageToast(String string);", "public static void notify(String title, String message) {\n if (Display.getCurrent() == null\n || Display.getCurrent().getActiveShell() == null) {\n shell = new Shell(Display.getDefault(), SWT.NO_FOCUS | SWT.NO_TRIM\n | SWT.ON_TOP);\n GridLayout layout = new GridLayout(1, false);\n layout.marginHeight = 0;\n layout.marginWidth = 0;\n shell.setLayout(layout);\n shell.setForeground(Display.getDefault().getSystemColor(\n SWT.COLOR_BLACK));\n shell.addListener(SWT.Dispose, new Listener() {\n @Override\n public void handleEvent(Event event) {\n activeShells.remove(shell);\n if (activeShells.isEmpty()) {\n titleFont.dispose();\n }\n }\n });\n\n final Composite comp = new Composite(shell, SWT.BORDER);\n\n layout = new GridLayout(1, false);\n layout.marginHeight = 0;\n layout.marginWidth = 0;\n GridData data = new GridData(SWT.FILL, SWT.FILL, true, true);\n comp.setLayout(layout);\n comp.setLayoutData(data);\n\n CLabel titleLabel = new CLabel(comp, SWT.NONE);\n data = new GridData(SWT.FILL, SWT.FILL, true, true);\n data.horizontalSpan = 2;\n titleLabel.setLayoutData(data);\n\n // storing off the font, make the title font pop out a little more\n // to the user\n if (titleFont == null || titleFont.isDisposed()) {\n titleFont = titleLabel.getFont();\n FontData fd = titleFont.getFontData()[0];\n fd.setStyle(SWT.BOLD);\n fd.height = fd.height + 2;\n titleFont = new Font(Display.getCurrent(), fd);\n }\n titleLabel.setFont(titleFont);\n titleLabel.setText(title);\n\n // separate the title from the body text\n Label separator = new Label(comp, SWT.HORIZONTAL | SWT.SEPARATOR);\n data = new GridData(SWT.FILL, SWT.FILL, true, true);\n separator.setLayoutData(data);\n separator.setVisible(true);\n\n // here is the text for the body of the message\n Label text = new Label(comp, SWT.WRAP);\n data = new GridData(SWT.FILL, SWT.FILL, true, true);\n text.setLayoutData(data);\n text.setText(message);\n\n // maybe this should be minimum size?\n shell.setSize(350, 100);\n\n // get the bottom right corner of the monitor\n Rectangle clientArea = Display.getDefault().getMonitors()[0]\n .getClientArea();\n\n // and offset that may not be needed, only here to keep the box from\n // touching the corner\n int offset = 2;\n int startX = clientArea.x + clientArea.width - shell.getSize().x\n - offset;\n int startY = clientArea.y + clientArea.height - shell.getSize().y\n - offset;\n\n // move other shells up\n synchronized (activeShells) {\n if (!activeShells.isEmpty()) {\n List<Shell> modifiable = new ArrayList<Shell>(activeShells);\n Collections.reverse(modifiable);\n for (Shell shell : modifiable) {\n if (shell.isDisposed()) {\n activeShells.remove(shell);\n continue;\n }\n Point curLoc = shell.getLocation();\n shell.setLocation(curLoc.x, curLoc.y - 100);\n if (curLoc.y - 100 < 0) {\n activeShells.remove(shell);\n shell.dispose();\n }\n }\n }\n }\n\n shell.setLocation(startX, startY);\n shell.setVisible(true);\n\n activeShells.add(shell);\n startTimer(shell);\n }\n }", "public void createNotification(View view) {\n Intent intent = new Intent(this, Status1.class);\r\n PendingIntent pIntent = PendingIntent.getActivity(this, 0, intent, 0);\r\n\r\n // Build notification\r\n // Actions are just fake\r\n Notification noti = new Notification.Builder(this)\r\n .setContentTitle(\"RKC App \")\r\n .setContentText(\"Click To Enter \").setSmallIcon(R.drawable.arc)\r\n .setContentIntent(pIntent)\r\n .addAction(R.drawable.ironman, \"Back\", pIntent)\r\n .addAction(R.drawable.gun, \"More\", pIntent)\r\n .build();\r\n NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\r\n // hide the notification after its selected\r\n noti.flags |= Notification.FLAG_AUTO_CANCEL;\r\n\r\n notificationManager.notify(0, noti);\r\n\r\n }", "public void showToast(String text){\n Toast.makeText(this,text,Toast.LENGTH_SHORT).show();\n }", "private void notifyUser(Context context, String message) {\n\n Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n Intent intent = new Intent(context, MovieActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n\n NotificationManager manager = (NotificationManager)\n context.getSystemService(Context.NOTIFICATION_SERVICE);\n\n android.support.v4.app.NotificationCompat.Builder builder = new NotificationCompat.Builder(context)\n .setContentTitle(\"device is now \" + message + \".\")\n .setOngoing(true)\n .setVibrate(new long[]{0, 500, 500, 500, 500, 500, 500})\n .setSound(soundUri)\n .setContentIntent(pendingIntent)\n .setSmallIcon(android.R.drawable.sym_def_app_icon)\n .setAutoCancel(true);\n\n manager.notify(1001, builder.build());\n\n }", "public void hideNoNotifications(){\n noNotificationsTitle.setVisibility(View.GONE);\n noNotificationsText.setVisibility(View.GONE);\n noNotificationsImage.setVisibility(View.GONE);\n }", "private void displayMessage(String info) {\n \tif (message == null) {\n \t\tsetupMessage();\n \t}\n \tmessage.setLabel(info);\n\t\tadd(message, 6, 15);\n }", "public String generateNotificationMessage(NotificationBo notification);", "private void showBigPictureNotification() {\n Notification notification = new NotificationCompat.Builder(getActivity())\n .setContentTitle(getString(R.string.nf_big_pic_title))\n //This will show on devices that don't support the big picture and if further notifications\n //come in after the big picture notification.\n .setContentText(getString(R.string.nf_big_pic_message))\n .setTicker(getString(R.string.nf_big_pic_message))\n .setSmallIcon(R.drawable.ic_notify)\n .setLargeIcon(BitmapFactory.decodeResource(getActivity().getResources(), R.drawable.ic_launcher))\n .setContentIntent(pendingIntentForNotification())\n //This will show on devices that do support big pictures.\n .setStyle(new NotificationCompat.BigPictureStyle()\n .bigPicture(BitmapFactory.decodeResource(getActivity().getResources(), R.drawable.chaplin))\n .setBigContentTitle(getString(R.string.nf_big_pic_content_title)))\n .build();\n\n //Same deal as the simple notification.\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n NotificationManager notificationManager = (NotificationManager)\n getActivity().getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(TAG_BIG_PICTURE_NOTIFICATION, notification);\n }", "public static void displayMessage(Context context, String message) {\r\n Intent intent = new Intent(AppConstants.DISPLAY_MESSAGE_ACTION);\r\n intent.putExtra(AppConstants.EXTRA_NOTIFICATION_MESSAGE, message);\r\n context.sendBroadcast(intent);\r\n }", "public static void showToast(Context context, String message, int duration) {\n\n if (message.contains(\"任务\") && !getTopActivity(context).contains(\"HomeActivity\")) {\n return;\n }\n\n if (sIsAllowShow) {\n Toast toast = new Toast(context);\n View view = LayoutInflater.from(context).inflate(R.layout.toast_universal, null);\n TextView messageText = view.findViewById(R.id.toast_universal_message_text);\n messageText.setText(message);\n toast.setDuration(duration);\n toast.setView(view);\n toast.setGravity(Gravity.CENTER, 0, 0);\n toast.show();\n }\n }", "@Override\r\n public String notification(boolean status) {\r\n if (status == true) {\r\n return \"Sepatu Api Terpasang\";\r\n } else {\r\n return \"Sepatu Api Dilepas\";\r\n }\r\n }", "private void showNotification() {\n\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.food_icon2)\n .setContentTitle(\"Let's eat\")\n .setContentText(\"Good morning, It's time to take your Breakfast :)\");\n\n int mNotificationId = 001;\n\n\n Intent contentIntent = new Intent(this, RecommendationActivity.class);\n contentIntent.putExtra(\"dePagi\", \"pagigan\");\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n stackBuilder.addParentStack(RecommendationActivity.class);\n stackBuilder.addNextIntent(contentIntent);\n\n PendingIntent resultPendingIntent =\n stackBuilder.getPendingIntent(\n 0,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n mBuilder.setContentIntent(resultPendingIntent);\n\n mBuilder.setVibrate(new long[] { 1000, 1000, 1000, 1000, 1000 });\n mBuilder.setLights(Color.YELLOW, 3000, 3000);\n\n mBuilder.setAutoCancel(true);\n\n mNM =(NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n mNM.notify(mNotificationId, mBuilder.build());\n\n stopSelf();\n\n }", "@Override\r\n\t\tpublic void showMessage(String message) {\n\t\t\t\r\n\t\t}", "private void showNotificationMessage(Context context, String title, String message, long timeStamp, Intent intent) {\n notificationUtils = new NotificationUtils(context);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n notificationUtils.showNotificationMessage(title, message, timeStamp, intent);\n }", "private void showNotificationCourse(Bundle data) {\n\n/* try {\n int unreadNotificationCount = Integer.valueOf(data.getString(\"total_unread_notification\"));\n NotificationCountEventBus.Event event = new NotificationCountEventBus.Event(unreadNotificationCount);\n NotificationCountEventBus.getInstance().post(event);\n } catch (Exception ignored) {\n\n }*/\n\n // check the type_push from data and navigate to activity\n Intent intent = navigateNotification(data);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this, notificationId, intent,\n PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT);\n\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(getNotificationIcon())\n .setContentTitle(data.getString(\"title\"))\n .setContentText(data.getString(\"body\"))\n .setAutoCancel(true)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(notificationId++, notificationBuilder.build());\n }", "private void showNotification(int count) {\n\t\tLog.i(\"zlt\", \"showNotification\");\n\t\tNotificationManager manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\t\tNotificationCompat.Builder builder = new NotificationCompat.Builder(\n\t\t\t\tgetApplicationContext());\n\n\t\tbuilder.setContentTitle(\"通知\")\n\t\t\t\t.setContentText(String.format(\"你有%1$d条新的应急任务\", count))\n\t\t\t\t.setContentIntent(\n\t\t\t\t\t\tgetDefalutIntent(Notification.FLAG_AUTO_CANCEL))\n\t\t\t\t// .setNumber(number)//显示数量\n\t\t\t\t.setTicker(\"新的消息\")// 通知首次出现在通知栏,带上升动画效果的\n\t\t\t\t.setWhen(System.currentTimeMillis())// 通知产生的时间,会在通知信息里显示\n\t\t\t\t.setPriority(Notification.PRIORITY_DEFAULT)// 设置该通知优先级\n\t\t\t\t// .setAutoCancel(true)//设置这个标志当用户单击面板就可以让通知将自动取消\n\t\t\t\t.setOngoing(false)// ture,设置他为一个正在进行的通知。他们通常是用来表示一个后台任务,用户积极参与(如播放音乐)或以某种方式正在等待,因此占用设备(如一个文件下载,同步操作,主动网络连接)\n\t\t\t\t.setDefaults(Notification.DEFAULT_VIBRATE)//\n\t\t\t\t// 向通知添加声音、闪灯和振动效果的最简单、最一致的方式是使用当前的用户默认设置,使用defaults属性,可以组合:\n\t\t\t\t// Notification.DEFAULT_ALL Notification.DEFAULT_SOUND 添加声音 //\n\t\t\t\t// requires VIBRATE permission\n\t\t\t\t.setSmallIcon(R.drawable.app_icon).setAutoCancel(true);\n\t\t// 点击的意图ACTION是跳转到Intent\n\n\t\tIntent resultIntent = new Intent(getApplicationContext(),\n\t\t\t\tActivityInspection.class);\n\t\tresultIntent.putExtra(\"taskType\", 2);\n\t\tresultIntent.putExtra(\"fromService\", true);\n\t\tresultIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t// resultIntent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\tPendingIntent pendingIntent = PendingIntent.getActivity(\n\t\t\t\tgetApplicationContext(), 0, resultIntent,\n\t\t\t\tPendingIntent.FLAG_UPDATE_CURRENT);\n\t\tbuilder.setContentIntent(pendingIntent);\n\t\tmanager.notify(100, builder.build());\n\n\t}", "public void displayToastMessage(String message) {\n Toast toast = Toast.makeText(this, message, Toast.LENGTH_LONG);\n toast.setGravity(Gravity.BOTTOM, 0, 0);\n toast.show();\n }" ]
[ "0.76359785", "0.72690296", "0.725709", "0.7031429", "0.70011413", "0.69555193", "0.6948937", "0.6924694", "0.6908786", "0.68690807", "0.6865995", "0.6856011", "0.67886114", "0.6782964", "0.6777991", "0.67460555", "0.6723747", "0.6585565", "0.65836906", "0.6574985", "0.65448934", "0.65307975", "0.65246916", "0.6519057", "0.649625", "0.64519376", "0.6450305", "0.6449472", "0.64441276", "0.64315164", "0.6418251", "0.6406989", "0.63815963", "0.63781226", "0.635176", "0.63434374", "0.6336791", "0.6328887", "0.6308387", "0.6307976", "0.6279054", "0.62699133", "0.6262568", "0.62575716", "0.6247333", "0.6215802", "0.6209144", "0.6197482", "0.6179369", "0.6168089", "0.61674875", "0.61667955", "0.6111939", "0.61027884", "0.6085089", "0.6075269", "0.6068985", "0.6068301", "0.605299", "0.6048702", "0.60249245", "0.60245067", "0.6023089", "0.60208124", "0.60198784", "0.6016648", "0.60074735", "0.59889555", "0.59853494", "0.59843403", "0.5968388", "0.59563965", "0.59518653", "0.59500855", "0.5945745", "0.5920238", "0.59184813", "0.59184813", "0.5912572", "0.5902462", "0.58903563", "0.58840513", "0.5879592", "0.5872683", "0.58687425", "0.5866925", "0.58614427", "0.58590484", "0.5854885", "0.5848372", "0.58352274", "0.5832836", "0.58325446", "0.58206475", "0.58184797", "0.5811785", "0.58113265", "0.5809409" ]
0.5836464
91
Showing notification with text and image
private void showNotificationMessageWithBigImage(Context context, String title, String message, String timeStamp, Intent intent, String imageUrl) { notificationUtils = new NotificationUtils(context); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); notificationUtils.showNotificationMessage(title, message, timeStamp, intent, imageUrl); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showNotification() {\r\n\t\t// In this sample, we'll use the same text for the ticker and the\r\n\t\t// expanded notification\r\n\t\tCharSequence text = getText(R.string.local_service_started);\r\n\r\n\t\t// Set the icon, scrolling text and timestamp\r\n\t\tNotification notification = new Notification(R.drawable.compass25,\r\n\t\t\t\ttext, System.currentTimeMillis());\r\n\t\tnotification.sound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\r\n\t\t// The PendingIntent to launch our activity if the user selects this\r\n\t\t// notification\r\n\t\tIntent intent = new Intent(this, TaskOverViewActivity.class);\r\n\t\t//intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\r\n\t\tPendingIntent contentIntent = PendingIntent.getActivity(this, 0,\r\n\t\t\t\tintent, PendingIntent.FLAG_UPDATE_CURRENT);\r\n\r\n\t\t// Set the info for the views that show in the notification panel.\r\n\t\tnotification.setLatestEventInfo(this, getText(R.string.service_name),\r\n\t\t\t\ttext, contentIntent);\r\n\r\n\t\t// Send the notification.\r\n\t\t// We use a layout id because it is a unique number. We use it later to\r\n\t\t// cancel.\r\n\t\tmNM.notify(R.string.local_service_started, notification);\r\n\t}", "private void showBigPictureNotification() {\n Notification notification = new NotificationCompat.Builder(getActivity())\n .setContentTitle(getString(R.string.nf_big_pic_title))\n //This will show on devices that don't support the big picture and if further notifications\n //come in after the big picture notification.\n .setContentText(getString(R.string.nf_big_pic_message))\n .setTicker(getString(R.string.nf_big_pic_message))\n .setSmallIcon(R.drawable.ic_notify)\n .setLargeIcon(BitmapFactory.decodeResource(getActivity().getResources(), R.drawable.ic_launcher))\n .setContentIntent(pendingIntentForNotification())\n //This will show on devices that do support big pictures.\n .setStyle(new NotificationCompat.BigPictureStyle()\n .bigPicture(BitmapFactory.decodeResource(getActivity().getResources(), R.drawable.chaplin))\n .setBigContentTitle(getString(R.string.nf_big_pic_content_title)))\n .build();\n\n //Same deal as the simple notification.\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n NotificationManager notificationManager = (NotificationManager)\n getActivity().getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(TAG_BIG_PICTURE_NOTIFICATION, notification);\n }", "public void showNotification(String title,String message)\n {\n\n Bitmap icon = BitmapFactory.decodeResource(this.getResources(),\n R.drawable.girl);\n// NotificationCompat.Builder builder = new NotificationCompat.Builder(this,\"Notify\")\n// .setContentTitle(title).setSmallIcon(R.drawable.common_google_signin_btn_icon_dark)\n\n// // .addAction(R.drawable.user,\"Pay\",payInent)\n// //.addAction(R.drawable.user,\"Pay Later\",payLaterInent)\n// .setDefaults(Notification.DEFAULT_ALL)\n// .setPriority(NotificationManager.IMPORTANCE_HIGH)\n// .setAutoCancel(true).setContentText(message).setLargeIcon(icon)\n// .setStyle(new NotificationCompat.BigPictureStyle()\n// .bigPicture(icon).bigLargeIcon(null));\n\n// NotificationCompat.Builder builder;\n// builder = new NotificationCompat.Builder(this, \"Notify\");\n// builder.setContentTitle(title) // required\n// .setSmallIcon(R.drawable.user) // required\n// .setContentText(message) // required\n// .setStyle(new NotificationCompat.BigPictureStyle()\n// .bigPicture(icon).setSummaryText(\"\"))\n// .setAutoCancel(true)\n// .setVibrate(new long[]{100, 200, 300, 400, 500, 400, 300, 200, 400})\n// .setSound(Settings.System.DEFAULT_NOTIFICATION_URI)\n// .setPriority(NotificationCompat.PRIORITY_HIGH)\n// ;\n\n Notification notification = null;\n if( message.charAt(0) == 'C' )\n {\n// Intent intent = new Intent(this, PayLater.class);\n Intent intent = new Intent(this, PayLaterTest.class);\n PendingIntent payInent = PendingIntent.getActivity(MyMessagingService.this, 0, intent, 0);\n notification = new NotificationCompat.Builder(this, \"Notify\")\n .setSmallIcon(android.R.drawable.ic_dialog_info)\n .setContentTitle(title)\n .setContentText(message)\n .setDefaults(Notification.DEFAULT_ALL)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT)\n .setVibrate(new long[0])// heads-up\n .addAction(R.drawable.user,\"Pay\",payInent)\n .setAutoCancel(true)\n .build();\n }\n else if( message.charAt(0) == 'G' )\n {\n //start activity go in\n Intent intent = new Intent(this, PayActivity.class);\n PendingIntent payInent = PendingIntent.getActivity(MyMessagingService.this, 0, intent, 0);\n notification = new NotificationCompat.Builder(this, \"Notify\")\n .setSmallIcon(android.R.drawable.ic_dialog_info)\n .setContentTitle(title)\n .setContentText(message)\n .setDefaults(Notification.DEFAULT_ALL)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT)\n .setVibrate(new long[0])// heads-up\n .addAction(R.drawable.user,\"Verify\",payInent)\n .setAutoCancel(true)\n .build();\n }\n else if( message.charAt(0) == 'I' )\n {\n //start activity invalid slot\n// Intent intent = new Intent(this, PayActivity.class);\n\n// PendingIntent payInent = PendingIntent.getActivity(MyMessagingService.this, 0, intent, 0);\n notification = new NotificationCompat.Builder(this, \"Notify\")\n .setSmallIcon(android.R.drawable.ic_dialog_info)\n .setContentTitle(title)\n .setContentText(message)\n .setDefaults(Notification.DEFAULT_ALL)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT)\n .setAutoCancel(true)\n .setVibrate(new long[0])// heads-up\n // .addAction(R.drawable.user,\"Verify\",payInent)\n .build();\n }\n\n m = (NotificationManager) getSystemService(getApplicationContext().NOTIFICATION_SERVICE);;\n m.notify(999,notification);\n // m.cancel(999);\n }", "private void showNotification(final CharSequence text) {\n if (DEBUG) {\n Log.v(TAG, \"showNotification:\" + text);\n }\n // Set the info for the views that show in the notification panel.\n final Notification notification = new Notification.Builder(this)\n .setSmallIcon(R.mipmap.ic_launcher) // the status icon\n .setTicker(text) // the status text\n .setWhen(System.currentTimeMillis()) // the time stamp\n .setContentTitle(getText(R.string.app_name)) // the label of the entry\n .setContentText(text) // the contents of the entry\n .setContentIntent(createPendingIntent()) // The intent to send when the entry is clicked\n .build();\n\n startForeground(NOTIFICATION, notification);\n // Send the notification.\n mNotificationManager.notify(NOTIFICATION, notification);\n }", "public void showNotificationMessage(final String title, final String message, final String timeStamp, Intent intent, String imageUrl) {\n if (TextUtils.isEmpty(message))\n return;\n \n \n // notification icon\n final int icon = R.mipmap.ic_launcher_round;\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\n final PendingIntent resultPendingIntent =\n PendingIntent.getActivity(\n mContext,\n 0,\n intent,\n PendingIntent.FLAG_CANCEL_CURRENT\n );\n \n final NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(\n mContext);\n final Uri alarmSound= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n showSmallNotification(mBuilder, icon, title, message, timeStamp, resultPendingIntent, alarmSound);\n playNotificationSound();\n }", "private void showNotification() {\n CharSequence text = \"Running\";\n\n // The PendingIntent to launch our activity if the user selects this notification\n PendingIntent contentIntent = PendingIntent.getActivity(this, 0,\n new Intent(this, MainActivity.class), 0);\n\n // Set the info for the views that show in the notification panel.\n Notification notification = new Notification.Builder(this)\n //.setSmallIcon(R.drawable.stat_sample) // the status icon\n .setTicker(text) // the status text\n //.setWhen(System.currentTimeMillis()) // the time stamp\n .setContentTitle(\"PodcastFTPService\") // the label of the entry\n .setContentText(text) // the contents of the entry\n .setContentIntent(contentIntent) // The intent to send when the entry is clicked\n .build();\n\n // Send the notification.\n mNM.notify(0, notification);\n }", "private void showNotification() {\n // In this sample, we'll use the same text for the ticker and the expanded notification\n CharSequence text = getText(R.string.local_service_started);\n\n // Set the icon, scrolling text and timestamp\n Notification notification = new Notification(R.drawable.icon, text,\n System.currentTimeMillis());\n\n // The PendingIntent to launch our activity if the user selects this notification\n PendingIntent contentIntent = PendingIntent.getActivity(this, 0,\n new Intent(this, ServiceActivity.class), 0);\n\n // Set the info for the views that show in the notification panel.\n notification.setLatestEventInfo(this, getText(R.string.local_service_label),\n text, contentIntent);\n\n // Send the notification.\n mNM.notify(NOTIFICATION, notification);\n }", "private void sendNotification(String ttl, String messageBody) {\n Intent intent = new Intent(this, ActivitySplash.class);\n\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,\n PendingIntent.FLAG_ONE_SHOT);\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this);\n if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n notificationBuilder.setSmallIcon(R.mipmap.splash_screen_logo);\n notificationBuilder.setColor(getResources().getColor(R.color.white));\n } else {\n notificationBuilder.setSmallIcon(R.mipmap.logo);\n }\n notificationBuilder.setContentTitle(ttl)\n .setContentText(messageBody)\n // .setStyle(new NotificationCompat.BigPictureStyle().bigPicture(image))/*Notification with Image*/\n .setAutoCancel(true)\n .setStyle(new NotificationCompat.BigTextStyle().bigText(messageBody))\n .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.mipmap.logo))\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());\n }", "private void ShowNotification()\n {\n Notification n = new Notification.Builder(this)\n .setContentTitle(\"Message from Himanshu\")\n .setContentText(\"Thank you Sir. Enjoyed Your Class!\")\n .setSmallIcon(R.drawable.cloud)\n //.setContentIntent(pIntent)\n .setAutoCancel(true)\n //.addAction(R.drawable.icon, \"Call\", pIntent)\n //.addAction(R.drawable.icon, \"More\", pIntent)\n //.addAction(R.drawable.icon, \"And more\", pIntent)\n .getNotification();\n\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n try {\n notificationManager.notify(0, n);\n }catch (Exception ex) {\n Log.d(\"MyApp\", \"Exception Occured!\");\n }\n }", "private void showNotificationMessageWithBigImage (Context context, String title, String message, String timeStamp, Intent intent, String imageUrl) {\n notificationUtils = new com.actiknow.plothr.gcm.NotificationUtils(context);\n intent.setFlags (Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n notificationUtils.showNotificationMessage (title, message, timeStamp, intent, imageUrl);\n }", "private void showArrivalNotification(int image, String location) {\n NotificationFragment notification = new NotificationFragment(getActivity());\n notification.setNotifierImage(image);\n notification.setNotifierText(\"You are at \" + location +\n \"\\n\\n Look for the marker and switch to AR view in the menu to scan barcodes!\");\n notification.show(getActivity().getFragmentManager(), \"pop up\");\n }", "private void showNotification() {\r\n\t\t// In this sample, we'll use the same text for the ticker and the\r\n\t\t// expanded notification\r\n\t\tCharSequence text = getText(R.string.local_service_started);\r\n\r\n\t\t// Set the icon, scrolling text and timestamp\r\n\t\tNotification notification = new Notification(R.drawable.service_icon,\r\n\t\t\t\ttext, System.currentTimeMillis());\r\n\r\n\t\t// The PendingIntent to launch our activity if the user selects this\r\n\t\t// notification\r\n\t\tPendingIntent contentIntent = PendingIntent.getActivity(this, 0,\r\n\t\t\t\tnew Intent(this, stopServiceJ.class), 0);\r\n\r\n\t\t// Set the info for the views that show in the notification panel.\r\n\t\tnotification.setLatestEventInfo(this, getText(R.string.service_name),\r\n\t\t\t\ttext, contentIntent);\r\n\r\n\t\t// Send the notification.\r\n\t\t// We use a layout id because it is a unique number. We use it later to\r\n\t\t// cancel.\r\n\t\tmNM.notify(R.string.local_service_started, notification);\r\n\t}", "private void showNotification() {\n // In this sample, we'll use the same text for the ticker and the expanded notification\n CharSequence text = \"Siguiendo el trayecto\";\n\n // The PendingIntent to launch our activity if the user selects this notification\n PendingIntent contentIntent = PendingIntent.getActivity(this, 0,\n new Intent(this, InformacionServicio.class), 0);\n\n // Set the info for the views that show in the notification panel.\n Notification notification = new Notification.Builder(this)\n .setSmallIcon(R.drawable.estrella_full) // the status icon\n .setTicker(text) // the status text\n .setWhen(System.currentTimeMillis()) // the time stamp\n .setContentTitle(\"Conductor Serv\") // the label of the entry\n .setContentText(text) // the contents of the entry\n .setContentIntent(contentIntent) // The intent to send when the entry is clicked\n .build();\n\n // Send the notification.\n //mNM.notify(55, notification);\n //startForeground(56,notification);\n\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)\n startMyOwnForeground();\n else\n startForeground(1, notification);\n\n }", "@Override\n public NotificationCompat.Builder extend(NotificationCompat.Builder builder) {\n Bitmap roundBitmap = Util.getCircleBitmap(loadedImage);\n return builder.setContentTitle(contact.getName())\n //.setColor(new BigInteger(\"FF333333\", 16).intValue())\n .setLargeIcon(roundBitmap);\n /*.setSound(Uri.parse(\"content://media/internal/audio/media/32\"))\n .setColor(new BigInteger(\"FF00FF00\", 16).intValue())\n .setStyle(new NotificationCompat.BigTextStyle().bigText(\"[Modified Body(bigText)]\"))\n .setContentText(\"[Modified Body(ContentText)]\");*/\n }", "private void showNotification(LBSBundle lbs,int status){\n\t\tScenario scenario = (Scenario) EntityPool.instance(\r\n\t\t\t\t).forId(lbs.getParentId(), lbs.getParentTag());\r\n\t\t\r\n\t\t\r\n\t\t// Set the icon, scrolling text and timestamp\r\n\t\tNotification notification = new Notification(R.drawable.compass25,\r\n\t\t\t\tscenario.getName(), System.currentTimeMillis());\r\n\t\tnotification.flags |= Notification.FLAG_AUTO_CANCEL;\r\n\t\tnotification.sound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\r\n\t\t// The PendingIntent to launch our activity if the user selects this\r\n\t\t// notification\r\n\t\tIntent intent = new Intent(this, TaskOverViewActivity.class);\r\n\t\tintent.setAction(TaskOverViewActivity.TASK_OVERVIEWBY_SCENARIO);\r\n\t\tintent.putExtra(TaskOverViewActivity.IN_SCENAIRO_ID, scenario.getId());\r\n\t\t//intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\r\n\t\tPendingIntent contentIntent = PendingIntent.getActivity(this, 0,\r\n\t\t\t\tintent, PendingIntent.FLAG_UPDATE_CURRENT);\r\n\r\n\t\tCharSequence text = getText(status);\r\n\t\t// Set the info for the views that show in the notification panel.\r\n\t\tnotification.setLatestEventInfo(this, scenario.getName(),\r\n\t\t\t\ttext, contentIntent);\r\n\r\n\t\t// Send the notification.\r\n\t\t// We use a layout id because it is a unique number. We use it later to\r\n\t\t// cancel.\r\n\t\tmNM.notify(\tstatus, notification);\r\n\t}", "public void showNotification(String notificationText) {\n View parentLayout = findViewById(android.R.id.content);\n Snackbar mySnackbar = Snackbar.make(parentLayout, notificationText, Snackbar.LENGTH_LONG);\n mySnackbar.show();\n }", "public void updateNotification(){\n Bitmap androidImage=BitmapFactory.decodeResource(getResources(),R.drawable.mascot_1);\n NotificationCompat.Builder notifyBuilder=getNotificationBuilder();\n notifyBuilder.setStyle(new NotificationCompat.BigPictureStyle().bigPicture(androidImage).setBigContentTitle(\"Notificacion actualizada!\"));\n mNotifyManager.notify(NOTIFICATION_ID,notifyBuilder.build());\n setNotificationButtonState(false, false, true);\n\n }", "private void showNotification() {\n\t\t\t\tPendingIntent contentIntent = PendingIntent.getActivity(this, 0, \n\t\t\t\t\t\tnew Intent(this, MainActivity.class), 0);\n\t\t\t\t\n\t\t// Use NotificationCompat.Builder to build the notification, display using mNM\n\t\tNotificationCompat.Builder mNotifyBuilder= new NotificationCompat.Builder(this)\n\t\t\t.setContentTitle(getText(R.string.notificationTitle))\n\t\t\t.setContentText(getText(R.string.notificationText))\n\t\t\t.setSmallIcon(R.drawable.ic_launcher)\n\t\t\t.setContentIntent(contentIntent);\n\t\t\n\t\tmNM.notify(notifyID, mNotifyBuilder.build());\n\t}", "private void showNotification() {\n }", "private void showNotification() {\n\n }", "private void showNotificationMessageWithBigImage(Context context, String title, String message, long timeStamp, Intent intent, String imageUrl) {\n notificationUtils = new NotificationUtils(context);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n notificationUtils.showNotificationMessage(title, message, timeStamp, intent, imageUrl);\n }", "private void showEndOfTripNotification() {\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(\"End of trip\")\n .setContentText(\"Notification text has been sent to \" + myFriendObject.getName());\n int mNotificationId = 001;\n NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n manager.notify(mNotificationId, mBuilder.build());\n }", "public void showBigNotification(String title, String msg, String url, Intent intent) {\n PendingIntent resulPendingIntent = PendingIntent.getActivity(ctx, ID_BIG_NOTIFICATION, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n NotificationCompat.BigPictureStyle bigPictureStyle = new NotificationCompat.BigPictureStyle();\n bigPictureStyle.setBigContentTitle(title);\n bigPictureStyle.setSummaryText(Html.fromHtml(msg).toString());\n bigPictureStyle.bigPicture(getBitmapFromURL(url));\n NotificationCompat.Builder builder = new NotificationCompat.Builder(ctx);\n Notification notification;\n notification = builder.setSmallIcon(R.drawable.logo).setTicker(title).setWhen(0).setAutoCancel(true)\n .setContentIntent(resulPendingIntent).setStyle(bigPictureStyle).setLargeIcon(BitmapFactory.decodeResource(ctx.getResources(), R.drawable.logo)).setContentText(msg).build();\n\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n NotificationManager notificationManager = (NotificationManager) ctx.getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(ID_BIG_NOTIFICATION, notification);\n }", "private void showNotificationMessageWithBigImage(Context context, String title, String message, String timeStamp, Intent intent, String imageUrl) {\n notificationUtils = new NotificationUtils(context,channelId);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n notificationUtils.showNotificationMessage(title, message, timeStamp, intent, imageUrl);\n }", "private void mostrarNotificacion(String title, String body)\r\n {\r\n Intent intent = new Intent(this, MainActivity.class);\r\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_ONE_SHOT);\r\n\r\n Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\r\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\r\n .setSmallIcon(R.mipmap.ic_launcher)\r\n .setContentTitle(title)\r\n .setContentText(body)\r\n .setAutoCancel(true)\r\n .setSound(soundUri)\r\n .setContentIntent(pendingIntent);\r\n\r\n NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\r\n notificationManager.notify(0/*ID de l notificación*/, notificationBuilder.build());\r\n }", "private void showBigTextNotification() {\n Notification notification = new NotificationCompat.Builder(getActivity())\n .setContentTitle(getString(R.string.nf_big_text_title))\n //This will show on devices that don't support the big text and if further notifications\n //come in after the big text notification.\n .setContentText(getString(R.string.nf_big_text_truncated))\n .setTicker(getString(R.string.nf_big_text_truncated))\n .setSmallIcon(R.drawable.ic_notify)\n .setLargeIcon(BitmapFactory.decodeResource(getActivity().getResources(), R.drawable.ic_launcher))\n .setContentIntent(pendingIntentForNotification())\n //This will show on devices that do support big text.\n .setStyle(new NotificationCompat.BigTextStyle()\n .bigText(getString(R.string.nf_big_text_long)))\n .build();\n\n //Same deal as the simple notification.\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n NotificationManager notificationManager = (NotificationManager)\n getActivity().getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(TAG_BIG_TEXT_NOTIFICATION, notification);\n }", "private void showSimpleNotification() {\n Notification notification = new NotificationCompat.Builder(getActivity())\n //Title of the notification\n .setContentTitle(getString(R.string.nf_simple_title))\n //Content of the notification once opened\n .setContentText(getString(R.string.nf_simple_message))\n //This bit will show up in the notification area in devices that support that\n .setTicker(getString(R.string.nf_simple_ticker))\n //Icon that shows up in the notification area\n .setSmallIcon(R.drawable.ic_notify)\n //Icon that shows up in the drawer\n .setLargeIcon(BitmapFactory.decodeResource(getActivity().getResources(), R.drawable.ic_launcher))\n //Set the intent\n .setContentIntent(pendingIntentForNotification())\n //Build the notification with all the stuff you've just set.\n .build();\n\n //Add the auto-cancel flag to make it dismiss when clicked on\n //This is a bitmask value so you have to pipe-equals it.\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n\n //Grab the NotificationManager and post the notification\n NotificationManager notificationManager = (NotificationManager)\n getActivity().getSystemService(Context.NOTIFICATION_SERVICE);\n\n //Set a tag so that the same notification doesn't get reposted over and over again and\n //you can grab it again later if you need to.\n notificationManager.notify(TAG_SIMPLE_NOTIFICATION, notification);\n }", "private void sendNotification(String messageBody, String titleMessage) {\n Intent intent = new Intent(this, HomeMenu.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_ONE_SHOT);\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this);\n\n if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n notificationBuilder.setSmallIcon(R.mipmap.ic_launcher);\n }\n\n notificationBuilder.setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(titleMessage)\n .setContentText(messageBody)\n .setAutoCancel(true)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent)\n .setStyle(new NotificationCompat.BigTextStyle().bigText(messageBody)); //Making the text in big Picture Style\n\n\n NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(0, notificationBuilder.build());\n }", "public static void showNotification(Project project, MessageType type, String text) {\n StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);\n JBPopupFactory.getInstance()\n .createHtmlTextBalloonBuilder(text, type, null)\n .setFadeoutTime(7500)\n .createBalloon()\n .show(RelativePoint.getCenterOf(statusBar.getComponent()), Balloon.Position.atRight);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n private void showNotification(String title, String body)\n {\n Intent intent = new Intent(this, LoginActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 1, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n Notification notification = new NotificationCompat.Builder(this, CHANNEL_ID)\n .setSmallIcon(R.drawable.ic_notification)\n .setContentTitle(title)\n .setContentText(body)\n .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.mipmap.app_icon))\n .setPriority(NotificationCompat.PRIORITY_HIGH) // for lower than api 26\n .setContentIntent(pendingIntent)\n .setAutoCancel(true) // removes notification on click\n .build();\n\n NotificationManager notificationManager = getSystemService(NotificationManager.class);\n notificationManager.notify(new Random().nextInt(), notification);\n }", "private void showArrivalNotification(String body) {\n\n PendingIntent contentIntent = PendingIntent.getActivity(getBaseContext()\n , 0, new Intent(), PendingIntent.FLAG_ONE_SHOT);\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(getBaseContext());\n\n builder.setAutoCancel(true).setDefaults(android.app.Notification.DEFAULT_LIGHTS| android.app.Notification.DEFAULT_SOUND)\n .setWhen(System.currentTimeMillis()).setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(\"Arrival\").setContentText(body)\n .setContentIntent(contentIntent);\n NotificationManager manager = (NotificationManager)getBaseContext().getSystemService(Context.NOTIFICATION_SERVICE);\n manager.notify(1, builder.build());\n }", "private RemoteViews getCustomDesign(String title, String message) {\n Log.d(\"Icon1\", \"icon:\");\n RemoteViews remoteViews = new RemoteViews(getApplicationContext().getPackageName(), R.layout.notification);\n remoteViews.setTextViewText(R.id.title, title);\n remoteViews.setTextViewText(R.id.message, message);\n remoteViews.setImageViewResource(R.id.icon, getNotificationIcon());\n return remoteViews;\n }", "private void showNotification(Intent intent) {\r\n\t\t// This is the 'title' of the notification\r\n\r\n\t\tString title = intent.getStringExtra(\"TITLE\");\r\n\r\n\t\t// This is the icon to use on the notification\r\n\t\tint icon = R.drawable.ic_popup_reminder;\r\n\t\t// This is the scrolling text of the notification\r\n\t\tString date = intent.getStringExtra(\"DATE\");\r\n\t\tString time = intent.getStringExtra(\"TIME\");\r\n\t\tLog.d(\"NILU\", \"SHOW NOTIFICATION::: \" + title + \" \" + date + \" \"\r\n\t\t\t\t+ time);\r\n\r\n\t\tCharSequence text = \"Due on \" + date + \" at \" + time;\r\n\t\t// What time to show on the notification\r\n\t\tlong when = System.currentTimeMillis();\r\n\r\n\t\tNotificationCompat.Builder mBuilder = new NotificationCompat.Builder(\r\n\t\t\t\tthis).setTicker(title + \" Due Soon\")\r\n\r\n\t\t.setContentTitle(title).setSmallIcon(icon).setWhen(when)\r\n\t\t\t\t.setContentText(text);\r\n\t\t// Creates an explicit intent for an Activity in your app\r\n\t\tIntent resultIntent = new Intent(this, NotificationDisplay.class);\r\n\r\n\t\t// The stack builder object will contain an artificial back stack for\r\n\t\t// the\r\n\t\t// started Activity.\r\n\t\t// This ensures that navigating backward from the Activity leads out of\r\n\t\t// your application to the Home screen.\r\n\t\tTaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\r\n\t\t// Adds the back stack for the Intent (but not the Intent itself)\r\n\t\tstackBuilder.addParentStack(NotificationDisplay.class);\r\n\t\t// Adds the Intent that starts the Activity to the top of the stack\r\n\r\n\t\tstackBuilder.addNextIntent(resultIntent);\r\n\t\tPendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0,\r\n\t\t\t\tPendingIntent.FLAG_UPDATE_CURRENT);\r\n\t\tmBuilder.setContentIntent(resultPendingIntent);\r\n\t\tNotification notification = mBuilder.build();\r\n\t\tnotification.flags |= Notification.FLAG_AUTO_CANCEL;\r\n\r\n\t\tmNM.notify(NOTIFICATION, notification);\r\n\r\n\t\t// Stop the service when we are finished\r\n\t\tstopSelf();\r\n\t}", "public void showSmallNotification(String title, String msg, Intent intent) {\n PendingIntent pendingIntent = PendingIntent.getActivity(ctx, ID_SMALL_NOTIFICATION, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n NotificationCompat.Builder builder = new NotificationCompat.Builder(ctx);\n Notification notification = builder.setSmallIcon(R.drawable.logo).setWhen(0).setAutoCancel(true).setContentTitle(title)\n .setContentIntent(pendingIntent).setLargeIcon(BitmapFactory.decodeResource(ctx.getResources(), R.drawable.logo))\n .setContentText(msg).build();\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n\n NotificationManager notificationManager = (NotificationManager) ctx.getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(ID_SMALL_NOTIFICATION, notification);\n }", "private void showNotification() {\n // In this sample, we'll use the same text for the ticker and the expanded notification\n // Set the icon, scrolling text and timestamp\n Notification notification = new Notification(R.drawable.icon, \"Longitude is active\", System.currentTimeMillis());\n\n // The PendingIntent to launch our activity if the user selects this notification\n PendingIntent contentIntent = PendingIntent.getActivity(this, 0,\n new Intent(this, LongitudeActivity.class), 0);\n\n // Set the info for the views that show in the notification panel.\n notification.setLatestEventInfo(this, \"Longitude\", \"Tracking your location\", contentIntent);\n\n // Send the notification.\n notificationManager.notify(NOTIFICATION, notification);\n }", "@SuppressWarnings(\"deprecation\")\n\tprivate void showNotification() {\n\t\t// What happens when the notification item is clicked\n\t\tIntent contentIntent = new Intent(this, MainActivity.class);\n\n\t\tPendingIntent pending = PendingIntent.getActivity(\n\t\t\t\tgetApplicationContext(), 0, contentIntent,\n\t\t\t\tandroid.content.Intent.FLAG_ACTIVITY_NEW_TASK);\n\n\t\tNotification nfc = new Notification(R.drawable.ic_launcher, null,\n\t\t\t\tSystem.currentTimeMillis());\n\t\tnfc.flags |= Notification.FLAG_ONGOING_EVENT;\n\n\t\tString contentText = getString(R.string.service_label);\n\n\t\tnfc.setLatestEventInfo(getApplicationContext(), contentText,\n\t\t\t\tcontentText, pending);\n\n\t\tmNM.notify(NOTIFICATION, nfc);\n\t\tSession.setNotificationVisible(true);\n\t}", "public void buildNotificationSingle(){\n if(arraylisted.size() ==1){\n Product contact = arraylisted.get(0);\n\n String userDept = arraylisted.get(0).getDept();\n String userName = arraylisted.get(0).getName();\n String userLevel = arraylisted.get(0).getLevel();\n String userID = arraylisted.get(0).getuserID();\n String str = notifyliste.get(0).getEmail();\n if(str.length() >=200){\n int k = str.length() / 2;\n str = str.substring(0,k) + \" ...\";\n }\n String prep = userName + System.getProperty(\"line.separator\") + userLevel + \" Level - \" + userDept;\n byte[] userPics = arraylisted.get(0).getBLOB();\n\n //build the actviity intents\n Intent notificationIntent = new Intent(getApplicationContext(),viewNamsn.class);\n\n notificationIntent.putExtra(\"userName\", userName);\n notificationIntent.putExtra(\"userLevel\", userLevel);\n notificationIntent.putExtra(\"userDept\", userDept);\n notificationIntent.putExtra(\"userID\", userID);\n notificationIntent.putExtra(\"userPics\", userPics);\n\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY | Intent.FLAG_ACTIVITY_NEW_TASK);\n PendingIntent pend = PendingIntent.getActivity(getApplicationContext(),0,notificationIntent,PendingIntent.FLAG_UPDATE_CURRENT);\n\n //mBuilder = buildNotification(userPics,prep);\n //design the new custom view\n RemoteViews notificationView = new RemoteViews(\n getApplicationContext().getPackageName(),\n R.layout.activity_custom_notification\n );\n Bitmap bitmap = BitmapFactory.decodeByteArray(userPics,0,userPics.length);\n // notificationView.setImageViewResource(R.id.imagenotileft,R.mipmap.ic_launcher);\n notificationView.setImageViewBitmap(R.id.imagenotileft,bitmap);\n // Locate and set the Text into customnotificationtext.xml TextViews\n notificationView.setTextViewText(R.id.title, (getString(R.string.app_name)));\n notificationView.setTextViewText(R.id.text, prep);\n // notificationView.setTextViewText(R.id.qoute, str);\n\n //go and build the notification\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(getApplicationContext());\n mBuilder.setContentIntent(pend);\n mBuilder.setContentTitle(getString(R.string.app_name));\n mBuilder.setContentText(userName + \" Recently Joined ATBU 37 NAMSSN ELITE E-YEAR BOOK !!!\");\n mBuilder.setTicker(userName + \" Recently Joined ATBU 37 NAMSSN ELITE E-YEAR BOOK !!!\");\n mBuilder.setAutoCancel(true);\n mBuilder.setContent(notificationView);\n mBuilder.setSmallIcon(R.mipmap.ic_app);\n mBuilder.setPriority(2);\n Uri alarmsound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n mBuilder.setSound(alarmsound);\n mBuilder.setLights(Color.RED, 3000, 3000);\n mBuilder.setVibrate(new long[]{1000, 1000, 1000, 1000, 1000 });\n //display the notification\n\n NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n notificationManager.notify(0123,mBuilder.build());\n }\n // arraylisted.clear();\n }", "public void createNotification(View view) {\n Intent intent = new Intent(this, Status1.class);\r\n PendingIntent pIntent = PendingIntent.getActivity(this, 0, intent, 0);\r\n\r\n // Build notification\r\n // Actions are just fake\r\n Notification noti = new Notification.Builder(this)\r\n .setContentTitle(\"RKC App \")\r\n .setContentText(\"Click To Enter \").setSmallIcon(R.drawable.arc)\r\n .setContentIntent(pIntent)\r\n .addAction(R.drawable.ironman, \"Back\", pIntent)\r\n .addAction(R.drawable.gun, \"More\", pIntent)\r\n .build();\r\n NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\r\n // hide the notification after its selected\r\n noti.flags |= Notification.FLAG_AUTO_CANCEL;\r\n\r\n notificationManager.notify(0, noti);\r\n\r\n }", "@Override\n\tpublic void sendNotify(String summary, String text, File imageFile) throws IOException {\n\t\ttry {\n\t\t\tConstructor<?> constructor = notificationClass.getConstructor(String.class, String.class, String.class);\n\t\t\tString imageFilePath = imageFile == null ? null : imageFile.getCanonicalPath();\n\t\t\tObject notification = constructor.newInstance(summary, text, imageFilePath);\n\n\t\t\tnotificationClass.getMethod(\"show\").invoke(notification);\n\t\t} catch (InstantiationException | IllegalAccessException | NoSuchMethodException e) {\n\t\t\tlogger.error(\"#sendNotify\", e);\n\t\t} catch (InvocationTargetException e) {\n\t\t\tlogger.error(\"#sendNotify\", e.getCause());\n\t\t}\n\t}", "public static void showNewNotification(Context context, Intent intent, String title, String msg, Bitmap bitmap) {\n\n Uri notificationSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n Intent notificationIntent;\n\n if (intent != null) {\n notificationIntent = intent;\n }\n else {\n notificationIntent = new Intent(context.getApplicationContext(), WalletHomeActivity.class);\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n }\n\n PendingIntent pendingIntent = PendingIntent.getActivity((context), 0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT| PendingIntent.FLAG_ONE_SHOT);\n\n\n NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);\n\n\n Notification.Builder builder = new Notification.Builder(context);\n if (bitmap != null)\n builder.setStyle(new Notification.BigPictureStyle().bigPicture(bitmap));\n\n\n // Create Notification\n Notification notification = builder\n .setContentTitle(title)\n .setContentText(msg)\n .setTicker(context.getString(R.string.app_name))\n .setSmallIcon(R.drawable.logo_vector)\n .setSound(notificationSound)\n .setLights(Color.RED, 3000, 3000)\n .setVibrate(new long[] { 1000, 1000 })\n .setWhen(System.currentTimeMillis())\n .setDefaults(Notification.DEFAULT_SOUND)\n .setAutoCancel(true)\n .setContentIntent(pendingIntent)\n .build();\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)\n {\n String channelId = \"121\";\n NotificationChannel channel = new NotificationChannel(\n channelId,\n \"Channel eMaisha Pay\",\n NotificationManager.IMPORTANCE_HIGH);\n notificationManager.createNotificationChannel(channel);\n builder.setChannelId(channelId);\n }\n\n notificationManager.notify(NOTIFICATION_REQUEST_CODE, notification);\n\n }", "public void displayNotificationMessage(String notificationMessage) {\n userMessage.setTextFill(Color.BLACK);\n userMessage.setText(notificationMessage);\n }", "private void showBigPictureNotification() {\n Bitmap bmp = BitmapFactory.decodeResource(this.getResources(),R.drawable.food);\n NotificationCompat.BigPictureStyle style = new NotificationCompat.BigPictureStyle();\n style.setBigContentTitle(\"Big pictures regular notification\");\n style.bigPicture(bmp);\n\n\n\n //Build the content of the notification\n NotificationCompat.Builder builder = new NotificationCompat.Builder(ActivityA.this);\n builder.setContentTitle(\"Big Picture Regular Notification\");\n builder.setContentText(contentText);\n builder.setSmallIcon(R.drawable.ic_launcher_background);\n builder.setTicker(\"Hey, This is a ticker!!!!!!\");\n builder.setAutoCancel(true);\n builder.setStyle(style);\n\n\n //Provide explicit intents for notification\n Intent i = new Intent(ActivityA.this,ActivityB.class);\n //Add a back stack using task using stack builder and set the intent to pending intent\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n stackBuilder.addParentStack(ActivityB.class);\n stackBuilder.addNextIntent(i);\n PendingIntent pi_main =stackBuilder.getPendingIntent(0,PendingIntent.FLAG_UPDATE_CURRENT);\n\n //Provide explicit intents Add a back stack using task using stack builder and set the intent to pending intent for settings\n Intent j = new Intent(ActivityA.this,Settings.class);\n TaskStackBuilder stackBuilder_settings = TaskStackBuilder.create(this);\n stackBuilder_settings.addParentStack(Settings.class);\n stackBuilder_settings.addNextIntent(j);\n PendingIntent pi_settings =stackBuilder_settings.getPendingIntent(0,PendingIntent.FLAG_UPDATE_CURRENT);\n\n\n //Provide explicit intents Add a back stack using task using stack builder and set the intent to pending intent for help\n Intent k = new Intent(ActivityA.this,Help.class);\n TaskStackBuilder stackBuilder_help = TaskStackBuilder.create(this);\n stackBuilder_help.addParentStack(Help.class);\n stackBuilder_help.addNextIntent(k);\n PendingIntent pi_help =stackBuilder_help.getPendingIntent(0,PendingIntent.FLAG_UPDATE_CURRENT);\n\n builder.setContentIntent(pi_main);\n builder.addAction(R.drawable.settings,\"Settings\",pi_settings);\n builder.addAction(R.drawable.help,\"Help\",pi_help);\n\n //Notifications through notification manager\n Notification notification = builder.build();\n NotificationManager manager = (NotificationManager) this.getSystemService(NOTIFICATION_SERVICE);\n manager.notify(9127,notification);\n }", "protected void toastshow1() {\n \n\t\tToast toast=Toast.makeText(this, \"image and text\", Toast.LENGTH_LONG);\n\t\t\n\t\tLinearLayout linearLayout=new LinearLayout(this);\n\t\tlinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tImageView imageView=new ImageView(this);\n\t\timageView.setImageResource(R.drawable.icon);\n\t\tButton button=new Button(this);\n\t\tbutton.setText(\"progress over\");\n\t\tView toastView=toast.getView();\n\t\tlinearLayout.addView(imageView);\n\t\tlinearLayout.addView(button);\n\t\tlinearLayout.addView(toastView);\n\t\t\n\t\ttoast.setView(linearLayout);\n\t\ttoast.show();\n\t\t\n\t}", "public void showNotification(String title,\n String message) {\n\n Intent intent\n = new Intent(this, HomeActivity.class);\n\n String channel_id = \"CCULife\";\n\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent\n = PendingIntent.getActivity(\n this, 0, intent,\n PendingIntent.FLAG_ONE_SHOT);\n\n // Create a Builder object using NotificationCompat\n // class. This will allow control over all the flags\n NotificationCompat.Builder builder\n = new NotificationCompat\n .Builder(getApplicationContext(),\n channel_id)\n .setSmallIcon(R.drawable.sicon)\n .setAutoCancel(true)\n .setVibrate(new long[]{1000, 1000, 1000,\n 1000, 1000})\n .setOnlyAlertOnce(true)\n .setContentIntent(pendingIntent);\n\n // A customized design for the notification can be\n // set only for Android versions 4.1 and above. Thus\n // condition for the same is checked here.\n if (Build.VERSION.SDK_INT\n >= Build.VERSION_CODES.JELLY_BEAN) {\n builder = builder.setContent(\n getCustomDesign(title, message));\n } // If Android Version is lower than Jelly Beans,\n // customized layout cannot be used and thus the\n // layout is set as follows\n else {\n builder = builder.setContentTitle(title)\n .setContentText(message)\n .setSmallIcon(getNotificationIcon());\n }\n // Create an object of NotificationManager class to\n // notify the\n // user of events that happen in the background.\n NotificationManager notificationManager\n = (NotificationManager) getSystemService(\n Context.NOTIFICATION_SERVICE);\n // Check if the Android Version is greater than Oreo\n if (Build.VERSION.SDK_INT\n >= Build.VERSION_CODES.O) {\n NotificationChannel notificationChannel\n = new NotificationChannel(\n channel_id, \"CCULife\",\n NotificationManager.IMPORTANCE_HIGH);\n notificationManager.createNotificationChannel(\n notificationChannel);\n }\n\n notificationManager.notify(0, builder.build());\n }", "private Notification getActivityNotification(String title, String text){\n Intent main = getApplicationContext().getPackageManager().getLaunchIntentForPackage(getApplicationContext().getPackageName());\n main.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 1000, main, PendingIntent.FLAG_UPDATE_CURRENT);\n\n int icon = R.drawable.star_big_on;\n int normalIcon = getResources().getIdentifier(\"icon\", \"drawable\", getPackageName());\n int notificationIcon = getResources().getIdentifier(\"notificationicon\", \"drawable\", getPackageName());\n if(notificationIcon != 0) {\n Log.d(TAG, \"Found Custom Notification Icon!\");\n icon = notificationIcon;\n }\n else if(normalIcon != 0) {\n Log.d(TAG, \"Found normal Notification Icon!\");\n icon = normalIcon;\n }\n\n Notification.Builder builder = new Notification.Builder(this);\n builder.setContentTitle(title);\n builder.setContentText(text);\n builder.setSmallIcon(icon);\n builder.setContentIntent(pendingIntent);\n Notification notification;\n if (android.os.Build.VERSION.SDK_INT >= 16) {\n notification = buildForegroundNotification(builder);\n } else {\n notification = buildForegroundNotificationCompat(builder);\n }\n notification.flags |= Notification.FLAG_ONGOING_EVENT | Notification.FLAG_FOREGROUND_SERVICE | Notification.FLAG_NO_CLEAR;\n return notification;\n }", "private void showNotification() throws NullPointerException\n\t{\n\t\tint status;\n//\t\tstatus = mqttClient != null ? R.string.connected_to_server\n//\t\t\t\t: R.string.cannot_connect_to_server;\n//\t\tPendingIntent contentIntent = PendingIntent.getActivity( this, 0,\n//\t\t\t\tnew Intent( this, MainActivity.class ), 0 );\n//\t\tnotification = new Notification.Builder( this )\n//\t\t\t\t.setContentTitle( this.getString( R.string.service_label ) )\n//\t\t\t\t.setContentText( getResources().getString( status ) )\n//\t\t\t\t.setSmallIcon( Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP\n//\t\t\t\t\t\t? R.mipmap.pristine_zen_icon_silhouette : R.mipmap.pristine_zen_icon )\n//\t\t\t\t.setContentIntent( contentIntent )\n//\t\t\t\t.setAutoCancel( false )\n//\t\t\t\t.setOngoing( true )\n//\t\t\t\t.build();\n\t\tmNotificationManager =\n\t\t\t\t(NotificationManager) getApplicationContext().getSystemService( NOTIFICATION_SERVICE );\n\t\t//notification.flags |= Notification.FLAG_ONGOING_EVENT;\n\t\t//notification.flags |= Notification.FLAG_AUTO_CANCEL;\n\n\t\tmNotificationManager.notify( 123321, notification );\n\t}", "private void drawNotification(Graphics g, String fileName, int x, int y) throws IOException{\n\t\t ImageIcon bg;\n\t\t bg = new ImageIcon(ImageIO.read(new File(relativePath + fileName)));\n\t\t bg.paintIcon(this, g, x, y);\n\t }", "public void sendNotification(String notifTitle, String notifText) {\n\n }", "public void showNotification(String msg) {\n Notification.show(msg);\n }", "private static void generateNotification(Context context, Bundle bundle) {\n\t\tint icon = R.drawable.icon;\n\t\tlong when = System.currentTimeMillis();\n\t\tString message = bundle.getString(\"message\");\n\t\tNotificationManager notificationManager = (NotificationManager) context\n\t\t\t\t.getSystemService(Context.NOTIFICATION_SERVICE);\n\t\tNotification notification = new Notification(icon, message, when);\n\t\tString title = context.getString(R.string.app_name);\n\t\tIntent notificationIntent = new Intent(context, NetasDemoActivity.class);\n\n\t\tnotificationIntent.putExtras(bundle);\n\n\t\t// set intent so it does not start a new activity\n\t\tnotificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP\n\t\t\t\t| Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tPendingIntent intent = PendingIntent.getActivity(context, 0,\n\t\t\t\tnotificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\t\tnotification.defaults |= Notification.DEFAULT_SOUND\n\t\t\t\t| notification.DEFAULT_LIGHTS | notification.DEFAULT_VIBRATE;\n\t\t// long[] vibrate = {0,100,200,300};\n\t\t// notification.vibrate = vibrate;\n\t\tnotification.setLatestEventInfo(context, title, message, intent);\n\t\tnotification.flags |= Notification.FLAG_AUTO_CANCEL\n\t\t\t\t| Notification.FLAG_SHOW_LIGHTS;\n\t\tnotification.ledOnMS = 1000; // light on in milliseconds\n\t\tnotification.ledOffMS = 4000; // light off in milliseconds\n\t\tnotificationManager.notify(0, notification);\n\t}", "public void createNotification(Context context, String msg, String msgText, String msgAlert, int notifID) {\n\n NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n\n Intent repeating_intent = new Intent(context, MainMenu.class);\n repeating_intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(context, notifID, repeating_intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(context)\n .setContentIntent(pendingIntent)\n .setSmallIcon(R.drawable.ic_fridge_empty)\n .setContentTitle(msg)\n .setContentText(msgText)\n .setTicker(msgAlert)\n .setColor(0xFFC107) // colour of the circle backgroud\n .setVibrate(new long[]{1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000}) // Vibration\n .setLights(0xFFFF00, 100, 50) // LED\n .setAutoCancel(true);\n\n notificationManager.notify(notifID, builder.build());\n }", "private void displayNotification(final String id, final String name, final String detail, String title, final String url) {\n\n NotificationManager manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n Notification notification = new Notification(R.drawable.noti, name + \" ตอนใหม่\", System.currentTimeMillis());\n notification.defaults |= Notification.DEFAULT_SOUND;\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n\n // The PendingIntent will launch activity if the user selects this notification\n Intent browserIntent = null;\n/*\t\tbrowserIntent = new Intent(Intent.ACTION_VIEW);\n\t\tUri data = Uri.parse(url+\"#story_body\");\n\t\tbrowserIntent.setData(data);*/\n if (Setting.getArrowSelectSetting(context).equals(\"0\")) {\n browserIntent = new Intent(Intent.ACTION_VIEW);\n Uri data = Uri.parse(url + \"#story_body\");\n browserIntent.setData(data);\n } else if (Setting.getArrowSelectSetting(context).equals(\"1\")) {\n browserIntent = new Intent(this, DekdeeBrowserActivity.class);\n browserIntent.putExtra(\"id\", id);\n browserIntent.putExtra(\"url\", url);\n browserIntent.putExtra(\"title\", name);\n } else {\n browserIntent = new Intent(this, TextReadActivity.class);\n browserIntent.putExtra(\"url\", url);\n }\n System.out.println(\"moti \" + url);\n\n //PendingIntent contentIntent = PendingIntent.getActivity(context, REQUEST_CODE,browserIntent, 0);\n PendingIntent contentIntent = PendingIntent.getActivity(getApplicationContext(), REQUEST_CODE, browserIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n notification.contentIntent = contentIntent;\n //notification.contentView = contentView;\n if (title.contains(\":\")) {\n title = \":\" + title;\n }\n if (title.indexOf(\":\") + 2 < title.length()) {\n notification.setLatestEventInfo(context, name, title.substring(title.indexOf(\":\") + 2) + \" (\" + detail + \")\", contentIntent);\n } else if (title.indexOf(\":\") + 1 < title.length()) {\n notification.setLatestEventInfo(context, name, title.substring(title.indexOf(\":\") + 1) + \" (\" + detail + \")\", contentIntent);\n } else if ((!title.contains(\":\")) && (title.indexOf(\":\") < title.length())) {\n notification.setLatestEventInfo(context, name, title.substring(title.indexOf(\":\")) + \" (\" + detail + \")\", contentIntent);\n } else {\n notification.setLatestEventInfo(context, name, title + \" (\" + detail + \")\", contentIntent);\n }\n manager.notify(REQUEST_CODE, notification);\n }", "private void showNotification() {\n\n Intent intent = new Intent(this, DashboardActivity.class);\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n stackBuilder.addParentStack(DashboardActivity.class);\n stackBuilder.addNextIntent(intent);\n\n final NotificationCompat.Builder builder = new NotificationCompat.Builder(this);\n\n builder.setSmallIcon(R.drawable.ic_gps);\n builder.setContentText(getText(R.string.local_service_started));\n builder.setContentTitle(getText(R.string.local_service_label));\n builder.setOngoing(true);\n builder.setContentIntent(stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT));\n\n final Notification notification = builder.build();\n\n // Send the notification.\n mNotificationManager.notify(NOTIFICATION, notification);\n }", "private void createNotification(int icon, String name, String auto_manual, String secondText, int color) {\n\n Intent notificationIntent = new Intent(this, SyncopyActivity.class);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this,\n 0, notificationIntent, 0);\n Notification notification = new NotificationCompat.Builder(this, CHANNEL_ID)\n .setContentTitle(name)\n .setContentText(secondText)\n .setSubText(String.format(\"(%s)\", auto_manual))\n .setSmallIcon(icon)\n .setColor(getResources().getColor(color))\n .setContentIntent(pendingIntent)\n .setVibrate(null)\n .setSound(null)\n .setPriority(NotificationManager.IMPORTANCE_LOW)\n .build();\n\n synchronized (notification){\n notification.notify();\n }\n\n startForeground(1, notification);\n\n\n }", "private void showNotification(boolean isError, boolean isProgressbar, int progress, String... info){\n\t\tString tickerText;\n\t\tmBuilder = new NotificationCompat.Builder(context);\n\t\tmBuilder\n .setSmallIcon(R.drawable.ic_stat_notify_default)\n .setContentTitle(info[0]);\n\t\ttickerText = info[0];\n\t\tif (info.length == 2){\n\t\t\tmBuilder\n\t\t .setContentText(info[1])\n\t\t .setStyle(new NotificationCompat.BigTextStyle()\n\t\t .bigText(info[1]));\n\t\t\ttickerText = info[1];\n\t\t}\n\t\tif(isProgressbar){\n\t\t\tmBuilder.setOngoing(true); \n\t\t}\n\t\t\n\t\tmBuilder.setTicker(tickerText);\n\t\tmNotificationManager =\n\t\t\t\tNotificationManagerCompat.from(context);\n\t\tmNotificationManager.notify(null, mId, mBuilder.build());\n\t}", "public static void showPhotogenifiedNotification(Context context) {\n if (context == null) {\n return;\n }\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(context)\n .setSmallIcon(R.drawable.ic_camera)\n .setContentTitle(context.getString(R.string.notification_photogenified_title))\n .setContentText(context.getString(R.string.notification_photogenified_text));\n Intent resultIntent = new Intent(context, HuntActivity.class);\n\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(context);\n stackBuilder.addParentStack(HuntActivity.class);\n stackBuilder.addNextIntent(resultIntent);\n PendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);\n mBuilder.setContentIntent(resultPendingIntent).setAutoCancel(true);\n NotificationManagerCompat mNotificationManager = NotificationManagerCompat.from(context);\n mNotificationManager.notify(NOTIFICATION_PHOTOGENIFY_ID, mBuilder.build());\n }", "private void showNotification(RemoteMessage remoteMessage) {\n\n String postType = remoteMessage.getData().get(\"postType\");\n Intent intent = new Intent(this, MyFeedActivity.class);\n\n String postId = remoteMessage.getData().get(\"postId\");\n String userId = remoteMessage.getData().get(\"userId\");\n String senderId = remoteMessage.getData().get(\"senderId\");\n\n if (postType != null) {\n\n switch (postType) {\n case \"snack\":\n intent = new Intent(this, SnackPostActivity.class);\n intent.putExtra(\"userId\", userId);\n intent.putExtra(\"postId\", postId);\n break;\n case \"follow\":\n intent = new Intent(this, PublicProfileActivity.class);\n intent.putExtra(\"userId\", senderId);\n break;\n case \"commentPanel\":\n case \"likePanel\":\n intent = new Intent(this, PanelPostActivity.class);\n intent.putExtra(\"userId\", userId);\n intent.putExtra(\"postId\", postId);\n break;\n case \"commentSwap\":\n case \"likeSwap\":\n intent = new Intent(this, SwapPostActivity.class);\n intent.putExtra(\"userId\", userId);\n intent.putExtra(\"postId\", postId);\n break;\n default:\n break;\n }\n }\n\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this,0, intent,\n PendingIntent.FLAG_ONE_SHOT);\n\n Notification notification;\n NotificationCompat.Builder builder;\n NotificationManager notificationManager = getSystemService(NotificationManager.class);\n\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O)\n {\n NotificationChannel notificationChannel = new NotificationChannel(Channel_Id,Channel_Name,NotificationManager.IMPORTANCE_HIGH);\n\n // Set up the notification channel\n notificationChannel.setDescription(Channel_Description);\n notificationManager.createNotificationChannel(notificationChannel);\n builder = new NotificationCompat.Builder(this,Channel_Id);\n\n }\n else {\n builder = new NotificationCompat.Builder(this);\n }\n\n // Get image bitmap for the notification.\n // Adapted from: https://stackoverflow.com/questions/24840282/load-image-from-url-in-notification-android\n Bitmap bitmap = null;\n try {\n InputStream in = new\n URL(remoteMessage.getData().get(\"image\"))\n .openStream();\n bitmap = BitmapFactory.decodeStream(in);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n notification = builder.setContentTitle(remoteMessage.getNotification().getTitle())\n .setContentText(remoteMessage.getNotification().getBody())\n .setSmallIcon(R.drawable.mouse_icon)\n .setLargeIcon(bitmap)\n .setAutoCancel(true)\n .setContentIntent(pendingIntent)\n .build();\n\n notificationManager.notify(0,notification);\n\n }", "private void drawNoti(String noti) {\n if (noti != null) {\n notification = noti;\n }\n\n lblNoti.setText(notification);\n }", "protected void toastshow() {\n \n\t\tToast toast=new Toast(getApplicationContext());\n\t\tImageView imageView=new ImageView(getApplicationContext());\n\t\timageView.setImageResource(R.drawable.icon);\n\t\ttoast.setView(imageView);\n\t\ttoast.show();\t\n\t}", "private void createNotification(String title, String body) {\n Context context = getBaseContext();\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n Intent notificationIntent = new Intent(context, OffersActivity.class);\n PendingIntent contentIntent = PendingIntent.getActivity(context,\n 0, notificationIntent,\n PendingIntent.FLAG_CANCEL_CURRENT);\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(getString(R.string.app_name))\n .setContentText(body)\n .setTicker(body)\n .setSound(defaultSoundUri)\n .setContentIntent(contentIntent)\n .setAutoCancel(true);\n NotificationManager mNotificationManager = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n mNotificationManager.notify(MESSAGE_NOTIFICATION_ID, mBuilder.build());\n }", "private void sendNotificationSample() {\n Intent notificationIntent = new Intent(GCMIntentService.this, AlertActivity.class);\n\n // Get a PendingIntent containing the entire back stack.\n int i = new Random().nextInt(100);\n PendingIntent notificationPendingIntent = PendingIntent.getActivity(GCMIntentService.this, i, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // Get a notification builder that's compatible with platform versions >= 4\n NotificationCompat.Builder builder = new NotificationCompat.Builder(GCMIntentService.this);\n\n // Define the notification settings.\n builder.setSmallIcon(R.drawable.icon_v2)\n // In a real app, you may want to use a library like Volley\n // to decode the Bitmap.\n //.setLargeIcon(BitmapFactory.decodeResource(ctx.getResources(), R.drawable.ic_launcher)).\n .setContentTitle(\"Shang\").setContentText(i + \". This is test mesage from notification\").setContentIntent(notificationPendingIntent);\n\n // Dismiss notification once the user touches it.\n builder.setAutoCancel(true);\n\n Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n builder.setSound(alarmSound);\n\n builder.setVibrate(new long[]{0, 2000});\n\n builder.setContentIntent(notificationPendingIntent);\n\n // Get an instance of the Notification manager\n NotificationManager mNotificationManager = (NotificationManager) GCMIntentService.this.getSystemService(Context.NOTIFICATION_SERVICE);\n\n // Issue the notification\n mNotificationManager.notify(i, builder.build());\n }", "private void showNotification() {\n\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.food_icon2)\n .setContentTitle(\"Let's eat\")\n .setContentText(\"Good morning, It's time to take your Breakfast :)\");\n\n int mNotificationId = 001;\n\n\n Intent contentIntent = new Intent(this, RecommendationActivity.class);\n contentIntent.putExtra(\"dePagi\", \"pagigan\");\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n stackBuilder.addParentStack(RecommendationActivity.class);\n stackBuilder.addNextIntent(contentIntent);\n\n PendingIntent resultPendingIntent =\n stackBuilder.getPendingIntent(\n 0,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n mBuilder.setContentIntent(resultPendingIntent);\n\n mBuilder.setVibrate(new long[] { 1000, 1000, 1000, 1000, 1000 });\n mBuilder.setLights(Color.YELLOW, 3000, 3000);\n\n mBuilder.setAutoCancel(true);\n\n mNM =(NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n mNM.notify(mNotificationId, mBuilder.build());\n\n stopSelf();\n\n }", "int displayNotification(Message message);", "private void showNotificationCourse(Bundle data) {\n\n/* try {\n int unreadNotificationCount = Integer.valueOf(data.getString(\"total_unread_notification\"));\n NotificationCountEventBus.Event event = new NotificationCountEventBus.Event(unreadNotificationCount);\n NotificationCountEventBus.getInstance().post(event);\n } catch (Exception ignored) {\n\n }*/\n\n // check the type_push from data and navigate to activity\n Intent intent = navigateNotification(data);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this, notificationId, intent,\n PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT);\n\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(getNotificationIcon())\n .setContentTitle(data.getString(\"title\"))\n .setContentText(data.getString(\"body\"))\n .setAutoCancel(true)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(notificationId++, notificationBuilder.build());\n }", "private void showNotification(Notification notification) {\n notification.setDelayMsec(2000);\r\n notification.show(Page.getCurrent());\r\n }", "private void sendNotification(Map<String, String> serverData) {\n Intent intent = new Intent(serverData.get(\"click_action\"));\n String title = serverData.get(\"title\");\n String body = serverData.get(\"body\");\n intent.putExtra(\"title\",title);\n intent.putExtra(\"body\",body);\n intent.putExtra(\"order\" , serverData.get(\"order\"));\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this,0 /* request code */, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n long[] pattern = {500,500,500,500,500};\n\n Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n NotificationCompat.Builder notificationBuilder = (NotificationCompat.Builder) new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.ok)\n .setContentTitle(serverData.get(\"title\"))\n .setContentText(serverData.get(\"body\"))\n .setAutoCancel(true)\n .setVibrate(pattern)\n .setLights(Color.BLUE,1,1)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(0 , notificationBuilder.build());\n }", "public void showNotification(String title,\n String message) {\n Intent intent = new Intent(this, MainActivity.class);\n String channel_id = getString(R.string.channel_id);\n\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent\n = PendingIntent.getActivity(\n this, 0, intent,\n PendingIntent.FLAG_ONE_SHOT);\n\n NotificationCompat.Builder builder\n = new NotificationCompat\n .Builder(getApplicationContext(),\n channel_id)\n .setSmallIcon(R.drawable.ic_launcher_foreground)\n .setAutoCancel(true)\n .setVibrate(new long[]{1000, 1000, 1000,\n 1000, 1000})\n .setOnlyAlertOnce(true)\n .setContentIntent(pendingIntent);\n\n if (Build.VERSION.SDK_INT\n >= Build.VERSION_CODES.JELLY_BEAN) {\n builder = builder.setContent(\n getCustomDesign(title, message));\n }\n else {\n builder = builder.setContentTitle(title)\n .setContentText(message)\n .setSmallIcon(R.drawable.ic_launcher_foreground);\n }\n\n NotificationManager notificationManager\n = (NotificationManager) getSystemService(\n Context.NOTIFICATION_SERVICE);\n if (Build.VERSION.SDK_INT\n >= Build.VERSION_CODES.O) {\n NotificationChannel notificationChannel\n = new NotificationChannel(\n channel_id, getString(R.string.channel_name),\n NotificationManager.IMPORTANCE_HIGH);\n notificationManager.createNotificationChannel(\n notificationChannel);\n }\n\n notificationManager.notify(0, builder.build());\n }", "public void MostrarNotificacion(Boolean estado, int cancelar){\n //hora del evento\n long hora = System.currentTimeMillis();\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(getApplicationContext(), CHANNEL_ID);\n builder.setSmallIcon(R.drawable.ic_launcher_background);\n builder.setContentTitle(\"Titulo\");\n builder.setContentText(\"Cuerpo\");\n builder.setWhen(hora);\n builder.setPriority(NotificationCompat.PRIORITY_DEFAULT);\n\n //para poner la notificacion permanente\n builder.setOngoing(estado);\n\n //construir la notificacion\n NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(getApplicationContext());\n notificationManagerCompat.notify(NOTIFICACION_ID, builder.build());\n\n //para quitar la notificacion\n notificationManagerCompat.cancel(cancelar);\n\n\n\n }", "public void sendNotification(View view) {\n\n NotificationManager nm= (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.O){\n\n //We have to create a notification channel\n NotificationChannel nc = new NotificationChannel(\"srminterns\",\"SRM NOTIFICATIONS\",NotificationManager.IMPORTANCE_HIGH);\n nm.createNotificationChannel(nc);\n\n }\n\n // we have to normally write notification code.\n\n NotificationCompat.Builder builder=new NotificationCompat.Builder(this,\"srminterns\");\n builder.setSmallIcon(R.drawable.umbrella);\n builder.setContentTitle(\"Sample Notification\");\n builder.setContentText(\"This is the description of the notification\");\n builder.setAutoCancel(true);\n\n /* Pending Intent\n * - It is the description of the operation to be performed\n * - can be created using the following methods\n * -getActivity() - if you want to open an activity with pending Intent\n * -getService() - if you want to strat a service with Pending Intent\n * -getBroadcast() - if you want to send a broadcast with Pending Intent\n *\n * Requires 4 Arguments\n * -context\n * -Pending Intent ID (Can be any Integer)\n * -Intent(Action that you want to perform)\n * - FLAG (This flag will tell the existing pending Intent about what to do if there\n * is a new Pending Intent (Arrival) */\n\n PendingIntent pi = PendingIntent.getActivity(this,12,new Intent(this, MainActivity.class)\n ,PendingIntent.FLAG_UPDATE_CURRENT);\n\n builder.setContentIntent(pi);\n\n /*\n * Step1: is to convert any image format that you want to display into a Bitmap image format\n * Step2: is to create bigPicture style before you issue the notification.\n *\n *\n *\n *\n * */\n\n Bitmap bitmap= BitmapFactory.decodeResource(getResources(),R.drawable.kathmandu);\n builder.setStyle(new NotificationCompat.BigPictureStyle().bigPicture(bitmap));\n nm.notify(42,builder.build());\n }", "private void AlarmByNotification(String message) {\n\t\tToast.makeText(this, message, Toast.LENGTH_LONG).show();\r\n\t}", "private void displayNotificationMessage(String message)\n\t{\n\n\t\tString CHANNEL_ID = \"my_channel_01\";\n\t\tint NOTIFICATION_ID = 0;\n\n\t\tif (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {\n\t\t\tCharSequence name = \"my_channel\";\n\t\t\tString Description = \"This is my channel\";\n\t\t\tint importance = NotificationManager.IMPORTANCE_HIGH;\n\t\t\tNotificationChannel mChannel = new NotificationChannel(CHANNEL_ID, name, importance);\n\t\t\tmChannel.setDescription(Description);\n\t\t\tmChannel.enableLights(true);\n\t\t\tmChannel.setLightColor(Color.RED);\n\t\t\tmChannel.enableVibration(true);\n\t\t\tmChannel.setVibrationPattern(new long[]{100, 200, 300, 400, 500, 400, 300, 200, 400});\n\t\t\tmChannel.setShowBadge(false);\n\t\t\tnotificationManager.createNotificationChannel(mChannel);\n\t\t}\n\n\t\tNotificationCompat.Builder builder = new NotificationCompat.Builder(this, CHANNEL_ID)\n\t\t\t\t.setSmallIcon(R.drawable.image2)\n\t\t\t\t.setContentTitle(\"Ting skjer!!!\")\n\t\t\t\t.setContentText(message);\n\n\t\tIntent resultIntent = new Intent(this, MyActivity.class);\n\t\tTaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n\t\t//stackBuilder.addParentStack(MainActivity.class);\n\t\tstackBuilder.addNextIntent(resultIntent);\n\t\tPendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);\n\n\t\tbuilder.setContentIntent(resultPendingIntent);\n\n\t\tnotificationManager.notify(NOTIFICATION_ID, builder.build());\n\t}", "void updateNotification() {\n\t\tif (isPlaying()) {\n\t\t\tmNotification.icon = R.drawable.ic_now_playing;\n\t\t} else if (isPaused()) {\n\t\t\tmNotification.icon = R.drawable.ic_pause_track;\n\t\t}\n\t\tNotificationManager nM = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\t\tnM.notify(NOTIFICATION_ID, mNotification);\n\t}", "public void showNoNotifications(){\n noNotificationsTitle.setVisibility(View.VISIBLE);\n noNotificationsText.setVisibility(View.VISIBLE);\n noNotificationsImage.setVisibility(View.VISIBLE);\n }", "public static void createNotification(Context context, Reminder reminder) {\n Intent viewIntent = new Intent(context, MainScreen.class);\n viewIntent.putExtra(\"NOTIFICATION_ID\", reminder.getId());\n viewIntent.putExtra(\"NOTIFICATION_DISMISS\", true);\n PendingIntent pending = PendingIntent.getActivity(context, reminder.getId(), viewIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n /* // Create intent for notification snooze click behaviour\n Intent snoozeIntent = new Intent(context, SnoozeActionReceiver.class);\n snoozeIntent.putExtra(\"NOTIFICATION_ID\", reminder.getId());\n PendingIntent pendingSnooze = PendingIntent.getBroadcast(context, reminder.getId(), snoozeIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n*/\n int imageResId = context.getResources().getIdentifier(reminder.getIcon(), \"drawable\", context.getPackageName());\n\n\n /*NotificationCompat.Builder builder = new NotificationCompat.Builder(context, CHANNEL_ID)\n .setSmallIcon(R.drawable.notification_icon)\n .setContentTitle(textTitle)\n .setContentText(textContent)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT);\n\n */\n NotificationCompat.Builder builder = new NotificationCompat.Builder(context)\n .setSmallIcon(imageResId)\n .setColor(Color.parseColor(reminder.getColour()))\n .setStyle(new NotificationCompat.BigTextStyle().bigText(reminder.getContent()))\n .setContentTitle(reminder.getTitle())\n .setContentText(reminder.getContent())\n .setTicker(reminder.getTitle())\n .setContentIntent(pending);\n\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n\n /*if (sharedPreferences.getBoolean(\"checkBoxNagging\", false)) {\n Intent swipeIntent = new Intent(context, DismissReceiver.class);\n swipeIntent.putExtra(\"NOTIFICATION_ID\", reminder.getId());\n PendingIntent pendingDismiss = PendingIntent.getBroadcast(context, reminder.getId(), swipeIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n builder.setDeleteIntent(pendingDismiss);\n\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.MINUTE, sharedPreferences.getInt(\"nagMinutes\", context.getResources().getInteger(R.integer.default_nag_minutes)));\n calendar.add(Calendar.SECOND, sharedPreferences.getInt(\"nagSeconds\", context.getResources().getInteger(R.integer.default_nag_seconds)));\n Intent alarmIntent = new Intent(context, NagReceiver.class);\n AlarmUtil.setAlarm(context, alarmIntent, reminder.getId(), calendar);\n }*/\n\n String soundUri = sharedPreferences.getString(\"NotificationSound\", \"content://settings/system/notification_sound\");\n if (soundUri.length() != 0) {\n builder.setSound(Uri.parse(soundUri));\n }\n if (sharedPreferences.getBoolean(\"checkBoxLED\", true)) {\n builder.setLights(Color.BLUE, 700, 1500);\n }\n if (sharedPreferences.getBoolean(\"checkBoxOngoing\", false)) {\n builder.setOngoing(true);\n }\n if (sharedPreferences.getBoolean(\"checkBoxVibrate\", true)) {\n long[] pattern = {0, 300, 0};\n builder.setVibrate(pattern);\n }\n /*if (sharedPreferences.getBoolean(\"checkBoxMarkAsDone\", false)) {\n Intent intent = new Intent(context, DismissReceiver.class);\n intent.putExtra(\"NOTIFICATION_ID\", reminder.getId());\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, reminder.getId(), intent, PendingIntent.FLAG_UPDATE_CURRENT);\n builder.addAction(R.drawable.ic_done_white_24dp, context.getString(R.string.mark_as_done), pendingIntent);\n }\n if (sharedPreferences.getBoolean(\"checkBoxSnooze\", false)) {\n builder.addAction(R.drawable.ic_snooze_white_24dp, context.getString(R.string.snooze), pendingSnooze);\n }*/\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n builder.setPriority(Notification.PRIORITY_HIGH);\n }\n\n NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(reminder.getId(), builder.build());\n }", "public void addNotify()\n {\n super.addNotify();\n\t\n ib = createImage(width,height);\n ig = ib.getGraphics(); \n }", "private void sendNotification(RemoteMessage remoteMessage) {\n// Intent intent = new Intent(this, MainActivity.class);\n// intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n// PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,\n// PendingIntent.FLAG_ONE_SHOT);\n//\n// Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n// NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\n// .setSmallIcon(R.drawable.ic_stat_ic_notification)\n// .setContentTitle(\"FCM Message\")\n// .setContentText(messageBody)\n// .setAutoCancel(true)\n// .setSound(defaultSoundUri)\n// .setContentIntent(pendingIntent);\n//\n// NotificationManager notificationManager =\n// (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n//\n// notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());\n //String title = remoteMessage.getNotification().getTitle();\n //String message = remoteMessage.getNotification().getBody();\n String title = remoteMessage.getData().get(\"title\");\n String message = remoteMessage.getData().get(\"text\");\n\n String imageURL = remoteMessage.getData().get(\"imageUrl\");\n long timestamp = remoteMessage.getSentTime();\n String articleID = remoteMessage.getData().get(\"articleID\");\n\n Intent intent = new Intent(this, SplashActivity.class);\n intent.putExtra(\"articleID\", articleID);\n //intent.setAction(\"rs.masinealati.PROCESS_NOTIFICATION\");\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n// PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,\n// PendingIntent.FLAG_ONE_SHOT);\n\n\n showNotificationMessage(getApplicationContext(), title, message, timestamp, intent);\n\n// if (TextUtils.isEmpty(imageURL)) {\n// showNotificationMessage(getApplicationContext(), title, message, timestamp, intent);\n// }else{\n// // Show notification with image\n// Log.e(TAG, \"Notification with image...\");\n// showNotificationMessageWithBigImage(getApplicationContext(), title, message, timestamp, intent, imageURL);\n// }\n\n }", "private void showInboxNotification() {\n if (mInboxList == null) {\n mInboxList = new ArrayList<String>();\n }\n\n //Add an item to the list\n mInboxList.add(getString(R.string.nf_inbox_item));\n int count = mInboxList.size();\n String inboxTitle = getResources().getQuantityString(R.plurals.nf_inbox_count, count, count);\n\n //Create the inbox compat\n NotificationCompat.InboxStyle inbox = new NotificationCompat.InboxStyle();\n\n String summaryText = getString(R.string.nf_inbox_summary, count);\n //Set the summary text for the inbox item\n inbox.setSummaryText(summaryText);\n\n //Add a line for each item in the list - you have to do this manually, the notification\n //won't build this automatically.\n for (String item : mInboxList) {\n inbox.addLine(item);\n }\n\n //Set the big content title for when the inbox is expanded\n inbox.setBigContentTitle(inboxTitle);\n\n String mostRecentInboxItem = mInboxList.get(mInboxList.size() - 1);\n Notification notification = new NotificationCompat.Builder(getActivity())\n .setContentTitle(inboxTitle)\n //This will show on devices that don't support the inbox and if further notifications\n //come in after the inbox notification.\n .setContentText(summaryText)\n //This will only show when the first inbox item arrives - subsequent items will just be added.\n .setTicker(mostRecentInboxItem)\n .setSmallIcon(R.drawable.ic_notify)\n .setLargeIcon(BitmapFactory.decodeResource(getActivity().getResources(), R.drawable.ic_launcher))\n .setContentIntent(pendingIntentForNotification())\n //This will show on devices that do support the inbox style.\n .setStyle(inbox)\n .build();\n\n //Same deal as the simple notification.\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n NotificationManager notificationManager = (NotificationManager)\n getActivity().getSystemService(Context.NOTIFICATION_SERVICE);\n\n //Here the tag is used to figure out what notification to add all these items to.\n notificationManager.notify(TAG_INBOX_NOTIFICATION, notification);\n }", "private void showNotification(int count) {\n\t\tLog.i(\"zlt\", \"showNotification\");\n\t\tNotificationManager manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\t\tNotificationCompat.Builder builder = new NotificationCompat.Builder(\n\t\t\t\tgetApplicationContext());\n\n\t\tbuilder.setContentTitle(\"通知\")\n\t\t\t\t.setContentText(String.format(\"你有%1$d条新的应急任务\", count))\n\t\t\t\t.setContentIntent(\n\t\t\t\t\t\tgetDefalutIntent(Notification.FLAG_AUTO_CANCEL))\n\t\t\t\t// .setNumber(number)//显示数量\n\t\t\t\t.setTicker(\"新的消息\")// 通知首次出现在通知栏,带上升动画效果的\n\t\t\t\t.setWhen(System.currentTimeMillis())// 通知产生的时间,会在通知信息里显示\n\t\t\t\t.setPriority(Notification.PRIORITY_DEFAULT)// 设置该通知优先级\n\t\t\t\t// .setAutoCancel(true)//设置这个标志当用户单击面板就可以让通知将自动取消\n\t\t\t\t.setOngoing(false)// ture,设置他为一个正在进行的通知。他们通常是用来表示一个后台任务,用户积极参与(如播放音乐)或以某种方式正在等待,因此占用设备(如一个文件下载,同步操作,主动网络连接)\n\t\t\t\t.setDefaults(Notification.DEFAULT_VIBRATE)//\n\t\t\t\t// 向通知添加声音、闪灯和振动效果的最简单、最一致的方式是使用当前的用户默认设置,使用defaults属性,可以组合:\n\t\t\t\t// Notification.DEFAULT_ALL Notification.DEFAULT_SOUND 添加声音 //\n\t\t\t\t// requires VIBRATE permission\n\t\t\t\t.setSmallIcon(R.drawable.app_icon).setAutoCancel(true);\n\t\t// 点击的意图ACTION是跳转到Intent\n\n\t\tIntent resultIntent = new Intent(getApplicationContext(),\n\t\t\t\tActivityInspection.class);\n\t\tresultIntent.putExtra(\"taskType\", 2);\n\t\tresultIntent.putExtra(\"fromService\", true);\n\t\tresultIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t// resultIntent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\tPendingIntent pendingIntent = PendingIntent.getActivity(\n\t\t\t\tgetApplicationContext(), 0, resultIntent,\n\t\t\t\tPendingIntent.FLAG_UPDATE_CURRENT);\n\t\tbuilder.setContentIntent(pendingIntent);\n\t\tmanager.notify(100, builder.build());\n\n\t}", "public void generarNotifiacion(Context context,String tittle,String text,int icon,int notificationId){\n Intent intent = new Intent(this.context, context.getClass());\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n PendingIntent pendingIntent = PendingIntent.getActivity(this.context, 0, intent, 0);\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this.context, CHANNEL_ID)\n .setSmallIcon(icon)\n .setContentTitle(tittle)\n .setContentText(text)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT)\n .setCategory(NotificationCompat.CATEGORY_MESSAGE)\n // Set the intent that will fire when the user taps the notification\n .setContentIntent(pendingIntent)\n .setAutoCancel(true);\n\n NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this.context);\n\n // notificationId is a unique int for each notification that you must define\n notificationManager.notify(notificationId, builder.build());\n }", "private void showNotificationMessage (Context context, String title, String message, String timeStamp, Intent intent) {\n notificationUtils = new com.actiknow.plothr.gcm.NotificationUtils(context);\n intent.setFlags (Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n notificationUtils.showNotificationMessage (title, message, timeStamp, intent);\n }", "private void showNotification(String message) {\n // Prepare intent which is triggered if the\n // notification is selected\n Intent intent = new Intent(this, LoginActivity.class);\n int mNotificationId = (int) System.currentTimeMillis();\n PendingIntent pIntent =\n PendingIntent.getActivity(this,\n mNotificationId,\n intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.ic_logo)\n .setContentTitle(getString(R.string.app_name))\n .setContentText(message)\n .setContentIntent(pIntent)\n .setAutoCancel(true);\n\n NotificationManager mNotifyMgr = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n mNotifyMgr.notify(mNotificationId, mBuilder.build());\n }", "@Override\n public void onNotificationPosted(StatusBarNotification sbn) {\n int notificationCode = matchNotificationCode(sbn);\n String pack = \"\";\n Bundle extras = null;\n String title = \"\";\n String text = \"\";\n String subtext = \"\";\n String key = \"\";\n try {\n pack = sbn.getPackageName();\n extras = sbn.getNotification().extras;\n //Prendo i dati della notifica\n title = extras.getString(\"android.title\");\n //Parso il titolo\n if (title.contains(\"(\") && title.contains(\")\") && (title.contains((\"messaggi\")) || title.contains(\"messaggio\"))) {\n int posA = title.lastIndexOf('(');\n title = title.substring(0, posA - 1);\n }\n text = extras.getCharSequence(\"android.text\").toString();\n subtext = \"\";\n } catch (Exception ex) {\n Log.d(\"WHATSAPP RIGA 100\", \"Conv fallita\");\n }\n if (matchNotificationCode(sbn) != InterceptedNotificationCode.OTHER_NOTIFICATIONS_CODE) {\n if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)) {\n //EDIT\n /* Used for SendBroadcast */\n try {\n Parcelable b[] = (Parcelable[]) extras.get(Notification.EXTRA_MESSAGES);\n String content;\n if (b != null) {\n content = \"\";\n for (Parcelable tmp : b) {\n key = String.valueOf(tmp.hashCode());\n Bundle msgBundle = (Bundle) tmp;\n subtext = msgBundle.getString(\"text\");\n //content = content + msgBundle.getString(\"text\") + \"\\n\";\n }\n /*Toast.makeText(getApplicationContext(), content,\n Toast.LENGTH_LONG).show();*/\n }\n if (subtext.isEmpty()) {\n subtext = text;\n }\n } catch (Exception e) {\n Log.d(\"ERRORE RIGA 90 WHATSAPP\", \"Probabilmente la notifica è sballata\");\n }\n Notifica nuovaNotifica = new Notifica();\n\n if (subtext != null) {\n if (!text.contains(\"nuovi messaggi\") && !text.contains(\"WhatsApp Web is currently active\") && !text.contains(\"WhatsApp Web login\") && !title.toLowerCase().equals(\"whatsapp\")) {\n try {\n DateFormat df = new SimpleDateFormat(\"ddMMyyyyHHmmss\");\n String date = df.format(Calendar.getInstance().getTime());\n nuovaNotifica = new Notifica(key, pack, title, subtext, date);\n } catch (Exception ex) {\n Log.d(\"WHATSAPP RIGA 100\", \"Conversione fallita\");\n }\n try {\n //Parso il messaggio se viene da instagram\n if (matchNotificationCode(sbn) == InterceptedNotificationCode.INSTAGRAM_CODE) {\n //Elimino l'username nel messaggio\n if (subtext.contains(\":\"))\n subtext = subtext.substring(subtext.indexOf(':') + 2, subtext.length());\n else {\n if (subtext.contains(title)) {\n int ind = subtext.indexOf(title);\n subtext = subtext.replace(title, \"\");\n subtext = subtext.substring(1, subtext.length());\n }\n }\n }\n } catch (Exception ex) {\n Log.d(\"WHATSAPP RIGA 160\", \"Parser fallito\");\n }\n //Controllo che non abbia già ricevuto il messaggio\n String contatto = title + matchNotificationCode(sbn);\n int posizioneContatto = TrovaContattoInUltimiMessaggi(contatto);\n boolean daInviare = true;\n //Se ho trovato il contatto, controllo il valore se è diverso aggiungo e invio\n //Altrimenti modifico e non invio\n //Se non lo trovo lo registro e invio\n if (posizioneContatto != -1) {\n String strV = UltimiMessaggi.get(posizioneContatto).UltimoMessaggio;\n if (strV.equals(subtext)) {\n daInviare = false;\n } else {\n SettaUltimoMessaggio(posizioneContatto, subtext);\n }\n } else {\n //Aggiungo il contatto e il messaggio nella lista\n UltimiMessaggi.add(new ContattoAC(contatto, subtext));\n }\n //Invio la notifica alla mainActivity\n if (daInviare) {\n Intent intent = new Intent(\"ricevitoreNotifiche\");\n try {\n /*//LOG\n Log.d(\"Notifica KEY\", key);\n Log.d(\"Contatto\", title);\n Log.d(\"Messaggio\", subtext);*/\n intent.putExtra(\"ID\", nuovaNotifica.getID());\n intent.putExtra(\"Applicazione\", nuovaNotifica.getApplicazione());\n intent.putExtra(\"Titolo\", nuovaNotifica.getTitolo());\n intent.putExtra(\"Testo\", nuovaNotifica.getTesto());\n intent.putExtra(\"DateTime\", nuovaNotifica.getDateTime());\n sendBroadcast(intent);\n } catch (Exception ex) {\n Log.d(\"ERROR RIGA 103 WHATSAPP\", \"Non riesco a inviare in broadcast\");\n }\n }\n }\n /* End Used for Toast */\n }\n }\n }\n\n }", "public static void noti(Context context, String title, String content, int notifyid) {\n NotificationCompat.Builder builder = new NotificationCompat.Builder(context);\n builder.setContentTitle(title)\n .setContentText(content)\n .setSmallIcon(R.mipmap.ic_launcher);\n builder.setDefaults(Notification.DEFAULT_SOUND);\n// Creates an Intent for the Activity\n Intent notifyIntent =\n new Intent(context, SmartCabinetDeviceListActivity.class);\n// Sets the Activity to start in a new, empty task\n notifyIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\n | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n// Creates the PendingIntent\n PendingIntent notifyPendingIntent =\n PendingIntent.getActivity(\n context,\n 0,\n notifyIntent,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n// Puts the PendingIntent into the notification builder\n builder.setContentIntent(notifyPendingIntent);\n// Notifications are issued by sending them to the\n// NotificationManager system service.\n NotificationManager mNotificationManager =\n (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n// Builds an anonymous Notification object from the builder, and\n// passes it to the NotificationManager\n mNotificationManager.notify(notifyid, builder.build());\n }", "private void sendNotification() {\n //Log.e(\"sendNotification: \", \"\" + message);\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n Intent intent = new Intent(this, ClubNewsActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,\n 0);\n\n notificationBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher))\n .setContentTitle(getResources().getString(R.string.app_name))\n .setContentText(getUnexpandedContentText(strArrList.size()))\n .setAutoCancel(true)\n /*.setNumber(strArrList.size())*/\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent)\n .setPriority(Notification.PRIORITY_HIGH)\n .setStyle(getExpandedNotificationStyle(strArrList));\n\n NotificationCompat.InboxStyle inboxStyle = new NotificationCompat.InboxStyle();\n // Moves events into the expanded layout\n for (int iCount = 0; iCount < strArrList.size(); iCount++) {\n inboxStyle.addLine(strArrList.get(iCount));\n }\n NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(0, notificationBuilder.build());\n }", "public void displayNotificationDialog(Context ctx, String title, String msg){\n AlertDialog.Builder dialog = new AlertDialog.Builder(ctx);\n dialog.setTitle(title);\n dialog.setMessage(msg);\n dialog.setPositiveButton(ctx.getResources().getString(R.string.ok_en), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }", "private void sendPushNotification(JSONObject json){\n //Display in log for debugging\n Log.e(TAG, \"Notification JSON: \"+json.toString() );\n try{\n //Fetching the data\n JSONObject data=json.getJSONObject(\"data\");\n\n //Parsing the data recieved\n String title=data.getString(\"title\");\n String message=data.getString(\"message\");\n String ImageUrl=data.getString(\"image\");\n\n //Notification Manager object\n MyNotificationManager mNotificationManager= new MyNotificationManager(getApplicationContext());\n\n //creating an intent for the notification\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n\n //Action when no image is present\n if(ImageUrl.equals(\"null\")){\n //Small notification\n mNotificationManager.showSmallNotification(title,message,intent);\n\n }else {\n //Big notification with image\n mNotificationManager.showBigNotification(title,message,ImageUrl,intent);\n }\n }catch (JSONException e){\n Log.e(TAG, \"JSON EXCEPTION: \"+e.getMessage() );\n }catch (Exception e){\n Log.e(TAG, \"Exception: \"+e.getMessage() );\n }\n }", "public void notificacionToast(String mensaje){\n Toast toast = Toast.makeText(getApplicationContext(),mensaje,Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n toast.show();\n }", "public static void display(String[] msg, Image image) throws AWTException, java.net.MalformedURLException { \n \tString device = msg[0];\n String app = msg[1];\n String title = msg[2];\n String text = msg[3];\n \t\n SystemTray tray = SystemTray.getSystemTray();\n\n TrayIcon trayIcon = new TrayIcon(image, device);\n \n trayIcon.setImageAutoSize(true);\n tray.add(trayIcon);\n if(title == null || text.contains(title)) {\n trayIcon.displayMessage(app, text, TrayIcon.MessageType.NONE);\n } else {\n trayIcon.displayMessage(app, title + \"\\n\" + text, TrayIcon.MessageType.NONE);\n }\n tray.remove(trayIcon);\n }", "public void showToast(String text)\n {\n Text icon = GlyphsDude.createIcon(FontAwesomeIconName.CHECK_CIRCLE,\"1.5em\");\n icon.setFill(Color.WHITE);\n Label l = new Label(text) ;\n l.setTextFill(Color.WHITE);\n l.setGraphic(icon);\n snackbar = new JFXSnackbar(PrinciplePane);\n snackbar.enqueue( new JFXSnackbar.SnackbarEvent(l));\n }", "private static void setNotification(Context context, String message) {\n NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n Notification notification = new Notification(R.drawable.icon, message, System.currentTimeMillis());\n\n Intent currentEvent = new Intent(context, CurrentEvent.class);\n PendingIntent target = PendingIntent.getActivity(context, 0, currentEvent, 0);\n String title = context.getString(R.string.reminder_title);\n notification.setLatestEventInfo(context, title, message, target);\n\n // We never want more than one notification, so always use the same ID\n nm.notify(NOTIFICATION_ID, notification);\n }", "private static void generateNotification(Context context, String message,String tickerText,String contentTitle) {\n\n\t\tUri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n\t\tint notification_icon = R.drawable.ic_launcher;\n\t\t//long when = System.currentTimeMillis();\n\t\tNotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context)\n\t\t.setSmallIcon(notification_icon)\n\t\t.setContentTitle(contentTitle)\n\t\t.setAutoCancel(true)\n\t\t.setSound(soundUri)\n\t\t.setContentText(message);\n\n\t\t// Creates an explicit intent for an Activity in your app\n\t\tIntent resultIntent = new Intent(context, SplashScreenActivity.class);\n\t\tresultIntent.putExtra(\"pushticker\", tickerText);\n\t\t// The stack builder object will contain an artificial back stack for the\n\t\t// started Activity.\n\t\t// This ensures that navigating backward from the Activity leads out of\n\t\t// your application to the Home screen.\n\t\tTaskStackBuilder stackBuilder = TaskStackBuilder.create(context);\n\t\t// Adds the back stack for the Intent (but not the Intent itself)\n\t\tstackBuilder.addParentStack(SplashScreenActivity.class);\n\t\t// Adds the Intent that starts the Activity to the top of the stack\n\t\tstackBuilder.addNextIntent(resultIntent);\n\t\tPendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0,PendingIntent.FLAG_UPDATE_CURRENT);\n\t\tmBuilder.setContentIntent(resultPendingIntent);\n\n\t\tNotificationManager mNotificationManager = (NotificationManager)context. getSystemService(Context.NOTIFICATION_SERVICE);\n\t\t// mId allows you to update the notification later on.\n\t\tmNotificationManager.notify(0, mBuilder.build());\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tAHNotification notification = new AHNotification.Builder()\n\t\t\t\t\t\t.setText(\":)\")\n\t\t\t\t\t\t.setBackgroundColor(ContextCompat.getColor(ManagerDemoActivity.this, R.color.color_notification_back))\n\t\t\t\t\t\t.setTextColor(ContextCompat.getColor(ManagerDemoActivity.this, R.color.color_notification_text))\n\t\t\t\t\t\t.build();\n\t\t\t\tbottomNavigation.setNotification(notification, 1);\n\t\t\t\tSnackbar.make(bottomNavigation, \"Parking Hero welcomes you :)\",\n\t\t\t\t\t\tSnackbar.LENGTH_SHORT).show();\n\t\t\t}", "public static Notification createNotification(XmlAppConfigurationProvider appConfigurationProvider,\n Context context, String title, String content, Bundle intentExtras) {\n int smallNotificationIconResourceId = appConfigurationProvider.getSmallNotificationIconResourceId();\n if (smallNotificationIconResourceId == 0) {\n Log.d(TAG, \"Small notification icon resource was not found. Will use the app icon when \" +\n \"displaying notifications.\");\n smallNotificationIconResourceId = appConfigurationProvider.getApplicationIconResourceId();\n }\n\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context);\n notificationBuilder.setTicker(title);\n notificationBuilder.setAutoCancel(true);\n\n // Create broadcast intent that will fire when the notification has been opened. To action on these messages,\n // register a broadcast receiver that listens to intent <your_package_name>.intent.APPBOY_NOTIFICATION_OPENED\n // and <your_package_name>.intent.APPBOY_PUSH_RECEIVED.\n String pushOpenedAction = context.getPackageName() + \".intent.APPBOY_NOTIFICATION_OPENED\";\n Intent pushOpenedIntent = new Intent(pushOpenedAction);\n if (intentExtras != null) {\n pushOpenedIntent.putExtras(intentExtras);\n }\n PendingIntent pushOpenedPendingIntent = PendingIntent.getBroadcast(context, 0, pushOpenedIntent, PendingIntent.FLAG_ONE_SHOT);\n notificationBuilder.setContentIntent(pushOpenedPendingIntent);\n\n\n // Sets the icon used in the notification bar itself.\n notificationBuilder.setSmallIcon(smallNotificationIconResourceId);\n notificationBuilder.setContentTitle(title);\n notificationBuilder.setContentText(content);\n\n // Setting notification sounds are supported after Honeycomb.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB && intentExtras != null) {\n // Retrieve sound uri if included in intentExtras bundle.\n if (intentExtras.containsKey(Constants.APPBOY_PUSH_NOTIFICATION_SOUND_KEY)) {\n String soundURI = intentExtras.getString(Constants.APPBOY_PUSH_NOTIFICATION_SOUND_KEY);\n if(soundURI != null) {\n if (soundURI.equals(Constants.APPBOY_PUSH_NOTIFICATION_SOUND_DEFAULT_VALUE)) {\n notificationBuilder.setDefaults(Notification.DEFAULT_SOUND);\n } else {\n notificationBuilder.setSound(Uri.parse(soundURI));\n }\n\n }\n }\n }\n\n // From Honeycomb to ICS, we can use a custom view for our notifications which will allow them to be taller than\n // the standard one line of text.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB && Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {\n Resources resources = context.getResources();\n String packageName = context.getPackageName();\n\n int layoutResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_ID, \"layout\", packageName);\n int titleResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_TITLE_ID, \"id\", packageName);\n int contentResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_CONTENT_ID, \"id\", packageName);\n int iconResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_ICON_ID, \"id\", packageName);\n int timeViewResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_TIME_ID, \"id\", packageName);\n int twentyFourHourFormatResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_TWENTY_FOUR_HOUR_FORMAT_ID, \"string\", packageName);\n int twelveHourFormatResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_TWELVE_HOUR_FORTMAT_ID, \"string\", packageName);\n\n String twentyFourHourTimeFormat = getOptionalStringResource(resources,\n twentyFourHourFormatResourceId, Constants.DEFAULT_TWENTY_FOUR_HOUR_TIME_FORMAT);\n String twelveHourTimeFormat = getOptionalStringResource(resources,\n twelveHourFormatResourceId, Constants.DEFAULT_TWELVE_HOUR_TIME_FORMAT);\n\n if (layoutResourceId == 0 || titleResourceId == 0 || contentResourceId == 0 || iconResourceId == 0\n || timeViewResourceId == 0) {\n Log.w(TAG, String.format(\"Couldn't find all resource IDs for custom notification view, extended view will \" +\n \"not be used for push notifications. Received %d for layout, %d for title, %d for content, %d for icon, \" +\n \"and %d for time.\",\n layoutResourceId, titleResourceId, contentResourceId, iconResourceId, timeViewResourceId));\n } else {\n Log.d(TAG, \"Using RemoteViews for rendering of push notification.\");\n RemoteViews remoteViews = new RemoteViews(packageName, layoutResourceId);\n remoteViews.setTextViewText(titleResourceId, title);\n remoteViews.setTextViewText(contentResourceId, content);\n remoteViews.setImageViewResource(iconResourceId, smallNotificationIconResourceId);\n\n // Custom views cannot be used as part of a RemoteViews so we're using a TextView widget instead. This\n // view will always display the time without date information (even after the day has changed).\n SimpleDateFormat timeFormat = new SimpleDateFormat(\n android.text.format.DateFormat.is24HourFormat(context) ? twentyFourHourTimeFormat : twelveHourTimeFormat);\n String notificationTime = timeFormat.format(new Date());\n remoteViews.setTextViewText(timeViewResourceId, notificationTime);\n notificationBuilder.setContent(remoteViews);\n return notificationBuilder.build();\n }\n }\n\n // If we're using Jelly Bean, we can use the Big View Style, which lets the notification layout size grow to\n // accommodate longer text and images.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n\n // Summary text which appears with content in expanded view.\n String summaryText = \"\";\n\n // If there is an image url found in the extras payload and the image can be downloaded, then\n // use the android BigPictureStyle as the notification. Else, use the BigTextStyle instead.\n if (intentExtras != null) {\n\n // Retrieve summary text if included in intentExtras bundle.\n if (intentExtras.containsKey(Constants.APPBOY_PUSH_SUMMARY_TEXT_KEY)) {\n summaryText = intentExtras.getString(Constants.APPBOY_PUSH_SUMMARY_TEXT_KEY);\n }\n\n // Set a custom notification priority if defined in the bundle.\n notificationBuilder.setPriority(getNotificationPriority(intentExtras));\n\n Bundle extrasBundle = getExtrasBundle(intentExtras);\n if (extrasBundle!=null && extrasBundle.containsKey(Constants.APPBOY_PUSH_BIG_IMAGE_URL_KEY)) {\n String imageUrl = extrasBundle.getString(Constants.APPBOY_PUSH_BIG_IMAGE_URL_KEY);\n Bitmap imageBitmap = downloadImageBitmap(imageUrl);\n if (imageBitmap != null) {\n Log.d(TAG, \"Rendering push notification with BigPictureStyle\");\n\n return getBigPictureNotification(notificationBuilder, imageBitmap, content, summaryText);\n } else {\n Log.d(TAG, \"Bitmap download failed for push notification\");\n }\n }\n }\n Log.d(TAG, \"Rendering push notification with BigTextStyle\");\n return getBigTextNotification(notificationBuilder, content, summaryText);\n }\n return notificationBuilder.build();\n }", "private void notifyUser(Context context, String message) {\n\n Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n Intent intent = new Intent(context, MovieActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n\n NotificationManager manager = (NotificationManager)\n context.getSystemService(Context.NOTIFICATION_SERVICE);\n\n android.support.v4.app.NotificationCompat.Builder builder = new NotificationCompat.Builder(context)\n .setContentTitle(\"device is now \" + message + \".\")\n .setOngoing(true)\n .setVibrate(new long[]{0, 500, 500, 500, 500, 500, 500})\n .setSound(soundUri)\n .setContentIntent(pendingIntent)\n .setSmallIcon(android.R.drawable.sym_def_app_icon)\n .setAutoCancel(true);\n\n manager.notify(1001, builder.build());\n\n }", "private void sendNotification(PanicIncidentDTO simpleMessage) {\n// Intent intent = new Intent(this, SimpleMessagingActivity.class);\n// intent.putExtra(\"simpleMessage\",simpleMessage);\n// intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n// PendingIntent pendingIntent = PendingIntent.getActivity(this,\n// LOCATION_REQUEST_CODE, intent,\n// PendingIntent.FLAG_ONE_SHOT);\n\n\n Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.ic_favorite)\n .setContentTitle(\"Message received\")\n .setContentText(simpleMessage.getPanicType().getName())\n .setAutoCancel(true)\n .setSound(defaultSoundUri);\n// .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());\n }", "public void run() {\n String lg_ti = \"Test.\";\n String des_ti = \"The license valid until \";\n String ban_ti = \"Warning!\";\n getNotificationData();\n //notificationShow(des_ti,lg_ti,ban_ti);\n }", "public void addNotification() {\n PendingIntent pi = PendingIntent.getActivity(this, 0, new Intent(this, MapActivity.class), 0);\n Resources r = getResources();\n Notification notification = new NotificationCompat.Builder(this)\n .setTicker(r.getString(R.string.notification_titles))\n .setSmallIcon(android.R.drawable.ic_menu_report_image)\n .setContentTitle(r.getString(R.string.notification_titles))\n .setContentText(r.getString(R.string.notification_tex))\n .setContentIntent(pi)\n .setAutoCancel(true)\n .build();\n\n NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n notificationManager.notify(0, notification);\n }", "private void noti1(){\n\t\t/*Contenido de notificacion*/\n\t\tNotification notificacion = new Notification( \n R.drawable.metrans_logo,\n \"Metrans inicializando... Bienvenido\",\n System.currentTimeMillis() );\n\t\t/*Fin de contenido de la notificacion*/\n\t\tPendingIntent intencionPendiente = PendingIntent.getActivity(\n\t\t this, 0, new Intent(this, MainActivity.class), 0);\n\t\tnotificacion.setLatestEventInfo(this, \"Somos tan chingones\",\n\t\t \"que tenemos notificaciones aqui\", intencionPendiente);\n\t\n\t\t nm1.notify(ID_NOTIFICACION_CREAR, notificacion); //Enviamos la notificacion al status bar\n\t\tnotificacion.defaults |= Notification.DEFAULT_VIBRATE; //Agregando algo de vibracion... Espero y funcione\n\t\t\n\t}" ]
[ "0.7177952", "0.7136897", "0.71050173", "0.70781446", "0.70356023", "0.70314056", "0.699402", "0.69899684", "0.69706285", "0.6931758", "0.6905673", "0.68856", "0.6866918", "0.6796169", "0.67793787", "0.6760812", "0.6754186", "0.67400736", "0.6714269", "0.6713741", "0.67100537", "0.6699817", "0.6690854", "0.6687959", "0.66687846", "0.662188", "0.66204834", "0.66028064", "0.659129", "0.6581908", "0.65738004", "0.65222514", "0.64990634", "0.6498389", "0.6486736", "0.6420104", "0.6408759", "0.640641", "0.6403623", "0.6392121", "0.6367872", "0.6365492", "0.6352173", "0.6351267", "0.63429725", "0.6340947", "0.6338135", "0.63186395", "0.62938076", "0.6286648", "0.6280703", "0.6279694", "0.62707007", "0.6267458", "0.6256613", "0.6241901", "0.62369865", "0.62334114", "0.62277055", "0.62264544", "0.62020826", "0.6200155", "0.62000614", "0.6180061", "0.617685", "0.6158213", "0.61331123", "0.6129619", "0.61281884", "0.6127288", "0.6109803", "0.61079204", "0.6095415", "0.6094321", "0.608571", "0.6084969", "0.6082413", "0.6081585", "0.60771424", "0.6076756", "0.60763013", "0.6066196", "0.6064686", "0.6062471", "0.60547894", "0.60498464", "0.6042972", "0.60255677", "0.60233873", "0.602134", "0.6001269", "0.5992964", "0.59860384", "0.59760475", "0.5971643", "0.596866", "0.595816", "0.5956424" ]
0.6744229
19
Initialize the contents of the frame.
public void initialize() { frame = new JFrame(); frame.getContentPane().setBackground(new Color(92, 255, 208)); frame.setBounds(100, 100, 1050, 500); frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); // Dispose on close, otherwise closes all the app frame.setTitle("Creació d'usuari"); Preferences prefs = Preferences.userNodeForPackage(LoginForm.class); String token = prefs.get("token", "token"); frame.setTitle("Creació d'usuari"); frame.setBounds(300, 90, 500, 500); // Components for the form of creation user. title = new JLabel("Creació d'usuari"); title.setFont(new Font("Lucida Grande", Font.PLAIN, 25)); title.setSize(235, 30); title.setLocation(150, 20); frame.add(title); name = new JLabel("Nom:"); name.setFont(new Font("Lucida Grande", Font.PLAIN, 15)); name.setSize(100, 20); name.setLocation(100, 80); frame.add(name); tname = new JTextField(); tname.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); tname.setSize(190, 20); tname.setLocation(200, 80); frame.add(tname); surname = new JLabel("Cognom:"); surname.setFont(new Font("Lucida Grande", Font.PLAIN, 15)); surname.setSize(100, 20); surname.setLocation(100, 120); frame.add(surname); tsurname = new JTextField(); tsurname.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); tsurname.setSize(190, 20); tsurname.setLocation(200, 120); frame.add(tsurname); email = new JLabel("Email:"); email.setFont(new Font("Lucida Grande", Font.PLAIN, 15)); email.setSize(100, 20); email.setLocation(100, 160); frame.add(email); temail = new JTextField(); temail.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); temail.setSize(190, 20); temail.setLocation(200, 160); frame.add(temail); tlf = new JLabel("Telèfon:"); tlf.setFont(new Font("Lucida Grande", Font.PLAIN, 15)); tlf.setSize(100, 20); tlf.setLocation(100, 200); frame.add(tlf); ttlf = new JTextField(); ttlf.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); ttlf.setSize(190, 20); ttlf.setLocation(200, 200); frame.add(ttlf); pass = new JLabel("Contrasenya:"); pass.setFont(new Font("Lucida Grande", Font.PLAIN, 15)); pass.setSize(100, 20); pass.setLocation(100, 240); frame.add(pass); tpass = new JTextField(); tpass.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); tpass.setSize(190, 20); tpass.setLocation(200, 240); frame.add(tpass); passc = new JLabel("Confirmació de Contrasenya:"); passc.setFont(new Font("Lucida Grande", Font.PLAIN, 15)); passc.setSize(100, 20); passc.setLocation(100, 280); frame.add(passc); tpassc = new JTextField(); tpassc.setFont(new Font("Lucida Grande", Font.PLAIN, 10)); tpassc.setSize(190, 20); tpassc.setLocation(200, 280); frame.add(tpassc); role = new JLabel("Rol:"); role.setFont(new Font("Lucida Grande", Font.PLAIN, 15)); role.setSize(100, 20); role.setLocation(100, 320); frame.add(role); admin = new JRadioButton("Admin"); admin.setFont(new Font("Lucida Grande", Font.PLAIN, 15)); admin.setSelected(true); admin.setSize(106, 20); admin.setLocation(200, 320); frame.add(admin); rastreator = new JRadioButton("Rastreator"); rastreator.setFont(new Font("Lucida Grande", Font.PLAIN, 15)); rastreator.setSelected(false); rastreator.setSize(125, 20); rastreator.setLocation(200, 350); frame.add(rastreator); rolegp = new ButtonGroup(); rolegp.add(admin); rolegp.add(rastreator); sub = new JButton("Aceptar"); sub.setBackground(new Color(255, 255, 255)); sub.setFont(new Font("Lucida Grande", Font.PLAIN, 15)); sub.setSize(100, 20); sub.setLocation(130, 420); sub.addActionListener(this); frame.add(sub); reset = new JButton("Reset"); reset.setBackground(new Color(255, 255, 255)); reset.setFont(new Font("Lucida Grande", Font.PLAIN, 15)); reset.setSize(100, 20); reset.setLocation(250, 420); reset.addActionListener(this); frame.add(reset); res = new JLabel(""); res.setFont(new Font("Lucida Grande", Font.PLAIN, 15)); res.setSize(500, 25); res.setLocation(100, 500); frame.add(res); frame.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "protected HFrame(){\n\t\tinit();\n\t}", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}", "public FrameControl() {\n initComponents();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public MainFrame() {\n initComponents();\n \n }", "private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public internalFrame() {\r\n initComponents();\r\n }", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "public Mainframe() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }", "private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}", "private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }", "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}", "public mainframe() {\n initComponents();\n }", "public FrameDesign() {\n initComponents();\n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public JGSFrame() {\n\tsuper();\n\tinitialize();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "public SMFrame() {\n initComponents();\n updateComponents();\n }", "private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}", "private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "public launchFrame() {\n \n initComponents();\n \n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public PilaFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}", "StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public NewFrame() {\n initComponents();\n }", "public SerialCommFrame()\n {\n super();\n initialize();\n }", "public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public BaseFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public MercadoFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}", "public holdersframe() {\n initComponents();\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public addStFrame() {\n initComponents();\n }", "public JFrame() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}", "private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}" ]
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.7107974", "0.7100368", "0.7092515", "0.708178", "0.70652425", "0.70630395", "0.70621413", "0.7060283", "0.70517516", "0.7043992", "0.6996167", "0.6978269", "0.6971387", "0.6956391", "0.6938475", "0.6929829", "0.6929629", "0.69251114", "0.6921989", "0.6920365", "0.6914633", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.69020075", "0.68911743", "0.6886017", "0.6873457", "0.6870402", "0.68686837", "0.68669385", "0.686311", "0.68616706", "0.68552315", "0.68537515", "0.681551", "0.68141145", "0.68094325", "0.67992085", "0.67930394", "0.6782133", "0.6765297", "0.6748138", "0.6731745", "0.6716807", "0.6711878", "0.6706194", "0.6697453", "0.6692831", "0.66927665", "0.6689213", "0.66724384", "0.66606426", "0.664954", "0.6642464", "0.6640775", "0.6638488", "0.663824", "0.663545", "0.66264987", "0.6625419", "0.6611392", "0.6608291", "0.6600817", "0.66005784", "0.6591052", "0.65869486", "0.65862876", "0.65753394", "0.6575285", "0.6570335", "0.655961" ]
0.0
-1
Button actions "Aceptar" & "Reset"
public void actionPerformed(ActionEvent e) { if (e.getSource() == reset) { String def = ""; tname.setText(def); tsurname.setText(def); temail.setText(def); ttlf.setText(def); tpass.setText(def); } else if (e.getSource() == sub) { tname.setText(tname.getText()); tsurname.setText(tsurname.getText()); temail.setText(temail.getText()); ttlf.setText(ttlf.getText()); tpass.setText(tpass.getText()); tpassc.setText(tpassc.getText()); if (rastreator.isSelected()) { rolselected = "rastreator"; } else { rolselected = "admin"; } } // We report for data to keep them String sname = tname.getText(); String ssurname = tsurname.getText(); String semail = temail.getText(); int stlf = Integer.parseInt(ttlf.getText()); String srolegp = rolegp.toString(); String spass = tpass.getText(); String spassc = tpassc.getText(); Preferences prefs = Preferences.userNodeForPackage(LoginForm.class); String token = prefs.get("token", "token"); UserPost up = new UserPost(); up.setName(sname); up.setSurname(ssurname); up.setEmail(semail); up.setPhone(stlf); up.setType(rolselected); up.setPassword(spass); up.setPasswordConfirm(spassc); Id id = ApiConnector.createUser(token, up); if (id != null) { JOptionPane.showMessageDialog(null, "L'usuari s'ha creat amb exit"); frame.dispose(); } else { JOptionPane.showMessageDialog(null, "Ooops something went wrong"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void onClickReset(ActionEvent e) {\n\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n adaptee.btnReset_actionPerformed(e);\r\n\t}", "private void btnResetActionPerformed(java.awt.event.ActionEvent evt) {\n reset(); \n }", "private void resetBtn1ActionPerformed(java.awt.event.ActionEvent evt) {\n resetBtnActionPerformed();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent ae){\n\t\treset();\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() == resetButton)\n reset();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) \n\t{\n\t\t\n\t\tJButton button = (JButton)e.getSource();\n\t\t\n\t\tif(button.equals(buttonInvia))\n\t\t{\n\t\t\tareaRisposta.setText(this.getTestoRisposta(areaDomanda.getText()));\t\t\n\t\t}\t\t\t\t\n\t\telse\n\t\t\tif(button.equals(buttonReset))\n\t\t\t{\n\t\t\t\tareaDomanda.setText(\"\");\n\t\t\t\tareaRisposta.setText(\"\");\n\t\t\t}\n\t\t\t\n\t}", "@FXML\n\tprivate void onResetBtn() {\n\t\truleBox.setValue(\"Standard\");\n\t\twallBox.setValue(10);\n\t\tboardBox.setValue(\"9x9\");\n\t\ttileBox.setValue(50);\n\t\tindicateLabel.setSelected(true);\n\t\t//ghostTrail.setSelected(false);\n\t\tSettings.getSingleton().reset();\n\t}", "private void addHandlerForResetBtn() {\n resetBtn.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n try {\n onClickResetBtn();\n } catch (IOException error) {\n System.out.println(\"There is a problem why tring to reset the Game: \" + error + \"\\n\");\n }\n }\n });\n }", "@Override\n\tpublic void setButtonAction() {\n\t}", "@Override\n public void onClick(View view) {\n resetEverything();\n }", "public void onClick(DialogInterface dialog, int id) {\n Changebtn.setText(\"Undo\");\n dialog.cancel();\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n String comando = e.getActionCommand();\n\n if (comando == \"Novo labirinto\")\n this.btnNovoLabirinto();\n else if (comando == \"Abrir labirinto\")\n this.btnAbrirLabirinto();\n else if (comando == \"Salvar labirinto\")\n this.btnSalvarLabirinto();\n else // comando==\"Executar labirinto\"\n this.btnExecutarLabirinto();\n }", "private void initializeResetButton()\r\n {\r\n resetButton = new JButton(\"RESET\");\r\n resetButton.addActionListener(new ActionListener()\r\n {\r\n @Override\r\n public void actionPerformed(ActionEvent e)\r\n {\r\n numMoves = 0;\r\n // implementation of multi-problem choices\r\n ProblemChooser pc = null;\r\n if (problem.isMultiProblem())\r\n {\r\n if (problem.hasCanvas())\r\n {\r\n pc = new ProblemChooser(problem.getInitialStatesList(),\r\n problem.getFinalStatesList(),\r\n problem.getMoveCounts(),\r\n problem.getInitialCanvasList(),\r\n problem.getFinalCanvasList()\r\n );\r\n } else\r\n {\r\n pc = new ProblemChooser(problem.getInitialStatesList(),\r\n problem.getFinalStatesList(), problem.getMoveCounts());\r\n }\r\n\r\n initialState = pc.getStart();\r\n }\r\n problem.setCurrentState(initialState);\r\n if (pc != null) {\r\n problem.setFinalState(pc.getFinal());}\r\n problemState.setText(initialState.toString());\r\n if (canvas != null)\r\n {\r\n canvas.setCurrentState(initialState);\r\n if (problem.isMultiProblem() && pc != null)\r\n {\r\n finalStateCanvas.setCurrentState(pc.getFinal());\r\n } else\r\n {\r\n finalStateCanvas.setCurrentState(problem.getFinalState());\r\n }\r\n canvas.render();\r\n finalStateCanvas.render();\r\n }\r\n problem.resetCounters();\r\n setStats();\r\n toggleButtons(true);\r\n }\r\n });\r\n }", "public void resetOvladani() {\n this.setEnabled(true);\n gameConnectButton.setEnabled(true);\n gameConnectButton.setText(\"Pripoj ke hre\");\n\n newGameButton.setEnabled(true);\n newGameButton.setText(\"Zaloz hru\");\n\n zalozenaHra = false;\n\n }", "@FXML\n\tprivate void resetButtonClick(ActionEvent event) {\n\t\tAlert alert = new Alert(AlertType.CONFIRMATION,\n\t\t\t\t\"Are you sure you want to reset the game? Your save will be reset to its initial status. This can not be undone.\",\n\t\t\t\tButtonType.YES, ButtonType.NO\n\t\t\t);\n\t\talert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n\t\talert.setTitle(\"Rest Confirmation\");\n\t\talert.setHeaderText(null);\n\t\tOptional<ButtonType> result = alert.showAndWait();\n\t\tif (result.get() == ButtonType.YES) {\n\t\t\tmodel.reset();\n\t\t}\n\t\telse {\n\t\t\tevent.consume();\n\t\t}\n\t}", "@FXML\n private void handleBtnDelSav(ActionEvent event) {\n myResult.resetM();\n }", "private void resetActionPerformed(ActionEvent evt) {\n\t\t//if the reels are nor spinning perform the the action\n\t\tif (!isSpining) {\n\t\t\tint betAm = obj.getBet();\n\t\t\t//reset the bet amount and return the credit amount and update the labels and buttons\n\t\t\tobj.setCredit(obj.getCredit() + betAm);\n\t\t\tobj.setBet(0);\n\t\t\tupdateLabels();\n\t\t\tupdateDisabledButtons();\n\t\t}\n\t\t//restart\n//\t\tobj.setBet(0);\n//\t\tobj.setWin(0);\n//\t\tobj.setLoses(0);\n//\t\tobj.setCredit(10);\n//\t\tdispose();\n//\t\tstart();\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) { // ueberprueft das Event fuer den Button\r\n\t\t\t\tif (e.getSource() == alarm \r\n\t\t\t\t\t\t&& alarm.getText().equals(\"Alarm setzen\")) { // schaut ob der geklickte Button den gleichen Text hat wieder der Alarmbutton\r\n\t\t\t\t\tabfrageFenster(); // bei Uebereinstimmung wird Abfragefenster aufgerufen\r\n\t\t\t\t}\r\n\t\t\t}", "@FXML\n private void cancelButtonAction(ActionEvent event) {\n //Change cancel button to help button\n cancelButton.setVisible(false);\n cancelButton.setDisable(true);\n helpButton.setVisible(true);\n helpButton.setDisable(false);\n \n help = false;\n\n // enable the sliders and checkbox\n enableSliderBoxes();\n // remove help informations\n clearInfo();\n }", "void btnCancel();", "public void gamereset() {\n Button tmp = (Button) findViewById(R.id.resetbutton);\n tmp.setVisibility(View.VISIBLE);\n }", "public void resetButton()\n {\n for(int row = 0; row<TicTacToe.SIDE; row++)\n for(int col= 0; col<TicTacToe.SIDE;col++)\n buttons[row][col].setText(\"\");\n }", "private JButton createResetButton() {\r\n reset = new JButton();\r\n reset.setBounds(110, 260, 100, 25);\r\n\r\n add(new SComponent(reset,\r\n new String[] {\"Reset\", \"Reset\"},\r\n new String[] {\"Stellt die Farbeinstellungen \"\r\n + \"wieder her, die beim Öffnen des \"\r\n + \"Fensters ausgewählt waren.\",\r\n \"Reloads the color settings that\"\r\n + \" was used when opening the\"\r\n + \" dialog.\"}));\r\n\r\n reset.addActionListener(new ActionListener() {\r\n\r\n /** Lädt die gesicherten Einstellungen in das Panel\r\n * und zeichnet den Graphen wieder mit den ursprünglichen\r\n * Einstellungen.\r\n *\r\n * @param e ActionEvent\r\n */\r\n public void actionPerformed(final ActionEvent e) {\r\n drawer.setColorSettings(colors);\r\n setColorSelection();\r\n\r\n /*GAModel gam = mainclass.getModel();\r\n if (gam.getGraphComponentState()\r\n == GAModel.COMPONENT_VALID) {\r\n gam.setGraphComponentState(GAModel.COMPONENT_OUTDATED);\r\n }*/\r\n mainclass.repaint();\r\n }\r\n });\r\n\r\n return reset;\r\n }", "private void resetActionButtonsState()\n {\n // Actions\n GameAction fpAction = firstPlayer.getLastAction();\n GameAction spAction = secondPlayer.getLastAction();\n\n // First player reset state\n if (fpAction instanceof RockAction)\n {\n animateSelectedButton(firstPlayerRock, false);\n }\n else if (fpAction instanceof PaperAction)\n {\n animateSelectedButton(firstPlayerPaper, false);\n }\n else if (fpAction instanceof ScissorsAction)\n {\n animateSelectedButton(firstPlayerScissors, false);\n }\n\n // Second player reset state\n if (spAction instanceof RockAction)\n {\n animateSelectedButton(secondPlayerRock, true);\n }\n else if (spAction instanceof PaperAction)\n {\n animateSelectedButton(secondPlayerPaper, true);\n }\n else if (spAction instanceof ScissorsAction)\n {\n animateSelectedButton(secondPlayerScissors, true);\n }\n }", "private void resetButtonPress(ActionEvent event){\n initLevel();\n }", "public void redo(){\n\t\tthis.setButtonVisible(true);\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent ev) {\n\t\tString command = ev.getActionCommand();\n\t\tif (command.equals(\"Enter\")) {\n\t\t\tshowResult();\n\t\n\t\t} else if (command.equals(\"Reset\")) {\n\t\t\treset();\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\r\n\t\tpublic void actionPerformed (ActionEvent e) {\n\t\t\tJButton c = (JButton) e.getSource();\r\n\t\t\tmakemove(c);\r\n\t\t\tgamestatus gs = getgamestatus();\r\n\t\t\tif (gs == gamestatus.incomplete) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tdeclarewinner(gs);\r\n\t\t\tint choice = JOptionPane.showConfirmDialog(this, \"Restart?\");\r\n\t\t\tif (choice == JOptionPane.YES_OPTION) {\r\n\t\t\t\tfor (int row = 0; row < board; row++) {\r\n\t\t\t\t\tfor (int col = 0; col < board; col++) {\r\n\t\t\t\t\t\tbuttons[row][col].setText(\"\");// to to blank after restart\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tthis.crosscheck = true;\r\n\t\t\t} else {\r\n\t\t\t\tsuper.dispose(); // to close the game on no \r\n\t\t\t}\r\n\t\t}", "@Override\r\n\tprotected ActionListener updateBtnAction() {\n\t\treturn null;\r\n\t}", "private void jbtn_resetActionPerformed(ActionEvent evt) {\n\t\t\t\ttxtblank();\n\t\t\t\t\n\t\t\t}", "public void resetUpdating() {\n MenuItem m = mymenu.findItem(R.id.Actualizar);\n if(m.getActionView()!=null)\n {\n // Remove the animation.\n m.getActionView().clearAnimation();\n m.setActionView(null);\n }\n\n }", "public void resetButtons() {\n\t\tboolean bool = selectedLesson.isEnable();\n\t\tview.getTestButton().setEnabled(bool);\n\t\tview.getLearnButton().setEnabled(bool);\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n removeAll();\n switch (in) {\n case 1:\n initial();\n button.setToolTipText(\"To main menu\");\n break;\n case 2:\n settings();\n button.setToolTipText(\"To settings\");\n break;\n default:\n highScores();\n button.setToolTipText(\"To high scores\");\n break;\n }\n revalidate();\n repaint();\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n if (runButton_.isSelected()) {\n runButton_.setText(\"Abort Acquisition\");\n runAcquisition();\n } else {\n runButton_.setText(\"Run Acquisition\");\n }\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[0])){\n\t\t\tperformButton(0);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[1])){\n\t\t\tperformButton(1);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[2])){\n\t\t\tperformButton(2);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[3])){\n\t\t\tperformButton(3);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[4])){\n\t\t\tperformButton(4);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[5])){\n\t\t\tperformButton(5);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[6])){\n\t\t\tperformButton(6);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[7])){\n\t\t\tperformButton(7);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[8])){\n\t\t\tperformButton(8);\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tresetHomeScreen();\n\t\t\t\t}", "Button getButtonRootClearRecherche();", "public void clickReset() {\n if (activeCard.equals(\"Edit\")) {\n contactEditPanel1.reset();\n } else {\n contactBrowsePanel1.loadTable();\n }\n }", "@Override\n\tpublic void reset(){\n\t\tstate.reset();\n\t\toldState.reset();\n\t\treturnAction = new boolean[Environment.numberOfButtons]; \n\t\trewardSoFar = 0;\n\t\tcurrentReward = 0;\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n if (metodo.equals(\"btn_actualizar\")) {\n actualizar_registro();\n } else if (metodo.equals(\"btn_borrar_registro\")) {\n borrar_registro();\n }else{}\n\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n game.resetGame();\n\n //enable all the buttons\n enableButtons(true);\n\n //reset the buttons for a new game\n resetButton();\n\n gameStatus.setBackgroundColor(Color.MAGENTA);\n gameStatus.setText(game.result());\n }", "private void Reset(Button A1, Button A2, Button A3, Button B1, Button B2, Button B3,Button C1,Button C2,Button C3) {\r\n turn = 1;\r\n A1.setText(\"\");\r\n A2.setText(\"\");\r\n A3.setText(\"\");\r\n\r\n B1.setText(\"\");\r\n B2.setText(\"\");\r\n B3.setText(\"\");\r\n\r\n C1.setText(\"\");\r\n C2.setText(\"\");\r\n C3.setText(\"\");\r\n\r\n A1.setClickable(true);\r\n A2.setClickable(true);\r\n A3.setClickable(true);\r\n\r\n B1.setClickable(true);\r\n B2.setClickable(true);\r\n B3.setClickable(true);\r\n\r\n C1.setClickable(true);\r\n C2.setClickable(true);\r\n C3.setClickable(true);\r\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif( e.getActionCommand().equals(\"EKLE\") )\n\t\t{\n\t\t\togrenciKaydet(noTextField.getText(), adTextField.getText(), sinifTextField.getText());\n\t\t}\n\t\t\n\t\tif( e.getActionCommand().equals(\"TEMİZLE\") )\n\t\t{\n\t\t\tnoTextField.setText(\"\");\n\t\t\tadTextField.setText(\"\");\n\t\t\tsinifTextField.setText(\"\");\n\t\t\t\n\t\t}\n\t}", "public FinalActionButtons()\n {\n eliminateButton = new JButton( \"Eliminate a Candidate\" );\n eliminateButton.setPreferredSize( new Dimension( 300, 100 ) );\n eliminateButton.addActionListener( this );\n add( eliminateButton );\n eliminateButton.setFont( new Font( \"Helvetica\", Font.PLAIN, 20 ) );\n\n doneButton = new JButton( \"Get Statistics\" );\n doneButton.setPreferredSize( new Dimension( 300, 100 ) );\n doneButton.addActionListener( this );\n add( doneButton );\n doneButton.setFont( new Font( \"Helvetica\", Font.PLAIN, 20 ) );\n }", "@Override\n public void actionPerformed(ActionEvent arg0) {\n if (zalozenaHra == false) {\n gameConnectButton.setEnabled(false);\n newGameButton.setText(\"Zrus zalozeni\");\n zalozenaHra = true;\n komunikace.CreateGame();\n } else {\n gameConnectButton.setEnabled(true);\n newGameButton.setText(\"Zaloz hru\");\n zalozenaHra = false;\n komunikace.cancelGame();\n }\n\n }", "public void cancelButton() {\n this.setMultQuestionSet(null);\n this.setSingleQuestionSet(null);\n this.setTextQuestionSet(null);\n this.setDateQuestionSet(null);\n System.out.println(\"Done pressing cancel button\");\n }", "private void setActions(){\n login.setOnAction(e->login());\n simulate.setOnAction(e->simulate());\n scoreBoardButton.setOnAction(e->scoreBoard());\n viewBracket.setOnAction(e->viewBracket(selectedBracket, playerMap));\n clearButton.setOnAction(e->clear());\n resetButton.setOnAction(e->reset());\n finalizeButton.setOnAction(e->finalizeBracket());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n btnAdicionar.setBackground(new Color(176, 196, 222));\n btnCalcular.setBackground(new Color(176, 196, 222));\n btnLimpar.setBackground(new Color(176, 196, 222));\n btnRemover.setBackground(new Color(176, 196, 222));\n }", "private void ctrlDetener() {\n btnIniciar.setEnabled(true);\n btnIniciar.setText(\"Iniciar\");\n btnPausar.setEnabled(false);\n btnParar.setEnabled(false);\n }", "private void undoAction(){\n if (allClickedButtons.size() > 0) {\n ButtonClass button = allClickedButtons.get(allClickedButtons.size() - 1);\n //If the button constituted a gameWin, then undo that impact as well\n if (checkGameWin(button.getSmallGame().getLettersOfAllButtons())) {\n //Resets \"partOfWonBoard\" for the buttons on the same smallGame\n for (ButtonClass b: button.getSmallGame().getAllButtons()) {\n b.setPartOfWonBoard(false);\n }\n button.getSmallGame().changeGameColor(R.color.black);\n }\n button.resetButtonResource();\n allClickedButtons.remove(button);\n if(allClickedButtons.size() > 0) {\n chosenButton = allClickedButtons.get(allClickedButtons.size()-1);\n chosenGame = chosenButton.getSmallGame();\n updateBigGameBoardForNextMove();\n } else {\n activity.startGame();\n }\n } else {\n Toast.makeText(activity,\n \"Cannot undo at this time\",\n Toast.LENGTH_SHORT).show();\n }\n }", "private void Mnemonicos() {\n Action action = new AbstractAction(\"Guardar\") {\n @Override\n public void actionPerformed(ActionEvent e) {\n onClickCrearCta();\n }\n };\n action.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0));\n crearCtaBtn.setAction(action);\n crearCtaBtn.getActionMap().put(\"myAction\", action);\n crearCtaBtn.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put((KeyStroke) action.getValue(Action.ACCELERATOR_KEY), \"myAction\");\n }", "@Override\r\n\tpublic void actionPerformed(GuiButton button) {\r\n switch (button.id) {\r\n case 0:\r\n GuiYesNo confirmGui = new GuiYesNo(this, \"Delete Waypoints\", \"Are you sure you want to delete the selected waypoints?\", \"Yes\", \"No\", 0);\r\n confirmGui.setButtonDelay(5);\r\n this.mc.displayGuiScreen(confirmGui);\r\n break;\r\n }\r\n\t}", "public void actionPerformed(ActionEvent e) {\r\n\t\t//enable buttons \r\n\t\tif(e.getActionCommand().equals(\"Play Again\")) {\r\n\t\t\tplayAgain = true;\r\n\t\t}\r\n\t\telse if(e.getActionCommand().equals(\"Main Menu\")) {\r\n\t\t\tmainMenu = true;\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tJButton button = (JButton)e.getSource();\n\t\t\t\n\t\t\tif(button == saveButton) {\n\t\t\t\tsaving();\n\t\t\t}\n\t\t\telse if(button == loadButton) {\n\t\t\t\tloading();\n\t\t\t}\n\t\t\telse if(button == resetButton) {\n\t\t\t\tnew Restart();\n\t\t\t}\n\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tif (e.getActionCommand().equals(\"确定\"))\r\n\t\t\t\t\tonOK();\r\n\t\t\t\tif (e.getActionCommand().equals(\"取消\"))\r\n\t\t\t\t\tonCancel();\r\n\t\t\t\tif (e.getActionCommand().equals(\"应用\"))\r\n\t\t\t\t\tonApply();\r\n\t\t\t}", "public static void undoButton(){\n\t\tundoMoveClass.undoButtonHelper(board);\n\t}", "@Override\n public void actionPerformed(ActionEvent ae) {\n String command = ae.getActionCommand();\n switch (command) {\n case \"Conferma\":\n if (convalidaCampi()) {\n salvaPrescrizione(creaPrescrizione());\n Utility.chiudiDialog(ae);\n }\n break;\n case \"Annulla\":\n Utility.chiudiDialog(ae);\n break;\n }\n }", "private void ctrlIniciar() {\n btnPausar.setEnabled(true);\n btnParar.setEnabled(true);\n btnIniciar.setEnabled(false);\n btnIniciar.setText(\"Reanudar\");\n\n }", "private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void resetApp() {\n\t\tthis.panelTags.setVisible(false);\n\t\tthis.panelMenu.setVisible(true);\n\t\tthis.model.clear();\n\t\tthis.btnClearAll.doClick(0);\n\t\t// textDestination jest czyszczony osobno, po JOptionPane\n\t\t// this.textDestination.setText(null);\n\t\tthis.btnDeleteAll.setEnabled(false);\n\t\tthis.btnDelete.setEnabled(false);\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif(cbbChooseTime.getSelectedIndex() == 0 || dateChooser.getDate() == null) {\n\t\t\t\tJOptionPane.showMessageDialog(getPanel(), \"Hãy đảm bảo đã chọn đủ ngày và giờ.\\n\");\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\tfor(int i = 0 ; i < 8 ; i ++) {// reset tất cả các màu các nút sẽ là màu cam\n\t\t\t\t\tif(listButtonYard.get(i).getStatus() != 2) {\n\t\t\t\t\t\tlistButtonYard.get(i).getButton().setBackground(Color.ORANGE);\n\t\t\t\t\t\tlistButtonYard.get(i).setStatus(0);// đánh dấu là chưa đặt\n\t\t\t\t\t\tlistButtonYard.get(i).getButton().setEnabled(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlistOrder = OrderService.getInstance().getOrderByDate_Time(dateChooser.getDate(), ((Time)cbbChooseTime.getSelectedItem()).getIdTime());//lấy danh sách Order theo ngày và time\n\t\t\t\tfor(int i = 0 ; i < listOrder.size() ; i++) {\n\t\t\t\t\tint id = listOrder.get(i).getIdYard();//lấy id Sân đã được đặt\n\t\t\t\t\tfor(Button_Yard item : listButtonYard) {\n\t\t\t\t\t\tif(item.getIdYard() == id) {\n\t\t\t\t\t\t\titem.getButton().setBackground(new Color(50, 205, 50));// set Color cho sân đã được đặt là màu xanh lá cây\n\t\t\t\t\t\t\titem.setStatus(1);// đánh dấu sân đã được đặt\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void reset()\n {\n Action = new boolean[Environment.numberOfButtons];\n }", "public void onResetClicked(View view) {\n // Hide the soft keyboard if it is present\n InputMethodManager m = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n m.hideSoftInputFromWindow(mBind.formContainer.getWindowToken(), 0);\n // Remove focus from all text fields by setting focus to the enclosing layout. This is to\n // prevent automatic scrolling to the focused text field.\n mBind.formContainer.requestFocus();\n // Load default values into text fields\n loadDefaultValues();\n // Scroll to top\n mBind.scrollView.smoothScrollTo(0, 0);\n // Remove invalid input error icon from the fields in which it was set\n for (Map.Entry<EditText, Validator> e : mValidators.entrySet()) {\n if (e.getKey().getError() != null) e.getKey().setError(null);\n }\n showToast(R.string.toast_reset_defaults);\n }", "public void resetScreen(){\n\t\tsetFirstAttempt(\"\");\n\t\tsetSecondAttempt(\":\");\n\t\tsetFirstAttempt(\":\");\n\t\tsetFirstAttemptResult(\"\");\n\t\tsetSecondAttemptResult(\"\");\n\t\tsetDefinition(\"\");\n\t\tbtnConfirmOrNext.setText(\"Confirm\");\n\t}", "private void setButtonActions() {\n\t\tbrowseButton.setAction(new AbstractAction(\"Browse\") {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint result = fileChooser.showDialog(ImportAnalysesView.this,\n\t\t\t\t\t\t\"Import\");\n\t\t\t\tif (result == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\timportFileField.setText(fileChooser.getSelectedFile()\n\t\t\t\t\t\t\t.getAbsolutePath());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\timportButton.setAction(new AbstractAction(\"Import\") {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\timportAnalyses();\n\t\t\t}\n\t\t});\n\t\tloadButton.setAction(new AbstractAction(\"Load\") {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tloadAnalyses();\n\t\t\t}\n\t\t});\n\t\timportButton.getAction().setEnabled(false);\n\t\tloadButton.getAction().setEnabled(false);\n\t\tpathTextBoxChanged();\n\t}", "public ActionListener newResetAction() {\n // TODO Auto-generated method stub\n return new ResetAction();\n }", "public void resetBoardOnRestartClick()//when restart game\n {\n JOptionPane.showMessageDialog(view.getParent(),\"PLAYER \"+playerSymbol+\" HAS REQUESTED GAME RESET\");\n currentPlayer=1;\n playerSymbol=\"O\";\n JButton[][] board=view.getGameBoard();\n for(int i=0;i<dim;i++)\n {\n for(int j=0;j<dim;j++)\n {\n board[i][j].setText(\"\");\n }\n }\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif (e.getSource()==btnSair)\n\t\t\t{\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tif(e.getSource()==btnClear)\n\t\t\t{\n\t\t\t\ttAaExibir.setText(null);\n\t\t\t\taux=\"\";\n\t\t\t\titemA=0;\n\t\t\t\titemB=0;\n\t\t\t}\n\t\t\tif(e.getSource()==btnUm)\n\t\t\t{\n\t\t\t\taux+=\"1\";\n\t\t\t\ttAaExibir.setText(aux);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(e.getSource()==btnDois)\n\t\t\t{\n\t\t\t\taux+=\"2\";\n\t\t\t\ttAaExibir.setText(aux);\n\t\t\t}\n\t\t\tif(e.getSource()==btnTres)\n\t\t\t{\n\t\t\t\taux+=\"3\";\n\t\t\t\ttAaExibir.setText(aux);\n\t\t\t}\n\t\t\tif(e.getSource()==btnQuatro)\n\t\t\t{\n\t\t\t\taux+=\"4\";\n\t\t\t\ttAaExibir.setText(aux);\n\t\t\t}\n\t\t\tif(e.getSource()==btnCinco)\n\t\t\t{\n\t\t\t\taux+=\"5\";\n\t\t\t\ttAaExibir.setText(aux);\n\t\t\t}\n\t\t\tif(e.getSource()==btnSeis)\n\t\t\t{\n\t\t\t\taux+=\"6\";\n\t\t\t\ttAaExibir.setText(aux);\n\t\t\t}\n\t\t\tif(e.getSource()==btnSete)\n\t\t\t{\n\t\t\t\taux+=\"7\";\n\t\t\t\ttAaExibir.setText(aux);\n\t\t\t}\n\t\t\tif(e.getSource()==btnOito)\n\t\t\t{\n\t\t\t\taux+=\"8\";\n\t\t\t\ttAaExibir.setText(aux);\n\t\t\t}\n\t\t\tif(e.getSource()==btnNove)\n\t\t\t{\n\t\t\t\taux+=\"9\";\n\t\t\t\ttAaExibir.setText(aux);\n\t\t\t}\n\t\t\tif(e.getSource()==btnZero)\n\t\t\t{\n\t\t\t\taux+=\"0\";\n\t\t\t\ttAaExibir.setText(aux);\n\t\t\t}\n\t\t\tif(e.getSource()==btnMultipli)\n\t\t\t{\n\t\t\t\tmultiA();\n\t\t\t}\n\t\t\tif(e.getSource()==btnAdicao)\n\t\t\t{\n\t\t\t\tsomaA();\n\t\t\t}\n\t\t\tif(e.getSource()==btnDivi)\n\t\t\t{\n\t\t\t\tdivi();\n\t\t\t}\n\t\t\tif(e.getSource()==btnSubtracao)\n\t\t\t{\n\t\t\t\tsubt();\n\t\t\t}\n\t\t\tif(e.getSource()==btnCalc)\n\t\t\t{\n\t\t\t\tcalcular();\n\t\t\t\taux = \"\"+resultado+\"\\n\";\n\t\t\t\ttAaExibir.setText(aux);\n\t\t\t\taux = \"\";\n\t\t\t}\n\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tthis.jmf.btnClear_actionPerformed(e);\n\t}", "@Override\r\n\tprotected ActionListener refreshBtnAction() {\n\t\treturn null;\r\n\t}", "public void undoAction(){}", "public void buttonAC (View view){\n resultView.setText(\"0\");\n result = 0;\n expressionView.setText(\"\");\n result = 0;\n }", "protected void resetSideButtons(){\n mFightButton.setText(\"FIGHT\");\n mPokemonButton.setText(\"POKEMON\");\n mBagButton.setText(\"BAG\");\n mRunButton.setText(\"RUN\");\n mFightButton.setBackgroundColor(PokemonApp.FIGHT_COLOR);\n mPokemonButton.setBackgroundColor(PokemonApp.POKEMON_COLOR);\n mBagButton.setBackgroundColor(PokemonApp.BAG_COLOR);\n mRunButton.setBackgroundColor(PokemonApp.RUN_COLOR);\n }", "private void btnAceptarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(v==btnreset)\n\t\t\t\t{\n\t\t\t\t\tloginUser();\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void onClick(View arg0) {\n \t\t\n \t\t\n \t\t\n \t\tswitch(arg0.getId())\n \t\t{\n \t\tcase R.id.button1 : result();\n \t\t\t\t\t\t\tbreak;\n \t\tcase R.id.button2 : clr1();\n \t\t\t\t\t\t\tbreak;\n \t\t}\t\t\n\t\t\n\t}", "@Test\n public void testReset() {\n action.reset();\n assertFalse(action.isExecuted());\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif (arg0.getSource()==ventana1.panelborrarcliente.btnAtrasBorrarTicket) {\n\t\t\tfunciones.cambiarDePanel(ventana1.panelborrarcliente, ventana1.panelmenuprincipal);\n\t\t\tresetar();\n\t\t\t\n\t\t}\n\t\tif (arg0.getSource()==ventana1.panelborrarcliente.btnBorrarBorrarCliente) {\n\t\t\tint prueba=modelo1.modeloborrarcliente.botonborrarcliente(ventana1.panelborrarcliente.formattedDniBorrarCliente,ventana1.panelborrarcliente.passwordContrase˝a,modelo1.cliente);\n\t\t\tif(prueba==1) {\n\t\t\t\tfunciones.cambiarDePanel(ventana1.panelborrarcliente, ventana1.panelmenuprincipal);\n\t\t\t\tresetar();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void action() {\n\t\t\ttreinador.Correu();\r\n\t\t\ttreinador.Perdeu();\r\n\t\t\treturn;\r\n\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t\t\n\t\tif(arg0.getActionCommand()== \"Affsuiv\"){\n\t\t\tSystem.out.println (\"Je suis un farfadet\");\n\t\t}\n\t\t\n\t\tif(arg0.getActionCommand()== \"Affprec\"){\n\t\t\tSystem.out.println (\"Je suis un farfadet\");\n\t\t}\n\t\t\n\t\tif(arg0.getActionCommand()== \"Ajout\"){\n\t\t\t\n\t\t}\n\t\t\n\t\tif (arg0.getActionCommand()== \"Quit\"){\n\t\t\n\t\tSystem.exit(0);\n\t\t\t\n\t\t}\n\t}", "public void resetButtonsMode() {\n host.getMidiOutPort(0).sendMidi(0xB0, 34, 1);\n }", "public void resetButtonAction(ActionEvent event) throws IOException {\n Parent root = FXMLLoader.load(getClass().getResource(\"../ui/reset.fxml\"));\n\n Node node = (Node) event.getSource();\n Stage stage = (Stage) node.getScene().getWindow();\n stage.setScene(new Scene(root));\n stage.show();\n }", "public void settingBtnClick() {\n\t}", "public void actionPerformed(ActionEvent event)\n\t{\n\t\tObject source = event.getSource();\n\t\tif (source == menuNouveau)\t\t {restart();}\n\t\telse if (source == menuQuitter) {System.exit(0);}\n\t\telse if (source == addition) \t {op = new Addition(addition, soustraction, multiplication, division); this.okAction(false);}\n\t\telse if (source == soustraction) {op = new Soustraction(addition, soustraction, multiplication, division); this.okAction(false);}\n\t\telse if (source == multiplication) {op = new Multiplication(addition, soustraction, multiplication, division); this.okAction(false);}\n\t\telse if (source == division) \t {op = new Division(addition, soustraction, multiplication, division); this.okAction(false);}\n\t\telse if (source == ok)\t\t\t {this.okAction(true);}\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==btn_pause) {\n\t\t\n\t\t\tgamePause();\n\t\t}\n\t\tif(e.getSource()==btn_continue) {\n\t\t\tgameContinue();\n\t\t}\n\t\tif(e.getSource()==btn_restart) {\n\t\t\tgameResTart();\n\t\t}\n\t\tif(e.getSource()==btn_rank) {\n\t\t\tgameRank();\n\t\t}\n\t\tif(e.getSource()==btn_admin) {\n\t\t\tgameAdmin();\n\t\t}\n\t\t\n\t}", "private void onClickResetBtn() throws IOException {\n // Send a packet of byte[3,0] to indicate the Client is done playing, and going to quit the game\n client.sendOnly(client.getSocket(), serverPackage, 3, 0);\n isRed = true;\n turnCircle.setFill(Paint.valueOf(\"Red\"));\n turnDisplay.setText(humanTurn);\n winDisplay.setText(\"\");\n // Set all the circle in the Grid's color back to black\n resetGrid();\n\n client.restartClient();\n // Re-enable the Grid\n grid.setDisable(false);\n System.out.println(\"Client has restarted...Initialize new Game\\n\");\n }", "void clearActions();", "void setActionBtnBack(LinkActionGUI mainAction, LinkActionGUI linkAction);", "public void buttonChangeStatus(ActionEvent actionEvent) {\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.reset) {\n ((Button) findViewById(R.id.faces)).setText(\"6\");\n ((Button) findViewById(R.id.dices)).setText(\"2\");\n vista.removeAllViews();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void clickOnResetButton() {\n\t\tutil.clickOnElement(this.loginPageLocators.getResetButtonElement());\n\t}", "public void resetButtons() {\n\t\t group.clearSelection();\n\t }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tgetControleur(). saisirOuvrage() ;}", "void btnClearPlanning();", "private void cancelButtonActionPerformed(ActionEvent e) {\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tObject o=e.getSource();\n\t\t\n\t\tif(o==vb.btnSalir){\n\t\t\tvb.dispose();\n\t\t}\n\t\tif(o==vb.btnprofe) {\n\t\t\taccederpro();\n\t\t}\n\t\tif(o==vb.btnAlumno){\n\t\t\taccederalum();\n\t\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent actEvt)\n {\n if (actEvt.getSource()==runButton)\n {\n handleRunButton();\n }\n if (actEvt.getSource() == resetButton)\n {\n System.out.println(\"Resetting.\");\n handleArrayResize((Integer)(nMenu.getSelectedItem()));\n }\n if (actEvt.getSource()==nMenu)\n {\n handleArrayResize((Integer)(nMenu.getSelectedItem()));\n }\n }", "public void buttonCE (View view){\n resultView.setText(\"0\");\n result = 0;\n }", "public void resetAction()\r\n {\r\n this.action = null;\r\n }", "@FXML\n private void restartButtonAction(ActionEvent event) {\n\n //Change restart button to start button\n restartButton.setVisible(false);\n restartButton.setDisable(true);\n startButton.setVisible(true);\n startButton.setDisable(false);\n\n // if the simulation is initially in help event, make it go back\n cancelButton.fire();\n helpButton.setDisable(true);\n \n restart = true;\n }" ]
[ "0.7530472", "0.73226887", "0.7202699", "0.716777", "0.7085706", "0.70527536", "0.69872534", "0.67996025", "0.661644", "0.6600932", "0.658462", "0.6538395", "0.6490615", "0.647715", "0.6476506", "0.6471821", "0.6468622", "0.6468183", "0.6465629", "0.6442661", "0.64376277", "0.6430162", "0.6427897", "0.64209706", "0.6410553", "0.64079064", "0.6399888", "0.6372367", "0.6370861", "0.6366062", "0.6334858", "0.63321507", "0.63192976", "0.6316598", "0.63103527", "0.63090575", "0.6307053", "0.6306569", "0.6306207", "0.6301652", "0.63016206", "0.6297043", "0.6295241", "0.6286165", "0.6286021", "0.6285353", "0.6277327", "0.62550956", "0.6250163", "0.62477785", "0.62477565", "0.6221988", "0.622187", "0.62202245", "0.6197403", "0.61946905", "0.6193993", "0.6192435", "0.6191846", "0.6190081", "0.61801267", "0.6165198", "0.6158416", "0.6156098", "0.61507595", "0.6148828", "0.6144775", "0.6139806", "0.6131564", "0.6127992", "0.6116817", "0.61168116", "0.6112396", "0.61071205", "0.610085", "0.6099129", "0.60947895", "0.60843384", "0.6082097", "0.60780036", "0.6073173", "0.6072549", "0.6062758", "0.6061413", "0.6060643", "0.6050693", "0.604649", "0.60438484", "0.6043528", "0.60423493", "0.603523", "0.6029371", "0.6023349", "0.60108507", "0.6010095", "0.6009784", "0.60057944", "0.6002184", "0.5998331", "0.5996845", "0.5987673" ]
0.0
-1
Need to use SimpleCLI.parse() instead
private SimpleCLI(Options options) { this.options = options; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void parse(CommandLine cli)\n {\n // Application ID option\n if(hasOption(cli, Opt.APPLICATION_ID, false))\n {\n applicationId = Long.parseLong(getOptionValue(cli, Opt.APPLICATION_ID));\n logOptionValue(Opt.APPLICATION_ID, applicationId);\n }\n\n // Server ID option\n if(hasOption(cli, Opt.SERVER_ID, false))\n {\n serverId = Long.parseLong(getOptionValue(cli, Opt.SERVER_ID));\n logOptionValue(Opt.SERVER_ID, serverId);\n }\n\n // Category option\n if(hasOption(cli, Opt.CATEGORY, true))\n {\n category = getOptionValue(cli, Opt.CATEGORY);\n logOptionValue(Opt.CATEGORY, category);\n }\n\n // Name option\n if(hasOption(cli, Opt.NAME, true))\n {\n name = getOptionValue(cli, Opt.NAME);\n logOptionValue(Opt.NAME, name);\n }\n }", "private static Params parseCLI(String[] args) {\n Params params = new Params();\n\n if(args.length>1) {\n int paramIndex = 0;\n for(int i=0; i<args.length; i++) {\n String arg = args[i];\n OutputType type = OutputType.getOutputType(arg);\n if(type!=null) {\n params.outputType = type;\n paramIndex = i;\n break;\n } else if(\"-help\".equals(arg)) {\n usage();\n System.exit(0);\n }\n }\n\n params.inputFile = args[paramIndex+1];\n if(args.length>paramIndex+2) {\n params.outputFile = args[paramIndex+2];\n }\n\n } else if(args.length == 1 && \"-help\".equals(args[0])) {\n usage();\n System.exit(0);\n\n } else {\n \n System.err.println(\"Error, incorrect usage\");\n usage();\n System.exit(-1);\n\n }\n\n return params;\n }", "public CommandLine parse(String[] args ) throws ParseException\n {\n String[] cleanArgs = CleanArgument.cleanArgs( args );\n CommandLineParser parser = new DefaultParser();\n return parser.parse( options, cleanArgs );\n }", "@Before public void initParser() {\n\t\tparser = new CliParserImpl(\"-\", \"--\");\n\t}", "public void parseCommandLine(String[] args) {\r\n\t\t// define command line options\r\n\t\tOptions options = new Options();\r\n\t\t// refresh:\r\n\t\toptions.addOption(new Option(\r\n\t\t \"refresh\", \r\n\t\t \"Tell Argus to start refreshing all files after Minstrel startup.\"));\r\n\t\t// port:\r\n\t\tOptionBuilder.withArgName(\"port\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription( \"Run NanoHTTPD on this port instead of default 8000.\" );\r\n\t\toptions.addOption(OptionBuilder.create(\"port\"));\r\n\t\t// argus:\r\n\t\tOptionBuilder.withArgName(\"url\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription( \"Use Argus at <url> instead of default localhost:8008.\" );\r\n\t\toptions.addOption(OptionBuilder.create(\"argus\"));\r\n\t\t// vlc:\r\n\t\tOptionBuilder.withArgName(\"url\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription(\"Use VLC at <url> instead of default localhost:8080.\");\r\n\t\toptions.addOption(OptionBuilder.create(\"vlc\"));\r\n\t\t// wwwroot:\r\n\t\tOptionBuilder.withArgName(\"path\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription(\"Have NanoHTTPD serve files from <path> instead of default ./wwwroot.\");\r\n\t\toptions.addOption(OptionBuilder.create(\"wwwroot\"));\r\n\t\t\r\n\t\t// parse command line options and adjust accordingly\r\n\t\tCommandLineParser parser = new GnuParser();\r\n\t\ttry {\r\n\t\t\tCommandLine line = parser.parse(options, args);\r\n\r\n\t\t\tif (line.hasOption(\"refresh\")) {\r\n\t\t\t\trefresh = new Date();\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"port\")) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tport = Integer.parseInt( line.getOptionValue(\"port\"));\r\n\t\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t\tSystem.err.println(\"Badly formatted port number, defaulting to 8000. Reason: \" + e.getMessage());\r\n\t\t\t\t\tport = 8000;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"argus\")) {\r\n\t\t\t\targusURL = line.getOptionValue(\"argus\");\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"vlc\")) {\r\n\t\t\t\tvlcURL = line.getOptionValue(\"vlc\");\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"wwwroot\")) {\r\n\t\t\t\twwwroot = line.getOptionValue(\"wwwroot\");\r\n\t\t\t}\r\n\t\t} catch (ParseException e) {\r\n\t\t\tSystem.err.println(\"Command line parsing failed. Reason: \" + e.getMessage());\r\n\t\t}\r\n\t}", "static ParsedCommand parseCommand(String cmdline) {\n ParsedCommand res = new ParsedCommand();\n cmdline = cmdline.trim();\n String[] split = cmdline.split(\"\\\\/([-]?[a-zA-Z]*)\");\n List<String> args = new ArrayList<>();\n for (int i = 0; i < split.length; i++) {\n String[] tmp = split[i].split(\" \");\n for (int j = 0; j < tmp.length; j++) {\n if (tmp[j].length() > 0) {\n args.add(tmp[j]);\n }\n }\n }\n if (args.size() == 0) return null;\n res.argv.addAll(args);\n Pattern p = Pattern.compile(\"\\\\/([-]?[a-zA-Z]*)\");\n Matcher m = p.matcher(cmdline);\n while (m.find()) {\n String cur = m.group(1);\n if (cur.startsWith(\"-\")) {\n for (int i = 1; i < cur.length(); i++) {\n res.switches.remove(String.valueOf(cur.charAt(i)).toUpperCase());\n }\n } else {\n for (int i = 0; i < cur.length(); i++) {\n res.switches.add(String.valueOf(cur.charAt(i)).toUpperCase());\n }\n }\n }\n\n return res;\n }", "private static void parseCommandLine(String[] args) throws WorkbenchException {\n commandLine = new CommandLine('-');\r\n commandLine.addOptionSpec(new OptionSpec(PROPERTIES_OPTION, 1));\r\n commandLine.addOptionSpec(new OptionSpec(DEFAULT_PLUGINS, 1));\r\n commandLine.addOptionSpec(new OptionSpec(PLUG_IN_DIRECTORY_OPTION, 1));\r\n commandLine.addOptionSpec(new OptionSpec(I18N_FILE, 1));\r\n //[UT] 17.08.2005 \r\n commandLine.addOptionSpec(new OptionSpec(INITIAL_PROJECT_FILE, 1));\r\n commandLine.addOptionSpec(new OptionSpec(STATE_OPTION, 1));\r\n try {\r\n commandLine.parse(args);\r\n } catch (ParseException e) {\r\n throw new WorkbenchException(\"A problem occurred parsing the command line: \" + e.toString());\r\n }\r\n }", "void parse(String[] args);", "public interface CommandLineParser {\n\n CommandLine parse(Options options, String[] arguments) throws ParseException;\n CommandLine parse(Options options, String[] arguments, boolean stopAtNonOption) throws ParseException;\n\n}", "public static void main(String[] args) {\n CommandCliParser cliParser = new CommandCliParser();\n cliParser.parseCommand(\"--verbose\");\n }", "void main(CommandLine cmd);", "void parse(String[] args) throws Exception;", "private void parseArgs(String[] args) throws ParseException\n {\n CommandLineParser parser = new PosixParser();\n cmd = parser.parse(options, args);\n }", "protected P parse(String options, String[] args){\n HashMap cmdFlags = new HashMap();\n String flag;\n String nextFlag=null;\n StringBuffer errors=new StringBuffer();\n /**\n First go through options to see what should be in args\n */\n for(int which=0;which<options.length();which++){\n flag = \"-\"+options.substring(which,which+1);\n if(which+1<options.length()){\n nextFlag=options.substring(which+1,which+2);\n if (nextFlag.equals(\"-\")){\n cmdFlags.put(flag,nextFlag);\n } else\n if (nextFlag.equals(\"+\")){\n cmdFlags.put(flag,nextFlag);\n /*\n mark that it is required\n if found this will be overwritten by -\n */\n this.put(flag,nextFlag);\n } else\n //JDH changed to \"_\" from \";\" because too many cmdlines mess up ;\n if (nextFlag.equals(\"_\")){\n cmdFlags.put(flag,nextFlag);\n } else\n //JDH changed to \".\" from \":\" because too many cmdlines mess up ;\n if (nextFlag.equals(\".\")){\n cmdFlags.put(flag,\" \"); //JDH changed this from \":\"\n /*\n mark that it is required\n if found this will be overwritten by value\n JDH should use \" \" so it cannot be the same as a value\n */\n this.put(flag,\" \"); // mark that it is required\n } else {\n System.out.println(\"Bad symbol \"+nextFlag+\"in option string\");\n }\n which++;\n } else {\n System.out.println(\"Missing symbol in option string at \"+which);\n }\n }\n\n int arg=0;\n for(;arg<args.length;arg++){\n if (!args[arg].startsWith(\"-\")){\n break;\n }\n flag = args[arg];\n /*\n This should tell it to quit looking for flags or options\n */\n if (flag.equals(\"--\")){\n arg++;\n break;\n }\n if (!(cmdFlags.containsKey(flag))){\n errors.append(\"\\nbad flag \"+flag);\n continue;\n }\n if (((String)cmdFlags.get(flag)).equals(\"-\")){\n this.put(flag,\"-\");\n continue;\n }\n if (((String)cmdFlags.get(flag)).equals(\"+\")){\n this.put(flag,\"-\");// turns off the + because it was found\n continue;\n }\n if (!(arg+1<args.length)){\n errors.append(\"\\nMissing value for \"+flag);\n continue;\n }\n arg++;\n this.put(flag,args[arg]);\n }\n String[] params=null;\n params = new String[args.length - arg];\n\n int n=0;\n // reverse these so they come back in the right order!\n for(;arg<args.length;arg++){\n params[n++] = args[arg];\n }\n Iterator k = null;\n Map.Entry e = null;\n if (this.containsValue(\"+\")){\n // can iterate through to see which ones\n k = this.entrySet().iterator();\n while (k.hasNext()){\n if (\"+\".equals((String)(e=(Map.Entry)k.next()).getValue())){\n errors.append(\"\\nThe required flag \"+(String)e.getKey()+\" was not supplied.\");\n };\n }\n } \n /*\n Should change this to \" \" in accordance with remark above\n */\n //JDH changed to \" \" from \":\" in both spots below\n if (this.containsValue(\" \")){\n // can iterate through to see which ones\n k = this.entrySet().iterator();\n while (k.hasNext()){\n if (\" \".equals((String)(e=(Map.Entry)k.next()).getValue())){\n errors.append(\"\\nThe required option \"+(String)e.getKey()+\" was not supplied.\");\n }\n }\n }\n this.put(\" \",params);\n this.put(\"*\",errors.toString());\n return this;\n }", "public DummyCommand parse(String userInput) throws ParseException {\n HashMap<String, String> aliasList = getAliasManager().getAliasList();\n\n if (aliasList.isEmpty()) {\n return new DummyCommand(MESSAGE_EMPTY);\n }\n\n StringBuilder sb = new StringBuilder();\n aliasList.forEach((alias, command) -> sb.append(String.format(\"%s: %s\\n\", alias, command)));\n\n return new DummyCommand(sb.toString());\n }", "@Override\n\tpublic Command parse(String[] s) {\n\t\tif (s.length==1 && s[0].equalsIgnoreCase(\"HELP\"))\n\t\t\treturn new Help(); \n\t\telse return null;\n\t}", "private static void parseCommandLine(String[] args) {\r\n\t\tif (args.length != 3)\r\n\t\t\terror(\"usage: Tester server port url-file\");\r\n\t\t\t\r\n\t\tserverName = args[0];\r\n\t\tserverPort = Integer.parseInt(args[1]);\r\n\t\turlFileName = args[2];\r\n\t}", "private static CommandLine parseCommandLine(String[] args) {\n Option config = new Option(CONFIG, true, \"operator config\");\n Option brokerStatsZookeeper =\n new Option(BROKERSTATS_ZOOKEEPER, true, \"zookeeper for brokerstats topic\");\n Option brokerStatsTopic = new Option(BROKERSTATS_TOPIC, true, \"topic for brokerstats\");\n Option clusterZookeeper = new Option(CLUSTER_ZOOKEEPER, true, \"cluster zookeeper\");\n Option seconds = new Option(SECONDS, true, \"examined time window in seconds\");\n options.addOption(config).addOption(brokerStatsZookeeper).addOption(brokerStatsTopic)\n .addOption(clusterZookeeper).addOption(seconds);\n\n if (args.length < 6) {\n printUsageAndExit();\n }\n\n CommandLineParser parser = new DefaultParser();\n CommandLine cmd = null;\n try {\n cmd = parser.parse(options, args);\n } catch (ParseException | NumberFormatException e) {\n printUsageAndExit();\n }\n return cmd;\n }", "public static void main(String[] args)\r\n {\r\n CommandParser parser = new CommandParser(args[0]);\r\n parser.parseFile();\r\n }", "public CLI()\r\n\t{\r\n\t\t//lvl = new Level();\r\n\t\tthis.inputCommand = \"\";\r\n\t\t//this.exitStr = exitStr;\r\n\t\tin = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t}", "public static void main(String[] args) {\r\n\t\tCommandLine top = new CommandLine(new Main());\r\n\t\tif (args.length == 0) {\r\n\t\t\ttop.usage(System.out);\r\n\t\t}\r\n\t\t\r\n\t\tList<CommandLine> parsedCommands;\r\n\t\ttry {\r\n\t\t parsedCommands = top.parse(args);\r\n\t\t} catch (ParameterException ex) { // incorrect user input for one of the subcommands\r\n\t\t LOG.severe(\"Error parsing command line: \" + ex.getMessage());\r\n\t\t ex.getCommandLine().usage(System.out); // get the offended subcommand from the exception\r\n\t\t return;\r\n\t\t}\r\n\t\t\r\n\t\tfor (CommandLine parsed : parsedCommands) {\r\n\t\t if (parsed.isUsageHelpRequested()) {\r\n\t\t parsed.usage(System.out);\r\n\t\t return;\r\n\t\t } else if (parsed.isVersionHelpRequested()) {\r\n\t\t parsed.printVersionHelp(System.out);\r\n\t\t return;\r\n\t\t }\r\n\t\t}\r\n\t\tObject last = parsedCommands.get(parsedCommands.size() - 1).getCommand();\r\n\t\tif (last instanceof Runnable) {\r\n\t\t ((Runnable) last).run();\r\n\t\t return;\r\n\t\t}\r\n\t}", "static String parse(String input, User user)\n {\n if(input.length()==0 || input==null || input.matches(\"^[ \\t]*$\"))\n return LinSim.EMPTY_STRING;\n\n // set the base command\n StringTokenizer token=new StringTokenizer(input, \" \\t\");\n String baseCommand=token.nextToken();\n\n // Let's use some introspection magic...\n try\n {\n Class<?> cmdClass=Class.forName(\"org.linsim.Command\");\n // Note that ALL commands in the Command class must be public in order to be seen by getMethod() below\n Method method=cmdClass.getMethod(baseCommand, String.class);\n Object output=method.invoke(null, input, user);\n if(!LinSim.graphicalMode)\n java.lang.System.out.print(output.toString());\n // ToDo: use setText() for GUI later\n }\n catch(Throwable e)\n {\n return baseCommand + \": command not found.\\n\";\n }\n // after the command finishes execution, return to the input loop\n return LinSim.EMPTY_STRING;\n }", "public abstract ArgumentParser makeParser();", "public CommandArguments parse(String[] args) {\n ErrorSupport command = new ErrorSupport();\n command.checkLength(args);\n\n //parsing arguments\n CommandArguments arguments = new CommandArguments();\n for (int i = 0; i < args.length; i++) {\n if ((i == args.length - 1) && !args[i].equals(\"--help\")) {\n throw new IllegalArgumentException(\"Incorrect argument, --help for more information about app syntax\");\n }\n switch (args[i]) {\n case (\"--help\"):\n System.out.println(\"\\nHELP MENU \\nAvailable options and arguments: \\n \\t--latitude x \\t-enter latitude coordinate \\n \\t--longitude x\\t-enter longitude coordinate \\n \\t--sensorid x \\t-enter sensor's Id \\n \\t--apikey x \\t\\t-enter API key \\n \\t--history x \\t-enter number of hours to display from history data\\n\");\n System.exit(0);\n case (\"--latitude\"):\n i++;\n arguments.setLatitude(command.checkIsDouble(args[i]));\n break;\n case (\"--longitude\"):\n i++;\n arguments.setLongitude(command.checkIsDouble(args[i]));\n break;\n case (\"--sensorid\"):\n i++;\n arguments.setSensorId(command.checkIsInt(args[i]));\n break;\n case (\"--apikey\"):\n i++;\n arguments.setApiKey(command.checkApiKey(args[i]));\n break;\n case (\"--history\"):\n i++;\n arguments.setHistory(command.checkIsInt(args[i]));\n break;\n default:\n throw new IllegalArgumentException(\"Incorrect option, --help for more information about app syntax\");\n }\n }\n\n //checking environment API_KEY if there was no apikey in command line entered\n if (!arguments.hasApiKey() && System.getenv(\"API_KEY\") == null) {\n throw new IllegalArgumentException(\"No API Key found, check if you have entered the correct key or if there is a suitable environment variable ( API_KEY ), --help for more information about app syntax\");\n } else if (!arguments.hasApiKey()) {\n arguments.setApiKey(command.checkApiKey(System.getenv(\"API_KEY\")));\n }\n return arguments;\n }", "public boolean parse() {\n \n // create the version option\n Option optVersion = new Option(\"V\", \"version\", false, localization.getMessage(\"Help_Version\"));\n \n // create the help option\n Option optHelp = new Option(\"h\", \"help\", false, localization.getMessage(\"Help_Help\"));\n \n // create the log option\n Option optLog = new Option(\"l\", \"log\", false, localization.getMessage(\"Help_Log\"));\n \n // create the verbose option\n Option optVerbose = new Option(\"v\", \"verbose\", false, localization.getMessage(\"Help_Verbose\"));\n \n // create the timeout option\n Option optTimeout = new Option(\"t\", \"timeout\", true, localization.getMessage(\"Help_Timeout\"));\n \n // create the language option\n Option optLanguage = new Option(\"L\", \"language\", true, localization.getMessage(\"Help_Language\"));\n \n // add version\n commandLineOptions.addOption(optVersion);\n \n // add help\n commandLineOptions.addOption(optHelp);\n \n // add log\n commandLineOptions.addOption(optLog);\n \n // add verbose\n commandLineOptions.addOption(optVerbose);\n \n // add timeout\n commandLineOptions.addOption(optTimeout);\n \n // add language\n commandLineOptions.addOption(optLanguage);\n \n // create a new basic parser\n CommandLineParser parser = new BasicParser();\n \n // lets try to parse everthing\n try {\n \n // parse the arguments\n CommandLine line = parser.parse(commandLineOptions, theArgs);\n \n // if -L or --language found\n if (line.hasOption(\"language\")) {\n \n // create a new language controler\n LanguageController language = new LanguageController();\n \n // if the attempt to set the language according to the command\n // line has failed\n if (!language.setLanguage(line.getOptionValue(\"language\"))) {\n \n // print the list of available languages\n language.printLanguageHelp();\n \n // print the usage\n printUsage();\n \n // and simply return\n return false;\n }\n }\n \n // if -h or --help found\n if (line.hasOption(\"help\")) {\n \n // print version\n printVersion();\n \n // and usage\n printUsage();\n \n // return\n return false;\n \n } else {\n \n // if -v or --version found\n if (line.hasOption(\"version\")) {\n \n // print version\n printVersion();\n \n printSpecialThanks();\n \n // and return\n return false;\n \n } else {\n \n // get the list of files\n String[] files = line.getArgs();\n \n // we only expect one file\n if (files.length != 1) {\n \n // print version\n printVersion();\n \n // usage\n printUsage();\n \n // and return\n return false;\n \n } else {\n \n // if -t or --timeout found\n if (line.hasOption(\"timeout\")) {\n \n // try to convert the argument to a number\n try {\n \n // parse the long value\n executionTimeout = Long.parseLong(line.getOptionValue(\"timeout\"));\n \n // if it's not a valid number\n if (executionTimeout <= 0) {\n \n // print version\n printVersion();\n \n // usage\n printUsage();\n \n // and return\n return false;\n \n }\n } catch (NumberFormatException numberFormatException) {\n \n // we have a bad conversion\n \n // print version\n printVersion();\n \n // usage\n printUsage();\n \n // and return\n return false;\n }\n } else {\n \n // fallback to the default value, that is,\n // timeout is disabled\n executionTimeout = 0;\n }\n \n // active logging\n AraraLogging.enableLogging(line.hasOption(\"log\"));\n \n // set verbose flag\n showVerboseOutput = line.hasOption(\"verbose\");\n \n // everything is fine, set\n // the file\n theFile = files[0];\n \n // check if file exists\n if (!checkFile(theFile, configuration.getValidExtensions())) {\n \n // file not found, return false\n return false;\n \n }\n \n // and return\n return true;\n }\n }\n }\n \n } catch (ParseException parseException) {\n \n // something happened, in the last case print version\n printVersion();\n \n // and usage\n printUsage();\n \n // and simply return\n return false;\n \n }\n }", "public static void main(String[] args) throws ParseException {\n\t\t\n\t\t\n\t\t\n\t}", "protected void parseCommandLineArgs(String[] args) {\r\n // parse username/password;\r\n for(int i = 0; i < args.length; i++) {\r\n if(args[i].equals(\"-u\")) {\r\n username = args[i+1];\r\n }\r\n if(args[i].equals(\"-p\")) {\r\n password = args[i+1];\r\n }\r\n }\r\n \r\n }", "public static CommandLine parseCommandLine(String[] args) {\n Options options = getOptions();\n CommandLineParser cmdLineParser = new DefaultParser();\n\n CommandLine cmdLine = null;\n try {\n cmdLine = cmdLineParser.parse(options, args);\n } catch (ParseException pe) {\n printHelp(options);\n System.exit(1);\n }\n\n if (cmdLine == null) {\n printHelp(options);\n System.exit(1);\n }\n\n if (cmdLine.hasOption(\"help\")) {\n printHelp(options);\n System.exit(0);\n }\n\n return cmdLine;\n }", "@Test\n\tpublic void parseCommandTest() {\n\t\tassertFalse(myManager.parseCommand(\"quit\"));\n\t\tassertFalse(myManager.parseCommand(\"Quit\"));\n\t\tassertFalse(myManager.parseCommand(\"q uit\"));\n\t\t\n\t\tassertTrue(myManager.parseCommand(\"new job\"));\n\t\tassertTrue(myManager.parseCommand(\"NEW job\"));\n\t\tassertTrue(myManager.parseCommand(\"new\"));\n\t\tassertFalse(myManager.parseCommand(\"new jobzo\"));\n\t}", "public static void main( String args[] ) {\n\n parseInput(args);\n }", "private CommandLine() {\n\t}", "public void parse() {\n if (commandSeparate.length == 1) {\n parseTaskType();\n } else if (commandSeparate.length == 2) {\n parseTaskType();\n index = commandSeparate[1];\n taskName = commandSeparate[1];\n } else {\n parseTaskType();\n parseTaskName();\n parseTaskDate();\n }\n }", "public void parse()\n\t{\n\t\ttry\n\t\t{\n\t\t\tstatus = program();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t}", "public static void main(String[] args) throws ParseException\n {\n }", "public static void main(String args[]) throws ParseException {\n }", "@Test\n public void parse_validArgs_returnsListItemCommand() throws ParseException {\n assertEquals(parser.parse(\" \").getClass(), ListItemCommand.class);\n }", "@Test public void gracefullyEndsForEmptyInputs() {\n\t\tAssert.assertNotNull(parser.parse(new String[0], new CliOptions()));\n\t}", "public static void main(String[] args) throws ParseException {\n\t}", "protected abstract void parseArgs() throws IOException;", "public void parse(String[] args) throws ParseException {\r\n\r\n options.addOption(configFileOption);\r\n CommandLineParser parser = new GnuParser();\r\n\r\n CommandLine line = parser.parse(options, args);\r\n if (line.hasOption(\"f\")) {\r\n configFile = line.getOptionValue(\"f\");\r\n }\r\n }", "private Command parse() throws ParseException {\n next();\n expect(Token.COMMAND);\n cmd = new Command(text);\n next();\n while (!((token == Token.WHERE) || (token == Token.RETURN) || (token == Token.EOL))) {\n param();\n }\n if (token == Token.WHERE) {\n where();\n }\n if (token == Token.RETURN) {\n returns();\n }\n expect(Token.EOL);\n return cmd;\n }", "private static void parseArguments(String[] args, MiParaPipeLine p) throws IOException{\n options.addOption(\"i\", \"input-file\", true, \"FASTA input file for query sequences\");\n options.addOption(\"o\", \"output-folder\", true, \"output folder for prediction results\");\n options.addOption(\"t\", \"test\", true, \"run test example \");\n options.addOption(\"c\", \"config\", true, \"configuration file for miRPara\");\n options.addOption(\"a\", \"action\", true, \"action to perform\");\n options.addOption(\"h\", \"help \", false, \"print help\");\n\n logger.trace(\"parsing args\");\n CommandLineParser parser = new BasicParser();\n CommandLine cmd = null;\n\n \n try {\n cmd = parser.parse(options, args);\n if (cmd.hasOption(\"h\")){\n print_help();\n System.out.print(p.reportAvailableActions());\n }\n\n if (cmd.hasOption(\"t\")){ \n logger.info(\"test set to \" + cmd.getOptionValue(\"l\"));\n test = cmd.getOptionValue(\"t\").toLowerCase();\n }\n \n if (cmd.hasOption(\"i\")) {\n logger.info(\"input file set to \" + cmd.getOptionValue(\"i\"));\n p.setInputFilename(cmd.getOptionValue(\"i\"));\t\n } \n\n if (cmd.hasOption(\"o\")){\n logger.info(\"output folder is\" + cmd.getOptionValue(\"o\"));\n p.setOutputFolder(cmd.getOptionValue(\"o\"));\n }\n \n if (cmd.hasOption(\"a\")){\n logger.info(\"requested action is \" + cmd.getOptionValue(\"a\"));\n p.setAction(cmd.getOptionValue(\"a\"));\n }\n \n if (cmd.hasOption(\"c\")){\n configFile = cmd.getOptionValue(\"c\");\n logger.info(\"Configuration file is \" + configFile);\n p.setConfigFilename(configFile);\n }\n\n\n \n if(p.getConfigFilename()==null){\n throw new ParseException(\"no configuration file was specified\") ; \n }\n \n if(new File(p.getConfigFilename()).exists() == false){\n throw new IOException(\"configuration file <\" + p.getConfigFilename() + \"> does not exist\");\n } \n \n if(new File(p.getInputFilename()).exists()== false)\n {\n throw new IOException(\"input file <\" + p.getInputFilename() + \"> does not exist\");\n }\n \n if(new File(p.getOutputFolder()).exists() == false)\n {\n if (new File(p.getOutputFolder()).getParentFile().exists() == false)\n throw new IOException(\"parent file <\" + new File(p.getOutputFolder()).getParentFile() + \"> does not exist\");\n \n new File(p.getOutputFolder()).mkdir();\n logger.info(\"create results folder <\" + p.getOutputFolder() + \">\");\n }\n\n } catch (ParseException e) {\n\n logger.fatal(\"Failed to parse command line properties\", e);\n print_help();\n\n }\n\n \n }", "public static Command parse(String input) throws DukeException {\r\n String[] inputArr = input.split(\" \", 2);\r\n String command = inputArr[0];\r\n\r\n switch (command) {\r\n case \"bye\":\r\n return new ExitCommand();\r\n case \"list\":\r\n return new ListCommand();\r\n case \"done\":\r\n try {\r\n return new DoneCommand(inputArr[1]);\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"Please specify the task number you wish to\\n mark as done!\");\r\n }\r\n case \"delete\":\r\n try {\r\n return new DeleteCommand(inputArr[1]);\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"Please specify the task number you wish to\\n delete!\");\r\n }\r\n case \"todo\":\r\n try {\r\n return new AddCommand(new Todo(inputArr[1]));\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"The description of a todo cannot be empty.\");\r\n }\r\n case \"deadline\":\r\n try {\r\n String[] detailsArr = inputArr[1].split(\" /by \");\r\n return new AddCommand(new Deadline(detailsArr[0], detailsArr[1]));\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\r\n \"Please follow the format:\\n deadline <description> /by <DD/MM/YYYY HHMM>\");\r\n }\r\n case \"event\":\r\n try {\r\n String[] detailsArr = inputArr[1].split(\" /at \");\r\n return new AddCommand(new Event(detailsArr[0], detailsArr[1]));\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\r\n \"Please follow the format:\\n event <description> /at <DD/MM/YYYY HHMM>\");\r\n }\r\n case \"find\":\r\n try {\r\n return new FindCommand(inputArr[1]);\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"Please specify what you are searching for!\");\r\n }\r\n default:\r\n throw new DukeException(\"I'm sorry, but I don't know what that means!\");\r\n }\r\n }", "public static void main(String[] args) throws IOException, ParseException {\n\t}", "@Override\n public ImportCommand parse(String args) throws ParseException {\n if (args.isEmpty()) {\n return parseFile(getFileFromFileBrowser());\n } else {\n return parseFile(getFileFromArgs(args));\n }\n }", "public Command parse(String[] s) {\n\t\t\n\t\tif(s.length == 1 && s[0].equalsIgnoreCase(\"RUN\"))\n\t\t\treturn new Run();\n\t\telse return null;\n\t}", "public interface CommandParser {\n String[] splitStringIntoCommands(String string);\n String[] splitCommandIntoParams(String string);\n String convertArrayToString(String... stringArray);\n}", "public CopsOptionParser() {\n\t\tsuper();\n\t\taddOption(HELP);\n\t\taddOption(SCENARIO);\n\t\taddOption(VALIDATE_ONLY);\n\t\taddOption(CONF);\n\n\t}", "public CLI(String inputCommand)\r\n\t{\r\n\t\t//lvl = new Level();\r\n\t\tthis.inputCommand = inputCommand;\r\n\t\tin = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t}", "private void parseCommand(String line) throws IllegalArgumentException {\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tString commandString;\n\t\tif(tokens.length == 4) {\n\t\t\tcommandString = tokens[2] + \" \" + tokens[3];\n\t\t}\n\t\telse if(tokens.length == 3) {\n\t\t\tcommandString = tokens[2];\n\t\t}\n\t\telse {\n\t\t\tthrow new IllegalArgumentException(\"Invalid command argument\");\n\t\t}\n\t\tthis.registerCommand(tokens[1].charAt(0), commandString);\n\t}", "static Command parse(String text) throws ParseException {\n Parser parser = new Parser(text);\n return parser.parse();\n }", "private static void parseCommandLine(String[] command) {\r\n\t\tint i = 0;\r\n\t\t\r\n\t\twhile (i < command.length) {\r\n\t\t\tif (command[i].equals(\"-f\")) { // input file\r\n\t\t\t\tdataFileName = command[i+1];\r\n\t\t\t\ti += 2;\r\n\t\t\t}\r\n\t\t\telse if (command[i].equals(\"-s\")) { // data split\r\n\t\t\t\tif (command[i+1].equals(\"simple\")) {\r\n\t\t\t\t\tevaluationMode = DataSplitManager.SIMPLE_SPLIT;\r\n\t\t\t\t\ttestRatio = Double.parseDouble(command[i+2]);\r\n\t\t\t\t}\r\n\t\t\t\telse if (command[i+1].equals(\"pred\")) {\r\n\t\t\t\t\tevaluationMode = DataSplitManager.PREDEFINED_SPLIT;\r\n\t\t\t\t\tsplitFileName = command[i+2].trim();\r\n\t\t\t\t}\r\n\t\t\t\telse if (command[i+1].equals(\"kcv\")) {\r\n\t\t\t\t\tevaluationMode = DataSplitManager.K_FOLD_CROSS_VALIDATION;\r\n\t\t\t\t\tfoldCount = Integer.parseInt(command[i+2]);\r\n\t\t\t\t}\r\n\t\t\t\telse if (command[i+1].equals(\"rank\")) {\r\n\t\t\t\t\tevaluationMode = DataSplitManager.RANK_EXP_SPLIT;\r\n\t\t\t\t\tuserTrainCount = Integer.parseInt(command[i+2]);\r\n\t\t\t\t\tminTestCount = 10;\r\n\t\t\t\t}\r\n\t\t\t\ti += 3;\r\n\t\t\t}\r\n\t\t\telse if (command[i].equals(\"-a\")) { // algorithm\r\n\t\t\t\trunAllAlgorithms = false;\r\n\t\t\t\talgorithmCode = command[i+1];\r\n\t\t\t\t\r\n\t\t\t\t// parameters for the algorithm:\r\n\t\t\t\tint j = 0;\r\n\t\t\t\twhile (command.length > i+2+j && !command[i+2+j].startsWith(\"-\")) {\r\n\t\t\t\t\tj++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\talgorithmParameters = new String[j];\r\n\t\t\t\tSystem.arraycopy(command, i+2, algorithmParameters, 0, j);\r\n\t\t\t\t\r\n\t\t\t\ti += (j + 2);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static Command parse(String str) throws DukeException {\n\n String[] arr = str.split(\" \", 2);\n if (arr.length < 1) {\n throw new DukeException(\"No command was given.\");\n }\n String firstWord = arr[0];\n if (str.equalsIgnoreCase(\"bye\")) {\n return new ExitCommand();\n } else if (str.equalsIgnoreCase(\"list\")) {\n return new ListCommand();\n } else {\n Action action = parseFirstWord(firstWord.toLowerCase());\n\n if (arr.length < 2 && (action == Action.Done || action == Action.Delete)) {\n throw new DukeException(\"duke.task.Task number for \" + firstWord + \" is not given.\");\n } else if (arr.length < 2 || arr[1].isBlank()) {\n throw new DukeException(\"The description of \" + firstWord + \" cannot be empty\");\n } else {\n return actionToCommand(action, arr[1]);\n }\n }\n }", "public static Options prepCliParser()\n\t{\n\t\tOptions knowsCliDtd = new Options();\n\t\tfinal boolean needsEmbelishment = true;\n\t\tknowsCliDtd.addOption( configFlagS, configFlagLong, needsEmbelishment,\n\t\t\t\t\"path to config (ex C:\\\\Program Files\\\\apache\\\\tomcat.txt)\" );\n\t\tknowsCliDtd.addOption( verboseFlagS, verboseFlagLong,\n\t\t\t\t! needsEmbelishment, \"show debug information\" );\n\t\tknowsCliDtd.addOption( helpFlagS, helpFlagLong,\n\t\t\t\t! needsEmbelishment, \"show arg flags\" );\n\t\treturn knowsCliDtd;\n\t}", "public static void main(final String[] args) {\n\t\tcheckUse(VParser.parse(FileUtils.readAllText(args[0])));\n\t}", "@Test public void completeUsage() {\n\t\tfinal String[] args = new String[]{\"-verbose\", \"-speed\", \"4\", \"-filter\", \"a\", \"-filter\", \"b\", \"x\", \"y\", \"z\"};\n\t\tfinal CliActuators actuators = parser.parse(args, OPTIONS);\n\t\t// -verbose\n\t\tAssert.assertNotNull(actuators.getActuatorById(\"verbose\"));\n\t\t// -speed\n\t\tAssert.assertEquals(\"4\", actuators.getActuatorById(\"speed\").getValue());\n\t\t// -filter\n\t\tfinal CliActuator filter = actuators.getActuatorById(\"filter\");\n\t\tfinal List<String> filters = filter.getValues();\n\t\tAssert.assertEquals(2, filters.size());\n\t\tAssert.assertEquals(\"a\", filters.get(0));\n\t\tAssert.assertEquals(\"b\", filters.get(1));\n\t\t// rests\n\t\tfinal List<String> rests = actuators.getRests();\n\t\tAssert.assertEquals(3, rests.size());\n\t\tAssert.assertEquals(\"x\", rests.get(0));\n\t\tAssert.assertEquals(\"y\", rests.get(1));\n\t\tAssert.assertEquals(\"z\", rests.get(2));\n\t}", "HashMap<String, String> cliParser(String[] args){\n CmdLineParser parser = new CmdLineParser(this);\n try {\n // parse the arguments.\n parser.parseArgument(args);\n\n if (this.printHelp) {\n System.err.println(\"Usage:\");\n parser.printUsage(System.err);\n System.err.println();\n System.exit(0);\n }\n } catch( CmdLineException e ) {\n System.err.println(e.getMessage());\n System.err.println(\"java BGPCommunitiesParser.jar [options...] arguments...\");\n // print the list of available options\n parser.printUsage(System.err);\n System.err.println();\n\n // print option sample. This is useful some time\n System.err.println(\" Example: java BGPCommunitiesParser.jar\"+parser.printExample(ALL));\n System.exit(0);\n }\n\n HashMap<String, String> cliArgs = new HashMap<>();\n String[] period;\n long startTs = 0;\n long endTs = 0;\n // parse the period argument\n try{\n period = this.period.split(\",\");\n startTs = this.dateToEpoch(period[0]);\n endTs = this.dateToEpoch(period[1]);\n if (startTs >= endTs){\n System.err.println(\"The period argument is invalid. \" +\n \"The start datetime should be before the end datetime.\");\n System.exit(-1);\n }\n }\n catch (java.lang.ArrayIndexOutOfBoundsException e) {\n System.err.println(\"The period argument is invalid. \" +\n \"Please provide two comma-separated datetimes in the format YYYMMMDD.hhmm \" +\n \"(e.g. 20180124.0127,20180125.1010).\");\n System.exit(-1);\n }\n\n cliArgs.put(\"communities\", this.communities);\n cliArgs.put(\"start\", Long.toString(startTs));\n cliArgs.put(\"end\", Long.toString(endTs));\n cliArgs.put(\"collectors\", this.collectors);\n cliArgs.put(\"outdir\", this.outdir);\n cliArgs.put(\"facilities\", this.facilities);\n cliArgs.put(\"overlap\", Long.toString(this.overlap));\n return cliArgs;\n }", "private static void parse(String[] command, Player player) {\n\t\t\n\t\t\n\t}", "static public void main(String argv[]) {\n String archivo_a_parsear = \"/home/maldad/repos/automatas/semantico/EjemploA/src/ejemploa/test.txt\";\n try {\n parser p = new parser(new Lexer(new FileReader(archivo_a_parsear)));\n Object result = p.parse().value; \n } catch (Exception e) {\n /* do cleanup here -- possibly rethrow e */\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws IOException {\r\n\t\t\r\n\t\tSystem.out.println(parseInputFile());\r\n\t\t\r\n\t}", "protected abstract String getCommandLine() throws ConfigException;", "public static void main(String[] args) {\n switch (args[0]) {\r\n case \"-createUser\" -> createUser(args);\r\n case \"-showAllUsers\" -> showAllUsers();\r\n case \"-addTask\" -> addTask(args);\r\n case \"-showTasks\" -> showTasks();\r\n default -> {\r\n try {\r\n throw new IncorrectCommandFormatException();\r\n } catch (IncorrectCommandFormatException exception) {\r\n exception.printStackTrace();\r\n }\r\n }\r\n }\r\n }", "protected abstract void go(CommandLine line) throws Exception;", "public Command parse(String[] s) {\r\n\t\t\t\r\n\t\tif (s.length == 1 && s[0].equalsIgnoreCase(\"QUIT\"))\r\n\t\t\treturn new Quit();\r\n\t\telse \r\n\t\t\treturn null;\r\n\t}", "protected int parseOptions(final String[] args) {\n\t\tOptions options = new Options();\n\t\toptions.addOption(\"a\", \"start\", true, \"Start an asynchronous task\");\n\t\toptions.addOption(\"h\", \"hostname\", true, \"Specify the hostname to connect to\");\n\t\toptions.addOption(\"l\", \"list\", false, \"List the available asynchronous tasks\");\n\t\toptions.addOption(\"o\", \"stop\", true, \"Stop an asynchronous task\");\n\t\toptions.addOption(\"p\", \"port\", true, \"Specify the port to connect to\");\n\t\toptions.addOption(\"i\", \"identifier\", true, \"Specify the identifier to synchronize\");\n\t\toptions.addOption(\"t\", \"attributes\", true, \"Specify the attributes pivot to synchronize (comma separated, identifier parameter required)\");\n\t\toptions.addOption(\"s\", \"status\", true, \"Get a task status\");\n\n\t\tCommandLineParser parser = new GnuParser();\n\n\t\ttry {\n\t\t\tCommandLine cmdLine = parser.parse(options, args);\n\t\t\tif ( cmdLine.hasOption(\"a\") ) {\n\t\t\t\toperation = OperationType.START;\n\t\t\t\ttaskName = cmdLine.getOptionValue(\"a\");\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"l\") ) {\n\t\t\t\toperation = OperationType.TASKS_LIST;\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"o\") ) {\n\t\t\t\toperation = OperationType.STOP;\n\t\t\t\ttaskName = cmdLine.getOptionValue(\"o\");\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"s\") ) {\n\t\t\t\toperation = OperationType.STATUS;\n\t\t\t\ttaskName = cmdLine.getOptionValue(\"s\");\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"i\") ) {\n\t\t\t\tidToSync = cmdLine.getOptionValue(\"i\");\n\t\t\t\tif(cmdLine.hasOption(\"t\")) {\n\t\t\t\t\tStringTokenizer attrsStr = new StringTokenizer(cmdLine.getOptionValue(\"t\"),\",\");\n\t\t\t\t\twhile(attrsStr.hasMoreTokens()) {\n\t\t\t\t\t\tString token = attrsStr.nextToken();\n\t\t\t\t\t\tif(token.contains(\"=\")) {\n\t\t\t\t\t\t\tattrsToSync.put(token.substring(0, token.indexOf(\"=\")), token.substring(token.indexOf(\"=\")+1));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tLOGGER.error(\"Unknown attribute name=value couple in \\\"{}\\\". Please check your parameters !\", token);\n\t\t\t\t\t\t\tprintHelp(options);\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (cmdLine.hasOption(\"t\") ) {\n\t\t\t\tLOGGER.error(\"Attributes specified, but missing identifier !\");\n\t\t\t\tprintHelp(options);\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"h\") ) {\n\t\t\t\thostname = cmdLine.getOptionValue(\"h\");\n\t\t\t} else {\n\t\t\t\thostname = \"localhost\";\n\t\t\t\tLOGGER.info(\"Hostname parameter not specified, using {} as default value.\", hostname);\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"p\") ) {\n\t\t\t\tport = cmdLine.getOptionValue(\"p\");\n\t\t\t} else {\n\t\t\t\tport = \"1099\";\n\t\t\t\tLOGGER.info(\"TCP Port parameter not specified, using {} as default value.\", port);\n\t\t\t}\n\t\t\tif (operation == OperationType.UNKNOWN ) {\n\t\t\t\tprintHelp(options);\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t} catch (ParseException e) {\n\t\t\tLOGGER.error(\"Unable to parse the options ({})\", e.toString());\n\t\t\tLOGGER.debug(e.toString(), e);\n\t\t\treturn 1;\n\t\t}\n\t\treturn 0;\n\t}", "public ParseResult parse(String string, String lastLabel) {\n\t\t\n\t\tstring = upcase(string);\n\t\tstring = string.replaceAll(\"\\\\r\", \"\");\n\t\tstring = string.replaceAll(\"\\\\n\", \"\");\n\t\t\n\t\tint tokenStartPos = 0, argstartcommand = 0;\n\t\t\n\t\tParseResult result = new ParseResult();\n\t\tresult.originalLine = string;\n\t\tif (string.matches(\"[ \\t]*\")) {\n\t\t\tresult.empty = true;\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t// save the original string for later reference, manipulate a copy of it\n\t\tString s = escape(string); // escaping has to be done to allow for spaces and tabs inside strings\n\t\t\n\t\t// comment at the end? strip it!\n\t\ts = stripComments(s, result);\n\t\t\n\t\t// label at the beginning? remember it, then strip it!\n\t\t// first, see whether there might be a label in the string\n\t\tif (labelEnd(s) != -1) {\n\t\t\t// if so, check its validity\n\t\t\tString checkedLabel = getLabel(s);\n\t\t\tif (checkedLabel == null) {\n\t\t\t\tresult.error = new ParseError(result.originalLine, getRawLabelString(s), 0, \"Invalid Label\");\n\t\t\t\treturn result;\n\t\t\t} else {\n\t\t\t\tresult.label = checkedLabel;\n\t\t\t\tlastLabel = checkedLabel;\n\t\t\t\ttokenStartPos = labelEnd(s);\n\t\t\t\ts = stripLabel(s);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// anything left?\n\t\tif (s.matches(\"[, \\t]*\")) {\n\t\t\tresult.labelOnly = true;\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t// seems to be a command, analyze it\n\t\tArrayList<FullArgument> arguments = new ArrayList<>();\n\t\tString command = null, argument = \"\";\n\t\tboolean commaDone = false;\n\t\tint nextSize = -1, size, type, lastType = Op.NULL;\n\t\tboolean sizeExplicit = false;\n\n /*\n * before splitting the string into tokens, remove spaces in \"expressions\" between square brackets\n * in order to avoid certain false positives like: \n * - \"A comma must only be placed after a parameter\" (occurs e.g with \"mov [eax + 1], ...\") \n * - \"You must place a comma between any two parameters\" (occurs e.g with \"mov [ ebx +1], ...\")\n * - \"Invalid expression\" (occurs e.g. with mov eax, [ebx + 1]\" or \"mov eax, [ ebx]\"\n */ \n StringBuffer sb = new StringBuffer();\n Pattern pt = Pattern.compile(\"\\\\[.*\\\\]\");\n Matcher mt = pt.matcher(s);\n\n while(mt.find()) {\n // remove all spaces/tabs between brackets to avoid the false positives outlined above \n mt.appendReplacement(sb, mt.group(0).replaceAll(\"[ \\t]\", \"\"));\n }\n mt.appendTail(sb);\n s = sb.toString(); \n\n\t\tString[] tokens = s.split(\"[ \\t]\"); // split the string into \"words\"/tokens\n\t\tfor (String token : tokens) { // and look at any ...\n\t\t\tif (!token.equals(\"\")) { // ... non-empty word\n\t\t\t\n\t\t\t\ttoken = unescape(token);\n\t\t\t\targument = hex2dec(token); // convert any numbers to decimal\n\t\t\t\ttype = getOperandType(argument);\n\t\t\t\t// the token's start position is needed for correct error highlighting\n\t\t\t\ttokenStartPos = string.indexOf(token, tokenStartPos);\n\t\t\t\t// syntax checking\n\t\t\t\tif (lastType == Op.SIZEQUALI) {\n\t\t\t\t\tif (!Op.matches(type, Op.MEM | Op.IMM | Op.LABEL | Op.VARIABLE)) {\n\t\t\t\t\t\tresult.error = new ParseError(string, token, tokenStartPos,\n\t\t\t\t\t\t\t\"Only an immediate or a memory location is allowed after a size qualifier\");\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (type == Op.COMMA) {\n\t\t\t\t\tif (!Op.matches(lastType, Op.PARAM)) {\n\t\t\t\t\t\tresult.error = new ParseError(string, token, tokenStartPos,\n\t\t\t\t\t\t\t\"A comma must only be placed after a parameter\");\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t\tcommaDone = true;\n\t\t\t\t}\n\t\t\t\t// the actual parsing\n\t\t\t\t\n\t\t\t\tif (Op.matches(type, Op.SIZEQUALI)) {\n\t\t\t\t\t// if it's a size qualifier, remember its information and we're done\n\t\t\t\t\tnextSize = getOperandSize(token, type);\n\t\t\t\t} else if (type == Op.COMMA) {\n\t\t\t\t\t// if it was only a comma, do nothing else\n\t\t\t\t} else if (command == null) {\n\t\t\t\t\t// if there was no command so far, the current token will be it\n\t\t\t\t\tcommand = token;\n\t\t\t\t\tresult.mnemo = command;\n\t\t\t\t\targstartcommand = tokenStartPos;\n\t\t\t\t\tcommaDone = true; // no comma necessary directly after the command\n\t\t\t\t\t// otherwise, it's an argument for a command\n\t\t\t\t} else {\n\t\t\t\t\t// determine the argument's size\n\t\t\t\t\tsize = -1;\n\t\t\t\t\tif (!commaDone && Op.matches(type, Op.PARAM)) {\n\t\t\t\t\t\tresult.error = new ParseError(string, token, tokenStartPos,\n\t\t\t\t\t\t\t\"You must place a comma between any two parameters\");\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t\tif (nextSize != -1) { // previous size qualifier?\n\t\t\t\t\t\tif (Op.matches(type, Op.IMM | Op.CHARS)) {\n\t\t\t\t\t\t\tif (getOperandSize(argument, type) > nextSize) {\n\t\t\t\t\t\t\t\tresult.error = new ParseError(string, token, tokenStartPos,\n\t\t\t\t\t\t\t\t\t\"Operand does not match previous size qualifier.\");\n\t\t\t\t\t\t\t\treturn result;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsize = nextSize;\n\t\t\t\t\t\tnextSize = -1;\n\t\t\t\t\t\tsizeExplicit = true;\n\t\t\t\t\t} else if (!Op.matches(type, Op.IMM)) {\n\t\t\t\t\t\tsize = getOperandSize(argument, type);\n\t\t\t\t\t}\n\t\t\t\t\t// update the type information with the size, e.g. we had MEM and now get M32\n\t\t\t\t\ttype = getSizedOperandType(argument, type, size);\n\t\t\t\t\t// add the argument to the list of arguments\n\t\t\t\t\targuments.add(new FullArgument(argument, token, tokenStartPos, type, size, sizeExplicit,\n\t\t\t\t\t\tdataspace));\n\t\t\t\t\tsizeExplicit = false;\n\t\t\t\t\tcommaDone = type == Op.FPUQUALI;\n\t\t\t\t\t// if the first token was a prefix and the current argument is actually\n\t\t\t\t\t// the command, no comma is required afterwards\n\t\t\t\t\tif (commandLoader.commandExists(argument)) {\n\t\t\t\t\t\tcommaDone = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlastType = type; // remember the argument's type\n\t\t\t\ttokenStartPos += token.length();// and add its length to the search start position for the\n\t\t\t\t// next one\n\t\t\t}\n\t\t}\n\t\t\n\t\t// swap command and first argument if the command is actually a prefix\n\t\tif (Op.matches(getOperandType(command), Op.PREFIX) && (arguments.size() > 0)) {\n\t\t\tString temp = command;\n\t\t\tcommand = arguments.get(0).arg;\n\t\t\tresult.mnemo = command;\n\t\t\targuments.set(0, new FullArgument(temp, temp, 0, Op.PREFIX, -1, false, dataspace));\n\t\t\targstartcommand += temp.length();\n\t\t} else if ((arguments.size() > 0) && (arguments.get(0).address.type == Op.PREFIX)) {\n\t\t\tresult.error = new ParseError(string, arguments.get(0),\n\t\t\t\t\"Prefixes must be placed before the command\");\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t// check whether the command exists\n\t\tif (!commandLoader.commandExists(command)) {\n\t\t\tresult.mnemo = null;\n\t\t\tresult.error = new ParseError(string, command, argstartcommand, \"Unknown command\");\n\t\t\treturn result;\n\t\t}\n\t\t// load the command object\n\t\tJasminCommand cmd = (JasminCommand) commandLoader.getCommand(command);\n\t\tif (cmd instanceof PreprocCommand) {\n\t\t\t// note: PreprocCommands will be executed later on!\n\t\t\tif (lastLabel == null) {\n\t\t\t\tresult.error = new ParseError(string, command, 0,\n\t\t\t\t\t\"Preprocessor commands must be preceded by a label.\");\n\t\t\t\treturn result;\n\t\t\t} else {\n\t\t\t\tdataspace.registerConstant(lastLabel);\n\t\t\t}\n\t\t} else if (cmd instanceof PseudoCommand) {\n\t\t\t// if a pseudo command follows a label, the label has to be registered as a variable,\n\t\t\t// as the command won't be executed right away\n\t\t\tif (lastLabel != null) {\n\t\t\t\tdataspace.registerVariable(lastLabel);\n\t\t\t}\n\t\t} else {\n\t\t\t// if a normal command follows a label that previously may have been a constant/variable, reset\n\t\t\t// its state\n\t\t\tif (lastLabel != null) {\n\t\t\t\tdataspace.unregisterConstant(lastLabel);\n\t\t\t\tdataspace.unregisterVariable(lastLabel);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// check for >1 memory access\n\t\tif (!cmd.overrideMaxMemAccess(command)) {\n\t\t\tint numMemoryAccesses = 0;\n\t\t\tfor (FullArgument a : arguments) {\n\t\t\t\tif ((a.address.type & Op.MEM) != 0) {\n\t\t\t\t\tnumMemoryAccesses++;\n\t\t\t\t}\n\t\t\t\tif (numMemoryAccesses > 1) {\n\t\t\t\t\tresult.error = new ParseError(string, a, \"Only one memory access allowed.\");\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t\n\t\t// initialize a Parameters object for the command to play with\n\t\tParameters param = new Parameters(dataspace, this);\n\t\tparam.set(string, command, arguments, cmd.defaultSize(command), cmd.signed());\n\t\tif (lastLabel != null) {\n\t\t\tparam.label = lastLabel;\n\t\t}\n\t\tfor (FullArgument a : arguments) {\n\t\t\tresult.usedLabels.addAll(a.usedLabels);\n\t\t}\n\n\t\tfor (FullArgument a : arguments) {\n\t\t\t// check validity of the arguments\n\t\t\tString errorMsg = isValidOperand(a, false);\n\t\t\tif (errorMsg != null) {\n\t\t\t\tresult.error = new ParseError(string, a, errorMsg);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// let the command do command-specific validating of its arguments\n\t\tParseError error = cmd.validate(param);\n\t\tif (error != null) {\n\t\t\tresult.error = error;\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\tresult.command = cmd;\n\t\tresult.param = param;\n\t\t\n\t\t// preprocessing commands are executed right now\n\t\tif (cmd instanceof PreprocCommand) {\n\t\t\tcmd.execute(param);\n\t\t}\n\t\treturn result;\n\t}", "@Override\n public Command parseCommand(String commandText, ViewController viewController, Cli cli) throws InvalidCommandException {\n\n String prefix = \"\";\n String suffix = \"\";\n\n for (int i = 0;i<commandText.length();i++){\n if (commandText.charAt(i) != ' '){\n prefix = prefix + commandText.charAt(i);\n } else {\n for (i++;i<commandText.length();i++)\n suffix = suffix + commandText.charAt(i);\n }\n }\n\n\n if (prefix.equals(\"\"))\n throw new InvalidCommandException();\n\n switch(prefix){\n case \"exit\" : {\n return new ExitCommand();\n }\n case \"help\" : {\n return new HelpCommand();\n }\n case \"showGameboard\" : {\n return new ShowGameBoardCommand(cli);\n }\n case \"showMarket\" : {\n return new ShowMarketCommand(cli);\n }\n case \"showPlayer\" : {\n\n int n = 0;\n int temp;\n boolean found = false;\n\n for (int i = 0; i < suffix.length() && !found; i++) {\n if ( suffix.charAt(i) != ' '){\n temp = suffix.charAt(i) -'0';\n if (temp < 0 || temp > 9)\n throw new InvalidCommandException();\n n = temp;\n found = true;\n }\n\n }\n if (n < 1 || n > 4)\n throw new InvalidCommandException();\n return new ShowPlayerCommand(n, viewController);\n\n }\n case \"showProductionDecks\" : {\n return new ShowProductionDeckCommand(cli);\n }\n case \"showReserve\" : {\n return new ShowReserveCommand(cli);\n }\n default: {\n throw new InvalidCommandException();\n }\n }\n\n }", "public ProgramParser(String prog, String input) {\n ProgramParser.programCode = new java.io.StringReader(prog);\n ProgramParser.stringInput = input;\n //System.out.println(\"Program: \" + prog + \" - input: \" + programInput);\n }", "private void cli (String[] args)\n {\n if (args.length != 2) {\n System.out.println(\"Usage: <analyzer> input-file output-file\");\n return;\n }\n dataFilename = args[1];\n super.cli(args[0], this);\n }", "public static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\tValuesRecords values = new ValuesRecords(args[1]);\n\t\tBTreeStructure btree = new BTreeStructure(args[0]);\n\t\twhile(sc.hasNext()) {\n\t\t\t//get command here!\n\t\t\tString commline = sc.nextLine();\n\t\t\t//split, then check comm[0] if exit; break if true, else commandLine\n\t\t\t\n\t\t\tString[] comm = commline.split(\" \");\n\t\t\t\n\t\t\tif(comm[0].equals(\"exit\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//invalid command rejector\n\t\t\telse if (!comm[0].equals(\"insert\")||!comm[0].equals(\"select\")||!comm[0].equals(\"update\")) {\n\t\t\t\tSystem.out.println(\"ERROR: invalid command\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcommandLine(values, btree, commline);\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}", "private static JSAP prepCmdLineParser()\n throws Exception {\n final JSAP jsap = new JSAP();\n\n final FlaggedOption site_xml = new FlaggedOption(\"hbase_site\")\n .setStringParser(JSAP.STRING_PARSER)\n .setDefault(\"/etc/hbase/conf/hbase-site.xml\")\n .setRequired(true)\n .setShortFlag('c')\n .setLongFlag(JSAP.NO_LONGFLAG);\n site_xml.setHelp(\"Path to hbase-site.xml\");\n jsap.registerParameter(site_xml);\n\n final FlaggedOption jmxremote_password = new FlaggedOption(\"jmxremote_password\")\n .setStringParser(JSAP.STRING_PARSER)\n .setDefault(\"/etc/hbase/conf/jmxremote.password\")\n .setRequired(true)\n .setShortFlag('j')\n .setLongFlag(JSAP.NO_LONGFLAG);\n jmxremote_password.setHelp(\"Path to jmxremote.password.\");\n jsap.registerParameter(jmxremote_password);\n\n final FlaggedOption throttleFactor = new FlaggedOption(\"throttleFactor\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"1\")\n .setRequired(false)\n .setShortFlag('t')\n .setLongFlag(JSAP.NO_LONGFLAG);\n throttleFactor.setHelp(\"Throttle factor to limit the compaction queue. The default (1) limits it to num threads / 1\");\n jsap.registerParameter(throttleFactor);\n\n final FlaggedOption num_cycles = new FlaggedOption(\"numCycles\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"1\")\n .setRequired(false)\n .setShortFlag('n')\n .setLongFlag(JSAP.NO_LONGFLAG);\n num_cycles.setHelp(\"Number of iterations to run. The default is 1. Set to 0 to run forever.\");\n jsap.registerParameter(num_cycles);\n\n final FlaggedOption pauseInterval = new FlaggedOption(\"pauseInterval\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"30000\")\n .setRequired(false)\n .setShortFlag('p')\n .setLongFlag(JSAP.NO_LONGFLAG);\n pauseInterval.setHelp(\"Time (in milliseconds) to pause between compactions.\");\n jsap.registerParameter(pauseInterval);\n\n final FlaggedOption waitInterval = new FlaggedOption(\"waitInterval\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"60000\")\n .setRequired(false)\n .setShortFlag('w')\n .setLongFlag(JSAP.NO_LONGFLAG);\n waitInterval.setHelp(\"Time (in milliseconds) to wait between \" +\n \"time (are we there yet?) checks.\");\n jsap.registerParameter(waitInterval);\n\n DateStringParser date_parser = DateStringParser.getParser();\n date_parser.setProperty(\"format\", \"HH:mm\");\n\n final FlaggedOption startTime = new FlaggedOption(\"startTime\")\n .setStringParser(date_parser)\n .setDefault(\"01:00\")\n .setRequired(true)\n .setShortFlag('s')\n .setLongFlag(JSAP.NO_LONGFLAG);\n startTime.setHelp(\"Time to start compactions.\");\n jsap.registerParameter(startTime);\n\n final FlaggedOption endTime = new FlaggedOption(\"endTime\")\n .setStringParser(date_parser)\n .setDefault(\"07:00\")\n .setRequired(true)\n .setShortFlag('e')\n .setLongFlag(JSAP.NO_LONGFLAG);\n endTime.setHelp(\"Time to stop compactions.\");\n jsap.registerParameter(endTime);\n\n final FlaggedOption dryRun = new FlaggedOption(\"dryRun\")\n .setStringParser(JSAP.BOOLEAN_PARSER)\n .setDefault(\"false\")\n .setRequired(false)\n .setShortFlag('d')\n .setLongFlag(JSAP.NO_LONGFLAG);\n dryRun.setHelp(\"Don't actually do any compactions or splits.\");\n jsap.registerParameter(dryRun);\n\n final FlaggedOption maxSplitSize = new FlaggedOption(\"maxSplitSize_in_MB\")\n .setStringParser(JSAP.LONG_PARSER)\n .setDefault(\"4096\")\n .setRequired(false)\n .setShortFlag('m')\n .setLongFlag(JSAP.NO_LONGFLAG);\n maxSplitSize.setHelp(\"Maximum size for store files (in MB) at which a region is split.\");\n jsap.registerParameter(maxSplitSize);\n\n final FlaggedOption splitsEnabled = new FlaggedOption(\"splitsEnabled\")\n .setStringParser(JSAP.BOOLEAN_PARSER)\n .setDefault(\"false\")\n .setRequired(false)\n .setShortFlag('h')\n .setLongFlag(JSAP.NO_LONGFLAG);\n splitsEnabled.setHelp(\"Do splits (default split size will be 256MB unless specified).\");\n jsap.registerParameter(splitsEnabled);\n\n final FlaggedOption table_names = new FlaggedOption(\"tableNames\")\n .setStringParser(JSAP.STRING_PARSER)\n .setRequired(false)\n .setShortFlag(JSAP.NO_SHORTFLAG)\n .setLongFlag(\"tableNames\")\n .setList(true)\n .setListSeparator(',');\n table_names.setHelp(\"Specific table names to check against (default is all)\");\n jsap.registerParameter(table_names);\n\n final FlaggedOption files_keep = new FlaggedOption(\"filesKeep\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setRequired(false)\n .setShortFlag('f')\n .setLongFlag(\"filesKeep\")\n .setDefault(\"5\");\n files_keep.setHelp(\"Number of storefiles to look for before compacting (default is 5)\");\n jsap.registerParameter(files_keep);\n\n\n return jsap;\n }", "public Command parseCommand(String userInput) throws ParseException {\n final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(userInput.trim());\n if (!matcher.matches()) {\n throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, HelpCommand.MESSAGE_USAGE));\n }\n\n final String commandWord = matcher.group(\"commandWord\");\n final String arguments = matcher.group(\"arguments\");\n switch (commandWord) {\n\n // ========================== Easy Travel Commands =========================\n case HelpCommand.COMMAND_WORD:\n return new HelpCommand();\n\n case ExitCommand.COMMAND_WORD:\n return new ExitCommand();\n\n // ========================== Trip Commands =========================\n case SetTripCommand.COMMAND_WORD:\n return new SetTripCommandParser().parse(arguments);\n\n case DeleteTripCommand.COMMAND_WORD:\n return new DeleteTripCommand();\n\n case CheckStatusCommand.COMMAND_WORD:\n return new CheckStatusCommand();\n\n case EditBudgetCommand.COMMAND_WORD:\n return new EditBudgetCommandParser().parse(arguments);\n\n case RenameCommand.COMMAND_WORD:\n return new RenameCommandParser().parse(arguments);\n // ========================== Schedule Commands =========================\n case ScheduleCommand.COMMAND_WORD:\n return new ScheduleCommandParser().parse(arguments);\n\n case UnscheduleCommand.COMMAND_WORD:\n return new UnscheduleCommandParser().parse(arguments);\n\n case ListScheduleCommand.COMMAND_WORD:\n return new ListScheduleCommand();\n\n // ========================== Fixed Expense Commands =========================\n case AddFixedExpenseCommand.COMMAND_WORD:\n return new AddFixedExpenseCommandParser().parse(arguments);\n\n case ClearFixedExpenseCommand.COMMAND_WORD:\n return new ClearFixedExpenseCommand();\n\n case DeleteFixedExpenseCommand.COMMAND_WORD:\n return new DeleteFixedExpenseCommandParser().parse(arguments);\n\n case EditFixedExpenseCommand.COMMAND_WORD:\n return new EditFixedExpenseCommandParser().parse(arguments);\n\n case CheckBudgetStatus.COMMAND_WORD:\n return new CheckBudgetStatus();\n\n case SortFixedExpenseCommand.COMMAND_WORD:\n return new SortFixedExpenseCommandParser().parse(arguments);\n\n case ListFixedExpenseCommand.COMMAND_WORD:\n return new ListFixedExpenseCommand();\n\n // ========================== Transport Booking Commands =========================\n case AddTransportBookingCommand.COMMAND_WORD:\n return new AddTransportBookingCommandParser().parse(arguments);\n\n case EditTransportBookingCommand.COMMAND_WORD:\n return new EditTransportBookingCommandParser().parse(arguments);\n\n case DeleteTransportBookingCommand.COMMAND_WORD:\n return new DeleteTransportBookingCommandParser().parse(arguments);\n\n case ClearTransportBookingCommand.COMMAND_WORD:\n return new ClearTransportBookingCommand();\n\n case SortTransportBookingCommand.COMMAND_WORD:\n return new SortTransportBookingCommandParser().parse(arguments);\n\n case ListTransportBookingCommand.COMMAND_WORD:\n return new ListTransportBookingCommand();\n\n // ========================== Packing List Commands =========================\n case AddItemCommand.COMMAND_WORD:\n return new AddItemCommandParser().parse(arguments);\n\n case AddPresetCommand.COMMAND_WORD:\n return new AddPresetCommandParser().parse(arguments);\n\n case CheckItemCommand.COMMAND_WORD:\n return new CheckItemCommandParser().parse(arguments);\n\n case ClearItemCommand.COMMAND_WORD:\n return new ClearItemCommand();\n\n case DeleteItemCommand.COMMAND_WORD:\n return new DeleteItemCommandParser().parse(arguments);\n\n case EditItemCommand.COMMAND_WORD:\n return new EditItemCommandParser().parse(arguments);\n\n case FindItemCommand.COMMAND_WORD:\n return new FindItemCommandParser().parse(arguments);\n\n case FindItemCategoryCommand.COMMAND_WORD:\n return new FindItemCategoryCommandParser().parse(arguments);\n\n case UncheckItemCommand.COMMAND_WORD:\n return new UncheckItemCommandParser().parse(arguments);\n\n case ListItemCommand.COMMAND_WORD:\n return new ListItemCommand();\n\n case ListPresetCommand.COMMAND_WORD:\n return new ListPresetCommand();\n\n case SortItemCommand.COMMAND_WORD:\n return new SortItemCommandParser().parse(arguments);\n\n\n // ========================== Activity Commands =========================\n case AddActivityCommand.COMMAND_WORD:\n return new AddActivityCommandParser().parse(arguments);\n\n case DeleteActivityCommand.COMMAND_WORD:\n return new DeleteActivityCommandParser().parse(arguments);\n\n case ClearActivityCommand.COMMAND_WORD:\n return new ClearActivityCommand();\n\n case EditActivityCommand.COMMAND_WORD:\n return new EditActivityCommandParser().parse(arguments);\n\n case FindActivityCommand.COMMAND_WORD:\n return new FindActivityCommandParser().parse(arguments);\n\n case FindActivityTagCommand.COMMAND_WORD:\n return new FindActivityTagCommandParser().parse(arguments);\n\n case ListActivityCommand.COMMAND_WORD:\n return new ListActivityCommand();\n\n case SortActivityCommand.COMMAND_WORD:\n return new SortActivityCommandParser().parse(arguments);\n\n // ========================== Accommodation Commands =========================\n case AddAccommodationBookingCommand.COMMAND_WORD:\n return new AddAccommodationBookingCommandParser().parse(arguments);\n\n case ClearAccommodationBookingCommand.COMMAND_WORD:\n return new ClearAccommodationBookingCommand();\n\n case DeleteAccommodationBookingCommand.COMMAND_WORD:\n return new DeleteAccommodationBookingCommandParser().parse(arguments);\n\n case EditAccommodationBookingCommand.COMMAND_WORD:\n return new EditAccommodationBookingCommandParser().parse(arguments);\n\n case SortAccommodationBookingCommand.COMMAND_WORD:\n return new SortAccommodationBookingParser().parse(arguments);\n\n case ListAccommodationBookingCommand.COMMAND_WORD:\n return new ListAccommodationBookingCommand();\n\n // ========================== Invalid Commands =========================\n default:\n throw new ParseException(MESSAGE_UNKNOWN_COMMAND);\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tMyParser2 p = new MyParser2();\n\t\tp.connectDb();\n\t\tp.parse();\n\t\t//p.display();\n\t}", "public ProgramParser(String[] args) throws InterpreterException {\n java.util.Scanner scanner;\n String text = \"\";\n try {\n scanner = new java.util.Scanner(new java.io.File(args[0]));\n text = scanner.useDelimiter(\"\\u005c\\u005cA\").next();\n scanner.close();\n ProgramParser.programCode = new java.io.StringReader(text);\n } catch (FileNotFoundException ex) {\n throw new InterpreterException(\"FileNotFoundException\", \"Check file path.\", ex.getMessage());\n }\n ProgramParser.stringInput = args[1];\n System.out.println(\"Program: \" + args[0] + \" - input: \" + stringInput);\n //System.out.println(\"code\\n\" + text + \"\\n---Done\");\n }", "public static CommandLine prepCli( Options knowsCliDtd,\n\t\t\tString[] args, ResourceBundle rbm )\n\t{\n\t\tCommandLineParser cliRegex = new DefaultParser();\n\t\tCommandLine userInput = null;\n\t\ttry\n\t\t{\n\t\t\tuserInput = cliRegex.parse( knowsCliDtd, args );\n\t\t\tif ( userInput.hasOption( helpFlagS )\n\t\t\t\t\t|| userInput.hasOption( helpFlagLong ) )\n\t\t\t{\n\t\t\t\tnew HelpFormatter().printHelp( \"Note Enojes\", knowsCliDtd );\n\t\t\t}\n\t\t}\n\t\tcatch ( ParseException pe )\n\t\t{\n\t\t\tMessageFormat problem = new MessageFormat( rbm.getString( rbKeyCliParse ) );\n\t\t\tSystem.err.println( problem.format( new Object[]{ cl +\"pc\", pe } ) );\n\t\t}\n\t\treturn userInput;\n\t}", "public static String parser(String input) throws IOException{\n\t\tif (input == null)\n\t\t\treturn \"Null input!\";\n\t\t\n\t\telse if (input.startsWith(\"HTTPClient \")){\n\t\t\tinput = input.replace(\"HTTPClient \", \"\"); // Cut HTTPClient of the string so we can handle the command more easily.\n\t\t\t\t\t\t\n\t\t\tif(\"exit\".equals(input))\n\t\t\t\treturn EXIT();\n\t\t\t\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tString[] splitted = input.split(\"\\\\s+\"); // Split around spaces\n\t\t\t\tString command = splitted[0];\n\t\t\t\tString uri = splitted[1];\n\t\t\t\tint port = Integer.parseInt(splitted[2]);\n\t\t\t\tSystem.out.println(uri);\n\t\t\t\tSystem.out.println(port);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (command.startsWith(\"HEAD\")){\n\t\t\t\t\treturn HEAD(uri, port);\n\t\t\t\t}\n\t\t\t\n\t\t\t\telse if (command.startsWith(\"GET\")){\n\t\t\t\t\treturn GET(uri, port);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (command.startsWith(\"PUT\")){\n\t\t\t\t\treturn PUT(uri, port);\n\t\t\t\t}\n\t\t\t\n\t\t\t\telse if (command.startsWith(\"POST\")){ \n\t\t\t\t\treturn POST(uri, port);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn \"\";\n\t}", "public static void main(String... args) throws IOException {\n Controller controller = new Controller();\n try {\n controller.parseLine(args);\n } catch (TinyGitException e) {\n System.out.println(e.getMessage());\n System.exit(0);\n }\n }", "public static Command parse(String fullCommand) throws DukeException {\n String[] arr = fullCommand.split(\"\\\\s+\", 2);\n String command = arr[0];\n if (command.equals(\"todo\")) {\n if (arr.length == 1) {\n throw new DukeException(\"OOPS!!! The description of a todo cannot be empty.\");\n } else {\n Task task = new Todo(arr[1]);\n return new AddCommand(task);\n }\n } else if (command.equals(\"deadline\")) {\n if (arr.length == 1) {\n throw new DukeException(\"OOPS!!! The description of a deadline cannot be empty.\");\n } else {\n String[] deadlineArr = arr[1].split(\" /by \", 2);\n if (deadlineArr.length == 1) {\n throw new DukeException(\"OOPS!!! You forgot to specify a date/time for the deadline.\");\n } else {\n Task task = new Deadline(deadlineArr[0], deadlineArr[1]);\n return new AddCommand(task);\n }\n }\n } else if (command.equals(\"event\")) {\n if (arr.length == 1) {\n throw new DukeException(\"OOPS!!! The description of an event cannot be empty.\");\n } else {\n String[] eventArr = arr[1].split(\" /at \", 2);\n if (eventArr.length == 1) {\n throw new DukeException(\"OOPS!!! You forgot to specify a date/time for the event.\");\n } else {\n Task task = new Event(eventArr[0], eventArr[1]);\n return new AddCommand(task);\n }\n }\n } else if (command.equals(\"done\")) {\n String[] array = arr[1].split(\"\\\\s+\");\n int[] options = new int[array.length];\n for (int i = 0; i < options.length; i++) {\n options[i] = Integer.parseInt(array[i]);\n }\n return new DoneCommand(options);\n } else if (command.equals(\"delete\")) {\n String[] array = arr[1].split(\"\\\\s+\");\n int[] options = new int[array.length];\n for (int i = 0; i < options.length; i++) {\n options[i] = Integer.parseInt(array[i]);\n }\n return new DeleteCommand(options);\n } else if (command.equals(\"list\")) {\n return new ListCommand();\n } else if (command.equals(\"find\")) {\n return new FindCommand(arr[1]);\n } else if (command.equals(\"bye\")) {\n return new ExitCommand();\n } else {\n throw new DukeException(\"OOPS!!! I'm sorry, but I don't know what that means :-(\");\n }\n }", "private Command parseCommand(String s) {\n\t\tif (constantMatch.matcher(s).matches()) {\n\t\t\treturn new Constant(Double.parseDouble(s));\n\t\t}\n\t\tif (variableMatch.matcher(s).matches()) {\n\t\t\treturn myDictionary.getVariable(s);\n\t\t}\n\t\tif (s.equals(START_LIST)) {\n\t\t\treturn createListCommand();\n\t\t}\n\t\tif(s.equals(START_GROUP)) {\n\t\t\tCommand c = getCommandOrFunction(codeReader.next());\n\t\t\tif(c.howManyArguments() <= 0) {\n\t\t\t\tthrow new SLogoException(\"Attempting to group command that takes no arguments\");\n\t\t\t}\n\t\t\tcreateGroupCommand(c); \n\t\t\treturn c;\n\t\t}\n\t\treturn findTrueCommand(s);\n\t}", "private static void parseCommandLine(String[] args) throws Exception {\n int i;\n // iterate over all options (arguments starting with '-')\n for (i = 0; i < args.length && args[i].charAt(0) == '-'; i++) {\n switch (args[i].charAt(1)) {\n // -a type = write out annotations of type a.\n case 'a':\n if (annotTypesToWrite == null)\n annotTypesToWrite = new ArrayList();\n annotTypesToWrite.add(args[++i]);\n break;\n\n // -g gappFile = path to the saved application\n case 'g':\n gappFile = new File(args[++i]);\n break;\n\n // -e encoding = character encoding for documents\n case 'e':\n encoding = args[++i];\n break;\n\n default:\n System.err.println(\"Unrecognised option \" + args[i]);\n usage();\n }\n }\n\n // set index of the first non-option argument, which we take as the first\n // file to process\n firstFile = i;\n\n // sanity check other arguments\n if (gappFile == null) {\n System.err.println(\"No .gapp file specified\");\n usage();\n }\n }", "public static Command parseCommand(String response) {\n String[] command = response.split(\" \", 10);\n switch (command[0]) {\n case \"list\":\n return new ListCommand(command);\n case \"done\":\n case \"undo\":\n return new DoneUndoCommand(command);\n case \"remove\":\n return new RemoveCommand(command);\n case \"add\":\n return new AddCommand(command, response);\n case \"bye\":\n return new ByeCommand();\n case \"help\":\n return new HelpCommand();\n case \"find\":\n return new FindCommand(command, response);\n case \"update\":\n return new UpdateCommand(command);\n default:\n System.out.println(\"Im sorry i did not catch that maybe these instructions below will help\"\n + System.lineSeparator() + Interface.lineBreak);\n return new HelpCommand();\n }\n }", "public int parse(String inputString) {\n manager.init();\n\n Map<String, List<String>> commandMap = new HashMap<>();\n List<String> blocks = Arrays.asList(inputString.split(\" \"));\n commandMap.put(blocks.get(0), blocks.size() > 1 ? blocks.subList(1, blocks.size()) : Collections.EMPTY_LIST);\n\n // item properties\n if (commandMap.containsKey(\"ip\")) {\n List<String> params = commandMap.get(\"ip\");\n if (params.size() > 0) {\n // set item properties\n manager.setItemParams(params);\n manager.prettyPrint(\"Successfully set Item Properties to: \" + params);\n } else {\n // get item properties\n manager.printItemParams();\n }\n }\n\n // channel properties\n if (commandMap.containsKey(\"cp\")) {\n List<String> params = commandMap.get(\"fp\");\n if (params.size() > 0) {\n // set channel properties\n manager.setChannelParams(params);\n manager.prettyPrint(\"Successfully set Channel Properties to: \" + params);\n } else {\n // get channel properties\n manager.printChannelParams();\n }\n }\n\n // rss\n if (commandMap.containsKey(\"rss\")) {\n List<String> params = commandMap.get(\"rss\");\n if (params.size() > 0) {\n switch (params.get(0)) {\n case \"add\": {\n if (params.size() != 3) {\n throw new IllegalArgumentException(\"Not enough params for -rss add\");\n }\n String rssLink = params.get(1);\n String file = params.get(2);\n manager.createFileIfNotExists(file);\n manager.associateRssToFile(rssLink, file);\n manager.prettyPrint(\n \"Successfully added new RSS Feed: \" + rssLink,\n \"Associated file is: \" + file\n );\n break;\n }\n case \"del\": {\n if (params.size() != 2) {\n throw new IllegalArgumentException(\"Not enough params for -rss del\");\n }\n String rssLink = params.get(1);\n manager.diassociateRss(rssLink);\n manager.prettyPrint(\"Successfully removed new RSS Feed: \" + rssLink);\n break;\n }\n case \"on\": {\n if (params.size() != 2) {\n throw new IllegalArgumentException(\"Not enough params for -rss on\");\n }\n String rssLink = params.get(1);\n manager.turnRSSOn(rssLink);\n manager.prettyPrint(\"Successfully turned RSS Feed \" + rssLink + \" on\");\n break;\n }\n case \"off\": {\n if (params.size() != 2) {\n throw new IllegalArgumentException(\"Not enough params for -rss off\");\n }\n String rssLink = params.get(1);\n manager.turnRSSOff(rssLink);\n manager.prettyPrint(\"Successfully turned RSS Feed \" + rssLink + \" off\");\n break;\n }\n }\n } else {\n manager.printRss();\n }\n } else if (commandMap.containsKey(\"time\")) {\n List<String> params = commandMap.get(\"time\");\n if (params.size() > 0) {\n if (params.size() != 1) {\n throw new IllegalArgumentException(\"Not enough params for -time\");\n }\n String newTimeToPoll = params.get(0);\n manager.setTimeToPoll(Long.valueOf(newTimeToPoll));\n manager.prettyPrint(\"Successfully set polling time to \" + newTimeToPoll);\n\n } else {\n manager.printTimeToPoll();\n }\n } else if (commandMap.containsKey(\"h\")) {\n manager.printHelp();\n } else if (commandMap.containsKey(\"exit\")) {\n return 1;\n }\n return 0;\n }", "final public void basicCommand() throws ParseException {\n if (jj_2_75(4)) {\n if (jj_2_55(4)) {\n jj_consume_token(MOVE);\n numero();\n } else if (jj_2_56(4)) {\n jj_consume_token(RIGHT);\n numero();\n } else if (jj_2_57(4)) {\n jj_consume_token(LEFT);\n numero();\n } else if (jj_2_58(4)) {\n jj_consume_token(ROTATE);\n numero();\n } else if (jj_2_59(4)) {\n jj_consume_token(DROP);\n numero();\n } else if (jj_2_60(4)) {\n jj_consume_token(FREE);\n numero();\n } else if (jj_2_61(4)) {\n jj_consume_token(PICK);\n numero();\n } else if (jj_2_62(4)) {\n jj_consume_token(POP);\n numero();\n } else if (jj_2_63(4)) {\n jj_consume_token(BLOCKEDP);\n } else if (jj_2_64(4)) {\n jj_consume_token(NOP);\n } else if (jj_2_65(4)) {\n jj_consume_token(LOOK);\n if (jj_2_49(4)) {\n jj_consume_token(N);\n } else if (jj_2_50(4)) {\n jj_consume_token(E);\n } else if (jj_2_51(4)) {\n jj_consume_token(W);\n } else if (jj_2_52(4)) {\n jj_consume_token(S);\n } else {\n jj_consume_token(-1);\n throw new ParseException();\n }\n } else if (jj_2_66(4)) {\n jj_consume_token(CHECK);\n if (jj_2_53(4)) {\n jj_consume_token(C);\n } else if (jj_2_54(4)) {\n jj_consume_token(B);\n } else {\n jj_consume_token(-1);\n throw new ParseException();\n }\n numero();\n } else if (jj_2_67(4)) {\n block();\n } else if (jj_2_68(4)) {\n repeat();\n } else if (jj_2_69(4)) {\n conditional();\n } else if (jj_2_70(4)) {\n define();\n } else if (jj_2_71(4)) {\n function();\n } else if (jj_2_72(4)) {\n funcall();\n } else if (jj_2_73(4)) {\n varcall();\n } else {\n jj_consume_token(-1);\n throw new ParseException();\n }\n } else {\n label_13:\n while (true) {\n if (jj_2_74(4)) {\n ;\n } else {\n break label_13;\n }\n jj_consume_token(34);\n }\n }\n }", "public static void main( String[] args )\n {\n CommandLineParser parser = new DefaultParser();\n\n // create the Options\n OptionGroup optgrp = new OptionGroup();\n optgrp.addOption(Option.builder(\"l\")\n .longOpt(\"list\")\n .hasArg().argName(\"keyword\").optionalArg(true)\n .type(String.class)\n .desc(\"List documents scraped for keyword\")\n .build());\n optgrp.addOption( Option.builder(\"r\")\n .longOpt(\"read\")\n .hasArg().argName(\"doc_id\")\n .type(String.class)\n .desc(\"Display a specific scraped document.\")\n .build());\n optgrp.addOption( Option.builder(\"a\")\n .longOpt(\"add\")\n .type(String.class)\n .desc(\"Add keywords to scrape\")\n .build());\n optgrp.addOption( Option.builder(\"s\")\n .longOpt(\"scraper\")\n .type(String.class)\n .desc(\"Start the scraper watcher\")\n .build());\n\n\n\n Options options = new Options();\n options.addOptionGroup(optgrp);\n\n options.addOption( Option.builder(\"n\")\n .longOpt(\"search-name\").hasArg()\n .type(String.class)\n .desc(\"Name of the search task for a set of keywords\")\n .build());\n\n options.addOption( Option.builder(\"k\")\n .longOpt(\"keywords\")\n .type(String.class).hasArgs()\n .desc(\"keywords to scrape. \")\n .build());\n\n options.addOption( Option.builder(\"t\")\n .longOpt(\"scraper-threads\")\n .type(Integer.class).valueSeparator().hasArg()\n .desc(\"Number of scraper threads to use.\")\n .build());\n\n //String[] args2 = new String[]{ \"--add --search-name=\\\"some thing\\\" --keywords=kw1, kw2\" };\n // String[] args2 = new String[]{ \"--add\", \"--search-name\", \"some thing new\", \"--keywords\", \"kw3\", \"kw4\"};\n // String[] args2 = new String[]{ \"--scraper\"};\n// String[] args2 = new String[]{ \"--list\"};\n\n int exitCode = 0;\n CommandLine line;\n try {\n // parse the command line arguments\n line = parser.parse( options, args );\n }\n catch( ParseException exp ) {\n System.out.println( \"Unexpected exception:\" + exp.getMessage() );\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"searchscraper \\n\" +\n \" [--add --search-name=<SearchTask> --keywords=<keyword1> <keyword2> ...]\\n\" +\n \" [--list [<keyword>] ]\\n\" +\n \" [--read <doc_id>]\\n\", options , true);\n System.exit(2);\n return;\n }\n\n if( line.hasOption( \"add\" ) ) {\n // Add Search Task mode\n if(!line.hasOption( \"search-name\" ) || !line.hasOption(\"keywords\")) {\n System.out.println(\"must have search name and keywords when adding\");\n System.exit(2);\n }\n String name = line.getOptionValue( \"search-name\" );\n String[] keywords = line.getOptionValues(\"keywords\");\n System.out.println(\"Got keywords: \" + Arrays.toString(keywords) );\n\n exitCode = add(name, Arrays.asList(keywords));\n\n } else if( line.hasOption( \"list\" ) ) {\n // List Keyword mode\n DataStore ds = new DataStore();\n String keyword = line.getOptionValue( \"list\" );\n System.out.println(\"Listing with keyword = `\" + keyword + \"`\");\n if(keyword == null) {\n List<String > keywords = ds.listKeywords();\n for(String kw : keywords) {\n System.out.println(kw);\n }\n exitCode=0;\n } else {\n List<SearchResult > results = ds.listDocsForKeyword(keyword);\n for(SearchResult kw : results) {\n System.out.println(kw);\n }\n }\n ds.close();\n\n } else if( line.hasOption( \"read\" ) ) {\n // Show a specific document\n String docId = line.getOptionValue( \"read\" );\n if(docId == null) {\n System.err.println(\"read option missing doc_id parameter\");\n exitCode = 2;\n } else {\n\n DataStore ds = new DataStore();\n String result = ds.read(docId);\n\n if (result == null) {\n System.err.println(\"NOT FOUND\");\n exitCode = 1;\n } else {\n System.out.println(result);\n }\n ds.close();\n }\n }\n else if( line.hasOption( \"scraper\" ) ) {\n int numThreads = 1;\n if(line.hasOption( \"scraper-threads\")) {\n String threadString = line.getOptionValue(\"scraper-threads\");\n try {\n numThreads = Integer.parseInt(threadString);\n } catch (NumberFormatException e) {\n System.out.println(\n \"unable to parse number of threads from `\" +\n threadString + \"`\");\n }\n\n }\n // Start scraper mode\n Daemon daemon = new Daemon(numThreads);\n daemon.start();\n } else {\n // generate the help statement\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"searchscraper \\n\" +\n \" [--add --search-name <SearchTask> --keywords <keyword1> <keyword2> ...]\\n\" +\n \" [--list [<keyword>] ]\\n\" +\n \" [--read <doc_id>]\\n\", options , true);\n exitCode = 2;\n }\n\n\n System.exit(exitCode);\n }", "public ViewScheCommand(String line) throws DukeException {\n String[] arrOfStr = line.split(\"\\\\s+\");\n\n this.option = arrOfStr[0].trim();\n if (option.equals(\"/all\")) {\n if (arrOfStr.length > 1) {\n this.date = Parser.parseDate(arrOfStr[1].trim());\n sortByDate = true;\n }\n } else if (option.equals(\"/member\")) {\n this.memberName = arrOfStr[1].trim();\n if (arrOfStr.length > 2) {\n this.date = Parser.parseDate(arrOfStr[2].trim());\n sortByDate = true;\n }\n }\n }", "public boolean parse(String input) {\n\t\tif (input.isEmpty()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tString[] sp = input.split(\" \");\n\t\tthis.command = sp[0];\n\t\tif (sp.length > 1) {\n\t\t\tthis.arguments = Arrays.copyOfRange(sp, 1, sp.length);\n\t\t}\n\t\treturn true;\n\t}", "public static void main(String[] astrCommandLine) {\n\t\tStep1ConstructorsAndOverloading();\n\t\tStep2InheritanceAndSuper();\n\n\t}", "void parseCommand(String command){\n\t\tif(command!=null && command.length()>0){\n\t\t\tif(!subMenuFlag){\n\t\t\t\tmainMenuCommand(command);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tsubMenuCommand(command);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Please enter a valid command.\");\n\t\t}\n\t}", "@Test\n void testParser() {\n VmParsingHelper.DEFAULT.parse(VM_SRC);\n }", "public Command parseCommand(String userInput, Model model,\n seedu.address.person.model.CheckAndGetPersonByNameModel personModel) throws Exception {\n final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(userInput.trim());\n if (!matcher.matches()) {\n throw new ParseException(CashierMessages.MESSAGE_NO_COMMAND);\n }\n\n final String commandWord = matcher.group(\"commandWord\");\n final String arguments = matcher.group(\"arguments\");\n\n switch (commandWord) {\n\n case AddCommand.COMMAND_WORD:\n return new AddCommandParser().parse(arguments, model, personModel);\n\n case DeleteCommand.COMMAND_WORD:\n return new DeleteCommandParser().parse(arguments, model, personModel);\n\n case EditCommand.COMMAND_WORD:\n return new EditCommandParser().parse(arguments, model, personModel);\n\n case SetCashierCommand.COMMAND_WORD:\n return new SetCashierCommandParser().parse(arguments, model, personModel);\n\n case CheckoutCommand.COMMAND_WORD:\n return new CheckoutCommandParser().parse(arguments, model, personModel);\n\n case ClearCommand.COMMAND_WORD:\n return new ClearCommandParser().parse(arguments, model, personModel);\n\n default:\n logger.info(\"There is no such command.\");\n throw new ParseException(CashierMessages.MESSAGE_NO_COMMAND);\n\n }\n }", "public Parser(String[] userInput) {\n this.command = userInput[0];\n if (userInput.length > 1) {\n this.description = userInput[1];\n }\n }", "public static void main(String args[]) {\n String str = \"Composer 2.1 ascii\\ncamera {\\n position 3.84789 3.48111 14.0946\\n viewDirection -123 -0.0143311 27\\n}\";\n\tIStrStream stream = new IStrStream(str);\n\tString input;\n\tint i;\n\tfloat f;\n\t\n\tinput = stream.getString();\n\tif (!(input.equals(\"Composer\"))) {\n\t System.err.println(\"unexpected string 1 \" + input);\n\t System.exit(1);\n\t}\n\tf = stream.getFloat();\n\tif (Math.abs(f - 2.1) > 0.1) {\n\t System.err.println(\"unexpected float 2 \" + f);\n\t System.exit(1);\n\t}\n\tinput = stream.getString();\n\tif (!(input.equals(\"ascii\"))) {\n\t System.err.println(\"unexpected string 3 \" + input);\n\t System.exit(1);\n\t}\n\twhile (!stream.eof()) {\n\t input = stream.getString();\n\t if (input.equals(\"camera\")) {\n\t\tinput = stream.getString();\t// skip over {\n\t\tinput = stream.getString();\n\t\tif (!(input.equals(\"position\"))) {\n\t\t System.err.println(\"unexpected string 4 \" + input);\n\t\t System.exit(1);\n\t\t}\n\t\tf = stream.getFloat();\n\t\tf = stream.getFloat();\n\t\tf = stream.getFloat();\n\t\tinput = stream.getString();\n\t\tif (!(input.equals(\"viewDirection\"))) {\n\t\t System.err.println(\"unexpected string 5 \" + input);\n\t\t System.exit(1);\n\t\t}\n\t\ti = stream.getInt();\n\t\tif (i != -123) {\n\t\t System.err.println(\"unexpected integer 6 \" + i);\n\t\t System.exit(1);\n\t\t}\n\t\tf = stream.getFloat();\n\t\ti = stream.getInt();\n\t\tif (i != 27) {\n\t\t System.err.println(\"unexpected integer 7 \" + i);\n\t\t System.exit(1);\n\t\t}\n\t\tinput = stream.getString();\t// skip over }\n\t } else {\n\t\tSystem.err.println(\"unexpected subcommand string 8 \" + input);\n\t\tSystem.exit(1);\n\t }\n\t}\n\tSystem.out.println(\"passed\");\n }", "protected void parse() throws ParseException {\n String s;\n try {\n s=getFullText();\n } catch (IOException ioe) {\n if (ioe instanceof FileNotFoundException) {\n throw new DataNotFoundException (\"Could not find log file.\", ioe);\n } else {\n throw new ParseException (\"Error getting log file text.\", new File (getFileName()));\n }\n }\n StringTokenizer sk = new StringTokenizer(s);\n ArrayList switches = new ArrayList(10);\n while (sk.hasMoreElements()) {\n String el =sk.nextToken().trim();\n if (el.startsWith(\"-J\")) {\n if (!(el.equals(\"-J-verbose:gc\"))) {\n if (!(el.startsWith(\"-J-D\"))) {\n JavaLineswitch curr = new JavaLineswitch(el.substring(2));\n addElement (curr); \n }\n }\n }\n }\n }", "@Override\n public AddCommand parse(String args) throws ParseException {\n ArgumentMultimap argMultimap = ArgumentTokenizer.tokenize(args,\n PREFIX_QUESTION, PREFIX_CHOICE, PREFIX_DEFINITION, PREFIX_TAG, PREFIX_ANSWER);\n if (!arePrefixesPresent(argMultimap,\n PREFIX_QUESTION, PREFIX_DEFINITION, PREFIX_ANSWER)\n || !argMultimap.getPreamble().isEmpty()) {\n throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT + AddCommand.MESSAGE_USAGE));\n }\n\n Question question = ParserUtil.parseWord(argMultimap.getValue(PREFIX_QUESTION).get());\n List<Choice> choices = ParserUtil.parseChoices(argMultimap.getAllValues(PREFIX_CHOICE));\n Definition definition = ParserUtil.parseDefinition(argMultimap.getValue(PREFIX_DEFINITION).get());\n Set<Tag> tagList = ParserUtil.parseTags(argMultimap.getAllValues(PREFIX_TAG));\n Answer answer = ParserUtil.parseAnswer(argMultimap.getValue(PREFIX_ANSWER).get());\n\n Flashcard flashcard;\n if (arePrefixesPresent(argMultimap, PREFIX_CHOICE)) {\n if (!choices.contains(new Choice(answer.getAnswer()))) {\n throw new ParseException(ANSWER_CHOICE_MISMATCH);\n } else {\n flashcard = new McqFlashcard(question, choices, definition, tagList, answer);\n }\n } else {\n flashcard = new ShortAnswerFlashcard(question, definition, tagList, answer);\n }\n\n return new AddCommand(flashcard);\n }", "private static Command parseTodoCommand(String[] args) throws DukeMissingDescriptionException {\n logger.log(INFO, \"Parse TODO command: {0}\", new Object[]{Arrays.toString(args)});\n\n if (args.length == 0) {\n throw new DukeMissingDescriptionException(\"Hmm... I need to know your to-do description.\");\n }\n return new AddCommand(TODO, args, false);\n }", "private static void printHelp(CmdLineParser parser) {\n\tSystem.out.print(\"Usage: Main \");\n\tparser.printSingleLineUsage(System.out);\n\tSystem.out.println(\"\\n\");\n\tparser.printUsage(System.out);\n\tSystem.out.println(\"\");\n\treturn;\n }", "public MyViewCLI(InputStreamReader in, OutputStreamWriter out, Controller controller) {\r\n\t\tcli = new CLI(in, out, controller);\r\n\t\tthis.controller = controller;\r\n\t}", "public static Command parse(String cmdline) throws ShellException {\r\n\t\tint commandIndex = 0;\r\n\t\tCommand[] possibleCommands = new Command[3];\r\n\t\tpossibleCommands[0] = new CallCommand(cmdline);\r\n\t\tpossibleCommands[1] = new SequenceCommand(cmdline);\r\n\t\tpossibleCommands[2] = new PipeCommand(cmdline);\r\n\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tpossibleCommands[commandIndex].parse();\r\n\t\t\t\treturn possibleCommands[commandIndex];\r\n\t\t\t} catch (ShellException e) {\r\n\t\t\t\tif (++commandIndex == possibleCommands.length) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t} else if (e.getMessage().contains(SequenceCommand.MISSING_ARG)) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (StackOverflowError soe) {\r\n\t\t\t\tthrow new ShellException(soe + \"Invalid command for parsing\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n protected String[] ParseCmdLine(final String[] args) {\n\n final CmdLineParser clp = new CmdLineParser();\n final OptionalFlag optHelp = new OptionalFlag(\n clp, \"h?\", \"help\", \"help mode\\nprint this usage information and exit\");\n optHelp.forHelpUsage();\n final OptionalFlag optForce =\n new OptionalFlag(clp, \"f\", \"force\", \"force overwrite\");\n final OptionalFlag optDelete =\n new OptionalFlag(clp, \"d\", \"delete\", \"delete the table content first\");\n final OptionalFlag optAll = new OptionalFlag(\n clp, \"a\", \"all\",\n \"import all and synchronize changes in the document back to the datasource\");\n final OptionalFlag optSync = new OptionalFlag(\n clp, \"\", \"sync\",\n \"synchronize changes in the document back to the datasource\");\n final OptionalArgumentInteger optCommitCount =\n new OptionalArgumentInteger(clp, \"n\", \"commitcount\", \"commit count\");\n\n clp.setArgumentDescription(\n \"[[sourcefile [destinationfile]]\\n[sourcefile... targetdirectory]]\", -1,\n -1, null);\n final String[] argv = clp.getOptions(args);\n\n force = optForce.getValue(false);\n doDelete = optDelete.getValue(false);\n doSync = optAll.getValue(false) || optSync.getValue(false);\n doImport = optAll.getValue(false) || !optSync.getValue(false);\n commitCount = optCommitCount.getValue(0);\n\n return argv;\n }", "public CommandParser(){\n setLanguage(\"ENGLISH\");\n commandTranslations = getPatterns(new String[] {TRANSLATION});\n commands = new ArrayList<>();\n addErrors();\n }" ]
[ "0.7193369", "0.6992087", "0.69792444", "0.68799865", "0.6811308", "0.672537", "0.66794777", "0.66598845", "0.664224", "0.66130865", "0.65100545", "0.647844", "0.64746153", "0.6459233", "0.64548177", "0.6451203", "0.64252883", "0.6421482", "0.6400369", "0.63947237", "0.6385129", "0.6380625", "0.6335064", "0.6329218", "0.6327668", "0.62856835", "0.62245196", "0.62214404", "0.6204906", "0.6202966", "0.6185271", "0.6155419", "0.61535686", "0.6153296", "0.61480683", "0.61410123", "0.6140636", "0.61401933", "0.6117041", "0.6105309", "0.60834706", "0.6071793", "0.60451764", "0.6043438", "0.60405326", "0.6015221", "0.59974253", "0.5982688", "0.5968384", "0.59672016", "0.59621334", "0.5957436", "0.59522134", "0.5947659", "0.5932597", "0.59297085", "0.59279996", "0.5926829", "0.5914363", "0.59060633", "0.59031314", "0.58678854", "0.5856063", "0.5830672", "0.5825326", "0.5825165", "0.580918", "0.5806296", "0.5803397", "0.5802744", "0.58016384", "0.57981235", "0.57805234", "0.5779318", "0.57760215", "0.5772594", "0.5768819", "0.5754247", "0.5747966", "0.5747756", "0.5741685", "0.5737334", "0.57367116", "0.5722721", "0.5718695", "0.570286", "0.56866735", "0.56849957", "0.56842077", "0.56742024", "0.56722355", "0.5670219", "0.56514865", "0.5633113", "0.5628044", "0.5621611", "0.5618568", "0.5608391", "0.5600812", "0.55970234" ]
0.5941222
54
Get root folder for current repository.
public String getRepositoryRootFolder() { String userFolder = UnixPathUtil.unixPath(IdatrixPropertyUtil.getProperty("idatrix.metadata.reposity.root","/data/ETL/reposity/")); if (CloudApp.getInstance().getRepository() instanceof KettleFileRepository) { KettleFileRepository fileRepo = (KettleFileRepository) CloudApp.getInstance().getRepository(); userFolder = fileRepo.getRepositoryMeta().getBaseDirectory(); } return userFolder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String rootDir()\n {\n read_if_needed_();\n \n return _root;\n }", "public String getLocalRepositoryRootFolder() {\n\t\tString userFolder = IdatrixPropertyUtil.getProperty(\"idatrix.local.reposity.root\",getRepositoryRootFolder() );\n\t\tint index = userFolder.indexOf(\"://\");\n\t\tif(index > -1 ) {\n\t\t\tuserFolder = userFolder.substring(index+3);\n\t\t}\n\t\treturn userFolder;\n\t}", "private Folder getRootFolder() {\n if(!MigrationProperties.get(MigrationProperties.PROP_MIGRATION_PROFILE).equalsIgnoreCase(\"DELTA\")) {\n String folderPath = MigrationProperties.get(MigrationProperties.PROP_SOURCE_LOCATION);\n\n if (folderPath != null && folderPath.contains(\"/\")) {\n Folder rootFolder = CmisHelper.getFolder(jobParameters.getSessionSource(), folderPath);\n return rootFolder;\n\n } else\n return null;\n } else\n return null;\n }", "public static String getRootFolderName() {\n\n return rootFolderName;\n }", "public String getRootFolder() {\n return m_RootFolder;\n }", "public File getRootDir() {\n return rootDir;\n }", "public File getGitRepoContainerDir() {\n return config.getGitReposParentDir();\n }", "public String getRootPath() {\n return root.getPath();\n }", "public File getRootDir() {\r\n\t\treturn rootDir;\r\n\t}", "protected File getRootDir() {\r\n\t\tif (rootDir == null) {\r\n\t\t\trootDir = new File(getProperties().getString(\"rootDir\"));\r\n\t\t\tif (! rootDir.exists())\r\n\t\t\t\tif (! rootDir.mkdirs())\r\n\t\t\t\t\tthrow new RuntimeException(\"Could not create root dir\");\r\n\t\t}\r\n\t\treturn rootDir;\r\n\t}", "public static File getRootDirectory() {\n\t\treturn ROOT_DIRECTORY;\n\t}", "public static File getProjectRoot() {\n\t\tString filePath = \"/\";\n\t\tString rootDirName = FileUtil.class.getResource(filePath).getPath();\n\t\tFile rtn = new File(rootDirName, \"../../\");\n\t\treturn rtn;\n\t}", "Path getRootPath();", "private String getCodeRoot(boolean cloningRepo) {\n\t\tString rootDir;\n\t\tJFrame frame = new JFrame();\n\t\tJFileChooser chooser = new JFileChooser();\n\t\t// Set proper options for root selector\n\t\tchooser.setCurrentDirectory(new File(\"..\"));\n\n\t\tif (cloningRepo) {\n\t\t\tchooser.setDialogTitle(\"Please Select Directory to Create Temporary Git Repo\");\n\t\t} else {\n\t\t\tchooser.setDialogTitle(\"Please Select Codebase Root Directory\");\n\t\t}\n\n\t\tchooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\t\tchooser.setAcceptAllFileFilterUsed(false);\n\t\t// If they hit cancel shutdown system\n\t\tif (chooser.showOpenDialog(frame) == JFileChooser.CANCEL_OPTION) {\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\t// If this happens we have other issues, but to be safe :)\n\t\tif (chooser.getSelectedFile() == null)\n\t\t\treturn null;\n\n\t\trootDir = chooser.getSelectedFile().getAbsolutePath();\n\t\tframe.dispose();\n\t\treturn rootDir;\n\t}", "public Path getRepositoryBaseDir();", "public static String gitRootDir(String repoDir) throws IOException {\n return exec(\"git rev-parse --show-toplevel\", repoDir).trim();\n }", "public String getProjectRootDirectory() {\r\n\t\treturn getTextValue(workspaceRootText);\r\n\t}", "public String getRootPath() {\r\n return rootPath;\r\n }", "public IDirectory getRootDirectory() {\r\n return rootDir;\r\n }", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "File getRootDir() {\n\t\treturn rootDirFile;\n\t}", "public Path getRepositoryGroupBaseDir();", "public static String getCloudTestRootPath() {\n\n return getCLOUDTEST_HOME() + File.separator + rootFolderName\n + File.separator;\n }", "public Path getRemoteRepositoryBaseDir();", "public URL getRootDirURL() {\n\t\treturn null;\n\t}", "String rootPath();", "String getInstallRoot();", "public File getBaseDir() {\n if (baseDir == null) {\n try {\n setBasedir(\".\");\n } catch (BuildException ex) {\n ex.printStackTrace();\n }\n }\n return baseDir;\n }", "public static String getBaseDir() {\r\n Path currentRelativePath = Paths.get(System.getProperty(\"user.dir\"));\r\n return currentRelativePath.toAbsolutePath().toString();\r\n }", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "public File getRoot() {\n return this.root;\n }", "public String getGitBasePath() {\n\t\tif (StringUtils.isBlank(gitBasePath)) {\n\t\t\tgitBasePath = System.getProperties().getProperty(\"user.home\") + \"/gittest\";\n\t\t}\n\t\treturn gitBasePath;\n\t}", "public static String getBaseDir() {\n // 'basedir' is set by Maven Surefire. It always points to the current subproject,\n // even in reactor builds.\n String baseDir = System.getProperty(\"basedir\");\n\n // if 'basedir' is not set, try the current directory\n if (baseDir == null) {\n baseDir = System.getProperty(\"user.dir\");\n }\n return baseDir;\n }", "DiscDirectoryInfo getRoot();", "String getRepositoryPath();", "FileObject getBaseFolder();", "@Basic @Raw\r\npublic FileSystem getRoot() {\r\n\tif (dir == null) {\r\n\t\treturn this;\r\n\t}\r\n\telse {\r\n\t\tFileSystem root = this.getDir();\r\n\t\twhile (root != null) {\r\n\t\t\troot = root.getDir();\r\n\t\t}\r\n\t\treturn root;\r\n\t\t\r\n\t}\r\n}", "private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }", "public static FileObject getCiRoot(FileObject doc) {\n //TODO: Need Talk\n //What is the best way to know the \"root\" directory of CodeIgniter?\n \n while (doc != null) {\n doc = doc.getParent();\n FileObject[] children = doc.getChildren();\n int count = 0;\n \n for (FileObject child: children) {\n for (String folder: APP_BASE) {\n if (child\n .getName()\n .equals(folder.toLowerCase(Locale.ENGLISH))) {\n count++;\n break;\n }\n }\n }\n \n if (count == APP_BASE.length) {\n break;\n }\n }\n \n if (doc == null) {\n return null;\n }\n \n FileObject root = doc.getParent();\n return root;\n }", "private IWorkspaceRoot getWorkspaceRoot() {\n\t\treturn ResourcesPlugin.getWorkspace().getRoot();\n\t}", "public String getRoot();", "public java.io.File getBaseDir() {\n return baseDir;\n }", "static File getRootFile() {\n File root = new File(Constant.CONFIG_DIRECTORY_NAME);\n boolean directoryCreated = true;\n if (!root.exists()) {\n directoryCreated = root.mkdirs();\n }\n if (directoryCreated) {\n return root;\n } else {\n return null;\n }\n }", "private String getRepositoryPath() {\n if (repoPath != null) {\n return repoPath;\n }\n\n final String pathProp = System.getProperty(SYSTEM_PATH_PROPERTY);\n\n if (pathProp == null || pathProp.isEmpty()) {\n repoPath = getWorkingDirectory();\n } else if (pathProp.charAt(0) == '.') {\n // relative path\n repoPath = getWorkingDirectory() + System.getProperty(\"file.separator\") + pathProp;\n } else {\n repoPath = RepoUtils.stripFileProtocol(pathProp);\n }\n\n log.info(\"Using repository path: \" + repoPath);\n return repoPath;\n }", "public String getRoot() {\n return root;\n }", "protected String getBaseDir(Element root) {\n\t\tString basedir = root.getAttribute(\"basedir\");\n\n\t\tif (basedir.length() == 0) {\n\t\t\t// No base dir defined\n\t\t\treturn null;\n\t\t}\n\n\t\tif (new File(basedir).isAbsolute()) {\n\t\t\t// An absolute base dir defined\n\t\t\treturn basedir;\n\t\t} else {\n\t\t\t// Append the current working directory to the relative base dir\n\t\t\treturn new File(System.getProperty(\"user.dir\"), basedir)\n\t\t\t\t\t.getAbsolutePath();\n\t\t}\n\t}", "public static String getBasePath() {\n String basePath;\n if (new File(\"../../MacOS/JavaApplicationStub\").canExecute()) {\n basePath = \"../../../..\";\n } else {\n basePath = \".\";\n }\n return basePath;\n }", "java.io.File getBaseDir();", "public static Path getCommunityRootFromWorkingDirectory() {\n Path workingDirectory = Paths.get(System.getProperty(\"user.dir\"));\n\n Path current = workingDirectory;\n while (current.getParent() != null) {\n for (String pathCandidate : Arrays.asList(\".\", \"community\", \"ultimate/community\")) {\n Path probeFile = current.resolve(pathCandidate).resolve(\"intellij.idea.community.main.iml\");\n if (Files.exists(probeFile)) {\n return probeFile.getParent();\n }\n }\n\n current = current.getParent();\n }\n\n throw new IllegalStateException(\"IDEA Community root was not found from current working directory \" + workingDirectory);\n }", "public String getRoot() {\n\t\treturn null;\n\t}", "private String getOutputFolder(String path){\n\n //Remove the portion of the path which is prior to our repositories file path\n path = StringUtils.removeStart(FilenameUtils.getFullPath(path), REPOSITORY_LOCATION);\n //Return the path without leading and ending / and ensures the file path uses forward slashes instead of backslashes\n return StringUtils.strip(StringUtils.strip(path,\"/\"),\"\\\\\").replace(\"\\\\\", \"/\");\n }", "public static File getWorkspaceDir(BundleContext context)\n {\n return new File(getTargetDir(context), \"../../\");\n }", "protected String getRootPath() {\n\t\treturn \"/WEB-INF\";\n\t}", "private File getHomeDirectory() {\n String brunelDir = System.getProperty(\"brunel.home\");\n File home = brunelDir != null ? new File(brunelDir) :\n new File(System.getProperty(\"user.home\"), \"brunel\");\n return ensureWritable(home);\n }", "@Override\r\n public String getRootURI() {\r\n if (rootUri == null) {\r\n final StringBuilder buffer = new StringBuilder();\r\n appendRootUri(buffer, true);\r\n buffer.append(SEPARATOR_CHAR);\r\n rootUri = buffer.toString().intern();\r\n }\r\n return rootUri;\r\n }", "String getRootServerBaseUrl();", "@Override\n\tpublic File getHieraFolder() {\n\t\t\n\t\tString hieraFolder = Configuration.getHieraFolder();\n\t\tif (hieraFolder != null) {\n\t\t\tFile file = new File(hieraFolder);\n\t\t\tif (! file.exists()){\n\t\t\t\tthrow new RuntimeException(\"Hiera folder '\"+file.getAbsolutePath()+\"' specified with property '\"+Configuration.DEPLOYMENT_CONFIG_HIERA_FOLDER+\"' does not exist.\");\n\t\t\t}\n\t\t\treturn file;\n\t\t}\n\t\telse {\n\t\t\ttry {\n\t\t\t\t// this is a bit hidden. But it shouldn't be created when we run tests\n\t\t\t\t// and the if here tells us if we are in a test.\n\t\t\t\tgitManager = new EMGitManager(jobId, getApplicationVersion(applicationShortName).getRelatedJiraIssue(), organisation);\n\t\t\t\tgitManager.checkoutHiera();\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(\"Git failed during making the checkout branch, fatal\", e);\n\t\t\t}\n\t\t\treturn gitManager.getCheckoutDir();\n\t\t}\n\t}", "VirtualDirectory getRootContents();", "public File getBasedir()\n {\n return basedir;\n }", "private File getFolder() throws FileNotFoundException, IOException {\n File folder = getConfigurationFolder(new File(\".\").getCanonicalFile());\n if (!folder.isDirectory()) {\n folder = getConfigurationFolder(new File(getInstallationFolder().getPath())\n .getCanonicalFile().getParentFile().getParentFile());\n }\n\n return folder;\n }", "public File getCacheRoot()\r\n {\r\n return cache.getCacheRoot();\r\n }", "protected String getRootName() {\r\n\t\treturn ROOT_NAME;\r\n\t}", "public void setRootDir(String rootDir);", "public static File getRootPackageDir(File location, String longPackageName) {\r\n\t\tfinal StringTokenizer tk = new StringTokenizer(longPackageName, \".\");\r\n\t\tFile back = location;\r\n\t\twhile (tk.hasMoreTokens()) {\r\n\t\t\ttk.nextToken();\r\n\t\t\tback = back.getParentFile();\r\n\t\t}\r\n\t\treturn back;\r\n\t}", "public static String getToolchainRootPath(MakeConfiguration conf) {\n String rootPath = getToolchainExecPath(conf);\n\n int i = rootPath.length() - 2; // Last entry is '/', so skip it.\n while(i >= 0 && '/' != rootPath.charAt(i)) {\n --i;\n }\n\n return rootPath.substring(0, i+1);\n }", "public static String getRootPath(Activity activity) {\n String path;\n if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {\n path = activity.getExternalFilesDir(null).getAbsolutePath()\n + File.separator + \"Autonomes Fahrzeug\" + File.separator;\n } else {\n path = Environment.getExternalStorageDirectory() + File.separator\n + \"Autonomes Fahrzeug\" + File.separator;\n }\n return path;\n }", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "private FileObject getJavaPlatformRoot() throws IOException {\n FileObject retVal;\n String javaHome = instance.getJavaHome();\n if (null == javaHome || javaHome.trim().length() < 1) {\n File dir = new File(getJdkHome());\n retVal = FileUtil.createFolder(FileUtil.normalizeFile(dir));\n } else {\n File f = new File(javaHome);\n if (f.exists()) {\n retVal = FileUtil.createFolder(FileUtil.normalizeFile(f));\n } else {\n throw new FileNotFoundException(\n NbBundle.getMessage(StartTask.class,\n \"MSG_INVALID_JAVA\", instanceName, javaHome));\n }\n }\n return retVal;\n }", "public String getLocalBasePath() {\n\t\treturn DataManager.getLocalBasePath();\n\t}", "public String getWorkspacePath() {\n\t\tString workspacePath = userSettingsService.getUserSettings().getWorkspacePath();\n\t\treturn getAbsoluteSubDirectoryPath(workspacePath);\n\t}", "FsPath baseDir();", "public String getBaseDirectory()\n {\n return m_baseDirectory;\n }", "public static String home() {\n\n String treefsHome = stringValue(\"treefs.home\");\n if(isNullOrEmpty(treefsHome)) {\n // default home location\n treefsHome = System.getProperty(\"user.dir\");\n }\n\n return treefsHome;\n }", "public static Object getRoot(Map context) {\n return context.get(OgnlContext.ROOT_CONTEXT_KEY);\n }", "public Git.Entry getRoot() { \n Node c = this; \n while (c.par != null) c = c.par;\n return c.getObject();\n }", "public String getRelativePath() {\n if (repository == null) {\n return name;\n } else {\n StringBuffer b = new StringBuffer();\n repository.getRelativePath(b);\n b.append(name);\n return b.toString();\n }\n }", "String getDefaultRoot() {\n return mDefaultRoot;\n }", "public String getRootName() {\n\t\treturn rootName;\n\t}", "public PackageName getRootPackageName() {\n return rootPackageName;\n }", "@Override\n public String getCurrentDirectory() {\n return (String) gemFileState.get(STATE_SYNC_DIRECTORY);\n }", "public static File getBaseDir()\n {\n return fBaseDir;\n }", "public FileObject getProjectDirectory() {\n return helper.getProjectDirectory();\n }", "protected VcsRoot getRoot(String branchName) throws IOException {\n return getRoot(branchName, false);\n }", "String folderPath();", "File getRootDirectory() \t\t{ return cvs_root; }", "public static String getUserFolder() {\n\n String sPath;\n String sConfDir;\n\n \n // default is to use system's home folder setting\n sPath = System.getProperty(\"user.home\") + File.separator + \"sextante\"; \n \n // check if SEXTANTE.confDir has been set\n sConfDir = System.getProperty(\"SEXTANTE.confDir\"); \t\n if ( sConfDir != null ) {\n \t sConfDir = sConfDir.trim();\n \t \tif ( sConfDir.length() > 0 ) {\n \t \t\t// check if we have to append a separator char\n \t \t\tif ( sConfDir.endsWith(File.separator) ) {\n \t \t\t\tsPath = sConfDir;\n \t \t\t} else {\n \t \t\t\tsPath = sConfDir + File.separator;\n\t\t\t\t}\n\t\t\t}\n }\n\n final File sextanteFolder = new File(sPath);\n if (!sextanteFolder.exists()) {\n \t sextanteFolder.mkdir();\n }\n return sPath;\n\n }", "public static String getBaseURL()\r\n {\r\n String savedUrl = P.getChoreoServicesUrl();\r\n return savedUrl.length() > 0 ? savedUrl : Config.DEFAULT_SERVER_URL;\r\n }", "Path getBaseInputDir();", "java.lang.String getRoot();", "public Object folderPath() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath();\n }", "public Commit getRoot(){\n\t\treturn myRoot;\n\t}", "public static String getOutputFolder() {\n\n if ((m_sOutputFolder == null) || m_sOutputFolder.trim().equals(\"\")) {\n return System.getProperty(\"user.home\");\n }\n else {\n return m_sOutputFolder;\n }\n\n }", "public File getHomeDir() {\n\t\tFile f = new File(System.getProperty(\"user.home\"),MuViChatConstants.muviHomeDir);\t\t\n if (!f.isDirectory()) {\n\t f.mkdir();\t \n\t }\n return f;\n\t}", "public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public void setRootFolder(String folder) {\n m_RootFolder = folder;\n }", "private String getDirectoryForBackup() {\n\t\tString backupPath = configurationService.getValue(BACKUP_FOLDER_CONFIG);\n\t\tif (backupPath == null) {\n\t\t\t// if backup path null throw error, backup folder must be set\n\t\t\tthrow new ResultCodeException(CoreResultCode.BACKUP_FOLDER_NOT_FOUND,\n\t\t\t\t\tImmutableMap.of(\"property\", BACKUP_FOLDER_CONFIG));\n\t\t}\n\t\t// apend script default backup folder\n\t\tbackupPath = backupPath + \"/\" + SCRIPT_DEFAULT_BACKUP_FOLDER;\n\t\t// add date folder\n\t\tZonedDateTime date = ZonedDateTime.now();\n\t\tDecimalFormat decimalFormat = new DecimalFormat(\"00\");\n\t\treturn backupPath + date.getYear() + decimalFormat.format(date.getMonthValue())\n\t\t\t\t+ decimalFormat.format(date.getDayOfMonth()) + \"/\";\n\t}", "private String formatRootPathForDisplay(File root) {\n\t\t\tString s = root.getPath();\n\t\t\treturn s.length() > 1 && s.endsWith(\"\\\\\") ? s.substring(0, s.length() - 1) : s;\n\t\t}", "@Override\n\tpublic Iterable<Path> getRootDirectories() {\n\t\treturn null;\n\t}", "static File getDistributionInstallationFolder() {\n return ProcessRunnerImpl.getDistRootPath();\n }" ]
[ "0.7721618", "0.7631728", "0.7378118", "0.7346", "0.723385", "0.7165427", "0.71333957", "0.7115091", "0.70877224", "0.70496446", "0.70435405", "0.70401144", "0.6977499", "0.68994284", "0.6888738", "0.6849914", "0.6847095", "0.67237145", "0.6692271", "0.6654597", "0.6556852", "0.6544866", "0.6497725", "0.63302845", "0.63271177", "0.6306784", "0.624994", "0.6231774", "0.62179786", "0.6125098", "0.6111795", "0.60842174", "0.60786974", "0.6062342", "0.6056415", "0.6056156", "0.60554737", "0.60533375", "0.6040149", "0.601886", "0.5983149", "0.5976758", "0.59671193", "0.5954154", "0.5938271", "0.5920794", "0.5920125", "0.5889739", "0.5887764", "0.58082396", "0.5793076", "0.57852125", "0.576272", "0.57614404", "0.57484704", "0.57484376", "0.57268435", "0.56597376", "0.56562346", "0.5655673", "0.56517756", "0.5649295", "0.5634162", "0.5625813", "0.5603643", "0.56032604", "0.5589367", "0.5589367", "0.5581133", "0.55444527", "0.55206716", "0.5515064", "0.55146873", "0.55021816", "0.54871213", "0.547293", "0.54670954", "0.54640657", "0.54573435", "0.5456997", "0.54462147", "0.5436428", "0.54290146", "0.5428877", "0.5421837", "0.5419236", "0.54184794", "0.5415381", "0.54109913", "0.54084456", "0.5404997", "0.54048896", "0.5399499", "0.5388289", "0.5386147", "0.5380597", "0.5379452", "0.53686684", "0.5367543", "0.53671813" ]
0.78458905
0
Get root folder for current repository.
public String getLocalRepositoryRootFolder() { String userFolder = IdatrixPropertyUtil.getProperty("idatrix.local.reposity.root",getRepositoryRootFolder() ); int index = userFolder.indexOf("://"); if(index > -1 ) { userFolder = userFolder.substring(index+3); } return userFolder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRepositoryRootFolder() {\n\t\tString userFolder = UnixPathUtil.unixPath(IdatrixPropertyUtil.getProperty(\"idatrix.metadata.reposity.root\",\"/data/ETL/reposity/\"));\n\t\tif (CloudApp.getInstance().getRepository() instanceof KettleFileRepository) {\n\t\t\tKettleFileRepository fileRepo = (KettleFileRepository) CloudApp.getInstance().getRepository();\n\t\t\tuserFolder = fileRepo.getRepositoryMeta().getBaseDirectory();\n\t\t}\n\t\treturn userFolder;\n\t}", "public static String rootDir()\n {\n read_if_needed_();\n \n return _root;\n }", "private Folder getRootFolder() {\n if(!MigrationProperties.get(MigrationProperties.PROP_MIGRATION_PROFILE).equalsIgnoreCase(\"DELTA\")) {\n String folderPath = MigrationProperties.get(MigrationProperties.PROP_SOURCE_LOCATION);\n\n if (folderPath != null && folderPath.contains(\"/\")) {\n Folder rootFolder = CmisHelper.getFolder(jobParameters.getSessionSource(), folderPath);\n return rootFolder;\n\n } else\n return null;\n } else\n return null;\n }", "public static String getRootFolderName() {\n\n return rootFolderName;\n }", "public String getRootFolder() {\n return m_RootFolder;\n }", "public File getRootDir() {\n return rootDir;\n }", "public File getGitRepoContainerDir() {\n return config.getGitReposParentDir();\n }", "public String getRootPath() {\n return root.getPath();\n }", "public File getRootDir() {\r\n\t\treturn rootDir;\r\n\t}", "protected File getRootDir() {\r\n\t\tif (rootDir == null) {\r\n\t\t\trootDir = new File(getProperties().getString(\"rootDir\"));\r\n\t\t\tif (! rootDir.exists())\r\n\t\t\t\tif (! rootDir.mkdirs())\r\n\t\t\t\t\tthrow new RuntimeException(\"Could not create root dir\");\r\n\t\t}\r\n\t\treturn rootDir;\r\n\t}", "public static File getRootDirectory() {\n\t\treturn ROOT_DIRECTORY;\n\t}", "public static File getProjectRoot() {\n\t\tString filePath = \"/\";\n\t\tString rootDirName = FileUtil.class.getResource(filePath).getPath();\n\t\tFile rtn = new File(rootDirName, \"../../\");\n\t\treturn rtn;\n\t}", "Path getRootPath();", "private String getCodeRoot(boolean cloningRepo) {\n\t\tString rootDir;\n\t\tJFrame frame = new JFrame();\n\t\tJFileChooser chooser = new JFileChooser();\n\t\t// Set proper options for root selector\n\t\tchooser.setCurrentDirectory(new File(\"..\"));\n\n\t\tif (cloningRepo) {\n\t\t\tchooser.setDialogTitle(\"Please Select Directory to Create Temporary Git Repo\");\n\t\t} else {\n\t\t\tchooser.setDialogTitle(\"Please Select Codebase Root Directory\");\n\t\t}\n\n\t\tchooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\t\tchooser.setAcceptAllFileFilterUsed(false);\n\t\t// If they hit cancel shutdown system\n\t\tif (chooser.showOpenDialog(frame) == JFileChooser.CANCEL_OPTION) {\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\t// If this happens we have other issues, but to be safe :)\n\t\tif (chooser.getSelectedFile() == null)\n\t\t\treturn null;\n\n\t\trootDir = chooser.getSelectedFile().getAbsolutePath();\n\t\tframe.dispose();\n\t\treturn rootDir;\n\t}", "public Path getRepositoryBaseDir();", "public static String gitRootDir(String repoDir) throws IOException {\n return exec(\"git rev-parse --show-toplevel\", repoDir).trim();\n }", "public String getProjectRootDirectory() {\r\n\t\treturn getTextValue(workspaceRootText);\r\n\t}", "public String getRootPath() {\r\n return rootPath;\r\n }", "public IDirectory getRootDirectory() {\r\n return rootDir;\r\n }", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "File getRootDir() {\n\t\treturn rootDirFile;\n\t}", "public Path getRepositoryGroupBaseDir();", "public static String getCloudTestRootPath() {\n\n return getCLOUDTEST_HOME() + File.separator + rootFolderName\n + File.separator;\n }", "public Path getRemoteRepositoryBaseDir();", "public URL getRootDirURL() {\n\t\treturn null;\n\t}", "String rootPath();", "String getInstallRoot();", "public File getBaseDir() {\n if (baseDir == null) {\n try {\n setBasedir(\".\");\n } catch (BuildException ex) {\n ex.printStackTrace();\n }\n }\n return baseDir;\n }", "public static String getBaseDir() {\r\n Path currentRelativePath = Paths.get(System.getProperty(\"user.dir\"));\r\n return currentRelativePath.toAbsolutePath().toString();\r\n }", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "public File getRoot() {\n return this.root;\n }", "public String getGitBasePath() {\n\t\tif (StringUtils.isBlank(gitBasePath)) {\n\t\t\tgitBasePath = System.getProperties().getProperty(\"user.home\") + \"/gittest\";\n\t\t}\n\t\treturn gitBasePath;\n\t}", "public static String getBaseDir() {\n // 'basedir' is set by Maven Surefire. It always points to the current subproject,\n // even in reactor builds.\n String baseDir = System.getProperty(\"basedir\");\n\n // if 'basedir' is not set, try the current directory\n if (baseDir == null) {\n baseDir = System.getProperty(\"user.dir\");\n }\n return baseDir;\n }", "DiscDirectoryInfo getRoot();", "String getRepositoryPath();", "FileObject getBaseFolder();", "@Basic @Raw\r\npublic FileSystem getRoot() {\r\n\tif (dir == null) {\r\n\t\treturn this;\r\n\t}\r\n\telse {\r\n\t\tFileSystem root = this.getDir();\r\n\t\twhile (root != null) {\r\n\t\t\troot = root.getDir();\r\n\t\t}\r\n\t\treturn root;\r\n\t\t\r\n\t}\r\n}", "private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }", "public static FileObject getCiRoot(FileObject doc) {\n //TODO: Need Talk\n //What is the best way to know the \"root\" directory of CodeIgniter?\n \n while (doc != null) {\n doc = doc.getParent();\n FileObject[] children = doc.getChildren();\n int count = 0;\n \n for (FileObject child: children) {\n for (String folder: APP_BASE) {\n if (child\n .getName()\n .equals(folder.toLowerCase(Locale.ENGLISH))) {\n count++;\n break;\n }\n }\n }\n \n if (count == APP_BASE.length) {\n break;\n }\n }\n \n if (doc == null) {\n return null;\n }\n \n FileObject root = doc.getParent();\n return root;\n }", "private IWorkspaceRoot getWorkspaceRoot() {\n\t\treturn ResourcesPlugin.getWorkspace().getRoot();\n\t}", "public String getRoot();", "public java.io.File getBaseDir() {\n return baseDir;\n }", "static File getRootFile() {\n File root = new File(Constant.CONFIG_DIRECTORY_NAME);\n boolean directoryCreated = true;\n if (!root.exists()) {\n directoryCreated = root.mkdirs();\n }\n if (directoryCreated) {\n return root;\n } else {\n return null;\n }\n }", "private String getRepositoryPath() {\n if (repoPath != null) {\n return repoPath;\n }\n\n final String pathProp = System.getProperty(SYSTEM_PATH_PROPERTY);\n\n if (pathProp == null || pathProp.isEmpty()) {\n repoPath = getWorkingDirectory();\n } else if (pathProp.charAt(0) == '.') {\n // relative path\n repoPath = getWorkingDirectory() + System.getProperty(\"file.separator\") + pathProp;\n } else {\n repoPath = RepoUtils.stripFileProtocol(pathProp);\n }\n\n log.info(\"Using repository path: \" + repoPath);\n return repoPath;\n }", "public String getRoot() {\n return root;\n }", "protected String getBaseDir(Element root) {\n\t\tString basedir = root.getAttribute(\"basedir\");\n\n\t\tif (basedir.length() == 0) {\n\t\t\t// No base dir defined\n\t\t\treturn null;\n\t\t}\n\n\t\tif (new File(basedir).isAbsolute()) {\n\t\t\t// An absolute base dir defined\n\t\t\treturn basedir;\n\t\t} else {\n\t\t\t// Append the current working directory to the relative base dir\n\t\t\treturn new File(System.getProperty(\"user.dir\"), basedir)\n\t\t\t\t\t.getAbsolutePath();\n\t\t}\n\t}", "public static String getBasePath() {\n String basePath;\n if (new File(\"../../MacOS/JavaApplicationStub\").canExecute()) {\n basePath = \"../../../..\";\n } else {\n basePath = \".\";\n }\n return basePath;\n }", "java.io.File getBaseDir();", "public static Path getCommunityRootFromWorkingDirectory() {\n Path workingDirectory = Paths.get(System.getProperty(\"user.dir\"));\n\n Path current = workingDirectory;\n while (current.getParent() != null) {\n for (String pathCandidate : Arrays.asList(\".\", \"community\", \"ultimate/community\")) {\n Path probeFile = current.resolve(pathCandidate).resolve(\"intellij.idea.community.main.iml\");\n if (Files.exists(probeFile)) {\n return probeFile.getParent();\n }\n }\n\n current = current.getParent();\n }\n\n throw new IllegalStateException(\"IDEA Community root was not found from current working directory \" + workingDirectory);\n }", "public String getRoot() {\n\t\treturn null;\n\t}", "private String getOutputFolder(String path){\n\n //Remove the portion of the path which is prior to our repositories file path\n path = StringUtils.removeStart(FilenameUtils.getFullPath(path), REPOSITORY_LOCATION);\n //Return the path without leading and ending / and ensures the file path uses forward slashes instead of backslashes\n return StringUtils.strip(StringUtils.strip(path,\"/\"),\"\\\\\").replace(\"\\\\\", \"/\");\n }", "public static File getWorkspaceDir(BundleContext context)\n {\n return new File(getTargetDir(context), \"../../\");\n }", "protected String getRootPath() {\n\t\treturn \"/WEB-INF\";\n\t}", "private File getHomeDirectory() {\n String brunelDir = System.getProperty(\"brunel.home\");\n File home = brunelDir != null ? new File(brunelDir) :\n new File(System.getProperty(\"user.home\"), \"brunel\");\n return ensureWritable(home);\n }", "@Override\r\n public String getRootURI() {\r\n if (rootUri == null) {\r\n final StringBuilder buffer = new StringBuilder();\r\n appendRootUri(buffer, true);\r\n buffer.append(SEPARATOR_CHAR);\r\n rootUri = buffer.toString().intern();\r\n }\r\n return rootUri;\r\n }", "String getRootServerBaseUrl();", "@Override\n\tpublic File getHieraFolder() {\n\t\t\n\t\tString hieraFolder = Configuration.getHieraFolder();\n\t\tif (hieraFolder != null) {\n\t\t\tFile file = new File(hieraFolder);\n\t\t\tif (! file.exists()){\n\t\t\t\tthrow new RuntimeException(\"Hiera folder '\"+file.getAbsolutePath()+\"' specified with property '\"+Configuration.DEPLOYMENT_CONFIG_HIERA_FOLDER+\"' does not exist.\");\n\t\t\t}\n\t\t\treturn file;\n\t\t}\n\t\telse {\n\t\t\ttry {\n\t\t\t\t// this is a bit hidden. But it shouldn't be created when we run tests\n\t\t\t\t// and the if here tells us if we are in a test.\n\t\t\t\tgitManager = new EMGitManager(jobId, getApplicationVersion(applicationShortName).getRelatedJiraIssue(), organisation);\n\t\t\t\tgitManager.checkoutHiera();\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(\"Git failed during making the checkout branch, fatal\", e);\n\t\t\t}\n\t\t\treturn gitManager.getCheckoutDir();\n\t\t}\n\t}", "VirtualDirectory getRootContents();", "public File getBasedir()\n {\n return basedir;\n }", "private File getFolder() throws FileNotFoundException, IOException {\n File folder = getConfigurationFolder(new File(\".\").getCanonicalFile());\n if (!folder.isDirectory()) {\n folder = getConfigurationFolder(new File(getInstallationFolder().getPath())\n .getCanonicalFile().getParentFile().getParentFile());\n }\n\n return folder;\n }", "public File getCacheRoot()\r\n {\r\n return cache.getCacheRoot();\r\n }", "protected String getRootName() {\r\n\t\treturn ROOT_NAME;\r\n\t}", "public void setRootDir(String rootDir);", "public static File getRootPackageDir(File location, String longPackageName) {\r\n\t\tfinal StringTokenizer tk = new StringTokenizer(longPackageName, \".\");\r\n\t\tFile back = location;\r\n\t\twhile (tk.hasMoreTokens()) {\r\n\t\t\ttk.nextToken();\r\n\t\t\tback = back.getParentFile();\r\n\t\t}\r\n\t\treturn back;\r\n\t}", "public static String getToolchainRootPath(MakeConfiguration conf) {\n String rootPath = getToolchainExecPath(conf);\n\n int i = rootPath.length() - 2; // Last entry is '/', so skip it.\n while(i >= 0 && '/' != rootPath.charAt(i)) {\n --i;\n }\n\n return rootPath.substring(0, i+1);\n }", "public static String getRootPath(Activity activity) {\n String path;\n if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {\n path = activity.getExternalFilesDir(null).getAbsolutePath()\n + File.separator + \"Autonomes Fahrzeug\" + File.separator;\n } else {\n path = Environment.getExternalStorageDirectory() + File.separator\n + \"Autonomes Fahrzeug\" + File.separator;\n }\n return path;\n }", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "private FileObject getJavaPlatformRoot() throws IOException {\n FileObject retVal;\n String javaHome = instance.getJavaHome();\n if (null == javaHome || javaHome.trim().length() < 1) {\n File dir = new File(getJdkHome());\n retVal = FileUtil.createFolder(FileUtil.normalizeFile(dir));\n } else {\n File f = new File(javaHome);\n if (f.exists()) {\n retVal = FileUtil.createFolder(FileUtil.normalizeFile(f));\n } else {\n throw new FileNotFoundException(\n NbBundle.getMessage(StartTask.class,\n \"MSG_INVALID_JAVA\", instanceName, javaHome));\n }\n }\n return retVal;\n }", "public String getLocalBasePath() {\n\t\treturn DataManager.getLocalBasePath();\n\t}", "public String getWorkspacePath() {\n\t\tString workspacePath = userSettingsService.getUserSettings().getWorkspacePath();\n\t\treturn getAbsoluteSubDirectoryPath(workspacePath);\n\t}", "FsPath baseDir();", "public String getBaseDirectory()\n {\n return m_baseDirectory;\n }", "public static String home() {\n\n String treefsHome = stringValue(\"treefs.home\");\n if(isNullOrEmpty(treefsHome)) {\n // default home location\n treefsHome = System.getProperty(\"user.dir\");\n }\n\n return treefsHome;\n }", "public static Object getRoot(Map context) {\n return context.get(OgnlContext.ROOT_CONTEXT_KEY);\n }", "public Git.Entry getRoot() { \n Node c = this; \n while (c.par != null) c = c.par;\n return c.getObject();\n }", "public String getRelativePath() {\n if (repository == null) {\n return name;\n } else {\n StringBuffer b = new StringBuffer();\n repository.getRelativePath(b);\n b.append(name);\n return b.toString();\n }\n }", "String getDefaultRoot() {\n return mDefaultRoot;\n }", "public String getRootName() {\n\t\treturn rootName;\n\t}", "public PackageName getRootPackageName() {\n return rootPackageName;\n }", "@Override\n public String getCurrentDirectory() {\n return (String) gemFileState.get(STATE_SYNC_DIRECTORY);\n }", "public static File getBaseDir()\n {\n return fBaseDir;\n }", "public FileObject getProjectDirectory() {\n return helper.getProjectDirectory();\n }", "protected VcsRoot getRoot(String branchName) throws IOException {\n return getRoot(branchName, false);\n }", "String folderPath();", "File getRootDirectory() \t\t{ return cvs_root; }", "public static String getUserFolder() {\n\n String sPath;\n String sConfDir;\n\n \n // default is to use system's home folder setting\n sPath = System.getProperty(\"user.home\") + File.separator + \"sextante\"; \n \n // check if SEXTANTE.confDir has been set\n sConfDir = System.getProperty(\"SEXTANTE.confDir\"); \t\n if ( sConfDir != null ) {\n \t sConfDir = sConfDir.trim();\n \t \tif ( sConfDir.length() > 0 ) {\n \t \t\t// check if we have to append a separator char\n \t \t\tif ( sConfDir.endsWith(File.separator) ) {\n \t \t\t\tsPath = sConfDir;\n \t \t\t} else {\n \t \t\t\tsPath = sConfDir + File.separator;\n\t\t\t\t}\n\t\t\t}\n }\n\n final File sextanteFolder = new File(sPath);\n if (!sextanteFolder.exists()) {\n \t sextanteFolder.mkdir();\n }\n return sPath;\n\n }", "public static String getBaseURL()\r\n {\r\n String savedUrl = P.getChoreoServicesUrl();\r\n return savedUrl.length() > 0 ? savedUrl : Config.DEFAULT_SERVER_URL;\r\n }", "Path getBaseInputDir();", "java.lang.String getRoot();", "public Object folderPath() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath();\n }", "public Commit getRoot(){\n\t\treturn myRoot;\n\t}", "public static String getOutputFolder() {\n\n if ((m_sOutputFolder == null) || m_sOutputFolder.trim().equals(\"\")) {\n return System.getProperty(\"user.home\");\n }\n else {\n return m_sOutputFolder;\n }\n\n }", "public File getHomeDir() {\n\t\tFile f = new File(System.getProperty(\"user.home\"),MuViChatConstants.muviHomeDir);\t\t\n if (!f.isDirectory()) {\n\t f.mkdir();\t \n\t }\n return f;\n\t}", "public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public void setRootFolder(String folder) {\n m_RootFolder = folder;\n }", "private String getDirectoryForBackup() {\n\t\tString backupPath = configurationService.getValue(BACKUP_FOLDER_CONFIG);\n\t\tif (backupPath == null) {\n\t\t\t// if backup path null throw error, backup folder must be set\n\t\t\tthrow new ResultCodeException(CoreResultCode.BACKUP_FOLDER_NOT_FOUND,\n\t\t\t\t\tImmutableMap.of(\"property\", BACKUP_FOLDER_CONFIG));\n\t\t}\n\t\t// apend script default backup folder\n\t\tbackupPath = backupPath + \"/\" + SCRIPT_DEFAULT_BACKUP_FOLDER;\n\t\t// add date folder\n\t\tZonedDateTime date = ZonedDateTime.now();\n\t\tDecimalFormat decimalFormat = new DecimalFormat(\"00\");\n\t\treturn backupPath + date.getYear() + decimalFormat.format(date.getMonthValue())\n\t\t\t\t+ decimalFormat.format(date.getDayOfMonth()) + \"/\";\n\t}", "private String formatRootPathForDisplay(File root) {\n\t\t\tString s = root.getPath();\n\t\t\treturn s.length() > 1 && s.endsWith(\"\\\\\") ? s.substring(0, s.length() - 1) : s;\n\t\t}", "@Override\n\tpublic Iterable<Path> getRootDirectories() {\n\t\treturn null;\n\t}", "static File getDistributionInstallationFolder() {\n return ProcessRunnerImpl.getDistRootPath();\n }" ]
[ "0.78458905", "0.7721618", "0.7378118", "0.7346", "0.723385", "0.7165427", "0.71333957", "0.7115091", "0.70877224", "0.70496446", "0.70435405", "0.70401144", "0.6977499", "0.68994284", "0.6888738", "0.6849914", "0.6847095", "0.67237145", "0.6692271", "0.6654597", "0.6556852", "0.6544866", "0.6497725", "0.63302845", "0.63271177", "0.6306784", "0.624994", "0.6231774", "0.62179786", "0.6125098", "0.6111795", "0.60842174", "0.60786974", "0.6062342", "0.6056415", "0.6056156", "0.60554737", "0.60533375", "0.6040149", "0.601886", "0.5983149", "0.5976758", "0.59671193", "0.5954154", "0.5938271", "0.5920794", "0.5920125", "0.5889739", "0.5887764", "0.58082396", "0.5793076", "0.57852125", "0.576272", "0.57614404", "0.57484704", "0.57484376", "0.57268435", "0.56597376", "0.56562346", "0.5655673", "0.56517756", "0.5649295", "0.5634162", "0.5625813", "0.5603643", "0.56032604", "0.5589367", "0.5589367", "0.5581133", "0.55444527", "0.55206716", "0.5515064", "0.55146873", "0.55021816", "0.54871213", "0.547293", "0.54670954", "0.54640657", "0.54573435", "0.5456997", "0.54462147", "0.5436428", "0.54290146", "0.5428877", "0.5421837", "0.5419236", "0.54184794", "0.5415381", "0.54109913", "0.54084456", "0.5404997", "0.54048896", "0.5399499", "0.5388289", "0.5386147", "0.5380597", "0.5379452", "0.53686684", "0.5367543", "0.53671813" ]
0.7631728
2
Get meta store for given user.
public DelegatingMetaStore getMetaStore(String username) throws Exception { if(Utils.isEmpty(username)) { username = CloudSession.getResourceUser(); } if(Utils.isEmpty(username)) { return getDefaultMetaStore(); } DelegatingMetaStore dms = null ; if (metaStores.containsKey(username)) { dms = metaStores.get(username); // Already had a meta store for the user in application! } if(dms == null ) { dms = initUserMetaStores(username); } return dms != null ? dms : getDefaultMetaStore(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserStoreManager getUserStoreManager() throws UserStoreException;", "public com.google.cloud.aiplatform.v1.MetadataStore getMetadataStore(\n com.google.cloud.aiplatform.v1.GetMetadataStoreRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getGetMetadataStoreMethod(), getCallOptions(), request);\n }", "DataStoreInfo getUserDataStoreInfo();", "public MetaUser getMetaUser(int iUser);", "public MetaUser getMetaUser(String sName);", "public UserStorage getUserStorage() {\n return UserStorage.getInstance();\n }", "public DelegatingMetaStore getDefaultMetaStore() {\n\t\treturn metaStore;\n\t}", "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.aiplatform.v1.MetadataStore>\n getMetadataStore(com.google.cloud.aiplatform.v1.GetMetadataStoreRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getGetMetadataStoreMethod(), getCallOptions()), request);\n }", "public WorkspaceUserMetadata getMetadata() {\n\t\treturn meta;\n\t}", "public WorkspaceUserMetadata getMetadata() {\n\t\t\treturn meta;\n\t\t}", "public StoreWithEnterpriseTO getStore(long storeID) throws NotInDatabaseException;", "public MetadataStore getMetadataStoreForDisplay() {\n \t\t\tfinal MetadataStore store = omeMeta.getRoot();\n \t\t\tif (service.isOMEXMLMetadata(store)) {\n \t\t\t\tservice.removeBinData((OMEXMLMetadata) store);\n \t\t\t\tfor (int i = 0; i < getImageCount(); i++) {\n \t\t\t\t\tif (((OMEXMLMetadata) store).getTiffDataCount(i) == 0) {\n \t\t\t\t\t\tservice.addMetadataOnly((OMEXMLMetadata) store, i);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\treturn store;\n \t\t}", "@Override\n\tpublic DocumentWithMeta getSysDocumentMeta(CallingContext context,\n\t\t\tString raptureURI) {\n\t\tRaptureURI uri = new RaptureURI(raptureURI);\n\t\tswitch(uri.getScheme()) {\n\t\tcase SCRIPT:\n\t\t\treturn RaptureScriptStorage.getDocumentWithMeta(uri);\n\t\tcase WORKFLOW:\n\t\t\treturn WorkflowStorage.getDocumentWithMeta(uri);\n\t\tcase WORKORDER:\n\t\t\treturn WorkOrderStorage.getDocumentWithMeta(uri);\n\t\tcase JAR:\n\t\t\treturn JarStorage.getDocumentWithMeta(uri);\n\t\tcase USER:\n\t\t\treturn RaptureUserStorage.getDocumentWithMeta(uri);\n\t\tdefault:\n\t\t\tlog.error(\"Do not currently support reading metadata for \" + uri);\n\t\t\treturn null;\n\t\t}\n\t}", "public AccountStorage getStore() {\n\t\t@SuppressWarnings(\"resource\")\n\t\tApplicationContext springContext = new AnnotationConfigApplicationContext(AccountServerConfig.class);\n return (AccountStorage) springContext.getBean(\"getStorage\");\n\t}", "public MetadataStore getMetadataStoreForDisplay() {\n MetadataStore store = getMetadataStore();\n if (service.isOMEXMLMetadata(store)) {\n service.removeBinData((OMEXMLMetadata) store);\n for (int i=0; i<getSeriesCount(); i++) {\n if (((OMEXMLMetadata) store).getTiffDataCount(i) == 0) {\n service.addMetadataOnly((OMEXMLMetadata) store, i);\n }\n }\n }\n return store;\n }", "public T getStore() {\r\n\t\treturn store;\r\n\t}", "@Override\r\n\tpublic Shop getShopByUserId(int userid) {\n\t\treturn sm.selectByUserId(userid);\r\n\t}", "com.google.ads.googleads.v4.common.StoreAttribute getStoreAttribute();", "protected String getStore() {\n return store;\n }", "public void getMetadataStore(\n com.google.cloud.aiplatform.v1.GetMetadataStoreRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.MetadataStore>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getGetMetadataStoreMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "UserSettings getByUser();", "public static PropertyStore getStore(final String key) {\n PropertyStore returnMe = _propStore.get(key);\n if (returnMe == null) {\n returnMe = new PropertyStore(new ScopedPreferenceStore(new InstanceScope(), key), new ScopedPreferenceStore(\n new ConfigurationScope(), key));\n _propStore.put(key, returnMe);\n }\n return returnMe;\n }", "@Override\r\n\tpublic Store getStore(String name, String location){\r\n\t\tif (name != null && location != null) {\r\n\t\t\ttry {\r\n\t\t\t\tIData data = DataFactory.getInstance(emf);\r\n\t\t\t\tIPersistence pm = data.getPersistenceManager();\r\n\t\t\t\tIPersistenceContext pctx = pm.getPersistenceContext();\r\n\t\t\t\tStore store = data.getStoreQuery().queryStore(name, location, pctx);\r\n\t\t\t\treturn store;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tif (LoggerConfig.ON) {\r\n\t\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public UserStore create(){\n //For now, return only Local\n return new LocalUserStore(this.userCache);\n }", "public UserPersistence getUserPersistence() {\n return userPersistence;\n }", "public UserPersistence getUserPersistence() {\n return userPersistence;\n }", "public UserPersistence getUserPersistence() {\n return userPersistence;\n }", "public UserPersistence getUserPersistence() {\n return userPersistence;\n }", "public IStore getIStore() {\n\n\t\treturn store;\n\t}", "@Override\r\n\tpublic Store getStoreByID(int id) {\n\t\treturn getByKey(id);\r\n\t}", "@Override\r\n\tpublic Store getStoreById(int id) {\n\t\treturn storeRepository.getStoreById(id);\r\n\t}", "UserSettings getByUser(HawkularUser user);", "<K, V> KeyValueStoreReader<K, V> getStore(String storeName) throws IOException;", "public UserPersistence getUserPersistence() {\n\t\treturn userPersistence;\n\t}", "public UserPersistence getUserPersistence() {\n\t\treturn userPersistence;\n\t}", "public UserPersistence getUserPersistence() {\n\t\treturn userPersistence;\n\t}", "public UserPersistence getUserPersistence() {\n\t\treturn userPersistence;\n\t}", "public User getUser() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n String userJson = sharedPreferences.getString(KEY_USER, null);\n User user = new Gson().fromJson(userJson, new TypeToken<User>(){}.getType());\n return user;\n }", "public static IPreferenceStore getUIStore() {\n return getUIPlugin().getPreferenceStore();\n }", "void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }", "void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }", "public alluxio.proto.journal.KeyValue.CreateStoreEntry getCreateStore() {\n if (createStoreBuilder_ == null) {\n return createStore_;\n } else {\n return createStoreBuilder_.getMessage();\n }\n }", "public Map<String, String> getUserMetaData() {\n\t\treturn userMetaData;\n\t}", "private String getStoreName() {\n if (storeName == null) {\n storeName = System.getProperty(\"user.dir\")\n + File.separator\n + QVCSConstants.QVCS_META_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_FILEID_DICT_STORE_NAME\n + \"dat\";\n }\n return storeName;\n }", "public UserData getUser() {\n return user;\n }", "public static PropertyStore getStore(final String key, final boolean useProjectSettings) {\n PropertyStore returnMe = _propStore.get(key);\n if (returnMe == null) {\n returnMe = new PropertyStore(new ScopedPreferenceStore(new InstanceScope(), key), new ScopedPreferenceStore(\n new ConfigurationScope(), key), useProjectSettings);\n _propStore.put(key, returnMe);\n }\n return returnMe;\n }", "UserSettings store(HawkularUser user, String key, String value);", "public UserData get(String user_id) {\n\t\treturn null;\r\n\t}", "public StoreFactory getStoreFactory()\r\n {\r\n return (StoreFactory)getEFactoryInstance();\r\n }", "public static Store getStore(final StoreDto _store){\n\t\tStore store = new Store();\n\t\tstore.setStoreAddress(_store.getStoreAddress());\n\t\t//store.setStoreCity(Integer.parseInt(_store.getStoreCity()));\n\t\t//store.setStoreId(Integer.parseInt(_store.getStoreId()));\n\t\t//store.setStoreLocality(Integer.parseInt(_store.getStoreLocality()));\n\t\tstore.setStoreMobNo(Integer.parseInt(_store.getStoreMobNo()));\n\t\tstore.setStoreName(_store.getStoreName());\n\t\t//store.setStoreType(Integer.parseInt(_store.getStoreType()));\n\t\t//store.setOwnerName(_store.getOwnerName());\n\t\t//store.setEmailAddress(_store.getEmailAddress());\n\t\t//store.setStorePincode(Integer.parseInt(_store.getStorePincode()));\n\t\t//store.setServiceArea(_store.getServiceArea());\n\t\treturn store;\n\t}", "@Override\n\tpublic AppUser getUserById(int id) {\n\t\tAppUser user = store.get(id);\n return user;\n\t\t\n\t}", "public IPSObjectStoreHandler getObjectStoreHandler();", "public alluxio.proto.journal.KeyValue.CreateStoreEntry getCreateStore() {\n return createStore_;\n }", "public T getUserManager() {\n\t\treturn userManager;\n\t}", "public interface StoreDao {\n /**\n * 判断shopId是否存在\n * @param id\n * @return boolean\n */\n boolean isStoreIdExists(String id);\n /**\n * 返回图片\n * @param clothId\n * @return User\n */\n String getStoreClothById(String clothId);\n}", "com.google.ads.googleads.v4.common.StoreAttributeOrBuilder getStoreAttributeOrBuilder();", "default <T extends MetaManipulator> T obtain(Class<T> clazz) {\n return MetaRegistry.get(this, clazz);\n }", "@JsonProperty(\"dbMetastore\")\n public String getDbMetastore() {\n return dbMetastore;\n }", "public Store getStore(int id) throws IllegalArgumentException {\r\n\t\treturn this.storeMapper.findByID(id);\r\n\t}", "public MetadataStore getMetadataStoreForConversion() {\n MetadataStore store = getMetadataStore();\n int realSeries = getSeries();\n for (int i=0; i<getSeriesCount(); i++) {\n setSeries(i);\n store.setPixelsBinDataBigEndian(new Boolean(!isLittleEndian()), i, 0);\n }\n setSeries(realSeries);\n return store;\n }", "public Cart getCart(GyftyUser user) throws ParseException {\n Cart cart = null;\n ParseQuery<Cart> query = ParseQuery.getQuery(\"Cart\");\n query.whereEqualTo(Cart.CartParams.user.toString(), user);\n\n try {\n cart = query.getFirst();\n if (cart == null) {\n cart = new Cart();\n cart.setUser(user);\n cart.save();\n }\n\n } catch (ParseException e) {\n\n Log.e(Cart.DEFAULT_PIN, \"Cannot find cart\", e);\n }\n\n return cart;\n\n }", "private boolean isStoreIdentityClaimsInUserStoreEnabled(UserStoreManager userStoreManager) {\n\n return Boolean.parseBoolean(userStoreManager.getRealmConfiguration().\n getUserStoreProperty(STORE_IDENTITY_CLAIMS));\n }", "public jkt.hms.masters.business.MasStoreSupplier getSupplier () {\n\t\treturn supplier;\n\t}", "public String getStoreName() {\n return (String) get(\"store_name\");\n }", "@Override\r\n\tpublic ProductRaw_Store getStoreByPid(int pid) {\n\t\treturn productRaw_StoreDao.getByPid(pid);\r\n\t}", "OsType getObjectStore();", "alluxio.proto.journal.KeyValue.CreateStoreEntry getCreateStore();", "public Object getMeta() {\n return meta;\n }", "public MetadataStore getMetadataStoreForConversion() {\n \t\t\tfinal MetadataStore store = omeMeta.getRoot();\n \t\t\tfor (int i = 0; i < getImageCount(); i++) {\n \t\t\t\tstore.setPixelsBinDataBigEndian(new Boolean(!get(i).isLittleEndian()),\n \t\t\t\t\ti, 0);\n \t\t\t}\n \t\t\treturn store;\n \t\t}", "public Long getStoreId() {\n return storeId;\n }", "public abstract StoreInfo getInfo();", "public IPreferenceStore getPreferenceStore(String name);", "public Long getStoreId() {\r\n return storeId;\r\n }", "@Override\n public User get(User user) {\n user.setName(\"zyq\");\n return user;\n }", "protected Store getStore() throws MessagingException {\n\t\tSession session = EmailUtil.createSession(protocol, timeoutMs);\n\t\treturn session.getStore();\n\t}", "UserSettings getOrCreateByUser(HawkularUser user);", "public jkt.hms.masters.business.MasStoreItem getItem () {\n\t\treturn item;\n\t}", "public ObjectStore getCEObjectStore()\r\n\t{\r\n\t\tString Uri = ReadProperty.getProperty(\"URI\");\r\n\t\tConnection conn = Factory.Connection.getConnection(Uri); \r\n\t\t//String decryptpassword = encrypt.decrypt(ReadProperty.getProperty(\"PASSWORD\"));\r\n\t\tString decryptedpassword = encrypt.getDeMes(ReadProperty.getProperty(\"USER_NAME\"), ReadProperty.getProperty(\"PASSWORD\"));\r\n\t\tSubject subject = UserContext.createSubject(conn, ReadProperty.getProperty(\"USER_NAME\"),decryptedpassword,null);\r\n\t\tUserContext.get().pushSubject(subject);\r\n\t\tDomain domain = Factory.Domain.fetchInstance(conn, ReadProperty.getProperty(\"DOMAIN\"), null);\r\n\t\tobjstore=Factory.ObjectStore.fetchInstance(domain, ReadProperty.getProperty(\"OBJECTSTORE\"), null);\r\n\t\t\r\n\t\t\r\n\r\n\t\tlogger.info(\"In getCESession\");\r\n\r\n\r\n\t\tlogger.info(\"Connected To CE Succesfully \" + objstore.get_Name());\r\n\r\n\r\n\r\n\t\treturn objstore;\r\n\t}", "@Override\n public List<UserPanelItem> getItems(User user)\n {\n return Collections.emptyList();\n }", "@NonNull\n DevicePolicyData getUserData(int userHandle) {\n synchronized (getLockObject()) {\n DevicePolicyData policy = mUserData.get(userHandle);\n if (policy == null) {\n policy = new DevicePolicyData(userHandle);\n mUserData.append(userHandle, policy);\n loadSettingsLocked(policy, userHandle);\n if (userHandle == UserHandle.USER_SYSTEM) {\n mStateCache.setDeviceProvisioned(policy.mUserSetupComplete);\n }\n }\n return policy;\n }\n }", "public interface StoreManager {\n ConfigurationStore getConfigurationStore();\n EventStore getEventStore();\n}", "@Override\n\tpublic Store findOne(Integer storeId) {\n\t\treturn storeRepository.getOne(storeId);\n\t}", "private static Profile getProfileFromUser(User user) {\n // First fetch the user's Profile from the datastore.\n Profile profile = ofy().load().key(\n Key.create(Profile.class, user.getUserId())).now();\n if (profile == null) {\n // Create a new Profile if it doesn't exist.\n // Use default displayName and teeShirtSize\n String email = user.getEmail();\n\n profile = new Profile(user.getUserId(),\n extractDefaultDisplayNameFromEmail(email), email, null, null, null, null);\n }\n return profile;\n }", "public static synchronized Datastore getDataStore() {\n\n if (datastore == null) {\n synchronized (ConnectionHelper.class) {\n \t/*\n \t * Check again to guarantee an unique datastore instance is created, if any thread was preempted.\n \t */\n if (datastore == null) {\n \tdatastore = getMorphia().createDatastore(new MongoClient(), database);\n }\n }\n }\n\n return datastore;\n }", "public User getUser() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(AppConfig.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n return new User(\n sharedPreferences.getInt(AppConfig.ID, -1),\n sharedPreferences.getString(AppConfig.NAME, null),\n sharedPreferences.getString(AppConfig.EMAIL, null),\n sharedPreferences.getString(AppConfig.AGE, null),\n sharedPreferences.getString(AppConfig.GENDER, null),\n sharedPreferences.getString(AppConfig.ADDRESS, null)\n\n\n );\n }", "UserSettings getOrCreateByUser();", "private Store getStore() throws MessagingException {\n\t\t// create properties field\n\t\tProperties properties = getProtocolProporties(PROTOCOL_RECEIVE);\n\t\tSession emailSession = Session.getDefaultInstance(properties);\n\t\treturn connectSessionStore(emailSession);\n\t}", "public user getUser() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n return new user(\n sharedPreferences.getInt(KEY_ID, -1),\n sharedPreferences.getInt(KEY_NATIONAL_ID, -1),\n sharedPreferences.getString(KEY_FIRST_NAME, null),\n sharedPreferences.getString(KEY_SECOND_NAME, null),\n sharedPreferences.getString(KEY_EMAIL, null),\n sharedPreferences.getString(KEY_MOBILE_NUMBER, null),\n sharedPreferences.getString(KEY_REG_DATE, null),\n sharedPreferences.getString(KEY_dob, null),\n sharedPreferences.getString(KEY_address, null),\n sharedPreferences.getString(KEY_city, null),\n sharedPreferences.getString(KEY_country, null)\n );\n }", "@Override\n\tpublic userinfo getModel() {\n\t\treturn user;\n\t}", "public DatabaseMeta getSharedDatabase( String name ) {\n return (DatabaseMeta) getSharedObject( DatabaseMeta.class.getName(), name );\n }", "ClaimManager getClaimManager() throws UserStoreException;", "public boolean isStore() { return _store; }", "public Motile getUser() {\n return user;\n }", "public Integer getStoreId() {\n return storeId;\n }", "public Integer getStoreId() {\n return storeId;\n }", "public static MetaDataManager getInstance() {\n return instance;\n }", "public KVCommInterface getStore();", "public UserHandle getUser() {\n return mUser;\n }", "public edu.usfca.cs.dfs.StorageMessages.StoreChunk getStoreChunk() {\n if (storeChunkBuilder_ == null) {\n if (msgCase_ == 1) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunk) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunk.getDefaultInstance();\n } else {\n if (msgCase_ == 1) {\n return storeChunkBuilder_.getMessage();\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunk.getDefaultInstance();\n }\n }", "public String getStoreName() {\n return storeName;\n }" ]
[ "0.6397244", "0.60785985", "0.59154147", "0.5905929", "0.5898508", "0.5871126", "0.5791949", "0.5575205", "0.55429834", "0.55029666", "0.5466731", "0.5463841", "0.5444531", "0.5423563", "0.53910905", "0.5365574", "0.5315916", "0.5309528", "0.5275976", "0.5261473", "0.5227106", "0.5166073", "0.51448363", "0.5142373", "0.51042193", "0.51042193", "0.51042193", "0.51042193", "0.51012594", "0.5069239", "0.50435334", "0.5006662", "0.49938524", "0.49683362", "0.49683362", "0.49683362", "0.49683362", "0.49665436", "0.4964613", "0.49294662", "0.49294662", "0.49034834", "0.48974112", "0.48944455", "0.48824275", "0.48743576", "0.48567528", "0.48562682", "0.4846658", "0.48423502", "0.48320928", "0.4824194", "0.48157975", "0.47911137", "0.47890666", "0.4784936", "0.4769853", "0.4762459", "0.4758034", "0.47547793", "0.47536445", "0.4742208", "0.4734112", "0.47336525", "0.47279987", "0.4713916", "0.4712557", "0.4711458", "0.4710754", "0.46890453", "0.46878082", "0.46726647", "0.46712148", "0.46689582", "0.4667866", "0.46644503", "0.46563533", "0.46489602", "0.46378335", "0.46324578", "0.4632034", "0.4625113", "0.46045107", "0.4600001", "0.4598126", "0.45974752", "0.45968717", "0.4595401", "0.4587581", "0.4583327", "0.45799458", "0.45779613", "0.45715168", "0.45700416", "0.45700416", "0.45640543", "0.4556894", "0.4554911", "0.45514703", "0.45493722" ]
0.76624656
0
Get default meta store (.meta).
public DelegatingMetaStore getDefaultMetaStore() { return metaStore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MetadataStore getMetadataStoreForDisplay() {\n \t\t\tfinal MetadataStore store = omeMeta.getRoot();\n \t\t\tif (service.isOMEXMLMetadata(store)) {\n \t\t\t\tservice.removeBinData((OMEXMLMetadata) store);\n \t\t\t\tfor (int i = 0; i < getImageCount(); i++) {\n \t\t\t\t\tif (((OMEXMLMetadata) store).getTiffDataCount(i) == 0) {\n \t\t\t\t\t\tservice.addMetadataOnly((OMEXMLMetadata) store, i);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\treturn store;\n \t\t}", "public MetadataStore getMetadataStoreForDisplay() {\n MetadataStore store = getMetadataStore();\n if (service.isOMEXMLMetadata(store)) {\n service.removeBinData((OMEXMLMetadata) store);\n for (int i=0; i<getSeriesCount(); i++) {\n if (((OMEXMLMetadata) store).getTiffDataCount(i) == 0) {\n service.addMetadataOnly((OMEXMLMetadata) store, i);\n }\n }\n }\n return store;\n }", "public DelegatingMetaStore getMetaStore(String username) throws Exception {\n\t\t\n\t\tif(Utils.isEmpty(username)) {\n\t\t\tusername = CloudSession.getResourceUser();\n\t\t}\n\t\t\n\t\tif(Utils.isEmpty(username)) {\n\t\t\treturn getDefaultMetaStore();\n\t\t}\n\n\t\tDelegatingMetaStore dms = null ;\n\t\tif (metaStores.containsKey(username)) {\n\t\t\tdms = metaStores.get(username); // Already had a meta store for the user in application!\n\t\t}\n\t\tif(dms == null ) {\n\t\t\tdms = initUserMetaStores(username);\n\t\t}\n\t\treturn dms != null ? dms : getDefaultMetaStore();\n\t}", "public Object getMeta() {\n return meta;\n }", "@Override\n\tpublic DocumentWithMeta getSysDocumentMeta(CallingContext context,\n\t\t\tString raptureURI) {\n\t\tRaptureURI uri = new RaptureURI(raptureURI);\n\t\tswitch(uri.getScheme()) {\n\t\tcase SCRIPT:\n\t\t\treturn RaptureScriptStorage.getDocumentWithMeta(uri);\n\t\tcase WORKFLOW:\n\t\t\treturn WorkflowStorage.getDocumentWithMeta(uri);\n\t\tcase WORKORDER:\n\t\t\treturn WorkOrderStorage.getDocumentWithMeta(uri);\n\t\tcase JAR:\n\t\t\treturn JarStorage.getDocumentWithMeta(uri);\n\t\tcase USER:\n\t\t\treturn RaptureUserStorage.getDocumentWithMeta(uri);\n\t\tdefault:\n\t\t\tlog.error(\"Do not currently support reading metadata for \" + uri);\n\t\t\treturn null;\n\t\t}\n\t}", "public DefaultMetaData getMetaData() {\n\t\treturn this.metaData;\n\t}", "public com.google.cloud.aiplatform.v1.MetadataStore getMetadataStore(\n com.google.cloud.aiplatform.v1.GetMetadataStoreRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getGetMetadataStoreMethod(), getCallOptions(), request);\n }", "public MetadataStore getMetadataStoreForConversion() {\n \t\t\tfinal MetadataStore store = omeMeta.getRoot();\n \t\t\tfor (int i = 0; i < getImageCount(); i++) {\n \t\t\t\tstore.setPixelsBinDataBigEndian(new Boolean(!get(i).isLittleEndian()),\n \t\t\t\t\ti, 0);\n \t\t\t}\n \t\t\treturn store;\n \t\t}", "public org.thdl.lex.component.Meta getMeta();", "com.appscode.api.kubernetes.v1beta2.Meta getMeta();", "public MetaDataHolder getMetaOfMeta ()\n\t{\n\t\treturn metaData;\n\t}", "public MetadataStore getMetadataStoreForConversion() {\n MetadataStore store = getMetadataStore();\n int realSeries = getSeries();\n for (int i=0; i<getSeriesCount(); i++) {\n setSeries(i);\n store.setPixelsBinDataBigEndian(new Boolean(!isLittleEndian()), i, 0);\n }\n setSeries(realSeries);\n return store;\n }", "public <T extends Object> T getMeta(String name, T defaultValue) {\n try { \n Object result = metadata.get(name);\n if (result != null)\n return (T) result;\n else\n return defaultValue;\n } catch (Exception e) {\n return defaultValue;\n }\n }", "public LdDBMeta getDBMeta() {\r\n return LdPublisherDbm.getInstance();\r\n }", "@Override\r\n\tpublic Database getDefaultDatabase() {\r\n\t\treturn databases.getDatabase( \"default\" );\r\n\t}", "public String getMetaFile() {\r\n return metaFile;\r\n }", "io.dstore.engine.MetaInformation getMetaInformation(int index);", "io.dstore.engine.MetaInformation getMetaInformation(int index);", "io.dstore.engine.MetaInformation getMetaInformation(int index);", "io.dstore.engine.MetaInformation getMetaInformation(int index);", "io.dstore.engine.MetaInformation getMetaInformation(int index);", "protected String getStore() {\n return store;\n }", "public T getStore() {\r\n\t\treturn store;\r\n\t}", "@Override\n\tpublic Meta_data get_Meta_data() {\n\t\tMeta_data meta_data = new Meta_data_layer(elements);\n\t\treturn meta_data;\n\t}", "OStorage getStorage();", "@Override\r\n\tpublic Store getStore(String name, String location){\r\n\t\tif (name != null && location != null) {\r\n\t\t\ttry {\r\n\t\t\t\tIData data = DataFactory.getInstance(emf);\r\n\t\t\t\tIPersistence pm = data.getPersistenceManager();\r\n\t\t\t\tIPersistenceContext pctx = pm.getPersistenceContext();\r\n\t\t\t\tStore store = data.getStoreQuery().queryStore(name, location, pctx);\r\n\t\t\t\treturn store;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tif (LoggerConfig.ON) {\r\n\t\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "com.google.ads.googleads.v4.common.StoreAttribute getStoreAttribute();", "@Override\n\tpublic int getMeta() {\n\t\t\n\t\treturn meta;\n\t}", "@Override\n\tpublic Metamodel getMetamodel() {\n\t\treturn null;\n\t}", "public io.dstore.engine.MetaInformation getMetaInformation(int index) {\n return metaInformation_.get(index);\n }", "public io.dstore.engine.MetaInformation getMetaInformation(int index) {\n return metaInformation_.get(index);\n }", "public io.dstore.engine.MetaInformation getMetaInformation(int index) {\n return metaInformation_.get(index);\n }", "public io.dstore.engine.MetaInformation getMetaInformation(int index) {\n return metaInformation_.get(index);\n }", "public io.dstore.engine.MetaInformation getMetaInformation(int index) {\n return metaInformation_.get(index);\n }", "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.aiplatform.v1.MetadataStore>\n getMetadataStore(com.google.cloud.aiplatform.v1.GetMetadataStoreRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getGetMetadataStoreMethod(), getCallOptions()), request);\n }", "public boolean getMeta () {\n\treturn meta;\n }", "OsType getObjectStore();", "private String getStoreName() {\n if (storeName == null) {\n storeName = System.getProperty(\"user.dir\")\n + File.separator\n + QVCSConstants.QVCS_META_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_FILEID_DICT_STORE_NAME\n + \"dat\";\n }\n return storeName;\n }", "public edu.ustb.sei.mde.morel.resource.morel.IMorelMetaInformation getMetaInformation();", "default <T extends MetaManipulator> T obtain(Class<T> clazz) {\n return MetaRegistry.get(this, clazz);\n }", "public static MetaDataManager getInstance() {\n return instance;\n }", "@Override\n public EngineMetaInterface getActiveMeta() {\n return null;\n }", "public static InfoPlugin getDefault() {\n return plugin;\n }", "public static synchronized CatalogSettings getDefault() {\n if (instance == null) {\n instance = Lookup.getDefault().lookup(CatalogSettings.class);\n }\n return instance;\n }", "public Vector<YANG_Meta> getMetas() {\n\t\treturn metas;\n\t}", "public TemplateStore getTemplateStore() {\n \t\treturn fTemplateStore;\n \t}", "public static MeduseCorePlugin getDefault() {\n\t\treturn plugin;\n\t}", "public String getMetaUrl() {\r\n return metaUrl;\r\n }", "Map<Integer, String> getMetaLocal();", "int getMeta();", "public alluxio.proto.journal.KeyValue.CreateStoreEntry getCreateStore() {\n return createStore_;\n }", "public AccountStorage getStore() {\n\t\t@SuppressWarnings(\"resource\")\n\t\tApplicationContext springContext = new AnnotationConfigApplicationContext(AccountServerConfig.class);\n return (AccountStorage) springContext.getBean(\"getStorage\");\n\t}", "public MetaData getMetaData();", "@JsonProperty(\"dbMetastore\")\n public String getDbMetastore() {\n return dbMetastore;\n }", "public alluxio.proto.journal.KeyValue.CreateStoreEntry getCreateStore() {\n if (createStoreBuilder_ == null) {\n return createStore_;\n } else {\n return createStoreBuilder_.getMessage();\n }\n }", "public Settings loadDefault() {\n return new Settings();\n }", "@Override\n public DataMapMeta getMeta() {\n return null;\n }", "public IPSObjectStoreHandler getObjectStoreHandler();", "@VisibleForTesting\n public File getMetaFile() {\n return new File(getDir(),\n DatanodeUtil.getMetaName(getBlockName(), getGenerationStamp()));\n }", "@Override\n protected MetaData makeMetaData() {\n return new MetaData();\n }", "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n return metaInformation_;\n }", "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n return metaInformation_;\n }", "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n return metaInformation_;\n }", "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n return metaInformation_;\n }", "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n return metaInformation_;\n }", "public MapDataManager getDefaultMapDataManager() {\n return defaultMapDataManager;\n }", "public abstract StoreInfo getInfo();", "@Override\r\n protected DBMetaProvider xgetDBMetaProvider() {\r\n return DBMetaInstanceHandler.getProvider();\r\n }", "alluxio.proto.journal.KeyValue.CreateStoreEntry getCreateStore();", "public MetaData getMetaData() {\n return metaData;\n }", "public StoreFactory getStoreFactory()\r\n {\r\n return (StoreFactory)getEFactoryInstance();\r\n }", "public MetaData getMetaData() {\r\n \treturn metaData;\r\n }", "public String getLocalStore() {\n return localStore;\n }", "public TreeStore<SVGElementModel> getStore() {\n \t\treturn store;\n \t}", "public IStore getIStore() {\n\n\t\treturn store;\n\t}", "public java.lang.String getStore_title() {\n return store_title;\n }", "public Long getMetaId() {\n return metaId;\n }", "public String getMetaKey() {\n return metaKey;\n }", "public Cache getDefaultCache() {\n return defaultCache;\n }", "@Override\r\n\tpublic Store getStoreByID(int id) {\n\t\treturn getByKey(id);\r\n\t}", "static public Object getDefaultObject () {\n return defaultObject;\n }", "Metadata getMetaData();", "public SystemMetadataDaoMetacatImpl() {\n this(MetacatDataSourceFactory.getMetacatDataSource());\n }", "default void getMetadataStore(\n com.google.cloud.aiplatform.v1.GetMetadataStoreRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.MetadataStore>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetMetadataStoreMethod(), responseObserver);\n }", "public DatabaseMeta getSharedDatabase( String name ) {\n return (DatabaseMeta) getSharedObject( DatabaseMeta.class.getName(), name );\n }", "public KVCommInterface getStore();", "@Nullable\n String getDefaultDatabase() throws CatalogException;", "public StoreProvider() {\n super(null,\n Map.of( Namespaces.GML, \"application/gml+xml\",\n Namespaces.CSW, \"application/vnd.ogc.csw_xml\",\n LegacyNamespaces.CSW, \"application/vnd.ogc.csw_xml\",\n LegacyNamespaces.GMD, \"application/vnd.iso.19139+xml\",\n LegacyNamespaces.GMI, \"application/vnd.iso.19139+xml\",\n LegacyNamespaces.GMI_ALIAS, \"application/vnd.iso.19139+xml\"),\n Map.of(\"MD_Metadata\", \"application/vnd.iso.19139+xml\"));\n // More types to be added in future versions.\n }", "public StoreWithEnterpriseTO getStore(long storeID) throws NotInDatabaseException;", "public File getStoreDir();", "public MetaDataManager createMetaDataManager() throws ServiceException {\r\n initialize(); \r\n return new MetaDataManager(multiDomainMetaService); \r\n\t}", "protected XMPMetadata getXmpMetadata() throws IOException {\n\t\tPDMetadata meta = doc.getDocumentCatalog().getMetadata();\n\t\tif ((meta != null) && (meta.getLength() > 0)) {\n\t\t\ttry {\n\t\t\t\tDomXmpParser xmpParser = new DomXmpParser();\n\t\t\t\treturn xmpParser.parse(meta.toByteArray());\n\t\t\t} catch (XmpParsingException | IOException e) {\n\t\t\t\tthrow new IOException(e);\n\t\t\t}\n\t\t}\n\t\treturn XMPMetadata.createXMPMetadata();\n\t}", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "DataStore getDataStore ();", "public CorpToStoreSearch getCorpToStoreSearch() {\n if (corpToStoreSearch != null) return corpToStoreSearch;\n corpToStoreSearch = new CorpToStoreSearch();\n return corpToStoreSearch;\n }", "public Map<String, Object> getMetaData() {\n\t\treturn metaData;\n\t}" ]
[ "0.68929756", "0.656462", "0.65441775", "0.63585865", "0.63335466", "0.6305399", "0.62246263", "0.62122905", "0.6187461", "0.606413", "0.6009534", "0.5930095", "0.5893638", "0.58130616", "0.57907003", "0.578778", "0.57293147", "0.57293147", "0.57293147", "0.57293147", "0.57293147", "0.56864554", "0.5628504", "0.5576183", "0.55752116", "0.55584174", "0.5545682", "0.5539027", "0.55389017", "0.5527475", "0.5527475", "0.5527475", "0.5527475", "0.5527475", "0.5518188", "0.551599", "0.5508295", "0.55059814", "0.5489892", "0.548207", "0.548173", "0.5439624", "0.5431293", "0.5427004", "0.5422045", "0.5411849", "0.5407046", "0.54012173", "0.53913635", "0.53673255", "0.53430855", "0.53417325", "0.5341445", "0.53384924", "0.533476", "0.5330623", "0.5315766", "0.5310504", "0.53083754", "0.52966", "0.52864534", "0.52864534", "0.52864534", "0.52864534", "0.52864534", "0.52484554", "0.52337635", "0.5227183", "0.52209616", "0.5217872", "0.5209957", "0.5207752", "0.52069676", "0.5200642", "0.5198312", "0.5190208", "0.51873803", "0.5175817", "0.51614124", "0.5142084", "0.5137645", "0.51295006", "0.5126617", "0.51213884", "0.5115773", "0.51151055", "0.5105881", "0.51020014", "0.5097294", "0.5096676", "0.509287", "0.5091827", "0.50761825", "0.50761825", "0.50761825", "0.50761825", "0.50761825", "0.50671524", "0.5056429", "0.50531566" ]
0.83968896
0
Initiate user cloud repository.
public String getCloudRepositoryPath(String username) { String userRepoPath = userRepositoryPath( username ); try { CloudRepository.createDir(userRepoPath, CLOUD_REPOSITORY_DIR); return userRepoPath + CLOUD_REPOSITORY_DIR + SEPARATOR; } catch (KettleException e) { logger.error("cloud路径创建失败.",e); return userRepoPath; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initUser() {\n\t}", "public void initDatabase() {\n Datastore mongoDataStore = DatabaseHandler.getInstance().getMongoDataStore();\n initUsers();\n initAccounts();\n mongoDataStore.save(users);\n }", "@Inject\n public UserRepositoryImpl() {\n database = FirebaseDatabase.getInstance();\n auth = FirebaseAuth.getInstance();\n }", "private void init(String[] args) {\n String provider = \"rackspace-clouddatabases-us\";\n\n String username = args[0];\n String apiKey = args[1];\n \n api = ContextBuilder.newBuilder(provider)\n .credentials(username, apiKey)\n .buildApi(TroveApi.class);\n \n flavorApi = api.getFlavorApiForZone(Constants.ZONE);\n }", "void init() {\n List<Artifact> artifacts = null;\n final List<RepositoryInfo> infos = RepositoryPreferences.getInstance().getRepositoryInfos();\n for (final RepositoryInfo info : infos) {\n if (info.isLocal()) {\n final File localrepo = new File(info.getRepositoryPath() + File.separator\n + DEFAULT_GID_PREFIX.replace('.', '/'));\n if (localrepo.exists()) {\n artifacts = resolveArtifacts(new File(info.getRepositoryPath()), localrepo);\n }\n }\n }\n\n if (artifacts == null) {\n artifacts = new ArrayList<Artifact>(1);\n }\n\n populateLocalTree(artifacts);\n populateAppPane(model.getApps());\n }", "@PostConstruct\n public void initUsers() {\n List<MyUser> users = Stream.of(\n new MyUser(\"1\",\"Vaibhav\",\"Vaibhav\"),\n new MyUser(\"2\",\"Abhishek\",\"Abhishek\"),\n new MyUser(\"3\",\"admin\",\"admin\")\n ).collect(Collectors.toList());\n repository.saveAll(users);\n }", "public UserServiceImpl() {\n\t\trepository = new UserRepositoryImpl();\n\t}", "public void initializeRepository() throws ApplicationException;", "public UserRepo()\n {\n }", "private void initializeUserControllers() {\n trUpdateUserImage = UserControllersFactory.createTrUpdateUserImage();\n trDeleteUser = UserControllersFactory.createTrDeleteUser();\n trObtainUser = UserControllersFactory.createTrObtainUser();\n trChangePassword = UserControllersFactory.createTrChangePassword();\n trChangeMail = UserControllersFactory.createTrChangeMail();\n trChangeUsername = UserControllersFactory.createTrChangeUsername();\n trExistsUsername = UserControllersFactory.createTrExistsUsername();\n trObtainUserImage = UserControllersFactory.createTrObtainUserImage();\n trSendFirebaseMessagingToken = UserControllersFactory.createTrSendFirebaseMessagingToken();\n }", "public void initialize() {\n\n // DO NOT DELETE\n if (userRoleRepository.count() == 0) {\n userRoleRepository.saveAll(List.of(\n userRoleFactory.of(ROLE_USER.name()),\n userRoleFactory.of(ROLE_ADMIN.name())\n ));\n }\n\n // DO NOT DELETE\n if (userRepository.count() == 0) {\n userRepository.saveAll(List.of(\n userFactory.ofSecurity(\n List.of(retrieveAdminRole(), retrieveUserRole()),\n \"lens.huygh@gmail.com\",\n new BCryptPasswordEncoder().encode(\"Lens\"),\n \"Lens Huygh\"),\n userFactory.ofSecurity(\n List.of(retrieveAdminRole(), retrieveUserRole()),\n \"thomasf0n7a1n3@gmail.com\",\n new BCryptPasswordEncoder().encode(\"Thomas\"),\n \"Thomas Fontaine\"),\n userFactory.ofSecurity(\n List.of(retrieveAdminRole(), retrieveUserRole()),\n \"paul.gerarts@juvo.be\",\n new BCryptPasswordEncoder().encode(\"Paul\"),\n \"Paul Gerarts\"),\n userFactory.ofSecurity(\n List.of(retrieveUserRole()),\n \"user@email.com\",\n new BCryptPasswordEncoder().encode(\"user\"),\n \"User McUserson\"),\n userFactory.ofSecurity(\n List.of(retrieveAdminRole()),\n \"admin@email.com\",\n new BCryptPasswordEncoder().encode(\"admin\"),\n \"Admin McAdminson\"\n )\n ));\n }\n }", "public Repo() {\n //this.app = Init.application;\n }", "Cloud createCloud();", "@PostConstruct\n\tprotected void initialize() throws Exception {\n\t\t// // Create sample roles\n\t\tRole roleAdmin = roleRepository.findByName(\"R_SUPER_ADMIN\");\n\t\tif (roleRepository.findByName(\"R_SUPER_ADMIN\") == null) {\n\t\t\tlogger.debug(\"Creating default admin role ...\");\n\t\t\troleAdmin = new Role(\"Super Admin\", \"R_SUPER_ADMIN\", \"This is a role for super administrator.\");\n\t\t\troleAdmin.setIsRestricted(true);\n\t\t\troleRepository.save(roleAdmin);\n\t\t}\n\t\t// // Create default users\n\t\tif (accountRepository.findByUsername(\"admin\") == null) {\n\t\t\tlogger.debug(\"Creating default admin account ...\");\n\t\t\taccountRepository.save(new Account(\"admin\", passwordEncoder.encode(\"admin\"), \"kent@rbtsb.com\", \"Kent\",\n\t\t\t\t\troleRepository.findByName(\"R_SUPER_ADMIN\"), true));\n\t\t}\n\n\t}", "private void initializeCurrentUser() {\n if (enableLoginActivity && mAuth.getCurrentUser() != null) {\n try {\n initializeUser();\n refreshGoogleCalendarToken();\n } catch (PetRepeatException e) {\n Toast toast = Toast.makeText(this, getString(R.string.error_pet_already_existing),\n Toast.LENGTH_LONG);\n toast.show();\n }\n\n if (mAuth.getCurrentUser() != null) {\n mAuth.getCurrentUser().getIdToken(false).addOnCompleteListener(task -> {\n user.setToken(Objects.requireNonNull(task.getResult()).getToken());\n });\n }\n }\n }", "private void initLogin() {\n try {\n initValidation();\n initRepository();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@BeforeAll\n static void setUpAll() {\n g = new GitHubUserSearcher(url);\n }", "public void init(String userID);", "static void init() {\n\t\tuserDatabase = new HashMap<String, User>();\n\t}", "public void setupUser() {\n }", "private final void initializeCache() {\r\n try {\r\n UserIndex index = makeUserIndex(this.dbManager.getUserIndex());\r\n for (UserRef ref : index.getUserRef()) {\r\n String email = ref.getEmail();\r\n String userString = this.dbManager.getUser(email);\r\n User user = makeUser(userString);\r\n this.updateCache(user);\r\n }\r\n }\r\n catch (Exception e) {\r\n server.getLogger().warning(\"Failed to initialize users \" + StackTrace.toString(e));\r\n }\r\n }", "private void init() {\r\n final List<VCSystem> vcs = datastore.createQuery(VCSystem.class)\r\n .field(\"url\").equal(Parameter.getInstance().getUrl())\r\n .asList();\r\n if (vcs.size() != 1) {\r\n logger.error(\"Found: \" + vcs.size() + \" instances of VCSystem. Expected 1 instance.\");\r\n System.exit(-1);\r\n }\r\n vcSystem = vcs.get(0);\r\n\r\n project = datastore.getByKey(Project.class, new Key<Project>(Project.class, \"project\", vcSystem.getProjectId()));\r\n\r\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n try {\n populatePastTests();\n populateAllTests();\n populateAverage(Project.getUserID());\n populateAverage(\"all\");\n } catch (IOException ex) {\n Logger.getLogger(FXMLUserAccountController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void initializeMongoDBUserCollection() {\n\t\trepository.deleteAll();\n\n\t\t// save a couple of Users\n\t\trepository\n\t\t\t\t.save(new User(\"demo\", \"password\", \"lastname\", Gender.Unknown));\n\t\trepository.save(new User(\"Alice\", \"secret\", \"Smith\", Gender.Female));\n\t\trepository.save(new User(\"Bob\", \"secret\", \"Smith\", Gender.Male));\n\t\trepository.save(new User(\"Tom\", \"2xa23!\", \"Oglesby\", Gender.Male));\n\t}", "public UserAuthenticationDAOImpl() {\n\t\tinitUsers();\n\t}", "public LabConstructUserServiceImpl() {\n\t}", "@RequestMapping(method = RequestMethod.POST, value = \"/startRepo\")\n public String initializeRepo(@RequestBody CreateRepoRequestTemplate createRepoRequestTemplate) throws ResourceNotFoundException, BadRequestException {\n return gitLabService.initializeRepo(createRepoRequestTemplate);\n }", "private void initUserInstance(User user){\n Fridge fridge = DatabaseHelper.getDatabaseInstance().takeFridgeOfUser(user);\n //print the printable\n Log.i(\"login_fridge\", fridge.toString());\n //assign fridge to user\n user.setFridge(fridge);\n\n //populate Instance class with current user\n Instance.getSingletonInstance().setCurrentUser(user);\n }", "public static void initRepository() {\n deserialize();\n if (flightRepository == null) {\n flightRepository = new FlightRepository();\n }\n }", "public synchronized void connectToCloud() {\n if (!Platform.cloudSelected) {\n // guarantee to execute once\n Platform.cloudSelected = true;\n AppConfigReader reader = AppConfigReader.getInstance();\n String name = reader.getProperty(EventEmitter.CLOUD_CONNECTOR, \"none\");\n if (\"none\".equalsIgnoreCase(name)) {\n // there are no cloud connector. Check if there are cloud services.\n startCloudServices();\n } else {\n SimpleClassScanner scanner = SimpleClassScanner.getInstance();\n List<ClassInfo> services = scanner.getAnnotatedClasses(CloudConnector.class, true);\n if (!startService(name, services, true)) {\n log.error(\"Cloud connector ({}) not found\", name);\n }\n }\n }\n }", "private void initializeRepositories() throws IOException {\n String user = ACMConfiguration.getInstance().getUserName();\n LOG.info(String.format(\n \" Home directory: %s\\n\" +\n \" Content repository: %s\\n\" +\n \" Temp Database: %s\\n\" +\n \" Temp Repository (sandbox mode): %s\\n\" +\n \" user: %s\\n\" +\n \" UserRWAccess: %s\\n\" +\n \" online: %s\\n\",\n getProgramHomeDir(),\n getProgramContentDir(),\n getLocalTempDbDir(),\n pathsProvider.getSandboxDir(),\n user,\n Authenticator.getInstance().hasUpdatingRole(),\n AccessControl.isOnline()));\n\n repository = AudioItemRepositoryImpl.buildAudioItemRepository(this);\n }", "private void initObjects() {\n inputValidation = new InputValidation(activity);\n databaseHelper = new DatabaseHelper(activity);\n user = new User();\n }", "private void initObjects() {\n databaseHelper = new DatabaseHelper(activity);\n dbHelper = new DBHelper(activity);\n inputValidation = new InputValidation(activity);\n progress = new ProgressDialog(activity);\n user=new User();\n }", "public void logon ()\n {\n ClientResolutionListener clr = new ClientResolutionListener() {\n public void clientResolved (Name username, ClientObject clobj) {\n // fake up a bootstrap; I need to expose the mechanisms in\n // Presents that create it in a network environment\n BootstrapData data = new BootstrapData();\n data.clientOid = clobj.getOid();\n data.services = EditorServer.invmgr.bootlist;\n\n // and configure the client to operate using the server's\n // distributed object manager\n _client.getContext().getClient().gotBootstrap(\n data, EditorServer.omgr);\n }\n\n public void resolutionFailed (Name username, Exception reason) {\n log.log(Level.WARNING, \"Failed to resolve client [who=\" +\n username + \"].\", reason);\n // TODO: display this error\n }\n };\n EditorServer.clmgr.resolveClientObject(new Name(\"editor\"), clr);\n }", "@PostConstruct\r\n\tprivate void firebaseLogIn() {\n\t\ttry {\r\n\r\n\t\t\tInputStream serviceAccount = getClass()\r\n\t\t\t\t\t.getResourceAsStream(\"/avisosnick-firebase-adminsdk-ln9j6-55140aa5db.json\");\r\n\r\n//\t\t\t\t\tnew FileInputStream(\r\n//\t\t\t\t\t\"src/main/resources/avisosnick-firebase-adminsdk-ln9j6-55140aa5db.json\");\r\n\r\n\t\t\tFirebaseOptions options = FirebaseOptions.builder()\r\n\t\t\t\t\t.setCredentials(GoogleCredentials.fromStream(serviceAccount))\r\n\t\t\t\t\t.setDatabaseUrl(\"https://avisosnick.firebaseio.com\").build();\r\n\r\n\t\t\tFirebaseApp.initializeApp(options);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@PostConstruct\r\n public void init() {\n File database = new File(applicationProps.getGeodb());\r\n try {\r\n reader = new DatabaseReader.Builder(database).withCache(new CHMCache()).build();\r\n } catch (IOException e) {\r\n log.error(\"Error reading maxmind DB, \", e);\r\n }\r\n }", "@PostConstruct\n public void init() {\n rest.put(\"http://authenticationServer:8080/bot\", info);\n AuthServerChecker checker = new AuthServerChecker(name);\n checker.start();\n }", "public static void initPlayer() {\n\t\tuser = game.getUsers().get(game.getUserTurn());\n\t\tlblBudgetText.setText(user.getBudget()+\"\");\n\t\tdisplayUserTeam();\n\t}", "@Override\n public void run() {\n try {\n stringOrganizationIds.remove(defaultOrg);\n List<Integer> organizationIds = FluentIterable.from(stringOrganizationIds)\n .transform(Ints.stringConverter()).toList();\n\n newUser.setActive(false);\n UserProfileStruct savedUser = createAccountInternal(conn, newUser, password, resetQuestion,\n resetAnswer, givenName, surname, organizationId);\n for (Integer orgId : organizationIds) {\n Profile profile = new Profile();\n profile.setGivenName(givenName);\n profile.setSurname(surname);\n profile.setOrganizationId(orgId);\n profile.setUserId(savedUser.credentialedUser.getId());\n profile = profilePersister.createProfile(profile, conn);\n\n authService.grantAtLeast(profile.getId(), ROLE_READER, orgId);\n authService.grantAtLeast(orgId, ROLE_ADMIN, profile.getId());\n }\n\n User user = savedUser.credentialedUser.getUser();\n user.setActive(true);\n persistenceService.process(conn, new UserPersister.UpdateUserFunc(user));\n conn.commit();\n } catch (Exception e) {\n closeConnection(conn);\n }\n }", "public void initialize() {\n\n getStartUp();\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\n this.db = LoginController.db;\r\n this.loggedInUser = SidePaneController.employeeFullName; \r\n System.out.println(loggedInUser); \r\n refreshTable(); \r\n tblTrainingList.getColumns().get(2).setStyle(\"-fx-alignment: CENTER;\");\r\n initializedComboBox(); \r\n backgroundRefresh(); \r\n }", "public users() {\n initComponents();\n connect();\n autoID();\n loaduser();\n \n \n }", "private void initialize() throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\tuserCatalog = CatalogoUsuarios.getInstance();\n\t\tcontactDAO = AdaptadorContacto.getInstance();\n\t\tmessageDAO = AdaptadorMensajes.getInstance();\n\t}", "@FXML\r\n\tprivate void initialize() {\r\n\t\tcurUser = LoginController.getLoggedUser();\r\n\t\tString username = (\" \" + curUser.getUsername());\r\n\t\tusernameLabel.setText(username);\r\n\t\tString name = (\" \" + curUser.getName());\r\n\t\tnameLabel.setText(name);\r\n\t\tString mobile = (\" \" + curUser.getMobileNumber());\r\n\t\tmobileLabel.setText(mobile);\r\n\t\tString address = (\" \" + curUser.getHouseNumber() + \" \"\r\n\t\t\t\t+ curUser.getStreetName() + \", \" + curUser.getPostcode());\r\n\t\taddressLabel.setText(address);\r\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n logeduser = JavaFXloginn.user;\n lblmail.setText(logeduser.getEmail());\n muser = logeduser.getEmail();\n userloged = us.findBymail(muser);\n userloggedid = userloged.getId();\n getonlineusers();\n try {\n homeBox.setContent(FXMLLoader.load(getClass().getResource(\"Map2.fxml\")));\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "@Override\n public void initialize(URL location, ResourceBundle resources) {\n System.out.println(\"This is the main controller. Starting up program ...\");\n\n // Create the Account Controller\n try {\n userController = new AccountController();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Check program preferences for a user to log in\n programPref = Preferences.userNodeForPackage(MainController.class);\n if(programPref.get(\"email\", \"\").equals(\"\")){\n try {\n loadLogin();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }else{\n String password = \"\";\n try {\n password = CryptoTools.decrypt(programPref.get(\"password\", \"\"), programPref);\n } catch (GeneralSecurityException | IOException e) {\n e.printStackTrace();\n }\n\n try {\n if(userController.loginUser(programPref.get(\"email\", \"\"), password) == null){\n programPref.put(\"email\", \"\");\n try {\n loadLogin();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n programPref.put(\"email\", \"\");\n try {\n loadLogin();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n }\n\n // Assign objects to their respective information\n userNameLabel.setText(userController.getUser().getFirstName() + \" \" + userController.getUser().getLastName());\n userEmailLabel.setText(userController.getUser().getEmail());\n\n // Tries to load the Pages\n try {\n loadPages();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public UserController() {\n\t\tdao = new GenDao(User.class);\n\t\teventDao = new GenDao(Event.class);\n slug = new Slug();\n\t}", "private void initializeDatabase() {\n fbProfile = Profile.getCurrentProfile();\n String userId = fbProfile.getId();\n user = new User();\n user.name = fbProfile.getName();\n database.getReference(\"Users\").child(userId).setValue(user);\n userRef = database.getReference(\"Users\").child(userId);\n populateDatabase(database, userRef);\n listenForUpdates(database, userRef);\n }", "private void initialize()\r\n {\r\n this.workspace = null;\r\n this.currentUser = null;\r\n this.created = new Date();\r\n this.securityInfo = null;\r\n }", "void initiateLogin() {\n\t\tString username = this.mAuthUsername.getText().toString();\n\t\tString password = this.mAuthPassword.getText().toString();\n\t\t\n\t\tfetch();\n\t\tthis.mAuthTask = new AuthenticationTask(this, this, username, password);\n\t\tthis.mAuthTask.execute();\n\t}", "public void init() {\n\t\tregisterFunctions();\n\t\t\t\t\n\t\t//Start it\n\t\tconsole.startUserConsole();\n\t}", "public AuthService() {\n//\t\tthis.dao = new UsuarioDAO();\n//\t\tthis.repository = repository;\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\n user_brand.getItems().addAll(\"clinique\",\"innisfree\",\"neogen\",\"eucerin\");\r\n handler = new DBHandler();\r\n }", "RemoteUserManager() { }", "public void initialize() {\n\t\tBmoUser bmoUser = new BmoUser();\n\n\t\t// Responsable\n\t\tBmFilter filterLeaderUserActive = new BmFilter();\n\t\tfilterLeaderUserActive.setValueFilter(bmoUser.getKind(), bmoUser.getStatus(), \"\" + BmoUser.STATUS_ACTIVE);\n\t\tleaderUserIdSuggestBox.addFilter(filterLeaderUserActive);\n\t\t\n\t\t// Consultor\n\t\tBmFilter filterAssignedUserActive = new BmFilter();\n\t\tfilterAssignedUserActive.setValueFilter(bmoUser.getKind(), bmoUser.getStatus(), \"\" + BmoUser.STATUS_ACTIVE);\n\t\tassignedUserIdSuggestBox.addFilter(filterAssignedUserActive);\n\t}", "public UserDirectory() {\n\t\tusers = new LinkedAbstractList<User>(100);\n\t}", "public Login() {\r\n\t\tinitialize();\r\n\t}", "private synchronized void lazyInit() {\n logger.debug(\"+\");\n if(lazyInitDone) {\n logger.debug(\"- already inited\");\n return;\n }\n lazyInitDone = true;\n AlbumUploadProfile.get().init();\n ImageUploadProfile.get().init();\n BannerUploadProfile.get().init();\n SiteMapBuilder.getInstance().getHandlers().put(\"menu\", new MenuPagesHandler());\n SiteMapBuilder.getInstance().getHandlers().put(\"unlinked\", new UnlinkedPagesHandler());\n try { DictionaryFileBuilder.getInstance().generate(false); }\n catch (CriticalException ex) { logger.error(\"Exception\", ex); }\n logger.debug(\"-\");\n }", "@Override\n public void startUpOperations() {\n }", "public void initAccounts() {\n Datastore mongoDataStore = DatabaseHandler.getInstance().getMongoDataStore();\n\n User user = users.get(0);\n\n Account account1 = new Account(\"Account1\", 500);\n Account account2 = new Account(\"Account2\", 100);\n Account account3 = new Account(\"Account3\", 200);\n ArrayList<Account> accounts = new ArrayList<>();\n accounts.add(account1);\n accounts.add(account2);\n accounts.add(account3);\n mongoDataStore.save(accounts);\n user.setAccounts(accounts);\n\n user = users.get(1);\n account1 = new Account(\"Account4\", 100);\n account2 = new Account(\"Account5\", 200);\n accounts = new ArrayList<>();\n accounts.add(account1);\n accounts.add(account2);\n mongoDataStore.save(accounts);\n user.setAccounts(accounts);\n\n user = users.get(2);\n account1 = new Account(\"Account6\", 300);\n accounts = new ArrayList<>();\n accounts.add(account1);\n mongoDataStore.save(accounts);\n user.setAccounts(accounts);\n\n user = users.get(3);\n account1 = new Account(\"Account7\", 400);\n account2 = new Account(\"Account8\", 500);\n account3 = new Account(\"Account9\", 100);\n Account account4 = new Account(\"Account10\", 200);\n accounts = new ArrayList<>();\n accounts.add(account1);\n accounts.add(account2);\n accounts.add(account3);\n accounts.add(account4);\n mongoDataStore.save(accounts);\n user.setAccounts(accounts);\n\n user = users.get(4);\n account1 = new Account(\"Account11\", 300);\n accounts = new ArrayList<>();\n accounts.add(account1);\n mongoDataStore.save(accounts);\n user.setAccounts(accounts);\n }", "public UserInfoGenerator(IRepository repository) {\n this.repository = repository;\n }", "public void initialize() {\n\n list.add(user1);\n list.add(user2);\n list.add(user3);\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n homeScreen = HomeScreenController.getInstance();\n User u = homeScreen.getCurrentUser();\n CRUDUser cr = new CRUDUser();\n this.username.setText(u.getUserInfoIdId().getUserFirstName());\nBufferedImage image = null;\n\n if(u.getUserInfoIdId().getUserImage()!=null){\n try {\n image = ImageIO.read(new URL(\"http://127.0.0.1:8000/Files/podcastFiles/\" + u.getUserInfoIdId().getUserImage()));\n } catch (MalformedURLException ex) {\n Logger.getLogger(GestionUsersController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(GestionUsersController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }else{\n try {\n image = ImageIO.read(new URL(\"http://127.0.0.1:8000/Files/podcastFiles/avatar.jpg\"));\n } catch (MalformedURLException ex) {\n Logger.getLogger(GestionUsersController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(GestionUsersController.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }\n WritableImage img = SwingFXUtils.toFXImage(image, null);\n this.imageUser.setFill(new ImagePattern(img));\n \n this.showUsers();\n }", "private void initialData() {\n\n// if (MorphiaObject.datastore.createQuery(SecurityRole.class).countAll() == 0) {\n// for (final String roleName : Arrays\n// .asList(controllers.Application.USER_ROLE)) {\n// final SecurityRole role = new SecurityRole();\n// role.roleName = roleName;\n// MorphiaObject.datastore.save(role);\n// }\n// }\n }", "@PostConstruct\r\n public void init() {\n HttpSession session = SessionUtil.getSession();\r\n String email = (String) session.getAttribute(\"email\");\r\n user = userFacade.users(email);\r\n }", "public Bootstrap() {\r\n\t\t//Create or load UserList\r\n\t\tuserList = new CopyOnWriteArrayList<User>();\r\n\t\ttry {\r\n\t\t\tuserList = importUserList();\r\n\t\t} catch (FileNotFoundException e){\r\n\t\t\t\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.ip_adresse = StaticFunctions.loadPeerIp();\t\t\t//Load ip-address\r\n\t\t\r\n\t\t//Create a new Zone\r\n\t\tcreateZone(new Point(0.0, 0.0), new Point(1.0, 1.0));\t//initialize zone\r\n\t}", "@PostConstruct\n protected void init(){\n// account = new Account(2, \"SE-002\", \"Prayuth\", \"The minister\",\n// 3.59, imageBaseUrl+ \"tu.jpg\", false, 15,\n// \"The great man ever!!!!\",null);\n// accounts.add(account);\n// account = new Account(3, \"SE-003\", \"Jurgen\", \"Kloop\",\n// 2.15, imageBaseUrl + \"Kloop.gif\", true, 2,\n// \"The man for the Kop\",null);\n// accounts.add(account);\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public User() {\n this.prefs = Gdx.app.getPreferences(\"prefs\");\n\n this.noWalls = prefs.getBoolean(\"noWalls\");\n this.noGrid = prefs.getBoolean(\"noGrid\");\n }", "public final void init() {\n connectDB();\n\n initMainPanel();\n\n initOthers();\n }", "public void newUserDirectory() {\n\t\tusers = new LinkedAbstractList<User>(100);\n\t}", "public void initialize() {\n\t\tinitialiseAvatars();\n\t\tcreateAccountButton.setOnAction(e -> createAccount());\n\t\topenGeneratorButton.setOnAction(e -> openCustomPictureCreator());\n\n\t\tavatar1.setOnAction(e -> updateAvatar(1));\n\t\tavatar2.setOnAction(e -> updateAvatar(2));\n\t\tavatar3.setOnAction(e -> updateAvatar(3));\n\t\tavatar4.setOnAction(e -> updateAvatar(4));\n\t\tavatar5.setOnAction(e -> updateAvatar(5));\n\t\tavatar6.setOnAction(e -> updateAvatar(6));\n\n\t\tavatarIndex = 1;\n\t}", "public sear() {\n initComponents();\n findUsers();\n }", "public void setUserRepository (UserRepository userRepository) {\n\t\tthis.userRepository = userRepository; \n\t}", "@Override\n public void run() {\n P2PContext.getInstance().createShardProfilePreferences();\n String userId = P2PContext.getLoggedInUser();\n String deviceId = P2PContext.getCurrentDevice();\n DBSyncManager.getInstance(that).upsertUser(userId, deviceId, \"Photo Message\");\n that.manager.notifyUI(\"Added user -> \" + userId, \" --------> \", LOG_TYPE);\n that.manager.startBluetoothBased();\n }", "protected void init() {\n\t\tinitApplicationData.init();\n\t\t//\n\t\tsecurityService.setSystemAuthentication();\n\t\t//\n\t\ttry {\n\t\t\tIdmIdentityDto identityAdmin = this.identityService.getByUsername(InitApplicationData.ADMIN_USERNAME);\n\t\t\t//\n\t\t\tIdmTreeTypeDto treeType = treeTypeService.getByCode(InitApplicationData.DEFAULT_TREE_TYPE);\n\t\t\tPage<IdmTreeNodeDto> rootsList = treeNodeService.findRoots(treeType.getId(), PageRequest.of(0, 1));\n\t\t\tIdmTreeNodeDto rootOrganization = null;\n\t\t\tif (!rootsList.getContent().isEmpty()) {\n\t\t\t\trootOrganization = rootsList.getContent().get(0);\n\t\t\t} else {\n\t\t\t\tIdmTreeNodeDto organizationRoot = new IdmTreeNodeDto();\n\t\t\t\torganizationRoot.setCode(\"root\");\n\t\t\t\torganizationRoot.setName(\"Organization\");\n\t\t\t\torganizationRoot.setTreeType(treeTypeService.getByCode(InitApplicationData.DEFAULT_TREE_TYPE).getId());\n\t\t\t\torganizationRoot = this.treeNodeService.save(organizationRoot);\n\t\t\t}\n\t\t\t//\n\t\t\tif (!configurationService.getBooleanValue(PARAMETER_DEMO_DATA_CREATED, false)) {\n\t\t\t\tLOG.info(\"Creating demo data ...\");\t\t\n\t\t\t\t//\n\t\t\t\t// create default password policy for validate\n\t\t\t\tIdmPasswordPolicyDto passValidate = null;\n\t\t\t\ttry {\n\t\t\t\t\tpassValidate = this.passwordPolicyService.getDefaultPasswordPolicy(IdmPasswordPolicyType.VALIDATE);\n\t\t\t\t} catch (ResultCodeException e) {\n\t\t\t\t\t// nothing, password policy for validate not exist\n\t\t\t\t}\n\t\t\t\t// default password policy not exist, try to found by name\n\t\t\t\tif (passValidate == null) {\n\t\t\t\t\tpassValidate = this.passwordPolicyService.findOneByName(\"DEFAULT_VALIDATE_POLICY\");\n\t\t\t\t}\n\t\t\t\t// if password policy still not exist create default password policy\n\t\t\t\tif (passValidate == null) {\n\t\t\t\t\tpassValidate = new IdmPasswordPolicyDto();\n\t\t\t\t\tpassValidate.setName(\"DEFAULT_VALIDATE_POLICY\");\n\t\t\t\t\tpassValidate.setDefaultPolicy(true);\n\t\t\t\t\tpassValidate.setType(IdmPasswordPolicyType.VALIDATE);\n\t\t\t\t\tpasswordPolicyService.save(passValidate);\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t\t// create default password policy for generate\n\t\t\t\tIdmPasswordPolicyDto passGenerate = null;\n\t\t\t\ttry {\n\t\t\t\t\tpassGenerate = this.passwordPolicyService.getDefaultPasswordPolicy(IdmPasswordPolicyType.GENERATE);\n\t\t\t\t} catch (ResultCodeException e) {\n\t\t\t\t\t// nothing, password policy for generate password not exist\n\t\t\t\t}\n\t\t\t\t// try to found password policy by name\n\t\t\t\tif (passGenerate == null) {\n\t\t\t\t\tpassGenerate = this.passwordPolicyService.findOneByName(\"DEFAULT_GENERATE_POLICY\");\n\t\t\t\t}\n\t\t\t\t// if still not exist create default generate password policy\n\t\t\t\tif (passGenerate == null) {\n\t\t\t\t\tpassGenerate = new IdmPasswordPolicyDto();\n\t\t\t\t\tpassGenerate.setName(\"DEFAULT_GENERATE_POLICY\");\n\t\t\t\t\tpassGenerate.setDefaultPolicy(true);\n\t\t\t\t\tpassGenerate.setType(IdmPasswordPolicyType.GENERATE);\n\t\t\t\t\tpassGenerate.setMinLowerChar(2);\n\t\t\t\t\tpassGenerate.setMinNumber(2);\n\t\t\t\t\tpassGenerate.setMinSpecialChar(2);\n\t\t\t\t\tpassGenerate.setMinUpperChar(2);\n\t\t\t\t\tpassGenerate.setMinPasswordLength(8);\n\t\t\t\t\tpassGenerate.setMaxPasswordLength(12);\n\t\t\t\t\tpasswordPolicyService.save(passGenerate);\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t\t// role may exists from another module initialization\n\t\t\t\tIdmRoleDto role1 = this.roleService.getByCode(DEFAULT_ROLE_NAME);\n\t\t\t\tif (role1 == null) {\n\t\t\t\t\trole1 = new IdmRoleDto();\n\t\t\t\t\trole1.setCode(DEFAULT_ROLE_NAME);\n\t\t\t\t\trole1 = this.roleService.save(role1);\n\t\t\t\t}\n\t\t\t\t// self policy\n\t\t\t\tIdmAuthorizationPolicyDto selfPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tselfPolicy.setPermissions(\n\t\t\t\t\t\tIdmBasePermission.AUTOCOMPLETE, \n\t\t\t\t\t\tIdmBasePermission.READ, \n\t\t\t\t\t\tIdentityBasePermission.PASSWORDCHANGE, \n\t\t\t\t\t\tIdentityBasePermission.CHANGEPERMISSION);\n\t\t\t\tselfPolicy.setRole(role1.getId());\n\t\t\t\tselfPolicy.setGroupPermission(CoreGroupPermission.IDENTITY.getName());\n\t\t\t\tselfPolicy.setAuthorizableType(IdmIdentity.class.getCanonicalName());\n\t\t\t\tselfPolicy.setEvaluator(SelfIdentityEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(selfPolicy);\n\t\t\t\t// read identity roles by identity\n\t\t\t\tIdmAuthorizationPolicyDto identityRolePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tidentityRolePolicy.setRole(role1.getId());\n\t\t\t\tidentityRolePolicy.setGroupPermission(CoreGroupPermission.IDENTITYROLE.getName());\n\t\t\t\tidentityRolePolicy.setAuthorizableType(IdmIdentityRole.class.getCanonicalName());\n\t\t\t\tidentityRolePolicy.setEvaluator(IdentityRoleByIdentityEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(identityRolePolicy);\t\t\t\t\n\t\t\t\t// read identity contracts by identity\n\t\t\t\tIdmAuthorizationPolicyDto identityContractPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tidentityContractPolicy.setRole(role1.getId());\n\t\t\t\tidentityContractPolicy.setGroupPermission(CoreGroupPermission.IDENTITYCONTRACT.getName());\n\t\t\t\tidentityContractPolicy.setAuthorizableType(IdmIdentityContract.class.getCanonicalName());\n\t\t\t\tidentityContractPolicy.setEvaluator(IdentityContractByIdentityEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(identityContractPolicy);\n\t\t\t\t// read contract positions by contract\n\t\t\t\tIdmAuthorizationPolicyDto contractPositionPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tcontractPositionPolicy.setRole(role1.getId());\n\t\t\t\tcontractPositionPolicy.setGroupPermission(CoreGroupPermission.CONTRACTPOSITION.getName());\n\t\t\t\tcontractPositionPolicy.setAuthorizableType(IdmContractPosition.class.getCanonicalName());\n\t\t\t\tcontractPositionPolicy.setEvaluator(ContractPositionByIdentityContractEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(contractPositionPolicy);\n\t\t\t\t// read contract guarantees by identity contract\n\t\t\t\tIdmAuthorizationPolicyDto contractGuaranteePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tcontractGuaranteePolicy.setRole(role1.getId());\n\t\t\t\tcontractGuaranteePolicy.setGroupPermission(CoreGroupPermission.CONTRACTGUARANTEE.getName());\n\t\t\t\tcontractGuaranteePolicy.setAuthorizableType(IdmContractGuarantee.class.getCanonicalName());\n\t\t\t\tcontractGuaranteePolicy.setEvaluator(ContractGuaranteeByIdentityContractEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(contractGuaranteePolicy);\n\t\t\t\t// only autocomplete roles that can be requested\n\t\t\t\tIdmAuthorizationPolicyDto applyForPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tapplyForPolicy.setPermissions(IdmBasePermission.AUTOCOMPLETE);\n\t\t\t\tapplyForPolicy.setRole(role1.getId());\n\t\t\t\tapplyForPolicy.setGroupPermission(CoreGroupPermission.ROLE.getName());\n\t\t\t\tapplyForPolicy.setAuthorizableType(IdmRole.class.getCanonicalName());\n\t\t\t\tapplyForPolicy.setEvaluator(RoleCanBeRequestedEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(applyForPolicy);\n\t\t\t\t// role requests by identity\n\t\t\t\tIdmAuthorizationPolicyDto roleRequestByIdentityPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\troleRequestByIdentityPolicy.setRole(role1.getId());\n\t\t\t\troleRequestByIdentityPolicy.setGroupPermission(CoreGroupPermission.ROLEREQUEST.getName());\n\t\t\t\troleRequestByIdentityPolicy.setAuthorizableType(IdmRoleRequest.class.getCanonicalName());\n\t\t\t\troleRequestByIdentityPolicy.setEvaluator(RoleRequestByIdentityEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(roleRequestByIdentityPolicy);\n\t\t\t\t// self role requests\n\t\t\t\tIdmAuthorizationPolicyDto selfRoleRequestPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tselfRoleRequestPolicy.setPermissions(IdmBasePermission.READ, IdmBasePermission.UPDATE, IdmBasePermission.CREATE, IdmBasePermission.DELETE);\n\t\t\t\tselfRoleRequestPolicy.setRole(role1.getId());\n\t\t\t\tselfRoleRequestPolicy.setGroupPermission(CoreGroupPermission.ROLEREQUEST.getName());\n\t\t\t\tselfRoleRequestPolicy.setAuthorizableType(IdmRoleRequest.class.getCanonicalName());\n\t\t\t\tselfRoleRequestPolicy.setEvaluator(SelfRoleRequestEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(selfRoleRequestPolicy);\n\t\t\t\t// role rerquests in approval\n\t\t\t\tIdmAuthorizationPolicyDto roleRequestByWfPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\troleRequestByWfPolicy.setPermissions(IdmBasePermission.READ, IdmBasePermission.UPDATE);\n\t\t\t\troleRequestByWfPolicy.setRole(role1.getId());\n\t\t\t\troleRequestByWfPolicy.setGroupPermission(CoreGroupPermission.ROLEREQUEST.getName());\n\t\t\t\troleRequestByWfPolicy.setAuthorizableType(IdmRoleRequest.class.getCanonicalName());\n\t\t\t\troleRequestByWfPolicy.setEvaluator(RoleRequestByWfInvolvedIdentityEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(roleRequestByWfPolicy);\n\t\t\t\t// tree node - autocomplete\n\t\t\t\tIdmAuthorizationPolicyDto treeNodePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\ttreeNodePolicy.setPermissions(IdmBasePermission.AUTOCOMPLETE);\n\t\t\t\ttreeNodePolicy.setRole(role1.getId());\n\t\t\t\ttreeNodePolicy.setGroupPermission(CoreGroupPermission.TREENODE.getName());\n\t\t\t\ttreeNodePolicy.setAuthorizableType(IdmTreeNode.class.getCanonicalName());\n\t\t\t\ttreeNodePolicy.setEvaluator(BasePermissionEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(treeNodePolicy);\n\t\t\t\t// tree type - autocomplete all\n\t\t\t\tIdmAuthorizationPolicyDto treeTypePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\ttreeTypePolicy.setPermissions(IdmBasePermission.AUTOCOMPLETE);\n\t\t\t\ttreeTypePolicy.setRole(role1.getId());\n\t\t\t\ttreeTypePolicy.setGroupPermission(CoreGroupPermission.TREETYPE.getName());\n\t\t\t\ttreeTypePolicy.setAuthorizableType(IdmTreeType.class.getCanonicalName());\n\t\t\t\ttreeTypePolicy.setEvaluator(BasePermissionEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(treeTypePolicy);\n\t\t\t\t// workflow task read and execute\n\t\t\t\tIdmAuthorizationPolicyDto workflowTaskPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tworkflowTaskPolicy.setPermissions(IdmBasePermission.READ, IdmBasePermission.EXECUTE);\n\t\t\t\tworkflowTaskPolicy.setRole(role1.getId());\n\t\t\t\tworkflowTaskPolicy.setGroupPermission(CoreGroupPermission.WORKFLOWTASK.getName());\n\t\t\t\tworkflowTaskPolicy.setEvaluator(BasePermissionEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(workflowTaskPolicy);\n\t\t\t\t// role catalogue - autocomplete\n\t\t\t\tIdmAuthorizationPolicyDto cataloguePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tcataloguePolicy.setPermissions(IdmBasePermission.AUTOCOMPLETE);\n\t\t\t\tcataloguePolicy.setRole(role1.getId());\n\t\t\t\tcataloguePolicy.setGroupPermission(CoreGroupPermission.ROLECATALOGUE.getName());\n\t\t\t\tcataloguePolicy.setAuthorizableType(IdmRoleCatalogue.class.getCanonicalName());\n\t\t\t\tcataloguePolicy.setEvaluator(BasePermissionEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(cataloguePolicy);\n\t\t\t\t// autocomplete profile pictures\n\t\t\t\tIdmAuthorizationPolicyDto selfProfilePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tselfProfilePolicy.setPermissions(IdmBasePermission.AUTOCOMPLETE);\n\t\t\t\tselfProfilePolicy.setRole(role1.getId());\n\t\t\t\tselfProfilePolicy.setGroupPermission(CoreGroupPermission.PROFILE.getName());\n\t\t\t\tselfProfilePolicy.setAuthorizableType(IdmProfile.class.getCanonicalName());\n\t\t\t\tselfProfilePolicy.setEvaluator(SelfProfileEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(selfProfilePolicy);\n\t\t\t\t//\n\t\t\t\tLOG.info(MessageFormat.format(\"Role created [id: {0}]\", role1.getId()));\n\t\t\t\t//\n\t\t\t\tIdmRoleDto role2 = new IdmRoleDto();\n\t\t\t\trole2.setCode(\"customRole\");\n\t\t\t\trole2.setCanBeRequested(true);\n\t\t\t\t// TODO: subroles are disabled for now\n\t\t\t\t//List<IdmRoleComposition> subRoles = new ArrayList<>();\n\t\t\t\t//subRoles.add(new IdmRoleComposition(role2, superAdminRole));\n\t\t\t\t//role2.setSubRoles(subRoles);\n\t\t\t\trole2 = this.roleService.save(role2);\n\t\t\t\tLOG.info(MessageFormat.format(\"Role created [id: {0}]\", role2.getId()));\n\t\t\t\t//\n\t\t\t\tIdmRoleDto roleManager = new IdmRoleDto();\n\t\t\t\troleManager.setCode(\"manager\");\n\t\t\t\troleManager.setCanBeRequested(true);\n\t\t\t\troleManager = this.roleService.save(roleManager);\n\t\t\t\tLOG.info(MessageFormat.format(\"Role created [id: {0}]\", roleManager.getId()));\n\t\t\t\t//\n\t\t\t\t//\n\t\t\t\tIdmIdentityDto identity = new IdmIdentityDto();\n\t\t\t\tidentity.setUsername(\"john\");\n\t\t\t\tidentity.setPassword(new GuardedString(\"john\"));\n\t\t\t\tidentity.setFirstName(\"John\");\n\t\t\t\tidentity.setLastName(\"Doe\");\n\t\t\t\tidentity.setEmail(\"john.doe@bcvsolutions.eu\");\n\t\t\t\tidentity = this.identityService.save(identity);\n\t\t\t\tLOG.info(MessageFormat.format(\"Identity created [id: {0}]\", identity.getId()));\n\t\t\t\t//\n\t\t\t\t// create prime contract\n\t\t\t\tIdmIdentityContractDto identityContract = identityContractService.getPrimeContract(identity.getId());\n\t\t\t\tif (identityContract == null) {\n\t\t\t\t\tidentityContract = identityContractService.prepareMainContract(identity.getId());\n\t\t\t\t\tidentityContract = identityContractService.save(identityContract);\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t\tIdmIdentityRoleDto identityRole1 = new IdmIdentityRoleDto();\n\t\t\t\tidentityRole1.setIdentityContract(identityContract.getId());\n\t\t\t\tidentityRole1.setRole(role1.getId());\n\t\t\t\tidentityRole1 = identityRoleService.save(identityRole1);\n\t\t\t\t//\n\t\t\t\tIdmIdentityRoleDto identityRole2 = new IdmIdentityRoleDto();\n\t\t\t\tidentityRole2.setIdentityContract(identityContract.getId());\n\t\t\t\tidentityRole2.setRole(role2.getId());\n\t\t\t\tidentityRole2 = identityRoleService.save(identityRole2);\n\t\t\t\t//\n\t\t\t\tIdmIdentityDto identity2 = new IdmIdentityDto();\n\t\t\t\tidentity2.setUsername(\"jane\");\n\t\t\t\tidentity2.setFirstName(\"Jane\");\n\t\t\t\tidentity2.setPassword(new GuardedString(\"jane\"));\n\t\t\t\tidentity2.setLastName(\"Doe\");\n\t\t\t\tidentity2.setEmail(\"jane.doe@bcvsolutions.eu\");\n\t\t\t\tidentity2 = this.identityService.save(identity2);\n\t\t\t\tLOG.info(MessageFormat.format(\"Identity created [id: {0}]\", identity2.getId()));\n\t\t\t\t//\n\t\t\t\tIdmIdentityDto identity3 = new IdmIdentityDto();\n\t\t\t\tidentity3.setUsername(\"novak\");\n\t\t\t\tidentity3.setFirstName(\"Jan\");\n\t\t\t\tidentity3.setPassword(new GuardedString(\"novak\"));\n\t\t\t\tidentity3.setLastName(\"Novák\");\n\t\t\t\tidentity3.setEmail(\"jan.novak@bcvsolutions.eu\");\n\t\t\t\tidentity3 = this.identityService.save(identity3);\n\t\t\t\tLOG.info(MessageFormat.format(\"Identity created [id: {0}]\", identity3.getId()));\n\t\t\t\t//\n\t\t\t\tIdmTreeNodeDto organization1 = new IdmTreeNodeDto();\n\t\t\t\torganization1.setCode(\"one\");\n\t\t\t\torganization1.setName(\"Organization One\");\n\t\t\t\torganization1.setParent(rootOrganization.getId());\n\t\t\t\torganization1.setTreeType(treeType.getId());\n\t\t\t\torganization1 = this.treeNodeService.save(organization1);\n\t\t\t\t//\n\t\t\t\tIdmTreeNodeDto organization2 = new IdmTreeNodeDto();\n\t\t\t\torganization2.setCode(\"two\");\n\t\t\t\torganization2.setName(\"Organization Two\");\n\t\t\t\torganization2.setParent(rootOrganization.getId());\n\t\t\t\torganization2.setTreeType(treeType.getId());\n\t\t\t\torganization2 = this.treeNodeService.save(organization2);\n\t\t\t\t//\n\t\t\t\tIdmIdentityContractDto identityWorkPosition = new IdmIdentityContractDto();\n\t\t\t\tidentityWorkPosition.setIdentity(identityAdmin.getId());\n\t\t\t\tidentityWorkPosition.setWorkPosition(organization2.getId());\n\t\t\t\tidentityWorkPosition = identityContractService.save(identityWorkPosition);\n\t\t\t\tIdmContractGuaranteeDto contractGuarantee = new IdmContractGuaranteeDto();\n\t\t\t\tcontractGuarantee.setIdentityContract(identityWorkPosition.getId());\n\t\t\t\tcontractGuarantee.setGuarantee(identity2.getId());\n\t\t\t\tcontractGuaranteeService.save(contractGuarantee);\n\t\t\t\t//\n\t\t\t\tLOG.info(\"Demo data was created.\");\n\t\t\t\t//\t\t\t\t\n\t\t\t\tconfigurationService.setBooleanValue(PARAMETER_DEMO_DATA_CREATED, true);\n\t\t\t\t//\n\t\t\t\t// demo eav identity form\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto letter = new IdmFormAttributeDto();\n\t\t\t\tletter.setCode(FORM_ATTRIBUTE_LETTER);\n\t\t\t\tletter.setName(\"Favorite letter\");\n\t\t\t\tletter.setPlaceholder(\"Character\");\n\t\t\t\tletter.setDescription(\"Some favorite character\");\n\t\t\t\tletter.setPersistentType(PersistentType.CHAR);\n\t\t\t\tletter.setRequired(true);\n\t\t\t\tletter = formService.saveAttribute(IdmIdentity.class, letter);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto phone = new IdmFormAttributeDto();\n\t\t\t\tphone.setCode(FORM_ATTRIBUTE_PHONE);\n\t\t\t\tphone.setName(\"Phone\");\n\t\t\t\tphone.setDescription(\"Additional identitiy's phone\");\n\t\t\t\tphone.setPersistentType(PersistentType.TEXT);\n\t\t\t\tphone = formService.saveAttribute(IdmIdentity.class, phone);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto description = new IdmFormAttributeDto();\n\t\t\t\tdescription.setCode(\"description\");\n\t\t\t\tdescription.setName(\"Description\");\n\t\t\t\tdescription.setDescription(\"Some longer optional text (2000 characters)\");\n\t\t\t\tdescription.setPersistentType(PersistentType.TEXT);\n\t\t\t\tdescription.setFaceType(BaseFaceType.TEXTAREA);\n\t\t\t\tdescription = formService.saveAttribute(IdmIdentity.class, description);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto rich = new IdmFormAttributeDto();\n\t\t\t\trich.setCode(\"rich\");\n\t\t\t\trich.setName(\"RichText\");\n\t\t\t\trich.setDescription(\"Some rich text (2000 characters)\");\n\t\t\t\trich.setPersistentType(PersistentType.TEXT);\n\t\t\t\tdescription.setFaceType(BaseFaceType.RICHTEXTAREA);\n\t\t\t\trich = formService.saveAttribute(IdmIdentity.class, rich);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto sure = new IdmFormAttributeDto();\n\t\t\t\tsure.setCode(\"sure\");\n\t\t\t\tsure.setName(\"Registration\");\n\t\t\t\tsure.setPersistentType(PersistentType.BOOLEAN);\n\t\t\t\tsure = formService.saveAttribute(IdmIdentity.class, sure);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto intNumber = new IdmFormAttributeDto();\n\t\t\t\tintNumber.setCode(\"intNumber\");\n\t\t\t\tintNumber.setName(\"Int number\");\n\t\t\t\tintNumber.setPersistentType(PersistentType.INT);\n\t\t\t\tintNumber = formService.saveAttribute(IdmIdentity.class, intNumber);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto longNumber = new IdmFormAttributeDto();\n\t\t\t\tlongNumber.setCode(\"longNumber\");\n\t\t\t\tlongNumber.setName(\"Long number\");\n\t\t\t\tlongNumber.setPersistentType(PersistentType.LONG);\n\t\t\t\tlongNumber = formService.saveAttribute(IdmIdentity.class, longNumber);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto doubleNumber = new IdmFormAttributeDto();\n\t\t\t\tdoubleNumber.setCode(\"doubleNumber\");\n\t\t\t\tdoubleNumber.setName(\"Double number\");\n\t\t\t\tdoubleNumber.setPersistentType(PersistentType.DOUBLE);\n\t\t\t\tdoubleNumber = formService.saveAttribute(IdmIdentity.class, doubleNumber);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto currency = new IdmFormAttributeDto();\n\t\t\t\tcurrency.setCode(\"currency\");\n\t\t\t\tcurrency.setName(\"Price\");\n\t\t\t\tcurrency.setPersistentType(PersistentType.DOUBLE);\n\t\t\t\tcurrency.setFaceType(BaseFaceType.CURRENCY);\t\t\t\n\t\t\t\tcurrency = formService.saveAttribute(IdmIdentity.class, currency);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto date = new IdmFormAttributeDto();\n\t\t\t\tdate.setCode(FORM_ATTRIBUTE_DATE);\n\t\t\t\tdate.setName(\"Date\");\n\t\t\t\tdate.setPersistentType(PersistentType.DATE);\n\t\t\t\tdate.setRequired(true);\n\t\t\t\tdate.setDescription(\"Important date\");\n\t\t\t\tdate = formService.saveAttribute(IdmIdentity.class, date);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto datetime = new IdmFormAttributeDto();\n\t\t\t\tdatetime.setCode(FORM_ATTRIBUTE_DATETIME);\n\t\t\t\tdatetime.setName(\"Date and time\");\n\t\t\t\tdatetime.setPersistentType(PersistentType.DATETIME);\n\t\t\t\tdatetime = formService.saveAttribute(IdmIdentity.class, datetime);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto uuid = new IdmFormAttributeDto();\n\t\t\t\tuuid.setCode(FORM_ATTRIBUTE_UUID);\n\t\t\t\tuuid.setName(\"UUID\");\n\t\t\t\tuuid.setDescription(\"Some uuid value\");\n\t\t\t\tuuid.setPersistentType(PersistentType.UUID);\n\t\t\t\tuuid = formService.saveAttribute(IdmIdentity.class, uuid);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto webPages = new IdmFormAttributeDto();\n\t\t\t\twebPages.setCode(FORM_ATTRIBUTE_WWW);\n\t\t\t\twebPages.setName(\"WWW\");\n\t\t\t\twebPages.setDescription(\"Favorite web pages (every line in new value)\");\n\t\t\t\twebPages.setPersistentType(PersistentType.TEXT);\n\t\t\t\twebPages.setMultiple(true);\n\t\t\t\twebPages = formService.saveAttribute(IdmIdentity.class, webPages);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto password = new IdmFormAttributeDto();\n\t\t\t\tpassword.setCode(FORM_ATTRIBUTE_PASSWORD);\n\t\t\t\tpassword.setName(\"Custom password\");\n\t\t\t\tpassword.setPersistentType(PersistentType.TEXT);\n\t\t\t\tpassword.setConfidential(true);\n\t\t\t\tpassword.setDescription(\"Test password\");\n\t\t\t\tpassword = formService.saveAttribute(IdmIdentity.class, password);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto byteArray = new IdmFormAttributeDto();\n\t\t\t\tbyteArray.setCode(\"byteArray\");\n\t\t\t\tbyteArray.setName(\"Byte array\");\n\t\t\t\tbyteArray.setPersistentType(PersistentType.BYTEARRAY);\n\t\t\t\tbyteArray.setConfidential(false);\n\t\t\t\tbyteArray.setDescription(\"Test byte array\");\n\t\t\t\tbyteArray.setPlaceholder(\"or image :-)\");\n\t\t\t\tbyteArray = formService.saveAttribute(IdmIdentity.class, byteArray);\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<IdmFormValueDto> values = new ArrayList<>();\t\t\t\t\n\t\t\t\tIdmFormValueDto phoneValue = new IdmFormValueDto();\n\t\t\t\tphoneValue.setFormAttribute(phone.getId());\n\t\t\t\tphoneValue.setStringValue(\"12345679\");\n\t\t\t\tvalues.add(phoneValue);\n\t\t\t\t\n\t\t\t\tformService.saveValues(identity.getId(), IdmIdentity.class, null, values);\n\t\t\t\t\n\t\t\t\t//\n\t\t\t\t// demo eav role form\n\t\t\t\tIdmFormAttributeDto roleExt = new IdmFormAttributeDto();\n\t\t\t\troleExt.setCode(\"extAttr\");\n\t\t\t\troleExt.setName(\"Ext.attr\");\n\t\t\t\troleExt.setPersistentType(PersistentType.TEXT);\n\t\t\t\troleExt.setConfidential(false);\n\t\t\t\troleExt.setDescription(\"Role's custom extended attribute\");\n\t\t\t\t\n\t\t\t\troleExt = formService.saveAttribute(IdmRole.class, roleExt);\n\t\t\t\t\n\t\t\t\t//\n\t\t\t\t// demo eav tree node form\n\t\t\t\tIdmFormAttributeDto treeNodeExt = new IdmFormAttributeDto();\n\t\t\t\ttreeNodeExt.setCode(\"extAttr\");\n\t\t\t\ttreeNodeExt.setName(\"Ext.attr\");\n\t\t\t\ttreeNodeExt.setPersistentType(PersistentType.TEXT);\n\t\t\t\ttreeNodeExt.setConfidential(false);\n\t\t\t\ttreeNodeExt.setDescription(\"Tree node's custom extended attribute\");\n\t\t\t\t\n\t\t\t\ttreeNodeExt = formService.saveAttribute(IdmTreeNode.class, treeNodeExt);\n\t\t\t\t\n\t\t\t\t//\n\t\t\t\t// demo eav identity contract's form\n\t\t\t\tIdmFormAttributeDto identityContractExt = new IdmFormAttributeDto();\n\t\t\t\tidentityContractExt.setCode(\"extAttr\");\n\t\t\t\tidentityContractExt.setName(\"Ext.attr\");\n\t\t\t\tidentityContractExt.setPersistentType(PersistentType.TEXT);\n\t\t\t\tidentityContractExt.setConfidential(false);\n\t\t\t\tidentityContractExt.setDescription(\"Identity contract's custom extended attribute\");\n\t\t\t\t\n\t\t\t\tidentityContractExt = formService.saveAttribute(IdmIdentityContract.class, identityContractExt);\n\t\t\t}\n\t\t} catch(Exception ex) {\n\t\t\tLOG.warn(\"Demo data was not created\", ex);\n\t\t} finally {\n\t\t\tSecurityContextHolder.clearContext();\n\t\t}\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n usuDto = (UsuariosDTO) AppContext.getInstance().get(\"usuarioContrasena\");\n lblNombre.setText(usuDto.getNombreCompleto());\n lblCedula.setText(usuDto.getCedula());\n if (Token.getInstance().getUsuario().getRolId().getCodigo().equals(\"ROLE_ADMIN\")) {\n btnCambiar.setDisable(true);\n }\n llenarReglas();\n llenarListaNodos();\n desarrollo();\n }", "public UserDAO() {\n\t\tthis.emf = Persistence.createEntityManagerFactory(\"feedr_v3\");\n\t\tthis.em = this.emf.createEntityManager();\n\t\tthis.et = this.em.getTransaction();\n\t}", "protected void initializeInstances() {\n if (mUser == null) {\n mUser = new User(getApplicationContext());\n }\n if (mUserCache == null) {\n mUserCache = new UserCache();\n }\n if(mGlobalGroupContainer == null) {\n mGlobalGroupContainer = new GroupContainer(getApplicationContext());\n }\n if(mGlobalHistoryContainer == null) {\n mGlobalHistoryContainer = new HistoryContainer(getApplicationContext());\n }\n\n if(mGlobalContactContainer == null) {\n mGlobalContactContainer = new ContactContainer(getApplicationContext());\n mGlobalContactContainer.setContactSortKey(Contact.UserSortKey.USER_FIRST_NAME);\n }\n }", "public void autonomousInit() {\n \n }", "public void initUser(ActiveSession user) {\n this.user = user;\n }", "public void initialize(UimaContext aContext) throws ResourceInitializationException {\r\n\t\tsuper.initialize(aContext);\r\n\t\tlogger = aContext.getLogger();\t\r\n\t\tlogger.log(Level.INFO, \"FactExtractCloud: initializing:\");\r\n\t\tpAccount = CASUtils.getConfigurationStringValue(aContext, null, PARAM_ACCOUNT);\r\n\t\tpUsername = CASUtils.getConfigurationStringValue(aContext, null, PARAM_USERNAME);\r\n\t\tpPassword = CASUtils.getConfigurationStringValue(aContext, null, PARAM_PASSWORD);\r\n\t\tpDatabase = CASUtils.getConfigurationStringValue(aContext, null, PARAM_DATABASE);\r\n\t\tpTriggerFeature = CASUtils.getConfigurationStringValue(aContext, null, PARAM_TRIGGER);\r\n\t\tCloudantClient client = ClientBuilder.account(pAccount)\r\n\t\t\t\t.username(pUsername)\r\n\t\t\t\t.password(pPassword)\r\n\t\t\t\t.build();\r\n\t\tdb = client.database(pDatabase, true);\r\n\t\t//logger.log(Level.INFO,\"Server Version: \" + client.serverVersion());\t\r\n\t}", "@Override\r\n public void start(OpProjectSession session) {\n OpBroker broker = session.newBroker();\r\n try {\r\n if (session.administrator(broker) == null) {\r\n OpUserService.createAdministrator(broker);\r\n }\r\n if (session.everyone(broker) == null) {\r\n OpUserService.createEveryone(broker);\r\n }\r\n\r\n //register system objects with Backup manager\r\n OpBackupManager.addSystemObjectIDQuery(OpUser.ADMINISTRATOR_NAME, OpUser.ADMINISTRATOR_ID_QUERY);\r\n OpBackupManager.addSystemObjectIDQuery(OpGroup.EVERYONE_NAME, OpGroup.EVERYONE_ID_QUERY);\r\n }\r\n finally {\r\n broker.closeAndEvict();\r\n }\r\n }", "@Override public void init() {\n drive = MecanumDrive.standard(hardwareMap); // Comment this line if you, for some reason, don't need to use the drive motors\n\n // Uncomment the next three lines if you need to use the gyroscope\n // gyro = IMUGyro.standard(hardwareMap);\n // gyro.initialize();\n // gyro.calibrate();\n\n // Uncomment the next two lines if you need to use the vision system\n // vision = new Vision(hardwareMap);\n // vision.init();\n\n // Uncomment the next line if you have a servo\n // myServo = hardwareMap.get(Servo.class, \"myServo\");\n\n /** Place any code that should run when INIT is pressed here. **/\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n ProduitService ps=new ProduitService();\n try {\n count.setText(String.valueOf(ps.countpanier(Session.getCurrentSession())));\n } catch (SQLException ex) {\n Logger.getLogger(PanierController.class.getName()).log(Level.SEVERE, null, ex);\n }\n List currentUser = new ArrayList();\n String req = \"select nom,prenom from user where id=(?)\";\n try {\n PreparedStatement prepared = con.prepareStatement(req);\n prepared.setInt(1, Session.getCurrentSession());\n ResultSet resultat = prepared.executeQuery();\n\n while (resultat.next()) {\n String nom = resultat.getString(1);\n String prenom = resultat.getString(2);\n currentUser.add(nom);\n currentUser.add(prenom);\n }\n\n } catch (SQLException ex) {\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\n }\n bienvenue.setText(\"Connecté en tant que : \" + currentUser.get(0) + \" \" + currentUser.get(1));\n ///////////////////////Panier////////////////////\n \n try {\n AffichagePanier();\n } catch (SQLException ex) {\n Logger.getLogger(PanierController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public CSearchUserPanel() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n\n db = new Datenbank();\n try{\n db.loadUsers();\n } catch (IOException e){\n // todo Nachricht anzeigen\n }\n\n\n\n }", "private void initialize() throws IOException {\n\n\t\tlog.info(\"Known Repositories:\");\n\t\tString[] names = getRepositoryNames(rootDirFile);\n\t\tfor (String name : names) {\n\t\t\tlog.info(\" \" + name);\n\t\t}\n\t\tif (names.length == 0) {\n\t\t\tlog.info(\" <none>\");\n\t\t}\n\t\tfor (String name : names) {\n\t\t\tFile f = new File(rootDirFile, NamingUtilities.mangle(name));\n\t\t\tif (!f.isDirectory()) {\n\t\t\t\tlog.error(\"Error while processing repository \" + name +\n\t\t\t\t\t\", directory not found: \" + f);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!f.canWrite()) {\n\t\t\t\tthrow new IOException(f.getAbsolutePath() + \" can not be written to\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tRepository rep = new Repository(this, null, f, name);\n\t\t\t\trepositoryMap.put(name, rep);\n\t\t\t}\n\t\t\tcatch (UserAccessException e) {\n\t\t\t\t// ignore\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tlog.error(\"Error while processing repository \" + name + \", \" + e.getMessage());\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\t// Start command queue watcher\n\t\tcommandWatcher = new CommandWatcher(this);\n\t\tThread t = new Thread(commandWatcher, \"Server Command Watcher\");\n\t\tt.start();\n\n\t\tprocessCommandQueue(); // process any old commands\n\t}", "private void initialize()\n {\n if (null!=cc)\n {\n throw new RuntimeException(\"CorpusServiceI has been initialized already\");\n }\n dataDir = mAdapter.getCommunicator().getProperties().getProperty(\"CVAC.DataDir\");\n logger.log(Level.FINE, \"CorpusService found CVAC.DataDir={0}\", dataDir);\n logger.setLevel(Level.FINEST);\n CorpusI.rootDataDir = dataDir;\n cc = new CorpusConfig();\n corpToImp = new HashMap<String, CorpusI>();\n logger.log(Level.INFO, \"CorpusService initialized\" );\n }", "public void init(UserInfo user, String alias);", "public void autonomousInit() {\n\t\tautonomousCommand.start();\r\n\t}", "public Repository (FileSystem def) {\n this.system = def;\n java.net.URL.setURLStreamHandlerFactory(\n new org.openide.execution.NbfsStreamHandlerFactory());\n init ();\n }", "@Override\n\tpublic void onInitialize() {\n\t\titemregistry.registeritems();\n\t\tentityregister.registerEntityAttribute();\n\t\tSystem.out.println(\"Project Azure: Starting up...\");\n\n\t}", "@Before\n\tpublic void initialize() {\n\t\tuser_reg = new UserRegistration();\n\t}", "@PostConstruct\n void initSystemAdmin() {\n final UserAccount admin = initAdminInstance();\n final String passwordPlain = generatePassword();\n admin.setPassword(passwordPlain);\n if (userService.exists(admin.getUri())) {\n LOG.info(\"Admin already exists.\");\n } else {\n LOG.info(\"Creating application admin account.\");\n final TransactionTemplate tx = new TransactionTemplate(txManager);\n tx.execute(status -> {\n userService.persist(admin);\n return null;\n });\n LOG.info(SEPARATOR);\n LOG.info(\"Admin credentials are: {}/{}\", admin.getUsername(), passwordPlain);\n LOG.info(SEPARATOR);\n final File directory = new File(config.getAdminCredentialsLocation());\n try {\n if (!directory.exists()) {\n Files.createDirectories(directory.toPath());\n }\n final File credentialsFile = createHiddenFile();\n if (credentialsFile == null) {\n return;\n }\n LOG.debug(\"Writing admin credentials into file: {}\", credentialsFile);\n Files.write(credentialsFile.toPath(),\n Collections.singletonList(admin.getUsername() + \"/\" + passwordPlain),\n StandardOpenOption.CREATE, StandardOpenOption.WRITE,\n StandardOpenOption.TRUNCATE_EXISTING);\n } catch (IOException e) {\n LOG.error(\"Unable to create admin credentials file.\", e);\n }\n }\n }", "public void initializeUser() {\n try {\n Connection connection = connect();\n\n PreparedStatement createCategoryTable = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS user (\"\n + \"id INTEGER PRIMARY KEY, \"\n + \"username VARCHAR(100),\"\n + \"password VARCHAR(100),\"\n + \"UNIQUE(username, password)\"\n + \");\"\n );\n createCategoryTable.execute();\n createCategoryTable.close();\n\n connection.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "protected void initialize() {\n \tclaw = Robot.getClaw();\n\n \tclaw.open();\n }", "protected void initialize() {\r\n\r\n Robot.pneumatics.pneuOpen();\r\n }", "public void autonomousInit() {\n }", "public void autonomousInit() {\n }" ]
[ "0.63226414", "0.6059265", "0.60518336", "0.6047264", "0.6015475", "0.58315116", "0.5751184", "0.5709537", "0.5695957", "0.56898135", "0.56527555", "0.56345266", "0.5632624", "0.561332", "0.5609581", "0.5602147", "0.56015855", "0.55760974", "0.55648977", "0.55571955", "0.5536291", "0.5489115", "0.54853594", "0.5480562", "0.54742295", "0.5431174", "0.543001", "0.54247665", "0.53742486", "0.53727096", "0.53655326", "0.53582627", "0.53560483", "0.5353502", "0.5336244", "0.5332041", "0.53270364", "0.5321893", "0.53152406", "0.53132504", "0.53021604", "0.5301439", "0.5273645", "0.52628326", "0.5256952", "0.5250159", "0.52437043", "0.52436554", "0.5237661", "0.52343446", "0.5229127", "0.52256143", "0.5217115", "0.5210933", "0.5206722", "0.52016026", "0.52012795", "0.5173903", "0.5170945", "0.5170791", "0.51673234", "0.5156039", "0.515339", "0.5152779", "0.51395094", "0.5133783", "0.51333076", "0.5132461", "0.5130841", "0.51210123", "0.51183885", "0.51129484", "0.511189", "0.5108776", "0.5107544", "0.5096496", "0.5093525", "0.5090353", "0.5081503", "0.5079495", "0.5074093", "0.5068136", "0.50618064", "0.50613105", "0.50592315", "0.50546426", "0.50539565", "0.50474715", "0.504732", "0.50460345", "0.5044222", "0.50440115", "0.5039085", "0.50355726", "0.50345033", "0.5033582", "0.50258255", "0.5022305", "0.50165117", "0.5015936", "0.5015936" ]
0.0
-1
Initiate user trans repository.
public String getUserTransRepositoryPath(String username,String group) { String userRepoPath = userRepositoryPath( username ); group = Const.NVL(group, CloudRepository.DEFAULT_GROUP_NAME); if(CloudRepository.ALL_GROUP_NAME.equalsIgnoreCase(group)) { group = null; } try { String transDir = TRANS_REPOSITORY_DIR; if(!Utils.isEmpty(group)) { transDir = transDir+SEPARATOR+group ; } CloudRepository.createDir(userRepoPath, transDir); return userRepoPath + transDir + SEPARATOR; } catch (KettleException e) { logger.error("trans路径创建失败.",e); return userRepoPath; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initUser() {\n\t}", "@PostConstruct\n public void initUsers() {\n List<MyUser> users = Stream.of(\n new MyUser(\"1\",\"Vaibhav\",\"Vaibhav\"),\n new MyUser(\"2\",\"Abhishek\",\"Abhishek\"),\n new MyUser(\"3\",\"admin\",\"admin\")\n ).collect(Collectors.toList());\n repository.saveAll(users);\n }", "public void setupUser() {\n }", "private void initTransactions() {\n\n\t transactions = ModelFactory.createDefaultModel();\n\t try\n\t {\n\t\t\ttransactions.read(new FileInputStream(\"transactions.ttl\"),null,\"TTL\");\n\t\t}\n\t catch (FileNotFoundException e) {\n\t \tSystem.out.println(\"Error creating tansactions model\" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "@PostConstruct\n public void init() {\n users = userService.findAll().stream()\n .map(UserModel::convertFromEntity)\n .sorted(Comparator.comparing(UserModel::getId))\n .collect(Collectors.toList());\n articles = articleService.findAll().stream()\n .map(ArticleModel::convertFromEntity)\n .sorted(Comparator.comparing(ArticleModel::getId))\n .collect(Collectors.toList());\n comment = CommentModel.builder().build();\n conversation.begin();\n }", "public UserDAO() {\n\t\tthis.emf = Persistence.createEntityManagerFactory(\"feedr_v3\");\n\t\tthis.em = this.emf.createEntityManager();\n\t\tthis.et = this.em.getTransaction();\n\t}", "public UserServiceImpl() {\n\t\trepository = new UserRepositoryImpl();\n\t}", "public UserInfoGenerator(IRepository repository) {\n this.repository = repository;\n }", "private void initializeUserControllers() {\n trUpdateUserImage = UserControllersFactory.createTrUpdateUserImage();\n trDeleteUser = UserControllersFactory.createTrDeleteUser();\n trObtainUser = UserControllersFactory.createTrObtainUser();\n trChangePassword = UserControllersFactory.createTrChangePassword();\n trChangeMail = UserControllersFactory.createTrChangeMail();\n trChangeUsername = UserControllersFactory.createTrChangeUsername();\n trExistsUsername = UserControllersFactory.createTrExistsUsername();\n trObtainUserImage = UserControllersFactory.createTrObtainUserImage();\n trSendFirebaseMessagingToken = UserControllersFactory.createTrSendFirebaseMessagingToken();\n }", "private void initLogin() {\n try {\n initValidation();\n initRepository();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public UserRepo()\n {\n }", "private Transaction setUpTransaction(double amount, Transaction.Operation operation, String username){\n Transaction transaction = new Transaction();\n transaction.setDate(Date.valueOf(LocalDate.now()));\n transaction.setAmount(amount);\n transaction.setOperation(operation);\n transaction.setUserId(userRepository.getByUsername(username).getId());\n return transaction;\n }", "@Override\n public void run() {\n try {\n stringOrganizationIds.remove(defaultOrg);\n List<Integer> organizationIds = FluentIterable.from(stringOrganizationIds)\n .transform(Ints.stringConverter()).toList();\n\n newUser.setActive(false);\n UserProfileStruct savedUser = createAccountInternal(conn, newUser, password, resetQuestion,\n resetAnswer, givenName, surname, organizationId);\n for (Integer orgId : organizationIds) {\n Profile profile = new Profile();\n profile.setGivenName(givenName);\n profile.setSurname(surname);\n profile.setOrganizationId(orgId);\n profile.setUserId(savedUser.credentialedUser.getId());\n profile = profilePersister.createProfile(profile, conn);\n\n authService.grantAtLeast(profile.getId(), ROLE_READER, orgId);\n authService.grantAtLeast(orgId, ROLE_ADMIN, profile.getId());\n }\n\n User user = savedUser.credentialedUser.getUser();\n user.setActive(true);\n persistenceService.process(conn, new UserPersister.UpdateUserFunc(user));\n conn.commit();\n } catch (Exception e) {\n closeConnection(conn);\n }\n }", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "private void initObjects() {\n inputValidation = new InputValidation(activity);\n databaseHelper = new DatabaseHelper(activity);\n user = new User();\n }", "public UserController() {\n\t\tdao = new GenDao(User.class);\n\t\teventDao = new GenDao(Event.class);\n slug = new Slug();\n\t}", "public void initialize() {\n\n // DO NOT DELETE\n if (userRoleRepository.count() == 0) {\n userRoleRepository.saveAll(List.of(\n userRoleFactory.of(ROLE_USER.name()),\n userRoleFactory.of(ROLE_ADMIN.name())\n ));\n }\n\n // DO NOT DELETE\n if (userRepository.count() == 0) {\n userRepository.saveAll(List.of(\n userFactory.ofSecurity(\n List.of(retrieveAdminRole(), retrieveUserRole()),\n \"lens.huygh@gmail.com\",\n new BCryptPasswordEncoder().encode(\"Lens\"),\n \"Lens Huygh\"),\n userFactory.ofSecurity(\n List.of(retrieveAdminRole(), retrieveUserRole()),\n \"thomasf0n7a1n3@gmail.com\",\n new BCryptPasswordEncoder().encode(\"Thomas\"),\n \"Thomas Fontaine\"),\n userFactory.ofSecurity(\n List.of(retrieveAdminRole(), retrieveUserRole()),\n \"paul.gerarts@juvo.be\",\n new BCryptPasswordEncoder().encode(\"Paul\"),\n \"Paul Gerarts\"),\n userFactory.ofSecurity(\n List.of(retrieveUserRole()),\n \"user@email.com\",\n new BCryptPasswordEncoder().encode(\"user\"),\n \"User McUserson\"),\n userFactory.ofSecurity(\n List.of(retrieveAdminRole()),\n \"admin@email.com\",\n new BCryptPasswordEncoder().encode(\"admin\"),\n \"Admin McAdminson\"\n )\n ));\n }\n }", "@Inject\n public UserRepositoryImpl() {\n database = FirebaseDatabase.getInstance();\n auth = FirebaseAuth.getInstance();\n }", "public static void initPlayer() {\n\t\tuser = game.getUsers().get(game.getUserTurn());\n\t\tlblBudgetText.setText(user.getBudget()+\"\");\n\t\tdisplayUserTeam();\n\t}", "@Override\n public void setUp() throws Exception\n {\n transactionService = (TransactionService) ctx.getBean(\"TransactionService\");\n subscriptionService = (SubscriptionService) ctx.getBean(\"SubscriptionService\");\n personService = (PersonService) ctx.getBean(\"PersonService\");\n\n AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getSystemUserName());\n\n txn = transactionService.getNonPropagatingUserTransaction(false);\n txn.begin();\n\n createPerson(USER_BOB);\n createPerson(USER_TOM);\n createPerson(USER_LISA);\n }", "public CreateUserCommand() {\n userReceiver = new UserReceiver();\n roleReceiver = new RoleReceiver();\n next = new GetRolesCommand();\n result = new CommandResult();\n }", "public UserAuthenticationDAOImpl() {\n\t\tinitUsers();\n\t}", "private void initObjects() {\n databaseHelper = new DatabaseHelper(activity);\n dbHelper = new DBHelper(activity);\n inputValidation = new InputValidation(activity);\n progress = new ProgressDialog(activity);\n user=new User();\n }", "public void initUser(ActiveSession user) {\n this.user = user;\n }", "public users() {\n initComponents();\n connect();\n autoID();\n loaduser();\n \n \n }", "private void initialize() throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\tuserCatalog = CatalogoUsuarios.getInstance();\n\t\tcontactDAO = AdaptadorContacto.getInstance();\n\t\tmessageDAO = AdaptadorMensajes.getInstance();\n\t}", "public UserManager() {\n\n this.userStore = new UserSet();\n this.communityStore = new CommunitySet();\n\n }", "static void init() {\n\t\tuserDatabase = new HashMap<String, User>();\n\t}", "public final void initialise (Uid u, String tn)\n {\n }", "public User() {\n this.inv = new Inventory();\n this.fl = new FriendList();\n this.tradesList = new TradesList();\n this.tradeCount = 0;\n this.downloadsEnabled = true;\n }", "private static void init(){\n entityManager = HibernateUtil.getEntityManager();\n transaction = entityManager.getTransaction();\n }", "protected void init() {\n setUUIDString();\n setNoteCreatedAt();\n setNoteUpdatedAt();\n setCreator(ParseUser.getCurrentUser());\n addAuthor(ParseUser.getCurrentUser());\n setACL(new ParseACL(ParseUser.getCurrentUser()));\n }", "public ApplicationUserBoImpl()\n {\n \t//Initialise the related Object stores\n \n }", "public AuthService() {\n//\t\tthis.dao = new UsuarioDAO();\n//\t\tthis.repository = repository;\n\t}", "public static void initRepository() {\n deserialize();\n if (flightRepository == null) {\n flightRepository = new FlightRepository();\n }\n }", "public void init(String userID);", "User()\n\t{\n\n\t}", "private static void initUsers() {\n\t\tusers = new ArrayList<User>();\n\n\t\tusers.add(new User(\"Majo\", \"abc\", true));\n\t\tusers.add(new User(\"Alvaro\", \"def\", false));\n\t\tusers.add(new User(\"Luis\", \"ghi\", true));\n\t\tusers.add(new User(\"David\", \"jkl\", false));\n\t\tusers.add(new User(\"Juan\", \"mno\", true));\n\t\tusers.add(new User(\"Javi\", \"pqr\", false));\n\t}", "public void init(UserInfo user, String alias);", "public void initUsers() {\n User user1 = new User(\"Alicja\", \"Grzyb\", \"111111\", \"grzyb\");\n User user2 = new User(\"Krzysztof\", \"Kowalski\", \"222222\", \"kowalski\");\n User user3 = new User(\"Karolina\", \"Nowak\", \"333333\", \"nowak\");\n User user4 = new User(\"Zbigniew\", \"Stonoga \", \"444444\", \"stonoga\");\n User user5 = new User(\"Olek\", \"Michnik\", \"555555\", \"michnik\");\n users.add(user1);\n users.add(user2);\n users.add(user3);\n users.add(user4);\n users.add(user5);\n }", "GenerateUserAccount () {\r\n }", "public UserDAO() {\r\n\t\tsuper();\r\n\t\tthis.userStore.put(\"user\", new User(\"user\", \"user\"));\r\n\t}", "@Override\n public void initializeUsersForImportation() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"initializeUsersForImportation\");\n }\n clearAddPanels();\n setRenderImportUserPanel(true);\n\n List<User> users;\n\n usersForImportation = new ArrayList<Pair<Boolean, User>>();\n\n if (Role.isLoggedUserAdmin() || Role.isLoggedUserProjectManager()) {\n choosenInstitutionForAdmin = (Institution) Component.getInstance(CHOOSEN_INSTITUTION_FOR_ADMIN);\n\n if (choosenInstitutionForAdmin != null) {\n users = User.listUsersForCompany(choosenInstitutionForAdmin);\n } else {\n users = User.listAllUsers();\n }\n } else {\n users = User.listUsersForCompany(Institution.getLoggedInInstitution());\n }\n boolean emailAlreadyExists;\n for (User user : users) {\n emailAlreadyExists = false;\n\n for (ConnectathonParticipant cp : connectathonParticipantsDataModel().getAllItems(FacesContext.getCurrentInstance())) {\n\n if (user.getEmail().equals(cp.getEmail())) {\n emailAlreadyExists = true;\n }\n }\n\n if (!emailAlreadyExists) {\n usersForImportation.add(new Pair<Boolean, User>(false, user));\n }\n }\n }", "public ToDoCreate(User user) {\n\t\tthis.user = user;\n\t\tinit();\n\t}", "public void initDatabase() {\n Datastore mongoDataStore = DatabaseHandler.getInstance().getMongoDataStore();\n initUsers();\n initAccounts();\n mongoDataStore.save(users);\n }", "private final void initializeCache() {\r\n try {\r\n UserIndex index = makeUserIndex(this.dbManager.getUserIndex());\r\n for (UserRef ref : index.getUserRef()) {\r\n String email = ref.getEmail();\r\n String userString = this.dbManager.getUser(email);\r\n User user = makeUser(userString);\r\n this.updateCache(user);\r\n }\r\n }\r\n catch (Exception e) {\r\n server.getLogger().warning(\"Failed to initialize users \" + StackTrace.toString(e));\r\n }\r\n }", "public UserModel() throws IOException {\n userManager = new UserManager();\n }", "private void initData() throws Exception {\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n createOrganizationRoles(dm);\n createPaymentTypes(dm);\n createUserRoles(dm);\n supplier = Organizations.createOrganization(dm,\n OrganizationRoleType.SUPPLIER);\n UserGroup defaultGroupSup = new UserGroup();\n defaultGroupSup.setOrganization(supplier);\n defaultGroupSup.setIsDefault(true);\n defaultGroupSup.setName(\"default\");\n dm.persist(defaultGroupSup);\n technologyProvider = Organizations.createOrganization(dm,\n OrganizationRoleType.TECHNOLOGY_PROVIDER);\n UserGroup defaultGroupTP = new UserGroup();\n defaultGroupTP.setOrganization(technologyProvider);\n defaultGroupTP.setIsDefault(true);\n defaultGroupTP.setName(\"default\");\n dm.persist(defaultGroupTP);\n tpAndSup = Organizations.createOrganization(dm,\n OrganizationRoleType.TECHNOLOGY_PROVIDER,\n OrganizationRoleType.SUPPLIER);\n supplierAdminUser = Organizations.createUserForOrg(dm, supplier,\n true, \"admin\");\n supplier2 = Organizations.createOrganization(dm,\n OrganizationRoleType.SUPPLIER);\n UserGroup defaultGroup = new UserGroup();\n defaultGroup.setOrganization(supplier2);\n defaultGroup.setIsDefault(true);\n defaultGroup.setName(\"default\");\n dm.persist(defaultGroup);\n UserGroup defaultGroupTpAndSp = new UserGroup();\n defaultGroupTpAndSp.setOrganization(tpAndSup);\n defaultGroupTpAndSp.setIsDefault(true);\n defaultGroupTpAndSp.setName(\"default\");\n dm.persist(defaultGroupTpAndSp);\n Organizations.createUserForOrg(dm, supplier2, true, \"admin\");\n customer = Organizations.createCustomer(dm, supplier);\n UserGroup defaultGroup1 = new UserGroup();\n defaultGroup1.setOrganization(customer);\n defaultGroup1.setIsDefault(true);\n defaultGroup1.setName(\"default\");\n dm.persist(defaultGroup1);\n customer2 = Organizations.createCustomer(dm, supplier2);\n customerUser = Organizations.createUserForOrg(dm, customer,\n true, \"admin\");\n OrganizationReference onBehalf = new OrganizationReference(\n supplier, customer,\n OrganizationReferenceType.ON_BEHALF_ACTING);\n dm.persist(onBehalf);\n onBehalf = new OrganizationReference(supplier, supplier2,\n OrganizationReferenceType.ON_BEHALF_ACTING);\n dm.persist(onBehalf);\n onBehalf = new OrganizationReference(supplier,\n technologyProvider,\n OrganizationReferenceType.ON_BEHALF_ACTING);\n dm.persist(onBehalf);\n onBehalf = new OrganizationReference(supplier, tpAndSup,\n OrganizationReferenceType.ON_BEHALF_ACTING);\n dm.persist(onBehalf);\n return null;\n }\n });\n }", "public Menu(IUserAccount user, ResourceBundle languageRB) {\n this.languageRB = languageRB;\n init(user);\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n\n db = new Datenbank();\n try{\n db.loadUsers();\n } catch (IOException e){\n // todo Nachricht anzeigen\n }\n\n\n\n }", "public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}", "@PostConstruct\r\n public void init() {\n HttpSession session = SessionUtil.getSession();\r\n String email = (String) session.getAttribute(\"email\");\r\n user = userFacade.users(email);\r\n }", "public Register() {\n user = new User();\n em = EMF.createEntityManager();\n valid = false;\n }", "private UserInterface() {\r\n\t\tif (yesOrNo(\"Look for saved data and use it?\")) {\r\n\t\t\tretrieve();\r\n\t\t} else {\r\n\t\t\tstore = Store.instance();\r\n\t\t}\r\n\t}", "@PostConstruct\n\tprotected void initialize() throws Exception {\n\t\t// // Create sample roles\n\t\tRole roleAdmin = roleRepository.findByName(\"R_SUPER_ADMIN\");\n\t\tif (roleRepository.findByName(\"R_SUPER_ADMIN\") == null) {\n\t\t\tlogger.debug(\"Creating default admin role ...\");\n\t\t\troleAdmin = new Role(\"Super Admin\", \"R_SUPER_ADMIN\", \"This is a role for super administrator.\");\n\t\t\troleAdmin.setIsRestricted(true);\n\t\t\troleRepository.save(roleAdmin);\n\t\t}\n\t\t// // Create default users\n\t\tif (accountRepository.findByUsername(\"admin\") == null) {\n\t\t\tlogger.debug(\"Creating default admin account ...\");\n\t\t\taccountRepository.save(new Account(\"admin\", passwordEncoder.encode(\"admin\"), \"kent@rbtsb.com\", \"Kent\",\n\t\t\t\t\troleRepository.findByName(\"R_SUPER_ADMIN\"), true));\n\t\t}\n\n\t}", "public Repo() {\n //this.app = Init.application;\n }", "public sear() {\n initComponents();\n findUsers();\n }", "public LabConstructUserServiceImpl() {\n\t}", "public UserManagementImpl() {\r\n this.login = new LoginImpl();\r\n this.signUp = new SignUpImpl();\r\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n usuarioImplementacion=new Usuario_DAO_Imp();\n }", "public DbUser() {\r\n\t}", "@Before\n\tpublic void initialize() {\n\t\tuser_reg = new UserRegistration();\n\t}", "public UpdateUserProcessor() {\n\t\n\t}", "protected static void initUser(User user) throws ApiException, IOException {\n\n\t\tif (questAdmin.getAdminKey() == null\n\t\t\t\t|| questAdmin.getQuestKeys().length == 0) {\n\t\t\tquestAdmin.init(dao);\n\t\t}\n\t\tfor (Quest quest : getQuests(questAdmin.getAdminKey())) {\n\n\t\t\tif (quest != null) {\n\n\t\t\t\tassignQuest(quest, user, false);\n\t\t\t}\n\t\t}\n\n\t}", "public UserDAO(EntityManager instance){\n\t\t\tsuper(instance);\n\t\t}", "public LibrarianUser() {\n\t\tsuper();\n\t}", "private void initializeCurrentUser() {\n if (enableLoginActivity && mAuth.getCurrentUser() != null) {\n try {\n initializeUser();\n refreshGoogleCalendarToken();\n } catch (PetRepeatException e) {\n Toast toast = Toast.makeText(this, getString(R.string.error_pet_already_existing),\n Toast.LENGTH_LONG);\n toast.show();\n }\n\n if (mAuth.getCurrentUser() != null) {\n mAuth.getCurrentUser().getIdToken(false).addOnCompleteListener(task -> {\n user.setToken(Objects.requireNonNull(task.getResult()).getToken());\n });\n }\n }\n }", "public void begin()\n {\n checkTransactionJoin();\n if (joinStatus != JoinStatus.NO_TXN)\n {\n throw new NucleusTransactionException(\"JTA Transaction is already active\");\n }\n\n UserTransaction utx;\n try\n {\n utx = getUserTransaction();\n }\n catch (NamingException e)\n {\n throw ec.getApiAdapter().getUserExceptionForException(\"Failed to obtain UserTransaction\", e);\n }\n\n try\n {\n utx.begin();\n }\n catch (NotSupportedException e)\n {\n throw ec.getApiAdapter().getUserExceptionForException(\"Failed to begin UserTransaction\", e);\n }\n catch (SystemException e)\n {\n throw ec.getApiAdapter().getUserExceptionForException(\"Failed to begin UserTransaction\", e);\n }\n\n checkTransactionJoin();\n if (joinStatus != JoinStatus.JOINED)\n {\n throw new NucleusTransactionException(\"Cannot join an auto started UserTransaction\");\n }\n userTransaction = utx;\n }", "@PostConstruct\n public void loadData()\n {\n try \n {\n usu = new RhUsuario();\n \n rol = new RhRol();\n \n uc = new UsuController();\n \n usuList = uc.findAll(usu);\n \n encrypter = new Encryption();\n } \n catch (Exception ex) \n {\n Logger.getLogger(UsuarioManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "protected UserDao() throws BillingSystemException{\r\n\t this.objectDataMapping();\r\n\t}", "RemoteUserManager() { }", "public void setUserRepository (UserRepository userRepository) {\n\t\tthis.userRepository = userRepository; \n\t}", "private void autoPopulateDB() {\r\n User newUser = new User(\"din_djarin\", \"baby_yoda_ftw\");\r\n User secondNew = new User(\"csumb\", \"otters_woo\");\r\n User lastNew = new User(\"username\", \"password\");\r\n\r\n mUserDAO.insert(newUser);\r\n mUserDAO.insert(secondNew);\r\n mUserDAO.insert(lastNew);\r\n }", "public NewUsers() {\n initComponents();\n currentTimeDate();\n }", "public void initializeUser() {\n try {\n Connection connection = connect();\n\n PreparedStatement createCategoryTable = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS user (\"\n + \"id INTEGER PRIMARY KEY, \"\n + \"username VARCHAR(100),\"\n + \"password VARCHAR(100),\"\n + \"UNIQUE(username, password)\"\n + \");\"\n );\n createCategoryTable.execute();\n createCategoryTable.close();\n\n connection.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public UserStore() throws StoreException {\n try {\n connection = DBUtil.getExternalConnection(\"project\");\n connection.setAutoCommit(false);\n }\n catch (SQLException e) {\n throw new StoreException(e);\n }\n }", "public ManageUser() {\r\n \t\tinitComponents();\r\n \t\taddActionListener();\r\n \t}", "public SessionService() {\n user = new User();\n project = new Project();\n project.setId(-1);\n project.setName(\"не выбран\");\n logged = false;\n textUpdated = false;\n }", "public UsersInF() {\n initComponents();\n dao = new UsersDAO();\n loadTableUsers(dao.readAll());\n }", "public OnlineUserDAO(){}", "@EventListener(ApplicationReadyEvent.class)\n public void get() {\n User testUser = new User(\"Jan\", getPasswordEncoder().encode(\"123\"), \"ROLE_USER\");\n User testAdmin = new User(\"Olek\", getPasswordEncoder().encode(\"321\"), \"ROLE_ADMIN\");\n userRepository.save(testUser);\n userRepository.save(testAdmin);\n }", "abstract void initPersistance();", "public void init(UserData userData) {\n this.userData = userData;\n }", "@Before\n public void setUp() throws Exception {\n userDao = DatabaseAccess.createOracleDatabase().createUserDaoOperator();\n }", "@Override\r\n\tprotected void init() {\r\n\t\tList<Configuracao> configs = servico.listarTodos();\r\n\t\tif (!configs.isEmpty()) {\r\n\t\t\tentidade = configs.get(0);\t// deve haver apenas um registro\r\n\t\t} else {\r\n\t\t\tcreateConfiguracao();\r\n\t\t}\r\n\t\t\r\n carregarTemas();\r\n\t}", "private void initialize() {\n \t\tfor (Module module : UserType.getCurrentUserType().getModules()) {\n \t\t\tif (module.getModuleClass() != null) {\n \t\t\t\tregisterModule(module);\n \t\t\t}\n \t\t}\n \t\tif (GeneralPreferences.getLanguage() != null && GeneralPreferences.getLanguage().equals(Language.FRENCH)) {\n \t\t\tLocale.setDefault(Locale.FRANCE);\n \t\t} else {\n \t\t\tLocale.setDefault(Locale.US);\n \t\t}\n \t\tFlexoHelp.configure(GeneralPreferences.getLanguage() != null ? GeneralPreferences.getLanguage().getIdentifier() : \"ENGLISH\",\n \t\t\t\tUserType.getCurrentUserType().getIdentifier());\n \t}", "public User() {\n log.debug(\"Create a User object\");\n }", "public void init() {\n\n\t\tConnection connection = null;\n\t\tStatement statement = null;\n\n\t\ttry {\n\n\t\t\tconnection = DatabaseInteractor.getConnection();\n\t\t\tstatement = connection.createStatement();\n\n\t\t} catch (SQLException exception) {\n\t\t\texception.printStackTrace();\n\t\t\treturn;\n\t\t} catch (ClassNotFoundException exception) {\n\t\t\texception.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\n\t\t\tDatabaseInteractor.createTable(StringConstants.USERS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.QUESTIONS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.ANSWERS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.TOPICS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_QUESTION_VOTES_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_ANSWER_VOTES_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_TOPIC_RANKS_TABLE, statement);\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void populateUser() {\n // After user is authenticated, grab their data from the net\n // TODO This will ping the net on every resume (which is probably frequent).\n userListener = saplynService.viewUser();\n\n userListener.subscribeOn(Schedulers.newThread())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(\n\n // We got a valid user from the web. Populate our local object and spawn\n // the dashboard.\n user -> {\n this.user = user;\n FragmentTransaction ft = fm.beginTransaction();\n ft.add(R.id.main_fragment_container_home, new DashboardFragment());\n ft.commit();\n },\n throwable -> {\n if(throwable instanceof HttpException) {\n ResponseBody body = ((HttpException) throwable).response().errorBody();\n Log.e(TAG, \"onErrorFromPopulateUser: \"\n + body.toString());\n }\n }\n );\n }", "public TCSiteUserIdRetriever() {\r\n // do nothing\r\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "private static void init() {\n\t\tif (factory == null) {\n\t\t\tfactory = Persistence.createEntityManagerFactory(\"hibernatePersistenceUnit\");\n\t\t}\n\t\tif (em == null) {\n\t\t\tem = factory.createEntityManager();\n\t\t}\n\t}", "@Before\n\tpublic void init() {\n\t\tuserDao=new UsersDAO();\n\t\tentityManager=mock(EntityManager.class);\n\t\tuserDao.setEntityManager(entityManager);\n\t\t\n\t}", "public UserDirectory() {\n\t\tusers = new LinkedAbstractList<User>(100);\n\t}", "public void initRequest() {\n repo.getData();\n }", "private void initial(){\n storeAccount(\"201799990001030047\");\n }", "void addInvitedTrans(ITransaction transaction, String userId);", "public OmsUsuario() {\n\t}", "@BeforeAll\n public static void initAll() {\n emf = Persistence.createEntityManagerFactory(\"test-resource-local\");\n propertyName = User_.username.getName();\n emf.close();\n validator = Validation.buildDefaultValidatorFactory().getValidator();\n }", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "public UserDAO()\n {\n \n }" ]
[ "0.663452", "0.6053879", "0.5990824", "0.592208", "0.5897912", "0.5866348", "0.5862084", "0.5858524", "0.5819164", "0.575648", "0.5726491", "0.57085997", "0.57043755", "0.5649125", "0.56376415", "0.5627817", "0.56122756", "0.56066364", "0.5586705", "0.55863404", "0.5548257", "0.55153364", "0.5515206", "0.55012923", "0.5429237", "0.54232377", "0.5422239", "0.54032207", "0.54017764", "0.53990394", "0.53743714", "0.5369427", "0.5364897", "0.536088", "0.5357351", "0.5346393", "0.53395814", "0.5339384", "0.5330395", "0.53273225", "0.5313232", "0.53114766", "0.5301741", "0.5294896", "0.5283586", "0.52827835", "0.5257718", "0.5256034", "0.5241771", "0.52392185", "0.523858", "0.5238318", "0.52217335", "0.5221625", "0.52145576", "0.51771754", "0.51732105", "0.517162", "0.517015", "0.5159758", "0.5157054", "0.5151595", "0.5145862", "0.51375973", "0.5117448", "0.5109721", "0.5104832", "0.50986254", "0.50962716", "0.5092158", "0.5090094", "0.5088326", "0.5079312", "0.50778633", "0.50767446", "0.50757205", "0.5073503", "0.5068818", "0.5053856", "0.5047008", "0.5035643", "0.5032909", "0.5031895", "0.50318503", "0.50298303", "0.501728", "0.5015966", "0.5012719", "0.50090677", "0.49988732", "0.49913192", "0.4982159", "0.49810043", "0.49731222", "0.497101", "0.49699712", "0.4969642", "0.49624267", "0.49599037", "0.49595496", "0.49576354" ]
0.0
-1
Initiate user jobs repository.
public String getUserJobsRepositoryPath(String username,String group) { String userRepoPath = userRepositoryPath( username ); group = Const.NVL(group, CloudRepository.DEFAULT_GROUP_NAME); if(CloudRepository.ALL_GROUP_NAME.equalsIgnoreCase(group)) { group = null; } try { String jobDir = JOB_REPOSITORY_DIR; if(!Utils.isEmpty(group)) { jobDir = jobDir+SEPARATOR+group ; } CloudRepository.createDir(userRepoPath, jobDir); return userRepoPath + jobDir + SEPARATOR; } catch (KettleException e) { logger.error("job路径创建失败.",e); return userRepoPath; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startJobs() {\n List<JobProfile> profileList = getJobConfDb().getAcceptedJobs();\n for (JobProfile profile : profileList) {\n LOGGER.info(\"init starting job from db {}\", profile.toJsonStr());\n addJob(new Job(profile));\n }\n }", "public JobManager(){\n //Initialize the job manager for use of the system\n }", "@PostConstruct\n protected void init() {\n // Look up the associated batch data\n job = batchService.findByInstanceId(jobContext.getInstanceId());\n }", "private void initUser() {\n\t}", "public void doJob() {\n if(User.count() == 0) {\n\t // Create classification dimensions\n\t ClassificationDimension whatDimension = new\n\t\t\t ClassificationDimension(\"What\", ClassificationDimension.WHAT_DIMENSION_ID);\n\t ClassificationDimension whereDimension = new\n\t\t\t ClassificationDimension(\"Where\", ClassificationDimension.WHERE_DIMENSION_ID);\n\t whatDimension.save();\n\t whereDimension.save();\n\n\t // Admin user\n\t User admin = new User(ADMIN_USER_EMAIL, ADMIN_USER_PASSWORD);\n\t admin.name = \"Admin user\";\n\t admin.save();\n\n\t // Tester user\n\t User tester = new User(TEST_USER_EMAIL, TEST_USER_PASSWORD);\n\t\t tester.name = \"Test user\";\n\t\t tester.save();\n\n\t // Tutorial user\n\t User tutorial = new User(TUTORIAL_USER_EMAIL, TUTORIAL_USER_PASSWORD);\n\t tutorial.name = \"Tutorial user\";\n\t tutorial.save();\n\n\t // First RCA case\n\t RCACase firstRCACase = new RCACase(tester);\n\t firstRCACase.caseName = \"\";\n\t firstRCACase.caseName = \"Test RCA case\";\n\t\t\tfirstRCACase.caseTypeValue = 2;\n\t\t\tfirstRCACase.caseGoals = \"Save the world\";\n\t\t\tfirstRCACase.companySizeValue = 2;\n\t\t\tfirstRCACase.description = \"We are going to save the world with our ARCA-tool!\";\n\t\t\tfirstRCACase.isMultinational = true;\n\t\t\tfirstRCACase.companyName = \"WiRCA\";\n\t\t\tfirstRCACase.companyProducts = \"ARCA-tool\";\n\t\t\tfirstRCACase.isCasePublic = true;\n\n\t // Problem of the first RCA case\n\t firstRCACase.problem = new Cause(firstRCACase, firstRCACase.caseName, tester).save();\n\t firstRCACase.save();\n\t tester.addRCACase(firstRCACase);\n\t tester.save();\n\t \n\t Cause testNode1 = firstRCACase.problem.addCause(\"test node 1\", tester);\n\t\t\ttestNode1.xCoordinate = -100;\n\t\t\ttestNode1.save();\n\t Cause testNode2 = firstRCACase.problem.addCause(\"test node 2\", tester);\n\t Cause testNode3 = testNode1.addCause(\"test node 3\", tester);\n\t\t\ttestNode3.xCoordinate = -75;\n\t\t\ttestNode3.save();\n\t Cause testNode4 = testNode1.addCause(\"test node 4\", tester);\n\t Cause testNode5 = testNode1.addCause(\"test node 5\", tester);\n\t\t\ttestNode5.xCoordinate = -200;\n\t\t\ttestNode5.save();\n\t Cause testNode6 = testNode2.addCause(\"test node 6\", tester);\n\t\t\ttestNode6.xCoordinate = 0;\n\t\t\ttestNode6.save();\n\t Cause testNode7 = testNode5.addCause(\"test node 7\", tester);\n\t Cause testNode8 = testNode4.addCause(\"test node 8\", tester);\n\t\t\ttestNode8.xCoordinate = 0;\n\t\t\ttestNode8.save();\n\t Cause testNode9 = testNode5.addCause(\"test node 9\", tester);\n\t\t\ttestNode9.xCoordinate = -100;\n\t\t\ttestNode9.save();\n\t Cause testNode10 = testNode9.addCause(\"test node 10\", tester);\n\t testNode7.addCause(testNode3);\n\t testNode8.addCause(testNode6);\n\t testNode10.addCause(testNode6);\n\n\t // Some classifications for \"firstRCACase\"\n\t Classification testClassification1 = new Classification(firstRCACase,\"Management\",admin,ClassificationDimension.WHERE_DIMENSION_ID,\n\t \"MA\", \"MA\");\n\t Classification testClassification2 = new Classification(firstRCACase,\"Software Testing\",admin,ClassificationDimension.WHERE_DIMENSION_ID,\n\t \"ST\", \"ST\");\n\t Classification testClassification3 = new Classification(firstRCACase,\"Implementation Work\",admin,ClassificationDimension.WHERE_DIMENSION_ID,\n\t \"IM\", \"IM\");\n\t Classification testClassification4 = new Classification(firstRCACase,\"Work Practices\",admin,ClassificationDimension.WHAT_DIMENSION_ID,\n\t \"WP\", \"WP\");\n\t Classification testClassification5 = new Classification(firstRCACase,\"Methods\",admin,ClassificationDimension.WHAT_DIMENSION_ID,\n\t \"ME\", \"ME\");\n\t Classification testClassification6 = new Classification(firstRCACase,\"Task Priority\",admin,ClassificationDimension.WHAT_DIMENSION_ID,\n\t \"TP\", \"TP\");\n\t Classification testClassification7 = new Classification(firstRCACase,\"Monitoring\",admin,ClassificationDimension.WHAT_DIMENSION_ID,\n\t \"MO\", \"MO\");\n\t Classification testClassification8 = new Classification(firstRCACase,\"Co-operation\",admin,ClassificationDimension.WHAT_DIMENSION_ID,\n\t \"CO\", \"CO\");\n\t testClassification1.save();\n\t testClassification2.save();\n\t testClassification3.save();\n\t testClassification4.save();\n\t testClassification5.save();\n\t testClassification6.save();\n\t testClassification7.save();\n\t testClassification8.save();\n\n\t ClassificationPair pair = new ClassificationPair(testClassification1, testClassification4);\n\t pair.save();\n\t SortedSet<ClassificationPair> set1 = new TreeSet<ClassificationPair>();\n\t set1.add(pair);\n\t testNode1.setClassifications(set1);\n\t testNode1.save();\n\n\t ClassificationPair pair2 = new ClassificationPair(testClassification1, testClassification4);\n\t pair2.save();\n\t SortedSet<ClassificationPair> set2 = new TreeSet<ClassificationPair>();\n\t set2.add(pair2);\n\t testNode2.setClassifications(set2);\n\t testNode2.save();\n\n final Calendar calendar = Calendar.getInstance();\n RCACase adminsPrivateCase = new RCACase(admin);\n\t adminsPrivateCase.caseName = \"\";\n\t adminsPrivateCase.caseName = \"Admin's private RCA case\";\n\t adminsPrivateCase.caseTypeValue = 2;\n\t\t\tadminsPrivateCase.caseGoals = \"Test the program\";\n\t\t\tadminsPrivateCase.companySizeValue = 2;\n\t\t\tadminsPrivateCase.description = \"We are going to save the world with our ARCA-tool!\";\n\t\t\tadminsPrivateCase.isMultinational = true;\n\t\t\tadminsPrivateCase.companyName = \"WiRCA\";\n\t\t\tadminsPrivateCase.companyProducts = \"ARCA-tool\";\n\t adminsPrivateCase.isCasePublic = false;\n\t adminsPrivateCase.problem = new Cause(adminsPrivateCase, adminsPrivateCase.caseName, admin).save();\n calendar.set(2011,Calendar.DECEMBER,02,11,31);\n adminsPrivateCase.created = calendar.getTime();\n adminsPrivateCase.save();\n\t admin.addRCACase(adminsPrivateCase);\n\t admin.save();\n\t tester.addRCACase(adminsPrivateCase);\n\t tester.save();\n\n\t RCACase adminsOwnPrivateCase = new RCACase(admin);\n adminsOwnPrivateCase.caseName = \"\";\n adminsOwnPrivateCase.caseName = \"Admin's own private RCA case\";\n adminsOwnPrivateCase.caseTypeValue = 2;\n adminsOwnPrivateCase.caseGoals = \"Test the program\";\n adminsOwnPrivateCase.companySizeValue = 2;\n adminsOwnPrivateCase.description = \"We are going to save the world with our ARCA-tool!\";\n adminsOwnPrivateCase.isMultinational = true;\n adminsOwnPrivateCase.companyName = \"WiRCA\";\n\t adminsOwnPrivateCase.companyProducts = \"ARCA-tool\";\n adminsOwnPrivateCase.isCasePublic = false;\n adminsOwnPrivateCase.problem = new Cause(adminsOwnPrivateCase, adminsOwnPrivateCase.caseName, admin).save();\n calendar.set(2012,Calendar.JUNE,05,10,30);\n adminsOwnPrivateCase.created = calendar.getTime();\n adminsOwnPrivateCase.save();\n admin.addRCACase(adminsOwnPrivateCase);\n admin.save();\n\n\t RCACase adminsPublicCase = new RCACase(admin);\n\t adminsPublicCase.caseName = \"\";\n\t adminsPublicCase.caseName = \"Admin's public RCA case\";\n\t adminsPublicCase.caseTypeValue = 2;\n\t\t\tadminsPublicCase.caseGoals = \"Test the program\";\n\t\t\tadminsPublicCase.companySizeValue = 2;\n\t\t\tadminsPublicCase.description = \"We are going to save the world with our ARCA-tool!\";\n\t\t\tadminsPublicCase.isMultinational = true;\n\t\t\tadminsPublicCase.companyName = \"WiRCA\";\n\t\t\tadminsPublicCase.companyProducts = \"ARCA-tool\";\n\t adminsPublicCase.isCasePublic = true;\n\t adminsPublicCase.problem = new Cause(adminsPublicCase, adminsPublicCase.caseName, admin).save();\n calendar.set(2011,Calendar.DECEMBER,6,22,12);\n adminsPublicCase.created = calendar.getTime();\n adminsPublicCase.save();\n\t admin.addRCACase(adminsPublicCase);\n\t admin.save();\n\t tester.addRCACase(adminsPublicCase);\n\t tester.save();\n\n\n\t Classification classification1 = new Classification(adminsPublicCase,\"Management\",admin,ClassificationDimension.WHERE_DIMENSION_ID,\n\t \"MA\", \"MA\");\n\t Classification classification2 = new Classification(adminsPublicCase,\"Software Testing\",admin,ClassificationDimension.WHERE_DIMENSION_ID,\n\t \"ST\", \"ST\");\n\t Classification classification3 = new Classification(adminsPublicCase,\"Implementation Work\",admin,ClassificationDimension.WHERE_DIMENSION_ID,\n\t \"IM\", \"IM\");\n\t Classification classification4 = new Classification(adminsPublicCase,\"Work Practices\",admin,ClassificationDimension.WHAT_DIMENSION_ID,\n\t \"WP\", \"WP\");\n\t Classification classification5 = new Classification(adminsPublicCase,\"Methods\",admin,ClassificationDimension.WHAT_DIMENSION_ID,\n\t \"ME\", \"ME\");\n\t Classification classification6 = new Classification(adminsPublicCase,\"Task Priority\",admin,ClassificationDimension.WHAT_DIMENSION_ID,\n\t \"TP\", \"TP\");\n\t Classification classification7 = new Classification(adminsPublicCase,\"Monitoring\",admin,ClassificationDimension.WHAT_DIMENSION_ID,\n\t \"MO\", \"MO\");\n\t Classification classification8 = new Classification(adminsPublicCase,\"Co-operation\",admin,ClassificationDimension.WHAT_DIMENSION_ID,\n\t \"CO\", \"CO\");\n\t classification1.save();\n\t classification2.save();\n\t classification3.save();\n\t classification4.save();\n\t classification5.save();\n\t classification6.save();\n\t classification7.save();\n\t classification8.save();\n\n\t //new TutorialRCACaseJob().doJob(tester, true);\n\t new TutorialRCACaseJob().doJob(tutorial,true);\n\n\t }\n }", "public GetJobs() {\r\n\t\tsuper();\r\n\t}", "private void loadJobs(){\n\t\tsuperJobsList.clear();\n\t\tsuperJobs=jdbc.getProjectsAndJobs();\n\t\tfor(Job j: superJobs){\n\t\t\tsuperJobsList.addElement(j.jobname);\n\t\t}\n\t\t\n\t}", "public Jobs jobs();", "@PostConstruct\n public void initUsers() {\n List<MyUser> users = Stream.of(\n new MyUser(\"1\",\"Vaibhav\",\"Vaibhav\"),\n new MyUser(\"2\",\"Abhishek\",\"Abhishek\"),\n new MyUser(\"3\",\"admin\",\"admin\")\n ).collect(Collectors.toList());\n repository.saveAll(users);\n }", "public AutomaticJob() {\r\n \r\n }", "public interface IJobshelper {\n\n\t/**\n\t * Can do some initialization for task like file location, Emailer list, Emailer\n\t * message etc This is used to set some configuration for this Job and should be\n\t * using some properties file so that each Job could use specific configuration\n\t * \n\t * @throws JobExecutionException\n\t */\n\tpublic void initialJobContext(String configFileName) throws JobExecutionException;\n\n}", "public Job() {\n\t\t\t\n\t\t}", "@Override\n public void run() {\n try {\n stringOrganizationIds.remove(defaultOrg);\n List<Integer> organizationIds = FluentIterable.from(stringOrganizationIds)\n .transform(Ints.stringConverter()).toList();\n\n newUser.setActive(false);\n UserProfileStruct savedUser = createAccountInternal(conn, newUser, password, resetQuestion,\n resetAnswer, givenName, surname, organizationId);\n for (Integer orgId : organizationIds) {\n Profile profile = new Profile();\n profile.setGivenName(givenName);\n profile.setSurname(surname);\n profile.setOrganizationId(orgId);\n profile.setUserId(savedUser.credentialedUser.getId());\n profile = profilePersister.createProfile(profile, conn);\n\n authService.grantAtLeast(profile.getId(), ROLE_READER, orgId);\n authService.grantAtLeast(orgId, ROLE_ADMIN, profile.getId());\n }\n\n User user = savedUser.credentialedUser.getUser();\n user.setActive(true);\n persistenceService.process(conn, new UserPersister.UpdateUserFunc(user));\n conn.commit();\n } catch (Exception e) {\n closeConnection(conn);\n }\n }", "public JobBuilder() {\r\n job = new Job();\r\n }", "public JobService(){\r\n\t dao = new JobDAO();\r\n//\t allJobVO = getAllJobVO();\r\n }", "private void initObjects() {\n inputValidation = new InputValidation(activity);\n databaseHelper = new DatabaseHelper(activity);\n user = new User();\n }", "public void initialize() {\n sceneSwitch = SceneSwitch.getInstance();\n sceneSwitch.addScene(addPartToJobStackPane, NavigationModel.ADD_PART_TO_JOB_ID);\n usernameLbl.setText(DBLogic.getDBInstance().getUsername());\n usertypeLbl.setText(DBLogic.getDBInstance().getUser_type());\n jobReference = jobReference.getInstance();\n partHashMap = new HashMap<>();\n refreshList();\n }", "public void initialize() {\n\n // DO NOT DELETE\n if (userRoleRepository.count() == 0) {\n userRoleRepository.saveAll(List.of(\n userRoleFactory.of(ROLE_USER.name()),\n userRoleFactory.of(ROLE_ADMIN.name())\n ));\n }\n\n // DO NOT DELETE\n if (userRepository.count() == 0) {\n userRepository.saveAll(List.of(\n userFactory.ofSecurity(\n List.of(retrieveAdminRole(), retrieveUserRole()),\n \"lens.huygh@gmail.com\",\n new BCryptPasswordEncoder().encode(\"Lens\"),\n \"Lens Huygh\"),\n userFactory.ofSecurity(\n List.of(retrieveAdminRole(), retrieveUserRole()),\n \"thomasf0n7a1n3@gmail.com\",\n new BCryptPasswordEncoder().encode(\"Thomas\"),\n \"Thomas Fontaine\"),\n userFactory.ofSecurity(\n List.of(retrieveAdminRole(), retrieveUserRole()),\n \"paul.gerarts@juvo.be\",\n new BCryptPasswordEncoder().encode(\"Paul\"),\n \"Paul Gerarts\"),\n userFactory.ofSecurity(\n List.of(retrieveUserRole()),\n \"user@email.com\",\n new BCryptPasswordEncoder().encode(\"user\"),\n \"User McUserson\"),\n userFactory.ofSecurity(\n List.of(retrieveAdminRole()),\n \"admin@email.com\",\n new BCryptPasswordEncoder().encode(\"admin\"),\n \"Admin McAdminson\"\n )\n ));\n }\n }", "public DefaultJobSelectionStrategy() {\n }", "private final void initializeCache() {\r\n try {\r\n UserIndex index = makeUserIndex(this.dbManager.getUserIndex());\r\n for (UserRef ref : index.getUserRef()) {\r\n String email = ref.getEmail();\r\n String userString = this.dbManager.getUser(email);\r\n User user = makeUser(userString);\r\n this.updateCache(user);\r\n }\r\n }\r\n catch (Exception e) {\r\n server.getLogger().warning(\"Failed to initialize users \" + StackTrace.toString(e));\r\n }\r\n }", "private void initObjects() {\n databaseHelper = new DatabaseHelper(activity);\n dbHelper = new DBHelper(activity);\n inputValidation = new InputValidation(activity);\n progress = new ProgressDialog(activity);\n user=new User();\n }", "private void configure(String args[])\r\n\t{\n\t\tfor(int i = 0; i < NUM_USERS; i++)\r\n\t\t{\r\n\t\t\tuserFileNames[i] = args[i+1];\r\n\t\t\t// userFileNames[i] = \"USER\" + i+1;\r\n\t\t}\r\n\r\n\t\t//Populate disks array\r\n\t\tfor(int i = 0; i < NUM_DISKS; i++)\r\n\t\t{\r\n\t\t\tdisks[i] = new Disk();\r\n\t\t}\r\n\r\n\t\t//Populate printers array\r\n\t\tfor(int i = 0; i < NUM_PRINTERS; i++)\r\n\t\t{\r\n\t\t\tprinters[i] = new Printer(i+1); \r\n\t\t}\r\n\r\n\t\t//Populate user\r\n\t\tfor(int i = 0; i< NUM_USERS; i++)\r\n\t\t{\r\n\t\t\tusers[i] = new UserThread(userFileNames[i]);\r\n\t\t}\r\n\t}", "public void initialize() {\n\n list.add(user1);\n list.add(user2);\n list.add(user3);\n }", "public void init(String userID);", "@Override\n public void run(String... args) throws Exception {\n this.registerUsers();\n this.postNewJobsByRecruiter();\n\n candidateJobDao.deleteAll();\n // Step 1: candidates apply for Job Position.\n logger.info(\"Data: Applying for Jobs\");\n User candidate1 = this.userDao.findByEmail(\"test.candidate1@gmail.com\");\n CandidateJob candidateJob1 = this.applyToJob(candidate1, \"JAVA0T\");\n\n User candidate2 = this.userDao.findByEmail(\"test.candidate2@gmail.com\");\n CandidateJob candidateJob2 = this.applyToJob(candidate2, \"JAVA0T\");\n\n User candidate3 = this.userDao.findByEmail(\"test.candidate3@gmail.com\");\n CandidateJob candidateJob3 = this.applyToJob(candidate3, \"JAVA0T\");\n\n //Step 2: Interview Sessions for Candidates.\n // All candidates are interviewed by two interviewers and manager.\n logger.info(\"Data: Performing Interviews and rating candidates\");\n User interviewer1 = this.userService.findUserByEmail(\"test.interviewer1@jobcorp.com\");\n User interviewer2 = this.userService.findUserByEmail(\"test.interviewer2@jobcorp.com\");\n User manager = this.userDao.findByEmail(\"test.manager@jobcorp.com\");\n this.performInterviewsForCandidate1(candidateJob1, interviewer1, interviewer2, manager);\n this.performInterviewsForCandidate2(candidateJob2, interviewer1, interviewer2, manager);\n this.performInterviewsForCandidate3(candidateJob3, interviewer1, interviewer2, manager);\n logger.info(\"Data: Data setup is done.\");\n }", "void init() {\n List<Artifact> artifacts = null;\n final List<RepositoryInfo> infos = RepositoryPreferences.getInstance().getRepositoryInfos();\n for (final RepositoryInfo info : infos) {\n if (info.isLocal()) {\n final File localrepo = new File(info.getRepositoryPath() + File.separator\n + DEFAULT_GID_PREFIX.replace('.', '/'));\n if (localrepo.exists()) {\n artifacts = resolveArtifacts(new File(info.getRepositoryPath()), localrepo);\n }\n }\n }\n\n if (artifacts == null) {\n artifacts = new ArrayList<Artifact>(1);\n }\n\n populateLocalTree(artifacts);\n populateAppPane(model.getApps());\n }", "public void initDatabase() {\n Datastore mongoDataStore = DatabaseHandler.getInstance().getMongoDataStore();\n initUsers();\n initAccounts();\n mongoDataStore.save(users);\n }", "public UserData(int userId, String username){\n isBusy = false;\n\n\t projects = new ArrayList<>();\n//\t projsInTmp = new ArrayList<>();\n//\t tasksInTmp = new ArrayList<>();\n\n\t\tthis.currentOperatorNetkey = 0;\n\t\tthis.userId = userId;\n\t this.username = username;\n }", "public AbstractJob(){\n \n }", "public ApplicationUserBoImpl()\n {\n \t//Initialise the related Object stores\n \n }", "public void init(int jid, Job job, Queue queue, Queue workerQueue\r\n\t\t\t,JobStateCache jobStateCache, JobQueueController jobQueueController) {\r\n\t\twhile(true){\r\n\t\t\tif( ready ){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(50);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tthis.jid = jid;\r\n\t\tthis.job = job;\r\n\t\tthis.queue = queue;\r\n\t\tthis.workerQueue = workerQueue;\r\n\t\tthis.jobStateCache = jobStateCache;\r\n\t\tthis.jobQueueController=jobQueueController;\r\n\t}", "public Job() {\n }", "public Job() {\n }", "public void initData() {\n ApiService.apiService.getAllJobs(20).enqueue(new Callback<List<Job>>() {\n @Override\n public void onResponse(Call<List<Job>> call, Response<List<Job>> response) {\n Log.d(TAG, \"get user from api successful\");\n mTopJob.setValue(response.body());\n }\n\n @Override\n public void onFailure(Call<List<Job>> call, Throwable t) {\n Log.d(TAG, \"get user from api failure\");\n }\n });\n\n // get Top job for user from api\n // kiểm tra xem đã đăng nhập hay chưa\n User user = FirebaseAuthentication.getProfileUser();\n // Giới hạn hiển thị 10 jobs\n int limit = 10;\n\n if (user == null) {\n ApiService.apiService.getAllJobs(limit).enqueue(new Callback<List<Job>>() {\n @Override\n public void onResponse(Call<List<Job>> call, Response<List<Job>> response) {\n mJob4User.setValue(response.body());\n Log.d(TAG, \"get job for user from api successful\");\n }\n\n @Override\n public void onFailure(Call<List<Job>> call, Throwable t) {\n Log.d(TAG, \"get job for user from api failure\");\n }\n });\n } else {\n ApiService.apiService.getJobForUser(user.get_id(), limit).enqueue(new Callback<List<Job>>() {\n @Override\n public void onResponse(Call<List<Job>> call, Response<List<Job>> response) {\n mJob4User.setValue(response.body());\n Log.d(TAG, \"get job for user from api successful\");\n }\n\n @Override\n public void onFailure(Call<List<Job>> call, Throwable t) {\n Log.d(TAG, \"get job for user from api failure\");\n }\n });\n }\n }", "public AuthenticationJob(String username, String password, Context context) {\n super(new Params(Priority.HIGH).requireNetwork());\n\n this.id = jobCounter.incrementAndGet();\n\n this.username = username;\n this.password = password;\n this.context = context;\n }", "CommandLineRunner initialize(BlockingItemRepository repository) {\n // The parameter of this method is blocking repository and it would be trouble since this project is intended to use non-blocking code.\n // If blocking code is mixed with non-blocking code the throughput of web traffic would not be increased effectively.\n // So it is important to restrict making blocking code. Don't use blocking repository in this case.\n // Then How to load data? Use ReactiveMongoTemplate. (MongoTemplate is for blocking version.)\n return args -> {\n repository.save(new Item(\"Alf alarm clock\", 19.99));\n repository.save(new Item(\"Smurt TV tray\", 24.99));\n };\n }", "public void initialJobContext(String configFileName) throws JobExecutionException;", "@Override\n public void initializeUsersForImportation() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"initializeUsersForImportation\");\n }\n clearAddPanels();\n setRenderImportUserPanel(true);\n\n List<User> users;\n\n usersForImportation = new ArrayList<Pair<Boolean, User>>();\n\n if (Role.isLoggedUserAdmin() || Role.isLoggedUserProjectManager()) {\n choosenInstitutionForAdmin = (Institution) Component.getInstance(CHOOSEN_INSTITUTION_FOR_ADMIN);\n\n if (choosenInstitutionForAdmin != null) {\n users = User.listUsersForCompany(choosenInstitutionForAdmin);\n } else {\n users = User.listAllUsers();\n }\n } else {\n users = User.listUsersForCompany(Institution.getLoggedInInstitution());\n }\n boolean emailAlreadyExists;\n for (User user : users) {\n emailAlreadyExists = false;\n\n for (ConnectathonParticipant cp : connectathonParticipantsDataModel().getAllItems(FacesContext.getCurrentInstance())) {\n\n if (user.getEmail().equals(cp.getEmail())) {\n emailAlreadyExists = true;\n }\n }\n\n if (!emailAlreadyExists) {\n usersForImportation.add(new Pair<Boolean, User>(false, user));\n }\n }\n }", "public users() {\n initComponents();\n connect();\n autoID();\n loaduser();\n \n \n }", "@PostConstruct\n\tprotected void initialize() throws Exception {\n\t\t// // Create sample roles\n\t\tRole roleAdmin = roleRepository.findByName(\"R_SUPER_ADMIN\");\n\t\tif (roleRepository.findByName(\"R_SUPER_ADMIN\") == null) {\n\t\t\tlogger.debug(\"Creating default admin role ...\");\n\t\t\troleAdmin = new Role(\"Super Admin\", \"R_SUPER_ADMIN\", \"This is a role for super administrator.\");\n\t\t\troleAdmin.setIsRestricted(true);\n\t\t\troleRepository.save(roleAdmin);\n\t\t}\n\t\t// // Create default users\n\t\tif (accountRepository.findByUsername(\"admin\") == null) {\n\t\t\tlogger.debug(\"Creating default admin account ...\");\n\t\t\taccountRepository.save(new Account(\"admin\", passwordEncoder.encode(\"admin\"), \"kent@rbtsb.com\", \"Kent\",\n\t\t\t\t\troleRepository.findByName(\"R_SUPER_ADMIN\"), true));\n\t\t}\n\n\t}", "public JobExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Override\n public void onRun() throws Throwable {\n /**\n * Looks like other fetch jobs has been added after me.\n * No reason to keep fetching many times.\n * Cancel me, let the other one fetch data.\n */\n if(id != jobCounter.get()) {\n return;\n }\n\n /**\n * Handle all networking using Retrofit library here.\n */\n RestAdapter adapter = new RestAdapter.Builder().setServer(Rest.SERVER).build();\n Rest rest = adapter.create(Rest.class);\n\n /**\n * Fetch data.\n */\n\n Rest.APIAuthList data = null;\n\n String registrationId = null;\n try {\n GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(this.context);\n registrationId = gcm.register(GCMConfig.SENDER_ID);\n\n Log.d(\"AUTH\", registrationId);\n } catch(IOException e) {\n Log.d(\"Exception\", e.getMessage());\n e.printStackTrace();\n }\n\n\n try {\n data = rest.auth(this.username, this.password, registrationId);\n Log.d(\"AUTH\", this.username + \" \" + this.password + \"\\n\" + registrationId);\n } catch(RetrofitError e) {\n Response response = e.getResponse();\n\n if(response != null && response.getStatus() == 401) {\n Log.d(\"AUTH\", \"401: Unauthorized.\");\n }\n\n EventBus.getDefault().post(new EventUnauthorized());\n throw new Throwable(\"401\");\n }\n\n /**\n * Tags:\n */\n if(data.tags != null) {\n if(!(data.tags.isEmpty())) {\n for(Tag tag : data.tags) {\n Log.d(\"JOBS\", tag.id + \" - \" + tag.title);\n Repository.getInstance().createTag(tag);\n }\n }\n }\n\n /**\n * Contacts:\n */\n if(data.contacts != null) {\n if(!(data.contacts.isEmpty())) {\n for(Contact contact : data.contacts) {\n Log.d(\"JOBS\", contact.email + \" - \" + contact.username);\n Repository.getInstance().createContact(contact);\n }\n }\n }\n\n /**\n * Books:\n */\n if(data.books != null) {\n if(!(data.books.isEmpty())) {\n for(Book book : data.books) {\n Log.d(\"JOBS\", book.id + \" - \" + book.title);\n Repository.getInstance().createBook(book);\n }\n }\n }\n\n /**\n * Modules:\n */\n if(data.modules != null) {\n if(!(data.modules.isEmpty())) {\n for(Module module : data.modules) {\n Log.d(\"JOBS\", module.id + \" - \" + module.title);\n Repository.getInstance().createModule(module);\n }\n }\n }\n\n /**\n * Announcements:\n */\n if(data.announcements != null) {\n if(!(data.announcements.isEmpty())) {\n for(Announcement announcement : data.announcements) {\n Log.d(\"JOBS\", announcement.timestamp + \" - \" + announcement.title);\n Repository.getInstance().createAnnouncement(announcement);\n }\n }\n }\n\n /**\n * Appointments:\n */\n if(data.appointments != null) {\n if(!(data.appointments.isEmpty())) {\n for(Appointment appointment : data.appointments) {\n Log.d(\"JOBS\", appointment.timestamp + \" - \" + appointment.title);\n Repository.getInstance().createAppointment(appointment);\n }\n }\n }\n\n /**\n * EventBus: Fetched all data.\n */\n EventBus.getDefault().post(new Authenticated(data.auth));\n\n\n\n Log.d(\"Job\", \"Do all this onRun() stuff using Retrofit.\");\n }", "@SuppressWarnings(\"unchecked\")\n void initExisting() throws IOException {\n LOG.info(\"Initializing Existing Jobs...\");\n List<FileStatus> timestampedDirList = findTimestampedDirectories();\n Collections.sort(timestampedDirList);\n for (FileStatus fs : timestampedDirList) {\n // TODO Could verify the correct format for these directories.\n addDirectoryToSerialNumberIndex(fs.getPath());\n addDirectoryToJobListCache(fs.getPath());\n }\n }", "public CreateUserCommand() {\n userReceiver = new UserReceiver();\n roleReceiver = new RoleReceiver();\n next = new GetRolesCommand();\n result = new CommandResult();\n }", "protected void beforeJobExecution() {\n\t}", "public void init() {\n Set<JobNotification> existing = projectBean.getJobConfiguration().getNotifications();\n this.notifications = new ArrayList<JobNotification>();\n if (existing != null) {\n for (JobNotification n : existing) {\n n.initTransient();\n notifications.add(n);\n }\n }\n }", "private void initLogin() {\n try {\n initValidation();\n initRepository();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Before\n public void init() {\n this.queue.push(\"work1\");\n this.queue.push(\"work2\");\n this.queue.push(\"work3\");\n this.queue.push(\"work4\");\n this.it = queue.iterator();\n }", "public Job() {\r\n\t\tSystem.out.println(\"Constructor\");\r\n\t}", "private void initializeRepositories() throws IOException {\n String user = ACMConfiguration.getInstance().getUserName();\n LOG.info(String.format(\n \" Home directory: %s\\n\" +\n \" Content repository: %s\\n\" +\n \" Temp Database: %s\\n\" +\n \" Temp Repository (sandbox mode): %s\\n\" +\n \" user: %s\\n\" +\n \" UserRWAccess: %s\\n\" +\n \" online: %s\\n\",\n getProgramHomeDir(),\n getProgramContentDir(),\n getLocalTempDbDir(),\n pathsProvider.getSandboxDir(),\n user,\n Authenticator.getInstance().hasUpdatingRole(),\n AccessControl.isOnline()));\n\n repository = AudioItemRepositoryImpl.buildAudioItemRepository(this);\n }", "@Override\r\n public void start(OpProjectSession session) {\n OpBroker broker = session.newBroker();\r\n try {\r\n if (session.administrator(broker) == null) {\r\n OpUserService.createAdministrator(broker);\r\n }\r\n if (session.everyone(broker) == null) {\r\n OpUserService.createEveryone(broker);\r\n }\r\n\r\n //register system objects with Backup manager\r\n OpBackupManager.addSystemObjectIDQuery(OpUser.ADMINISTRATOR_NAME, OpUser.ADMINISTRATOR_ID_QUERY);\r\n OpBackupManager.addSystemObjectIDQuery(OpGroup.EVERYONE_NAME, OpGroup.EVERYONE_ID_QUERY);\r\n }\r\n finally {\r\n broker.closeAndEvict();\r\n }\r\n }", "private static void initUsers() {\n\t\tusers = new ArrayList<User>();\n\n\t\tusers.add(new User(\"Majo\", \"abc\", true));\n\t\tusers.add(new User(\"Alvaro\", \"def\", false));\n\t\tusers.add(new User(\"Luis\", \"ghi\", true));\n\t\tusers.add(new User(\"David\", \"jkl\", false));\n\t\tusers.add(new User(\"Juan\", \"mno\", true));\n\t\tusers.add(new User(\"Javi\", \"pqr\", false));\n\t}", "public UserRepo()\n {\n }", "public void initUsers() {\n User user1 = new User(\"Alicja\", \"Grzyb\", \"111111\", \"grzyb\");\n User user2 = new User(\"Krzysztof\", \"Kowalski\", \"222222\", \"kowalski\");\n User user3 = new User(\"Karolina\", \"Nowak\", \"333333\", \"nowak\");\n User user4 = new User(\"Zbigniew\", \"Stonoga \", \"444444\", \"stonoga\");\n User user5 = new User(\"Olek\", \"Michnik\", \"555555\", \"michnik\");\n users.add(user1);\n users.add(user2);\n users.add(user3);\n users.add(user4);\n users.add(user5);\n }", "public schedulerJob() {\n }", "private void initializeUserControllers() {\n trUpdateUserImage = UserControllersFactory.createTrUpdateUserImage();\n trDeleteUser = UserControllersFactory.createTrDeleteUser();\n trObtainUser = UserControllersFactory.createTrObtainUser();\n trChangePassword = UserControllersFactory.createTrChangePassword();\n trChangeMail = UserControllersFactory.createTrChangeMail();\n trChangeUsername = UserControllersFactory.createTrChangeUsername();\n trExistsUsername = UserControllersFactory.createTrExistsUsername();\n trObtainUserImage = UserControllersFactory.createTrObtainUserImage();\n trSendFirebaseMessagingToken = UserControllersFactory.createTrSendFirebaseMessagingToken();\n }", "@Bean\n public SimpleJobLauncher jobLauncher(JobRepository jobRepository) {\n SimpleJobLauncher launcher = new SimpleJobLauncher();\n launcher.setJobRepository(jobRepository);\n return launcher;\n }", "public CronJobTrigger() {\n init();\n }", "public UserDirectory() {\n\t\tusers = new LinkedAbstractList<User>(100);\n\t}", "public JobBean() {\n }", "@EventListener(classes = ApplicationReadyEvent.class)\n\tpublic void startAllAddedJobs() {\n\n\t\tList<SchedulerJobEntity> allSchedulerJobs = schedulerRepository.findAll();\n\n\t\tallSchedulerJobs.forEach(sje -> {\n\t\t\ttry {\n\t\t\t\tthis.addJob(sje);\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog.error(\"Could not restart already registered job: \" + sje.toString() + \" ERROR: \" + e);\n\t\t\t}\n\t\t});\n\t}", "public UpdateUserProcessor() {\n\t\n\t}", "public WorkStatusJPanel(JPanel userProcessContainer, UserAccount account,\n Organization organization, Enterprise enterprise, Employee employee) {\n initComponents();\n\n this.userProcessContainer = userProcessContainer;\n this.organization = organization;\n this.enterprise = enterprise;\n this.userAccount = account;\n this.employee = employee;\n\n populateRequestTable();\n }", "private void initData() throws Exception {\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n createOrganizationRoles(dm);\n createPaymentTypes(dm);\n createUserRoles(dm);\n supplier = Organizations.createOrganization(dm,\n OrganizationRoleType.SUPPLIER);\n UserGroup defaultGroupSup = new UserGroup();\n defaultGroupSup.setOrganization(supplier);\n defaultGroupSup.setIsDefault(true);\n defaultGroupSup.setName(\"default\");\n dm.persist(defaultGroupSup);\n technologyProvider = Organizations.createOrganization(dm,\n OrganizationRoleType.TECHNOLOGY_PROVIDER);\n UserGroup defaultGroupTP = new UserGroup();\n defaultGroupTP.setOrganization(technologyProvider);\n defaultGroupTP.setIsDefault(true);\n defaultGroupTP.setName(\"default\");\n dm.persist(defaultGroupTP);\n tpAndSup = Organizations.createOrganization(dm,\n OrganizationRoleType.TECHNOLOGY_PROVIDER,\n OrganizationRoleType.SUPPLIER);\n supplierAdminUser = Organizations.createUserForOrg(dm, supplier,\n true, \"admin\");\n supplier2 = Organizations.createOrganization(dm,\n OrganizationRoleType.SUPPLIER);\n UserGroup defaultGroup = new UserGroup();\n defaultGroup.setOrganization(supplier2);\n defaultGroup.setIsDefault(true);\n defaultGroup.setName(\"default\");\n dm.persist(defaultGroup);\n UserGroup defaultGroupTpAndSp = new UserGroup();\n defaultGroupTpAndSp.setOrganization(tpAndSup);\n defaultGroupTpAndSp.setIsDefault(true);\n defaultGroupTpAndSp.setName(\"default\");\n dm.persist(defaultGroupTpAndSp);\n Organizations.createUserForOrg(dm, supplier2, true, \"admin\");\n customer = Organizations.createCustomer(dm, supplier);\n UserGroup defaultGroup1 = new UserGroup();\n defaultGroup1.setOrganization(customer);\n defaultGroup1.setIsDefault(true);\n defaultGroup1.setName(\"default\");\n dm.persist(defaultGroup1);\n customer2 = Organizations.createCustomer(dm, supplier2);\n customerUser = Organizations.createUserForOrg(dm, customer,\n true, \"admin\");\n OrganizationReference onBehalf = new OrganizationReference(\n supplier, customer,\n OrganizationReferenceType.ON_BEHALF_ACTING);\n dm.persist(onBehalf);\n onBehalf = new OrganizationReference(supplier, supplier2,\n OrganizationReferenceType.ON_BEHALF_ACTING);\n dm.persist(onBehalf);\n onBehalf = new OrganizationReference(supplier,\n technologyProvider,\n OrganizationReferenceType.ON_BEHALF_ACTING);\n dm.persist(onBehalf);\n onBehalf = new OrganizationReference(supplier, tpAndSup,\n OrganizationReferenceType.ON_BEHALF_ACTING);\n dm.persist(onBehalf);\n return null;\n }\n });\n }", "public New_Consultancy_job_JPanel(JPanel userProcessContainer,UserAccount useraccount,Enterprise enterprise,EcoSystem business) {\n initComponents();\n this.userProcessContainer = userProcessContainer;\n this.enterprise=enterprise;\n this.business = business;\n this.userAccount = useraccount;\n populateNetwork();\n }", "public ImportRepositoryFromFileJob(String fileName) {\r\n\t\tsuper(JOB_ID + fileName);\r\n\t\tthis.fileName = fileName;\r\n\t\tthis.setPriority(Job.INTERACTIVE);\r\n\t\tthis.setUser(true);\r\n\t\tthis.setRule(new BatchSimilarRule(Maven2Jobs.MAVEN2_REFRESH_JOB_FAMILY));\r\n\t}", "@RequestMapping(method = RequestMethod.POST, value = \"/startRepo\")\n public String initializeRepo(@RequestBody CreateRepoRequestTemplate createRepoRequestTemplate) throws ResourceNotFoundException, BadRequestException {\n return gitLabService.initializeRepo(createRepoRequestTemplate);\n }", "public BNHaystackLearnStructureJob() {}", "public void scheduleJobs();", "protected void setupJob(JobData jobData) throws IOException {\n ManifestCommitter committer = jobData.committer;\n JobContext jContext = jobData.jContext;\n TaskAttemptContext tContext = jobData.tContext;\n describe(\"\\nsetup job\");\n try (DurationInfo d = new DurationInfo(LOG,\n \"setup job %s\", jContext.getJobID())) {\n committer.setupJob(jContext);\n }\n setupCommitter(committer, tContext);\n describe(\"setup complete\");\n }", "private void initialize() throws IOException {\n\n\t\tlog.info(\"Known Repositories:\");\n\t\tString[] names = getRepositoryNames(rootDirFile);\n\t\tfor (String name : names) {\n\t\t\tlog.info(\" \" + name);\n\t\t}\n\t\tif (names.length == 0) {\n\t\t\tlog.info(\" <none>\");\n\t\t}\n\t\tfor (String name : names) {\n\t\t\tFile f = new File(rootDirFile, NamingUtilities.mangle(name));\n\t\t\tif (!f.isDirectory()) {\n\t\t\t\tlog.error(\"Error while processing repository \" + name +\n\t\t\t\t\t\", directory not found: \" + f);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!f.canWrite()) {\n\t\t\t\tthrow new IOException(f.getAbsolutePath() + \" can not be written to\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tRepository rep = new Repository(this, null, f, name);\n\t\t\t\trepositoryMap.put(name, rep);\n\t\t\t}\n\t\t\tcatch (UserAccessException e) {\n\t\t\t\t// ignore\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tlog.error(\"Error while processing repository \" + name + \", \" + e.getMessage());\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\t// Start command queue watcher\n\t\tcommandWatcher = new CommandWatcher(this);\n\t\tThread t = new Thread(commandWatcher, \"Server Command Watcher\");\n\t\tt.start();\n\n\t\tprocessCommandQueue(); // process any old commands\n\t}", "public static void populateUsers() throws Exception {\n FrameworkUtil.setKeyStoreProperties();\n if (executionEnvironment.equals(Platforms.product.name())) {\n productGroupName = InitialContextPublisher.getContext().getPlatformContext().\n getFirstProductGroup().getGroupName();\n List<Instance> instanceList = InitialContextPublisher.getContext().getPlatformContext().\n getFirstProductGroup().getAllStandaloneInstances();\n for (Instance instance : instanceList) {\n instanceName = instance.getName();\n sessionCookie = InitialContextPublisher.\n getAdminUserSessionCookie(productGroupName, instanceName);\n backendURL = InitialContextPublisher.\n getSuperTenantEnvironmentContext(productGroupName, instanceName).\n getEnvironmentConfigurations().getBackEndUrl();\n userPopulator = new UserPopulator(sessionCookie, backendURL, multiTenantEnabled);\n log.info(\"Populating users for \" + productGroupName + \" product group: \" +\n instanceName + \" instance\");\n userPopulator.populateUsers(productGroupName, instanceName);\n }\n }\n //here we go through every product group and populate users for those\n else if (executionEnvironment.equals(Platforms.platform.name())) {\n List<ProductGroup> productGroupList = InitialContextPublisher.getContext().\n getPlatformContext().getAllProductGroups();\n for (ProductGroup productGroup : productGroupList) {\n productGroupName = productGroup.getGroupName();\n if (! productGroup.isClusteringEnabled()) {\n instanceName = productGroup.getAllStandaloneInstances().get(0).getName();\n } else {\n if (productGroup.getAllLBWorkerManagerInstances().size() > 0) {\n LBWorkerManagerInstance lbWorkerManagerInstance = productGroup.\n getAllLBWorkerManagerInstances().get(0);\n lbWorkerManagerInstance.setHost(lbWorkerManagerInstance.getManagerHost());\n instanceName = lbWorkerManagerInstance.getName();\n } else if (productGroup.getAllLBManagerInstances().size() > 0) {\n instanceName = productGroup.getAllLBManagerInstances().get(0).getName();\n } else if (productGroup.getAllManagerInstances().size() > 0) {\n instanceName = productGroup.getAllManagerInstances().get(0).getName();\n }\n }\n sessionCookie = InitialContextPublisher.\n getAdminUserSessionCookie(productGroupName, instanceName);\n backendURL = InitialContextPublisher.\n getSuperTenantEnvironmentContext(productGroupName, instanceName).\n getEnvironmentConfigurations().getBackEndUrl();\n userPopulator = new UserPopulator(sessionCookie, backendURL, multiTenantEnabled);\n log.info(\"Populating users for \" + productGroupName + \" product group: \" +\n instanceName + \" instance\");\n userPopulator.populateUsers(productGroupName, instanceName);\n }\n }\n }", "static void init() {\n\t\tuserDatabase = new HashMap<String, User>();\n\t}", "public UserAuthenticationDAOImpl() {\n\t\tinitUsers();\n\t}", "public void run() {\n User user = userFactory.create();\n queue.add(user);\n }", "JobClient createJobClient();", "public LabConstructUserServiceImpl() {\n\t}", "protected void init() {\n setUUIDString();\n setNoteCreatedAt();\n setNoteUpdatedAt();\n setCreator(ParseUser.getCurrentUser());\n addAuthor(ParseUser.getCurrentUser());\n setACL(new ParseACL(ParseUser.getCurrentUser()));\n }", "public UserManager() {\n\n this.userStore = new UserSet();\n this.communityStore = new CommunitySet();\n\n }", "public UserServiceImpl() {\n\t\trepository = new UserRepositoryImpl();\n\t}", "@Override\r\n\tpublic void processWorkload() {\n this.spawnUser(periods.get(0).getPeriodStartTimePoint());\t\r\n\t}", "public NewUsers() {\n initComponents();\n currentTimeDate();\n }", "void initiateLogin() {\n\t\tString username = this.mAuthUsername.getText().toString();\n\t\tString password = this.mAuthPassword.getText().toString();\n\t\t\n\t\tfetch();\n\t\tthis.mAuthTask = new AuthenticationTask(this, this, username, password);\n\t\tthis.mAuthTask.execute();\n\t}", "public void setupUser() {\n }", "@Override\r\n\tpublic void initData() {\n\t\tThreadUtils.getSinglePool().execute(new Runnable() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(2000);\r\n\t\t\t\t\tIntent intent =null;\r\n\t\t\t\t\tChainApplication application = (ChainApplication) getApplicationContext();\r\n\t\t\t\t\tUser user = application.getUserInfo();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(StringUtils.isEmpty(user.getUser_Name()) && StringUtils.isEmpty(HttpManager.getInstance().getToken(HttpManager.KEY_TOKEN))){\r\n\t\t\t\t\t\tintent = new Intent(getActivity(),LoginActivity.class);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tintent = new Intent(getActivity(), MainActivity.class);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@PostConstruct\n\tprivate void InitGroups() {\n\t\tList<Group> groups = identityService.createGroupQuery().groupIdIn(\"READER\", \"BETAREADER\").list();\n\n\t\tif (groups.isEmpty()) {\n\n\t\t\tGroup reader = identityService.newGroup(\"READER\");\n\t\t\tidentityService.saveGroup(reader);\n\n\t\t\tGroup betaReader = identityService.newGroup(\"BETAREADER\");\n\t\t\tidentityService.saveGroup(betaReader);\n\t\t}\n\n\t\tRoles newRole1 = new Roles(\"READER\");\n\t\troleRepository.save(newRole1);\n\t\tRoles newRole2 = new Roles(\"BETAREADER\");\n\t\troleRepository.save(newRole2);\n\t\tRoles newRole3 = new Roles(\"WRITER\");\n\t\troleRepository.save(newRole3);\n\t\tRoles newRole4 = new Roles(\"COMMISSION\");\n\t\troleRepository.save(newRole4);\n\n\t\tBCryptPasswordEncoder encoder = new BCryptPasswordEncoder();\n\n\t\tList<Roles> roles = new ArrayList<Roles>();\n\t\troles.add(newRole4);\n\n\t\tcom.example.app.models.User user1 = new com.example.app.models.User(\"Dejan\", \"Jovanovic\", \"dejan\",\n\t\t\t\tencoder.encode(\"123\").toString(), false, true, roles, \"novica.nikolioc@gmail.com\", \"as2d1as4d5a6s4da6\");\n\t\tuserRepository.save(user1);\n\n\t\tcom.example.app.models.User user2 = new com.example.app.models.User(\"Jovan\", \"Popovic\", \"jovan\",\n\t\t\t\tencoder.encode(\"123\").toString(), false, true, roles, \"nole994ns2@gmail.com\", \"as2d1as4d5a6s4da6\");\n\t\tuserRepository.save(user2);\n\t}", "private void initialize() throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\tuserCatalog = CatalogoUsuarios.getInstance();\n\t\tcontactDAO = AdaptadorContacto.getInstance();\n\t\tmessageDAO = AdaptadorMensajes.getInstance();\n\t}", "@Override\n public void run(String... args) throws Exception {\n if (userRepository.count() == 0) {\n User admin = this.userRepository.save(\n createBasicUser(\"admin\", \"Admin\", \"Administrator\"));\n this.createWelcomeNotification(admin);\n\n User user = this.userRepository.save(\n createBasicUser(\"user\", \"Peter\", \"Parker\"));\n this.createWelcomeNotification(user);\n }\n }", "@Bean\n JobLauncher jobLauncher(JobRepository jobRepository, TaskExecutor taskExecutor) {\n SimpleJobLauncher jobLauncher = new SimpleJobLauncher();\n jobLauncher.setJobRepository(jobRepository);\n //jobLauncher.setTaskExecutor(taskExecutor);\n return jobLauncher;\n }", "public void initialize(User user, Lab lab){\r\n if (this.currentStatusChange != null) {\r\n throw new IllegalStateException(\"Cannot re-initialize a Purchase Order\");\r\n }\r\n assert (lab != null) : \"This method requires Not Null lab\";\r\n\r\n //initialize the mandatory instance attribute\r\n this.lab = lab;\r\n this.orderByUser = user;\r\n\r\n this.currentStatusChange= PoStatusCode.PROPOSED;\r\n this.openDate = new Date();\r\n this.currentStatusChangeDate = openDate;\r\n }", "DatabaseClient newJobDbClient();", "private void initParameters() {\n jobParameters.setSessionSource(getSession(\"source\"));\n jobParameters.setSessionTarget(getSession(\"target\"));\n jobParameters.setAccessDetailsSource(getAccessDetails(\"source\"));\n jobParameters.setAccessDetailsTarget(getAccessDetails(\"target\"));\n jobParameters.setPageSize(Integer.parseInt(MigrationProperties.get(MigrationProperties.PROP_SOURCE_PAGE_SIZE)));\n jobParameters.setQuery(MigrationProperties.get(MigrationProperties.PROP_SOURCE_QUERY));\n jobParameters.setItemList(getFolderStructureItemList());\n jobParameters.setPropertyFilter(getPropertyFilter());\n jobParameters.setReplaceStringInDestinationPath(getReplaceStringArray());\n jobParameters.setNamespacePrefixMap(getNamespacePrefixList());\n jobParameters.setBatchId(getBatchId());\n jobParameters.getStopWatchTotal().start();\n jobParameters.setSuccessAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_ACTION));\n jobParameters.setErrorAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_ACTION));\n jobParameters.setSuccessFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setErrorFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setCurrentFolder(getRootFolder());\n jobParameters.setSkipDocuments(Boolean.valueOf(MigrationProperties.get(MigrationProperties.PROP_MIGRATION_COPY_FOLDERS_ONLY)));\n \n }", "@Override\n public void startUpOperations() {\n }", "public void initRequest() {\n repo.getData();\n }", "@BeforeMethod\r\n public void backendJobListing() {\n driver = new FirefoxDriver();\r\n \r\n //Open browser\r\n driver.get(\"https://alchemy.hguy.co/jobs/wp-admin\");\r\n \r\n }", "@Override\n public void run(ApplicationArguments args){\n User user1 = new User(\"Accounts Payable\");\n userRepository.save(user1);\n\n User user2 = new User(\"Admin\");\n userRepository.save(user2);\n\n Folder folder1 = new Folder(\"Accounts\", user1);\n folderRepository.save(folder1);\n\n Folder folder2 = new Folder(\"Letters\", user2);\n folderRepository.save(folder2);\n\n File file1 = new File(\"Invoice001\", \".exe\", 1.23, folder1);\n fileRepository.save(file1);\n\n File file2 = new File(\"Invoice002\", \".exe\", 1.45, folder1 );\n fileRepository.save(file2);\n\n File file3 = new File(\"Letter001\", \".doc\", 1.67, folder2);\n fileRepository.save(file3);\n\n\n }", "public void start() {\n \t\tLog.info(\"Starting service of repository requests\");\n \t\ttry {\n \t\t\tresetNameSpace();\n \t\t} catch (Exception e) {\n \t\t\tLog.logStackTrace(Level.WARNING, e);\n \t\t\te.printStackTrace();\n \t\t}\n \t\t\n \t\tbyte[][]markerOmissions = new byte[2][];\n \t\tmarkerOmissions[0] = CommandMarkers.COMMAND_MARKER_REPO_START_WRITE;\n \t\tmarkerOmissions[1] = CommandMarkers.COMMAND_MARKER_BASIC_ENUMERATION;\n \t\t_markerFilter = new Exclude(markerOmissions);\n \t\t\n \t\t_periodicTimer = new Timer(true);\n \t\t_periodicTimer.scheduleAtFixedRate(new InterestTimer(), PERIOD, PERIOD);\n \n \t}", "public void initPrimaryContainer() {\n for (IMixinPlatformAgent agent : this.agents) {\n MixinContainer.logger.debug(\"Processing launch tasks for {}\", agent);\n agent.initPrimaryContainer();\n }\n }", "private void initThings() {\n\t\tmyApp = (MyApp) getApplicationContext();\n\t\tnextIntent = new Intent(this, AnimActivity2.class);\n\t\t// nextIntent = new Intent(this, SelectEventActivity.class);\n\t\tnextIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\n\t\t\t\t| Intent.FLAG_ACTIVITY_CLEAR_TASK);\n\t\tuserDAO = new UserDAO(this);\n\t\tdialog = new CreateDialog(this);\n\t\tprogressDialog = dialog.createProgressDialog(null, \"Logging In\", false,\n\t\t\t\tnull, false);\n\t\ttypeface = myApp.getTypefaceRegular();\n\n\t\t// <<<<<<< HEAD\n\t\t//\n\t\t// GsonBuilder builder = new GsonBuilder();\n\t\t// gson = builder.create();\n\t\t//\n\t\t// queue = Volley.newRequestQueue(this);\n\t\t// =======\n\t\t// >>>>>>> parent of 48afbfc... setup android again\n\t}", "public sear() {\n initComponents();\n findUsers();\n }", "public void initialize() {\n\n getStartUp();\n }" ]
[ "0.6683503", "0.65143865", "0.5851294", "0.5782816", "0.5774481", "0.5689888", "0.56820214", "0.56463367", "0.5594466", "0.557396", "0.55696535", "0.54565674", "0.54450935", "0.54117763", "0.540182", "0.5385879", "0.53773534", "0.5370857", "0.53651536", "0.53556144", "0.5344771", "0.534317", "0.5342716", "0.5303479", "0.5301164", "0.52941525", "0.52821225", "0.52788496", "0.52757233", "0.5271057", "0.52394587", "0.52318615", "0.52318615", "0.52236086", "0.5222229", "0.52169603", "0.52148235", "0.5202066", "0.51974636", "0.5182298", "0.517358", "0.5170534", "0.5156929", "0.51556027", "0.5143833", "0.51295686", "0.5128169", "0.51255715", "0.5116861", "0.5116538", "0.51161474", "0.5095831", "0.5089783", "0.5084006", "0.5074767", "0.5072565", "0.50709426", "0.50596744", "0.50514436", "0.5042587", "0.5029759", "0.5027285", "0.50172544", "0.50045925", "0.50034714", "0.49963257", "0.49941185", "0.49870726", "0.4986106", "0.49834183", "0.49725798", "0.49667874", "0.4964492", "0.49544922", "0.49472183", "0.49437147", "0.49393213", "0.49376005", "0.49337637", "0.49307328", "0.49246016", "0.49214017", "0.49155658", "0.49116617", "0.4905723", "0.4905265", "0.48983875", "0.4897484", "0.48946482", "0.48860663", "0.48838416", "0.48837468", "0.486851", "0.48673457", "0.4857751", "0.4850774", "0.48476788", "0.48406065", "0.48386905", "0.48292065", "0.4825823" ]
0.0
-1
Initiate user logs repository.
public String getUserLogsRepositoryPath(String username) { String userRepoPath = userRepositoryPath( username ); try { CloudRepository.createDir(userRepoPath, LOG_REPOSITORY_DIR); return userRepoPath + LOG_REPOSITORY_DIR + SEPARATOR; } catch (KettleException e) { logger.error("日志路径创建失败.",e); return userRepoPath; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init() {\n LoggerContext ctx = (LoggerContext) LogManager.getContext(false);\n Configuration config = ctx.getConfiguration();\n LoggerConfig loggerConfig = config.getLoggerConfig(LogManager.ROOT_LOGGER_NAME);\n loggerConfig.setLevel(DEBUG ? Level.DEBUG : Level.INFO);\n ctx.updateLoggers();\n\n // Check if Maven repo exists\n File f = new File(globalConfig.getMavenRepoPath());\n if (!f.exists()) {\n // If not then create\n f.mkdir();\n }\n }", "abstract void initiateLog();", "private void logUser() {\n }", "private void initUser() {\n\t}", "void initializeLogging();", "public static synchronized void initializeLogger() {\n\t\t\n\t try {\n\t\t String workingDir = System.getProperty(\"user.dir\");\n\t\t String fileName = workingDir + File.separator + \"config\" + File.separator + \"logging.properties\";\n\t\t \n\t\t FileInputStream fileInputStream = new FileInputStream(fileName);\n\t\t LogManager.getLogManager().readConfiguration(fileInputStream);\n\t\t \n\t } catch (IOException ex) {\n\t\t System.err.println(\"Failed to load logging.properlies, please check the file and the path:\" + ex.getMessage()); \n\t ex.printStackTrace();\n\t System.exit(0);\n\t }\n\t}", "private void initLoggers() {\n _logger = LoggerFactory.getInstance().createLogger();\n _build_logger = LoggerFactory.getInstance().createAntLogger();\n }", "private void initLogin() {\n try {\n initValidation();\n initRepository();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void initLogger() {\n\t\t\n\t}", "private void initLog() {\n _logsList = (ListView) findViewById(R.id.lv_log);\n setupLogger();\n }", "static void init() {\n\t\tuserDatabase = new HashMap<String, User>();\n\t}", "private void initLogger() {\n\t\ttry {\n\t\t\tjava.util.logging.Logger rootLogger = java.util.logging.Logger.getLogger(\"\");\n\t\t\trootLogger.setUseParentHandlers(false);\n\t\t\tHandler csvFileHandler = new FileHandler(\"logger/log.csv\", 100000, 1, true);\n\t\t\tlogformater = new LogFormatter();\n\t\t\trootLogger.addHandler(csvFileHandler);\n\t\t\tcsvFileHandler.setFormatter(logformater);\n\t\t\tlogger.setLevel(Level.ALL);\n\t\t} catch (IOException ie) {\n\t\t\tSystem.out.println(\"Logger initialization failed\");\n\t\t\tie.printStackTrace();\n\t\t}\n\t}", "private void init() {\r\n this.log = this.getLog(LOGGER_MAIN);\r\n\r\n if (!(this.log instanceof org.apache.commons.logging.impl.Log4JLogger)) {\r\n throw new IllegalStateException(\r\n \"LogUtil : apache Log4J library or log4j.xml file are not present in classpath !\");\r\n }\r\n\r\n // TODO : check if logger has an appender (use parent hierarchy if needed)\r\n if (this.log.isWarnEnabled()) {\r\n this.log.warn(\"LogUtil : logging enabled now.\");\r\n }\r\n\r\n this.logBase = this.getLog(LOGGER_BASE);\r\n this.logDev = this.getLog(LOGGER_DEV);\r\n }", "@PostConstruct\n public void initUsers() {\n List<MyUser> users = Stream.of(\n new MyUser(\"1\",\"Vaibhav\",\"Vaibhav\"),\n new MyUser(\"2\",\"Abhishek\",\"Abhishek\"),\n new MyUser(\"3\",\"admin\",\"admin\")\n ).collect(Collectors.toList());\n repository.saveAll(users);\n }", "public void setUserLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n userLog.add(new UserLog(rs.getInt(\"userID\"),\n rs.getInt(2),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@PostConstruct\r\n public void init() {\n this.logs = this.logDAO.findAllExamCaseLog();\r\n }", "public ServerLogger(ExtendedTS3Api api) {\r\n\t\tthis.api = api;\r\n\t\tArrayList<Client> allClientsWhileStartingtoLogg = new ArrayList<Client>();\r\n\t\tallClientsWhileStartingtoLogg = (ArrayList<Client>) api.getClients();\r\n\t\tint numberOfPeopleOnTheServer = allClientsWhileStartingtoLogg.size();\r\n\t\t\r\n\t\tfor (int i = 0; i < allClientsWhileStartingtoLogg.size(); i++) {\r\n\t\t\tUserLoggedInEntity userAlreadyOnline = new UserLoggedInEntity();\r\n\r\n\t\t\tuserAlreadyOnline.setId(allClientsWhileStartingtoLogg.get(i).getId());\r\n\t\t\tuserAlreadyOnline.setNickname(allClientsWhileStartingtoLogg.get(i).getNickname());\r\n\t\t\tuserAlreadyOnline.setuId(allClientsWhileStartingtoLogg.get(i).getUniqueIdentifier());\r\n\t\t\tuserAlreadyOnline.logUser(LoggedServerEvents.STARTED_LOG, numberOfPeopleOnTheServer);\r\n\t\t\tuserAlreadyOnline.setTimeUserJoinedTheServer(LocalDateTime.now());\r\n\r\n\t\t\tusersLoggedIn.add(userAlreadyOnline);\r\n\t\t}\r\n\t}", "public void initDatabase() {\n Datastore mongoDataStore = DatabaseHandler.getInstance().getMongoDataStore();\n initUsers();\n initAccounts();\n mongoDataStore.save(users);\n }", "public void initialize() {\n\n // DO NOT DELETE\n if (userRoleRepository.count() == 0) {\n userRoleRepository.saveAll(List.of(\n userRoleFactory.of(ROLE_USER.name()),\n userRoleFactory.of(ROLE_ADMIN.name())\n ));\n }\n\n // DO NOT DELETE\n if (userRepository.count() == 0) {\n userRepository.saveAll(List.of(\n userFactory.ofSecurity(\n List.of(retrieveAdminRole(), retrieveUserRole()),\n \"lens.huygh@gmail.com\",\n new BCryptPasswordEncoder().encode(\"Lens\"),\n \"Lens Huygh\"),\n userFactory.ofSecurity(\n List.of(retrieveAdminRole(), retrieveUserRole()),\n \"thomasf0n7a1n3@gmail.com\",\n new BCryptPasswordEncoder().encode(\"Thomas\"),\n \"Thomas Fontaine\"),\n userFactory.ofSecurity(\n List.of(retrieveAdminRole(), retrieveUserRole()),\n \"paul.gerarts@juvo.be\",\n new BCryptPasswordEncoder().encode(\"Paul\"),\n \"Paul Gerarts\"),\n userFactory.ofSecurity(\n List.of(retrieveUserRole()),\n \"user@email.com\",\n new BCryptPasswordEncoder().encode(\"user\"),\n \"User McUserson\"),\n userFactory.ofSecurity(\n List.of(retrieveAdminRole()),\n \"admin@email.com\",\n new BCryptPasswordEncoder().encode(\"admin\"),\n \"Admin McAdminson\"\n )\n ));\n }\n }", "public void init() {\n log.info(\"initialization\");\n }", "public MyLogs() {\n }", "private void initLoggers()\n {\n Logger.getSharedInstance();\n\n for (Logger logger : Logger.getAllLoggers())\n {\n String key = \"Loggers/\" + logger.getNamespace();\n Level desired;\n\n if (!SmartDashboard.containsKey(key))\n {\n // First time this logger has been sent to SmartDashboard\n SmartDashboard.putString(key, logger.getLogLevel().name());\n desired = Level.DEBUG;\n }\n else\n {\n String choice = SmartDashboard.getString(key, \"DEBUG\");\n Level parsed = Level.valueOf(choice);\n if (parsed == null)\n {\n m_logger.error(\"The choice '\" + choice + \"' for logger \" + logger.getNamespace() + \" isn't a valid value.\");\n desired = Level.DEBUG;\n }\n else\n {\n desired = parsed;\n }\n }\n logger.setLogLevel(desired);\n }\n }", "public UserAuthenticationDAOImpl() {\n\t\tinitUsers();\n\t}", "private static void setupLogger() {\n\t\tLogManager.getLogManager().reset();\n\t\t// set the level of logging.\n\t\tlogger.setLevel(Level.ALL);\n\t\t// Create a new Handler for console.\n\t\tConsoleHandler consHandler = new ConsoleHandler();\n\t\tconsHandler.setLevel(Level.SEVERE);\n\t\tlogger.addHandler(consHandler);\n\n\t\ttry {\n\t\t\t// Create a new Handler for file.\n\t\t\tFileHandler fHandler = new FileHandler(\"HQlogger.log\");\n\t\t\tfHandler.setFormatter(new SimpleFormatter());\n\t\t\t// set level of logging\n\t\t\tfHandler.setLevel(Level.FINEST);\n\t\t\tlogger.addHandler(fHandler);\n\t\t}catch(IOException e) {\n\t\t\tlogger.log(Level.SEVERE, \"File logger not working! \", e);\n\t\t}\n\t}", "void initializeLogging(String loggingProperties);", "private Log() {\r\n readFile(\"Save.bin\",allLogs);\r\n readFile(\"Tag.bin\", allTags);\r\n readFile(\"Password.bin\", userInfo);\r\n }", "@Override\n\tprotected void initial() throws SiDCException, Exception {\n\t\tLogAction.getInstance().initial(logger, this.getClass().getCanonicalName());\n\t}", "public static void init()\n\t{\n\t\tusername2accesses.clear();\n\t\t//--- adds info.json in ./Home/Administrator for the system admin ---//\n\t\tfinal String adminAccessPath = Hierarchies.getSectionDir() + \"/\" + Hierarchies.getInfoFileName() + \".\" + Directories.getFileExt();\n\t\tfinal File adminAccessFile = new File(adminAccessPath);\n\t\tif (!adminAccessFile.exists())\n\t\t{\n\t\t\tfinal Access[] accesses = new Access[1];\n\t\t\taccesses[0] = new Access(\"admin\", Role.ADMINISTRATOR, null);\n\t\t\tfinal HierarchyItem hierarchyItem = new HierarchyItem(null, null, null, accesses);\n\t\t\tfinal String hierarchyItemAsJson = new Gson().toJson(hierarchyItem);\n\t\t\tFileIO.writeToFile(adminAccessPath, hierarchyItemAsJson);\n\t\t}\n\t\t//--- reads all JSON files recursively in ./Home/Administrator ---//\n\t\t//--- contents of JSON files will be processed to be cached in hash map username2accesses ---//\n\t\tfinal File file = new File(Hierarchies.getSectionDir());\n\t\tfinal Collection<File> jsonFiles = FileUtils.listFiles(file, new String[]{Directories.getFileExt()}, true);\n\t\tfor (File infoFile : jsonFiles) manage(infoFile, Op.STORE);\n\t}", "public Logs() {\n initComponents();\n }", "public void initialize() {\n final ConfigurationManager config = ConfigurationManager.getInstance();\n boolean overrideLog = System.getProperty(\"azureus.overridelog\") != null;\n\n for (int i = 0; i < ignoredComponents.length; i++) {\n ignoredComponents[i] = new ArrayList();\n }\n\n if (!overrideLog) {\n config.addListener(new COConfigurationListener() {\n public void configurationSaved() {\n checkLoggingConfig();\n }\n });\n }\n\n checkLoggingConfig();\n config.addParameterListener(CFG_ENABLELOGTOFILE, new ParameterListener() {\n public void parameterChanged(String parameterName) {\n FileLogging.this.reloadLogToFileParam();\n }\n });\n }", "protected void initLogger() {\n initLogger(\"DEBUG\");\n }", "public UserDirectory() {\n\t\tusers = new LinkedAbstractList<User>(100);\n\t}", "private final void initializeCache() {\r\n try {\r\n UserIndex index = makeUserIndex(this.dbManager.getUserIndex());\r\n for (UserRef ref : index.getUserRef()) {\r\n String email = ref.getEmail();\r\n String userString = this.dbManager.getUser(email);\r\n User user = makeUser(userString);\r\n this.updateCache(user);\r\n }\r\n }\r\n catch (Exception e) {\r\n server.getLogger().warning(\"Failed to initialize users \" + StackTrace.toString(e));\r\n }\r\n }", "public void newUserDirectory() {\n\t\tusers = new LinkedAbstractList<User>(100);\n\t}", "public void init(String userID);", "public Auditor () {\n\n\t\t// Create a new log file without deleting existing logs. Use the current time. \n\t\ttry {\n\t\t\tlog = new File( \"log: \" + Double.toString( new Date().getTime()) + \".txt\" );\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "@Inject\n public UserRepositoryImpl() {\n database = FirebaseDatabase.getInstance();\n auth = FirebaseAuth.getInstance();\n }", "@Override\n public void initializeLogging() {\n // Wraps Android's native log framework.\n LogWrapper logWrapper = new LogWrapper();\n // Using Log, front-end to the logging chain, emulates android.util.log method signatures.\n Log.setLogNode(logWrapper);\n\n // Filter strips out everything except the message text.\n MessageOnlyLogFilter msgFilter = new MessageOnlyLogFilter();\n logWrapper.setNext(msgFilter);\n\n // On screen logging via a fragment with a TextView.\n //LogFragment logFragment = (LogFragment) getSupportFragmentManager()\n // .findFragmentById(R.id.log_fragment);\n //msgFilter.setNext(logFragment.getLogView());\n\n mLogFragment = (LogFragment) getSupportFragmentManager()\n .findFragmentById(R.id.log_fragment);\n msgFilter.setNext(mLogFragment.getLogView());\n\n Log.i(TAG, \"Ready\");\n }", "public UsersTracker start() throws IOException {\n LOG.debug(\"Starting table user tracker for path {}.\", mUsersDir);\n final CountDownLatch initializationLatch = new CountDownLatch(1);\n\n mCache.getListenable().addListener(\n new PathChildrenCacheListener() {\n @Override\n public void childEvent(CuratorFramework client, PathChildrenCacheEvent event)\n throws Exception {\n LOG.debug(\"Users tracker event received for path {}: {}.\", mUsersDir, event);\n switch (event.getType()) {\n case CHILD_ADDED:\n case CHILD_UPDATED:\n case CHILD_REMOVED: {\n updateRegisteredHandlers();\n break;\n }\n case INITIALIZED: {\n initializationLatch.countDown();\n updateRegisteredHandlers();\n break;\n }\n default: break; // Connection state changes are already logged at the client level.\n }\n }\n });\n\n try {\n mCache.start(StartMode.POST_INITIALIZED_EVENT);\n if (!initializationLatch.await(5, TimeUnit.SECONDS)) {\n throw new IOException(\"Unable to start ZooKeeper path cache before timeout.\");\n }\n } catch (Exception e) {\n ZooKeeperUtils.wrapAndRethrow(e);\n }\n return this;\n }", "private void initialize() throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\tuserCatalog = CatalogoUsuarios.getInstance();\n\t\tcontactDAO = AdaptadorContacto.getInstance();\n\t\tmessageDAO = AdaptadorMensajes.getInstance();\n\t}", "private static void initLogger() {\n if (initialized) {\n return;\n }\n\n initialized = true;\n\n System.out.println(\"\");\n System.out.println(\"=> Begin System Logging Configuration\");\n URL fileUrl = null;\n String filePath = null;\n\n try {\n final Region region = EnvironmentConfiguration.getRegion();\n filePath = \"log4j-\" + region.getCode() + \".xml\";\n System.out.println(\"=> searching for log configuration file : \" + filePath);\n fileUrl = LogFactory.class.getResource(\"/\" + filePath);\n DOMConfigurator.configure(fileUrl);\n System.out.println(\"=> found log configuration file : \" + fileUrl);\n System.out.println(\"=> System Logging has been initialized\");\n }\n catch (final NoClassDefFoundError ncdf) {\n System.out.println(\"=> Logging Configuration Failed\");\n System.err.println(LogFactory.class.getName()\n + \"::loadProps() - Unable to find needed classes. Logging disabled. \" + ncdf);\n }\n catch (final Exception e) {\n System.out.println(\"=> Logging Configuration Failed\");\n System.err.println(\n LogFactory.class.getName() + \"::loadProps() - Unable to initialize logger from file=\"\n + filePath + \". Logging disabled.\");\n }\n System.out.println(\"=> End System Logging Configuration\");\n System.out.println(\"\");\n }", "private Log() {\r\n\t}", "@PostConstruct\n\tprotected void initialize() throws Exception {\n\t\t// // Create sample roles\n\t\tRole roleAdmin = roleRepository.findByName(\"R_SUPER_ADMIN\");\n\t\tif (roleRepository.findByName(\"R_SUPER_ADMIN\") == null) {\n\t\t\tlogger.debug(\"Creating default admin role ...\");\n\t\t\troleAdmin = new Role(\"Super Admin\", \"R_SUPER_ADMIN\", \"This is a role for super administrator.\");\n\t\t\troleAdmin.setIsRestricted(true);\n\t\t\troleRepository.save(roleAdmin);\n\t\t}\n\t\t// // Create default users\n\t\tif (accountRepository.findByUsername(\"admin\") == null) {\n\t\t\tlogger.debug(\"Creating default admin account ...\");\n\t\t\taccountRepository.save(new Account(\"admin\", passwordEncoder.encode(\"admin\"), \"kent@rbtsb.com\", \"Kent\",\n\t\t\t\t\troleRepository.findByName(\"R_SUPER_ADMIN\"), true));\n\t\t}\n\n\t}", "void setupFileLogging();", "@Override\n\tpublic void initUserCreditHistoryDataService() throws RemoteException {\n\t\tconnect = configure.init();\n\t}", "public ETLLogDAOImpl() {\r\n this(new Configuration());\r\n }", "public UserRepo()\n {\n }", "public EmailLogger(DbUserSession user) {\n \tsuper(user);\n }", "@Override\n public void contextInitialized(ServletContextEvent sce) {\n EntityConnector.createEntityManagerFactory();\n if (!logStarted){\n logStarted=true;\n try {\n Log.startLogFile();\n } catch (IOException ex) {\n System.out.println(\"Could Not Start the Log File!\" + ex.getMessage());\n }\n Log.writeToLog(\"Server has Started!\");\n \n }\n }", "private void initialize() throws IOException {\n\n\t\tlog.info(\"Known Repositories:\");\n\t\tString[] names = getRepositoryNames(rootDirFile);\n\t\tfor (String name : names) {\n\t\t\tlog.info(\" \" + name);\n\t\t}\n\t\tif (names.length == 0) {\n\t\t\tlog.info(\" <none>\");\n\t\t}\n\t\tfor (String name : names) {\n\t\t\tFile f = new File(rootDirFile, NamingUtilities.mangle(name));\n\t\t\tif (!f.isDirectory()) {\n\t\t\t\tlog.error(\"Error while processing repository \" + name +\n\t\t\t\t\t\", directory not found: \" + f);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!f.canWrite()) {\n\t\t\t\tthrow new IOException(f.getAbsolutePath() + \" can not be written to\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tRepository rep = new Repository(this, null, f, name);\n\t\t\t\trepositoryMap.put(name, rep);\n\t\t\t}\n\t\t\tcatch (UserAccessException e) {\n\t\t\t\t// ignore\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tlog.error(\"Error while processing repository \" + name + \", \" + e.getMessage());\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\t// Start command queue watcher\n\t\tcommandWatcher = new CommandWatcher(this);\n\t\tThread t = new Thread(commandWatcher, \"Server Command Watcher\");\n\t\tt.start();\n\n\t\tprocessCommandQueue(); // process any old commands\n\t}", "public void initialize() {\n\n list.add(user1);\n list.add(user2);\n list.add(user3);\n }", "@Override\n protected void onStart() {\n super.onStart();\n initializeLogging();\n }", "public IisLogsDataSource() {\n }", "private void initObjects() {\n inputValidation = new InputValidation(activity);\n databaseHelper = new DatabaseHelper(activity);\n user = new User();\n }", "static public void setup() throws IOException {\n Logger logger = Logger.getLogger(\"\");\n\n logger.setLevel(Level.INFO);\n Calendar cal = Calendar.getInstance();\n //SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH-mm-ss\");\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String dateStr = sdf.format(cal.getTime());\n fileTxt = new FileHandler(\"log_\" + dateStr + \".txt\");\n fileHTML = new FileHandler(\"log_\" + dateStr + \".html\");\n\n // Create txt Formatter\n formatterTxt = new SimpleFormatter();\n fileTxt.setFormatter(formatterTxt);\n logger.addHandler(fileTxt);\n\n // Create HTML Formatter\n formatterHTML = new LogHTMLFormatter();\n fileHTML.setFormatter(formatterHTML);\n logger.addHandler(fileHTML);\n }", "protected void setUp() throws Exception {\r\n printStream = new PrintStream(new FileOutputStream(FILE));\r\n\r\n logFactory = new BasicLogFactory(printStream);\r\n\r\n log = (BasicLog) logFactory.createLog(NAME);\r\n }", "@Override\n public void init() {\n this.log.pri1(LoggingInterface.INIT_START, \"\");\n // Any task initialization code goes here.\n this.log.pri1(LoggingInterface.INIT_END, \"\");\n }", "public void init() {\n\t\tregisterFunctions();\n\t\t\t\t\n\t\t//Start it\n\t\tconsole.startUserConsole();\n\t}", "public void initializeRepository() throws ApplicationException;", "@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = \"RV_RETURN_VALUE_IGNORED_BAD_PRACTICE\",\n justification = \"Return value for file delete is not important here.\")\n private void initLogWriter() throws org.apache.geode.admin.AdminException {\n loggingSession.createSession(this);\n\n final LogConfig logConfig = agentConfig.createLogConfig();\n\n // LOG: create logWriterAppender here\n loggingSession.startSession();\n\n // LOG: look in AgentConfigImpl for existing LogWriter to use\n InternalLogWriter existingLogWriter = agentConfig.getInternalLogWriter();\n if (existingLogWriter != null) {\n logWriter = existingLogWriter;\n } else {\n // LOG: create LogWriterLogger\n logWriter = LogWriterFactory.createLogWriterLogger(logConfig, false);\n // Set this log writer in AgentConfigImpl\n agentConfig.setInternalLogWriter(logWriter);\n }\n\n // LOG: create logWriter here\n logWriter = LogWriterFactory.createLogWriterLogger(logConfig, false);\n\n // Set this log writer in AgentConfig\n agentConfig.setInternalLogWriter(logWriter);\n\n // LOG:CONFIG: changed next three statements from config to info\n logger.info(LogMarker.CONFIG_MARKER,\n String.format(\"Agent config property file name: %s\",\n AgentConfigImpl.retrievePropertyFile()));\n logger.info(LogMarker.CONFIG_MARKER, agentConfig.getPropertyFileDescription());\n logger.info(LogMarker.CONFIG_MARKER, agentConfig.toPropertiesAsString());\n }", "private void initLogConfig() {\n\t\t logConfigurator = new LogConfigurator();\n\t\t// Setting append log coudn't cover by a new log.\n\t\tlogConfigurator.setUseFileAppender(true);\n\t\t// Define a file path for output log.\n\t\tString filename = StorageUtils.getLogFile();\n\t\tLog.i(\"info\", filename);\n\t\t// Setting log output\n\t\tlogConfigurator.setFileName(filename);\n\t\t// Setting log's level\n\t\tlogConfigurator.setRootLevel(Level.DEBUG);\n\t\tlogConfigurator.setLevel(\"org.apache\", Level.ERROR);\n\t\tlogConfigurator.setFilePattern(\"%d %-5p [%c{2}]-[%L] %m%n\");\n\t\tlogConfigurator.setMaxFileSize(1024 * 1024 * 5);\n\t\t// Set up to use the cache first and then output to a file for a period\n\t\t// of time\n\t\tlogConfigurator.setImmediateFlush(false);\n\t\tlogConfigurator.setUseLogCatAppender(true);\n\t\t// logConfigurator.setResetConfiguration(true);\n\t\tlogConfigurator.configure();\n\t}", "private static void initDirectories() {\n String storeName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_META_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_FILEID_STORE_NAME\n + \".dat\";\n File storeFile = new File(storeName);\n if (storeFile.exists()) {\n storeFile.delete();\n }\n deleteAuthenticationStore();\n initAuthenticationStore();\n\n deleteRoleProjectViewStore();\n initRoleProjectViewStore();\n\n initProjectProperties();\n }", "public static void init() {\n\n\t\tsnapshot = new SnapshotService();\n\t\tlog.info(\"App init...\");\n\t}", "public abstract ArrayList<Log> readUserLogs(User user, int maxEntries);", "public abstract WriteResult writeUserLog(User user, Log log);", "private EventLogger initEventLogger(Review review) {\n\t\t//reduce coupling\n\t\tEventLogger eventLogger = loggerMap.get(getRating(review).toString());\n\t\tif (eventLogger==null){\n\t\t\teventLogger = loggerMap.get(DEFAULT);\n\t\t}\n\t\treturn eventLogger;\n\t}", "private void initializeRepositories() throws IOException {\n String user = ACMConfiguration.getInstance().getUserName();\n LOG.info(String.format(\n \" Home directory: %s\\n\" +\n \" Content repository: %s\\n\" +\n \" Temp Database: %s\\n\" +\n \" Temp Repository (sandbox mode): %s\\n\" +\n \" user: %s\\n\" +\n \" UserRWAccess: %s\\n\" +\n \" online: %s\\n\",\n getProgramHomeDir(),\n getProgramContentDir(),\n getLocalTempDbDir(),\n pathsProvider.getSandboxDir(),\n user,\n Authenticator.getInstance().hasUpdatingRole(),\n AccessControl.isOnline()));\n\n repository = AudioItemRepositoryImpl.buildAudioItemRepository(this);\n }", "public interface LogsService {\n /**\n * 保存日志\n *\n * @param userCustom\n * @param ipAddr\n * @param logAction\n * @param data\n * @param currentTime\n */\n void saveLogs(User userCustom, String ipAddr, String logAction, String data, long currentTime);\n\n /**\n * 获取所有日志\n *\n * @param loginUserId 用户\n * @return\n */\n List<Logs> findAll(String loginUserId, Integer limit);\n\n /**\n * 查询日志统计信息\n * @param uid\n * @return\n */\n List<CountInfoBean> findLogsInfo(String uid);\n\n /**\n * 查询分类统计信息\n * @param uid\n * @return\n */\n List<CountInfoBean> findCategoryInfo(String uid);\n}", "public UserServiceImpl() {\n\t\trepository = new UserRepositoryImpl();\n\t}", "private static void prepareLoggingSystemEnviroment() {\n\t\t// property configuration relies on this parameter\n\t\tSystem.setProperty(\"log.directory\", getLogFolder());\n\t\t//create the log directory if not yet existing:\n\t\t//removed code as log4j is now capable of doing that automatically\n\t}", "public LoginService() {\n users.put(\"johndoe\", \"John Doe\");\n users.put(\"janedoe\", \"Jane Doe\");\n users.put(\"jguru\", \"Java Guru\");\n }", "public Login() {\r\n\t\tinitialize();\r\n\t}", "public UserDAO() {\r\n\t\tsuper();\r\n\t\tthis.userStore.put(\"user\", new User(\"user\", \"user\"));\r\n\t}", "public User_Log() throws Exception {\n initComponents();\n MyConnection();\n setSize(1010,680);\n setResizable(false);\n Koureio kour =new Koureio();\n usern.setText(kour.getUserLogIn());\n FirstSecond();\n }", "@Override\n public void run(String... args) throws Exception {\n if (userRepository.count() == 0) {\n User admin = this.userRepository.save(\n createBasicUser(\"admin\", \"Admin\", \"Administrator\"));\n this.createWelcomeNotification(admin);\n\n User user = this.userRepository.save(\n createBasicUser(\"user\", \"Peter\", \"Parker\"));\n this.createWelcomeNotification(user);\n }\n }", "private void initCemsLogger() {\n if (logger == null) {\n final SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\n final Formatter formatter = new Formatter() {\n @Override\n public String format(LogRecord record) {\n final StringBuilder sb = new StringBuilder();\n sb.append(dateFormat.format(new Date(record.getMillis())));\n sb.append(\" - \");\n sb.append(record.getLevel().getName());\n sb.append(\": \");\n sb.append(record.getMessage());\n sb.append(\"\\n\");\n @SuppressWarnings(\"ThrowableResultOfMethodCallIgnored\")\n final Throwable thrown = record.getThrown();\n if (thrown != null) {\n sb.append(thrown.toString());\n sb.append(\"\\n\");\n }\n return sb.toString();\n }\n };\n\n final ConsoleHandler handler = new ConsoleHandler();\n handler.setFormatter(formatter);\n handler.setLevel(Level.ALL);\n\n logger = Logger.getLogger(\"ga.cems\");\n final Handler[] handlers = logger.getHandlers();\n for (Handler h : handlers) {\n logger.removeHandler(h);\n }\n\n logger.setUseParentHandlers(false);\n logger.addHandler(handler);\n }\n// logger.setLevel(Level.INFO);\n logger.setLevel(logLevel);\n }", "public void initialize() {\n\n getStartUp();\n }", "public NewUsers() {\n initComponents();\n currentTimeDate();\n }", "private void setupLogging() {\n\t\t// Ensure all JDK log messages are deferred until a target is registered\n\t\tLogger rootLogger = Logger.getLogger(\"\");\n\t\tHandlerUtils.wrapWithDeferredLogHandler(rootLogger, Level.SEVERE);\n\n\t\t// Set a suitable priority level on Spring Framework log messages\n\t\tLogger sfwLogger = Logger.getLogger(\"org.springframework\");\n\t\tsfwLogger.setLevel(Level.WARNING);\n\n\t\t// Set a suitable priority level on Roo log messages\n\t\t// (see ROO-539 and HandlerUtils.getLogger(Class))\n\t\tLogger rooLogger = Logger.getLogger(\"org.springframework.shell\");\n\t\trooLogger.setLevel(Level.FINE);\n\t}", "static void init(LoggerManager manager) {\n setLogDir(manager.getLogDirFullPath());\n setLogLevel(manager.getLevel());\n sLogcatEnabled = manager.enableLogcat();\n logGenerator = manager.logExecutor;\n\n if (logWriterThread != null) {\n logWriterThread.quit();\n }\n\n logWriterThread = new LogWriterThread(manager);\n logWriterThread.start();\n\n android.util.Log.i(TAG, \"initialized... level=\" + sLogLvlName + \",lvl=\"\n + sLogLvl + \",Logcat Enabled=\" + sLogcatEnabled + \",dir=\" + manager\n .getLogDirFullPath());\n }", "public void initUsers() {\n User user1 = new User(\"Alicja\", \"Grzyb\", \"111111\", \"grzyb\");\n User user2 = new User(\"Krzysztof\", \"Kowalski\", \"222222\", \"kowalski\");\n User user3 = new User(\"Karolina\", \"Nowak\", \"333333\", \"nowak\");\n User user4 = new User(\"Zbigniew\", \"Stonoga \", \"444444\", \"stonoga\");\n User user5 = new User(\"Olek\", \"Michnik\", \"555555\", \"michnik\");\n users.add(user1);\n users.add(user2);\n users.add(user3);\n users.add(user4);\n users.add(user5);\n }", "private void initJulLogger() {\n SLF4JBridgeHandler.removeHandlersForRootLogger();\n SLF4JBridgeHandler.install();\n }", "public void initialize() {\n setCommitteeHelper(getNewCommitteeHelperInstanceHook(this));\n }", "protected static Logger initLogger() {\n \n \n File logFile = new File(\"workshop2_slf4j.log\");\n logFile.delete();\n return LoggerFactory.getLogger(Slf4j.class.getName());\n }", "@BeforeClass\n\tpublic static void setup() {\n\t\tgetLogManager().init();\n\t}", "public UserLoginhandle() {\n\t\tsuper();\n\t}", "public void startup() {\n /* Schedule the cleanup task to delete old logs */\n if (scheduler != null) {\n logger.info(\"Starting log cleanup with a period of {} ms.\", retentionCheckMs);\n scheduler.schedule(\"kafka-log-retention\", new Runnable() {\n @Override\n public void run() {\n cleanupLogs();\n }\n }, InitialTaskDelayMs, retentionCheckMs, TimeUnit.MILLISECONDS);\n logger.info(\"Starting log flusher with a default period of {} ms.\", flushCheckMs);\n scheduler.schedule(\"kafka-log-flusher\", new Runnable() {\n @Override\n public void run() {\n flushDirtyLogs();\n }\n }, InitialTaskDelayMs, flushCheckMs, TimeUnit.MILLISECONDS);\n scheduler.schedule(\"kafka-recovery-point-checkpoint\", new Runnable() {\n @Override\n public void run() {\n checkpointRecoveryPointOffsets();\n }\n }, InitialTaskDelayMs, flushCheckpointMs, TimeUnit.MILLISECONDS);\n }\n if (cleanerConfig.enableCleaner)\n cleaner.startup();\n }", "public PersistentLogEventListener() {\n\t\tthis(new EventDAO());\n\t}", "public interface UserLogService {\n\n public void logActivity(UserLog userLog);\n\n public List<UserLog> getAllUserLog(String username);\n\n public List<UserLog> getAllFilteredUserLog();\n}", "public UserInfoGenerator(IRepository repository) {\n this.repository = repository;\n }", "public static void main(String[] args) {\n LogInController logInController = new LogInController();\n logInController.initController();\n \n }", "public void init(String pName) {\n logger = Logger.getLogger(pName);\n mConsoleHandler = new ConsoleHandler();\n mNameLogger = pName;\n File mLogDir = new File(\"./messagesLog\");\n if (!mLogDir.exists()) {\n mLogDir.mkdir();\n }\n LogManager.getLogManager().reset();\n }", "private LoginRepository(LoginDataSource dataSource) {\n this.dataSource = dataSource;\n //Mobyra instance\n mobyraInstance = MobyraInstance.getInstance();\n }", "public Repo() {\n //this.app = Init.application;\n }", "@Override\n public void onLoging() {\n }", "public Log()\n {\n filePath = String.format(\"log-%d.sl\", System.currentTimeMillis());\n\n open();\n }", "public List<IUserLog> getUserLog() {\n return userLog;\n }", "public SystemLog (\r\n\t\t Long in_logId\r\n ) {\r\n\t\tthis.setLogId(in_logId);\r\n }", "void init() {\n List<Artifact> artifacts = null;\n final List<RepositoryInfo> infos = RepositoryPreferences.getInstance().getRepositoryInfos();\n for (final RepositoryInfo info : infos) {\n if (info.isLocal()) {\n final File localrepo = new File(info.getRepositoryPath() + File.separator\n + DEFAULT_GID_PREFIX.replace('.', '/'));\n if (localrepo.exists()) {\n artifacts = resolveArtifacts(new File(info.getRepositoryPath()), localrepo);\n }\n }\n }\n\n if (artifacts == null) {\n artifacts = new ArrayList<Artifact>(1);\n }\n\n populateLocalTree(artifacts);\n populateAppPane(model.getApps());\n }", "private void startFresh() throws JournalException {\n try {\n this.log = this.node.getWriter(this.filename, false);\n } catch (IOException e) {\n throw new JournalException(\"Failed to create initial log file.\");\n }\n }", "public UserDAO() {\n\t\tthis.emf = Persistence.createEntityManagerFactory(\"feedr_v3\");\n\t\tthis.em = this.emf.createEntityManager();\n\t\tthis.et = this.em.getTransaction();\n\t}" ]
[ "0.6523507", "0.6183764", "0.6182473", "0.6160732", "0.60919404", "0.60757357", "0.6038833", "0.6023212", "0.5998711", "0.59887165", "0.5930462", "0.59161764", "0.58884495", "0.58761877", "0.58634657", "0.5831415", "0.57702917", "0.57277423", "0.5726324", "0.5691526", "0.56733304", "0.5670125", "0.5667884", "0.5657427", "0.5634587", "0.5588549", "0.55750424", "0.55556947", "0.553586", "0.55280614", "0.5515844", "0.5509326", "0.55015427", "0.54963195", "0.5482526", "0.54785764", "0.5450031", "0.54382974", "0.5434086", "0.5425159", "0.53944165", "0.53868425", "0.5385624", "0.5372284", "0.5359336", "0.5345075", "0.5340956", "0.5331367", "0.53230226", "0.5322712", "0.5314471", "0.53069437", "0.52957934", "0.52908486", "0.5290608", "0.5257152", "0.52532184", "0.52486175", "0.52478373", "0.52467895", "0.52448004", "0.5239233", "0.5237313", "0.5236208", "0.52321255", "0.5231486", "0.52272654", "0.5226708", "0.52260023", "0.5224748", "0.5213617", "0.5207559", "0.52025753", "0.5197202", "0.5194456", "0.51850826", "0.5170905", "0.5170057", "0.5167988", "0.51673037", "0.5165964", "0.51632404", "0.51627165", "0.5159151", "0.5157892", "0.5154389", "0.5145937", "0.5144048", "0.513899", "0.5137445", "0.5131471", "0.51230234", "0.51129186", "0.51097846", "0.5109121", "0.51060843", "0.5104362", "0.5103111", "0.5100297", "0.50989366", "0.5097977" ]
0.0
-1
Get given current user Jndi path in repository.
public String getUserJndiRepositoryPath(String username ) { String userRepoPath = userRepositoryPath( username ); try { CloudRepository.createDir(userRepoPath, JNDI_REPOSITORY_DIR); return userRepoPath + JNDI_REPOSITORY_DIR + SEPARATOR; } catch (KettleException e) { logger.error("Jndi路径创建失败.",e); return userRepoPath; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUserStorageLocation(){\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String user = (String) auth.getPrincipal();\n return user + \"/\";\n }", "public String getLocalRepositoryRootFolder() {\n\t\tString userFolder = IdatrixPropertyUtil.getProperty(\"idatrix.local.reposity.root\",getRepositoryRootFolder() );\n\t\tint index = userFolder.indexOf(\"://\");\n\t\tif(index > -1 ) {\n\t\t\tuserFolder = userFolder.substring(index+3);\n\t\t}\n\t\treturn userFolder;\n\t}", "String getJndiName();", "public Path getRemoteRepositoryBaseDir();", "String getRepositoryPath();", "@Override\n\tpublic String getLogin() {\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\tString w=p.getLogin();\n\t\treturn w;\n\t}", "private String getCurrentUserId() {\n\t\tUser currentUser = UserDirectoryService.getCurrentUser();\n \tString currentUserId = currentUser.getId();\n\t\treturn currentUserId;\n\t}", "String getRepositoryPath(String name);", "private String getRootUser() {\n return rootUser;\n }", "HomeDir getHome(BaseUser u);", "public String getRemoteUser() {\r\n return context.getExternalContext().getRemoteUser();\r\n }", "public String getDatabaseUser();", "private String getRepositoryPath() {\n if (repoPath != null) {\n return repoPath;\n }\n\n final String pathProp = System.getProperty(SYSTEM_PATH_PROPERTY);\n\n if (pathProp == null || pathProp.isEmpty()) {\n repoPath = getWorkingDirectory();\n } else if (pathProp.charAt(0) == '.') {\n // relative path\n repoPath = getWorkingDirectory() + System.getProperty(\"file.separator\") + pathProp;\n } else {\n repoPath = RepoUtils.stripFileProtocol(pathProp);\n }\n\n log.info(\"Using repository path: \" + repoPath);\n return repoPath;\n }", "public String getRepositoryDatabaseUsername(){\n \t\treturn getProperty(\"org.sagebionetworks.repository.database.username\");\n \t}", "public String getUser() {\r\n \t\treturn properties.getProperty(KEY_USER);\r\n \t}", "public Path getRepositoryBaseDir();", "public String getRepositoryPath() \n {\n return \"/atg/portal/gear/discussion/DiscussionRepository\";\n }", "public String getUserURI() {\n return host + userResource;\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public static String getUserDir() {\r\n\t\treturn userDir;\r\n\t}", "public String getLocalRepository() {\r\n return localRepository;\r\n }", "public String getRepositoryRootFolder() {\n\t\tString userFolder = UnixPathUtil.unixPath(IdatrixPropertyUtil.getProperty(\"idatrix.metadata.reposity.root\",\"/data/ETL/reposity/\"));\n\t\tif (CloudApp.getInstance().getRepository() instanceof KettleFileRepository) {\n\t\t\tKettleFileRepository fileRepo = (KettleFileRepository) CloudApp.getInstance().getRepository();\n\t\t\tuserFolder = fileRepo.getRepositoryMeta().getBaseDirectory();\n\t\t}\n\t\treturn userFolder;\n\t}", "String getUserDatabaseFilePath();", "public Path getRepositoryGroupBaseDir();", "public String getSystemUser()\n\t{\n\t\treturn \"postgres\";\n\t}", "String getRepositoryUUID();", "public String getUser() {\n\t\t\t\treturn null;\r\n\t\t\t}", "synchronized public String getUser()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getUserID();\n\t\t\t\n\t\treturn null;\n\t}", "public String getRemoteUser() {\n return remoteUser;\n }", "public String getIdentityLogin()\r\n {\r\n return securityService.findLoggedInUsername();\r\n }", "public String getJndiName()\n {\n return _jndiName;\n }", "protected Path getBasePathForUser(User owner) {\n return getDirectories().getDevicesPath().resolve(owner.getName());\n }", "public String getJdbcUser()\n {\n return getStringValue(DataSourceDobj.FLD_JDBC_USER);\n }", "public Path jriDirectory() {\n return jriDirectory;\n }", "@Override\n\t\tpublic String getRemoteUser() {\n\t\t\treturn null;\n\t\t}", "public String getUserID();", "public String getPublicUserDirectoryName() {\n return getStringProperty(PUBLIC_USER_DIRECTORY_NAME_KEY);\n }", "@Override\n\tpublic String getRepositoryURL(String userId) throws GitException {\n\n\t\tlogger.info(\"getRepoURL method Begins\");\n\t\t\n\t\tString repoURL = null;\n\t\tString uri = env.getProperty(\"api.github.users.uri\")+userId;\n\n\t\tlogger.info(\"GIT Request URL: \"+uri);\n\t\t\n\t\ttry {\n\n\t\t\tHttpHeaders headers = new HttpHeaders();\n\t\t\theaders.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n\t\t\tHttpEntity<String> entity = new HttpEntity<String>(\"parameters\", headers);\n\n\t\t\tResponseEntity<String> result = restTemplate.exchange(uri, HttpMethod.GET, entity, String.class);\n\n\t\t\tSystem.out.println(result);\n\t\t\t\n\t\t Map<String,Object> object = JsonMapperUtil.convertJSONToModel(result.getBody());\n\t\t \n\t\t repoURL=(String)object.get(env.getProperty(\"github.user.repos_url\"));\n\n\t\t\tlogger.debug(\"RepoURL -> \"+repoURL);\n\t\t\t\n\t\t} catch (HttpClientErrorException e) {\n\t\t System.out.println(e.getStatusCode());\n\t\t System.out.println(e.getResponseBodyAsString());\n\t\t //repoURL = \"Not Found\";\n\t\t repoURL = GitConstants.NOT_FOUND;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new GitException(e.getMessage());\n\t\t}\n\n\t\tlogger.info(\"getRepoURL method Ends\");\n\n\t\tif (null != repoURL) {\n\t\t\treturn repoURL;\n\t\t}\n\n\t\treturn GitConstants.NOT_FOUND;\n\n\t}", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "private String getDatabaseFilePath(NotesDatabase db) {\n try {\n return db.getFilePath();\n } catch (RepositoryException ex) {\n LOGGER.log(Level.WARNING, \"Unable to retrieve database's file path\", ex);\n return null;\n }\n }", "java.lang.String getUser();", "private String db4oDBFullPath(Context ctx) {\t\n\t\treturn ctx.getDir(\"data\", 0) + \"/\" + LOCAL_SERVER;\n\t\n\t}", "String getUserId();", "String getUserId();", "private String getLoggedUser() {\n\t\torg.springframework.security.core.userdetails.User user2 = \n\t\t\t\t(org.springframework.security.core.userdetails.User) \n\t\t\t\tSecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\tString name = user2.getUsername();\n\t\treturn name;\n\t}", "public String getDbuser() {\n return dbuser;\n }", "public String getCurrentUserAccount();", "@Override\n\tpublic String getRemoteUser() {\n\t\treturn null;\n\t}", "String getUser();", "String getUser();", "public static String getUser() {\r\n return user;\r\n }", "public User findCurrentUser() {\n String username = SecurityContextHolder.getContext().getAuthentication().getName();\n return userRepository.findByUsername(username);\n }", "public static String getUser() {\n return user;\n }", "String getLoginId();", "public String getContextUrl() {\n String currentURL = driver.getCurrentUrl();\n return currentURL.substring(0, currentURL.lastIndexOf(\"/login\"));\n }", "public static String getCurrentUser() {\n\t\treturn System.getProperty(\"user.name\");\n\t}", "private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }", "@GetMapping(path = \"/local-repository/configuration\")\n public LocalRepositoryConfigResponse getLocalRepositoryConfig(@PathVariable String userId,\n @PathVariable String serverName)\n {\n return adminAPI.getLocalRepositoryConfig(userId, serverName);\n }", "public static String getLoggedUser() {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\treturn auth.getName();\n\t}", "public String getJdbcUsername() {\n if(isJakartaNamespace()) {\n return \"jakarta.persistence.jdbc.user\";\n }\n return \"javax.persistence.jdbc.user\";\n }", "@Override\n\tpublic String getId() {\n\t\tString pName = ctx.getCallerPrincipal().getName();\n\t\tPerson p = userEJB.findPerson(pName);\n\t\tString id = p.getId()+\"\";\n\t\treturn id;\n\t\t\n\t}", "public static String getUserDir() {\n return System.getProperty(\"user.dir\");\n }", "public String getMyWorkspaceSiteId(String userId)\n {\n return null;\n }", "String getUserID();", "private String findCurrentDBPath(){\n String startingDir = System.getProperty(\"user.dir\");\t\t\t\t//get starting directory\n File database = new File(startingDir + \"/src/currentDatabase.txt\");\n String currentDatabasePath= null;\n try {\n if (database.exists()) {\n BufferedReader reader = new BufferedReader(new FileReader(database));\n String currentLine;\n while ((currentLine = reader.readLine()) != null) {\n currentDatabasePath = startingDir + \"/src/\" + currentLine.trim().toUpperCase();\n }\n reader.close();\n }\n else{\n System.out.println(\"***Error- currentDatabase.txt file doesn't exits.\");\n }\n }\n catch(Exception ex){\n System.out.println(ex);\n }\n return currentDatabasePath ;\n }", "public String getUser() {\r\n\t\treturn user;\r\n\t}", "public String getUser() {\r\n\t\treturn user;\r\n\t}", "public <T> T lookup(String jndiName);", "public String getUser(){\n \treturn user;\n }", "public String getCurrentPath() {\n\t\treturn DataManager.getCurrentPath();\n\t}", "final String getDDUser() {\r\n\t\treturn ddUser;\r\n\t}", "public Long getUserID() {\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n return getByUsername(authentication.getName()).getId();\n }", "java.lang.String getLoginId();", "public String getCurrentUser() {\r\n return SecurityContextHolder.getContext().getAuthentication().getName();\r\n }", "public final String getUser() {\n return username;\n }", "public String getSecureContainerPath(String id) throws RemoteException;", "public String getDSJndiName() {\r\n return jndiName;\r\n }", "public String getUser() {\n\t\treturn user;\n\t}", "public String getIdGeneratorDatabaseUsername(){\n \t\treturn getProperty(\"org.sagebionetworks.id.generator.database.username\");\n \t}", "public static String getSettingsPath(User user){\r\n File file = (File)userDirs.get(user);\r\n return file == null ? null : file.getAbsolutePath();\r\n // Not 100% sure we should use the absolute path...\r\n }", "ApplicationUser getUser();", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public String getUser() {\r\n return user;\r\n }", "public String getIdPath() {\n\t\tif (null != this.idPath) {\n\t\t\treturn this.idPath;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"idPath\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public String getPaternalID();", "User getCurrentLoggedInUser();", "public String getUserPrincipalRoot() {\n return userPrincipalRoot;\n }", "public File getPersonFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(LivrariaPrincipal.class);\n String filePath = prefs.get(\"filePath\", null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n return null;\n }\n }", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TaskRepository extends JpaRepository<Task,Long> {\n\n @Query(\"select task from Task task where task.user.login = ?#{principal.username}\")\n List<Task> findByUserIsCurrentUser();\n\n}", "@Nullable\n public String getConnectionUser()\n {\n return connectionUser;\n }", "private String getLoggedInUser() {\r\n\t\tOptional<Authentication> authentication = Optional\r\n\t\t\t\t.ofNullable(SecurityContextHolder.getContext().getAuthentication());\r\n\t\treturn authentication.map(Authentication::getPrincipal).map(obj -> (UserDetails) obj)\r\n\t\t\t\t.map(UserDetails::getUsername).orElse(null);\r\n\t}", "public String getUser() {\n return user;\n }", "public String getUser() {\n return user;\n }", "public String getUser() {\n return user;\n }" ]
[ "0.60501057", "0.59942174", "0.5959383", "0.59482706", "0.58912516", "0.5811491", "0.56737995", "0.56445557", "0.5590049", "0.55855346", "0.55793375", "0.54949504", "0.54912466", "0.5471252", "0.5457578", "0.5451618", "0.5448704", "0.5448113", "0.54210603", "0.54210603", "0.54210603", "0.53827596", "0.5365735", "0.5362229", "0.5356535", "0.5338388", "0.5316767", "0.52764887", "0.52741146", "0.5269999", "0.5266132", "0.5261795", "0.52580124", "0.525645", "0.5249402", "0.5248213", "0.5227955", "0.5213729", "0.5209579", "0.5205668", "0.52014136", "0.52014136", "0.52014136", "0.5195546", "0.51794684", "0.51723534", "0.51691455", "0.51691455", "0.5168658", "0.51623064", "0.51545393", "0.5152138", "0.5136567", "0.5136567", "0.51347345", "0.5130579", "0.51213926", "0.5119909", "0.5115412", "0.5110633", "0.5109942", "0.5104259", "0.5097836", "0.5088316", "0.5086526", "0.50842446", "0.50809646", "0.5070722", "0.50610435", "0.5057975", "0.5057975", "0.50576943", "0.5056897", "0.5052553", "0.50488925", "0.5046024", "0.5045099", "0.5042788", "0.50257343", "0.5024319", "0.5022629", "0.5021115", "0.50169873", "0.50157267", "0.5014286", "0.5009596", "0.5009596", "0.5009596", "0.5008684", "0.5005929", "0.50056654", "0.50014323", "0.49961397", "0.49931636", "0.49746445", "0.4971747", "0.49690375", "0.4967287", "0.4967287", "0.4967287" ]
0.65304244
0
TODO Autogenerated method stub
@Override public void onClick(View arg0) { Intent intent = new Intent(Main2Activity.this, com.sha.location.NotifyService.class); Main2Activity.this.startService(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick (View arg0){ stopService(new Intent(Main2Activity.this,NotifyService.class)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
/ To show a herb after choose a therapeutic propertie first in Render it is checking what herb need to be showed, according to checking list in every herb. For example if I click on LAXATIVE it calls "signForPrzeczyszczajace" as TRUE ( MainScreenTable) If it is TRUE and only this one is TRUE (it is checking in ALOE.java ) it turns checkIfAloe function to true And this function when its true make button for aloe
public static void countLoading(Enum herbEnum){ System.out.println(finishedLoading++ + " Loaded asset: "+herbEnum.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String _butpaso2_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 152;BA.debugLine=\"butPaso3.Visible = True\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 153;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 154;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 155;BA.debugLine=\"lblPaso2a.Visible = True\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 156;BA.debugLine=\"lblPaso2b.Visible = True\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 157;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 158;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 159;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 160;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 161;BA.debugLine=\"imgLarvas.Visible = True\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 162;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 163;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 164;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 165;BA.debugLine=\"lblEstadio.Text = \\\"Larva\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Larva\"));\n //BA.debugLineNum = 166;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso3, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso3,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 168;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static String _butpaso3_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 171;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 172;BA.debugLine=\"butPaso4.Visible = True\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 173;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 174;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 175;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 176;BA.debugLine=\"lblPaso3.Visible = True\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 177;BA.debugLine=\"lblPaso3a.Visible = True\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 178;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 179;BA.debugLine=\"imgPupas.Visible = True\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 180;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 181;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 182;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 183;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 184;BA.debugLine=\"lblEstadio.Text = \\\"Pupa\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Pupa\"));\n //BA.debugLineNum = 185;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso4, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso4,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 186;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static String _butpaso4_click() throws Exception{\nmostCurrent._butpaso1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 189;BA.debugLine=\"butPaso2.Visible = False\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 190;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 191;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 192;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 193;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 194;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 195;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 196;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 197;BA.debugLine=\"lblPaso4.Visible = True\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 198;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 199;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 200;BA.debugLine=\"imgMosquito.Visible = True\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 201;BA.debugLine=\"imgMosquito.Top = 170dip\";\nmostCurrent._imgmosquito.setTop(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (170)));\n //BA.debugLineNum = 202;BA.debugLine=\"imgMosquito.Left = 30dip\";\nmostCurrent._imgmosquito.setLeft(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (30)));\n //BA.debugLineNum = 203;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 204;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 205;BA.debugLine=\"lblEstadio.Text = \\\"Mosquito\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Mosquito\"));\n //BA.debugLineNum = 206;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 207;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void q2(int op)\n {\n if(op==1)\n {\n Ventana_Principal.arrow.setVisible(true);\n cambio();\n }else\n {\n if(opBebidad==1)\n {\n actualizarStockB(\"Coca-Cola\");\n JOptionPane.showMessageDialog(null, \"¡Disfruta de tu Coca-Cola...!\");\n VentanaCC obj=new VentanaCC();\n obj.setVisible(true);\n\n }else\n if(opBebidad==2)\n {\n actualizarStockB(\"Sprite\");\n JOptionPane.showMessageDialog(null, \"¡Disfruta de tu Sprite...!\");\n VentanaSprite obj=new VentanaSprite();\n obj.setVisible(true);\n\n }else\n if(opBebidad==3)\n {\n actualizarStockB(\"Fanta\");\n JOptionPane.showMessageDialog(null, \"¡Disfruta de tu Fanta...!\");\n VentanaFanta obj=new VentanaFanta();\n obj.setVisible(true);\n }else\n if(opBebidad==4)\n {\n actualizarStockB(\"Pepsi\");\n JOptionPane.showMessageDialog(null, \"¡Disfruta de tu Pepsi...!\");\n VentanaPepsi obj=new VentanaPepsi();\n obj.setVisible(true); \n }\n }\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n\r\n popuniVrsteDogadjajaListu();\r\n marketing_textF = new TextField();\r\n marketing_textF.setText(\"false\"); \r\n \r\n /* marketing_textF.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n if(marketing_textF.getText().equals(\"true\")){\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION,\r\n \"Završena je marketinška kampanja!\", ButtonType.OK);\r\n alert.showAndWait();\r\n marketing_textF.setText(\"false\");\r\n }\r\n }\r\n });\r\n */\r\n Korisnici_btn.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n OrganizacijaDogadjaja.korisnik.prikaziGUI(\"Korisnici\", false);\r\n }\r\n });\r\n\r\n NoviDogadjaj_btn.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n OrganizacijaDogadjaja.korisnik.prikaziGUI(\"NoviDogadjaj\", false);\r\n }\r\n });\r\n\r\n Marketing_btn.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n out.println(\"MARKETING\");\r\n try {\r\n if (in.readLine().equals(\"MARKETING_ZAVRSEN\")) {\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION,\r\n \"Završena je marketinška kampanja!\", ButtonType.OK);\r\n alert.showAndWait();\r\n }\r\n } catch (IOException ex) {\r\n Logger.getLogger(NoviDogadjajController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n }\r\n });\r\n\r\n Obrisi_btn.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n\r\n Dogadjaj selectedItem = tabelaDogadjaja.getSelectionModel().getSelectedItem();\r\n //obrisemo na serveru dogadjaj\r\n out.println(\"OBRISI_DOGADJAJ#\" + selectedItem.getNaziv());\r\n //obrisemo iz tabele dogadjaja\r\n tabelaDogadjaja.getItems().remove(selectedItem);\r\n\r\n }\r\n });\r\n\r\n Zavrsi_btn.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n OrganizacijaDogadjaja.korisnik.closeIO();\r\n OrganizacijaDogadjaja.korisnik.zatvoriGUI(\"Pocetna\", true);\r\n }\r\n });\r\n\r\n PreuzmiDogadjaj_mi.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n out.println(\"PREUZIMANJE_DOGADJAJA\");\r\n primiFajl(new File(\"src/organizacijadogadjaja/korisnici/preuzimanja/dogadjaji.csv\"));\r\n }\r\n });\r\n\r\n PreuzmiUcesnike_mi.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n out.println(\"PREUZIMANJE_UCESNIKA\");\r\n primiFajl(new File(\"src/organizacijadogadjaja/korisnici/preuzimanja/ucesnici.csv\"));\r\n }\r\n });\r\n\r\n PreuzmiOrganizatore_mi.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n out.println(\"PREUZIMANJE_ORGANIZATORA\");\r\n primiFajl(new File(\"src/organizacijadogadjaja/korisnici/preuzimanja/organizatori.csv\"));\r\n }\r\n });\r\n\r\n Preuzimanja_mbtn = new MenuButton(\"Preuzimanja\", Obrisi_btn, new MenuItem(\"Događaj\"), new MenuItem(\"Organizator\"), new MenuItem(\"Ucesnike\"));\r\n\r\n // kolona datum pocetka sortirana po opadajucem redosledu\r\n kolonaDatumPocetka.setSortType(TableColumn.SortType.DESCENDING);\r\n\r\n kolonaNaziv.setCellValueFactory(new PropertyValueFactory<Dogadjaj, String>(\"naziv\"));\r\n kolonaDatumPocetka.setCellValueFactory(new PropertyValueFactory<Dogadjaj, String>(\"datumPocetka\"));\r\n kolonaVrijemePocetka.setCellValueFactory(new PropertyValueFactory<Dogadjaj, String>(\"vrijemePocetka\"));\r\n kolonaVrijemeZavrsetka.setCellValueFactory(new PropertyValueFactory<Dogadjaj, String>(\"vrijemeZavrsetka\"));\r\n // popunimo tabelu sa listom dogadjaja\r\n tabelaDogadjaja.getItems().setAll(popuniTabeluDogadjaja());\r\n\r\n }", "public void productoAcabado(boolean a){\n if(a==true){\n JOptionPane.showMessageDialog(null,\"Retire Producto\");\n }else{System.out.println(\"....\");}\n }", "private void jTabPane_AccueilMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTabPane_AccueilMouseClicked\n if(numOnglet() == 0 ){\n // On cache le bouton qui lance la procedure Prospect vers Client\n jBtn_ProspectToClient.setVisible(false);\n if(jTable_Clients.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n }\n else{\n jBtn_Modifier.setVisible(true);\n jBtn_Supprimer.setVisible(true);\n }\n }else{\n if(jTable_Prospects.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n jBtn_ProspectToClient.setVisible(false);\n }else{\n jBtn_Modifier.setVisible(true);\n jBtn_Supprimer.setVisible(true);\n // On fait apparaitre le bouton qui lance la procedure Prospect vers Client\n jBtn_ProspectToClient.setVisible(true);\n }\n }\n }", "protected void pokazOblicz() {\n if (czyImie && czyNazwisko && czyLiczby)\n oblicz.setVisibility(Button.VISIBLE);\n\n else\n oblicz.setVisibility(Button.INVISIBLE);\n }", "public ERecor() {\n initComponents();\n setSize(649, 540);\n setLocation(400,100);\n \n comprueba.setText(\"si\");\n \n check.setVisible(true);\n check.setContentAreaFilled(false);\n check.setBorderPainted (false);\n \n update.setVisible(true);\n update.setContentAreaFilled(false);\n update.setBorderPainted (false);\n \n jButton1.setVisible(true);\n jButton1.setContentAreaFilled(false);\n jButton1.setBorderPainted (false);\n \n back.setContentAreaFilled(false);\n back.setBorderPainted (false);\n \n comprueba.setVisible(false);\n fecha.setVisible(false);\n \n options.setVisible(true);\n options.setContentAreaFilled(false);\n options.setBorderPainted (false);\n \n aver.setVisible(false);\n \n options2.setVisible(false);\n options2.setContentAreaFilled(false);\n options2.setBorderPainted (false);\n \n \n String dato;\n dato=(aviso.getText());\n aver.setText(\"\"+dato);\n String descr=\"\", ver=\"\", fech=\"\";\n ResultSet rs;\n Statement st;\n String sql=(\"SELECT * from tareas WHERE CodTarea=\"+dato);\n try {\n st= cn.createStatement();\n rs =st.executeQuery(sql);\n while(rs.next()){\n descr=rs.getString(2);\n fech=rs.getString(3);\n ver=rs.getString(4);\n } \n } catch (SQLException ex) {\n Logger.getLogger(ANota.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n tarea1.setText(\"\"+descr);\n \n if (ver.equals(\"SI\")){\n check.setSelected(true);\n }\n \n atras.setVisible(true);\n atras.setContentAreaFilled(false);\n atras.setBorderPainted (false);\n \n menub.setVisible(true);\n menub.setContentAreaFilled(false);\n menub.setBorderPainted (false);\n \n salir.setVisible(true);\n salir.setContentAreaFilled(false);\n salir.setBorderPainted (false);\n \n transparenciaButton();\n\n }", "public static String _butpatas_click() throws Exception{\nmostCurrent._butpatas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 85;BA.debugLine=\"butColor.Visible = False\";\nmostCurrent._butcolor.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 87;BA.debugLine=\"lblFondo.Initialize(\\\"\\\")\";\nmostCurrent._lblfondo.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 88;BA.debugLine=\"lblFondo.Color = Colors.ARGB(30,255,94,94)\";\nmostCurrent._lblfondo.setColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (30),(int) (255),(int) (94),(int) (94)));\n //BA.debugLineNum = 89;BA.debugLine=\"Activity.AddView(lblFondo,0,0,100%x,100%y)\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._lblfondo.getObject()),(int) (0),(int) (0),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (100),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA));\n //BA.debugLineNum = 91;BA.debugLine=\"panelPopUps_1.Initialize(\\\"\\\")\";\nmostCurrent._panelpopups_1.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 92;BA.debugLine=\"panelPopUps_1.LoadLayout(\\\"lay_Mosquito_PopUps\\\")\";\nmostCurrent._panelpopups_1.LoadLayout(\"lay_Mosquito_PopUps\",mostCurrent.activityBA);\n //BA.debugLineNum = 94;BA.debugLine=\"lblPopUp_Descripcion.Text = \\\"Se pueden ver rayas\";\nmostCurrent._lblpopup_descripcion.setText(BA.ObjectToCharSequence(\"Se pueden ver rayas blancas en sus patas\"));\n //BA.debugLineNum = 95;BA.debugLine=\"imgPopUp.Bitmap = LoadBitmap(File.DirAssets,\\\"mosq\";\nmostCurrent._imgpopup.setBitmap((android.graphics.Bitmap)(anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),\"mosquito_Grande.png\").getObject()));\n //BA.debugLineNum = 96;BA.debugLine=\"imgPopUp.Visible = True\";\nmostCurrent._imgpopup.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 97;BA.debugLine=\"Activity.AddView(panelPopUps_1, 15%x, 15%y, 70%x,\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._panelpopups_1.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (70),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (70),mostCurrent.activityBA));\n //BA.debugLineNum = 98;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private void homenMouseClicked(java.awt.event.MouseEvent evt) {\n home.setVisible(true);\n homen.setBackground(Color.decode(\"#FFCC00\"));\n product.setVisible(false);\n prdtn.setBackground(Color.decode(\"#00CC66\"));\n stock.setVisible(false);\n stckn.setBackground(Color.decode(\"#00CC66\"));\n report.setVisible(false);\n rprt.setBackground(Color.decode(\"#00CC66\"));\n sales.setVisible(false);\n slsn.setBackground(Color.decode(\"#00CC66\"));\n bill.setVisible(false);\n cusln.setBackground(Color.decode(\"#00CC66\"));\n mng_emp.setVisible(false);\n mngen.setBackground(Color.decode(\"#00CC66\"));\n Update.setVisible(false);\n UPD_PRO.setBackground(Color.decode(\"#00CC66\"));\n }", "public static String _btncerrarpopup_larvas_click() throws Exception{\nmostCurrent._panelpopups_2.RemoveView();\n //BA.debugLineNum = 390;BA.debugLine=\"lblFondo.RemoveView\";\nmostCurrent._lblfondo.RemoveView();\n //BA.debugLineNum = 391;BA.debugLine=\"butPaso2.Visible = False\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 392;BA.debugLine=\"butPaso3.Visible = True\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 393;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 394;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 395;BA.debugLine=\"lblPaso2a.Visible = True\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 396;BA.debugLine=\"lblPaso2b.Visible = True\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 397;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 398;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 399;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 400;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 401;BA.debugLine=\"imgLarvas.Visible = True\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 402;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 403;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 404;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 405;BA.debugLine=\"lblEstadio.Visible = True\";\nmostCurrent._lblestadio.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 407;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static String _btncerrarpopup_huevos_click() throws Exception{\nmostCurrent._panelpopups_2.RemoveView();\n //BA.debugLineNum = 410;BA.debugLine=\"lblFondo.RemoveView\";\nmostCurrent._lblfondo.RemoveView();\n //BA.debugLineNum = 411;BA.debugLine=\"butPaso1.Visible = False\";\nmostCurrent._butpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 412;BA.debugLine=\"butPaso2.Visible = True\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 413;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 414;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 415;BA.debugLine=\"lblLabelPaso1.Visible = True\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 416;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 417;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 418;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 419;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 420;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 421;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 422;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 423;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 424;BA.debugLine=\"imgMosquito1.Visible = True\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 425;BA.debugLine=\"imgHuevos.Visible = True\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 426;BA.debugLine=\"lblEstadio.Visible = True\";\nmostCurrent._lblestadio.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 428;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static String _btncerrarpopup_pupas_click() throws Exception{\nmostCurrent._panelpopups_2.RemoveView();\n //BA.debugLineNum = 431;BA.debugLine=\"lblFondo.RemoveView\";\nmostCurrent._lblfondo.RemoveView();\n //BA.debugLineNum = 432;BA.debugLine=\"butPaso2.Visible = False\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 433;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 434;BA.debugLine=\"butPaso4.Visible = True\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 435;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 436;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 437;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 438;BA.debugLine=\"lblPaso3.Visible = True\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 439;BA.debugLine=\"lblPaso3a.Visible = True\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 440;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 441;BA.debugLine=\"imgPupas.Visible = True\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 442;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 443;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 444;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 445;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 447;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\n public void onClick(View view) {\n Button trykket = null;\n for (int i = 0; i < 30 ; i++) {\n if (view==buttons.get(i)){\n trykket=buttons.get(i);\n }\n }\n assert trykket != null;\n gæt(trykket);\n\n //vi afslutter spiller hvis det er slut eller vundet.\n if(logik.erSpilletSlut()){\n if(logik.erSpilletTabt()){\n // die.start();\n slutspilllet(false);\n }\n if(logik.erSpilletVundet()) slutspilllet(true);\n }\n\n }", "private void jBtn_AjouterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtn_AjouterActionPerformed\n // Si onglet Client\n if(numOnglet() == 0){\n Formulaire_Client creaClient = new Formulaire_Client();\n creaClient.setVisible(true);\n this.setVisible(false);\n \n }\n else{\n Formulaire_Prospect creaProspect = new Formulaire_Prospect();\n creaProspect.setVisible(true);\n this.setVisible(false);\n } \n }", "public void displayProfile (Person personBean){\n \n \n Stage window = new Stage();\n window.initModality(Modality.APPLICATION_MODAL);\n window.setTitle(\"Welcome \" + personBean.getUsername());\n window.setMinWidth(500);\n \n Button logout= new Button(\"Logout\");\n GridPane.setConstraints(logout,2,2);\n logout.setOnAction(e->window.close());\n \n //confirm and send button\n Button chooseRestrictions = new Button(\"Choose Restrictions\");\n GridPane.setConstraints(chooseRestrictions,2,2);\n //save al users selection when done\n chooseRestrictions.setOnAction(e->{\n dietPlanObj.restrictions(personBean.getId());\n try {\n dietPlanObj.handleRestrictions(personBean.getId());\n } catch (SQLException ex) {\n Logger.getLogger(Profile.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n window.close();\n });\n \n /*\n Button modifyDiet = new Button(\"Modify Diet\");\n GridPane.setConstraints(modifyDiet,2,2);\n //save al users selection when done\n modifyDiet.setOnAction(e->{\n dietPlanObj.modifyDiet(\"Change Diet\");\n dietPlanObj.handleChangesDiet();\n \n //window.close();\n });\n */\n Button viewMealSchedule = new Button(\"View Meal Schedule\");\n \n viewMealSchedule.setOnAction(e ->\n {\n MealScheduleGUI.display(personBean.getId(), personBean.getUsername());\n });\n \n Hyperlink musclePreference;\n Hyperlink loseWeightPreference;\n Hyperlink stayHealthyPreference;\n Hyperlink noPreference;\n \n //no preference = 0\n //musclePreference = 1\n //loseWeightPreference = 2\n //stayHealthyPreference = 3\n \n Label choosePreferenceLabel = new Label(\"Choose your diet preference\");\n \n noPreference = new Hyperlink(\"No preference\");\n musclePreference = new Hyperlink(\"Get buff!\");\n loseWeightPreference = new Hyperlink(\"Lose Weight\");\n stayHealthyPreference = new Hyperlink(\"Stay Healthy\");\n \n //hyperlink event listeners\n noPreference.setOnAction(e-> {\n ArrayList<Food> pickedFoods = ApplicableFoodGUI.display(personBean.getId(), personBean.getUsername(), 0, \"No preference\");\n MealSchedule mealBean = new MealSchedule();\n int dayCounter = 0;\n int dayTimeCounter = 0;\n for (Food x : pickedFoods)\n {\n mealBean.setFoodId(x.getId());\n mealBean.setUserId(personBean.getId());\n mealBean.setQuantity(1);\n System.out.println(x.getFoodName());\n if (dayCounter == 7)\n dayCounter = 0;\n mealBean.setDay(dayCounter++);\n if (dayTimeCounter == 3)\n dayTimeCounter = 0;\n mealBean.setDayTime(dayTimeCounter++);\n \n try {\n if (ManagerMealSchedule.setMealSchedule(mealBean))\n {\n System.out.println(\"Meal Schedule set\");\n }\n else\n System.out.println(\"ERROR: Meal Schedule not set\");\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n }\n \n //And take his picked foods and put his foods in the MealSchedule based on userId\n \n });\n musclePreference.setOnAction(e->\n {\n ArrayList<Food> pickedFoods = ApplicableFoodGUI.display(personBean.getId(), personBean.getUsername(), 1, \"Muscle\");\n for (Food x : pickedFoods)\n {\n System.out.println(x.getFoodName());\n }\n \n \n });\n \n loseWeightPreference.setOnAction(e->\n {\n ArrayList<Food> pickedFoods = ApplicableFoodGUI.display(personBean.getId(), personBean.getUsername(), 2, \"Weight loss\");\n for (Food x : pickedFoods)\n {\n System.out.println(x.getFoodName());\n } \n });\n \n \n VBox layout = new VBox (20);\n layout.setPadding(new Insets (20,20,20,20));\n layout.getChildren().addAll(logout, chooseRestrictions, viewMealSchedule, choosePreferenceLabel, noPreference, musclePreference, loseWeightPreference, stayHealthyPreference);\n \n \n \n Scene scene = new Scene(layout,500,500);\n window.setScene(scene);\n window.showAndWait();\n \n \n \n }", "@Override\n public void onClick(View v) {\n if (!vKenalan()){\n dialog.show();\n berbicara.play(\"it seems like we haven't met yet, don't know it then don't love, let's know you first\");\n return;\n }\n // untuk toogle\n if (diam){\n bolehMendengarkan();\n diam = false;\n }else {\n tidakBolehMendengarkan();\n diam = true;\n }\n }", "public fHeThong() {\n initComponents();\n if(\"admin\".equals(new DAO_Login().QuyenTruyCap(fLogin.usernamee)))\n {\n MenuDangKyTaiKhoan.setVisible(true);\n MenuQuanLiTaiKhoan.setVisible(true);\n }\n else\n {\n MenuDangKyTaiKhoan.setVisible(false);\n MenuQuanLiTaiKhoan.setVisible(false);\n }\n }", "private void showfivetype() {\n\r\n\t\tbtn_menu1.setText(ticketname[btn_menu1_int]);\r\n\t\tbtn_menu2.setText(ticketname[btn_menu2_int]);\r\n\t\tbtn_menu3.setText(ticketname[btn_menu3_int]);\r\n\t\tbtn_menu4.setText(ticketname[btn_menu4_int]);\r\n\t\tbtn_menu5.setText(ticketname[btn_menu5_int]);\r\n\t\tif (btn_menu1_int == 0) {\r\n\t\t\tbtn_menu1.setVisibility(View.GONE);\r\n\t\t} else {\r\n\t\t\tbtn_menu1.setVisibility(View.VISIBLE);\r\n\t\t}\r\n\t\tif (btn_menu2_int == 0) {\r\n\t\t\tbtn_menu2.setVisibility(View.GONE);\r\n\t\t} else {\r\n\t\t\tbtn_menu2.setVisibility(View.VISIBLE);\r\n\t\t}\r\n\t\tif (btn_menu3_int == 0) {\r\n\t\t\tbtn_menu3.setVisibility(View.GONE);\r\n\t\t} else {\r\n\t\t\tbtn_menu3.setVisibility(View.VISIBLE);\r\n\t\t}\r\n\t\tif (btn_menu4_int == 0) {\r\n\t\t\tbtn_menu4.setVisibility(View.GONE);\r\n\t\t} else {\r\n\t\t\tbtn_menu4.setVisibility(View.VISIBLE);\r\n\t\t}\r\n\t\tif (btn_menu5_int == 0) {\r\n\t\t\tbtn_menu5.setVisibility(View.GONE);\r\n\t\t} else {\r\n\t\t\tbtn_menu5.setVisibility(View.VISIBLE);\r\n\t\t}\r\n\t}", "@FXML\n private void bttValidezOnClick(ActionEvent event) throws IOException {\n\n if (!txtPseudo.getText().isEmpty()) {\n if (!txtTaille.getText().isEmpty()) {\n try {\n laTaille = Integer.parseInt(txtTaille.getText());\n if (laTaille <= 2) {\n //alert si la taille de la grille est trop petite \n Alert alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Attention\");\n\n // Header Text: null\n alert.setHeaderText(null);\n alert.setContentText(\"La taille de la grille doit être supérieur à 2\");\n\n alert.showAndWait();\n } else {\n lePseudo = txtPseudo.getText();\n\n //Lancer la fenètre de jeu\n Parent root = FXMLLoader.load(getClass().getResource(\"MainGraphiqueGame.fxml\"));\n Scene scene = new Scene(root);\n Stage gameStage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n gameStage.setScene(scene);\n gameStage.show();\n\n }\n } catch (Exception e) {\n //alert si la taille saisi n'est pas un chiffre \n Alert alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Attention\");\n\n // Header Text: null\n alert.setHeaderText(null);\n alert.setContentText(\"Saisissez un chiffre !\");\n\n alert.showAndWait();\n }\n\n } else {\n //alert si il y a pas de taille saisi\n Alert alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Attention\");\n\n // Header Text: null\n alert.setHeaderText(null);\n alert.setContentText(\"Veuillez saisir une taille\");\n\n alert.showAndWait();\n }\n } else {\n //alert si il y a pas de pseudo saisi\n Alert alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Attention\");\n\n // Header Text: null\n alert.setHeaderText(null);\n alert.setContentText(\"Veuillez saisir un pseudo\");\n\n alert.showAndWait();\n }\n\n }", "@Override\n\tpublic void show() {\n\t\tsuper.show();\n\t\t\n\t\tSkin skin = new Skin(Gdx.files.internal(\"Textos/uiskin.json\"));\n\t\tint miniheight= Gdx.graphics.getHeight()/8;\n\t\tint mitad= Gdx.graphics.getWidth()/2;\n\t\t//int miniwidth= Gdx.graphics.getWidth()/8;\n\t\t\n\t\t/*Botones*/\n\t\tbtnVolv = new TextButton(\"Back\", skin);\n\t\tbtnVolv.setPosition(0, 0);\n\t\tbtnVolv.setWidth(Gdx.graphics.getWidth()/2);\n\t\tbtnVolv.setHeight(miniheight);\n\t\tbtnVolv.addListener(QueHacemos(false));\n\t\tbtnGuardar = new TextButton(\"Save\", skin);\n\t\tbtnGuardar.setPosition(Gdx.graphics.getWidth()/2, 0);\n\t\tbtnGuardar.setWidth(Gdx.graphics.getWidth()/2);\n\t\tbtnGuardar.setHeight(miniheight);\n\t\tbtnGuardar.addListener(QueHacemos(true));\n\t\t\n\t\t/*Tabla */\n\t\t//Puntuacion\n\t\tLabel tapunt= new Label(\"\"+user.getPuntuacion(),skin);\n\t\ttapunt.setAlignment(Align.center);\n\t\ttapunt.setX(Gdx.graphics.getWidth()/2-tapunt.getWidth()/2);\n\t\ttapunt.setY(miniheight*7);\t\t\n\t\ttapunt.setFontScale(3);\n\t\ttapunt.setColor(0.9f,0.1f,0.1f,0.8f);\n\t\t\n\t\t//Definimos el label y el TextArea del nick\n\t\tLabel tlnick= new Label(\"NICK: \",skin);\n\t\ttlnick.setX(mitad-13-tlnick.getWidth());\n\t\ttlnick.setY(miniheight*5);\n\t\ttanick= new TextArea(user.getNick(), skin);\n\t\ttanick.setX(mitad+13);\n\t\ttanick.setY(miniheight*5-tanick.getHeight()/5);\t\t\n\t\ttanick.setAlignment(Align.bottom);\n\t\ttanick.setColor(1, 1, 1, -0.5f);\n\t\t\n\t\t//Checkbox\t\t\n\t\tchcksonido= new CheckBox(\"Sound\", skin);\n\t\tchcksonido.setX(mitad-chcksonido.getWidth()/2);\n\t\tchcksonido.setY(miniheight*3);\n\t\tchcksonido.left();\n\t\t//chcksonido.align(Align.right);\n\t\tchcksonido.setChecked(user.isSonido());\n\t\n\t\t//Escenario nuevo\n\t\tescenariopciones = new Stage(new ScreenViewport());\n\n\t\t//Le añadimos los distintos actores\n\t\tescenariopciones.addActor(tapunt);\n\t\tescenariopciones.addActor(tlnick);\n\t\tescenariopciones.addActor(tanick);\n\t\tescenariopciones.addActor(chcksonido);\n\t\t\t\n\t\t\t\n\t\tescenariopciones.addActor(btnVolv);\n\t\tescenariopciones.addActor(btnGuardar);\n\t\tGdx.input.setInputProcessor(escenariopciones);\n\t}", "public void validorolin() {\n if (roli.equals(\"Menaxher\")) {\n madministrimi.setVisible(false);\n }\n\n }", "private void jBtnLamarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnLamarActionPerformed\n if(roles.equals(\"employeer\") || roles.equals(\"admin\")){\n// LIHAT PELAMAR UNTUK ADMIN HRD\n try {\n LamarForm join;\n join = new LamarForm();\n join.setVisible(true);\n } catch (SQLException ex) {\n Logger.getLogger(Dashboard.class.getName()).log(Level.SEVERE, null, ex);\n } \n }else{\n// LIHAT LAMARANKU UNTUK JOBSEEKER\n \n try {\n Lamaranku lm = new Lamaranku();\n lm.setVisible(true);\n } catch (SQLException ex) {\n Logger.getLogger(Dashboard.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }\n \n \n }", "public void srediFormuPremaSK(){\n int aktivanSK = Komunikacija.getInstance().getAktivan_sk();\n \n if(aktivanSK == Konstante.SK_DODAVANJE){\n srediFormu();\n this.setTitle(\"Unos nove vezbe\");\n }\n if(aktivanSK == Konstante.SK_IZMENA){\n srediFormu();\n prikaziPodatkeVezbi(Komunikacija.getInstance().getVezbe());\n this.setTitle(\"Izmena vezbe\");\n } \n \n if(aktivanSK == Konstante.SK_PRIKAZ){\n jTextFieldNaziv.setEnabled(false);\n jTextFieldFokus.setEnabled(false);\n jTextFieldVremeTrajanja.setEnabled(false);\n prikaziPodatkeVezbi(Komunikacija.getInstance().getVezbe());\n this.setTitle(\"Detalji vezbe\");\n }\n}", "public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "@Override\n\tpublic void activarModoPrestamo() {\n\t\tif(uiHomePrestamo!=null){\n\t\t\tif(uiHomePrestamo.getModo().equals(\"HISTORIAL\")){\n\t\t\t\tbtnNuevo.setVisible(false);\t\n\t\t\t\tbtnEliminar.setVisible(false);\n\t\t\t}else{\n\t\t\t\tbtnNuevo.setVisible(true);\n\t\t\t\tbtnEliminar.setVisible(true);\n\t\t\t}\n\t\t}else if(uiHomeCobranza!=null){\n\t\t\tbtnEliminar.setVisible(false);\n\t\t\tbtnNuevo.setVisible(true);\n\t\t\t//pnlEstadoPrestamo.setVisible(false);\n\t\t}\n\t\t\n\t}", "private boolean configurarFrm(){\n boolean blnRes=true;\n try{\n //Inicializar objetos.\n objUti=new ZafUtil();\n objPerUsr=new ZafPerUsr(objParSis);\n \n //Configurar ZafSelFec:\n objSelFec=new ZafSelFec();\n objSelFec.setCheckBoxVisible(false);\n panFil.add(objSelFec);\n objSelFec.setBounds(4, 4, 472, 72);\n \n this.setTitle(objParSis.getNombreMenu() + strVer);\n lblTit.setText(objParSis.getNombreMenu());\n //Botón Genera Factura Automática\n \n if(objParSis.getCodigoMenu()==4142){ // Solicitud de reserva\n chkEstSolNoTiene.setSelected(true);\n }\n if(objParSis.getCodigoMenu()==4146){ /* AUTORIZACION DE RESERVA */\n chkEstSolPendiente.setSelected(true);\n }\n if(objParSis.getCodigoMenu()==4150){ /* CANCELACION DE RESERVA */\n butGua.setVisible(false);\n chkAutSolAutorizada.setSelected(true);\n chkEstSolPendiente.setSelected(true); \n \n \n }\n if(objParSis.getCodigoMenu()==4154){ // 4154;1170;\"C\";\"Seguimiento de solicitudes de reservas de inventario...\"\n butGua.setVisible(false);\n //Estado de la solicitud\n chkEstSolPendiente.setSelected(true); \n chkEstSolCompleta.setSelected(true);\n //Estado de la Autorizacion\n chkAutSolPendiente.setSelected(true); \n chkAutSolAutorizada.setSelected(true);\n chkAutSolDenegada.setSelected(true);\n \n }\n \n //Configurar JTable: Establecer el modelo.\n vecDat=new Vector(); //Almacena los datos\n vecCab=new Vector(); //Almacena las cabeceras\n vecCab.clear();\n vecCab.add(INT_TBL_DAT_LIN,\"\");\n vecCab.add(INT_TBL_DAT_COD_EMP,\"Cód.Emp.\");\n vecCab.add(INT_TBL_DAT_NOM_EMP,\"Empresa\");\n vecCab.add(INT_TBL_DAT_COD_LOC,\"Cód.Loc.\");\n vecCab.add(INT_TBL_DAT_NOM_LOC,\"Local\");\n vecCab.add(INT_TBL_DAT_COD_COT,\"Cód.Cot.\");\n vecCab.add(INT_TBL_DAT_FEC_COT,\"Fec.Cot.\");\n vecCab.add(INT_TBL_DAT_COD_CLI,\"Cod.Cli.\");\n vecCab.add(INT_TBL_DAT_NOM_CLI,\"Nom.Cli.\");\n vecCab.add(INT_TBL_DAT_TOT_COT,\"Tot.Cot.\");\n vecCab.add(INT_TBL_DAT_BTN_COT_VEN,\"...\");\n vecCab.add(INT_TBL_DAT_COD_TIP_SOL,\"Cód.Tip.Sol.\");\n vecCab.add(INT_TBL_DAT_BTN_TIP_SOL,\"...\");\n vecCab.add(INT_TBL_DAT_TIP_SOL,\"Tip.Sol.\");\n vecCab.add(INT_TBL_DAT_FEC_SOL,\"Fec.Sol.\");\n vecCab.add(INT_TBL_DAT_CHK_SOL_RES,\"Sol.Res.\"); // JM \n vecCab.add(INT_TBL_DAT_OBS_SOL_RES,\"Obs.Res.\");\n vecCab.add(INT_TBL_DAT_BTN_OBS_SOL_RES,\"...\");\n vecCab.add(INT_TBL_DAT_CHK_PED_OTR_BOD,\"Ped.Otr.Bod.\");\n vecCab.add(INT_TBL_DAT_BTN_PED_OTR_BOD,\"...\");\n vecCab.add(INT_TBL_DAT_CHK_SOL_ENV_PED,\"Sol.Env.Ped.\");\n vecCab.add(INT_TBL_DAT_CHK_PENDIENTE,\"Pendientes\");\n vecCab.add(INT_TBL_DAT_CHK_AUTORIZAR,\"Autorizar\");\n vecCab.add(INT_TBL_DAT_CHK_DENEGAR,\"Denegar\");\n vecCab.add(INT_TBL_DAT_CHK_AUT_ENV_PED,\"Aut.Env.Ped.\");\n vecCab.add(INT_TBL_DAT_FEC_SOL_FAC_AUT,\"Fec.Aut.\");\n vecCab.add(INT_TBL_DAT_OBS_AUT_RES,\"Obs.Aut.\");\n vecCab.add(INT_TBL_DAT_BTN_OBS_AUT_RES,\"...\");\n vecCab.add(INT_TBL_DAT_VAL_FAC,\"Val.Fac.\");\n vecCab.add(INT_TBL_DAT_BTN_LIS_FAC_VEN,\"...\");\n vecCab.add(INT_TBL_DAT_VAL_CAN,\"Val.Can.\");\n vecCab.add(INT_TBL_DAT_CHK_CANCELAR,\"Cancelar\");\n vecCab.add(INT_TBL_DAT_BUT_LIS_CAN,\"...\");\n vecCab.add(INT_TBL_DAT_CHK_NOT_PRO_RES,\"No tiene\");\n vecCab.add(INT_TBL_DAT_CHK_PEN_PRO_RES,\"Pendiente\");\n vecCab.add(INT_TBL_DAT_CHK_COM_PRO_RES,\"Completo\");\n vecCab.add(INT_TBL_DAT_EST_SOL_RES,\"J:Sol.Res.\");\n vecCab.add(INT_TBL_DAT_MOM_DES_SOL_RES,\"J:Mom.Des.Sol.Res.\");\n vecCab.add(INT_TBL_DAT_EST_FAC_PRI_DIA_LAB,\"J:st_genFacPriDiaLabMes\");\n \n vecCab.add(INT_TBL_DAT_STR_TIP_RES_INV,\"J:tx_tipResInv\");\n \n objTblMod=new ZafTblMod();\n objTblMod.setHeader(vecCab);\n //objTblMod.setFilasEditables(vecDat);n\n tblDat.setModel(objTblMod); \n //Configurar JTable: Establecer tipo de selección.\n tblDat.setCellSelectionEnabled(true);\n //tblDat.setRowSelectionAllowed(true);\n tblDat.setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n //Configurar JTable: Establecer la fila de cabecera.\n objColNum=new ZafColNumerada(tblDat,INT_TBL_DAT_LIN);\n //Configurar JTable: Establecer el menú de contexto.\n objTblPopMnu=new ZafTblPopMnu(tblDat);\n objTblPopMnu.setPegarEnabled(false);\n objTblPopMnu.setBorrarContenidoEnabled(true);\n //Configurar JTable: Establecer el tipo de redimensionamiento de las columnas.\n tblDat.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n //Configurar JTable: Establecer el ancho de las columnas.\n javax.swing.table.TableColumnModel tcmAux=tblDat.getColumnModel();\n\n tcmAux.getColumn(INT_TBL_DAT_LIN).setPreferredWidth(20);\n tcmAux.getColumn(INT_TBL_DAT_COD_EMP).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_NOM_EMP).setPreferredWidth(70);\n tcmAux.getColumn(INT_TBL_DAT_COD_LOC).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_NOM_LOC).setPreferredWidth(70);\n tcmAux.getColumn(INT_TBL_DAT_COD_COT).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_FEC_COT).setPreferredWidth(70);\n tcmAux.getColumn(INT_TBL_DAT_COD_CLI).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_NOM_CLI).setPreferredWidth(150);\n tcmAux.getColumn(INT_TBL_DAT_TOT_COT).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_BTN_COT_VEN).setPreferredWidth(30);\n \n tcmAux.getColumn(INT_TBL_DAT_COD_TIP_SOL).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_BTN_TIP_SOL).setPreferredWidth(30);\n tcmAux.getColumn(INT_TBL_DAT_TIP_SOL).setPreferredWidth(200);\n tcmAux.getColumn(INT_TBL_DAT_FEC_SOL).setPreferredWidth(70);\n tcmAux.getColumn(INT_TBL_DAT_CHK_SOL_RES).setPreferredWidth(30);//JM\n tcmAux.getColumn(INT_TBL_DAT_OBS_SOL_RES).setPreferredWidth(70);\n tcmAux.getColumn(INT_TBL_DAT_BTN_OBS_SOL_RES).setPreferredWidth(40);\n tcmAux.getColumn(INT_TBL_DAT_CHK_PED_OTR_BOD).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_BTN_PED_OTR_BOD).setPreferredWidth(30);\n tcmAux.getColumn(INT_TBL_DAT_CHK_SOL_ENV_PED).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_CHK_PENDIENTE).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_CHK_AUTORIZAR).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_CHK_DENEGAR).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_CHK_AUT_ENV_PED).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_FEC_SOL_FAC_AUT).setPreferredWidth(70);\n tcmAux.getColumn(INT_TBL_DAT_OBS_AUT_RES).setPreferredWidth(70);\n tcmAux.getColumn(INT_TBL_DAT_BTN_OBS_AUT_RES).setPreferredWidth(30);\n \n tcmAux.getColumn(INT_TBL_DAT_VAL_FAC).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_BTN_LIS_FAC_VEN).setPreferredWidth(30);\n \n tcmAux.getColumn(INT_TBL_DAT_VAL_CAN).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_CHK_CANCELAR).setPreferredWidth(30);\n tcmAux.getColumn(INT_TBL_DAT_BUT_LIS_CAN).setPreferredWidth(30);\n\n tcmAux.getColumn(INT_TBL_DAT_CHK_NOT_PRO_RES).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_CHK_PEN_PRO_RES).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_CHK_COM_PRO_RES).setPreferredWidth(60);\n \n tcmAux.getColumn(INT_TBL_DAT_EST_SOL_RES).setPreferredWidth(10);\n tcmAux.getColumn(INT_TBL_DAT_MOM_DES_SOL_RES).setPreferredWidth(10);\n tcmAux.getColumn(INT_TBL_DAT_EST_FAC_PRI_DIA_LAB).setPreferredWidth(10);\n tcmAux.getColumn(INT_TBL_DAT_STR_TIP_RES_INV).setPreferredWidth(10);\n \n \n \n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_COD_EMP, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_COD_LOC, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_COD_TIP_SOL, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_CHK_SOL_RES, tblDat); \n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_EST_SOL_RES, tblDat); // Estado\n \n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_MOM_DES_SOL_RES, tblDat); // J\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_EST_FAC_PRI_DIA_LAB, tblDat); // J\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_STR_TIP_RES_INV, tblDat); // J\n \n if(objParSis.getCodigoMenu()==4150){\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_BTN_TIP_SOL, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_TIP_SOL, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_CHK_SOL_RES, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_CHK_SOL_ENV_PED, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_CHK_PENDIENTE, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_CHK_AUTORIZAR, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_CHK_DENEGAR, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_CHK_AUT_ENV_PED, tblDat);\n \n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_FEC_SOL, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_VAL_FAC, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_BTN_LIS_FAC_VEN, tblDat);\n \n }\n \n \n //Configurar JTable: Establecer las columnas que no se pueden redimensionar.\n tcmAux.getColumn(INT_TBL_DAT_COD_EMP).setResizable(false);\n tcmAux.getColumn(INT_TBL_DAT_COD_LOC).setResizable(false);\n \n objTblCelRenLblCod=new ZafTblCelRenLbl();\n objTblCelRenLblCod.setHorizontalAlignment(javax.swing.JLabel.RIGHT);\n tcmAux.getColumn(INT_TBL_DAT_COD_EMP).setCellRenderer(objTblCelRenLblCod);\n tcmAux.getColumn(INT_TBL_DAT_COD_LOC).setCellRenderer(objTblCelRenLblCod);\n tcmAux.getColumn(INT_TBL_DAT_COD_COT).setCellRenderer(objTblCelRenLblCod);\n tcmAux.getColumn(INT_TBL_DAT_COD_CLI).setCellRenderer(objTblCelRenLblCod);\n \n \n \n tcmAux.getColumn(INT_TBL_DAT_FEC_COT).setCellEditor(new Librerias.ZafTblUti.ZafDtePckEdi.ZafDtePckEdi(strFormatoFecha));\n tcmAux.getColumn(INT_TBL_DAT_FEC_SOL).setCellEditor(new Librerias.ZafTblUti.ZafDtePckEdi.ZafDtePckEdi(strFormatoFecha));\n tcmAux.getColumn(INT_TBL_DAT_FEC_SOL_FAC_AUT).setCellEditor(new Librerias.ZafTblUti.ZafDtePckEdi.ZafDtePckEdi(strFormatoFecha));\n \n \n //Configurar JTable: Establecer el tipo de reordenamiento de columnas.\n tblDat.getTableHeader().setReorderingAllowed(false);\n //Configurar JTable: Mostrar ToolTipText en la cabecera de las columnas.\n objMouMotAda=new ZafMouMotAda();\n tblDat.getTableHeader().addMouseMotionListener(objMouMotAda);\n //Configurar JTable: Establecer columnas editables.\n vecAux=new Vector();\n vecAux.add(\"\" + INT_TBL_DAT_BTN_COT_VEN);\n /* SOLICITUD DE RESERVA */\n if(objParSis.getCodigoMenu()==4142){\n vecAux.add(\"\" + INT_TBL_DAT_BTN_TIP_SOL);\n vecAux.add(\"\" + INT_TBL_DAT_FEC_SOL);\n }\n vecAux.add(\"\" + INT_TBL_DAT_BTN_OBS_SOL_RES);\n vecAux.add(\"\" + INT_TBL_DAT_OBS_SOL_RES);\n vecAux.add(\"\"+INT_TBL_DAT_BTN_PED_OTR_BOD); // JM 27/Abril/2018\n \n /* AUTORIZACION DE RESERVA */\n if(objParSis.getCodigoMenu()==4146){\n vecAux.add(\"\" + INT_TBL_DAT_CHK_AUTORIZAR);\n vecAux.add(\"\" + INT_TBL_DAT_CHK_DENEGAR);\n vecAux.add(\"\" + INT_TBL_DAT_FEC_SOL_FAC_AUT);\n }\n \n /* NO ES SOLICITUD DE RESERVA PUEDE VER LA OBSERVACION DE LA AUTORIZACION */\n if(objParSis.getCodigoMenu()!=4142){\n vecAux.add(\"\" + INT_TBL_DAT_OBS_AUT_RES);\n vecAux.add(\"\" + INT_TBL_DAT_BTN_OBS_AUT_RES);\n }\n \n \n /* CANCELACION DE RESERVA */\n if(objParSis.getCodigoMenu()==4150){\n vecAux.add(\"\" + INT_TBL_DAT_BUT_LIS_CAN);\n }\n vecAux.add(\"\" + INT_TBL_DAT_BTN_LIS_FAC_VEN);\n objTblMod.setColumnasEditables(vecAux);\n vecAux=null;\n //Configurar JTable: Editor de la tabla.\n \n \n //AUTORIZACION\n ZafTblHeaGrp objTblHeaGrp=(ZafTblHeaGrp)tblDat.getTableHeader();\n objTblHeaGrp.setHeight(16*2);\n \n ZafTblHeaColGrp objTblHeaColGrpCot=new ZafTblHeaColGrp(\"Paso 1: Cotizaciones de Venta\");\n objTblHeaColGrpCot.setHeight(16);\n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_COD_EMP)); \n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_NOM_EMP)); \n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_COD_LOC)); \n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_NOM_LOC)); \n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_COD_COT));\n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_FEC_COT));\n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_COD_CLI));\n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_NOM_CLI));\n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_TOT_COT));\n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_BTN_COT_VEN));\n \n ZafTblHeaColGrp objTblHeaColGrpSol=new ZafTblHeaColGrp(\"Paso 2: Solicitud de Reserva\");\n objTblHeaColGrpSol.setHeight(16);\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_COD_TIP_SOL));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_BTN_TIP_SOL));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_TIP_SOL));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_FEC_SOL));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_CHK_SOL_RES));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_OBS_SOL_RES));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_BTN_OBS_SOL_RES));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_CHK_PED_OTR_BOD));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_BTN_PED_OTR_BOD));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_CHK_SOL_ENV_PED));\n \n ZafTblHeaColGrp objTblHeaColGrp=new ZafTblHeaColGrp(\"Paso 3: Autorizacion\");\n objTblHeaColGrp.setHeight(16);\n objTblHeaColGrp.add(tcmAux.getColumn(INT_TBL_DAT_CHK_PENDIENTE)); \n objTblHeaColGrp.add(tcmAux.getColumn(INT_TBL_DAT_CHK_AUTORIZAR)); \n objTblHeaColGrp.add(tcmAux.getColumn(INT_TBL_DAT_CHK_DENEGAR)); \n objTblHeaColGrp.add(tcmAux.getColumn(INT_TBL_DAT_CHK_AUT_ENV_PED)); \n objTblHeaColGrp.add(tcmAux.getColumn(INT_TBL_DAT_FEC_SOL_FAC_AUT)); \n objTblHeaColGrp.add(tcmAux.getColumn(INT_TBL_DAT_OBS_AUT_RES)); \n objTblHeaColGrp.add(tcmAux.getColumn(INT_TBL_DAT_BTN_OBS_AUT_RES)); \n \n ZafTblHeaColGrp objTblHeaColFac=new ZafTblHeaColGrp(\"Paso 4: Factura de Ventas\");\n objTblHeaColFac.setHeight(16);\n objTblHeaColFac.add(tcmAux.getColumn(INT_TBL_DAT_VAL_FAC)); \n objTblHeaColFac.add(tcmAux.getColumn(INT_TBL_DAT_BTN_LIS_FAC_VEN)); \n \n ZafTblHeaColGrp objTblHeaColCan=new ZafTblHeaColGrp(\"Paso 5: Cancelacion\");\n objTblHeaColCan.setHeight(16);\n objTblHeaColCan.add(tcmAux.getColumn(INT_TBL_DAT_VAL_CAN)); \n objTblHeaColCan.add(tcmAux.getColumn(INT_TBL_DAT_CHK_CANCELAR)); \n objTblHeaColCan.add(tcmAux.getColumn(INT_TBL_DAT_BUT_LIS_CAN)); \n \n ZafTblHeaColGrp objTblHeaColResPro=new ZafTblHeaColGrp(\"Resumen del Proceso\");\n objTblHeaColResPro.setHeight(16);\n objTblHeaColResPro.add(tcmAux.getColumn(INT_TBL_DAT_CHK_NOT_PRO_RES)); \n objTblHeaColResPro.add(tcmAux.getColumn(INT_TBL_DAT_CHK_PEN_PRO_RES)); \n objTblHeaColResPro.add(tcmAux.getColumn(INT_TBL_DAT_CHK_COM_PRO_RES)); \n \n objTblHeaGrp.addColumnGroup(objTblHeaColGrpCot);\n objTblHeaGrp.addColumnGroup(objTblHeaColGrpSol);\n objTblHeaGrp.addColumnGroup(objTblHeaColGrp);\n objTblHeaGrp.addColumnGroup(objTblHeaColFac);\n objTblHeaGrp.addColumnGroup(objTblHeaColCan);\n objTblHeaGrp.addColumnGroup(objTblHeaColResPro);\n \n \n objTblHeaColGrpCot=null;\n objTblHeaColGrp=null;\n objTblHeaColGrpSol=null;\n objTblHeaColFac=null;\n objTblHeaColCan = null;\n \n \n //Configurar JTable: Establecer la fila de cabecera.\n objTblFilCab=new ZafTblFilCab(tblDat);\n tcmAux.getColumn(INT_TBL_DAT_LIN).setCellRenderer(objTblFilCab);\n objTblFilCab=null;\n \n //botones agregados\n objTblCelRenBut=new ZafTblCelRenBut();\n tcmAux.getColumn(INT_TBL_DAT_BTN_COT_VEN).setCellRenderer(objTblCelRenBut);\n tcmAux.getColumn(INT_TBL_DAT_BTN_TIP_SOL).setCellRenderer(objTblCelRenBut);\n tcmAux.getColumn(INT_TBL_DAT_BTN_OBS_SOL_RES).setCellRenderer(objTblCelRenBut);\n tcmAux.getColumn(INT_TBL_DAT_BTN_OBS_AUT_RES).setCellRenderer(objTblCelRenBut); \n tcmAux.getColumn(INT_TBL_DAT_BUT_LIS_CAN).setCellRenderer(objTblCelRenBut);\n tcmAux.getColumn(INT_TBL_DAT_BTN_LIS_FAC_VEN).setCellRenderer(objTblCelRenBut);\n \n tcmAux.getColumn(INT_TBL_DAT_BTN_PED_OTR_BOD).setCellRenderer(objTblCelRenBut);\n objTblCelRenBut=null;\n\n //Cheks \n objTblCelRenChk=new ZafTblCelRenChk();\n tcmAux.getColumn(INT_TBL_DAT_CHK_PED_OTR_BOD).setCellRenderer(objTblCelRenChk); // SOLICITAR RESERVA\n tcmAux.getColumn(INT_TBL_DAT_CHK_SOL_ENV_PED).setCellRenderer(objTblCelRenChk); // FACTURA AUTOMATICA\n tcmAux.getColumn(INT_TBL_DAT_CHK_PENDIENTE).setCellRenderer(objTblCelRenChk); // AUTORIZAR \n tcmAux.getColumn(INT_TBL_DAT_CHK_AUTORIZAR).setCellRenderer(objTblCelRenChk); // DENEGAR \n tcmAux.getColumn(INT_TBL_DAT_CHK_DENEGAR).setCellRenderer(objTblCelRenChk); \n tcmAux.getColumn(INT_TBL_DAT_CHK_AUT_ENV_PED).setCellRenderer(objTblCelRenChk); \n tcmAux.getColumn(INT_TBL_DAT_CHK_NOT_PRO_RES).setCellRenderer(objTblCelRenChk); \n tcmAux.getColumn(INT_TBL_DAT_CHK_PEN_PRO_RES).setCellRenderer(objTblCelRenChk); \n tcmAux.getColumn(INT_TBL_DAT_CHK_COM_PRO_RES).setCellRenderer(objTblCelRenChk); \n tcmAux.getColumn(INT_TBL_DAT_CHK_SOL_RES).setCellRenderer(objTblCelRenChk); // JoseMario \n \n \n \n objTblCelRenChk = null;\n \n objTblCelRenChk2=new ZafTblCelRenChk();\n tcmAux.getColumn(INT_TBL_DAT_CHK_PED_OTR_BOD).setCellRenderer(objTblCelRenChk2); // SOLICITAR RESERVA\n tcmAux.getColumn(INT_TBL_DAT_CHK_SOL_ENV_PED).setCellRenderer(objTblCelRenChk2); // FACTURA AUTOMATICA\n \n \n objTblCelRenChk2.addTblCelRenListener(new ZafTblCelRenAdapter() \n {\n @Override\n public void beforeRender(ZafTblCelRenEvent evt){\n if (objTblMod.getValueAt(objTblCelRenChk2.getRowRender(), INT_TBL_DAT_CHK_PED_OTR_BOD).equals(true)){\n objTblCelRenChk2.setBackground(Color.RED);\n }\n else{\n objTblCelRenChk2.setBackground(Color.WHITE);\n }\n }\n });\n /*-----------------------------------------------------*/\n \n objTblCelRenLbl = new Librerias.ZafTblUti.ZafTblCelRenLbl.ZafTblCelRenLbl();\n objTblCelRenLbl.setHorizontalAlignment(javax.swing.JLabel.RIGHT);\n objTblCelRenLbl.setTipoFormato(ZafTblCelRenLbl.INT_FOR_NUM);\n objTblCelRenLbl.setFormatoNumerico(objParSis.getFormatoNumero(), true, true);\n tcmAux.getColumn(INT_TBL_DAT_TOT_COT).setCellRenderer(objTblCelRenLbl); \n tcmAux.getColumn(INT_TBL_DAT_VAL_FAC).setCellRenderer(objTblCelRenLbl);\n tcmAux.getColumn(INT_TBL_DAT_VAL_CAN).setCellRenderer(objTblCelRenLbl);\n objTblCelRenLbl = null;\n \n \n \n objTblCelRenLbl = new Librerias.ZafTblUti.ZafTblCelRenLbl.ZafTblCelRenLbl();\n objTblCelRenLbl.setBackground(objParSis.getColorCamposObligatorios());\n tcmAux.getColumn(INT_TBL_DAT_TIP_SOL).setCellRenderer(objTblCelRenLbl);\n tcmAux.getColumn(INT_TBL_DAT_FEC_SOL).setCellRenderer(objTblCelRenLbl);\n tcmAux.getColumn(INT_TBL_DAT_FEC_SOL_FAC_AUT).setCellRenderer(objTblCelRenLbl);\n objTblCelRenLbl = null;\n \n \n ButCotVen butCotVen = new ButCotVen(tblDat, INT_TBL_DAT_BTN_COT_VEN); //*****\n ButObsSolRes butObsSolRes = new ButObsSolRes(tblDat, INT_TBL_DAT_BTN_OBS_SOL_RES); //*****\n ButObsAutResVen butObsAutResVen = new ButObsAutResVen(tblDat, INT_TBL_DAT_BTN_OBS_AUT_RES); //*****\n ButLisCanResVen butLisCanResVen = new ButLisCanResVen(tblDat, INT_TBL_DAT_BUT_LIS_CAN); //*****\n ButLisFacVen butLisFacVen = new ButLisFacVen(tblDat, INT_TBL_DAT_BTN_LIS_FAC_VEN); //*****\n \n ButLisPedOtrBod butPedOtrBod = new ButLisPedOtrBod(tblDat, INT_TBL_DAT_BTN_PED_OTR_BOD);\n \n \n \n \n \n objTblMod.setModoOperacion(objTblMod.INT_TBL_EDI);\n objTblOrd=new ZafTblOrd(tblDat);\n objTblBus=new ZafTblBus(tblDat);\n objDocLis=new ZafDocLis();\n \n configurarVenConCli();\n configurarVenConVen();\n configurarTblLoc();\n cargarLoc();\n configurarVenConTipSol();\n \n if(objParSis.getCodigoMenu()==4150){\n txtCodTipSol.setText(\"5\");\n if (!txtCodTipSol.getText().equalsIgnoreCase(strCodTipSol)){\n if (txtCodTipSol.getText().equals(\"\")){\n txtCodTipSol.setText(\"\");\n txtNomTipSol.setText(\"\");\n }\n else{\n mostrarVenConTipSol(1);\n }\n }\n else\n txtCodTipSol.setText(strCodTipSol);\n }\n \n \n \n int intColVen[]=new int[5];\n intColVen[0]=1;\n intColVen[1]=2;\n intColVen[2]=5;//tx_momDes\n intColVen[3]=4;//st_facPriDiaLab\n intColVen[4]=3;\n int intColTbl[]=new int[5];\n intColTbl[0]=INT_TBL_DAT_COD_TIP_SOL;\n intColTbl[1]=INT_TBL_DAT_TIP_SOL;\n intColTbl[2]=INT_TBL_DAT_MOM_DES_SOL_RES;\n intColTbl[3]=INT_TBL_DAT_EST_FAC_PRI_DIA_LAB;\n intColTbl[4]=INT_TBL_DAT_STR_TIP_RES_INV;\n objTblCelEdiButVcoTipSolRes=new ZafTblCelEdiButVco(tblDat, vcoTipSol, intColVen, intColTbl);\n tcmAux.getColumn(INT_TBL_DAT_BTN_TIP_SOL).setCellEditor(objTblCelEdiButVcoTipSolRes);\n objTblCelEdiButVcoTipSolRes.addTableEditorListener(new Librerias.ZafTblUti.ZafTblEvt.ZafTableAdapter() {\n String strFacPriDiaMes=\"\";\n int intCodEmp,intCodLoc,intRow;\n public void beforeEdit(Librerias.ZafTblUti.ZafTblEvt.ZafTableEvent evt) {\n if(objTblMod.getValueAt(tblDat.getSelectedRow(), INT_TBL_DAT_EST_SOL_RES)!=null){\n MensajeInf(\"NO ES POSIBLE MODIFICAR UNA SOLICITUD DE RESERVA\");\n objTblCelEdiButVcoTipSolRes.setEnabled(false);\n }\n else{\n objTblCelEdiButVcoTipSolRes.setEnabled(true);\n }\n }\n public void afterEdit(Librerias.ZafTblUti.ZafTblEvt.ZafTableEvent evt){\n intCodEmp = Integer.parseInt(objTblMod.getValueAt(tblDat.getSelectedRow(), INT_TBL_DAT_COD_EMP).toString());\n intCodLoc = Integer.parseInt(objTblMod.getValueAt(tblDat.getSelectedRow(), INT_TBL_DAT_COD_LOC).toString());\n intRow = tblDat.getSelectedRow();\n if( vcoTipSol.getValueAt(4)!=null){\n strFacPriDiaMes = vcoTipSol.getValueAt(4).toString();\n if(strFacPriDiaMes.equals(\"S\")){\n objTblMod.setValueAt( getFechaLab(intCodEmp, intCodLoc), intRow, INT_TBL_DAT_FEC_SOL);\n }\n }else{\n tblDat.editCellAt(tblDat.getSelectedRow(), INT_TBL_DAT_FEC_SOL);\n } \n /* solicitando enviar mercaderia antes de que se genere la factura */\n if(vcoTipSol.getValueAt(5)!=null){\n if(vcoTipSol.getValueAt(5).toString().equals(\"A\")){\n objTblMod.setValueAt(true, intRow, INT_TBL_DAT_CHK_SOL_ENV_PED); \n }\n else{\n objTblMod.setValueAt(false, intRow, INT_TBL_DAT_CHK_SOL_ENV_PED);\n }\n }\n else{\n objTblMod.setValueAt(false, intRow, INT_TBL_DAT_CHK_SOL_ENV_PED);\n }\n\n if(objTblMod.getValueAt(intRow, INT_TBL_DAT_COD_TIP_SOL)!=null){\n objTblMod.setValueAt(true, intRow, INT_TBL_DAT_CHK_SOL_RES);\n }\n \n }\n });\n intColVen=null;\n intColTbl=null;\n \n \n /* VALIDACIONES DE FECHAS DOCUMENTOS */\n \n \n \n /* VALIDACIONES DE FECHAS DOCUMENTOS */\n \n \n \n /* Renderizadores - Autorizacion */\n \n objTblCelEdiChkPre = new ZafTblCelEdiChk(tblDat);\n tcmAux.getColumn(INT_TBL_DAT_CHK_AUTORIZAR).setCellEditor(objTblCelEdiChkPre);\n objTblCelEdiChkPre.addTableEditorListener(new Librerias.ZafTblUti.ZafTblEvt.ZafTableAdapter() {\n String strFecSolRes=\"\";\n String strMensaje=\"<html>La Solicitud presenta envio de material antes de la generacion de la factura. <BR> ¿Está seguro que desea realizar esta operación?<html>\";\n String strMenEmp=\"<html>La Solicitud de reserva en la misma empresa posee <FONT COLOR=\\\"red\\\">Transferencias de Inventario. </FONT> <BR> ¿Está seguro que desea realizar esta operación?<html>\";\n public void afterEdit(Librerias.ZafTblUti.ZafTblEvt.ZafTableEvent evt) {\n int intNumFil = tblDat.getSelectedRow();\n strFecSolRes = objTblMod.getValueAt(intNumFil, INT_TBL_DAT_FEC_SOL).toString();\n System.out.println(\"strFecSolRes: \" + strFecSolRes);\n objTblMod.setValueAt(strFecSolRes, intNumFil, INT_TBL_DAT_FEC_SOL_FAC_AUT); \n \n /* Reserva con facturación automatica */ \n if(objTblMod.getValueAt(intNumFil, INT_TBL_DAT_MOM_DES_SOL_RES)!=null){\n if(objTblMod.getValueAt(intNumFil, INT_TBL_DAT_MOM_DES_SOL_RES).toString().equals(\"A\")){\n quitarChksAutorizacion(intNumFil,INT_TBL_DAT_CHK_AUTORIZAR);\n if (mostrarMsgCon(strMensaje)==0){\n objTblMod.setValueAt(true, intNumFil, INT_TBL_DAT_CHK_AUT_ENV_PED); \n }\n else{\n System.out.println(\"NOoo....\");\n quitarChksAutorizacion(intNumFil,INT_TBL_DAT_CHK_DENEGAR);\n }\n }\n }\n \n \n \n /* Reserva en la propia empresa */ \n if(objTblMod.getValueAt(intNumFil, INT_TBL_DAT_CHK_PED_OTR_BOD).equals(true)){\n if(objTblMod.getValueAt(intNumFil,INT_TBL_DAT_STR_TIP_RES_INV).toString().equals(\"R\")){\n if (mostrarMsgCon(strMenEmp)==0){\n objTblMod.setValueAt(true, intNumFil, INT_TBL_DAT_CHK_AUT_ENV_PED); \n }\n else{\n System.out.println(\"NOoo....\");\n quitarChksAutorizacion(intNumFil,INT_TBL_DAT_CHK_DENEGAR);\n }\n }\n }\n \n \n }\n });\n \n objTblCelEdiChkPre = new ZafTblCelEdiChk(tblDat);\n tcmAux.getColumn(INT_TBL_DAT_CHK_DENEGAR).setCellEditor(objTblCelEdiChkPre);\n objTblCelEdiChkPre.addTableEditorListener(new Librerias.ZafTblUti.ZafTblEvt.ZafTableAdapter() {\n public void afterEdit(Librerias.ZafTblUti.ZafTblEvt.ZafTableEvent evt) {\n int intNumFil = tblDat.getSelectedRow();\n quitarChksAutorizacion(intNumFil,INT_TBL_DAT_CHK_DENEGAR);\n }\n });\n \n \n /* Renderizadores - Autorizacion */\n \n if (objParSis.getCodigoEmpresa()==objParSis.getCodigoEmpresaGrupo()){\n txtCodCli.setEditable(false);\n txtDesLarCli.setEditable(false);\n butCli.setEnabled(false);\n }\n \n int intCol[]={INT_TBL_DAT_TOT_COT, INT_TBL_DAT_VAL_FAC, INT_TBL_DAT_VAL_CAN};\n objTblTot=new ZafTblTot(spnRpt, spnTot, tblDat, tblTot, intCol);\n \n //Configurar JTable: Detectar cambios de valores en las celdas.\n objTblModLis=new ZafTblModLis();\n objTblMod.addTableModelListener(objTblModLis); \n }\n catch(Exception e){\n blnRes=false;\n objUti.mostrarMsgErr_F1(this, e);\n }\n return blnRes;\n }", "private void jBtn_ModifierActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtn_ModifierActionPerformed\n // Si onglet Client\n if(numOnglet() == 0){\n // On stock l index quand une ligne de la table est selectionnnee\n int rowIndex = jTable_Clients.getSelectedRow();\n // Si pas de ligne selectionnee\n if(rowIndex == -1){\n showMessageDialog(null, \"Veuillez sélectionner la ligne du Client\"\n + \" à modifier\");\n }\n else{\n Formulaire_Client creaClient = new Formulaire_Client(laListeClient.get(rowIndex));\n creaClient.setVisible(true);\n this.setVisible(false);\n }\n }\n // Onglet Propsect\n else{\n // On stock l index quand une ligne de la table est selectionnnee\n int rowIndex = jTable_Prospects.getSelectedRow();\n // Si pas de ligne selectionnee\n if(rowIndex == -1){\n showMessageDialog(null, \"Veuillez sélectionner la ligne du Prospect\"\n + \" à modifier\");\n }\n else{\n Formulaire_Prospect creaProspect = new Formulaire_Prospect(laListeProspeect.get(rowIndex));\n creaProspect.setVisible(true);\n this.setVisible(false);\n }\n } \n }", "private void gaVerder()\n {\n /**\n * Dialog tonen waarbij de gebruiker de keuze krijgt om al dan niet nog een spelbord te maken.\n */\n Alert keuze = new Alert(Alert.AlertType.CONFIRMATION);\n keuze.setTitle(ResourceHandling.getInstance().getString(\"Configureer.gaverder\"));\n keuze.setHeaderText(ResourceHandling.getInstance().getString(\"Knop.verder\"));\n\n ButtonType btnNieuw = new ButtonType(ResourceHandling.getInstance().getString(\"Spelbord.nieuw\"));\n ButtonType btnCancel = new ButtonType(ResourceHandling.getInstance().getString(\"Annuleer.knop\"));\n\n keuze.getButtonTypes().setAll(btnCancel, btnNieuw);\n Optional<ButtonType> result = keuze.showAndWait();\n\n if (result.get() == btnNieuw)\n {\n LoaderSchermen.getInstance().load(\"Sokoban\", new GaVerderSchermController(dc), 488, 213, this);\n } else\n {\n LoaderSchermen.getInstance().load(\"Sokoban\", new KiesConfigureerSchermController(dc), 300, 300, this);\n }\n }", "public static String _imglarvas_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 211;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 212;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 213;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 214;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 215;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 216;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 217;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 218;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 219;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 220;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 221;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 222;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 223;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 224;BA.debugLine=\"lblEstadio.Visible = False\";\nmostCurrent._lblestadio.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 226;BA.debugLine=\"lblFondo.Initialize(\\\"\\\")\";\nmostCurrent._lblfondo.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 227;BA.debugLine=\"lblFondo.Color = Colors.ARGB(30,255,94,94)\";\nmostCurrent._lblfondo.setColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (30),(int) (255),(int) (94),(int) (94)));\n //BA.debugLineNum = 228;BA.debugLine=\"Activity.AddView(lblFondo,0,0,100%x,100%y)\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._lblfondo.getObject()),(int) (0),(int) (0),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (100),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA));\n //BA.debugLineNum = 230;BA.debugLine=\"panelPopUps_2.Initialize(\\\"\\\")\";\nmostCurrent._panelpopups_2.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 231;BA.debugLine=\"panelPopUps_2.LoadLayout(\\\"lay_Mosquito_PopUps\\\")\";\nmostCurrent._panelpopups_2.LoadLayout(\"lay_Mosquito_PopUps\",mostCurrent.activityBA);\n //BA.debugLineNum = 233;BA.debugLine=\"lblPopUp_Descripcion.Text = \\\"\\\"\";\nmostCurrent._lblpopup_descripcion.setText(BA.ObjectToCharSequence(\"\"));\n //BA.debugLineNum = 234;BA.debugLine=\"imgPopUp.Visible = True\";\nmostCurrent._imgpopup.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 235;BA.debugLine=\"imgPopUp.RemoveView\";\nmostCurrent._imgpopup.RemoveView();\n //BA.debugLineNum = 236;BA.debugLine=\"imgPopUp.Initialize(\\\"\\\")\";\nmostCurrent._imgpopup.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 237;BA.debugLine=\"imgPopUp.Bitmap = LoadBitmap(File.DirAssets, \\\"mos\";\nmostCurrent._imgpopup.setBitmap((android.graphics.Bitmap)(anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),\"mosquito_larvaFoto.png\").getObject()));\n //BA.debugLineNum = 238;BA.debugLine=\"imgPopUp.Gravity = Gravity.FILL\";\nmostCurrent._imgpopup.setGravity(anywheresoftware.b4a.keywords.Common.Gravity.FILL);\n //BA.debugLineNum = 239;BA.debugLine=\"btnCerrarPopUp.RemoveView\";\nmostCurrent._btncerrarpopup.RemoveView();\n //BA.debugLineNum = 240;BA.debugLine=\"btnCerrarPopUp.Initialize(\\\"btnCerrarPopUp_Larvas\\\"\";\nmostCurrent._btncerrarpopup.Initialize(mostCurrent.activityBA,\"btnCerrarPopUp_Larvas\");\n //BA.debugLineNum = 241;BA.debugLine=\"btnCerrarPopUp.Typeface = Typeface.FONTAWESOME\";\nmostCurrent._btncerrarpopup.setTypeface(anywheresoftware.b4a.keywords.Common.Typeface.getFONTAWESOME());\n //BA.debugLineNum = 242;BA.debugLine=\"btnCerrarPopUp.Text = \\\"\\\"\";\nmostCurrent._btncerrarpopup.setText(BA.ObjectToCharSequence(\"\"));\n //BA.debugLineNum = 243;BA.debugLine=\"btnCerrarPopUp.TextSize = 30\";\nmostCurrent._btncerrarpopup.setTextSize((float) (30));\n //BA.debugLineNum = 244;BA.debugLine=\"btnCerrarPopUp.Color = Colors.ARGB(150,255,255,25\";\nmostCurrent._btncerrarpopup.setColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (150),(int) (255),(int) (255),(int) (255)));\n //BA.debugLineNum = 245;BA.debugLine=\"btnCerrarPopUp.TextColor = Colors.ARGB(255,255,11\";\nmostCurrent._btncerrarpopup.setTextColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (255),(int) (255),(int) (117),(int) (117)));\n //BA.debugLineNum = 246;BA.debugLine=\"panelPopUps_2.AddView(imgPopUp, 0%x, 0%y, 70%x, 7\";\nmostCurrent._panelpopups_2.AddView((android.view.View)(mostCurrent._imgpopup.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (0),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (0),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (70),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (70),mostCurrent.activityBA));\n //BA.debugLineNum = 247;BA.debugLine=\"panelPopUps_2.AddView(btnCerrarPopUp, 56%x, 0%y,\";\nmostCurrent._panelpopups_2.AddView((android.view.View)(mostCurrent._btncerrarpopup.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (56),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (0),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (50)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (50)));\n //BA.debugLineNum = 248;BA.debugLine=\"Activity.AddView(panelPopUps_2, 15%x, 15%y, 70%x,\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._panelpopups_2.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (70),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (70),mostCurrent.activityBA));\n //BA.debugLineNum = 249;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private void btndanhsachbandocActionPerformed(java.awt.event.ActionEvent evt) {\n showDuLieu();\n }", "private void LoginButtonActionPerformed(java.awt.event.ActionEvent evt) {\n String id = jTextField2.getText().toString();\n String password = jPasswordField1.getText();\n \n \n \n String getusername = jTextField2.getText().toString();\n String display=lms.DisplayName(getusername);\n System.out.println(display);\n switch (selected) {\n case 1:\n {\n boolean logincheck=lms.checkBorrowerLogin(id,password);\n if(logincheck){\n BorrowerHome b = new BorrowerHome(lms,display,id);\n b.setVisible(true);\n }\n break;\n }\n case 2:\n {\n boolean logincheck=lms.checkClerkLogin(id,password);\n if(logincheck){\n ClerkHome c = new ClerkHome(lms,display,id);\n c.setVisible(true);\n }\n else\n {\n JOptionPane.showMessageDialog(null,\"Invalid login\");\n } \n break;\n }\n case 3:\n { \n boolean logincheck=lms.checkLibrarianLogin(id,password);\n if(logincheck){\n LibrarianHome c = new LibrarianHome(lms,display,id);\n c.setVisible(true);\n }\n else\n {\n JOptionPane.showMessageDialog(null,\"Invalid login\");\n } \n break;\n }\n default:\n {\n boolean logincheck=lms.checkBorrowerLogin(id,password);\n if(logincheck){\n BorrowerHome b = new BorrowerHome(lms,display,id);\n b.setVisible(true);\n }\n else\n {\n JOptionPane.showMessageDialog(null,\"Invalid login\");\n } \n break;\n }\n }\n \n// else\n// {\n// JOptionPane.showMessageDialog(null,\"Invalid login\");\n// } \n\n \n }", "@Override\n public void buttonClick(ClickEvent event) {\n try {\n boolean terminado = false;\n ProfesorDAO profesorDAO = new ProfesorDAO();\n List<Profesor> listProf = new ArrayList<>();\n listProf.addAll(profesorDAO.listaProfesores());\n Iterator<Profesor> it = listProf.iterator();\n\n if (!email_profesor.equals(\"\")) {\n if (!id_profesor.equals(\"\")) {\n if (password_profesor.equals(repassword_profesor)) {\n while ((it.hasNext() && terminado == false)) {\n Profesor p = it.next();\n if (p.getEmail().equals(email_profesor.getValue()) || p.getIdProfesor().equals(id_profesor)) {\n terminado = true;\n Notification.show(\"Campo email o identificador ya usado por otro usuario\", Notification.Type.WARNING_MESSAGE);\n }\n }\n } else {\n //Notification.show(\"No coincide los campos contraseña y repetir contraseña\", Notification.Type.WARNING_MESSAGE);\n }\n } else {\n Notification.show(\"Campo identificador vacio\", Notification.Type.WARNING_MESSAGE);\n }\n } else {\n Notification.show(\"Campo email vacio\", Notification.Type.WARNING_MESSAGE);\n }\n if (terminado == false) {\n Profesor p = new Profesor();\n p.setIdProfesor(id_profesor.getValue());\n p.setIdLugar((String) id_lugar_profesor.getValue());\n p.setNombre(nombre_profesor.getValue());\n p.setApellidos(apellidos_profesor.getValue());\n p.setEdad(edad_profesor.getValue());\n p.setMovil(movil_profesor.getValue());\n p.setHorario(horario_profesor.getValue());\n p.setAsignaturas(asignaturas_profesor);\n p.setDescripcion(descripcion_profesor.getValue());\n p.setEmail(email_profesor.getValue());\n p.setPassword(password_profesor.getValue());\n Notification.show(\"Profesor modificado\", \"Se ha actualizado el \"\n + \"profesor en la base de datos\", Notification.Type.TRAY_NOTIFICATION);\n profesorDAO.crear(p);\n getUI().getPage().setLocation(getUI().getPage().getLocation().getPath());\n }\n } catch (UnknownHostException ex) {\n Logger.getLogger(LoginView.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(LoginView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void turnoSistema(){\r\n if(tipo_simulacion == 2){\r\n JOptionPane.showMessageDialog(this.vc,\"Simulando acciones. . .\", \"Turno Sistema\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n System.out.println(\"Turno: \"+ entrenador2.getNombre());\r\n if(evaluarAccion(this.pokemon_activo2, this.pokemon_activo1).equals(\"Cambiar\")){\r\n System.out.println(\"Sistema eligio Cambiar Pokemon\");\r\n pokemon_activo2.setConfuso(false);\r\n pokemon_activo2.setDormido(false);\r\n if(getEquipo2()[0].getDebilitado() == false && getEquipo2()[0]!=pokemon_activo2){\r\n pokemon_activo2 = getEquipo2()[0]; \r\n }\r\n else if(getEquipo2()[1].getDebilitado() == false && getEquipo2()[1]!=pokemon_activo2){\r\n pokemon_activo2 = getEquipo2()[1]; \r\n }\r\n else if(getEquipo2()[2].getDebilitado() == false && getEquipo2()[2]!=pokemon_activo2){\r\n pokemon_activo2 = getEquipo2()[2]; \r\n }\r\n else if(getEquipo2()[3].getDebilitado() == false && getEquipo2()[3]!=pokemon_activo2){\r\n pokemon_activo2 = getEquipo2()[3]; \r\n }\r\n else if(getEquipo2()[4].getDebilitado() == false && getEquipo2()[4]!=pokemon_activo2){\r\n pokemon_activo2 = getEquipo2()[4]; \r\n }\r\n else if(getEquipo2()[5].getDebilitado() == false && getEquipo2()[5]!=pokemon_activo2){\r\n pokemon_activo2 = getEquipo2()[5]; \r\n }\r\n vc.setjL_especie2(pokemon_activo2.getNombre_especie());\r\n vc.setjL_nombrepokemon2(pokemon_activo2.getPseudonimo());\r\n vc.setjL_vida_actual2(pokemon_activo2.getVida_restante(), pokemon_activo2.getVida());\r\n vc.setjL_Nivel2(pokemon_activo2.getNivel());\r\n setLabelEstados(0);\r\n setLabelEstados(1);\r\n this.turno = 0;\r\n if(tipo_simulacion == 2){\r\n JOptionPane.showMessageDialog(this.vc, \"Turno\"+\" \"+entrenador1.getNombre(), \"Tu Turno\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n }\r\n else if(evaluarAccion(this.pokemon_activo2, this.pokemon_activo1).equals(\"Atacar\")){\r\n System.out.println(\"Sistema eligio Atacar\");\r\n inflingirDaño(pokemon_activo2.getMovimientos()[(int)(Math.random()*4)], pokemon_activo1, pokemon_activo2);\r\n if(pokemon_activo1.getVida_restante() <= 0){\r\n pokemon_activo1.setVida_restante(0);\r\n pokemon_activo1.setDebilitado(true);\r\n System.out.println(\"El Pokemon: \"+ pokemon_activo1.getPseudonimo()+\" se ha Debilitado\");\r\n JOptionPane.showMessageDialog(this.vc, \"El Pokemon: \"+ pokemon_activo1.getPseudonimo()+\" se ha Debilitado\", \"Debilitado\", JOptionPane.INFORMATION_MESSAGE);\r\n if(condicionVictoria(getEquipo1(), getEquipo2()) == true){\r\n JOptionPane.showMessageDialog(this.vc, \"El Ganador de este Combate es:\"+ entrenador2.getNombre(), \"Ganador\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"El Ganador de este Combate es:\"+ entrenador2.getNombre());\r\n System.out.println(equipo1[0].getVida_restante()+ \" \"+equipo1[1].getVida_restante()+ \" \"+equipo1[2].getVida_restante()+ \" \"+equipo1[3].getVida_restante()+ \" \"+equipo1[4].getVida_restante()+ \" \"+equipo1[5].getVida_restante());\r\n System.out.println(equipo2[0].getVida_restante()+ \" \"+equipo2[1].getVida_restante()+ \" \"+equipo2[2].getVida_restante()+ \" \"+equipo2[3].getVida_restante()+ \" \"+equipo2[4].getVida_restante()+ \" \"+equipo2[5].getVida_restante());\r\n JOptionPane.showMessageDialog(this.vc, equipo1[0].getVida_restante()+ \" \"+equipo1[1].getVida_restante()+ \" \"+equipo1[2].getVida_restante()+ \" \"+equipo1[3].getVida_restante()+ \" \"+equipo1[4].getVida_restante()+ \" \"+equipo1[5].getVida_restante()+\"\\n\"+ equipo2[0].getVida_restante()+ \" \"+equipo2[1].getVida_restante()+ \" \"+equipo2[2].getVida_restante()+ \" \"+equipo2[3].getVida_restante()+ \" \"+equipo2[4].getVida_restante()+ \" \"+equipo2[5].getVida_restante(), \"Estadisticas finales(vida)\", JOptionPane.INFORMATION_MESSAGE);\r\n vc.dispose();\r\n vpc.dispose();\r\n combate.setGanador(entrenador2);\r\n combate.setPerdedor(entrenador1);\r\n this.termino = true;\r\n }\r\n else if(getEquipo1()[0].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[0]; \r\n }\r\n else if(getEquipo1()[1].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[1]; \r\n }\r\n else if(getEquipo1()[2].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[2]; \r\n }\r\n else if(getEquipo1()[3].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[3]; \r\n }\r\n else if(getEquipo1()[4].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[4]; \r\n }\r\n else if(getEquipo1()[5].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[5]; \r\n } \r\n vc.setjL_nombrepokemon1(pokemon_activo1.getPseudonimo());\r\n vc.setjL_especie1(pokemon_activo1.getNombre_especie());\r\n }\r\n vc.setjL_especie1(pokemon_activo1.getNombre_especie());\r\n vc.setjL_nombrepokemon1(pokemon_activo1.getPseudonimo());\r\n vc.setjL_vida_actual1(pokemon_activo1.getVida_restante(), pokemon_activo1.getVida());\r\n vc.setjL_Nivel1(pokemon_activo1.getNivel());\r\n setLabelEstados(0);\r\n setLabelEstados(1);\r\n this.turno = 0;\r\n if(tipo_simulacion == 2){\r\n JOptionPane.showMessageDialog(this.vc, \"Turno\"+\" \"+entrenador1.getNombre(), \"Tu Turno\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n }\r\n \r\n }", "public v_halaman() {\n initComponents();\n this.setLocationRelativeTo(this);\n profileFrame.setLocationRelativeTo(null);\n kandang1Button.setActionCommand(\"kandang1\");\n kandang2Button.setActionCommand(\"kandang2\");\n kandang3Button.setActionCommand(\"kandang3\");\n kandang4Button.setActionCommand(\"kandang4\");\n kandang5Button.setActionCommand(\"kandang5\");\n kandang6Button.setActionCommand(\"kandang6\");\n rumputGratis1.setActionCommand(\"rumput\"+1);\n rumputGratis2.setActionCommand(\"rumput\"+2);\n rumputGratis3.setActionCommand(\"rumput\"+3);\n rumputGratis4.setActionCommand(\"rumput\"+4);\n rumputGratis5.setActionCommand(\"rumput\"+5);\n rumputGratis6.setActionCommand(\"rumput\"+6);\n rumputGratis7.setActionCommand(\"rumput\"+7);\n rumputGratis8.setActionCommand(\"rumput\"+8);\n rumputGratis9.setActionCommand(\"rumput\"+9);\n rumputGratis10.setActionCommand(\"rumput\"+10);\n papanBeliKandang.setActionCommand(\"papan1\");\n papanBelikandang2.setActionCommand(\"papan2\");\n papanBelikandang3.setActionCommand(\"papan3\");\n papanBelikandang4.setActionCommand(\"papan4\");\n papanBelikandang5.setActionCommand(\"papan5\");\n\n for (int i = 0; i < 10; i++) {\n getButtonRumput()[i].setVisible(false);\n }\n for (int i = 0; i < 5; i++) {\n getButtonPapan()[i].setVisible(false);\n }\n \n \n }", "private void setDashboard(){\n lblUsername.setText(username);\n if(roles.equals(\"employeer\")){\n jBtnLamar.setText(\"Lihat Pelamar\");\n jBtnKerja.setText(\"Tambah Lowongan\");\n btnLowonganku.setVisible(true);\n }\n \n }", "@FXML\n private void onAjouterPressed(ActionEvent event) throws IOException, SQLException {\n if(DPendDate.isVisible()){\n check3=false;\n if(DPendDate.getValue()== null){\n erreurFin.setOpacity(1);\n }else if(DPendDate.getValue().isBefore(DPchoosedDate.getValue())){\n erreurFin.setOpacity(1);\n }else{\n check3 = true;\n erreurFin.setOpacity(0);\n }\n }\n if(DPchoosedDate.getValue()== null){\n erreurConstruit.setOpacity(0);\n erreurChamp.setOpacity(1);\n check = false;\n }else if(user.getData().isWeekConstruct(DPchoosedDate.getValue())){\n erreurConstruit.setOpacity(1);\n erreurChamp.setOpacity(0);\n }else{\n check = true;\n erreurConstruit.setOpacity(0);\n }\n if(CR11.isSelected()|CR12.isSelected()|CR21.isSelected()|CR22.isSelected()){\n check2 = true;\n }else{\n erreurChamp.setOpacity(1);\n check2 = false;\n }\n if(check && check2 && check3){\n ArrayList<Constraint> theCo;\n theCo = user.getData().getAllConstraintsFromId(this.id);\n user.getData().removeConstraintFamily(this.id);\n erreurChamp.setOpacity(0);\n System.out.println(\"Lancement de la procédure d'ajout de la contrainte\");\n if(CBduree.getValue().toString().equals(\"Unique\")){\n System.out.println(\"unique\");\n int beginHourTemp = 0;\n int endHourTemp = 0;\n int hours = 0; //entre 0 et \n int extendedHours;\n boolean extend = true;\n boolean overwriteError = false;\n ArrayList<Constraint> coList = new ArrayList<>();\n \n for (hours = 0 ; hours != 4 ; hours++){\n if(getThisShittyCheckBox(hours).isSelected()){\n beginHourTemp = hours;\n endHourTemp = hours;\n for(extendedHours = hours ; extend ; extendedHours++){\n if(hours != 4){\n if(getThisShittyCheckBox(hours+1).isSelected()){\n endHourTemp++;\n hours = extendedHours+1;\n }else extend = false;\n }\n }\n Constraint co = new Constraint(getThisShittyConstraintType(CBtype.getValue().toString()), DPchoosedDate.getValue(), nomTextField.getText(), util.getComplicateHoursFromSimple(beginHourTemp), util.getComplicateHoursFromSimple(endHourTemp), 0 , user.getData().getNewGeneratedIdSame());\n coList.add(co);\n if(user.getData().isOverwrite(co)) overwriteError = true;\n }\n }\n if(overwriteError){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erreur\");\n alert.setHeaderText(\"Une ou plusieurs contraintes déjà ajoutées pour ce ce/ces créneaux\");\n String textOverwrite = \"\";\n for(Constraint aConstraint : coList){\n for(String overwriteConstraintTitle : user.getData().checkOverwrite(aConstraint)){\n textOverwrite += overwriteConstraintTitle + \", \";\n }\n }\n alert.setContentText(\"La/Les contrainte(s) : \" + textOverwrite + \"empêche(nt) l'ajout de votre contrainte.\");\n alert.showAndWait();\n for(Constraint coco : theCo) user.getData().addConstraint(coco);\n }else{\n for(Constraint aConstraint : coList) user.getData().addConstraint(aConstraint);\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Ajout de la contrainte réussi\");\n alert.setHeaderText(null);\n alert.setContentText(\"L'ajout de votre contrainte a bien été pris en compte !\");\n alert.showAndWait();\n }\n }else if(CBduree.getValue().toString().equals(\"Définitive\")){\n System.out.println(\"Définitive\");\n int beginHourTemp = 0;\n int endHourTemp = 0;\n int hours = 0; //entre 0 et \n int extendedHours;\n int id_same[] = {user.getData().getNewGeneratedIdSame() , user.getData().getNewGeneratedIdSame()};\n int indice_idSame;\n int occurence_Type = 1;\n boolean extend = true;\n boolean overwriteError = false;\n ArrayList<Constraint> coList = new ArrayList<>();\n LocalDate dateTempForConstraint = DPchoosedDate.getValue();\n \n while(!overwriteError && dateTempForConstraint.isBefore(user.getData().getLastweekEndDate())){\n indice_idSame = 0;\n for (hours = 0 ; hours != 4 ; hours++){\n if(getThisShittyCheckBox(hours).isSelected()){\n beginHourTemp = hours;\n endHourTemp = hours;\n for(extendedHours = hours ; extend ; extendedHours++){\n if(hours != 4){\n if(getThisShittyCheckBox(hours+1).isSelected()){\n endHourTemp++;\n hours = extendedHours+1;\n }else extend = false;\n }\n }\n if(CBtousLes.getValue().toString().equals(\"Tous les jours\")){\n occurence_Type = 1;\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les semaines\")){\n occurence_Type = 2;\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les 2 semaines\")){\n occurence_Type = 3;\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les 4 semaines\")){\n occurence_Type = 4;\n }\n Constraint co = new Constraint(getThisShittyConstraintType(CBtype.getValue().toString()), dateTempForConstraint , nomTextField.getText(), util.getComplicateHoursFromSimple(beginHourTemp), util.getComplicateHoursFromSimple(endHourTemp), occurence_Type , id_same[indice_idSame]);\n coList.add(co);\n indice_idSame++;\n if(indice_idSame == 2) indice_idSame = 0;\n if(user.getData().isOverwrite(co)) overwriteError = true;\n }\n }\n if(CBtousLes.getValue().toString().equals(\"Tous les jours\")){\n dateTempForConstraint = dateTempForConstraint.plusDays(1);\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les semaines\")){\n dateTempForConstraint = dateTempForConstraint.plusDays(7);\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les 2 semaines\")){\n dateTempForConstraint = dateTempForConstraint.plusDays(14);\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les 4 semaines\")){\n dateTempForConstraint = dateTempForConstraint.plusDays(28);\n }\n \n System.out.println(dateTempForConstraint.toString());\n }\n \n if(overwriteError){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erreur\");\n alert.setHeaderText(\"Une ou plusieurs contraintes déjà ajoutées pour ce ce/ces créneaux\");\n String textOverwrite = \"\";\n for(Constraint aConstraint : coList){\n for(String overwriteConstraintTitle : user.getData().checkOverwrite(aConstraint)){\n textOverwrite += overwriteConstraintTitle + \", \";\n }\n }\n alert.setContentText(\"La/Les contrainte(s) : \" + textOverwrite + \"empêche(nt) l'ajout de votre contrainte.\");\n alert.showAndWait();\n for(Constraint coco : theCo) user.getData().addConstraint(coco);\n }else{\n for(Constraint aConstraint : coList) user.getData().addConstraint(aConstraint);\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Ajout de la contrainte réussi\");\n alert.setHeaderText(null);\n alert.setContentText(\"L'ajout de votre contrainte a bien été pris en compte !\");\n alert.showAndWait();\n }\n }else if(CBduree.getValue().toString().equals(\"Jusqu'au\")){\n System.out.println(\"Jusqu'au\");\n if(DPendDate.getValue().isAfter(user.getData().getLastweekEndDate())){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erreur\");\n alert.setHeaderText(\"Date de fin de répétition invalide !\");\n alert.setContentText(\"La date de fin de répétition de la contrainte est en dehors de l'année en cours.\");\n alert.showAndWait();\n }else if(DPendDate.getValue().isBefore(user.getData().getFirstweekBeginDate())){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erreur\");\n alert.setHeaderText(\"Date de fin de répétition invalide !\");\n alert.setContentText(\"La date de fin de répétition de la contrainte est antérieure à l'année en cours.\");\n alert.showAndWait();\n }else if(DPendDate.getValue().isBefore(DPchoosedDate.getValue())){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erreur\");\n alert.setHeaderText(\"Date de fin de répétition invalide !\");\n alert.setContentText(\"La date de fin de répétition de la contrainte est antérieure à celle du début de celle-ci.\");\n alert.showAndWait();\n }else{\n int beginHourTemp = 0;\n int endHourTemp = 0;\n int hours = 0; //entre 0 et \n int extendedHours;\n int id_same[] = {user.getData().getNewGeneratedIdSame() , user.getData().getNewGeneratedIdSame()};\n int indice_idSame;\n int occurence_Type = 1;\n boolean extend = true;\n boolean overwriteError = false;\n ArrayList<Constraint> coList = new ArrayList<>();\n LocalDate dateTempForConstraint = DPchoosedDate.getValue();\n \n while(!overwriteError && dateTempForConstraint.isBefore(DPendDate.getValue())){\n indice_idSame = 0;\n for (hours = 0 ; hours != 4 ; hours++){\n if(getThisShittyCheckBox(hours).isSelected()){\n beginHourTemp = hours;\n endHourTemp = hours;\n for(extendedHours = hours ; extend ; extendedHours++){\n if(hours != 4){\n if(getThisShittyCheckBox(hours+1).isSelected()){\n endHourTemp++;\n hours = extendedHours+1;\n }else extend = false;\n }\n }\n if(CBtousLes.getValue().toString().equals(\"Tous les jours\")){\n occurence_Type = 5;\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les semaines\")){\n occurence_Type = 6;\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les 2 semaines\")){\n occurence_Type = 7;\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les 4 semaines\")){\n occurence_Type = 8;\n }\n Constraint co = new Constraint(getThisShittyConstraintType(CBtype.getValue().toString()), dateTempForConstraint , nomTextField.getText(), util.getComplicateHoursFromSimple(beginHourTemp), util.getComplicateHoursFromSimple(endHourTemp), occurence_Type , id_same[indice_idSame]);\n coList.add(co);\n indice_idSame++;\n if(indice_idSame == 2) indice_idSame = 0;\n if(user.getData().isOverwrite(co)) overwriteError = true;\n }\n }\n if(CBtousLes.getValue().toString().equals(\"Tous les jours\")){\n dateTempForConstraint = dateTempForConstraint.plusDays(1);\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les semaines\")){\n dateTempForConstraint = dateTempForConstraint.plusDays(7);\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les 2 semaines\")){\n dateTempForConstraint = dateTempForConstraint.plusDays(14);\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les 4 semaines\")){\n dateTempForConstraint = dateTempForConstraint.plusDays(28);\n }\n \n System.out.println(dateTempForConstraint.toString());\n }\n \n if(overwriteError){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erreur\");\n alert.setHeaderText(\"Une ou plusieurs contraintes déjà ajoutées pour ce ce/ces créneaux\");\n String textOverwrite = \"\";\n for(Constraint aConstraint : coList){\n for(String overwriteConstraintTitle : user.getData().checkOverwrite(aConstraint)){\n textOverwrite += overwriteConstraintTitle + \", \";\n }\n }\n alert.setContentText(\"La/Les contrainte(s) : \" + textOverwrite + \"empêche(nt) l'ajout de votre contrainte.\");\n alert.showAndWait();\n for(Constraint coco : theCo) user.getData().addConstraint(coco);\n }else{\n for(Constraint aConstraint : coList) user.getData().addConstraint(aConstraint);\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Ajout de la contrainte réussi\");\n alert.setHeaderText(null);\n alert.setContentText(\"L'ajout de votre contrainte a bien été pris en compte !\");\n alert.showAndWait();\n }\n }\n }\n onAnnulerPressed(event);\n }\n }", "@FXML\n void inHouseButtonAction(ActionEvent event){\n \n // On inHouse button press hide the company name label and field \n partCompanyNameField.setVisible(false);\n partCompanyNameLabel.setVisible(false);\n \n outsourcedButton.setSelected(false);\n inHouse = true;\n inHouseButton.setSelected(true);\n \n // On inhouse button press show the machine id field and label visible\n partMachineIDField.setVisible(true);\n partMachineIDLabel.setVisible(true);\n \n }", "private void activationON() {\n\n switch(afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.activatedContents();\n shell.layout();\n break;\n case AFFICHE_USER :\n ecranUser.activatedContents();\n shell.layout();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.activatedContents();\n shell.layout();\n break;\n default: break;\n }\n\n }", "public static String _butcolor_click() throws Exception{\nmostCurrent._butpatas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 101;BA.debugLine=\"butColor.Visible = False\";\nmostCurrent._butcolor.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 103;BA.debugLine=\"lblFondo.Initialize(\\\"\\\")\";\nmostCurrent._lblfondo.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 104;BA.debugLine=\"lblFondo.Color = Colors.ARGB(30,255,94,94)\";\nmostCurrent._lblfondo.setColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (30),(int) (255),(int) (94),(int) (94)));\n //BA.debugLineNum = 105;BA.debugLine=\"Activity.AddView(lblFondo,0,0,100%x,100%y)\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._lblfondo.getObject()),(int) (0),(int) (0),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (100),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA));\n //BA.debugLineNum = 107;BA.debugLine=\"panelPopUps_1.Initialize(\\\"\\\")\";\nmostCurrent._panelpopups_1.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 108;BA.debugLine=\"panelPopUps_1.LoadLayout(\\\"lay_Mosquito_PopUps\\\")\";\nmostCurrent._panelpopups_1.LoadLayout(\"lay_Mosquito_PopUps\",mostCurrent.activityBA);\n //BA.debugLineNum = 110;BA.debugLine=\"lblPopUp_Descripcion.Text = \\\"A simple vista se ve\";\nmostCurrent._lblpopup_descripcion.setText(BA.ObjectToCharSequence(\"A simple vista se ve\"+anywheresoftware.b4a.keywords.Common.CRLF+\"de color negro intenso\"));\n //BA.debugLineNum = 111;BA.debugLine=\"imgPopUp.Bitmap = LoadBitmap(File.DirAssets,\\\"mosq\";\nmostCurrent._imgpopup.setBitmap((android.graphics.Bitmap)(anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),\"mosquito_Color.png\").getObject()));\n //BA.debugLineNum = 112;BA.debugLine=\"imgPopUp.Visible = True\";\nmostCurrent._imgpopup.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 113;BA.debugLine=\"Activity.AddView(panelPopUps_1, 15%x, 15%y, 70%x,\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._panelpopups_1.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (70),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (70),mostCurrent.activityBA));\n //BA.debugLineNum = 114;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void displayPhieuXuatKho() {\n\t\tlog.info(\"-----displayPhieuXuatKho()-----\");\n\t\tif (!maPhieu.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tDieuTriUtilDelegate dieuTriUtilDelegate = DieuTriUtilDelegate.getInstance();\n\t\t\t\tPhieuTraKhoDelegate pxkWS = PhieuTraKhoDelegate.getInstance();\n\t\t\t\tCtTraKhoDelegate ctxWS = CtTraKhoDelegate.getInstance();\n\t\t\t\tDmKhoa dmKhoaNhan = new DmKhoa();\n\t\t\t\tdmKhoaNhan = (DmKhoa)dieuTriUtilDelegate.findByMa(IConstantsRes.KHOA_KC_MA, \"DmKhoa\", \"dmkhoaMa\");\n\t\t\t\tphieuTra = pxkWS.findByPhieutrakhoByKhoNhan(maPhieu, dmKhoaNhan.getDmkhoaMaso());\n\t\t\t\tif (phieuTra != null) {\n\t\t\t\t\tmaPhieu = phieuTra.getPhieutrakhoMa();\n\t\t\t\t\tresetInfo();\n\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t\t\tngayXuat = df.format(phieuTra.getPhieutrakhoNgay());\n\t\t\t\t\tfor (CtTraKho ct : ctxWS.findByphieutrakhoMa(phieuTra.getPhieutrakhoMa())) {\n\t\t\t\t\t\tCtTraKhoExt ctxEx = new CtTraKhoExt();\n\t\t\t\t\t\tctxEx.setCtTraKho(ct);\n\t\t\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t\t\t}\n\t\t\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\t\t\tisFound=\"true\";\n\t\t\t\t\t// = null la chua luu ton kho -> cho ghi nhan\n\t\t\t\t\t// = 1 da luu to kho -> khong cho ghi nhan\n\t\t\t\t\tif(phieuTra.getPhieutrakhoNgaygiophat()==null)\n\t\t\t\t\tisUpdate = \"1\";\n\t\t\t\t\telse\n\t\t\t\t\t\tisUpdate = \"0\";\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\ttinhTien();\n\t\t\t} catch (Exception e) {\n\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\treset();\n\t\t\t\tlog.error(String.format(\"-----Error: %s\", e));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void turnoUsuario(){\r\n System.out.println(\"Turno: \"+ entrenador1.getNombre());\r\n if(evaluarAccion(this.pokemon_activo1, this.pokemon_activo2).equals(\"Cambiar\")){\r\n System.out.println(\"Usuario eligio Cambiar Pokemon\");\r\n pokemon_activo1.setConfuso(false);\r\n pokemon_activo1.setDormido(false);\r\n if(getEquipo1()[0].getDebilitado() == false && getEquipo1()[0]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[0]; \r\n }\r\n else if(getEquipo1()[1].getDebilitado() == false && getEquipo1()[1]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[1]; \r\n }\r\n else if(getEquipo1()[2].getDebilitado() == false && getEquipo1()[2]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[2]; \r\n }\r\n else if(getEquipo1()[3].getDebilitado() == false && getEquipo1()[3]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[3]; \r\n }\r\n else if(getEquipo1()[4].getDebilitado() == false && getEquipo1()[4]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[4]; \r\n }\r\n else if(getEquipo1()[5].getDebilitado() == false && getEquipo1()[5]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[5]; \r\n }\r\n vc.setjL_especie1(pokemon_activo1.getNombre_especie());\r\n vc.setjL_nombrepokemon1(pokemon_activo1.getPseudonimo());\r\n vc.setjL_vida_actual1(pokemon_activo1.getVida_restante(), pokemon_activo1.getVida());\r\n setLabelEstados(0);\r\n setLabelEstados(1);\r\n this.turno = 1;\r\n }\r\n else if(evaluarAccion(this.pokemon_activo1, this.pokemon_activo2).equals(\"Atacar\")){\r\n System.out.println(\"Usuario eligio Atacar\");\r\n inflingirDaño(pokemon_activo1.getMovimientos()[(int)(Math.random()*4)], pokemon_activo2, pokemon_activo1);\r\n if(pokemon_activo2.getVida_restante() <= 0){\r\n pokemon_activo2.setVida_restante(0);\r\n pokemon_activo2.setDebilitado(true);\r\n System.out.println(\"El Pokemon: \"+ pokemon_activo2.getPseudonimo()+\" se ha Debilitado\");\r\n JOptionPane.showMessageDialog(this.vc, \"El Pokemon: \"+ pokemon_activo2.getPseudonimo()+\" se ha Debilitado\", \"Debilitado\", JOptionPane.INFORMATION_MESSAGE);\r\n if(condicionVictoria(getEquipo1(), getEquipo2()) == true){\r\n JOptionPane.showMessageDialog(this.vc, \"El Ganador de este Combate es:\"+ entrenador1.getNombre(), \"Ganador\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"El Ganador de este Combate es:\"+ entrenador1.getNombre());\r\n System.out.println(equipo1[0].getVida_restante()+ \" \"+equipo1[1].getVida_restante()+ \" \"+equipo1[2].getVida_restante()+ \" \"+equipo1[3].getVida_restante()+ \" \"+equipo1[4].getVida_restante()+ \" \"+equipo1[5].getVida_restante());\r\n System.out.println(equipo2[0].getVida_restante()+ \" \"+equipo2[1].getVida_restante()+ \" \"+equipo2[2].getVida_restante()+ \" \"+equipo2[3].getVida_restante()+ \" \"+equipo2[4].getVida_restante()+ \" \"+equipo2[5].getVida_restante());\r\n JOptionPane.showMessageDialog(this.vc, equipo1[0].getVida_restante()+ \" \"+equipo1[1].getVida_restante()+ \" \"+equipo1[2].getVida_restante()+ \" \"+equipo1[3].getVida_restante()+ \" \"+equipo1[4].getVida_restante()+ \" \"+equipo1[5].getVida_restante()+\"\\n\"+ equipo2[0].getVida_restante()+ \" \"+equipo2[1].getVida_restante()+ \" \"+equipo2[2].getVida_restante()+ \" \"+equipo2[3].getVida_restante()+ \" \"+equipo2[4].getVida_restante()+ \" \"+equipo2[5].getVida_restante(), \"Estadisticas finales(vida)\", JOptionPane.INFORMATION_MESSAGE);\r\n vc.dispose();\r\n vpc.dispose();\r\n combate.setGanador(entrenador1);\r\n combate.setPerdedor(entrenador2);\r\n this.termino = true;\r\n }\r\n else if(getEquipo1()[0].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[0]; \r\n }\r\n else if(getEquipo1()[1].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[1]; \r\n }\r\n else if(getEquipo1()[2].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[2]; \r\n }\r\n else if(getEquipo1()[3].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[3]; \r\n }\r\n else if(getEquipo1()[4].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[4]; \r\n }\r\n else if(getEquipo1()[5].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[5]; \r\n } \r\n vc.setjL_nombrepokemon1(pokemon_activo2.getPseudonimo());\r\n vc.setjL_especie1(pokemon_activo2.getNombre_especie());\r\n }\r\n vc.setjL_especie2(pokemon_activo2.getNombre_especie());\r\n vc.setjL_nombrepokemon2(pokemon_activo2.getPseudonimo());\r\n vc.setjL_vida_actual2(pokemon_activo2.getVida_restante(), pokemon_activo2.getVida());\r\n setLabelEstados(0);\r\n setLabelEstados(1);\r\n this.turno = 1;\r\n }\r\n \r\n }", "private void isAbonner(){\r\n reference.child(\"abonnes\")\r\n .child(user.getUid())\r\n .addListenerForSingleValueEvent(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\r\n if (dataSnapshot.exists()){\r\n btnAbonnement.setText(\"Désabonner\");\r\n btnAbonnement.setBackgroundColor(getResources().getColor(R.color.colorPrimary));\r\n btnAbonnement.setTextColor(getResources().getColor(R.color.colorBlanc));\r\n }else {\r\n btnAbonnement.setText(\"Abonner\");\r\n btnAbonnement.setBackgroundColor(getResources().getColor(R.color.c5));\r\n btnAbonnement.setTextColor(getResources().getColor(R.color.colorBlanc));\r\n }\r\n }\r\n @Override\r\n public void onCancelled(@NonNull DatabaseError databaseError) {\r\n\r\n }\r\n });\r\n }", "public void verifierSaisie(){\n boolean ok = true;\n\n // On regarde si le client a ecrit quelque chose\n if(saisieMessage.getText().trim().equals(\"\"))\n ok = false;\n\n if(ok)\n btn.setEnabled(true); //activer le bouton\n else\n btn.setEnabled(false); //griser le bouton\n }", "public void atrapar() {\n if( una == false) {\n\t\tif ((app.mouseX > 377 && app.mouseX < 591) && (app.mouseY > 336 && app.mouseY < 382)) {\n\t\t\tint aleotoridad = (int) app.random(0, 4);\n\n\t\t\tif (aleotoridad == 3) {\n\n\t\t\t\tSystem.out.print(\"Lo atrapaste\");\n\t\t\t\tcambioEnemigo = 3;\n\t\t\t\tsuerte = true;\n\t\t\t\tuna = true;\n\t\t\t}\n\t\t\tif (aleotoridad == 1 || aleotoridad == 2 || aleotoridad == 0) {\n\n\t\t\t\tSystem.out.print(\"Mala Suerte\");\n\t\t\t\tcambioEnemigo = 4;\n\t\t\t\tmal = true;\n\t\t\t\tuna = true;\n\t\t\t}\n\n\t\t}\n }\n\t}", "private void jBtnKerjaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnKerjaActionPerformed\n if(roles.equals(\"employeer\") || roles.equals(\"admin\")){\n// TAMBAH KERJA UNTUK ADMIN HRD\n TambahLowonganForm lf;\n lf = new TambahLowonganForm();\n lf.setVisible(true);\n }else{\n// CARI KERJA UNTUK ADMIN HRD\n try {\n LamarForm join;\n join = new LamarForm();\n join.setVisible(true);\n } catch (SQLException ex) {\n Logger.getLogger(Dashboard.class.getName()).log(Level.SEVERE, null, ex);\n } \n }\n \n \n }", "public void habilitabotones() {\n\n\tif (IR.sensmci == true) {\n\t btnmci1.setEnabled(true);\n\t btnmci1.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t //Instancio el panel lecturas (MCI-1) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_1) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 1\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci1.setEnabled(false);\n\n\tif (IR.sensmci2 == true) {\n\t btnmci2.setEnabled(true);\n\t btnmci2.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-2) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_2) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 2\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci2.setEnabled(false);\n\n\tif (IR.sensmci3 == true) {\n\t btnmci3.setEnabled(true);\n\t btnmci3.addMouseListener(new MouseAdapter() {\n\n\t\t\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-3) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_3) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 3\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci3.setEnabled(false);\n\n\tif (IR.sensmci4 == true) {\n\t btnmci4.setEnabled(true);\n\t btnmci4.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-4) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_4) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 4\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci4.setEnabled(false);\n\n\tif (IR.sensbt2 == true) { // Revisar comportamiento y\n\t\t\t\t // necesidad del hiloinfo en bt2\n\n\t btnbt21.setEnabled(true);\n\t btnbt21.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t \n\t\t //Instancio el panel lecturas (BT2-1) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_5) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-1\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t // IR.panelecturasbt2.setActualizar(true);\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasbt2\n\t\t // .setHilomuestrainfo(IR.panelecturasbt2\n\t\t // .getHilomuestrainfo());\n\t\t // IR.panelecturasbt2.hiloinfo = new Thread(\n\t\t // IR.panelecturasbt2.hilomuestrainfo);\n\t\t // IR.panelecturasbt2.hiloinfo.start();\n\n\t\t}\n\t });\n\t} else\n\t btnbt21.setEnabled(false);\n\n\tif (IR.sensbt22 == true) {\n\t btnbt22.setEnabled(true);\n\t btnbt22.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-2) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_6) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-2\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt22.setEnabled(false);\n\n\tif (IR.sensbt23 == true) {\n\t btnbt23.setEnabled(true);\n\t btnbt23.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-3) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_7) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-3\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt23.setEnabled(false);\n\n\tif (IR.sensbt24 == true) {\n\t btnbt24.setEnabled(true);\n\t btnbt24.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-4) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_8){\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\"pulsos\", IR.panelecturasbt2);\n\t\t\tIR.sensores.get(i).addPropertyChangeListener(\"lectura\",\n\t\t\t\tIR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-4\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt24.setEnabled(false);\n\n\tif (IR.hayplacasens) {\n\t btnplaca_sens.setEnabled(true);\n\t btnplaca_sens.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (Sensores) al pulsar el boton.\n\t\t IR.panelecturasens = Panelecturasens.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_SENSORES_0) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasens);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasens);\n\t\t\t \n\t\t\t}\n\t\t }\n\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasens.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasens);\n\t\t IR.panelecturasens.setVisible(true);\n\t\t}\n\t });\n\t} else\n\t btnplaca_sens.setEnabled(false);\n\n }", "public Pantalla_Principal(Inicio ini) { \n \n initComponents();\n \n this.resize(520, 400);\n this.setResizable(false);\n \n TablaP.getTableHeader().setReorderingAllowed(false); \n TablaP.getTableHeader().setResizingAllowed(false);\n \n jCheckBoxMenuItem_TrayActionPerformed(null);\n JCMenuItem_ModoOpt.setSelected(false);\n jCheckBoxMenuItem_Tray.setSelected(true);\n jCheckBoxMenuItem_Reglas.setSelected(false);\n \n \n \n jMenuBar1.setBackground(Color.white);\n Button_Usar_Permanente.setBackground(Color.LIGHT_GRAY);\n Button_Usar_Temporal.setBackground(Color.lightGray);\n \n this.setLocationRelativeTo(null);\n //this.Btn_Ocultar_Ads.setEnabled(false);\n \n \n addWindowListener(new WindowAdapter(){\n @Override\n public void windowClosing(WindowEvent we){\n Salir();\n }});\n \n \n Pantalla_Principal.this.setVisible(true);\n this.in = ini;\n Return r = new Return();\n r.deleteFile(in.getPath(), \".jar\");\n principal = in.getAdaptador_principal();\n idioma();\n //Btn_Ocultar_Ads.setToolTipText(Tl_ocultar);\n Verificar_Estador_Principal();\n \n \n TModel();\n this.TablaP.updateUI();\n \n \n \n this.Button_Usar_Temporal.addActionListener(new Btn_Usar_Temporal());\n this.Button_Usar_Permanente.addActionListener(new Btn_Usar_Permanente());\n \n \n TablaP.addMouseListener(new java.awt.event.MouseAdapter() {\n @Override\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n if (evt.getClickCount() == 2){\n Mouse2Clicked(evt);}\n }\n });\n \n Ads(0);\n actualizacion_automatica = new Bucle_Actualizar();\n actualizacion_automatica.run(); \n }", "private void checks(){\n if (check(true)){\n changeBottomPane(\"White is in check! :(\");\n }\n else if (check(false)){\n changeBottomPane(\"Black is in check!!!!!!!!!!!\");\n }\n else{\n changeBottomPane(\"\");\n }\n }", "public void doButtonEinfuegen() {\n\t\tDialogSelectionDjinn dsd = new DialogSelectionDjinn((Frame) this.owner, \"Auswahl Tabellenspalte\",\n\t\t\t\tnew DefaultListViewComponentFactory((allts ? this.tabelle.getDiagramm().getFieldCache()\n\t\t\t\t\t\t: new Vector<Object>(Arrays.asList(this.tabelle.getColumns())))));\n\t\tif (dsd.isSelected()) {\n\t\t\tVector v = dsd.getSelection();\n\t\t\tVector values = new Vector();\n\t\t\tfor (int i = 0, len = v.size(); i < len; i++) {\n\t\t\t\tif (this.getType() == 0) {\n\t\t\t\t\tvalues.addElement(v.elementAt(i));\n\t\t\t\t} else if ((this.getType() == 1) || (this.getType() == 2)) {\n\t\t\t\t\tvalues.addElement(new ToStringContainer((TabellenspaltenModel) v.elementAt(i), this.tabelle));\n\t\t\t\t} else if (this.getType() == 3) {\n\t\t\t\t\tvalues.addElement(Archimedes.Factory.createOrderMember((TabellenspaltenModel) v.elementAt(i)));\n\t\t\t\t} else if (this.getType() == 4) {\n\t\t\t\t\tvalues.addElement(Archimedes.Factory.createSelectionMember((TabellenspaltenModel) v.elementAt(i)));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0, len = values.size(); i < len; i++) {\n\t\t\t\tboolean found = false;\n\t\t\t\tfor (int j = 0, lenj = this.tabellenspalten.size(); j < lenj; j++) {\n\t\t\t\t\tif (this.getType() == 0) {\n\t\t\t\t\t\tTabellenspaltenModel tsm = (TabellenspaltenModel) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (values.elementAt(i) == tsm) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if ((this.getType() == 1) || (this.getType() == 2)) {\n\t\t\t\t\t\tToStringContainer tsc = (ToStringContainer) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (((ToStringContainer) values.elementAt(i)).getTabellenspalte() == tsc) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (this.getType() == 3) {\n\t\t\t\t\t\tOrderMemberModel omm = (OrderMemberModel) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (((OrderMemberModel) values.elementAt(i)).getOrderColumn() == omm) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (this.getType() == 4) {\n\t\t\t\t\t\tSelectionMemberModel smm = (SelectionMemberModel) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (((SelectionMemberModel) values.elementAt(i)).getColumn() == smm) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!found) {\n\t\t\t\t\tif (this.anzeige.getSelectedRow() >= 0) {\n\t\t\t\t\t\tthis.tabellenspalten.add(this.anzeige.getSelectedRow(), values.get(i));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.tabellenspalten.add(values.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.doRepaint();\n\t\t}\n\t}", "public void displayTableHandUI() {\n\t\tList<PlayerCardArray> tableHandCards = gameLogic.getTableHand().getTableHand();\n\t\tdrawNoti(null);\n\t\tbtnCardA.setVisible(false);\n btnCardB.setVisible(false);\n btnCardC.setVisible(false);\n btnCardD.setVisible(false);\n\n\t\tfor (PlayerCardArray playerCard: tableHandCards){\n\t\t\tCard playedCard = playerCard.getPlayerCard();\n\t\t\t\n\t\t\tif (playerCard.getPlayerId() == 0){\n\t\t try {\n\t\t \tImageIcon cardImg = playedCard.getCardImage();\n\t\t \tbtnCardA.setIcon(new ImageIcon(cardImg.getImage().getScaledInstance(cardWidth, cardHeight, java.awt.Image.SCALE_SMOOTH)));\n\t\t } catch (NullPointerException e){\n\t\t \tSystem.out.println(\"Image not found\");\n\t\t \tbtnCardA.setText(\"Not found\");\n\t\t }\n\n\t\t btnCardA.setVisible(true);\n\n\t\t\t} else if (playerCard.getPlayerId() == 1){\n\t\t try {\n\t\t \tImageIcon cardImg = playedCard.getCardImage();\n\t\t \tbtnCardB.setIcon(new ImageIcon(cardImg.getImage().getScaledInstance(cardWidth, cardHeight, java.awt.Image.SCALE_SMOOTH)));\n\t\t } catch (NullPointerException e){\n\t\t \tSystem.out.println(\"Image not found\");\n\t\t \tbtnCardB.setText(\"Not found\");\n\t\t }\n\n\t\t btnCardB.setVisible(true);\n\t\t\t}\n\n\t\t\tif (playerCard.getPlayerId() == 2) {\n\t\t try {\n\t\t \tImageIcon cardImg = playedCard.getCardImage();\n\t\t \tbtnCardC.setIcon(new ImageIcon(cardImg.getImage().getScaledInstance(cardWidth, cardHeight, java.awt.Image.SCALE_SMOOTH)));\n\t\t } catch (NullPointerException e){\n\t\t \tSystem.out.println(\"Image not found\");\n\t\t \tbtnCardC.setText(\"Not found\");\n\t\t }\n\n\t\t btnCardC.setVisible(true);\n\t\t\t}\n\n\t\t\tif (playerCard.getPlayerId() == 3) {\n\t\t try {\n\t\t \tImageIcon cardImg = playedCard.getCardImage();\n\t\t \tbtnCardD.setIcon(new ImageIcon(cardImg.getImage().getScaledInstance(cardWidth, cardHeight, java.awt.Image.SCALE_SMOOTH)));\n\t\t } catch (NullPointerException e){\n\t\t \tSystem.out.println(\"Image not found\");\n\t\t \tbtnCardD.setText(\"Not found\");\n\t\t }\n\n\t\t btnCardD.setVisible(true);\n\t\t\t}\n\t\t}\n\t\testimationGame.validate();\n\t\testimationGame.repaint();\n\t}", "public void filtrerButtonHandler(ActionEvent actionEvent) {\n OffresData offresData = new OffresData();\n offresData.loadData();\n if(pretAPorterCheck.isSelected()||electroniqueCheck.isSelected()||restaurantsCheck.isSelected()) {\n ArrayList<Offre> listFiltred = new ArrayList<>();\n if (pretAPorterCheck.isSelected()) {\n listFiltred.addAll(offresData.getOffres().stream().filter(o -> ((Offre) o).getCategorie().equals(\"Prêt-à-porter\") == true).collect(Collectors.toCollection(ArrayList::new)));\n tableOffres.setItems(FXCollections.observableArrayList(listFiltred));\n }\n if (restaurantsCheck.isSelected()) {\n listFiltred.addAll(offresData.getOffres().stream().filter(o -> ((Offre) o).getCategorie().equals(\"Restaurants\") == true).collect(Collectors.toCollection(ArrayList::new)));\n tableOffres.setItems(FXCollections.observableArrayList(listFiltred));\n }\n if (electroniqueCheck.isSelected()) {\n listFiltred.addAll(offresData.getOffres().stream().filter(o -> ((Offre) o).getCategorie().equals(\"Electronique\") == true).collect(Collectors.toCollection(ArrayList::new)));\n tableOffres.setItems(FXCollections.observableArrayList(listFiltred));\n }\n }else{ // Non selected criteria\n tableOffres.setItems(FXCollections.observableArrayList(offresData.getOffres()));\n }\n }", "public static String _butpaso1_click() throws Exception{\nif (mostCurrent._imgmosquito.getVisible()==anywheresoftware.b4a.keywords.Common.True) { \n //BA.debugLineNum = 134;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 135;BA.debugLine=\"TimerAnimacion.Initialize(\\\"TimerAnimacion\\\", 10)\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5.Initialize(processBA,\"TimerAnimacion\",(long) (10));\n //BA.debugLineNum = 136;BA.debugLine=\"TimerAnimacion.Enabled = True\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5.setEnabled(anywheresoftware.b4a.keywords.Common.True);\n }else {\n //BA.debugLineNum = 138;BA.debugLine=\"imgMosquito1.Left = -60dip\";\nmostCurrent._imgmosquito1.setLeft((int) (-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (60))));\n //BA.debugLineNum = 139;BA.debugLine=\"imgMosquito1.Top = 50dip\";\nmostCurrent._imgmosquito1.setTop(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (50)));\n //BA.debugLineNum = 140;BA.debugLine=\"imgMosquito1.Visible = True\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 141;BA.debugLine=\"TimerAnimacionEntrada.Initialize(\\\"TimerAnimacion\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6.Initialize(processBA,\"TimerAnimacion_Entrada\",(long) (10));\n //BA.debugLineNum = 142;BA.debugLine=\"TimerAnimacionEntrada.Enabled = True\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6.setEnabled(anywheresoftware.b4a.keywords.Common.True);\n };\n //BA.debugLineNum = 149;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private void isAbleToBuild() throws RemoteException {\n int gebouwdeGebouwen = speler.getGebouwdeGebouwen();\n int bouwLimiet = speler.getKarakter().getBouwLimiet();\n if (gebouwdeGebouwen >= bouwLimiet) {\n bouwbutton.setDisable(true); // Disable button\n }\n }", "@FXML void ShowOffer(ActionEvent event4) throws IOException, BusinessException {\n\n\tPane annunci[] = { Annuncio1, Annuncio2, Annuncio3};\n\tTextArea embio[] = {EditWorkInfoArea,EditWorkInfoArea1,EditWorkInfoArea11};\n\tLabel Titoli[] = { TitleLabel,TitleLabel1,TitleLabel11};\n\tLabel Posizioni[] = {PositionLabel,PositionLabel1,PositionLabel11};\n\tLabel TipoContratto[] = {ContractTypeLabel,ContractTypeLabel1,ContractTypeLabel11}; \n\tLabel TempoContratto[] = {ContractTimeLabel,ContractTimeLabel1,ContractTimeLabel11};\n\tLabel Retribuzioni[] = {RetributionLabel,RetributionLabel1,RetributionLabel11};\n\tLabel Settori[] = {SectorLabel,SectorLabel1,SectorLabel11};\n\tLabel Regioni[] = {RegionLabel,RegionLabel1,RegionLabel11};\n\tLabel RetxTempo[] = {RetxTLabel,RetxTLabel1,RetxTLabel11};\n\tLabel Bonus [] = {BonusLabel,BonusLabel1,BonusLabel11};\n\tLabel Studi[] = {DegreeLabel,DegreeLabel1,DegreeLabel11};\n\tLabel Esperienze[] = {ExpLabel,ExpLabel1,ExpLabel11};\n\n try {\n\tint i = 0;\n\tList<Offer> offerList = offerService.findMyOffers(eoEmail.getText().toString());\n\t\t if ( offerList.size() < 3 ) {\n\t\t for ( i = offerList.size(); i < 3; i++ ) {\n\t\t annunci[i].setVisible(false); }\n\t\t }\n\t\t i = 0;\n\t\t for (Offer o: offerList) {\n\t\t annunci[i].setVisible(true);\n\t\t Titoli[i].setText(o.getTitle());\n\t\t Posizioni[i].setText(o.getPosition());\n\t\t Settori[i].setText(o.getSector());\n\t\t Regioni[i].setText(o.getRegion());\n\t\t TipoContratto[i].setText(o.getContractType()); \n\t\t TempoContratto[i].setText(o.getContractTime());\n\t\t Retribuzioni[i].setText(o.getWage());\n\t\t RetxTempo[i].setText(o.getWageTime());\n\t\t Studi[i].setText(o.getEducation());\n\t\t Bonus[i].setText(o.getBonus());\n\t\t embio[i].setText(o.getInfo());\n\t\t Esperienze[i].setText(o.getExperience());\n\t\t i++;\n\t\t }\n } catch (BusinessException e) {\n e.printStackTrace();\n throw new BusinessException(e);\n }\n}", "public FrontPage ()\n\t{\n\t\t\n\t\tframe.setLayout(new BorderLayout());\t\t\n\t\ttwobuttonPanel.setLayout(new GridLayout(1,2));\n\t\t\n\t\t\n\t\t// 2 buttons let user choose how to search\n\t\tJButton mak = new JButton(\"Car Maker\");\n\t\tJButton vendor = new JButton(\"Vendor\");\n\t\theader.setLayout(new BorderLayout());\n\t\tFont font = new Font(\"Dialog\", 1, 24);\n\t\tJLabel msgLabel = new JLabel(\"Select Search Option\");\n\t\tmsgLabel.setFont(font);\n\t\tmsgLabel.setForeground(Color.RED);\n\t\tmsgLabel.setHorizontalAlignment(JLabel.CENTER);\n\t\ttwobuttonPanel.add(mak);\n\t\ttwobuttonPanel.add(vendor);\n\t\theader.add(msgLabel, BorderLayout.NORTH);\n\t\theader.add(twobuttonPanel, BorderLayout.CENTER);\n\t\tframe.add(header,BorderLayout.NORTH);\n\t\tframe.add(display, BorderLayout.CENTER);\n\t\t//frame.add(details, BorderLayout.SOUTH);\n\t\tdisplay.add(partP);\n\t\tdisplay.add(carP);\n\t\tcarP.setVisible(false);\n\t\tpartP.setVisible(false);\n\t//\tdetails.setVisible(false);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//final boolean carMan = true;\n\t\tmak.addActionListener( \n\t \t\t \tnew ActionListener()\n\t \t\t \t{\n\t \t\t \t\tpublic void actionPerformed(ActionEvent event)\n\t \t\t \t\t{\n\t \t\t \t\t\t\n\t \t\t \t\t\t\t \t\t \t\t\t\n\t \t\t \t\t\tfinal int ans =1;\n\t \t\t \t\t\tselected =ans ;\t \t\t \n\t \t\t \t\t\tchangeView();\n\t \t\t \t\t\t//stateChanged(new ChangeEvent(this));\n\t \t\t \t\t}\n\t \t\t \t}\n\t );\n\t\t\n\t\t\n\t\tvendor.addActionListener( \n\t \t\t \tnew ActionListener()\n\t \t\t \t{\n\t \t\t \t\tpublic void actionPerformed(ActionEvent event)\n\t \t\t \t\t{\n\t \t\t \t\t\t\n\t \t\t \t\t\tfinal int ans2 =2;\n\t \t\t \t\t\tselected =ans2 ;\n\t \t\t \t\t\t//stateChanged(new ChangeEvent(this));\n\t \t\t \t\t\tchangeView();\n\t \t\t \t\t\t\n\t \t\t \t\t\t \t\t \t\t\t\n\t \t\t \t\t\t\n\t \t\t \t\t}\n\t \t\t \t}\n\t );\n\t\t\n\t\tframe.setTitle(\"AUTOMOBILE PART SEARCH SYSTEM\");\n\t\tframe.setSize(1500, 900);\n\t\t//frame.pack();\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t\t\t\n\t\t\t\t\n\t\t\n\t}", "public void aapne() {\n trykketPaa = true;\n setBackground(new Background(new BackgroundFill(Color.LIGHTGRAY, CornerRadii.EMPTY, Insets.EMPTY)));\n if (bombe) {\n setText(\"x\");\n Color moerkeregroenn = Color.rgb(86, 130, 3, 0.5);\n setBackground(new Background(new BackgroundFill(moerkeregroenn, CornerRadii.EMPTY, Insets.EMPTY)));\n } else if (bombeNaboer == 0) {\n setText(\" \");\n } else {\n setText(bombeNaboer + \"\");\n if (bombeNaboer == 1) {\n setTextFill(Color.BLUE);\n } else if (bombeNaboer == 2) {\n setTextFill(Color.GREEN);\n } else if (bombeNaboer == 3) {\n setTextFill(Color.RED);\n } else if (bombeNaboer == 4) {\n setTextFill(Color.DARKBLUE);\n } else if (bombeNaboer == 5) {\n setTextFill(Color.BROWN);\n } else if (bombeNaboer == 6) {\n setTextFill(Color.DARKCYAN);\n }\n }\n }", "private void setCurrentOperation(){ \r\n boolean isNamesVisible = true; //Valor logico si los campos de nombres y apellidos seran visibles\r\n Integer[] disables; //Se declara el arreglo que contendra las posiciones de la TOOLBAR que seran DESHABILITADOS para cada operacion\r\n loadToolBar(); //Se Refresca la barra de Herramientas\r\n lb_Title.setText(\"\"); //Se deja en blanco la etiqueta del Titulo\r\n //Se evalua el tipo de Operacion\r\n switch(tipoOperacion){\r\n case 0: //SOLO LECTURA \r\n tf_nroguia.setEditable(true);\r\n tf_nrorguia.setEditable(false);\r\n tf_chofer.setEditable(false);\r\n tf_veh1.setEditable(false);\r\n tf_veh2.setEditable(false);\r\n tf_ayud1.setEditable(false);\r\n tf_ayud2.setEditable(false);\r\n tf_cheqp.setEditable(false);\r\n tf_supruta.setEditable(false);\r\n\r\n dt_fcarga.setDisable(true);\r\n dt_relacion.setDisable(true);\r\n\r\n im_check.setVisible(false);\r\n im_val.setVisible(false);\r\n\r\n bt_c1.setDisable(true);\r\n bt_c2.setDisable(true);\r\n bt_c3.setDisable(true);\r\n bt_c4.setDisable(true);\r\n bt_c5.setDisable(true);\r\n bt_c6.setDisable(true);\r\n bt_c7.setDisable(true);\r\n\r\n //SE PERMITE: NUEVO, CANCELAR Y BUSCAR\r\n disables = new Integer[]{2,5,6,9,10};\r\n disableAllToolBar(disables); \r\n hb_1.setVisible(true);\r\n break;\r\n case 1: //NUEVO\r\n lb_Title.setText(\"NUEVO\");\r\n\r\n tf_nroguia.setEditable(false);\r\n tf_nrorguia.setEditable(true);\r\n\r\n dt_relacion.setDisable(false);\r\n\r\n im_check.setVisible(true);\r\n im_val.setVisible(false);\r\n\r\n //SE PERMITE: NUEVO,GUARDAR Y CANCELAR \r\n disables = new Integer[]{0,1,3,4,6,7,8,9,10,11};\r\n disableAllToolBar(disables); \r\n break;\r\n case 2: //EDITAR\r\n lb_Title.setText(\"EDITAR\");\r\n\r\n tf_nroguia.setEditable(false);\r\n tf_nrorguia.setEditable(true);\r\n\r\n dt_relacion.setDisable(false);\r\n \r\n im_check.setVisible(true);\r\n im_val.setVisible(false);\r\n \r\n //SE PERMITE: EDITAR,GUARDAR Y CANCELAR\r\n disables = new Integer[]{0,1,3,4,6,7,8,9,10,11};\r\n disableAllToolBar(disables); \r\n break;\r\n case 3: //GUARDAR\r\n tf_nroguia.setEditable(true);\r\n tf_nrorguia.setEditable(false);\r\n\r\n dt_relacion.setDisable(true);\r\n \r\n im_check.setVisible(false);\r\n im_val.setVisible(false);\r\n\r\n //SE PERMITE: GUARDAR Y CANCELAR\r\n disables = new Integer[]{0,1,3,4,6,7,8,9,10,11};\r\n disableAllToolBar(disables); \r\n break;\r\n case 4: //CAMBIAR STATUS \r\n tf_nroguia.setEditable(true);\r\n tf_nrorguia.setEditable(false);\r\n\r\n dt_relacion.setDisable(true);\r\n \r\n im_check.setVisible(false);\r\n im_val.setVisible(false);\r\n\r\n //SE PERMITE: GUARDAR,CAMBIO STATUS Y CANCELAR\r\n disables = new Integer[]{2,5,6,7,8,9,10};\r\n disableAllToolBar(disables); \r\n break;\r\n } \r\n init_FocusArray(tipoOperacion); \r\n Gui.getInstance().setTipoOperacion(tipoOperacion);\r\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tpHangHoa.setVisible(true);\r\n\t\t\t\tpLichLamViec.setVisible(false);\r\n\t\t\t\tpDashboard.setVisible(false);\r\n\t\t\t\tpKhachHang.setVisible(false);\r\n\t\t\t\tbllProduct = new ProductDAO();\r\n\r\n\t\t\t\ttxtTKHangHoa = new JTextField();\r\n\t\t\t\ttxtTKHangHoa.setText(\"Nhập tên hàng cần tìm ...\");\r\n\t\t\t\ttxtTKHangHoa.setBounds(49, 11, 562, 20);\r\n\t\t\t\tpHangHoa.add(txtTKHangHoa);\r\n\t\t\t\ttxtTKHangHoa.setColumns(10);\r\n\t\t\t\t\r\n\t\t\t\tJComboBox cbxNhomHang = new JComboBox();\r\n\t\t\t\tcbxNhomHang.setModel(new DefaultComboBoxModel(new String[] {\"Nhóm hàng\"}));\r\n\t\t\t\tcbxNhomHang.setToolTipText(\"\");\r\n\t\t\t\tcbxNhomHang.setBounds(646, 11, 146, 20);\r\n\t\t\t\tpHangHoa.add(cbxNhomHang);\r\n\t\t\t\t\r\n\t\t\t\tJButton btnThemHang = new JButton(\"Thêm Hàng\");\r\n\t\t\t\tbtnThemHang.setBounds(800, 11, 89, 23);\r\n\t\t\t\tpHangHoa.add(btnThemHang);\r\n\t\t\t\tbtnThemHang.addActionListener(new ActionListener() {\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\tThemHang fThemHang = new ThemHang();\r\n\t\t\t\t\t\tfThemHang.setVisible(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tString[] columnNames = new String[]{\"Mã\",\r\n\t\t \"Tên hàng hóa\",\r\n\t\t \"Nhóm hàng\",\r\n\t\t \"Giá bán\",\r\n\t\t \"Số lượng\"};\r\n\t\t\t\t\r\n\t\t\t\tjava.util.List<BaseProduct> products = bllProduct.getProducts(null, 0);\r\n\t\t\t DefaultTableModel tblModel = new DefaultTableModel(columnNames, 0);\r\n\r\n\t\t\t\tfor (int i = 0; i < products.size(); i++){\r\n\t\t\t\t\t long ProductId = products.get(i).getProductId();\r\n\t\t\t\t\t String Barcode = products.get(i).getBarCode();\r\n\t\t\t\t\t String ProductName = products.get(i).getProductName();\r\n\t\t\t\t\t long CategoryId = products.get(i).getCategoryId();\r\n\t\t\t\t\t BigDecimal Price = products.get(i).getRetailPrice();\r\n\t\t\t\t\t BigDecimal Quantity = products.get(i).getQtyAvailable();\r\n\t\t\t\t\t Object[] row = { Barcode, ProductName, CategoryId, Price, Quantity};\r\n\t\t\t\t\t tblModel.addRow(row);\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tJScrollPane scrollPane = new JScrollPane();\r\n\t\t\t\tscrollPane.setBounds(49, 50, 837, 588);\r\n\t\t\t\tpHangHoa.add(scrollPane);\r\n\t\t\t\t\r\n\t\t\t\ttbDSHangHoa = new JTable(tblModel);\r\n\t\t\t\tscrollPane.setViewportView(tbDSHangHoa);\r\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void show() {\n\n table = new Table();\n table.setWidth(stage.getWidth());\n table.align(Align.center|Align.top);\n table.setPosition(0, Gdx.graphics.getHeight()* 3/4);\n\n\n ///////////////////////Button Generierung///////////////////////////////////////\n networkButton = new TextButton(\"Start\", skin);\n serverButton = new TextButton(\"Server starten\", skin);\n optionButton = new TextButton(\"Optionen\", skin);\n exitButton = new TextButton(\"Beenden\", skin);\n createGameButton=new TextButton(\"Erstelle Spiel\",skin);\n //////////////////////Listener Generierung/////////////////////////////////////\n\n networkButton.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent event, float x, float y) { game.setScreen(new NetworkScreen(game));}\n });\n\n serverButton.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent event, float x, float y) {\n try{\n server.Server.init();\n checkAccount();\n serverButton.setText(\"Server ist gestartet\");\n serverButton.setTouchable(Touchable.disabled);\n }catch(Exception e){\n e.printStackTrace();\n }\n }\n });\n\n optionButton.addListener(new ClickListener(){\n @Override\n public void clicked(InputEvent event, float x, float y){ game.setScreen(new OptionScreen(game));}\n });\n\n exitButton.addListener(new ClickListener(){\n @Override\n public void clicked(InputEvent event, float x, float y){ Gdx.app.exit();}\n });\n\n createGameButton.addListener(new ClickListener(){\n @Override\n public void clicked(InputEvent event, float x, float y){\n game.setScreen(new InitScreen(game,null));\n }\n });\n\n\n\n /////////////////////Bauen der Tabelle////////////////////////////////////////\n table.padTop(150);\n table.row().padBottom(10).fill().width(150).height(50);\n table.add(networkButton);\n table.row().padBottom(10).fill().width(150).height(50);\n table.add(createGameButton);\n table.row().padBottom(10).fill().width(150).height(50);\n table.add(optionButton);\n table.row().padBottom(10).fill().width(150).height(50);\n table.add(serverButton);\n table.row().fill().width(150).height(50);\n table.add(exitButton);\n stage.addActor(table);\n\n\n ////////////////////Stage sprites setzen///////////////////////////////////////\n batch = new SpriteBatch();\n backGround = new Sprite(new Texture(Gdx.files.internal(\"assets/splash.png\")));\n backGround.setBounds(stage.getWidth()/2-512, (stage.getHeight()-320), 1024, 300);\n\n\n bg.setWrap(Texture.TextureWrap.Repeat, Texture.TextureWrap.Repeat);\n\n pe = new ParticleEffect();\n pe.load(Gdx.files.internal(\"assets/torch.party\"), Gdx.files.internal(\"\"));\n pe.getEmitters().first().setPosition(backGround.getX()+40, backGround.getY()+95);\n pe.start();\n pe2 = new ParticleEffect();\n pe2.load(Gdx.files.internal(\"assets/torch.party\"), Gdx.files.internal(\"\"));\n pe2.getEmitters().first().setPosition(backGround.getX()+backGround.getWidth()-50, backGround.getY()+95);\n pe2.start();\n\n ////////////////////Input Regeln///////////////////////////////////////////////\n Gdx.input.setInputProcessor(stage);\n\n\n ///////////////////brauchst du das noch?////////////////////////////////////////\n /* Texture splashTexture = new Texture(Gdx.files.internal(\"assets/splash.jpg\"));\n TextureRegion region = new TextureRegion(splashTexture,0,0,1024,216);\n splash=new Sprite(region);\n splashTexture.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);\n splash.setSize(1024,216);\n splash.setOrigin(splash.getWidth()/2,splash.getHeight()/2);\n splash.setPosition(0,552);*/\n\n }", "private void eventoSuperficie(){\n s1.setChecked(true);\n s2.setChecked(false);\n s3.setChecked(false);\n esquema.setImageDrawable(getResources().getDrawable(R.drawable.np3));\n PosicionBarrasReactor.setPosicionActual(PosicionBarrasReactor.SUPERFICIE);\n }", "private void geselecteerdSymbool()\n {\n /**\n * selecteren van vak\n */\n vulKeuzeBordIn();\n GraphicsContext gc = canvasKeuzeveld[0][keuzeID].getGraphicsContext2D();\n tekenRechtHoek(gc, 0, 0, 30, 30, Color.RED);\n }", "public static String _btnfrasco_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 126;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Ciclo\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Ciclo\",mostCurrent.activityBA);\n //BA.debugLineNum = 128;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 130;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void act(){\n if(mainMenu!=null){\n if((Greenfoot.mouseClicked(callMenu.getCallMenu()))) {\n Greenfoot.setWorld(mainMenu); \n }\n }\n if(pauseMenu!=null){\n if((Greenfoot.mouseClicked(callMenu.getCallMenu()))) {\n Greenfoot.setWorld(pauseMenu); \n }\n }\n if(choiceMenu!=null){\n if((Greenfoot.mouseClicked(callMenu.getCallMenu()))) {\n Greenfoot.setWorld(choiceMenu); \n }\n }\n if(actual == 1){\n prePage.setImage(new GreenfootImage(\"\", 0, null, null));\n nextPage.setImagine(\"sipka1\");\n if((Greenfoot.mouseClicked(nextPage.getLabel()))) {\n setBackground(\"images/manual2.png\");\n actual = 2;\n }\n }\n else if(actual == 2){\n nextPage.setImagine(\"sipka1\");\n prePage.setImagine(\"sipka0\");\n if((Greenfoot.mouseClicked(nextPage.getLabel()))) {\n setBackground(\"images/manual3.png\");\n actual = 3;\n }\n if((Greenfoot.mouseClicked(prePage.getLabel()))) {\n setBackground(\"images/manual1.png\");\n actual = 1;\n }\n }\n else if(actual == 3){\n nextPage.setImagine(\"sipka1\");\n if((Greenfoot.mouseClicked(nextPage.getLabel()))) {\n setBackground(\"images/manual4.png\");\n actual = 4;\n }\n if((Greenfoot.mouseClicked(prePage.getLabel()))) {\n setBackground(\"images/manual2.png\");\n actual = 2;\n }\n }\n else if(actual == 4){\n nextPage.setImagine(\"sipka1\");\n if((Greenfoot.mouseClicked(nextPage.getLabel()))) {\n setBackground(\"images/manual5.png\");\n actual = 5;\n }\n if((Greenfoot.mouseClicked(prePage.getLabel()))) {\n setBackground(\"images/manual3.png\");\n actual = 3;\n }\n }\n else if(actual == 5){\n nextPage.setImage(new GreenfootImage(\"\", 0, null, null));\n if((Greenfoot.mouseClicked(prePage.getLabel()))) {\n setBackground(\"images/manual4.png\");\n actual = 4;\n }\n }\n }", "private void mostrarTablero() {\n Jugada objJugada = null;\n if (! this.objJuegoTresEnRaya.getMovimientos().estaVacia())\n objJugada = this.objJuegoTresEnRaya.getMovimientos().ultimo();\n\n if (objJugada == null) {\n tab0x0.setEnabled(true);\n tab0x1.setEnabled(true);\n tab0x2.setEnabled(true);\n \n tab1x0.setEnabled(true);\n tab1x1.setEnabled(true);\n tab1x2.setEnabled(true);\n \n tab2x0.setEnabled(true);\n tab2x1.setEnabled(true);\n tab2x2.setEnabled(true);\n \n tab0x0.setText(\"\");\n tab0x1.setText(\"\");\n tab0x2.setText(\"\");\n \n tab1x0.setText(\"\");\n tab1x1.setText(\"\");\n tab1x2.setText(\"\");\n \n tab2x0.setText(\"\");\n tab2x1.setText(\"\");\n tab2x2.setText(\"\");\n return;\n }\n \n if (objJugada.getTablero(0, 0) > 0) {\n tab0x0.setEnabled(false);\n tab0x0.setText(getTexto(objJugada.getTablero(0, 0)));\n }\n if (objJugada.getTablero(0, 1) > 0) {\n tab0x1.setEnabled(false);\n tab0x1.setText(getTexto(objJugada.getTablero(0, 1)));\n }\n if (objJugada.getTablero(0, 2) > 0) {\n tab0x2.setEnabled(false);\n tab0x2.setText(getTexto(objJugada.getTablero(0, 2)));\n }\n\n if (objJugada.getTablero(1, 0) > 0) {\n tab1x0.setEnabled(false);\n tab1x0.setText(getTexto(objJugada.getTablero(1, 0)));\n }\n if (objJugada.getTablero(1, 1) > 0) {\n tab1x1.setEnabled(false);\n tab1x1.setText(getTexto(objJugada.getTablero(1, 1)));\n }\n if (objJugada.getTablero(1, 2) > 0) {\n tab1x2.setEnabled(false);\n tab1x2.setText(getTexto(objJugada.getTablero(1, 2)));\n }\n\n if (objJugada.getTablero(2, 0) > 0) {\n tab2x0.setEnabled(false);\n tab2x0.setText(getTexto(objJugada.getTablero(2, 0)));\n }\n if (objJugada.getTablero(2, 1) > 0) {\n tab2x1.setEnabled(false);\n tab2x1.setText(getTexto(objJugada.getTablero(2, 1)));\n }\n if (objJugada.getTablero(2, 2) > 0) {\n tab2x2.setEnabled(false);\n tab2x2.setText(getTexto(objJugada.getTablero(2, 2)));\n }\n \n this.numNodosResultLabel.setText(\"\" + objJuegoTresEnRaya.getNumeroNodosUltima());\n \n if (objJuegoTresEnRaya.estaTerminado()) {\n tab0x0.setEnabled(false);\n tab0x1.setEnabled(false);\n tab0x2.setEnabled(false);\n \n tab1x0.setEnabled(false);\n tab1x1.setEnabled(false);\n tab1x2.setEnabled(false);\n \n tab2x0.setEnabled(false);\n tab2x1.setEnabled(false);\n tab2x2.setEnabled(false);\n \n this.quienGanoResultLabel.setText(getTexto(objJuegoTresEnRaya.getQuienGano()));\n }\n }", "public void VerifyButtons(){\n if (currentTurn.getSiguiente() == null){\n next_turn.setEnabled(false);\n } else{\n next_turn.setEnabled(true);\n }\n if (currentTurn.getAnterior() == null){\n prev_turn.setEnabled(false);\n } else{\n prev_turn.setEnabled(true);\n }\n if (current.getSiguiente() == null){\n next_game.setEnabled(false);\n } else{\n next_game.setEnabled(true);\n }\n if (current.getAnterior() == null){\n prev_game.setEnabled(false);\n } else{\n prev_game.setEnabled(true);\n }\n }", "private void afegirButtonPressed(){\n Toaster toaster = new Toaster(getContext());\n if(Afegir.getCurrentTextColor() == ResourcesCompat.getColor(getResources(), R.color.solidGray, null))\n //Cas d'error: es preten referenciar a una definició inexistent.\n toaster.standardToast(getText(R.string.err_equ_not_match).toString());\n\n else if(WordText.getText().toString().isEmpty() ||\n TranText.getText().toString().isEmpty() ||\n Categories.getText().toString().isEmpty() ||\n (Equival.isChecked() &&\n (!(EquWord.isChecked() || EquTran.isChecked()) ||\n InfoText.getText().toString().isEmpty()))){\n\n //Cas d'error: no poden ser buits, ja que la base de dades ho requereix axi.\n toaster.standardToast(getText(R.string.err_empty_elements).toString());\n }\n\n else insertOrUpdateItem();\n }", "public void restaura(){ \n super.restauraE();\n setImage(\"FrtEA1.png\"); \n check = false; \n }", "public void verResultadoPrueba(PruebaCandidato pruebacselec)\r\n\t{\r\n\t\tresultadoprueba = new ResultadoPrueba(this, pruebacselec);\r\n\t\tresultadoprueba.setVisible(true);\r\n\t}", "@Override\n public void onClick(View view) {\n switch (view.getId()){\n case R.id.temp_rbt:\n isTemp = true;\n break;\n case R.id.temp_rbf:\n isTemp = false;\n break;\n case R.id.idf_rbt:\n isIdf = true;\n break;\n case R.id.idf_rbf:\n isIdf = false;\n break;\n case R.id.sig_rbt:\n isSig = true;\n break;\n case R.id.sig_rbf:\n isSig = false;\n break;\n case R.id.healthcode_rbt:\n isHcode = true;\n break;\n case R.id.healthcode_rbf:\n isHcode = false;\n break;\n }\n }", "private void chegada() {\n Pessoa pessoa = tablePessoa.getSelectionModel().getSelectedItem();\n if(pessoa==null){\n pessoa=tablePessoa.getItems().get(0);\n \n }\n// if(pessoa!=null){\n Chegada chegada = new Chegada(\n pessoa.getRg(),\n pessoa.getNome(),\n pessoa.getSegundoNome(),\n pessoa.getTelefone(),\n pessoa.getSexo(),\n HoraChegada,\n pessoa.getData()\n \n );\n \n// }\n mainApp.getPersonData2().add(chegada);\n \n }", "public static void alertaMantenimiento() {\n ArticleCRUD artCRUD = new ArticleCRUD(host);\r\n if (artCRUD.cumplePuntoReorden() != null) {\r\n //articulos = artCRUD.enviarDatosTabla(artCRUD.cumple2Anios());\r\n Alert obj = new Alert(0);\r\n Home.escritorio.add(obj);\r\n obj.toFront();\r\n //centrar\r\n //Para centrar la ventana abierta\r\n Dimension dimension = escritorio.getSize();\r\n Dimension FrameSize = obj.getSize();\r\n //obj.setLocation((dimension.width - FrameSize.width) / 2, (dimension.height - FrameSize.height) / 2);\r\n obj.show();\r\n obj.lblMensaje.setText(\"Los materiales mostrados han descendido del punto de reorden, realice un pedido\");\r\n } else {\r\n System.out.println(\"Sin notificaciones de caducidad\");\r\n }\r\n if (artCRUD.cumpleMinimo() != null) {\r\n //articulos = artCRUD.enviarDatosTabla(artCRUD.cumple2Anios());\r\n Alert obj = new Alert(0);\r\n Home.escritorio.add(obj);\r\n obj.toFront();\r\n //centrar\r\n //Para centrar la ventana abierta\r\n Dimension dimension = escritorio.getSize();\r\n Dimension FrameSize = obj.getSize();\r\n //obj.setLocation((dimension.width - FrameSize.width) / 2, (dimension.height - FrameSize.height) / 2);\r\n obj.show();\r\n obj.lblMensaje.setText(\"Los materiales mostrados han descendido al nivel mínimo en bodega, realice un pedido inmediatamente\");\r\n } else {\r\n System.out.println(\"Sin notificaciones de caducidad\");\r\n }\r\n EquipmentCRUD equiCRUD = new EquipmentCRUD(host);\r\n if (equiCRUD.cumple2Anios() != null) {\r\n //articulos = artCRUD.enviarDatosTabla(artCRUD.cumple2Anios());\r\n Alert obj = new Alert(1);\r\n Home.escritorio.add(obj);\r\n obj.toFront();\r\n //centrar\r\n //Para centrar la ventana abierta\r\n Dimension dimension = escritorio.getSize();\r\n Dimension FrameSize = obj.getSize();\r\n //obj.setLocation((dimension.width - FrameSize.width) / 2, (dimension.height - FrameSize.height) / 2);\r\n obj.show();\r\n obj.lblMensaje.setText(\"Los equipos mostrados cumplen 2 años de uso\");\r\n } else {\r\n System.out.println(\"Sin notificaciones de caducidad\");\r\n }\r\n if (equiCRUD.cumple1Anio() != null) {\r\n //articulos = artCRUD.enviarDatosTabla(artCRUD.cumple2Anios());\r\n Alert obj = new Alert(1);\r\n Home.escritorio.add(obj);\r\n obj.toFront();\r\n //centrar\r\n //Para centrar la ventana abierta\r\n Dimension dimension = escritorio.getSize();\r\n Dimension FrameSize = obj.getSize();\r\n //obj.setLocation((dimension.width - FrameSize.width) / 2, (dimension.height - FrameSize.height) / 2);\r\n obj.show();\r\n obj.lblMensaje.setText(\"Los equipos mostrados cumplen 1 año de uso\");\r\n } else {\r\n System.out.println(\"Sin notificaciones de caducidad\");\r\n }\r\n if (equiCRUD.cumple3Anios() != null) {\r\n //articulos = artCRUD.enviarDatosTabla(artCRUD.cumple2Anios());\r\n Alert obj = new Alert(1);\r\n Home.escritorio.add(obj);\r\n obj.toFront();\r\n //centrar\r\n //Para centrar la ventana abierta\r\n Dimension dimension = escritorio.getSize();\r\n Dimension FrameSize = obj.getSize();\r\n //obj.setLocation((dimension.width - FrameSize.width) / 2, (dimension.height - FrameSize.height) / 2);\r\n obj.show();\r\n obj.lblMensaje.setText(\"Los equipos mostrados cumplen 3 años de uso\");\r\n } else {\r\n System.out.println(\"Sin notificaciones de caducidad\");\r\n }\r\n OrdenTrabajoCRUD ordtrCRUD = new OrdenTrabajoCRUD(host);\r\n if (ordtrCRUD.cumpleMesAntes() != null) {\r\n //articulos = artCRUD.enviarDatosTabla(artCRUD.cumple2Anios());\r\n Alert obj = new Alert(0);\r\n Home.escritorio.add(obj);\r\n obj.toFront();\r\n //centrar\r\n //Para centrar la ventana abierta\r\n Dimension dimension = escritorio.getSize();\r\n Dimension FrameSize = obj.getSize();\r\n //obj.setLocation((dimension.width - FrameSize.width) / 2, (dimension.height - FrameSize.height) / 2);\r\n obj.show();\r\n obj.lblMensaje.setText(\"Las siguientes órdenes de trabajo están a un mes o menos de cumplir la fecha requerida\");\r\n } else {\r\n System.out.println(\"Sin notificaciones de caducidad\");\r\n }\r\n if (ordtrCRUD.cumpleSemanaAntes() != null) {\r\n //articulos = artCRUD.enviarDatosTabla(artCRUD.cumple2Anios());\r\n Alert obj = new Alert(0);\r\n Home.escritorio.add(obj);\r\n obj.toFront();\r\n //centrar\r\n //Para centrar la ventana abierta\r\n Dimension dimension = escritorio.getSize();\r\n Dimension FrameSize = obj.getSize();\r\n //obj.setLocation((dimension.width - FrameSize.width) / 2, (dimension.height - FrameSize.height) / 2);\r\n obj.show();\r\n obj.lblMensaje.setText(\"Las siguientes órdenes de trabajo están a una semana o menos de cumplir la fecha requerida\");\r\n } else {\r\n System.out.println(\"Sin notificaciones de caducidad\");\r\n }\r\n if (ordtrCRUD.cumpleDiaAntes() != null) {\r\n //articulos = artCRUD.enviarDatosTabla(artCRUD.cumple2Anios());\r\n Alert obj = new Alert(0);\r\n Home.escritorio.add(obj);\r\n obj.toFront();\r\n //centrar\r\n //Para centrar la ventana abierta\r\n Dimension dimension = escritorio.getSize();\r\n Dimension FrameSize = obj.getSize();\r\n //obj.setLocation((dimension.width - FrameSize.width) / 2, (dimension.height - FrameSize.height) / 2);\r\n obj.show();\r\n obj.lblMensaje.setText(\"Las siguientes órdenes de trabajo están a 1 día de llegar a la fecha requerida\");\r\n } else {\r\n System.out.println(\"Sin notificaciones de caducidad\");\r\n }\r\n MantenimientoCRUD mantCRUD = new MantenimientoCRUD(host);\r\n if (mantCRUD.cumpleMesAntes() != null) {\r\n //articulos = artCRUD.enviarDatosTabla(artCRUD.cumple2Anios());\r\n Alert obj = new Alert(0);\r\n Home.escritorio.add(obj);\r\n obj.toFront();\r\n //centrar\r\n //Para centrar la ventana abierta\r\n Dimension dimension = escritorio.getSize();\r\n Dimension FrameSize = obj.getSize();\r\n //obj.setLocation((dimension.width - FrameSize.width) / 2, (dimension.height - FrameSize.height) / 2);\r\n obj.show();\r\n obj.lblMensaje.setText(\"Las siguientes tareas de mantenimiento están a 1 mes o menos de llegar a la fecha de término\");\r\n } else {\r\n System.out.println(\"Sin notificaciones de caducidad\");\r\n }\r\n if (mantCRUD.cumpleSemanaAntes() != null) {\r\n //articulos = artCRUD.enviarDatosTabla(artCRUD.cumple2Anios());\r\n Alert obj = new Alert(0);\r\n Home.escritorio.add(obj);\r\n obj.toFront();\r\n //centrar\r\n //Para centrar la ventana abierta\r\n Dimension dimension = escritorio.getSize();\r\n Dimension FrameSize = obj.getSize();\r\n //obj.setLocation((dimension.width - FrameSize.width) / 2, (dimension.height - FrameSize.height) / 2);\r\n obj.show();\r\n obj.lblMensaje.setText(\"Las siguientes tareas de mantenimiento están a 1 semana o menos de llegar a la fecha de término\");\r\n } else {\r\n System.out.println(\"Sin notificaciones de caducidad\");\r\n }\r\n if (mantCRUD.cumpleDiaAntes() != null) {\r\n //articulos = artCRUD.enviarDatosTabla(artCRUD.cumple2Anios());\r\n Alert obj = new Alert(0);\r\n Home.escritorio.add(obj);\r\n obj.toFront();\r\n //centrar\r\n //Para centrar la ventana abierta\r\n Dimension dimension = escritorio.getSize();\r\n Dimension FrameSize = obj.getSize();\r\n //obj.setLocation((dimension.width - FrameSize.width) / 2, (dimension.height - FrameSize.height) / 2);\r\n obj.show();\r\n obj.lblMensaje.setText(\"Las siguientes tareas de mantenimiento están a 1 día de llegar a la fecha de término\");\r\n } else {\r\n System.out.println(\"Sin notificaciones de caducidad\");\r\n }\r\n }", "public void activarVista(){\r\n\tvista.getVerVistaAutorObra().addActionListener(r->{\r\n\t\tCrearVista.crearVIstaAutorObra(con);\r\n\t\tvista.getTable().removeAll();\r\n\t\tlistaArte= new ArrayList<ObraArte>();\r\n\t\tlistaArte.removeAll(listaArte);\r\n\t\tlistaArte=SeleccionarDatosVista.getTodosRegistros(con);\r\n\t\ttableModelArteVista= new TableModelArteVista(listaArte, CABECERA);\r\n\t\tvista.getTable().setModel(tableModelArteVista);\r\n\t\tvista.getTxtBarraStatus().setText(\"VISTA CREADA. DICHA VISTA NO ES EDITABLE.\");\r\n\t\tvista.getButton_Modificar().setEnabled(false);\r\n\t\tvista.getButtonBorrar().setEnabled(false);\r\n\t\tvista.getMntmBorrarFila().setEnabled(false);\r\n\t\tvista.getButtonInsertarNuevo().setEnabled(false);\r\n\t\tvista.getLabelSize().setText(vista.getTable().getRowCount()+\" elementos.\");\r\n\t\t\r\n\t});\r\n}", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "private JButton getAnalyzujTlacitko() {\n\t\tif (analyzujTlacitko == null) {\n\t\t\tanalyzujTlacitko = new JButton();\n\t\t\tanalyzujTlacitko.setText(\"Analyzuj\");\n\t\t\tanalyzujTlacitko.setBounds(new Rectangle(20, 115, 100, 30));\n\t\t\tanalyzujTlacitko\n\t\t\t\t\t.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\n\t\t\t\t\t\t\tspravne = false;\n\n\t\t\t\t\t\t\tLinkedList<String> analyza = new LinkedList<String>();\n\n\t\t\t\t\t\t\tString nazov = priklad.vratNazov();\n\t\t\t\t\t\t\tString pocty = priklad.vratPocty();\n\t\t\t\t\t\t\tString charakter = priklad.vratCharakter();\n\t\t\t\t\t\t\tList<String> enhNazvy = priklad.vratEnhNazvy();\n\t\t\t\t\t\t\tList<String> enhSkratky = priklad.vratEnh();\n\n\t\t\t\t\t\t\tif (nazov == null) {\n\t\t\t\t\t\t\t\tnazov = \"(nenájdený)\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (pocty == null) {\n\t\t\t\t\t\t\t\tpocty = \"(nenájdené)\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (charakter == null) {\n\t\t\t\t\t\t\t\tcharakter = \"(nenájdený)\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (enhNazvy == null) {\n\t\t\t\t\t\t\t\tenhNazvy = new ArrayList<String>();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (enhSkratky == null) {\n\t\t\t\t\t\t\t\tenhSkratky = new ArrayList<String>();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tanalyza.add(\"Názov: \" + nazov);\n\t\t\t\t\t\t\tanalyza.add(\"Počty poltónov: \" + pocty);\n\t\t\t\t\t\t\tanalyza.add(\"Charakter: \" + charakter);\n\t\t\t\t\t\t\tanalyza.add(\" \");\n\t\t\t\t\t\t\tanalyza.add(\"Ďalšie názvy: \");\n\t\t\t\t\t\t\tanalyza\n\t\t\t\t\t\t\t\t\t.addAll(enhNazvy\n\t\t\t\t\t\t\t\t\t\t\t.subList(1, enhNazvy.size()));\n\t\t\t\t\t\t\tanalyza.add(\" \");\n\t\t\t\t\t\t\tanalyza.add(\"Skratky: \");\n\t\t\t\t\t\t\tanalyza.addAll(enhSkratky);\n\n\t\t\t\t\t\t\tanalyzaList.setListData(analyza.toArray());\n\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t}\n\t\treturn analyzujTlacitko;\n\t}", "@FXML\r\n\tprivate void aide() {\r\n\t\tAlert alert = new Alert(AlertType.INFORMATION);\r\n\t\talert.setTitle(\"Aide\");\r\n\t\talert.setHeaderText(null);\r\n\t\talert.setContentText(\"Le jeu des allumettes ! \\n\\n Un tas d'allumettes est dispose sur la table, il y en a un nombre impair.\"\r\n\t\t\t\t+ \"\\n\\n Chaque joueur prend, tour a tour, 1 ou 2 allumettes dans le tas (vous pouvez essayez de tricher ca ne fonctionnera pas !\"\r\n\t\t\t\t+ \" La partie se termine quand il n'y a plus d'allumettes sur la table. Le gagant est celui qui aura un nombre impair d'allumettes a la fin !\"\r\n\t\t\t\t+ \"\\n\\n Le nombre d'allumettes de depart est aleatoire, tout comme le joueur qui commence. Que le meilleur gagne !\"\r\n\t\t\t\t+ \"\\n\\n\\nComment jouer ? \\n\\n Mais c'est tres simple jammy ! Il suffit de cliquer sur une allumette presente sur la table pour la selectionner !\"\r\n\t\t\t\t+ \"\\n\\n Pour valider votre selection il suffit de cliquer sur le bouton \\\"Valider\\\". \");\r\n\t\t\r\n\t\talert.showAndWait();\r\n\t}", "public static String _btncerrarpopup_click() throws Exception{\nmostCurrent._panelpopups_1.RemoveView();\n //BA.debugLineNum = 117;BA.debugLine=\"butPatas.Visible = True\";\nmostCurrent._butpatas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 118;BA.debugLine=\"butColor.Visible = True\";\nmostCurrent._butcolor.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 119;BA.debugLine=\"lblFondo.RemoveView\";\nmostCurrent._lblfondo.RemoveView();\n //BA.debugLineNum = 120;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private void createShopMenu() {\n Player player = gameInstance.getEntityManager().getOrCreatePlayer();\n\n Table table = new Table();\n table.top();\n table.setFillParent(true);\n\n //WELCOME MESSAGE\n Label welcome = new Label(\"Welcome to the \"+department.getName()+\" Department!\",\n StyleManager.generateLabelStyle(50, Color.GOLD));\n\n //REPAIR BUTTON\n //label to display if player's boat has full health\n Label noRepair = new Label(\"Your ship does not need repair!\", StyleManager.generateLabelStyle(30, Color.BLACK));\n\n //button updated regularly in render\n repair = new TextButton(\"\", StyleManager.generateTBStyle(40, Color.BLACK, Color.GRAY));\n repair.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent ev, float x, float y) {\n if(player.getBalance()>=getHealCost()) {\n //has enough gold\n player.deductBalance(getHealCost());\n player.setHealth(player.getMaxHealth());\n }\n }\n });\n\n //UPDATE BUTTON\n //label to display if allied college not defeat (crew member not unlocked)\n Label noUpgrade = new Label(\"You have not unlocked this crew member!\", StyleManager.generateLabelStyle(40, Color.BLACK));\n\n //Maximum level label\n Label maxUpgrade = new Label(\"This crew member is at it's maximum level!\", StyleManager.generateLabelStyle(40, Color.BLACK));\n\n\n //button updated regularly in render\n CrewMember crewMember = department.getCrewMember();\n upgrade = new TextButton(\"\",\n StyleManager.generateTBStyle(30, Color.BLACK, Color.GRAY));\n upgrade.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent ev, float x, float y) {\n if((player.getBalance()>=crewMember.getUpgradeCost())\n && crewMember.canUpgrade()) {\n //has enough gold and not maximum level\n player.deductBalance(crewMember.getUpgradeCost());\n crewMember.upgrade();\n }\n }\n });\n\n //EXIT BUTTON\n TextButton exit = new TextButton(\"Exit!\", StyleManager.generateTBStyle(25, Color.RED, Color.GRAY));\n exit.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent ev, float x, float y) {\n gameInstance.fadeSwitchScreen(gameInstance.getSailScreen());\n }\n });\n\n //POPULATE TABLE\n table.add(welcome).padTop(Value.percentHeight(0.35f, table)).expandX();\n table.row();\n if(player.getHealth().equals(player.getMaxHealth())) {\n table.add(noRepair).padTop(Value.percentHeight(0.05f, table)).expandX();\n } else {\n table.add(repair).padTop(Value.percentHeight(0.05f, table)).expandX();\n }\n table.row();\n if(player.getCrewMembers().contains(crewMember)) {\n //has unlocked crew member\n if(crewMember.canUpgrade()) {\n table.add(upgrade).padTop(Value.percentHeight(0.02f, table)).expandX();\n } else {\n table.add(maxUpgrade).padTop(Value.percentHeight(0.02f, table)).expandX();\n }\n } else {\n table.add(noUpgrade).padTop(Value.percentHeight(0.02f, table)).expandX();\n }\n table.row();\n table.add(exit).padTop(Value.percentHeight(0.05f, table)).expandX();\n\n getStage().addActor(table);\n }", "@Override\r\n\t\t\tpublic void buttonClick(ClickEvent event) \r\n\t\t\t{\n\t\t\t\tif(((NavigatorUI) UI.getCurrent()).getMainView().equals(\"Cibernauta\"))\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\tsubWindow.setModal(true);\r\n\t\t\t\t\tsubWindow.setResizable(false);\r\n\t\t\t\t\tsubWindow.setContent(new Contratar_cibernauta(canalL.getValue()));\r\n\t\t\t\t\tUI.getCurrent().addWindow(subWindow);\r\n\t\t\t\t\t\r\n\t\t\t\t}else if(((NavigatorUI) UI.getCurrent()).getMainView().equals(\"Vista_Cliente\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontratacion = comprobarContratacion();\r\n\t\t\t\t\t\r\n\t\t\t\t\tsubWindow.setModal(true);\r\n\t\t\t\t\tsubWindow.setResizable(false);\r\n\t\t\t\t\tsubWindow.setContent(new Contratar_vista_usuario(canalL.getValue(), contratacion, idModalidad));\r\n\t\t\t\t\tUI.getCurrent().addWindow(subWindow);\r\n\t\t\t\t\t\r\n\t\t\t\t}else if(((NavigatorUI) UI.getCurrent()).getMainView().equals(\"Cliente\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontratacion = comprobarContratacion();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contratacion || idModalidad.isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubWindow.setModal(true);\r\n\t\t\t\t\t\tsubWindow.setResizable(false);\r\n\t\t\t\t\t\tsubWindow.setContent(new Contratar_cliente(canalL.getValue()));\r\n\t\t\t\t\t\tUI.getCurrent().addWindow(subWindow);\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdoNavigate(Crear_incidencia.VIEW_NAME + \"/\" + \"contratacion\" +\";\" +canalL.getValue());\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}", "private void tbnthemActionPerformed(java.awt.event.ActionEvent evt) {\n \n if(PrimaryKeyMa()== true)\n \n { \n if(cboloai.getSelectedIndex() == 0 ) \n {\n \n try {\n danhsach.themGV( new GVCoHuu( ChuyenStringSangDate(tfngayvao.getText()) , Double.parseDouble(tfluongcb.getText()) , tfma.getText().trim(),tften.getText().trim(), Integer.parseInt(tfsogio.getText()), gt) );\n } catch (ParseException ex) {\n Logger.getLogger(GiaoDien.class.getName()).log(Level.SEVERE, null, ex);\n }\n } \n else {\n danhsach.themGV( new GVThinhGiang( tfmahopdong.getText().trim() , tfma.getText().trim(),tften.getText().trim() , Integer.parseInt(tfsogio.getText()), gt));\n } \n lberrorma.setText(null);\n RemoveAllTable();\n napDulieu();\n Refresh();\n EnabledXoa();\n }else {\n tfma.setText(null);\n lberrorma.setText(\"Mã đã tồn tại !\");\n }\n \n }", "@Override\n public boolean activate() {\n //When will this activate?\n return Areas.FALADOR.contains(ctx.players.local().tile())\n && ctx.widgets.component(1371,0).visible()\n && !ctx.objects.select().name(\"Waterpump\").within(6.0).isEmpty();\n }", "public void popup(String a){\n pop.setLayout(null);\n ControlAction c = new ControlAction();\n pop.setBounds(420, 320, 460, 160);\n pop.setBorder(new LineBorder(Color.BLACK, 2));\n //condition for showing popup message\n if(a.startsWith(\"1\")){\n mas.setText(\"Selamat Anda Telah Melakukan Peminjaman\");\n nolocker.setText(\"No. Locker Anda Yaitu 17\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(true);\n }else if(a.equals(WARN1)){\n mas.setText(\"Maaf Anda Telah Melakukan Peminjaman\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n }else if(a.equals(WARN2)){\n mas.setText(\"Maaf Anda Belum Melakukan Peminjaman\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n }else if(a.contains(\"BUKA\")){\n mas.setText(\"Anda Ingin Mengakhiri Peminjaman ?\");\n yes.setVisible(true);\n String key = a.substring(4);\n yes.setActionCommand(\"YES\"+key);\n no.setVisible(true);\n nolocker.setVisible(false);\n }else if(a.equals(NO)){\n mas.setText(\"Loker Anda Telah Terbuka\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n } \n mas.setFont(new Font(\"arial\", Font.BOLD, 20));\n mas.setOpaque(false);\n mas.setForeground(Color.BLACK);\n Dimension si1 = mas.getPreferredSize();\n mas.setBounds(10, 40, si1.width, si1.height);\n nolocker.setFont(new Font(\"arial\", Font.BOLD, 20));\n nolocker.setOpaque(false);\n nolocker.setForeground(Color.BLACK);\n Dimension si3 = nolocker.getPreferredSize();\n nolocker.setBounds(10, 70, si3.width, si3.height);\n //close button handling\n close.addActionListener(c);\n close.setActionCommand(EXIT);\n Dimension si2 = close.getPreferredSize();\n close.setBounds(420, 10, si2.width, si2.height);\n close.setBorder(BorderFactory.createEmptyBorder());\n close.setContentAreaFilled(false);\n //yes button handling\n yes.addActionListener(c);\n Dimension si4 = yes.getPreferredSize();\n yes.setBounds(100, 100, si4.width, si4.height);\n yes.setBorder(BorderFactory.createEmptyBorder());\n yes.setContentAreaFilled(false);\n //no button handling\n no.addActionListener(c);\n no.setActionCommand(NO);\n Dimension si5 = no.getPreferredSize();\n no.setBounds(250, 100, si5.width, si5.height);\n no.setBorder(BorderFactory.createEmptyBorder());\n no.setContentAreaFilled(false);\n //add to card3 top most layer\n card3.add(pop,6,0);\n }", "@Override\n public void onClick(View view) {\n if(sesh.get(0).studentCin.length()==0){\n\n displayLocation();\n\n check.setVisibility(View.VISIBLE);\n cancel.setEnabled(true);\n }\n else{\n requestGps.setText(\"Checked In\");\n requestGps.setEnabled(false);\n check.setVisibility(View.VISIBLE);\n cancel.setEnabled(false);\n }\n\n\n\n //getLoco();\n\n }", "public void drawButtons(){\r\n\t\tGuiBooleanButton showDirection = new GuiBooleanButton(1, 10, 20, 150, 20, \"Show Direction\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowdir(), \"showdir\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showdir\").split(\";\"));\r\n\t\tGuiChooseStringButton dirpos = new GuiChooseStringButton(2, width/2+50, 20, 150, 20, \"Dir-Position\", GuiPositions.getPosList(), \"posdir\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosDir()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showFPS= new GuiBooleanButton(3, 10, 45, 150, 20, \"Show FPS\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowfps(), \"showfps\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showfps\").split(\";\"));\r\n\t\tGuiChooseStringButton fpspos = new GuiChooseStringButton(4, width/2+50, 45, 150, 20, \"FPS-Position\", GuiPositions.getPosList(), \"posfps\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosFPS()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showCoor = new GuiBooleanButton(5, 10, 70, 150, 20, \"Show Coor\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowcoor(), \"showcoor\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showcoor\").split(\";\"));\r\n\t\tGuiChooseStringButton coorpos = new GuiChooseStringButton(6, width/2+50, 70, 150, 20, \"Coor-Position\", GuiPositions.getPosList(), \"poscoor\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosCoor()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showworldage = new GuiBooleanButton(7, 10, 95, 150, 20, \"Show WorldAge\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowWorldAge(), \"showworldage\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showworldage\").split(\";\"));\r\n\t\tGuiChooseStringButton worldagepos = new GuiChooseStringButton(8, width/2+50, 95, 150, 20, \"WorldAge-Position\", GuiPositions.getPosList(), \"posworldage\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosWorldAge()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\t\r\n\t\tGuiBooleanButton showFriendly = new GuiBooleanButton(7, 10, 120, 150, 20, \"Mark friendly spawns\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowingFriendlySpawns(), \"showfmobspawn\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showfriendlymobspawn\").split(\";\"));\r\n\t\tGuiBooleanButton showAggressiv = new GuiBooleanButton(7, 10, 145, 150, 20, \"Mark aggressiv spawns\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowingAggressivSpawns(), \"showamobspawn\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showaggressivmobspawn\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton dynamic = new GuiBooleanButton(7, width/2+50, 120, 150, 20, \"dynamic selection\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isDynamic(), \"dynamichsel\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.dynamicselection\").split(\";\"));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tGuiButton back = new GuiButton(9, width/2-100,height-50 , \"back to game\");\r\n\t\t\r\n\t\tbuttonList.add(showworldage);\r\n\t\tbuttonList.add(worldagepos);\r\n\t\tbuttonList.add(dirpos);\r\n\t\tbuttonList.add(fpspos);\r\n\t\tbuttonList.add(coorpos);\r\n\t\tbuttonList.add(showCoor);\r\n\t\tbuttonList.add(showFPS);\r\n\t\tbuttonList.add(showDirection);\r\n\t\t\r\n\t\tbuttonList.add(showFriendly);\r\n\t\tbuttonList.add(showAggressiv);\r\n\t\tbuttonList.add(dynamic);\r\n\t\t\r\n\t\tbuttonList.add(back);\r\n\t}", "private void renderObjetos()\n {\n for (int i=0;i<NCONSUMIBLES;i++)\n {\n //EDIT:Ruta de Inventario\n Consumible consumible=(Consumible)VenganzaBelial.atributoGestion.getInv().getItems().get(i);\n if(eleccionJugador==i)\n {\n opcionesJugadorTTF.drawString(10,i*20+400,consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\");\n }\n else{\n opcionesJugadorTTF.drawString(10, i * 20 + 400, consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\", notChosen);\n }\n }\n }", "private void agregarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_agregarActionPerformed\n boolean salida = true;\n Palabra p; \n p = new Palabra(campo1.getText());\n boolean continua = p.estaBien();\n if (continua) {\n agregarDiccionario(p);\n salida = pregunta();\n setVisible(true);\n }else {\n JOptionPane.showMessageDialog(null,\"#- Palabra mal escrita intente de nuevo -#\");\n }\n \n if (!salida) {\n JOptionPane.showMessageDialog(null,\"Gracias por usar el Corrector Ortográfico\");\n dic.guardarDiccionario();\n dispose(); //setVisible(false);\n }\n }", "private void HalMatkulComponentShown(java.awt.event.ComponentEvent evt) {\n\trefreshTableMK();\n\tif (noJabatan == 3) {\n\t jButton17.setVisible(false);\n\t filler14.setVisible(false);\n\t jButton1.setVisible(false);\n\t filler15.setVisible(false);\n\t jButton2.setVisible(false);\n\t filler16.setVisible(false);\n\t}\n }", "private void setButton(boolean a) {\n//Vo hieu hoac co hieu luc cho cac JButton\n this.btnCourseAdd.setEnabled(a);\n this.btnCourseDelete.setEnabled(a);\n this.btnCourseEdit.setEnabled(a);\n this.btnCourseSave.setEnabled(!a);\n this.btnCourseReport.setEnabled(!a);\n this.btnCourseReset.setEnabled(!a);\n this.btnCourseClose.setEnabled(a);\n }", "public void click_on(){\n float x = mouseX;\n float y = mouseY;\n //if(dela>0)dela--;\n if(overRect(x, y, 570, 50, btn_ext.width, btn_ext.height)){sfx(4);\n clicked(btn_ext.get(), 570, 50, btn_ext.width, btn_ext.height, INVERT);\n qq = -1;\n }else if(overRect(x, y, 190, 50, btn_tip.width, btn_tip.height)&&!level_pick){sfx(4);\n sm = k;\n sp = 5;\n qq = 6;\n qqTmp = 2;\n }else if(level_pick){\n if(overRect(x, y, 190, 50, btn_back.width, btn_back.height)){sfx(4);\n clicked(btn_back.get(), 190, 50, btn_back.width, btn_back.height, INVERT);\n level_pick = false;\n }else{\n for(int i=0;i<7;i++){\n float xx = 252.5f;\n float yy = 130;\n if(i>3){\n xx = -45;\n yy = 215;\n }\n if(User.getInt((char)('A'+k)+str(i+1))!=-1){\n if(overRect(x, y, xx+85*i, yy, level_on.width, level_on.height)){sfx(4);\n sl = i;\n _1.setLevel();\n _1.initGame();\n pp = 1;qq = -1;\n }\n }\n }\n }\n }else{\n if(overRect(x, y, 540, height/2, btn_next.width, btn_next.height)){sfx(4);\n clicked(btn_next.get(), 540, height/2, btn_next.width, btn_next.height, INVERT);\n k=(k+1)%3;\n }\n else if(overRect(x, y, 220, height/2, btn_prev.width, btn_prev.height)){sfx(4);\n clicked(btn_prev.get(), 220, height/2, btn_prev.width, btn_prev.height, INVERT);\n k--;\n if(k<0)k=2;\n }else if(overRect(x, y, width/2, height/2, latar[k].width, latar[k].height)){sfx(4);\n level_pick = true;\n sm = k;\n }\n }\n }", "public boolean comprobacion()\n\t{\n\t\tif(txtNombre.getText().isEmpty())\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Por favor, rellene el nombre del producto\"); \n\t\t\t\treturn false;\n\t\t\t}\n\t\t\n\t\tif(txtMarca.getText().isEmpty())\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Por favor, rellene la marca del producto\"); \n\t\t\t\treturn false;\n\t\t\t}\n\t\tif(txt_Material.getText().isEmpty()&& rdbtnTextil.isSelected())\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null,\"Por favor, rellene el material principal del producto\"); \n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(txtPrecio.getText().equals(\"€\"))\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Por favor, establezca un precio al producto\"); \n\t\t\t\treturn false;\n\t\t\t}\n\t\tif(!fotoSubida)\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Por favor, seleccione una imagen para su producto\"); \n\t\t\t\treturn false;\n\t\t\t}\n\t\t\n\t\treturn true;\n\t}", "public void interfaceIHM(){\n VBox contenue;\n ActionBouttonPartieEnCours action = new ActionBouttonPartieEnCours(this.duelSurLaToile, this);\n Label nom = new Label(\"Jeu : \"+this.nom);\n Label joueurs = new Label(\"Vous VS \"+this.adversaire);\n Label resultat = new Label(this.scoreJoueur+\" VS \"+this.scoreAdversaire);\n Button accepter = new Button(\"Rejoindre\");\n accepter.setStyle(\"-fx-background-color: #ffffff ;\");\n accepter.setMinWidth(135);\n accepter.setMaxWidth(135);\n accepter.setUserData(this.id);\n Button refuser = new Button(\"Abandonner\");\n refuser.setStyle(\"-fx-background-color: #ffffff ;\");\n refuser.setMinWidth(135);\n refuser.setMaxWidth(135);\n refuser.setUserData(this.id);\n image.setFitWidth(130);\n image.setFitHeight(130);\n contenue=new VBox();\n contenue.getChildren().addAll(nom,joueurs,resultat,accepter,refuser);\n contenue.setSpacing(5);\n contenue.setAlignment(Pos.CENTER_LEFT);\n contenue.setMaxWidth(refuser.getMaxWidth());\n this.setLeft(contenue);\n this.setRight(image);\n accepter.setOnAction(action);\n refuser.setOnAction(action);\n BorderPane.setAlignment(contenue,Pos.CENTER);\n BorderPane.setMargin(contenue,new Insets(10,10,10,10));\n BorderPane.setMargin(image,new Insets(10,10,10,10));\n this.setBackground(new Background(new BackgroundFill(Color.LIGHTGRAY, null, null)));\n }", "@Override\n public void payeeDisplayVisible(boolean yes) {\n\t\n }", "@Override\n public void onClick(View v) {\n \tif (tgl_btn.isChecked()) {\n \t\tlay_feather.setVisibility(View.VISIBLE);\n \t\tlay_nail.setVisibility(View.GONE);\n\t\t\t\t}\n \telse {\n \t\tlay_feather.setVisibility(View.GONE);\n \t\tlay_nail.setVisibility(View.VISIBLE);\n\t\t\t\t}\n }", "private void Proses() {\n ti = Double.valueOf(ktinggi.getText());\n bt = Double.valueOf(kberat.getText());\n \n if(jRadioButton1.isSelected()){\n h1 = (ti - 100) * 1;\n } else if (jRadioButton2.isSelected()){\n h1 = (ti - 104) * 1;\n }\n temp = Double.toString(h1.intValue());\n \n if (h1 < bt) {\n kideal.setText(temp);\n hasil.setText(\"Maaf \" + knama.getText() + \" , Sepertinya anda Overweight :( \");\n saran.setText(\"Banyaklah berolahraga dan hindari makanan berkolesterol\");\n } else if (h1 > bt) {\n kideal.setText(temp);\n hasil.setText(\"Maaf \" + knama.getText() + \" , Sepertinya anda Underweight :(\");\n saran.setText(\"Banyaklah mengkonsumsi makanan yang berkarbohidrat\");\n } else {\n kideal.setText(temp);\n hasil.setText(\"Hallo \" + knama.getText() + \" , Berat badan anda sudah ideal :)\");\n saran.setText(\"Lanjutkan pola makan teratur dan gaya hidup sehat :)\");\n }\n \n }", "private void init_buttons(){\r\n /**\r\n * BOTON NUEVO\r\n */\r\n im_tool1.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n botonNuevo();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON EDITAR\r\n */\r\n im_tool2.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEditar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON GUARDAR\r\n */\r\n im_tool3.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonGuardar();\r\n }\r\n }\r\n }); \r\n /**\r\n * BOTON ELIMINAR\r\n */\r\n im_tool4.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEliminar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON IMPRIMIR\r\n */\r\n im_tool5.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){ \r\n botonImprimir();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON REGRESAR\r\n */\r\n im_tool6.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON POR ASIGNAR\r\n */\r\n im_tool7.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON NOTAS DE CREDITO\r\n */\r\n im_tool8.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON DEVOLUCION\r\n */\r\n im_tool9.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON BUSCAR\r\n */\r\n im_tool12.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n switch (mouseEvent.getClickCount()){\r\n case 1:\r\n botonInicio();\r\n botonBuscar();\r\n break;\r\n case 2:\r\n Datos.setIdButton(2003041);\r\n Gui.getInstance().showBusqueda(\"Busqueda\"); \r\n break;\r\n }\r\n }\r\n });\r\n /**\r\n * SELECCION EN LA TABLA\r\n */\r\n tb_guias.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n if ((tb_guias.getItems() != null) && (!tb_guias.getItems().isEmpty()))\r\n selectedRowGuide();\r\n }\r\n }\r\n }); \r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nroguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nroguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_rela_caja(tf_nroguia.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_nroguia.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de \" + ScreenName + \" NO existe!\", \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nrorguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nrorguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n boolean booa = true; \r\n if(booa){\r\n boolean booc = Ln.getInstance().check_log_CGuias_caja(tf_nrorguia.getText()); \r\n if(booc){\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n else{\r\n for (int i = 0; i < log_guide_guia.size(); i++) {\r\n if(tf_nrorguia.getText().equals(tb_guias.getItems().get(i).getGuias())){\r\n booa = false;\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n break;\r\n }\r\n } \r\n if(booa){\r\n log_Guide_rel_inv guide_carga = new log_Guide_rel_inv();\r\n\r\n List<Fxp_Archguid_gfc> data = \r\n Ln.getList_log_Archguid_gfc(Ln.getInstance().find_Archguid_gfc(tf_nrorguia.getText()));\r\n\r\n if (data.get(0).getStat_guia().equals(\"X\")\r\n || data.get(0).getStat_guia().equals(\"C\")){\r\n guide_carga.setNumorden(String.valueOf((log_guide_guia.size() + 1)));\r\n guide_carga.setGuias(tf_nrorguia.getText());\r\n guide_carga.setNumfact(data.get(0).getNumfact());\r\n guide_carga.setNumclie(data.get(0).getNumclie());\r\n\r\n if (data.get(0).getStat_guia().equals(\"A\")){\r\n if (tipoOperacion == 1)\r\n guide_carga.setStat_guia(null);\r\n else\r\n guide_carga.setStat_guia(data.get(0).getStat_guia());\r\n }\r\n else{\r\n guide_carga.setStat_guia(null);\r\n }\r\n \r\n \r\n log_guide_guia.add(guide_carga);\r\n\r\n loadTableGuide_guias();\r\n change_im_val(200, im_checkg); \r\n\r\n numFactCarga = numFactCarga + data.get(0).getNumfact();\r\n numClieCarga = numClieCarga + data.get(0).getNumclie();\r\n\r\n tf_nrorguia.setText(\"\");\r\n }else{\r\n if (data.get(0).getStat_guia().equals(\"\")){\r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO tiene relación de Guia de Carga!\", \"A\");\r\n }\r\n else{\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n }\r\n tf_nrorguia.requestFocus();\r\n }\r\n \r\n }\r\n }\r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO existe!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n }", "public void comprobarEstado() {\n if (ganarJugadorUno = true) {\n Toast.makeText(this, jugadorUno + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (ganarJugadorDos = true) {\n Toast.makeText(this, jugadorDos + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tirar == 9 && !ganarJugadorUno && !ganarJugadorDos) {\n Toast.makeText(this, \"Empate\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onClick(ClickEvent event) {\n String fName = content.getRegisterView().getNewtxtFname().getText();\n String lName = content.getRegisterView().getNewtxtLname().getText();\n String email = content.getRegisterView().getNewtxtEmail().getText();\n String address = content.getRegisterView().getNewtxtAddress().getText();\n String mobileno = content.getRegisterView().getNewtxtMobileNo().getText();\n String education = content.getRegisterView().getNewtxtEducation().getText();\n String experience = content.getRegisterView().getNewtxtExperience().getText();\n Integer hoursPrWeek = content.getRegisterView().getNewtxtHoursPrWeek().getValue();\n String password = content.getRegisterView().getNewtxtPassword().getText();\n\n // Here we check which radiobutton the user choose and give them the right teamtype_teamID\n String teamtype = null;\n int teamtype_teamID = 0;\n\n if (content.getRegisterView().getNewCrossfitBtn().getValue() == true) {\n teamtype = \"Crossfit\";\n teamtype_teamID = 1;\n }\n if (content.getRegisterView().getNewSpinningBtn().getValue() == true) {\n teamtype = \"Spinning\";\n teamtype_teamID = 3;\n }\n if (content.getRegisterView().getNewHitBtn().getValue() == true) {\n teamtype = \"H.I.T.\";\n teamtype_teamID = 2;\n }\n if (content.getRegisterView().getNewStramopBtn().getValue() == true) {\n teamtype = \"Stram op\";\n teamtype_teamID = 4;\n }\n\n // Here we check for mistakes and if there is no mistake we create the user\n if (!FieldVerifier.isValidFname(fName)){content.getRegisterView().getNewtxtFname().setStyleName(\"textBox-invalidEntry\");}\n else if (!FieldVerifier.isValidLname(lName)){content.getRegisterView().getNewtxtLname().setStyleName(\"textBox-invalidEntry\");}\n else if (!FieldVerifier.isValidEmail(email)){content.getRegisterView().getNewtxtEmail().setStyleName(\"textBox-invalidEntry\");}\n else if (!FieldVerifier.isValidAddress(address)){content.getRegisterView().getNewtxtAddress().setStyleName(\"textBox-invalidEntry\");}\n else if (!FieldVerifier.isValidMobileNo(mobileno)){content.getRegisterView().getNewtxtMobileNo().setStyleName(\"textBox-invalidEntry\");}\n else if (!FieldVerifier.isValidEducation(education)){content.getRegisterView().getNewtxtEducation().setStyleName(\"textBox-invalidEntry\");}\n else if (!FieldVerifier.isValidExperience(experience)){content.getRegisterView().getNewtxtExperience().setStyleName(\"textBox-invalidEntry\");}\n else if (!FieldVerifier.isValidHoursPrWeek(hoursPrWeek)){content.getRegisterView().getNewtxtHoursPrWeek().setStyleName(\"textBox-invalidEntry\");}\n else if (!FieldVerifier.isValidPassword(password)){content.getRegisterView().getNewtxtPassword().setStyleName(\"textBox-invalidEntry\");}\n else {\n User user = new User();\n user.setFname(fName);\n user.setLname(lName);\n user.setEmail(email);\n user.setAddress(address);\n user.setMobilenr(mobileno);\n user.setEducation(education);\n user.setExperience(experience);\n user.setHoursPrWeek(hoursPrWeek);\n user.setPassword(password);\n user.setType(2);\n user.setIsApproved(false);\n user.setTeamtype(teamtype);\n user.setTeamtype_teamID(teamtype_teamID);\n\n // RPC authenticating user method\n motionCBSTestService.createUser(user, new AsyncCallback<Boolean>() {\n\n @Override\n public void onFailure(Throwable caught) {\n Window.alert(\"Something went wrong\");\n }\n\n @Override\n public void onSuccess(Boolean isCreated) {\n if (!isCreated) {\n Window.alert(\"Could not create user\");\n } else {\n content.getRegisterView().clearTextBoxFields();\n Window.alert(\"You have successfully been created. Please wait for Admin to approve you\");\n }\n }\n });\n }\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Torna al Menu\"))\n\t\t{\n\t\t\tsetVisible(false);\n\t\t\tb2.setVisible(true);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Tutti gli insegnamenti\"))\n\t\t{\n\t\t\tA_ReportisticaInsegnamenti1 tutti_insegnamenti = new A_ReportisticaInsegnamenti1(this);\n\t\t\ttutti_insegnamenti.setVisible(true);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Per docente\"))\n\t\t{\n\t\t\tA_ReportisticaInsegnamenti2 insegnamenti_docente = new A_ReportisticaInsegnamenti2(this);\n\t\t\tinsegnamenti_docente.setVisible(true);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Per insegnamento\"))\n\t\t{\n\t\t\tA_ReportisticaInsegnamenti3 insegnamenti_selezionati = new A_ReportisticaInsegnamenti3(this);\n\t\t\tinsegnamenti_selezionati.setVisible(true);\n\t\t}\n\t\t\n\t}", "private void sceltapannelli(String utilizzatore){\n\n if(utilizzatore.equals(\"Registrazione\")){\n\n sez_managerview.setSezA(new Sez_AView().getIntermedio0());\n sez_managerview.setSezB(new Sez_BView().getIntermedio0());\n sez_managerview.setSezC(new Sez_CView().getIntermedio0());\n\n }\n\n }", "public void show() {\n\t\t\n\t\tswitch(myState) {\n\t\t\tcase AppStates.KUNDENAUSWAHL: {\n\t\t\t\tsetDefaultKunde();\n\t\t\t\tthis.rechnungsText.setText(\"\");\n\t\t\t\twahlKunde.setDisable(false);\n\t\t\t\tcheckout.setDisable(true);\n\t\t\t\tanzeige.setDisable(true);\n\t\t\t\tfor (ProduktButton p : pOptions) {\n\t\t\t\t\tp.setDisable(true);\n\t\t\t\t}\n\t\t\t} break;\n\t\t\t\n\t\t\tcase AppStates.PRODUKTAUSWAHL: {\n\t\t\t\twahlKunde.setDisable(true);\n\t\t\t\tcheckout.setDisable(false);\n\t\t\t\tanzeige.setDisable(false);\n\t\t\t\tfor (ProduktButton p : pOptions) {\n\t\t\t\t\tif(checkLagerbestand(p.getProdukt()))\n\t\t\t\t\t\tp.setDisable(false);\n\t\t\t\t\telse\n\t\t\t\t\t\tp.setDisable(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} break;\n\t\t}\n\t\t\n\t\tstage.show();\n\t\t\n\t}" ]
[ "0.63053966", "0.6232292", "0.6196125", "0.6124339", "0.6098781", "0.60982877", "0.60859174", "0.60821944", "0.6017382", "0.60100603", "0.6002409", "0.5984719", "0.5983524", "0.5963336", "0.59593606", "0.5943431", "0.5939053", "0.59330505", "0.5911764", "0.588732", "0.58800197", "0.5874367", "0.58661485", "0.5857863", "0.5846286", "0.5843316", "0.5842689", "0.58371335", "0.5833217", "0.58170235", "0.5814438", "0.5814239", "0.5811472", "0.5788036", "0.5777032", "0.577288", "0.57353276", "0.5729471", "0.5727803", "0.57247365", "0.57247216", "0.57185423", "0.5716813", "0.57137436", "0.5700222", "0.5697405", "0.56968987", "0.56931406", "0.5689111", "0.5687502", "0.5678775", "0.5675792", "0.56735224", "0.56645167", "0.56615037", "0.5655851", "0.5655515", "0.56514883", "0.56434524", "0.5640242", "0.56388634", "0.56355256", "0.5629131", "0.56266135", "0.5626058", "0.5613453", "0.5591839", "0.55911046", "0.5582836", "0.55674726", "0.556741", "0.55444336", "0.5538579", "0.55343956", "0.5533988", "0.55329275", "0.5529542", "0.552401", "0.5521621", "0.5520186", "0.5513917", "0.5511181", "0.5509302", "0.55062705", "0.5500719", "0.54974765", "0.5496325", "0.54920197", "0.54913634", "0.54893947", "0.54892504", "0.54879326", "0.5487664", "0.5487084", "0.5486077", "0.5481596", "0.54812115", "0.5480639", "0.5478742", "0.5473267", "0.54667807" ]
0.0
-1
HashMap s2 = this.equipletList.get(pA_id);
public HashMap<AID, Long> getEquipletsForProductionStep(int pA_id){ return this.equipletList.get(pA_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object lookup(int par1)\n {\n int j = computeHash(par1);\n\n for (IntHashMapEntry inthashmapentry = this.slots[getSlotIndex(j, this.slots.length)]; inthashmapentry != null; inthashmapentry = inthashmapentry.nextEntry)\n {\n if (inthashmapentry.hashEntry == par1)\n {\n return inthashmapentry.valueEntry;\n }\n }\n\n return null;\n }", "void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);", "public static Map<Integer,Employee1> getEmployeeList(){\r\n\t return employees;\r\n\t \r\n }", "final IntHashMapEntry lookupEntry(int par1)\n {\n int j = computeHash(par1);\n\n for (IntHashMapEntry inthashmapentry = this.slots[getSlotIndex(j, this.slots.length)]; inthashmapentry != null; inthashmapentry = inthashmapentry.nextEntry)\n {\n if (inthashmapentry.hashEntry == par1)\n {\n return inthashmapentry;\n }\n }\n\n return null;\n }", "public void createHashMap() {\n myList = new HashMap<>();\n scrabbleList = new HashMap<>();\n }", "public Map<String, Integer> itemShelf() {\n int i;\n for (i = 0; i < inventory.size(); i++) {\n Map<String, Object> Item = new HashMap<>();\n Item = inventory.get(i);\n String itemname = Item.get(\"Name\").toString();\n String x = Item.get(\"Shelf#\").toString();\n int y = Integer.parseInt(x);\n ItemShelf.put(itemname, y);\n }\n //System.out.println(ItemShelf);\n return ItemShelf;\n }", "public void readEquipment() {\n try {\n FileInputStream fileIn = new FileInputStream(\"temp/equipment.ser\");\n ObjectInputStream in = new ObjectInputStream(fileIn);\n equipment = (HashMap<String, Equipment>) in.readObject();\n in.close();\n fileIn.close();\n } catch (IOException e) {\n equipment = new HashMap<>();\n } catch (ClassNotFoundException c) {\n System.out.println(\"Class HashMap not found\");\n c.printStackTrace();\n return;\n }\n }", "public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}", "public static void getMapDetails(){\n\t\tmap=new HashMap<String,String>();\r\n\t map.put(getProjName(), getDevID());\r\n\t //System.out.println(\"\\n[TEST Teamwork]: \"+ map.size());\r\n\t \r\n\t // The HashMap is currently empty.\r\n\t\tif (map.isEmpty()) {\r\n\t\t System.out.println(\"It is empty\");\r\n\t\t \r\n\t\t System.out.println(\"Trying Again:\");\r\n\t\t map=new HashMap<String,String>();\r\n\t\t map.put(getProjName(), getDevID());\r\n\t\t \r\n\t\t System.out.println(map.isEmpty());\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\t//retrieving values from map\r\n\t Set<String> keys= map.keySet();\r\n\t for(String key : keys){\r\n\t \t//System.out.println(key);\r\n\t System.out.println(key + \": \" + map.get(key));\r\n\t }\r\n\t \r\n\t //searching key on map\r\n\t //System.out.println(\"Map Value: \"+map.containsKey(toStringMap()));\r\n\t System.out.println(\"Map Value: \"+map.get(getProjName()));\r\n\t \r\n\t //searching value on map\r\n\t //System.out.println(\"Map Key: \"+map.containsValue(getDevID()));\r\n\t \r\n\t\t\t\t\t // Put keys into an ArrayList and sort it.\r\n\t\t\t\t\t\t//ArrayList<String> list = new ArrayList<String>();\r\n\t\t\t\t\t\t//list.addAll(keys);\r\n\t\t\t\t\t\t//Collections.sort(list);\r\n\t\t\t\t\r\n\t\t\t\t\t\t// Display sorted keys and their values.\r\n\t\t\t\t\t\t//for (String key : list) {\r\n\t\t\t\t\t\t// System.out.println(key + \": \" + map.get(key));\r\n\t\t\t\t\t\t//}\t\t\t \r\n\t}", "public HashMap<String, List<String>> getItemMap() {\r\n\r\n\t\thelmet_abilities.add(Game_constants.INTELLIGENCE);\r\n\t\thelmet_abilities.add(Game_constants.WISDOM);\r\n\t\thelmet_abilities.add(Game_constants.ARMOR_CLASS);\r\n\r\n\t\tarmor_abilities.add(Game_constants.ARMOR_CLASS);\r\n\r\n\t\tshield_abilities.add(Game_constants.ARMOR_CLASS);\r\n\r\n\t\tring_abilities.add(Game_constants.ARMOR_CLASS);\r\n\t\tring_abilities.add(Game_constants.STRENGTH);\r\n\t\tring_abilities.add(Game_constants.CONSTITUTION);\r\n\t\tring_abilities.add(Game_constants.WISDOM);\r\n\t\tring_abilities.add(Game_constants.CHARISMA);\r\n\r\n\t\tbelt_abilities.add(Game_constants.CONSTITUTION);\r\n\t\tbelt_abilities.add(Game_constants.STRENGTH);\r\n\r\n\t\tboots_abilities.add(Game_constants.ARMOR_CLASS);\r\n\t\tboots_abilities.add(Game_constants.DEXTERITY);\r\n\r\n\t\tweapon_abilities.add(Game_constants.ATTACK_BONUS);\r\n\t\tweapon_abilities.add(Game_constants.DAMAGE_BONUS);\r\n\r\n\t\titem_map.put(Game_constants.HELMET, helmet_abilities);\r\n\t\titem_map.put(Game_constants.ARMOR, armor_abilities);\r\n\t\titem_map.put(Game_constants.SHIELD, shield_abilities);\r\n\t\titem_map.put(Game_constants.RING, ring_abilities);\r\n\t\titem_map.put(Game_constants.BELT, belt_abilities);\r\n\t\titem_map.put(Game_constants.BOOTS, boots_abilities);\r\n\t\titem_map.put(Game_constants.WEAPON_MELEE, weapon_abilities);\r\n\t\titem_map.put(Game_constants.WEAPON_RANGE, weapon_abilities);\r\n\r\n\t\treturn item_map;\r\n\r\n\t}", "public HashMap<String, String> getItem(int position) {\n return aList.get(position);\n }", "public ArrayList<Pokemon> sacarEquipo(int numero_equipo){\r\n\t\treturn pokes_entrenador.get(numero_equipo);\t\r\n\t}", "public Product getProductInfo(int pid) {\nfor (ProductStockPair pair : productCatalog) {\nif (pair.product.id == pid) {\nreturn pair.product;\n}\n}\nreturn null;\n}", "public HashMap<String,SupplyNode> getMap(){\n return t;\n }", "public int getid(Map<Integer,String> Hash,String performerName){\r\n int PerformerId=-1;\r\n String Name=\"\";\r\n for(int id:Hash.keySet()){\r\n Name=Hash.get(id);\r\n if(performerName.equals(Name)){\r\n PerformerId=id;\r\n break;\r\n }\r\n }\r\n System.out.println(Hash.get(25));\r\n return PerformerId;\r\n }", "@Override\n public Map<Integer, PenghuziPlayer> getSeatMap() {\n return seatMap;\n }", "private ArrayList<HashMap<String, String>> getList(){\n return alertList;\n }", "public HashMap<HLID, ArrayList<HLID>> getMapping() {\n\t\treturn mapping;\n\t\t// HashMap<HLActivity, ArrayList<HLActivity>> returnHashMap = new\n\t\t// HashMap<HLActivity,ArrayList<HLActivity>>();\n\t\t// // TODO Anne: check and remove\n\t\t// //Iterator<Entry<HLTransition, ArrayList<HLTransition>>> it =\n\t\t// mapping.entrySet().iterator();\n\t\t// Iterator<Entry<String, ArrayList<String>>> it =\n\t\t// mapping.entrySet().iterator();\n\t\t// while (it.hasNext()) {\n\t\t// Entry entry = it.next();\n\t\t// HLActivity castKey = (HLActivity) entry.getKey();\n\t\t// ArrayList<HLActivity> castValue = (ArrayList<HLActivity>)\n\t\t// entry.getValue();\n\t\t// returnHashMap.put(castKey, castValue);\n\t\t// }\n\t\t// return returnHashMap;\n\t}", "private static void m568a() {\n if (f878a == null) {\n HashMap hashMap = new HashMap();\n f878a = hashMap;\n hashMap.put(\"CN\", p.China);\n f878a.put(\"FI\", p.Europe);\n f878a.put(\"SE\", p.Europe);\n f878a.put(\"NO\", p.Europe);\n f878a.put(\"FO\", p.Europe);\n f878a.put(\"EE\", p.Europe);\n f878a.put(\"LV\", p.Europe);\n f878a.put(\"LT\", p.Europe);\n f878a.put(\"BY\", p.Europe);\n f878a.put(\"MD\", p.Europe);\n f878a.put(\"UA\", p.Europe);\n f878a.put(\"PL\", p.Europe);\n f878a.put(\"CZ\", p.Europe);\n f878a.put(\"SK\", p.Europe);\n f878a.put(\"HU\", p.Europe);\n f878a.put(\"DE\", p.Europe);\n f878a.put(\"AT\", p.Europe);\n f878a.put(\"CH\", p.Europe);\n f878a.put(\"LI\", p.Europe);\n f878a.put(\"GB\", p.Europe);\n f878a.put(\"IE\", p.Europe);\n f878a.put(\"NL\", p.Europe);\n f878a.put(\"BE\", p.Europe);\n f878a.put(\"LU\", p.Europe);\n f878a.put(\"FR\", p.Europe);\n f878a.put(\"RO\", p.Europe);\n f878a.put(\"BG\", p.Europe);\n f878a.put(\"RS\", p.Europe);\n f878a.put(\"MK\", p.Europe);\n f878a.put(\"AL\", p.Europe);\n f878a.put(\"GR\", p.Europe);\n f878a.put(\"SI\", p.Europe);\n f878a.put(\"HR\", p.Europe);\n f878a.put(\"IT\", p.Europe);\n f878a.put(\"SM\", p.Europe);\n f878a.put(\"MT\", p.Europe);\n f878a.put(\"ES\", p.Europe);\n f878a.put(\"PT\", p.Europe);\n f878a.put(\"AD\", p.Europe);\n f878a.put(\"CY\", p.Europe);\n f878a.put(\"DK\", p.Europe);\n f878a.put(\"RU\", p.Russia);\n f878a.put(\"IN\", p.India);\n }\n }", "public HashMap<String, Item> getItemCollection(){\n \tHashMap<String, Item> result = new HashMap<String, Item>(itemCollection);\r\n \treturn result;\r\n }", "public static HashMap<String, Integer> getHashMap() {\n String query;\n HashMap<String, Integer> catID = new HashMap<String, Integer>();\n\n try {\n Connection con = Database.createDBconnection();\n Statement stmt = con.createStatement();\n query = \"SELECT category_id, category FROM category;\";\n ResultSet rs = stmt.executeQuery(query);\n\n while(rs.next()) {\n catID.put(rs.getString(\"category\"), rs.getInt(\"category_id\"));\n }\n\n Database.closeDBconnection(con);\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n return catID;\n }", "@Override\n\tpublic List<Equipment> getEquipmentByKey(String state) {\n\t\treturn dao.getEquipmentByKey(state);\n\t}", "public HashMap getBookMap(){\n\t\treturn bookMap;\n\t}", "Map getIDPEXDataMap();", "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn maplist2.get(position);\n\t\t}", "public Object obtDupla(Object key1, Object key2) {\r\n\t\tObject value=null;\r\n\t\tHashMap<String, Double> fila = structure.get(key1);\r\n\t\tif (fila != null)\r\n\t\t\tvalue = fila.get(key2);\r\n\t\treturn value;\r\n\t}", "public static HashMap<Integer, Item> storeItems(){\n\t\tItem prod1 = new Item(\"Candy\",40);\n\t\tItem prod2 = new Item(\"Bread\",30);\n\t\tItem prod3 = new Item(\"Butter\",50);\n\t\tItem prod4 = new Item(\"Milk\",43);\n\t\tItem prod5 = new Item(\"Toast\",60);\n\t\tItem prod6 = new Item(\"Curd\",20);\n\t\tItem prod7 = new Item(\"Cream\",80);\n\t\tItem prod8 = new Item(\"Pastry\",45);\n\t\tItem prod9 = new Item(\"Cake\",300);\n\t\tItem prod10 = new Item(\"Panner\",200);\n\t\tItem prod11 = new Item(\"Egg\",8);\n\t\tproducts.put(1,prod1);\n\t\tproducts.put(2,prod2);\n\t\tproducts.put(3,prod3);\n\t\tproducts.put(4,prod4);\n\t\tproducts.put(5,prod5);\n\t\tproducts.put(6,prod6);\n\t\tproducts.put(7,prod7);\n\t\tproducts.put(8,prod8);\n\t\tproducts.put(9,prod9);\n\t\tproducts.put(10,prod10);\n\t\tproducts.put(11,prod11);\n\t\treturn products;\n\t}", "public void cacheResult(suiluppo_equip_allocation suiluppo_equip_allocation);", "@Override\n\t\tpublic Object getItem(int p1)\n\t\t\t{\n\t\t\t\treturn is.get(p1);\n\t\t\t}", "public static void main(String[] args) {\n\t\t\n\t\tMap<Integer,Employee> map = new HashMap<Integer, Employee>();\n\t\tMap<String, Employee> hashMap = new HashMap();\n\t\tMap<Employee, Integer> hashMap1 = new HashMap();\n\t\tfor (int i =1; i<=10; i++){\n\t\t\t\n\t\t\tmap.put(i, new Employee(i+3, \"Manish\"+(i+3)));\n\t\t}\n\t\tSystem.out.println(map);\n\t\t\n\t\tEmployee emp1 = new Employee(4, \"Manish3\");\n\t\t//Use of Contains\n\t\tSystem.out.println(map.containsValue(emp1)); \n\t\t\n\t\t//Key Set\n\t\tSystem.out.println(map.keySet());\n\t\t\n\t\t//retrieve entry set\n\t\tSystem.out.println(map.entrySet());\n\t\t\n\t\t//map.forEach(action);; TO DO- need to understand this method\n\t\t\n\n\t\t//Returns in sorted order when Key is natural (permitives or String or Enum)\n\t\thashMap.put(\"A\", new Employee(1, \"Manish\"));\n\t\thashMap.put(\"C\", new Employee(3, \"Gaurav\"));\n\t\thashMap.put(\"B\", new Employee(2, \"Vinay\"));\n\t\tSystem.out.println(hashMap);\n\t\t\n\t\t//maintains insertion order when key is Object type(dont have any natural order)\n\t\thashMap1.put(new Employee(1, \"Manish\"),1);\n\t\thashMap1.put(new Employee(3, \"Gaurav\"),3);\n\t\thashMap1.put(new Employee(2, \"Vinay\"),2);\n\t\tSystem.out.println(hashMap1);\n\t\tHashMap<Long, String> masterRoomPoolMapping = new HashMap<Long, String>();\n\t\tmasterRoomPoolMapping.put(new Long(123), \"Manish\");\n\t\tmasterRoomPoolMapping.put(new Long(124), \"Manish\");\n\t\tmasterRoomPoolMapping.put(new Long(125), \"Manish\");\n\t\tSystem.out.println(\"***************************************************\");\n\t\tSet<Long> keySet = masterRoomPoolMapping.keySet();\n\t\tSet<Long> newKeySet = new HashSet<Long>();\n\t\tfor(Long key : keySet){\n\t\t\tnewKeySet.add(new Long(key));\n\t\t}\n\t\tSystem.out.println(\"newKeySet***************************************************\");\n\t\tif(newKeySet.contains(new Long(123)))\n\t\t\tnewKeySet.remove(new Long(123));\n\t\tfor(Long key : newKeySet){\n\t\t\tSystem.out.println(key);\n\t\t}\n\t\tSystem.out.println(\"keySet1***************************************************\");\n\t\tSet<Long> keySet1 = masterRoomPoolMapping.keySet();\n\t\tfor(Long key : keySet1){\n\t\t\tSystem.out.println(masterRoomPoolMapping.get(key));\n\t\t}\n\t\tSystem.out.println(\"***************************************************\");\n\t\tSystem.out.println(masterRoomPoolMapping);\n\t}", "public final synchronized Map<String, String> m72A() {\n Map<String, String> map;\n if (this.f113Z.size() <= 0) {\n map = null;\n } else {\n map = new HashMap(this.f113Z);\n }\n return map;\n }", "void setHashMap();", "private static Map getMapPotionIds() {\n/* 350 */ if (mapPotionIds == null) {\n/* */ \n/* 352 */ mapPotionIds = new LinkedHashMap<>();\n/* 353 */ mapPotionIds.put(\"water\", new int[1]);\n/* 354 */ mapPotionIds.put(\"awkward\", new int[] { 16 });\n/* 355 */ mapPotionIds.put(\"thick\", new int[] { 32 });\n/* 356 */ mapPotionIds.put(\"potent\", new int[] { 48 });\n/* 357 */ mapPotionIds.put(\"regeneration\", getPotionIds(1));\n/* 358 */ mapPotionIds.put(\"moveSpeed\", getPotionIds(2));\n/* 359 */ mapPotionIds.put(\"fireResistance\", getPotionIds(3));\n/* 360 */ mapPotionIds.put(\"poison\", getPotionIds(4));\n/* 361 */ mapPotionIds.put(\"heal\", getPotionIds(5));\n/* 362 */ mapPotionIds.put(\"nightVision\", getPotionIds(6));\n/* 363 */ mapPotionIds.put(\"clear\", getPotionIds(7));\n/* 364 */ mapPotionIds.put(\"bungling\", getPotionIds(23));\n/* 365 */ mapPotionIds.put(\"charming\", getPotionIds(39));\n/* 366 */ mapPotionIds.put(\"rank\", getPotionIds(55));\n/* 367 */ mapPotionIds.put(\"weakness\", getPotionIds(8));\n/* 368 */ mapPotionIds.put(\"damageBoost\", getPotionIds(9));\n/* 369 */ mapPotionIds.put(\"moveSlowdown\", getPotionIds(10));\n/* 370 */ mapPotionIds.put(\"diffuse\", getPotionIds(11));\n/* 371 */ mapPotionIds.put(\"smooth\", getPotionIds(27));\n/* 372 */ mapPotionIds.put(\"refined\", getPotionIds(43));\n/* 373 */ mapPotionIds.put(\"acrid\", getPotionIds(59));\n/* 374 */ mapPotionIds.put(\"harm\", getPotionIds(12));\n/* 375 */ mapPotionIds.put(\"waterBreathing\", getPotionIds(13));\n/* 376 */ mapPotionIds.put(\"invisibility\", getPotionIds(14));\n/* 377 */ mapPotionIds.put(\"thin\", getPotionIds(15));\n/* 378 */ mapPotionIds.put(\"debonair\", getPotionIds(31));\n/* 379 */ mapPotionIds.put(\"sparkling\", getPotionIds(47));\n/* 380 */ mapPotionIds.put(\"stinky\", getPotionIds(63));\n/* */ } \n/* */ \n/* 383 */ return mapPotionIds;\n/* */ }", "public Map getMap(int idRoom){\r\n return cjtMap.get(idRoom);\r\n }", "public static Map getStudentMap() {\r\n\t\tMap<Integer,Student> stds = new HashMap();\r\n\t\tList<Student> list= new ArrayList<>();\r\n\t\tStudent akash =new Student(\"Akash\",123);\r\n\t\tStudent kalpana =new Student(\"kalpana\",345);\r\n\t\tStudent sasha =new Student(\"sasha\",876);\r\n\t\tStudent prakash =new Student(\"prakasg\",567);\r\n\t\t\r\n\t\tlist.add(prakash);\r\n\t\tlist.add(akash);\r\n\t\tlist.add(sasha);\r\n\t\tlist.add(kalpana);\r\n\t\tIterator<Student> its =list.iterator();\r\n\t\twhile (its.hasNext()) {\r\n\t\t\tStudent st = its.next();// student object from the \"list\" is passed in to st. \r\n\t\t\tstds.put(st.getRoll(),st);// st.getRoll() sends the roll number and st sends the object of the student.\r\n\t\t}\r\n\t\t\r\n\t\treturn stds;\r\n\t}", "java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();", "public static void main(String[] args) {\n\tMap map=new HashMap();\n\tmap.put(100,\"java\");\n\tSystem.out.println(map);\n\t\n\tArrayList<String> arr=new ArrayList<>();\n\tarr.add(\"java\");\n\tarr.add(\"Santosh\");\n\tString s=arr.get(1);\n\tSystem.out.println(s);\n\t\n\t\n}", "public String get(int key){\n\t\treturn(hashMap[key]);\t\t\n\t}", "public HashMap findMap(int date, int route){\n HashMap x = new HashMap<>();\n try {\n if (route==1) {\n switch (date){\n case 1:\n x = (HashMap) reservedseats1;\n break;\n case 2:\n x = (HashMap) reservedseats2;\n break;\n case 3:\n x = (HashMap) reservedseats3;\n break;\n case 4:\n x = (HashMap) reservedseats4;\n break;\n case 5:\n x = (HashMap) reservedseats5;\n break;\n }\n\n } else if (route==2) {\n switch (date){\n case 1:\n x = (HashMap) reservedseats6;\n break;\n case 2:\n x = (HashMap) reservedseats7;\n break;\n case 3:\n x = (HashMap) reservedseats8;\n break;\n case 4:\n x = (HashMap) reservedseats9;\n break;\n case 5:\n x = (HashMap) reservedseats10;\n break;\n }\n } else {\n System.out.println(\"error!\");;\n }\n\n } catch (Exception e) {\n System.out.println(\"Error!\");\n\n }\n return x; //Returns hashmap to SeatReservation Class\n }", "private Collection<Object> getOrderedTestNamesByPA(String programArea,String labId)\n{\n\n ArrayList<Object> dtList = null;\n HashMap<Object,Object> ofMap = null;\n\n if(cachedProgAreaFacilityList != null)\n {\n ofMap = (HashMap<Object,Object>) cachedProgAreaFacilityList.get(programArea);\n\n if (ofMap != null)\n dtList = (ArrayList<Object> ) ofMap.get(labId);\n }\n return dtList;\n}", "public Map<EntityPlayer, Vec3> b()\r\n/* 204: */ {\r\n/* 205:217 */ return this.k;\r\n/* 206: */ }", "public Item getItem(String course, Integer i){\n return itemMap.get(course).get(i);\n }", "public static HashMap<String, Vol> getlesVols(){\n\t\treturn lesVols;\n\t}", "HashMap<String, Instrument> getInstruments();", "private Object savePairs() {\n Hashtable<String, String> pairTable = new Hashtable<String, String>();\n for(UUID id : pairedPlayers.keySet()) {\n String owner = id.toString();\n String rec = pairedPlayers.get(id).toString();\n\n pairTable.put(owner, rec);\n }\n\n return pairTable;\n }", "@Override\n public HashMap<String, String> get_hashMap() {\n HashMap<String, String> temp = super.get_hashMap();\n\n temp.put(TAG.TYPE, String.valueOf(this.type));\n temp.put(TAG.SIZE, String.valueOf(this.size));\n temp.put(TAG.TAG, this.tag);\n temp.put(TAG.SPEED_BURROW, String.valueOf(this.burrow_speed));\n temp.put(TAG.SPEED_CLIMBING, String.valueOf(this.climbing_speed));\n temp.put(TAG.SPEED_FLYING, String.valueOf(this.flying_speed));\n temp.put(TAG.SPEED_SWIMMING, String.valueOf(this.swimming_speed));\n\n temp.put(TAG.CHALLENGE_RATING, String.valueOf(this.challenge_rating));\n temp.put(TAG.SENSES_VECTOR, String.valueOf(this.senses));\n temp.put(TAG.EXPERIENCE_POINTS, String.valueOf(this.experience_points));\n\n return temp;\n }", "public static void main(String[] args) {\n HashMap<Integer, String> Hm = new HashMap<Integer, String>();\n Hm.put(0, \"USA\");\n Hm.put(1, \"UK\");\n Hm.put(2, \"India\");\n Hm.put(3, \"Maldives\");\n \n Set sn=Hm.entrySet();\n Iterator i= sn.iterator(); \n while(i.hasNext()) {\n Map.Entry mp=(Map.Entry)i.next();\n System.out.println(mp.getKey());\n System.out.println(mp.getValue());\n }\n \n\t}", "@Override\n\tpublic int hashCode()\n\t{\n\t\treturn pairs.hashCode();\n\t}", "public Map<String, Integer> getgenerality(List<String> t){\n\t\tConnection conn = c3p0Utils.getConnection();\n\t\tString sql = \"select * from tag_generality\";\n\t\tResultSet rs = null;\n\t\tPreparedStatement pst = null;\n\t\tHashMap<String, Integer> a = new HashMap<String, Integer>();\n\t\ttry {\n\t\t\tconn.setAutoCommit(false);\n\t\t\tpst = conn.prepareStatement(sql);\n\t\t\trs = pst.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tif(t.contains(rs.getString(\"tag\")))\n\t\t\t\t{\n\t\t\t\t\ta.put(rs.getString(\"tag\"), rs.getInt(\"generality\"));\n\t\t\t\t\tSystem.out.println(rs.getString(\"tag\"));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"endedededededd\");\n\t\t\trs.close();\n\t\t\tpst.close();\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn a;\n\t}", "java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();", "public HashMap<Symbol, Boolean> getAss(){\n\t\treturn this.assignments;\n\t}", "public Map<String ,String> GerRegularQ(int AssessmentId) {\n Map<String, String> map = new HashMap<String, String>();\n List<String> indexes = GetAssessmentIndexes(AssessmentId);\n\n for (String index : indexes) {\n try {\n Statement stmt = Con.createStatement();\n String query = String.format(\"SELECT qora, content FROM dqs_qanda WHERE \" +\n \"((SELECT content FROM dqs_qanda WHERE qora = 'question%s_t') = 'n') AND \" +\n \"(qora='question%s' OR qora = 'question%s_c')\", index, index, index);\n //System.out.println(query);\n ResultSet rs = stmt.executeQuery(query);\n while(rs.next()) {\n map.put(rs.getString(\"qora\"), rs.getString(\"content\"));\n }\n }\n catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }\n return map;\n }", "@Override\n\tpublic Equipment getEquipment(int idEquip) {\n\t\treturn dao.getEquipment(idEquip);\n\t}", "public Map<Integer, Employee> getEmployeemap(){\r\n\t\treturn employee;\r\n\t}", "public abstract Map<String, Protein> getProteins();", "public Integer getEquipId() {\n return equipId;\n }", "public int hashCode()\n {\n// return this.getAdjustmentNumber();\n return this.getProductKey();\n }", "public static void main(String [] args){\n Map m = new HashMap();\n m.put(\"Tim\", 5);\n m.put(\"Joe\", \"x\");\n m.put(\"11\", 999);\n System.out.println(m);\n System.out.println(m.get(\"Tim\"));\n }", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "Map<String, Object> getIngredient(long foodID);", "public int getStock(int pid) {\nfor (ProductStockPair pair : productCatalog) {\nif (pair.product.id == pid) {\nreturn pair.stock;\n}\n}\nreturn -1;\n}", "public IDictionary getDictionary(){\n \treturn dict;\n }", "Map getIDPSTDDataMap();", "Map<String, String> mo14888a();", "public ArrayList<HashMap<String, String>> getLocationProfileList() {\n SQLiteDatabase db = dbHelper.getReadableDatabase();\n String selectQuery = \"SELECT \" +\n LocationProfileDBItem.KEY_ID + \",\" +\n LocationProfileDBItem.KEY_name +\n \" FROM \" + LocationProfileDBItem.TABLE;\n\n //Student student = new Student();\n ArrayList<HashMap<String, String>> locationProfileList = new ArrayList<>();\n\n Cursor cursor = db.rawQuery(selectQuery, null);\n // looping through all rows and adding to list\n\n if (cursor.moveToFirst()) {\n do {\n HashMap<String, String> locationProfile = new HashMap<>();\n locationProfile.put(\"id\", cursor.getString(cursor.getColumnIndex(LocationProfileDBItem.KEY_ID)));\n locationProfile.put(\"name\", cursor.getString(cursor.getColumnIndex(LocationProfileDBItem.KEY_name)));\n locationProfileList.add(locationProfile);\n\n } while (cursor.moveToNext());\n }\n\n cursor.close();\n db.close();\n return locationProfileList;\n\n }", "public void printHash(String valu){\r\n /*\r\n Put A for Arrangers\r\n V for Vocalists\r\n C for Circles\r\n */\r\n String type=\"\";\r\n Map <Integer,String>TempMap=new HashMap();\r\n switch(valu){\r\n case \"A\":\r\n type=\"Arranger's\";\r\n TempMap.putAll(ArrangersMap);\r\n break;\r\n case \"V\":\r\n type=\"Vocalists's\";\r\n TempMap.putAll(VocalistsMap);\r\n break;\r\n case \"C\":\r\n type=\"Circle's\";\r\n TempMap.putAll(CirclesMap);\r\n break; \r\n }\r\n int counter=0;\r\n List<String> values=new ArrayList<>();\r\n for(int id:TempMap.keySet()){\r\n values.add(TempMap.get(id));\r\n }\r\n TempMap.clear();\r\n Collections.sort(values,Collator.getInstance());\r\n for(String val: values){\r\n val=val.trim();\r\n TempMap.put(counter, val.trim());\r\n //System.out.println(val);\r\n counter++;\r\n }\r\n for(int id:TempMap.keySet()){\r\n System.out.println(\"The \" + type+ \" name is: \"+TempMap.get(id)+ \" The id is:\"+id);\r\n }\r\n }", "public String findSName(String key) {\n\t\n\treturn stockList.get(key).sName; //for a given key , hashmap give a ojbect , to find name we should get object.sNAme\n }", "public static HashMap<String, Shelter> getMap() {\n return shelters;\n }", "@Override\r\n\tpublic int hashCode() {\n\t\treturn empID;\r\n\t}", "public Object get(Object key) {\n\t\tint index = key.hashCode() % SLOTS;\n\t\t// check if key is already present in that slot/bucket.\n\t\tfor(Pair p:table[index]) {\n\t\t\tif(key.equals(p.key))\n\t\t\t\treturn p.value;\n\t\t}\n\t\t// if not found, return null\n\t\treturn null;\n\t}", "public int getKeyEquip2() {\r\n return Input.Keys.valueOf(getKeyShoot2Name());\r\n }", "public String getKeyEquipName() {\r\n return getKeyShootName();\r\n }", "public static void main(String[] args) {\n ArrayList<Student> students = new ArrayList<Student>();\n\n\n // adding to student: first name, last name, unique i.d. , and grade.\n Student student1 = new Student(\"Jessica\", \"Manning\", 1, 1);\n students.add(student1);\n Student student2 = new Student(\"Guadalupe\", \"Copeland\", 2, 1);\n students.add(student2);\n Student student3 = new Student(\"Maureen\", \"Schultz\", 3, 1);\n students.add(student3);\n Student student4 = new Student(\"Chester\", \"Bailey\", 4, 1);\n students.add(student4);\n Student student5 = new Student(\"Wanda\", \"Frank\", 5, 1);\n students.add(student5);\n Student student6 = new Student(\"Lynda\", \"Zimmerman\", 6, 1);\n students.add(student6);\n Student student7 = new Student(\"Valerie\", \"Saunders\", 7, 1);\n students.add(student7);\n Student student8 = new Student(\"Krystal\", \"Mcdaniel\", 8, 1);\n students.add(student8);\n Student student9 = new Student(\"Jared\", \"Parks\", 9, 1);\n students.add(student9);\n Student student10 = new Student(\"Angela\", \"Mendez\", 11, 1);\n students.add(student10);\n Student student11 = new Student(\"Linda\", \"Cain\", 12, 1);\n students.add(student11);\n Student student12 = new Student(\"Ellen\", \"Morrison\", 13, 1);\n students.add(student12);\n Student student13 = new Student(\"Tomas\", \"Padilla\", 14, 1);\n students.add(student13);\n Student student14 = new Student(\"Delbert\", \"Love\", 15, 1);\n students.add(student14);\n Student student15 = new Student(\"Blanca\", \"Hall\", 10, 1);\n students.add(student15);\n System.out.println(students);\n\n\n // Code a HashMap that takes a Teacher for a key and a Set of students for the value (not a List of students). Each Teacher will have 5 different students in a HashSet.\n\n //put the students into three groups\n Set<Student> classOne = new HashSet<>();\n classOne.add(student1);\n classOne.add(student2);\n classOne.add(student3);\n classOne.add(student4);\n classOne.add(student5);\n\n Set<Student> classTwo = new HashSet<>();\n classTwo.add(student6);\n classTwo.add(student7);\n classTwo.add(student8);\n classTwo.add(student9);\n classTwo.add(student10);\n\n Set<Student> classThree = new HashSet<>();\n classThree.add(student11);\n classThree.add(student12);\n classThree.add(student13);\n classThree.add(student14);\n classThree.add(student15);\n\n //create an array list of teachers\n ArrayList<Teacher> teachers = new ArrayList<>();\n\n Teacher teacher1 = new Teacher(\"Minerva\", \"Mcgonnagal\", 1, 1);\n teachers.add(teacher1);\n\n Teacher teacher2 = new Teacher(\"Albus\", \"Dumbledore\", 2, 1);\n teachers.add(teacher2);\n\n Teacher teacher3 = new Teacher(\"Professor\", \"Sprout\", 3, 1);\n teachers.add(teacher3);\n\n\n System.out.println(teachers);\n\n\n //create a hashmap with teacher as the key and student as the value\n\n Map<Teacher, Set> roster = new HashMap<>();\n roster.put(teacher1, classOne);\n roster.put(teacher2, classTwo);\n roster.put(teacher3, classThree);\n\n //print out the map keys in a for each loop (use the keySet() method).\n\n for (Teacher key: roster.keySet()) {\n System.out.println(key);\n }\n//Print out the map values in a for loop (use the values() method).\n for (Set value : roster.values()) {\n System.out.println(value);\n\n }\n\n }", "private HashMap pc() {\n if (_pcache == null) {\n _pcache = new HashMap(13);\n }\n return _pcache;\n }", "public Map<Employee,String> getPerformancemap(){\r\n\t\treturn performance;\r\n\t}", "public Map getTotalItemByVoucherNoForEditGRHelper(String voucherNo)\r\n\t{\n\t\t\tSystem.out.println(\"====HELPER====\");\r\n\t\t\tSystem.out.println(\"voucherNo :: \" + voucherNo);\r\n\t\t\tlong k = 0l;\r\n\t\t\tDouble grossTotal = 0.0;\r\n\t\t\tDouble totalTaxAmt = 0.0;\r\n\t\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\r\n\t\t\t//Map<Long, PurchaseReturnGetItems> map = new HashMap<Long, PurchaseReturnGetItems>();\r\n\t\t\t\r\n\t\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\t\tList productList = dao.getTotalItemByVoucherNoForEditGRDao(voucherNo);\r\n\t\t\tMap map = new HashMap();\r\n\t\t\tPurchaseReturnGetItems cs = null;\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < productList.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tk++;\r\n\t\t\t\tObject[] o = (Object[]) productList.get(i);\r\n\t\t\t\tEditPurchase bean = new EditPurchase();\r\n\t\t\t\tbean.setPkGoodRecId(Long.parseLong(o[0].toString()));\r\n\t\t\t\tbean.setCatName(o[1].toString());\r\n\t\t\t\tbean.setItemName(o[2].toString());\r\n\t\t\t\tbean.setQuantity(Double.parseDouble(o[3].toString()));\r\n\t\t\t\tbean.setOriQuantity(o[3].toString());\r\n\t\t\t\tbean.setBuyPrice(Double.parseDouble(o[4].toString()));\r\n\t\t\t\tbean.setFinalBuyPrice(o[4].toString());\r\n\t\t\t\tbean.setVat(Double.parseDouble(o[5].toString()));\r\n\t\t\t\tbean.setIgst(Double.parseDouble(o[11].toString()));\r\n\t\t\t\tbean.setFinalVat(Double.parseDouble(o[5].toString()));\r\n\t\t\t\tbean.setFinalIgst(Double.parseDouble(o[11].toString()));\r\n\t\t\t\tbean.setDiscount(Double.parseDouble(o[12].toString()));\r\n\t\t\t\tbean.setFinalDisPer(o[12].toString());\r\n\t\t\t\tbean.setRollsize(Double.parseDouble(o[13].toString()));\r\n\t\t\t\tbean.setTotal(Double.parseDouble(o[6].toString()));\r\n\t\t\t\tbean.setContactPerson(o[7].toString());\r\n\t\t\t\tbean.setBarcodeNo(Long.parseLong(o[8].toString()));\r\n\t\t\t\tbean.setOndate(o[9].toString());\r\n\t\t\t\tbean.setAvailquantity(Double.parseDouble(o[10].toString()));\r\n\t\t\t\tbean.setSize(o[14].toString());\r\n\t\t\t\tbean.setSupplierId(o[15].toString());\r\n\t\t\t\tbean.setBillNo(o[16].toString());\r\n\t\t\t\tbean.setSupplierName2(o[17].toString());\r\n\t\t\t\tbean.setGrossTotal(Double.parseDouble(o[18].toString()));\r\n\t\t\t\tDouble d = 0d;\r\n\t\t\t\tbean.setReturnTotal(d);\r\n\t\t\t\tLong editQuan = 0l;\r\n\t\t\t\tbean.setEditQuantity(editQuan);\r\n\t\t\t\tbean.setTotalQuantity(k);\r\n\t\t\t\tgrossTotal = grossTotal + Double.parseDouble(o[6].toString());\r\n\t\t\t\tbean.setFinalGrossTotal(o[18].toString());\r\n\t\t\t\tbean.setSubcatName(o[19].toString());\r\n\t\t\t\tbean.setHsnSac(o[20].toString());\r\n\t\t\t\tbean.setColor(o[21].toString());\r\n\t\t\t\tbean.setStyle(o[22].toString());\r\n\t\t\t\tif(o[23] == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tbean.setPurchaseCode(\"\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tbean.setPurchaseCode(o[23].toString());\r\n\t\t\t\t}\r\n\t\t\t\tbean.setContactPerson(o[24].toString());\r\n\t\t\t\tbean.setTaxAmount(o[25].toString());\r\n\t\t\t\tbean.setReturnedQty(o[26].toString());\r\n\t\t\t\tint rQtyInInt = (int)(Double.parseDouble(o[26].toString()));\r\n\t\t\t\tbean.setReturnedQty(String.valueOf(rQtyInInt));\r\n\t\t\t\tbean.setSalePrice(Double.parseDouble(o[27].toString()));\r\n\t\t\t\tbean.setFinalSalePrice(o[27].toString());\r\n\t\t\t\tbean.setPkSuppId(o[28].toString());\r\n\t\t\t\tbean.setProductId(o[29].toString());\r\n\t\t\t\tbean.setSubCatId(o[30].toString());\r\n\t\t\t\tbean.setCatId(o[31].toString());\r\n\t\t\t\tbean.setSuppCode(o[32].toString());\r\n\t\t\t\tbean.setSoldQty(o[33].toString());\r\n\t\t\t\tbean.setPendingBillPayment(o[34].toString());\r\n\t\t\t\tbean.setBarQtyTotalPuchaseQty(o[35].toString());\r\n\t\t\t\tSystem.out.println(\"BarQtyTotalPuchaseQty ====> \"+bean.getBarQtyTotalPuchaseQty());\r\n\t\t\t\tSystem.out.println(\"grossTotal =====> \"+grossTotal);\r\n\t\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\t\tmap.put(bean.getPkGoodRecId(), bean);\t\r\n\t\t\t/*if (catList != null && catList.size() > 0)\r\n\t\t\t{\r\n\t\t\t\tcs = (PurchaseReturnGetItems) catList.get(0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"TOTAL ITEMLIST Helper \"+catList.size());\r\n\t\t\t\r\n\t\t\treturn cs;*/\r\n\t\t}\r\n\t\t\t\r\n\t\t\treturn map;\r\n\t}", "public static void main(String[] args) {\n\t\tHashMapCreation cr = new HashMapCreation();\n\t\tHashMap<Integer , String> hp = new HashMap<Integer , String>();\n\t\thp = cr.createMap(hp, 34,\"Rahul\");\n\t\thp = cr.createMap(hp, 22,\"John\");\n\t\thp = cr.createMap(hp, 86,\"Sam\");\n\t\thp = cr.createMap(hp, 65,\"Nancy\");\n\t\thp = cr.createMap(hp, 66,\"April\");\n\t\t//cr.removeKey(hp, 22);\n\t\tString srr = cr.getValue(hp, 34);\n\t\tSystem.out.println(\"The value for key 34 is: \" + srr);\n\t\t// Display content\n\t\tfor(int key : hp.keySet())\n\t\t\tSystem.out.println(\"key and Value : \" + key +\" \" + hp.get(key));\n\t}", "public Result call()\n {\n HashMap<RotamerPair,Double> tempMap = new HashMap<>();\n for ( Map.Entry<Rotamer,Rotamer> entry : work.entries() )\n {\n Rotamer rotamer1 = entry.getKey();\n Rotamer rotamer2 = entry.getValue();\n RotamerPair pair = new RotamerPair(rotamer1, rotamer2);\n if ( incompatiblePairs.contains(pair) )\n continue;\n \n //Atom extraAtom1 = null;\n //if ( rotamer1.description.indexOf(\"proline\") == -1 )\n // extraAtom1 = peptide.sequence.get(rotamer1.sequenceIndex).HN;\n \n //Atom extraAtom2 = null;\n //if ( rotamer2.description.indexOf(\"proline\") == -1 )\n // extraAtom2 = peptide.sequence.get(rotamer2.sequenceIndex).HN;\n \n //double energy = OPLScalculator.getInteractionEnergy(rotamer1, extraAtom1, rotamer2, extraAtom2);\n double energy = OPLScalculator.getInteractionEnergy(rotamer1, null, rotamer2, null);\n tempMap.put(pair,energy);\n }\n map.putAll(tempMap);\n return null;\n }", "private Map<Integer, WorldAirport> getAirportMap(){\n\t\treturn this.airports;\n\t}", "public Prostor getProstor(String name){\r\n return mapa.get(name);\r\n }", "public int hashCode()\n {\n return getMap().hashCode();\n }", "public Map<Integer, GPSItem> getGPSItemFromSection(SectionItem sectionItem){\n\n SQLiteDatabase db = this.getReadableDatabase();\n\n Map<Integer, GPSItem> gpsItems = new HashMap<Integer, GPSItem>();\n String selectQuery = \"SELECT * FROM \" + TABLE_GPS + \" WHERE \"\n + KEY_GPS_SECTION + \" = \" + sectionItem.getId();\n Log.e(LOG, selectQuery);\n\n Cursor c = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (c.moveToFirst()){\n do {\n GPSItem gpsItem = new GPSItem();\n gpsItem.setId(c.getLong(c.getColumnIndex(KEY_GPS_ID)));\n gpsItem.setIncr(c.getInt(c.getColumnIndex(KEY_GPS_NO)));\n gpsItem.setLatLng(new LatLng(c.getDouble(c.getColumnIndex(KEY_GPS_LAT)), c.getDouble(c.getColumnIndex(KEY_GPS_LONG))));\n gpsItem.setSectionItem(getSection(c.getLong(c.getColumnIndex(KEY_GPS_SECTION))));\n gpsItem.setNote(c.getString(c.getColumnIndex(KEY_GPS_NOTE)));\n\n gpsItems.put(gpsItem.getIncr(), gpsItem);\n } while (c.moveToNext());\n }\n\n return gpsItems;\n }", "public Product getProduct(int i){\n return inventory.get(i);\n }", "static BigDecimal PriceHike(String l,String h, String r) {\n\n\t\tLong lowerRangeId=Long.parseLong(l);\n\t\tLong higherRangeId=Long.parseLong(h);\n\t\tBigDecimal hike=new BigDecimal(0);\n\n\t\tSortedMap<Long, dxm116130Product> range = new TreeMap<Long, dxm116130Product>();\n\t\trange=productListOnID.subMap(lowerRangeId,true,higherRangeId,true);\n\n\t\tSet<Long> keys = range.keySet();\n\n\t\t//System.out.println(\"Found PriceHike keyset: \"+keys);\n\t\tfor(Long key: keys){\n\t\t\t\n\t\t\t//System.out.println(\"Found PriceHike key: \"+key);\n\t\t\tdxm116130Product currProduct=productListOnID.get(key);\n\t\t\thike=hike.add(currProduct.hikePrice(r));\n\t\t\tInsert(currProduct.getProductId(),currProduct.getProductPrice(),currProduct.getProductNames());\n\t\t}\n\n\n\t\treturn hike;\n\n\t}", "private static void paixu(ArrayList<Integer> p1, Map<Integer, String> map) {\n\t\tCollections.sort(p1);\n\t\tfor (Integer integer : p1) {\n\t\t\tint key = integer;\n\t\t\tString card = map.get(key);\n\t\t\tSystem.out.print(card + \" \");\n\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t\t//map.\n\t}", "public void EstaticCache(){\n LinkedHashMap<String, String> ParticionAux = new LinkedHashMap <String,String>();\n Cache.add(ParticionAux);\n for (int i = 0; i < Estatico.length; i++) {\n \n Cache.get(0).put(Estatico[i], ResEstatico[i]);\n // System.out.println(\"===== Particion de Cache N°\"+ParticionAux.values()+\" =====\");\n \n }\n //this.Cache.add(ParticionAux); // carga el hashMap en una particion del cache\n //System.out.println(\"===== Particion de Cache AQUIAQUI\"+Cache.get(0).values()+\" =====\");\n // ParticionAux.clear(); // limpia el Hashmap aux\n }", "public String[] get()\n {\n return hashmap;\n }", "public Map<String, List<Integer>> geefBeschikbaarhedenVanPromotor(String pMail) {\r\n Map<String, List<Integer>> beschikbaarheden = new HashMap<>();\r\n for (Beschikbaarheid b : findBeschikbaarhedenVanPromotor(pMail)) {\r\n List<Integer> info = new ArrayList<>();\r\n info.add(b.getDag());\r\n info.add(b.getTijdsvak());\r\n beschikbaarheden.put(String.valueOf(b.getBeschikbaarheidsId()), info);\r\n }\r\n return beschikbaarheden;\r\n }" ]
[ "0.5683249", "0.5618395", "0.55864227", "0.54227513", "0.54170054", "0.5391046", "0.5384974", "0.5379325", "0.535908", "0.5355587", "0.532636", "0.53231853", "0.5319894", "0.5261397", "0.52521694", "0.52493864", "0.5202466", "0.51792777", "0.5174653", "0.5174276", "0.5154507", "0.51499164", "0.5144386", "0.5131076", "0.51304615", "0.5115597", "0.50962174", "0.50939476", "0.5083272", "0.5080934", "0.50792503", "0.5076401", "0.50537264", "0.5036313", "0.50346786", "0.5034139", "0.50269604", "0.50219375", "0.5012544", "0.50062793", "0.50051826", "0.49743685", "0.49724615", "0.49692842", "0.4967149", "0.49658766", "0.4963724", "0.49571547", "0.49533206", "0.49475464", "0.49437875", "0.4941164", "0.49348366", "0.49331298", "0.49327385", "0.492502", "0.4924619", "0.49243772", "0.4923435", "0.4923435", "0.4923435", "0.4923435", "0.4923435", "0.4923435", "0.4923435", "0.4923435", "0.4923435", "0.4923435", "0.4923435", "0.4923435", "0.4923435", "0.49230334", "0.49224904", "0.48843828", "0.48706153", "0.48665595", "0.48485819", "0.48446476", "0.483082", "0.48259616", "0.48167747", "0.4812218", "0.4807124", "0.48024783", "0.48002252", "0.47954848", "0.4795192", "0.4790375", "0.4788854", "0.4785634", "0.47656286", "0.47648245", "0.47560287", "0.4755763", "0.47550234", "0.47499913", "0.4748866", "0.474885", "0.47483405", "0.47442082" ]
0.71283567
0
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_teacher_calendar_detay, container, false); db = FirebaseFirestore.getInstance(); tvDate = view.findViewById(R.id.tvDate); lvFoodList = view.findViewById(R.id.lvFoodList); etFood = view.findViewById(R.id.etFood); btnAdd = view.findViewById(R.id.btnAdd); btnSave = view.findViewById(R.id.btnSave); pbFood = view.findViewById(R.id.pbFood); llFood = view.findViewById(R.id.llFood); foods = new ArrayList<>(); students = new ArrayList<>(); btnAdd.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String food = etFood.getText().toString(); foods.add(food); lvFoodListDoldur(); etFood.setText(""); } }); lvFoodList.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() { @Override public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) { foodSilAlertDialogCikart(position); return false; } }); etFood.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { etFood.requestFocus(); } }); btnSave.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if(!foodKontrol) dbyeKaydet(); else { dbyiGuncelle(); } } }); yemekKontrolEt(); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
TODO code application logic here
public static void main(String[] args) { Mensaje m= new Mensaje(); System.out.println(m.recorre("buenos dias")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void autoDetails() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n protected void execute() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "protected void onFirstUse() {}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void execute() {\n \n }", "@Override\n public void feedingHerb() {\n\n }", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void execute() {\n \n \n }", "@Override\n\tpublic void view() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n protected void fetchData() {\n\r\n }", "@Override\n public void onCancelled(CancelledException arg0) {\n }", "@Override\n public void onCancelled(CancelledException arg0) {\n }", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "protected void aktualisieren() {\r\n\r\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\t\t\tpublic void onPreExecute() {\n\t\t\t\t\n\t\t\t}", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "private static void oneUserExample()\t{\n\t}", "@Override\n public void onCancelled(CancelledException arg0) {\n\n }", "@Override\n protected void execute() {\n\n }", "public void logic(){\r\n\r\n\t}", "public void gored() {\n\t\t\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tprotected void execute() {\r\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\t \n\t\t\t super.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tprotected void onPreExecute() {\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\t\tprotected void onPreExecute() {\n\t\t}", "@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void redibujarAlgoformers() {\n\t\t\n\t}", "@Override\n protected void startUp() {\n }", "protected void mo6255a() {\n }", "protected void viewSetup() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\r\n\tpublic void manage() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "public void mo38117a() {\n }", "private void poetries() {\n\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "@Override\n protected void onPreExecute() {\n \n }", "protected void index()\r\n\t{\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "public void mo55254a() {\n }" ]
[ "0.60802186", "0.5912082", "0.58425087", "0.58339286", "0.5810548", "0.57580656", "0.57396024", "0.5721001", "0.5705411", "0.5666017", "0.5657976", "0.5613798", "0.5611188", "0.5611188", "0.55960613", "0.55933475", "0.557677", "0.5572332", "0.5565667", "0.55482084", "0.5536573", "0.5534607", "0.5533934", "0.5468669", "0.5460392", "0.5443554", "0.543027", "0.5422523", "0.5420404", "0.5420404", "0.5414971", "0.53763115", "0.5367869", "0.53636855", "0.53608036", "0.5329318", "0.5327322", "0.5327322", "0.53258926", "0.53220093", "0.53199", "0.5311158", "0.53085816", "0.5307914", "0.52976745", "0.52976745", "0.52976745", "0.5297331", "0.52968514", "0.5293012", "0.5281331", "0.5277546", "0.5277546", "0.52726364", "0.52688015", "0.5267047", "0.5266958", "0.5262331", "0.5261341", "0.52587026", "0.52557015", "0.5255123", "0.524477", "0.52443206", "0.5236655", "0.52359647", "0.52248156", "0.52246475", "0.52233", "0.52207166", "0.52205276", "0.5216701", "0.5206895", "0.52030635", "0.51967937", "0.51948136", "0.51947194", "0.5188396", "0.518064", "0.518064", "0.5177845", "0.5175415", "0.5175415", "0.5175415", "0.5175415", "0.5175415", "0.5175415", "0.5173223", "0.5173223", "0.5170695", "0.5168988", "0.51654655", "0.51593053", "0.5157954", "0.5156624", "0.5153031", "0.5152581", "0.51493365", "0.5148302", "0.51443505", "0.51430386" ]
0.0
-1
Returns the list of nodes contained within this group.
List<CyNode> getNodeList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Node> getNodes() {\n List<Node> list = getNodes(false, false);\n return list;\n }", "public List<Node> getNodes();", "List<Node> getNodes();", "public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}", "public List<Nodes> getNodes() {\n return nodes;\n }", "public ArrayList<Node> getListNodes(){\r\n return listNodes;\r\n }", "public MyArrayList<Node> getNodes() {\n return this.nodes;\n }", "java.util.List<entities.Torrent.NodeId>\n getNodesList();", "public Nodes nodes() {\n return this.nodes;\n }", "Collection<Node> allNodes();", "public List<INode> getAllNodes();", "public HashSet<Node> getNodes(){\n\t\t\n\t\t//Return nodes hashset\n\t\treturn this.nodes;\n\t\t\n\t}", "public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }", "java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();", "public Collection<Node> getNodeList(){\r\n return nodesMap.values();\r\n }", "public Node[] getNodes() {\n\t\treturn nodes;\n\t}", "List<Node> nodes();", "public List<OSMNode> nodes() {\n return nodes;\n }", "@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }", "public ArrayList<GraphNode> getNodes() {\n return selectedNodes;\n }", "public List<Node> getAllNodes() {\n return nodeRepository.findAll();\n }", "public List<TbNode> getAll() {\n return qureyNodeList(new NodeParam());\n }", "@Override\n public Set<EventNode> getNodes() {\n return nodes;\n }", "public Map<String, Node> nodes() {\n return this.nodes;\n }", "protected abstract Node[] getAllNodes();", "public Set<Node<E>> getNodes(){\n return nodes.keySet();\n }", "@Override\n public Collection<? extends INode> getNodes() {\n\n return new LinkedList<>(Collections.unmodifiableCollection(this.nodeMap\n .values()));\n }", "@Override\n\tpublic List<N> getNodeList()\n\t{\n\t\treturn new ArrayList<N>(nodeList);\n\t}", "public static Collection<SxpNode> getNodes() {\n return Collections.unmodifiableCollection(NODES.values());\n }", "public Nodes getNodes()\n {\n return nodes;\n }", "public ArrayList<Node> getList(){\n \treturn this.children;\n }", "public HashMap<Integer, Node> getNodeList()\n\t{\n\t\treturn nodeManager.getNodes();\n\t}", "public LinkedList<AbstractNode> getNodes() {\n\t\treturn nodes;\n\t}", "public abstract List<Node> getChildNodes();", "public List<Node> getNodes()\t{return Collections.unmodifiableList(nodes);}", "public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }", "@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n return nodes_;\n }", "private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }", "@Override\n public abstract Collection<? extends GraphNode<N, E>> getNodes();", "public java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode> getNodeList() {\n if (nodeBuilder_ == null) {\n return java.util.Collections.unmodifiableList(node_);\n } else {\n return nodeBuilder_.getMessageList();\n }\n }", "java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList();", "@Override\n public ArrayList<Node> getAllNodes() {\n return getAllNodesRecursive(root);\n\n }", "java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode> \n getNodeList();", "public Set<String> getAllNodes() {\n return this.graph.keySet();\n }", "protected ArrayList<AStarNode> getNodes() {\n return nodes;\n }", "public List<Node<T>> getNodesCollection() {\n if (root == null) {\n return new ArrayList<>();\n }\n\n ArrayList<Node<T>> nodesCollection = new ArrayList<>();\n\n Queue<Node<T>> pendingNodes = new ArrayDeque<>();\n pendingNodes.add(root);\n\n while (pendingNodes.size() > 0) {\n Node<T> currNode = pendingNodes.poll();\n nodesCollection.add(currNode);\n\n for (Node<T> child : currNode.getChildren()) {\n pendingNodes.add(child);\n }\n }\n\n return nodesCollection;\n }", "public List<LayoutNode> getNodeList() {\n\treturn nodeList;\n }", "public List<TreeNode> getChildrenNodes();", "public Node[] getNodes()\r\n {\r\n if(nodes == null)\r\n\t{\r\n\t nodes = new Node[numNodes()];\r\n\t int i = 0;\r\n\t for (final NodeTypeHolder nt : ntMap.values())\r\n\t\tfor (final Node node : nt.getNodes())\r\n\t\t nodes[i++] = node;\r\n\t}\r\n return nodes.clone();\r\n }", "public List<Node> toList() {\n return tree.toList();\n }", "java.util.List<com.zibea.recommendations.webserver.core.dao.proto.AttributesMapProto.Map.KeyValue> \n getNodesList();", "public List<Node> getSubNodes() {\n\t\treturn subNodes;\n\t}", "public java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode> getNodeList() {\n return node_;\n }", "private Collection<Node> getNodes()\r\n\t{\r\n\t return nodeMap.values();\r\n\t}", "public List<NamespaceNode> getChildNodes() {\n return childNodes;\n }", "@Override\n\tpublic synchronized Set<PetrinetNode> getNodes() {\n\t\tSet<PetrinetNode> nodes = new HashSet<PetrinetNode>();\n\t\tnodes.addAll(this.transitions);\n\t\tnodes.addAll(this.places);\n\t\treturn nodes;\n\t}", "public Set<DefaultGraphCell> getNodes() {\n return nodes;\n }", "public List<Node> getAll() throws SQLException {\n var nodes = new ArrayList<Node>();\n var statement = connection.createStatement();\n var result = statement.executeQuery(\"SELECT identifier, x, y, parentx, parenty, status, owner, description FROM nodes\");\n while (result.next()) {\n nodes.add(\n new Node(\n result.getInt(\"identifier\"),\n result.getInt(\"x\"),\n result.getInt(\"y\"),\n result.getInt(\"parentx\"),\n result.getInt(\"parenty\"),\n result.getString(\"status\"),\n result.getString(\"owner\"),\n result.getString(\"description\")\n )\n );\n }\n result.close();\n statement.close();\n return nodes;\n }", "@Override\n public Collection<node_data> getV() {\n return this.nodes.values();\n }", "public LinkedList<Node> getChildren() { \r\n LinkedList<Node> nodes = new LinkedList<>();\r\n for(int i=0;i<=size;i++)\r\n nodes.add(children[i]);\r\n return nodes;\r\n }", "public Node[] getSelectedNodes() {\n return selectedNodes;\n }", "@Override\r\n\tpublic Iterable<Entity> getNodes()\r\n\t{\n\t\treturn null;\r\n\t}", "public JodeList children() {\n return new JodeList(node.getChildNodes());\n }", "public Collection<DBNode> getNodeList() {\n \n if (!isTable()) {\n // if not a table assume all until more intelligence\n // added\n return client.getSysDatabase().getDBNodeList();\n }\n return getSysTable().getNodeList();\n }", "public List<OSMNode> nonRepeatingNodes() {\n if (isClosed()) {\n return nodes.subList(0, nodes.size() - 1);\n } else {\n return nodes;\n }\n }", "public List<AST> getChildNodes ();", "public List<Imnode> getImnodes() {\n if (Imnodes == null) {\n Imnodes = new ArrayList<Imnode>();\n }\n return Imnodes;\n }", "public java.util.List<Node> getSelection() {\n\t\treturn selected_nodes;\n\t}", "public java.util.List<entities.Torrent.NodeId.Builder>\n getNodesBuilderList() {\n return getNodesFieldBuilder().getBuilderList();\n }", "public static Set<Node> getCheckedoutNodes() {\n return checkedOutNodes.get();\n }", "public List<ConfigurationNode> getSubNodes()\n {\n if (nodes == null)\n {\n return Collections.emptyList();\n }\n else\n {\n return Collections.unmodifiableList(nodes);\n }\n }", "public ArrayList<Node> getChildren() { return this.children; }", "List<String> getNodeNames()\n {\n return allNodes.values().stream().map(CommunicationLink::getName).collect(Collectors.toList());\n }", "public ArrayList<Node> getChildren() {\n return children;\n }", "public ArrayList<Node> getChildren(){\n return children;\n }", "java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();", "public Node[] getNodeArray() {\n return this.nodeArray;\n }", "public Collection<MyNode> getNeighbors(){\r\n return new ArrayList<>(this.neighbors);\r\n }", "public Iterator<LayoutNode> nodeIterator() {\n\treturn nodeList.iterator();\n }", "@Override\n\tpublic Collection<node_data> getV() {\n\t\treturn Nodes.values();\n\t}", "public List<Node> getChildren() {\r\n\t\t\tchildren.reset();\r\n\t\t\treturn children;\r\n\t\t}", "public Collection<GraphNode> getGraphNodes() {\n\t\treturn graphNodeMap.values();\n\t}", "public Iterator<Node> getNodeIter() {\n\t\treturn nodes.iterator();\n\t}", "List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }", "@Override\n public List<E> allItems() {\n return new ArrayList(graphNodes.keySet());\n }", "public IAstTopLevelNode[] getTopLevelNodes();", "public @NonNull List<@NonNull Node<@Nullable T>> getChildren() {\n return Collections.unmodifiableList(this.children);\n }", "public List<NodeTypeDescription> nodeTypes() {\n return this.nodeTypes;\n }", "public Node[] getChildren() {\n\t\treturn children.toArray(new Node[0]);\n\t}", "public Collection<node_info> getV()\n{\n\treturn this.getNodes().values();\n}", "@Override\n\tpublic int getNodes() {\n\t\treturn model.getNodes();\n\t}", "public java.util.List<? extends uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNodeOrBuilder> \n getNodeOrBuilderList() {\n if (nodeBuilder_ != null) {\n return nodeBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(node_);\n }\n }", "public Object[] getStartNodes ();", "public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }", "public Vector<Node> GetAdditionalSubNodes();", "public Vector<Node> getChildren(){\n\t\t Vector<Node> children = new Vector<>(0);\n\t\t Iterator<Link> l= myLinks.iterator();\n\t\t\twhile(l.hasNext()){\n\t\t\t\tLink temp=l.next();\n\t\t\t\tif(temp.getM().equals(currNode))\n\t\t\t\t children.add(temp.getN());\n\t\t\t\tif(temp.getN().equals(currNode))\n\t\t\t\t children.add(temp.getM());\n\t\t\t}\n\t\treturn children;\n\t}", "@Override\n\tpublic Set<HtmlTag> getChildren()\n\t{\n\t\tImmutableSet.Builder<HtmlTag> childrenBuilder = ImmutableSet.builder();\n\t\tfor(TreeNode<? extends HtmlTag> child : node.getChildren())\n\t\t{\n\t\t\tchildrenBuilder.add(child.getValue());\n\t\t}\n\t\treturn childrenBuilder.build();\n\t}", "public ArrayList<NodeRef> getDataNodes() {\r\n\t\tArrayList<NodeRef> slaves = new ArrayList<NodeRef>();\r\n\t\tfor (NodeRef node : nodeMap.values()) {\r\n\t\t\tslaves.add(node);\r\n\t\t}\r\n\t\treturn slaves;\r\n\t}", "public Node[] getChildren() {\n\t\tNode[] nextLayer = new Node[nextLayerNodes.keySet().toArray().length];\n\t\tfor (int i = 0; i < nextLayer.length; i++) {\n\t\t\tnextLayer[i] = (Node) nextLayerNodes.keySet().toArray()[i];\n\t\t}\n\t\treturn nextLayer;\n\t}", "public Node[] getChildren(){\n return children.values().toArray(new Node[0]);\n }" ]
[ "0.8075618", "0.8008388", "0.7887947", "0.77226967", "0.76692176", "0.7654803", "0.76523274", "0.76463133", "0.76204515", "0.7593272", "0.7553537", "0.7525135", "0.75237584", "0.7495943", "0.74853706", "0.7471668", "0.74621063", "0.7452927", "0.7416127", "0.7393763", "0.73840296", "0.73579985", "0.7357523", "0.7323112", "0.728869", "0.7285496", "0.72821635", "0.7264305", "0.7258688", "0.724787", "0.723274", "0.72273934", "0.71837914", "0.7172296", "0.71717656", "0.7159291", "0.71308625", "0.71209717", "0.70846915", "0.70742416", "0.7058941", "0.70586336", "0.70536804", "0.7053562", "0.70294875", "0.69975835", "0.69746244", "0.6949404", "0.693168", "0.692813", "0.6911249", "0.68886554", "0.68674237", "0.6858092", "0.68466055", "0.6801406", "0.6772615", "0.6694012", "0.6666451", "0.6659321", "0.6639749", "0.66300505", "0.66265064", "0.66177195", "0.6613967", "0.66066694", "0.65819776", "0.6575151", "0.6566292", "0.65507865", "0.65466154", "0.6542205", "0.6541286", "0.6539316", "0.6534882", "0.65264803", "0.6517606", "0.65153337", "0.65041673", "0.6483882", "0.64836854", "0.64690053", "0.6459579", "0.64583707", "0.64579266", "0.6446695", "0.6441983", "0.64280206", "0.64137876", "0.64107776", "0.6399981", "0.6382561", "0.63644767", "0.6352182", "0.63519436", "0.6338175", "0.63366085", "0.63246167", "0.6322883", "0.6322516" ]
0.73089325
24
Returns the list of edges contained within this group.
List<CyEdge> getInternalEdgeList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ArrayList<Edge> getAllEdges(){\n\t\treturn edgeList;\n\t}", "public List<IEdge> getAllEdges();", "Collection<E> edges();", "public Set<Eventable> getAllEdges() {\n\t\treturn sfg.edgeSet();\n\t}", "List<IEdge> getAllEdges();", "public Vector<Edge> getEdges(){\n\t\treturn this.listOfEdges;\n\t}", "public ArrayList<DrawableGraphEdge> getEdges() {\r\n\t\treturn new ArrayList<DrawableGraphEdge>(edges);\r\n\t}", "public Edge[] getEdges() {\n\t\treturn edges;\n\t}", "public ArrayList<Edge> getListEdges(){\r\n return listEdges;\r\n }", "public Iterable<Edge> edges() {\r\n Bag<Edge> list = new Bag<Edge>();\r\n for (int v = 0; v < V; v++) {\r\n for (Edge e : adj(v)) {\r\n list.add(e);\r\n }\r\n }\r\n return list;\r\n }", "public HashSet<Edge> getEdges() {\n\t\treturn edges;\n\t}", "public List<EdgeType> getEdges()\n {\n return edges;\n }", "public Iterable<DirectedEdge> edges() {\n ArrayList<DirectedEdge> list = new ArrayList<DirectedEdge>();\n for (int v = 0; v < V; v++) {\n for (DirectedEdge e : adj(v)) {\n list.add(e);\n }\n }\n return list;\n }", "public ArrayList<GraphEdge> getEdges() {\n return selectedEdges;\n }", "public Set<E> getEdges();", "public Iterable<Edge> edges() {\r\n\t\treturn mst;\r\n\t}", "public DSALinkedList<DSAGraphEdge<E>> getAdjacentEdges()\n {\n return edgeList;\n }", "public List<Edge> findAllEdge() throws SQLException {\n\t\treturn rDb.findAllEdges();\n\t}", "public DEdge[] getEdges(){\n return listOfEdges;\n }", "public ArrayList<Edge> getEdgeList() {\n return edgeList;\n }", "public abstract List<? extends GraphEdge<N, E>> getEdges();", "public Edge[] getEdges()\r\n {\r\n if(edges == null)\r\n\t{\r\n\t edges = new Edge[numEdges()];\r\n\t int i = 0;\r\n\t for (final EdgeTypeHolder eth : ethMap.values())\r\n\t\tfor (final Edge e : eth.getEdges())\r\n\t\t edges[i++] = e;\r\n\t}\r\n return edges.clone();\r\n }", "@Override\n public Collection<? extends IEdge> getEdges() {\n\n return new LinkedList<>(Collections.unmodifiableCollection(this.edgeMap\n .values()));\n }", "public Map<String, Edge> edges() {\n return this.edges;\n }", "public Set<List<List<String>>> getEdges()\n\t\t{\n\t\t\treturn m_hyperedges;\n\t\t}", "public ArrayList< Edge > incidentEdges( ) {\n return incidentEdges;\n }", "private Collection<Edge> getEdges()\r\n\t{\r\n\t return eSet;\r\n\t}", "public List<LayoutEdge> getEdgeList() {\n\treturn edgeList;\n }", "public Set<DefaultEdge> getEdges() {\n return edges;\n }", "public Iterator<Edge> getEdgeIter() {\n\t\treturn edges.iterator();\n\t}", "java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge> \n getEdgeList();", "public Enumeration edges();", "public List<Piece> getEdges() {\n List<Piece> result = new ArrayList<>();\n result.add(_board[0][1]);\n result.add(_board[1][0]);\n result.add(_board[1][2]);\n result.add(_board[2][1]);\n return result;\n }", "public Collection<Edge> edges() {\n Collection<Collection<Edge>> copyOfEdges = new ArrayList<Collection<Edge>>();\n //values = myGraph.values(); OLD\n //create a copy of all the edges in the map to restrict any reference\n //to interals of this class\n copyOfEdges.addAll(myGraph.values());\n Collection<Edge> allValues = new ArrayList<Edge>();\n Iterator<Collection<Edge>> eachColl = copyOfEdges.iterator();\n while(eachColl.hasNext()){\n allValues.addAll(eachColl.next());\n }\n\n return allValues;\n }", "public Iterator<LayoutEdge> edgeIterator() {\n\treturn edgeList.iterator();\n }", "@Override\n\tpublic List<Edge> getAllEdges() {\n\n\t\tList<Edge> res = new ArrayList<Edge>();\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\t\t\tString getAllEdges = \"SELECT node_from, node_to, distance FROM routefinder.relations\";\n\t\t\tresultSet = null;\n\t\t\tpstmt = conn.prepareStatement(getAllEdges);\n\t\t\tresultSet = pstmt.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tEdge edge = new Edge();\n\t\t\t\tedge.setNode1(Database.getNodeFromId(resultSet.getInt(\"node_from\")));\n\t\t\t\tedge.setNode2(Database.getNodeFromId(resultSet.getInt(\"node_to\")));\n\t\t\t\tedge.setDist(resultSet.getDouble(\"distance\"));\n\t\t\t\tres.add(edge);\n\t\t\t}\n\n\t\t\treturn res;\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcConnect.resultClose(resultSet, pstmt);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic synchronized Set<PetrinetEdge<? extends PetrinetNode, ? extends PetrinetNode>> getEdges() {\n\t\tSet<PetrinetEdge<? extends PetrinetNode, ? extends PetrinetNode>> edges = new HashSet<PetrinetEdge<? extends PetrinetNode, ? extends PetrinetNode>>();\n\t\tedges.addAll(this.arcs);\n\t\treturn edges;\n\t}", "public java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge> getEdgeList() {\n if (edgeBuilder_ == null) {\n return java.util.Collections.unmodifiableList(edge_);\n } else {\n return edgeBuilder_.getMessageList();\n }\n }", "default Iterator<E> edgeIterator() {\n return getEdges().iterator();\n }", "String getEdges();", "@Override\r\n\tpublic Iterable<EntityGraphEdge> getEdges()\r\n\t{\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<ET> getEdgeList()\n\t{\n\t\treturn new ArrayList<ET>(edgeList);\n\t}", "Map<Node, Edge> getInEdges() {\n return inEdges;\n }", "Set<CyEdge> getExternalEdgeList();", "public HashMap<String, Edge> getEdgeList () {return edgeList;}", "@Override\n\tpublic Collection<IEdge<S>> getEdges()\n\t{\n\t\tfinal List<IEdge<S>> set = new ArrayList<>(map.size());\n\t\tfor (final Entry<S, Integer> entry : map.entrySet())\n\t\t{\n\t\t\tset.add(createEdge(entry.getKey(), entry.getValue()));\n\t\t}\n\n\t\treturn Collections.unmodifiableCollection(set);\n\t}", "public Set getNonEscapingEdges() {\n if (addedEdges == null) return Collections.EMPTY_SET;\n return addedEdges.entrySet();\n }", "private Set<Edge> basicEdges() {\n Set<Edge> set = new LinkedHashSet<>();\n set.add(new Edge(0, 1, 8, false));\n set.add(new Edge(0, 2, 7, false));\n set.add(new Edge(0, 3, 1, false));\n set.add(new Edge(1, 3, 9, false));\n set.add(new Edge(1, 5, 6, false));\n set.add(new Edge(2, 4, 2, false));\n set.add(new Edge(3, 5, 3, false));\n set.add(new Edge(3, 6, 4, false));\n set.add(new Edge(4, 5, 10, false));\n set.add(new Edge(4, 6, 5, false));\n return set;\n }", "public String getEdges(){\n double Lx = super.getCentre().x - (this.length / 2);\r\n double Rx = super.getCentre().x + (this.length / 2);\r\n double Dy = super.getCentre().y - (this.width / 2);\r\n double Uy = super.getCentre().y + (this.width / 2);\r\n Point UL = new Point(Lx, Uy);\r\n Point UR = new Point(Rx, Uy);\r\n Point DL = new Point(Lx, Dy);\r\n Point DR = new Point(Rx, Dy);\r\n Point[] Edges = {DL, UL, UR, DR};\r\n this.edge = Edges;\r\n return Arrays.toString(Edges);\r\n }", "public java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge> getEdgeList() {\n return edge_;\n }", "public List<Edge> segments() {\n return segments;\n }", "@NotNull\n List<ExpLineageEdge> getEdges(ExpLineageEdge.FilterOptions options);", "public abstract ArrayList<Pair<Vector2, Vector2>> getEdges();", "public List<Edge> getNeighbors() {\n\t\treturn neighbors;\n\t}", "public Set<Edge<V>> edgeSet();", "public Edge[] getEdges(EdgeType et)\r\n {\r\n\treturn getEdges(et.getName());\r\n }", "public java.util.List<? extends uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdgeOrBuilder> \n getEdgeOrBuilderList() {\n if (edgeBuilder_ != null) {\n return edgeBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(edge_);\n }\n }", "public ArrayList<Node> getNeighbors(){\n ArrayList<Node> result = new ArrayList<Node>();\n for(Edge edge: edges){\n result.add(edge.end());\n }\n return result;\n }", "public HashMap<Integer, edge_data> getNeighborEdges() {\n return this.neighborEdges;\n }", "public static EdgesHelper getEdgesHelper() {\n return edgesHelper;\n }", "public int getEdges() {\n return edgesNumber;\n }", "@Override\n public Collection<? extends IHyperEdge> getHyperEdges() {\n\n return new LinkedList<>(\n Collections.unmodifiableCollection(this.hyperEdgeMap.values()));\n }", "public int getEdgeCount() {\n return edge_.size();\n }", "List<Edge<V>> getEdgeList();", "public Collection< EDataT > edgeData();", "@Override\n public Collection<edge_data> getE(int node_id) {\n return ((NodeData) this.nodes.get(node_id)).getNeighborEdges().values();\n }", "public int[] getEdgeIndicesArray() {\n \t\tginy_edges.trimToSize();\n \t\treturn giny_edges.elements();\n \t}", "public Enumeration directedEdges();", "Map<Node, Edge> getOutEdges() {\n return outEdges;\n }", "@Override\n\tpublic List<Edge> getAllMapEdges() {\n\n\t\tList<Edge> res = new ArrayList<Edge>();\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\t\t\tString getAllEdges = \"SELECT node_from, node_to, distance FROM routefinder.maprelations\";\n\t\t\tresultSet = null;\n\t\t\tpstmt = conn.prepareStatement(getAllEdges);\n\t\t\tresultSet = pstmt.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tEdge edge = new Edge();\n\t\t\t\tedge.setNode1(Database.getNodeFromId(resultSet.getInt(\"node_from\")));\n\t\t\t\tedge.setNode2(Database.getNodeFromId(resultSet.getInt(\"node_to\")));\n\t\t\t\tedge.setDist(resultSet.getDouble(\"distance\"));\n\t\t\t\tres.add(edge);\n\t\t\t}\n\t\t\treturn res;\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcConnect.resultClose(resultSet, pstmt);\n\t\t}\n\n\t\treturn null;\n\t}", "java.util.List<? extends uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdgeOrBuilder> \n getEdgeOrBuilderList();", "public HashMap<Integer, edge_data> getEdgesConnectedToThisNode() {\n return this.edgesConnectedToThisNode;\n }", "public Collection<Edge> getE(int node_id) {\n\tCollection<Edge> list=new ArrayList<Edge>();\n\t\n\tif(getNodes().containsKey(node_id))\n\t{\n\t\tNode n=(Node) getNodes().get(node_id);\n\t\tlist.addAll(n.getEdgesOf().values());\n\t}\n\treturn list;\n}", "public LinkedList<Edgeq> getAllEdges(String node) {\n return this.graph.get(node);\n }", "public Set getNonEscapingEdgeFields() {\n if (addedEdges == null) return Collections.EMPTY_SET;\n return addedEdges.keySet();\n }", "public List<Line> getEdgeLines()\r\n {\r\n final List<Line> lineList = new ArrayList<Line>();\r\n lineList.add(new Line(getUpperLeft(), getLowerLeft()));\r\n lineList.add(new Line(getLowerLeft(), getLowerRight()));\r\n lineList.add(new Line(getLowerRight(), getUpperRight()));\r\n lineList.add(new Line(getUpperRight(), getUpperLeft()));\r\n return lineList;\r\n }", "public Collection getNonEscapingEdgeTargets() {\n if (addedEdges == null) return Collections.EMPTY_SET;\n return new FlattenedCollection(addedEdges.values());\n }", "public int edgeNum() {\r\n return edges.size();\r\n }", "public Set<E> getEdges(V tail);", "private ArrayList<Edge>getFullyConnectedGraph(){\n\t\tArrayList<Edge> edges = new ArrayList<>();\n\t\tfor(int i=0;i<nodes.size();i++){\n\t\t\tfor(int j=i+1;j<nodes.size();j++){\n\t\t\t\tEdge edge = new Edge(nodes.get(i), nodes.get(j),Utils.distance(nodes.get(i), nodes.get(j)));\n\t\t\t\tedges.add(edge);\n\t\t\t}\n\t\t}\n\t\treturn edges;\n\t}", "public Set getAccessPathEdges() {\n if (accessPathEdges == null) return Collections.EMPTY_SET;\n return accessPathEdges.entrySet();\n }", "public ArrayList<NonDirectionalEdge> getNonDirectionalEdges() {\n return selectedNonDirectionalEdges;\n }", "public abstract List<? extends DiGraphEdge<N, E>> getInEdges(N nodeValue);", "public ArrayList<Edge> getAdjacencies(){\r\n return adjacencies;\r\n }", "public DSALinkedList<DSAGraphNode<E>> getAdjacent()\n {\n return links;\n }", "public Collection<E> getChildEdges(V vertex);", "public int edgeCount() {\n\treturn edgeList.size();\n }", "public java.util.List<? extends uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdgeOrBuilder> \n getEdgeOrBuilderList() {\n return edge_;\n }", "public Map<String, IEdge> getEdgeMap() {\n\n return Collections.unmodifiableMap(edgeMap);\n }", "public Collection<LazyRelationship2> getEdges() {\n long relCount=0;\n ArrayList l = new ArrayList();\n \n for(Path e : getActiveTraverser()){\n for(Path p : getFlushTraverser(e.endNode())){\n if((relCount++%NEO_CACHE_LIMIT)==0){\n l.add(p.lastRelationship());\n clearNeoCache();\n }\n }\n }\n return l; \n }", "public Set<Edge<V>> getEdges(V vertex);", "public int numEdges() {\r\n\t\treturn edges;\r\n\t}", "private int numEdges()\r\n\t{\r\n\t return eSet.size();\r\n\t}", "ArrayList<Edge> getAdjacencies();", "public Map<String, String> getEdge() {\n\t\tif (edge == null) {\n\t\t\tsetEdge(new HashMap<String, String>());\n\t\t}\n\t\treturn edge;\n\t}", "public int getNumEdges() {\n\t\treturn edges.size();\n\t}", "public static int[][] getEdgeMatrix() {\n\t\treturn edge;\n\t}", "public abstract Set<? extends EE> edgesOf(VV vertex);", "protected Collection<E> getSelectedEdges(VisualizationServer<V, E> visualizationServer) {\n LayoutModel<V> layoutModel = visualizationServer.getVisualizationModel().getLayoutModel();\n RenderContext<V, E> renderContext = visualizationServer.getRenderContext();\n return visualizationServer\n .getSelectedEdges()\n .stream()\n .filter(\n e -> {\n // don't highlight edge if either incident vertex is not drawn\n V u = layoutModel.getGraph().getEdgeSource(e);\n V v = layoutModel.getGraph().getEdgeTarget(e);\n Predicate<V> vertexIncludePredicate = renderContext.getVertexIncludePredicate();\n Predicate<E> edgeIncludePredicate = renderContext.getEdgeIncludePredicate();\n return edgeIncludePredicate.test(e)\n && vertexIncludePredicate.test(u)\n && vertexIncludePredicate.test(v);\n })\n .collect(Collectors.toList());\n }", "public ArrayList< Vertex > adjacentVertices( ) {\n return adjacentVertices;\n }" ]
[ "0.79038954", "0.77929133", "0.7763357", "0.7749356", "0.770129", "0.7681241", "0.7667744", "0.7660523", "0.7656515", "0.7619587", "0.7568958", "0.7562498", "0.75191915", "0.75004095", "0.749953", "0.74961674", "0.7470513", "0.744734", "0.73917526", "0.73539245", "0.73487943", "0.73096097", "0.73021704", "0.72618866", "0.7202328", "0.7049425", "0.7016248", "0.6997367", "0.6965435", "0.69631875", "0.69132864", "0.6886477", "0.6882202", "0.6868828", "0.68653303", "0.6853025", "0.68444675", "0.6839179", "0.6786596", "0.67566943", "0.67430526", "0.67272645", "0.6713991", "0.67041314", "0.66970783", "0.6694765", "0.6581127", "0.65732884", "0.6564441", "0.6534865", "0.65284246", "0.6497854", "0.64839464", "0.6467112", "0.6450003", "0.64331144", "0.6411893", "0.6385321", "0.6344768", "0.6344383", "0.6341492", "0.63083464", "0.62878436", "0.6257498", "0.62556523", "0.62524664", "0.6249736", "0.6231128", "0.6212795", "0.6190726", "0.61860454", "0.6177858", "0.6155945", "0.6151092", "0.6143862", "0.61370325", "0.61268485", "0.61266637", "0.6118433", "0.61155874", "0.6115237", "0.6105194", "0.6098236", "0.60974556", "0.606561", "0.60638565", "0.60478455", "0.60396904", "0.602901", "0.60242426", "0.60020304", "0.5974833", "0.5961528", "0.59574604", "0.59475154", "0.5943895", "0.5929794", "0.5921685", "0.59144896", "0.58817726" ]
0.6514403
51
Returns the list of exterior edges connected to the nodes within this group.
Set<CyEdge> getExternalEdgeList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DSALinkedList<DSAGraphEdge<E>> getAdjacentEdges()\n {\n return edgeList;\n }", "public Iterable<DirectedEdge> edges() {\n ArrayList<DirectedEdge> list = new ArrayList<DirectedEdge>();\n for (int v = 0; v < V; v++) {\n for (DirectedEdge e : adj(v)) {\n list.add(e);\n }\n }\n return list;\n }", "public Iterable<Edge> edges() {\r\n Bag<Edge> list = new Bag<Edge>();\r\n for (int v = 0; v < V; v++) {\r\n for (Edge e : adj(v)) {\r\n list.add(e);\r\n }\r\n }\r\n return list;\r\n }", "public Set<Eventable> getAllEdges() {\n\t\treturn sfg.edgeSet();\n\t}", "public abstract List<? extends GraphEdge<N, E>> getEdges();", "public Edge[] getEdges() {\n\t\treturn edges;\n\t}", "public Set<E> getEdges();", "public Iterable<Edge> edges() {\r\n\t\treturn mst;\r\n\t}", "public ArrayList<DrawableGraphEdge> getEdges() {\r\n\t\treturn new ArrayList<DrawableGraphEdge>(edges);\r\n\t}", "public static ArrayList<Edge> getAllEdges(){\n\t\treturn edgeList;\n\t}", "public Vector<Edge> getEdges(){\n\t\treturn this.listOfEdges;\n\t}", "Collection<E> edges();", "public Set<List<List<String>>> getEdges()\n\t\t{\n\t\t\treturn m_hyperedges;\n\t\t}", "public Edge[] getEdges()\r\n {\r\n if(edges == null)\r\n\t{\r\n\t edges = new Edge[numEdges()];\r\n\t int i = 0;\r\n\t for (final EdgeTypeHolder eth : ethMap.values())\r\n\t\tfor (final Edge e : eth.getEdges())\r\n\t\t edges[i++] = e;\r\n\t}\r\n return edges.clone();\r\n }", "public List<Piece> getEdges() {\n List<Piece> result = new ArrayList<>();\n result.add(_board[0][1]);\n result.add(_board[1][0]);\n result.add(_board[1][2]);\n result.add(_board[2][1]);\n return result;\n }", "public HashSet<Edge> getEdges() {\n\t\treturn edges;\n\t}", "public String getEdges(){\n double Lx = super.getCentre().x - (this.length / 2);\r\n double Rx = super.getCentre().x + (this.length / 2);\r\n double Dy = super.getCentre().y - (this.width / 2);\r\n double Uy = super.getCentre().y + (this.width / 2);\r\n Point UL = new Point(Lx, Uy);\r\n Point UR = new Point(Rx, Uy);\r\n Point DL = new Point(Lx, Dy);\r\n Point DR = new Point(Rx, Dy);\r\n Point[] Edges = {DL, UL, UR, DR};\r\n this.edge = Edges;\r\n return Arrays.toString(Edges);\r\n }", "public List<IEdge> getAllEdges();", "public DEdge[] getEdges(){\n return listOfEdges;\n }", "public ArrayList<Edge> getListEdges(){\r\n return listEdges;\r\n }", "public List<Edge> findAllEdge() throws SQLException {\n\t\treturn rDb.findAllEdges();\n\t}", "public Enumeration edges();", "List<IEdge> getAllEdges();", "public List<EdgeType> getEdges()\n {\n return edges;\n }", "public ArrayList<Edge> getEdgeList() {\n return edgeList;\n }", "public ArrayList<GraphEdge> getEdges() {\n return selectedEdges;\n }", "String getEdges();", "@Override\n public Collection<? extends IEdge> getEdges() {\n\n return new LinkedList<>(Collections.unmodifiableCollection(this.edgeMap\n .values()));\n }", "List<CyEdge> getInternalEdgeList();", "@Override\n\tpublic synchronized Set<PetrinetEdge<? extends PetrinetNode, ? extends PetrinetNode>> getEdges() {\n\t\tSet<PetrinetEdge<? extends PetrinetNode, ? extends PetrinetNode>> edges = new HashSet<PetrinetEdge<? extends PetrinetNode, ? extends PetrinetNode>>();\n\t\tedges.addAll(this.arcs);\n\t\treturn edges;\n\t}", "@Override\r\n\tpublic Iterable<EntityGraphEdge> getEdges()\r\n\t{\n\t\treturn null;\r\n\t}", "private ArrayList<Edge>getFullyConnectedGraph(){\n\t\tArrayList<Edge> edges = new ArrayList<>();\n\t\tfor(int i=0;i<nodes.size();i++){\n\t\t\tfor(int j=i+1;j<nodes.size();j++){\n\t\t\t\tEdge edge = new Edge(nodes.get(i), nodes.get(j),Utils.distance(nodes.get(i), nodes.get(j)));\n\t\t\t\tedges.add(edge);\n\t\t\t}\n\t\t}\n\t\treturn edges;\n\t}", "public Iterator<Edge> getEdgeIter() {\n\t\treturn edges.iterator();\n\t}", "private Set<Edge> basicEdges() {\n Set<Edge> set = new LinkedHashSet<>();\n set.add(new Edge(0, 1, 8, false));\n set.add(new Edge(0, 2, 7, false));\n set.add(new Edge(0, 3, 1, false));\n set.add(new Edge(1, 3, 9, false));\n set.add(new Edge(1, 5, 6, false));\n set.add(new Edge(2, 4, 2, false));\n set.add(new Edge(3, 5, 3, false));\n set.add(new Edge(3, 6, 4, false));\n set.add(new Edge(4, 5, 10, false));\n set.add(new Edge(4, 6, 5, false));\n return set;\n }", "public Set getNonEscapingEdges() {\n if (addedEdges == null) return Collections.EMPTY_SET;\n return addedEdges.entrySet();\n }", "public List<LayoutEdge> getEdgeList() {\n\treturn edgeList;\n }", "@Override\n\tpublic List<Edge> getAllEdges() {\n\n\t\tList<Edge> res = new ArrayList<Edge>();\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\t\t\tString getAllEdges = \"SELECT node_from, node_to, distance FROM routefinder.relations\";\n\t\t\tresultSet = null;\n\t\t\tpstmt = conn.prepareStatement(getAllEdges);\n\t\t\tresultSet = pstmt.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tEdge edge = new Edge();\n\t\t\t\tedge.setNode1(Database.getNodeFromId(resultSet.getInt(\"node_from\")));\n\t\t\t\tedge.setNode2(Database.getNodeFromId(resultSet.getInt(\"node_to\")));\n\t\t\t\tedge.setDist(resultSet.getDouble(\"distance\"));\n\t\t\t\tres.add(edge);\n\t\t\t}\n\n\t\t\treturn res;\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcConnect.resultClose(resultSet, pstmt);\n\t\t}\n\n\t\treturn null;\n\t}", "public Collection<LazyRelationship2> getEdges() {\n long relCount=0;\n ArrayList l = new ArrayList();\n \n for(Path e : getActiveTraverser()){\n for(Path p : getFlushTraverser(e.endNode())){\n if((relCount++%NEO_CACHE_LIMIT)==0){\n l.add(p.lastRelationship());\n clearNeoCache();\n }\n }\n }\n return l; \n }", "public Enumeration directedEdges();", "public ArrayList< Edge > incidentEdges( ) {\n return incidentEdges;\n }", "public DSALinkedList<DSAGraphNode<E>> getAdjacent()\n {\n return links;\n }", "@Override\n\tpublic List<ET> getEdgeList()\n\t{\n\t\treturn new ArrayList<ET>(edgeList);\n\t}", "private Collection<Edge> getEdges()\r\n\t{\r\n\t return eSet;\r\n\t}", "java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge> \n getEdgeList();", "public java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge> getEdgeList() {\n if (edgeBuilder_ == null) {\n return java.util.Collections.unmodifiableList(edge_);\n } else {\n return edgeBuilder_.getMessageList();\n }\n }", "public Set<E> getEdges(V tail);", "public Iterator<LayoutEdge> edgeIterator() {\n\treturn edgeList.iterator();\n }", "public Map<String, Edge> edges() {\n return this.edges;\n }", "public Set<DefaultEdge> getEdges() {\n return edges;\n }", "@NotNull\n List<ExpLineageEdge> getEdges(ExpLineageEdge.FilterOptions options);", "default Iterator<E> edgeIterator() {\n return getEdges().iterator();\n }", "public ArrayList<Node> getNeighbors(){\n ArrayList<Node> result = new ArrayList<Node>();\n for(Edge edge: edges){\n result.add(edge.end());\n }\n return result;\n }", "public Edge[] getEdges(EdgeType et)\r\n {\r\n\treturn getEdges(et.getName());\r\n }", "public Set getNonEscapingEdgeFields() {\n if (addedEdges == null) return Collections.EMPTY_SET;\n return addedEdges.keySet();\n }", "public List<GraphEdge<D>> getForwardEdges() {\n List<GraphEdge<D>> edges = new ArrayList<>();\n \n for (GraphNode<D> node : successors) {\n edges.add(new GraphEdge<>(this, node));\n }\n \n return edges;\n }", "public Enumeration undirectedEdges();", "Map<Node, Edge> getInEdges() {\n return inEdges;\n }", "public List<Line> getEdgeLines()\r\n {\r\n final List<Line> lineList = new ArrayList<Line>();\r\n lineList.add(new Line(getUpperLeft(), getLowerLeft()));\r\n lineList.add(new Line(getLowerLeft(), getLowerRight()));\r\n lineList.add(new Line(getLowerRight(), getUpperRight()));\r\n lineList.add(new Line(getUpperRight(), getUpperLeft()));\r\n return lineList;\r\n }", "public Collection getNonEscapingEdgeTargets() {\n if (addedEdges == null) return Collections.EMPTY_SET;\n return new FlattenedCollection(addedEdges.values());\n }", "public ArrayList< Vertex > adjacentVertices( ) {\n return adjacentVertices;\n }", "@Override\r\n\tpublic PointInterface[] edgeEndPoints() {\n\t\treturn p;\r\n\t}", "Map<Node, Edge> getOutEdges() {\n return outEdges;\n }", "public Vector getAdjacentNodes()\n\t{\n\t\tVector vAdjNodes = new Vector();\n\t\t\n\t\tfor (int i = 0; i < m_vConnectedNodes.size(); i++)\n\t\t{\n\t\t\tif ( ((NodeConnection)m_vConnectedNodes.get(i)).getCost() > 0 )\n\t\t\t{\n\t\t\t\tvAdjNodes.add(((NodeConnection)m_vConnectedNodes.get(i)).getLinkedNode());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn vAdjNodes;\n\t}", "public ArrayList<NonDirectionalEdge> getNonDirectionalEdges() {\n return selectedNonDirectionalEdges;\n }", "public static EdgesHelper getEdgesHelper() {\n return edgesHelper;\n }", "public List<Edge> getNeighbors() {\n\t\treturn neighbors;\n\t}", "public HashMap<String, Edge> getEdgeList () {return edgeList;}", "@Override\n public Collection<? extends IHyperEdge> getHyperEdges() {\n\n return new LinkedList<>(\n Collections.unmodifiableCollection(this.hyperEdgeMap.values()));\n }", "public DSALinkedList getAdjacent()\n\t\t{\n\t\t\treturn links;\n\t\t}", "public java.util.List<? extends uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdgeOrBuilder> \n getEdgeOrBuilderList() {\n if (edgeBuilder_ != null) {\n return edgeBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(edge_);\n }\n }", "public ArrayList<Edge> getAdjacencies(){\r\n return adjacencies;\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<Node<A>> neighbours(){\n\t\t\n\t\tArrayList<Node<A>> output = new ArrayList<Node<A>>();\n\t\t\n\t\tif (g == null) return output;\n\t\t\n\t\tfor (Object o: g.getEdges()){\n\n\t\t\t\n\t\t\tif (((Edge<?>)o).getTo().equals(this)) {\n\t\t\t\t\n\t\t\t\tif (!output.contains(((Edge<?>)o).getFrom()))\n\t\t\t\t\t\toutput.add((Node<A>) ((Edge<?>)o).getFrom());\n\t\t\t\t\n\t\t\t}\n\n\t\t} \n\t\treturn output;\n\t\t\n\t}", "@Override\n\tpublic Set<ET> getAdjacentEdges(N node)\n\t{\n\t\t// implicitly returns null if gn is not in the nodeEdgeMap\n\t\tSet<ET> adjacentEdges = nodeEdgeMap.get(node);\n\t\treturn adjacentEdges == null ? null : new HashSet<ET>(adjacentEdges);\n\t}", "private int numEdges()\r\n\t{\r\n\t return eSet.size();\r\n\t}", "public HashMap<Integer, edge_data> getEdgesConnectedToThisNode() {\n return this.edgesConnectedToThisNode;\n }", "public abstract ArrayList<Pair<Vector2, Vector2>> getEdges();", "public int getEdges() {\n return edgesNumber;\n }", "public Set<E> getEdges(V tail, V head);", "public Collection<Edge> edges() {\n Collection<Collection<Edge>> copyOfEdges = new ArrayList<Collection<Edge>>();\n //values = myGraph.values(); OLD\n //create a copy of all the edges in the map to restrict any reference\n //to interals of this class\n copyOfEdges.addAll(myGraph.values());\n Collection<Edge> allValues = new ArrayList<Edge>();\n Iterator<Collection<Edge>> eachColl = copyOfEdges.iterator();\n while(eachColl.hasNext()){\n allValues.addAll(eachColl.next());\n }\n\n return allValues;\n }", "public java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge> getEdgeList() {\n return edge_;\n }", "ArrayList<Edge> getAdjacencies();", "public abstract List<? extends GraphEdge<N, E>> getEdges(N n1, N n2);", "public Set<JmiAssocEdge> getInheritedOutgoingAssocEdges(\n JmiClassVertex vertex)\n {\n return getClassAttributes(vertex).inheritedOutgoingAssocEdges;\n }", "public Set<JmiAssocEdge> getInheritedIncomingAssocEdges(\n JmiClassVertex vertex)\n {\n return getClassAttributes(vertex).inheritedIncomingAssocEdges;\n }", "public Set<Edge<V>> edgeSet();", "public int getEdgeCount() {\n return edge_.size();\n }", "public int edgeNum() {\r\n return edges.size();\r\n }", "@Override\n public Collection<edge_data> getE(int node_id) {\n return ((NodeData) this.nodes.get(node_id)).getNeighborEdges().values();\n }", "java.util.List<? extends uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdgeOrBuilder> \n getEdgeOrBuilderList();", "public char[] getOutermostEdges(int num) {\n int width = points[0].length;\n switch (num) {\n case 0:\n return points[0];\n case 1:\n return points[width - 1];\n case 2:\n char[] ret1 = new char[width];\n for (int i = 0; i < width; i++) {\n ret1[i] = points[i][0];\n }\n return ret1;\n case 3:\n char[] ret2 = new char[width];\n for (int i = 0; i < width; i++) {\n ret2[i] = points[i][width - 1];\n }\n return ret2;\n case 4:\n return reverse(getOutermostEdges(0));\n case 5:\n return reverse(getOutermostEdges(1));\n case 6:\n return reverse(getOutermostEdges(2));\n case 7:\n return reverse(getOutermostEdges(3));\n default:\n return null;\n }\n }", "Set<Edge> getDownwardOutgoingNeighborEdges() {\n\t\t\tif(_bumpOnUpwardPass) {\n\t\t\t\tSystem.err.println(\"calling downward pass neighbor method on upward pass!\");\n\t\t\t}\n//\t\t\tif(_outgoingEdges.size() == 0) { // only compute if we have to\n\t\t\t\tSet<Edge> outgoingEdges = new HashSet<Edge>();\n\t\t\t\tIterator<Edge> it = _neighborEdges.keySet().iterator();\n\t\t\t\twhile(it.hasNext()) {\n\t\t\t\t\tEdge e = it.next();\n\t\t\t\t\tVertex v = e.getOtherVertex(this);\n\t\t\t\t\tif(this._orderID == UNMARKED) {\n\t\t\t\t\t\tSystem.err.println(\"whoops i am unmarked\");\n\t\t\t\t\t}\n\t\t\t\t\tif(v._orderID == UNMARKED) {\n\t\t\t\t\t\tSystem.err.println(\"whoops neighbor unmarked\");\n\t\t\t\t\t}\n\t\t\t\t\tif(this._orderID < v._orderID) {\n\t\t\t\t\t\toutgoingEdges.add(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_outgoingEdges = outgoingEdges;\n//\t\t\t}\n//\t\t\treturn _outgoingEdges;\n\t\t\t\tSystem.out.println(this.toString()+\"'s outgoing edges:\\n\"+ outgoingEdges);\n\t\t\t\treturn outgoingEdges;\n\t\t}", "public abstract List<? extends DiGraphEdge<N, E>> getInEdges(N nodeValue);", "public List<Edge> segments() {\n return segments;\n }", "int[] getOutEdges(int... nodes);", "int[] getEdgesIncidentTo(int... nodes);", "public Set<CyNode> getActivatedNodes () {\n return activatedNodes;\n }", "public LinkedList<Edgeq> getAllEdges(String node) {\n return this.graph.get(node);\n }", "public int edgeCount() {\n\treturn edgeList.size();\n }", "public static int[][] getEdgeMatrix() {\n\t\treturn edge;\n\t}", "@Override\n\tpublic Collection<IEdge<S>> getEdges()\n\t{\n\t\tfinal List<IEdge<S>> set = new ArrayList<>(map.size());\n\t\tfor (final Entry<S, Integer> entry : map.entrySet())\n\t\t{\n\t\t\tset.add(createEdge(entry.getKey(), entry.getValue()));\n\t\t}\n\n\t\treturn Collections.unmodifiableCollection(set);\n\t}" ]
[ "0.7063005", "0.68159914", "0.67714804", "0.6770543", "0.6768478", "0.6710676", "0.67091066", "0.66916287", "0.6663851", "0.6651214", "0.66370666", "0.6627179", "0.65847737", "0.65630406", "0.6542312", "0.6542113", "0.6521397", "0.651303", "0.64777803", "0.6476124", "0.6466967", "0.6443683", "0.6436538", "0.6420116", "0.63984364", "0.6382818", "0.6363605", "0.6326944", "0.6307281", "0.6302321", "0.6296499", "0.62557137", "0.62373114", "0.623593", "0.62331814", "0.6223607", "0.620454", "0.61878973", "0.618456", "0.6182154", "0.6168481", "0.616844", "0.61538696", "0.61501426", "0.61464226", "0.6141655", "0.6140865", "0.6122485", "0.6118349", "0.61140794", "0.61136425", "0.6085683", "0.6068127", "0.6067181", "0.60606694", "0.604754", "0.6004657", "0.60023457", "0.5968643", "0.5950863", "0.59427327", "0.59411544", "0.58729327", "0.58697695", "0.5868874", "0.5849107", "0.5849038", "0.58408564", "0.582976", "0.58118594", "0.580972", "0.58077383", "0.57995695", "0.5786758", "0.5786691", "0.57776564", "0.57664734", "0.5742705", "0.5735497", "0.5717316", "0.5710485", "0.5707402", "0.5699065", "0.56854016", "0.56737435", "0.5671028", "0.56267816", "0.562312", "0.5617934", "0.5604818", "0.55933505", "0.55838835", "0.55722326", "0.5563229", "0.55606407", "0.5541852", "0.55292964", "0.551487", "0.5499104", "0.5495018" ]
0.67134637
5
Returns the network referenced by this group. All groups will point to a network, although the network might not have any nodes or edges. This is the internal network representation of the group, not the networks that the group is a member of.
CyNetwork getGroupNetwork();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Network network() {\n return network;\n }", "public Network getNetwork() {\r\n \t\treturn network;\r\n \t}", "public Node getNetworkNode() {\r\n return network;\r\n }", "public String getNetworkReference() {\n return networkReference;\n }", "public final void rule__AstNetwork__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4388:1: ( ( 'network' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4389:1: ( 'network' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4389:1: ( 'network' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4390:1: 'network'\n {\n before(grammarAccess.getAstNetworkAccess().getNetworkKeyword_1()); \n match(input,57,FOLLOW_57_in_rule__AstNetwork__Group__1__Impl9380); \n after(grammarAccess.getAstNetworkAccess().getNetworkKeyword_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public NetworkManager getNetwork()\n {\n return network;\n }", "public CyNetwork getNetwork () {\n return network;\n }", "@Link Network network();", "public String networkName() {\n return this.innerProperties() == null ? null : this.innerProperties().networkName();\n }", "@Required\n public NetworkResource getNetwork() {\n return network;\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.NetworkInfo getNetwork() {\n if (networkBuilder_ == null) {\n if (stepInfoCase_ == 17) {\n return (com.google.cloud.networkmanagement.v1beta1.NetworkInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.NetworkInfo.getDefaultInstance();\n } else {\n if (stepInfoCase_ == 17) {\n return networkBuilder_.getMessage();\n }\n return com.google.cloud.networkmanagement.v1beta1.NetworkInfo.getDefaultInstance();\n }\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.NetworkInfoOrBuilder getNetworkOrBuilder() {\n if ((stepInfoCase_ == 17) && (networkBuilder_ != null)) {\n return networkBuilder_.getMessageOrBuilder();\n } else {\n if (stepInfoCase_ == 17) {\n return (com.google.cloud.networkmanagement.v1beta1.NetworkInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.NetworkInfo.getDefaultInstance();\n }\n }", "public String getNetworkId() {\n return this.networkId;\n }", "public PeerGroup getPeerGroup () {\n return this.manager.getNetPeerGroup();\n }", "public Long getNetworkId() {\n return networkId;\n }", "public BigInteger getNetworkId() {\n return networkId;\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.NetworkInfo getNetwork() {\n if (stepInfoCase_ == 17) {\n return (com.google.cloud.networkmanagement.v1beta1.NetworkInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.NetworkInfo.getDefaultInstance();\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.NetworkInfoOrBuilder getNetworkOrBuilder() {\n if (stepInfoCase_ == 17) {\n return (com.google.cloud.networkmanagement.v1beta1.NetworkInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.NetworkInfo.getDefaultInstance();\n }", "@Nullable\r\n List<Network> getNetwork();", "public String targetNetworkId() {\n return this.targetNetworkId;\n }", "public com.google.cloud.networkmanagement.v1beta1.NetworkInfo.Builder getNetworkBuilder() {\n return getNetworkFieldBuilder().getBuilder();\n }", "public DefaultGraphCell getGroupObject() {\n return groupObject;\n }", "public String getNetwork() {\n String[] ipOctets = ipAddress.split(\"\\\\.\");\n String[] subnetOctets = subnetMask.split(\"\\\\.\");\n String[] result = ipOctets;\n\n for (int i = 0; i < 4; i++) {\n if (!\"255\".equals(subnetOctets[i])) {\n int sub = Integer.parseInt(subnetOctets[i]);\n int ip = Integer.parseInt(ipOctets[i]);\n result[i] = String.format(\"%s\", (ip & sub));\n }\n }\n\n return String.join(\".\", result);\n }", "public final String getNetId( )\r\n {\r\n return netId;\r\n }", "public java.util.List<Network> getNetworksList() {\n return networks_;\n }", "Net findNet(){\n\t\tIterator iterator = gc.getIterator();\r\n\t\twhile(iterator.hasNext()){\r\n\t\t\tGameObject g = iterator.getNext();\r\n\t\t\tif (g instanceof Net)return (Net)g;\r\n\t\t}\r\n\treturn nullNet;\r\n\t}", "public PeeringGroupNodes peeringGroupNodes() {\n return this.peeringGroupNodes;\n }", "public RelatedGroup getRelatedGroup()\r\n\t{\r\n\t\treturn relatedGroup;\r\n\t}", "public Group getGroup() {\n return this.inGroup;\n }", "public com.google.cloud.datafusion.v1beta1.NetworkConfig getNetworkConfig() {\n if (networkConfigBuilder_ == null) {\n return networkConfig_ == null\n ? com.google.cloud.datafusion.v1beta1.NetworkConfig.getDefaultInstance()\n : networkConfig_;\n } else {\n return networkConfigBuilder_.getMessage();\n }\n }", "public java.util.List<? extends NetworkOrBuilder> getNetworksOrBuilderList() {\n return networks_;\n }", "public java.util.List<Network> getNetworksList() {\n if (networksBuilder_ == null) {\n return java.util.Collections.unmodifiableList(networks_);\n } else {\n return networksBuilder_.getMessageList();\n }\n }", "Node getNode() {\n return new Group(body.getPolygon(), head.getPolygon());\n }", "NetNode representative() {\n\t\t\tfor (NetNode n : members) {\n\t\t\t\tif (!n.varAddress && !n.varMask)\n\t\t\t\t\treturn n;\n\t\t\t}\n\t\t\treturn members.iterator().next();\n\t\t}", "public String getNetworkname() {\n return networkname;\n }", "public PetriNet getOwnerNet() {\r\n\t\treturn ownerNet;\r\n\t}", "public String getGroupUrl() {\n GitLabGroupInfo groupInfo = getGroupInfo();\n return (groupInfo != null) ? GitLab.getUrlForGroup(groupInfo) : \"<could not fetch group information>\";\n }", "public String getNetwork() {\n initNetwork();\n NetworkInfo networkInfo =\n connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);\n if (networkInfo != null &&\n networkInfo.getState() == NetworkInfo.State.CONNECTED) {\n Logger.d(\"Current Network: WIFI\");\n return NETWORK_WIFI;\n } else {\n return getTelephonyNetworkType();\n }\n }", "TriangleNet3D getNet() {\n\t\treturn comp.getNet();\n\t}", "public java.util.List<? extends NetworkOrBuilder> getNetworksOrBuilderList() {\n if (networksBuilder_ != null) {\n return networksBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(networks_);\n }\n }", "public Group getGroup() {\n return _group;\n }", "public Group getGroup() {\n return group;\n }", "public String getNetworkType() {\n return this.mNetInfo.getTypeName();\n }", "@java.lang.Override\n public com.google.cloud.datafusion.v1beta1.NetworkConfig getNetworkConfig() {\n return networkConfig_ == null\n ? com.google.cloud.datafusion.v1beta1.NetworkConfig.getDefaultInstance()\n : networkConfig_;\n }", "public String getTargetGroup() {\n return targetGroup;\n }", "public NetworkEditor getNetworkEditor() {\n return panel.getNetworkEditor();\n }", "public ArrayList<Network> getMyNetworks() {\n\t\treturn myNetworks;\n\t}", "public com.google.cloud.datafusion.v1beta1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() {\n if (networkConfigBuilder_ != null) {\n return networkConfigBuilder_.getMessageOrBuilder();\n } else {\n return networkConfig_ == null\n ? com.google.cloud.datafusion.v1beta1.NetworkConfig.getDefaultInstance()\n : networkConfig_;\n }\n }", "public Group getParent() {\n com.guidebee.game.engine.scene.Group group = internalGroup.getParent();\n if (group != null) {\n return (Group) group.getUserObject();\n }\n return null;\n }", "public Inet4Address getNetMask() {\n\t\t//TODO hardcoding it with assumption that it's 255.255.255.0\n\t\tbyte[] netmask = new byte[]{(byte) 255,(byte) 255,(byte) 255,0};\n\t\ttry {\n\t\t\treturn (Inet4Address) Inet4Address.getByAddress(netmask);\n\t\t} catch (UnknownHostException e) {\n\t\t\t//Weird shouldn't happen\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public String getGroup ()\n {\n return group;\n }", "public String getGroup ()\n {\n return group;\n }", "public String getNetworkName () {\n return network.getRow(network).get(CyNetwork.NAME, String.class);\n }", "public String getGroup() {\n\t\treturn group;\n\t}", "public int getMulticastGroupAddress() {\n return concatenateBytes(binary[MULTICAST_GROUP_ADDRESS_OFFSET],\n binary[MULTICAST_GROUP_ADDRESS_OFFSET+1],\n binary[MULTICAST_GROUP_ADDRESS_OFFSET+2],\n binary[MULTICAST_GROUP_ADDRESS_OFFSET+3]);\n }", "public NetworkConfiguration getNetworkConfiguration() {\n return this.networkConfiguration;\n }", "public NetworkConfiguration getNetworkConfiguration() {\n return this.networkConfiguration;\n }", "CyRootNetwork getRootNetwork();", "public String getGroup() {\n return group;\n }", "public String getGroup() {\n return group;\n }", "public final void ruleAstNetwork() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:325:2: ( ( ( rule__AstNetwork__Group__0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:326:1: ( ( rule__AstNetwork__Group__0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:326:1: ( ( rule__AstNetwork__Group__0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:327:1: ( rule__AstNetwork__Group__0 )\n {\n before(grammarAccess.getAstNetworkAccess().getGroup()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:328:1: ( rule__AstNetwork__Group__0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:328:2: rule__AstNetwork__Group__0\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group__0_in_ruleAstNetwork634);\n rule__AstNetwork__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstNetworkAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstNetwork__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4407:1: ( rule__AstNetwork__Group__2__Impl rule__AstNetwork__Group__3 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4408:2: rule__AstNetwork__Group__2__Impl rule__AstNetwork__Group__3\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group__2__Impl_in_rule__AstNetwork__Group__29411);\n rule__AstNetwork__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group__3_in_rule__AstNetwork__Group__29414);\n rule__AstNetwork__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public String getGroup() {\n return this.group;\n }", "@java.lang.Override\n public com.google.cloud.datafusion.v1beta1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() {\n return networkConfig_ == null\n ? com.google.cloud.datafusion.v1beta1.NetworkConfig.getDefaultInstance()\n : networkConfig_;\n }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }" ]
[ "0.69339013", "0.6757265", "0.6718342", "0.6580486", "0.6497956", "0.6415484", "0.6271939", "0.6253987", "0.6245616", "0.62384915", "0.6199419", "0.6158864", "0.61406577", "0.6115571", "0.61035484", "0.6061473", "0.60292333", "0.6024845", "0.5972104", "0.5958262", "0.5946631", "0.5910445", "0.58717114", "0.58649355", "0.5849513", "0.58475363", "0.5840289", "0.58181405", "0.5776327", "0.5759534", "0.57447827", "0.5743824", "0.5721133", "0.57177365", "0.5711709", "0.56912166", "0.5690542", "0.56895095", "0.5685683", "0.5684083", "0.5656502", "0.5654902", "0.56517637", "0.5580359", "0.5577351", "0.5568982", "0.5545183", "0.55443794", "0.55226976", "0.55221593", "0.5520958", "0.5520958", "0.551524", "0.5506247", "0.54808205", "0.5472421", "0.5472421", "0.54639953", "0.54621965", "0.54621965", "0.5444947", "0.5444913", "0.5435639", "0.5432808", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183", "0.54265183" ]
0.71509814
0
Add a list of nodes and their edges
void addNodes(List<CyNode> nodes);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addEdges(Collection<ExpLineageEdge> edges);", "public void addEdge(int start, int end);", "public void addEdge(Node from, Node to);", "public void addEdge(int start, int end, double weight);", "private void addLinkesToGraph()\n\t{\n\t\tString from,to;\n\t\tshort sourcePort,destPort;\n\t\tMap<Long, Set<Link>> mapswitch= linkDiscover.getSwitchLinks();\n\n\t\tfor(Long switchId:mapswitch.keySet())\n\t\t{\n\t\t\tfor(Link l: mapswitch.get(switchId))\n\t\t\t{\n\t\t\t\tfrom = Long.toString(l.getSrc());\n\t\t\t\tto = Long.toString(l.getDst());\n\t\t\t\tsourcePort = l.getSrcPort();\n\t\t\t\tdestPort = l.getDstPort();\n\t\t\t\tm_graph.addEdge(from, to, Capacity ,sourcePort,destPort);\n\t\t\t} \n\t\t}\n\t\tSystem.out.println(m_graph);\n\t}", "void addAll(Graph graph);", "void addEdge(int source, int destination, int weight);", "@DisplayName(\"Add edges\")\n @Test\n public void testAddEdges() {\n boolean directed1 = true;\n graph = new Graph(new Edge[0], directed1, 0, 5, GraphType.RANDOM);\n graph.addEdges(edges);\n List<Integer> l0 = new ArrayList<>();\n List<Integer> l1 = new ArrayList<>();\n List<Integer> l2 = new ArrayList<>();\n List<Integer> l4 = new ArrayList<>();\n l0.add(1);\n l1.add(2);\n l2.add(3);\n l4.add(0);\n\n Assertions.assertEquals(l0.get(0), graph.getNeighbours(0).get(0));\n Assertions.assertEquals(l1.get(0), graph.getNeighbours(1).get(0));\n Assertions.assertEquals(l2.get(0), graph.getNeighbours(2).get(0));\n Assertions.assertEquals(l4.get(0), graph.getNeighbours(4).get(0));\n }", "public void addEdge(List<List<Integer>> graph, int from, int to) {\r\n graph.get(from).add(to);\r\n graph.get(to).add(from);\r\n }", "int addEdge(int tail, int head);", "public void addEdge(){\n Node[] newAdjacent = new Node[adjacent.length + 1];\n for (int i = 0; i < adjacent.length; i++) {\n newAdjacent[i] = adjacent[i];\n }\n adjacent = newAdjacent;\n }", "private Graph<Node, DefaultEdge> addNodes(Graph<Node, DefaultEdge> g) {\n List<Node> nodes = nodeRepository.findAll();\n nodes.forEach(g::addVertex);\n return g;\n }", "public static void addEdge(List<List<Integer>> graph, int from, int to) {\n\t graph.get(from).add(to);\n\t graph.get(to).add(from);\n\t }", "void addEdge(int from, int to) {\n\t\tadjList.get(from).add(to);\n\t}", "void addEdge(int vertex1, int vertex2){\n adjList[vertex1].add(vertex2);\n adjList[vertex2].add(vertex1);\n }", "public abstract boolean addEdge(Node node1, Node node2, int weight);", "private void connectAll()\n {\n\t\tint i = 0;\n\t\tint j = 1;\n\t\twhile (i < getNodes().size()) {\n\t\t\twhile (j < getNodes().size()) {\n\t\t\t\tLineEdge l = new LineEdge(false);\n\t\t\t\tl.setStart(getNodes().get(i));\n\t\t\t\tl.setEnd(getNodes().get(j));\n\t\t\t\taddEdge(l);\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ti++; j = i+1;\n\t\t}\n\n }", "void addEdge(int x, int y);", "public static void addEdge(List<List<Integer>> graph, int from, int to) {\n graph.get(from).add(to);\n }", "private Graph<Node, DefaultEdge> addEdges(Graph<Node, DefaultEdge> g) {\n List<Edge> edges = edgeRepository.findAll();\n edges.forEach(e -> g.addEdge(new Node(e.getA()), new Node(e.getB())));\n return g;\n }", "public void connectNodes(){\n for(int i = 0; i < inputSize; i++){\n network.get(0).add(new InputNode());\n }\n \n for(int i = 1; i < layers; i++){\n \n for(int j = 0; j < layerSize; j++){\n \n network.get(i).add(new Node(network.get(i-1)));\n }\n \n }\n \n }", "public void addEdge(E e){\n\t\tedges.add(e);\n\t}", "public void addVertex (){\t\t \n\t\tthis.graph.insert( new MyList<Integer>() );\n\t}", "void add(Edge edge);", "Graph(List<Edge> edges) {\n\n //one pass to find all vertices\n // this step avoid add isolated coordinates to the graph\n for (Edge e : edges) {\n if (!graph.containsKey(e.startNode)) {\n graph.put(e.startNode, new Node(e.startNode));\n }\n if (!graph.containsKey(e.endNode)) {\n graph.put(e.endNode, new Node(e.endNode));\n }\n }\n\n //another pass to set neighbouring vertices\n for (Edge e : edges) {\n graph.get(e.startNode).neighbours.put(graph.get(e.endNode), e.weight);\n //graph.get(e.v2).neighbours.put(graph.get(e.v1), e.dist); // also do this for an undirected graph\n }\n }", "T addGraphs(Graph... graphs);", "public void addEdge(Edge e){\n edgeList.add(e);\n }", "private static void addAllEdgeInstances (Graph graph, boolean isDirected){\n Collection<Node> noteSet = graph.getNodeSet();\n\n for (Iterator<Node> iterator = noteSet.iterator(); iterator.hasNext();) {\n Node startNode = (Node) iterator.next();\n\n for (Iterator<Node> iterator2 = noteSet.iterator(); iterator2.hasNext();) {\n Node endNode = (Node) iterator2.next();\n\n if (!(startNode == endNode)){\n graph.addEdge(startNode.toString().concat(endNode.toString()), startNode, endNode, isDirected);\n }\n\n }\n }\n }", "private void initializeEdges() {\n for (NasmInst inst : nasm.listeInst) {\n if (inst.source == null || inst.destination == null)\n return;\n Node from = inst2Node.get(label2Inst.get(inst.source.toString()));\n Node to = inst2Node.get(label2Inst.get(inst.destination.toString()));\n if (from == null || to == null)\n return;\n graph.addEdge(from, to);\n }\n }", "public void addEdges(Edge value)\r\n\t{\r\n\t\tedges.add(value);\r\n\t}", "public boolean addEdge(T begin, T end, int weight);", "public void addNode(Node node){subNodes.add(node);}", "public void addAll(Fragment frag) {\n for( DefaultGraphCell node : frag.getNodes() ) {\n add(node);\n }\n \n for( DefaultEdge edge : frag.getEdges() ) {\n add(edge);\n }\n }", "public void addEdge(Edge e){\n\t\tadjacentEdges.add(e);\n\t}", "public E addEdge(V tail, V head);", "public void addAllEdges(ArrayList<Node> nList, ArrayList<Obstacle> oList) {\n\t\tfor (int i = 0; i < nList.size(); i++) {\n\t\t\tNode node = nList.get(i);\n\t\t\tdouble w = node.vertex.distanceTo(this.vertex);\n\t\t\tEdge e = new Edge(w, node);\n\t\t\tif (!e.intersectObstacleHuh(oList, this) && !(w == 0.0)){\n\t\t\t\t//if this edge does not intersect any obstacles in give map, add\n\t\t\t\t//as a visible edge to node\n\t\t\t\tthis.addEdge(e);\n\t\t\t}\n\t\t}\n\t}", "public void addEdge(N startNode, N endNode, E label)\r\n/* 43: */ {\r\n/* 44: 89 */ assert (checkRep());\r\n/* 45: 90 */ if (!contains(startNode)) {\r\n/* 46: 90 */ addNode(startNode);\r\n/* 47: */ }\r\n/* 48: 91 */ if (!contains(endNode)) {\r\n/* 49: 91 */ addNode(endNode);\r\n/* 50: */ }\r\n/* 51: 92 */ ((Map)this.map.get(startNode)).put(endNode, label);\r\n/* 52: 93 */ ((Map)this.map.get(endNode)).put(startNode, label);\r\n/* 53: */ }", "private void addEdge(AtomVertex v, AtomEdge... l) {\n for (AtomEdge e : l) {\n adjacencyMatrix.addEdge(v, e.getSinkVertex(), e.getWeight());\n }\n }", "public void addEdge(int i, int j)\n {\n adjList[i].add(j);\n adjList[j].add(i);\n numEdges++;\n }", "private void addEdge(int start, int end) {\n adjMatrix[start][end] = 1;\n // for undirected graph\n adjMatrix[end][start] = 1;\n }", "public void insertEdges(Edge[] E){\n\t\tthis.edges = E;\n\t\tthis.nodesLength = nodesLength(E);\n\t\tthis.nodes = new Node[(int)this.nodesLength];\n\t\tfor (long n = 0; n < this.nodesLength; n++) {\n\t\t\tthis.nodes[(int)n] = new Node(n);\n\t\t}\n\t\tthis.edgesLength = E.length;\n\t\t\n\t\t\n\t\tfor (long edgeToAdd = 0; edgeToAdd < this.edgesLength; edgeToAdd++) {\n\t\t\tthis.nodes[(int)E[(int)edgeToAdd].getFrom()].getEdges().add(E[(int)edgeToAdd]);\n\t\t\tthis.nodes[(int)E[(int)edgeToAdd].getTo()].getEdges().add(E[(int)edgeToAdd]);\n\t\t}\n\t\t\n\t}", "@FXML private void addEdges()\t\t\n\t{ \t\n\t\tif (getSelection().size() >= 2)\t\t\n\t\t{\n\t\t\tList<Edge> edges = getDrawModel().connectSelectedNodes();\n\t\t\tfor (Edge e: edges)\n\t\t\t\tadd(0, e, getActiveLayerName());\n\t\t}\n\t}", "void addVertex(Vertex v, ArrayList<Vertex> neighbors, ArrayList<Double> weights) throws VertexNotInGraphException;", "private void createAdjacencyLists(List<Edges> edges,int numberOfVertices){\n\t\t\n\t\tfor(int i=0;i<numberOfVertices;i++){\n\t\t\tneighbors.add(new ArrayList<Integer>());\n\t\t}\n\t\tfor(Edges edge:edges){\n\t\t\tneighbors.get(edge.u).add(edge.v);\n\t\t}\n\t\t\n\t}", "@Test\n\tpublic void addEdgeTest() {\n\t\tList<Vertex> vertices = new ArrayList<>();\n\t\tvertices.add(C);\n\t\tvertices.add(D);\n\t\tedge_0.addVertices(vertices);\n\t\tassertTrue(graph.addEdge(edge_0));\n\t\tassertFalse(graph.addEdge(edge_0));\n\t}", "protected void addEdges(IWeightedGraph<GraphNode, WeightedEdge> graph) {\r\n\t\tQueue<GraphNode> nodesToWorkOn = new LinkedList<GraphNode>();\r\n\r\n\t\taddDefaultEdges(graph, nodesToWorkOn);\r\n\r\n\t\t// Check each already connected once node against all other nodes to\r\n\t\t// find a possible match between the combined effects of the path + the\r\n\t\t// worldState and the preconditions of the current node.\r\n\t\twhile (!nodesToWorkOn.isEmpty()) {\r\n\t\t\tGraphNode node = nodesToWorkOn.poll();\r\n\r\n\t\t\t// Select only node to which a path can be created (-> targets!)\r\n\t\t\tif (!node.equals(this.startNode) && !this.endNodes.contains(node)) {\r\n\t\t\t\ttryToConnectNode(graph, node, nodesToWorkOn);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Graph(Node... nodes)\r\n\t{\r\n\t\tedges = new ArrayList<>();\r\n\r\n\t\tfor (int i = 0; i < nodes.length - 1; i += 2)\r\n\t\t{\r\n\t\t\tedges.add(new Node[]\r\n\t\t\t{\r\n\t\t\t\tnodes[i], nodes[i + 1]\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (nodes.length % 2 == 1)\r\n\t\t{\r\n\t\t\tedges.add(new Node[]\r\n\t\t\t{\r\n\t\t\t\tnodes[nodes.length - 1]\r\n\t\t\t});\r\n\t\t}\r\n\t}", "private void createEdges() throws IOException {\r\n\t\tString line;\r\n\t\tString fromVertex=null;\r\n\t\tString toVertex=null;\r\n\t\twhile((line=next(1))!=null) {\r\n\t\t\tif(line.startsWith(\"[\"))\r\n\t\t\t\t{\r\n\t\t\t\tthis.buffer=line;\r\n\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tint colon=line.indexOf(':');\r\n\t\t\tif(colon==-1) continue;\r\n\t\t\tif(line.startsWith(\"id:\"))\r\n\t\t\t\t{\r\n\t\t\t\ttoVertex= line.substring(colon+1).trim();\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"is_a:\"))\r\n\t\t\t\t{\r\n\t\t\t\tfromVertex = nocomment(line.substring(colon+1));\r\n\t\t\t\t//System.out.println(fromVertex+\" to be connected to: \"+toVertex);\r\n\t\t\t\tTerm fromNode = terms.get(fromVertex);\r\n\t\t\t\tTerm toNode = terms.get(toVertex);\r\n\t\t\t\tif (fromNode.namespace.equals(\"molecular_function\") && toNode.namespace.equals(\"molecular_function\")){\r\n\t\t\t\t\tdagMF.addEdge(fromNode, toNode);\r\n\t\t\t\t}\r\n\t\t\t\telse if (fromNode.namespace.equals(\"biological_process\") && toNode.namespace.equals(\"biological_process\")){\r\n\t\t\t\t\tdagBP.addEdge(fromNode, toNode);\r\n\t\t\t\t} \r\n\t\t\t\telse if (fromNode.namespace.equals(\"cellular_component\") && toNode.namespace.equals(\"cellular_component\")){\r\n\t\t\t\t\tdagCC.addEdge(fromNode, toNode);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"FAILED TO ADD TO DAG, not belonging to the same NAMESPACE\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "public void addEdge(int v1, int v2) {\r\n\t\tadjList[v1].add(v2);\r\n\t}", "public void conecta (Integer a, Integer b){\n listaEdges[a].add(b);\n listaEdges[b].add(a);\n }", "void addEdge(Edge e) {\n edges.add(e);\n addVerticle(e.v1);\n addVerticle(e.v2);\n }", "public void addEdge(Node n1, Node n2, int weight) {\n\t\tthis.edges.add(new Edge(n1, n2, weight));\n\t\tadjacencyList.get(n1.getIdNode()).add(new NodePair(n2.getIdNode(), weight));\n\n\n\t\tnrOfEdges++;\n\t}", "public void addEdge(Graph graph, int source, int destination, double weight){\r\n\r\n Node node = new Node(destination, weight);\r\n LinkedList<Node> list = null;\r\n\r\n //Add an adjacent Node for source\r\n list = adjacencyList.get((double)source);\r\n if (list == null){\r\n list = new LinkedList<Node>();\r\n }\r\n\r\n list.addFirst(node);\r\n adjacencyList.put((double)source, list);\r\n\r\n //Add adjacent node again since graph is undirected\r\n node = new Node(source, weight);\r\n\r\n list = null;\r\n\r\n list = adjacencyList.get((double)destination);\r\n\r\n if (list == null){\r\n list = new LinkedList<Node>();\r\n }\r\n\r\n list.addFirst(node);\r\n adjacencyList.put((double)destination, list);\r\n }", "public Edge<V> addEdge(V source, V target);", "public void addEdge(int v1, int v2, Object edgeInfo) {\n//your code here\n Edge edge = new Edge(v1, v2, edgeInfo);\n if(adjLists[v1].contains(edge)){\n return;\n }\n adjLists[v1].addLast(edge);\n }", "public void addNodes(final Nodes nodes) {\n if (this.nodes == null) {\n this.nodes = new ArrayList<Nodes>();\n }\n this.findUpdateNode(nodes);\n }", "public void addEdge(String node1, String node2) {\n\r\n LinkedHashSet<String> adjacent = map.get(node1);\r\n// checking to see if adjacent node exist or otherwise is null \r\n if (adjacent == null) {\r\n adjacent = new LinkedHashSet<String>();\r\n map.put(node1, adjacent);\r\n }\r\n adjacent.add(node2); // if exist we add the instance node to adjacency list\r\n }", "public void addEdge(Node source, Node destination, int weight) {\n nodes.add(source);\n nodes.add(destination);\n checkEdgeExistance(source, destination, weight);\n\n if (!directed && source != destination) {\n checkEdgeExistance(destination, source, weight);\n }\n }", "void addEdge(int a, int b) {\n Edge e = new Edge(V[a], V[b]);\n V[a].Adj.add(e);\n V[b].Adj.add(e);\n }", "public void addEdge(FlowEdge e){\n int v = e.getFrom();\n int w = e.getTo();\n adj[v].add(e); //add forward edge\n adj[w].add(e); //add backward edge\n }", "public void addEdge(int v1, int v2) {\n\t\tedges[v1][v2] = 1;\n\t\tedges[v2][v1] = 1;\n\t\tsize++;\n\t}", "public AdjacentListGraph(String[] vertexes) {\n this.vertexes = Arrays.copyOf(vertexes, vertexes.length);\n this.heads = new LinkedList[vertexes.length];\n\n // init the heads to save code: if(heads != null)\n for (int i = 0; i < heads.length; i++) {\n this.heads[i] = new LinkedList<>();\n }\n }", "public void addLine(String startNode, String endNode) {\n int startIndex =Integer.parseInt(startNode);\n int endIndex = Integer.parseInt(endNode);\n\n if (startIndex >= 0 && endIndex >= 0) {\n// visited[startIndex]=-1;\n// visited[endIndex]=-1;\n adjacencyMatrix[startIndex][endIndex] = 1;\n }\n }", "public boolean addEdge(T beg, T end);", "@Override\n public void addEdge(V from, V to)\n {\n\n if (from.equals(null) || to.equals(null)){\n throw new IllegalArgumentException();\n }\n\n if (contains(from)){\n\n\t ArrayList <V> edges = getEdges(from);\n\n \t if (!edges.contains(to)){\n \t\t edges.add(to);\n graph.put(from, edges);\n \t }\n\t }\n\n \tif (!contains(from)){\n \t ArrayList <V> newEdge = new ArrayList<>();\n \t newEdge.add(to);\n \t graph.put(from, newEdge);\n \t}\n\n \tif (!contains(to)){\n \t ArrayList<V> e = new ArrayList<>();\n \t graph.put(to, e);\n \t}\n\n\n\n\n\n }", "protected AbstractGraph(List<Edges> edges,List<V> vertices){\n\t\t\n\t\tfor(int i=0;i<vertices.size();i++)\n\t\t\tthis.vertices.add(vertices.get(i));\n\t\t\n\t\tcreateAdjacencyLists(edges,vertices.size());\t\t\n\t}", "private static List<EventNode> addNodesToGraph(ChainsTraceGraph g,\n String[] labels) {\n LinkedList<EventNode> list = new LinkedList<EventNode>();\n for (String label : labels) {\n Event act = new Event(label);\n EventNode e = new EventNode(act);\n g.add(e);\n list.add(e);\n }\n\n g.tagInitial(list.get(0), Event.defTimeRelationStr);\n return list;\n }", "public Collection<V> addVertices(Collection<V> vs);", "public void addEdge(int u, int v) {\n if (u > nodes.size() || v > nodes.size() || u <= 0 || v <= 0) {\n throw new IllegalArgumentException(\"An invalid node was given\");\n }\n // note that we have to subtract 1 from each since node 1 is located in index 0\n nodes.get(u - 1).addEdge(nodes.get(v - 1));\n }", "public Edge addEdge(Id nodeAIn, Id nodeBIn){//adds an edge to the list\n\t\tint i;\n\t\tEdge e = null;\n\t\tfor(i = 0; i < listOfEdges.size(); i++){\n\t\t\te = listOfEdges.get(i);\n\t\t\tif(e==null) continue;\n\t\t\tif((nodeAIn.compare(e.getNodeA()) && nodeBIn.compare(e.getNodeB())) || (nodeBIn.compare(e.getNodeA()) && nodeAIn.compare(e.getNodeB()))) break;\n\t\t}\n\t\tif(i < listOfEdges.size()){ // found duplicate\n\t\t\t//System.out.println(\"found dupe\");\n\t\t\treturn e;\n\t\t}\n\t\tNode A = returnNodeById(nodeAIn);\n\t\tNode B = returnNodeById(nodeBIn);\n\t\tif(A == null || B == null) return null;\n\t\tedge_count++;\n\t\tfor(; edge_arrayfirstopen < edge_arraysize && listOfEdges.get(edge_arrayfirstopen) != null; edge_arrayfirstopen++);\n\t\tif(edge_arrayfirstopen >= edge_arraysize){\t//resize\n\t\t\tedge_arraysize = edge_arrayfirstopen+1;\n\t\t\tlistOfEdges.ensureCapacity(edge_arraysize);\n\t\t\tlistOfEdges.setSize(edge_arraysize);\n\t\t}\n\t\tId eid = new Id(edge_arrayfirstopen, edge_count);\n\t\te = new Edge(nodeAIn, nodeBIn, eid);\n\t\tlistOfEdges.set(edge_arrayfirstopen, e);\n\t\t\n\t\tif(edge_arraylasttaken < edge_arrayfirstopen) edge_arraylasttaken = edge_arrayfirstopen; //todo redo\n\n\t\tA.addEdgeId(eid);\n\t\tB.addEdgeId(eid);\n\t\te.updateLength(this);\n\t\treturn e;\n\t}", "public void setEdges(DEdge[] listOfEdges){\n this.listOfEdges = listOfEdges;\n }", "public void add(Node<T> n){\n\t\tconnect.add(n);\n\t}", "@DisplayName(\"Add directed edge\")\n @Test\n public void testAddEdgeDirected() {\n graph.addEdge(new Edge(3, 4));\n List<Integer> l = new ArrayList<>();\n l.add(2);\n l.add(4);\n Assertions.assertArrayEquals(l.toArray(), graph.getNeighbours(3).toArray());\n }", "void addEdge(String origin, String destination, double weight){\n\t\tadjlist.get(origin).addEdge(adjlist.get(destination), weight);\n\t\tedges++;\n\t}", "public void addEdge(Edge e){\n\t\tedges.put(e.hashCode(), e);\n\t\te.getHead().addConnection(e);\n\t\te.getTail().addConnection(e);\n\t}", "void addEdge(int x,int y) {\n adj[x].add(y);\n }", "public void addUndirectedEdge(int v1, int v2, Object edgeInfo) {\n//your code here\n Edge edge1 = new Edge(v1, v2, edgeInfo);\n Edge edge2 = new Edge(v2, v1, edgeInfo);\n if(!adjLists[v1].contains(edge1)){\n adjLists[v1].addLast(edge1);\n }\n if(!adjLists[v2].contains(edge2)){\n adjLists[v2].addLast(edge2);\n }\n }", "void setAllEdges(List<IEdge> allEdges);", "private void addEdge(int node1, int node2, int cost, int bandwidth) throws IllegalArgumentException {\n // We can't add edges between non-existent nodes\n int nodeCount = mGraph.getNodeCount();\n if (node1 >= nodeCount || node2 >= nodeCount) {\n throw new IllegalArgumentException();\n }\n\n // Add forward edge\n int edgeCount = mGraph.getEdgeCount() / 2;\n\n Edge forward = mGraph.addEdge(String.valueOf(edgeCount + \"f\"), node1, node2, true);\n forward.addAttribute(\"ui.label\", String.valueOf(edgeCount));\n forward.addAttribute(\"edge.cluster\", String.valueOf(edgeCount));\n forward.addAttribute(\"cost\", cost);\n\n // Add backward edge\n Edge backward = mGraph.addEdge(String.valueOf(edgeCount + \"b\"), node2, node1, true);\n backward.addAttribute(\"edge.cluster\", String.valueOf(edgeCount));\n backward.addAttribute(\"cost\", cost);\n\n // Add edge to the SimpleEdge list\n mEdgeList.add(new SimpleEdge(node1, node2, cost, bandwidth));\n }", "void addEdge(Edge e) {\n if (e.getTail().equals(this)) {\n outEdges.put(e.getHead(), e);\n\n return;\n } else if (e.getHead().equals(this)) {\n indegree++;\n inEdges.put(e.getTail(), e);\n\n return;\n }\n\n throw new RuntimeException(\"Cannot add edge that is unrelated to current node.\");\n }", "public void addEdge(int v1, int v2, int weight) {\n\t\tedges[v1][v2] = weight;\n\t\tedges[v2][v1] = weight;\n\t\tsize++;\n\n\t}", "public void updateGraphEdges(ArrayList<Edge> edges) {\n graph.updateEdges(edges);\n }", "void addEdge(Vertex v1, Vertex v2, Double w) throws VertexNotInGraphException;", "private void addNode(NeuralNode node) {\r\n\t\tinnerNodes.add(node);\r\n\t}", "@Test\n\tpublic void edgesTest() {\n\t\tList<Vertex> vertices = new ArrayList<>();\n\t\tvertices.add(C);\n\t\tvertices.add(D);\n\t\tedge_0.addVertices(vertices);\n\t\tList<Vertex> vertices1 = new ArrayList<>();\n\t\tvertices.add(A);\n\t\tvertices.add(B);\n\t\tedge_1.addVertices(vertices1);\n\t\tgraph.addEdge(edge_0);\n\t\tgraph.addEdge(edge_1);\n\t\tassertEquals(2, graph.edges().size());\n\t\tassertTrue(graph.edges().contains(edge_0));\n\t\tassertTrue(graph.edges().contains(edge_1));\n\t}", "public void addEdge(int source, int target, Cost w) {\n\t\tedges[source][target] = w;\n\t}", "public void addEdge(int source, int destination) {\n adjacencyList.get(source).add(destination);\n adjMat[source][destination] = 1;\n //if graph is undirected graph, add u to v's adjacency list\n if (!isDirected) {\n adjacencyList.get(destination).add(source);\n adjMat[destination][source] = 1;\n }\n }", "private void addEdge(int from, int to, Edge e) {\n _edges.get(from).set(to, e);\n _edgeMap.put(e, new int [] {from, to});\n }", "public void connectClusters()\n\t{\n//\t\tfor(int i = 0; i<edges.size();i++)\n//\t\t{\n//\t\t\tEdgeElement edge = edges.get(i);\n//\t\t\tString fromNodeID = edge.fromNodeID;\n//\t\t\tNodeElement fromNode = findSubNode(fromNodeID);\n//\t\t\tString toNodeID = edge.toNodeID;\n//\t\t\tNodeElement toNode = findSubNode(toNodeID); \n//\t\t\t\n//\t\t\tif(fromNode != null && toNode != null)\n//\t\t\t{\n//\t\t\t\tPortInfo oport = new PortInfo(edge, fromNode);\n//\t\t\t\tfromNode.addOutgoingPort(oport);\n//\t\t\t\tedge.addIncomingPort(oport);\n//\t\t\t\tPortInfo iport = new PortInfo(edge, toNode);\n//\t\t\t\ttoNode.addIncomingPort(iport);\n//\t\t\t\tedge.addOutgoingPort(iport);\n//\t\t\t}\n//\t\t}\n\t}", "@Override\n public void addEdge(V source, V destination, double weight)\n {\n super.addEdge(source, destination, weight);\n super.addEdge(destination, source, weight);\n }", "public void setEdges(List<E> edges) {\n\t\tthis.edges = edges;\n\t\tvirtualEdges = new ArrayList<E>();\n\t}", "public void setEdges( List<EdgeType> edges )\n {\n this.edges = edges;\n }", "public void testAddEdge() {\n System.out.println(\"addEdge\");\n\n Graph<Integer, Edge<Integer>> graph = newGraph();\n\n for (int i = 0; i < 25; i++) {\n graph.addVertex(new Integer(i));\n }\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n Assert\n .assertTrue(graph.addEdge(new UnweightedEdge(new Integer(i), new Integer(j))));\n }\n }\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n Assert\n .assertFalse(graph.addEdge(new UnweightedEdge(new Integer(i), new Integer(j))));\n }\n }\n }", "void addEdge(int s1,int c,int s2)\r\n\t{\r\n\t\tg[s1][c][s2]=true;\r\n\t}", "public IEdge addEdge(String from, String to, Double cost);", "public void addVertices(int n);", "@Override\r\n public void addEdge(Vertex v1, Vertex v2) {\r\n adjacencyList.get(v1).add(v2); //put v2 into the LinkedList of key v1.\r\n adjacencyList.get(v2).add(v1); //put v1 into the LinkedList of key v2.\r\n }", "public Boolean addEdge( AnyType vertex_value_A, AnyType vertex_value_B ) throws VertexException {\n \n // ------------------------------------\n // Basic steps:\n // ------------------------------------\n // 1) For Vertex A and B, check to see if the vertex exits in the \n // vertex_adjacency_list. If not, then add new vertex (with given \n // value) to the vertex_adjacency_list.\n // 2) In Vertex class, check if Vertex B is in Vertex A's \n // adjacent_vertex_list and vice versa (i.e. an edge exists). If \n // edge already exists, then return false, otherwise goto step 3.\n // 3) Add Vertex B to Vertex A's adjacent_vertex_list and vice versa.\n // Lastly, return true indicating the edge was successfully added.\n \n // ----------------------------\n // TODO: Add your code here\n // ----------------------------\n boolean a_in_list = false;\n boolean b_in_list = false;\n boolean edge = false;\n int size = vertex_adjacency_list.size();\n int a = -1;\n int b = -1;\n \n //make new vertices with values passed in\n Vertex<AnyType> A = new Vertex<AnyType>(vertex_value_A);\n Vertex<AnyType> B = new Vertex<AnyType>(vertex_value_B);\n //check if they are in the list\n for(int i = 0; i<= size-1; i++){\n if( vertex_adjacency_list.get(i).compareTo( A) == 0){\n a_in_list = true;\n a = i;\n \n }\n if( vertex_adjacency_list.get(i).compareTo(B) == 0){\n b_in_list = true;\n b = i;\n \n }\n }\n //if not in list, add\n if( a_in_list == false){\n vertex_adjacency_list.add(A);\n a_in_list = true;\n a = vertex_adjacency_list.size()-1;\n }\n if( b_in_list == false){\n vertex_adjacency_list.add(B);\n b_in_list =true;\n b = vertex_adjacency_list.size()-1;\n }\n //check if edge\n edge = vertex_adjacency_list.get(a).hasAdjacentVertex(vertex_adjacency_list.get(b));\n //if edge then add to list \n if( a_in_list == true && b_in_list == true){\n if(edge){\n return edge;\n }\n else{\n vertex_adjacency_list.get(a).addAdjacentVertex(vertex_adjacency_list.get(b));\n vertex_adjacency_list.get(b).addAdjacentVertex(vertex_adjacency_list.get(a));\n edge = true;\n }\n }\n return edge;\n \n }", "void addEdge(int one, int two, boolean redundant) {\n\t\tif (redundant == true) {\n\t\t\tadjacencyList[one].add(two);\n\t\t\tadjacencyList[two].add(one);\n\t\t}\n\t\telse if (one < two) {\n\t\t\tadjacencyList[one].add(two);\n\t\t}\n\t\telse {\n\t\t\tadjacencyList[two].add(one);\n\t\t}\n\t}", "public void addNode() {\n if (nodeCount + 1 > xs.length)\n resize();\n nodeCount++;\n }" ]
[ "0.7100181", "0.7028778", "0.6952825", "0.6836554", "0.6829189", "0.68172324", "0.67654175", "0.66789633", "0.66301537", "0.6586796", "0.65809727", "0.64993817", "0.6494163", "0.6486173", "0.648377", "0.6478061", "0.6473242", "0.64505297", "0.6440868", "0.6424919", "0.6300847", "0.6288248", "0.626375", "0.6257885", "0.62313336", "0.6230141", "0.6216371", "0.621209", "0.618797", "0.61738896", "0.61634135", "0.61539453", "0.61490893", "0.6144172", "0.6137296", "0.6136133", "0.6098851", "0.6085748", "0.608105", "0.60646516", "0.60612005", "0.6048953", "0.60445654", "0.6033299", "0.6032418", "0.6028942", "0.60172415", "0.5997288", "0.59953356", "0.5984822", "0.59819967", "0.5973259", "0.59709096", "0.5956752", "0.59167117", "0.5903415", "0.5899137", "0.5889745", "0.58763224", "0.5866902", "0.58618176", "0.584216", "0.5835397", "0.5833302", "0.58233976", "0.5820236", "0.5815713", "0.5806613", "0.5806539", "0.5794795", "0.5786465", "0.57735157", "0.5772034", "0.57688504", "0.5763722", "0.5751656", "0.5745035", "0.5744717", "0.5739216", "0.5729455", "0.5725627", "0.5725007", "0.5724407", "0.5720746", "0.57082134", "0.5705948", "0.56918514", "0.5685168", "0.56838113", "0.56717294", "0.5668624", "0.56572545", "0.56564516", "0.5656166", "0.56524616", "0.5651419", "0.5644967", "0.5642259", "0.56412286", "0.5639851" ]
0.71727353
0
Remove a set of nodes and their edges from a group
void removeNodes(List<CyNode> nodes);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeEdges(List<CyEdge> edges);", "public void removeAllEdges() {\n }", "private void removeEdges()\r\n\t{\r\n\t final String edgeTypeName = edgeType.getName();\r\n\t for (final Edge e : eSet)\r\n\t\te.getSource().removeEdge(edgeTypeName, e.getDest());\r\n\t eSet.clear();\r\n\t}", "public void testRemoveAllEdges() {\n System.out.println(\"removeAllEdges\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n Assert.assertTrue(graph.removeAllEdges());\n Assert.assertEquals(graph.edgesSet().size(), 0);\n }", "private void removeNoMoreExistingOriginalNodes() {\n for (Node mirrorNode : mirrorGraph.nodes()) {\n if (!isPartOfMirrorEdge(mirrorNode) && !originalGraph.has(mirrorNode)) {\n mirrorGraph.remove(mirrorNode);\n }\n }\n }", "public void removeEdge(int start, int end);", "void forceRemoveNodesAndExit(Collection<Node> nodesToRemove) throws Exception;", "void removeIsVertexOf(Subdomain_group oldIsVertexOf);", "void removeEdge(int x, int y);", "void tryRemoveNodes(Collection<Node> nodesToRemove) throws Exception;", "@Test\n public void testRemoveEdges() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeData(env),\n env);\n List<Edge<Long, Long>> edgesToBeRemoved = new ArrayList<>();\n edgesToBeRemoved.add(new Edge<>(5L, 1L, 51L));\n edgesToBeRemoved.add(new Edge<>(2L, 3L, 23L));\n\n // duplicate edge should be preserved in output\n graph = graph.addEdge(new Vertex<>(1L, 1L), new Vertex<>(2L, 2L), 12L);\n\n graph = graph.removeEdges(edgesToBeRemoved);\n\n DataSet<Edge<Long, Long>> data = graph.getEdges();\n List<Edge<Long, Long>> result = data.collect();\n\n expectedResult =\n \"1,2,12\\n\" + \"1,2,12\\n\" + \"1,3,13\\n\" + \"3,4,34\\n\" + \"3,5,35\\n\" + \"4,5,45\\n\";\n\n compareResultAsTuples(result, expectedResult);\n }", "public abstract void removeEdge(int from, int to);", "private void clearEdgeLinks() {\n edges.clear();\n //keep whole tree to maintain its position when it is expanded (within scroll pane bounds)\n Node rootNode = nodes.get(0);\n VBox rootVBox = (VBox) rootNode.getContainerPane().getParent();\n rootVBox.layout();\n Bounds rootNodeChildrenVBoxBounds = rootNode.getChildrenVBox().getBoundsInLocal();\n rootVBox.setLayoutY(Math.abs(rootVBox.getLayoutY() - ((rootNodeChildrenVBoxBounds.getHeight()) - rootNode.getHeight()) / 2 + rootNode.getLayoutY()));\n rootVBox.layout();\n\n for (int i = 0; i < nodes.size(); i++) {\n Pane containerPane = nodes.get(i).getContainerPane();\n //reposition node to the center of its children\n ObservableList<javafx.scene.Node> genericNodes = nodes.get(i).getChildrenVBox().getChildren();\n if (!genericNodes.isEmpty()) {\n nodes.get(i).setLayoutY(((nodes.get(i).getChildrenVBox().getBoundsInLocal().getHeight()) - rootNode.getHeight()) / 2);\n }\n\n for (int j = 0; j < containerPane.getChildren().size(); j++) {\n if (containerPane.getChildren().get(j) instanceof Edge) {\n containerPane.getChildren().remove(j);\n j--;\n }\n }\n }\n redrawEdges(rootNode);\n }", "public boolean resetEdges();", "private static <N, E extends Edge<N>> ImmutableAdjacencyGraph<N, Edge<N>> deleteFromGraph(final Graph<N, E> graph, final Set<N> deleteNodes, final Set<E> deleteEdges)\n\t{\n\t\t// remove the deleteNodes\n\t\tfinal Set<N> cutNodes = graph.getNodes();\n\t\tcutNodes.removeAll(deleteNodes);\n\t\t// remove the deleteEdges\n\t\tfinal Set<Edge<N>> cutEdges = new HashSet<Edge<N>>(deleteEdges);\n\t\tfor (final E edge : deleteEdges)\n\t\t\tcutEdges.remove(edge);\n\t\t// remove any remaining deleteEdges which connect to removed deleteNodes\n\t\t// also replace deleteEdges that have one removed node but still have\n\t\t// 2 or more remaining deleteNodes with a new edge.\n\t\tfinal Set<Edge<N>> removeEdges = new HashSet<Edge<N>>();\n\t\tfinal Set<Edge<N>> addEdges = new HashSet<Edge<N>>();\n\t\tfor(final Edge<N> cutEdge : cutEdges)\n\t\t{\n\t\t\tfinal List<N> cutEdgeNeighbors = cutEdge.getNodes();\n\t\t\tcutEdgeNeighbors.removeAll(cutNodes);\n\t\t\tif( cutEdgeNeighbors.size() != cutEdge.getNodes().size() )\n\t\t\t\tremoveEdges.add(cutEdge);\n\t\t\tif( cutEdgeNeighbors.size() > 1 )\n\t\t\t\t// TODO instead of ImmutableHyperEdge implement clone or something\n\t\t\t\taddEdges.add(new ImmutableHyperEdge<N>(cutEdgeNeighbors));\n\t\t}\n\t\tfor(final Edge<N> removeEdge : removeEdges)\n\t\t\tcutEdges.remove(removeEdge);\n\t\tcutEdges.addAll(addEdges);\n\t\t// check if a graph from the new set of deleteEdges and deleteNodes is\n\t\t// still connected\n\t\treturn new ImmutableAdjacencyGraph<N, Edge<N>>(cutNodes, cutEdges);\n\t}", "public boolean removeEdges(Collection<? extends E> edges);", "private Collection<Node> keepOnlySetElement(Collection<Node> nodes) {\n Set<Node> elements = new HashSet<>();\n for (Node node : nodes) {\n Edge originalEdge = synchronizer().getOriginalEdge(node);\n if ((originalEdge != null && !boundaries.edges.contains(originalEdge))\n || !boundaries.nodes.contains(node)) {\n elements.add(node);\n }\n }\n return elements;\n }", "private void removeNoMoreExistingOriginalEdges() {\n for (MirrorEdge mirrorEdge : directEdgeMap.values()) {\n if (!originalGraph.has(mirrorEdge.original)) {\n for (Edge segment : mirrorEdge.segments) {\n mirrorGraph.forcedRemove(segment);\n reverseEdgeMap.remove(segment);\n }\n for (Node bend : mirrorEdge.bends) {\n mirrorGraph.forcedRemove(bend);\n reverseEdgeMap.remove(bend);\n }\n directEdgeMap.remove(mirrorEdge.original);\n }\n }\n }", "int removeEdges(ExpLineageEdge.FilterOptions options);", "public void removeEdge() {\n Graph GO = new Graph(nbOfVertex + 1);\n Value.clear();\n for (int i = 0; i < x.length; i++) {\n for (int j : x[i].getDomain()) {\n Value.add(j);\n if (MaxMatch[i] == Map.get(j)) {\n GO.addEdge(Map.get(j), i);\n } else {\n GO.addEdge(i, Map.get(j));\n }\n }\n }\n\n for (int i : V2) {\n for (int j : Value) {\n if (!V2.contains(j)) {\n GO.addEdge(i, j);\n }\n }\n }\n //System.out.println(\"GO : \");\n //System.out.println(GO);\n int[] map2Node = GO.findStrongConnectedComponent();\n //GO.printSCC();\n\n ArrayList<Integer>[] toRemove = new ArrayList[n];\n for (int i = 0; i < n; i++) {\n toRemove[i] = new ArrayList<Integer>();\n }\n for (int i = 0; i < n; i++) {\n for (int j : x[i].getDomain()) {\n ////System.out.println(i + \" \" + j);\n if (map2Node[i] != map2Node[Map.get(j)] && MaxMatch[i] != Map.get(j)) {\n toRemove[i].add(j);\n if (debug == 1) System.out.println(\"Remove arc : \" + i + \" => \" + j);\n }\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j : toRemove[i]) {\n x[i].removeValue(j);\n }\n }\n }", "public void removeNeighbours(){\n\t\tgetNeighbours().removeAll(getNeighbours());\n\t}", "public void deleteSelected() {\r\n \t\tObject cells[] = graph.getSelectionCells();\r\n \t\tGraphModel graphmodel = graph.getModel();\r\n \r\n \t\t// If a cell is a blocking region avoid removing its edges and\r\n \t\t// select its element at the end of the removal process\r\n \t\tSet edges = new HashSet();\r\n \t\tSet<Object> select = new HashSet<Object>();\r\n \r\n \t\t// Set with all regions that can be deleted as its child were removed\r\n \t\tSet<Object> regions = new HashSet<Object>();\r\n \t\t// Set with all JmtCells that we are removing\r\n \t\tSet<Object> jmtCells = new HashSet<Object>();\r\n \r\n \t\t// Giuseppe De Cicco & Fabio Granara\r\n \t\t// for(int k=0; k<cells.length; k++){\r\n \t\t// if(cells[k] instanceof JmtEdge){\r\n \t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getSource((JmtEdge)cells[k])))).SubOut();\r\n \t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getTarget((JmtEdge)cells[k])))).SubIn();\r\n \t\t// }\r\n \t\t//\r\n \t\t// }\r\n \t\tfor (int i = 0; i < cells.length; i++) {\r\n \t\t\tif (!(cells[i] instanceof BlockingRegion)) {\r\n \t\t\t\t// Adds edge for removal\r\n \t\t\t\tedges.addAll(DefaultGraphModel.getEdges(graphmodel, new Object[] { cells[i] }));\r\n \t\t\t\t// Giuseppe De Cicco & Fabio Granara\r\n \t\t\t\t// quando vado a eliminare un nodo, a cui collegato un arco,\r\n \t\t\t\t// vado ad incrementare o diminuire il contatore per il\r\n \t\t\t\t// pulsanteAGGIUSTATUTTO\r\n \t\t\t\t// Iterator iter = edges.iterator();\r\n \t\t\t\t// while (iter.hasNext()) {\r\n \t\t\t\t// Object next = iter.next();\r\n \t\t\t\t// if (next instanceof JmtEdge){\r\n \t\t\t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getSource((JmtEdge)next)))).SubOut();\r\n \t\t\t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getTarget((JmtEdge)next)))).SubIn();\r\n \t\t\t\t// }\r\n \t\t\t\t//\r\n \t\t\t\t// }\r\n \t\t\t\t// Stores parents information and cell\r\n \t\t\t\tif (cells[i] instanceof JmtCell) {\r\n \t\t\t\t\tif (((JmtCell) cells[i]).getParent() instanceof BlockingRegion) {\r\n \t\t\t\t\t\tregions.add(((JmtCell) cells[i]).getParent());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tjmtCells.add(cells[i]);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\t// Adds node for selection\r\n \t\t\t\tObject[] nodes = graph.getDescendants(new Object[] { cells[i] });\r\n \t\t\t\tfor (Object node : nodes) {\r\n \t\t\t\t\tif (node instanceof JmtCell || node instanceof JmtEdge) {\r\n \t\t\t\t\t\tselect.add(node);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\t// Removes blocking region from data structure\r\n \t\t\t\tmodel.deleteBlockingRegion(((BlockingRegion) cells[i]).getKey());\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\tif (!edges.isEmpty()) {\r\n \t\t\tgraphmodel.remove(edges.toArray());\r\n \t\t}\r\n \t\t// removes cells from graph\r\n \t\tgraphmodel.remove(cells);\r\n \r\n \t\t// Checks if all children of a blocking region have been removed\r\n \t\tIterator<Object> it = regions.iterator();\r\n \t\twhile (it.hasNext()) {\r\n \t\t\tjmtCells.add(null);\r\n \t\t\tBlockingRegion region = (BlockingRegion) it.next();\r\n \t\t\tList child = region.getChildren();\r\n \t\t\tboolean empty = true;\r\n \t\t\tfor (int i = 0; i < child.size(); i++) {\r\n \t\t\t\tif (child.get(i) instanceof JmtCell && !jmtCells.contains(child.get(i))) {\r\n \t\t\t\t\tempty = false;\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tif (empty) {\r\n \t\t\t\tmodel.deleteBlockingRegion(region.getKey());\r\n \t\t\t\tgraphmodel.remove(new Object[] { region });\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// Removes cells from data structure\r\n \t\tfor (Object cell : cells) {\r\n \t\t\tif (cell instanceof JmtCell) {\r\n \t\t\t\tmodel.deleteStation(((CellComponent) ((JmtCell) cell).getUserObject()).getKey());\r\n \t\t\t} else if (cell instanceof JmtEdge) {\r\n \t\t\t\tJmtEdge link = (JmtEdge) cell;\r\n \t\t\t\tmodel.setConnected(link.getSourceKey(), link.getTargetKey(), false);\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// If no stations remains gray select and link buttons\r\n \t\tif (graph.getModel().getRootCount() == 0) {\r\n \t\t\tcomponentBar.clearButtonGroupSelection(0);\r\n \t\t\tsetConnect.setEnabled(false);\r\n \t\t\tsetSelect.setEnabled(false);\r\n \t\t}\r\n \r\n \t\t// Selects components from removed blocking regions\r\n \t\tif (select.size() > 0) {\r\n \t\t\tgraph.setSelectionCells(select.toArray());\r\n \t\t\t// Resets parent information of cells that changed parent\r\n \t\t\tit = select.iterator();\r\n \t\t\twhile (it.hasNext()) {\r\n \t\t\t\tObject next = it.next();\r\n \t\t\t\tif (next instanceof JmtCell) {\r\n \t\t\t\t\t((JmtCell) next).resetParent();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}", "public void cleanNodeListToEdges(CircosEdgeList edges){\n\t\tArrayList<CircosNode> tempnodes = new ArrayList<CircosNode>();\n\t\tHashMap<String,String> tempcolors = new HashMap<String,String>();\n\t\t\n\t\tfor(int i = 0; i < nodes.size(); i++){\n\t\t\tif(edges.containsNodeAsSourceOrTarget(nodes.get(i).getID())){\n\t\t\t\ttempnodes.add(nodes.get(i));\n\t\t\t\ttempcolors.put(nodes.get(i).getID(), colors.get(nodes.get(i).getID()));\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tnodes = tempnodes;\n\t\tcolors = tempcolors;\n\t}", "private void removeNodeAndChildren(Node node) {\n Pane container = node.getContainerPane();\n\n if (container.getChildren().size() < 2) {\n return;\n }\n\n Iterator<javafx.scene.Node> iterator = container.getChildren().iterator();\n while (iterator.hasNext()) {\n javafx.scene.Node nextNode = iterator.next();\n if (nextNode instanceof Edge) {\n edges.remove(nextNode);\n iterator.remove();\n }\n }\n\n for (javafx.scene.Node genericNode : node.getChildrenVBox().getChildren()) {\n Pane containerPane = (Pane) genericNode;\n Node childNode = (Node) containerPane.getChildren().get(0);\n nodes.remove(childNode);\n removeNodeAndChildren(childNode);\n }\n node.getChildrenVBox().getChildren().clear();\n clearEdgeLinks();\n }", "public void removeEdge(N startNode, N endNode)\r\n/* 80: */ {\r\n/* 81:151 */ assert (checkRep());\r\n/* 82:152 */ if ((contains(startNode)) && (((Map)this.map.get(startNode)).containsKey(endNode)))\r\n/* 83: */ {\r\n/* 84:153 */ ((Map)this.map.get(startNode)).remove(endNode);\r\n/* 85:154 */ ((Map)this.map.get(endNode)).remove(startNode);\r\n/* 86: */ }\r\n/* 87: */ }", "@Test\n public void testGraphElements(){\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n Vertex v4 = new Vertex(4, \"D\");\n Vertex v5 = new Vertex(5, \"E\");\n Vertex v6 = new Vertex(6, \"F\");\n Vertex v7 = new Vertex(7, \"G\");\n Vertex v8 = new Vertex(8, \"H\");\n\n Vertex fakeVertex = new Vertex(100, \"fake vertex\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 1);\n Edge<Vertex> e3 = new Edge<>(v3, v4, 1);\n Edge<Vertex> e4 = new Edge<>(v2, v4, 1);\n Edge<Vertex> e5 = new Edge<>(v2, v6, 1);\n Edge<Vertex> e6 = new Edge<>(v2, v5, 10);\n Edge<Vertex> e7 = new Edge<>(v5, v6, 10);\n Edge<Vertex> e8 = new Edge<>(v4, v6, 10);\n Edge<Vertex> e9 = new Edge<>(v6, v7, 10);\n Edge<Vertex> e10 = new Edge<>(v7, v8, 10);\n\n Edge<Vertex> fakeEdge = new Edge<>(fakeVertex, v1);\n Edge<Vertex> edgeToRemove = new Edge<>(v2, v7, 200);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addVertex(v4);\n g.addVertex(v5);\n g.addVertex(v6);\n g.addVertex(v7);\n g.addVertex(v8);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n g.addEdge(e4);\n g.addEdge(e5);\n g.addEdge(e6);\n g.addEdge(e7);\n g.addEdge(e8);\n g.addEdge(e9);\n g.addEdge(edgeToRemove);\n\n Assert.assertTrue(g.addEdge(e10));\n\n //adding null edge or vertex to graph returns false\n Assert.assertFalse(g.addEdge(null));\n Assert.assertFalse(g.addVertex(null));\n\n //adding edge with a vertex that does not exist in graph g returns false\n Assert.assertFalse(g.addEdge(fakeEdge));\n\n //get an edge that does not exit in graph returns false\n Assert.assertFalse(g.edge(v1, fakeVertex));\n\n //getting length of edge from vertex not in graph g returns false\n Assert.assertEquals(0, g.edgeLength(fakeVertex, v2));\n\n //Remove an edge in graph g returns true\n Assert.assertTrue(g.remove(edgeToRemove));\n\n //Removing edge not in graph g returns false\n Assert.assertFalse(g.remove(fakeEdge));\n\n //Removing vertex not in graph g returns false\n Assert.assertFalse(g.remove(fakeVertex));\n\n //Finding an edge with an endpoint not in graph g returns null\n assertNull(g.getEdge(v1, fakeVertex));\n }", "private List<Graph> possRemove(Graph pag, Map<Edge, Boolean> necEdges) {\n // list of edges that can be removed\n List<Edge> remEdges = new ArrayList<>();\n for (Edge remEdge : necEdges.keySet()) {\n if (!necEdges.get(remEdge))\n remEdges.add(remEdge);\n }\n // powerset of edges that can be removed\n PowerSet<Edge> pset = new PowerSet<>(remEdges);\n List<Graph> possRemove = new ArrayList<>();\n // for each set of edges in the powerset remove edges from graph and add to PossRemove\n for (Set<Edge> set : pset) {\n Graph newPag = new EdgeListGraph(pag);\n for (Edge edge : set) {\n newPag.removeEdge(edge);\n }\n possRemove.add(newPag);\n }\n return possRemove;\n }", "public void testRemoveAllVertices() {\n System.out.println(\"removeAllVertices\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n Assert.assertTrue(graph.removeAllVertices());\n Assert.assertEquals(graph.verticesSet().size(), 0);\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (LinkGroup linkGroup : findAll()) {\n\t\t\tremove(linkGroup);\n\t\t}\n\t}", "void removeNeighbors();", "@Test\r\n void insert_multiple_vertexes_and_edges_remove_vertex() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.addEdge(\"B\", \"D\");\r\n \r\n List<String> adjacent;\r\n vertices = graph.getAllVertices(); \r\n int numberOfEdges = graph.size();\r\n int numberOfVertices = graph.order();\r\n if(numberOfEdges != 4) {\r\n fail();\r\n }\r\n if(numberOfVertices != 4) {\r\n fail();\r\n }\r\n \r\n // Check that graph has all added vertexes\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"B\")|\r\n !vertices.contains(\"C\")|!vertices.contains(\"D\")) {\r\n fail();\r\n }\r\n \r\n // Check that A's outgoing edges are correct\r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (!adjacent.contains(\"B\") || !adjacent.contains(\"C\"))\r\n fail();\r\n // Check that B's outgoing edges are correct\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.contains(\"C\") | !adjacent.contains(\"D\"))\r\n fail(); \r\n // C and D have no out going edges \r\n adjacent = graph.getAdjacentVerticesOf(\"C\");\r\n if (!adjacent.isEmpty())\r\n fail(); \r\n adjacent = graph.getAdjacentVerticesOf(\"D\");\r\n if (!adjacent.isEmpty())\r\n fail(); \r\n // Remove B from the graph \r\n graph.removeVertex(\"B\");\r\n // Check that A's outgoing edges are correct\r\n // An edge to B should no exist any more \r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (adjacent.contains(\"B\") || !adjacent.contains(\"C\"))\r\n fail();\r\n // There should be no elements in the list of successors\r\n // of B since its deleted form the graph\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.isEmpty())\r\n fail(); \r\n // Check that graph has still has all vertexes not removed\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"C\")|\r\n !vertices.contains(\"D\")) {\r\n fail();\r\n }\r\n //Check that vertex B was removed from graph \r\n if(vertices.contains(\"B\")) {\r\n fail();\r\n }\r\n numberOfEdges = graph.size();\r\n numberOfVertices = graph.order();\r\n if(numberOfEdges != 1) {\r\n fail();\r\n }\r\n if(numberOfVertices != 3) {\r\n fail();\r\n }\r\n }", "public void setNodesToUnvisited(){\n for(GraphNode node: graphNode){\n if(node.visited){\n node.visited = false;\n }\n }\n }", "public void testRemoveEdge_betweenVertices() {\n System.out.println(\"removeEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j) % 2 != 0) {\n continue;\n }\n\n Assert.assertNotNull(graph.removeEdge(new Integer(i), new Integer(j)));\n Assert.assertFalse(graph.containsEdge(new Integer(i), new Integer(j)));\n }\n }\n }", "private void Clean(){\n \t NodeIterable nodeit = graphModel.getGraph().getNodes();\n \t\n \t for (Node node : nodeit) {\n\t\t\t\n \t\t \n \t\t \n\t\t}\n \t\n }", "@Override\n public void removeEdge(List<E> plstEdges) {\n for (E e : plstEdges) {\n removeEdge(e);\n }\n }", "@Test\n\tpublic void removeEdgeTest() {\n\t\tList<Vertex> vertices = new ArrayList<>();\n\t\tvertices.add(C);\n\t\tvertices.add(D);\n\t\tedge_0.addVertices(vertices);\n\t\tList<Vertex> vertices1 = new ArrayList<>();\n\t\tvertices.add(A);\n\t\tvertices.add(B);\n\t\tedge_1.addVertices(vertices1);\n\t\tgraph.addEdge(edge_0);\n\t\tgraph.addEdge(edge_1);\n\t\tassertTrue(graph.removeEdge(edge_0));\n\t\tassertFalse(graph.edges().contains(edge_0));\n\t\tassertTrue(graph.edges().size() == 1);\n\t}", "private static void RemoveEdge(Point a, Point b)\n {\n //Here we use a lambda expression/predicate to express that we're looking for a match in list\n //Either if (n.A == a && n.B == b) or if (n.A == b && n.B == a)\n edges.removeIf(n -> n.A == a && n.B == b || n.B == a && n.A == b);\n }", "void removeDirectedEdge(final Node first, final Node second)\n {\n if (first.connectedNodes.contains(second))\n first.connectedNodes.remove(second);\n\n }", "public void clear() {\r\n for (Edge edge : edges)\r\n edge.disconnect();\r\n for (Vertex vertex : vertices)\r\n vertex.disconnect();\r\n edges.clear();\r\n vertices.clear();\r\n getChildren().remove(1, getChildren().size());\r\n }", "private void clean() {\n nodesToRemove.clear();\n edgesToRemove.clear();\n }", "public void removeVertex();", "private void clean() {\n // TODO: Your code here.\n for (Long id : vertices()) {\n if (adj.get(id).size() == 1) {\n adj.remove(id);\n }\n }\n }", "void remove(String group);", "public void removeCutVertices() {\n boolean found;\n LinkedList<Integer> isolated = new LinkedList<>();\n do {\n found = false;\n for (Map.Entry<Integer, Set<Integer>> entry : adjacencyMap.entrySet()) {\n// System.out.println(\"adjacency print key: \" + entry.getKey() + \"value: \" +\n// entry.getValue() + \"set size: \" + entry.getValue().size());\n if (entry.getValue().size() == 1) {\n// System.out.println(\"found cut vertex\");\n found = true; // loop yielded a cut vertex\n // get the only vertex in the set\n for (Integer integer : entry.getValue()) {\n// System.out.println(\"started set iterator\" + integer);\n int removalSet = integer; // take the value of the set element\n // create a temp set\n Set<Integer> tempSet = adjacencyMap.get(removalSet);\n tempSet.remove(entry.getKey()); // remove the cut vertex from this set\n adjacencyMap.replace(removalSet, tempSet); // put the smaller set in place\n }\n isolated.add(entry.getKey());\n\n\n }\n\n }\n // remove isolated vertices\n for (Integer vert : isolated) {\n adjacencyMap.remove(vert);\n }\n isolated.clear();\n } while (found);\n }", "void deleteNodes(ZVNode[] nodes);", "public void testRemoveEdgeEdge( ) {\n init( );\n\n assertEquals( m_g4.edgeSet( ).size( ), 4 );\n m_g4.removeEdge( m_v1, m_v2 );\n assertEquals( m_g4.edgeSet( ).size( ), 3 );\n assertFalse( m_g4.removeEdge( m_eLoop ) );\n assertTrue( m_g4.removeEdge( m_g4.getEdge( m_v2, m_v3 ) ) );\n assertEquals( m_g4.edgeSet( ).size( ), 2 );\n }", "private void removeEdge() {\n boolean go = true;\n int lastNode;\n int proxNode;\n int atualNode;\n if ((parentMatrix[randomChild][0] != 1) &&\n (childMatrix[randomParent][0] != 1)) {\n lastNode =\n parentMatrix[randomChild][parentMatrix[randomChild][0] - 1];\n for (int i = (parentMatrix[randomChild][0] - 1); (i > 0 && go); i--)\n { // remove element from parentMatrix\n atualNode = parentMatrix[randomChild][i];\n if (atualNode != randomParent) {\n proxNode = atualNode;\n parentMatrix[randomChild][i] = lastNode;\n lastNode = proxNode;\n }\n else {\n parentMatrix[randomChild][i] = lastNode;\n go = false;\n }\n }\n if ((childMatrix[randomParent][0] != 1) &&\n (childMatrix[randomParent][0] != 1)) {\n lastNode = childMatrix[randomParent][\n childMatrix[randomParent][0] - 1];\n go = true;\n for (int i = (childMatrix[randomParent][0] - 1); (i > 0 &&\n go); i--) { // remove element from childMatrix\n atualNode = childMatrix[randomParent][i];\n if (atualNode != randomChild) {\n proxNode = atualNode;\n childMatrix[randomParent][i] = lastNode;\n lastNode = proxNode;\n }\n else {\n childMatrix[randomParent][i] = lastNode;\n go = false;\n }\n } // end of for\n }\n childMatrix[randomParent][(childMatrix[randomParent][0] - 1)] = -4;\n childMatrix[randomParent][0]--;\n parentMatrix[randomChild][(parentMatrix[randomChild][0] - 1)] = -4;\n parentMatrix[randomChild][0]--;\n }\n }", "public void testRemoveEdge_edge() {\n System.out.println(\"removeEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j) % 2 != 0) {\n continue;\n }\n\n Assert.assertNotNull(\n graph.removeEdge(new UnweightedEdge(new Integer(i), new Integer(j))));\n Assert.assertFalse(graph.containsEdge(new Integer(i), new Integer(j)));\n }\n }\n }", "void remove(Edge edge);", "private GraphRemovalUndo removeAxiomEdgesOf(Graph<String, DefaultEdge> g,\n\t\t\tMap<DefaultEdge, Set<OWLAxiom>> createdByAxioms, Map<DefaultEdge, Set<OWLAxiom>> labels, DefaultEdge edge) {\n\n\t\tMap<OWLAxiom, Set<DefaultEdge>> axiomToEdges = getAxiomToEdges(createdByAxioms);\n\n\t\t// Instantiate a graphremoval class (which allows to undo the removal9\n\t\tGraphRemovalUndo remover = new GraphRemovalUndo(g);\n\n\t\t// For each axiom of the edge\n\t\tfor (OWLAxiom ax : createdByAxioms.get(edge)) {\n\t\t\t// For each edge that was created by this axiom\n\t\t\tfor (DefaultEdge e : axiomToEdges.get(ax)) {\n\t\t\t\t// remove the axiom from the label\n\t\t\t\tif (labels.containsKey(e)) {\n\t\t\t\t\tlabels.get(e).remove(ax);\n\t\t\t\t}\n\t\t\t\t// If this was the last axiom of the edge, remove it\n\t\t\t\tif (createdByAxioms.get(e).size() < 1) {\n\t\t\t\t\tcreatedByAxioms.remove(e);\n\t\t\t\t\tremover.removeEdge(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Remove all nested class expressions of the axiom\n\t\t\tax.nestedClassExpressions().forEach(nested -> {\n\t\t\t\tremover.removeVertex(OntologyDescriptor.getCleanNameOWLObj(nested));\n\t\t\t});\n\n\t\t\t// Remember which axioms where removed\n\t\t\tremover.saveAxiom(ax);\n\t\t}\n\n\t\treturn remover;\n\n\t}", "protected void removeEdgeAndVertices(TestbedEdge edge) {\n java.util.Collection<Agent> agents = getIncidentVertices(edge);\n removeEdge(edge);\n for (Agent v : agents) {\n if (getIncidentEdges(v).isEmpty()) {\n removeVertex(v);\n }\n }\n }", "private void deleteConnections() {\n for (int i = 0; !this.sourceConnections.isEmpty(); ) {\n LinkElement wire = (LinkElement) this.sourceConnections.get(i);\n wire.detachSource();\n wire.detachTarget();\n this.graphElement.removeEdge(wire.getEdgeId(), wire);\n }\n\n for (int i = 0; !this.targetConnections.isEmpty(); ) {\n LinkElement wire = (LinkElement) this.targetConnections.get(i);\n wire.detachSource();\n wire.detachTarget();\n this.graphElement.removeEdge(wire.getEdgeId(), wire);\n }\n }", "void removeLine(PNode c){\n\t\tLinkSet ls = null;\n\t\tLink l = null;\n\t\tLinkSet ls1 = new LinkSet();\n\t\tfor(int i=0;i<linksets.size();i++){\n\t\t\tfor(int j=0;j<linksets.get(i).getLinks().size();j++){\n\t\t\t\tif(c==linksets.get(i).getLinks().get(j).getNode1()||c==linksets.get(i).getLinks().get(j).getNode2()){\n\t\t\t\t\tls = linksets.get(i);\n\t\t\t\t\tl = ls.getLinks().get(j);\n\t\t\t\t\tls.removeLink(l);\n\t\t\t\t\tif(ls.getLinks().size()==0){\n\t\t\t\t\t\tlinksets.remove(ls);//remove linkset if it is empty\n\t\t\t\t\t\tls = null;\n\t\t\t\t\t\tl = null;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(ls!=null){\n\t\t\tLink tlink = null;\n\t\t\tfor(Link lnk: ls.getLinks()){\n\t\t\t\tif(lnk.getNode1().getOwner()==l.getNode1().getOwner() && lnk.getNode1().getSignal()==l.getNode1().getSignal()\n\t\t\t\t\t\t|| lnk.getNode2().getOwner()==l.getNode1().getOwner() && lnk.getNode2().getSignal()==l.getNode1().getSignal()){\n\t\t\t\t\ttlink = lnk;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\tif(tlink!=null){\n\t\t\t\tls1.addLink(tlink);\n\t\t\t\tls.removeLink(tlink);\n\t\t\t\tcheckForNextLink(ls1, ls, tlink);\n\t\t\t}\n\t\t\tif(ls.getLinks().size()==0){\n\t\t\t\tlinksets.remove(ls);\n\t\t\t}\n\t\t\tlinksets.add(ls1);\n\t\t}\n\t\tfor(int i=0; i<links.size();i++){\n\t\t\tLink lnk = links.get(i);\n\t\t\tif (c == lnk.getNode1() || c == lnk.getNode2()){\n\t\t\t\tlayer.removeChild(links.get(i).getPPath());\n\t\t\t\tlinks.remove(i);\n\t\t\t\tremoveLine(c);\n\t\t\t}\n\t\t}\n\t}", "@DisplayName(\"Delete undirected edges\")\n @Test\n public void testDeleteEdgeUndirected() {\n graph.deleteEdge(new Edge(0, 1));\n Assertions.assertEquals(1, graph.getNeighbours(0).size());\n Assertions.assertEquals(1, graph.getNeighbours(1).size());\n }", "void removeEdge(Vertex v1, Vertex v2) throws GraphException;", "public void removeEdge(int node1, int node2)\n{\n\tif(getNodes().containsKey(node1) && getNodes().containsKey(node2))\n\t{\n\t\tNode n1 = (Node) getNodes().get(node1);\n\t\tNode n2 = (Node) getNodes().get(node2);\n\n\t\tif(n1.getEdgesOf().containsKey(node2))\n\t\t{\n\t\t\tedge_size--;\n\t\t\tmc++;\n\t\t\tn1.getEdgesOf().remove(node2);\n\n\t\t}\n\t\tif(n2.getEdgesOf().containsKey(node1))\n\t\t{\n\t\t\tedge_size--;\n\t\t\tmc++;\n\t\t\tn2.getEdgesOf().remove(node1);\n\n\t\t}\n\t\t\n\t\telse {\n\t\t\t\n\t\t\t//System.out.println(\"Edge doesnt exist\");\n\t\t}\n\t}\n\telse {\n\t\treturn;\n\t\t//System.out.println(\"src or dest doesnt exist\");\n\t}\n}", "public Collection<V> removeVertices(Collection<V> vs);", "@Test\n void test02_removeVertex() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\"); // adds two\n graph.removeVertex(\"a\"); // remove\n\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\");\n vertices.remove(\"a\"); // creates a mock up vertex list\n\n if (!graph.getAllVertices().equals(vertices)) {\n fail(\"Graph didn't remove the vertices correctly\");\n }\n }", "@DisplayName(\"Delete directed edges\")\n @Test\n public void testDeleteEdgeDirected() {\n boolean directed1 = true;\n graph = new Graph(edges, directed1, 0, 5, GraphType.RANDOM);\n graph.deleteEdge(new Edge(0, 1));\n Assertions.assertTrue(graph.getNeighbours(0).isEmpty());\n }", "public void testRemoveVertex() {\n System.out.println(\"removeVertex\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n for (int i = 24; i >= 0; i--) {\n Assert.assertTrue(graph.removeVertex(new Integer(i)));\n Assert.assertFalse(graph.containsVertex(new Integer(i)));\n Assert.assertEquals(graph.verticesSet().size(), i);\n }\n }", "@Test\n public void testRemoveEdge() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeData(env),\n env);\n\n // duplicate edge should be preserved in output\n graph = graph.addEdge(new Vertex<>(1L, 1L), new Vertex<>(2L, 2L), 12L);\n\n graph = graph.removeEdge(new Edge<>(5L, 1L, 51L));\n\n DataSet<Edge<Long, Long>> data = graph.getEdges();\n List<Edge<Long, Long>> result = data.collect();\n\n expectedResult =\n \"1,2,12\\n\"\n + \"1,2,12\\n\"\n + \"1,3,13\\n\"\n + \"2,3,23\\n\"\n + \"3,4,34\\n\"\n + \"3,5,35\\n\"\n + \"4,5,45\\n\";\n\n compareResultAsTuples(result, expectedResult);\n }", "public void delIncomingRelations();", "public void deleteNode(GraphNode node){\n // 1. remove node from list\n graphNodes.remove(node);\n // 2. remove node from all adjacent nodes\n for(GraphNode s: node.getAdjacent()){\n s.removeAdjacent(node);\n }\n }", "public static void removeNotRequiredSiblings(GroupConditions gc){\r\n\t\tif(gc == null){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tgc.getChildren().forEach(sn->{\r\n\t\t\tif(sn instanceof GroupConditions){\r\n\t\t\t\tGroupConditions child = GroupConditions.class.cast(sn);\r\n\t\t\t\tremoveNotRequiredSiblings(child);\r\n\t\t\t}\r\n\t\t\tif(sn instanceof FilterCondition){\r\n\t\t\t\tFilterCondition fc = FilterCondition.class.cast(sn);\r\n\t\t\t\tSelectExpression se = fc.findFirstByType(SelectExpression.class);\r\n\t\t\t\tif(se != null){\r\n\t\t\t\t\tremoveNotRequiredSiblings(se.findFirstByType(Where.class));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tgc.getChildren().removeIf(sn->sn instanceof GroupConditions && sn.getChildren().isEmpty());\r\n\t\t\r\n\t\tint size = gc.getChildren().size();\r\n\t\tint endIdx = size-1;\r\n\t\tList<int[]> found = childrenOperatorIndex(gc);\r\n\t\t// start with Operator, or end with, or within middle but there are multiple\r\n\t\tList<int[]> match = found.stream().filter(i-> i[0] == 0 || i[1] == endIdx || i[1] - i[0] > 0).collect(Collectors.toList());\r\n\t\tSet<Integer> set = new LinkedHashSet<>();\r\n\t\tmatch.forEach(i->{\r\n\t\t\tint start = i[0];\r\n\t\t\tint end = i[1];\r\n\t\t\tif(i[0] == 0 || i[1] == endIdx){\r\n\t\t\t\tfor(; start <= end; start++){\r\n\t\t\t\t\tset.add(start);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tfor(; start < end; start++){// last one not included\r\n\t\t\t\t\tset.add(start);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tList<Integer> idx = new LinkedList<>(set);\r\n\t\tCollections.reverse(idx);\r\n\t\tSystem.out.println(idx);\r\n\t\tidx.forEach(i->{\r\n\t\t\tgc.getChildren().remove(i.intValue());\r\n\t\t});\r\n\t}", "public static void removeSample() {\n Node ll1 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll2 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll3 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll4 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll5 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll6 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n\n System.out.println(\"remove 1==\");\n Node r1 = ll1.remove(0);\n r1.printList();\n System.out.println(\"remove 2==\");\n Node r2 = ll2.remove(1);\n r2.printList();\n System.out.println(\"remove 3==\");\n Node r3 = ll3.remove(2);\n r3.printList();\n System.out.println(\"remove 4==\");\n Node r4 = ll4.remove(3);\n r4.printList();\n System.out.println(\"remove 5==\");\n Node r5 = ll5.remove(4);\n r5.printList();\n System.out.println(\"remove 6==\");\n Node r6 = ll6.remove(5);\n r6.printList();\n\n }", "public boolean removeEdge(V source, V target);", "void unsetFurtherRelations();", "public static void deleteNodeFromGraph(KefedModel m, \n\t\t\tKefedModelElement node) throws Exception {\n\t\t// Make a Vector of all the edges involving this node.\n\t\t//\n\t\tSet<KefedModelEdge> edgeSet = new HashSet<KefedModelEdge>();\n\t\tedgeSet.addAll(node.getIncoming());\n\t\tedgeSet.addAll(node.getOutgoing());\n\n\t\tdeleteEdgeSetFromGraph(m, edgeSet);\n\t\tm.getElements().remove(node);\n\n\t}", "private static void stripTrivialCycles(CFG cfg) {\n\t\tCollection<SDGEdge> toRemove = new LinkedList<SDGEdge>();\n\t\tfor (SDGEdge e : cfg.edgeSet()) {\n\t\t\tif (e.getSource().equals(e.getTarget())) {\n\t\t\t\ttoRemove.add(e);\n\t\t\t}\n\t\t}\n\t\t\n\t\tcfg.removeAllEdges(toRemove);\n\t}", "protected abstract Graph filterGraph();", "@Test\r\n void test_insert_two_vertice_with_one_edge_remove_non_existent_edge() {\r\n // Add three vertices with two edges\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n vertices = graph.getAllVertices();\r\n // B should be an adjacent vertex of A\r\n if(!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")){\r\n fail();\r\n }\r\n // C should be an adjacent vertex of B\r\n if(!graph.getAdjacentVerticesOf(\"B\").contains(\"C\")){\r\n fail();\r\n }\r\n //Check that A,B and C are in the graph\r\n if(!vertices.contains(\"A\") |!vertices.contains(\"B\")\r\n | !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n // There are two edges in the graph\r\n if(graph.size() != 2) {\r\n fail();\r\n }\r\n // Try are remove edge from A to C\r\n graph.removeEdge(\"A\", \"C\");\r\n graph.removeEdge(\"A\", \"D\");\r\n graph.removeEdge(\"E\", \"F\");\r\n graph.removeEdge(null, \"A\");\r\n graph.removeEdge(\"A\", null);\r\n //Graph should maintain its original shape\r\n if(!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")){\r\n fail();\r\n }\r\n // C should be an adjacent vertex of B\r\n if(!graph.getAdjacentVerticesOf(\"B\").contains(\"C\")){\r\n fail();\r\n }\r\n //Check that A,B and C are in the graph\r\n if(!vertices.contains(\"A\") |!vertices.contains(\"B\")\r\n | !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n // There are two edges in the graph\r\n if(graph.size() != 2) {\r\n fail();\r\n }\r\n }", "abstract void removeNodeReferences(Node<T> node);", "@Override\n public void clearEdges() {\n /* remove edges from all graphs */\n for (TimeFrame tf : lstTimeFrameOrdering) {\n hmpGraphsAtTimeframes.get(tf).clearEdges();\n }\n \n /* empty adjacency list */\n for (int i = 0 ; i < darrGlobalAdjList.size() ; i++) {\n for (TimeFrame tf : darrGlobalAdjList.get(i).keySet()) {\n darrGlobalAdjList.get(i).get(tf).clear();\n }\n }\n /* delete all Edge Objects */\n mapAllEdges.clear();\n }", "private void trimX() {\n\t\tint indexIntoBranches = 0;\n\t\tfor (int i = 0; i < this.branches.size(); i++) {\n\t\t\tif (this.branches.get(i).size() == this.numXVertices) {\n\t\t\t\tindexIntoBranches = i;\n\t\t\t}\n\t\t}\n\n\t\tthis.allX = (ArrayList) this.branches.get(indexIntoBranches).clone(); // We need this for a set difference above\n\n\t\tfor (int k = 0; k < this.branches.get(indexIntoBranches).size(); k++) {\n\t\t\tfor (int j = 0; j < this.branches.get(indexIntoBranches).size(); j++) {\n\t\t\t\t// Ignore if the index is the same - otherwise remove the edges\n\t\t\t\tif (!(k == j)) {\n\t\t\t\t\tthis.branches.get(indexIntoBranches).get(k)\n\t\t\t\t\t\t\t.removeNeighbor(this.branches.get(indexIntoBranches).get(j));\n\t\t\t\t\tthis.branches.get(indexIntoBranches).get(j)\n\t\t\t\t\t\t\t.removeNeighbor(this.branches.get(indexIntoBranches).get(k));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static void removeNode(CFG cfg, SDGNode toRemove) {\n\t\tfinal List<SDGEdge> edgesToAdd = new LinkedList<SDGEdge>();\n\t\tfinal List<SDGEdge> edgesToRemove = new LinkedList<SDGEdge>();\n\t\tfor (SDGEdge eIncoming : cfg.getIncomingEdgesOfKind(toRemove, SDGEdge.Kind.CONTROL_FLOW)) {\n\t\t\tfor (SDGEdge eOutgoing : cfg\n\t\t\t\t\t.getOutgoingEdgesOfKind(toRemove, SDGEdge.Kind.CONTROL_FLOW)) {\n\t\t\t\tedgesToAdd.add(new SDGEdge(eIncoming.getSource(), eOutgoing.getTarget(),\n\t\t\t\t\t\tSDGEdge.Kind.CONTROL_FLOW));\n\t\t\t\tedgesToRemove.add(eIncoming);\n\t\t\t\tedgesToRemove.add(eOutgoing);\n\t\t\t}\n\t\t}\n\n\t\tcfg.addAllEdges(edgesToAdd);\n\t\tcfg.removeAllEdges(edgesToRemove);\n\t\tcfg.removeVertex(toRemove);\n\t}", "public void removeNodes(String nodeType, boolean force)\r\n {\r\n\tfinal NodeTypeHolder nt = ntMap.get(nodeType);\r\n\t\r\n\t// If the nodeType doesn't exist, then throw.\r\n\tif (nt == null)\r\n\t throw new RuntimeException(\"Can't find nodeType <\"+nodeType+\">\");\r\n\r\n\t// Look for EdgeTypes connecting Nodes of type nodeType.\r\n\tfor (final EdgeTypeHolder eth : ethMap.values())\r\n\t{\r\n\t final EdgeType et = eth.getEdgeType();\r\n\t if (et.getSourceType().equals(nodeType)\r\n\t\t|| et.getDestType().equals(nodeType))\r\n\t {\r\n\t\t// If we find any Edges matching this EdgeType...\r\n\t\tif (eth.numEdges() > 0)\r\n\t\t // If we're forcing then remove them, otherwise throw.\r\n\t\t if (force)\r\n\t\t {\r\n\t\t\t// Only remove the Edges, not the EdgeType itself!\r\n\t\t\teth.removeEdges();\r\n\t\t\t// Invalidate the Edge array cache.\r\n\t\t\tedges = null;\r\n\t\t }\r\n\t\t else\r\n\t\t\tthrow new RuntimeException(\"Edges already exist which connect Nodes of type <\"\r\n\t\t\t\t\t\t +nodeType+\">\");\r\n\t }\r\n\t}\r\n\t// Now clear out matching Nodes, not the nodeType itself!\r\n\tnt.clearNodes();\r\n\t// Invalidate the nodes array cache.\r\n\tnodes = null;\r\n }", "public Node removeFromChain();", "public abstract void removeEdge(Point p, Direction dir);", "public void delContextNodes();", "@Test public void testPublic9() {\n Graph<Character> graph= TestGraphs.testGraph3();\n char[] toRemove= {'I', 'H', 'B', 'J', 'C', 'G', 'E', 'F'};\n int i;\n\n for (i= 0; i < toRemove.length; i++) {\n graph.removeVertex(toRemove[i]);\n assertFalse(graph.hasVertex(toRemove[i]));\n }\n }", "boolean removeEdge(E edge);", "@Test\n public void testRemoveVertices() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeData(env),\n env);\n\n List<Vertex<Long, Long>> verticesToBeRemoved = new ArrayList<>();\n verticesToBeRemoved.add(new Vertex<>(1L, 1L));\n verticesToBeRemoved.add(new Vertex<>(2L, 2L));\n\n graph = graph.removeVertices(verticesToBeRemoved);\n\n DataSet<Edge<Long, Long>> data = graph.getEdges();\n List<Edge<Long, Long>> result = data.collect();\n\n expectedResult = \"3,4,34\\n\" + \"3,5,35\\n\" + \"4,5,45\\n\";\n\n compareResultAsTuples(result, expectedResult);\n }", "public void deleteGroup(Group group);", "public void removeAllPartOfSet() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PARTOFSET);\r\n\t}", "@Test\r\n void test_remove_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.removeEdge(\"A\", \"B\");\r\n graph.removeEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n } \r\n }", "private static Set<ARGState> removeSet(Set<ARGState> elements) {\n Set<ARGState> toWaitlist = new LinkedHashSet<ARGState>();\n int i=0;\n for (ARGState ae : elements) {\n if(ae.getParents()!=null){\n for (ARGState parent : ae.getParents()) {\n if (!elements.contains(parent)) {\n toWaitlist.add(parent);\n }\n }\n if(ae.getChildren()!=null)\n ae.removeFromARG();\n else\n ae.setDestroyed(true);\n }\n\n // ae.setNull();\n }\n return toWaitlist;\n }", "@Test\r\n void remove_null() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n graph.removeVertex(null);\r\n List<String> adjacent;\r\n vertices = graph.getAllVertices(); \r\n // Check that graph has all added vertexes\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"B\")|\r\n !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (!adjacent.contains(\"B\"))\r\n fail();\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.contains(\"C\"))\r\n fail();\r\n \r\n }", "private void clean() {\n Iterable<Long> v = vertices();\n Iterator<Long> iter = v.iterator();\n while (iter.hasNext()) {\n Long n = iter.next();\n if (world.get(n).adj.size() == 0) {\n iter.remove();\n }\n }\n }", "@Override\n\tpublic void clear()\n\t{\n\t\t/*\n\t\t * TODO This doesn't actually notify GraphChangeListeners, is that a\n\t\t * problem? - probably is ... thpr, 6/27/07\n\t\t */\n\t\tnodeEdgeMap.clear();\n\t\tnodeList.clear();\n\t\tedgeList.clear();\n\t}", "public Collection getNonEscapingEdgeTargets() {\n if (addedEdges == null) return Collections.EMPTY_SET;\n return new FlattenedCollection(addedEdges.values());\n }", "void reset() {\n\t\t\t_orderID = UNMARKED;\n\t\t\t_outgoingEdges.clear();\n\t\t\t//TODO when do we call this? when should we mark all edges as received?\n\t\t\tfor(Edge e : _neighborEdges.keySet()) {\n\t\t\t\t_neighborEdges.put(e, false);\n\t\t\t}\n\t\t}", "@Override\n \t\t\t\tpublic void deleteGraph() throws TransformedGraphException {\n \n \t\t\t\t}", "public NodeVector removeNodesRange(NodeVector nodes, NodeVector nodesToRemove) {\n MyPoint2D p1 = getClicked1();\n MyPoint2D p2 = getClicked2();\n double x1 = Math.min(p1.getX(),p2.getX());\n double x2 = Math.max(p1.getX(),p2.getX());\n double y1 = Math.min(p1.getY(),p2.getY());\n double y2 = Math.max(p1.getY(),p2.getY());\n // Loop over each node for the ith section:\n for (int j=0 ; j<nodes.size() ; j++ ) {\n Node node = nodes.get(j);\n // Check if the node is inside the coordinate range:\n MyPoint2D p = node.getPoint2D();\n double x = p.getX();\n double y = p.getY();\n if ( x<x1 || x>x2 || y<y1 || y>y2 ) { // out of range\n // Add the node to the list to remove:\n nodesToRemove.add(node);\n }\n }\n return nodesToRemove;\n }", "public void removeEdge(Node p_a, Node p_b) {\n\t\tEdge edge = makeEdge(p_a, p_b);\n\t\tedges.remove(edge);\n\t}", "private TIntSet removeUnconnectedMentionEntityPairs(Graph g, Map<ResultMention, List<ResultEntity>> solution) {\n TIntSet mentionsToRemove = new TIntHashSet();\n for (int mentionId : g.getMentionNodesIds().values()) {\n GraphNode mentionNode = g.getNode(mentionId);\n Mention mention = (Mention) mentionNode.getNodeData();\n TIntDoubleHashMap entityCandidates = mentionNode.getSuccessors();\n if (entityCandidates.size() == 0) {\n continue;\n }\n // Remove all mentions without any entities that have coherence edges.\n if (g.isLocalMention(mentionId)) {\n logger.debug(\"local mention removed: \" + mentionId + \" \" + mention);\n mentionsToRemove.add(mentionId);\n GraphTracer.gTracer.addMentionToDangling(g.getName(), mention.getMention(), mention.getCharOffset());\n // Set solution to best local candidate.\n Pair<Integer, Double> bestEntityScore = getBestLocalCandidateAndScore(entityCandidates);\n int bestEntity = bestEntityScore.getKey();\n double score = bestEntityScore.getValue();\n updateSolution(solution, g, mention, bestEntity, score);\n }\n\n }\n TIntSet entitiesToRemove = new TIntHashSet();\n // Remove entities that are only connected to removed mentions.\n for (int entityId : g.getEntityNodesIds().values()) {\n GraphNode entityNode = g.getNode(entityId);\n TIntDoubleHashMap successors = entityNode.getSuccessors();\n int removedCount = 0;\n for (TIntDoubleIterator itr = successors.iterator(); itr.hasNext(); ) {\n itr.advance();\n int neighborId = itr.key();\n if (mentionsToRemove.contains(neighborId)) {\n ++removedCount;\n }\n }\n if (removedCount == successors.size()) {\n entitiesToRemove.add(entityId);\n }\n }\n // Remove mentions + entity candidates from graph, trace.\n TIntSet nodesToRemove = new TIntHashSet(mentionsToRemove.size() + entitiesToRemove.size());\n nodesToRemove.addAll(mentionsToRemove);\n nodesToRemove.addAll(entitiesToRemove);\n return nodesToRemove;\n }", "private void clean() {\n //use iterator\n Iterator<Long> it = nodes.keySet().iterator();\n while (it.hasNext()) {\n Long node = it.next();\n if (nodes.get(node).adjs.isEmpty()) {\n it.remove();\n }\n }\n }", "private void deleteEdge(String source, String dest) {\r\n\t\tVertex v = vertexMap.get(source);\r\n\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\tif (edge.getDestination().equals(dest)) {\r\n\t\t\t\tv.adjacent.remove(edge);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void detachFromGraphView();", "private Edge removeEdge(Node source, Node dest)\r\n\t{\r\n\t final Edge e = source.removeEdge(edgeType.getName(), dest);\r\n\t if (!eSet.remove(e))\r\n\t\tthrow new RuntimeException(\"No Edge from Node <\"+source.getName()\r\n\t\t\t\t\t +\"> to Node <\"+dest.getName()+\">\");\r\n\t return e;\r\n\t}", "public void removeAllPaymentGroups();" ]
[ "0.7109333", "0.6998358", "0.6821228", "0.6744634", "0.65883505", "0.65713173", "0.6506684", "0.64456534", "0.6367647", "0.6354444", "0.63266724", "0.6274312", "0.6234255", "0.6228382", "0.6222163", "0.6218385", "0.62070227", "0.6169734", "0.61580306", "0.61191815", "0.611416", "0.6096525", "0.60707676", "0.5992069", "0.59887254", "0.5978812", "0.5942579", "0.5932641", "0.5900232", "0.58954585", "0.5867663", "0.5860425", "0.58236164", "0.5820213", "0.5803565", "0.57976276", "0.5794192", "0.5788672", "0.5788406", "0.57787037", "0.57755643", "0.5768502", "0.5761821", "0.5729644", "0.5705957", "0.57037663", "0.5701073", "0.569583", "0.5677371", "0.56711036", "0.56693864", "0.56629306", "0.5660116", "0.5647384", "0.56456435", "0.5632708", "0.5632697", "0.55985826", "0.5596555", "0.5593654", "0.5577053", "0.5573016", "0.55619067", "0.55591905", "0.55490804", "0.55472666", "0.55449474", "0.5533496", "0.5518511", "0.5504761", "0.5497564", "0.5497001", "0.549365", "0.5488599", "0.54821855", "0.5472485", "0.54665035", "0.5465015", "0.5462037", "0.54616755", "0.54586947", "0.544513", "0.5444389", "0.5441426", "0.5440332", "0.54303813", "0.5404469", "0.5401872", "0.54017115", "0.5394216", "0.53834385", "0.53719383", "0.53698784", "0.5366482", "0.53655", "0.5365325", "0.53594744", "0.5356381", "0.53561634", "0.53507125" ]
0.6455369
7
Remove a set of edges from a group. Edges can be either internal edges or external edges.
void removeEdges(List<CyEdge> edges);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeEdges()\r\n\t{\r\n\t final String edgeTypeName = edgeType.getName();\r\n\t for (final Edge e : eSet)\r\n\t\te.getSource().removeEdge(edgeTypeName, e.getDest());\r\n\t eSet.clear();\r\n\t}", "public boolean removeEdges(Collection<? extends E> edges);", "public void removeEdge(int start, int end);", "public void removeAllEdges() {\n }", "@Test\n public void testRemoveEdges() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeData(env),\n env);\n List<Edge<Long, Long>> edgesToBeRemoved = new ArrayList<>();\n edgesToBeRemoved.add(new Edge<>(5L, 1L, 51L));\n edgesToBeRemoved.add(new Edge<>(2L, 3L, 23L));\n\n // duplicate edge should be preserved in output\n graph = graph.addEdge(new Vertex<>(1L, 1L), new Vertex<>(2L, 2L), 12L);\n\n graph = graph.removeEdges(edgesToBeRemoved);\n\n DataSet<Edge<Long, Long>> data = graph.getEdges();\n List<Edge<Long, Long>> result = data.collect();\n\n expectedResult =\n \"1,2,12\\n\" + \"1,2,12\\n\" + \"1,3,13\\n\" + \"3,4,34\\n\" + \"3,5,35\\n\" + \"4,5,45\\n\";\n\n compareResultAsTuples(result, expectedResult);\n }", "int removeEdges(ExpLineageEdge.FilterOptions options);", "public void testRemoveAllEdges() {\n System.out.println(\"removeAllEdges\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n Assert.assertTrue(graph.removeAllEdges());\n Assert.assertEquals(graph.edgesSet().size(), 0);\n }", "void remove(Edge edge);", "@Override\n public void removeEdge(List<E> plstEdges) {\n for (E e : plstEdges) {\n removeEdge(e);\n }\n }", "void removeEdge(int x, int y);", "public void testRemoveEdgeEdge( ) {\n init( );\n\n assertEquals( m_g4.edgeSet( ).size( ), 4 );\n m_g4.removeEdge( m_v1, m_v2 );\n assertEquals( m_g4.edgeSet( ).size( ), 3 );\n assertFalse( m_g4.removeEdge( m_eLoop ) );\n assertTrue( m_g4.removeEdge( m_g4.getEdge( m_v2, m_v3 ) ) );\n assertEquals( m_g4.edgeSet( ).size( ), 2 );\n }", "public boolean removeEdge(E edge);", "boolean removeEdge(E edge);", "public boolean resetEdges();", "public abstract void removeEdge(int from, int to);", "public void removeEdge(Edge e){\n edgeList.remove(e);\n }", "public void removeEdge(Position ep) throws InvalidPositionException;", "@Test\n public void testRemoveEdge() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeData(env),\n env);\n\n // duplicate edge should be preserved in output\n graph = graph.addEdge(new Vertex<>(1L, 1L), new Vertex<>(2L, 2L), 12L);\n\n graph = graph.removeEdge(new Edge<>(5L, 1L, 51L));\n\n DataSet<Edge<Long, Long>> data = graph.getEdges();\n List<Edge<Long, Long>> result = data.collect();\n\n expectedResult =\n \"1,2,12\\n\"\n + \"1,2,12\\n\"\n + \"1,3,13\\n\"\n + \"2,3,23\\n\"\n + \"3,4,34\\n\"\n + \"3,5,35\\n\"\n + \"4,5,45\\n\";\n\n compareResultAsTuples(result, expectedResult);\n }", "private static <N, E extends Edge<N>> ImmutableAdjacencyGraph<N, Edge<N>> deleteFromGraph(final Graph<N, E> graph, final Set<N> deleteNodes, final Set<E> deleteEdges)\n\t{\n\t\t// remove the deleteNodes\n\t\tfinal Set<N> cutNodes = graph.getNodes();\n\t\tcutNodes.removeAll(deleteNodes);\n\t\t// remove the deleteEdges\n\t\tfinal Set<Edge<N>> cutEdges = new HashSet<Edge<N>>(deleteEdges);\n\t\tfor (final E edge : deleteEdges)\n\t\t\tcutEdges.remove(edge);\n\t\t// remove any remaining deleteEdges which connect to removed deleteNodes\n\t\t// also replace deleteEdges that have one removed node but still have\n\t\t// 2 or more remaining deleteNodes with a new edge.\n\t\tfinal Set<Edge<N>> removeEdges = new HashSet<Edge<N>>();\n\t\tfinal Set<Edge<N>> addEdges = new HashSet<Edge<N>>();\n\t\tfor(final Edge<N> cutEdge : cutEdges)\n\t\t{\n\t\t\tfinal List<N> cutEdgeNeighbors = cutEdge.getNodes();\n\t\t\tcutEdgeNeighbors.removeAll(cutNodes);\n\t\t\tif( cutEdgeNeighbors.size() != cutEdge.getNodes().size() )\n\t\t\t\tremoveEdges.add(cutEdge);\n\t\t\tif( cutEdgeNeighbors.size() > 1 )\n\t\t\t\t// TODO instead of ImmutableHyperEdge implement clone or something\n\t\t\t\taddEdges.add(new ImmutableHyperEdge<N>(cutEdgeNeighbors));\n\t\t}\n\t\tfor(final Edge<N> removeEdge : removeEdges)\n\t\t\tcutEdges.remove(removeEdge);\n\t\tcutEdges.addAll(addEdges);\n\t\t// check if a graph from the new set of deleteEdges and deleteNodes is\n\t\t// still connected\n\t\treturn new ImmutableAdjacencyGraph<N, Edge<N>>(cutNodes, cutEdges);\n\t}", "public void testRemoveEdge_edge() {\n System.out.println(\"removeEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j) % 2 != 0) {\n continue;\n }\n\n Assert.assertNotNull(\n graph.removeEdge(new UnweightedEdge(new Integer(i), new Integer(j))));\n Assert.assertFalse(graph.containsEdge(new Integer(i), new Integer(j)));\n }\n }\n }", "@Test\n\tpublic void removeEdgeTest() {\n\t\tList<Vertex> vertices = new ArrayList<>();\n\t\tvertices.add(C);\n\t\tvertices.add(D);\n\t\tedge_0.addVertices(vertices);\n\t\tList<Vertex> vertices1 = new ArrayList<>();\n\t\tvertices.add(A);\n\t\tvertices.add(B);\n\t\tedge_1.addVertices(vertices1);\n\t\tgraph.addEdge(edge_0);\n\t\tgraph.addEdge(edge_1);\n\t\tassertTrue(graph.removeEdge(edge_0));\n\t\tassertFalse(graph.edges().contains(edge_0));\n\t\tassertTrue(graph.edges().size() == 1);\n\t}", "void removeEdge(Vertex v1, Vertex v2) throws GraphException;", "protected void removeEdgeAndVertices(TestbedEdge edge) {\n java.util.Collection<Agent> agents = getIncidentVertices(edge);\n removeEdge(edge);\n for (Agent v : agents) {\n if (getIncidentEdges(v).isEmpty()) {\n removeVertex(v);\n }\n }\n }", "private void removeNoMoreExistingOriginalEdges() {\n for (MirrorEdge mirrorEdge : directEdgeMap.values()) {\n if (!originalGraph.has(mirrorEdge.original)) {\n for (Edge segment : mirrorEdge.segments) {\n mirrorGraph.forcedRemove(segment);\n reverseEdgeMap.remove(segment);\n }\n for (Node bend : mirrorEdge.bends) {\n mirrorGraph.forcedRemove(bend);\n reverseEdgeMap.remove(bend);\n }\n directEdgeMap.remove(mirrorEdge.original);\n }\n }\n }", "public void removeEdges(String edgeTypeName)\r\n {\n final EdgeTypeHolder eth = ethMap.get(edgeTypeName);\n if(eth!=null) eth.removeEdges();\r\n\t// Invalidate the Edge array cache.\r\n\tedges = null;\r\n }", "@Test\n public void testEdges() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n Vertex v4 = new Vertex(4, \"D\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 5);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 7);\n Edge<Vertex> e3 = new Edge<>(v1, v4, 9);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addVertex(v4);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n\n Set<Edge> expectedEdges = new HashSet<>();\n expectedEdges.add(e1);\n expectedEdges.add(e2);\n expectedEdges.add(e3);\n\n assertEquals(expectedEdges, g.allEdges());\n\n expectedEdges.remove(e2);\n assertEquals(expectedEdges, g.allEdges(v1));\n\n assertEquals(e3, g.getEdge(v1, v4));\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (LinkGroup linkGroup : findAll()) {\n\t\t\tremove(linkGroup);\n\t\t}\n\t}", "public void testRemoveEdge_betweenVertices() {\n System.out.println(\"removeEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j) % 2 != 0) {\n continue;\n }\n\n Assert.assertNotNull(graph.removeEdge(new Integer(i), new Integer(j)));\n Assert.assertFalse(graph.containsEdge(new Integer(i), new Integer(j)));\n }\n }\n }", "private List<Graph> possRemove(Graph pag, Map<Edge, Boolean> necEdges) {\n // list of edges that can be removed\n List<Edge> remEdges = new ArrayList<>();\n for (Edge remEdge : necEdges.keySet()) {\n if (!necEdges.get(remEdge))\n remEdges.add(remEdge);\n }\n // powerset of edges that can be removed\n PowerSet<Edge> pset = new PowerSet<>(remEdges);\n List<Graph> possRemove = new ArrayList<>();\n // for each set of edges in the powerset remove edges from graph and add to PossRemove\n for (Set<Edge> set : pset) {\n Graph newPag = new EdgeListGraph(pag);\n for (Edge edge : set) {\n newPag.removeEdge(edge);\n }\n possRemove.add(newPag);\n }\n return possRemove;\n }", "void removeIsVertexOf(Subdomain_group oldIsVertexOf);", "@Override\n public void clearEdges() {\n /* remove edges from all graphs */\n for (TimeFrame tf : lstTimeFrameOrdering) {\n hmpGraphsAtTimeframes.get(tf).clearEdges();\n }\n \n /* empty adjacency list */\n for (int i = 0 ; i < darrGlobalAdjList.size() ; i++) {\n for (TimeFrame tf : darrGlobalAdjList.get(i).keySet()) {\n darrGlobalAdjList.get(i).get(tf).clear();\n }\n }\n /* delete all Edge Objects */\n mapAllEdges.clear();\n }", "public Set<E> getEdges();", "public boolean removeEdge(V source, V target);", "public void removeEdge(N startNode, N endNode)\r\n/* 80: */ {\r\n/* 81:151 */ assert (checkRep());\r\n/* 82:152 */ if ((contains(startNode)) && (((Map)this.map.get(startNode)).containsKey(endNode)))\r\n/* 83: */ {\r\n/* 84:153 */ ((Map)this.map.get(startNode)).remove(endNode);\r\n/* 85:154 */ ((Map)this.map.get(endNode)).remove(startNode);\r\n/* 86: */ }\r\n/* 87: */ }", "private GraphRemovalUndo removeAxiomEdgesOf(Graph<String, DefaultEdge> g,\n\t\t\tMap<DefaultEdge, Set<OWLAxiom>> createdByAxioms, Map<DefaultEdge, Set<OWLAxiom>> labels, DefaultEdge edge) {\n\n\t\tMap<OWLAxiom, Set<DefaultEdge>> axiomToEdges = getAxiomToEdges(createdByAxioms);\n\n\t\t// Instantiate a graphremoval class (which allows to undo the removal9\n\t\tGraphRemovalUndo remover = new GraphRemovalUndo(g);\n\n\t\t// For each axiom of the edge\n\t\tfor (OWLAxiom ax : createdByAxioms.get(edge)) {\n\t\t\t// For each edge that was created by this axiom\n\t\t\tfor (DefaultEdge e : axiomToEdges.get(ax)) {\n\t\t\t\t// remove the axiom from the label\n\t\t\t\tif (labels.containsKey(e)) {\n\t\t\t\t\tlabels.get(e).remove(ax);\n\t\t\t\t}\n\t\t\t\t// If this was the last axiom of the edge, remove it\n\t\t\t\tif (createdByAxioms.get(e).size() < 1) {\n\t\t\t\t\tcreatedByAxioms.remove(e);\n\t\t\t\t\tremover.removeEdge(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Remove all nested class expressions of the axiom\n\t\t\tax.nestedClassExpressions().forEach(nested -> {\n\t\t\t\tremover.removeVertex(OntologyDescriptor.getCleanNameOWLObj(nested));\n\t\t\t});\n\n\t\t\t// Remember which axioms where removed\n\t\t\tremover.saveAxiom(ax);\n\t\t}\n\n\t\treturn remover;\n\n\t}", "public void deleteSelected() {\r\n \t\tObject cells[] = graph.getSelectionCells();\r\n \t\tGraphModel graphmodel = graph.getModel();\r\n \r\n \t\t// If a cell is a blocking region avoid removing its edges and\r\n \t\t// select its element at the end of the removal process\r\n \t\tSet edges = new HashSet();\r\n \t\tSet<Object> select = new HashSet<Object>();\r\n \r\n \t\t// Set with all regions that can be deleted as its child were removed\r\n \t\tSet<Object> regions = new HashSet<Object>();\r\n \t\t// Set with all JmtCells that we are removing\r\n \t\tSet<Object> jmtCells = new HashSet<Object>();\r\n \r\n \t\t// Giuseppe De Cicco & Fabio Granara\r\n \t\t// for(int k=0; k<cells.length; k++){\r\n \t\t// if(cells[k] instanceof JmtEdge){\r\n \t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getSource((JmtEdge)cells[k])))).SubOut();\r\n \t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getTarget((JmtEdge)cells[k])))).SubIn();\r\n \t\t// }\r\n \t\t//\r\n \t\t// }\r\n \t\tfor (int i = 0; i < cells.length; i++) {\r\n \t\t\tif (!(cells[i] instanceof BlockingRegion)) {\r\n \t\t\t\t// Adds edge for removal\r\n \t\t\t\tedges.addAll(DefaultGraphModel.getEdges(graphmodel, new Object[] { cells[i] }));\r\n \t\t\t\t// Giuseppe De Cicco & Fabio Granara\r\n \t\t\t\t// quando vado a eliminare un nodo, a cui collegato un arco,\r\n \t\t\t\t// vado ad incrementare o diminuire il contatore per il\r\n \t\t\t\t// pulsanteAGGIUSTATUTTO\r\n \t\t\t\t// Iterator iter = edges.iterator();\r\n \t\t\t\t// while (iter.hasNext()) {\r\n \t\t\t\t// Object next = iter.next();\r\n \t\t\t\t// if (next instanceof JmtEdge){\r\n \t\t\t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getSource((JmtEdge)next)))).SubOut();\r\n \t\t\t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getTarget((JmtEdge)next)))).SubIn();\r\n \t\t\t\t// }\r\n \t\t\t\t//\r\n \t\t\t\t// }\r\n \t\t\t\t// Stores parents information and cell\r\n \t\t\t\tif (cells[i] instanceof JmtCell) {\r\n \t\t\t\t\tif (((JmtCell) cells[i]).getParent() instanceof BlockingRegion) {\r\n \t\t\t\t\t\tregions.add(((JmtCell) cells[i]).getParent());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tjmtCells.add(cells[i]);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\t// Adds node for selection\r\n \t\t\t\tObject[] nodes = graph.getDescendants(new Object[] { cells[i] });\r\n \t\t\t\tfor (Object node : nodes) {\r\n \t\t\t\t\tif (node instanceof JmtCell || node instanceof JmtEdge) {\r\n \t\t\t\t\t\tselect.add(node);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\t// Removes blocking region from data structure\r\n \t\t\t\tmodel.deleteBlockingRegion(((BlockingRegion) cells[i]).getKey());\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\tif (!edges.isEmpty()) {\r\n \t\t\tgraphmodel.remove(edges.toArray());\r\n \t\t}\r\n \t\t// removes cells from graph\r\n \t\tgraphmodel.remove(cells);\r\n \r\n \t\t// Checks if all children of a blocking region have been removed\r\n \t\tIterator<Object> it = regions.iterator();\r\n \t\twhile (it.hasNext()) {\r\n \t\t\tjmtCells.add(null);\r\n \t\t\tBlockingRegion region = (BlockingRegion) it.next();\r\n \t\t\tList child = region.getChildren();\r\n \t\t\tboolean empty = true;\r\n \t\t\tfor (int i = 0; i < child.size(); i++) {\r\n \t\t\t\tif (child.get(i) instanceof JmtCell && !jmtCells.contains(child.get(i))) {\r\n \t\t\t\t\tempty = false;\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tif (empty) {\r\n \t\t\t\tmodel.deleteBlockingRegion(region.getKey());\r\n \t\t\t\tgraphmodel.remove(new Object[] { region });\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// Removes cells from data structure\r\n \t\tfor (Object cell : cells) {\r\n \t\t\tif (cell instanceof JmtCell) {\r\n \t\t\t\tmodel.deleteStation(((CellComponent) ((JmtCell) cell).getUserObject()).getKey());\r\n \t\t\t} else if (cell instanceof JmtEdge) {\r\n \t\t\t\tJmtEdge link = (JmtEdge) cell;\r\n \t\t\t\tmodel.setConnected(link.getSourceKey(), link.getTargetKey(), false);\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// If no stations remains gray select and link buttons\r\n \t\tif (graph.getModel().getRootCount() == 0) {\r\n \t\t\tcomponentBar.clearButtonGroupSelection(0);\r\n \t\t\tsetConnect.setEnabled(false);\r\n \t\t\tsetSelect.setEnabled(false);\r\n \t\t}\r\n \r\n \t\t// Selects components from removed blocking regions\r\n \t\tif (select.size() > 0) {\r\n \t\t\tgraph.setSelectionCells(select.toArray());\r\n \t\t\t// Resets parent information of cells that changed parent\r\n \t\t\tit = select.iterator();\r\n \t\t\twhile (it.hasNext()) {\r\n \t\t\t\tObject next = it.next();\r\n \t\t\t\tif (next instanceof JmtCell) {\r\n \t\t\t\t\t((JmtCell) next).resetParent();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}", "public abstract void removeEdge(Point p, Direction dir);", "public Collection<V> removeVertices(Collection<V> vs);", "private void clearEdgeLinks() {\n edges.clear();\n //keep whole tree to maintain its position when it is expanded (within scroll pane bounds)\n Node rootNode = nodes.get(0);\n VBox rootVBox = (VBox) rootNode.getContainerPane().getParent();\n rootVBox.layout();\n Bounds rootNodeChildrenVBoxBounds = rootNode.getChildrenVBox().getBoundsInLocal();\n rootVBox.setLayoutY(Math.abs(rootVBox.getLayoutY() - ((rootNodeChildrenVBoxBounds.getHeight()) - rootNode.getHeight()) / 2 + rootNode.getLayoutY()));\n rootVBox.layout();\n\n for (int i = 0; i < nodes.size(); i++) {\n Pane containerPane = nodes.get(i).getContainerPane();\n //reposition node to the center of its children\n ObservableList<javafx.scene.Node> genericNodes = nodes.get(i).getChildrenVBox().getChildren();\n if (!genericNodes.isEmpty()) {\n nodes.get(i).setLayoutY(((nodes.get(i).getChildrenVBox().getBoundsInLocal().getHeight()) - rootNode.getHeight()) / 2);\n }\n\n for (int j = 0; j < containerPane.getChildren().size(); j++) {\n if (containerPane.getChildren().get(j) instanceof Edge) {\n containerPane.getChildren().remove(j);\n j--;\n }\n }\n }\n redrawEdges(rootNode);\n }", "Collection<E> edges();", "public void removeGroup(int groupId);", "void remove(String group);", "public void removeEdge() {\n Graph GO = new Graph(nbOfVertex + 1);\n Value.clear();\n for (int i = 0; i < x.length; i++) {\n for (int j : x[i].getDomain()) {\n Value.add(j);\n if (MaxMatch[i] == Map.get(j)) {\n GO.addEdge(Map.get(j), i);\n } else {\n GO.addEdge(i, Map.get(j));\n }\n }\n }\n\n for (int i : V2) {\n for (int j : Value) {\n if (!V2.contains(j)) {\n GO.addEdge(i, j);\n }\n }\n }\n //System.out.println(\"GO : \");\n //System.out.println(GO);\n int[] map2Node = GO.findStrongConnectedComponent();\n //GO.printSCC();\n\n ArrayList<Integer>[] toRemove = new ArrayList[n];\n for (int i = 0; i < n; i++) {\n toRemove[i] = new ArrayList<Integer>();\n }\n for (int i = 0; i < n; i++) {\n for (int j : x[i].getDomain()) {\n ////System.out.println(i + \" \" + j);\n if (map2Node[i] != map2Node[Map.get(j)] && MaxMatch[i] != Map.get(j)) {\n toRemove[i].add(j);\n if (debug == 1) System.out.println(\"Remove arc : \" + i + \" => \" + j);\n }\n }\n }\n for (int i = 0; i < n; i++) {\n for (int j : toRemove[i]) {\n x[i].removeValue(j);\n }\n }\n }", "@Test\n public void testRemoveInvalidEdge() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeData(env),\n env);\n graph = graph.removeEdge(new Edge<>(6L, 1L, 61L));\n\n DataSet<Edge<Long, Long>> data = graph.getEdges();\n List<Edge<Long, Long>> result = data.collect();\n\n expectedResult =\n \"1,2,12\\n\"\n + \"1,3,13\\n\"\n + \"2,3,23\\n\"\n + \"3,4,34\\n\"\n + \"3,5,35\\n\"\n + \"4,5,45\\n\"\n + \"5,1,51\\n\";\n\n compareResultAsTuples(result, expectedResult);\n }", "@Test\r\n public void testRemoveEdge() {\r\n System.out.println(\"removeEdge\");\r\n MyDigraph instance = new MyDigraph();\r\n\r\n int expectedResult = 0;\r\n int result = instance.numEdges();\r\n\r\n assertEquals(expectedResult, result);\r\n\r\n Object v1Element = 1;\r\n Object v2Element = 2;\r\n\r\n Vertex v1 = instance.insertVertex(v1Element);\r\n Vertex v2 = instance.insertVertex(v2Element);\r\n\r\n Object edgeElement = \"A\";\r\n Edge e = instance.insertEdge(v1Element, v2Element, edgeElement);\r\n\r\n expectedResult = 1;\r\n result = instance.numEdges();\r\n\r\n assertEquals(expectedResult, result);\r\n\r\n instance.removeEdge(e);\r\n\r\n expectedResult = 0;\r\n result = instance.numEdges();\r\n\r\n assertEquals(expectedResult, result);\r\n }", "private static void RemoveEdge(Point a, Point b)\n {\n //Here we use a lambda expression/predicate to express that we're looking for a match in list\n //Either if (n.A == a && n.B == b) or if (n.A == b && n.B == a)\n edges.removeIf(n -> n.A == a && n.B == b || n.B == a && n.A == b);\n }", "@Override\n public boolean deleteEdge(Edge edge) {\n return false;\n }", "public void deleteGroup(Group group);", "private void deleteConnections() {\n for (int i = 0; !this.sourceConnections.isEmpty(); ) {\n LinkElement wire = (LinkElement) this.sourceConnections.get(i);\n wire.detachSource();\n wire.detachTarget();\n this.graphElement.removeEdge(wire.getEdgeId(), wire);\n }\n\n for (int i = 0; !this.targetConnections.isEmpty(); ) {\n LinkElement wire = (LinkElement) this.targetConnections.get(i);\n wire.detachSource();\n wire.detachTarget();\n this.graphElement.removeEdge(wire.getEdgeId(), wire);\n }\n }", "private void removeEdgeJointPointSource(Vector<Edge> edges) {\n\t\tfor (Edge e: edges) {\n\t\t\tEdge currentEdge = e;\n\t\t\tremoveEdge(e);\n\t\t\twhile (shapes.contains(currentEdge.getSource()) && currentEdge.getSource() instanceof JoinPoint) {\n\t\t\t\tJoinPoint join = (JoinPoint) currentEdge.getSource();\n\t\t\t\tshapes.remove(join);\n\t\t\t\tcurrentEdge = (Edge) join.getSource();\n\t\t\t\tremoveEdge(currentEdge);\n\t\t\t}\n\t\t}\n\t}", "public Collection getNonEscapingEdgeTargets() {\n if (addedEdges == null) return Collections.EMPTY_SET;\n return new FlattenedCollection(addedEdges.values());\n }", "public Set getNonEscapingEdges() {\n if (addedEdges == null) return Collections.EMPTY_SET;\n return addedEdges.entrySet();\n }", "private void removeEdge(Edge edge) {\n\t\tshapes.remove(edge);\n\t\tshapes.remove(edge.getEdgeLabel());\n\t\tremove(edge.getEdgeLabel());\n\t}", "@DisplayName(\"Delete undirected edges\")\n @Test\n public void testDeleteEdgeUndirected() {\n graph.deleteEdge(new Edge(0, 1));\n Assertions.assertEquals(1, graph.getNeighbours(0).size());\n Assertions.assertEquals(1, graph.getNeighbours(1).size());\n }", "void addEdges(Collection<ExpLineageEdge> edges);", "public Set<Edge<V>> edgeSet();", "void removeSinks(McastRoute route, Set<ConnectPoint> sinks);", "@Test\n public void testGraphElements(){\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n Vertex v4 = new Vertex(4, \"D\");\n Vertex v5 = new Vertex(5, \"E\");\n Vertex v6 = new Vertex(6, \"F\");\n Vertex v7 = new Vertex(7, \"G\");\n Vertex v8 = new Vertex(8, \"H\");\n\n Vertex fakeVertex = new Vertex(100, \"fake vertex\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 1);\n Edge<Vertex> e3 = new Edge<>(v3, v4, 1);\n Edge<Vertex> e4 = new Edge<>(v2, v4, 1);\n Edge<Vertex> e5 = new Edge<>(v2, v6, 1);\n Edge<Vertex> e6 = new Edge<>(v2, v5, 10);\n Edge<Vertex> e7 = new Edge<>(v5, v6, 10);\n Edge<Vertex> e8 = new Edge<>(v4, v6, 10);\n Edge<Vertex> e9 = new Edge<>(v6, v7, 10);\n Edge<Vertex> e10 = new Edge<>(v7, v8, 10);\n\n Edge<Vertex> fakeEdge = new Edge<>(fakeVertex, v1);\n Edge<Vertex> edgeToRemove = new Edge<>(v2, v7, 200);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addVertex(v4);\n g.addVertex(v5);\n g.addVertex(v6);\n g.addVertex(v7);\n g.addVertex(v8);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n g.addEdge(e4);\n g.addEdge(e5);\n g.addEdge(e6);\n g.addEdge(e7);\n g.addEdge(e8);\n g.addEdge(e9);\n g.addEdge(edgeToRemove);\n\n Assert.assertTrue(g.addEdge(e10));\n\n //adding null edge or vertex to graph returns false\n Assert.assertFalse(g.addEdge(null));\n Assert.assertFalse(g.addVertex(null));\n\n //adding edge with a vertex that does not exist in graph g returns false\n Assert.assertFalse(g.addEdge(fakeEdge));\n\n //get an edge that does not exit in graph returns false\n Assert.assertFalse(g.edge(v1, fakeVertex));\n\n //getting length of edge from vertex not in graph g returns false\n Assert.assertEquals(0, g.edgeLength(fakeVertex, v2));\n\n //Remove an edge in graph g returns true\n Assert.assertTrue(g.remove(edgeToRemove));\n\n //Removing edge not in graph g returns false\n Assert.assertFalse(g.remove(fakeEdge));\n\n //Removing vertex not in graph g returns false\n Assert.assertFalse(g.remove(fakeVertex));\n\n //Finding an edge with an endpoint not in graph g returns null\n assertNull(g.getEdge(v1, fakeVertex));\n }", "@DisplayName(\"Delete directed edges\")\n @Test\n public void testDeleteEdgeDirected() {\n boolean directed1 = true;\n graph = new Graph(edges, directed1, 0, 5, GraphType.RANDOM);\n graph.deleteEdge(new Edge(0, 1));\n Assertions.assertTrue(graph.getNeighbours(0).isEmpty());\n }", "public void removeByGroupId(long groupId);", "public void removeByGroupId(long groupId);", "public void removeEdge(Node p_a, Node p_b) {\n\t\tEdge edge = makeEdge(p_a, p_b);\n\t\tedges.remove(edge);\n\t}", "private void deleteEdge(String source, String dest) {\r\n\t\tVertex v = vertexMap.get(source);\r\n\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\tif (edge.getDestination().equals(dest)) {\r\n\t\t\t\tv.adjacent.remove(edge);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void forceRemoveNodesAndExit(Collection<Node> nodesToRemove) throws Exception;", "@Override\n public void remove() {\n deleteFromModel();\n deleteEdgeEndpoints();\n\n setDeleted(true);\n if (!isCached()) {\n HBaseEdge cachedEdge = (HBaseEdge) graph.findEdge(id, false);\n if (cachedEdge != null) cachedEdge.setDeleted(true);\n }\n }", "public void removeOverlay() {\n MimsPlus[] openImages = ui.getAllOpenImages();\n for (MimsPlus image : openImages) {\n for (Roi roi : rois) {\n Overlay overlay = image.getGraphOverlay();\n int index = overlay.getIndex(roi.getName() + graphID);\n if (index > -1) {\n overlay.remove(index);\n }\n image.setOverlay(overlay);\n }\n }\n }", "private void removeEdgeJointPointDest(Vector<Edge> edges) {\n\t\tfor (Edge e: edges) {\n\t\t\t\tEdge currentEdge = e;\n\t\t\t\tremoveEdge(e);\n\t\t\t\twhile (shapes.contains(currentEdge.getDest()) && currentEdge.getDest() instanceof JoinPoint) {\n\t\t\t\t\tJoinPoint join = (JoinPoint) currentEdge.getDest();\n\t\t\t\t\tshapes.remove(join);\n\t\t\t\t\tcurrentEdge = (Edge) join.getDest();\n\t\t\t\t\tremoveEdge(currentEdge);\n\t\t\t\t}\n\t\t}\n\t}", "protected void clearEdgeMap() {\n\n for (String id : this.edgeMap.keySet()) {\n\n this.ids.remove(id);\n }\n this.edgeMap.clear();\n }", "public void clear() {\r\n for (Edge edge : edges)\r\n edge.disconnect();\r\n for (Vertex vertex : vertices)\r\n vertex.disconnect();\r\n edges.clear();\r\n vertices.clear();\r\n getChildren().remove(1, getChildren().size());\r\n }", "public boolean removeEdge(jq_Field m, Node n) {\n if (addedEdges == null) return false;\n n.removePredecessor(m, this);\n return _removeEdge(m, n);\n }", "@Test\n public void testRemoveSameEdgeTwice() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeData(env),\n env);\n List<Edge<Long, Long>> edgesToBeRemoved = new ArrayList<>();\n edgesToBeRemoved.add(new Edge<>(5L, 1L, 51L));\n edgesToBeRemoved.add(new Edge<>(5L, 1L, 51L));\n\n graph = graph.removeEdges(edgesToBeRemoved);\n\n DataSet<Edge<Long, Long>> data = graph.getEdges();\n List<Edge<Long, Long>> result = data.collect();\n\n expectedResult =\n \"1,2,12\\n\" + \"1,3,13\\n\" + \"2,3,23\\n\" + \"3,4,34\\n\" + \"3,5,35\\n\" + \"4,5,45\\n\";\n\n compareResultAsTuples(result, expectedResult);\n }", "@Override\n public void removeEdge(E pEdge) {\n for (TimeFrame tf : lstTimeFrameOrdering) {\n if (darrGlobalAdjList.get(pEdge.getSource().getId()).get(tf).contains(pEdge)) {\n hmpGraphsAtTimeframes.get(tf).removeEdge(pEdge);\n darrGlobalAdjList.get(pEdge.getSource().getId()).get(tf).remove(pEdge);\n darrGlobalAdjList.get(pEdge.getDestination().getId()).get(tf).remove(pEdge);\n }\n }\n mapAllEdges.remove(pEdge.getId());\n }", "public void removeDuplicates(ArrayList<Edge> edges) {\n\t\tfor (int i = 0; i < edges.size(); i++) {\r\n\t\t\tfor (int j = i + 1; j < edges.size(); j++) {\r\n\t\t\t\tString v11 = edges.get(i).vertex1;\r\n\t\t\t\tString v12 = edges.get(i).vertex2;\r\n\t\t\t\tString v21 = edges.get(j).vertex1;\r\n\t\t\t\tString v22 = edges.get(j).vertex2;\r\n\t\t\t\tif ((v11.equals(v21) && v12.equals(v22)) || (v11.equals(v22) && v12.equals(v21))) {\r\n\t\t\t\t\tedges.remove(j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private Collection<Node> keepOnlySetElement(Collection<Node> nodes) {\n Set<Node> elements = new HashSet<>();\n for (Node node : nodes) {\n Edge originalEdge = synchronizer().getOriginalEdge(node);\n if ((originalEdge != null && !boundaries.edges.contains(originalEdge))\n || !boundaries.nodes.contains(node)) {\n elements.add(node);\n }\n }\n return elements;\n }", "@Test\n public void testRemoveOneValidOneInvalidEdge() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeData(env),\n env);\n List<Edge<Long, Long>> edgesToBeRemoved = new ArrayList<>();\n edgesToBeRemoved.add(new Edge<>(1L, 1L, 51L));\n edgesToBeRemoved.add(new Edge<>(6L, 1L, 61L));\n\n graph = graph.removeEdges(edgesToBeRemoved);\n\n DataSet<Edge<Long, Long>> data = graph.getEdges();\n List<Edge<Long, Long>> result = data.collect();\n\n expectedResult =\n \"1,2,12\\n\"\n + \"1,3,13\\n\"\n + \"2,3,23\\n\"\n + \"3,4,34\\n\"\n + \"3,5,35\\n\"\n + \"4,5,45\\n\"\n + \"5,1,51\\n\";\n\n compareResultAsTuples(result, expectedResult);\n }", "private Set<Edge> basicEdges() {\n Set<Edge> set = new LinkedHashSet<>();\n set.add(new Edge(0, 1, 8, false));\n set.add(new Edge(0, 2, 7, false));\n set.add(new Edge(0, 3, 1, false));\n set.add(new Edge(1, 3, 9, false));\n set.add(new Edge(1, 5, 6, false));\n set.add(new Edge(2, 4, 2, false));\n set.add(new Edge(3, 5, 3, false));\n set.add(new Edge(3, 6, 4, false));\n set.add(new Edge(4, 5, 10, false));\n set.add(new Edge(4, 6, 5, false));\n return set;\n }", "@Override\n\tpublic boolean removeEdge(E vertexX, E vertexY) {\n\t\tUnorderedPair<E> edge = new UnorderedPair<>(vertexX, vertexY);\n\t\treturn edges.remove(edge);\n\t}", "@Test\n public void testRemoveVertices() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeData(env),\n env);\n\n List<Vertex<Long, Long>> verticesToBeRemoved = new ArrayList<>();\n verticesToBeRemoved.add(new Vertex<>(1L, 1L));\n verticesToBeRemoved.add(new Vertex<>(2L, 2L));\n\n graph = graph.removeVertices(verticesToBeRemoved);\n\n DataSet<Edge<Long, Long>> data = graph.getEdges();\n List<Edge<Long, Long>> result = data.collect();\n\n expectedResult = \"3,4,34\\n\" + \"3,5,35\\n\" + \"4,5,45\\n\";\n\n compareResultAsTuples(result, expectedResult);\n }", "public Builder clearEdge() {\n if (edgeBuilder_ == null) {\n edge_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n edgeBuilder_.clear();\n }\n return this;\n }", "public Enumeration undirectedEdges();", "private Edge removeEdge(Node source, Node dest)\r\n\t{\r\n\t final Edge e = source.removeEdge(edgeType.getName(), dest);\r\n\t if (!eSet.remove(e))\r\n\t\tthrow new RuntimeException(\"No Edge from Node <\"+source.getName()\r\n\t\t\t\t\t +\"> to Node <\"+dest.getName()+\">\");\r\n\t return e;\r\n\t}", "private static void removeEntryExitExcConnections(CFG cfg) {\n\t\tCollection<SDGEdge> toRemove = new LinkedList<SDGEdge>();\n\t\tCollection<SDGEdge> toAdd = new LinkedList<SDGEdge>();\n\t\tfor (SDGEdge e : cfg.edgeSet()) {\n\t\t\tif (e.getSource().getKind() == SDGNode.Kind.ENTRY \n\t\t\t\t\t&& (e.getTarget().getKind() == SDGNode.Kind.EXIT || e.getTarget().getKind() == SDGNode.Kind.FORMAL_OUT)) {\n\t\t\t\ttoRemove.add(e);\n\t\t\t\ttoAdd.add(new SDGEdge(e.getSource(), e.getTarget(), SDGEdge.Kind.HELP));\n\t\t\t}\n\t\t}\n\t\t\n\t\tcfg.removeAllEdges(toRemove);\n\t\tcfg.addAllEdges(toAdd);\n\t}", "public boolean removeEdge(Edge edge) {\r\n\t\treturn false;\r\n\t}", "public Future<Void> deleteTelephonyProvidersEdgesEdgegroupAsync(DeleteTelephonyProvidersEdgesEdgegroupRequest request, final AsyncApiCallback<Void> callback) {\n try {\n final SettableFuture<Void> future = SettableFuture.create();\n final boolean shouldThrowErrors = pcapiClient.getShouldThrowErrors();\n pcapiClient.invokeAsync(request.withHttpInfo(), null, new AsyncApiCallback<ApiResponse<Void>>() {\n @Override\n public void onCompleted(ApiResponse<Void> response) {\n notifySuccess(future, callback, response.getBody());\n }\n\n @Override\n public void onFailed(Throwable exception) {\n if (shouldThrowErrors) {\n notifyFailure(future, callback, exception);\n }\n else {\n notifySuccess(future, callback, null);\n }\n }\n });\n return future;\n }\n catch (Throwable exception) {\n return Futures.immediateFailedFuture(exception);\n }\n }", "public void removeNeighbours(){\n\t\tgetNeighbours().removeAll(getNeighbours());\n\t}", "public boolean removeVertices(Collection<? extends V> vertices);", "public void removeVertex();", "@Test\r\n public void testEdges() {\r\n System.out.println(\"edges\");\r\n MyDigraph instance = new MyDigraph();\r\n\r\n Object v1Element = 1;\r\n Object v2Element = 2;\r\n\r\n Vertex v1 = instance.insertVertex(v1Element);\r\n Vertex v2 = instance.insertVertex(v2Element);\r\n\r\n Object edgeElement = \"A\";\r\n Edge e = instance.insertEdge(v1Element, v2Element, edgeElement);\r\n\r\n Collection colection = instance.edges();\r\n boolean result = colection.contains(e);\r\n boolean expectedResult = true;\r\n assertEquals(expectedResult, result);\r\n\r\n instance.removeEdge(e);\r\n result = colection.contains(e);\r\n expectedResult = false;\r\n assertEquals(expectedResult, result);\r\n }", "protected void deselectAllCurves() {\n\t\tfor (int i = 0; i < selectedCurves.size(); ++i) {\n\t\t\tcurves.add(selectedCurves.get(i));\n\t\t}\n\n\t\tselectedCurves.clear();\n\t}", "public void removeEdge(int node1, int node2)\n{\n\tif(getNodes().containsKey(node1) && getNodes().containsKey(node2))\n\t{\n\t\tNode n1 = (Node) getNodes().get(node1);\n\t\tNode n2 = (Node) getNodes().get(node2);\n\n\t\tif(n1.getEdgesOf().containsKey(node2))\n\t\t{\n\t\t\tedge_size--;\n\t\t\tmc++;\n\t\t\tn1.getEdgesOf().remove(node2);\n\n\t\t}\n\t\tif(n2.getEdgesOf().containsKey(node1))\n\t\t{\n\t\t\tedge_size--;\n\t\t\tmc++;\n\t\t\tn2.getEdgesOf().remove(node1);\n\n\t\t}\n\t\t\n\t\telse {\n\t\t\t\n\t\t\t//System.out.println(\"Edge doesnt exist\");\n\t\t}\n\t}\n\telse {\n\t\treturn;\n\t\t//System.out.println(\"src or dest doesnt exist\");\n\t}\n}", "void remove(String group, String name);", "public void removeEdge(int i, int j)\n {\n \tint v = i;\n \tint w = j;\n \t//Create an iterator on the adjacency list of i \n \tIterator<DirectedEdge> it = adj[v].iterator();\n \t//Loop through adj and look for any edge between i and j\n \twhile(it.hasNext())\n \t{\n \t\tDirectedEdge ed = it.next();\n \t\t//If an edge is found, remove it and its reciprocal\n \t\tif(ed.from() == v && ed.to() == w)\n \t\t{\n \t\t\tit.remove();\n \t\t\tit = adj[w].iterator();\n \t\t\twhile(it.hasNext())\n \t\t\t{\n \t\t\t\ted = it.next();\n \t\t\t\tif(ed.from() == w && ed.to() == v)\n \t\t\t\t{\n \t\t\t\t\tit.remove();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t} \t\n \tE-=2;\n }", "public Set getNonEscapingEdgeFields() {\n if (addedEdges == null) return Collections.EMPTY_SET;\n return addedEdges.keySet();\n }", "public void removeEdge(int s,int d) throws Exception\r\n\t{\r\n\t\tif(s>=0&&s<n&&d>=0&&d<n)\r\n\t\t{\r\n\t\t\tLinkedList l=g.get(s);\r\n\t\t\tl.deleteMatched(g.get(d).getHead());\r\n\t\t\t\r\n\t\t\t//undirected graph\r\n\t\t\tLinkedList l1=g.get(d);\r\n\t\t\tl1.deleteMatched(g.get(s).getHead());\r\n\t\t}\r\n\t}", "public abstract Set<? extends EE> edgesOf(VV vertex);", "public void setEdges( List<EdgeType> edges )\n {\n this.edges = edges;\n }", "private void removeBoundaries(Graph graph, Boundaries boundaries) {\n for (Edge boundaryEdge : boundaries.edges) {\n graph.remove(boundaryEdge);\n }\n for (Node boundaryNode : boundaries.nodes) {\n graph.remove(boundaryNode);\n }\n }", "Set<CyEdge> getExternalEdgeList();", "public boolean removeEdge(V tail);", "public void removeAllEndpoints() {\r\n for(int i = 0; i < getEndpoints().size(); i++)\r\n {\r\n removeEndpoint(getEndpoints().get(i));\r\n }\r\n }" ]
[ "0.7309765", "0.7171813", "0.6494713", "0.63748884", "0.6242624", "0.61536324", "0.5961991", "0.5948405", "0.59423494", "0.5936891", "0.58353364", "0.5823967", "0.5790856", "0.5760577", "0.5742255", "0.56586784", "0.56167984", "0.5546796", "0.55335337", "0.5527307", "0.5506164", "0.54650307", "0.5444109", "0.543398", "0.5407765", "0.54063565", "0.53855926", "0.5384168", "0.53507996", "0.53468996", "0.53238744", "0.5311156", "0.52572614", "0.52570313", "0.5251531", "0.5248369", "0.52401435", "0.52395934", "0.5217742", "0.5206895", "0.5200309", "0.5182122", "0.5166883", "0.51602405", "0.5149546", "0.5141877", "0.51000303", "0.505714", "0.50503975", "0.5050059", "0.5049552", "0.5048847", "0.504862", "0.5042693", "0.50303733", "0.50048417", "0.4994984", "0.49891075", "0.49829364", "0.49790913", "0.49790913", "0.49787745", "0.4975425", "0.49695605", "0.49587992", "0.4953845", "0.4948672", "0.49466157", "0.4943575", "0.4926629", "0.49216416", "0.49109477", "0.48965734", "0.48909768", "0.48849967", "0.48785493", "0.48753294", "0.48747888", "0.48630497", "0.48614976", "0.4856943", "0.48564222", "0.48545256", "0.48454452", "0.48442793", "0.48399517", "0.4825724", "0.48253524", "0.48248634", "0.47955588", "0.47922307", "0.47866133", "0.477688", "0.47638124", "0.4763438", "0.4760946", "0.47546187", "0.4741643", "0.4740699", "0.47325903" ]
0.72477645
1
Return the root network for this group. A group can only exist within one root network, and all nodes and edges that are part of the group must exist within that root network also.
CyRootNetwork getRootNetwork();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Group getRoot(){\n assert(root != null);\n return root;\n }", "@Override\r\n public Node[] getRootNodes() {\r\n return new Node[] {getNetworkNode()};\r\n }", "public Node getRoot() {\r\n\r\n\t\treturn root;\r\n\t}", "public final void rule__AstNetwork__Group_8_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5141:1: ( rule__AstNetwork__Group_8_1__0__Impl rule__AstNetwork__Group_8_1__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5142:2: rule__AstNetwork__Group_8_1__0__Impl rule__AstNetwork__Group_8_1__1\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_8_1__0__Impl_in_rule__AstNetwork__Group_8_1__010863);\n rule__AstNetwork__Group_8_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group_8_1__1_in_rule__AstNetwork__Group_8_1__010866);\n rule__AstNetwork__Group_8_1__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstNetwork__Group_10__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5204:1: ( rule__AstNetwork__Group_10__0__Impl rule__AstNetwork__Group_10__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5205:2: rule__AstNetwork__Group_10__0__Impl rule__AstNetwork__Group_10__1\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_10__0__Impl_in_rule__AstNetwork__Group_10__010986);\n rule__AstNetwork__Group_10__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group_10__1_in_rule__AstNetwork__Group_10__010989);\n rule__AstNetwork__Group_10__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstNetwork__Group_10_3__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5331:1: ( rule__AstNetwork__Group_10_3__0__Impl rule__AstNetwork__Group_10_3__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5332:2: rule__AstNetwork__Group_10_3__0__Impl rule__AstNetwork__Group_10_3__1\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_10_3__0__Impl_in_rule__AstNetwork__Group_10_3__011236);\n rule__AstNetwork__Group_10_3__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group_10_3__1_in_rule__AstNetwork__Group_10_3__011239);\n rule__AstNetwork__Group_10_3__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstNetwork__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4388:1: ( ( 'network' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4389:1: ( 'network' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4389:1: ( 'network' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4390:1: 'network'\n {\n before(grammarAccess.getAstNetworkAccess().getNetworkKeyword_1()); \n match(input,57,FOLLOW_57_in_rule__AstNetwork__Group__1__Impl9380); \n after(grammarAccess.getAstNetworkAccess().getNetworkKeyword_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public I_LogicalAddress getRoot() {\n return root;\n }", "public String getGroupPrincipalRoot() {\n return groupPrincipalRoot;\n }", "public AVLNode getRoot() {\n return root;\n }", "public final void rule__AstNetwork__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4345:1: ( rule__AstNetwork__Group__0__Impl rule__AstNetwork__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4346:2: rule__AstNetwork__Group__0__Impl rule__AstNetwork__Group__1\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group__0__Impl_in_rule__AstNetwork__Group__09288);\n rule__AstNetwork__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group__1_in_rule__AstNetwork__Group__09291);\n rule__AstNetwork__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Node getRoot() {\n return root;\n }", "public Node getRoot() {\n return root;\n }", "public Node getRoot() {\n return root;\n }", "public final void rule__AstNetwork__Group_8__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5080:1: ( rule__AstNetwork__Group_8__0__Impl rule__AstNetwork__Group_8__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5081:2: rule__AstNetwork__Group_8__0__Impl rule__AstNetwork__Group_8__1\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_8__0__Impl_in_rule__AstNetwork__Group_8__010741);\n rule__AstNetwork__Group_8__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group_8__1_in_rule__AstNetwork__Group_8__010744);\n rule__AstNetwork__Group_8__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Node getRoot() {\n return root;\n }", "public final void ruleAstNetwork() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:325:2: ( ( ( rule__AstNetwork__Group__0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:326:1: ( ( rule__AstNetwork__Group__0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:326:1: ( ( rule__AstNetwork__Group__0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:327:1: ( rule__AstNetwork__Group__0 )\n {\n before(grammarAccess.getAstNetworkAccess().getGroup()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:328:1: ( rule__AstNetwork__Group__0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:328:2: rule__AstNetwork__Group__0\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group__0_in_ruleAstNetwork634);\n rule__AstNetwork__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstNetworkAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public IAVLNode getRoot() {\n\t\treturn this.root;\n\t}", "public Node<T> getRoot() {\n\t\treturn root;\n\t}", "public final void rule__AstNetwork__Group_8__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5120:1: ( ( ( rule__AstNetwork__Group_8_1__0 )* ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5121:1: ( ( rule__AstNetwork__Group_8_1__0 )* )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5121:1: ( ( rule__AstNetwork__Group_8_1__0 )* )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5122:1: ( rule__AstNetwork__Group_8_1__0 )*\n {\n before(grammarAccess.getAstNetworkAccess().getGroup_8_1()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5123:1: ( rule__AstNetwork__Group_8_1__0 )*\n loop47:\n do {\n int alt47=2;\n int LA47_0 = input.LA(1);\n\n if ( (LA47_0==62) ) {\n alt47=1;\n }\n\n\n switch (alt47) {\n \tcase 1 :\n \t // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5123:2: rule__AstNetwork__Group_8_1__0\n \t {\n \t pushFollow(FOLLOW_rule__AstNetwork__Group_8_1__0_in_rule__AstNetwork__Group_8__1__Impl10828);\n \t rule__AstNetwork__Group_8_1__0();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop47;\n }\n } while (true);\n\n after(grammarAccess.getAstNetworkAccess().getGroup_8_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public SVGElementModel getRoot() {\n \t\treturn store.getRootItems().get(0);\n \t}", "public final void rule__AstNetwork__Group_4__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4832:1: ( rule__AstNetwork__Group_4__0__Impl rule__AstNetwork__Group_4__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4833:2: rule__AstNetwork__Group_4__0__Impl rule__AstNetwork__Group_4__1\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_4__0__Impl_in_rule__AstNetwork__Group_4__010251);\n rule__AstNetwork__Group_4__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group_4__1_in_rule__AstNetwork__Group_4__010254);\n rule__AstNetwork__Group_4__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Node<T> getRoot() {\n return root;\n }", "public DialogueNode getRoot() {\n\t\treturn root;\n\t}", "public final void rule__AstNetwork__Group_10__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5235:1: ( rule__AstNetwork__Group_10__1__Impl rule__AstNetwork__Group_10__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5236:2: rule__AstNetwork__Group_10__1__Impl rule__AstNetwork__Group_10__2\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_10__1__Impl_in_rule__AstNetwork__Group_10__111048);\n rule__AstNetwork__Group_10__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group_10__2_in_rule__AstNetwork__Group_10__111051);\n rule__AstNetwork__Group_10__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstNetwork__Group_4_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4893:1: ( rule__AstNetwork__Group_4_1__0__Impl rule__AstNetwork__Group_4_1__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4894:2: rule__AstNetwork__Group_4_1__0__Impl rule__AstNetwork__Group_4_1__1\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_4_1__0__Impl_in_rule__AstNetwork__Group_4_1__010373);\n rule__AstNetwork__Group_4_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group_4_1__1_in_rule__AstNetwork__Group_4_1__010376);\n rule__AstNetwork__Group_4_1__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public ObjectTreeNode getRoot() {\n return root;\n }", "public Loop getRoot() {\n\t\tfor (Loop lp : parent.keySet()) {\n\t\t\tif (parent.get(lp)==null) return lp;\n\t\t}\n\t\treturn null;\n\t}", "public Node getRoot(){\r\n return this.root;\r\n }", "public final void rule__AstNetwork__Group_6_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5017:1: ( rule__AstNetwork__Group_6_1__0__Impl rule__AstNetwork__Group_6_1__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5018:2: rule__AstNetwork__Group_6_1__0__Impl rule__AstNetwork__Group_6_1__1\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_6_1__0__Impl_in_rule__AstNetwork__Group_6_1__010618);\n rule__AstNetwork__Group_6_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group_6_1__1_in_rule__AstNetwork__Group_6_1__010621);\n rule__AstNetwork__Group_6_1__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Group getParent() {\n com.guidebee.game.engine.scene.Group group = internalGroup.getParent();\n if (group != null) {\n return (Group) group.getUserObject();\n }\n return null;\n }", "public final void rule__AstNetwork__Group__8__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4599:1: ( ( ( rule__AstNetwork__Group_8__0 )? ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4600:1: ( ( rule__AstNetwork__Group_8__0 )? )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4600:1: ( ( rule__AstNetwork__Group_8__0 )? )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4601:1: ( rule__AstNetwork__Group_8__0 )?\n {\n before(grammarAccess.getAstNetworkAccess().getGroup_8()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4602:1: ( rule__AstNetwork__Group_8__0 )?\n int alt42=2;\n int LA42_0 = input.LA(1);\n\n if ( (LA42_0==RULE_ID||(LA42_0>=38 && LA42_0<=45)||LA42_0==58||LA42_0==81||LA42_0==91) ) {\n alt42=1;\n }\n switch (alt42) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4602:2: rule__AstNetwork__Group_8__0\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_8__0_in_rule__AstNetwork__Group__8__Impl9809);\n rule__AstNetwork__Group_8__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getAstNetworkAccess().getGroup_8()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public DefaultMutableTreeNode getRoot()\n {\n return root;\n }", "private Group getRoot() throws GeppettoExecutionException\n\t{\n\t\treturn (Group) ((javax.swing.tree.DefaultMutableTreeNode) recordingsH5File.getRootNode()).getUserObject();\n\t}", "public final void rule__AstNetwork__Group_10__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5306:1: ( ( ( rule__AstNetwork__Group_10_3__0 )* ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5307:1: ( ( rule__AstNetwork__Group_10_3__0 )* )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5307:1: ( ( rule__AstNetwork__Group_10_3__0 )* )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5308:1: ( rule__AstNetwork__Group_10_3__0 )*\n {\n before(grammarAccess.getAstNetworkAccess().getGroup_10_3()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5309:1: ( rule__AstNetwork__Group_10_3__0 )*\n loop48:\n do {\n int alt48=2;\n int LA48_0 = input.LA(1);\n\n if ( (LA48_0==RULE_ID||(LA48_0>=38 && LA48_0<=45)||LA48_0==58||LA48_0==81||LA48_0==91) ) {\n alt48=1;\n }\n\n\n switch (alt48) {\n \tcase 1 :\n \t // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5309:2: rule__AstNetwork__Group_10_3__0\n \t {\n \t pushFollow(FOLLOW_rule__AstNetwork__Group_10_3__0_in_rule__AstNetwork__Group_10__3__Impl11197);\n \t rule__AstNetwork__Group_10_3__0();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop48;\n }\n } while (true);\n\n after(grammarAccess.getAstNetworkAccess().getGroup_10_3()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public AVLNode<T> getRoot() {\n return root;\n }", "public Group getDefaultGroup() {\r\n if (this.defaultGroup == null) {\r\n AppState appState = AppState.retrieveFromRequest();\r\n \r\n //lets see if there is an invite id\r\n final String groupId = appState.getUrlArgObjectOrParam(\"groupId\");\r\n final String groupName = appState.getUrlArgObjectOrParam(\"groupName\");\r\n \r\n //if nothing was passed in\r\n if (StringUtils.isBlank(groupId) && StringUtils.isBlank(groupName)) {\r\n return null;\r\n }\r\n \r\n if (!StringUtils.isBlank(groupId) && !StringUtils.isBlank(groupName)) {\r\n throw new RuntimeException(\"Dont pass in groupId and groupName\");\r\n }\r\n \r\n final Subject loggedInSubject = GrouperUiFilter.retrieveSubjectLoggedIn();\r\n \r\n GuiResponseJs guiResponseJs = GuiResponseJs.retrieveGuiResponseJs();\r\n \r\n GrouperSession grouperSession = null;\r\n \r\n Group group = null;\r\n \r\n try {\r\n grouperSession = GrouperSession.start(loggedInSubject, false);\r\n group = (Group)GrouperSession.callbackGrouperSession(grouperSession, new GrouperSessionHandler() {\r\n \r\n @Override\r\n public Object callback(GrouperSession theGrouperSession) throws GrouperSessionException {\r\n Group theGroup = null;\r\n if (!StringUtils.isBlank(groupId)) {\r\n theGroup = GroupFinder.findByUuid(theGrouperSession, groupId, false);\r\n }\r\n if (!StringUtils.isBlank(groupName)) {\r\n theGroup = GroupFinder.findByName(theGrouperSession, groupName, false);\r\n }\r\n return theGroup;\r\n }\r\n });\r\n \r\n } finally {\r\n GrouperSession.stopQuietly(grouperSession); \r\n }\r\n if (group == null) {\r\n String errorMessage = TagUtils.navResourceString(\"inviteExternalSubjects.invalidGroupUuid\");\r\n errorMessage = StringUtils.replace(errorMessage, \"{0}\", GrouperUiUtils.escapeHtml(StringUtils.defaultString(groupId, groupName), true));\r\n guiResponseJs.addAction(GuiScreenAction.newAlert(errorMessage));\r\n return null;\r\n \r\n }\r\n \r\n grouperSession = GrouperSession.startRootSession(false);\r\n try {\r\n final Group GROUP = group;\r\n boolean canEdit = (Boolean)GrouperSession.callbackGrouperSession(grouperSession, new GrouperSessionHandler() {\r\n \r\n @Override\r\n public Object callback(GrouperSession theGrouperSession) throws GrouperSessionException {\r\n return GROUP.hasUpdate(loggedInSubject) || GROUP.hasAdmin(loggedInSubject);\r\n }\r\n });\r\n if (!canEdit) {\r\n String errorMessage = TagUtils.navResourceString(\"inviteExternalSubjects.invalidGroupPrivileges\");\r\n errorMessage = StringUtils.replace(errorMessage, \"{0}\", GrouperUiUtils.escapeHtml(group.getDisplayName(), true));\r\n guiResponseJs.addAction(GuiScreenAction.newAlert(errorMessage));\r\n return null;\r\n }\r\n this.defaultGroup = group;\r\n \r\n \r\n } finally {\r\n GrouperSession.stopQuietly(grouperSession);\r\n }\r\n \r\n }\r\n return this.defaultGroup; \r\n \r\n }", "public BSTNode<T> getRoot() {\n // DO NOT MODIFY THIS METHOD!\n return root;\n }", "String getDefaultRoot() {\n return mDefaultRoot;\n }", "public RBNode<T, E> getRoot() {\r\n\t\treturn root;\r\n\t}", "public ContactGroup getServerStoredContactListRoot()\n {\n return ssContactList.getRootGroup();\n }", "public final Node GetRootNode(){\n return m_pRoot;\n }", "public final void rule__AstNetwork__Group_6__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4956:1: ( rule__AstNetwork__Group_6__0__Impl rule__AstNetwork__Group_6__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4957:2: rule__AstNetwork__Group_6__0__Impl rule__AstNetwork__Group_6__1\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_6__0__Impl_in_rule__AstNetwork__Group_6__010496);\n rule__AstNetwork__Group_6__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group_6__1_in_rule__AstNetwork__Group_6__010499);\n rule__AstNetwork__Group_6__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\n public Object getRoot() {\n if (this.getParent() == null) {\n return this;\n }\n return this.getParent().getRoot();\n }", "public final void rule__AstNetwork__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4448:1: ( ( '(' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4449:1: ( '(' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4449:1: ( '(' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4450:1: '('\n {\n before(grammarAccess.getAstNetworkAccess().getLeftParenthesisKeyword_3()); \n match(input,58,FOLLOW_58_in_rule__AstNetwork__Group__3__Impl9502); \n after(grammarAccess.getAstNetworkAccess().getLeftParenthesisKeyword_3()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstNetwork__Group__10__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4659:1: ( ( ( rule__AstNetwork__Group_10__0 )? ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4660:1: ( ( rule__AstNetwork__Group_10__0 )? )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4660:1: ( ( rule__AstNetwork__Group_10__0 )? )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4661:1: ( rule__AstNetwork__Group_10__0 )?\n {\n before(grammarAccess.getAstNetworkAccess().getGroup_10()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4662:1: ( rule__AstNetwork__Group_10__0 )?\n int alt43=2;\n int LA43_0 = input.LA(1);\n\n if ( (LA43_0==63) ) {\n alt43=1;\n }\n switch (alt43) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4662:2: rule__AstNetwork__Group_10__0\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_10__0_in_rule__AstNetwork__Group__10__Impl9932);\n rule__AstNetwork__Group_10__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getAstNetworkAccess().getGroup_10()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public BTNode getRootNode() {\n return mRoot;\n }", "public BorderPane getRoot() {\n\t\treturn _root;\n\t}", "public BorderPane getRoot() {\n\t\treturn _root;\n\t}", "public BSTNode<T> getRoot() {\n return root;\n }", "public Object getRoot() {\n\t\treturn null;\n\t}", "public TreeNode<E> getRoot() {\r\n\t\treturn root;\r\n\t}", "public final void rule__AstNetwork__Group_4__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4872:1: ( ( ( rule__AstNetwork__Group_4_1__0 )* ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4873:1: ( ( rule__AstNetwork__Group_4_1__0 )* )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4873:1: ( ( rule__AstNetwork__Group_4_1__0 )* )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4874:1: ( rule__AstNetwork__Group_4_1__0 )*\n {\n before(grammarAccess.getAstNetworkAccess().getGroup_4_1()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4875:1: ( rule__AstNetwork__Group_4_1__0 )*\n loop45:\n do {\n int alt45=2;\n int LA45_0 = input.LA(1);\n\n if ( (LA45_0==62) ) {\n alt45=1;\n }\n\n\n switch (alt45) {\n \tcase 1 :\n \t // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4875:2: rule__AstNetwork__Group_4_1__0\n \t {\n \t pushFollow(FOLLOW_rule__AstNetwork__Group_4_1__0_in_rule__AstNetwork__Group_4__1__Impl10338);\n \t rule__AstNetwork__Group_4_1__0();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop45;\n }\n } while (true);\n\n after(grammarAccess.getAstNetworkAccess().getGroup_4_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public BorderPane getRoot() {\n\t\treturn root;\n\t}", "public KeyedItem getRoot() throws TreeException {\r\n\r\n\t\tif (root != null) {\r\n\t\t\treturn root;\r\n\t\t} else\r\n\t\t\tthrow new TreeException(\"Tree is empty\");\r\n\t}", "public final void rule__AstNetwork__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4376:1: ( rule__AstNetwork__Group__1__Impl rule__AstNetwork__Group__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4377:2: rule__AstNetwork__Group__1__Impl rule__AstNetwork__Group__2\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group__1__Impl_in_rule__AstNetwork__Group__19349);\n rule__AstNetwork__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group__2_in_rule__AstNetwork__Group__19352);\n rule__AstNetwork__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }", "public void setGroupPrincipalRoot(String val) {\n groupPrincipalRoot = val;\n }", "CyNetwork getGroupNetwork();", "public Object getRoot(){\r\n\t\treturn _root;\r\n\t}", "public final void rule__AstNetwork__Group_10_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5360:1: ( rule__AstNetwork__Group_10_3__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5361:2: rule__AstNetwork__Group_10_3__1__Impl\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_10_3__1__Impl_in_rule__AstNetwork__Group_10_3__111296);\n rule__AstNetwork__Group_10_3__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public pt.ist.fenixframework.adt.bplustree.AbstractNodeArray getRoot() {\n return this.root.get();\n }", "public final void rule__AstNetwork__Group_6__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4996:1: ( ( ( rule__AstNetwork__Group_6_1__0 )* ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4997:1: ( ( rule__AstNetwork__Group_6_1__0 )* )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4997:1: ( ( rule__AstNetwork__Group_6_1__0 )* )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4998:1: ( rule__AstNetwork__Group_6_1__0 )*\n {\n before(grammarAccess.getAstNetworkAccess().getGroup_6_1()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4999:1: ( rule__AstNetwork__Group_6_1__0 )*\n loop46:\n do {\n int alt46=2;\n int LA46_0 = input.LA(1);\n\n if ( (LA46_0==62) ) {\n alt46=1;\n }\n\n\n switch (alt46) {\n \tcase 1 :\n \t // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4999:2: rule__AstNetwork__Group_6_1__0\n \t {\n \t pushFollow(FOLLOW_rule__AstNetwork__Group_6_1__0_in_rule__AstNetwork__Group_6__1__Impl10583);\n \t rule__AstNetwork__Group_6_1__0();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop46;\n }\n } while (true);\n\n after(grammarAccess.getAstNetworkAccess().getGroup_6_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public String getRoot() {\n return root;\n }", "protected IsamIndexNode getRoot() {\n\t\treturn root;\n\t}", "public TreeNode<E> getRoot() {\n return root;\n }", "public Node getNetworkNode() {\r\n return network;\r\n }", "public PeerGroup getPeerGroup () {\n return this.manager.getNetPeerGroup();\n }", "Node getNode() {\n return new Group(body.getPolygon(), head.getPolygon());\n }", "public ProcessGroupFlowEntity getRootProcessGroupFlowEntity() {\n Map<String, String> params = new HashMap<String, String>();\n HttpHeaders requestHeaders = security.getAuthorizationHeader();\n HttpEntity<?> requestEntity = new HttpEntity<Object>(requestHeaders);\n\n String theUrl = trasnsportMode + \"://\" + nifiServerHostnameAndPort + \"/nifi-api/flow/process-groups/root\";\n\n HttpEntity<ProcessGroupFlowEntity> response = restTemplate.exchange(theUrl, HttpMethod.GET, requestEntity,\n ProcessGroupFlowEntity.class, params);\n return response.getBody();\n }", "public WAVLNode getRoot() // return the root of the tree\r\n {\r\n return root;\r\n }", "public final void rule__AstNetwork__Group__8() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4587:1: ( rule__AstNetwork__Group__8__Impl rule__AstNetwork__Group__9 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4588:2: rule__AstNetwork__Group__8__Impl rule__AstNetwork__Group__9\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group__8__Impl_in_rule__AstNetwork__Group__89779);\n rule__AstNetwork__Group__8__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group__9_in_rule__AstNetwork__Group__89782);\n rule__AstNetwork__Group__9();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public WAVLNode getRoot()\r\n\t {\r\n\t\t return this.root;\r\n\t }", "public final void rule__AstNetwork__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4436:1: ( rule__AstNetwork__Group__3__Impl rule__AstNetwork__Group__4 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4437:2: rule__AstNetwork__Group__3__Impl rule__AstNetwork__Group__4\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group__3__Impl_in_rule__AstNetwork__Group__39471);\n rule__AstNetwork__Group__3__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group__4_in_rule__AstNetwork__Group__39474);\n rule__AstNetwork__Group__4();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "protected BSTNode root() {\n\t\treturn root;\n\t}", "public String getMainGroup() {\n\t\treturn _mainGroup;\n\t}", "public MoveTrieNode getRoot() {\n return root;\n }", "public final void rule__AstNetwork__Group_10__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5264:1: ( rule__AstNetwork__Group_10__2__Impl rule__AstNetwork__Group_10__3 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5265:2: rule__AstNetwork__Group_10__2__Impl rule__AstNetwork__Group_10__3\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_10__2__Impl_in_rule__AstNetwork__Group_10__211108);\n rule__AstNetwork__Group_10__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group_10__3_in_rule__AstNetwork__Group_10__211111);\n rule__AstNetwork__Group_10__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "IGroup getFullGroup();", "protected TreeNode<E> getRoot() {\n\t\treturn root;\n\t}", "public String getRoot() {\n\t\treturn null;\n\t}", "public final void rule__AstNetwork__Group_8_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5172:1: ( rule__AstNetwork__Group_8_1__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5173:2: rule__AstNetwork__Group_8_1__1__Impl\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_8_1__1__Impl_in_rule__AstNetwork__Group_8_1__110925);\n rule__AstNetwork__Group_8_1__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public SymbolGroup getDefaultGroup() {\n return defaultGroup;\n }", "public int getRoot(){\n\t\t\treturn root;\n\t\t}", "public final void rule__AstNetwork__Group_8__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5109:1: ( rule__AstNetwork__Group_8__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5110:2: rule__AstNetwork__Group_8__1__Impl\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_8__1__Impl_in_rule__AstNetwork__Group_8__110801);\n rule__AstNetwork__Group_8__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\r\n\tpublic Node<T> getRoot() {\r\n\t\treturn raiz;\r\n\t}", "public final void rule__AstNetwork__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4479:1: ( ( ( rule__AstNetwork__Group_4__0 )? ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4480:1: ( ( rule__AstNetwork__Group_4__0 )? )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4480:1: ( ( rule__AstNetwork__Group_4__0 )? )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4481:1: ( rule__AstNetwork__Group_4__0 )?\n {\n before(grammarAccess.getAstNetworkAccess().getGroup_4()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4482:1: ( rule__AstNetwork__Group_4__0 )?\n int alt40=2;\n int LA40_0 = input.LA(1);\n\n if ( (LA40_0==RULE_ID||(LA40_0>=38 && LA40_0<=45)||LA40_0==58||LA40_0==81||LA40_0==91) ) {\n alt40=1;\n }\n switch (alt40) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4482:2: rule__AstNetwork__Group_4__0\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_4__0_in_rule__AstNetwork__Group__4__Impl9563);\n rule__AstNetwork__Group_4__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getAstNetworkAccess().getGroup_4()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstNetwork__Group_10__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5295:1: ( rule__AstNetwork__Group_10__3__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5296:2: rule__AstNetwork__Group_10__3__Impl\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_10__3__Impl_in_rule__AstNetwork__Group_10__311170);\n rule__AstNetwork__Group_10__3__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public PhyloTreeNode getOverallRoot() {\n return overallRoot;\n }", "public TreeNode root() {\n\t\treturn root;\n\t}", "public Region getRoot() {\r\n return root;\r\n }", "public final void rule__AstNetwork__Group__10() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4647:1: ( rule__AstNetwork__Group__10__Impl rule__AstNetwork__Group__11 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4648:2: rule__AstNetwork__Group__10__Impl rule__AstNetwork__Group__11\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group__10__Impl_in_rule__AstNetwork__Group__109902);\n rule__AstNetwork__Group__10__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group__11_in_rule__AstNetwork__Group__109905);\n rule__AstNetwork__Group__11();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public DefaultGraphCell getGroupObject() {\n return groupObject;\n }", "private HtmlElement getRoot()\n\t{\n\t\treturn getBaseRootElement( ROOT_BY );\n\t}", "public int getRoot() {\n return _root;\n }", "public final void rule__AstNetwork__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4357:1: ( ( () ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4358:1: ( () )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4358:1: ( () )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4359:1: ()\n {\n before(grammarAccess.getAstNetworkAccess().getAstNetworkAction_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4360:1: ()\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4362:1: \n {\n }\n\n after(grammarAccess.getAstNetworkAccess().getAstNetworkAction_0()); \n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstNetwork__Group__7() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4556:1: ( rule__AstNetwork__Group__7__Impl rule__AstNetwork__Group__8 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4557:2: rule__AstNetwork__Group__7__Impl rule__AstNetwork__Group__8\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group__7__Impl_in_rule__AstNetwork__Group__79717);\n rule__AstNetwork__Group__7__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group__8_in_rule__AstNetwork__Group__79720);\n rule__AstNetwork__Group__8();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Grouping getGrouping() {\n JsonObject groupingInfo = definition.getObject(GROUPING);\n try {\n return Serializer.<Grouping>deserialize(groupingInfo);\n }\n catch (SerializationException e) {\n return null;\n }\n }", "public final void rule__AstNetwork__Group__6__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4539:1: ( ( ( rule__AstNetwork__Group_6__0 )? ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4540:1: ( ( rule__AstNetwork__Group_6__0 )? )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4540:1: ( ( rule__AstNetwork__Group_6__0 )? )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4541:1: ( rule__AstNetwork__Group_6__0 )?\n {\n before(grammarAccess.getAstNetworkAccess().getGroup_6()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4542:1: ( rule__AstNetwork__Group_6__0 )?\n int alt41=2;\n int LA41_0 = input.LA(1);\n\n if ( (LA41_0==RULE_ID||(LA41_0>=38 && LA41_0<=45)||LA41_0==58||LA41_0==81||LA41_0==91) ) {\n alt41=1;\n }\n switch (alt41) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4542:2: rule__AstNetwork__Group_6__0\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group_6__0_in_rule__AstNetwork__Group__6__Impl9686);\n rule__AstNetwork__Group_6__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getAstNetworkAccess().getGroup_6()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstNetwork__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4407:1: ( rule__AstNetwork__Group__2__Impl rule__AstNetwork__Group__3 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4408:2: rule__AstNetwork__Group__2__Impl rule__AstNetwork__Group__3\n {\n pushFollow(FOLLOW_rule__AstNetwork__Group__2__Impl_in_rule__AstNetwork__Group__29411);\n rule__AstNetwork__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstNetwork__Group__3_in_rule__AstNetwork__Group__29414);\n rule__AstNetwork__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }" ]
[ "0.73755664", "0.590125", "0.58227223", "0.5777705", "0.57731193", "0.574191", "0.5724356", "0.5706297", "0.57022244", "0.56987995", "0.56931525", "0.5687423", "0.5687423", "0.5687423", "0.56794053", "0.56576025", "0.56150806", "0.5550485", "0.55401284", "0.5502695", "0.5489965", "0.5488374", "0.5488371", "0.54874235", "0.54863006", "0.5459216", "0.5453508", "0.5441023", "0.5429763", "0.54212964", "0.54173183", "0.5414962", "0.5411202", "0.5394035", "0.5393583", "0.53868735", "0.53829366", "0.5374263", "0.5372017", "0.5346803", "0.53420866", "0.5329527", "0.5326062", "0.5323347", "0.5288581", "0.5273575", "0.5209359", "0.5202843", "0.5202843", "0.52017546", "0.51960963", "0.5194352", "0.51940256", "0.5191142", "0.518972", "0.5185434", "0.5172595", "0.5169562", "0.51644975", "0.51635396", "0.51549107", "0.51476556", "0.514617", "0.5131883", "0.5109917", "0.5107906", "0.51008195", "0.50964314", "0.5096166", "0.50859284", "0.5084068", "0.5079972", "0.5059857", "0.503506", "0.5032397", "0.50267375", "0.50226414", "0.5022519", "0.50195956", "0.50159705", "0.4998077", "0.49979278", "0.49844527", "0.49651954", "0.49647975", "0.49536088", "0.4950121", "0.4946737", "0.49448553", "0.49411526", "0.49344677", "0.49322468", "0.4903706", "0.48873264", "0.48866934", "0.48865113", "0.4880507", "0.4868341", "0.4862587", "0.48622656" ]
0.6630793
1
graphqljava will mutate GraphQLTypeReference inplace, so we need to create a new instance every time.
static GraphQLFieldDefinition field(@NotNull Set<String> typeNames) { return newFieldDefinition() .name(fieldName) .argument( newArgument() .name(argumentName) .type( new GraphQLNonNull( new GraphQLList( new GraphQLNonNull(new GraphQLTypeReference(_Any.typeName))))) .build()) .type( new GraphQLNonNull( new GraphQLList( GraphQLUnionType.newUnionType() .name(typeName) .possibleTypes( typeNames.stream() .map(GraphQLTypeReference::new) .toArray(GraphQLTypeReference[]::new)) .build()))) .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TypeReference getTypeReference();", "protected JvmParameterizedTypeReference newTypeRef(EObject context, Class<?> type) {\n\t\tTypeReferences typeRefs = getTypeReferences();\n\t\treturn newTypeRef(context, type.getName(), typeRefs.getTypeForName(type, context));\n\t}", "public abstract R createReference(T type, Object value);", "@Override\n public Optional<TypeContext<Reference>> typeContext() {\n return wrappedSerializationContext.typeContext();\n }", "public static TypeReference newTypeReference(int sort) {\n/* 207 */ return new TypeReference(sort << 24);\n/* */ }", "public static com.fasterxml.jackson.core.type.TypeReference<Product> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<Product>() {\n @Override\n public String toString() {\n return \"TypeReference<Product>\";\n }\n };\n }", "public static com.fasterxml.jackson.core.type.TypeReference<ProductVariant> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<ProductVariant>() {\n @Override\n public String toString() {\n return \"TypeReference<ProductVariant>\";\n }\n };\n }", "public static com.fasterxml.jackson.core.type.TypeReference<ReviewCreatedMessagePayload> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<ReviewCreatedMessagePayload>() {\n @Override\n public String toString() {\n return \"TypeReference<ReviewCreatedMessagePayload>\";\n }\n };\n }", "static TypeReference<PagedQueryResult<JsonNode>> resultTypeReference() {\n return new TypeReference<PagedQueryResult<JsonNode>>() {\n @Override\n public String toString() {\n return \"TypeReference<PagedQueryResult<JsonNode>>\";\n }\n };\n }", "ObjectTypeDefinition createObjectTypeDefinition();", "IJvmTypeReferenceProvider getTypeProvider();", "public MappedFeatureTypeReference( QualifiedName featureTypeName ) {\n this.featureTypeName = featureTypeName;\n }", "public static com.fasterxml.jackson.core.type.TypeReference<GraphQLSemanticErrorError> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<GraphQLSemanticErrorError>() {\n @Override\n public String toString() {\n return \"TypeReference<GraphQLSemanticErrorError>\";\n }\n };\n }", "ConceptType createConceptType();", "public static TypeReference newSuperTypeReference(int itfIndex) {\n/* 255 */ itfIndex &= 0xFFFF;\n/* 256 */ return new TypeReference(0x10000000 | itfIndex << 8);\n/* */ }", "public static com.fasterxml.jackson.core.type.TypeReference<GraphQLReferencedResourceNotFoundError> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<GraphQLReferencedResourceNotFoundError>() {\n @Override\n public String toString() {\n return \"TypeReference<GraphQLReferencedResourceNotFoundError>\";\n }\n };\n }", "HxType createReference(final String className);", "HxType createReference(final HxType resolvedType);", "@SuppressWarnings(\"unchecked\")\n protected TypeToken() {\n this.type = getSuperclassTypeParameter(getClass());\n this.rawType = (Class<? super T>) $Gson$Types.getRawType(type);\n this.hashCode = type.hashCode();\n }", "public interface Type<SomeType extends Type<SomeType, SomeThing>,\n SomeThing extends Thing<SomeThing, SomeType>>\n extends SchemaConcept<SomeType> {\n\n @Deprecated\n @CheckReturnValue\n @Override\n default Type<SomeType, SomeThing> asType() {\n return this;\n }\n\n @Override\n Remote<SomeType, SomeThing> asRemote(GraknClient.Transaction tx);\n\n @Deprecated\n @CheckReturnValue\n @Override\n default boolean isType() {\n return true;\n }\n\n interface Local<\n SomeType extends Type<SomeType, SomeThing>,\n SomeThing extends Thing<SomeThing, SomeType>>\n extends SchemaConcept.Local<SomeType>, Type<SomeType, SomeThing> {\n }\n\n /**\n * A Type represents any ontological element in the graph.\n * Types are used to model the behaviour of Thing and how they relate to each other.\n * They also aid in categorising Thing to different types.\n */\n interface Remote<\n SomeRemoteType extends Type<SomeRemoteType, SomeRemoteThing>,\n SomeRemoteThing extends Thing<SomeRemoteThing, SomeRemoteType>>\n extends SchemaConcept.Remote<SomeRemoteType>, Type<SomeRemoteType, SomeRemoteThing> {\n\n //------------------------------------- Modifiers ----------------------------------\n\n /**\n * Changes the Label of this Concept to a new one.\n *\n * @param label The new Label.\n * @return The Concept itself\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> label(Label label);\n\n /**\n * Sets the Type to be abstract - which prevents it from having any instances.\n *\n * @param isAbstract Specifies if the concept is to be abstract (true) or not (false).\n * @return The concept itself\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> isAbstract(Boolean isAbstract);\n\n /**\n * @param role The Role Type which the instances of this Type are allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> plays(Role role);\n\n /**\n * Creates a RelationType which allows this type and a AttributeType to be linked in a strictly one-to-one mapping.\n *\n * @param attributeType The AttributeType which instances of this type should be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> key(AttributeType<?> attributeType);\n\n /**\n * Creates a RelationType which allows this type and a AttributeType to be linked.\n *\n * @param attributeType The AttributeType which instances of this type should be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> has(AttributeType<?> attributeType);\n\n //------------------------------------- Accessors ---------------------------------\n\n /**\n * @return A list of Role Types which instances of this Type can indirectly play.\n */\n Stream<Role.Remote> playing();\n\n /**\n * @return The AttributeTypes which this Type is linked with.\n */\n @CheckReturnValue\n Stream<? extends AttributeType.Remote<?>> attributes();\n\n /**\n * @return The AttributeTypes which this Type is linked with as a key.\n */\n @CheckReturnValue\n Stream<? extends AttributeType.Remote<?>> keys();\n\n /**\n * @return All the the super-types of this Type\n */\n @Override\n Stream<? extends Type.Remote<SomeRemoteType, SomeRemoteThing>> sups();\n\n /**\n * Get all indirect sub-types of this type.\n * The indirect sub-types are the type itself and all indirect sub-types of direct sub-types.\n *\n * @return All the indirect sub-types of this Type\n */\n @Override\n @CheckReturnValue\n Stream<? extends Type.Remote<SomeRemoteType, SomeRemoteThing>> subs();\n\n /**\n * Get all indirect instances of this type.\n * The indirect instances are the direct instances and all indirect instances of direct sub-types.\n *\n * @return All the indirect instances of this type.\n */\n @CheckReturnValue\n Stream<? extends Thing.Remote<SomeRemoteThing, SomeRemoteType>> instances();\n\n /**\n * Return if the type is set to abstract.\n * By default, types are not abstract.\n *\n * @return returns true if the type is set to be abstract.\n */\n @CheckReturnValue\n Boolean isAbstract();\n\n //------------------------------------- Other ----------------------------------\n\n /**\n * Removes the ability of this Type to play a specific Role\n *\n * @param role The Role which the Things of this Type should no longer be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unplay(Role role);\n\n /**\n * Removes the ability for Things of this Type to have Attributes of type AttributeType\n *\n * @param attributeType the AttributeType which this Type can no longer have\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unhas(AttributeType<?> attributeType);\n\n /**\n * Removes AttributeType as a key to this Type\n *\n * @param attributeType the AttributeType which this Type can no longer have as a key\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unkey(AttributeType<?> attributeType);\n\n @Deprecated\n @CheckReturnValue\n @Override\n default Type.Remote<SomeRemoteType, SomeRemoteThing> asType() {\n return this;\n }\n\n @Deprecated\n @CheckReturnValue\n @Override\n default boolean isType() {\n return true;\n }\n }\n}", "public static com.fasterxml.jackson.core.type.TypeReference<GeneralCategoryRecommendation> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<GeneralCategoryRecommendation>() {\n @Override\n public String toString() {\n return \"TypeReference<GeneralCategoryRecommendation>\";\n }\n };\n }", "public ReocType() \r\n {\r\n super();\r\n }", "@VisibleForTesting\n static Value<?> valueToLiteralLegacy(Object value, GraphQLType type, GraphQLContext graphqlContext, Locale locale) {\n assertTrue(!(value instanceof Value), () -> \"Unexpected literal \" + value);\n if (value == null) {\n return null;\n }\n\n if (isNonNull(type)) {\n return handleNonNullLegacy(value, (GraphQLNonNull) type, graphqlContext, locale);\n }\n\n // Convert JavaScript array to GraphQL list. If the GraphQLType is a list, but\n // the value is not an array, convert the value using the list's item type.\n if (isList(type)) {\n return handleListLegacy(value, (GraphQLList) type, graphqlContext, locale);\n }\n\n // Populate the fields of the input object by creating ASTs from each value\n // in the JavaScript object according to the fields in the input type.\n if (type instanceof GraphQLInputObjectType) {\n return handleInputObjectLegacy(value, (GraphQLInputObjectType) type, graphqlContext, locale);\n }\n\n if (!(type instanceof GraphQLScalarType || type instanceof GraphQLEnumType)) {\n throw new AssertException(\"Must provide Input Type, cannot use: \" + type.getClass());\n }\n\n // Since value is an internally represented value, it must be serialized\n // to an externally represented value before converting into an AST.\n final Object serialized = serializeLegacy(type, value, graphqlContext, locale);\n\n // Others serialize based on their corresponding JavaScript scalar types.\n if (serialized instanceof Boolean) {\n return BooleanValue.newBooleanValue().value((Boolean) serialized).build();\n }\n\n String stringValue = serialized.toString();\n // numbers can be Int or Float values.\n if (serialized instanceof Number) {\n return handleNumberLegacy(stringValue);\n }\n\n if (serialized instanceof String) {\n // Enum types use Enum literals.\n if (type instanceof GraphQLEnumType) {\n return EnumValue.newEnumValue().name(stringValue).build();\n }\n\n // ID types can use Int literals.\n if (type == Scalars.GraphQLID && stringValue.matches(\"^[0-9]+$\")) {\n return IntValue.newIntValue().value(new BigInteger(stringValue)).build();\n }\n\n return StringValue.newStringValue().value(stringValue).build();\n }\n\n throw new AssertException(\"'Cannot convert value to AST: \" + serialized);\n }", "Type createType();", "Type createType();", "Type createType();", "public static com.fasterxml.jackson.core.type.TypeReference<ProjectCategoryRecommendationMeta> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<ProjectCategoryRecommendationMeta>() {\n @Override\n public String toString() {\n return \"TypeReference<ProjectCategoryRecommendationMeta>\";\n }\n };\n }", "@Test\n void rawType_rawType() {\n var ref = new TypeRef<String>() {};\n assertEquals(String.class, ref.rawType());\n }", "public static void setInstance(SymTypeExpressionDeSer theInstance) {\n if (null == theInstance) { //in this case, \"reset\" to default type\n instance = new SymTypeExpressionDeSer();\n }\n else {\n instance = theInstance;\n }\n }", "private JavaType(String name) {\n this.name = name;\n }", "protected JvmParameterizedTypeReference newTypeRef(EObject context, String typeName) {\n\t\tTypeReferences typeRefs = getTypeReferences();\n\t\treturn newTypeRef(context, typeName, typeRefs.getTypeForName(typeName, context));\n\t}", "public JavaType getType() { return _type; }", "public static com.fasterxml.jackson.core.type.TypeReference<SetExternalIdChange> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<SetExternalIdChange>() {\n @Override\n public String toString() {\n return \"TypeReference<SetExternalIdChange>\";\n }\n };\n }", "PrimitiveTypeSourceReference createPrimitiveTypeSourceReference();", "private Type mapType(TypeResponse typeResponse) {\n return new Type(typeResponse.getType(), typeResponse.getId());\n }", "UserDefinedType createUserDefinedType();", "TypeDefinition createTypeDefinition();", "@Override\n\tpublic void registerPrimaryTypes() {\n\t\tobjectType = registerJavaType(getBuilder().getName(), ClassType.CLASS);\n\t}", "void createRelationshipTypeToken( int id, String name );", "protected void sequence_LiteralType(ISerializationContext context, LiteralType semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public interface GraphQLFactory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n GraphQLFactory eINSTANCE = io.github.katmatt.graphql.graphQL.impl.GraphQLFactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>Type System Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Type System Definition</em>'.\n * @generated\n */\n TypeSystemDefinition createTypeSystemDefinition();\n\n /**\n * Returns a new object of class '<em>Schema Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Schema Definition</em>'.\n * @generated\n */\n SchemaDefinition createSchemaDefinition();\n\n /**\n * Returns a new object of class '<em>Root Operation Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Root Operation Type Definition</em>'.\n * @generated\n */\n RootOperationTypeDefinition createRootOperationTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Type Definition</em>'.\n * @generated\n */\n TypeDefinition createTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Scalar Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Scalar Type Definition</em>'.\n * @generated\n */\n ScalarTypeDefinition createScalarTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Object Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Object Type Definition</em>'.\n * @generated\n */\n ObjectTypeDefinition createObjectTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Interface Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Interface Definition</em>'.\n * @generated\n */\n InterfaceDefinition createInterfaceDefinition();\n\n /**\n * Returns a new object of class '<em>Field Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Field Definition</em>'.\n * @generated\n */\n FieldDefinition createFieldDefinition();\n\n /**\n * Returns a new object of class '<em>Union Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Union Type Definition</em>'.\n * @generated\n */\n UnionTypeDefinition createUnionTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Enum Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Enum Type Definition</em>'.\n * @generated\n */\n EnumTypeDefinition createEnumTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Enum Value Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Enum Value Definition</em>'.\n * @generated\n */\n EnumValueDefinition createEnumValueDefinition();\n\n /**\n * Returns a new object of class '<em>Input Object Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Input Object Type Definition</em>'.\n * @generated\n */\n InputObjectTypeDefinition createInputObjectTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Input Value Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Input Value Definition</em>'.\n * @generated\n */\n InputValueDefinition createInputValueDefinition();\n\n /**\n * Returns a new object of class '<em>Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Type</em>'.\n * @generated\n */\n Type createType();\n\n /**\n * Returns a new object of class '<em>Named Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Named Type</em>'.\n * @generated\n */\n NamedType createNamedType();\n\n /**\n * Returns a new object of class '<em>List Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>List Type</em>'.\n * @generated\n */\n ListType createListType();\n\n /**\n * Returns a new object of class '<em>Int Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Int Value</em>'.\n * @generated\n */\n IntValue createIntValue();\n\n /**\n * Returns a new object of class '<em>Float Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Float Value</em>'.\n * @generated\n */\n FloatValue createFloatValue();\n\n /**\n * Returns a new object of class '<em>Null Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Null Value</em>'.\n * @generated\n */\n NullValue createNullValue();\n\n /**\n * Returns a new object of class '<em>String Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>String Value</em>'.\n * @generated\n */\n StringValue createStringValue();\n\n /**\n * Returns a new object of class '<em>Boolean Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Boolean Value</em>'.\n * @generated\n */\n BooleanValue createBooleanValue();\n\n /**\n * Returns a new object of class '<em>Enum Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Enum Value</em>'.\n * @generated\n */\n EnumValue createEnumValue();\n\n /**\n * Returns a new object of class '<em>Object Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Object Value</em>'.\n * @generated\n */\n ObjectValue createObjectValue();\n\n /**\n * Returns a new object of class '<em>Object Field</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Object Field</em>'.\n * @generated\n */\n ObjectField createObjectField();\n\n /**\n * Returns a new object of class '<em>Const Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Const Value</em>'.\n * @generated\n */\n ConstValue createConstValue();\n\n /**\n * Returns a new object of class '<em>List Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>List Value</em>'.\n * @generated\n */\n ListValue createListValue();\n\n /**\n * Returns a new object of class '<em>Directive Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Directive Definition</em>'.\n * @generated\n */\n DirectiveDefinition createDirectiveDefinition();\n\n /**\n * Returns a new object of class '<em>Directive</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Directive</em>'.\n * @generated\n */\n Directive createDirective();\n\n /**\n * Returns a new object of class '<em>Argument</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Argument</em>'.\n * @generated\n */\n Argument createArgument();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n GraphQLPackage getGraphQLPackage();\n\n}", "void setObjectType(String objectType);", "@Test\r\n public void testReplace_Vertex_GenericType() {\r\n System.out.println(\"replace\");\r\n MyDigraph instance = new MyDigraph();\r\n\r\n Object v1Element = 1;\r\n Vertex v1 = instance.insertVertex(v1Element);\r\n\r\n Object result = v1.element();\r\n int expectedResult = 1;\r\n assertEquals(expectedResult, result);\r\n\r\n result = instance.replace(v1, 2);\r\n expectedResult = 2;\r\n assertEquals(expectedResult, result);\r\n }", "public abstract TypeLiteral<?> toTypeLiteral(Type type);", "List<LightweightTypeReference> getTypeArguments();", "PSObject getTypeReference();", "FlowType createFlowType();", "QuoteType createQuoteType();", "FieldType createFieldType();", "TypeRepository createTypeRepository();", "ConceptsType createConceptsType();", "TypeDef createTypeDef();", "public static com.fasterxml.jackson.core.type.TypeReference<CartDiscountValue> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<CartDiscountValue>() {\n @Override\n public String toString() {\n return \"TypeReference<CartDiscountValue>\";\n }\n };\n }", "@Override\n protected Type createNewTypeWithoutReflection(int field) {\n return null;\n }", "private void createImplicitFieldType(XtextResource resource, IAcceptor<? super ICodeMining> acceptor) {\n\t\tcreateImplicitVarValType(resource, acceptor, XtendField.class,\n\t\t\tit -> it.getType(),\n\t\t\tit -> {\n\t\t\t\tfinal JvmField inferredField = (JvmField) this.jvmModelAssocitions.getPrimaryJvmElement(it);\n\t\t\t\tif (inferredField == null || inferredField.getType() == null || inferredField.getType().eIsProxy()) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\treturn inferredField.getType().getSimpleName();\n\t\t\t},\n\t\t\tnull,\n\t\t\t() -> this.grammar.getAOPMemberAccess().getInitialValueAssignment_2_3_3_1());\n\t}", "public Type() {\n super();\n }", "public static com.fasterxml.jackson.core.type.TypeReference<GraphQLEditPreviewFailedError> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<GraphQLEditPreviewFailedError>() {\n @Override\n public String toString() {\n return \"TypeReference<GraphQLEditPreviewFailedError>\";\n }\n };\n }", "@Override\r\n\tpublic TypeBinding literalType(BlockScope scope) {\n\t\treturn null;\r\n\t}", "FieldRefType createFieldRefType();", "private TypeDb createTypeInstance(long id, String nameEn) {\n TypeDb typeDb = new TypeDb();\n typeDb.setId(id);\n typeDb.setTypeNameEn(nameEn);\n typeDb.setTypeNameRu(new TypeMapper().toRu(nameEn));\n return typeDb;\n }", "DataType createDataType();", "public org.python.types.Type __new__(org.python.types.Type cls);", "public void fromNative() {\n fromNative(nativeType);\n }", "private MCTypeReference<? extends MCTypeSymbol> initTypeRefGeneralType(ASTPort node, StringBuilder typeName, ASTType astType) {\n MCTypeReference<? extends MCTypeSymbol> typeRef = null;\n typeName.append(ArcTypePrinter.printTypeWithoutTypeArgumentsAndDimension(astType));\n //Log.debug(astType.toString(),\"TYPE:\");\n //Log.debug(typeName,\"TYPEName:\");\n typeRef = new CommonMCTypeReference<MCTypeSymbol>(typeName.toString(), MCTypeSymbol.KIND, currentScope().get());\n typeRef.setDimension(TypesHelper.getArrayDimensionIfArrayOrZero(astType));\n addTypeArgumentsToTypeSymbol(typeRef, astType);\n return typeRef;\n }", "public InsulinType(){\n super();\n }", "protected GEDCOMType() {/* intentionally empty block */}", "@Override\n public void setObjectType(String type) {\n this.objectType = type;\n }", "Type() {\n }", "HarvestType createHarvestType();", "EReference createEReference();", "TypeLiteralExp createTypeLiteralExp();", "protected AtlasTypeRegistry(AtlasTypeRegistry other) {\n registryData = new RegistryData();\n updateSynchronizer = other.updateSynchronizer;\n missingRelationshipDefs = other.missingRelationshipDefs;\n commonIndexFieldNameCache = other.commonIndexFieldNameCache;\n\n resolveReferencesForRootTypes();\n resolveIndexFieldNamesForRootTypes();\n }", "@Pure\n\tprotected boolean isTypeReference(JvmTypeReference typeReference) {\n\t\treturn (typeReference != null && !typeReference.eIsProxy()\n\t\t\t&& typeReference.getType() != null && !typeReference.getType().eIsProxy());\n\t}", "FieldsType createFieldsType();", "@R2ImmutableStyleType\n@Value.Immutable\npublic interface R2InstanceSingleType extends R2InstanceType\n{\n @Override\n @Value.Parameter\n long instanceID();\n\n /**\n * @return The instance array object\n */\n\n @Value.Parameter\n JCGLArrayObjectUsableType arrayObject();\n\n /**\n * @return The instance transform\n */\n\n @Value.Parameter\n R2TransformReadableType transform();\n\n /**\n * @return The instance UV matrix\n */\n\n @Value.Parameter\n PMatrixReadable3x3FType<R2SpaceTextureType, R2SpaceTextureType> uvMatrix();\n}", "public TypeRef(Type genericType) {\n if (genericType == null) {\n throw new IllegalArgumentException(\"Type must not be null\");\n }\n\n type_ = genericType;\n }", "ReferenceRealization createReferenceRealization();", "protected TypeNode insertForwardedReferenceNode (TypeNode parent, String typeName) \n {\n TypeNode node = null;\n \n\t\tif ( typeName == null || typeName.trim().length() == 0 ) return null;\n\n // Same type may be forwarded ref MULTIPLE TIMES\n node = (TypeNode) _nodesHashtable.get(typeName);\n if (node != null) {\n // BUG !!! This FORWARD reference is already in tree since the caller\n // of this method ALREADY checked that this forward ref IS NOT in tree.\n \n TypeDescription meta = (TypeDescription) ((TypeNode)_nodesHashtable.get(typeName)).getObject();\n if ( meta != null ) {\n // Already defined\n node.setLabel(TypeSystemUtils2.getMyShortName(typeName)); // Use short name\n node.setObject(meta);\n _nodesHashtable.put (((TypeDescription)node.getObject()).getName(), node);\n Trace.err(\"??? BUG -- Already defined for \" + typeName);\n }\n } else {\n // NEW forwarded ref\n node = new TypeNode(parent, UimaToolsUtil.getMyShortName(typeName));\n node.setObjectType(IItemTypeConstants.ITEM_TYPE_TYPE); \n // Not yet defined (Forward reference)\n // Cannot use short name if no TypeDescription object (see TreeBaseNode.compare)\n // Trace.trace(\"Forward reference to \" + typeName);\n // _nodesHashtable.put (node.getLabel(), node);\n _nodesHashtable.put (typeName, node);\n \n // Add to undefined type hashtable\n // _undefinedTypesHashtable.put (node.getLabel(), node);\n _undefinedTypesHashtable.put (typeName, node);\n }\n \t\t\n\t\t// Insert \"node\" as child of \"parent\"\n\t\tTypeNode tempNode;\n\t\tif (parent == null) {\n\t\t if (_rootSuper == null) {\n\t\t _rootSuper = node;\n\t\t } else {\n\t\t\t\tif ( (tempNode = _rootSuper.insertChild(node)) != null ) {\n\t\t\t\t\tif (tempNode != node) {\t\t\t\t \n\t\t\t\t\t\t// Duplicate Label\n // Use full name as label\n\t\t\t\t\t\tTrace.trace(\" 1 Duplicate (short name) Label:\" + node.getLabel());\n//\t\t\t\t\t\tnode.setShowFullName(true);\n\t\t\t\t\t\tif (node.getObject() != null) {\n // Use full name as label\n\t\t\t\t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t_rootSuper.insertChild(node);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t} else {\n\t\t\t// parent.insertChild (node);\n\t\t\tif ( (tempNode = parent.insertChild(node)) != null && tempNode != node) {\n\t\t\t\t// Duplicate Label. Use full name as label.\n Trace.trace(\" 2 Duplicate (short name) Label:\" + node.getLabel());\n//\t\t\t\tnode.setShowFullName(true);\n\t\t\t\tif (node.getObject() != null) {\n // Use full name as label\n\t\t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n\t\t\t\t}\t\t\t\t\n\t\t\t\tparent.insertChild(node);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn node;\n\t}", "ScalarTypeDefinition createScalarTypeDefinition();", "public JsonSerde(JavaType javaType) {\n\t\tObjectMapper objectMapper = new ObjectMapper();\n\t\tjsonSerializer = new JsonSerializer<T>(objectMapper, javaType);\n\t\tjsonDeserializer = new JsonDeserializer<T>(objectMapper, javaType);\n\t}", "@Override\n public Class<?> getObjectType() {\n return this.type;\n }", "QueryType createQueryType();", "@Override\n public void serializeWithType(final QuadBackgroundComponent value, final JsonGenerator generator,\n final SerializerProvider provider, final TypeSerializer serializer) throws IOException {\n serialize(value, generator, provider);\n }", "public static <T> TypeDescriptor<T> registerRtType(Class<T> type) throws VilException {\n ITypeAnalyzer analyzer = getTypeAnalyzer();\n String fqName = null == analyzer ? type.getName() : analyzer.getVilName(type);\n if (null == fqName) {\n fqName = type.getName().replace(\"$\", \"\");\n }\n \n String simpleName = strip(fqName, ITypeAnalyzer.SEPARATOR);\n if (0 == simpleName.length()) {\n throw new VilException(\"illegal simple name\", VilException.ID_ALREADY_REGISTERED);\n }\n\n TypeDescriptor<?> sd = INSTANCE.getType(simpleName);\n check(sd, type, simpleName, false);\n if (!fqName.equals(simpleName)) {\n TypeDescriptor<?> fd = INSTANCE.getType(fqName);\n check(fd, type, fqName, true);\n }\n \n RtTypeDescriptor<T> desc = new RtTypeDescriptor<T>(type, fqName);\n if (null == sd) {\n INSTANCE.register(simpleName, desc);\n }\n if (!fqName.equals(simpleName)) {\n INSTANCE.register(fqName, desc);\n }\n desc.resolve();\n IRegisteredStringValueProvider valueProvider = null == analyzer ? null : analyzer.getStringValueProvider(type);\n if (null != valueProvider) {\n StringValueHelper.registerStringValueProvider(type, valueProvider);\n }\n return desc;\n }", "TypeSystemDefinition createTypeSystemDefinition();", "private JavaType(C_PTR primitivePointerType) {\n this.primitivePointerType = primitivePointerType;\n }", "public GraphQLObjectType createType(HibProject project) {\n\t\tBuilder root = newObject();\n\t\troot.name(PROJECT_TYPE_NAME);\n\t\tinterfaceTypeProvider.addCommonFields(root);\n\n\t\t// .name\n\t\troot.field(newFieldDefinition().name(\"name\").description(\"The name of the project\").type(GraphQLString));\n\n\t\t// .rootNode\n\t\troot.field(\n\t\t\tnewFieldDefinition()\n\t\t\t\t.name(\"rootNode\")\n\t\t\t\t.description(\"The root node of the project\")\n\t\t\t\t.type(new GraphQLTypeReference(NODE_TYPE_NAME))\n\t\t\t\t.argument(createLanguageTagArg(true))\n\t\t\t\t.argument(createNodeVersionArg())\n\t\t\t\t.dataFetcher(this::baseNodeFetcher));\n\n\t\treturn root.build();\n\t}", "public interface Type<T> {\n\n /**\n * Returns astyanax serializer responsible for reading/writing value.\n * \n * @return Serializer.\n */\n Serializer<T> getSerializer();\n\n /**\n * Returns name of the cassandra type.\n * \n * @return Cassandra type name.\n */\n String getCassandraName();\n\n}", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type addNewType();", "protected void sequence_Type(ISerializationContext context, Type semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "DomainValuesType createDomainValuesType();", "public ObjectMapper() {\n this.typeConverter = null;\n }", "public Token(TokenType type) {\n\t\tthis.type = type;\n\t\tthis.spelling = type.getSpelling();\n\t}", "abstract public Type type();", "public abstract String getObjectType();", "StructureType createStructureType();", "UpdateType createUpdateType();", "public static <T extends @TestAnnotation2 Number & Comparable> TypeInstance createTypeVariable() {\n AnnotatedType referencedTypeVariable = getAnnotatedType();\n TypeInstance typeInstance = Diamond.types().from(referencedTypeVariable);\n return typeInstance;\n }", "DomainType createDomainType();", "GraphQLSchema transform(GraphQLSchema originalSchema);", "@Override\n protected void assignTypes(Multiset<JReferenceType> typesWithReferenceCounts) {\n assignId(program.getJavaScriptObject());\n assignId(program.getTypeJavaLangObject());\n assignId(program.getTypeJavaLangString());\n\n for (JType type : typesWithReferenceCounts) {\n assignId(type);\n }\n }" ]
[ "0.60102516", "0.5788463", "0.564758", "0.56417", "0.5639298", "0.5580518", "0.5566647", "0.55618215", "0.5542683", "0.55305856", "0.5410044", "0.5344059", "0.533947", "0.5339174", "0.5332134", "0.53027725", "0.5293888", "0.523466", "0.52226436", "0.52130437", "0.5192102", "0.5167762", "0.51650715", "0.5150369", "0.5150369", "0.5150369", "0.51492643", "0.51428723", "0.5138904", "0.5117328", "0.51150227", "0.51091236", "0.5102539", "0.5038362", "0.50240326", "0.5015067", "0.5015034", "0.50102216", "0.50057894", "0.50045085", "0.4955925", "0.49487352", "0.49483237", "0.49322388", "0.49311122", "0.49303952", "0.49236128", "0.49187055", "0.4915311", "0.49025628", "0.49001247", "0.48972705", "0.4892481", "0.48868665", "0.48840174", "0.48780388", "0.48768392", "0.4875223", "0.48663235", "0.48594645", "0.48557487", "0.48392963", "0.48392928", "0.4837314", "0.48270068", "0.48258963", "0.48180223", "0.48146576", "0.48048308", "0.48008102", "0.4798991", "0.47931716", "0.47887745", "0.47867197", "0.47588912", "0.47579494", "0.47518063", "0.47450554", "0.47391304", "0.47383788", "0.47381195", "0.4730383", "0.47295624", "0.47267148", "0.4724776", "0.47227496", "0.4719015", "0.47189623", "0.47181994", "0.47155613", "0.47069782", "0.46999374", "0.4699163", "0.46970025", "0.46957934", "0.46946782", "0.46899647", "0.46877226", "0.46871874", "0.4686894", "0.46803367" ]
0.0
-1
till now only the first groupname gets parsed
private void addGroup(StreamTokenizer st) throws IOException { currentGroups.clear(); st.nextToken(); String gName = "default"; if (st.ttype == StreamTokenizer.TT_EOL) { LoggingSystem.getLogger(this).fine("Warning: empty group name"); st.pushBack(); } else gName = st.sval; // System.out.println("adding "+gName+" to current groups. ["+st.nval+","+st.sval+","+st.ttype+"]"); currentGroups.add(gName); if (groups.get(gName) == null) { Group g = new Group(gName); groups.put(gName, g); } while (st.nextToken() != StreamTokenizer.TT_EOL) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getGroup();", "public String group() { return group; }", "public String getGroup();", "public String getGroupName(){\r\n return Validator.unescapeJava(this.groupName);\r\n }", "private String formatGroupName (String groupName) {\n\t\treturn groupName;\n\t}", "private String parseGroupNameD2K(String line) {\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tsb.append(tokens[0] + \".\");\n\t\tsb.append(tokens[1].replace(';', '_'));\n\t\ttry{\n\t\t\tsb.append(tokens[4].replace('#', '.'));\n\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\t// do nothing\n\t\t}\n\t\treturn sb.toString();\n\t}", "public void setGroupname(java.lang.String newGroupname) {\n\tgroupname = newGroupname;\n}", "@Test\n public void parse_validArgs_returnsGroupCommand() {\n GroupCommand expectedGroupCommand =\n new GroupCommand(new GroupPredicate(new Group(\"CS2101\")));\n assertParseSuccess(parser, \"CS2101\", expectedGroupCommand);\n\n // multiple whitespaces between keywords\n assertParseSuccess(parser, \" \\n CS2101 \\n \\t \", expectedGroupCommand);\n }", "public Group readGroup(String line){\n\t\tStringTokenizer tokenizer = new StringTokenizer(line, \"|\");\n\t\tString code = tokenizer.nextToken();\n\n\t\twhile(code.startsWith(\"0\")){\n\t\t\tcode = code.substring(1, code.length());\n\t\t}\n\n\t\tshort codeValue = new Integer(code).shortValue();\n\t\tString name = tokenizer.nextToken();\n\t\treturn new Group(codeValue,name);\n\t}", "private void parseQuestionGroups()\n\t{\n\t\tlog.info(\"Parsing question groups\");\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Element> groups_elem = doc.selectNodes(\"//document/group_l10ns/rows/row\");\n\t\tfor(Element elem : groups_elem) {\n\n\t\t\tQuestionGroup group = new QuestionGroup();\n\t\t\tgroup.setName(elem.elementText(\"group_name\"));\n\t\t\tgroup.setGid(Integer.parseInt(elem.selectSingleNode(\"gid\").getText()));\n\t\t\tgroup.setLanguage(elem.elementText(\"language\"));\n\n\t\t\tlog.debug(\"Added question group: \" + group.gid);\n\n\t\t\t// Add a description, if there is one\n\t\t\tNode desc = elem.selectSingleNode(\"description\");\n\t\t\tif (desc != null) {\n\t\t\t\tgroup.setDescription(desc.getText());\n\t\t\t}\n\n\t\t\tsurvey.groups.add(group);\n\t\t}\n\n\t}", "default String getGroup() {\n return null;\n }", "private static String getTagGroup(final String fullTag) {\r\n final int index = fullTag.indexOf(\",\");\r\n\r\n if (index == -1) {\r\n return null;\r\n }\r\n\r\n return fullTag.substring(0, index);\r\n }", "public abstract String getDefaultGroup();", "public String getGroupname()\n {\n return group2d;\n }", "private String parseDescrName(String line) {\n\t\t// d1f74a_ 201-209;3-11 DGAIGSTFN LKGIFSALL #7\n\t\t// d1nvra_ 226-253;184-204 IDSAPLALL GIVLTAMLA 0_0:-5_-8 0.477587\n\t\t// GroupName is created as name of domain (remove proceeding 'd') + pdb\n\t\t// number of the first residue\n\t\t// in the second segment (3-11 in the example) increased by 10000 + '_'\n\t\t// + number of cluster (7 in the case)\n\t\t// the residue with fasta number 3 is translated into address A4_ - so\n\t\t// the pdb number is 4\n\t\t// finally the group name will be 1f74a_#10004_7\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tString dom = tokens[0].substring(1);\n\t\tString noClust = \"\";\n\t\t@SuppressWarnings(\"unused\")\n\t\tint shift1 = 0; // segment1 shift\n\t\tint shift2 = 0; // segment2 shift\n\t\ttry {\n\t\t\tif (tokens[4].startsWith(\"#\")) {\n\t\t\t\tnoClust = \"_\" + tokens[4].substring(1);\n\t\t\t} else {\n\t\t\t\tnoClust = \"\";\n\t\t\t}\n\t\t\tif (tokens[4].startsWith(\"0_0\")) {\n\t\t\t\ttokens[4] = tokens[4].replaceFirst(\"0_0:\", \"\");\n\t\t\t\tString[] shifts = tokens[4].split(\"_\");\n\t\t\t\tshift1 = Integer.valueOf(shifts[0]);\n\t\t\t\tshift2 = Integer.valueOf(shifts[1]);\n\t\t\t}\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\t// do nothing keep default values\n\t\t}\n\t\t// get the first number of second segment : e.g. 3 from 201-209;3-11\n\t\tString[] tokensA = tokens[1].split(\";\");\n\t\tString[] tokensB = tokensA[1].split(\"-\");\n\t\tInteger fastaNo = (Integer.valueOf(tokensB[0]) - shift2 >= 0 ? Integer\n\t\t\t\t.valueOf(tokensB[0]) - shift2 : Integer.valueOf(tokensB[0]));\n\n\t\t// get pdb address\n\t\tString pdbResAddr = hashResMapInt2Str.get(dom).get(fastaNo);\n\t\tpdbResAddr = pdbResAddr.substring(1, pdbResAddr.length() - 1);\n\t\tint pdbResNo = Integer.valueOf(pdbResAddr);\n\n\t\treturn (dom + \"#\" + (10000 + pdbResNo) + noClust);\n\t}", "GroupOpt getGroup();", "public java.lang.String getGroupname() {\n\treturn groupname;\n}", "private static String extractGroupName(FloodyGroup floodyGroup) {\n return isBlank(floodyGroup.name())\n ? (\"FloodyGroup-\"\n +\n // append random long number to ensure unique group name\n new Random().nextLong())\n : floodyGroup.name();\n }", "private void editValidItems(GroupOwnerModel group, String[] grps) {\r\n\t\tgroup.setGroupNameList(new ArrayList<String>());\r\n\t\tfor(String str:grps){\r\n\t\t\t for(SelectItem item: groupOwnerModel.getGroupSelectList()){\r\n\t\t\t\tif(str.trim().equalsIgnoreCase(item.getLabel())){\r\n\t\t\t\t\tgroup.getGroupNameList().add(item.getValue().toString());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "Collection getGroupsForPartialName(String partialGroupName) throws Exception;", "void startAll(GroupSG group) throws SAXException;", "Object getGroupID(String groupName) throws Exception;", "public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15509:1: ( ( ( rule__QualifiedName__Group_1__0 )* ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15510:1: ( ( rule__QualifiedName__Group_1__0 )* )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15510:1: ( ( rule__QualifiedName__Group_1__0 )* )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15511:1: ( rule__QualifiedName__Group_1__0 )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedNameAccess().getGroup_1()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15512:1: ( rule__QualifiedName__Group_1__0 )*\r\n loop98:\r\n do {\r\n int alt98=2;\r\n int LA98_0 = input.LA(1);\r\n\r\n if ( (LA98_0==37) ) {\r\n int LA98_2 = input.LA(2);\r\n\r\n if ( (LA98_2==RULE_ID) ) {\r\n int LA98_3 = input.LA(3);\r\n\r\n if ( (synpred155_InternalFin()) ) {\r\n alt98=1;\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n switch (alt98) {\r\n \tcase 1 :\r\n \t // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15512:2: rule__QualifiedName__Group_1__0\r\n \t {\r\n \t pushFollow(FOLLOW_rule__QualifiedName__Group_1__0_in_rule__QualifiedName__Group__1__Impl31359);\r\n \t rule__QualifiedName__Group_1__0();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return ;\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop98;\r\n }\r\n } while (true);\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedNameAccess().getGroup_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "private void parseGroups(String field, Component comp) {\n assert(!field.isEmpty() && comp != null);\n\n Scanner groupStream = new Scanner(field);\n groupStream.useDelimiter(\",\");\n while(groupStream.hasNextInt()){\n comp.addGroup(groupStream.nextInt());\n }\n }", "public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4198:1: ( ( ( rule__QualifiedName__Group_1__0 )* ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4199:1: ( ( rule__QualifiedName__Group_1__0 )* )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4199:1: ( ( rule__QualifiedName__Group_1__0 )* )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4200:1: ( rule__QualifiedName__Group_1__0 )*\n {\n before(grammarAccess.getQualifiedNameAccess().getGroup_1()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4201:1: ( rule__QualifiedName__Group_1__0 )*\n loop38:\n do {\n int alt38=2;\n int LA38_0 = input.LA(1);\n\n if ( (LA38_0==55) ) {\n alt38=1;\n }\n\n\n switch (alt38) {\n \tcase 1 :\n \t // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4201:2: rule__QualifiedName__Group_1__0\n \t {\n \t pushFollow(FOLLOW_rule__QualifiedName__Group_1__0_in_rule__QualifiedName__Group__1__Impl9006);\n \t rule__QualifiedName__Group_1__0();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop38;\n }\n } while (true);\n\n after(grammarAccess.getQualifiedNameAccess().getGroup_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:11033:1: ( ( ( rule__QualifiedName__Group_1__0 )* ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:11034:1: ( ( rule__QualifiedName__Group_1__0 )* )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:11034:1: ( ( rule__QualifiedName__Group_1__0 )* )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:11035:1: ( rule__QualifiedName__Group_1__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameAccess().getGroup_1()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:11036:1: ( rule__QualifiedName__Group_1__0 )*\n loop68:\n do {\n int alt68=2;\n int LA68_0 = input.LA(1);\n\n if ( (LA68_0==30) ) {\n int LA68_2 = input.LA(2);\n\n if ( (LA68_2==RULE_ID) ) {\n int LA68_3 = input.LA(3);\n\n if ( (synpred89_InternalInstances()) ) {\n alt68=1;\n }\n\n\n }\n\n\n }\n\n\n switch (alt68) {\n \tcase 1 :\n \t // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:11036:2: rule__QualifiedName__Group_1__0\n \t {\n \t pushFollow(FOLLOW_rule__QualifiedName__Group_1__0_in_rule__QualifiedName__Group__1__Impl22154);\n \t rule__QualifiedName__Group_1__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop68;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameAccess().getGroup_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\n public String getGroupName(int group) {\n assert 0 <= group && group < groupNames.length;\n \n return groupNames[group];\n }", "void startSequence(GroupSG group) throws SAXException;", "private static List<Group> extractGroups(HttpResponse response) {\n List<Group> groups = new ArrayList<>();\n try {\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Group>>() {\n }.getType();\n groups = gson.fromJson(EntityUtils.toString(response.getEntity()), listType);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return groups;\n }", "void setGroupName(String groupName) {\n this.groupName = new String(groupName);\n }", "@Override\n\tpublic String getGroup() {\n\t\treturn \"Group_\"+SliceName(stdClass);\n\t}", "private void createGroupCommand(Command root){\n\t\tif(codeReader.hasNext(END_GROUP))\n\t\t\tthrow new SLogoException(\"No arguments specified in grouping.\");\n\t\twhile(!codeReader.hasNext(END_GROUP)) {\n\t\t\ttry {\n\t\t\t\thandleSpecialCases(root);\n\t\t\t\tString s = codeReader.next();\n\t\t\t\troot.addChild(parseCommand(s));\n\t\t\t}\n\t\t\tcatch(NoSuchElementException n) {\n\t\t\t\tthrow new SLogoException(\"Unclosed Parenthesis.\");\n\t\t\t}\n\t\t}\n\t\tcodeReader.next();\n\t}", "public String getGroup ()\n {\n return group;\n }", "public String getGroup ()\n {\n return group;\n }", "public String getGroup() {\n return this.group;\n }", "public String getGroupName();", "public IGroupParser getGroupParser() {\n return groupParser;\n }", "public SimpleGroup(final String name) {\n super(name);\n }", "public String getGroupName() {\n return groupName;\n }", "public final void rule__QualifiedName__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4219:1: ( rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4220:2: rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1\n {\n pushFollow(FOLLOW_rule__QualifiedName__Group_1__0__Impl_in_rule__QualifiedName__Group_1__09041);\n rule__QualifiedName__Group_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__QualifiedName__Group_1__1_in_rule__QualifiedName__Group_1__09044);\n rule__QualifiedName__Group_1__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@NotNull\n private static ImportedPackages.ImportedPackage parsePartAsPackageName(ImportedPackage currentPackage, String part, Set<ImportedPackage> result) {\n String[] subParts = part.split(\",\");\n for (int i = 0; i < subParts.length - 1; i++) {\n currentPackage.packageName = subParts[i];\n result.add(currentPackage);\n currentPackage = new ImportedPackage();\n }\n currentPackage.packageName = subParts[subParts.length - 1];\n return currentPackage;\n }", "public String getGroup() {\n return groupName;\n }", "public String getGroup() {\n return group;\n }", "public String getGroup() {\n return group;\n }", "public void setGroupName(String newGroupName)\n {\n this.groupName = newGroupName;\n }", "public Group getGroupData(String groupName);", "public final void rule__GetTitle__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBrowser.g:3701:1: ( rule__GetTitle__Group__0__Impl rule__GetTitle__Group__1 )\n // InternalBrowser.g:3702:2: rule__GetTitle__Group__0__Impl rule__GetTitle__Group__1\n {\n pushFollow(FOLLOW_23);\n rule__GetTitle__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__GetTitle__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private void validationNom(String nameGroup) throws FormValidationException {\n\t\tif (nameGroup != null && nameGroup.length() < 3) {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Le nom d'utilisateur doit contenir au moins 3 caractères.\");\n\t\t\tthrow new FormValidationException(\n\t\t\t\t\t\"Le nom d'utilisateur doit contenir au moins 3 caractères.\");\n\t\t}\n\n\t\t// TODO checker si le nom exist pas ds la bdd\n\t\t// else if (){\n\t\t//\n\t\t// }\n\t}", "public ArrayList parseGroupsXml(InputStream in)\n {\n\n ArrayList<Group> groups = new ArrayList<Group>();\n try\n {\n //Create default handler instance\n ParserHandler handler = new ParserHandler();\n \n //Create parser from factory\n XMLReader parser = XMLReaderFactory.createXMLReader();\n \n //Register handler with parser\n parser.setContentHandler(handler);\n \n //Create an input source from the XML input stream\n InputSource source = new InputSource(in);\n \n //parse the document\n parser.parse(source);\n \n //populate the parsed users list in above created empty list; You can return from here also.\n \n groups = handler.getGroups();\n \n } catch (SAXException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } finally {\n \n }\n return groups;\n \n }", "public String getGroupName()\n {\n return groupName;\n }", "Iterable<String> groups();", "private static String sanitizePackageName(String group) {\n return group.replaceAll(\"-\", \"\");\n }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "public Group getGroup_0() { return cGroup_0; }", "void endAll(GroupSG group) throws SAXException;", "public final void rule__QualifiedName__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4187:1: ( rule__QualifiedName__Group__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4188:2: rule__QualifiedName__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__QualifiedName__Group__1__Impl_in_rule__QualifiedName__Group__18979);\n rule__QualifiedName__Group__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__QualifiedName__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4158:1: ( rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4159:2: rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1\n {\n pushFollow(FOLLOW_rule__QualifiedName__Group__0__Impl_in_rule__QualifiedName__Group__08920);\n rule__QualifiedName__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__QualifiedName__Group__1_in_rule__QualifiedName__Group__08923);\n rule__QualifiedName__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "String getGroupingCode();", "public String getGroupName() {\n return groupName;\n }", "public Group getGroup_1() { return cGroup_1; }", "public Group getGroup_1() { return cGroup_1; }", "public Group getGroup_1() { return cGroup_1; }", "public Group getGroup_1() { return cGroup_1; }", "public Group getGroup_1() { return cGroup_1; }", "public Group getGroup_1() { return cGroup_1; }", "public Group getGroup_1() { return cGroup_1; }", "public Group getGroup_1() { return cGroup_1; }", "public Group getGroup_1() { return cGroup_1; }", "public Group getGroup_1() { return cGroup_1; }", "public Group getGroup_1() { return cGroup_1; }", "public Group getGroup_1() { return cGroup_1; }", "public Group getGroup_1() { return cGroup_1; }", "protected void validateWikiGroup(WikiGroup group) throws WikiException {\r\n\t\tcheckLength(group.getName(), 30);\r\n\t\tgroup.setDescription(StringUtils.substring(group.getDescription(), 0, 200));\r\n\t}", "public String getGroupId(String name);", "public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:15048:1: ( ( ( rule__QualifiedName__Group_1__0 )* ) )\r\n // InternalDroneScript.g:15049:1: ( ( rule__QualifiedName__Group_1__0 )* )\r\n {\r\n // InternalDroneScript.g:15049:1: ( ( rule__QualifiedName__Group_1__0 )* )\r\n // InternalDroneScript.g:15050:2: ( rule__QualifiedName__Group_1__0 )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getQualifiedNameAccess().getGroup_1()); \r\n }\r\n // InternalDroneScript.g:15051:2: ( rule__QualifiedName__Group_1__0 )*\r\n loop114:\r\n do {\r\n int alt114=2;\r\n int LA114_0 = input.LA(1);\r\n\r\n if ( (LA114_0==43) ) {\r\n int LA114_2 = input.LA(2);\r\n\r\n if ( (LA114_2==RULE_ID) ) {\r\n int LA114_3 = input.LA(3);\r\n\r\n if ( (synpred163_InternalDroneScript()) ) {\r\n alt114=1;\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n switch (alt114) {\r\n \tcase 1 :\r\n \t // InternalDroneScript.g:15051:3: rule__QualifiedName__Group_1__0\r\n \t {\r\n \t pushFollow(FOLLOW_106);\r\n \t rule__QualifiedName__Group_1__0();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return ;\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop114;\r\n }\r\n } while (true);\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getQualifiedNameAccess().getGroup_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__QualifiedName__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4250:1: ( rule__QualifiedName__Group_1__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4251:2: rule__QualifiedName__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__QualifiedName__Group_1__1__Impl_in_rule__QualifiedName__Group_1__19103);\n rule__QualifiedName__Group_1__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public String getGroupName() {\r\n return groupName;\r\n }", "public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3258:1: ( ( ( rule__QualifiedName__Group_1__0 )* ) )\n // InternalCsv.g:3259:1: ( ( rule__QualifiedName__Group_1__0 )* )\n {\n // InternalCsv.g:3259:1: ( ( rule__QualifiedName__Group_1__0 )* )\n // InternalCsv.g:3260:2: ( rule__QualifiedName__Group_1__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getQualifiedNameAccess().getGroup_1()); \n }\n // InternalCsv.g:3261:2: ( rule__QualifiedName__Group_1__0 )*\n loop26:\n do {\n int alt26=2;\n int LA26_0 = input.LA(1);\n\n if ( (LA26_0==33) ) {\n int LA26_2 = input.LA(2);\n\n if ( (LA26_2==RULE_ID) ) {\n alt26=1;\n }\n\n\n }\n\n\n switch (alt26) {\n \tcase 1 :\n \t // InternalCsv.g:3261:3: rule__QualifiedName__Group_1__0\n \t {\n \t pushFollow(FOLLOW_35);\n \t rule__QualifiedName__Group_1__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop26;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getQualifiedNameAccess().getGroup_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "java.lang.String getGroupId();", "java.lang.String getGroupId();", "void startChoice(GroupSG group) throws SAXException;", "public static String parseElId(String name) {\n String patternString = \"(^[GT]\\\\w+\\\\.?\\\\w*):\";\n Pattern pattern = Pattern.compile(patternString);\n java.util.regex.Matcher matcher = pattern.matcher(name);\n if (matcher.find())\n return matcher.group(1);\n else\n return null;\n }", "@Test\n\tpublic void testGroupName() {\n\t\tString groupStr1 = \"a\";\n\t\tString groupStr2 = \"a/b/c\";\n\n\t\tint oldsize1 = VintageConfigWebUtils.lookup(groupStr1).size();\n\t\tint oldsize2 = VintageConfigWebUtils.lookup(groupStr2).size();\n\n\t\tVintageConfigWebUtils.register(groupStr1, keyString, valueString);\n\t\tVintageConfigWebUtils.register(groupStr2, keyString, valueString);\n\n\t\tint newsize1 = VintageConfigWebUtils.lookup(groupStr1).size();\n\t\tint newsize2 = VintageConfigWebUtils.lookup(groupStr2).size();\n\n\t\tassertEquals(oldsize1 + 1, newsize1);\n\t\tassertEquals(oldsize2 + 1, newsize2);\n\n\t\tList<String> nodesList = VintageConfigWebUtils.lookup(\"a/b\");\n\n\t\tVintageConfigWebUtils.unregister(groupStr1, keyString);\n\t\tVintageConfigWebUtils.unregister(groupStr2, keyString);\n\n\t\t// check the key number of group \"a/b\"\n\t\tSystem.out.print(nodesList.size());\n\t\tassertEquals(0, nodesList.size());\n\t}", "private MeetingGroup getMeetingGroup(String nameMeetingGroup){\n \tMeetingGroup Mg = null;\n \tfor(MeetingGroup mG : meetingGroups){\n \t\tif(mG.getName().equals(nameMeetingGroup)){\n \t\t\tMg=mG;\n \t\t}\n \t}\n \treturn Mg;\n }", "public ArrayList<DanceGroup> parseGroup(String file,ArrayList<DanceGroup> danceGroups) {\n\t\tBufferedReader br = null;\n\t\tline = \"\";\n\t\tBoolean first = true;\n\t\tArrayList<DanceGroup> groupList = danceGroups;\n\t\t//Make danceGroups from danceGroups.csv\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\tif(!first) {\n\t\t\t\t\tString[] lineArr = line.split(\"\\t\");\n\t\t\t\t\tif(lineArr[0] != null) {\n\t\t\t\t\t\tlineArr[0] = lineArr[0].trim();\n\t\t\t\t\t\tDanceGroup d = new DanceGroup(lineArr[0]);\n\t\t\t\t\t\tgroupList.add(d);\n\t\t\t\t\t\tString[] nameArr = lineArr[1].split(CSV_SPLIT);\n\t\t\t\t\t\tfor(String s:nameArr) {\n\t\t\t\t\t\t\ts = s.trim();\n\t\t\t\t\t\t\td.addMember(s);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfirst = false;\n\t\t\t}\n\t\t} catch(FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif(br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfirst = true;\n\t\treturn groupList;\n\t}", "@Test\n public void testGroups() {\n assertThat(regex(or(e(\"0\"), e(\"1\"), e(\"2\")))).isEqualTo(\"0|1|2\");\n // Optional groups always need parentheses.\n assertThat(regex(opt(e(\"0\"), e(\"1\"), e(\"2\")))).isEqualTo(\"(?:0|1|2)?\");\n // Once a group has prefix or suffix, parentheses are needed.\n assertThat(regex(\n seq(\n or(e(\"0\"), e(\"1\")),\n e(\"2\"))))\n .isEqualTo(\"(?:0|1)2\");\n }", "Group(String name) {\n this(name, new ArrayList<>());\n }", "public Group group(String name)\n\t{\n\t\tList<Element> list = filter(p -> p.getName().equals(name) && p instanceof Group);\n\t\t\n\t\tif (list != null && list.size() > 0)\n\t\t{\n\t\t\tif (list.size() > 1)\n\t\t\t\tSystem.out.println(\"Warning: Returning first of many groups with duplicate names\");\n\t\t\t\n\t\t\treturn (Group) list.get(0);\n\t\t}\n\t\telse return null;\n\t}" ]
[ "0.72236526", "0.63279366", "0.6279273", "0.61502403", "0.61061215", "0.60743594", "0.6028893", "0.6011432", "0.5977064", "0.59677386", "0.5958712", "0.59375554", "0.5850466", "0.58392596", "0.5827252", "0.5816125", "0.5810856", "0.5768682", "0.5750036", "0.5743188", "0.57416254", "0.5724394", "0.57182556", "0.56884533", "0.56666815", "0.56562096", "0.56057084", "0.5595282", "0.5568956", "0.55650055", "0.55625355", "0.5562411", "0.5551944", "0.5551944", "0.5483693", "0.547667", "0.54750764", "0.5471595", "0.5461288", "0.5459726", "0.5457912", "0.5443002", "0.5437038", "0.5437038", "0.5426269", "0.54257196", "0.542055", "0.54177254", "0.54113185", "0.5409836", "0.53952575", "0.53942287", "0.539406", "0.539406", "0.539406", "0.539406", "0.539406", "0.539406", "0.539406", "0.539406", "0.539406", "0.539406", "0.539406", "0.539406", "0.539406", "0.539406", "0.5392495", "0.53899914", "0.5371512", "0.5370905", "0.53674453", "0.5364606", "0.5364606", "0.5364606", "0.5364606", "0.5364606", "0.5364606", "0.5364606", "0.5364606", "0.5364606", "0.5364606", "0.5364606", "0.5364606", "0.5364606", "0.5359542", "0.53592914", "0.5358385", "0.5351961", "0.53457147", "0.5327791", "0.5326546", "0.5326546", "0.5324294", "0.53234226", "0.53183323", "0.5315375", "0.53097445", "0.53068924", "0.53045285", "0.5302159" ]
0.62762123
3
TODO: check what smoothening should do...
void setSmoothening(boolean smoothShading) { if (true) return; smooth = smoothShading; material.setAttribute(CommonAttributes.POLYGON_SHADER + "." + CommonAttributes.SMOOTH_SHADING, smooth); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "public void method_4270() {}", "@Override\n public void perish() {\n \n }", "private void strin() {\n\n\t}", "private void kk12() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "public abstract void mo70713b();", "public abstract void wrapup();", "protected void mo6255a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "private static void cajas() {\n\t\t\n\t}", "private void toRent() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "private void m50366E() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public abstract void mo27385c();", "public abstract void mo6549b();", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void jugar() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21877s() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "public abstract void mo56925d();", "private void level7() {\n }", "public abstract void mo27386d();", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public abstract void mo2624j();", "double passer();", "public void skystonePos4() {\n }", "public final void mo51373a() {\n }", "zzafe mo29840Y() throws RemoteException;", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public abstract Object mo26777y();", "protected OpinionFinding() {/* intentionally empty block */}", "public void redibujarAlgoformers() {\n\t\t\n\t}", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "@Override\n\tpublic void preBacktrack() {\n\t\t\n\t}", "@Override\n\tprotected void flowThrough(Object in, Object d, Object out) {\n\t\t\n\t}", "void mo57277b();", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "public void skystonePos6() {\n }", "private void sout() {\n\t\t\n\t}", "int a(java.lang.String r8, com.google.ho r9, java.lang.StringBuilder r10, boolean r11, com.google.ae r12) {\n /*\n r7 = this;\n r1 = 0;\n r0 = r8.length();\t Catch:{ RuntimeException -> 0x0009 }\n if (r0 != 0) goto L_0x000b;\n L_0x0007:\n r0 = r1;\n L_0x0008:\n return r0;\n L_0x0009:\n r0 = move-exception;\n throw r0;\n L_0x000b:\n r2 = new java.lang.StringBuilder;\n r2.<init>(r8);\n r0 = J;\n r3 = 25;\n r0 = r0[r3];\n if (r9 == 0) goto L_0x001c;\n L_0x0018:\n r0 = r9.a();\n L_0x001c:\n r0 = r7.a(r2, r0);\n if (r11 == 0) goto L_0x0025;\n L_0x0022:\n r12.a(r0);\t Catch:{ RuntimeException -> 0x0040 }\n L_0x0025:\n r3 = com.google.aw.FROM_DEFAULT_COUNTRY;\t Catch:{ RuntimeException -> 0x0042 }\n if (r0 == r3) goto L_0x005e;\n L_0x0029:\n r0 = r2.length();\t Catch:{ RuntimeException -> 0x003e }\n r1 = 2;\n if (r0 > r1) goto L_0x0044;\n L_0x0030:\n r0 = new com.google.ao;\t Catch:{ RuntimeException -> 0x003e }\n r1 = com.google.dk.TOO_SHORT_AFTER_IDD;\t Catch:{ RuntimeException -> 0x003e }\n r2 = J;\t Catch:{ RuntimeException -> 0x003e }\n r3 = 26;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x003e }\n r0.<init>(r1, r2);\t Catch:{ RuntimeException -> 0x003e }\n throw r0;\t Catch:{ RuntimeException -> 0x003e }\n L_0x003e:\n r0 = move-exception;\n throw r0;\n L_0x0040:\n r0 = move-exception;\n throw r0;\n L_0x0042:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x003e }\n L_0x0044:\n r0 = r7.a(r2, r10);\n if (r0 == 0) goto L_0x0050;\n L_0x004a:\n r12.a(r0);\t Catch:{ RuntimeException -> 0x004e }\n goto L_0x0008;\n L_0x004e:\n r0 = move-exception;\n throw r0;\n L_0x0050:\n r0 = new com.google.ao;\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\n r2 = J;\n r3 = 24;\n r2 = r2[r3];\n r0.<init>(r1, r2);\n throw r0;\n L_0x005e:\n if (r9 == 0) goto L_0x00d2;\n L_0x0060:\n r0 = r9.L();\n r3 = java.lang.String.valueOf(r0);\n r4 = r2.toString();\n r5 = r4.startsWith(r3);\n if (r5 == 0) goto L_0x00d2;\n L_0x0072:\n r5 = new java.lang.StringBuilder;\n r3 = r3.length();\n r3 = r4.substring(r3);\n r5.<init>(r3);\n r3 = r9.X();\n r4 = r7.o;\n r6 = r3.g();\n r4 = r4.a(r6);\n r6 = 0;\n r7.a(r5, r9, r6);\n r6 = r7.o;\n r3 = r3.f();\n r3 = r6.a(r3);\n r6 = r4.matcher(r2);\t Catch:{ RuntimeException -> 0x00ca }\n r6 = r6.matches();\t Catch:{ RuntimeException -> 0x00ca }\n if (r6 != 0) goto L_0x00af;\n L_0x00a5:\n r4 = r4.matcher(r5);\t Catch:{ RuntimeException -> 0x00cc }\n r4 = r4.matches();\t Catch:{ RuntimeException -> 0x00cc }\n if (r4 != 0) goto L_0x00bb;\n L_0x00af:\n r2 = r2.toString();\t Catch:{ RuntimeException -> 0x00ce }\n r2 = r7.a(r3, r2);\t Catch:{ RuntimeException -> 0x00ce }\n r3 = com.google.dz.TOO_LONG;\t Catch:{ RuntimeException -> 0x00ce }\n if (r2 != r3) goto L_0x00d2;\n L_0x00bb:\n r10.append(r5);\t Catch:{ RuntimeException -> 0x00d0 }\n if (r11 == 0) goto L_0x00c5;\n L_0x00c0:\n r1 = com.google.aw.FROM_NUMBER_WITHOUT_PLUS_SIGN;\t Catch:{ RuntimeException -> 0x00d0 }\n r12.a(r1);\t Catch:{ RuntimeException -> 0x00d0 }\n L_0x00c5:\n r12.a(r0);\n goto L_0x0008;\n L_0x00ca:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00cc }\n L_0x00cc:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00ce }\n L_0x00ce:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00d0 }\n L_0x00d0:\n r0 = move-exception;\n throw r0;\n L_0x00d2:\n r12.a(r1);\n r0 = r1;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, com.google.ho, java.lang.StringBuilder, boolean, com.google.ae):int\");\n }", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "private void offer() {\n\t\t\t\n\t\t}", "public void mo21793R() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void challenge7() {\n\n\t}", "public void mo3376r() {\n }", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "abstract int pregnancy();", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void swim() {\n\t\t\n\t}", "public abstract void mo35054b();", "@Override\n\tpublic void preorder() {\n\n\t}", "public void mo21785J() {\n }", "public abstract String mo9239aw();", "public abstract void mo42331g();", "@Override\n\tpublic void challenge9() {\n\n\t}", "@Override\n\tpublic void inorder() {\n\n\t}", "zzang mo29839S() throws RemoteException;", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public abstract void mo30696a();", "public abstract int mo9754s();", "@Override\r\n\tprotected void processTarget() {\n\r\n\t}", "@Override\r\n\tprotected void processTarget() {\n\r\n\t}", "@Override\n\tpublic void breath() {\n\n\t}", "public void mo21787L() {\n }", "public void mo23813b() {\n }", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "public void mo21794S() {\n }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "void scavenge();", "public void verliesLeven() {\r\n\t\t\r\n\t}", "public void skystonePos5() {\n }", "public abstract String mo13682d();", "public void mo3749d() {\n }", "@Override\r\n\tpublic void laught() {\n\r\n\t}" ]
[ "0.6013485", "0.5764953", "0.5655527", "0.5648325", "0.5575049", "0.5553173", "0.5532849", "0.5520157", "0.5512753", "0.5461871", "0.54244775", "0.54147947", "0.5394918", "0.53691214", "0.5355846", "0.53116953", "0.5242806", "0.523533", "0.5231567", "0.5229291", "0.5218175", "0.52059376", "0.5204933", "0.52048177", "0.519642", "0.51935285", "0.5141342", "0.5123448", "0.5114033", "0.51034987", "0.5097836", "0.5091709", "0.5083517", "0.5077868", "0.5076249", "0.506569", "0.5065199", "0.5056578", "0.50466555", "0.50466555", "0.503505", "0.5028863", "0.50222605", "0.50218767", "0.5021028", "0.50161356", "0.49931598", "0.49931294", "0.49777788", "0.49641666", "0.49537826", "0.49510458", "0.49458027", "0.49425596", "0.49413827", "0.49395296", "0.4936163", "0.49324977", "0.49289665", "0.4927888", "0.4914567", "0.49119556", "0.48989996", "0.48977748", "0.48966417", "0.48907164", "0.48895177", "0.48877627", "0.4887341", "0.48820925", "0.48777688", "0.4876435", "0.48735416", "0.48693264", "0.48614702", "0.4858818", "0.4858595", "0.48550075", "0.48535663", "0.48532867", "0.4843827", "0.48438078", "0.48418522", "0.48409045", "0.48407942", "0.48407942", "0.483953", "0.48392498", "0.48386684", "0.4838492", "0.48375085", "0.48363522", "0.4836205", "0.48299077", "0.48292387", "0.4828483", "0.4826895", "0.48222375", "0.48206058", "0.481946", "0.481845" ]
0.0
-1
make sure our public constants exist and have correct values
@Test public void testPublicConstants() { ip = new ImagePlus(); assertEquals(0,ImagePlus.GRAY8); assertEquals(1,ImagePlus.GRAY16); assertEquals(2,ImagePlus.GRAY32); assertEquals(3,ImagePlus.COLOR_256); assertEquals(4,ImagePlus.COLOR_RGB); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Constants() {\n\t\tthrow new AssertionError();\n\t}", "private Constants() {\n throw new AssertionError();\n }", "private Constantes() {\r\n\t\t// No way\r\n\t}", "private ApplicationConstants(){\n\t\t//not do anything \n\t}", "private PuzzleConstants() {\n // not called\n }", "private Constants() {\n }", "private Constants() {\n }", "private Constants() {\n\n }", "public void constants_should_be_unique() throws IllegalAccessException {\n Class<Constants> klass = Constants.class;\n Map<String, Field> values = new HashMap<String, Field>();\n for (Field f : klass.getFields()) {\n Object value = f.get(klass);\n if (!(value instanceof String))\n continue;\n String val = (String) value;\n Field sameValueField = values.get(val);\n if (sameValueField != null) {\n fail(\"Constants \" + f.getName() + \" and \" + sameValueField.getName() + \" have same value \" + val);\n } else {\n values.put(val, f);\n }\n }\n }", "private USBConstant() {\r\n\r\n\t}", "private LevelConstants() {\n\t\t\n\t}", "private WidgetConstants() {\n throw new AssertionError();\n }", "private Constants(){\n }", "private CellManagerConstants() { \r\n throw new AssertionError();\r\n }", "private LabelUtilsConstants() {}", "private CommonUIConstants()\n {\n }", "public Constants() {\n }", "private FlashCardConstants() {\n throw new AssertionError(\"Constructor should never be called for this class\");\n }", "private RBACConstants() {\r\n }", "private VolumeDataConstants() {\r\n \r\n }", "private FTConfigConstants() {\n }", "private SecurityConsts()\r\n\t{\r\n\r\n\t}", "protected NConstants() {\n }", "private LoggerConstants() {\n\t\tsuper();\n\t}", "private RpcRawTransactionsMethodsConstants() {\n throw new AssertionError();\n }", "public interface MyConstants {\n String ISPROCTECTED =\"isProctected\";\n String SAFENUMBER = \"safenumber\";\n String SIMNUMBER = \"simnumber\";\n String SPFILE = \"config\";\n String PASSWORD = \"password\";\n String ISSETUP = \"isSetup\";\n}", "private TOTPAuthenticatorConstants() {\n\t}", "private DVSTestConstants()\n {\n\n }", "public interface Constants {\r\n public static final String APPLE_PRODUCT_CODE = \"APP1456\";\r\n public static final String ORANGE_PRODUCT_CODE = \"ORG3456\";\r\n public static final Double APPLE_PRODUCT_PRICE = 0.60;\r\n public static final Double ORANGE_PRODUCT_PRICE = 0.25;\r\n public static final int MAGIC_NUMBER_ZERO = 0;\r\n public static final int MAGIC_NUMBER_TWO = 2;\r\n public static final int MAGIC_NUMBER_THREE = 3;\r\n public static final int MAGIC_NUMBER_FIVE = 5;\r\n public static final int MAGIC_NUMBER_SEVEN = 7;\r\n public static final int MAGIC_NUMBER_NINE = 9;\r\n}", "public void testAddressStateConstant() {\n assertEquals(\"ADDRESS_STATE is incorrect\", UserConstants.ADDRESS_STATE, \"address-state\");\n }", "public interface Constants {\n\n String CURRENT_SCORE = \"CURRENT_SCORE\";\n\n String HIGH_SCORES = \"HIGH_SCORES\";\n\n String DB_WRITER = \"DB_WRITER\";\n\n String DB_READER = \"DB_READER\";\n\n String DB_HELPER = \"DB_HELPER\";\n\n\n}", "private Const() {\n }", "public interface Constants {\r\n\r\n\tpublic final static int UP = 1000;\r\n\tpublic final static int DOWN = 1001;\r\n\tpublic final static int RIGHT = 1002;\r\n\tpublic final static int LEFT = 1003;\r\n\t\r\n\t\r\n\tpublic final static int EMPTY = 0;\r\n\tpublic final static int ROAD = 1;\r\n\tpublic final static int TOWER = 2;\r\n\tpublic final static int NPC = 3;\r\n\tpublic final static int NPC_GENERATOR = 4;\r\n\tpublic final static int CASTLE = 5;\r\n\tpublic final static int LANDSCAPE = 6;\r\n\t\r\n\tpublic final static int LANDSCAPE_TREE_1 = 61;\r\n\tpublic final static int LANDSCAPE_TREE_2 = 62;\r\n\tpublic final static int LANDSCAPE_TREE_3 = 63;\r\n\t\r\n\tpublic final static int FIELD_END = 7;\r\n\t\r\n}", "private GPSConst()\n\t{\n\t\t\n\t}", "interface TestConstants {\n /** Address that passes the email REGEX validation. */\n String GOOD_EMAIL = \"Jim@hotmail.com\";\n \n /** 10 digit phone number that meets our phone REGEX validation. */\n String GOOD_PHONE = \"5551112222\";\n \n /** There is no REGEX for real names, it just needs to not be blank. */\n String GOOD_NAME = \"Jim Bob\";\n \n /** int for testing good values in Job. */\n int GOOD_INT = 3;\n \n /** int for testing bad values in Job. */\n int BAD_INT = -5;\n \n /** String null value to test for catching cast errors */\n String BAD_STRING = null;\n \n /** String value to test for sunny day string */\n String GOOD_STRING = \"STRING\";\n \n /** Park null value to test for catching cast errors */\n Park P_NULL = null;\n}", "public interface VerificationConst {\n\t/**\n\t * Минимальные габариты зала\n\t */\n\tpublic static final int MIN_SECTOR_DIMENSIONS = 1000;\n\t/**\n\t * минимальные габариты стеллажа\n\t */\n\tpublic static final int MIN_RACK_DIMENSIONS = 10;\n\t/**\n\t * минимальные габариты полки стеллажа\n\t */\n\tpublic static final int MIN_RACK_SHELF_DIMENSIONS = 5;\n}", "@Override\n public boolean isConstant() {\n return false;\n }", "public interface Constants\n{\n\tString EMAIL = \"email\";\n\tString RECORD_ID = \"_id\";\n\tString ENTRY_DATE = \"entryDate\";\n\tString DATE_FORMAT = \"yyyy-MM-dd'T'HH:mm:ssXXX\";\n\tString LEADS = \"leads\";\n}", "public interface UUCConstants {\n\t\n\n\tpublic String SERVICE_NAME = \"uuc.service.name\";\n\t\n\tpublic String SERVICE_ID = \"uuc.service.id\";\n\t\n\tpublic String SERVICE_URI = \"uuc.service.url\";\n\n\tpublic String USER_ID = \"uuc.user.id\";\n\t\n\tpublic String USER_NAME = \"uuc.user.name\";\n\t\n\tpublic String USER_EMAIL = \"uuc.user.email\";\n\t\n\tpublic String USER_GROUP=\"uuc.user.group\";\n\t\n\tpublic String USER_TITLE = \"uuc.user.title\";\n\t\n\tpublic String USER_LEVEL = \"uuc.user.level\";\n\t\n\tpublic String USER_PHOTO = \"uuc.user.photo\";\n\t\n\tpublic String USER_PHONE = \"uuc.user.phone\";\n\t\n\tpublic String USER_PASSWORD=\"uuc.user.password\";\n\t\n\tpublic String USER_EMPLOYEE_ID = \"uuc.user.employeeid\";\n}", "private void checkForNewAppliancesAndUpdateConstants()\n\t{\n\t\t// This could be more sophisticated, but for now all this needs to do is\n\t\t// make sure that\n\t\t// the wattbox assigns load only according to the rated heat pump and\n\t\t// immersion capacity\n\t\t// of its owner\n\t\tthis.maxHeatPumpElecDemandPerTick = (this.owner.ratedPowerHeatPump * 24 / this.ticksPerDay);\n\t\tthis.maxImmersionHeatPerTick = Consts.MAX_DOMESTIC_IMMERSION_POWER * 24 / this.ticksPerDay;\n\t}", "private void validateConstants(final Class c) throws IDLTypeException {\n/* 564 */ Field[] arrayOfField = null;\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 569 */ arrayOfField = AccessController.<Field[]>doPrivileged(new PrivilegedExceptionAction<Field>() {\n/* */ public Object run() throws Exception {\n/* 571 */ return c.getFields();\n/* */ }\n/* */ });\n/* 574 */ } catch (PrivilegedActionException privilegedActionException) {\n/* 575 */ IDLTypeException iDLTypeException = new IDLTypeException();\n/* 576 */ iDLTypeException.initCause(privilegedActionException);\n/* 577 */ throw iDLTypeException;\n/* */ } \n/* */ \n/* 580 */ for (byte b = 0; b < arrayOfField.length; b++) {\n/* 581 */ Field field = arrayOfField[b];\n/* 582 */ Class<?> clazz = field.getType();\n/* 583 */ if (clazz != String.class && \n/* 584 */ !isPrimitive(clazz)) {\n/* */ \n/* */ \n/* 587 */ String str = \"Constant field '\" + field.getName() + \"' in class '\" + field.getDeclaringClass().getName() + \"' has invalid type' \" + field.getType() + \"'. Constants in RMI/IIOP interfaces can only have primitive types and java.lang.String types.\";\n/* */ \n/* */ \n/* 590 */ throw new IDLTypeException(str);\n/* */ } \n/* */ } \n/* */ }", "public interface Constants extends ShareConstants {\n String FASTDEX_DIR = \"fastdex\";\n String PATCH_DIR = \"patch\";\n String TEMP_DIR = \"temp\";\n String DEX_DIR = \"dex\";\n String OPT_DIR = \"opt\";\n String RES_DIR = \"res\";\n}", "public interface DublinCoreConstants {\n \n /** Creates a new instance of Class */\n public static int DC_TITLE = 0;\n public static int DC_CREATOR = 1;\n public static int DC_SUBJECT = 2;\n public static int DC_DATE = 3;\n public static int DC_TYPE= 4;\n public static int DC_FORMAT= 5;\n public static int DC_IDENTIFIER = 6;\n public static int DC_COLLECTION = 7;\n public static int DC_COVERAGE = 8;\n \n public static int SUPPORTED_NUMBER = 9;\n \n public static final String[] DC_FIELDS = {\"title\",\"creator\",\"subject\",\"date\",\"type\",\"format\",\"identifier\",\"collection\",\"coverage\"};\n public static final String DC_NAMESPACE = \"dc:\";\n \n}", "public void testDataPluginConstants() throws Exception {\n\t\tassertConstant(\"dataRootURIs\", \"DATA_ROOT_URIS\", DataPlugin.class );\n\t}", "public void testAddressCityConstant() {\n assertEquals(\"ADDRESS_CITY is incorrect\", UserConstants.ADDRESS_CITY, \"address-city\");\n }", "public interface Constants {\n /**\n * String representation for the name of the preferences object storing\n * the Parabank connection settings.\n */\n String PREFS_PARABANK = \"parabankConnectionSettings\";\n\n /**\n * String representation for the key within the Parabank preferences\n * object which stores the protocol for the HTTP requests.\n */\n @Deprecated\n String PREFS_PARABANK_PROTOCOL = \"protocol\";\n\n /**\n * String representation for the key within the Parabank preferences\n * object which stores the host for the HTTP requests.\n */\n String PREFS_PARABANK_HOST = \"host\";\n\n /**\n * String representation for the key within the Parabank preferences\n * object which stores the port for the HTTP requests.\n */\n String PREFS_PARABANK_PORT = \"port\";\n\n /**\n * String representation for key within the {@link android.content.Intent}\n * object which stores the {@link com.parabank.parasoft.app.android.adts.User}\n * object data.\n */\n String INTENT_USER = \"user\";\n String INTENT_PARABANK_URI = \"parabankConnection\";\n}", "public interface Constants {\n String API_LINK_TEXT = \"API_LINK\";\n String USER_ID = \"user_id\";\n String MAPS_KEY = \"AIzaSyBgktirlOODUO9zWD-808D7zycmP7smp-Y\";\n String NEWS_API = \"https://newsapi.org/v1/articles?source=national-geographic&sortBy=top&apiKey=79a22c366b984f11b09d11fb9476d33b\";\n}", "public void testAddressStreet1Constant() {\n assertEquals(\"ADDRESS_STREET_1 is incorrect\", UserConstants.ADDRESS_STREET_1, \"address-street1\");\n }", "public void testSponsorApprovedConstant() {\n assertEquals(\"SPONSOR_APPROVED is incorrect\", UserConstants.SPONSOR_APPROVED, \"sponsor-is-approved\");\n }", "public interface MyConstants {\n\n //ALL_PREFS\n TinyDB db = TinyDB.getInstance();\n String PREF_TRACKER_APP = \"PREF_TRACKER_APP\";\n String PREF_EMAIL = \"PREF_EMAIL\";\n String PREF_PASSWORD = \"PREF_PASSWORD\";\n String PREF_MOBILE_NUMBER = \"PREF_MOBILE_NUMBER\";\n\n //ALL_VARIABLES\n String LOCATION_TIME = \"time\";\n String POWER = \"power\";\n String LATITUDE = \"latitude\";\n String LONGITUDE = \"longitude\";\n String ALTITUDE = \"altitude\";\n String BEARING = \"bearing\";\n String SPEED = \"speed\";\n String PROVIDER = \"provider\";\n String ACCURACY = \"accuracy\";\n String ELAPSED_REAL_TIME_NANOS = \"elapsedRealtimeNanos\";\n String BEARING_ACCURACY_DEGREES = \"getBearingAccuracyDegrees\";\n String SPEED_ACCURACY_METER_PER_SECOND = \"getSpeedAccuracyMetersPerSecond\";\n String VERTICAL_ACCURACY_METERS = \"getVerticalAccuracyMeters\";\n}", "public void testSponsorPaymentPrefConstant() {\n assertEquals(\"SPONSOR_PAYMENT_PREF is incorrect\", UserConstants.SPONSOR_PAYMENT_PREF, \"sponsor-payment-pref\");\n }", "public interface Constants {\n\tpublic interface Paths { \n\t\tfinal String ELASTIC_PUSH_CONTROLLER_PATH = \"/elastic\" ; \n\t\tfinal String SAVE_TRANSACTION = \"/save\"; \n\t\tfinal String SAVE_TARGETS = \"/saveTargets\";\n\t\tfinal String SAVE_FEEDBACK = \"/saveFeedback\"; \n\t\tfinal String SAVE_FEEDBACK_RESPONSE = \"/v1/saveFeedback\"; \n\t}\n\t\n\tpublic static String SUCCESS= \"success\";\n\tpublic static int UNAUTHORIZED_ID = 401;\n\tpublic static int SUCCESS_ID = 200;\n\tpublic static int FAILURE_ID = 320;\n\tpublic static String UNAUTHORIZED = \"Invalid credentials. Please try again.\";\n\tpublic static String PROCESS_FAIL = \"Process failed, Please try again.\";\n\n}", "public void testCredentialsHandleConstant() {\n assertEquals(\"CREDENTIALS_HANDLE is incorrect\", UserConstants.CREDENTIALS_HANDLE, \"credentials-handle\");\n }", "@Test\r\n\tpublic void HealthyPersonConstTest() {\n\t\tAssert.assertEquals(\"HP getReason incorrect\", \"allergies\", hp1.getReason());\r\n\t\tAssert.assertEquals(\"HP getName incorrect\", \"Alex\", hp1.getName());\r\n\t\tAssert.assertEquals(\"HP getAge incorrect\", 20, hp1.getAge(),0.0001);\r\n\t}", "private ZipConstants() {}", "public void testAddressPhoneNumberConstant() {\n assertEquals(\"ADDRESS_PHONE_NUMBER is incorrect\", UserConstants.ADDRESS_PHONE_NUMBER, \"address-phone-number\");\n }", "public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}", "public interface Constants {\n\n final public static String TAG = \"[PracticalTest02Var04]\";\n\n final public static boolean DEBUG = true;\n\n final public static String EMPTY_STRING = \"\";\n\n final public static String QUERY_ATTRIBUTE = \"query\";\n\n final public static String SCRIPT_TAG = \"script\";\n final public static String SEARCH_KEY = \"wui.api_data =\\n\";\n\n final public static String CURRENT_OBSERVATION = \"current_observation\";\n\n}", "private WatchGattConstants(){\n\n }", "public interface Constants {\n final public static String TAG = \"[PracticalTest02Var03]\";\n\n final public static boolean DEBUG = true;\n\n final public static String WEB_SERVICE_ADDRESS = \"http://services.aonaware.com/DictService/DictService.asmx/Define\";\n\n final public static String EMPTY_STRING = \"\";\n\n final public static String QUERY_ATTRIBUTE = \"word\";\n\n final public static String SCRIPT_TAG = \"WordDefinition\";\n final public static String SEARCH_KEY = \"wui.api_data =\\n\";\n\n final public static String CURRENT_OBSERVATION = \"current_observation\";\n}", "public interface Constants {\n int STATE_AGREE = 1;\n int STATE_DISAGREE = 2;\n}", "public interface Constants {\n\n String KEY_BOOK_INFO = \"key_book_info\";\n\n}", "public interface PaperDbConstants {\n String UNIVERSAL_TYPE = \"universal_flavor_type\";\n String PAPER_ACCESS_TOKEN = \"paper_access_token\";\n\n\n String LIVE = \"LIVE\";\n String DEV = \"DEV\";\n\n String LOGIN_CREDENTIALS = \"logininfo\";\n\n}", "public void testPlayerPaymentPrefConstant() {\n assertEquals(\"PLAYER_PAYMENT_PREF is incorrect\", UserConstants.PLAYER_PAYMENT_PREF, \"player-payment-pref\");\n }", "public void testAddressCountryConstant() {\n assertEquals(\"ADDRESS_COUNTRY is incorrect\", UserConstants.ADDRESS_COUNTRY, \"address-country\");\n }", "public boolean isConstant() {\n return false;\n }", "public interface STConstant {\n\n /** The base resource path for this application. */\n String BASE_RES_PATH = \"/com/sandy/stocktracker/\" ;\n\n /** The date format used for NSE EOD dates in the CSV files. */\n SimpleDateFormat DATE_FMT = new SimpleDateFormat( \"dd-MMM-yyyy\" ) ;\n\n /** The time format used for ITD title displays and general time displays. */\n SimpleDateFormat TIME_FMT = new SimpleDateFormat( \"HH:mm:ss\" ) ;\n\n /** The the expanded time format. */\n SimpleDateFormat DATE_TIME_FMT = new SimpleDateFormat( \"dd-MMM-yyyy HH:mm:ss\" ) ;\n\n /** The prefix for drop values indicating the drop value as scrip name. */\n String DROP_VAL_SCRIP = \"SCRIP:\" ;\n\n /** The application config key against which the install directory is specified. */\n String CFG_KEY_INSTALL_DIR = \"pluto.install.dir\" ;\n\n /** The application config key against which biz start hour is specified. */\n String CFG_KEY_NSE_BIZ_START_HR = \"nse.business.start.time\" ;\n\n /** The application config key against which biz end hour is specified. */\n String CFG_KEY_NSE_BIZ_END_HR = \"nse.business.end.time\" ;\n\n /** The number of days for which to show old news. */\n String CFG_KEY_NUM_OLD_DAYS_NEWS = \"news.display.num.days\" ;\n}", "public interface Constants {\n\n /**\n * 资源路径\n */\n String CONTENT_RESOURCES_PATH = \"content\";\n\n /**\n * 名师头像地址\n */\n String TEACHER_HEADE_IMG_PATH = \"teacher\";\n\n /**\n * 证书保存地址\n */\n String CERTIFICATE_IMG_PATH = \"certificate\";\n\n\n /**\n * 舞谱上传地址目录\n */\n String DANCE_BOOK_PATH = \"dance_book\";\n}", "public interface Constants {\n public static final int CASE_ZERO = 0;\n public static final int CASE_ONE = 1;\n\n}", "private ParallelGatewayConstant() {\n }", "public interface ModelConstants {\n \n // elements\n @Deprecated\n public final static String ACQUISITION_STRATEGY = \"acquisition-strategy\";\n \n public final static String DATASOURCE = \"datasource\";\n public final static String HISTORY_LEVEL = \"history-level\";\n public final static String JOB_ACQUISITION = \"job-acquisition\";\n public final static String JOB_ACQUISITIONS = \"job-acquisitions\";\n public final static String JOB_EXECUTOR = \"job-executor\";\n public final static String PROCESS_ENGINE = \"process-engine\";\n public final static String PROCESS_ENGINES = \"process-engines\";\n public final static String PROPERTY = \"property\";\n public final static String PROPERTIES = \"properties\";\n public final static String CONFIGURATION = \"configuration\";\n\n public final static String PLUGINS = \"plugins\";\n public final static String PLUGIN = \"plugin\";\n public final static String PLUGIN_CLASS = \"class\";\n \n // attributes\n public final static String DEFAULT = \"default\";\n public final static String NAME = \"name\";\n public final static String THREAD_POOL_NAME = \"thread-pool-name\";\n /** The name of our subsystem within the model. */\n public static final String SUBSYSTEM_NAME = \"camunda-bpm-platform\";\n \n}", "public interface Constants {\n int SERVER_PORT = 6001;\n String LOCALHOST = \"127.0.0.1\";\n\n String DEFAULT_PHONE_NUMBER = \"+380965354234\";\n\n}", "public void testPreferencesGeneralNotificationConstant() {\n assertEquals(\"PREFS_GENERAL_NOTIFICATION is incorrect\",\n UserConstants.PREFS_GENERAL_NOTIFICATION, \"prefs-general-notification\");\n }", "public interface Constants {\n\t\n\t/** The Constant SPACE_CHAR of type Character of one empty space. */\n\tstatic final char SPACE_CHAR = ' ';\n\t\n\t/** The Constant LETTER_O of type Character which holds mark X. */\n\tstatic final char LETTER_O = 'O';\n\t\n\t/** The Constant LETTER_X of type Character which holds mark O. */\n\tstatic final char LETTER_X = 'X';\n}", "public void testAdminTypeNameConstant() {\n assertEquals(\"ADMIN_TYPE_NAME is incorrect\", UserConstants.ADMIN_TYPE_NAME, \"admin\");\n }", "public interface LibraryConstant {\n\n public interface LanguageConstant {\n\n public static String JAVA=\"JAVA\";\n public static String C=\"C\";\n public static String CPP=\"C++\";\n }\n\n public interface StyleConstant {\n\n //pre-defined Styles\n\n public static final String NORMAL=\"NORMAL\";\n public static final String BOLD=\"BOLD\";\n public static final String ITALIC=\"ITALIC\";\n public static final String UNDERLINE=\"UNDERLINE\";\n public static final String SUPERSCRIPT=\"SUPERSCRIPT\";\n public static final String SUBSCRIPT=\"SUBSCRIPT\";\n\n\n }\n}", "public interface Constants {\n String NA = \"NA\";\n}", "public interface ApplicationConstants {\n\n\t/**\n\t * SQL_CONSTANTS contains data base related properties\n\t * \n\t * @author prajwalnayak\n\t *\n\t */\n\tpublic interface SQL_CONSTANTS {\n\t\tstatic final String JDBC_DRIVER = \"com.mysql.jdbc.Driver\";\n\t\tstatic final String DB_URL = \"jdbc:mysql://localhost/EMP\";\n\t\tstatic final String USER = \"username\";\n\t\tstatic final String PASSWORD = \"password\";\n\t}\n}", "public void testAddressStreet2Constant() {\n assertEquals(\"ADDRESS_STREET_2 is incorrect\", UserConstants.ADDRESS_STREET_2, \"address-street2\");\n }", "public void testExecPluginConstants() throws Exception {\n\t\tassertConstant( \"execRootURIs\", \"EXEC_ROOT_URIS\", ExecPlugin.class);\n\t}", "public void testMountPluginConstants() throws Exception {\n\t\tassertConstant( \"mountPoints\", \"MOUNT_POINTS\", DataPlugin.class );\n\t\tassertConstant( \"mountPoints\", \"MOUNT_POINTS\", ExecPlugin.class );\n\t}", "public static void check() {\r\n NetworkCode nCodes = new NetworkCode();\r\n Map<Short, String> nCodeMap = new HashMap<Short, String>();\r\n\r\n for (Field field : NetworkCode.class.getDeclaredFields()) {\r\n try {\r\n Short value = (Short) field.get(nCodes);\r\n\r\n if (nCodeMap.containsKey(value)) {\r\n Log.println_e(field.getName() + \" is conflicting with \" + nCodeMap.get(value));\r\n } else {\r\n nCodeMap.put(value, field.getName());\r\n }\r\n } catch (IllegalArgumentException ex) {\r\n Log.println_e(ex.getMessage());\r\n } catch (IllegalAccessException ex) {\r\n Log.println_e(ex.getMessage());\r\n }\r\n }\r\n }", "public interface KeyValueConst {\n\n String PUBLIC_KEY = \"PublicKey\";\n String PRIVATE_KEY = \"PrivateKey\";\n}", "public interface ActivityConstants {\n public static final int SCAN_ACTIVITY = 1001;\n public static final int PREVIOUS_ORDERS_ACTIVITY = 1002;\n public static final String PREFS_NAME = \"LoginData\";\n public static final String PREFS_LOGGED = \"LoggedIn\";\n}", "public interface TestConstants {\n\n public static final String MONGO_SERVER = \"dun-tst-devf01\";\n public static final int MONGO_PORT = 27017;\n public static final String MONGO_DB = \"mydbTest\";\n public static final String RESOURCE_FILE = \"/j2eeMonitoring.log\";\n public static final String SERVER_NAME = \"appcfm51\";\n public static final String AS_NAME = \"AS_STEELUSER\";\n public static final String APPLICATION_NAME = \"SteelUserTest\";\n\n}", "public void testSponsorTypeNameConstant() {\n assertEquals(\"SPONSOR_TYPE_NAME is incorrect\", UserConstants.SPONSOR_TYPE_NAME, \"sponsor\");\n }", "@Override\n\tpublic boolean getIsConstant() {\n\t\treturn false;\n\t}", "public interface BaseConstant {\n\n //=======数据来源=========//\n /**\n * 微信公众号\n */\n Integer SOURCE_TYPE_WECHAT=1;\n /**\n * 后台\n */\n Integer SOURCE_TYPE_WEB=2;\n /**\n * APP\n */\n Integer SOURCE_TYPE_APP=3;\n //=======数据来源end=========//\n}", "public interface Constants\r\n{\r\n\tfinal public static double EPSILON = 0.0001;\r\n\tfinal public static int LEFT_BUTTON = MouseEvent.BUTTON1;\r\n\tfinal public static int RIGHT_BUTTON = MouseEvent.BUTTON3;\r\n\tfinal public static double SMALL_EPSILON = 0.0000000001;\r\n}", "public interface Constants {\r\n\r\n String ID = \"id\";\r\n String CREATED_AT = \"created_at\";\r\n String UPDATED_AT = \"updated_at\";\r\n String CREATED_BY = \"created_by\";\r\n String MODIFIED_BY = \"modified_by\";\r\n String DESCRIPTION = \"description\";\r\n String START_DATE = \"start_date\";\r\n String END_DATE = \"end_date\";\r\n String PLACE_HOLDER = \"{}\";\r\n String EMPTY = \"\";\r\n\r\n\r\n String USER_DETAIL = \"user_details\";\r\n\r\n String FILE_LOCATION = \"C:\\\\BVN\";\r\n String FILE_LOCATION_DECRYPTED = \"C:\\\\BVN\\\\decrypted\";\r\n String FILE_LOCATION_ENCRYPTED = \"C:\\\\BVN\\\\encrypted\";\r\n\r\n String ERROR_MESSAGE = \"Unable to process action, please try again\";\r\n\r\n String AGENT_ID_IS_REQUIRED = \"Agent Id is required\";\r\n String BRANCH_ID_IS_REQUIRED = \"Branch Id is required\";\r\n\r\n String SECRET_KEY = \"aeskey\";\r\n String IV = \"iv\";\r\n String USERNAME = \"username\";\r\n\r\n}", "public boolean isConstant() throws Exception {\n return false;\n }", "public String toString() {\n return super.toString() + \" (\" + constants.size() + \" constants)\";\n }", "public ConstantProduct() {\n constProperty = \"constant\";\n constProperty2 = \"constant2\";\n }", "public abstract boolean isConstant();", "String getConstant();", "public interface COSConstants {\n\n public static final String CLOTHO_PATH_PREFIX = \"/clotho\";\n public static final String GIRLITY_PATH_PREFIX = \"/girlity\";\n public static final String PACKAGE_PATH_PREFIX = CLOTHO_PATH_PREFIX+ \"/package\";\n public static final String SPLASH_PATH_PREFIX = GIRLITY_PATH_PREFIX+ \"/splash\";\n}", "public interface UserConstants {\n String TYPE_AUTH_QQ = \"qq\";\n String TYPE_AUTH_WX = \"wx\";\n String TYPE_AUTH_WB = \"wb\";\n String REG_ILLEGAL = \"[`~!@#$^&*()=|{}':;',\\\\[\\\\].<>/?~!@#¥……&*()—|{}【】‘;:”“'。,、?]\";\n\n String NCODE = \"86\";\n\n String FROM = \"whaleyVR\";\n\n\n int THIRD_ERROR = 1097;\n\n int THIRD_CANCEL = 2889;\n int THIRD_INSTALL = 3054;\n int THIRD_WEIBO = 5650;\n //====================================event====================================//\n String EVENT_LOGIN_SUCCESS = \"login_success\";\n String EVENT_SIGN_OUT = \"sign_out\";\n String EVENT_UPATE_NAME = \"update_name\";\n String EVENT_UPATE_AVATAR = \"update_avatar\";\n String EVENT_LOGIN_CANCEL = \"login_cancel\";\n}", "static void initConstants(MainWindow wnd, File wDirectory, File rFile) {\n window = wnd;\n workingDirectory = wDirectory;\n remainderFile = rFile;\n inputFiles = buildFilesArray();\n offerNodes = buildNodesMap(OFFER);\n doublesNodes = buildNodesMap(DOUBLES);\n }", "public void testAddressTypeNameConstant() {\n assertEquals(\"ADDRESS_TYPE_NAME is incorrect\", UserConstants.ADDRESS_TYPE_NAME, \"address\");\n }", "public void testPreferencesSoundConstant() {\n assertEquals(\"PREFS_SOUND is incorrect\", UserConstants.PREFS_SOUND, \"prefs-sound\");\n }" ]
[ "0.71725786", "0.7090101", "0.70276743", "0.6985547", "0.6881289", "0.68640345", "0.68640345", "0.6786249", "0.678469", "0.67775476", "0.6715539", "0.65796536", "0.65768725", "0.6547071", "0.6523879", "0.6510373", "0.64971447", "0.64962095", "0.64178413", "0.6379523", "0.634099", "0.63387686", "0.6301049", "0.6291407", "0.62611794", "0.6234523", "0.6203908", "0.61790526", "0.6138971", "0.6112245", "0.6050032", "0.6044599", "0.6037195", "0.6025594", "0.6022915", "0.60208744", "0.60132146", "0.5987052", "0.59837246", "0.5981869", "0.5980471", "0.5950882", "0.59301096", "0.5917678", "0.5903694", "0.59003973", "0.5893908", "0.58915645", "0.58534896", "0.5845187", "0.58363336", "0.582471", "0.5816366", "0.58146447", "0.58016044", "0.57846206", "0.57799625", "0.5777503", "0.5766879", "0.57615924", "0.57498264", "0.5747547", "0.5747427", "0.5739616", "0.5739372", "0.5739102", "0.573656", "0.5736239", "0.5736104", "0.57316774", "0.5724753", "0.5724483", "0.57226163", "0.5722519", "0.57120407", "0.5710906", "0.5709939", "0.57077146", "0.5706371", "0.5685476", "0.56825095", "0.56820315", "0.56796706", "0.56645817", "0.5655744", "0.5648204", "0.563453", "0.5628166", "0.5627919", "0.5620804", "0.56145877", "0.56070405", "0.5604897", "0.5595531", "0.5594822", "0.55844516", "0.5574408", "0.55742586", "0.55711955", "0.5561954" ]
0.63968205
19
make sure public variables exist note the source code mentions all of these but ip.changes are obsolete. May not need/want this test.
@Test public void testPublicInstanceVars() { ip = new ImagePlus(); assertFalse(ip.changes); /* OBSOLETE assertEquals(1.0,ip.pixelHeight,0.0); assertEquals(1.0,ip.pixelWidth,0.0); assertEquals("pixel",ip.unit); assertEquals("pixel",ip.units); assertFalse(ip.sCalibrated); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkPublic() {\n }", "boolean known() {\n\t\t\treturn !varAddress && !varMask;\n\t\t}", "public static void check() {\r\n NetworkCode nCodes = new NetworkCode();\r\n Map<Short, String> nCodeMap = new HashMap<Short, String>();\r\n\r\n for (Field field : NetworkCode.class.getDeclaredFields()) {\r\n try {\r\n Short value = (Short) field.get(nCodes);\r\n\r\n if (nCodeMap.containsKey(value)) {\r\n Log.println_e(field.getName() + \" is conflicting with \" + nCodeMap.get(value));\r\n } else {\r\n nCodeMap.put(value, field.getName());\r\n }\r\n } catch (IllegalArgumentException ex) {\r\n Log.println_e(ex.getMessage());\r\n } catch (IllegalAccessException ex) {\r\n Log.println_e(ex.getMessage());\r\n }\r\n }\r\n }", "@Override\n\t\tpublic void ipChange() {\n\t\t\t\n\t\t}", "protected void fixateBindings()\r\n\t\t\t\tthrows IllegalArgumentException, IllegalAccessException,\r\n\t\t\t\tNoSuchFieldException, SecurityException {\n\t\t\tfor (Field field : getClass().getDeclaredFields()) {\r\n\t\t\t\t// relax private fields for reflection only\r\n\t\t\t\tfield.setAccessible(true);\r\n\t\t\t\t// search local -> global -> default for set value\r\n\t\t\t\tfield.set(this, evaluateField(field));\r\n\t\t\t}\r\n\t\t}", "private void updateVars()\n {\n\n }", "private void verifyVariablesModified(PybaseDebugVariable[] newFrameVariables, PybaseDebugStackFrame oldFrame )\n{\n PybaseDebugVariable newVariable = null;\n\n Map<String, PybaseDebugVariable> variablesAsMap = oldFrame.getVariablesAsMap();\n\n //we have to check for each new variable\n for( int i=0; i<newFrameVariables.length; i++ ) {\n newVariable = newFrameVariables[i];\n\n PybaseDebugVariable oldVariable = variablesAsMap.get(newVariable.getName());\n\n if( oldVariable != null) {\n\t boolean equals = newVariable.getValueString().equals( oldVariable.getValueString() );\n\n\t //if it is not equal, it was modified\n\t newVariable.setModified( !equals );\n\n }\n else{ //it didn't exist before...\n\t newVariable.setModified( true );\n }\n }\n\n\n}", "private synchronized void updateVariables() throws DebugException {\n\t\tif (lastUpdated == target.getSuspendCount()\n\t\t\t\t|| (variables != null && oldLineNumber == lineNumber))\n\t\t\treturn;\n\t\t\n\t\tSynchronizer frontend = target.getFrontend();\n\t\tif (frontend != null) {\n\t\t\t// get local variables\n\t\t\tString localsSausage = frontend.GetLocals(thread.getID(),frameNumber);\n\t\t\tString[] locals;\n\t\t\tif (localsSausage == null || localsSausage.equals(\"--\")\n\t\t\t\t\t|| localsSausage.equals(\"\"))\n\t\t\t\tlocals = new String[0];\n\t\t\telse\n\t\t\t\tlocals = localsSausage.split(\" \");\n\t\t\t// get parameters\n\t\t\tString paramsSausage = frontend.GetParameters(thread.getID(),frameNumber);\n\t\t\tString[] params;\n\t\t\tif (paramsSausage == null || paramsSausage.equals(\"--\")\n\t\t\t\t\t|| paramsSausage.equals(\"\"))\n\t\t\t\tparams = new String[0];\n\t\t\telse\n\t\t\t\tparams = paramsSausage.split(\" \");\n\t\t\t// get static fields of the current class\n\t\t\tString className;\n\t\t\ttry {\n\t\t\t\tclassName = methodName.substring(0, methodName.lastIndexOf('.'));\n\t\t\t} catch (StringIndexOutOfBoundsException e) {\n\t\t\t\tclassName = \"\";\n\t\t\t}\n\t\t\tString staticsSausage = frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\n\t\t\t\t\tclassName,true);\n\t\t\tString[] statics;\n\t\t\tif (staticsSausage == null || staticsSausage.equals(\"--\")\n\t\t\t\t\t|| staticsSausage.equals(\"\"))\n\t\t\t\tstatics = new String[0];\n\t\t\telse\n\t\t\t\tstatics = staticsSausage.split(\" \");\n\t\t\t// determine if \"this\" is valid\n\t\t\tboolean _this = true;\n\t\t\tif (frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\"this\",false).equals(\"--\"))\n\t\t\t\t_this = false;\n\t\t\t\n\t\t\t// create variable objects\n\t\t\tIVariable[] tempVariables = new EmonicVariable[locals.length + params.length\n\t\t\t + statics.length + (_this ? 1 : 0)];\n\n\t\t\tif (variables == null || variables.length != tempVariables.length) {\n\t\t\t\t// something changed\n\t\t\t\tint index = 0;\n\t\t\t\tif (_this) {\n\t\t\t\t\ttempVariables[0] = new EmonicVariable(this,\"this\",null);\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\tArrays.sort(locals);\n\t\t\t\tfor (int i=0; i<locals.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,locals[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=locals.length;\n\t\t\t\tArrays.sort(params);\n\t\t\t\tfor (int i=0; i<params.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,params[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=params.length;\n\t\t\t\tArrays.sort(statics);\n\t\t\t\tfor (int i=0; i<statics.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,statics[i],null);\n\t\t\t\t}\n\t\t\t\tvariables = tempVariables;\n\t\t\t} \n\t\t}\n\t\tlastUpdated = target.getSuspendCount();\n//\t\toldLineNumber = lineNumber;\n\t}", "public void checkFields(){\n }", "public void checkAndUpdateIPAddresses() {\n\n List<IPAddresses> ipAddressesFromDB = ipAddressRepository.findAll();\n String ipAddressesFromPropertyFile = environment.getProperty(\"ipAddresses\");\n LinkedList<String> ipAddList = new LinkedList<String>(Arrays.asList(ipAddressesFromPropertyFile.split(\",\")));\n\n List<String> dbIPAddresses = new ArrayList<String>();\n\n ipAddressesFromDB.forEach(ipAddressObj -> {\n dbIPAddresses.add(ipAddressObj.getIpaddress());\n });\n\n CMADLogger.logInfo(this.getClass().getName(), \"dbIPAddresses \" + dbIPAddresses);\n CMADLogger.logInfo(this.getClass().getName(), \"ipAddList \" + ipAddList);\n\n ipAddList.removeAll(dbIPAddresses);\n\n CMADLogger.logInfo(this.getClass().getName(), \"IPAddresses to Save is: \" + ipAddList);\n\n List<IPAddresses> ipAddressesToSave = new ArrayList<IPAddresses>();\n\n CMADLogger.logInfo(this.getClass().getName(), \"IPAddress will update to db are:\");\n\n ipAddList.forEach(ipAddress -> {\n IPAddresses ipAddressObject = new IPAddresses();\n CMADLogger.logInfo(this.getClass().getName(), ipAddress.trim());\n ipAddressObject.setIpaddress(ipAddress.trim());\n ipAddressesToSave.add(ipAddressObject);\n });\n CMADLogger.logInfo(this.getClass().getName(), \"IPAddress update to db done.\");\n\n if (ipAddressesToSave.size() > 0) {\n ipAddressRepository.saveAll(ipAddressesToSave);\n latch1.countDown();\n }\n\n try {\n latch1.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n }", "public synchronized void verifyModified(PybaseDebugStackFrame frame, PybaseDebugVariable[] newFrameVariables)\n{\n synchronized(lock) {\n Map<String, PybaseDebugStackFrame> threadIdCache = cache.get(frame.getThreadRemoteId());\n if(threadIdCache == null){\n\t threadIdCache = new HashMap<String, PybaseDebugStackFrame>();\n\t cache.put(frame.getThreadRemoteId(), threadIdCache);\n }\n\n PybaseDebugStackFrame cacheFrame = threadIdCache.get(frame.getId());\n if(cacheFrame == null){\n\t threadIdCache.put(frame.getId(), frame);\n\t return;\n }\n //not null\n if(cacheFrame == frame){ //if is same, it has already been checked.\n\t return;\n }\n\n //if it is not the same, we have to check it and mark it as the new frame.\n verifyVariablesModified(newFrameVariables, cacheFrame);\n threadIdCache.put(frame.getId(), frame);\n }\n}", "private static void init() {\n\t\ttry {\n\t\t\tlocalAddr = InetAddress.getLocalHost();\n\t\t\tlogger.info(\"local IP:\" + localAddr.getHostAddress());\n\t\t} catch (UnknownHostException e) {\n\t\t\tlogger.info(\"try again\\n\");\n\t\t}\n\t\tif (localAddr != null) {\n\t\t\treturn;\n\t\t}\n\t\t// other way to get local IP\n\t\tEnumeration<InetAddress> localAddrs;\n\t\ttry {\n\t\t\t// modify your network interface name\n\t\t\tNetworkInterface ni = NetworkInterface.getByName(networkInterface);\n\t\t\tif (ni == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlocalAddrs = ni.getInetAddresses();\n\t\t\tif (localAddrs == null || !localAddrs.hasMoreElements()) {\n\t\t\t\tlogger.error(\"choose NetworkInterface\\n\" + getNetworkInterface());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\twhile (localAddrs.hasMoreElements()) {\n\t\t\t\tInetAddress tmp = localAddrs.nextElement();\n\t\t\t\tif (!tmp.isLoopbackAddress() && !tmp.isLinkLocalAddress() && !(tmp instanceof Inet6Address)) {\n\t\t\t\t\tlocalAddr = tmp;\n\t\t\t\t\tlogger.info(\"local IP:\" + localAddr.getHostAddress());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Failure when init ProxyUtil\", e);\n\t\t\tlogger.error(\"choose NetworkInterface\\n\" + getNetworkInterface());\n\t\t}\n\t}", "private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}", "public void fixupVariables(List<QName> vars, int globalsSize)\n {\n // no-op\n }", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "protected void initVars() {}", "private void findInternalExternalIP() {\n\t\ttry {\n\t\t\texternalIP = InetAddress.getByName(getExternalIP());\n\t\t} catch (UnknownHostException e) {\n\t\t\tDecentLogger.write(\"Unable to to resolve external IP to InetAddress (problem with ip provider?)\");\n\t\t}\n\t\ttry {\n\t\t\tinternalIP = InetAddress.getLocalHost();\n\t\t} catch (UnknownHostException e) {\n\t\t\tDecentLogger.write(\"Unable to to resolve internal IP to InetAddress\");\n\t\t}\n\t}", "public boolean hasUknown() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public static void internal_test() {\n\t\tTest.start(\"PetrinetIO\");\n\t\tPetrinet pn = PetrinetIO.loadXML(\"data/agv.xml\");\n\t\tTest.checkEquality(pn.numberOfPlaces(), 64, \"# of places loaded\");\n\t\tTest.checkEquality(pn.numberOfTransitions(), 53, \"# of transition loaded\");\n\n\t\t// XXX: we need more tests !\n\t\tTest.end();\n\t}", "public boolean hasUknown() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "private void checkSafety() {\n\t\tSet<VariableTerm> bindingVariables = new HashSet<>();\n\t\tSet<VariableTerm> nonbindingVariables = new HashSet<>();\n\n\t\t// Check that all negative variables occur in the positive body.\n\t\tfor (Atom posAtom : bodyAtomsPositive) {\n\t\t\tbindingVariables.addAll(posAtom.getBindingVariables());\n\t\t\tnonbindingVariables.addAll(posAtom.getNonBindingVariables());\n\t\t}\n\n\t\tfor (Atom negAtom : bodyAtomsNegative) {\n\t\t\t// No variables in a negated atom are binding.\n\t\t\tnonbindingVariables.addAll(negAtom.getBindingVariables());\n\t\t\tnonbindingVariables.addAll(negAtom.getNonBindingVariables());\n\t\t}\n\n\t\t// Rule heads must be safe, i.e., all their variables must be bound by the body.\n\t\tif (!isConstraint()) {\n\t\t\tnonbindingVariables.addAll(headAtom.getBindingVariables());\n\t\t\tnonbindingVariables.addAll(headAtom.getNonBindingVariables());\n\t\t}\n\n\t\t// Check that all non-binding variables are bound in this rule.\n\t\tnonbindingVariables.removeAll(bindingVariables);\n\n\t\tif (nonbindingVariables.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthrow new RuntimeException(\"Encountered unsafe variable \" + nonbindingVariables.iterator().next().toString() + \" in rule: \" + toString()\n\t\t\t\t+ System.lineSeparator() + \"Notice: A rule is considered safe if all variables occurring in negative literals, builtin atoms, and the head of the rule also occur in some positive literal.\");\n\t}", "public void validateRpd22s7()\n {\n // This guideline cannot be automatically tested.\n }", "private void migrateVariables() {\n final var blockchainUpdater = updater();\n final var variablesUpdater = variablesStorage.updater();\n\n get(VARIABLES_PREFIX, CHAIN_HEAD_HASH.getBytes())\n .map(this::bytesToHash)\n .ifPresent(\n bch ->\n variablesStorage\n .getChainHead()\n .ifPresentOrElse(\n vch -> {\n if (!vch.equals(bch)) {\n logInconsistencyAndFail(CHAIN_HEAD_HASH, bch, vch);\n }\n },\n () -> {\n variablesUpdater.setChainHead(bch);\n LOG.info(\"Migrated key {} to variables storage\", CHAIN_HEAD_HASH);\n }));\n\n get(VARIABLES_PREFIX, FINALIZED_BLOCK_HASH.getBytes())\n .map(this::bytesToHash)\n .ifPresent(\n bfh -> {\n variablesStorage\n .getFinalized()\n .ifPresentOrElse(\n vfh -> {\n if (!vfh.equals(bfh)) {\n logInconsistencyAndFail(FINALIZED_BLOCK_HASH, bfh, vfh);\n }\n },\n () -> {\n variablesUpdater.setFinalized(bfh);\n LOG.info(\"Migrated key {} to variables storage\", FINALIZED_BLOCK_HASH);\n });\n });\n\n get(VARIABLES_PREFIX, SAFE_BLOCK_HASH.getBytes())\n .map(this::bytesToHash)\n .ifPresent(\n bsh -> {\n variablesStorage\n .getSafeBlock()\n .ifPresentOrElse(\n vsh -> {\n if (!vsh.equals(bsh)) {\n logInconsistencyAndFail(SAFE_BLOCK_HASH, bsh, vsh);\n }\n },\n () -> {\n variablesUpdater.setSafeBlock(bsh);\n LOG.info(\"Migrated key {} to variables storage\", SAFE_BLOCK_HASH);\n });\n });\n\n get(VARIABLES_PREFIX, FORK_HEADS.getBytes())\n .map(bytes -> RLP.input(bytes).readList(in -> this.bytesToHash(in.readBytes32())))\n .ifPresent(\n bfh -> {\n final var vfh = variablesStorage.getForkHeads();\n if (vfh.isEmpty()) {\n variablesUpdater.setForkHeads(bfh);\n LOG.info(\"Migrated key {} to variables storage\", FORK_HEADS);\n } else if (!List.copyOf(vfh).equals(bfh)) {\n logInconsistencyAndFail(FORK_HEADS, bfh, vfh);\n }\n });\n\n get(Bytes.EMPTY, SEQ_NO_STORE.getBytes())\n .ifPresent(\n bsns -> {\n variablesStorage\n .getLocalEnrSeqno()\n .ifPresentOrElse(\n vsns -> {\n if (!vsns.equals(bsns)) {\n logInconsistencyAndFail(SEQ_NO_STORE, bsns, vsns);\n }\n },\n () -> {\n variablesUpdater.setLocalEnrSeqno(bsns);\n LOG.info(\"Migrated key {} to variables storage\", SEQ_NO_STORE);\n });\n });\n\n blockchainUpdater.removeVariables();\n\n variablesUpdater.commit();\n blockchainUpdater.commit();\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "boolean isInternal();", "public void setIp(java.lang.String param){\r\n localIpTracker = true;\r\n \r\n this.localIp=param;\r\n \r\n\r\n }", "public void setIp(java.lang.String param){\r\n localIpTracker = true;\r\n \r\n this.localIp=param;\r\n \r\n\r\n }", "public void validateRpd22s6()\n {\n // This guideline cannot be automatically tested.\n }", "private static void init() {\n System.setProperty(\"java.net.preferIPv4Stack\", \"true\");\r\n }", "@Override\n\tpublic boolean isPublic() {\n\t\treturn false;\n\t}", "void validateState() throws EPPCodecException {\n // add/chg/rem\n if ((addDsData == null) && (chgDsData == null) && (remKeyTag == null)) {\n throw new EPPCodecException(\"EPPSecDNSExtUpdate required attribute missing\");\n }\n \n // Ensure there is only one non-null add, chg, or rem\n\t\tif (((addDsData != null) && ((chgDsData != null) || (remKeyTag != null)))\n\t\t\t\t|| ((chgDsData != null) && ((addDsData != null) || (remKeyTag != null)))\n\t\t\t\t|| ((remKeyTag != null) && ((chgDsData != null) || (addDsData != null)))) {\n\t\t\tthrow new EPPCodecException(\"Only one add, chg, or rem is allowed\");\n\t\t}\n }", "public VersionVO getUnused(){\n return localUnused;\n }", "public void setValues() throws UnknownHostException\n\t{\n\t\tipInsurance.setText(getIPAddress());\n\t\tipInsurance.setEnabled(false);\n\t\tipInsurance.setEditable(false);\n\t\tportInsurance.setText(\"\"+Constants.RMI_PORT_INSURANCE);\n\t\t\n\t\tipHospital.setText(\"\"+Constants.RMI_ADDRESS_HOSPITAL);\n\t\tportHospital.setText(\"\"+Constants.RMI_PORT_HOSPITAL);\n\t\t\n\t}", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "private void init() {\n\t\t\n\t\ttry{\t\t\t\n\t\t\tinfos = new HashMap<String, VariableInfo>();\n\t\t\t\n\t\t\tfor(String var : this.problem.getMyVars()){\n\t\t\t\t\n\t\t\t\tif(this.problem.getNbrNeighbors(var) != 0){ // an isolated variable doesn't need a CryptoScheme and therefore no VariableInfo either\n\t\t\t\t\t\n\t\t\t\t\tVariableInfo info = new VariableInfo(var);\n\t\t\t\t\tinfos.put(var, info);\n\t\t\t\t\t\n\t\t\t\t\tinfo.cs = cryptoConstr.newInstance(this.cryptoParameter);\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//initialize request counter for my own variables\n\t\t\trequestCount = new HashMap<String,Integer>(); \n\t\t\tfor(String var : this.problem.getMyVars()){\n\t\t\t\trequestCount.put(var, 0);\n\t\t\t}\n\t\t\t\n\t\t\tthis.started = true;\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}", "public boolean hasVar21() {\n return fieldSetFlags()[22];\n }", "@Override\n\tprotected boolean verifyFields() {\n\t\treturn false;\n\t}", "public void method_221() {\n this.field_745 = 0;\n this.field_743 = 0;\n this.field_746 = this.field_723;\n this.field_744 = this.field_724;\n }", "@Override\n\tpublic ServerServices upstreamGlobalVarsInit() throws Exception {\n\t\treturn null;\n\t}", "private void checkInitialization()\n {\n if (!initialized)\n throw new SecurityException(\"VectorStack object is not initialized \" +\n \"properly.\");\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "abstract void addressValidity();", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkIPv6() {\n\t\tboolean flag = oTest.checkIPv6();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public boolean hasVar22() {\n return fieldSetFlags()[23];\n }", "public void validateRpd22s5()\n {\n // This guideline cannot be automatically tested.\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkWiFiPPPoE() {\n\t\tboolean flag = oTest.checkWiFiPPPoE();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public void referToGP(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "public void resetTestVars() {\n\t\tuser1 = new User();\n\t\tuser2 = new User();\n\t\tuser3 = new User();\n\t\tsn = new SocialNetwork();\n\t\tstatus = SocialNetworkStatus.DEFAULT;\n\t\tearly = new Date(25L);\n\t\tmid = new Date(50L);\n\t\tlate = new Date(75L);\n\t}", "@Test\n public void testClassFieldModifierChange() {\n String fileBeforePath = FILE_DIR_FIX + \"0_CompilerConfiguration.java\";\n String fileAfterPath = FILE_DIR_FIX + \"1_CompilerConfiguration.java\";\n Commit testCommit = new Commit(fileBeforePath, fileAfterPath);\n\n // for this file only one change should be detected, in specific LOC\n assertEquals(Range.between(59, 59), testCommit.getChanges().get(0).getSrcNodeFineLOCs());\n assertEquals(Range.between(60, 60), testCommit.getChanges().get(0).getDstNodeFineLOCs());\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasUknown();", "public void validateRpd22s1()\n {\n // This guideline cannot be automatically tested.\n }", "public void testing() {\n\t\tprotectedInstanceVariable = \"\";\n\t}", "private void checkRep(){\n assert !this.username.equals(\"\");\n assert !this.password.equals(\"\");\n assert accessLevel != null;\n }", "private boolean isInternal(String name) {\n return name.startsWith(\"java.\")\n || name.startsWith(\"javax.\")\n || name.startsWith(\"com.sun.\")\n || name.startsWith(\"javax.\")\n || name.startsWith(\"oracle.\");\n }", "@Test\n public void testClaimPracLocAddr1() {\n new ClaimFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissClaim.Builder::setPracLocAddr1,\n RdaFissClaim::getPracLocAddr1,\n RdaFissClaim.Fields.pracLocAddr1,\n 2147483647);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public void validateRpd22s4()\n {\n // This guideline cannot be automatically tested.\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "private void clean_all() {\n\t\tpkttype=0;\r\n\t\tpacket=new byte[]{0};\r\n\t\tID=new byte[]{0};\r\n\t\tIP=new byte[]{0};\r\n\t\tTTL=0;\r\n\t\tport_no=new byte[]{0};\r\n\t\treqrep=0;\r\n\t\tdata=new byte[]{0};\r\n\t\tpaylength=new byte[]{0};\r\n\t}", "private void resetNetworkProperties() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.resetNetworkProperties():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.resetNetworkProperties():void\");\n }", "public void validateRpd22s3()\n {\n // This guideline cannot be automatically tested.\n }", "public boolean verifyFields()\n\t{\n\t\t// check name first\n\t\tif (!validateUserName(username.getText()))\n\t\t\treturn false;\n\n\t\t// check address if name is valid\n\t\tif (!validateIP(address.getText()))\n\t\t{\n\t\t\tsetWarning(\"invalid address\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// only check port if name and address are okay\n\t\ttry\n\t\t{\n\t\t\tInteger.parseInt(port.getText());\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tsetWarning(\"invalid port number\");\n\t\t\treturn false;\n\t\t}\n\n\t\tstatus.setTextFill(GREEN);\n\t\tstatus.setText(\"attempting connection\");\n\n\t\treturn true;\n\t}", "private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}", "private void checkInternetConnection() {\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}", "static synchronized void updateVariables(HashMap<String, String> newVars) {\n // Remove the old one.\n for (String newName : newVars.keySet()) {\n for (String oldName : localState.keySet()) {\n if (newName.startsWith(oldName) || oldName.startsWith(newName)) {\n localState.remove(oldName);\n }\n }\n }\n // Add the new one.\n localState.putAll(newVars);\n }", "@Test\n public void testGetReservedKeys() {\n assertEquals(\"Timestamp must match\",TIMESTAMP.toString(), ev.get(\"_timestamp\"));\n assertEquals(\"Sources must match\",source,ev.get(\"_source\"));\n }", "private static void getTcpPrivateAddress() {\n\n\t\tString address = readFileString(FileConstant.FILE_NAME_TCP_ADDRESS_PRIVATE);\n\n\t\tif (Utils.isNotEmpty(address)) {\n\n\t\t\tint start = 0;\n\t\t\tint end = address.indexOf(FileConstant.FILE_STRING_SPLIP_SYMBOL, start);\n\n\t\t\tif (end < address.length()) {\n\n\t\t\t\tConfigureVariable.Tcp_Address_Ip_Private = address.substring(start, end);\n\n\t\t\t\tstart = end + 1;\n\t\t\t\tend = address.length();\n\n\t\t\t\tConfigureVariable.Tcp_Address_Port_Private = address.substring(start, end);\n\t\t\t}\n\t\t}\n\t}", "public boolean hasIp() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public void validateRpd22s9()\n {\n // This guideline cannot be automatically tested.\n }", "public boolean hasVarSrc() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public void method_2244() {\r\n this.field_1858 = 0;\r\n }", "private static void getTcpPublicAddress() {\n\n\t\tString address = readFileString(FileConstant.FILE_NAME_TCP_ADDRESS_PUBLIC);\n\n\t\tif (Utils.isNotEmpty(address)) {\n\n\t\t\tint start = 0;\n\t\t\tint end = address.indexOf(FileConstant.FILE_STRING_SPLIP_SYMBOL, start);\n\n\t\t\tif (end < address.length()) {\n\n\t\t\t\tConfigureVariable.Tcp_Address_Ip_Public = address.substring(start, end);\n\n\t\t\t\tstart = end + 1;\n\t\t\t\tend = address.length();\n\n\t\t\t\tConfigureVariable.Tcp_Address_Port_Public = address.substring(start, end);\n\t\t\t}\n\t\t}\n\t}", "private InetAddressUtils()\n {\n }", "public boolean hasVarSrc() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkInfoPort() {\n\t\tboolean flag = oTest.checkInfoPort();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Test\n public void testVersion() {\n Ip4Address ipAddress;\n\n // IPv4\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.version(), is(IpAddress.Version.INET));\n }", "private boolean solutionChecker() {\n\t\t// TODO\n\t\treturn false;\n\n\t}", "public void testMethodInfo887() throws Exception {\n\t\tClassInfo var2782 = instantiateClassInfo428();\n\t\tLocalField var2783 = instantiateLocalField427();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tMethodInfo var2784 = new MethodInfo(var2782, \"voidX()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2783.getDescription();\n\t\tvar2783.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2784.isSetter();\n\t\tvar2784.isSetter();\n\t}", "public boolean updated() {\n return (!getText().equals(\"0.0.0.0\"));\n }", "@Test\n public void testAccessAndClone()\n {\n DefaultRemoteInvocationServiceDependencies deps1 =\n new DefaultRemoteInvocationServiceDependencies();\n System.out.println(deps1.toString());\n\n populate(deps1).validate();\n System.out.println(deps1.toString());\n\n DefaultRemoteInvocationServiceDependencies deps2 =\n new DefaultRemoteInvocationServiceDependencies(deps1);\n assertCloneEquals(deps1, deps2);\n deps2.validate();\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "@Test\n public void testClaimPracLocAddr2() {\n new ClaimFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissClaim.Builder::setPracLocAddr2,\n RdaFissClaim::getPracLocAddr2,\n RdaFissClaim.Fields.pracLocAddr2,\n 2147483647);\n }", "private void checkMutability()\n\t{\n\t\tif (immutable)\n\t\t{\n\t\t\tthrow new UnsupportedOperationException(\"Map is immutable\");\n\t\t}\n\t}", "public boolean hasPingerLoc() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "public void checkParameters() {\n }", "private void verifyChanges() {\n System.out.println(\"Verify changes\"); \n }", "protected void setupLocal() {}", "void check()\n {\n final ScopeSymbolValidator validator = new ScopeSymbolValidator();\n for (ServiceMethod method : methods)\n validator.validate(method.getName(), method);\n }", "protected void checkIfConfigurationModificationIsAllowed() {\r\n\t\tif (isCompiled()) {\r\n\t\t\tthrow new InvalidDataAccessApiUsageException(\"Configuration can't be altered once the class has been compiled or used.\");\r\n\t\t}\r\n\t}", "private boolean checkHostAddressesFieldsChanged() {\n boolean changed = false;\n for (final Host host : getBrowser().getClusterHosts()) {\n final GuiComboBox cb = addressComboBoxHash.get(host);\n if (cb == null) {\n continue;\n }\n final String haSaved = savedHostAddresses.get(host);\n final Object value = cb.getValue();\n if (!Tools.areEqual(haSaved, value)) {\n changed = true;\n }\n cb.setBackground(null, haSaved, false);\n }\n /* port */\n final GuiComboBox pcb = portComboBox;\n if (pcb != null) {\n if (!Tools.areEqual(savedPort, pcb.getValue())) {\n changed = true;\n }\n pcb.setBackground(null,\n savedPort,\n false);\n }\n return changed;\n }", "public void validateRpd22s10()\n {\n // This guideline cannot be automatically tested.\n }", "public boolean hasVar42() {\n return fieldSetFlags()[43];\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "@Override\n public void checkRebuildParameter(PubDTO pub) throws PubHandlerAssemblyException {\n\n }", "@Override\n public void checkRebuildParameter(PubDTO pub) throws PubHandlerAssemblyException {\n\n }", "private void clearIp() {\n \n ip_ = 0;\n }" ]
[ "0.61125755", "0.60927325", "0.5800662", "0.57413244", "0.56718475", "0.5649701", "0.55573124", "0.540784", "0.5374921", "0.53401965", "0.5332629", "0.52985907", "0.5293853", "0.5279392", "0.52515924", "0.52179337", "0.5180703", "0.5163197", "0.51549226", "0.51546246", "0.5122728", "0.51176023", "0.5110771", "0.5098899", "0.5092364", "0.5088332", "0.5088332", "0.50747705", "0.50571954", "0.50332195", "0.5025725", "0.50250095", "0.50158435", "0.49957836", "0.49843413", "0.49829054", "0.49784362", "0.4972135", "0.49702284", "0.49481726", "0.49403587", "0.49402392", "0.49380854", "0.49357548", "0.4933711", "0.49315202", "0.4920599", "0.49134818", "0.49000725", "0.48963103", "0.4894828", "0.48800674", "0.48749757", "0.48715097", "0.48707157", "0.4868284", "0.48626468", "0.48625165", "0.48482826", "0.48462224", "0.48462224", "0.48413852", "0.48403955", "0.48302144", "0.48290813", "0.48279095", "0.48251334", "0.48230916", "0.48229197", "0.4821995", "0.48216274", "0.4820012", "0.48196238", "0.48191208", "0.48188698", "0.48160088", "0.48057345", "0.4799469", "0.47965497", "0.4796193", "0.4794843", "0.47938168", "0.47903603", "0.47899416", "0.4786992", "0.4784541", "0.47812822", "0.4779132", "0.47710127", "0.4765169", "0.4759331", "0.4757091", "0.47557586", "0.47510067", "0.47482517", "0.47465658", "0.47458813", "0.47455388", "0.47455388", "0.4742711" ]
0.6193585
0
pass in a null image
@Test public void testImagePlusStringImage() { ip = new ImagePlus("Cousin",(BufferedImage)null); assertNotNull(ip); assertEquals("Cousin",ip.getTitle()); assertNull(ip.getImage()); // pass in a real image Image img = new BufferedImage(50,75,BufferedImage.TYPE_USHORT_555_RGB); ip = new ImagePlus("Vinny",img); assertNotNull(ip); assertEquals("Vinny",ip.getTitle()); assertNotNull(ip.getImage()); // a different image is created internally so can only test existence }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Image getImage(Photo photo) {\n return null;\n }", "@Override\n\tpublic Image getImage(Object element) {\n\t\treturn null;\n\t}", "@Override\n\tprotected String getImage(int row, int col) {\n\t\treturn null;\n\t}", "@Override\n\tpublic ImageDescriptor getImageDescriptor() {\n\t\treturn null;\n\t}", "@Override\r\n public Object createImage(Object data) {\r\n\t // N/A in JS\r\n\t return null;\r\n\t}", "@Override\r\n\tpublic ImageDescriptor getImageDescriptor() {\n\t\treturn null;\r\n\t}", "public IImage createImage(IImage source) {\n return null;\r\n }", "@Override\n\t\tpublic ImageDescriptor getImageDescriptor() {\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic String getImageURL() {\n\t\treturn \"\";\n\t}", "public Image getImage()\n {\n return null;\n }", "public Image getImage() {\n return null;\r\n }", "@Test(expected = IllegalArgumentException.class)\n public void testImageWhenNull() {\n int[][][] test = null;\n Image img = new ImageImpl(test);\n }", "@Override\n protected String getRequestedImage(HttpServletRequest req) {\n\treturn null;\n }", "public M csmiOnCertifyImageNull(){if(this.get(\"csmiOnCertifyImageNot\")==null)this.put(\"csmiOnCertifyImageNot\", \"\");this.put(\"csmiOnCertifyImage\", null);return this;}", "public M csmiDriverImageNull(){if(this.get(\"csmiDriverImageNot\")==null)this.put(\"csmiDriverImageNot\", \"\");this.put(\"csmiDriverImage\", null);return this;}", "public Image getImage(T anItem) { return null; }", "public String getImage() {\n\t\treturn null;\n\t}", "public M csmiCertifyImageNull(){if(this.get(\"csmiCertifyImageNot\")==null)this.put(\"csmiCertifyImageNot\", \"\");this.put(\"csmiCertifyImage\", null);return this;}", "public void writeImageNoParams(BufferedImage image) throws IOException {\n }", "@Test\n public void getPicture_NoPictureExist(){\n Bitmap retrieved = testRecipe.getImage(appContext);\n assertNotEquals(\"getPicture - Not Null\", null, retrieved);\n }", "public Image getImage(Object element) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "public Image getImage(Object element) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "public Image getImage(Object element) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "private void displayNoImage() {\n\t\tGRect imageRect = new GRect(LEFT_MARGIN, nameY + IMAGE_MARGIN,\n\t\t\t\tIMAGE_WIDTH, IMAGE_HEIGHT);\n\t\tadd(imageRect);\n\t\tGLabel noImage = new GLabel(\"No Image\");\n\t\tnoImage.setFont(PROFILE_IMAGE_FONT);\n\t\tdouble labelWidth = LEFT_MARGIN + IMAGE_WIDTH / 2 - noImage.getWidth()\n\t\t\t\t/ 2;\n\t\tdouble labelHeight = nameY + IMAGE_MARGIN + IMAGE_HEIGHT / 2;\n\t\tadd(noImage, labelWidth, labelHeight);\n\t}", "public IImage createImage(String name) throws IOException {\n return null;\r\n }", "public PlainImage(Image image) {\r\n\t\tthis.image = image;\r\n\t}", "SafeUri getDefaultImageUri();", "public void placeBlankImage() {\n System.out.println(\"placeBlankImage in: \" + imageDirectory);\n\n try {\n BufferedImage bi = ImageIO.read(new File(absolutePath + \"/noImageAvailable.jpg\"));\n System.out.println(\"loaded blank: \" + absolutePath + \"/noImageAvailable.jpg\");\n File outputfile = new File(absolutePath + \"/\" + imageDirectory + \"/noImageAvailable.jpg\");\n\n ImageIO.write(bi, \"jpg\", outputfile);\n\n System.out.println(\"saved blank image: \" + outputfile);\n } catch (IOException e) {\n System.out.println(\"save image failed\");\n\n }\n }", "public void setImg_0(String img_0) {\n this.img_0 = img_0;\n }", "static Image defaultAvatar() {\n\t\treturn () -> null;\n\t}", "@Override\n\tpublic String getImageName() {\n\t\treturn \"\";\n\t}", "public ImageDescriptor getImageDescriptor()\n\t{\n\n\t\treturn null;\n\t}", "public Image() {\n \n }", "public Image getImage(URL paramURL, String paramString) {\n/* */ try {\n/* 298 */ return getImage(new URL(paramURL, paramString));\n/* 299 */ } catch (MalformedURLException malformedURLException) {\n/* 300 */ return null;\n/* */ } \n/* */ }", "@Override\n\tpublic String getImagePath32X32() {\n\t\treturn null;\n\t}", "public Image getImage(Object element) {\n\t\t\t\treturn null;\n\t\t\t}", "public Image getImage(Object element) {\n\t\t\t\treturn null;\n\t\t\t}", "public Image getImage(Object element) {\n\t\t\t\treturn null;\n\t\t\t}", "public boolean isEmptyImage() {\n if (mbarrayImg == null || mbarrayImg.length == 0 || mbarrayImg[0].length == 0 || mnWidth == 0 || mnHeight == 0) {\n return true;\n }\n return false;\n }", "public Image() {\n\t\t\tthis(Color.white, 0);\n\t\t}", "private void paintNull(Graphics g, int j, int i) {\n // Image img=imgVec[NULL_ST];\n // if(img==null){\n // img=createImage(ISIZE,ISIZE);\n // imgVec[NULL_ST]=img;\n // Graphics ig=img.getGraphics();\n g.setColor(Color.black);\n g.fillRect(j * CELL_SIZE, i * CELL_SIZE, CELL_SIZE, CELL_SIZE);\n // }\n // g.drawImage(img,j * DIM, i * DIM,this);\n }", "java.lang.String getImage();", "@Override\n\tpublic String getImagePathBig() {\n\t\treturn null;\n\t}", "private Images() {}", "public Image() {\n }", "public void eraseImage() {\n\t\timage = null;\n\t}", "public Image getBranchImage(T anItem) { return null; }", "public M csmiCheckPhotoNull(){if(this.get(\"csmiCheckPhotoNot\")==null)this.put(\"csmiCheckPhotoNot\", \"\");this.put(\"csmiCheckPhoto\", null);return this;}", "public BufferedImage createImage(int taskId, Connection con, String imageName) throws SQLException, ServletException {\n return null;\n }", "public boolean hasImage() { return ImageResource != NO_IMAGE_PROVIDED; }", "public PublishNoImgJoke() {\n\t\tsuper();\n\t}", "Image createImage();", "public ImageDescriptor getImageDescriptor() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic byte[] flush() throws ImageHandlingException {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic boolean isMyImage() {\n\t\treturn false;\n\t}", "public ImageFile(BufferedImage img) throws ImageException{\r\n\tloadImage(img);\r\n}", "public HSIImage()\r\n {\r\n }", "@Override\n\tpublic String getImagePath16X16() {\n\t\treturn null;\n\t}", "private BufferedImage createBlankImage(int width, int height){\n\t\t\tBufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D g2 = img.createGraphics();\n\t\t\tg2.setColor(Color.WHITE);\n\t\t\tg2.fillRect(0, 0, width, height);\n\t\t\tg2.dispose();\n\t\t\treturn img;\n\t\t}", "@Nullable\n @Generated\n @Selector(\"image\")\n public native UIImage image();", "public void removeImage() {\n setFileImage(null);\n getSelected().setUrlImage(null);\n RequestContext.getCurrentInstance().update(\"image\");\n }", "private ImageUtils() {}", "void lSetImage(Image img);", "public void setImg(String img) {\n this.img = img == null ? null : img.trim();\n }", "public void setImg(String img) {\n this.img = img == null ? null : img.trim();\n }", "public abstract Image getImage();", "public abstract Image getImage();", "String getImage();", "@Override\n public Action update() {\n // draws the image \"image\" at position \"this.x\" and \"this.y\" and then returns null\n Thing.getProcessing().image(this.image, this.x, this.y);\n return null;\n }", "private void drawImage(){\n Integer resourceId = imageId.get(this.name);\n if (resourceId != null) {\n drawAbstract(resourceId);\n } else {\n drawNone();\n }\n }", "IMG createIMG();", "void setSourceImage(BufferedImage mySourceImage);", "public Picture()\n {\n // nothing to do... instance variables are automatically set to null\n }", "public Picture()\n {\n // nothing to do... instance variables are automatically set to null\n }", "public Picture()\n {\n // nothing to do... instance variables are automatically set to null\n }", "public Picture()\n {\n // nothing to do... instance variables are automatically set to null\n }", "@Override\n\tpublic void init() {\n\t\tthis.image = Helper.getImageFromAssets(AssetConstants.IMG_ROAD_NORMAL);\n\t}", "public Image call() throws IOException;", "private static void ensureImage(final Image image) throws NotImageException\r\n\t{\r\n\t\tnew ImageIcon(image);\r\n\t\tif (image.getWidth(null) < 0)\r\n\t\t{\r\n\t\t\tthrow new NotImageException(image);\r\n\t\t}\r\n\t}", "@Override\n\tpublic String getImagePath64X64() {\n\t\treturn null;\n\t}", "public void clearImage()\n {\n //Initialize the array of 0s\n int arr_len;\n if (image.getHeight() > image.getWidth()) arr_len = image.getHeight();\n else arr_len = image.getWidth();\n int[] rgb = new int[arr_len];\n //Set the whole image to black color\n image.setRGB(0,0,image.getWidth()-1,image.getHeight()-1,rgb,0,0);\n }", "public synchronized void clearImage()\r\n\t{\r\n\t\treferenceImage.clearImage();\r\n\t\tdisplayedImage.clearImage();\r\n\t}", "public Image getImageAfter(T anItem) { return null; }", "protected abstract Image loadImage();", "private boolean isImageGiven(){\n return captureImage.getDrawable() != null;\n }", "public Image getImage(URL paramURL) {\n/* 276 */ return getAppletContext().getImage(paramURL);\n/* */ }", "public View getGraphic(T anItem)\n{\n Image img = getImage(anItem);\n return img!=null? new ImageView(img) : null;\n}", "@Test\n public void editPicture_NotNull(){\n Bitmap originalImage = BitmapFactory.decodeResource(appContext.getResources(),R.drawable.ic_add);\n testRecipe.setImage(originalImage, appContext);\n Bitmap newImage = BitmapFactory.decodeResource(appContext.getResources(),R.drawable.ic_cart);\n testRecipe.setImage(newImage, appContext);\n assertNotEquals(\"editPicture - New Image Not Null\", null, testRecipe.getImage(appContext));\n }", "protected void setPic() {\n }", "public static void testZeroRed()\n {\n\t Picture wall = new Picture(\"wall.jpg\");\n\t wall.zeroRed();\n\t wall.explore();\n }", "public PDFConversionImageHandler() {\r\n\t\tsuper(null, true);\r\n\t}", "public boolean hasNoImages() {\n return noImages;\n }", "public T caseUbqImage(UbqImage object) {\r\n\t\treturn null;\r\n\t}", "public LabeledImageObjectAdapter() {\n\t\tsuper();\n\t\to = null; \n\t}", "@GET\n @Path(\"image\")\n @Produces(MediaType.TEXT_PLAIN)\n public Response voidImage() {\n return Response.status(Response.Status.NOT_FOUND).build();\n }", "@Generated\n @Selector(\"setImage:\")\n public native void setImage(@Nullable UIImage value);", "public Image getBassClef();", "@Override\r\n public Image getColumnImage(Object element, int columnIndex) {\r\n return null;\r\n }", "@Override\r\n public Image getColumnImage(Object element, int columnIndex) {\r\n return null;\r\n }", "@Override\r\n public Image getColumnImage(Object element, int columnIndex) {\r\n return null;\r\n }", "@Test public void nullBitmapOptionsIfNoResizing() {\n final Request noResize = new Request.Builder(TestUtils.URI_1).build();\n final BitmapFactory.Options noResizeOptions = createBitmapOptions(noResize);\n assertThat(noResizeOptions).isNull();\n }" ]
[ "0.73132014", "0.72254467", "0.71724904", "0.7004745", "0.6984029", "0.6894855", "0.686931", "0.6765404", "0.67341214", "0.6640745", "0.6639479", "0.6610098", "0.65715635", "0.6535991", "0.6532748", "0.65224016", "0.6516833", "0.6474675", "0.6421661", "0.6406962", "0.6402772", "0.6402772", "0.6402772", "0.62763613", "0.6259647", "0.62562877", "0.62395287", "0.62014675", "0.61883575", "0.61383075", "0.60649306", "0.60645574", "0.60599756", "0.6046274", "0.6045414", "0.59968233", "0.59968233", "0.59968233", "0.5983162", "0.59660786", "0.5958001", "0.5933343", "0.5919009", "0.59005857", "0.5885771", "0.58783525", "0.5872769", "0.5862945", "0.5859271", "0.58521605", "0.5842395", "0.5828016", "0.58226717", "0.58180636", "0.58122754", "0.580965", "0.5805012", "0.5790019", "0.5779608", "0.5778146", "0.57764614", "0.57693696", "0.5763568", "0.5755032", "0.5755032", "0.5754922", "0.5754922", "0.57452446", "0.57294464", "0.5724893", "0.5721078", "0.57209176", "0.57112527", "0.57112527", "0.57112527", "0.57112527", "0.5709944", "0.56975543", "0.56966084", "0.56946576", "0.56929106", "0.5685079", "0.5682981", "0.5682104", "0.5681043", "0.5663047", "0.5649601", "0.563567", "0.5630644", "0.56192786", "0.56015265", "0.55972993", "0.55813384", "0.5570405", "0.55690765", "0.5564148", "0.5562378", "0.5552681", "0.5552681", "0.5552681", "0.55520535" ]
0.0
-1
note the underlying ImagePlus method does nothing except call a public method. That method is tested later in this file so really there is nothing to do here
@Test public void testImagePlusStringImageProcessor() { proc = new ByteProcessor(20,45); ip = new ImagePlus("Houdini", proc); assertNotNull(ip); assertEquals(proc,ip.getProcessor()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void enhanceImage(){\n }", "public native MagickImage enhanceImage() throws MagickException;", "public native MagickImage flopImage() throws MagickException;", "@Test\n\tpublic void testGetPixel() {\n\t\tip = new ImagePlus();\n\t\tassertArrayEquals(new int[] {0,0,0,0}, ip.getPixel(0,0));\n\n\t\t// COLOR_256\n\t\tIndexColorModel cm = new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3});\n\t\tproc = new ByteProcessor(1,1,new byte[] {0},cm);\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.setImage(new BufferedImage(1,1,BufferedImage.TYPE_BYTE_INDEXED, cm));\n\t\tassertEquals(ImagePlus.COLOR_256,ip.getType());\n\t\tassertArrayEquals(new int[] {1,2,3,0}, ip.getPixel(0,0));\n\n\t\t// GRAY8\n\t\tproc = new ByteProcessor(1,1,new byte[] {53}, null);\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.GRAY8,ip.getType());\n\t\tassertArrayEquals(new int[] {53,0,0,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\n\t\t// GRAY16\n\t\tproc = new ShortProcessor(1,1,new short[] {30000},null);\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.GRAY16,ip.getType());\n\t\tassertArrayEquals(new int[] {30000,0,0,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\n\t\t// COLOR_RGB\n\t\tproc = new ColorProcessor(1,1,new int[] {0xffeedd});\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.COLOR_RGB,ip.getType());\n\t\tassertArrayEquals(new int[] {0xff,0xee,0xdd,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\n\t\t// GRAY32\n\t\tint[] ints = new int[3];\n\t\tproc = new FloatProcessor(1,3,ints);\n\t\tproc.set(0, 0, Float.floatToIntBits(25.0f));\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.GRAY32,ip.getType());\n\t\tassertArrayEquals(new int[] {Float.floatToIntBits(25.0f),0,0,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\t}", "@Test\n\tpublic void testUpdateImage() {\n\n\t\tip = new ImagePlus();\n\t\t//assertNull(ip.img);\n\t\tip.updateImage();\n\t\t//assertNull(ip.img);\n\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"head8bit.tif\");\n\t\t//assertNull(ip.img);\n\t\tip.updateImage();\n\t\t//assertNotNull(ip.img);\n\t}", "@Test\n\tpublic void testImagePlusStringImage() {\n\t\tip = new ImagePlus(\"Cousin\",(BufferedImage)null);\n\t\tassertNotNull(ip);\n\t\tassertEquals(\"Cousin\",ip.getTitle());\n\t\tassertNull(ip.getImage());\n\n\t\t// pass in a real image\n\t\tImage img = new BufferedImage(50,75,BufferedImage.TYPE_USHORT_555_RGB);\n\t\tip = new ImagePlus(\"Vinny\",img);\n\t\tassertNotNull(ip);\n\t\tassertEquals(\"Vinny\",ip.getTitle());\n\t\tassertNotNull(ip.getImage()); // a different image is created internally so can only test existence\n\t}", "protected native MagickImage nextImage() throws MagickException;", "@Test\n\tpublic void testGetImage() {\n\n\t\tip = new ImagePlus();\n\t\t//assertNull(ip.img);\n\t\tassertNull(ip.getImage());\n\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"gray8-3x2-sub1.tif\");\n\t\t//assertNull(ip.img);\n\t\tassertNotNull(ip.getImage());\n\t}", "private void galleryAddPic() {\n\t}", "void drawStuff () {drawStuff (img.getGraphics ());}", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}", "private void reanderImage(ImageData data) {\n \n }", "public native void syncImage() throws MagickException;", "@Test\n\tpublic void testIsInvertedLut() {\n\t\tip = new ImagePlus(\"CircusHell\",(Image)null);\n\t\tassertFalse(ip.isInvertedLut());\n\n\t\t// null image proc with non null image\n\t\tip = new ImagePlus(\"CircusHell\",new BufferedImage(50,75,BufferedImage.TYPE_USHORT_555_RGB));\n\t\tassertEquals(ip.ip.isInvertedLut(),ip.isInvertedLut());\n\n\t\t// non null image\n\t\tproc = new ByteProcessor(2,3,new byte[]{1,2,3,4,5,6},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tip = new ImagePlus(\"CircusHell\",proc);\n\t\tassertEquals(ip.ip.isInvertedLut(),ip.isInvertedLut());\n\t}", "protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }", "public int getImage();", "@Override\n\tpublic boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) {\n\t\treturn false;\n\t}", "private BufferedImage user_space(BufferedImage image) {\n // create new_img with the attributes of image\n BufferedImage new_img = new BufferedImage(image.getWidth(),\n image.getHeight(), BufferedImage.TYPE_3BYTE_BGR);\n Graphics2D graphics = new_img.createGraphics();\n graphics.drawRenderedImage(image, null);\n graphics.dispose(); // release all allocated memory for this image\n return new_img;\n }", "public native boolean drawImage(DrawInfo aInfo) throws MagickException;", "public void imageOpened(ImagePlus imp) {\n update(imp);\n }", "public native boolean modulateImage(String modulate) throws MagickException;", "@SuppressWarnings(\"unused\")\n\tprivate void cloneImage() {\n//\t\tColorModel cm = offimg.getColorModel();\n//\t\t boolean isAlphaPremultiplied = cm.isAlphaPremultiplied();\n//\t\t WritableRaster raster = offimg.copyData(null);\n//\t\t offimg2 = new BufferedImage(cm, raster, isAlphaPremultiplied, null);\n//\t\t BufferedImage currentImage = new BufferedImage(width,height,BufferedImage.TYPE_3BYTE_BGR);\n\n\t//Fastest method to clone the image (DOES NOT WORK for MACOS)\n//\t\t int[] frame = ((DataBufferInt)offimg.getRaster().getDataBuffer()).getData();\n//\t\t int[] imgData = ((DataBufferInt)offimg2.getRaster().getDataBuffer()).getData();\n//\t\t System.arraycopy(frame,0,imgData,0,frame.length);\n\t}", "Imagem getImagem();", "public abstract Image gen();", "public ImagePlus morph(ImagePlus imp_old,int proc, int rad){\nImageProcessor img = imp_old.getProcessor();\nImagePlus morphImg;\nif (proc==0){\nImageProcessor dil = Morphology.dilation(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"dilation\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n} else if (proc==1){\nImageProcessor dil = Morphology.erosion(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"erosion\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n} else{\nImageProcessor dil = Morphology.closing(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"closing\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n}\n}", "public native MagickImage despeckleImage() throws MagickException;", "public abstract Image getImage();", "public abstract Image getImage();", "@Override\n\tpublic boolean imageUpdate(Image arg0, int arg1, int arg2, int arg3, int arg4, int arg5) {\n\t\treturn false;\n\t}", "@Test\n\tpublic void testGetImageStack() {\n\t\tip = new ImagePlus();\n\t\tassertNotNull(ip.getImageStack());\n\t}", "public final boolean imageUpdate(java.awt.Image image, int infoflags, int x, int y, int width, int height) {\r\n\treturn false;\r\n}", "@Override\n public Action update() {\n // draws the image \"image\" at position \"this.x\" and \"this.y\" and then returns null\n Thing.getProcessing().image(this.image, this.x, this.y);\n return null;\n }", "public BufferedImage arithmetic(BufferedImage image, BufferedImage image1, int type) {\r\n int width = image.getWidth(), height = image.getHeight();\r\n int width1 = image1.getWidth(), height1 = image1.getHeight();\r\n\r\n int[][][] original = convertToArray(image);\r\n int[][][] arr = convertToArray(image);\r\n\r\n int x = (width < width1) ? width : width1; //get area to add\r\n int y = (height < height1) ? height : height1;\r\n\r\n BufferedImage result = new BufferedImage(width, height, 1);\r\n //loop through all pixels.\r\n int min = 255;\r\n int max = 0;\r\n for (int i = 0; i < y; i++) {\r\n for (int j = 0; j < x; j++) {\r\n int p = image.getRGB(j, i);\r\n int a = (p >> 24) & 0xff;\r\n int r = (p >> 16) & 0xff;\r\n int g = (p >> 8) & 0xff;\r\n int b = p & 0xff;\r\n int p1 = image1.getRGB(j, i);\r\n int a1 = (p1 >> 24) & 0xff;\r\n int r1 = (p1 >> 16) & 0xff;\r\n int g1 = (p1 >> 8) & 0xff;\r\n int b1 = p1 & 0xff;\r\n\r\n int r2;\r\n int g2;\r\n int b2;\r\n\r\n if (type == 0) { //add\r\n r2 = r + r1;\r\n g2 = g + g1;\r\n b2 = b + b1;\r\n } else if (type == 1) {\r\n r2 = r - r1;\r\n g2 = g - g1;\r\n b2 = b - b1;\r\n } else if (type == 2) {\r\n r2 = r * r1;\r\n g2 = g * g1;\r\n b2 = b * b1;\r\n } else {\r\n r2 = (r1 != 0) ? r / r1 : 510;\r\n g2 = (g1 != 0) ? g / g1 : 510;\r\n b2 = (b1 != 0) ? b / b1 : 510;\r\n }\r\n\r\n if (r2 < min) {\r\n min = r2;\r\n }\r\n if (r2 > max) {\r\n max = r2;\r\n }\r\n if (g2 < min) {\r\n min = g2;\r\n }\r\n if (g2 > max) {\r\n max = g2;\r\n }\r\n if (b2 < min) {\r\n min = b2;\r\n }\r\n if (b2 > max) {\r\n max = b2;\r\n }\r\n\r\n arr[j][i][0] = a;\r\n arr[j][i][1] = r2;\r\n arr[j][i][2] = g2;\r\n arr[j][i][3] = b2;\r\n }\r\n }\r\n int diff = max - min;\r\n float scale = (255 / (float) diff);\r\n arr = shiftImage(arr, -min);\r\n if (diff == 0) {\r\n diff = 1;\r\n }\r\n System.out.println(255 / diff);\r\n arr = rescaleImage(arr, scale); // multiple by 255 and divide by difference\r\n\r\n return convertToBimage(arr); //return array\r\n }", "void lSetImage(Image img);", "public Image getSix();", "public static void testPixellateOneArg(){\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t caterpillar.explore();\n\t caterpillar.pixellate(40);\n\t caterpillar.explore();\n }", "public abstract BufferedImage applyTo(BufferedImage image);", "public native MagickImage magnifyImage() throws MagickException;", "@Test\n\tpublic void testImagePlusString() {\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"hongKongFooey.tif\");\n\t\tassertNotNull(ip);\n\t\tassertNull(ip.getImage());\n\n\t\t// try a file that should exist\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"gray8-3x2-sub1.tif\");\n\t\tassertNotNull(ip);\n\t\tassertNotNull(ip.getImage());\n\t\tassertEquals(2,ip.getNDimensions());\n\t\tassertEquals(2,ip.getHeight());\n\t\tassertEquals(3,ip.getWidth());\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertEquals(1,ip.getNFrames());\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(8,ip.getBitDepth());\n\t\tassertEquals(1,ip.getBytesPerPixel());\n\t\tassertEquals(\"gray8-3x2-sub1.tif\",ip.getTitle());\n\t}", "private ImageIcon ImageIcon(byte[] pic) {\n throw new UnsupportedOperationException(\"Not Supported Yet.\");\n\n }", "public a(a imgSrc, J2KImageWriteParamJava wp) {\n/* 123 */ super((f)imgSrc);\n/* 124 */ this.f = wp.getComponentTransformation();\n/* 125 */ this.g = wp.getFilters();\n/* 126 */ this.e = imgSrc;\n/* */ }", "private ImageUtils() {}", "private void drawImages() {\n\t\t\r\n\t}", "public Image call() throws IOException;", "public void addImage(Image img, int x, int y) {\n\n\t}", "protected abstract Image loadImage();", "static void processPicture(byte[][] img) {\n\t\tcontrastImage(img);\n\t\t//generateDebugImage(img);\n\t\t\n\t\t\n\t\tPoint[] ergs = raster(img);\n\t\tprintPoints(ergs);\n\t\tergs = Cluster.cluster(ergs);\n\t\tprintPoints(ergs);\n\t\tBlume[] blumen = Radiuserkennung.erkennen(img, ergs);\n\t\t\n\t\t//Blumen veröffentlichen!\n\t\tDaten.setNewBlumen(blumen);\n\t\t\n\t\tprintBlumen(blumen);\n\t}", "Picture binaryComponentImage() throws Exception;", "@Override\n public void renderNextImage() {\n }", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "public Image getSharp();", "@Override\n protected void paintComponent(final Graphics g) {\n super.paintComponent(g);\n g.drawImage(image, 0, 0, this);\n }", "public void drawImage()\n {\n imageMode(CORNERS);\n //image(grayImgToFit, firstCellPosition[0], firstCellPosition[1]);\n image(canvas, firstCellPosition[0], firstCellPosition[1]);\n //image(tileMiniaturesV[0],10,250);\n //if(avaragedImgs.length > 4)\n // image(avaragedImgs[3],200,200);\n //getTileIntensityAtIndex(15,15);\n //println(tiles[7].getEndBrightness());\n \n }", "public abstract BufferedImage getSnapshot();", "@Override\r\n\tprotected void updateImage(final IScope scope) {\n\t}", "PImage getImage() {\n return _img;\n }", "public int addPicture(byte[] arg0, int arg1) {\n\t\treturn 0;\n\t}", "private ArrayList<Point> extractCC(Point r, Image img)\r\n/* 55: */ {\r\n/* 56: 58 */ this.s.clear();\r\n/* 57: 59 */ this.s.add(r);\r\n/* 58: 60 */ this.temp.setXYBoolean(r.x, r.y, true);\r\n/* 59: 61 */ this.list2.add(r);\r\n/* 60: */ \r\n/* 61: 63 */ Point[] N = { new Point(1, 0), new Point(0, 1), new Point(-1, 0), new Point(0, -1), \r\n/* 62: 64 */ new Point(1, 1), new Point(-1, -1), new Point(-1, 1), new Point(1, -1) };\r\n/* 63: */ \r\n/* 64: 66 */ ArrayList<Point> pixels = new ArrayList();\r\n/* 65: */ int x;\r\n/* 66: */ int i;\r\n/* 67: 68 */ for (; !this.s.isEmpty(); i < N.length)\r\n/* 68: */ {\r\n/* 69: 70 */ Point tmp = (Point)this.s.pop();\r\n/* 70: */ \r\n/* 71: 72 */ x = tmp.x;\r\n/* 72: 73 */ int y = tmp.y;\r\n/* 73: 74 */ pixels.add(tmp);\r\n/* 74: */ \r\n/* 75: 76 */ this.temp2.setXYBoolean(x, y, true);\r\n/* 76: */ \r\n/* 77: 78 */ i = 0; continue;\r\n/* 78: 79 */ int _x = x + N[i].x;\r\n/* 79: 80 */ int _y = y + N[i].y;\r\n/* 80: 82 */ if ((_x >= 0) && (_x < this.xdim) && (_y >= 0) && (_y < this.ydim)) {\r\n/* 81: 84 */ if (!this.temp.getXYBoolean(_x, _y))\r\n/* 82: */ {\r\n/* 83: 86 */ boolean q = img.getXYBoolean(_x, _y);\r\n/* 84: 88 */ if (q)\r\n/* 85: */ {\r\n/* 86: 90 */ Point t = new Point(_x, _y);\r\n/* 87: 91 */ this.s.add(t);\r\n/* 88: */ \r\n/* 89: 93 */ this.temp.setXYBoolean(t.x, t.y, true);\r\n/* 90: 94 */ this.list2.add(t);\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 78 */ i++;\r\n/* 95: */ }\r\n/* 96: 99 */ for (Point t : this.list2) {\r\n/* 97:100 */ this.temp.setXYBoolean(t.x, t.y, false);\r\n/* 98: */ }\r\n/* 99:101 */ this.list2.clear();\r\n/* 100: */ \r\n/* 101:103 */ return pixels;\r\n/* 102: */ }", "private void updateImage() {\r\n \tfor(int i=0;i<rows;i++){\r\n for(int j=0;j<cols;j++){\r\n if(complexArray[i][j].escapeTime(RADIUS, maxIterations)!=-1){//the complex escaped\r\n mandelbrotColor[i][j]=new RGBColor(palette[complexArray[i][j].escapeTime(RADIUS, maxIterations)]);\r\n }\r\n else{\r\n mandelbrotColor[i][j]=palette[complexArray[i][j].escapeTime(RADIUS, maxIterations)+1];//the complex didnt escaped\r\n }\r\n }\r\n }\r\n }", "public abstract BufferedImage transform();", "public native void annotateImage(DrawInfo info);", "@Test\n\tpublic void testPublicInstanceVars() {\n\t\tip = new ImagePlus();\n\t\tassertFalse(ip.changes);\n\t\t/* OBSOLETE\n\t\tassertEquals(1.0,ip.pixelHeight,0.0);\n\t\tassertEquals(1.0,ip.pixelWidth,0.0);\n\t\tassertEquals(\"pixel\",ip.unit);\n\t\tassertEquals(\"pixel\",ip.units);\n\t\tassertFalse(ip.sCalibrated);\n\t\t*/\n\t}", "private void mo71773u() {\n List imageInfos = this.f73950g.getImageInfos();\n if (imageInfos != null && !imageInfos.isEmpty()) {\n ImageInfo imageInfo = (ImageInfo) imageInfos.get(0);\n if (imageInfo != null) {\n this.mCoverView.setVisibility(0);\n this.mLineProgressBar.mo74361a();\n C23323e.m76524b(this.mCoverView, imageInfo.getLabelLarge());\n C23323e.m76502a(imageInfo.getLabelLarge(), (C23328a) new C23328a() {\n /* renamed from: a */\n public final void mo60609a(C13346c<C13326a<C13645c>> cVar) {\n FeedImageViewHolder.this.mLineProgressBar.mo74362b();\n }\n\n /* renamed from: a */\n public final void mo60610a(Exception exc) {\n FeedImageViewHolder.this.mLineProgressBar.mo74362b();\n }\n });\n }\n }\n }", "public Image getTwo();", "Image createImage();", "public Image getHotImage () {\r\n\tcheckWidget();\r\n\treturn hotImage;\r\n}", "@Test\n\tpublic void testGetWidth() {\n\t\tip = new ImagePlus();\n\t\tip.getWidth();\n\t}", "public void setup() {\r\n\r\n\tint w = 324, h = 200;\r\n\tImageProcessor ip = new ColorProcessor(w, h);\r\n\tint centerx = 162, centery = 100;\r\n\tdouble radius = 90;\r\n\tfor (double counter = 0; counter < 20; counter = counter + 0.001) {\r\n\t\tdouble x = Math.sin(counter) * radius + centerx;\r\n\t\tdouble y = Math.cos(counter) * radius + centery;\r\n\t\tip.putPixel((int) x, (int) y, -1);\r\n\r\n\t}\r\n\tnew ImagePlus(\"Circle Test\", ip).show();\r\n\r\n}", "@Test\n\tpublic void testGetImageStackSize() {\n\n\t\tip = new ImagePlus();\n\t\tassertEquals(1,ip.getImageStackSize());\n\n\t\tst = new ImageStack(2,2);\n\t\tst.addSlice(\"GrandmaKat\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"GrandpaHuff\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"UncleRemus\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"AuntRomulus\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"BabyAchilles\", new byte[] {0,8,4,1});\n\n\t\tip.setStack(\"CarribeanDreams\", st);\n\t\tassertEquals(5,ip.getImageStackSize());\n\n\t\tst.deleteLastSlice();\n\t\tassertEquals(4,ip.getImageStackSize());\n\t}", "public abstract void overlayGUI(ImageRepresentation[][] mainImRepMatrix);", "public Image getFive();", "@Override\n\tpublic String getImageAssociee() {\n\t\treturn Images.plusFour;\n\t}", "private static native long createSuperpixelSLIC_0(long image_nativeObj, int algorithm, int region_size, float ruler);", "ImagePlus getRGBResultImage(double[] values,int width,int height){\r\n \t\tImagePlus tempImage = new ImagePlus(\"Visual results\");\r\n \t\ttempImage.setProcessor(new FloatProcessor(width,height,values));\r\n \t\tnew ImageConverter(tempImage).convertToRGB();\r\n \t\treturn tempImage;\r\n \t}", "public synchronized void method_219() {\n if(this.field_730 != null) {\n this.field_730.setPixels(0, 0, this.field_723, this.field_724, this.field_728, this.pixels, 0, this.field_723);\n this.field_730.imageComplete(2);\n }\n }", "private static void addShaped()\n {}", "@Override\n\tpublic void draw(GraphicsContext gc) {\n\t\t\tgc.drawImage(image.get(n), x, y);\n\t\tn++;\n\t\tif (n>=15) n=0;\n\t}", "private void rebuildImageIfNeeded() {\n Rectangle origRect = this.getBounds(); //g.getClipBounds();\n// System.out.println(\"origRect \" + origRect.x + \" \" + origRect.y + \" \" + origRect.width + \" \" + origRect.height);\n\n backBuffer = createImage(origRect.width, origRect.height);\n// System.out.println(\"Image w \" + backBuffer.getWidth(null) + \", h\" + backBuffer.getHeight(null));\n Graphics backGC = backBuffer.getGraphics();\n backGC.setColor(Color.BLACK);\n backGC.fillRect(0, 0, origRect.width, origRect.height);\n// updateCSysEntList(combinedRotatingMatrix);\n paintWorld(backGC);\n }", "void ProcessImage() {\n DoDescribe();\n }", "public static void testPixellateThreeArgs(){\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t caterpillar.explore();\n\t caterpillar.pixellate(18, 60, 40);\n\t caterpillar.explore();\n }", "private static native boolean imencode_0(String ext, long img_nativeObj, long buf_mat_nativeObj, long params_mat_nativeObj);", "private List<? extends Image> getIconImages(String imgunnamedjpg) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public PImage getImg() {\n \treturn img;\n }", "public void a(BufferedImage paramBufferedImage)\r\n/* 52: */ {\r\n/* 53: 64 */ this.l = paramBufferedImage;\r\n/* 54: 65 */ if (this.k != null) {\r\n/* 55: 66 */ this.k.a();\r\n/* 56: */ }\r\n/* 57: */ }", "@Test\n\tpublic void testGetNDimensions() {\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\",st);\n\t\tip.setDimensions(1,1,1);\n\t\tassertEquals(2,ip.getNDimensions());\n\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(3,ip.getNDimensions());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(3,ip.getNDimensions());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(3,ip.getNDimensions());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(4,ip.getNDimensions());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(5,ip.getNDimensions());\n\t}", "Picture identifyComponentImage() throws Exception;", "void mo12205a(Bitmap bitmap);", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(img, 0, 0, null);\n }", "@Override\n protected void putImageBuffer(BufferedImage input) \n {\n // Load data in. \n for (int y = 0; y < height; y++) \n {\n for (int x = 0; x < width; x++) \n {\n\t\tdouble h = getHeight(input, x, y);\n\t\tdouble du = 0;\n\t\tdouble dv = 0;\n\t\t\n\t\tif(x > 0)\n\t\t{\t\n\t\t du += h - getHeight(input, x-1, y);\n\t\t}\n\t\tif(x < width - 1)\n\t\t{\n\t\t du += getHeight(input, x+1, y) - h;\n\t\t}\n\t\tif(y > 0)\n\t\t{\n\t\t dv += h - getHeight(input, x , y-1);\n\t\t}\n\t\tif(y < height - 1)\n\t\t{\n\t\t dv += getHeight(input, x, y+1) - h;\n\t\t}\n\t\t\n\t\tdouble u = -du;\n\t\tdouble v = -dv;\n\t\tdouble w = 0.25;\n \n\t\tdouble n = Math.sqrt(u*u + v*v + w*w);\n\n byte a = (byte)(h * 255.0);\n byte r = (byte)((u / n + 1.0) / 2.0 * 255.0);\n byte g = (byte)((v / n + 1.0) / 2.0 * 255.0);\n byte b = (byte)((w / n + 1.0) / 2.0 * 255.0);\n \n int index = (x + y * allocatedWidth) * 4;\n pixelData.put(index++, r);\n pixelData.put(index++, g);\n pixelData.put(index++, b);\n pixelData.put(index , a);\n }\n }\n }", "private static native boolean retrieve_0(long nativeObj, long image_nativeObj, int flag);", "public Image getFour();", "public Image getImage(URL paramURL) {\n/* 276 */ return getAppletContext().getImage(paramURL);\n/* */ }", "public Bitmap getFinalShapesImage();", "public native MagickImage minifyImage() throws MagickException;", "public void isImagePresent() {\r\n\t\t\t\r\n\t\t}", "String getImage();", "@Test\n\tpublic void testSetProcessor() {\n\t\tip = new ImagePlus();\n\t\ttry {\n\t\t\tip.setProcessor(\"DoesNotMatterForThisCase\",null);\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\t// throws exception if passed processor has no pixels\n\t\tip = new ImagePlus();\n\t\tproc = new ByteProcessor(3,5,null,new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\ttry {\n\t\t\tip.setProcessor(\"DoesNotMatterForThisCase\",proc);\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\t// if stack size > 1 and passed processor dims != my dims throw IllegArgExcep\n\t\t//proc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\t//st = new ImageStack(1,3);\n\t\t//st.addSlice(\"Slice1\",proc);\n\t\t//st.addSlice(\"Slice2\",proc);\n\t\t//ip = new ImagePlus();\n\t\t//ip.width = 1;\n\t\t//ip.height = 3;\n\t\t//ip.setStack(\"TheStack\", st);\n\t\t//ip.height = 4;\n\t\t//ip.width = 7;\n\t\t//try {\n\t\t//\tip.setProcessor(\"DoesNotMatterForThisCase\",proc);\n\t\t//\tfail();\n\t\t//} catch (IllegalArgumentException e) {\n\t\t//\tassertTrue(true);\n\t\t//}\n\n\t\t// if stack size <= 1 then stack should be null and currSlice should be 1\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3);\n\t\tst.addSlice(\"Slice1\",proc);\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 3;\n\t\tip.setStack(\"TheStack\", st);\n\t\tip.setProcessor(\"DoesNotMatterForThisCase\",proc);\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertEquals(1,ip.currentSlice);\n\n\t\t// try with null title\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3);\n\t\tst.addSlice(\"Slice1\",proc);\n\t\tst.addSlice(\"Slice2\",proc);\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 3;\n\t\tip.setStack(\"TheStack\", st);\n\t\tip.setProcessor(null,proc);\n\t\tassertEquals(2,ip.getStackSize());\n\t\tassertEquals(\"TheStack\",ip.getTitle());\n\t\tassertEquals(proc,ip.getProcessor());\n\t\tassertEquals(ImagePlus.GRAY8,ip.getType());\n\t\tassertEquals(8,ip.getBitDepth());\n\t\tassertEquals(1,ip.getBytesPerPixel());\n\n\t\t// try with non-null title\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3);\n\t\tst.addSlice(\"Slice1\",proc);\n\t\tst.addSlice(\"Slice2\",proc);\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 3;\n\t\tip.setStack(\"TheStack\", st);\n\t\tip.setProcessor(\"MattersForThisCase\",proc);\n\t\tassertEquals(2,ip.getStackSize());\n\t\tassertEquals(\"MattersForThisCase\",ip.getTitle());\n\t\tassertEquals(proc,ip.getProcessor());\n\t\tassertEquals(ImagePlus.GRAY8,ip.getType());\n\t\tassertEquals(8,ip.getBitDepth());\n\t\tassertEquals(1,ip.getBytesPerPixel());\n\n\t\t// try to get roi subcase to run\n\t\tproc = new ShortProcessor(1,3,new short[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tip = new ImagePlus();\n\t\tip.width = 4;\n\t\tip.height = 4;\n\t\tip.setRoi(1,1,2,2);\n\t\tassertNotNull(ip.getRoi());\n\t\tip.setProcessor(\"Ooch\",proc);\n\t\tassertNull(ip.getRoi());\n\t\tassertEquals(1,ip.width);\n\t\tassertEquals(3,ip.height);\n\t\tassertEquals(ImagePlus.GRAY16,ip.getType());\n\t\tassertEquals(16,ip.getBitDepth());\n\t\tassertEquals(2,ip.getBytesPerPixel());\n\t}", "public native int getRenderingIntent() throws MagickException;" ]
[ "0.73103803", "0.7023013", "0.683138", "0.67627764", "0.6740415", "0.6675402", "0.65333897", "0.6510469", "0.6435533", "0.6416236", "0.6380042", "0.6329218", "0.6240208", "0.6225519", "0.6208421", "0.62079406", "0.61902267", "0.61885697", "0.61885697", "0.6118933", "0.6100195", "0.60936016", "0.60830444", "0.60726017", "0.6064318", "0.60607827", "0.60446733", "0.60446227", "0.6044357", "0.6044357", "0.60342", "0.5988042", "0.5987577", "0.59852874", "0.5960102", "0.5959365", "0.5957678", "0.59566045", "0.5952925", "0.5951826", "0.59464836", "0.593035", "0.59056365", "0.58920705", "0.58779454", "0.5859118", "0.5843918", "0.58276343", "0.5820118", "0.58066475", "0.5802688", "0.5798206", "0.57910407", "0.5776964", "0.5773986", "0.5771197", "0.576623", "0.57528883", "0.5748257", "0.5746242", "0.5745975", "0.5738839", "0.57363653", "0.57335496", "0.57327026", "0.5729388", "0.5718428", "0.5715547", "0.57108575", "0.5701259", "0.5693319", "0.5685928", "0.5684712", "0.5682117", "0.5678252", "0.5673748", "0.56736875", "0.56588334", "0.5657455", "0.56560504", "0.56559426", "0.56548524", "0.56539357", "0.56501836", "0.5649065", "0.5643657", "0.56399214", "0.5639792", "0.5637313", "0.5631054", "0.5625249", "0.5619759", "0.5617588", "0.56174845", "0.560104", "0.5598976", "0.55913526", "0.55895185", "0.5589216", "0.5584503" ]
0.56621087
77
ImagePlus(string) : the string is either a file location or a URL note: will not test URL version try a file that should not exist
@Test public void testImagePlusString() { ip = new ImagePlus(DataConstants.DATA_DIR + "hongKongFooey.tif"); assertNotNull(ip); assertNull(ip.getImage()); // try a file that should exist ip = new ImagePlus(DataConstants.DATA_DIR + "gray8-3x2-sub1.tif"); assertNotNull(ip); assertNotNull(ip.getImage()); assertEquals(2,ip.getNDimensions()); assertEquals(2,ip.getHeight()); assertEquals(3,ip.getWidth()); assertEquals(1,ip.getStackSize()); assertEquals(1,ip.getNFrames()); assertEquals(1,ip.getNChannels()); assertEquals(8,ip.getBitDepth()); assertEquals(1,ip.getBytesPerPixel()); assertEquals("gray8-3x2-sub1.tif",ip.getTitle()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testImagePlusStringImage() {\n\t\tip = new ImagePlus(\"Cousin\",(BufferedImage)null);\n\t\tassertNotNull(ip);\n\t\tassertEquals(\"Cousin\",ip.getTitle());\n\t\tassertNull(ip.getImage());\n\n\t\t// pass in a real image\n\t\tImage img = new BufferedImage(50,75,BufferedImage.TYPE_USHORT_555_RGB);\n\t\tip = new ImagePlus(\"Vinny\",img);\n\t\tassertNotNull(ip);\n\t\tassertEquals(\"Vinny\",ip.getTitle());\n\t\tassertNotNull(ip.getImage()); // a different image is created internally so can only test existence\n\t}", "public Image getImage(URL paramURL, String paramString) {\n/* */ try {\n/* 298 */ return getImage(new URL(paramURL, paramString));\n/* 299 */ } catch (MalformedURLException malformedURLException) {\n/* 300 */ return null;\n/* */ } \n/* */ }", "private Image makeAnImage(String s) throws IOException {\n //String imageName = s.substring(s.indexOf(\"\\\\(\") + 1, s.indexOf(\"\\\\)\"));\n String[] parts = s.split(\"\\\\(\");\n String imageName = parts[1].substring(0, parts[1].length() - 1);\n // load the image data into an java.awt.Image object.\n Image img = null;\n InputStream is = ClassLoader.getSystemClassLoader().getResourceAsStream(imageName);\n try {\n img = ImageIO.read(is);\n } catch (IOException e) {\n System.out.println(\"Error: failed to load image\");\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n System.out.println(\"Failing closing the image\");\n }\n }\n }\n return img;\n }", "java.lang.String getImage();", "String getImage();", "Builder addImage(URL value);", "private Image createImage(String image_file) {\n\t\tImage img = new Image(image_file);\n\t\treturn img;\n\t}", "public static BufferedImage iconMaker(String s){\n BufferedImage buttonIcon;\n try{\n buttonIcon = ImageIO.read(new File(FILE_PATH + s));\n }catch(IOException e){\n buttonIcon = null;\n System.out.println(\"BooHOO\");\n }\n return buttonIcon;\n }", "Builder addImage(String value);", "Person addImage(String name, String imagePath);", "private BufferedImage getImage(String f) {\n BufferedImage image = null;\n File file = new File(f);\n\n try {\n image = ImageIO.read(file);\n }\n catch (Exception ex) {\n JOptionPane.showMessageDialog(\n null,\n \"Image could not be read!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n return image;\n }", "String getImagePath();", "String getImagePath();", "public Image getImage(URL paramURL) {\n/* 276 */ return getAppletContext().getImage(paramURL);\n/* */ }", "java.lang.String getImagePath();", "public Picture(String url) {\n\t\t//file naming convention: noOfTypos_image_imageNo\n\t\t//3_image_1\n\t\tnoTypos = Integer.parseInt(Character.toString(url.charAt(0)));\n\t\t//TODO: Finish generating imageFile\n\t}", "private void addImg(File url) {\n if (url != null) {\n //On charge l'image en memoire dans la variable img\n panImg.chargerIMG(url);\n lstImg.addImg(panImg.getImg(), url);\n }\n }", "private static Image fileToImage(File file) throws MalformedURLException {\r\n\r\n String localUrl = file.toURI().toURL().toString(); // Get URL of file\r\n Image image = new Image(localUrl); // Create new image\r\n return image;\r\n }", "public static Image getImage(String string) {\n\t Bundle bundle = FrameworkUtil.getBundle(Activator.class);\n\t URL url = FileLocator.find(bundle, new Path(\"icons/\" + string), null);\n\t ImageDescriptor image = ImageDescriptor.createFromURL(url);\n\t return image.createImage();\n\t}", "private Uri getImageUri(String path) {\n return Uri.fromFile(new File(path));\n }", "private BufferedImage getImage(ExternalGraphic eg) {\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"got a \" + eg.getFormat());\n }\n \n if (supportedGraphicFormats.contains(eg.getFormat().toLowerCase())) {\n if (eg.getFormat().equalsIgnoreCase(\"image/gif\")\n || eg.getFormat().equalsIgnoreCase(\"image/jpg\")\n || eg.getFormat().equalsIgnoreCase(\"image/png\")) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"a java supported format\");\n }\n \n try {\n BufferedImage img = imageLoader.get(eg.getLocation(), isInteractive());\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"Image return = \" + img);\n }\n \n return img;\n } catch (MalformedURLException e) {\n LOGGER.warning(\"ExternalGraphicURL was badly formed\");\n }\n }\n }\n \n return null;\n }", "abstract public String imageUrl ();", "public Boolean testImage(String url) {\r\n\t\ttry {\r\n\t\t\tBufferedImage image = ImageIO.read(new URL(url));\r\n\t\t\tif (image != null) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.err.println(\"URL error with image\");\r\n\t\t\treturn false;\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"IO error with image\");\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private String image_path(String path, String name, String ext) {\n return path + \"/\" + name + \".\" + ext;\n }", "java.lang.String getPackageImageURL();", "@Override\n\tpublic File getImage(String name) {\n\n\t\tFile returnValue = new File(RestService.imageDirectory + name + \".png\");\n\t\t\n\t\tif(returnValue.exists() && !returnValue.isDirectory()) \n\t\t{ \n\t\t return returnValue;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturnValue = new File(RestService.imageDirectory + name + \".jpg\");\n\t\t\t\n\t\t\tif(returnValue.exists() && !returnValue.isDirectory()) \n\t\t\t{ \n\t\t\t return returnValue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void testGetImage() {\n\n\t\tip = new ImagePlus();\n\t\t//assertNull(ip.img);\n\t\tassertNull(ip.getImage());\n\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"gray8-3x2-sub1.tif\");\n\t\t//assertNull(ip.img);\n\t\tassertNotNull(ip.getImage());\n\t}", "private static Bitmap readImageUrl(String urlString) {\n\n // Create an empty bitmap image\n Bitmap image = null;\n\n try {\n // Create and open an inputStream on the urlString\n InputStream in = new java.net.URL(urlString).openStream();\n\n // Decode the inputStream and set that to the bitmap image\n image = BitmapFactory.decodeStream(in);\n\n } catch (IOException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error reading image url: \" + e);\n }\n\n // Return the image\n return image;\n }", "public void getImagePath(String imagePath);", "@Test\r\n public void testCreateImageUrl() throws MovieDbException {\r\n LOG.info(\"createImageUrl\");\r\n MovieDb movie = tmdb.getMovieInfo(ID_MOVIE_BLADE_RUNNER, \"\");\r\n String result = tmdb.createImageUrl(movie.getPosterPath(), \"original\").toString();\r\n assertTrue(\"Error compiling image URL\", !result.isEmpty());\r\n }", "private static String getImage(String str) {\n\t\tStringBuffer bff=new StringBuffer(str);\r\n\t\treturn bff.reverse().toString();\r\n\t}", "private Image getImage(String url) {\r\n\t\ttry {\r\n\t\t\treturn ImageIO.read(new URL(url));\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nSystem.out.println(\"Enter the String:\");\r\nString str=sc.nextLine();\r\nString r=getImage(str);\r\n\r\n}", "public String ImageControl(String image) {\n \n String tmp = null;\n \n if (image != null && !image.isEmpty()){\n tmp = image;\n } else {\n int num = (new Random()).nextInt(4);\n tmp = \"icon\"+num+\".png\";\n }\n \n return tmp;\n }", "public static Image loadImage(String imagePath)\n {\n File imFile = new File(imagePath);\n Image image = null;\n\n //load the image. Hopefully doesn't actually throw exceptions\n try\n {\n //load up the image if it exists - this hopefully prevents exceptions\n if (imFile != null && imFile.exists())\n image = ImageIO.read(imFile);\n else System.out.println(\"Image not loaded! \" + imagePath + \" does not exist\");\n }\n catch (IOException e)\n {\n System.out.println(\"Exception: String Image not loaded! \" + imagePath + \"\\n\" + e);\n }\n\n return image;\n }", "public native boolean modulateImage(String modulate) throws MagickException;", "@Override\r\n public String getImage(String path, String ext) {\r\n String imageString = \"\";\r\n try {\r\n BufferedImage originalImage = ImageIO.read(new File(path));\r\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n ImageIO.write(originalImage, ext, bos);\r\n byte[] imageBytes = bos.toByteArray();\r\n BASE64Encoder encoder = new BASE64Encoder();\r\n imageString = encoder.encode(imageBytes);\r\n System.out.println(\"Image \"+path+\" loaded\");\r\n bos.close();\r\n return imageString;\r\n } catch (IOException ex) {\r\n System.err.println(\"\"+ex.getMessage());\r\n return null;\r\n }\r\n }", "public void enterImageURL(String value) {\r\n\r\n\t\treportStep(\"About to enter the Image URL \" + value, \"INFO\");\r\n\r\n\t\tif(enterTextInChrome(appImageURL,value)) {\r\n\t\t\t\r\n\t\t\treportStep(\"Successfully entered the Image URL \" + value, \"PASS\");\r\n\r\n\t\t}else {\r\n\r\n\t\t\treportStep(\"Failed to enter the Image URL \" + value, \"FAIL\");\r\n\t\t}\r\n\t}", "public String getImage() {\n\t\tString ans=\"Data/NF.png\";\n\t\tif(image!=null)\n\t\t\tans=\"Data/Users/Pics/\"+image;\n\t\treturn ans;\n\t}", "public boolean generateImageFromText();", "public static boolean isImageUrl(String url) {\n if (TextUtils.isEmpty(url)) return false;\n\n String cleanedUrl = removeQuery(url.toLowerCase());\n\n return cleanedUrl.endsWith(\"jpg\") || cleanedUrl.endsWith(\"jpeg\") ||\n cleanedUrl.endsWith(\"gif\") || cleanedUrl.endsWith(\"png\");\n }", "void setImage(String image);", "public static BufferedImage loadImage(String ref) {\n BufferedImage b1 = null;\n try {\n b1 = ImageIO.read(new File(ref));\n } catch (IOException e) {\n System.out.println(\"error loading the image: \" + ref + \" : \" + e);\n }\n return b1;\n }", "private String makeImageUri(String name) {\n\t\tString image = name;\n\t\t// remove all white spaces\n\t\tString in = image.replaceAll(\"\\\\s+\", \"\");\n\t\t// turn to lower case\n\t\tString iname = in.toLowerCase();\n\t\tSystem.out.println(\"iName is: \" + iname);\n\t\tString mDrawableName = iname;\n\t\t// get the resId of the image\n\t\tint resID = getResources().getIdentifier(mDrawableName, \"drawable\",\n\t\t\t\tgetPackageName());\n\n\t\t// resID is notfound show default image\n\t\tif (resID == 0) {\n\t\t\tresID = getResources().getIdentifier(\"default_place\", \"drawable\",\n\t\t\t\t\tgetPackageName());\n\t\t}\n\n\t\t// make the uri\n\t\tUri imageURI = Uri.parse(\"android.resource://\" + getPackageName() + \"/\"\n\t\t\t\t+ resID);\n\t\timage = imageURI.toString();\n\t\treturn image;\n\t}", "public static Image loadImage(String path) {\n File file = new File(path);\n String imagePath = file.getAbsolutePath();\n //Modify based on OS\n if (File.separatorChar == '\\\\') {\n // From Windows to Linux/Mac\n imagePath=imagePath.replace('/', File.separatorChar);\n imagePath = imagePath.replace(\"\\\\\", \"\\\\\\\\\");\n } else {\n // From Linux/Mac to Windows\n imagePath=imagePath.replace('\\\\', File.separatorChar);\n\n }\n \n //Add file: to work with JavaFX\n imagePath=\"file:\"+imagePath;\n\n return new Image(imagePath);\n }", "void setImageLocation(URL imageLocation) throws IOException;", "private Image getImage(String url) {\n\t\ttry {\n\t\t\treturn ImageIO.read(new URL(url));\n\t\t} catch(IOException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "Bitmap mo27481a(String str);", "protected abstract Image loadImage();", "void setImageFromURL(String imageURL);", "@Test\n\tpublic void testImagePlusStringImageProcessor() {\n\t\tproc = new ByteProcessor(20,45);\n\t\tip = new ImagePlus(\"Houdini\", proc);\n\t\tassertNotNull(ip);\n\t\tassertEquals(proc,ip.getProcessor());\n\t}", "private boolean isImageType(String source) {\r\n int lastDot = source.lastIndexOf(\".\");\r\n String type = source.substring(lastDot);\r\n if (type.toLowerCase().equals(\".jpg\") || type.toLowerCase().equals(\".tif\") || type.toLowerCase().equals(\".gif\")\r\n || type.toLowerCase().equals(\".png\") || type.toLowerCase().equals(\".bmp\") || type.toLowerCase().equals(\".jpeg\")\r\n || type.toLowerCase().equals(\".jpe\") || type.toLowerCase().equals(\".dib\") || type.toLowerCase().equals(\".jfif\")) {\r\n return true;\r\n }\r\n return false;\r\n }", "public void openimagefile(String fn,int sno)\n {\n\t try\n\t {\n\t i=0;\n\t FileInputStream fis = new FileInputStream(fn);\n\t DataInputStream dis=new DataInputStream(fis);\n\t while((ch=dis.readUnsignedByte())!=-1)\n\t {\n\t\tp[i]=ch;\n p1[i]=ch;\n\t\ti++;\n\t }\n fis.close();\n dis.close();\n }\n catch(Exception e)\n\t{\n maxp=i;\n switch(p[28])\n\t {\n \t case 24:\n \t\t{\n init24();\n\t \tbreak;\n } //case 24 ends\n\t } // switchp[28] ends\n\t} //catch() ends\n img=createImage(new MemoryImageSource(width,height,pixels,0,width));\n img1=createImage(new MemoryImageSource(width,height,pixels1,0,width));\n }", "protected Image addImage(String href, Panel hp, String stylename, Hyperlink hyperlink) {\n if (href == null) {\n return null;\n }\n if (href.equals(\"\")) {\n return null;\n }\n final Image image = new Image();\n image.setUrl(mywebapp.getUrl(href));\n addImage(image, hp, stylename, hyperlink);\n return image;\n }", "boolean hasImagePath();", "private Image loadImage (String path) {\n\t\tImageIcon imageicon = new ImageIcon (path);\r\n\t\tImage newImage = imageicon.getImage();\r\n\t\treturn newImage;\r\n\t}", "void loadPhoto(String filename) throws IOException;", "public void setImage( String s )\r\n {\r\n java.net.URL url = getClass().getResource( s );\r\n if ( url == null )\r\n {\r\n url = getClass().getResource( \"/\" + s );\r\n if ( url == null )\r\n {\r\n try\r\n { // for applications\r\n content = ImageIO.read( new File( s ) );\r\n }\r\n catch ( IOException ioe )\r\n {\r\n ioe.printStackTrace();\r\n }\r\n }\r\n else\r\n {\r\n content = getToolkit().getImage( url );\r\n }\r\n }\r\n else\r\n {\r\n content = getToolkit().getImage( url );\r\n }\r\n flush();\r\n\r\n }", "private Boolean isImage(PrintDocument printDocument) {\n String url = printDocument.getUrl();\n String filename = url.substring(url.lastIndexOf(\"/\") + 1);\n\n return filename.matches(\"^.*\\\\.(jpg|jpeg|png|gif)$\");\n }", "File resolveImage(Box box);", "SafeUri getDefaultImageUri();", "public void testGetSetImageString() {\n\t\tassertEquals(testNormal.getImage(), new ImageIcon(\"PACMAN/smallpill.png\").getImage());\n\t\t\n\t\t//SET NEW IMAGE (\"PACMAN/littlepill.png\" because it exists)\n\t\ttestNormal.setImage(\"PACMAN/bigpill.png\");\n\t\tassertEquals(testNormal.getImage(), new ImageIcon(\"PACMAN/bigpill.png\").getImage());\n\t}", "private BufferedImage sacaFoto(String fo){\n File input = null;\n BufferedImage image = null;\n try{\n input = new File(fo);\n image = ImageIO.read(input);\n }catch(IOException ioe){\n System.out.println(\"Hubo un error en la lectura de la imagen\");\n System.exit(1);\n }\n return image;\n }", "@Override\n\tpublic String addImage(String imageFileName) throws Exception {\n\t\treturn null;\n\t}", "private BufferedImage loadPic(String name) {\n\t\tBufferedImage pic=null;\n\t\ttry {\n\t\t\tpic = ImageIO.read(new File(\"store/\"+name));\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t\treturn pic;\n\t}", "@Test\n public void getImgByUri() {\n String uri = \"https://image.chosun.com/sitedata/image/201410/30/2014103000633_0.jpg\";\n\n\n// onView(withId(R.id.url_load_et)).perform(replaceText(uri));\n// onView(withId(R.id.url_load_btn)).perform(click());\n// onView(withId(R.id.save_btn)).perform(click());\n// Espresso.pressBack();\n }", "private void extractImage(String inputImageName) throws FileNotFoundException, IOException, InvalidFormatException {\n\t\t@SuppressWarnings(\"resource\")\n\t\tHWPFDocument doc = new HWPFDocument(new FileInputStream(inputImageName));\n//\t\tXSSFWorkbook doc = new XSSFWorkbook(new File(inputImageName));\n\t\tList<Picture> pics = doc.getPicturesTable().getAllPictures();\n//\t\tList<XSSFPictureData> pics = doc.getAllPictures();\n\t\tfor (int i = 0; i < pics.size(); i++) {\n\t\t\tPicture pic = (Picture) pics.get(i);\n\n\t\t\tFileOutputStream outputStream = new FileOutputStream(inputImageName + \"Apache_\");\n\t\t\toutputStream.write(pic.getContent());\n\t\t\toutputStream.close();\n\t\t}\n\t\tSystem.out.println(\"Image extracted successfully\");\n\t}", "void selectImage(String path);", "public abstract String getImageFormat();", "private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }", "public static Image imageFromURL(final URL url)\tthrows IOException,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tNotImageException\r\n\t{\r\n\t\turl.openStream().close(); // throws IOException if url bad\r\n\t\tfinal Image image = TOOLKIT.getImage(url);\r\n\t\tensureImage(image);\r\n\t\treturn image;\r\n\t}", "String avatarImage();", "public IImage createImage(String name) throws IOException {\n return null;\r\n }", "IMG createIMG();", "public void loadInputImage()\n{\n selectInput(\"Select a file to process:\", \"imageLoader\"); // select image window -> imageLoader()\n}", "Image createImage();", "public native double testyolo(String imgfile);", "private BufferedImage imageFromBase64(final String imageString) {\r\n\t\ttry {\r\n\t\t\tfinal boolean useCache=ImageIO.getUseCache();\r\n\t\t\ttry {\r\n\t\t\t\tImageIO.setUseCache(false); /* Wird benötigt, wenn im Stream nicht gesprungen werden kann, was bei einem ByteArrayInputStream nun definitiv möglich ist. */\r\n\t\t\t\treturn ImageIO.read(new ByteArrayInputStream(Base64.getDecoder().decode(imageString)));\r\n\t\t\t} finally {\r\n\t\t\t\tImageIO.setUseCache(useCache);\r\n\t\t\t}\r\n\t\t} catch (IOException | IllegalArgumentException e) {return null;}\r\n\t}", "private String getTipoImage(String nameImage) {\n\t\tString retorno = \"\";\n\t\tString[] textoSeparado = nameImage.split(\"\\\\.\");\n\n\t\tif (textoSeparado != null && textoSeparado.length != 0)\n\t\t\tswitch (textoSeparado[textoSeparado.length - 1]) {\n\t\t\tcase \"jpg\":\n\t\t\t\tretorno = \"image/jpeg\";\n\t\t\t\tbreak;\n\t\t\tcase \"png\":\n\t\t\t\tretorno = \"image/png\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tretorno = \"image/\" + textoSeparado[textoSeparado.length - 1];\n\t\t\t}\n\n\t\treturn retorno;\n\t}", "static Image forUrl(String imageType, String url) {\n\t\treturn () -> {\n\t\t\ttry {\n\t\t\t\tURLConnection urlConnection = new URL(url).openConnection();\n\t\t\t\turlConnection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36\");\n\t\t\t\tInputStream stream = urlConnection.getInputStream();\n\t\t\t\treturn forStream(imageType, stream).getData();\n\t\t\t} catch (IOException e) {\n\t\t\t\tDiscord4J.LOGGER.error(LogMarkers.UTIL, \"Discord4J Internal Exception\", e);\n\t\t\t}\n\t\t\treturn defaultAvatar().getData();\n\t\t};\n\t}", "private Integer uploadURL(URL url) {\n \t\ttry {\n \t\t\tString contentType = url.openConnection().getContentType();\n \t\t\tif (contentType == null || !contentType.startsWith(\"image/\")) {\n \t\t\t\treturn null;\n \t\t\t}\n \n \t\t\tString name = url.getPath().substring(1);\n \t\t\tif (contentType.contains(\"png\")) {\n \t\t\t\tname += \".png\";\n \t\t\t} else if (contentType.contains(\"jpg\")\n \t\t\t\t\t|| contentType.contains(\"jpeg\")) {\n \t\t\t\tname += \".jpg\";\n \t\t\t} else if (contentType.contains(\"gif\")) {\n \t\t\t\tname += \".gif\";\n \t\t\t}\n \n\t\t\treturn apiFactory.getFileAPI().uploadImage(url, name);\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \n \t\t\treturn null;\n \t\t}\n \t}", "public void Func_imagefile(){\n\n\t\tswf_env.containImg = true;\n\n\n\t\tthis.value = new SWFValue(\"Func\");\n\n\t\tString path = this.getAtt(\"path\", \".\");\n\t\tString filename = this.getAtt(\"default\");\n\t\tString type = \"auto\";\n\t\tvalue.instanceName = \"img\"+ Integer.toString(swf_env.instanceID);\n\t\tvalue.data = \"\";\n\t\tvalue.imgpath = path + \"/\" + filename;\n\t\tvalue.inter_imgpath = path + \"/\" + filename;\n\t\tvalue.inter_name = \"intimg\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.tmp = \"tmp\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.lnum = Integer.toString(swf_env.visibleflag_counter);\n\n\n\t\tif(!path.startsWith(\"/\")) {\n\t\t\tString basedir = GlobalEnv.getBaseDir();\n\t\t\tLog.out(\"basedir= \" +basedir);\n\t\t\tif(basedir != null && basedir != \"\") {\n\t\t\t\tpath = basedir + path;\n\t\t\t}\n\t\t}\n\n\t\tString filepath = path + \"/\" + filename;\n\n\n\t\tsetDecoration1();\n\t\tvalue.margin = margin;\n\n\n\t\tSystem.out.println(\"filepath = \"+filepath);\n\t\tint img = swf_env.open_image_file(type, filepath);\n\t\tvalue.img = img;\n\n\t\tdata_width = swf_env.get_value(\"imagewidth\", img);\n\t\tdata_height = swf_env.get_value(\"imageheight\", img);\n\t\tSystem.out.println(\"imagesize: \"+data_width+\" \"+data_height);\n\t\twidth = data_width + margin * 2;\n\t\theight = data_height + margin * 2;\n\n\n\t\tsetDecoration2();\n\n\t\tif(data_width > width){\n\t\t\tint original_width = data_width;\n\t\t\tdata_width = width - margin * 2;\n\t\t\tint scale = data_width / original_width;\n\t\t\tdata_height = data_height * scale;\n\t\t\theight = data_height + margin * 2;\n\t\t}\n\t\tif(data_height > height){\n\t\t\tint original_height = data_height;\n\t\t\tdata_height = height - margin * 2;\n\t\t\tint scale = data_height / original_height;\n\t\t\tdata_width = data_width * scale;\n\t\t\twidth = data_width + margin * 2;\n\t\t}\n\n\t\tvalue.data_width = data_width;\n\t\tvalue.data_height = data_height;\n\t\tvalue.width = width;\n\t\tvalue.height = height;\n\t\t//morya wrote\n\t\tvalue.int_w = width;\n\t\tvalue.int_h = height;\n\n\n\t\tsetDecoration3();\n\n\t\tswf_env.tmp_width = width;\n\t\tswf_env.tmp_height = height;\n\n\n\t\tswf_env.instanceID++;\n\n\t}", "public File String_to_File(String img_url) {\n\n try {\n File rootSdDirectory = Environment.getExternalStorageDirectory();\n\n casted_image = new File(rootSdDirectory, \"attachment.jpg\");\n if (casted_image.exists()) {\n casted_image.delete();\n }\n casted_image.createNewFile();\n\n FileOutputStream fos = new FileOutputStream(casted_image);\n\n URL url = new URL(img_url);\n HttpURLConnection connection = (HttpURLConnection) url\n .openConnection();\n connection.setRequestMethod(\"GET\");\n connection.setDoOutput(true);\n connection.connect();\n InputStream in = connection.getInputStream();\n\n byte[] buffer = new byte[1024];\n int size = 0;\n while ((size = in.read(buffer)) > 0) {\n fos.write(buffer, 0, size);\n }\n fos.close();\n return casted_image;\n\n } catch (Exception e) {\n\n System.out.print(e);\n // e.printStackTrace();\n\n }\n return casted_image;\n }", "java.lang.String getPictureUri();", "private static Bitmap getBitmap(String imageURL){\n\t\tBitmap bmp = null;\n\n\t\ttry {\n\t\t\tbmp = BitmapFactory.decodeStream((InputStream) new URL(imageURL).getContent());\n\t\t} catch (MalformedURLException e) {\n\t\t} catch (IOException e) {\n\t\t}\n\n\t\treturn bmp;\n\t}", "private void m10994a(String str, int i) {\n View reusedImageView = getReusedImageView();\n reusedImageView.setTag(str);\n reusedImageView.setId(i);\n reusedImageView.setOnClickListener(this);\n Object obj = str.startsWith(\"http://\") ? str + \"?imageView2/2/w/\" + ((this.f9968i * 4) / 5) : \"file://\" + str;\n if (!TextUtils.isEmpty(obj)) {\n Picasso.with(this.f9965f).load(obj).fit().error(C1373R.drawable.bg_1b1b1b).placeholder(C1373R.drawable.bg_1b1b1b).centerCrop().into(reusedImageView);\n }\n this.f9972m.addView(reusedImageView, i);\n }", "@Override\n public Bitmap getImage(String url) {\n try {\n if (!taskForUrlAlreadyRunning(url)) {\n imageDownloadTaskMap.put(url, startDownload(url));\n }\n } catch (MalformedURLException e) {\n Log.i(\"ImageDownloadManager\", \"Malformed url\" + url);\n }\n return null;\n }", "public static Image findImage(Settings settings) throws IOException {\n\n for (int i = 0; i < ATTEMPTS; i++) {\n try {\n char[] ranName = new char[NAMELEN];\n Random ran = new Random(System.currentTimeMillis());\n for (int c = 0; c < NAMELEN; c++) {\n ranName[c] = (char)('A' + ran.nextInt(26));\n }\n\n return findImageAt(MessageFormat.format(URL, new String(ranName)), settings);\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }\n\n throw new IOException(\"Failed to find an inspiration to draw\");\n }", "public String getImageUrl();", "public static ImageIcon loadImage(String name) throws FileNotFoundException {\n ImageIcon image = null;\n URL url = StitchingGuiUtils.getFigureResource(name);\n if (url != null) {\n java.awt.Image img = java.awt.Toolkit.getDefaultToolkit().createImage(url);\n if (img != null) {\n image = new ImageIcon(img);\n }\n }\n\n if (image == null)\n throw new FileNotFoundException(\"ERROR: Loading image \" + name + \" not found.\");\n\n return image;\n }", "private Drawable creaImmagineDaUrl(String urlImmagine)\n {\n try\n {\n InputStream is = (InputStream) new URL(urlImmagine).getContent();\n Drawable d = Drawable.createFromStream(is, null);\n return d;\n }catch (Exception e) {\n System.out.println(\"Exc=\"+e);\n return null;\n }\n }", "private Uri getPicOutputUri(){\n String filePath = getExternalFilesDir(Environment.DIRECTORY_PICTURES) + File.separator + String.valueOf(System.currentTimeMillis())+\".jpg\";\n return Uri.fromFile(new File(filePath));\n }", "public ImageFile(BufferedImage img) throws ImageException{\r\n\tloadImage(img);\r\n}", "protected abstract Image generateImage(Graphics g, String text, Dimension d);", "public void testCase1_RequestImageFromFilePath() throws IllegalArgumentException,\n InstantiationException, IllegalAccessException, InvocationTargetException,\n NoSuchFieldException, NoSuchMethodException, InterruptedException {\n Logger.d(TAG, \"testCase1_RequestImageFromFilePath() entry\");\n MockOnLoadImageFinishListener listener = new MockOnLoadImageFinishListener();\n MockOnLoadImageFinishListener listenerNext = new MockOnLoadImageFinishListener();\n String filePath = getFilePath(0);\n String filePathNext = getFilePath(1);\n assertNotSame(filePath, filePathNext);\n assertNotNull(filePath);\n Bitmap bitmap = ImageLoader.requestImage(filePath, listener);\n ImageLoader.requestImage(filePathNext, listenerNext);\n getInstrumentation().waitForIdleSync();\n ImageLoader.interrupt(filePathNext);\n assertNull(bitmap);\n listener.waitForImage();\n bitmap = ImageLoader.requestImage(filePath);\n assertNotNull(bitmap);\n Map imageMap = getImageMap(filePath, bitmap);\n assertEquals(IMAGE_SIZE, imageMap.size());\n bitmap = ImageLoader.requestImage(filePath);\n assertNotNull(bitmap);\n ImageLoader.getInstance().clearImageMap();\n ImageLoader.requestImage(filePath, listener);\n ImageLoader.requestImage(filePathNext, listenerNext);\n listener.waitForImage();\n ImageLoader.interrupt(filePath);\n ImageLoader.interrupt(filePathNext);\n ImageLoader.interrupt();\n getInstrumentation().waitForIdleSync();\n ImageLoader.getInstance().clearImageMap();\n ImageLoader.requestImage(filePath, listener);\n ImageLoader.requestImage(filePathNext, listenerNext);\n ImageLoader.interrupt();\n getInstrumentation().waitForIdleSync();\n }", "private String beautiplyFileNameReferer() {\r\n\r\n\t\tif (checkBeautiplyImagesExixtence()) {\r\n\t\t\ttry {\r\n\t\t\t\tString fname = beautiplyFileNameGenerator();\r\n\t\t\t\tFileInputStream fis = context.openFileInput(fname);\r\n\t\t\t\treturn fname;\r\n\t\t\t} catch (FileNotFoundException e4) {\r\n\t\t\t\treturn beautiplyFileNameReferer();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\t\t\t\t\tpublic boolean accept(File paramFile, String paramString) {\n\t\t\t\t\t\treturn (paramString.endsWith(\"png\"));\r\n\t\t\t\t\t}", "private ImageIcon createIcon(String path) {\n\t\tbyte[] bytes = null;\n\t\ttry(InputStream is = JNotepadPP.class.getResourceAsStream(path)){\n\t\t\tif (is==null) throw new IllegalArgumentException(\"Wrong path to the image given.\");\n\t\t\tbytes = is.readAllBytes();\n\t\t}catch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn new ImageIcon(bytes);\n\t}", "protected BufferedImage loadImage(String nameOfFile)\n {\n BufferedImage img;\n try{\n img= ImageIO.read(new File(\"\"+nameOfFile));\n return img;\n }\n catch(IOException e)\n {\n System.out.println(e);\n }\n return null;\n }", "public static String m58670dY(String str, int i) {\n int i2 = 0;\n AppMethodBeat.m2504i(79319);\n if (str == null || str.length() == 0) {\n C4990ab.m7412e(\"MicroMsg.AppInfoStorage\", \"getIconPath : invalid argument\");\n AppMethodBeat.m2505o(79319);\n return null;\n }\n C5728b c5728b = new C5728b(C34832a.bYG());\n if (!c5728b.exists()) {\n if (!c5728b.dMC().exists()) {\n C5728b dMC = c5728b.dMC();\n C5728b c5728b2 = new C5728b(C5736j.m8649w(dMC.dMD()) + System.currentTimeMillis());\n if (c5728b2.mkdirs()) {\n c5728b2.mo11675o(dMC);\n } else {\n C4990ab.m7413e(\"MicroMsg.AppInfoStorage\", \"mkdir error, %s\", C5736j.m8649w(dMC.dMD()));\n if (i2 == 0) {\n AppMethodBeat.m2505o(79319);\n return null;\n }\n String str2;\n switch (i) {\n case 1:\n str2 = C34832a.bYG() + C1178g.m2591x(str.getBytes()) + \".png\";\n AppMethodBeat.m2505o(79319);\n return str2;\n case 2:\n str2 = C34832a.bYG() + C1178g.m2591x(str.getBytes()) + \"_wm.png\";\n AppMethodBeat.m2505o(79319);\n return str2;\n case 3:\n str2 = C34832a.bYG() + C1178g.m2591x(str.getBytes()) + \"_sg.png\";\n AppMethodBeat.m2505o(79319);\n return str2;\n case 4:\n str2 = C34832a.bYG() + C1178g.m2591x(str.getBytes()) + \"_sp.png\";\n AppMethodBeat.m2505o(79319);\n return str2;\n case 5:\n str2 = C34832a.bYG() + C1178g.m2591x(str.getBytes()) + \"_sl.png\";\n AppMethodBeat.m2505o(79319);\n return str2;\n default:\n C4990ab.m7412e(\"MicroMsg.AppInfoStorage\", \"getIconPath, unknown iconType = \".concat(String.valueOf(i)));\n AppMethodBeat.m2505o(79319);\n return null;\n }\n }\n }\n if (!(c5728b.mkdirs() && c5728b.isDirectory())) {\n C4990ab.m7413e(\"MicroMsg.AppInfoStorage\", \"mkdir error. %s\", r3);\n if (i2 == 0) {\n }\n }\n }\n i2 = 1;\n if (i2 == 0) {\n }\n }" ]
[ "0.71467197", "0.6742404", "0.6340807", "0.63142794", "0.6268125", "0.6241942", "0.6041801", "0.59756196", "0.5946317", "0.5889304", "0.5835615", "0.57667196", "0.57667196", "0.57399964", "0.5733036", "0.5689777", "0.5664821", "0.5651254", "0.56498784", "0.5639266", "0.5638765", "0.5637912", "0.56263405", "0.5615077", "0.5610205", "0.56065124", "0.55984414", "0.5591312", "0.5565071", "0.55634296", "0.55587876", "0.5535458", "0.5535023", "0.5532024", "0.55307555", "0.5524087", "0.5517242", "0.55144083", "0.5506993", "0.55009896", "0.54956216", "0.54930955", "0.5491584", "0.548679", "0.5479989", "0.54765075", "0.5469562", "0.5458621", "0.54488134", "0.5448356", "0.5445381", "0.5442201", "0.5438658", "0.5431391", "0.5420212", "0.54084444", "0.53996044", "0.53968877", "0.53918004", "0.5388195", "0.53636104", "0.536304", "0.5343223", "0.5338866", "0.5332288", "0.53085303", "0.5307559", "0.52883077", "0.5285304", "0.5284048", "0.5275851", "0.52626264", "0.52611786", "0.5261148", "0.5260288", "0.5254327", "0.52526724", "0.5250789", "0.52500796", "0.524536", "0.52446955", "0.52409333", "0.5240129", "0.52369255", "0.52323645", "0.5226251", "0.522389", "0.5217901", "0.5213613", "0.5212996", "0.5208152", "0.52058595", "0.51934254", "0.51923025", "0.5190915", "0.5190599", "0.5188744", "0.5184766", "0.5174183", "0.5168123" ]
0.7117773
1
getChannelProcessor() overridden by other classes. Default should be same as getProcessor()
@Test public void testGetChannelProcessor() { ip = new ImagePlus(DataConstants.DATA_DIR + "gray8-3x2-sub1.tif"); proc = ip.getProcessor(); assertEquals(proc,ip.getChannelProcessor()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getChannel()\n {\n return channel;\n }", "public Byte getChannel() {\n return channel;\n }", "public int getChannel() {\r\n\t\treturn channel;\r\n\t}", "public Channel channel()\r\n/* 36: */ {\r\n/* 37: 68 */ return this.channel;\r\n/* 38: */ }", "@Override\n\tpublic int getChannel() {\n\t\treturn super.getDeviceID();\n\t}", "public int getChannel() {\n return channel;\n }", "protected Channel getChannel()\n {\n return mChannel;\n }", "public final int getChannel() {\n return device.getChannel();\n }", "public abstract Parts getProcessor();", "public interface MasterProcessChannelProcessorFactory extends Closeable {\n /**\n * Evaluates the {@code channelConfig}.\n *\n * @param channelConfig a connection string used by the fork JVM\n * @return {@code true} if {@code channelConfig} is applicable and thus this SPI is eligible in the fork\n */\n boolean canUse(String channelConfig);\n\n /**\n * Open a new connection.\n *\n * @param channelConfig e.g. \"pipe://3\" or \"tcp://localhost:65035\"\n * @throws IOException if cannot connect\n */\n void connect(String channelConfig) throws IOException;\n\n /**\n * Decoder factory method.\n * @param forkingArguments forking arguments\n * @return a new instance of decoder\n */\n MasterProcessChannelDecoder createDecoder(@Nonnull ForkNodeArguments forkingArguments) throws IOException;\n\n /**\n * Encoder factory method.\n * @param forkingArguments forking arguments\n * @return a new instance of encoder\n */\n MasterProcessChannelEncoder createEncoder(@Nonnull ForkNodeArguments forkingArguments) throws IOException;\n}", "public final String getChannelNumber() {\n\t\treturn impl.getChannelNumber();\n }", "public String getChannel() {\r\n return channel;\r\n }", "java.lang.String getChannel();", "public int getChannelType( ) {\r\n return 1;\r\n }", "public String getChannel() {\r\n\t\treturn this.channel;\r\n\t}", "public Channel getChannel()\n\t{\n\t\treturn channel;\n\t}", "public String getChannel() {\n\t\treturn channel;\n\t}", "public String getChannel() {\n\t\treturn channel;\n\t}", "public String getChannel() {\n return channel;\n }", "public Channel getChannel() {\r\n\t\treturn channel;\r\n\t}", "public Channel getChannel()\n {\n return channel;\n }", "EzyChannel getChannel();", "Channel channel() {\n return channel;\n }", "public IChannel getChannel() {\n\t\treturn message.getChannel();\n\t}", "public ProcessorFactory getGenerator()\r\n\t{\r\n\t\treturn generator;\r\n\t}", "public int GetChannel();", "@Override\n\tpublic InputProcessor getInputProcessor() {\n\t\treturn multiplexer;\n\t}", "public String getChannel() {\n if(this.isRFC2812())\n return this.getNumericArg(1);\n else\n return this.getNumericArg(0);\n }", "private SocketChannel getChannel(){\n if ( key == null ) {\n return getSocket().getChannel();\n } else {\n return (SocketChannel)key.channel();\n }\n }", "public EntryProcessor getProcessor()\n {\n return m_processor;\n }", "public Processor getSender() {\n return this.senderProcess;\n }", "public SocketChannel getChannel() {\n return channel;\n }", "public SocketChannel getChannel() { return null; }", "@java.lang.Override\n public org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel() {\n @SuppressWarnings(\"deprecation\")\n org.apache.drill.exec.proto.UserBitShared.RpcChannel result = org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(channel_);\n return result == null ? org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_DATA : result;\n }", "public Channel getChannel() {\n return channel;\n }", "@java.lang.Override public org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel() {\n @SuppressWarnings(\"deprecation\")\n org.apache.drill.exec.proto.UserBitShared.RpcChannel result = org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(channel_);\n return result == null ? org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_DATA : result;\n }", "org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel();", "@Override\n public ScheduledExecutorService getSchedExecService() {\n return channelExecutor;\n }", "SocketChannel getChannel();", "public Integer getChannelCode() {\n return channelCode;\n }", "public FeatureProcessor getFeatureProcessor(String name) {\n\treturn (FeatureProcessor) featureProcessors.get(name);\n }", "public Processor getProcessor() throws Exception{\n\t\t\n\t\tsynchronized(lock){\n\t\t\tlock.wait();\n\t\t}\n\t\t\n\t\treturn processor;\n\t}", "java.lang.String getProcessor(int index);", "@objid (\"1bb2731c-131f-497d-9749-1f4f1e705acb\")\n Link getChannel();", "public PathProcessor getPathProcessor() {\n return this.pathProcessor;\n }", "public CustomFieldProcessor<T, ?> getFieldProcessor(Class<CustomFieldProcessor<T, ?>> processorClass)\r\n {\r\n CustomFieldProcessor<T, ?> cfp = registeredProcessors.get(processorClass);\r\n if (cfp == null) {\r\n if (processorClass != null) {\r\n try {\r\n cfp = processorClass.newInstance();\r\n } catch (InstantiationException exception) {\r\n throw new ProcessorException(processorClass, exception);\r\n } catch (IllegalAccessException exception) {\r\n throw new ProcessorException(processorClass, exception);\r\n }\r\n registeredProcessors.put(((Class<CustomFieldProcessor<T, ?>>) processorClass), cfp);\r\n }\r\n }\r\n return cfp;\r\n }", "public String getChannelCode() {\n return channelCode;\n }", "public List<Processor> getProcessors() {\n return processors;\n }", "public ChannelManager getChannelManager() {\n return channelMgr;\n }", "public ChannelPipeline method_4119() {\n return null;\n }", "public void SetChannel(int channel);", "protected SocketChannel getSocket() {\n\t\treturn channel;\n\t}", "public org.apache.axis.types.UnsignedInt getChannel() {\n return channel;\n }", "public int getChannelId( ) {\r\n return channelId;\r\n }", "public MessageProcessorDistributor() {\n this.messageProcessors = new LinkedList<MessageProcessor>();\n }", "@Override\n\tpublic void useChannel(ICommunicationChannel channelToUse) {\n\t\t\n\t}", "@Override\n\tpublic void useChannel(ICommunicationChannel channelToUse) {\n\t\t\n\t}", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n channel_ = s;\n return s;\n }\n }", "protected abstract boolean isChannelRelevant( Flow f );", "public MessageChannel getGameChannel() {\r\n\t\treturn gameChannel;\r\n\t}", "@Override\n\tpublic User getChannel() {\n\t\treturn null;\n\t}", "public int getBoomChannel() {\n return boomChannel;\n }", "public JSimProcess getReceiver();", "public SelectableChannel getHandle() {\n return this._handle;\n }", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n channel_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public ReadableByteChannel getByteChannel() throws IOException {\n InputStream source = getInputStream();\n \n if(source != null) {\n return Channels.newChannel(source);\n }\n return null;\n }", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n channel_ = s;\n }\n return s;\n }\n }", "public Channel method_4121() {\n return null;\n }", "@Test\n\tpublic void testGetProcessor() {\n\t\tip = new ImagePlus();\n\t\tassertNull(ip.getProcessor());\n\n\t\t// otherwise it gets into the method\n\n\t\t// uncalibrated subcase\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tip = new ImagePlus(\"FredFred\",proc);\n\t\tassertEquals(proc,ip.getProcessor());\n\t\tassertEquals(Line.getWidth(),proc.getLineWidth());\n\t\tassertNull(proc.getCalibrationTable());\n\n\t\t// calibrated subcase\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tip = new ImagePlus(\"FredFred\",proc);\n\t\tip.getCalibration().setFunction(Calibration.STRAIGHT_LINE, new double[] {3,5}, \"Splutterflits\");\n\t\tassertEquals(proc,ip.getProcessor());\n\t\tassertEquals(Line.getWidth(),proc.getLineWidth());\n\t\tassertNotNull(proc.getCalibrationTable());\n\n\t\t// note - untested side effect - Recorder records image was updated (sets a flag to true)\n\t}", "private static <T> FluxProcessor<T, T> toSendingProcessor(Consumer<? super Flux<T>> sender) {\n FluxProcessor<T, T> processor = EmitterProcessor.create(1);\n sender.accept(processor);\n return processor;\n }", "public String getManualChannel() {\r\n return manualChannel;\r\n }", "public Channel method_4090() {\n return null;\n }", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n channel_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n protected DatagramProcessor createDatagramProcessor() {\n return null;\n }", "public ChannelLocator getChannelLocator();", "public int getChannelConfig() {\n return 0;\n }", "public void setChannel(Byte channel) {\n this.channel = channel;\n }", "public CSVGraphStoreRowProcessor getCSVGraphStoreRowProcessor()\n {\n return processor;\n }", "public CPU getCPU() {\r\n\t\treturn cpu;\r\n\t}", "public Processor getProcessor(Node node) throws ScheduleException {\n if (!scheduledTasks.containsKey(node)) {\n throw new ScheduleException(\"Processor not defined for task: \" + node);\n }\n return scheduledTasks.get(node);\n }", "public QueryNodeProcessor getQueryNodeProcessor() {\n return processor;\n }", "public int getVoiceMessageRoutedChannel(int incomingChannel, int synthChannel)\n {\n return synthChannel;\n }", "public ChannelType getChannelType() {\n return type;\n }", "@Override\n public int getProcessorType() {\n return OperationExecutors.HIGH_PRIORITY_EXECUTOR;\n }", "@SuppressForbidden(reason = \"to obtain default number of available processors\")\n/* */ synchronized int availableProcessors() {\n/* 65 */ if (this.availableProcessors == 0) {\n/* */ \n/* 67 */ int availableProcessors = SystemPropertyUtil.getInt(\"io.netty.availableProcessors\", \n/* */ \n/* 69 */ Runtime.getRuntime().availableProcessors());\n/* 70 */ setAvailableProcessors(availableProcessors);\n/* */ } \n/* 72 */ return this.availableProcessors;\n/* */ }", "@Override\n\tpublic String getChannelId()\n\t{\n\t\treturn null;\n\t}", "public String getChannelName()\r\n\t{\r\n\t\treturn this.sChannelName;\r\n\t}", "@Override\n public Switch compressorRunningSwitch() {\n return pcm::enabled;\n }", "public java.nio.channels.FileChannel getChannel() {\n return this.randomAccessFile.getChannel();\n }", "public Processor getProcessor(PaymentType paymentType) {\n switch (paymentType) {\n case WECHATPAY:\n return wechatPayProcessor();\n default:\n throw new EarthException(\"Not supported yet!\");\n }\n }", "public Channel method_4112() {\n return null;\n }", "public CustomFieldProcessor<T, ?> getCustomTypeProcessor(Class clazz)\r\n {\r\n CustomFieldProcessor<T, ?> cfp = customClassProcessors.get(clazz);\r\n return cfp;\r\n }", "public void setChannel(Channel channel)\n {\n this.channel = channel;\n }", "public Builder setChannelFinder(ChannelFinder finder) {\n this.finder = finder;\n return this;\n }", "public DefaultChannelProgressivePromise(Channel channel)\r\n/* 16: */ {\r\n/* 17: 42 */ this.channel = channel;\r\n/* 18: */ }", "public LateDeliverableProcessorImpl() {\r\n // Empty\r\n }", "public int getSoundChannel() \n\t{\n\treturn fSoundChannel;\n\t}", "public Channel getChannel(String queue) {\r\n try {\r\n channelLock.lock();\r\n if (!channels.containsKey(queue)) {\r\n start(queue);\r\n }\r\n return channels.get(queue);\r\n } finally {\r\n channelLock.unlock();\r\n }\r\n }", "@Bean\n\tpublic DirectChannel requestChooserOutputChannel() {\n\t\treturn MessageChannels.direct().get();\n\t}", "public String getChannelId()\n {\n return channelId;\n }" ]
[ "0.62395704", "0.60324204", "0.6004438", "0.6001051", "0.5962234", "0.5946155", "0.5929981", "0.5830363", "0.578154", "0.5730368", "0.5724568", "0.57111317", "0.56810856", "0.5668234", "0.56654817", "0.5664386", "0.5651538", "0.5651538", "0.5646714", "0.5637025", "0.56184024", "0.5578129", "0.5567132", "0.5566782", "0.5548859", "0.55426", "0.5536349", "0.5527665", "0.5503165", "0.54935867", "0.54574066", "0.5457225", "0.54400474", "0.5422474", "0.5415708", "0.54021424", "0.53788275", "0.53508705", "0.5349981", "0.5338121", "0.52645653", "0.5252864", "0.5243445", "0.52306956", "0.52087504", "0.5202114", "0.51516086", "0.51509", "0.51457703", "0.51419514", "0.51370746", "0.51332957", "0.51294625", "0.5127356", "0.51224446", "0.51159", "0.51159", "0.5113766", "0.509298", "0.5090507", "0.5069965", "0.50605816", "0.5053805", "0.5042372", "0.50355387", "0.5031548", "0.5029121", "0.50238866", "0.5010039", "0.50096834", "0.50068605", "0.50031465", "0.49960023", "0.49939725", "0.4979445", "0.4978599", "0.49745592", "0.4974463", "0.49616283", "0.4957067", "0.4956384", "0.49481177", "0.49433097", "0.4936315", "0.4931678", "0.49192858", "0.4916354", "0.4912519", "0.49054635", "0.48741525", "0.4858259", "0.4852687", "0.48510244", "0.48504555", "0.48430708", "0.48308352", "0.48287517", "0.48269045", "0.48249507", "0.4807393" ]
0.6318133
0
/ TODO find way to test. Had to use protected var ip.img to test value. Can't just use getImage() because it also can set ip.img in certain cases.
@Test public void testUpdateImage() { ip = new ImagePlus(); //assertNull(ip.img); ip.updateImage(); //assertNull(ip.img); ip = new ImagePlus(DataConstants.DATA_DIR + "head8bit.tif"); //assertNull(ip.img); ip.updateImage(); //assertNotNull(ip.img); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PImage getImage() {\n return _img;\n }", "protected ImageView getImageView(){\n\t\treturn iv1;\n\t}", "public Image getImage(URL paramURL) {\n/* 276 */ return getAppletContext().getImage(paramURL);\n/* */ }", "java.lang.String getImage();", "@Test\n public void testInterfaceIp() throws Exception {\n isisNeighbor.setInterfaceIp(interfaceIp);\n result2 = isisNeighbor.interfaceIp();\n assertThat(result2, is(interfaceIp));\n }", "private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "public void testGetImage() {\n CLImage instance = new CLImage();\n byte[] expResult = new byte[] {1, 2, 3};\n instance.image = new byte[] {1, 2, 3};\n byte[] result = instance.getImage();\n assertEquals(expResult.length, result.length);\n for (int i = 0; i < expResult.length; ++i)\n {\n assertEquals(expResult[i], result[i]);\n }\n }", "public void setImage(Image itemImg) \n {\n img = itemImg;\n }", "@Test\n\tpublic void testGetImage() {\n\n\t\tip = new ImagePlus();\n\t\t//assertNull(ip.img);\n\t\tassertNull(ip.getImage());\n\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"gray8-3x2-sub1.tif\");\n\t\t//assertNull(ip.img);\n\t\tassertNotNull(ip.getImage());\n\t}", "@Test\n\tpublic void testPublicInstanceVars() {\n\t\tip = new ImagePlus();\n\t\tassertFalse(ip.changes);\n\t\t/* OBSOLETE\n\t\tassertEquals(1.0,ip.pixelHeight,0.0);\n\t\tassertEquals(1.0,ip.pixelWidth,0.0);\n\t\tassertEquals(\"pixel\",ip.unit);\n\t\tassertEquals(\"pixel\",ip.units);\n\t\tassertFalse(ip.sCalibrated);\n\t\t*/\n\t}", "@Test\n public void testSetInterfaceIp() throws Exception {\n isisNeighbor.setInterfaceIp(interfaceIp);\n result2 = isisNeighbor.interfaceIp();\n assertThat(result2, is(interfaceIp));\n }", "public PImage getImg() {\n \treturn img;\n }", "@Test\n public void getPicture_NoPictureExist(){\n Bitmap retrieved = testRecipe.getImage(appContext);\n assertNotEquals(\"getPicture - Not Null\", null, retrieved);\n }", "String getImage();", "public void testSetImage() {\n byte[] image = new byte[] {1, 2, 3};\n byte[] expResult = new byte[] {1, 2, 3};\n CLImage instance = new CLImage();\n instance.setImage(image);\n assertEquals(expResult.length, instance.image.length);\n for (int i = 0; i < expResult.length; ++i)\n {\n assertEquals(expResult[i], instance.image[i]);\n }\n }", "public String getImage() { return image; }", "@Override\r\n\tpublic void run(ImageProcessor ip) {\n\t\t\r\n\t}", "public abstract Image getImage();", "public abstract Image getImage();", "public String getPicAddr() {\n return picAddr;\n }", "public String getImg(){\n return img;\n }", "public void testGetSetImageImage() {\n\t\tassertEquals(testNormal.getImage(), new ImageIcon(\"PACMAN/smallpill.png\").getImage());\n\t\t\n\t\t//SET NEW IMAGE\n\t\ttestNormal.setImage(testImage);\n\t\tassertEquals(testNormal.getImage(), testImage);\n\t}", "void setImage(PImage img) {\n _img = img;\n }", "public void setIp(java.lang.String param){\r\n localIpTracker = true;\r\n \r\n this.localIp=param;\r\n \r\n\r\n }", "public void setIp(java.lang.String param){\r\n localIpTracker = true;\r\n \r\n this.localIp=param;\r\n \r\n\r\n }", "@Override\n protected String getRequestedImage(HttpServletRequest req) {\n\treturn null;\n }", "@Test\n public void getPicture_Exists(){\n Bitmap image = BitmapFactory.decodeResource(appContext.getResources(),R.drawable.ic_add);\n testRecipe.setImage(image, appContext);\n Bitmap retrieved = testRecipe.getImage(appContext);\n assertNotEquals(\"getPicture - Not Null\", null, retrieved);\n }", "public String getImage() {\n\t\tString ans=\"Data/NF.png\";\n\t\tif(image!=null)\n\t\t\tans=\"Data/Users/Pics/\"+image;\n\t\treturn ans;\n\t}", "protected void setPic() {\n }", "public Image getHotImage () {\r\n\tcheckWidget();\r\n\treturn hotImage;\r\n}", "public String ImageControl(String image) {\n \n String tmp = null;\n \n if (image != null && !image.isEmpty()){\n tmp = image;\n } else {\n int num = (new Random()).nextInt(4);\n tmp = \"icon\"+num+\".png\";\n }\n \n return tmp;\n }", "public int getImage();", "public String getStaticPicture();", "public String getImageUrl();", "public String getImg() {\n return img;\n }", "public String getImg() {\n return img;\n }", "public String getImg() {\n return img;\n }", "public ImageView getImage(String image) {\r\n\r\n Image shippPic = new Image(image);\r\n ImageView shipImage = new ImageView();\r\n shipImage.setImage(shippPic);\r\n shipImage.setFitWidth(blockSize);\r\n shipImage.setFitHeight(blockSize);\r\n return shipImage;\r\n }", "public void setImg(String img) {\n this.img = img;\n }", "public void setImage(Image img) {\r\n this.img = img;\r\n }", "public PImage getImage() {\n return this.image;\n }", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "public static boolean\ngetImageOverride(SoState state)\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureOverrideElement elt;\n elt = ( SoTextureOverrideElement )\n getConstElement(state, classStackIndexMap.get(SoTextureOverrideElement.class));\n return (elt.flags & Flags.TEXTURE_IMAGE.getValue()) != 0;\n}", "@Test\n public void testSetAndGetImageUrl() {\n System.out.println(\"getImageUrl\");\n TextRegion instance = new TextRegion();\n assertNull(instance.getImageUrl());\n String expResult = \"imageUrl\";\n instance.setImageUrl(expResult);\n String result = instance.getImageUrl();\n assertEquals(expResult, result);\n assertEquals(0.0f, instance.getConfidence(), 0.001f);\n assertNull(instance.getOrder());\n assertNull(instance.getPageUrl());\n assertNull(instance.getRegion());\n assertNull(instance.getResourceId());\n assertNull(instance.getText());\n }", "public boolean isIpAccessible(String url) {\n URL img = null;\n try {\n img = new URL(url);\n InputStream s = img.openStream();\n byte[] b = new byte[256];\n s.read(b);\n String str = new String(b);\n System.out.println(str);\n s.close();\n return true;\n } catch (java.io.IOException e) {\n return false;\n }\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public void setIp(String ip) {\n this.ip = ip;\n }", "public void setImage(String tmp) {\n this.image = tmp;\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();", "abstract public String imageUrl ();", "public Image getOne();", "void mo60904b(AvatarImageWithVerify avatarImageWithVerify);", "public void testGetSetImageString() {\n\t\tassertEquals(testNormal.getImage(), new ImageIcon(\"PACMAN/smallpill.png\").getImage());\n\t\t\n\t\t//SET NEW IMAGE (\"PACMAN/littlepill.png\" because it exists)\n\t\ttestNormal.setImage(\"PACMAN/bigpill.png\");\n\t\tassertEquals(testNormal.getImage(), new ImageIcon(\"PACMAN/bigpill.png\").getImage());\n\t}", "public void setIp(String ip) {\n this.ip = ip;\n }", "public void setIp(String ip) {\n this.ip = ip;\n }", "public ImageContainer getImage(String username, String imageName) {\r\n\t\tImageContainer ic;\r\n\t\tPoint p = StaticFunctions.hashToPoint(username, imageName);\r\n\t\t//If the image is saved on the bootstrap, loadImageContainer, otherwise start routing to the destinationPeer \r\n\t\tif(lookup(p)) {\r\n\t\t\ttry {\r\n\t\t\t\tic = loadImageContainer(username, imageName);\r\n\t\t\t\treturn ic;\r\n\t\t\t} catch (ClassNotFoundException | IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tString destinationPeerIP = routing(p).getIp_adresse();\r\n\t\t\tImage img = new PeerClient().getImage(destinationPeerIP, username, imageName);\r\n\t\t if(img != null) {\r\n\t\t \t ic = RestUtils.convertImgToIc(img);\r\n\t\t \t return ic;\r\n\t\t }\r\n\t\t}\r\n\t\treturn null;\r\n\t\t\r\n\t}", "protected abstract Image loadImage();", "public String getpImage() {\n return pImage;\n }", "void mo60902a(AvatarImageWithVerify avatarImageWithVerify);", "public void setIp(String ip) {\n this.ip = ip;\n }", "private String getIP() {\n\t\treturn getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE);\n\n\t}", "public Image getImage()\n {\n return null;\n }", "int getInIp();", "int getInIp();", "public Image getTwo();", "public xPIC getPic() {\r\n return pic_;\r\n }", "public Image getImage(URL paramURL, String paramString) {\n/* */ try {\n/* 298 */ return getImage(new URL(paramURL, paramString));\n/* 299 */ } catch (MalformedURLException malformedURLException) {\n/* 300 */ return null;\n/* */ } \n/* */ }", "Imagem getImagem();", "public String getImage() {\n\t\treturn null;\n\t}", "@Test\n public void testGetMyIP() {\n System.out.println(\"getMyIP\");\n String expResult = MY_IP_ADDRESS;\n String result = instance.getMyIP();\n assertEquals(expResult, result);\n }", "@Test\r\n public void testSetImagePath() {\r\n System.out.println(\"setImagePath\");\r\n String imagePath = \"\";\r\n \r\n instance.setImagePath(imagePath);\r\n assertEquals(imagePath, instance.getImagePath());\r\n \r\n }", "public Label getPic(){\n //try {//getPic is only called if isPic is true, so side1 would contain picture path\n /*BufferedImage unsized = ImageIO.read(new File(side1));\n BufferedImage resized = resizeImage(unsized,275,250, unsized.getType());\n frontPic.setIcon(new ImageIcon(resized));*/\n\n\t\t\tImage image = new Image(new File(side1).toURI().toString());\n\t\t\tImageView iv = new ImageView(image);\n\t\t\tLabel imageLabel = new Label(\"Image\");\n\t\t\timageLabel.setGraphic(iv);\n\t\t\treturn imageLabel;\n /*} catch (IOException ex) {\n System.out.println(\"Trouble reading from the file: \" + ex.getMessage());\n }\n return frontPic;*/\n }", "public Image getImage() {\n return null;\r\n }", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "@Test\r\n public void testGetImagePath() {\r\n System.out.println(\"getImagePath\");\r\n \r\n String expResult = \"\";\r\n String result = instance.getImagePath();\r\n assertEquals(expResult, result);\r\n \r\n \r\n }", "public String getImageSource() {\r\n return imageSource;\r\n }", "@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}", "public taskimage(ImageView t134){\n t34=t134;\n\n\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();", "public Image getBassClef();", "public String getImage()\n {\n return image;\n }", "public BufferedImage getImage()\n \t{\n \t\ttry\n \t\t{\n \t\t\tif(bi==null)\n \t\t\t{\n \t\t\t\tint\n \t\t\t\t\tiWidth=(int)(getInteger(PROPERTY_WIDTH)*getQuestion().getZoom()),\n \t\t\t\t\tiHeight=(int)(getInteger(PROPERTY_HEIGHT)*getQuestion().getZoom());\n \n \t\t\t\t// Create image\n \t\t\t\tbi=new BufferedImage(iWidth,iHeight,BufferedImage.TYPE_INT_RGB);\n \n \t\t\t\t// Fill to background\n \t\t\t\tGraphics g=bi.getGraphics();\n \t\t\t\tg.setColor(getBackground());\n \t\t\t\tg.fillRect(0,0,iWidth,iHeight);\n \t\t\t}\n \t\t\treturn bi;\n \t\t}\n \t\tcatch(OmDeveloperException ode)\n \t\t{\n \t\t\tthrow new OmUnexpectedException(ode);\n \t\t}\n \t}", "void setImage(String image);", "public IImage createImage(IImage source) {\n return null;\r\n }", "public String getUserImg() {\r\n return userImg;\r\n }", "public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}", "BufferedImage getImage();", "BufferedImage getImage();" ]
[ "0.6203783", "0.61121887", "0.6108175", "0.60694826", "0.6033726", "0.59703904", "0.59673256", "0.5953482", "0.59404397", "0.5938496", "0.59318966", "0.59160495", "0.5913987", "0.5901641", "0.58893764", "0.5879118", "0.5817498", "0.58162737", "0.58034945", "0.58034945", "0.5793736", "0.57917255", "0.5786317", "0.5777831", "0.5757439", "0.5757439", "0.57446814", "0.57443845", "0.573194", "0.5704629", "0.5696974", "0.56917506", "0.5684253", "0.5677217", "0.56725806", "0.5668967", "0.5668967", "0.5668967", "0.5668357", "0.5667631", "0.56586426", "0.5649058", "0.5644122", "0.5639806", "0.5634052", "0.5622156", "0.56130797", "0.56130797", "0.5608604", "0.5608091", "0.5608091", "0.55866325", "0.55844307", "0.55784506", "0.5551889", "0.55476135", "0.5541125", "0.553885", "0.5533056", "0.5533056", "0.55306727", "0.55247146", "0.5518146", "0.55155504", "0.55145025", "0.5506609", "0.5503723", "0.5499265", "0.5499265", "0.5496289", "0.5495621", "0.5481114", "0.54787546", "0.54767156", "0.54765797", "0.54744834", "0.5473032", "0.54614323", "0.54591966", "0.54591966", "0.54591966", "0.54591966", "0.54591966", "0.54591966", "0.54591966", "0.54591966", "0.54468143", "0.5435345", "0.5434223", "0.54335284", "0.5430925", "0.5424685", "0.5418243", "0.54168123", "0.5415307", "0.5411937", "0.5411525", "0.5410353", "0.54102075", "0.54102075" ]
0.56312764
45
note there is nothing I can test here its all gui or deeper stuff that nulls out
@Test public void testHide() { ip = new ImagePlus(); ip.hide(); // so nothing but a compile time check }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected JTextField determineNull() {\r\n String t;\r\n\r\n try {\r\n t = rightSideInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return rightSideInput;\r\n }\r\n\r\n t = leftSideInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return leftSideInput;\r\n }\r\n\r\n t = topInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return topInput;\r\n }\r\n\r\n t = bottomInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return bottomInput;\r\n }\r\n\r\n t = frontInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return frontInput;\r\n }\r\n\r\n t = backInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return backInput;\r\n }\r\n\r\n return rightSideInput;\r\n } catch (NullPointerException npe) {\r\n MipavUtil.displayError(\"JDialogCropBoundaryParam reports: Unknown Error\");\r\n\r\n return rightSideInput; // gotta have some thing returned\r\n }\r\n }", "@Test\n public void test6() throws Throwable {\n DefaultMenuItem defaultMenuItem0 = new DefaultMenuItem((Object) null);\n defaultMenuItem0.getRenderer();\n }", "private void initUI() {\n }", "private InstructGui() {\n }", "private static void initAndShowGUI() {\n }", "@Override\r\n\tprotected void initUI() {\n\r\n\t}", "@Test(timeout = 4000)\n public void test216() throws Throwable {\n Form form0 = new Form((String) null);\n form0._clear();\n assertEquals(\"wheel_components_Form\", form0.getComponentId());\n }", "@Test\n public void test119() throws Throwable {\n Form form0 = new Form(\".\");\n TextInput textInput0 = new TextInput(form0, \".\", \".\");\n // Undeclared exception!\n try {\n FormElement formElement0 = textInput0.buttonInput(\".\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private void assertNullHandling(UMLMessageArgument msgArg) throws Exception\r\n\t{\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((UMLMessageArgument)null));\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((Object)null));\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((UMLSymbol)null));\r\n\t}", "public void verify() {\n lblPaletteContent();\n treePaletteContentsTree();\n lblJLabel();\n btMoveUp();\n btMoveDown();\n btRemove();\n btNewCategory();\n btAddFromJAR();\n btAddFromLibrary();\n btAddFromProject();\n btResetPalette();\n btClose();\n }", "@Test(timeout = 4000)\n public void test345() throws Throwable {\n Form form0 = new Form((String) null);\n // Undeclared exception!\n try { \n form0.button();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private void checkRep() {\n\t\tassert (this != null) : \"this Edge cannot be null\";\n\t\tassert (this.label != null) : \"this Edge's label cannot be null\";\n\t\tassert (this.child != null) : \"this Edge's child cannot be null\";\n\t}", "@Test\n public void test132() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"Col componet can be added only to a TableBlock.\", \"Col componet can be added only to a TableBlock.\");\n Double double0 = new Double(0.0);\n Text text0 = null;\n try {\n text0 = new Text(hidden0, double0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Override\n public void initGUI() {\n\n }", "@Override\n public Object getWidget()\n {\n return null;\n }", "@Test(timeout = 4000)\n public void test301() throws Throwable {\n Form form0 = new Form(\"wheel.components.ActionExpression@0000000006\");\n // Undeclared exception!\n try { \n form0.buttonInput((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n public void test089() throws Throwable {\n Form form0 = new Form(\"#7v@zh$f,,\");\n // Undeclared exception!\n try {\n Component component0 = form0.q();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public anywheresoftware.b4a.objects.PanelWrapper _asview() throws Exception{\nif (true) return _wholescreen;\n //BA.debugLineNum = 37;BA.debugLine=\"End Sub\";\nreturn null;\n}", "protected boolean func_70041_e_() { return false; }", "private GuiUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "@Test(timeout = 4000)\n public void test094() throws Throwable {\n Checkbox checkbox0 = new Checkbox((Component) null, \" does not exist.\", \" does not exist.\");\n // Undeclared exception!\n try { \n checkbox0.ol();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n\tpublic void guiElementsTest() throws Exception {\n\t\tif (Configuration.shufflerepeat &&\n\t\tConfiguration.featureamp&&\n\t\tConfiguration.playengine&&\n\t\tConfiguration.choosefile&&\n\t\tConfiguration.gui&&\n\t\tConfiguration.skins&&\n\t\tConfiguration.light&&\n\t\tConfiguration.filesupport&&\n\t\tConfiguration.showtime&&\n\t\tConfiguration.volumecontrol&&\n\t\tConfiguration.mute\n\t\t) {\t\n\n\t\tstart();\n\t\tJMenu menu = (JMenu) MemberModifier.field(Application.class, \"menu\").get(gui);\n\t\tassertEquals(menu.getName(), \"menu\");\n\t\tJMenuItem menuItem = menu.getItem(0);\n\t\tassertTrue(menuItem.getComponentListeners() != null);\n\t\t}\n\t}", "protected Component getControlOwner() {\r\n return null;\r\n }", "@Test\n public void test104() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"Col componet can be added only to a TableBlock.\", \"Col componet can be added only to a TableBlock.\");\n // Undeclared exception!\n try {\n Component component0 = hidden0.fieldset();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Override\n protected void windowInit ()\n {\n }", "@Test\n public void test07() throws Throwable {\n SubCategoryAxis subCategoryAxis0 = new SubCategoryAxis(\"Jf)%}s\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) subCategoryAxis0);\n StandardEntityCollection standardEntityCollection0 = new StandardEntityCollection();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n PlotRenderingInfo plotRenderingInfo0 = chartRenderingInfo0.getPlotInfo();\n CategoryTextAnnotation categoryTextAnnotation0 = new CategoryTextAnnotation(\"The renderer has changed and I don't know what to do!\", (Comparable) \"Jf)%}s\", 473.308516391);\n categoryTextAnnotation0.setValue(473.308516391);\n boolean boolean0 = standardEntityCollection0.equals(categoryTextAnnotation0);\n SynthListUI synthListUI0 = new SynthListUI();\n JList<Object> jList0 = null;\n // Undeclared exception!\n try { \n synthListUI0.indexToLocation((JList) null, 0);\n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"javax.swing.plaf.basic.BasicListUI\", e);\n }\n }", "@Test(timeout = 4000)\n public void test297() throws Throwable {\n Form form0 = new Form(\"w\");\n // Undeclared exception!\n try { \n form0.abbr();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void testHandleGUIEvent_null() {\n try {\n eventManager.handleGUIEvent(null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }", "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\n\t}", "@Test\n public void test8() throws Throwable {\n DefaultMenuItem defaultMenuItem0 = new DefaultMenuItem((Object) null);\n defaultMenuItem0.toString();\n assertEquals(true, defaultMenuItem0.isLeaf());\n }", "@Test(timeout = 4000)\n public void test315() throws Throwable {\n Form form0 = new Form(\"w\");\n // Undeclared exception!\n try { \n form0.abbr((Object) \"\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n public void test4() throws Throwable {\n Object object0 = new Object();\n DefaultMenuItem defaultMenuItem0 = new DefaultMenuItem(object0);\n defaultMenuItem0.setName((String) null);\n assertEquals(true, defaultMenuItem0.isLeaf());\n }", "void gui(){\n _hasGUI = true;\n }", "@Override\n\tprotected Control createContents(Composite arg0) {\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n Form form0 = new Form(\"g+0=\");\n // Undeclared exception!\n try { \n form0.small();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n JDayChooser jDayChooser0 = new JDayChooser();\n SystemColor systemColor0 = SystemColor.controlLtHighlight;\n systemColor0.getColorSpace();\n jDayChooser0.setWeekdayForeground(systemColor0);\n boolean boolean0 = false;\n jDayChooser0.setDayBordersVisible(false);\n System.setCurrentTimeMillis(4294977024L);\n List<Locale.LanguageRange> list0 = null;\n ImageNode imageNode0 = new ImageNode();\n HelpSet helpSet0 = new HelpSet();\n DefaultHelpModel defaultHelpModel0 = new DefaultHelpModel(helpSet0);\n JHelp jHelp0 = new JHelp(defaultHelpModel0);\n BasicHelpUI basicHelpUI0 = new BasicHelpUI(jHelp0);\n // Undeclared exception!\n try { \n imageNode0.remove((Object) basicHelpUI0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // javax.help.plaf.basic.BasicHelpUI@23af518c is not a GraphicsNode\n //\n verifyException(\"org.apache.batik.gvt.CompositeGraphicsNode\", e);\n }\n }", "public void nullValues() {\r\n\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\"Null values ​​are not allowed or incorrect values\");\r\n\t}", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n Checkbox checkbox0 = new Checkbox((Component) null, \"6F\\\"\", \"6F\\\"\");\n // Undeclared exception!\n try { \n checkbox0.kbd();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private GUIMain() {\n\t}", "private GUIReminder() {\n\n initComponents();\n initOthers();\n\n }", "@Override\n public long getValidWindow() {\n return 0;\n }", "@Test(timeout = 4000)\n public void test283() throws Throwable {\n Form form0 = new Form(\"z=OF5Ty4t\");\n // Undeclared exception!\n try { \n form0.u();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test343() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Byte byte0 = new Byte((byte)1);\n Label label0 = new Label(errorPage0, byte0);\n // Undeclared exception!\n try { \n label0.title(\"select\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.components.StandaloneComponent\", e);\n }\n }", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n TextArea textArea0 = new TextArea((Component) null, (String) null, \"XYD6eL5K7VD|_+{7`{$\");\n // Undeclared exception!\n try { \n textArea0.strong((Object) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test380() throws Throwable {\n Checkbox checkbox0 = new Checkbox((Component) null, \"RB\", \" @\");\n // Undeclared exception!\n try { \n checkbox0.dd();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "void assertDefaults() {\n verifyLayoutDirection(getView());\n verifySubmitButton(EditorInfo.IME_ACTION_DONE, getView());\n assertEquals(0, getView().getFilters().length);\n assertEquals(InputType.TYPE_CLASS_TEXT, getView().getInputType());\n assertEquals(0, getView().getFilters().length);\n assertEquals(\"\", getView().getText().toString());\n assertEquals(\"\", getView().getHint().toString());\n assertEquals(mockDefaultTypeface, getView().getTypeface());\n }", "@Override\r\n\tpublic Panel getUI() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Panel getUI() {\n\t\treturn null;\r\n\t}", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "public static void resetGuiData()\n\t{\n\t\tpriorityCombo.select(0);\n\t\telectrodeCombo.select(0);\n\t\tcustomerList.removeAll();\n\t\tcustomerText.setText(\"\");\n\t\tcommentText.setText(\"\");\n\t\tsensorText.setText(\"\");\n\t\tmeasureText.setText(\"\");\n\t\tmeasurTaskText.setText(\"\");\n\t\tsensorTaskText.setText(\"\");\n\n\t}", "@Override\r\n public void initControl() {\n \r\n }", "public DummyHandLayout() {\r\n//\t\tparent = null;\r\n\t}", "private void prepare()\n {\n\n MapButton mapButton = new MapButton(which);\n addObject(mapButton,58,57);\n Note note = new Note();\n addObject(note,1200,400);\n\n DropDownSuspects dropDownSuspects = new DropDownSuspects();\n addObject(dropDownSuspects,150,150);\n\n DropDownClues dropDownClues = new DropDownClues();\n addObject(dropDownClues,330,150);\n\n TestimonyFrame testimonyFrame = new TestimonyFrame();\n addObject(testimonyFrame,506,548);\n }", "public void initMode()\r\n\t{\r\n\t\t_box = null;\r\n\t}", "protected void setupUI() {\n\n }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n Form form0 = new Form(\"\\r\");\n // Undeclared exception!\n try { \n form0.title(\"unsupported feature \");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n JDayChooser jDayChooser0 = new JDayChooser(true);\n MockGregorianCalendar mockGregorianCalendar0 = new MockGregorianCalendar();\n jDayChooser0.getInputContext();\n mockGregorianCalendar0.getWeeksInWeekYear();\n mockGregorianCalendar0.setFirstDayOfWeek(52);\n mockGregorianCalendar0.getMaximum(0);\n jDayChooser0.setCalendar(mockGregorianCalendar0);\n IBindingFactory iBindingFactory0 = JiBX_bindingFactory.getInstance();\n UnmarshallingContext unmarshallingContext0 = null;\n try {\n unmarshallingContext0 = new UnmarshallingContext((-894), (String[]) null, (String[]) null, (String[]) null, (String[]) null, iBindingFactory0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.jibx.runtime.impl.UnmarshallingContext\", e);\n }\n }", "@Test(timeout = 4000)\n public void test278() throws Throwable {\n Checkbox checkbox0 = new Checkbox((Component) null, \"z:_i>EAQ.Bdq@CL&k?\\\"\", \"h3\");\n // Undeclared exception!\n try { \n checkbox0.h1((Object) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void XXXtestEmptyContentDescription() throws Throwable {\n view.setTitle(\"RawIViewPart\");\n verifySettings(\"RawIViewPart\", \"RawIViewPart\", \"\");\n verifyEvents(true, false, true);\n }", "@Test(timeout = 4000)\n public void test208() throws Throwable {\n TextArea textArea0 = new TextArea((Component) null, \"N^H\", \"N^H\");\n // Undeclared exception!\n try { \n textArea0.add((Component) null);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Can't add components to a component that is not an instance of IContainer.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "public void dispHardNull()\r\n {\r\n //Null block of code was original display method; keeping just in case\r\n /*switch (Win)\r\n {\r\n case 1: \r\n case 2: \r\n case 3: JOptionPane.showMessageDialog(null, \r\n \"It's a tie!\",\r\n \"digiRPS - Results\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n break;\r\n case 4: \r\n case 5: \r\n case 6: JOptionPane.showMessageDialog(null, \r\n userName + \" won!\",\r\n \"digiRPS - Results\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n break;\r\n case 7: \r\n case 8: \r\n case 9: JOptionPane.showMessageDialog(null, \r\n \"Computer won!\",\r\n \"digiRPS - Results\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n break;\r\n }*/\r\n }", "private Dialogs () {\r\n\t}", "@Test(timeout = 4000)\n public void test243() throws Throwable {\n Checkbox checkbox0 = new Checkbox((Component) null, \"6F\\\"\", \".}U.0/,SESI0vG=!];E\");\n // Undeclared exception!\n try { \n checkbox0.pre((Object) \"6F\\\"\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Override\n public void initGui()\n {\n super.initGui();\n }", "@Test(timeout = 4000)\n public void test276() throws Throwable {\n Form form0 = new Form(\"no more data available\");\n // Undeclared exception!\n try { \n form0.iframe();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "protected void initControl() {\n\t\t\r\n\t}", "@Test\r\n public void testRootNullMustClearSelection_39966() {\r\n int index = 3;\r\n getSelectionModel().select(index);\r\n getView().setRoot(null);\r\n assertEmptySelection();\r\n }", "protected boolean func_70814_o() { return true; }", "@Test\n public void test067() throws Throwable {\n Form form0 = new Form(\"\");\n // Undeclared exception!\n try {\n Component component0 = form0.noframes();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void testRemoveGUIEventListener1_null1() {\n try {\n eventManager.removeGUIEventListener(null, EventObject.class);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }", "@Test\n public void test118() throws Throwable {\n Form form0 = new Form(\",-YxIXnF\");\n // Undeclared exception!\n try {\n Component component0 = form0.abbr();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test186() throws Throwable {\n Form form0 = new Form(\"?_AON\");\n // Undeclared exception!\n try { \n form0.getPage();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Override\n\tpublic void guiTinNhan() {\n\n\t}", "private void initGui(){\n // TODO: add code for GUI initialization for a given auction\n }", "public static String _globals() throws Exception{\nmostCurrent._pnloverlay = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private txtval As EditText\";\nmostCurrent._txtval = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private btnlogin As Button\";\nmostCurrent._btnlogin = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private btndelete As Button\";\nmostCurrent._btndelete = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Test\n public void test103() throws Throwable {\n Form form0 = new Form(\"<\");\n // Undeclared exception!\n try {\n Component component0 = form0.h5((Object) form0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test149() throws Throwable {\n TextArea textArea0 = new TextArea((Component) null, (String) null, \"XYD6eL5K7VD|_+{7`{$\");\n // Undeclared exception!\n try { \n textArea0.em();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private void setNull() {\n\n this.txtExamDate.setDate(null);\n this.txtCourseName.setText(null);\n this.txtCourseName.requestFocus();\n }", "@Test(timeout = 4000)\n public void test183() throws Throwable {\n Submit submit0 = new Submit((Component) null, \" (position:\", \"kIh 4+,VlA$]12\");\n String string0 = submit0.eval((Object) null);\n assertEquals(\"null\", string0);\n }", "@Test\n\tpublic void testInfobox() {\t\n\t\tTextArea info = (TextArea) s.lookup(\"#T6_infobox_TextArea\");\n\t\tTextArea compInfo = (TextArea) s.lookup(\"#T6_composite_infobox_TextArea\");\n\t\tTextArea parmInfo = (TextArea) s.lookup(\"#T6_parm_infobox_TextArea\");\n\t\tTextArea pasrmInfo = (TextArea) s.lookup(\"#T6_pasrm_infobox_TextArea\");\n\t\tTextArea ldInfo = (TextArea) s.lookup(\"#T6_ld_infobox_TextArea\");\n\t\tclickOn(\"#Main_compatibility_Button\");\n\t\tmoveTo(\"#T6_more_info_Text\");\n\t\tif (!info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(1);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_composite_Text\");\n\t\tif (info.isVisible()||!compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(2);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_parm_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||!parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(3);\n\t\t\tassertTrue(false);\n\t\t\t\n\t\t}\n\t\tmoveTo(\"#T6_pasrm_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||!pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(5);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_ld_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||!ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(5);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_generate_Button\");\n\t\t// if any infobox is shown fail test case\n\t\tassertFalse(info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible());\n\t\t\n\t}", "public void testCtorIfTextFieldNull() {\n try {\n new EditBoxTrigger(null);\n fail(\"IllegalArgumentException is excpected because textField cannot be null.\");\n } catch (IllegalArgumentException e) {\n //success\n }\n }", "public void testMouseClickedIfMouseEventNull() {\n try {\n editBoxTrigger.mouseClicked(null);\n } catch (Exception e) {\n fail(\"No exception is excpected.\");\n }\n }", "@Test(timeout = 4000)\n public void test359() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef((String) null);\n // Undeclared exception!\n try { \n xmlEntityRef0.requestFocus();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Override\n\tpublic String init() throws Exception {\n\t\treturn null;\n\t}", "private DungeonBotsMain() {\n\t\t// Does nothing.\n\t}", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n DBCatalog dBCatalog0 = new DBCatalog(\"c56KWC#%&((\");\n DBSchema dBSchema0 = new DBSchema((String) null, dBCatalog0);\n String string0 = SQLUtil.ownerDotComponent(dBSchema0);\n assertEquals(\"c56KWC#%&((.null\", string0);\n }", "@Test(timeout = 4000)\n public void test252() throws Throwable {\n Form form0 = new Form(\"Ta[^\\\"\");\n // Undeclared exception!\n try { \n form0.reset(\"]1\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test138() throws Throwable {\n Submit submit0 = new Submit((Component) null, \" (position:\", \"kIh 4+,VlA$]12\");\n Checkbox checkbox0 = new Checkbox(submit0, \"B\\\"M$C3CbFMp&xh\", \" (position:\");\n // Undeclared exception!\n try { \n checkbox0.h1((Object) null);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test270() throws Throwable {\n TextArea textArea0 = new TextArea((Component) null, (String) null, \"XYD6eL5K7VD|_+{7`{$\");\n // Undeclared exception!\n try { \n textArea0.sub();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\r\n\tpublic void testButtonPressedNotEnoughCred() {\r\n\t\tvend.getSelectionButton(0).press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\t\t\r\n\t}", "private void setTextboxesToContainedData()\n {\n updateWeightTextFieldToStored(\"failure loading default\");\n updateSpriteTextFieldToStored(\"failure loading default\");\n }", "public void testRemoveGUIEventListener2_null1() {\n try {\n eventManager.removeGUIEventListener(null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }", "private void setUpWidgets(){\n\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n Form form0 = new Form(\")`EP/)LkuiRB$z_\");\n // Undeclared exception!\n try { \n form0.ins((Object) \")`EP/)LkuiRB$z_\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private void m57235e() {\n if (this.f41223d != null) {\n this.f41223d.sendEmptyMessage(1);\n }\n }", "public void testDialogFloatContainer() {\n try {\n new DialogFloatContainer(null);\n fail(\"the dock is null, IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "@Override\n\tpublic WaiterGui getGui() {\n\t\treturn null;\n\t}", "private void initComputerIndicator() throws SecurityException,\n\t\t\tNoSuchFieldException, IllegalArgumentException,\n\t\t\tIllegalAccessException {\n\t\tClass<id> idClass = R.id.class;\n\t\tfor (int rowIndex = 0; rowIndex < WordZapConstants.GRID_NUMROWS; rowIndex++) {\n\n\t\t\tField txtViewField = idClass.getField(\"txtViewComp\" + rowIndex);\n\t\t\tTextView aTxtView = (TextView) findViewById(txtViewField\n\t\t\t\t\t.getInt(null));\n\t\t\tthis.computerPlayerTxtViews[rowIndex] = aTxtView;\n\t\t\taTxtView.setText(\"\");\n\n\t\t}\n\n\t}", "@Test(timeout=300000)\n public void test16() throws Throwable {\n BackendTransferListener backendTransferListener0 = new BackendTransferListener((CjdbcGui) null);\n // Undeclared exception!\n try { \n backendTransferListener0.dragGestureRecognized((DragGestureEvent) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"org.objectweb.cjdbc.console.gui.dnd.listeners.AbstractGuiDropListener\", e);\n }\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n String string0 = SQLUtil.renderValue((Object) null);\n assertEquals(\"null\", string0);\n }" ]
[ "0.5800252", "0.57977515", "0.57712877", "0.57670045", "0.57194126", "0.5688175", "0.5677882", "0.56703675", "0.56546587", "0.56224626", "0.5608542", "0.56075925", "0.5593035", "0.55796105", "0.55794126", "0.5553866", "0.5545663", "0.5531701", "0.5529087", "0.5523095", "0.5519405", "0.55186534", "0.5506723", "0.5501168", "0.54880345", "0.5471326", "0.5459915", "0.5446258", "0.54460174", "0.54460174", "0.5439443", "0.54289985", "0.5427758", "0.5416224", "0.5414298", "0.54126686", "0.5410821", "0.5409691", "0.54092765", "0.5394935", "0.5394321", "0.53922474", "0.5380024", "0.53799", "0.5371576", "0.5366809", "0.53647536", "0.53626996", "0.53626996", "0.5360831", "0.5360326", "0.5359128", "0.53580546", "0.53559846", "0.5355771", "0.5348085", "0.5347504", "0.5345352", "0.5344899", "0.5334997", "0.53309155", "0.53303015", "0.53296715", "0.5328012", "0.5326588", "0.5323915", "0.53224826", "0.5321938", "0.53203654", "0.5318017", "0.53115314", "0.53105545", "0.53089213", "0.5307751", "0.5304979", "0.5295712", "0.52916557", "0.5291152", "0.5290141", "0.5286632", "0.5283269", "0.5280732", "0.52787656", "0.5278705", "0.5277179", "0.52758145", "0.5265546", "0.52655375", "0.5265423", "0.52646726", "0.52632457", "0.5262943", "0.5260006", "0.52519834", "0.5251321", "0.524829", "0.5246539", "0.5245193", "0.52416396", "0.52413654", "0.5239508" ]
0.0
-1
note there are gui things close() does and we can't test them
@Test public void testClose() { ip = new ImagePlus(); ip.setRoi(0,0,2,2); assertNotNull(ip.getRoi()); ip.close(); assertNull(ip.getRoi()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void doClose() {\n\t if (parent==null)\n\t System.exit(0);\n\t else {\n setVisible(false);\n dispose();\n }\n\t}", "void forceClose();", "private void exit() {\n dispose();\r\n }", "public void close() {}", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "public void close() {\t\t\n\t}", "private void close() {\r\n this.dispose();\r\n MainClass.gamesPlayed++;\r\n Examples2018.menu();\r\n }", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "private void close(){\n this.dispose();\n }", "public void close(){\n \n }", "public void close() {\n\t\t\r\n\t}", "public void exit() {\r\n\t\tdispose();\r\n\t}", "void close_actionPerformed(ActionEvent e){\n\t System.exit(0);\n\t }", "public void closed();", "@Override\n\tpublic void onGuiClosed()\n {\n }", "@Override\r\n public void close ()\r\n {\r\n }", "public void close() {\r\n\t}", "void implClose() {\n/* 293 */ enableControls(this.controls, false);\n/* */ }", "public void close() {\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "public void close() {\n\n\t}", "public void close() {\n\n\t}", "private void control()\r\n\t\t{\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\t}", "private void control()\r\n\t\t{\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\t}", "@Override\n public void closeWindow() {\n \n }", "public void close()\r\n {\r\n }", "private void quitDialog() {\r\n\t\tdispose();\r\n\t}", "@Override\r\n\tpublic void close()\r\n\t{\n\t\t\r\n\t}", "public void close() {\n\t}", "public abstract void close();", "public abstract void close();", "public abstract void close();", "public abstract void close();", "public abstract void close();", "@Override\n\tpublic void close() {\n\t\tframe = null;\n\t\tclassic = null;\n\t\trace = null;\n\t\tbuild = null;\n\t\tbt_classic = null;\n\t\tbt_race = null;\n\t\tbt_build = null;\n\t\tGameView.VIEW.removeDialog();\n\t}", "public void close()\n {\n setVisible (false);\n dispose();\n }", "private void closeFrame()\n\t{\n\t\tSystem.exit(0);\n\t}", "public void close() {\n // should i do something ?\n }", "public void closeDown() {\n\t\tdispose();\n\n\t}", "private void fileExit() {\n try {\n ConnectWindow.tidyClose();\n }\n catch (Exception e) {\n displayError(e,this);\n }\n }", "private void closeProgram()\n {\n window.close();\n }", "private void onClose() {\n dispose();\n }", "@Override\n\tpublic void windowClose(CloseEvent e) {\n\t\t\n\t}", "void onClose();", "public void closed() \r\n\t{\r\n\t\t\r\n\t}", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "public void close()\n {\n }", "public void safeClose(){\r\n\t\tthis.isRun = false;\r\n\t}", "@Override\r\n\tpublic void close() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void close() {\n\t\t\r\n\t}" ]
[ "0.7363197", "0.7295878", "0.71782637", "0.71752995", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.7137543", "0.7127232", "0.71079147", "0.71079147", "0.71079147", "0.71079147", "0.71079147", "0.71079147", "0.71079147", "0.71079147", "0.71079147", "0.71079147", "0.71079147", "0.71079147", "0.71079147", "0.71079147", "0.71079147", "0.7098439", "0.7071364", "0.7040573", "0.7020697", "0.7018384", "0.70131546", "0.69912004", "0.6979924", "0.6977146", "0.69642097", "0.6963244", "0.6963244", "0.6963244", "0.69617456", "0.69617456", "0.6954573", "0.6954573", "0.69380295", "0.691839", "0.68966347", "0.6886783", "0.68672884", "0.6857573", "0.6857573", "0.6857573", "0.6857573", "0.6857573", "0.68559396", "0.68433136", "0.68402106", "0.68344706", "0.6833333", "0.68312657", "0.68310255", "0.6830156", "0.68265116", "0.68252784", "0.6822249", "0.68188775", "0.68188775", "0.68188775", "0.68172497", "0.681293", "0.680288", "0.680288" ]
0.0
-1
note no need to test just calls show(String) method with argument "". if next test thorough this routine automatically handled
@Test public void testShow() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String display();", "public static void show() {\n\t\t\n\t}", "@Override\n public void showText(String s){\n }", "public void display(String result);", "public void show()\r\n {\r\n\tshow(\"\");\r\n }", "public abstract String display();", "public void show() {\r\n show(\"\");\r\n }", "public static void show() {\n\n\t}", "default void show1() {\n\t\t\n\t\t\n\t}", "public void show() {\n\tSystem.out.println(\"show-method\");\t\n\t}", "public void showMsg(String str);", "private void showMessage(String string) {\n\n }", "public String display();", "static void show(final String string) {\n System.out.println(string);\n }", "public void Display_A(String string) {\n\t\t\r\n\t}", "@Override\n\tvoid show() {\n\t\tSystem.out.println(\"Test\");\n\t}", "public void displayData(String str);", "void doShow() throws AmbiguousException, PlayerDebugException\n\t{\n\t\tif (!hasMoreTokens())\n\t\t\tout( getHelpTopic(\"show\") ); //$NON-NLS-1$\n\t\telse\n\t\t{\n\t\t\t/* otherwise we have a boatload of options */\n\t\t\tString subCmdString = nextToken();\n\t\t\tint subCmd = showCommandFor(subCmdString);\n\t\t\tswitch(subCmd)\n\t\t\t{\n\t\t\t\tcase SHOW_NET_CMD:\n\t\t\t\t\tdoShowStats();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_FUNC_CMD:\n\t\t\t\t\tdoShowFuncs();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_URI_CMD:\n\t\t\t\t\tdoShowUri();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_PROPERTIES_CMD:\n\t\t\t\t\tdoShowProperties();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_FILES_CMD:\n\t\t\t\t\tdoShowFiles();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_BREAK_CMD:\n\t\t\t\t\tdoShowBreak();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_VAR_CMD:\n\t\t\t\t\tdoShowVariable();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_MEM_CMD:\n\t\t\t\t\tdoShowMemory();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_LOC_CMD:\n\t\t\t\t\tdoShowLocations();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_DIRS_CMD:\n\t\t\t\t\tdoShowDirectories();\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tdoUnknown(\"show\", subCmdString); //$NON-NLS-1$\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "void msgDisplay(String s);", "@Override\n\tpublic void printtest(String s)\n\t{\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Now executing the command \" + s + \"...\");\n\t\tSystem.out.println(\"The Results of this command are:\");\n\t\tif(!s.contentEquals(\"toString\")) System.out.println(toStringCursor());\n\t\telse System.out.println(toString());\n\t}", "@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´óTÐô\");\n\t}", "private void display(String string) {\n JOptionPane.showMessageDialog(null, string);\n }", "@Test\n\tpublic void testDisplay1() {\n\t\t\n\t\t\n\t\tSystem.setOut(new PrintStream(Actualout));\n\t\t\n\t\tcircularlist.display();\n\t\t\n\t\tassertEquals(\"List : Empty List.\\r\\n\", Actualout.toString());\n\t}", "@Test\n\tpublic void testToString() {\n\t\tassertEquals(\n\t\t\t\t\"SHOW: Lana Del Rey planeta Terra, R$ 100.0, Nao emprestado, 120 min, LIVRE, Lana Del Rey, 10 faixas\",\n\t\t\t\tshow.toString());\n\t}", "public void displayPreviewMessage(String str) {\n }", "public void show() {\n System.out.println(\"I am the best\");\n }", "private void show(final SwingTestBase<?> testCase) {\n try {\n for (int i=0; i<testCase.numTests; i++) {\n show(testCase.create(i), i, testCase.numTests);\n }\n } catch (Exception e) {\n warning(e);\n }\n }", "@Test\n\tpublic void testDisplay(){\n\t\tconditions = new CurrentConditionsDisplay();\n\t\t//And: I want it to display its data\n\t\tconditions.setHumidity(75);\n\t\tconditions.setTemperature(99);\n\t\t//When: I ask it to display\n\t\t//Then: It should display the data\n\t\tconditions.display();\n\t\t//Check console for output, manual pass verification here\n\t}", "@Test\n public void testDisplay() {\n System.out.println(\"display\");\n Member instance = member;\n \n String result = instance.display();\n String expResult = \"id: myId name: myName address: \"\n + \"01 London Road, Littlemoore, Oxford dob: 1999-01-01 dor: \"\n + \"2019-11-25 status: APPROVED balance: 120.0\"; \n \n assertEquals(expResult, result);\n }", "protected abstract void showHint();", "public void showFailure(TestFailure failure);", "public void show() {\n\t\tSystem.out.println(\"show..\");\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "public void show() {\n }", "@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´ó¿ãñÃ\");\n\t}", "public void show()\n\t{\n\t\tSystem.out.println(\"show\");\n\t}", "public void display()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n\tprotected void show() {\n\t\tsuper.show();\n\t\tSystem.out.println(\"BBBBBBBBBBBBBBBBBBB\");\n\t}", "public void display() {\n\t\t\n\t}", "public void display() {\n\t\t\n\t}", "public void stringPresentation () {\n System.out.println ( \"****** String Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n bookArrayList = new Request().postRequestBook();\n for (Book book: bookArrayList) {\n System.out.println(book.toString());\n }\n ClientEntry.showMenu ( );\n\n }", "public void printToViewConsole(String arg);", "@Test\n\tpublic void testShowCommand1() {\n\t\tString label1 = \"TEST1\";\n\t\tString label2 = \"TEST2\";\n\t\ttestData.getTaskMap().put(label1, new ArrayList<Task>());\n\t\ttestData.getTaskMap().put(label2, new ArrayList<Task>());\n\t\t\n\t\tShowCommand comd = new ShowCommand(label1 + \" \" + label2);\n\t\tassertEquals(ShowCommand.MESSAGE_SHOW_FEEDBACK, comd.execute(testData));\n\t\t\n\t\tassertFalse(testData.getHideList().contains(label1));\n\t\tassertFalse(testData.getHideList().contains(label2));\n\t\tassertTrue(testData.getHideList().contains(testData.getCurrLabel()));\n\t}", "@Override\n\tpublic void show() {\n\t}", "@Override\n\tpublic void show() {\n\t}", "public void show() {\n\t\t System.out.println(\"这是A型产品\"); \r\n\t}", "@Override\r\n\tpublic void show() {\n\t}", "public void display() {\n\t}", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "protected void display() {\n\r\n\t}", "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "public void displayTextToConsole();", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t\t\r\n\t}", "void show() {\n System.out.print(\"show\");\n }", "default String display() { //just wanted to try out default methods we learned in class here-- abstract format below\r\n\t\treturn \"Nothing to show here\";\r\n\t}", "void showTitle(String title);", "public String show() {\r\n\t\treturn \"show\";\r\n\t}", "public static void displayMsg() {\n\t}", "public String show() {\r\n return \"show\";\r\n }", "private static void display(String fName, String lName, int age) {\n\t\tSystem.out.println(\"Hi \" + fName + \" \" + lName + \". How are you doing?\" + \"\\nyour age is \" + age);\n\t}", "@Override\n\tvoid showMsg() {\n\t\tSystem.out.println(\"Sample\");\n\t}", "@Override\r\n\t\tpublic void showMessage(String message) {\n\t\t\t\r\n\t\t}", "abstract public void display();", "public abstract void displayInfo();", "private void display(Object a) {\r\n System.out.print(a.toString());\t\r\n }", "public abstract void displayMsgBeforeRun();", "void showInConsole();", "public void display(){\n System.out.println(\"I am a mallard duck\");\n }", "private static void showMatchedDeckInfo() {\n }", "private void showMsg1(String string) { TODO Auto-generated method stub\n//\n }", "private void showMsg1(String string) { TODO Auto-generated method stub\n//\n }", "public String show() {\n\t\treturn null;\r\n\t}", "public static void main(String[] args) {\nshow();\r\n\t}", "@Override\r\n\tpublic void mostrar() {\n\t\t\r\n\t}", "@Override\n\tpublic void display() {\n\t\t\n\t}" ]
[ "0.7045754", "0.6862521", "0.6837651", "0.6780965", "0.67790824", "0.6738695", "0.6686936", "0.6636271", "0.6617407", "0.6603265", "0.6595544", "0.657809", "0.6562251", "0.65493065", "0.6516093", "0.6512895", "0.64960164", "0.6427619", "0.64046335", "0.6344065", "0.63314474", "0.63262814", "0.63150376", "0.6312533", "0.6307194", "0.62681705", "0.6259128", "0.6257649", "0.6241986", "0.6241594", "0.62378657", "0.62216675", "0.6199538", "0.6199538", "0.6199538", "0.6199538", "0.6199538", "0.6199538", "0.6199538", "0.6199538", "0.6199538", "0.6199538", "0.6199538", "0.6199538", "0.6199538", "0.6199538", "0.6199538", "0.61730325", "0.6165153", "0.6151603", "0.6148539", "0.6126983", "0.6117385", "0.6117385", "0.6111913", "0.6103027", "0.6101219", "0.6089107", "0.6089107", "0.6083059", "0.6080486", "0.6074781", "0.60725904", "0.60725904", "0.60725904", "0.60650253", "0.60650253", "0.60650253", "0.60650253", "0.60650253", "0.60650253", "0.60650253", "0.60650253", "0.60587764", "0.6051394", "0.6051394", "0.6040346", "0.60368884", "0.60311913", "0.602433", "0.60229534", "0.60211724", "0.6020256", "0.60182714", "0.60041136", "0.60024667", "0.59982026", "0.5996859", "0.598707", "0.5984906", "0.59826934", "0.59822947", "0.5975664", "0.5975631", "0.5966004", "0.5966004", "0.59646606", "0.59629905", "0.596213", "0.59606004" ]
0.6458884
17
TODO find way to test had to use protected var ip.img to successfully test this
@Test public void testGetImage() { ip = new ImagePlus(); //assertNull(ip.img); assertNull(ip.getImage()); ip = new ImagePlus(DataConstants.DATA_DIR + "gray8-3x2-sub1.tif"); //assertNull(ip.img); assertNotNull(ip.getImage()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void run(ImageProcessor ip) {\n\t\t\r\n\t}", "@Test\n public void testInterfaceIp() throws Exception {\n isisNeighbor.setInterfaceIp(interfaceIp);\n result2 = isisNeighbor.interfaceIp();\n assertThat(result2, is(interfaceIp));\n }", "@Test\n public void testSetInterfaceIp() throws Exception {\n isisNeighbor.setInterfaceIp(interfaceIp);\n result2 = isisNeighbor.interfaceIp();\n assertThat(result2, is(interfaceIp));\n }", "public void setIp(String ip) {\n this.ip = ip;\n }", "public boolean isIpAccessible(String url) {\n URL img = null;\n try {\n img = new URL(url);\n InputStream s = img.openStream();\n byte[] b = new byte[256];\n s.read(b);\n String str = new String(b);\n System.out.println(str);\n s.close();\n return true;\n } catch (java.io.IOException e) {\n return false;\n }\n }", "public void testGetImage() {\n CLImage instance = new CLImage();\n byte[] expResult = new byte[] {1, 2, 3};\n instance.image = new byte[] {1, 2, 3};\n byte[] result = instance.getImage();\n assertEquals(expResult.length, result.length);\n for (int i = 0; i < expResult.length; ++i)\n {\n assertEquals(expResult[i], result[i]);\n }\n }", "public void setIp(String ip) {\n this.ip = ip;\n }", "public void setIp(String ip) {\n this.ip = ip;\n }", "public void setIp(String ip) {\n this.ip = ip;\n }", "public void setIp(java.lang.String param){\r\n localIpTracker = true;\r\n \r\n this.localIp=param;\r\n \r\n\r\n }", "public void setIp(java.lang.String param){\r\n localIpTracker = true;\r\n \r\n this.localIp=param;\r\n \r\n\r\n }", "int getInIp();", "int getInIp();", "void mo60904b(AvatarImageWithVerify avatarImageWithVerify);", "private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }", "void mo60902a(AvatarImageWithVerify avatarImageWithVerify);", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public java.lang.String getIp(){\r\n return localIp;\r\n }", "public void setIp(java.lang.String ip) {\r\n this.ip = ip;\r\n }", "@Test\n public void testGetMyIP() {\n System.out.println(\"getMyIP\");\n String expResult = MY_IP_ADDRESS;\n String result = instance.getMyIP();\n assertEquals(expResult, result);\n }", "public void testSetImage() {\n byte[] image = new byte[] {1, 2, 3};\n byte[] expResult = new byte[] {1, 2, 3};\n CLImage instance = new CLImage();\n instance.setImage(image);\n assertEquals(expResult.length, instance.image.length);\n for (int i = 0; i < expResult.length; ++i)\n {\n assertEquals(expResult[i], instance.image[i]);\n }\n }", "public void setIp(final String ip) {\n this.ip = ip;\n }", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "private String getIP() {\n\t\treturn getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE);\n\n\t}", "@Test\n\tpublic void testPublicInstanceVars() {\n\t\tip = new ImagePlus();\n\t\tassertFalse(ip.changes);\n\t\t/* OBSOLETE\n\t\tassertEquals(1.0,ip.pixelHeight,0.0);\n\t\tassertEquals(1.0,ip.pixelWidth,0.0);\n\t\tassertEquals(\"pixel\",ip.unit);\n\t\tassertEquals(\"pixel\",ip.units);\n\t\tassertFalse(ip.sCalibrated);\n\t\t*/\n\t}", "private void setIp(int value) {\n \n ip_ = value;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "public void setIp (java.lang.String ip) {\r\n\t\tthis.ip = ip;\r\n\t}", "public void setIp (java.lang.String ip) {\r\n\t\tthis.ip = ip;\r\n\t}", "@Override\n\t\tpublic String buildBasicIp() {\n\t\t\treturn buildIp();\n\t\t}", "String getIp();", "String getIp();", "@Override\n protected String getRequestedImage(HttpServletRequest req) {\n\treturn null;\n }", "private final byte[] translateIPtobytecode(String ip){\n\t\ttry{\n\t\t\t\n\t\t\tString [] arrayValues=ip.split(\"[.]\");\n\t\t\t\n\t\t\tbyte [] uBytes= new byte[arrayValues.length];\n\t\t\tuBytes[0]=(byte)Integer.parseInt(arrayValues[0]);\n\t\t\tuBytes[1]=(byte)Integer.parseInt(arrayValues[1]);\n\t\t\tuBytes[2]=(byte)Integer.parseInt(arrayValues[2]);\n\t\t\tuBytes[3]=(byte)Integer.parseInt(arrayValues[3]);\n\t\t\treturn uBytes;\n\t\t\t\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t}", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "public void setIP(String IP) {\n this.IP = IP;\n }", "int getIp();", "int getIp();", "int getIp();", "private void verifyExistIp(String ip){\n List ips = logRepositoy.findByIp(ip);\n if(ips.isEmpty()){\n throw new ResourceNotFoundException(\"Ip address not found\");\n }\n }", "private void findInternalExternalIP() {\n\t\ttry {\n\t\t\texternalIP = InetAddress.getByName(getExternalIP());\n\t\t} catch (UnknownHostException e) {\n\t\t\tDecentLogger.write(\"Unable to to resolve external IP to InetAddress (problem with ip provider?)\");\n\t\t}\n\t\ttry {\n\t\t\tinternalIP = InetAddress.getLocalHost();\n\t\t} catch (UnknownHostException e) {\n\t\t\tDecentLogger.write(\"Unable to to resolve internal IP to InetAddress\");\n\t\t}\n\t}", "@Test\r\n public void ipConnectionTest()\r\n {\r\n try\r\n {\r\n MSocket ms = new MSocket(InetAddress.getByName(LOCALHOST), LOCAL_PORT);\r\n InputStream is = ms.getInputStream();\r\n OutputStream os = ms.getOutputStream();\r\n echoTest(is, os, 54);\r\n echoTest(is, os, 45);\r\n ms.close();\r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n fail(\"IP Connection test failed\");\r\n }\r\n }", "private void clearInIp() {\n \n inIp_ = 0;\n }", "private void clearInIp() {\n \n inIp_ = 0;\n }", "static boolean validateIP(String ip) {\n String[] ips = ip.split(\"\\\\.\");\n System.out.println(Arrays.toString(ips));\n if(ips.length != 4) return false;\n System.out.println(Arrays.toString(ips));\n \n for(String s : ips){\n int b;\n try{\n b = Integer.parseInt(s);\n if(b<0 || b> 255)return false;\n }catch(Exception e){\n return false;\n }\n }\n \n return true;\n\t}", "@Test\n public void shouldGetHostAddress() {\n assertEquals(NE_IP, session.getAddress().getHostAddress());\n }", "protected ImageView getImageView(){\n\t\treturn iv1;\n\t}", "boolean mo60903a(AvatarImageWithVerify avatarImageWithVerify, UserVerify userVerify);", "@Test\r\n public void testGetImagePath() {\r\n System.out.println(\"getImagePath\");\r\n \r\n String expResult = \"\";\r\n String result = instance.getImagePath();\r\n assertEquals(expResult, result);\r\n \r\n \r\n }", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "PImage getImage() {\n return _img;\n }", "public String getIp(){\n\treturn ip;\n }", "@Override\n\tpublic String getIp() {\n\t\treturn ip;\n\t}", "public String getPicAddr() {\n return picAddr;\n }", "boolean hasIp();", "boolean hasIp();", "boolean hasIp();", "boolean hasIp();", "public interface ImageService extends Remote {\n\n public static final int IMG_SIZE_ORIGINAL = 0;\n public static final int IMG_SIZE_176_220_SMALL = 1;\n public static final int IMG_SIZE_330_220 = 2;\n public static final int IMG_SIZE_240_320_SMALL = 3;\n public static final int IMG_SIZE_120_67 = 4;\n\n public static final int IMG_SIZE_320_480_SMALL = 5;\n public static final int IMG_SIZE_170_121 = 6;\n public static final int IMG_SIZE_480_640_SMALL = 7;\n public static final int IMG_SIZE_800_600 = 8;\n\n public static final String SERVICE_NAME = \"ImageService\";\n\n public byte[] getBytes(long imageId, int imageSize) throws RemoteException;\n\n public byte[] getBytesQuiet(long imageId, int imageSize) throws RemoteException;\n\n public void removeImage(long imageId) throws RemoteException;\n\n public byte[] scale(byte[] data, int imageSize) throws RemoteException;\n\n public boolean addImage(long imageId, byte[] bytes) throws RemoteException;\n}", "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getPrivateNetworkIPsByVirtualDatacenterOrderByIp()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n validURI = validURI + \"?by=ip\";\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n }", "private Label getIP() { \n\t\tString address = new String(); \n\t\ttry { \n\t\t\tURL IpWebSite = new URL(\"http://bot.whatismyipaddress.com\"); \n\t\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(IpWebSite.openStream())); \n\t\t\t\n\t\t\taddress = sc.readLine(); \n\t\t\t\n\t\t} catch (Exception e) { \n\t address = \"Can't get your IP Address \\n Check your internet connection\"; \n\t } \n\t\t\n\t\tLabel ip = new Label(\"Your IP Address is : \" + address);\n\t\tip.setMaxWidth(Double.MAX_VALUE);\n\t\tip.setAlignment(Pos.CENTER);\n\t\treturn ip;\n\t}", "private static Boolean isAnIp(final String ip) {\n\t\treturn PATTERN.matcher(ip).matches();\n\t}", "@Test\n\tpublic void testUpdateImage() {\n\n\t\tip = new ImagePlus();\n\t\t//assertNull(ip.img);\n\t\tip.updateImage();\n\t\t//assertNull(ip.img);\n\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"head8bit.tif\");\n\t\t//assertNull(ip.img);\n\t\tip.updateImage();\n\t\t//assertNotNull(ip.img);\n\t}", "private static boolean validatingIP(String IP)\n {\n if(IP.equalsIgnoreCase(\"localhost\"))\n {\n return true;\n }\n try\n {\n if (IP == null || IP.isEmpty())\n {\n return false;\n }\n\n String[] parts = IP.split(\"\\\\.\");\n if (parts.length != 4)\n {\n return false;\n }\n\n for (String s : parts)\n {\n int i = Integer.parseInt(s);\n if ((i < 0) || (i > 255))\n {\n return false;\n }\n }\n if (IP.endsWith(\".\"))\n {\n return false;\n }\n\n return true;\n }\n catch (NumberFormatException nfe)\n {\n return false;\n }\n\n }", "public String getIp() {\r\n return ip;\r\n }", "public void setIP(java.lang.String IP) {\r\n this.IP = IP;\r\n }", "public String getIp();", "@Test\n public void getPicture_NoPictureExist(){\n Bitmap retrieved = testRecipe.getImage(appContext);\n assertNotEquals(\"getPicture - Not Null\", null, retrieved);\n }", "private IpAddress() {\n\t\tInputStream iis = IpAddress.class.getResourceAsStream(\"/QQWry.dat\");\n\t\tif (iis == null) {\n\t\t\tlog.warn(\"IP地址信息文件没有找到,IP显示功能将无法使用\");\n\t\t\treturn;\n\t\t}\n\n\t\tfinal File dataFile;\n\t\ttry (InputStream is = iis) {\n\t\t\tPath tmp = Files.createTempFile(\"QQWry.dat\", null);\n\t\t\ttmp.toFile().deleteOnExit();\n\n\t\t\ttry (OutputStream out = Files.newOutputStream(tmp, StandardOpenOption.WRITE)) {\n\t\t\t\tbyte[] buf = new byte[8192];\n\t\t\t\tint n;\n\t\t\t\twhile ((n = is.read(buf)) > 0) {\n\t\t\t\t\tout.write(buf, 0, n);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdataFile = tmp.toFile();\n\t\t} catch (IOException e1) {\n\t\t\tlog.warn(\"读取IP地址信息文件失败,IP显示功能将无法使用\");\n\t\t\tthrow new RuntimeException(e1);\n\t\t}\n\n\t\ttry (RandomAccessFile ipFile = new RandomAccessFile(dataFile, \"r\")) {\n\t\t\tthis.ipBegin = byteArrayToLong(readBytes(ipFile, 0L, 4));\n\t\t\tthis.ipEnd = byteArrayToLong(readBytes(ipFile, 4L, 4));\n\t\t\tif (this.ipBegin != -1L && this.ipEnd != -1L) {\n\t\t\t\tcachedIpFile = new RandomAccessFile(dataFile, \"r\");\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\tlog.warn(\"IP地址信息文件没有找到,IP显示功能将无法使用\", e);\n\t\t} catch (IOException e) {\n\t\t\tlog.warn(\"IP地址信息文件格式有错误,IP显示功能将无法使用\", e);\n\t\t}\n\n\t\tthis.ipSum = (this.ipEnd - this.ipBegin) / 7L + 1L;\n\t}", "private void clearIp() {\n \n ip_ = 0;\n }", "private void clearIp() {\n \n ip_ = 0;\n }", "public void setImg(String img) {\n this.img = img;\n }", "private void loadImage(User user) throws IOException {\n byte [] bytes = ByteArrayUtils.bytesFromUrl(user.getImageUrl());\n user.setImageBytes(bytes);\n }", "@Override\n\t\tpublic void ipChange() {\n\t\t\t\n\t\t}", "@SuppressLint(\"DefaultLocale\")\n private String formatIP(int ip) {\n return String.format(\n \"%d.%d.%d.%d\",\n (ip & 0xff),\n (ip >> 8 & 0xff),\n (ip >> 16 & 0xff),\n (ip >> 24 & 0xff)\n );\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();", "public String getIp() {\n return ip;\n }", "int getS1Ip();", "public InputProcessor getIP() {\r\n return ip;\r\n }", "public void mo38841a(ImagesRequest imagesRequest) {\n }", "private void sumbit(String ip){\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();", "private ImageUtils() {}", "@Test\n\tpublic void testImageFromPaintNet() throws IOException, URISyntaxException {\n\t\tfinal String filePath = \"img_orientation/view_20170929_124415.jpg\";\n\t\tURL url = this.getClass().getClassLoader().getResource(filePath);\n\t\tFile imgFile = new File(url.toURI());\n\t\tlogger.debug(\"File '{}' exists = {}\", filePath, imgFile.isFile());\n\t\tBufferedImage bi = TrpImageIO.read(imgFile);\n\t\t\n\t\tif(bi instanceof RotatedBufferedImage) {\n\t\t\t//if we are here this is broken\n\t\t\tAssert.fail(\"Image was erroneously rotated!\");\n\t\t}\n\t}", "private void KirimImage(){\n try {\n DatagramSocket clientsocket=new DatagramSocket(portimage);\n byte[] receivedata = new byte[92024];\n DatagramPacket kirim = new DatagramPacket(receivedata, receivedata.length);\n clientsocket.receive(kirim); \n byte[] buff = kirim.getData();\n \n String pesan = new String(buff, 0, buff.length);\n pesan=pesan.trim();\n// System.out.println(\"pesan = \" + pesan);\n \n if (pesan.equalsIgnoreCase(\"stop\")) {\n clientsocket.close();\n System.exit(0);\n } else {\n InputStream in = new ByteArrayInputStream(buff);\n BufferedImage img = ImageIO.read(in);\n ImageIO.write(img, \"jpg\", new File(\"D:\\\\NikokMenerima.jpg\"));\n ImageIcon set = new ImageIcon(img);\n Images.setIcon(set);\n clientsocket.close(); }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void iPAddressIpIntelligenceTest() throws Exception {\n String value = null;\n IPIntelligenceResponse response = api.iPAddressIpIntelligence(value);\n\n // TODO: test validations\n }", "public String getIP() throws UnknownHostException{\n\t\tInetAddress addr = InetAddress.getLocalHost();//Get local IP\n \t String ip = addr.toString().split(\"\\\\/\")[1];//local IP\n \t //ip = ip.indexOf('\\\\');\n \t if(!getIsLocal()){\n\t \ttry{\n\t\t \tURL whatismyip = new URL(\"http://automation.whatismyip.com/n09230945.asp\");\n\t\t \tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t \t whatismyip.openStream()));\n\t\t \tip = in.readLine(); //you get the IP as a String\n\t\t \t//System.out.println(ip);\n\t\t \tin.close();\n\t\t \treturn ip;\n\n\t \t}\n\t \tcatch(IOException e){\n\t \t\te.printStackTrace();\n\t \t}\n\t \treturn null;\n \t }\n\t\treturn ip;\n\t }", "public abstract ModuleIps ips();", "public EthernetStaticIP() {\n }", "@Override\r\n\tpublic String getIp() {\n\t\treturn null;\r\n\t}", "java.lang.String getSnIp();", "java.lang.String getSnIp();" ]
[ "0.634337", "0.6233843", "0.591196", "0.58957905", "0.58904153", "0.5889566", "0.5848826", "0.5848826", "0.5844317", "0.58248234", "0.58248234", "0.57519114", "0.57519114", "0.57518315", "0.5726932", "0.5708937", "0.56368375", "0.56368375", "0.5614918", "0.56051546", "0.559808", "0.559439", "0.5575032", "0.5575032", "0.5575032", "0.5575032", "0.5575032", "0.5575032", "0.5575032", "0.5575032", "0.5552092", "0.5539466", "0.55366194", "0.55366194", "0.55222845", "0.55222845", "0.55095464", "0.5485044", "0.5485044", "0.5466955", "0.54513794", "0.5448258", "0.5448258", "0.5435313", "0.5373604", "0.5373604", "0.5373604", "0.5364308", "0.53504485", "0.53499913", "0.53371316", "0.53371316", "0.53141266", "0.53062797", "0.5302642", "0.53004354", "0.52961624", "0.52864623", "0.52805346", "0.5275984", "0.52721494", "0.52657115", "0.5265698", "0.5265698", "0.5265698", "0.5265698", "0.5265353", "0.5263992", "0.5243207", "0.5236347", "0.523061", "0.52287734", "0.5214056", "0.5213763", "0.5205286", "0.51930124", "0.51906675", "0.5183511", "0.5183511", "0.51764333", "0.5173093", "0.51713145", "0.51690847", "0.5161531", "0.5160385", "0.51591957", "0.51541173", "0.51532507", "0.51501584", "0.51471317", "0.51330125", "0.513019", "0.5128926", "0.5127108", "0.5127067", "0.51233053", "0.5121271", "0.51146275", "0.51089066", "0.51089066" ]
0.5428207
44
note can't really test. Its a getter with no side effects. Can't predict its value since its different after every creation of an ImagePlus.
@Test public void testGetID() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getIm() {\r\n return im;\r\n }", "public double getIm() {\n return im;\n }", "public PImage getImg() {\n \treturn img;\n }", "public double getIm() {\n\t\treturn im;\n\t}", "public float getIMG(){\n return profile.getImg();\n }", "PImage getImage() {\n return _img;\n }", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}", "public double getImag() {return this.imag;}", "public Image getP(){\n\t\treturn a;\n\t}", "public PImage getImage() {\n return this.image;\n }", "public int getImage();", "public BufferedImage getImage() {\t\r\n\t\treturn this.image;\t\t\t\r\n\t}", "public GraphicalImage getGImg() { return gimg; }", "protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }", "public String getPixelInfo()\n {\n return pixelInfo.toString();\n }", "public Image getSix();", "private int getPictureType()\n {\n return pictureType;\n }", "public xPIC getPic() {\r\n return pic_;\r\n }", "public float getStaticPictureFps();", "public Image getTwo();", "public BufferedImage getPlan()\n { \n return imgPlan;\n }", "public Image getFive();", "private int getIntensity()\t\t\t\n\t{\n\t\treturn intensity;\n\t}", "public Image getOne();", "public Image getInstanceImage() {\r\n return this.image;\r\n }", "public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}", "public BufferedImage getImage() {\n\t\t return img;\n\t}", "public int getG();", "public Image getThree();", "@Test\n\tpublic void testGetPixel() {\n\t\tip = new ImagePlus();\n\t\tassertArrayEquals(new int[] {0,0,0,0}, ip.getPixel(0,0));\n\n\t\t// COLOR_256\n\t\tIndexColorModel cm = new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3});\n\t\tproc = new ByteProcessor(1,1,new byte[] {0},cm);\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.setImage(new BufferedImage(1,1,BufferedImage.TYPE_BYTE_INDEXED, cm));\n\t\tassertEquals(ImagePlus.COLOR_256,ip.getType());\n\t\tassertArrayEquals(new int[] {1,2,3,0}, ip.getPixel(0,0));\n\n\t\t// GRAY8\n\t\tproc = new ByteProcessor(1,1,new byte[] {53}, null);\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.GRAY8,ip.getType());\n\t\tassertArrayEquals(new int[] {53,0,0,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\n\t\t// GRAY16\n\t\tproc = new ShortProcessor(1,1,new short[] {30000},null);\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.GRAY16,ip.getType());\n\t\tassertArrayEquals(new int[] {30000,0,0,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\n\t\t// COLOR_RGB\n\t\tproc = new ColorProcessor(1,1,new int[] {0xffeedd});\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.COLOR_RGB,ip.getType());\n\t\tassertArrayEquals(new int[] {0xff,0xee,0xdd,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\n\t\t// GRAY32\n\t\tint[] ints = new int[3];\n\t\tproc = new FloatProcessor(1,3,ints);\n\t\tproc.set(0, 0, Float.floatToIntBits(25.0f));\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.GRAY32,ip.getType());\n\t\tassertArrayEquals(new int[] {Float.floatToIntBits(25.0f),0,0,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\t}", "public int getMyShape(){ return myShape;}", "public ImageArray getCurrentImage() {\n return currentIm;\n }", "public Picture pic() {\n return pic;\n }", "public double getImag() {\n\t\treturn imag;\n\t}", "public final ImageProcessor getImage() {\r\n return image;\r\n }", "public ImageInfo getImage() {\n return image;\n }", "public Image getFour();", "public double getGx() {\n return mGx;\n }", "public BufferedImage getImage() {\n\t\treturn this.image;\n\t}", "public abstract BufferedImage getSnapshot();", "private PlanarImage getImage() {\n PlanarImage img = roiImage;\n if (img == null) {\n synchronized (this) {\n img = roiImage;\n if (img == null) {\n roiImage = img = roi.getAsImage();\n }\n }\n }\n return img;\n }", "@Override\n public IIOMetadata getImageData() {\n return super.imageData;\n }", "public String getpImage() {\n return pImage;\n }", "public BufferedImage getImage()\r\n\t{\r\n\t\treturn mImageBuffer;\r\n\t}", "protected ImageView getImageView(){\n\t\treturn iv1;\n\t}", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "public String getStaticPicture();", "final Reference<ComputedImage> reference() {\n return reference;\n }", "public Bitmap getImage(){\n return images[currentFrame];\n }", "public Bitmap getBitmap() {\n\t\treturn this.initialBitmap;\r\n\t}", "public Image getPic() {\n return pic;\n }", "public Image getImage() {\r\n return image;\r\n }", "public Image getImg(){\n\t\treturn imgs[count];\n\t}", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "public BufferedImage getImage() {\n return image;\n }", "public int getArea(){\n return imageArea;\n }", "public Image getEight();", "public int getTransparency() {\n/* 148 */ return this.bufImg.getColorModel().getTransparency();\n/* */ }", "public Image getImage() {\r\n\t\treturn image;\r\n\t}", "public Picture picture() {\n return pic;\n }", "public Image getImage() {\n\t\treturn image;\r\n\t}", "public NM getInternalScalingFactorPP() { \r\n\t\tNM retVal = this.getTypedField(36, 0);\r\n\t\treturn retVal;\r\n }", "public Image getHotImage () {\r\n\tcheckWidget();\r\n\treturn hotImage;\r\n}", "public Rectangle getImage() {\n\t\treturn image;\n\t}", "static int getPixValue(int x, int y) {\n return pgmInf.img[y][x];\n }", "public String getImg_0() {\n return img_0;\n }", "public Image getImage() {\n\t\treturn image;\n\t}", "public Image getImage() {\n\t\treturn image;\n\t}", "@FameProperty(name = \"duplicationRate\", derived = true)\n public Number getDuplicationRate() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "double getAlpha() {\n return alpha;\n }", "public String getImage() {\n return this.Image;\n }", "@Override\n\tpublic Image getImage() {\n\t\treturn image;\n\t}", "public double getXPixel()\n {\n return xPixel;\n }", "public Image getImage() {\n return image;\n }", "int getAssetValue();", "Imagem getImagem();", "public BufferedImage getDati()\n { \n return imgDati;\n }", "public String getaImg() {\n return aImg;\n }", "public Image getSharp();", "public double getHiX() {\r\n\treturn fieldHiX;\r\n}", "public abstract Image getImage();", "public abstract Image getImage();", "public int getImageNumber() {\n return imageNumber;\n }", "public BufferedImage getCurrentImage(){\n\t\treturn getCurrentImage(System.currentTimeMillis()-lastUpdate);\n\t}", "public String getNewImage() {\r\n\t\treturn newImage;\r\n\t}", "double getTransparency();", "public int getMyFaceValue(){\r\n return myFaceValue;\r\n }", "public int getPointOpacity()\n {\n return myPointOpacity;\n }", "public int getFaceValue ()\n {\n return faceValue;\n }", "public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }", "public Long getGpu() {\n return this.Gpu;\n }", "public double getG();", "public String getImage() { return image; }", "public Integer getImageResource(){\n return mImageResource;\n }", "public Image getImage() {\n return image;\n }", "public Pixel getPixelLocation() {\n\t\treturn _PixelLocation;\n\t}", "public String getImg(){\n return img;\n }", "public PNGEncodeParam getEncodeParam() {\n/* 346 */ return this.encodeParam;\n/* */ }", "public Image getImage() {\r\n\t\treturn GDAssemblerUI.getImage(GDAssemblerUI.IMAGE_GD);\r\n\t}", "public int getIconImageNumber(){return iconImageNumber;}" ]
[ "0.6837224", "0.6728821", "0.6664923", "0.66004986", "0.658032", "0.6528156", "0.6519869", "0.6487798", "0.644276", "0.6431945", "0.64053255", "0.62885016", "0.62763876", "0.6262581", "0.62392235", "0.6230128", "0.62205714", "0.62061554", "0.6198417", "0.61826843", "0.61791307", "0.61518866", "0.61503017", "0.612437", "0.6113739", "0.6109509", "0.610815", "0.61076176", "0.6100222", "0.607054", "0.6066981", "0.6059067", "0.6055635", "0.60471076", "0.60411984", "0.60304034", "0.60299", "0.60253096", "0.6012251", "0.600007", "0.5996333", "0.59761983", "0.5967155", "0.5965525", "0.59488654", "0.5938002", "0.5936468", "0.5933802", "0.59332013", "0.5922657", "0.5913046", "0.5910677", "0.5907996", "0.59007615", "0.5900446", "0.5897598", "0.58967716", "0.5895736", "0.58929384", "0.5881294", "0.58803695", "0.5878222", "0.58764035", "0.58697", "0.5864313", "0.58594364", "0.58557", "0.585532", "0.585532", "0.5841715", "0.5840934", "0.58406115", "0.5838323", "0.58382773", "0.5829551", "0.582905", "0.58240765", "0.58206147", "0.5818774", "0.5817964", "0.581734", "0.5816961", "0.5816961", "0.58145475", "0.58119124", "0.5807665", "0.5806467", "0.58021384", "0.58018744", "0.5797182", "0.57903874", "0.57869613", "0.57868564", "0.5781808", "0.5777951", "0.57762295", "0.5773462", "0.57632697", "0.57596934", "0.57491994", "0.5745416" ]
0.0
-1
throws exception if passed null processor
@Test public void testSetProcessor() { ip = new ImagePlus(); try { ip.setProcessor("DoesNotMatterForThisCase",null); fail(); } catch (IllegalArgumentException e) { assertTrue(true); } // throws exception if passed processor has no pixels ip = new ImagePlus(); proc = new ByteProcessor(3,5,null,new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3})); try { ip.setProcessor("DoesNotMatterForThisCase",proc); fail(); } catch (IllegalArgumentException e) { assertTrue(true); } // if stack size > 1 and passed processor dims != my dims throw IllegArgExcep //proc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3})); //st = new ImageStack(1,3); //st.addSlice("Slice1",proc); //st.addSlice("Slice2",proc); //ip = new ImagePlus(); //ip.width = 1; //ip.height = 3; //ip.setStack("TheStack", st); //ip.height = 4; //ip.width = 7; //try { // ip.setProcessor("DoesNotMatterForThisCase",proc); // fail(); //} catch (IllegalArgumentException e) { // assertTrue(true); //} // if stack size <= 1 then stack should be null and currSlice should be 1 proc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3})); st = new ImageStack(1,3); st.addSlice("Slice1",proc); ip = new ImagePlus(); ip.width = 1; ip.height = 3; ip.setStack("TheStack", st); ip.setProcessor("DoesNotMatterForThisCase",proc); assertEquals(1,ip.getStackSize()); assertEquals(1,ip.currentSlice); // try with null title proc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3})); st = new ImageStack(1,3); st.addSlice("Slice1",proc); st.addSlice("Slice2",proc); ip = new ImagePlus(); ip.width = 1; ip.height = 3; ip.setStack("TheStack", st); ip.setProcessor(null,proc); assertEquals(2,ip.getStackSize()); assertEquals("TheStack",ip.getTitle()); assertEquals(proc,ip.getProcessor()); assertEquals(ImagePlus.GRAY8,ip.getType()); assertEquals(8,ip.getBitDepth()); assertEquals(1,ip.getBytesPerPixel()); // try with non-null title proc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3})); st = new ImageStack(1,3); st.addSlice("Slice1",proc); st.addSlice("Slice2",proc); ip = new ImagePlus(); ip.width = 1; ip.height = 3; ip.setStack("TheStack", st); ip.setProcessor("MattersForThisCase",proc); assertEquals(2,ip.getStackSize()); assertEquals("MattersForThisCase",ip.getTitle()); assertEquals(proc,ip.getProcessor()); assertEquals(ImagePlus.GRAY8,ip.getType()); assertEquals(8,ip.getBitDepth()); assertEquals(1,ip.getBytesPerPixel()); // try to get roi subcase to run proc = new ShortProcessor(1,3,new short[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3})); ip = new ImagePlus(); ip.width = 4; ip.height = 4; ip.setRoi(1,1,2,2); assertNotNull(ip.getRoi()); ip.setProcessor("Ooch",proc); assertNull(ip.getRoi()); assertEquals(1,ip.width); assertEquals(3,ip.height); assertEquals(ImagePlus.GRAY16,ip.getType()); assertEquals(16,ip.getBitDepth()); assertEquals(2,ip.getBytesPerPixel()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = SuperCsvCellProcessorException.class)\n\tpublic void testWithNull() {\n\t\tprocessor.execute(null, ANONYMOUS_CSVCONTEXT);\n\t}", "public DroppingProcessor(Processor processor) {\n this.processor = Optional.of(processor);\n }", "@Test\r\n public void testExecute_inputNull() {\r\n \r\n assertThat((Object)processor.execute(null, ANONYMOUS_CSVCONTEXT)).isNull();\r\n \r\n }", "@Test\n\tpublic void testGetProcessor() {\n\t\tip = new ImagePlus();\n\t\tassertNull(ip.getProcessor());\n\n\t\t// otherwise it gets into the method\n\n\t\t// uncalibrated subcase\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tip = new ImagePlus(\"FredFred\",proc);\n\t\tassertEquals(proc,ip.getProcessor());\n\t\tassertEquals(Line.getWidth(),proc.getLineWidth());\n\t\tassertNull(proc.getCalibrationTable());\n\n\t\t// calibrated subcase\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tip = new ImagePlus(\"FredFred\",proc);\n\t\tip.getCalibration().setFunction(Calibration.STRAIGHT_LINE, new double[] {3,5}, \"Splutterflits\");\n\t\tassertEquals(proc,ip.getProcessor());\n\t\tassertEquals(Line.getWidth(),proc.getLineWidth());\n\t\tassertNotNull(proc.getCalibrationTable());\n\n\t\t// note - untested side effect - Recorder records image was updated (sets a flag to true)\n\t}", "@Override\n\tpublic String process() {\n\t\treturn null;\n\t}", "private void genericProcessorNameConfigurationTest(final String processorName)\n throws Exception {\n final ThreadLocal<Exception> processorsCreationException = new ThreadLocal<Exception>();\n try {\n final ConfigurableWroFilter filter = new ConfigurableWroFilter() {\n @Override\n protected WroManagerFactory newWroManagerFactory() {\n final WroManagerFactory original = super.newWroManagerFactory();\n try {\n original.create().getProcessorsFactory().getPreProcessors();\n } catch (final Exception e) {\n LOG.debug(\"caught exception: \", e);\n processorsCreationException.set(e);\n }\n return original;\n }\n \n @Override\n protected void onException(final Exception e, final HttpServletResponse response, final FilterChain chain) {\n throw WroRuntimeException.wrap(e);\n }\n };\n final Properties properties = new Properties();\n properties.setProperty(ConfigurableProcessorsFactory.PARAM_PRE_PROCESSORS, processorName);\n filter.setProperties(properties);\n filter.init(mockFilterConfig);\n } catch (final Exception e) {\n Assert.fail(\"Shouldn't fail with exception \" + e.getMessage());\n }\n if (processorsCreationException.get() != null) {\n processorsCreationException.get();\n throw processorsCreationException.get();\n }\n }", "public interface Processor {\n\n /**\n * Common key on the params map that uses/returns the process method\n */\n enum ParameterKeys {\n ID, BODY, LEFT, RIGHT, STOP_FLAG, RESULT\n }\n\n /**\n * It's the entry point to call the business logic execution on each Processor\n * @param params Map of params that is been use inside the Processor\n * @return the new state of the params after the business logic execution\n * @throws NullPointerException if the params is null, or an expected key inside the map\n * @throws IllegalArgumentException id the value of the param is not valid\n */\n Map<ParameterKeys, Object> process(final Map<ParameterKeys, Object> params) throws NullPointerException, IllegalArgumentException;\n}", "public void testConstructor() {\r\n assertNotNull(\"DefaultReviewApplicationProcessor instance should be created successfully.\", processor);\r\n }", "private ProcessorUtils() { }", "@Override\n public Object preProcess() {\n return null;\n }", "public abstract Parts getProcessor();", "private Processor()\n {\n super(providerName+\"ProxyProcessor\");\n }", "void addBeforeProcessor(Object processor);", "@Override\n protected DatagramProcessor createDatagramProcessor() {\n return null;\n }", "public void addFirst (InputProcessor processor) {\n this.verifyUnique(processor);\n\n this.inputMultiplexer.addProcessor(0, processor);\n }", "public void setProcessor(EntryProcessor processor)\n {\n m_processor = processor;\n }", "public EmptyMessageProcessor() {\n\n }", "public TProcessor wrapNonAssumingProcessor(TProcessor processor) {\n return new TUGIAssumingProcessor(processor, secretManager, false);\n }", "@Test(expected = SuperCsvCellProcessorException.class)\n\tpublic void testWithEmptyString() {\n\t\tprocessor.execute(\"\", ANONYMOUS_CSVCONTEXT);\n\t}", "public String getAnnotationProcessor() {\n return null;\n }", "public static void addInputProcessor(final InputProcessor processor){\n if (Gdx.input.getInputProcessor() == null){\n Gdx.input.setInputProcessor(processor);\n }else{//use multiplexer if more than one input processor\n inpMulPlex = new InputMultiplexer(Gdx.input.getInputProcessor());\n inpMulPlex.addProcessor(processor);\n Gdx.input.setInputProcessor(inpMulPlex);\n }\n }", "public static void init( ImageProcessing processor)\r\n {\r\n OI.init();\r\n driveTrain = DriveTrain.getInstance();\r\n sensors = Sensors.getInstance();\r\n bridgeTool = BridgingArm.getInstance();\r\n shooter = Shooter.getInstance();\r\n ballGatherer = BallGatherer.getInstance();\r\n imageProcessor = processor;\r\n SmartDashboard.putData(driveTrain);\r\n }", "@Override\n public MessageProcessor next() {\n return null;\n }", "ODataSingleProcessor createProcessor(ODataContext context);", "public interface Iprocessor {\n public void process(RoundEnvironment roundEnvironment, Element typeElement, Filer mfFiler, Elements elements, Messager messager);\n}", "public Processor getProcessor(Node node) throws ScheduleException {\n if (!scheduledTasks.containsKey(node)) {\n throw new ScheduleException(\"Processor not defined for task: \" + node);\n }\n return scheduledTasks.get(node);\n }", "public void process() throws Exception {\n\n }", "public void process(TemplatingContext templatingContext)\n throws ProcessingException\n {\n // do nothing in base implementation\n }", "java.lang.String getProcessor(int index);", "protected Optional<TBaseProcessor> getInteractiveQueryProcessor() {\n return Optional.empty();\n }", "protected boolean init() {\n\t\tthis.mProcInfo = new ProcInfo();\t\t\n\t\tthis.mProcInfo.ml = this.mMediaLocator;\n\t\t\n\t\ttry {\n\t\t\tSystem.err.println(\"- Create processor for: \" + this.mMediaLocator);\n\t\t\tthis.mProcInfo.p = Manager.createProcessor(this.mMediaLocator);\n\t } catch (Exception e) {\n\t\t\tSystem.err.println(\"Yikes! Cannot create a processor from the given url: \" + e);\n\t\t\treturn false;\n \t}\n\t\treturn true;\n\t}", "public void process(Object value) {\n\t\t//empty\n\t}", "@Override\n\tpublic void process(Exchange arg0) throws Exception {\n\t\t\n\t}", "public void testTransformWithNullCaller() throws Exception {\n try {\n instance.transform(element, document, null);\n fail(\"IllegalArgumentException is excepted[\" + suhClassName + \"].\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }", "public boolean canHandle(Processor processor) {\n return processor.getClass().getName().equals(\"org.embl.ebi.escience.scuflworkers.wsdl.WSDLBasedProcessor\");\n }", "@Test\n public void AppProcNumError() {\n try{\n App.main(new String[]{TEST_PATH + \"input.dot\",\"yes\"});\n }catch(RuntimeException re){\n assertEquals(re.getMessage(),\"Invalid number of processors\");\n }\n }", "protected AsymmetricProcessor() {\n\t}", "@Override\n\tpublic void setReporter(Reporter processor) {\n\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public static INLPProcessor initNLPProcessor(Class nlpFramework){\n\n if(nlpFramework.getCanonicalName().equalsIgnoreCase(\"com.data.processors.OpenNLPProcessor\")){\n return new OpenNLPProcessor();\n }\n return null;\n }", "public void add (InputProcessor processor) {\n this.verifyUnique(processor);\n\n this.inputMultiplexer.addProcessor(processor);\n }", "public TProcessor wrapProcessor(TProcessor processor) {\n return new TUGIAssumingProcessor(processor, secretManager, true);\n }", "@Test\n public void test098() throws Throwable {\n NumberInput numberInput0 = new NumberInput((Component) null, \"\", \"m\", \"m\");\n // Undeclared exception!\n try {\n Component component0 = numberInput0.param((CharSequence) \"m\", (CharSequence) \"\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public LateDeliverableProcessorImpl() {\r\n // Empty\r\n }", "private static interface Processor<T> {\n\n\t\t/**\n\t\t * Called to process the annotation.\n\t\t * @param annotation the annotation to process\n\t\t * @param depth the depth of the annotation relative to the initial match. For\n\t\t * example a matched annotation will have a depth of 0, a meta-annotation 1\n\t\t * and a meta-meta-annotation 2\n\t\t * @return the result of the processing or {@code null} to continue\n\t\t */\n\t\tT process(Annotation annotation, int depth);\n\t}", "@Override\n\tpublic void process() throws Exception {\n\n\t}", "@Test\n public void testFactsPreProcessorHasUnmatchedEnabledListEntry() {\n DroolsRulesServiceFactoryFromFile reader = buildDefaultReader();\n\n EngineConfigDTO engine = new EngineConfigDTO();\n List<String> enabledPreProcessors = new ArrayList<>();\n enabledPreProcessors.add(\"MISSING_PREPROCESSOR\");\n engine.setEnabledPreProcessors(enabledPreProcessors);\n\n List<IFactsPreProcessor> preProcessors = reader.configurePreProcessors(engine, new ArrayList<String>());\n assertEquals(0, preProcessors.size());\n }", "public void testTransformWithNullElement() throws Exception {\n try {\n instance.transform(null, document, caller);\n fail(\"IllegalArgumentException is excepted[\" + suhClassName + \"].\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }", "public synchronized void replaceProcessor (SiteFileProcessor processor) {\n\t\tgenerator.replaceProcessor(processor);\n\t}", "Flow.Processor<T, Ack> processor();", "public EntryProcessor getProcessor()\n {\n return m_processor;\n }", "@Override\n\tpublic Map<String, Object> preProccess() {\n\t\treturn null;\n\t}", "public abstract ImportProcessor getProcessor(String entityName) \n\t\t\tthrows ErrorException;", "@Test(expected = SuperCsvCellProcessorException.class)\n\tpublic void testWithNonString() {\n\t\tprocessor.execute(1234, ANONYMOUS_CSVCONTEXT);\n\t}", "@Test\n\tpublic void testGetProcessorForColorProcessor() {\n\t\tfinal PlanarImg< ARGBType, IntArray > argbs = PlanarImgs.argbs( 1, 1, 1 );\n\t\targbs.randomAccess().get().set( 0xff010203 );\n\t\tfinal VirtualStack stack = PlanarImgToVirtualStack.wrap( argbs );\n\t\tassertArrayEquals( new int[] { 0xff010203 }, (int[]) stack.getPixels( 1 ) );\n\t\tstack.getProcessor( 1 );\n\t\tassertArrayEquals( new int[] { 0xff010203 }, (int[]) stack.getPixels( 1 ) );\n\t}", "public void process(Object value) {}", "@Override\n\tpublic void processing() {\n\n\t}", "@Test\n public void testFactsPreProcessorNoConfiguration() {\n DroolsRulesServiceFactoryFromFile reader = buildDefaultReader();\n\n EngineConfigDTO engine = new EngineConfigDTO();\n List<IFactsPreProcessor> preProcessors = reader.configurePreProcessors(engine, new ArrayList<String>());\n\n assertEquals(0, preProcessors.size());\n }", "@Override\r\n\tprotected void processTarget() throws SGSException {\n\r\n\t}", "public boolean isNotNullPaymentProcessorName() {\n return genClient.cacheValueIsNotNull(CacheKey.paymentProcessorName);\n }", "public static void focusInputProcessor(final InputProcessor processor){\n inactiveInpProcssrs = inpMulPlex.getProcessors();\n inpMulPlex.clear();\n inpMulPlex.addProcessor(processor);\n }", "public Processor getProcessor() throws Exception{\n\t\t\n\t\tsynchronized(lock){\n\t\t\tlock.wait();\n\t\t}\n\t\t\n\t\treturn processor;\n\t}", "public interface RaymondProcessor extends Processor {\n void request(int id, int resourceId);\n\n void receiveToken(RaymondToken raymondToken);\n\n int getProcessorId();\n}", "protected abstract IContentAssistProcessor createProcessor();", "@Ignore\n\t@Test\n\tpublic void testParamNull() {\n\t\tregisterParamException(null, keyString, valueString);\n\t\tregisterParamException(groupString, null, valueString);\n\t\tregisterParamException(groupString, keyString, null);\n\t}", "@Test(expected = IllegalArgumentException.class)\r\n public void testDetectWithNullData() throws Exception {\r\n instance.detect(null);\r\n }", "private void runProcessor(UtteranceProcessor processor, \n Utterance utterance, BulkTimer timer) \n throws ProcessException {\n\tif (processor != null) {\n\t String processorName = \"..\" + processor.toString();\n\t log(\" Running \" + processorName);\n\t timer.start(processorName);\n\t processor.processUtterance(utterance);\n\t timer.stop(processorName);\n\t}\n }", "public IterativeProcessor(Processor processor, String collectionName) {\n if (processor == null)\n throw new RuntimeException(\"Cannot create an iterative processor from a null processor!\");\n if (collectionName == null)\n throw new RuntimeException(\"Cannot create an iterative processor from a null collection name!\");\n\n _processor = processor;\n _collectionName = collectionName;\n }", "public InvalidProcessException() {}", "@Test\n\tpublic void testGetChannelProcessor() {\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"gray8-3x2-sub1.tif\");\n\t\tproc = ip.getProcessor();\n\t\tassertEquals(proc,ip.getChannelProcessor());\n\t}", "public void testTransformWithNullDocument() throws Exception {\n try {\n instance.transform(element, null, caller);\n fail(\"IllegalArgumentException is excepted[\" + suhClassName + \"].\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }", "@Override\n protected void postProcessEngineInitialisation() {\n }", "public void forEach(Processor processor) {\n\n\t}", "public Param getProcessingMethod();", "public boolean canProcessNull() {\n return false;\n }", "@Test\n\tpublic void testImagePlusStringImageProcessor() {\n\t\tproc = new ByteProcessor(20,45);\n\t\tip = new ImagePlus(\"Houdini\", proc);\n\t\tassertNotNull(ip);\n\t\tassertEquals(proc,ip.getProcessor());\n\t}", "<TDef extends IElementDef> Processor<TDef> createProcessor(DynamicScopeContext context, TDef elementDef);", "public interface ComponentProcessor {\n\n /**\n * Starts processing components for the rootnode, this shall call {@link #processNode(Node, float)} on all of the\n * nodes\n * that shall be processed.\n * Perform init if needed in this method\n * \n * @param root\n * @param delta\n */\n public void processRoot(RootNode root, float delta);\n\n /**\n * Processes the non-culled logic nodes\n * \n * @param node\n * @param delta\n */\n public void processNode(Node node, float delta);\n}", "public T caseCommon_Preprocess(at.jku.weiner.c.common.common.Preprocess object)\n\t{\n\t\treturn null;\n\t}", "public interface IProcessor {\n\t/**\n\t * The container for the logic of the <code>Processor</code>.\n\t * \n\t * @param r\n\t * the target <code>Record</code>\n\t */\n\tpublic void process(Record r);\n\t\n\tpublic void close();\n}", "private static <T> T process(AnnotatedElement element, String annotationType,\n\t\t\tProcessor<T> processor) {\n\t\treturn recursivelyProcess(element, annotationType, processor,\n\t\t\t\tnew HashSet<AnnotatedElement>(), 0);\n\t}", "public void process() {\n\t}", "Map<ParameterKeys, Object> process(final Map<ParameterKeys, Object> params) throws NullPointerException, IllegalArgumentException;", "public void process() {\n\n }", "@Override\n public TagProcessor<ProcessorContext, UIComponent> getTagProcessor(String uri, String localName) {\n TagProcessor<ProcessorContext, UIComponent> result = null;\n if (hasTagProcessor(uri, localName)) {\n result = (TagProcessor<ProcessorContext, UIComponent>) cdiManager.getInstance(Object.class,\n new TemplateProcessorLiteral(uri, localName));\n }\n return result;\n }", "@Override\n\tpublic void processingInstruction() {\n\t\t\n\t}", "default void processRemaining(Processor<? super T> p) {\n\t\tObjects.requireNonNull(p);\n\t\twhile(hasNextElement()) {\n\t\t\tp.process(getNextElement());\n\t\t}\n\t}", "@Test\n public void AppNoParams() {\n try{\n App.main(new String[]{});\n }catch(RuntimeException re){\n assertEquals(re.getMessage(),\"Insufficient arguments given. Needs [input file] [# processors]\");\n }\n }", "public interface ProductProcessorMP0 extends ProductProcessor {\n\n\n\n\n void processFile(MultipartFile file, ContractImage contractImage, Contract contract) throws IOException, IllegalDataException;\n}", "public CInstructions(CProcessor cprocessor) { this.m_cprocessor = cprocessor; }", "public T casePreprocess(Preprocess object)\n\t{\n\t\treturn null;\n\t}", "public void intermediateProcessing() {\n //empty\n }", "public interface RenderingProcess extends Process {\n\n /**\n * Given a target query and a target grid geometry returns the query to be used to read the\n * input data of the process involved in rendering. This method will be called only if the input\n * data is a feature collection.\n * \n * @param targetQuery\n * @param gridGeometry\n * @return The transformed query, or null if no inversion is possible/meaningful\n */\n Query invertQuery(Map<String, Object> input, Query targetQuery, GridGeometry gridGeometry) throws ProcessException;\n\n /**\n * Given a target query and a target grid geometry returns the grid geometry to be used to read\n * the input data of the process involved in rendering. This method will be called only if the\n * input data is a grid coverage or a grid coverage reader\n * \n * @param targetQuery\n * @param gridGeometry\n * @return The transformed query, or null if no inversion is possible/meaningful\n */\n GridGeometry invertGridGeometry(Map<String, Object> input, Query targetQuery,\n GridGeometry targetGridGeometry) throws ProcessException;\n}", "private void setupProcessingPipeline() throws Exception {\n // activeProcessingUnits = 1;\n\n nonThreadedProcessingUnit = new NonThreadedProcessingUnit(this);\n // Assign initial status to all Cas Processors in the processing pipeline\n for (int i = 0; i < annotatorList.size(); i++) {\n ((ProcessingContainer) annotatorList.get(i)).setStatus(Constants.CAS_PROCESSOR_RUNNING);\n }\n\n nonThreadedProcessingUnit.setContainers(annotatorList);\n nonThreadedProcessingUnit.setCasPool(casPool);\n for (int j = 0; j < statusCbL.size(); j++) {\n BaseStatusCallbackListener statCL = (BaseStatusCallbackListener) statusCbL.get(j);\n if (statCL != null) {\n nonThreadedProcessingUnit.addStatusCallbackListener(statCL);\n }\n }\n }", "@Override\r\n\tprotected String processLine(String line) {\n\t\treturn null;\r\n\t}", "public Process() {\n\t\tthis(null);\n\t}", "public Process() {\t// constructor with empty parameter\r\n\t\tthis.priority = -1;\t// int value will be -1\r\n \tthis.type = null;\t// String object initialized to null\r\n\t}", "public CustomFieldProcessor<T, ?> getFieldProcessor(Class<CustomFieldProcessor<T, ?>> processorClass)\r\n {\r\n CustomFieldProcessor<T, ?> cfp = registeredProcessors.get(processorClass);\r\n if (cfp == null) {\r\n if (processorClass != null) {\r\n try {\r\n cfp = processorClass.newInstance();\r\n } catch (InstantiationException exception) {\r\n throw new ProcessorException(processorClass, exception);\r\n } catch (IllegalAccessException exception) {\r\n throw new ProcessorException(processorClass, exception);\r\n }\r\n registeredProcessors.put(((Class<CustomFieldProcessor<T, ?>>) processorClass), cfp);\r\n }\r\n }\r\n return cfp;\r\n }", "@Override\n\tprotected String processLine(String line) {\n\t\treturn null;\n\t}", "@Test(expected = NullPointerException.class)\n public void testSubmitNPE2() throws Exception {\n CompletionService<Boolean> ecs = new BoundedCompletionService<Boolean>(\n new ExecutorCompletionService<Boolean>(e));\n Runnable r = null;\n ecs.submit(r, Boolean.TRUE);\n shouldThrow();\n }" ]
[ "0.67174727", "0.65665776", "0.62160176", "0.5908177", "0.5845668", "0.58263886", "0.58150387", "0.5722621", "0.56580484", "0.56289846", "0.55849147", "0.5542633", "0.55386317", "0.55203825", "0.5494275", "0.5470833", "0.5447032", "0.5441379", "0.5441021", "0.5416397", "0.5414494", "0.54058963", "0.5380457", "0.53482825", "0.5339233", "0.53355443", "0.5333863", "0.533351", "0.53211063", "0.5292401", "0.5288521", "0.52664804", "0.52636176", "0.525983", "0.52499276", "0.5245075", "0.52429557", "0.52373606", "0.5233526", "0.52168524", "0.521629", "0.52056897", "0.5183539", "0.51767683", "0.5165731", "0.5162439", "0.5160433", "0.5154898", "0.51469684", "0.513325", "0.5126429", "0.5120961", "0.5118951", "0.51167244", "0.51160914", "0.5112532", "0.51100534", "0.51032174", "0.5091129", "0.5082297", "0.5080049", "0.5074958", "0.50738627", "0.505511", "0.50502884", "0.5040642", "0.5040428", "0.50349647", "0.5034522", "0.5030702", "0.50225824", "0.50215656", "0.5021423", "0.5019889", "0.5016623", "0.5013312", "0.4985305", "0.4975273", "0.49643275", "0.4962328", "0.4959544", "0.49590844", "0.4958856", "0.4955019", "0.4952947", "0.49475256", "0.4942415", "0.49291295", "0.49221233", "0.4918624", "0.49153534", "0.48931786", "0.48909992", "0.4884069", "0.4883183", "0.48788214", "0.48555484", "0.48531815", "0.48464307", "0.48459646" ]
0.6198359
3
note will only test nongui capabilities of method stack size == 0 throws illArgExc
@Test public void testSetStackStringImageStack() { ip = new ImagePlus(); st = new ImageStack(2,2); try { ip.setStack("Gizzard",st); fail(); } catch (IllegalArgumentException e) { assertTrue(true); } // not a virt stack and null imagearray (impossible) or 1st entry of imagearray is null (possible) throw illArgExc ip = new ImagePlus(); proc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3})); st = new ImageStack(1,3,14); // 14 empty slices sized 1x3 try { ip.setStack("14Plates",st); fail(); } catch (IllegalArgumentException e) { assertTrue(true); } // otherwise it runs through // ... doesn't seem like there is anything to test ip = new ImagePlus(); ip.width = 1; ip.height = 3; proc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3})); st = new ImageStack(1,3); st.addSlice("Slice1",proc); ip.setStack("SuperStack",st); assertEquals(st,ip.getStack()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public boolean argsNotFull();", "@Test(timeout = 4000)\n public void test134() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n typeArray0[6] = type6;\n Type type7 = Type.SHORT_TYPE;\n type2.toString();\n typeArray0[7] = type7;\n Class<Integer> class0 = Integer.class;\n Type.getType(class0);\n Type[] typeArray1 = new Type[1];\n typeArray1[0] = type0;\n Type.getMethodDescriptor(type1, typeArray1);\n // Undeclared exception!\n try { \n frame0.initInputFrame((ClassWriter) null, 9, typeArray1, (-2299));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test\n public void pushOnStackTest_InCorrect(){\n assertNotEquals(10 , stack.getStack().returnFirst());\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n typeArray0[6] = type1;\n Type type6 = Type.SHORT_TYPE;\n type2.toString();\n typeArray0[7] = type6;\n Class<Integer> class0 = Integer.class;\n Type.getType(class0);\n Type[] typeArray1 = new Type[1];\n typeArray1[0] = type0;\n Type.getMethodDescriptor(type1, typeArray1);\n ClassWriter classWriter0 = new ClassWriter(9);\n Item item0 = classWriter0.key;\n // Undeclared exception!\n try { \n frame0.execute(10, (-2776), (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n typeArray0[6] = type6;\n Type type7 = Type.SHORT_TYPE;\n type2.toString();\n typeArray0[7] = type7;\n Class<Integer> class0 = Integer.class;\n Type.getType(class0);\n Type[] typeArray1 = new Type[1];\n typeArray1[0] = type0;\n Type.getMethodDescriptor(type1, typeArray1);\n ClassWriter classWriter0 = new ClassWriter(9);\n Item item0 = classWriter0.key;\n // Undeclared exception!\n try { \n frame0.execute(10, (-2776), (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(218);\n String[] stringArray0 = new String[0];\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-226294317), \"'0\", \"3_VkzVZ[h,w03B)nWX\", \"RuntimeInvisibleParameterAnnotations\", stringArray0, true, false);\n MethodWriter methodWriter1 = methodWriter0.next;\n classWriter0.firstMethod = null;\n Object object0 = new Object();\n // Undeclared exception!\n try { \n methodWriter0.visitFrame(1, 218, stringArray0, 517, stringArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Test\n public void shouldReturnNullForAllSystemStack() {\n assertNull(\n CallerBasedSecurityManager.getLastCaller(\n Object.class,\n Object.class,\n Object.class\n ), \"No caller expected for all-system stack\"\n );\n }", "@Test(timeout = 4000)\n public void test128() throws Throwable {\n Frame frame0 = new Frame();\n Type type0 = Type.getReturnType(\"Sensitive\");\n Type type1 = Type.DOUBLE_TYPE;\n Type type2 = Type.DOUBLE_TYPE;\n Type type3 = Type.INT_TYPE;\n Type type4 = Type.VOID_TYPE;\n Type type5 = Type.BOOLEAN_TYPE;\n Type type6 = Type.FLOAT_TYPE;\n Type type7 = Type.SHORT_TYPE;\n type5.toString();\n Class<Integer> class0 = Integer.class;\n Type.getType(class0);\n Type[] typeArray0 = new Type[9];\n typeArray0[0] = type6;\n typeArray0[1] = type2;\n typeArray0[2] = type0;\n typeArray0[3] = type0;\n typeArray0[4] = type1;\n Type type8 = Type.CHAR_TYPE;\n typeArray0[5] = type8;\n typeArray0[6] = type7;\n typeArray0[7] = type7;\n typeArray0[8] = type0;\n Type.getMethodDescriptor(type5, typeArray0);\n // Undeclared exception!\n try { \n frame0.initInputFrame((ClassWriter) null, 8, typeArray0, 7);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 7\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.LONG_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n typeArray0[6] = type6;\n Type type7 = Type.SHORT_TYPE;\n type2.toString();\n typeArray0[7] = type7;\n Class<Integer> class0 = Integer.class;\n Type type8 = Type.getType(class0);\n Type[] typeArray1 = new Type[1];\n typeArray1[0] = type0;\n Type.getMethodDescriptor(type1, typeArray1);\n typeArray0[8] = type8;\n // Undeclared exception!\n try { \n frame0.initInputFrame((ClassWriter) null, (-301), typeArray0, 1976);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "abstract public int maxArgs();", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n typeArray0[6] = type6;\n Type type7 = Type.SHORT_TYPE;\n type2.toString();\n typeArray0[7] = type7;\n Class<Integer> class0 = Integer.class;\n Type.getType(class0);\n Type[] typeArray1 = new Type[1];\n typeArray1[0] = type0;\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Type.getMethodDescriptor(type1, typeArray1);\n ClassWriter classWriter0 = new ClassWriter(174);\n Item item0 = classWriter0.newConstItem(\"\");\n // Undeclared exception!\n try { \n frame0.execute(3, 2, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test\n public void checkForLowMemoryWithSetArg_DoesNotThrowWhenNotOptimizedForWrite() throws Exception {\n checkForLowMemoryWithSetArg_doesNotThrow(false, false, memberSet);\n }", "@Test(timeout = 4000)\n public void test091() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(16777287);\n Type type0 = Type.BYTE_TYPE;\n String string0 = \"\";\n Item item0 = classWriter0.newMethodItem(\"\", \"zO!>TX45 #n,N&W\", \"zO!>TX45 #n,N&W\", false);\n // Undeclared exception!\n try { \n frame0.execute(160, 171, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test130() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n typeArray0[6] = type6;\n Type type7 = Type.SHORT_TYPE;\n type2.toString();\n typeArray0[7] = type7;\n Class<Integer> class0 = Integer.class;\n Type type8 = Type.getType(class0);\n Type[] typeArray1 = new Type[1];\n typeArray1[0] = type0;\n Type.getMethodDescriptor(type1, typeArray1);\n typeArray0[8] = type8;\n // Undeclared exception!\n try { \n frame0.execute(4, Integer.MAX_VALUE, (ClassWriter) null, (Item) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test078() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n int[] intArray0 = new int[7];\n intArray0[0] = 2;\n intArray0[1] = 3;\n intArray0[0] = 7;\n intArray0[3] = 7;\n intArray0[4] = 10;\n intArray0[5] = 5;\n intArray0[6] = 1;\n ClassWriter classWriter0 = new ClassWriter(5);\n int int0 = Frame.INTEGER;\n Item item0 = classWriter0.newInteger(3);\n // Undeclared exception!\n try { \n frame0.execute(20, 60, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test023() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n int int0 = Frame.INTEGER;\n Item item0 = classWriter0.newInteger((-1786));\n int int1 = 187;\n // Undeclared exception!\n try { \n frame0.execute(187, 49, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "boolean isFull(Stack stack){\n\t\tif(stack.getStackSize() >= 100) return true;\r\n\t\telse return false;\t\r\n\t}", "@Test\n public void testPushCallTop(){\n ms = new MyStack();\n ms.push(1);\n ms.top();\n assertFalse(ms.IsEmpty());\n }", "public void testMethodInfo887() throws Exception {\n\t\tClassInfo var2782 = instantiateClassInfo428();\n\t\tLocalField var2783 = instantiateLocalField427();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tMethodInfo var2784 = new MethodInfo(var2782, \"voidX()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2783.getDescription();\n\t\tvar2783.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2784.isSetter();\n\t\tvar2784.isSetter();\n\t}", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n int[] intArray0 = new int[7];\n intArray0[0] = 2;\n intArray0[1] = 3;\n intArray0[0] = 7;\n intArray0[3] = 7;\n intArray0[4] = 10;\n intArray0[5] = 5;\n intArray0[6] = 1;\n frame0.inputLocals = intArray0;\n typeArray0[3] = type1;\n Type type3 = Type.VOID_TYPE;\n typeArray0[4] = type3;\n Type type4 = Type.BOOLEAN_TYPE;\n typeArray0[2] = type4;\n Type type5 = Type.FLOAT_TYPE;\n typeArray0[6] = type5;\n Type type6 = Type.SHORT_TYPE;\n Class<Integer> class0 = Integer.class;\n Type.getType(class0);\n ClassWriter classWriter0 = new ClassWriter(189);\n Item item0 = new Item();\n // Undeclared exception!\n try { \n frame0.execute(28, 10, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "private static int calcStackSize(Code32 code) {\r\n\t\tint size = 8 + nofNonVolGPR * 4 + nofNonVolEXTRD * 8 + nofNonVolEXTRS * 4;\t// includes LR and SP for back trace\r\n\t\tsize += callParamSlotsOnStack * 4 + RegAllocator.maxLocVarStackSlots * 4 + (intfMethStorage? 12: 0);\t\r\n\t\tassert(nofNonVolEXTRD < 16);\r\n\t\tif (nofNonVolEXTRD >= 16) ErrorReporter.reporter.error(1000);\r\n\t\t// enFloatsInExc could be true, even if this is no exception method\r\n\t\t// such a case arises when this method is called from within an exception method\r\n\t\tif (enFloatsInExc) size += nonVolStartEXTR * 8 + 4;\t// save volatile FPR's and FPSCR\r\n\t\tparamOffset = 4;\r\n\t\tcode.localVarOffset = paramOffset + callParamSlotsOnStack * 4;\r\n\t\tintfMethStorageOffset = paramOffset + callParamSlotsOnStack * 4 + RegAllocator.maxLocVarStackSlots * 4;\r\n\t\treturn size;\r\n\t}", "@Override\n public int getNumberArguments() {\n return 1;\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n // Undeclared exception!\n try { \n frame0.execute(5, 3, (ClassWriter) null, (Item) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n int int0 = 0;\n ClassWriter classWriter0 = new ClassWriter(0);\n String string0 = \"Code\";\n String[] stringArray0 = new String[6];\n stringArray0[0] = \"Code\";\n stringArray0[1] = \"Code\";\n stringArray0[2] = \"Code\";\n classWriter0.addUninitializedType(\"{=k(UmyU|{qe`7t,\", 0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n stringArray0[3] = \"Code\";\n stringArray0[4] = \"Code\";\n stringArray0[5] = \"Code\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 1, \"Code\", \"Code\", \"Code\", stringArray0, false, false);\n // Undeclared exception!\n try { \n methodWriter0.visitFrame(0, 0, stringArray0, 182, stringArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 6\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "void onStackEmpty();", "@Test(timeout = 4000)\n public void test126() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Class<String> class0 = String.class;\n Type.getDescriptor(class0);\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n typeArray0[6] = type6;\n Type type7 = Type.SHORT_TYPE;\n Item item0 = new Item();\n // Undeclared exception!\n try { \n frame0.execute(6, 189, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(16777267);\n Class<Object> class0 = Object.class;\n Type.getType(class0);\n Type type0 = Type.BYTE_TYPE;\n Type.getObjectType(\"The prefix must not be null\");\n Type type1 = Type.INT_TYPE;\n int[] intArray0 = new int[8];\n intArray0[0] = 6;\n intArray0[1] = 7;\n intArray0[2] = 2;\n intArray0[3] = 1;\n intArray0[4] = 2;\n intArray0[5] = 4;\n intArray0[6] = 9;\n intArray0[7] = 4;\n frame0.inputStack = intArray0;\n Item item0 = new Item();\n item0.hashCode = 1687;\n // Undeclared exception!\n try { \n frame0.execute(111, 164, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(32767);\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"tE\";\n stringArray0[1] = \"RuntimeInvisibleParameterAnnotations\";\n stringArray0[2] = \"oG0Y(?Kt\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 32767, \"LocalVariableTable\", \"S&D$-ctBdre@#\", \"LocalVariableTable\", stringArray0, false, false);\n MethodWriter methodWriter1 = classWriter0.firstMethod;\n Object object0 = new Object();\n MethodWriter methodWriter2 = new MethodWriter(classWriter0, (-488), \"tE\", \"S&D$-ctBdre@#\", \"RuntimeInvisibleParameterAnnotations\", stringArray0, false, false);\n int int0 = 2282;\n Object[] objectArray0 = new Object[4];\n objectArray0[0] = (Object) \"oG0Y(?Kt\";\n objectArray0[1] = (Object) \"S&D$-ctBdre@#\";\n objectArray0[2] = (Object) \"RuntimeInvisibleParameterAnnotations\";\n objectArray0[3] = (Object) \"&h'pH__a\";\n // Undeclared exception!\n try { \n methodWriter2.visitFrame(1, 2282, objectArray0, 2, stringArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 4\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test51() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n // Undeclared exception!\n try { \n fBProcedureCall0.getInputParam(0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n ClassWriter classWriter1 = new ClassWriter((-2425));\n Item item0 = classWriter1.newLong(1);\n Item item1 = new Item((-1981), item0);\n item1.next = item0;\n // Undeclared exception!\n try { \n frame0.execute(156, 156, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public interface StackManipulation {\n\n /**\n * Determines if this stack manipulation is valid.\n *\n * @return If {@code false}, this manipulation cannot be applied and should throw an exception.\n */\n boolean isValid();\n\n /**\n * Applies the stack manipulation that is described by this instance.\n *\n * @param methodVisitor The method visitor used to write the method implementation to.\n * @param implementationContext The context of the current implementation.\n * @return The changes to the size of the operand stack that are implied by this stack manipulation.\n */\n Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext);\n\n /**\n * Canonical representation of an illegal stack manipulation.\n */\n enum Illegal implements StackManipulation {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n public boolean isValid() {\n return false;\n }\n\n /**\n * {@inheritDoc}\n */\n public Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext) {\n throw new IllegalStateException(\"An illegal stack manipulation must not be applied\");\n }\n }\n\n /**\n * Canonical representation of a legal stack manipulation which does not require any action.\n */\n enum Trivial implements StackManipulation {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n public boolean isValid() {\n return true;\n }\n\n /**\n * {@inheritDoc}\n */\n public Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext) {\n return StackSize.ZERO.toIncreasingSize();\n }\n }\n\n /**\n * A description of the size change that is imposed by some\n * {@link StackManipulation}.\n */\n @HashCodeAndEqualsPlugin.Enhance\n class Size {\n\n /**\n * A size of zero.\n */\n public static final Size ZERO = new Size(0, 0);\n\n /**\n * The impact of any size operation onto the operand stack. This value can be negative if more values\n * were consumed from the stack than added to it.\n */\n private final int sizeImpact;\n\n /**\n * The maximal size of stack slots this stack manipulation ever requires. If an operation for example pushes\n * five values onto the stack and subsequently consumes three operations, this value should still be five\n * to express that a stack operation requires at least five slots in order to be applicable.\n */\n private final int maximalSize;\n\n /**\n * Creates an immutable descriptor of the size change that is implied by some stack manipulation.\n *\n * @param sizeImpact The change of the size of the operand stack that is implied by some stack manipulation.\n * @param maximalSize The maximal stack size that is required for executing this stack manipulation. Should\n * never be negative number.\n */\n public Size(int sizeImpact, int maximalSize) {\n this.sizeImpact = sizeImpact;\n this.maximalSize = maximalSize;\n }\n\n /**\n * Returns the size change on the operand stack that is represented by this instance.\n *\n * @return The size change on the operand stack that is represented by this instance.\n */\n public int getSizeImpact() {\n return sizeImpact;\n }\n\n /**\n * Returns the maximal interim size of the operand stack that is represented by this instance.\n *\n * @return The maximal interim size of the operand stack that is represented by this instance.\n */\n public int getMaximalSize() {\n return maximalSize;\n }\n\n /**\n * Concatenates this size representation with another size representation in order to represent the size\n * change that is represented by both alterations of the operand stack size.\n *\n * @param other The other size representation.\n * @return A new size representation representing both stack size requirements.\n */\n public Size aggregate(Size other) {\n return aggregate(other.sizeImpact, other.maximalSize);\n }\n\n /**\n * Aggregates a size change with this stack manipulation size.\n *\n * @param sizeChange The change in size the other operation implies.\n * @param interimMaximalSize The interim maximal size of the operand stack that the other operation requires\n * at least to function.\n * @return The aggregated size.\n */\n private Size aggregate(int sizeChange, int interimMaximalSize) {\n return new Size(sizeImpact + sizeChange, Math.max(maximalSize, sizeImpact + interimMaximalSize));\n }\n }\n\n /**\n * An abstract base implementation of a valid stack manipulation.\n */\n abstract class AbstractBase implements StackManipulation {\n\n /**\n * {@inheritDoc}\n */\n public boolean isValid() {\n return true;\n }\n }\n\n /**\n * An immutable stack manipulation that aggregates a sequence of other stack manipulations.\n */\n @HashCodeAndEqualsPlugin.Enhance\n class Compound implements StackManipulation {\n\n /**\n * The stack manipulations this compound operation represents in their application order.\n */\n private final List<StackManipulation> stackManipulations;\n\n /**\n * Creates a new compound stack manipulation.\n *\n * @param stackManipulation The stack manipulations to be composed in the order of their composition.\n */\n public Compound(StackManipulation... stackManipulation) {\n this(Arrays.asList(stackManipulation));\n }\n\n /**\n * Creates a new compound stack manipulation.\n *\n * @param stackManipulations The stack manipulations to be composed in the order of their composition.\n */\n public Compound(List<? extends StackManipulation> stackManipulations) {\n this.stackManipulations = new ArrayList<StackManipulation>();\n for (StackManipulation stackManipulation : stackManipulations) {\n if (stackManipulation instanceof Compound) {\n this.stackManipulations.addAll(((Compound) stackManipulation).stackManipulations);\n } else if (!(stackManipulation instanceof Trivial)) {\n this.stackManipulations.add(stackManipulation);\n }\n }\n }\n\n /**\n * {@inheritDoc}\n */\n public boolean isValid() {\n for (StackManipulation stackManipulation : stackManipulations) {\n if (!stackManipulation.isValid()) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * {@inheritDoc}\n */\n public Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext) {\n Size size = Size.ZERO;\n for (StackManipulation stackManipulation : stackManipulations) {\n size = size.aggregate(stackManipulation.apply(methodVisitor, implementationContext));\n }\n return size;\n }\n }\n\n /**\n * An implementation of {@link StackManipulation} that simplifies functional invocations via lambda expressions.\n */\n @HashCodeAndEqualsPlugin.Enhance\n class Simple extends StackManipulation.AbstractBase {\n\n /**\n * The dispatcher to use.\n */\n private final Dispatcher dispatcher;\n\n /**\n * Creates a new stack manipulation for a dispatcher.\n *\n * @param dispatcher The dispatcher to use.\n */\n public Simple(Dispatcher dispatcher) {\n this.dispatcher = dispatcher;\n }\n\n /**\n * {@inheritDoc}\n */\n public Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext) {\n return dispatcher.apply(methodVisitor, implementationContext);\n }\n\n /**\n * A dispatcher for an instance of {@link Simple}.\n */\n public interface Dispatcher {\n\n /**\n * A valid implementation of {@link StackManipulation#apply(MethodVisitor, Implementation.Context)}.\n *\n * @param methodVisitor The method visitor used to write the method implementation to.\n * @param implementationContext The context of the current implementation.\n * @return The changes to the size of the operand stack that are implied by this stack manipulation.\n */\n Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext);\n }\n }\n}", "public int getSlotStackLimit()\n {\n return 1;\n }", "public int getSlotStackLimit()\n {\n return 1;\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.VOID_TYPE;\n Type type7 = Type.BOOLEAN_TYPE;\n Type type8 = Type.FLOAT_TYPE;\n Type type9 = Type.SHORT_TYPE;\n ClassWriter classWriter0 = new ClassWriter(9);\n Item item0 = classWriter0.key2;\n Item item1 = new Item((-1541));\n // Undeclared exception!\n try { \n frame0.execute(9, 0, (ClassWriter) null, item1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test\n public void checkForLowMemoryIfNeededWithMemberArg_ReturnsNullWhenNotOptimizedForWrite()\n throws Exception {\n checkForLowMemoryWithMemberArg_doesNotThrow(false, false, member);\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(2694);\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2160), \"\", \"\", \"\", (String[]) null, false, false);\n // Undeclared exception!\n try { \n methodWriter0.visitMethodInsn(1, \"\", \"Qu&Dpe|l~l,7f={:f!\", (String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private final java.lang.reflect.Method tryGetMethod(java.lang.Class<?> r7, java.lang.String r8, java.lang.Class<?>[] r9, java.lang.Class<?> r10) {\n /*\n r6 = this;\n r0 = 0\n int r1 = r9.length // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.Object[] r1 = java.util.Arrays.copyOf(r9, r1) // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.Class[] r1 = (java.lang.Class[]) r1 // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.reflect.Method r1 = r7.getDeclaredMethod(r8, r1) // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.String r2 = \"result\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, r2) // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.Class r2 = r1.getReturnType() // Catch:{ NoSuchMethodException -> 0x005d }\n boolean r2 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r2, (java.lang.Object) r10) // Catch:{ NoSuchMethodException -> 0x005d }\n if (r2 == 0) goto L_0x001d\n r0 = r1\n goto L_0x005d\n L_0x001d:\n java.lang.reflect.Method[] r7 = r7.getDeclaredMethods() // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.String r1 = \"declaredMethods\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r7, r1) // Catch:{ NoSuchMethodException -> 0x005d }\n int r1 = r7.length // Catch:{ NoSuchMethodException -> 0x005d }\n r2 = 0\n r3 = 0\n L_0x0029:\n if (r3 >= r1) goto L_0x005d\n r4 = r7[r3] // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.String r5 = \"method\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r4, r5) // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.String r5 = r4.getName() // Catch:{ NoSuchMethodException -> 0x005d }\n boolean r5 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r5, (java.lang.Object) r8) // Catch:{ NoSuchMethodException -> 0x005d }\n if (r5 == 0) goto L_0x0055\n java.lang.Class r5 = r4.getReturnType() // Catch:{ NoSuchMethodException -> 0x005d }\n boolean r5 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r5, (java.lang.Object) r10) // Catch:{ NoSuchMethodException -> 0x005d }\n if (r5 == 0) goto L_0x0055\n java.lang.Class[] r5 = r4.getParameterTypes() // Catch:{ NoSuchMethodException -> 0x005d }\n kotlin.jvm.internal.Intrinsics.checkNotNull(r5) // Catch:{ NoSuchMethodException -> 0x005d }\n boolean r5 = java.util.Arrays.equals(r5, r9) // Catch:{ NoSuchMethodException -> 0x005d }\n if (r5 == 0) goto L_0x0055\n r5 = 1\n goto L_0x0056\n L_0x0055:\n r5 = 0\n L_0x0056:\n if (r5 == 0) goto L_0x005a\n r0 = r4\n goto L_0x005d\n L_0x005a:\n int r3 = r3 + 1\n goto L_0x0029\n L_0x005d:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.KDeclarationContainerImpl.tryGetMethod(java.lang.Class, java.lang.String, java.lang.Class[], java.lang.Class):java.lang.reflect.Method\");\n }", "@Test(timeout = 4000)\n public void test061() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[7] = type2;\n int[] intArray0 = new int[7];\n intArray0[1] = 2;\n intArray0[1] = 3;\n intArray0[5] = 7;\n intArray0[3] = 7;\n intArray0[4] = 10;\n intArray0[5] = 5;\n intArray0[6] = 8;\n frame0.inputLocals = intArray0;\n typeArray0[3] = type1;\n Type type3 = Type.VOID_TYPE;\n typeArray0[4] = type3;\n Type type4 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type4;\n Type type5 = Type.FLOAT_TYPE;\n typeArray0[6] = type5;\n Type type6 = Type.SHORT_TYPE;\n ClassWriter classWriter0 = new ClassWriter((-1541));\n Item item0 = classWriter0.key2;\n Item item1 = new Item(0);\n // Undeclared exception!\n try { \n frame0.execute(88, 1, (ClassWriter) null, item1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "private static void checkNumOfArguments(String[] args) throws IllegalArgumentException{\n\t\ttry{\n\t\t\tif(args.length != App.numberOfExpectedArguments ) {\t\n\t\t\t\tthrow new IllegalArgumentException(\"Expected \" + App.numberOfExpectedArguments + \" arguments but received \" + args.length);\n\t\t\t}\n }\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\texitArgumentError();\n\t\t}\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n fBProcedureCall0.getSQL(true);\n FBProcedureCall fBProcedureCall1 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(2587, \"SELECT * FROM null\");\n FBProcedureCall fBProcedureCall2 = new FBProcedureCall();\n fBProcedureCall2.addOutputParam(fBProcedureParam0);\n FBProcedureCall fBProcedureCall3 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall4 = new FBProcedureCall();\n fBProcedureCall4.getSQL(false);\n FBProcedureCall fBProcedureCall5 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall6 = new FBProcedureCall();\n fBProcedureCall6.clone();\n fBProcedureCall0.equals(fBProcedureCall6);\n FBProcedureCall fBProcedureCall7 = new FBProcedureCall();\n fBProcedureCall0.clone();\n fBProcedureCall7.addInputParam(fBProcedureParam0);\n Object object0 = new Object();\n fBProcedureCall0.equals(object0);\n int int0 = (-52521717);\n // Undeclared exception!\n try { \n fBProcedureCall0.registerOutParam((-52521717), 2587);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -52521718\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public void testExtendsStack() {\n final LinkerDef baseLinker = new LinkerDef();\n baseLinker.setStack(new FlexInteger(\"10000\"));\n final LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef(baseLinker);\n setLinkerName(extendedLinker, \"msvc\");\n final String[] preArgs = getPreArguments(extendedLinker);\n assertEquals(\"/NOLOGO\", preArgs[0]);\n assertEquals(\"/SUBSYSTEM:WINDOWS\", preArgs[1]);\n assertEquals(\"/INCREMENTAL:NO\", preArgs[2]);\n assertEquals(\"/STACK:0x2710\", preArgs[3]);\n }", "@Test(timeout = 4000)\n public void test066() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(82);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"8oFH#X_'UA\");\n int int0 = 174;\n Item item0 = classWriter0.newMethodItem(\"AnnotationDefault\", \"5\", \"AnnotationDefault\", false);\n // Undeclared exception!\n try { \n frame0.execute(174, 1199, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Before\n public void checkStackTraceIsIncluded() {\n assumeTrue(InternalFlags.getIncludeStackTraceOption() != IncludeStackTraceOption.OFF);\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"e}\");\n Frame frame0 = new Frame();\n int[] intArray0 = new int[3];\n frame0.inputStack = intArray0;\n ClassWriter classWriter0 = new ClassWriter(0);\n int[] intArray1 = new int[1];\n intArray1[0] = 2;\n frame0.inputLocals = intArray1;\n classWriter0.newClassItem(\"JSR/RET are not supported with computeFrames option\");\n Item item0 = classWriter0.newLong(0);\n // Undeclared exception!\n try { \n frame0.execute(165, (-4949), classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Override\n\tpublic void implementionEight(String[] args) throws Exception {\n\n\t}", "@Test(timeout = 4000)\n public void test133() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n typeArray0[6] = type6;\n Type type7 = Type.SHORT_TYPE;\n Class<Integer> class0 = Integer.class;\n Type.getType(class0);\n // Undeclared exception!\n try { \n frame0.initInputFrame((ClassWriter) null, 2, typeArray0, 10);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test044() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[8];\n Type type0 = Type.DOUBLE_TYPE;\n typeArray0[1] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[2] = type1;\n Type type2 = Type.INT_TYPE;\n typeArray0[3] = type2;\n Type type3 = Type.VOID_TYPE;\n typeArray0[4] = type3;\n Type type4 = Type.VOID_TYPE;\n Type type5 = Type.BOOLEAN_TYPE;\n int[] intArray0 = new int[5];\n intArray0[0] = 7;\n intArray0[1] = 8;\n intArray0[2] = 4;\n intArray0[3] = 4;\n intArray0[4] = 6;\n frame0.inputStack = intArray0;\n Type type6 = Type.FLOAT_TYPE;\n Type type7 = Type.SHORT_TYPE;\n ClassWriter classWriter0 = new ClassWriter(3);\n Item item0 = new Item();\n // Undeclared exception!\n try { \n frame0.execute(84, (-990), classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n ClassWriter classWriter1 = new ClassWriter((-2425));\n Item item0 = classWriter1.newLong(1);\n int int0 = (-1981);\n Item item1 = new Item((-1981), item0);\n item1.next = item0;\n // Undeclared exception!\n try { \n frame0.execute(175, (-1981), classWriter0, item1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test\n public void testMassiveStackOfNothing() {\n\n System.out.println(\"isEmpty\");\n\n int sizeTest = 10000;\n int expectedSize = 0;\n \n String tempString = null;\n String expected = null;\n \n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n for (int i = 0; i < sizeTest; i++) {\n instance.push(tempString);\n }\n\n int fourSize = instance.size();\n assertEquals(fourSize, expectedSize);\n assertEquals(instance.isEmpty(), true);\n\n for (int i = sizeTest; i > 0; i--) {\n\n String result = instance.pop();\n\n assertEquals(expected, result);\n\n }\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n byte[] byteArray0 = new byte[0];\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n Item item0 = classWriter0.newClassItem(\"java/lang/String\");\n classWriter0.newLong((byte) (-51));\n // Undeclared exception!\n try { \n frame0.execute((byte) (-99), (byte) (-51), classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public void checkNumberArgs(int argNum) throws WrongNumberArgsException {\n/* 79 */ if (argNum < 2) {\n/* 80 */ reportWrongNumberArgs();\n/* */ }\n/* */ }", "@Test(timeout = 4000)\n public void test033() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n int int0 = (-4015);\n ClassWriter classWriter0 = new ClassWriter((-4015));\n String[] stringArray0 = null;\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", (String[]) null, false, true);\n MethodWriter methodWriter1 = new MethodWriter(classWriter0, 2, \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", (String[]) null, true, true);\n int int1 = 191;\n // Undeclared exception!\n try { \n methodWriter0.visitMaxs(191, 267386880);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 15\n //\n verifyException(\"org.objectweb.asm.jip.Type\", e);\n }\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = null;\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n Type type3 = Type.DOUBLE_TYPE;\n Item item0 = new Item((-532));\n int int0 = 180;\n // Undeclared exception!\n try { \n frame0.execute(180, 4, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall1 = new FBProcedureCall();\n fBProcedureCall1.getSQL(false);\n FBProcedureCall fBProcedureCall2 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall3 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(2587, \"EXECUTE PROCEDURE null\");\n FBProcedureCall fBProcedureCall4 = new FBProcedureCall();\n fBProcedureCall4.addOutputParam(fBProcedureParam0);\n FBProcedureCall fBProcedureCall5 = new FBProcedureCall();\n Object object0 = new Object();\n FBProcedureCall fBProcedureCall6 = new FBProcedureCall();\n fBProcedureCall6.getSQL(false);\n FBProcedureCall fBProcedureCall7 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall8 = new FBProcedureCall();\n fBProcedureCall8.clone();\n fBProcedureCall1.equals(fBProcedureCall8);\n FBProcedureCall fBProcedureCall9 = new FBProcedureCall();\n fBProcedureCall2.clone();\n fBProcedureCall9.addInputParam(fBProcedureParam0);\n Object object1 = new Object();\n fBProcedureCall1.equals(object1);\n // Undeclared exception!\n try { \n fBProcedureCall2.registerOutParam((-52521717), 2587);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -52521718\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test51() throws Throwable {\n Object object0 = new Object();\n Object object1 = new Object();\n Object object2 = new Object();\n Object object3 = new Object();\n Object object4 = new Object();\n Object object5 = new Object();\n Object object6 = new Object();\n Object object7 = new Object();\n Object object8 = new Object();\n Object object9 = new Object();\n Object object10 = new Object();\n Object object11 = new Object();\n Object object12 = new Object();\n Object object13 = new Object();\n Object object14 = new Object();\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n // Undeclared exception!\n try { \n fBProcedureCall0.getInputParam(0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public boolean enoughToFilter() {\n/* 468 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void cmdInfoOpStack() throws NoSystemException {\n MSystem system = system(); \n Deque<MOperationCall> callStack = system.getCallStack();\n int index = callStack.size();\n\t\tfor (MOperationCall call : callStack) {\n\t\t\tLog.print(index-- + \". \");\n\t\t\tLog.println(call.toString() + \" \" + call.getCallerString());\n\t\t}\n\t\tif (callStack.isEmpty()) {\n\t\t\tLog.println(\"no active operations.\");\n\t\t}\n }", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter((-2450));\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2450), \"9~\\\"GM0+ ?&-(JmN[0f.\", \"Fj)3/|(;sZXz$\", \"oc[MfnZM[~MHOK iO\", (String[]) null, true, false);\n Object object0 = new Object();\n int int0 = MethodWriter.SAME_LOCALS_1_STACK_ITEM_FRAME;\n methodWriter0.visitTypeInsn((-1299), \"9~\\\"GM0+ ?&-(JmN[0f.\");\n methodWriter0.visitTypeInsn(188, \"Fj)3/|(;sZXz$\");\n Label label0 = new Label();\n Frame frame0 = label0.frame;\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n label0.frame = null;\n Label label1 = label0.successor;\n methodWriter0.visitIntInsn(188, 99);\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-2442));\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, true, false);\n int int0 = MethodWriter.SAME_FRAME;\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-762789864), \"9~\\\"GM0+ ?&-(JmN[0f.\", \"Fj)3/|(;sZXz$\", \"KNo\", (String[]) null, true, true);\n Item item0 = new Item();\n Integer integer0 = new Integer(75);\n methodWriter0.visitLdcInsn(\"Fj)3/|(;sZXz$\");\n ByteVector byteVector0 = new ByteVector(6);\n Label label0 = new Label();\n Label label1 = label0.successor;\n label0.getFirst();\n // Undeclared exception!\n try { \n methodWriter0.visitLabel((Label) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1983180370));\n classWriter0.addType(\"H\");\n classWriter0.visitOuterClass(\"H\", \"H\", \"<inat>\");\n int int0 = MethodWriter.CHOP_FRAME;\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"\\\"\";\n stringArray0[1] = \"char\";\n stringArray0[2] = \"H\";\n stringArray0[3] = \"\\\"\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1983180370), \"H\", \"<T'RwU+).UKJX>\", \"H\", stringArray0, true, false);\n Item item0 = new Item();\n Integer integer0 = new Integer((-1983180370));\n methodWriter0.visitLdcInsn(integer0);\n ByteVector byteVector0 = null;\n try {\n byteVector0 = new ByteVector((-4989));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.ByteVector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test20() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n // Undeclared exception!\n try { \n fBProcedureCall0.registerOutParam((-3231), 40);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -3232\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test (expected = EmptyStackException.class)\r\n\t\tpublic void testEmptyStackException1()\r\n\t\t{\r\n\t\t\tse = new SolveExp(\"5 +\");\r\n\t\t\tse.solve();\r\n\t\t}", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(23);\n classWriter0.toByteArray();\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \".JAR\", \".JAR\", \".JAR\", (String[]) null, false, false);\n Attribute attribute0 = new Attribute(\"LineNumberTable\");\n methodWriter0.getSize();\n // Undeclared exception!\n try { \n methodWriter0.visitFrame(0, 1, (Object[]) null, 23, (Object[]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test081() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(0);\n int int0 = 251658240;\n ClassWriter classWriter1 = new ClassWriter(251658240);\n ClassWriter classWriter2 = new ClassWriter(1);\n Type type0 = Type.SHORT_TYPE;\n Class<Object> class0 = Object.class;\n Type.getType(class0);\n Item item0 = classWriter0.key;\n // Undeclared exception!\n try { \n frame0.execute(172, 168, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Override\n public int getArgLength() {\n return 4;\n }", "public abstract int getMaximumArguments();", "public void testGetStackTrace() {\n StackTraceElement[] ste = new StackTraceElement[1]; \n ste[0] = new StackTraceElement(\"class\", \"method\", \"file\", -2);\n Throwable th = new Throwable(\"message\");\n th.setStackTrace(ste);\n ste = th.getStackTrace();\n assertEquals(\"incorrect length\", 1, ste.length);\n assertEquals(\"incorrect file name\", \"file\", ste[0].getFileName());\n assertEquals(\"incorrect line number\", -2, ste[0].getLineNumber());\n assertEquals(\"incorrect class name\", \"class\", ste[0].getClassName());\n assertEquals(\"incorrect method name\", \"method\", ste[0].getMethodName());\n assertTrue(\"native method should be reported\", ste[0].isNativeMethod());\n }", "StackManipulation special(TypeDescription invocationTarget);", "public void testMethodInfo885() throws Exception {\n\t\tClassInfo var2769 = instantiateClassInfo424();\n\t\tLocalVariableInfo var2770 = instantiateLocalVariableInfo423();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2772 = new MethodInfo(var2769, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.getSetters();\n\t\tvar2772.isSetter();\n\t\tvar2772.isSetter();\n\t}", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter((-4015));\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", (String[]) null, false, true);\n methodWriter0.visitMultiANewArrayInsn(\"dVw2Z7M){e/Y(#j\", (-615));\n MethodWriter methodWriter1 = new MethodWriter(classWriter0, 2, \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", (String[]) null, true, true);\n Label label0 = new Label();\n int int0 = 268435455;\n // Undeclared exception!\n try { \n methodWriter1.visitFieldInsn(268435455, \"\", \"Exceptions\", \"KY0B/+MuB[P.E(8)u)\");\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isProcedureCall((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test55() throws Throwable {\n Object object0 = new Object();\n Object object1 = new Object();\n Object object2 = new Object();\n Object object3 = new Object();\n Object object4 = new Object();\n Object object5 = new Object();\n Object object6 = new Object();\n Object object7 = new Object();\n Object object8 = new Object();\n Object object9 = new Object();\n Object object10 = new Object();\n Object object11 = new Object();\n Object object12 = new Object();\n Object object13 = new Object();\n Object object14 = new Object();\n Object object15 = new Object();\n Object object16 = new Object();\n Object object17 = new Object();\n Object object18 = new Object();\n Object object19 = new Object();\n Object object20 = new Object();\n Object object21 = new Object();\n Object object22 = new Object();\n Object object23 = new Object();\n Object object24 = new Object();\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n // Undeclared exception!\n try { \n fBProcedureCall0.registerOutParam((-1792), (-1604));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1793\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test037() throws Throwable {\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"e}\");\n Frame frame0 = new Frame();\n int[] intArray0 = new int[5];\n frame0.inputStack = intArray0;\n ClassWriter classWriter0 = new ClassWriter(0);\n int[] intArray1 = new int[1];\n intArray1[0] = 2;\n frame0.inputLocals = intArray1;\n Item item0 = classWriter0.key3;\n // Undeclared exception!\n try { \n frame0.execute(41, 41, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n fBProcedureCall0.getInputParam(548);\n // Undeclared exception!\n try { \n fBProcedureCall0.getInputParam((-2052));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -2053\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test51() throws Throwable {\n Object object0 = new Object();\n Object object1 = new Object();\n Object object2 = new Object();\n Object object3 = new Object();\n Object object4 = new Object();\n Object object5 = new Object();\n Object object6 = new Object();\n Object object7 = new Object();\n Object object8 = new Object();\n Object object9 = new Object();\n Object object10 = new Object();\n Object object11 = new Object();\n Object object12 = new Object();\n Object object13 = new Object();\n Object object14 = new Object();\n Object object15 = new Object();\n Object object16 = new Object();\n Object object17 = new Object();\n Object object18 = new Object();\n Object object19 = new Object();\n Object object20 = new Object();\n Object object21 = new Object();\n Object object22 = new Object();\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n // Undeclared exception!\n try { \n fBProcedureCall0.addParam((-746), \"ltu!\");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -746\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test\n public void testPopEmptyStack(){\n ms = new MyStack();\n try {\n ms.pop();\n }catch(EmptyStackException e){\n System.out.println(\"Error, cannot pop an empty stack.\");\n }\n }", "@Test\n public void testPush(){\n ms=new MyStack();\n ms.push(1);\n assertFalse(ms.IsEmpty());\n }", "public void testMethodInfo888() throws Exception {\n\t\tClassInfo var2785 = instantiateClassInfo430();\n\t\tFieldInfo var2786 = instantiateFieldInfo429();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2787 = new MethodInfo(var2785, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.getSetters();\n\t\tvar2787.isSetter();\n\t\tvar2787.isSetter();\n\t}", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(218);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"Label offset position has not been resolved yet\";\n stringArray0[1] = \"'0\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"tE\", \"Class not found\", \"&h'pH__a\", stringArray0, false, false);\n Object object0 = new Object();\n methodWriter0.visitFrame(76, (-1840700267), stringArray0, (-3070), stringArray0);\n // Undeclared exception!\n try { \n methodWriter0.visitFrame(8, (-1000), stringArray0, (-1000), stringArray0);\n fail(\"Expecting exception: IllegalStateException\");\n \n } catch(IllegalStateException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall1 = new FBProcedureCall();\n fBProcedureCall1.getSQL(true);\n FBProcedureCall fBProcedureCall2 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall3 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(2587, \"SELECT * FROM null\");\n FBProcedureCall fBProcedureCall4 = new FBProcedureCall();\n fBProcedureCall4.addOutputParam(fBProcedureParam0);\n FBProcedureCall fBProcedureCall5 = new FBProcedureCall();\n Object object0 = new Object();\n FBProcedureCall fBProcedureCall6 = new FBProcedureCall();\n fBProcedureCall1.mapOutParamIndexToPosition(2587);\n fBProcedureCall6.getSQL(false);\n FBProcedureCall fBProcedureCall7 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall8 = new FBProcedureCall();\n fBProcedureCall8.setName(\"EXECUTE PROCEDURE null\");\n fBProcedureCall8.clone();\n fBProcedureCall1.equals(fBProcedureCall8);\n FBProcedureCall fBProcedureCall9 = new FBProcedureCall();\n fBProcedureCall2.clone();\n fBProcedureCall9.addInputParam(fBProcedureParam0);\n Object object1 = new Object();\n fBProcedureCall1.equals(object1);\n // Undeclared exception!\n try { \n fBProcedureCall2.registerOutParam((-52521717), 2587);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -52521718\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public boolean isCheckable() {\n/* 738 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(timeout = 4000)\n public void test047() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(0);\n ClassWriter classWriter1 = new ClassWriter(2);\n Type type0 = Type.INT_TYPE;\n Type type1 = Type.VOID_TYPE;\n Type type2 = Type.BOOLEAN_TYPE;\n Type type3 = Type.FLOAT_TYPE;\n Type type4 = Type.SHORT_TYPE;\n Class<Object> class0 = Object.class;\n type0.getDescriptor();\n Type.getType(class0);\n Type[] typeArray0 = new Type[2];\n typeArray0[0] = type4;\n typeArray0[1] = type0;\n frame0.initInputFrame(classWriter1, 10, typeArray0, 8);\n Type.getInternalName(class0);\n Frame frame1 = new Frame();\n Item item0 = new Item(6);\n // Undeclared exception!\n try { \n frame0.execute(115, (-1587), classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test072() throws Throwable {\n int int0 = 187;\n ClassWriter classWriter0 = new ClassWriter(187);\n String string0 = \"R$_Ff!sF,uE4P'wGFDy\";\n String string1 = \"R$_Ff!sF,uE4P'wGFDy\";\n String string2 = \"s4#6U\";\n classWriter0.visitAnnotation(\"s4#6U\", false);\n String[] stringArray0 = new String[2];\n classWriter0.version = 187;\n stringArray0[0] = \"R$_Ff!sF,uE4P'wGFDy\";\n stringArray0[1] = \"R$_Ff!sF,uE4P'wGFDy\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 187, \"s4#6U\", \"R$_Ff!sF,uE4P'wGFDy\", \"R$_Ff!sF,uE4P'wGFDy\", stringArray0, false, false);\n methodWriter0.visitInsn(1);\n int int1 = (-1274);\n methodWriter0.visitFrame((-2186), 49, stringArray0, 4096, stringArray0);\n methodWriter0.getSize();\n // Undeclared exception!\n try { \n methodWriter0.visitFrame((-1274), (-1274), stringArray0, 192, stringArray0);\n fail(\"Expecting exception: IllegalStateException\");\n \n } catch(IllegalStateException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(1189, \"IN\\\"i,#!bKI~6`\");\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.mapOutParamIndexToPosition((-171433816));\n fBProcedureCall0.getInputParam(41);\n fBProcedureCall0.addParam(699, \"IN\\\"i,#!bKI~6`\");\n // Undeclared exception!\n try { \n fBProcedureCall0.registerOutParam((-1), (-1));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -2\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test045() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n Item item0 = classWriter0.newClassItem(\"*6@#GSZr~Dvz\");\n item0.longVal = (long) 1048575;\n Item item1 = new Item(91, item0);\n classWriter0.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(86, 2, classWriter0, (Item) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public int getStackDepth()\n/* */ {\n/* 139 */ StackTraceElement[] stes = new Exception().getStackTrace();\n/* 140 */ int len = stes.length;\n/* 141 */ for (int i = 0; i < len; i++) {\n/* 142 */ StackTraceElement ste = stes[i];\n/* 143 */ if (ste.getMethodName().equals(\"_runExecute\"))\n/* */ {\n/* 145 */ return i - 1;\n/* */ }\n/* */ }\n/* 148 */ throw new AssertionError(\"Expected task to be run by WorkerThread\");\n/* */ }", "public StackUnderflowException(){\n super(\"Can not pop from an empty stack\");\n }", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(1432);\n Type type0 = Type.BYTE_TYPE;\n classWriter0.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(24, (-338), classWriter0, (Item) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public int describeContents() {\n/* 1781 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(timeout = 4000)\n public void test089() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n ClassWriter classWriter0 = new ClassWriter(173);\n Item item0 = classWriter0.newLong(16777221);\n Item item1 = new Item(4487, item0);\n Item item2 = classWriter0.key3;\n // Undeclared exception!\n try { \n frame0.execute(50, 3, classWriter0, item2);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(expected = IllegalArgumentException.class)\n public void testCheckPositiveFailure() {\n Helper.checkPositive(0, \"obj\", \"method\", LogManager.getLog());\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(1048575);\n ClassWriter classWriter1 = new ClassWriter(285212648);\n String[] stringArray0 = new String[5];\n stringArray0[0] = \"\";\n stringArray0[1] = \"{uh\";\n stringArray0[2] = \"\";\n stringArray0[3] = \"i&b}d$\";\n stringArray0[4] = \"{uh\";\n classWriter0.visit(285212648, 184, \"{uh\", \"i&b}d$\", \"\", stringArray0);\n classWriter0.newClassItem(\"The size must be non-negative\");\n Item item0 = classWriter0.newLong(1048575);\n Item item1 = new Item(159, item0);\n classWriter1.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(14, 14, classWriter0, item1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test /*Test 21 - the pop() method now throws the EmptyStackException if it is called when \n the stack size is currently 0.*/\n public void testPopEmptyStackException() throws EmptyStackException, BadTypeException {\n exception.expect(EmptyStackException.class);\n exception.expectMessage(\"The stack is empty. No element can be removed.\");\n numStackTest.pop();\n }", "public void testMethodInfo886() throws Exception {\n\t\tClassInfo var2776 = instantiateClassInfo426();\n\t\tLocalField var2777 = instantiateLocalField425();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2778 = new MethodInfo(var2776, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2777.getDescription();\n\t\tvar2777.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2778.isSetter();\n\t\tvar2778.isSetter();\n\t}", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(218);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"Label offset position has not been resolved yet\";\n stringArray0[1] = \"'0\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"tE\", \"Class not found\", \"&h'pH__a\", stringArray0, false, false);\n Object object0 = new Object();\n methodWriter0.visitFrame(76, (-1840700267), stringArray0, (-3070), stringArray0);\n methodWriter0.visitTypeInsn((-1739978762), \"Label offset position has not been resolved yet\");\n methodWriter0.visitAnnotation(\"^(V^iU1h\", false);\n methodWriter0.visitTypeInsn(218, \"xp:%03,6Y\");\n int int0 = methodWriter0.getSize();\n assertEquals(72, int0);\n }", "public int describeContents() {\n/* 48 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public abstract int getMinimumArguments();", "@Test(timeout = 4000)\n public void test56() throws Throwable {\n Object object0 = new Object();\n Object object1 = new Object();\n Object object2 = new Object();\n Object object3 = new Object();\n Object object4 = new Object();\n Object object5 = new Object();\n Object object6 = new Object();\n Object object7 = new Object();\n Object object8 = new Object();\n Object object9 = new Object();\n Object object10 = new Object();\n Object object11 = new Object();\n Object object12 = new Object();\n Object object13 = new Object();\n Object object14 = new Object();\n Object object15 = new Object();\n Object object16 = new Object();\n Object object17 = new Object();\n Object object18 = new Object();\n Object object19 = new Object();\n Object object20 = new Object();\n Object object21 = new Object();\n Object object22 = new Object();\n Object object23 = new Object();\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n // Undeclared exception!\n try { \n fBProcedureCall0.getInputParam((-1582));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1583\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public void StackTest() {\n\tSystem.out.println( \"\\nQuestion (8) Stack Test\" );\n\tSystem.out.println( \"-----------------------\");\n\tStack s = new Stack(3);\n\tSystem.out.println( \"push 0\");\n\ts.push(0);\n\tSystem.out.println( \"push 1\");\n\ts.push(1);\n\tSystem.out.println( \"push 2\");\n\ts.push(2);\n\tSystem.out.println( \"try to push 3\");\n\ts.push(3); // error here pushing beyond stack depth, will print error messgae\n\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() ); \n\tSystem.out.println( \"try to pop \" ); // error here poping off empty stack\n\ts.pop();\n }", "@Test\n \tpublic void method1PC() {\n \t\tassertEquals(-2, FaultyClass.method1(-2));\n\t\tassertEquals(1, FaultyClass.method1(3));\n\t\t\n\t\t//test 1st IF TRUE, 2nd IF FALSE\n\t\tassertEquals(1, FaultyClass.method1(3));;\n\t\t\n\t\t//test 1st IF FALSE, 2nd IF TRUE\n\t\t//Arithmetic Exception and 100 path coverage here\n\t\tFaultyClass.method1(-1);\n }" ]
[ "0.6655302", "0.63440204", "0.62443817", "0.6101035", "0.60268766", "0.6021173", "0.60018426", "0.598782", "0.5923538", "0.59198064", "0.59060156", "0.5883667", "0.5826274", "0.5805225", "0.5778034", "0.5762557", "0.5742988", "0.5740563", "0.5734772", "0.5733603", "0.57310283", "0.5723081", "0.57124376", "0.57121027", "0.5708869", "0.5658337", "0.56557286", "0.56430966", "0.563299", "0.5617608", "0.5612782", "0.5612273", "0.5612273", "0.5604209", "0.56005484", "0.5597301", "0.55939615", "0.5589449", "0.5588386", "0.55733526", "0.5569963", "0.55692124", "0.5567405", "0.5564881", "0.5563592", "0.5561133", "0.55546427", "0.5552973", "0.5545773", "0.55450267", "0.5542453", "0.55400854", "0.55390453", "0.5533635", "0.5529327", "0.5523689", "0.5513369", "0.5507334", "0.5506864", "0.550553", "0.5503719", "0.5496669", "0.549246", "0.5486168", "0.5485235", "0.5482469", "0.5467309", "0.5466499", "0.5465678", "0.54655695", "0.54645497", "0.54618245", "0.5458949", "0.5454081", "0.5452458", "0.5452302", "0.5449342", "0.5448419", "0.54480636", "0.5444364", "0.5439395", "0.5434526", "0.54342806", "0.54329795", "0.5430885", "0.5430571", "0.5429563", "0.54289824", "0.54267544", "0.5426527", "0.54252136", "0.54235935", "0.5421891", "0.54205257", "0.541933", "0.54064196", "0.540528", "0.5402447", "0.54024184", "0.540054", "0.54003143" ]
0.0
-1
input dimensions do not match stack's size
@Test public void testSetStackImageStackIntIntInt() { st = new ImageStack(1,2,24); // 24 slices of 1x2 images ip = new ImagePlus(); for (int chan = 0; chan < 9; chan++) for (int slice = 0; slice < 9; slice++) for (int frame = 0; frame < 9; frame++) if (chan*slice*frame != 24) try { ip.setStack(st,chan,slice,frame); fail(); } catch (IllegalArgumentException e) { assertTrue(true); } // otherwise input dimensions match // .. delegates to setStack() - tested earlier // so just need to test that title did not change ip = new ImagePlus(); ip.width = 1; ip.height = 2; ip.setTitle("AlertAlert"); st = new ImageStack(1,2,null); // 1x2 images for (int i = 0; i < 24; i++) st.addSlice(""+i, new byte[] {1,2}); ip.setStack(st,2,3,4); assertEquals("AlertAlert",ip.getTitle()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSize(){\n return this.stack.size();\n }", "@Test\n\tpublic void testPush(){\n\t\tArrayIntStack stack = buildStack(4);\n\t\tassertEquals(4, stack.intCol.size());\n\t}", "public int getSize() {\r\n\t\treturn stack.size();\r\n\t}", "private void ensureCapacity(){\n if(topIndex >= stack.length - 1){\n int newLength = 2 * stack.length;\n stack = Arrays.copyOf(stack, newLength);\n }\n }", "@Override\r\n\tpublic int size() {\r\n\t\treturn stack.length;\r\n\t}", "@Override\r\n\tpublic int size() {\r\n\t\treturn stack.size();\r\n\t}", "public void resize(){\n Object[] old = myCustomStack;\n //resize array to be twice the size when the Stack is more than 3/4 full\n if(numElements > old.length * .75){\n Object[] resizedArr = new Object[old.length * 2];\n for(int i = 0; i < numElements; i++){\n resizedArr[i] = old[i];\n }\n myCustomStack = resizedArr;\n System.out.println(\"Array has been resized to twice the size. Array length: \" + myCustomStack.length);\n }\n //resize array to be half the size when the Stack is more than 1/4 empty\n else if(numElements < old.length * .25){\n Object[] resizedArr = new Object[old.length / 2];\n for(int i = 0; i < numElements; i++){\n resizedArr[i] = old[i];\n }\n myCustomStack = resizedArr;\n System.out.println(\"Array has been resized to half the size. Array length: \" + myCustomStack.length);\n }\n else{\n return;\n }\n }", "public void doubleSize()\r\n\t{\r\n \t\tint newSize = Stack.length * 2;\r\n\t Stack = Arrays.copyOf(Stack, newSize);\r\n\t}", "public int getSize(){\r\n return topOfStack;\r\n }", "@Test\n\tpublic void testSetDimensions() {\n\n\t\t// empty stack\n\t\tip = new ImagePlus();\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(1,ip.getNSlices());\n\t\tassertEquals(ip.getStackSize(),ip.getNFrames());\n\n\t\t// stack but dimensions don't match\n\t\tip = new ImagePlus(\"Kerbam\",(Image)null);\n\t\tst = new ImageStack(2,2);\n\t\tst.addSlice(\"Oranges\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Apples\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Pears\", new byte[] {1,2,3,4});\n\t\tip.setStack(\"Kaboom\",st);\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(ip.getStackSize(),ip.getNSlices());\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// stack with matching dimensions\n\t\tip = new ImagePlus(\"Kerbam\",(Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"Oranges\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Apples\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Pears\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Quinces\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Kiwis\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Bananas\", new byte[] {1,2,3,4});\n\t\tip.setStack(\"Kaboom\",st);\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(2,ip.getNSlices());\n\t\tassertEquals(3,ip.getNFrames());\n\t}", "public static void main(String[] args) throws Exception {\n StackUsingArrays stack=new StackUsingArrays(5);\n \n for(int i=1;i<=5;i++) {\n \tstack.push(i*10);\n \tstack.display();\n }\n \n System.out.println(stack.size());\n \n //stack.push(60);\n System.out.println(stack.top());\n \n// while(!stack.isEmpty()) {\n// \tstack.display();\n// \tstack.pop();\n// \t\n// }\n// \n// stack.pop();\n\t}", "Stack(int sizeYouWantYourDataStuctureToBe){\n stackArray = new int [sizeYouWantYourDataStuctureToBe];\n }", "@Test\n\tpublic void testGetNFrames() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(8,ip.getNFrames());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(4,ip.getNFrames());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(2,ip.getNFrames());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(4,ip.getNFrames());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(2,ip.getNFrames());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNFrames());\n\t}", "public void testSize() {\n assertEquals(this.stack.size(), 10, 0.01);\n assertEquals(this.empty.size(), 0, 0.01);\n }", "public int size() {\n \treturn stack.size();\n }", "private void expandCapacity() {\n\t\tT[] larger = (T[]) (new Object[stack.length*2]);\t\t//double size of previous stack\n\t\t\n\t\tfor(int i = 0; i < stack.length; i++)\n\t\t\tlarger[i] = stack[i];\n\t\t\n\t\tstack = larger;\n\t}", "public int size() \n {\n return stack1.size() + stack2.size(); \n }", "void setStack(int[][][] add);", "int size() {\n return stackSize;\n }", "@Test\n\tpublic void testGetNSlices() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNSlices());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(8,ip.getNSlices());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(1,ip.getNSlices());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(2,ip.getNSlices());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(4,ip.getNSlices());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(4,ip.getNSlices());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(2,ip.getNSlices());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNSlices());\n\t}", "private static int calcStackSize(Code32 code) {\r\n\t\tint size = 8 + nofNonVolGPR * 4 + nofNonVolEXTRD * 8 + nofNonVolEXTRS * 4;\t// includes LR and SP for back trace\r\n\t\tsize += callParamSlotsOnStack * 4 + RegAllocator.maxLocVarStackSlots * 4 + (intfMethStorage? 12: 0);\t\r\n\t\tassert(nofNonVolEXTRD < 16);\r\n\t\tif (nofNonVolEXTRD >= 16) ErrorReporter.reporter.error(1000);\r\n\t\t// enFloatsInExc could be true, even if this is no exception method\r\n\t\t// such a case arises when this method is called from within an exception method\r\n\t\tif (enFloatsInExc) size += nonVolStartEXTR * 8 + 4;\t// save volatile FPR's and FPSCR\r\n\t\tparamOffset = 4;\r\n\t\tcode.localVarOffset = paramOffset + callParamSlotsOnStack * 4;\r\n\t\tintfMethStorageOffset = paramOffset + callParamSlotsOnStack * 4 + RegAllocator.maxLocVarStackSlots * 4;\r\n\t\treturn size;\r\n\t}", "static void stackPush(Stack<Integer> stack)\r\n\t{\r\n\t\tfor(int i=0;i<5;i++)\r\n\t\t{\r\n\t\t\tstack.push(i*5);\r\n\t\t}\r\n\t\tSystem.out.println(\"Printing the stack value which is push:\");\r\n\t\tSystem.out.println(\"Push :\"+stack +\"\\nsize of stack: \"+ stack.size());\r\n\t}", "public static void main(String args[]){\n InputReader reader = new InputReader(System.in);\n int size = reader.readInt();\n\n int[] arr = new int[size];\n int[] nge = new int[size];\n Stack<Integer> stack = new Stack<>();\n\n for(int i=0; i<arr.length; i++){\n arr[i] = reader.readInt();\n }\n\n for(int i=arr.length-1; i>=0; i--){\n int element = arr[i];\n if(!stack.isEmpty()){\n while(!stack.isEmpty() && stack.peek() <= element){\n stack.pop();\n }\n }\n nge[i] = stack.isEmpty()? -1 : stack.size()-1;\n stack.push(element);\n }\n\n\n for(int i=0; i < arr.length; i++){\n System.out.print(nge[i]+\" \");\n }\n\n }", "@Test\n\tpublic void testGetNDimensions() {\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\",st);\n\t\tip.setDimensions(1,1,1);\n\t\tassertEquals(2,ip.getNDimensions());\n\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(3,ip.getNDimensions());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(3,ip.getNDimensions());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(3,ip.getNDimensions());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(4,ip.getNDimensions());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(5,ip.getNDimensions());\n\t}", "private void resizeArray() {\n stackArray = Arrays.copyOf(stackArray, stackArray.length * 2 + 1);\n }", "@SuppressWarnings({\"unchecked\"})\n private void expandStack() {\n T[] newStack;\n \n newStack = (T[]) new Object[Array.getLength(this.elements) + 1];\n for( int i = 0; i < Array.getLength(this.elements); i++ )\n newStack[i] = this.elements[i];\n this.elements = newStack;\n }", "public Stacked(int size){\n this.size = size;\n count = 0;\n expand = 5;\n stackArray = (E[]) new Object[size];\n }", "@Test\n public void testSize() {\n System.out.println(\"size\");\n instance = new Stack();\n int expResult = 10;\n for (int i = 0; i < 10; i++) {\n instance.push(i*3);\n }\n assertEquals(expResult, instance.size());\n }", "@Test\n\tpublic void testIsHyperStack() {\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,3);\n\t\tip.setOpenAsHyperStack(false);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs false, nDimensions > 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"oof\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,4);\n\t\tip.setOpenAsHyperStack(false);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs true, nDimensions <= 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,3);\n\t\tip.setOpenAsHyperStack(true);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs true, nDimensions > 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"oof\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,2,2);\n\t\tip.setOpenAsHyperStack(true);\n\t\tassertTrue(ip.isHyperStack());\n\t}", "public void StackTest() {\n\tSystem.out.println( \"\\nQuestion (8) Stack Test\" );\n\tSystem.out.println( \"-----------------------\");\n\tStack s = new Stack(3);\n\tSystem.out.println( \"push 0\");\n\ts.push(0);\n\tSystem.out.println( \"push 1\");\n\ts.push(1);\n\tSystem.out.println( \"push 2\");\n\ts.push(2);\n\tSystem.out.println( \"try to push 3\");\n\ts.push(3); // error here pushing beyond stack depth, will print error messgae\n\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() ); \n\tSystem.out.println( \"try to pop \" ); // error here poping off empty stack\n\ts.pop();\n }", "public void pushMatrix() {\n buffer(() -> kernelStack = kernelStack.extend(kernel.get().asArray()));\n }", "public Solution67() {\n stack = new Stack<>();\n min_stack = new Stack<>();\n }", "public GLMatrixStackUnderflowException() {\r\n\r\n\t\t}", "private void expandCapacity()\r\n {\r\n T[] larger = (T[])(new Object[stack.length*2]);\r\n \r\n for (int index=0; index < stack.length; index++)\r\n larger[index] = stack[index];\r\n \r\n stack = larger;\r\n }", "public stackTesting(int size){\n\t\tMaxSize = size;\n\t\tStack = new int[MaxSize];\n\t\tStackTop = -1;\n\t}", "public MinStack() {\n size = 0;\n }", "public int getStackSize() {\n\t\treturn stackSize;\n\t}", "@Test\n\tpublic void testGetNChannels() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNChannels());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(8,ip.getNChannels());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(2,ip.getNChannels());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(2,ip.getNChannels());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(4,ip.getNChannels());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(4,ip.getNChannels());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNChannels());\n\t}", "public OperandStack(final int initialSize)\n {\n super();\n this.stack = new Object[initialSize];\n }", "public Solution_155() {\n stack = new Stack();\n minStack = new Stack();\n }", "boolean isFull(Stack stack){\n\t\tif(stack.getStackSize() >= 100) return true;\r\n\t\telse return false;\t\r\n\t}", "Stack_Using_Arrays(){\n\t\ttop=-1;\n\t}", "public final int dimension() { return _N; }", "public StackUnderflowException(){\n super(\"Can not pop from an empty stack\");\n }", "public FixedSizeArrayStack() {\r\n\t\tthis(CAPACITY);\r\n\t}", "public int[][] extractVoxels(ImageStack stack){\n\t\tint stack_width = stack.getWidth();\n\t\tint stack_height = stack.getHeight();\n\t\tint stack_length = stack.getSize();\n\n\t\t// method will extract cone thath's been cutoff from the stack\n\t\t\n\t\tint cone_radius \t= (int)Math.round(this.r);\n\t\t//int cone_radius1 \t= (int)Math.round(this.r1);\n\t\tint cone_height\t\t= (int)Math.round(this.getH());\n\t\tint cone_limit\t\t= (int)Math.ceil(Math.sqrt(Math.pow(r1, 2)+Math.pow(this.getH(), 2)));\n\t\t\n\t\tif(cone_radius>cone_limit){\n\t\t\tcone_limit = cone_radius;\n\t\t}\n\t\t\n\t\t// center in pixel coordinates\n\t\tint[] centerPix = {(int)Math.round(this.x), (int)Math.round(this.y), (int)Math.round(this.z)};\n\t\t\n\t\t// define the range\n\t\tint startX = 1; if (centerPix[0]-cone_limit > 1) startX = centerPix[0]-cone_limit;\n\t\tint startY = 1; if (centerPix[1]-cone_limit > 1) startY = centerPix[1]-cone_limit;\n\t\tint startZ = 1; if (centerPix[2]-cone_limit > 1) startZ = centerPix[2]-cone_limit;\n\t\t\t\n\t\tint endX = stack_width; if (centerPix[0]+cone_limit < stack_width) endX = centerPix[0]+cone_limit;\n\t\tint endY = stack_height; if (centerPix[1]+cone_limit < stack_height) endY = centerPix[1]+cone_limit;\n\t\tint endZ = stack_length; if (centerPix[2]+cone_limit < stack_length) endZ = centerPix[2]+cone_limit;\n\n\t\tint count=0;\n\t\t// this consumes memory! - maybe not necessary to allocate here\n\t\tbyte[] pixels = new byte[stack_width*stack_height]; //storage for pixels from one layer\n\t\tint[][] roi = new int [2*cone_limit*2*cone_limit*2*cone_limit][4];//roi big enough to take cone at any orientation\n\t\t\n\t\tdouble[] b ={0, 0, 0}; \n\t\tdouble[] c ={0, 0, 0};\n\t\tdouble[] a ={0, 0, 0}; //this one will serve as unit h vector\n\t\ta[0] = h[0]/this.getH(); a[1] = h[1]/this.getH(); a[2] = h[2]/this.getH();\n\t\t\n\t\tTransf.cartesian(a[0], a[1], a[2], b, c);\n\t\t\n\t\tfor(int z_layer=startZ; z_layer<endZ; z_layer++){\n\t\t\tpixels = (byte[])stack.getPixels(z_layer);\n\t\t\tfor(int x_row=startX; x_row<endX; x_row++){\n\t\t\t\tfor(int y_col=startY; y_col<endY; y_col++){\n\t\t\t\t\t\n\t\t\t\t\tdouble point_h, point_r;\n\t\t\t\t\tdouble vx, vy, vz;\n\t\t\t\t\t\n\t\t\t\t\tvx = x_row-x; \n\t\t\t\t\tvy = y_col-y; \n\t\t\t\t\tvz = z_layer-z;\n\t\t\t\t\t\n\t\t\t\t\tpoint_h = vx*a[0]+vy*a[1]+vz*a[2]; \n\t\t\t\t\tpoint_r = Math.sqrt(Math.pow(vx*b[0]+vy*b[1]+vz*b[2], 2)+Math.pow(vx*c[0]+vy*c[1]+vz*c[2], 2));\n\t\t\t\t\t\n\t\t\t\t\tboolean isInCone = true;\n\t\t\t\t\tisInCone = (point_h<=cone_height) && (point_h>=0) && (point_r<= ((r1-r)/this.getH())*point_h+r);//\n\t\t\t\t\t\n\t\t\t\t\tif(isInCone){\n\t\t\t\t\t\troi[count][3] = pixels[x_row + stack_width * y_col] & 0xff; //int\n\t\t\t\t\t\troi[count][0] = x_row; \n\t\t\t\t\t\troi[count][1] = y_col; \n\t\t\t\t\t\troi[count][2] = z_layer;\n\t\t\t\t\t\tcount ++;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t// quite inefficient for memory to extract twice... but left it this way by now\n\t\tint[][] extractedVoxels = new int [count][4];\n\t\tfor(int i=0; i<count; i++){\n\t\t\tfor(int j=0; j<4; j++){\n\t\t\t\textractedVoxels[i][j]=roi[i][j];\n\t\t\t}\n\t\t}\n\t\treturn extractedVoxels;\n\t}", "public DoubleElementMinStack() {\n stack = new Stack<>();\n }", "stack() {\n arr = (E[]) new Object[size];\n }", "public int[] getInputSize() {\n return inputSize;\n }", "public final int size() {\n\t\treturn opstack.size();\n\t}", "public long getInputSize()\r\n\t{\r\n\t return inputSize;\r\n\t}", "int numberOfDimensions();", "@Test\n public void testModuloStackSize() {\n MainPanel mp = new MainPanel();\n ProgramArea pa = new ProgramArea();\n ProgramStack ps = new ProgramStack();\n\n ps.push(10);\n ps.push(3);\n\n ProgramExecutor pe = new ProgramExecutor(mp, ps, pa);\n\n pe.modulo();\n ps.pop();\n\n Assert.assertEquals(\"[]\", ps.toString());\n }", "public MinStack1() {\r\n stack = new Stack<>();\r\n }", "public LC155_MinStack2() {\n\t\tdata = new Stack<Long>();\n\t}", "private void expand(){\n \n int newSize = size + expand;\n E[] tempArray = (E[]) new Object[newSize];\n for(int n = 0; n < size; n++){\n tempArray[n] = stackArray[n]; \n }\n stackArray = tempArray;\n size = newSize;\n }", "@Override\n public void push(E z){\n if(isFull()){\n expand();\n System.out.println(\"Stack expanded by \"+ expand+ \" cells\");\n }\n stackArray[count] = z;\n count++;\n }", "@Test\n\tpublic void testGetImageStackSize() {\n\n\t\tip = new ImagePlus();\n\t\tassertEquals(1,ip.getImageStackSize());\n\n\t\tst = new ImageStack(2,2);\n\t\tst.addSlice(\"GrandmaKat\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"GrandpaHuff\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"UncleRemus\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"AuntRomulus\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"BabyAchilles\", new byte[] {0,8,4,1});\n\n\t\tip.setStack(\"CarribeanDreams\", st);\n\t\tassertEquals(5,ip.getImageStackSize());\n\n\t\tst.deleteLastSlice();\n\t\tassertEquals(4,ip.getImageStackSize());\n\t}", "public static void main(String[] args) {\n\t\t\n\t Stack<String> s =new Stack<String>();\n\t System.out.println(s.size()+\" - \"+s.length());\n\t for (int i = 0; i < 100; i++) {\n\t\t\ts.push(\"111\");\n\t\t\tSystem.out.println(s.size()+\" - \"+s.length());\n\n\t\t\t\n\t\t}\n\t for (int i = 0; i < 100; i++) {\n\t\t\ts.pop();\n\t\t\tSystem.out.println(s.size()+\" - \"+s.length());\n\n\t\t\t\n\t\t}\n\t \n\t \n\t \t\n\t \n\t}", "@Test\n public void testStack() {\n DatastructureTest.STACK.push(3);\n DatastructureTest.STACK.push(7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == -1);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == -1);\n }", "public void testMyStack() {\n\t\tMyStack<String> s = new MyStack<String>();\n\t\ts.push(\"1\");\n\t\ts.push(\"2\");\n\t\ts.push(\"3\");\n\t\ts.pop();\n\t\ts.push(\"4\");\n\t\ts.toString();\n\t\tSystem.out.println(\"MyStack size is: \" + s.size());\n\t}", "@Test\r\n public void testStackstack() {\r\n StackArrayList<Integer> stack = new StackArrayList<Integer>();\r\n\r\n stack.push(1);\r\n stack.push(2);\r\n stack.push(3);\r\n stack.push(4);\r\n stack.push(5);\r\n\r\n assertEquals(5, stack.peek());\r\n assertEquals(5, stack.pop());\r\n assertEquals(4, stack.size());\r\n }", "@Override\n\tpublic int size() {\n\t\treturn this.nDims;\n\t}", "public MinStack()\n\t{\n\t\tindex = -1;\n\t\tsize = 50;\n\t\tdata = new int[size];\n\t}", "abstract int calculateMinimumSize(int axis);", "public myStackUsingDynamicArray(){\n A = new dynamicArray();\n top=-1;\n bottom=-1;\n localSize=0;\n //Othe initializations to be done by student\n }", "public ArrayStack(){\r\n\t\tstack= new Object[DEFAULT_SIZE];\r\n\t\t}", "public MinStack() {\r\n stk = new Stack<>();\r\n stk1 = new Stack<>();\r\n }", "public _30_min_stack() {\n data = new Stack<>();\n help = new Stack<>();\n }", "public Stacked(){\n count = 0;\n stackArray = (E[]) new Object[START_CAP];\n }", "@Override\r\n\tpublic boolean isFull() {\r\n\t\treturn stack.size() == size;\r\n\t}", "Stack(Recycler<T> parent, Thread thread, int maxCapacity, int maxSharedCapacityFactor, int ratioMask, int maxDelayedQueues)\r\n/* 408: */ {\r\n/* 409:440 */ this.parent = parent;\r\n/* 410:441 */ this.threadRef = new WeakReference(thread);\r\n/* 411:442 */ this.maxCapacity = maxCapacity;\r\n/* 412:443 */ this.availableSharedCapacity = new AtomicInteger(Math.max(maxCapacity / maxSharedCapacityFactor, Recycler.LINK_CAPACITY));\r\n/* 413:444 */ this.elements = new Recycler.DefaultHandle[Math.min(Recycler.INITIAL_CAPACITY, maxCapacity)];\r\n/* 414:445 */ this.ratioMask = ratioMask;\r\n/* 415:446 */ this.maxDelayedQueues = maxDelayedQueues;\r\n/* 416: */ }", "@Test\n public void testStackInteger() {\n DatastructureTest.INTSTACK.push(3);\n DatastructureTest.INTSTACK.push(7);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == 7);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == 7);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == 3);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == 3);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == -1);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == -1);\n }", "public StoredEnergyStack getStackToAdd(long inputSize, StoredEnergyStack stack, StoredEnergyStack returned) {\n\t\treturn null;\n\t}", "private void expandArray() {\r\n//\t\tSystem.out.println(\"Expanding: current capacity \" + capacity); //Used for debugging\r\n\t\tcapacity = 2 * capacity;\r\n\t\tE[] temp = (E[]) new Object[capacity];\r\n\t\tfor (int i = 0; i < t + 1; i++)\r\n\t\t\ttemp[i] = stack[i];\r\n\t\tstack = temp;\r\n\t}", "private void increaseStackSize(int sizeIncrease) {\n Object [] newStack = new Object[stack.length + sizeIncrease];\n copyArray(newStack, stack);\n stack = newStack;\n }", "public GetMinStack() {\n stackData = new Stack<>();\n stackMin = new Stack<>();\n }", "public MinStack2() {\r\n\t\t\tdata = new Stack<>();\r\n\t\t\thelper = new Stack<>();\r\n\t\t}", "public MinStack() {\n dataStack=new Stack<>();\n minStack=new Stack<>();\n }", "public MinStack() {\n stack = new Stack<IntMinPair>();\n }", "public int maxStack();", "public int getFrameSize();", "public MinValueStack(){\r\n stack1 = new Stack<T>();\r\n stack2 = new Stack<T>();\r\n size = 0;\r\n }", "public MinStack_155() {\n\t\tmin= new Stack<Integer>();\n\t\tstack= new Stack<Integer>();\n\t}", "int dimensionality();", "public MinStack() {\n capacity = 1 << 4;\n nums = new int[capacity];\n mins = new int[capacity];\n }", "public int stackCount() {\r\n\t\t return count;\r\n\t }", "public static void main(String[] args) {\n// System.out.println(\"as.getSize() == \" + as.getSize());\n// as.pop();\n// System.out.println(\"as.pop() == \" + as);\n// System.out.println(\"as.peek() == \" + as.peek());\n// as.push(\"17\");\n// System.out.println(as);\n\n LinkedListStack<Integer> stack = new LinkedListStack<>();\n\n for(int i = 0 ; i < 5 ; i ++){\n stack.push(i);\n System.out.println(stack);\n }\n\n stack.pop();\n System.out.println(stack);\n\n }", "public static void main(String[] args) throws Exception {\n\t\t// TODO Auto-generated method stub\n\t\tLinkedListAsStack stack = new LinkedListAsStack();\n\t\tstack.push(10);\n\t\tstack.push(20);\n\t\tstack.push(30);\n\t\tstack.push(40);\n\t\tstack.display();// 40 30 20 10-> act as a stack\n\t\tSystem.out.println(stack.size());// 4\n\t\tSystem.out.println(stack.isEmpty());// false\n\t\tSystem.out.println(stack.pop());// 40\n\t\tSystem.out.println(stack.top());// 30\n\t\tstack.display();// 30 20 10\n\t\tSystem.out.println(stack.size());// 3\n\t}", "public void setMaxStack(int maxStack);", "public MinStack2() {\n stack = new Stack<>();\n minStack = new Stack<>();\n }", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "final boolean init_stacks()\r\n{\r\n stateptr = -1;\r\n val_init();\r\n return true;\r\n}", "public MinStack() {\n sdata = new Stack<Integer>();\n smin = new Stack<Integer>();\n }", "public MinStack2() {\n stack1 = new Stack<>();\n stack2 = new Stack<>();\n }", "public static void main(String[] args) {\r\n\r\n\t\tArrayStack arrst = new ArrayStack(5);\r\n\t\tIntStream.range(0, 5).forEach(arrst::push);\r\n\t\tSystem.out.println(\"Response of peek \" + arrst.peek());\r\n\t\tSystem.out.println(\"Response of pop\" + arrst.pop());\r\n\t\tSystem.out.println(\"push one random number in the middle\");\r\n\t\tarrst.push(10);\r\n\t\tSystem.out.println(\"printing stack after first pop\");\r\n\t\tarrst.display();\r\n\r\n\t\tIntStream.range(0, arrst.size()).forEach(i -> arrst.pop());\r\n\r\n\t\tSystem.out.println(\"isEmpty after poping all the elements ???\" + arrst.isEmpty());\r\n\r\n\t\tarrst.display();\r\n\r\n\t}", "public abstract int getStackSizeWishInKb();", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}" ]
[ "0.64108396", "0.6300791", "0.62309754", "0.6206776", "0.6174966", "0.60508704", "0.60459256", "0.602512", "0.60005146", "0.599067", "0.5971326", "0.59713256", "0.5946148", "0.5936266", "0.5931513", "0.58810025", "0.58501655", "0.58212453", "0.58129114", "0.579582", "0.57116747", "0.569482", "0.56794864", "0.5665574", "0.56592274", "0.5646583", "0.56423587", "0.56325626", "0.5628521", "0.5618644", "0.5618471", "0.560752", "0.5602821", "0.559347", "0.558875", "0.5582863", "0.5578849", "0.55693436", "0.5516967", "0.5512486", "0.55116385", "0.54833007", "0.5481706", "0.54681253", "0.54678214", "0.5456806", "0.5453536", "0.542578", "0.5421878", "0.542134", "0.5417876", "0.54151756", "0.54131365", "0.5408421", "0.53720987", "0.5371146", "0.5368793", "0.5358781", "0.5348618", "0.53475547", "0.53036845", "0.5294449", "0.5289326", "0.5283429", "0.5267828", "0.52658665", "0.5262854", "0.52588314", "0.5256087", "0.524437", "0.5241018", "0.5237515", "0.52241766", "0.5220396", "0.521515", "0.5214412", "0.5205022", "0.5204284", "0.52013224", "0.5198826", "0.5197352", "0.51887923", "0.5185772", "0.51849324", "0.5181801", "0.5177999", "0.5175294", "0.51611567", "0.51550376", "0.51532733", "0.51513046", "0.515099", "0.514917", "0.5148924", "0.51485837", "0.5141588", "0.51409876", "0.51376003", "0.51376003", "0.51376003" ]
0.5330149
60
note sets a private variable. And getFileInfo() can't act as a getter because it has a lot of side effects. As it is I can't really test this method.
@Test public void testSetFileInfo() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FileInfo getFileInfo() {\n return fileInfo;\n }", "public final FileInfoBase getFileInfo() {\r\n return fileInfo;\r\n }", "public void fileInfo(String info);", "protected final void setFileInformation( FileInfo fInfo) {\n\t\tm_info = fInfo;\n\t}", "@java.lang.Override\n public entities.Torrent.FileInfo getFileInfo() {\n return fileInfo_ == null ? entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n }", "@java.lang.Override\n public entities.Torrent.FileInfo getFileInfo() {\n return fileInfo_ == null ? entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n }", "public Builder setFileInfo(entities.Torrent.FileInfo value) {\n if (fileInfoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n fileInfo_ = value;\n onChanged();\n } else {\n fileInfoBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setFileInfo(entities.Torrent.FileInfo value) {\n if (fileInfoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n fileInfo_ = value;\n onChanged();\n } else {\n fileInfoBuilder_.setMessage(value);\n }\n\n return this;\n }", "public entities.Torrent.FileInfo getFileInfo() {\n if (fileInfoBuilder_ == null) {\n return fileInfo_ == null ? entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n } else {\n return fileInfoBuilder_.getMessage();\n }\n }", "public entities.Torrent.FileInfo getFileInfo() {\n if (fileInfoBuilder_ == null) {\n return fileInfo_ == null ? entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n } else {\n return fileInfoBuilder_.getMessage();\n }\n }", "@java.lang.Override\n public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder() {\n return getFileInfo();\n }", "@java.lang.Override\n public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder() {\n return getFileInfo();\n }", "@java.lang.Override\n public java.util.List<entities.Torrent.FileInfo> getFileInfoList() {\n return fileInfo_;\n }", "public boolean hasFileInfo() {\n return fieldSetFlags()[15];\n }", "public com.opentext.bn.converters.avro.entity.PayloadRef getFileInfo() {\n return fileInfo;\n }", "public com.opentext.bn.converters.avro.entity.PayloadRef getFileInfo() {\n return fileInfo;\n }", "public FileInfo(File file) {\n this.file = file;\n }", "public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder() {\n if (fileInfoBuilder_ != null) {\n return fileInfoBuilder_.getMessageOrBuilder();\n } else {\n return fileInfo_ == null ?\n entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n }\n }", "public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder() {\n if (fileInfoBuilder_ != null) {\n return fileInfoBuilder_.getMessageOrBuilder();\n } else {\n return fileInfo_ == null ?\n entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n }\n }", "@java.lang.Override\n public int getFileInfoCount() {\n return fileInfo_.size();\n }", "@java.lang.Override\n public boolean hasFileInfo() {\n return fileInfo_ != null;\n }", "@java.lang.Override\n public boolean hasFileInfo() {\n return fileInfo_ != null;\n }", "entities.Torrent.FileInfo getFileInfo();", "entities.Torrent.FileInfo getFileInfo();", "@java.lang.Override\n public entities.Torrent.FileInfo getFileInfo(int index) {\n return fileInfo_.get(index);\n }", "public Builder setFileInfo(\n entities.Torrent.FileInfo.Builder builderForValue) {\n if (fileInfoBuilder_ == null) {\n fileInfo_ = builderForValue.build();\n onChanged();\n } else {\n fileInfoBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public Builder setFileInfo(\n entities.Torrent.FileInfo.Builder builderForValue) {\n if (fileInfoBuilder_ == null) {\n fileInfo_ = builderForValue.build();\n onChanged();\n } else {\n fileInfoBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "void update(FileInfo fileInfo);", "public Builder setFileInfo(\n int index, entities.Torrent.FileInfo value) {\n if (fileInfoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFileInfoIsMutable();\n fileInfo_.set(index, value);\n onChanged();\n } else {\n fileInfoBuilder_.setMessage(index, value);\n }\n return this;\n }", "File getFilePath()\r\n\t{\r\n\t\treturn fFilePath;\r\n\t}", "DiscFileInfo getFileInfo(String path) throws IOException;", "@java.lang.Override\n public java.util.List<? extends entities.Torrent.FileInfoOrBuilder>\n getFileInfoOrBuilderList() {\n return fileInfo_;\n }", "protected abstract FileInfo getFileInfoFromInputDataImpl(T inputData);", "public Builder addFileInfo(entities.Torrent.FileInfo value) {\n if (fileInfoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFileInfoIsMutable();\n fileInfo_.add(value);\n onChanged();\n } else {\n fileInfoBuilder_.addMessage(value);\n }\n return this;\n }", "FileInfo create(FileInfo fileInfo);", "public boolean hasFileInfo() {\n return fileInfoBuilder_ != null || fileInfo_ != null;\n }", "public boolean hasFileInfo() {\n return fileInfoBuilder_ != null || fileInfo_ != null;\n }", "private UiFileInfo getUiFileInfo(TachyonFS tachyonClient, int fileId)\n throws FileDoesNotExistException, IOException {\n return getUiFileInfo(tachyonClient, fileId, TachyonURI.EMPTY_URI);\n }", "public entities.Torrent.FileInfo.Builder addFileInfoBuilder() {\n return getFileInfoFieldBuilder().addBuilder(\n entities.Torrent.FileInfo.getDefaultInstance());\n }", "public java.util.List<entities.Torrent.FileInfo> getFileInfoList() {\n if (fileInfoBuilder_ == null) {\n return java.util.Collections.unmodifiableList(fileInfo_);\n } else {\n return fileInfoBuilder_.getMessageList();\n }\n }", "File getFile() { return user_file; }", "entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder();", "entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder();", "public void setFile(File f) { file = f; }", "public entities.Torrent.FileInfo.Builder getFileInfoBuilder() {\n\n onChanged();\n return getFileInfoFieldBuilder().getBuilder();\n }", "public entities.Torrent.FileInfo.Builder getFileInfoBuilder() {\n\n onChanged();\n return getFileInfoFieldBuilder().getBuilder();\n }", "@java.lang.Override\n public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder(\n int index) {\n return fileInfo_.get(index);\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setFileInfo(com.opentext.bn.converters.avro.entity.PayloadRef value) {\n validate(fields()[15], value);\n this.fileInfoBuilder = null;\n this.fileInfo = value;\n fieldSetFlags()[15] = true;\n return this;\n }", "public String getFileName() {\n/* 43:43 */ return this.fileName;\n/* 44: */ }", "public void setLogfileInfo(LogfileInfo info) {\n logfileInfo = info;\n }", "public com.opentext.bn.converters.avro.entity.PayloadRef.Builder getFileInfoBuilder() {\n if (fileInfoBuilder == null) {\n if (hasFileInfo()) {\n setFileInfoBuilder(com.opentext.bn.converters.avro.entity.PayloadRef.newBuilder(fileInfo));\n } else {\n setFileInfoBuilder(com.opentext.bn.converters.avro.entity.PayloadRef.newBuilder());\n }\n }\n return fileInfoBuilder;\n }", "entities.Torrent.FileInfo getFileInfo(int index);", "public entities.Torrent.FileInfo getFileInfo(int index) {\n if (fileInfoBuilder_ == null) {\n return fileInfo_.get(index);\n } else {\n return fileInfoBuilder_.getMessage(index);\n }\n }", "@Test\n public void filesByNameInfoGetTest() throws ApiException {\n String name = null;\n FileInfo response = api.filesByNameInfoGet(name);\n\n // TODO: test validations\n }", "private void setFile() {\n\t}", "public java.util.List<? extends entities.Torrent.FileInfoOrBuilder>\n getFileInfoOrBuilderList() {\n if (fileInfoBuilder_ != null) {\n return fileInfoBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(fileInfo_);\n }\n }", "private UiFileInfo getUiFileInfo(TachyonFS tachyonClient, TachyonURI filePath)\n throws FileDoesNotExistException, IOException {\n return getUiFileInfo(tachyonClient, -1, filePath);\n }", "public FileInfo()\r\n {\r\n hash = new HashInfo();\r\n }", "int getFileInfoCount();", "private FileInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public int getFileInfoCount() {\n if (fileInfoBuilder_ == null) {\n return fileInfo_.size();\n } else {\n return fileInfoBuilder_.getCount();\n }\n }", "boolean hasFileInfo();", "boolean hasFileInfo();", "public File getFile()\n {\n return file;\n }", "public synchronized FileInfo getOrAddFileInfo(FileInfo alphaFileInfo) {\n String app = alphaFileInfo.getApp();\n String caption = alphaFileInfo.getCaption();\n AppAndCaptionKey key = new AppAndCaptionKey(app, caption);\n String fileId = appAndCaptionToId.get(key);\n if(fileId==null){\n fileId = getNextFileId();\n appAndCaptionToId.put(key, fileId);\n }\n\n //2. Creating file info\n FileInfo sigmaFileInfo = fileCache.getFileInfo(app,fileId);\n if(sigmaFileInfo==null){\n sigmaFileInfo = (FileInfo) alphaFileInfo.clone();\n }\n sigmaFileInfo.setId(fileId);\n return sigmaFileInfo;\n }", "public File getFileValue();", "public interface FileSelectInfo\n{\n /**\n * Returns the base folder of the traversal.\n * @return FileObject representing the base folder.\n */\n FileObject getBaseFolder();\n\n /**\n * Returns the file (or folder) to be considered.\n * @return The FileObject.\n */\n FileObject getFile();\n\n /**\n * Returns the depth of the file relative to the base folder.\n * @return The depth of the file relative to the base folder.\n */\n int getDepth();\n}", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.FileInfo, entities.Torrent.FileInfo.Builder, entities.Torrent.FileInfoOrBuilder>\n getFileInfoFieldBuilder() {\n if (fileInfoBuilder_ == null) {\n fileInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.FileInfo, entities.Torrent.FileInfo.Builder, entities.Torrent.FileInfoOrBuilder>(\n getFileInfo(),\n getParentForChildren(),\n isClean());\n fileInfo_ = null;\n }\n return fileInfoBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.FileInfo, entities.Torrent.FileInfo.Builder, entities.Torrent.FileInfoOrBuilder>\n getFileInfoFieldBuilder() {\n if (fileInfoBuilder_ == null) {\n fileInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.FileInfo, entities.Torrent.FileInfo.Builder, entities.Torrent.FileInfoOrBuilder>(\n getFileInfo(),\n getParentForChildren(),\n isClean());\n fileInfo_ = null;\n }\n return fileInfoBuilder_;\n }", "private FileUtil() {}", "public static File mock() {\n\n\t\treturn mock(true);\n\t}", "public File getFile() { return file; }", "public abstract String getFileLocation();", "public FileInfo(FileInfo v)\n \t{\n \t\ttitle = v.title;\n \t\tauthors = v.authors;\n \t\tseries = v.series;\n \t\tseriesNumber = v.seriesNumber;\n \t\tpath = v.path;\n \t\tfilename = v.filename;\n \t\tpathname = v.pathname;\n \t\tarcname = v.arcname;\n \t\tformat = v.format;\n \t\tsize = v.size;\n \t\tarcsize = v.arcsize;\n \t\tisArchive = v.isArchive;\n \t\tisDirectory = v.isDirectory;\n \t\tcreateTime = v.createTime;\n \t\tlastAccessTime = v.lastAccessTime;\n \t}", "public int getFileFlags() { return fileFlags; }", "public Builder addFileInfo(\n int index, entities.Torrent.FileInfo value) {\n if (fileInfoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFileInfoIsMutable();\n fileInfo_.add(index, value);\n onChanged();\n } else {\n fileInfoBuilder_.addMessage(index, value);\n }\n return this;\n }", "@Test\n public void filesInfoTest() throws ApiException {\n String owner = null;\n String repo = null;\n String identifier = null;\n PackageFilePartsUpload response = api.filesInfo(owner, repo, identifier);\n\n // TODO: test validations\n }", "public void setFileRef() { this.fileRef = fileRef; }", "public String getFile() {\n \n // return it\n return theFile;\n }", "void setFile(String i) {\n file = i;\n }", "public Builder addFileInfo(\n entities.Torrent.FileInfo.Builder builderForValue) {\n if (fileInfoBuilder_ == null) {\n ensureFileInfoIsMutable();\n fileInfo_.add(builderForValue.build());\n onChanged();\n } else {\n fileInfoBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "fileInfo(){\n\t\tsymbol = new node[MAXLINECOUNT + 2];\n\t\tother = null; // allocated later!\n\t}", "private FileEntry() {\n // intentionally empty\n }", "public void testGetFileObject23() throws IOException {\n File workDir = getWorkDir();\n assertGC(\"NamingFactory not cleared.\", new WeakReference<FileNaming>(NamingFactory.fromFile(workDir)));\n File rootFile = null;\n Stack<String> stack = new Stack<String>();\n while (workDir != null) {\n stack.push(workDir.getName());\n rootFile = workDir;\n workDir = workDir.getParentFile();\n }\n String relativePath = \"\";\n while (!stack.empty()) {\n relativePath += stack.pop() + \"/\";\n }\n FileObject root = FileUtil.toFileObject(rootFile);\n monitor.reset();\n assertNotNull(root.getFileObject(relativePath));\n monitor.getResults().assertResult(2, StatFiles.ALL);\n }", "public void setFileId(Long fileId) {\n/* 31:31 */ this.fileId = fileId;\n/* 32: */ }", "private static void info ( File f ) {\n\tString nume = f . getName () ;\n\tif( f.isFile () )\n\tSystem.out.println ( \" Fisier : \" + nume ) ;\n\telse\n\tif( f.isDirectory () )\n\tSystem.out.println ( \" Director : \" + nume ) ;\n\tSystem.out.println (\n\t\" Cale absoluta : \" + f.getAbsolutePath () +\n\t\" \\n Poate citi : \" + f.canRead () +\n\t\" \\n Poate scrie : \" + f.canWrite () +\n\t\" \\n Parinte : \" + f.getParent () +\n\t\" \\n Cale : \" + f.getPath () +\n\t\" \\n Lungime : \" + f.length () +\n\t\" \\n Data ultimei modificari : \" +\n\tnew Date ( f.lastModified () ) ) ;\n\tSystem.out.println ( \" --------------\" ) ;\n\t}", "public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder(\n int index) {\n if (fileInfoBuilder_ == null) {\n return fileInfo_.get(index); } else {\n return fileInfoBuilder_.getMessageOrBuilder(index);\n }\n }", "java.util.List<entities.Torrent.FileInfo>\n getFileInfoList();", "public Path getFilePath() {\n return filePath;\n }", "public Builder clearFileInfo() {\n if (fileInfoBuilder_ == null) {\n fileInfo_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n fileInfoBuilder_.clear();\n }\n return this;\n }", "public FileInfo(NXTComm nxt, String fileName){\r\n\t\tthis.comm = nxt;\r\n\t\tthis.fileName = fileName;\r\n\t}", "private void setFilePath(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000008;\n filePath_ = value;\n }", "@Override\n public void addSingleFile(FileInfo file) {\n }", "com.google.devtools.kythe.proto.Analysis.FileInfo getEntry(int index);", "public final String getFilePath() {\n\t\treturn m_info.getPath();\n\t}", "public static void printFileInfo(String filePath) {\n File f1 = new File(filePath);\n System.out.println(\"File name: \" + f1.getName());\n System.out.println(\"Path: \" + f1.getPath());\n System.out.println(\"Parent: \" + f1.getParent());\n System.out.println(f1.exists() ? \"file exist\" : \"file is not exist\");\n System.out.println(f1.canRead() ? \"file readable\" : \"file is not readable\");\n System.out.println(f1.canWrite() ? \"file writable\" : \"file is not writable\");\n System.out.println(f1.isDirectory() ? \"It is directory\" : \"It is not directory\");\n System.out.println(f1.isFile() ? \"It is a simple file\" : \"It can be named channel\");\n System.out.println(f1.isAbsolute() ? \"It is absolute\" : \"It is not absolute\");\n System.out.println(\"Last modified: \" + f1.lastModified());\n System.out.println(\"Size is \" + f1.length() + \" byte\");\n }", "private FileUtil() {\n \t\tsuper();\n \t}", "public TagFileInfo[] getTagFiles() {\n/* 176 */ return this.tagFiles;\n/* */ }", "private UiFileInfo getUiFileInfo(TachyonFS tachyonClient, int fileId, TachyonURI filePath)\n throws FileDoesNotExistException, IOException {\n ClientFileInfo fileInfo = tachyonClient.getFileStatus(fileId, filePath, true);\n if (fileInfo == null) {\n throw new FileDoesNotExistException(fileId != -1 ? Integer.toString(fileId)\n : filePath.toString());\n }\n\n UiFileInfo uiFileInfo = new UiFileInfo(fileInfo);\n boolean blockExistOnWorker = false;\n for (long blockId : fileInfo.getBlockIds()) {\n if (mBlockDataManager.hasBlockMeta(blockId)) {\n blockExistOnWorker = true;\n BlockMeta blockMeta = mBlockDataManager.getVolatileBlockMeta(blockId);\n long blockSize = blockMeta.getBlockSize();\n StorageLevelAlias storageLevelAlias =\n StorageDirId.getStorageLevelAlias(blockMeta.getParentDir().getStorageDirId());\n // The block last access time is not available. Use -1 for now.\n uiFileInfo.addBlock(storageLevelAlias, blockId, blockSize, -1);\n }\n }\n if (!blockExistOnWorker) {\n throw new FileDoesNotExistException(fileId != -1 ? Integer.toString(fileId)\n : filePath.toString());\n }\n return uiFileInfo;\n }", "public void setFileName(String fileName) {\n/* 39:39 */ this.fileName = fileName;\n/* 40: */ }" ]
[ "0.7754032", "0.7153345", "0.6769036", "0.67650145", "0.669322", "0.669322", "0.6523694", "0.6521964", "0.6487778", "0.6487778", "0.6482773", "0.6482773", "0.6365948", "0.6342186", "0.62863183", "0.6275443", "0.6258021", "0.62526214", "0.62526214", "0.62259287", "0.6205426", "0.6203341", "0.61897874", "0.61897874", "0.6172133", "0.6131339", "0.6131339", "0.612354", "0.60809714", "0.6080649", "0.60646904", "0.60429835", "0.60254085", "0.5954772", "0.5947546", "0.59467053", "0.59435874", "0.59352154", "0.5931808", "0.591872", "0.5907478", "0.5905115", "0.5905115", "0.59009695", "0.5894908", "0.5891895", "0.588665", "0.5885979", "0.5852885", "0.58445936", "0.5805145", "0.5802294", "0.5769862", "0.57687706", "0.5751005", "0.57475865", "0.5743979", "0.5736658", "0.5731717", "0.5730938", "0.5728887", "0.5715961", "0.5715961", "0.570642", "0.5668522", "0.56596553", "0.5653307", "0.56500465", "0.56486666", "0.5644244", "0.5635369", "0.5632926", "0.5629461", "0.56246114", "0.5624118", "0.5620708", "0.56129706", "0.56118006", "0.5610746", "0.5609145", "0.5601397", "0.5598318", "0.55917245", "0.55884033", "0.5585106", "0.55832505", "0.5580399", "0.5569991", "0.55657154", "0.55563104", "0.5546176", "0.55425024", "0.5539462", "0.5538524", "0.55365175", "0.55270463", "0.55159277", "0.5508834", "0.5508299", "0.5505003" ]
0.759658
1
note can only test nonGUI part of this code
@Test public void testGetWindow() { ip = new ImagePlus(); assertNull(ip.getWindow()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void guiElementsTest() throws Exception {\n\t\tif (Configuration.shufflerepeat &&\n\t\tConfiguration.featureamp&&\n\t\tConfiguration.playengine&&\n\t\tConfiguration.choosefile&&\n\t\tConfiguration.gui&&\n\t\tConfiguration.skins&&\n\t\tConfiguration.light&&\n\t\tConfiguration.filesupport&&\n\t\tConfiguration.showtime&&\n\t\tConfiguration.volumecontrol&&\n\t\tConfiguration.mute\n\t\t) {\t\n\n\t\tstart();\n\t\tJMenu menu = (JMenu) MemberModifier.field(Application.class, \"menu\").get(gui);\n\t\tassertEquals(menu.getName(), \"menu\");\n\t\tJMenuItem menuItem = menu.getItem(0);\n\t\tassertTrue(menuItem.getComponentListeners() != null);\n\t\t}\n\t}", "@Override\n\tpublic void guiTinNhan() {\n\n\t}", "void gui(){\n _hasGUI = true;\n }", "private static void initAndShowGUI() {\n }", "private void updateGUIStatus() {\r\n\r\n }", "@Test\n public void TEST_GOTO_CHOOSING_UI() {\n GameData.mainMenuState = false;\n GameData.chooseDifficultyState = true;\n ChooseDifficultyUI testUI = new ChooseDifficultyUI();\n GameData.currentUI = testUI;\n\n assertFalse(GameData.currentUI.getClass() == ChoosingUI.class);\n assertFalse(GameData.chooseDifficultyState == false);\n assertFalse(GameData.choosingBoatState == true);\n //Create a click position at a point within the button's area (in this case, exactly central).\n Vector2 clickPosition = new Vector2(SCREEN_WIDTH/2, 100 + BUTTON_HEIGHT/2);\n testUI.getInput(SCREEN_WIDTH, clickPosition);\n //test that clickPosition is within area\n assertTrue(clickPosition.x < SCREEN_WIDTH / 2 - BUTTON_WIDTH / 2 + BUTTON_WIDTH);\n assertTrue(clickPosition.x > SCREEN_WIDTH / 2 - BUTTON_WIDTH / 2);\n assertTrue(clickPosition.y < 100 + BUTTON_HEIGHT);\n assertTrue(clickPosition.y > 100);\n //Check changes have been made.\n assertTrue(GameData.currentUI.getClass() == ChoosingUI.class);\n assertTrue(GameData.chooseDifficultyState == false);\n assertTrue(GameData.choosingBoatState == true);\n }", "public void testAccessComponents() throws Exception\n {\n executeScript(SCRIPT);\n assertNotNull(\"Cannot access button\", builderData\n .getComponentHandler(\"dlgOkButton\"));\n assertNotNull(\"Cannot access label\", builderData\n .getWidgetHandler(\"label\"));\n }", "private void tests(Component comp){\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(Component)> - ======= Tested component=\"+comp.getClass().getName());\n \n \n testContainer(comp);\n \n /* H1 -> Hack for JLabels - JLabel isn't focusTraversable, but If we want test labelFor pointing we must have all JLabels. */\n if (testSettings.AP_noLabelFor) {\n if (testSettings.AP_showingOnly && !comp.isShowing()){\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(\"+comp.getClass().getName()+\")> - Label For => NOT TESTED - because : testSettings.AP_showingOnly=\"+testSettings.AP_showingOnly+\" && !!comp.isShowing()=\"+!comp.isShowing());\n return;\n }\n \n if(comp instanceof JLabel) {\n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(Component)> - \\t -add label =\"+comp);\n \n labels.add(comp);\n }\n }\n \n /* Check Labels which have set labelFor have mnemonics */\n if ((comp instanceof JLabel) && testSettings.AP_mnemonics && testSettings.AP_m_label) {\n JLabel label = (JLabel) comp;\n int mnemonic = label.getDisplayedMnemonic();\n \n // LOG ONLY -/\n if(debugLog) System.err.print(LOG_CAPTION+\" - <tests(Component)> - \\t - label Mnemonic=\"+mnemonic+\" label.getLabelFor()=\"+label.getLabelFor()+\" label.getDisplayedMnemonic()=\"+label.getDisplayedMnemonic());\n \n Component labelF = label.getLabelFor();\n \n if (labelF != null){\n // hack for JDK1.4 or higher if((labelF.isFocusTraversable()) && (label.getDisplayedMnemonic() <= 0))\n if(testFocusability(labelF) && (mnemonic <= 0))\n noMnemonic.add(comp);\n \n if(label.isShowing())\n testMnemonics(label.getText(), mnemonic, comp);\n \n }\n }\n \n \n // Test implement Accessible\n testImplementAccessible(comp);\n \n /* Test parent (Window) although will not test non-showed or non-traversable*/\n if(!comp.equals(parent)){\n if (testSettings.AP_showingOnly && !comp.isShowing()){\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(\"+comp.getClass().getName()+\")> - NOT TESTED - because : testSettings.AP_showingOnly=\"+testSettings.AP_showingOnly+\" && !!comp.isShowing()=\"+!comp.isShowing());\n return;\n }\n \n // hack for JDK 1.4 or higner if (testSettings.AP_focusTraversableOnly && !comp.isFocusTraversable()){\n if (testSettings.AP_focusTraversableOnly && !testFocusability(comp)){\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(\"+comp.getClass().getName()+\")> - NOT TESTED - because : testSettings.AP_focusTraversableOnly=\"+testSettings.AP_focusTraversableOnly+\" && !testFocusability(comp)=\"+!testFocusability(comp));\n return;\n }\n }\n \n /* Check if class is excluded from the test */\n String classname = comp.getClass().toString();\n if (classname.startsWith(\"class \")){\n classname = classname.substring(6);\n }\n if (excludedClasses.contains(classname)){\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(\"+comp.getClass().getName()+\")> - NOT TESTED - because : Excluded classes contains this class.\");\n return;\n }\n \n \n // Test Accessible Name and Accessible Description\n if(comp instanceof Accessible){\n AccessibleContext comp_AC = comp.getAccessibleContext();\n \n if(comp_AC != null) {\n testAccessibleName(comp, comp_AC);\n testAccessibleDescription(comp, comp_AC);\n } else {\n noName.add(comp);\n noDesc.add(comp);\n }\n }\n \n \n // Test Label For set\n testLabelForSet(comp);\n \n // Test Buttons Mnemonics\n testButtonsMnemonics(comp);\n \n // Test Component Name\n if(testSettings.test_name){\n testComponentName(comp);\n }\n \n }", "@Test\n public void testRedButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"ilias\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"redButton4\").requireVisible();\n }", "private GuiTest() {\n // Load custom resources (fonts, etc.)\n ResourceLoader.loadResources();\n\n // Load the user accounts into the system\n UserController.getInstance().loadUsers();\n\n // Set up GuiController and the main window.\n GuiController.instantiate(1280, 720, \"FPTS\");\n\n char[] password = {'p', 'a', 's', 's', 'w', 'o', 'r', 'd'};\n UserController.getInstance().login(\"rhochmuth\", password);\n\n // Show the screen/window\n PortfolioController.getInstance().showAddHoldingView();\n GuiController.getInstance().showWindow();\n\n // Load the market information and update it every 2 minutes\n MarketController.getInstance().StartTimer();\n }", "@Test\n public void testGreenButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"DateAvailable\").selectItem(1);\n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"greenButton4\").requireVisible();\n }", "@Test\n \tpublic void testFocusHandling() throws FactoryException {\n \n \t\tMainUI ui = new MainUI();\n \t\tButtonPanel bp = new ButtonPanel();\n \t\tui.withModelInteractor(pi).withButtonPanel(bp);\n \t\tRobot robot = BasicRobot.robotWithCurrentAwtHierarchy();\n \n \t\tui.initialize();\n \t\tui.start();\n \t\tbp.start();\n \n \t\t// perform tab key press and wait until it took place\n \t\trobot.pressAndReleaseKey(KeyEvent.VK_TAB);\n \t\trobot.waitForIdle();\n \n \t\t// perform left key press and wait until it took place\n \t\trobot.pressAndReleaseKey(KeyEvent.VK_LEFT);\n \t\trobot.waitForIdle();\n \n \t\t// verify that the game registered the left key press and that it didn't\n \t\t// lose focus\n \t\tverify(pi).left();\n \t\tassertTrue(ui.isFocusOwner());\n \n \t}", "private InstructGui() {\n }", "@Test(timeout=300000)\n public void test08() throws Throwable {\n BackendTransferListener backendTransferListener0 = new BackendTransferListener((CjdbcGui) null);\n backendTransferListener0.mouseClicked((MouseEvent) null);\n }", "@Override\n public void initGUI() {\n\n }", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "public void verify() {\n lblPaletteContent();\n treePaletteContentsTree();\n lblJLabel();\n btMoveUp();\n btMoveDown();\n btRemove();\n btNewCategory();\n btAddFromJAR();\n btAddFromLibrary();\n btAddFromProject();\n btResetPalette();\n btClose();\n }", "public void testGUI(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tTestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick-parse\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \tTestUtils.view().getTextArea().scrollTo(3319,false);\n\t\tfinal java.awt.Point hrefP = TestUtils.view().getTextArea().offsetToXY(3319);\n\t\threfP.translate(30, 10);\n\t\tfinal JEditTextAreaFixture tf = new JEditTextAreaFixture(TestUtils.robot(),TestUtils.view().getTextArea()); \n\n\t\t// doesn't work: the hyperlink is not triggered...\n\t\ttf.robot.moveMouse(tf.target,hrefP);\n\t\ttf.robot.pressModifiers(InputEvent.CTRL_DOWN_MASK);\n\t\tPause.pause(2000);\n\t\threfP.translate(10,4);\n\t\ttf.robot.moveMouse(tf.target,hrefP);\n\t\tPause.pause(4000);\n\t\ttf.robot.click(tf.target, MouseButton.LEFT_BUTTON);\n\t\ttf.robot.releaseModifiers(InputEvent.CTRL_DOWN_MASK);\n\t}", "@Test(timeout=300000)\n public void test11() throws Throwable {\n ControllerTransferListener controllerTransferListener0 = new ControllerTransferListener((CjdbcGui) null);\n controllerTransferListener0.mousePressed((MouseEvent) null);\n }", "@Test\n\tpublic void test3_checkButtons() throws GeneralLeanFtException{\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tSystem.out.println(\"Test 3 - Check Buttons Started\");\n\t\t\t\n\t\t\t//Check that the Main window should exist\n\t\t\tassertTrue(mySet.appExistsorNot());\t\t\t\n\t\t\t\n\t\t\t//Toolbar Object\n\t\t\tToolBar toolbar = mySet.OR.MainWindow().ToolBar(); \n\n\t\t\t// Clicking the JButton displays the required frame\n\t\t\ttoolbar.getButton(\"JButton\").press();\n\t\t\t\n\t\t\t//Getting the Image Buttons in the Panel\n\t\t\tButton[] imgButtons = mySet.OR.MainWindow().ImageButtonsPanelUiObject()\n\t\t\t .findChildren(Button.class,new ButtonDescription.Builder().nativeClass(\"javax.swing.JButton\").build());\n\t\t\t \n\t\t\t//There should be 3 Image Buttons\n\t\t\tassertEquals(3, imgButtons.length);\n\t\t\t\n\t\t\t//Trigger the Mouse Entered Event for the each button in the Panel\t\t\t\t\n\t\t\tRobot robo = new Robot();\t\t\t\n\t\t\tfor(Button btn : imgButtons)\n\t\t\t{\t\t\t\t\n\t\t\t\trobo.mouseMove(btn.getAbsoluteLocation().x,btn.getAbsoluteLocation().y);\n\t\t\t\tThread.sleep(500);\n\t\t\t}\n\t\t\t\n\t\t\t//Store the Original Dimension\n\t\t\tDimension orginalDimension = mySet.OR.MainWindow().ImageButtonsPanelUiObject().getSize();\n\t\t\t\n\t\t\t//Increase the Size by Selecting the Pad Radio Button\n\t\t\tmySet.OR.MainWindow().Pad10RadioButton().click();\n\t\t\t\n\t\t\t//Verify that the radio button is checked\n\t\t\tassertTrue(mySet.OR.MainWindow().Pad10RadioButton().isChecked()==true);\n\t\t\t\n\t\t\t//Store the New Dimension\n\t\t\tDimension newDimension = mySet.OR.MainWindow().ImageButtonsPanelUiObject().getSize();\n\t\t\t\n\t\t\t//Assert that Height Increases and Width Decreases\n\t\t\tassertTrue((newDimension.width < orginalDimension.width) && (newDimension.height > orginalDimension.height));\n\t\t\t\n\t\t\t//Click the Enabled Check box\n\t\t\tmySet.OR.MainWindow().EnabledCheckBox().click();\n\t\t\t\n\t\t\t//Check that the Check Box has been unchecked \n\t\t\tassertTrue(mySet.OR.MainWindow().EnabledCheckBox().getState()==CheckedState.UNCHECKED);\n\t\t\t\n\t\t\t//Check that all Image Buttons are disabled\n\t\t\tfor(Button btn : imgButtons)\n\t\t\t{\n\t\t\t\tassertTrue(btn.isEnabled()==false);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\t\t\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Unexpected Error Occurred. Message = \" + e.getMessage() + \"Stack Trace = \");\n\t\t\te.printStackTrace();\n\t\t\tassertTrue(false);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tSystem.out.println(\"Test 3 - Check Buttons Finished\");\n\t\t}\n\t\t\n\t}", "protected void setupUI() {\n\n }", "private GUI()\n {\n makeGUI();\n }", "@Test\n public void correctTextsAndLabels() {\n loadAllStartScreenReferences();\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n Assert.assertEquals(\"Title is not Start!\", \"Start\", stage.getTitle());\n Assert.assertEquals(\"GameName is Incorrect!\", \"TicTacToe Game (3x3)\", gameNameText.getText());\n Platform.runLater(() -> clickOn(startGameButton));\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n settingPlayers();\n loadAllMainScreenReferences();\n Assert.assertEquals(\"Title is not Main!\", \"Main\", stage.getTitle());\n Assert.assertEquals(\"Instruction Label is incorrect!\", \"You go first !\",\n instructionLabel.getText());\n Platform.runLater(() -> clickOn(buttonFour));\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n Assert.assertEquals(\"Instruction Label did not change!\", \"Nice, choose one more!\",\n instructionLabel.getText());\n Platform.runLater(() -> clickOn(leaveButton));\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n Assert.assertEquals(\"Title is not Start!\", \"Start\", stage.getTitle());\n }", "@Override\r\n\tprotected void initUI() {\n\r\n\t}", "@Test\r\n\tpublic void testButtonPressedNotEnoughCred() {\r\n\t\tvend.getSelectionButton(0).press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\t\t\r\n\t}", "public testGUI() {\n this.currBuff = new Buffer(currentTab,\"\");\n initComponents();\n }", "@Test(timeout=300000)\n public void test01() throws Throwable {\n BackendTransferListener backendTransferListener0 = new BackendTransferListener((CjdbcGui) null);\n backendTransferListener0.mouseEntered((MouseEvent) null);\n }", "@Test\n public void testWrongOpenHoursCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"00:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"00:00\"); \n window.button(\"addStoreBtn\").click();\n window.optionPane().okButton().click();\n window.label(\"openHoursFalseLbl\").requireVisible();\n }", "@Test(timeout=300000)\n public void test05() throws Throwable {\n BackendTransferListener backendTransferListener0 = new BackendTransferListener((CjdbcGui) null);\n backendTransferListener0.mouseReleased((MouseEvent) null);\n }", "public void testMainMenu() {\n // open and close New Project wizard\n NewProjectWizardOperator.invoke().close();\n\n //workaround for issue 166989\n if (System.getProperty(\"os.name\").equals(\"Mac OS X\")) {\n try {\n new NbDialogOperator(\"Warning\").close();\n } catch (TimeoutExpiredException e) {\n }\n }\n }", "@Test\r\n\tpublic void TC101() {\r\n\t\t\r\n\t\t// 1. User opens the JBrick application\r\n\t\t// => The Code Frame has one file open in the code frame (center) and a status pane (bottom)\r\n\t\t// (No file has been opened before hand, this is the equivalent to opening the application for the first time.)\r\n\t\t\r\n\t\tMainWindow jbricks = StartupFunctions.newJBricksInstance(\"JBricks - TC101\");\r\n\t\tComponent editorPane = ContainerFunctions.getEditorPane(jbricks);\r\n\t\tComponent statusPane = ContainerFunctions.getStatusPane(jbricks);\r\n\t\t\r\n\t\tassertTrue(editorPane.getLocationOnScreen().getY() < statusPane.getLocationOnScreen().getY());\r\n\t\t\r\n\t}", "private void initUI() {\n }", "@Test\n\tpublic void testGUIPanels() {\n\t\tfinal int RGB_GRAY = 238;\n\t\tColor defaultColor = new Color(RGB_GRAY, RGB_GRAY, RGB_GRAY);\n\n\t\tassertThat(window.requireEnabled());\n\t\tassertThat(window.requireVisible());\n\t\tassertThat(window.requireTitle(\"Parabolic shot!\"));\n\n\t\tassertThat(window.panel(\"Control panel\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Control panel\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireVisible());\n\n\t\tassertThat(window.panel(\"Information panel\").requireVisible());\n\t\tassertThat(window.panel(\"Information panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Information panel\").requireEnabled());\n\n\t\tassertThat(window.panel(\"Parabolic shot panel\").requireVisible());\n\t\tassertThat(window.panel(\"Parabolic shot panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Parabolic shot panel\").requireEnabled());\n\t}", "Gui getGui();", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n JDayChooser jDayChooser0 = new JDayChooser();\n SystemColor systemColor0 = SystemColor.controlLtHighlight;\n systemColor0.getColorSpace();\n jDayChooser0.setWeekdayForeground(systemColor0);\n boolean boolean0 = false;\n jDayChooser0.setDayBordersVisible(false);\n System.setCurrentTimeMillis(4294977024L);\n List<Locale.LanguageRange> list0 = null;\n ImageNode imageNode0 = new ImageNode();\n HelpSet helpSet0 = new HelpSet();\n DefaultHelpModel defaultHelpModel0 = new DefaultHelpModel(helpSet0);\n JHelp jHelp0 = new JHelp(defaultHelpModel0);\n BasicHelpUI basicHelpUI0 = new BasicHelpUI(jHelp0);\n // Undeclared exception!\n try { \n imageNode0.remove((Object) basicHelpUI0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // javax.help.plaf.basic.BasicHelpUI@23af518c is not a GraphicsNode\n //\n verifyException(\"org.apache.batik.gvt.CompositeGraphicsNode\", e);\n }\n }", "@Test(timeout=300000)\n public void test02() throws Throwable {\n ControllerTransferListener controllerTransferListener0 = new ControllerTransferListener((CjdbcGui) null);\n controllerTransferListener0.mouseDragged((MouseEvent) null);\n }", "public static void main(String[] args) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n DrawCanvas canvas;\n TicTacToeGui ttgui = new TicTacToeGui();\n \n /**CUI prompt user information to save accounts\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"Enter your username: \");\n String user = scanner.nextLine();\n System.out.print(\"Enter your password: \");\n String userpw = scanner.nextLine();\n Accounts users = ttgui.checkUser(user,userpw); **/\n \n }\n });\n }", "@Test(timeout = 4000)\n public void test47() throws Throwable {\n JYearChooser jYearChooser0 = new JYearChooser();\n JDayChooser jDayChooser0 = new JDayChooser(true);\n jDayChooser0.setEnabled(true);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n KeyEvent keyEvent0 = new KeyEvent(jDayChooser0, 3, (-1609L), 1359, 34, 'E');\n KeyEvent keyEvent1 = new KeyEvent(jYearChooser0, 34, 64, 3, 35, 'x');\n jDayChooser0.keyPressed(keyEvent1);\n jDayChooser0.setDay(34);\n JDayChooser.DecoratorButton jDayChooser_DecoratorButton0 = jDayChooser0.new DecoratorButton();\n Button button0 = null;\n try {\n button0 = new Button();\n fail(\"Expecting exception: HeadlessException\");\n \n } catch(HeadlessException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.awt.GraphicsEnvironment\", e);\n }\n }", "void processGUIInput(String cmd){\n try{\n debugWriter.write(cmd);\n debugWriter.flush();\n //}\n }catch(IOException e){\n //Eat it\n e.printStackTrace();\n //throw new InvalidInteractionsException();\n }\n }", "@Override\n public void initGui()\n {\n super.initGui();\n }", "@Override\r\n public void updateUI() {\r\n }", "public String runGUI(){\n ArrayList<ArrayList<Furniture>> all = getSubsets(getFoundFurniture());\n ArrayList<ArrayList<Furniture>> valid = getValid(all);\n ArrayList<ArrayList<Furniture>> ordered = comparePrice(valid);\n ArrayList<ArrayList<Furniture>> orders = produceOrder();\n return checkOrder(orders, true);\n }", "public static void main(String[] args) {\n \n javax.swing.SwingUtilities.invokeLater(new Runnable() {\n \npublic void run() {\n \n createAndShowGUI(); \n \n}\n \n });\n }", "@Override\n\tpublic void setGui(WaiterGui gui) {\n\t\t\n\t}", "@Test(timeout=300000)\n public void test03() throws Throwable {\n ControllerTransferListener controllerTransferListener0 = new ControllerTransferListener((CjdbcGui) null);\n controllerTransferListener0.mouseExited((MouseEvent) null);\n }", "@Before\n public void setUp() throws Exception {\n Map<String, String> salesRanking = new LinkedHashMap<>();\n salesRanking.put(\"abc\", \"def\");\n salesRanking.put(\"123\", \"456\");\n salesRanking.put(\"abc\", \"456\");\n salesRanking.put(\"123\", \"def\");\n guiRobot.interact(() -> salesRankingWindow = new SalesRankingWindow(salesRanking));\n FxToolkit.registerStage(salesRankingWindow::getRoot);\n //salesRankingWindowHandle = new SalesRankingWindowHandle(salesRankingWindow.getRoot(), salesRanking);\n }", "private GUIMain() {\n\t}", "@Test\n\tpublic void testInfobox() {\t\n\t\tTextArea info = (TextArea) s.lookup(\"#T6_infobox_TextArea\");\n\t\tTextArea compInfo = (TextArea) s.lookup(\"#T6_composite_infobox_TextArea\");\n\t\tTextArea parmInfo = (TextArea) s.lookup(\"#T6_parm_infobox_TextArea\");\n\t\tTextArea pasrmInfo = (TextArea) s.lookup(\"#T6_pasrm_infobox_TextArea\");\n\t\tTextArea ldInfo = (TextArea) s.lookup(\"#T6_ld_infobox_TextArea\");\n\t\tclickOn(\"#Main_compatibility_Button\");\n\t\tmoveTo(\"#T6_more_info_Text\");\n\t\tif (!info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(1);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_composite_Text\");\n\t\tif (info.isVisible()||!compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(2);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_parm_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||!parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(3);\n\t\t\tassertTrue(false);\n\t\t\t\n\t\t}\n\t\tmoveTo(\"#T6_pasrm_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||!pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(5);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_ld_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||!ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(5);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_generate_Button\");\n\t\t// if any infobox is shown fail test case\n\t\tassertFalse(info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible());\n\t\t\n\t}", "@Test\n\tpublic void setFrameTest() throws Exception {\n\t\tif (Configuration.shufflerepeat &&\n\t\tConfiguration.featureamp&&\n\t\tConfiguration.playengine&&\n\t\tConfiguration.choosefile&&\n\t\tConfiguration.gui&&\n\t\tConfiguration.skins&&\n\t\tConfiguration.light&&\n\t\tConfiguration.filesupport&&\n\t\tConfiguration.showtime&&\n\t\tConfiguration.volumecontrol&&\n\t\tConfiguration.mp3 &&\n\t\tConfiguration.queuetrack) {\n\t\t\tstart();\n\t\t\tgui.setFrame();\n\t\t\tJFrame g = (JFrame) MemberModifier.field(Application.class, \"frmAsd\").get(gui);\n\t\t\tassertTrue(g.getBounds().getX() == 100);\n\t\t\tassertTrue(g.getBounds().getY() == 100);\n\t\t\tassertTrue(g.getBounds().getWidth() == 1207);\n\t\t\tassertTrue(g.getBounds().getHeight() == 511);\n\t\t\tassertTrue(g.getDefaultCloseOperation() == JFrame.EXIT_ON_CLOSE);\n\t\t\tassertTrue(g.getContentPane().getLayout() == null);\n\t\t\tassertTrue(g.getContentPane() != null);\n\t\t}\n\n\t}", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n SystemColor systemColor0 = SystemColor.textText;\n JDayChooser jDayChooser0 = new JDayChooser();\n JDayChooser.DecoratorButton jDayChooser_DecoratorButton0 = jDayChooser0.new DecoratorButton();\n jDayChooser_DecoratorButton0.isFocusable();\n jDayChooser_DecoratorButton0.getIconTextGap();\n jDayChooser0.maxDayCharacters = 15;\n MultiButtonUI multiButtonUI0 = new MultiButtonUI();\n multiButtonUI0.paint((Graphics) null, jDayChooser0);\n // Undeclared exception!\n try { \n multiButtonUI0.getMinimumSize(jDayChooser_DecoratorButton0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "private void setUpGUI() {\n \n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n enzymeTypeCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useFlankingCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n monoPrecursorCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n peptideListCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n decoyFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n keepTerminalAaCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeMethionineCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n exactPvalueCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n spScoreCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n chargesCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useNeutralLossCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n outputFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeTempFoldersCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n \n minPepLengthTxt.setEditable(editable);\n minPepLengthTxt.setEnabled(editable);\n maxPepLengthTxt.setEditable(editable);\n maxPepLengthTxt.setEnabled(editable);\n minPrecursorMassTxt.setEditable(editable);\n minPrecursorMassTxt.setEnabled(editable);\n maxPrecursorMassTxt.setEditable(editable);\n maxPrecursorMassTxt.setEnabled(editable);\n monoPrecursorCmb.setEnabled(editable);\n removeMethionineCmb.setEnabled(editable);\n //minPtmsPerPeptideTxt.setEditable(editable);\n //minPtmsPerPeptideTxt.setEnabled(editable);\n maxPtmsPerPeptideTxt.setEditable(editable);\n maxPtmsPerPeptideTxt.setEnabled(editable);\n maxVariablePtmsPerTypeTxt.setEditable(editable);\n maxVariablePtmsPerTypeTxt.setEnabled(editable);\n enzymeTypeCmb.setEnabled(editable);\n peptideListCmb.setEnabled(editable);\n decoyFormatCombo.setEnabled(editable);\n keepTerminalAaCombo.setEnabled(editable);\n decoySeedTxt.setEditable(editable);\n decoySeedTxt.setEnabled(editable);\n removeTempFoldersCmb.setEnabled(editable);\n exactPvalueCombo.setEnabled(editable);\n spScoreCombo.setEnabled(editable);\n minSpectrumMzTxt.setEditable(editable);\n minSpectrumMzTxt.setEnabled(editable);\n maxSpectrumMzTxt.setEditable(editable);\n maxSpectrumMzTxt.setEnabled(editable);\n minPeaksTxt.setEditable(editable);\n minPeaksTxt.setEnabled(editable);\n chargesCombo.setEnabled(editable);\n removePrecursorPeakCombo.setEnabled(editable);\n removePrecursorPeakToleranceTxt.setEditable(editable);\n removePrecursorPeakToleranceTxt.setEnabled(editable);\n useFlankingCmb.setEnabled(editable);\n useNeutralLossCmb.setEnabled(editable);\n mzBinWidthTxt.setEditable(editable);\n mzBinWidthTxt.setEnabled(editable);\n mzBinOffsetTxt.setEditable(editable);\n mzBinOffsetTxt.setEnabled(editable);\n numberMatchesTxt.setEditable(editable);\n numberMatchesTxt.setEnabled(editable);\n outputFormatCombo.setEnabled(editable);\n \n }", "public void run() {\n criaGUI();\n \n }", "@Test\n\n\tpublic void testCallMain() {\n\n\t\tDABPanel.main(new String[0]);\n\n\t\tSwingUtilities.invokeLater(() -> {\n\n\t\t\tfor (Frame frame : Frame.getFrames()) {\n\n\t\t\t\tframe.dispose();\n\n\t\t\t}\n\n\t\t});\n\n\t}", "@Test\n public void TEST_FR_SELECTDIFFICULTY_UI() {\n GameData.gameDifficulty = \"unchanged\";\n ChooseDifficultyUI testUI = new ChooseDifficultyUI();\n clickButton(testUI, 1, \"easy\");\n clickButton(testUI, 2, \"medium\");\n clickButton(testUI, 3, \"hard\");\n }", "@Test(timeout=300000)\n public void test10() throws Throwable {\n BackendTransferListener backendTransferListener0 = new BackendTransferListener((CjdbcGui) null);\n backendTransferListener0.mouseMoved((MouseEvent) null);\n }", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n RefSystemGUI.main(args);\n }", "@Test\n public void testHandleBtnAlterar() throws Exception {\n }", "public void verifyGUIDeleteConfirmPopup() {\n try {\n String errorMessage = \"Can not test verify gui of delete confirm popup because ToDo list is empty \";\n boolean result = true;\n getLogger().info(\"Verify GUI Delete ToDo popup when click trash ToDo icon.\");\n boolean checkEmptyToDoListRow = checkListIsEmpty(eleToDoRowList);\n boolean checkEmptyToDoCompleteListRow = checkListIsEmpty(eleToDoCompleteRowList);\n // Check ToDo row list is empty\n if (checkEmptyToDoListRow && checkEmptyToDoCompleteListRow) {\n NXGReports.addStep(\"TestScript Failed: \" + errorMessage, LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n AbstractService.sStatusCnt++;\n return;\n }\n // Get id delete row\n String idRow = getIdRowDelete(checkEmptyToDoListRow, checkEmptyToDoCompleteListRow, eleToDoCheckboxRow, eleToDoCompleteCheckboxRow,\n eleToDoRowList, eleToDoCompleteRowList);\n //verify delete confirm icon\n clickElement(trashToDoBtnEle, \"Trash icon click\");\n //verify popup\n PopUpPage popUpPage = new PopUpPage(getLogger(), getDriver());\n result = popUpPage\n .verifyGUIPopUpDelete(categoryTitleEle, centerDeleteToDoDescriptionEle, cancelDeletedToDoButtonEle, deletedToDoButtonEle);\n if (!result) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"TestScript Failed: Verify gui of delete confirm popup in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n //verify close popup icon\n // Check row is delete out of list\n if (!checkEmptyToDoListRow) {\n result = checkRowIsDeleteOutOfToDoList(eleToDoRowList, idRow);\n }\n if (!checkEmptyToDoCompleteListRow && result) {\n result = checkRowIsDeleteOutOfToDoList(eleToDoCompleteRowList, idRow);\n }\n Assert.assertFalse(result, \"Popup icon close does not work\");\n NXGReports.addStep(\"Close popup icon working correct\", LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"TestScript Failed: Verify gui of delete confirm popup in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }", "@Test\n public void testNoOpenDaysCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"18:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"23:00\");\n window.button(\"addStoreBtn\").click();\n window.optionPane().okButton().click();\n window.label(\"openDaysFalseLbl\").requireVisible();\n }", "@Test\n public final void testClickButton() {\n spysizedialog.getStartButton().doClick();\n }", "public void buildGui() {\n\t}", "@Test\n\tpublic void test() {\n\t\tJFrame frame = new JFrame(\"My Screen\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(1000, 1000);\n\t\t\n\t\t//Create a dashboard\n\t\tGameDashboard dashboard = new GameDashboard();\n\t\t\n\t\t//Add a button to the dashboard\n\t\tdashboard.addButton(\"b1\", \"button1\", 100, 60, 10, 10);\n\t\t\n\t\t//Set the dashboard background color to red\n\t\tdashboard.setBackground(Color.RED);\n\t\t\n\t\t//Add the dashboard to the frame window\n\t\tframe.getContentPane().add(dashboard);\n\t\tframe.setVisible(true);\n\t\t\n\t\t//Flip the visibility status of the button 10 times.\n\t\tfor (int i = 0; i< 10; i++) {\n\t\t\tdashboard.flipStatus(\"b1\");\n\t\t\tSleeper.sleep(200);\n\t\t}\n\n\t}", "public anywheresoftware.b4a.objects.PanelWrapper _asview() throws Exception{\nif (true) return _wholescreen;\n //BA.debugLineNum = 37;BA.debugLine=\"End Sub\";\nreturn null;\n}", "private static void getWindowHandles() {\n\t\t\r\n\t}", "public void testExecute() {\n panel.execute();\n }", "public Object getGuiObject();", "protected GuiTestObject html_main() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"html_main\"));\n\t}", "@Test\n public void testMouseClicked() {\n System.out.println(\"mouseClicked\");\n MouseEvent e = null; \n //instance.mouseClicked(e);\n \n }", "@Test\n\tpublic void addButtons__wrappee__ShowTimeTest() throws Exception {\n\t\t\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\t!Configuration.mp3 &&\n\t\t\t\t!Configuration.ogg &&\n\t\t\t\tConfiguration.wav &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\t!Configuration.showtime) {\t\n\t\t\tstart();\n\t\t\t\n\t\t\tWhitebox.invokeMethod(gui, \"addButtons__wrappee__GUI\");\n\t\t\tassertFalse(gui.showTime);\n\t\t}\n\t}", "@Override\n\tpublic void transitToGUI(int i) {\n\t\t\n\t}", "private void test() {\n\n\t}", "@Test(timeout = 4000)\n public void test165() throws Throwable {\n TextArea textArea0 = new TextArea((Component) null, (String) null, \"XYD6eL5K7VD|_+{7`{$\");\n // Undeclared exception!\n try { \n textArea0.buttonInput(\"XYD6eL5K7VD|_+{7`{$\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n verifyException(\"wheel.components.ComponentCreator\", e);\n }\n }", "@Override\r\n\tprotected void onUnitSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"unit button implementation\");\r\n\t}", "@Override\n\tpublic boolean takeControl() {\n\t\treturn false;\n\t}", "@Test\r\n\tpublic void TC103() {\r\n\t\t\r\n\t\t// 1. User opens the JBrick application \r\n\t\t// => The Code Frame has one file open in the code frame (center) and a status pane (bottom)\r\n\t\t// (No file has been opened before hand, this is the equivalent to opening the application for the first time.)\r\n\t\t\r\n\t\tfinal MainWindow jbricks = StartupFunctions.newJBricksInstance(\"JBricks - TC102\");\r\n\t\tfinal Component editorPane = ContainerFunctions.getEditorPane(jbricks);\r\n\t\tfinal Component statusPane = ContainerFunctions.getStatusPane(jbricks);\r\n\t\t\r\n\t\tassertTrue(editorPane.getLocationOnScreen().getY() < statusPane.getLocationOnScreen().getY()); \r\n\t\t\r\n\t\t// 2. User selects the \"Show File Viewer\"\r\n\t\t// => The file viewer is opened on the left of the code and status frame. The viewer shows the files and folders in the workspace directory set in the preferences.\r\n\t\t\r\n\t\tMenuFunctions.showFilePane(jbricks);\r\n\t\tTestUtils.waitUntil(5000, new Callable<Object>() {\r\n\t\t\t@Override\r\n\t\t\tpublic Object call() throws Exception {\r\n\t\t\t\treturn (ContainerFunctions.getFilePane(jbricks) != null);\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal Component filePane = ContainerFunctions.getFilePane(jbricks);\r\n\r\n\t\tdouble filePaneX = filePane.getLocationOnScreen().getX();\r\n\t\tdouble editorPaneX = editorPane.getLocationOnScreen().getX();\r\n\t\tassertTrue(filePaneX < editorPaneX);\r\n\t\t\r\n\t\t// Any further testing, including what documents are listed in the file Pane, requires more decoupling\r\n\t\t\t\t\r\n\t\t\r\n\t}", "@Test\n\tpublic void testGetFrame() {\n\t}", "@Override\n public void testInit() {\n CommandScheduler.getInstance().cancelAll();\n //left_belt.set(ControlMode.PercentOutput,0.5);\n }", "@Test\n\tpublic void aaddMenu__wrappee__ChooseFile_Test() throws Exception {\n//\t\tConfiguration.mp3=true;\n//\t\tConfiguration.gui=true;\n//\t\tConfiguration.skins=true;\n//\t\tConfiguration.light=true;\n//\t\tConfiguration.filesupport=true;\n//\t\tConfiguration.showtime=true;\n//\t\tConfiguration.tracktime=true;\n//\t\tConfiguration.choosefile=true;\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.mp3 &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.tracktime &&\n\t\t\t\tConfiguration.choosefile\n\t\t\t\t) {\n\t\t\tstart();\n\t\t\t\n\t\t\t\n\t\t\tWhitebox.invokeMethod(gui, \"addMenu__wrappee__ChooseFile\");\n\t\t\tJMenuBar bar = (JMenuBar) MemberModifier.field(Application.class, \"menuBar\").get(gui);\n\t\t\tassertNotNull(bar);\n\t\t}\n\t}", "@Test\n\tpublic void setFrame_PTest() throws Exception {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\t!Configuration.queuetrack ) {\n\t\t\t\n\t\t\t\n\t\t\tstart();\n\t\t\tgui.setFrame();\n\t\t\n\t\t\tJFrame g = (JFrame) MemberModifier.field(Application.class, \"frmAsd\").get(gui);\n\t\t\t\n\t\t\tassertTrue(g.getBounds().getX() == 100);\n\t\t\tassertTrue(g.getBounds().getY() == 100);\n\t\t\tassertTrue(g.getBounds().getWidth() == 807);\n\t\t\tassertTrue(g.getBounds().getHeight() == 511);\n\t\t\tassertTrue(g.getDefaultCloseOperation() == JFrame.EXIT_ON_CLOSE);\n\t\t\tassertTrue(g.getContentPane().getLayout() == null);\n\t\t\tassertTrue(g.getContentPane() != null);\n\t\t}\n\t}", "public void runInUi(ElexisEvent ev){}", "private void performDirectEdit() {\n\t}", "public static String _butpaso3_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 171;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 172;BA.debugLine=\"butPaso4.Visible = True\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 173;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 174;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 175;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 176;BA.debugLine=\"lblPaso3.Visible = True\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 177;BA.debugLine=\"lblPaso3a.Visible = True\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 178;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 179;BA.debugLine=\"imgPupas.Visible = True\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 180;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 181;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 182;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 183;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 184;BA.debugLine=\"lblEstadio.Text = \\\"Pupa\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Pupa\"));\n //BA.debugLineNum = 185;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso4, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso4,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 186;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Test\n void test() {\n Game g = init(\"gen_2p_02\");\n List<Player> players = g.getData().getPlayers();\n wrappedIllegalCommand(g, players.get(0), \"tool 6\");\n wrappedLegalCommand(g, players.get(0), \"pick 1\");\n assertTrue(g.isUndoAvailable());\n wrappedLegalCommand(g, players.get(0), \"tool 6\");\n assertFalse(g.isUndoAvailable());\n lightestShade(g, players);\n notLightestShade(g, players);\n }", "@Before\n\n\tpublic void setUp() {\n\n\t\tdummyFrame = new JFrame();\n\n\t\tdabPanel = new DABPanel(dummyFrame);\n\n\t\tdummyFrame.setContentPane(dabPanel);\n\n\t\txCombo = findComponent(dabPanel, X_COMBO);\n\n\t\tyCombo = findComponent(dabPanel, Y_COMBO);\n\n\t\tdirCombo = findComponent(dabPanel, DIR_COMBO);\n\n\t\tdrawButton = findComponent(dabPanel, DRAW_BUTTON);\n\n\t\tp1ScoreLabel = findComponent(dabPanel, P1_SCORE_LABEL);\n\n\t\tp2ScoreLabel = findComponent(dabPanel, P2_SCORE_LABEL);\n\n\t\tturnLabel = findComponent(dabPanel, TURN_LABEL);\n\n\t\tdabGrid = findComponent(dabPanel, DAB_GRID);\n\n\t}", "public static String _butpaso2_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 152;BA.debugLine=\"butPaso3.Visible = True\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 153;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 154;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 155;BA.debugLine=\"lblPaso2a.Visible = True\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 156;BA.debugLine=\"lblPaso2b.Visible = True\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 157;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 158;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 159;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 160;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 161;BA.debugLine=\"imgLarvas.Visible = True\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 162;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 163;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 164;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 165;BA.debugLine=\"lblEstadio.Text = \\\"Larva\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Larva\"));\n //BA.debugLineNum = 166;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso3, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso3,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 168;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "protected GuiTestObject okbutton() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"okbutton\"));\n\t}", "public void testGetButton() {\n\t\tassertEquals(this.myButton.getJComponent(),this.myButton.getButton());\n\t}", "private void initGui(){\n // TODO: add code for GUI initialization for a given auction\n }", "@Test\n public void testHandleBtnExcluir() throws Exception {\n }", "@Test\n public void testMousePressed() {\n System.out.println(\"mousePressed\");\n MouseEvent e = null; \n //instance.mousePressed(e);\n \n }", "void showPlaceholderGui() {\n this.game.a(new da());\n }", "private void show(final SwingTestBase<?> testCase) {\n try {\n for (int i=0; i<testCase.numTests; i++) {\n show(testCase.create(i), i, testCase.numTests);\n }\n } catch (Exception e) {\n warning(e);\n }\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@Test\r\n\tpublic void testButtonPressedSafety() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tvend.enableSafety();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}", "public static void main(String[] args) {\r\n UserInterface ui;\r\n try {\r\n ui = new UserInterface();\r\n \r\n ui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n ui.pack(); \r\n ui.setVisible(true); \r\n } catch(InterruptedException ex) {\r\n \r\n }\r\n\r\n }", "@Test\n public void testFailedStoreCreationCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"00:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"00:00\"); \n window.button(\"addStoreBtn\").click();\n window.optionPane().requireInformationMessage().requireMessage(\"Store Creation Failed\\n\");\n }", "protected void setUp() {\n container =\n new DialogFloatContainer(new DefaultDock(new DockableWrapper(new JButton(\"Failure Test\"))));\n }", "@Override\n protected void windowInit ()\n {\n }", "public static String _butpaso4_click() throws Exception{\nmostCurrent._butpaso1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 189;BA.debugLine=\"butPaso2.Visible = False\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 190;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 191;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 192;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 193;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 194;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 195;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 196;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 197;BA.debugLine=\"lblPaso4.Visible = True\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 198;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 199;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 200;BA.debugLine=\"imgMosquito.Visible = True\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 201;BA.debugLine=\"imgMosquito.Top = 170dip\";\nmostCurrent._imgmosquito.setTop(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (170)));\n //BA.debugLineNum = 202;BA.debugLine=\"imgMosquito.Left = 30dip\";\nmostCurrent._imgmosquito.setLeft(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (30)));\n //BA.debugLineNum = 203;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 204;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 205;BA.debugLine=\"lblEstadio.Text = \\\"Mosquito\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Mosquito\"));\n //BA.debugLineNum = 206;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 207;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Test public void test() {\n click(\"#txfEmail\").\n type(SMALL_EMAIL_BODY).\n press(KeyCode.SHIFT).\n press(KeyCode.DIGIT2).\n release(KeyCode.SHIFT).\n release(KeyCode.DIGIT2).\n type(EMAIL_SERVER);\n click(\"#psfPassword\").type(PASS);\n click(\"#btnLogin\");\n sleep(3000);\n assertEquals(UStage.getInstance().getCurrentController().getClass(), CMain.class);\n verifyThat(\"#lblNickname\", hasText(NICK));\n verifyThat(\"#lblProfileName\", hasText(NAME));\n }" ]
[ "0.62712413", "0.6112556", "0.60606873", "0.6000571", "0.5939146", "0.5912143", "0.5906486", "0.58928585", "0.58812994", "0.58662313", "0.58601516", "0.58341503", "0.5819495", "0.5809791", "0.5808093", "0.57800883", "0.57800883", "0.5750848", "0.5739075", "0.57364565", "0.57348746", "0.57009256", "0.5696502", "0.5678986", "0.56607527", "0.5649811", "0.5612695", "0.56117475", "0.5607301", "0.5598736", "0.5595304", "0.55864936", "0.5585344", "0.5579654", "0.55787", "0.5559042", "0.5542982", "0.55429673", "0.55409724", "0.553832", "0.5537666", "0.55370176", "0.5535654", "0.5532326", "0.55294925", "0.550622", "0.5504992", "0.5504585", "0.5497262", "0.54967433", "0.5496717", "0.54897666", "0.54838645", "0.54725957", "0.5471873", "0.54634595", "0.5460406", "0.5456406", "0.5450778", "0.5450333", "0.5439322", "0.5428981", "0.5428005", "0.5420039", "0.5399239", "0.5391858", "0.538528", "0.5384577", "0.53797644", "0.53789955", "0.53745955", "0.53737944", "0.5373233", "0.53677833", "0.5359966", "0.5359181", "0.535695", "0.5356923", "0.53568643", "0.53549534", "0.53486127", "0.5347338", "0.5341663", "0.53404117", "0.5339244", "0.53388834", "0.5338668", "0.53343904", "0.5333524", "0.53331935", "0.5326571", "0.5325591", "0.53250265", "0.53243434", "0.53232604", "0.53214437", "0.532089", "0.53186995", "0.5316081", "0.5315651", "0.5314445" ]
0.0
-1
note can only test nonGUI part of this code
@Test public void testIsVisible() { ip = new ImagePlus(); assertFalse(ip.isVisible()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void guiElementsTest() throws Exception {\n\t\tif (Configuration.shufflerepeat &&\n\t\tConfiguration.featureamp&&\n\t\tConfiguration.playengine&&\n\t\tConfiguration.choosefile&&\n\t\tConfiguration.gui&&\n\t\tConfiguration.skins&&\n\t\tConfiguration.light&&\n\t\tConfiguration.filesupport&&\n\t\tConfiguration.showtime&&\n\t\tConfiguration.volumecontrol&&\n\t\tConfiguration.mute\n\t\t) {\t\n\n\t\tstart();\n\t\tJMenu menu = (JMenu) MemberModifier.field(Application.class, \"menu\").get(gui);\n\t\tassertEquals(menu.getName(), \"menu\");\n\t\tJMenuItem menuItem = menu.getItem(0);\n\t\tassertTrue(menuItem.getComponentListeners() != null);\n\t\t}\n\t}", "@Override\n\tpublic void guiTinNhan() {\n\n\t}", "void gui(){\n _hasGUI = true;\n }", "private static void initAndShowGUI() {\n }", "private void updateGUIStatus() {\r\n\r\n }", "@Test\n public void TEST_GOTO_CHOOSING_UI() {\n GameData.mainMenuState = false;\n GameData.chooseDifficultyState = true;\n ChooseDifficultyUI testUI = new ChooseDifficultyUI();\n GameData.currentUI = testUI;\n\n assertFalse(GameData.currentUI.getClass() == ChoosingUI.class);\n assertFalse(GameData.chooseDifficultyState == false);\n assertFalse(GameData.choosingBoatState == true);\n //Create a click position at a point within the button's area (in this case, exactly central).\n Vector2 clickPosition = new Vector2(SCREEN_WIDTH/2, 100 + BUTTON_HEIGHT/2);\n testUI.getInput(SCREEN_WIDTH, clickPosition);\n //test that clickPosition is within area\n assertTrue(clickPosition.x < SCREEN_WIDTH / 2 - BUTTON_WIDTH / 2 + BUTTON_WIDTH);\n assertTrue(clickPosition.x > SCREEN_WIDTH / 2 - BUTTON_WIDTH / 2);\n assertTrue(clickPosition.y < 100 + BUTTON_HEIGHT);\n assertTrue(clickPosition.y > 100);\n //Check changes have been made.\n assertTrue(GameData.currentUI.getClass() == ChoosingUI.class);\n assertTrue(GameData.chooseDifficultyState == false);\n assertTrue(GameData.choosingBoatState == true);\n }", "public void testAccessComponents() throws Exception\n {\n executeScript(SCRIPT);\n assertNotNull(\"Cannot access button\", builderData\n .getComponentHandler(\"dlgOkButton\"));\n assertNotNull(\"Cannot access label\", builderData\n .getWidgetHandler(\"label\"));\n }", "private void tests(Component comp){\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(Component)> - ======= Tested component=\"+comp.getClass().getName());\n \n \n testContainer(comp);\n \n /* H1 -> Hack for JLabels - JLabel isn't focusTraversable, but If we want test labelFor pointing we must have all JLabels. */\n if (testSettings.AP_noLabelFor) {\n if (testSettings.AP_showingOnly && !comp.isShowing()){\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(\"+comp.getClass().getName()+\")> - Label For => NOT TESTED - because : testSettings.AP_showingOnly=\"+testSettings.AP_showingOnly+\" && !!comp.isShowing()=\"+!comp.isShowing());\n return;\n }\n \n if(comp instanceof JLabel) {\n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(Component)> - \\t -add label =\"+comp);\n \n labels.add(comp);\n }\n }\n \n /* Check Labels which have set labelFor have mnemonics */\n if ((comp instanceof JLabel) && testSettings.AP_mnemonics && testSettings.AP_m_label) {\n JLabel label = (JLabel) comp;\n int mnemonic = label.getDisplayedMnemonic();\n \n // LOG ONLY -/\n if(debugLog) System.err.print(LOG_CAPTION+\" - <tests(Component)> - \\t - label Mnemonic=\"+mnemonic+\" label.getLabelFor()=\"+label.getLabelFor()+\" label.getDisplayedMnemonic()=\"+label.getDisplayedMnemonic());\n \n Component labelF = label.getLabelFor();\n \n if (labelF != null){\n // hack for JDK1.4 or higher if((labelF.isFocusTraversable()) && (label.getDisplayedMnemonic() <= 0))\n if(testFocusability(labelF) && (mnemonic <= 0))\n noMnemonic.add(comp);\n \n if(label.isShowing())\n testMnemonics(label.getText(), mnemonic, comp);\n \n }\n }\n \n \n // Test implement Accessible\n testImplementAccessible(comp);\n \n /* Test parent (Window) although will not test non-showed or non-traversable*/\n if(!comp.equals(parent)){\n if (testSettings.AP_showingOnly && !comp.isShowing()){\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(\"+comp.getClass().getName()+\")> - NOT TESTED - because : testSettings.AP_showingOnly=\"+testSettings.AP_showingOnly+\" && !!comp.isShowing()=\"+!comp.isShowing());\n return;\n }\n \n // hack for JDK 1.4 or higner if (testSettings.AP_focusTraversableOnly && !comp.isFocusTraversable()){\n if (testSettings.AP_focusTraversableOnly && !testFocusability(comp)){\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(\"+comp.getClass().getName()+\")> - NOT TESTED - because : testSettings.AP_focusTraversableOnly=\"+testSettings.AP_focusTraversableOnly+\" && !testFocusability(comp)=\"+!testFocusability(comp));\n return;\n }\n }\n \n /* Check if class is excluded from the test */\n String classname = comp.getClass().toString();\n if (classname.startsWith(\"class \")){\n classname = classname.substring(6);\n }\n if (excludedClasses.contains(classname)){\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(\"+comp.getClass().getName()+\")> - NOT TESTED - because : Excluded classes contains this class.\");\n return;\n }\n \n \n // Test Accessible Name and Accessible Description\n if(comp instanceof Accessible){\n AccessibleContext comp_AC = comp.getAccessibleContext();\n \n if(comp_AC != null) {\n testAccessibleName(comp, comp_AC);\n testAccessibleDescription(comp, comp_AC);\n } else {\n noName.add(comp);\n noDesc.add(comp);\n }\n }\n \n \n // Test Label For set\n testLabelForSet(comp);\n \n // Test Buttons Mnemonics\n testButtonsMnemonics(comp);\n \n // Test Component Name\n if(testSettings.test_name){\n testComponentName(comp);\n }\n \n }", "@Test\n public void testRedButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"ilias\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"redButton4\").requireVisible();\n }", "private GuiTest() {\n // Load custom resources (fonts, etc.)\n ResourceLoader.loadResources();\n\n // Load the user accounts into the system\n UserController.getInstance().loadUsers();\n\n // Set up GuiController and the main window.\n GuiController.instantiate(1280, 720, \"FPTS\");\n\n char[] password = {'p', 'a', 's', 's', 'w', 'o', 'r', 'd'};\n UserController.getInstance().login(\"rhochmuth\", password);\n\n // Show the screen/window\n PortfolioController.getInstance().showAddHoldingView();\n GuiController.getInstance().showWindow();\n\n // Load the market information and update it every 2 minutes\n MarketController.getInstance().StartTimer();\n }", "@Test\n public void testGreenButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"DateAvailable\").selectItem(1);\n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"greenButton4\").requireVisible();\n }", "@Test\n \tpublic void testFocusHandling() throws FactoryException {\n \n \t\tMainUI ui = new MainUI();\n \t\tButtonPanel bp = new ButtonPanel();\n \t\tui.withModelInteractor(pi).withButtonPanel(bp);\n \t\tRobot robot = BasicRobot.robotWithCurrentAwtHierarchy();\n \n \t\tui.initialize();\n \t\tui.start();\n \t\tbp.start();\n \n \t\t// perform tab key press and wait until it took place\n \t\trobot.pressAndReleaseKey(KeyEvent.VK_TAB);\n \t\trobot.waitForIdle();\n \n \t\t// perform left key press and wait until it took place\n \t\trobot.pressAndReleaseKey(KeyEvent.VK_LEFT);\n \t\trobot.waitForIdle();\n \n \t\t// verify that the game registered the left key press and that it didn't\n \t\t// lose focus\n \t\tverify(pi).left();\n \t\tassertTrue(ui.isFocusOwner());\n \n \t}", "private InstructGui() {\n }", "@Test(timeout=300000)\n public void test08() throws Throwable {\n BackendTransferListener backendTransferListener0 = new BackendTransferListener((CjdbcGui) null);\n backendTransferListener0.mouseClicked((MouseEvent) null);\n }", "@Override\n public void initGUI() {\n\n }", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "public void verify() {\n lblPaletteContent();\n treePaletteContentsTree();\n lblJLabel();\n btMoveUp();\n btMoveDown();\n btRemove();\n btNewCategory();\n btAddFromJAR();\n btAddFromLibrary();\n btAddFromProject();\n btResetPalette();\n btClose();\n }", "public void testGUI(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tTestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick-parse\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \tTestUtils.view().getTextArea().scrollTo(3319,false);\n\t\tfinal java.awt.Point hrefP = TestUtils.view().getTextArea().offsetToXY(3319);\n\t\threfP.translate(30, 10);\n\t\tfinal JEditTextAreaFixture tf = new JEditTextAreaFixture(TestUtils.robot(),TestUtils.view().getTextArea()); \n\n\t\t// doesn't work: the hyperlink is not triggered...\n\t\ttf.robot.moveMouse(tf.target,hrefP);\n\t\ttf.robot.pressModifiers(InputEvent.CTRL_DOWN_MASK);\n\t\tPause.pause(2000);\n\t\threfP.translate(10,4);\n\t\ttf.robot.moveMouse(tf.target,hrefP);\n\t\tPause.pause(4000);\n\t\ttf.robot.click(tf.target, MouseButton.LEFT_BUTTON);\n\t\ttf.robot.releaseModifiers(InputEvent.CTRL_DOWN_MASK);\n\t}", "@Test(timeout=300000)\n public void test11() throws Throwable {\n ControllerTransferListener controllerTransferListener0 = new ControllerTransferListener((CjdbcGui) null);\n controllerTransferListener0.mousePressed((MouseEvent) null);\n }", "@Test\n\tpublic void test3_checkButtons() throws GeneralLeanFtException{\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tSystem.out.println(\"Test 3 - Check Buttons Started\");\n\t\t\t\n\t\t\t//Check that the Main window should exist\n\t\t\tassertTrue(mySet.appExistsorNot());\t\t\t\n\t\t\t\n\t\t\t//Toolbar Object\n\t\t\tToolBar toolbar = mySet.OR.MainWindow().ToolBar(); \n\n\t\t\t// Clicking the JButton displays the required frame\n\t\t\ttoolbar.getButton(\"JButton\").press();\n\t\t\t\n\t\t\t//Getting the Image Buttons in the Panel\n\t\t\tButton[] imgButtons = mySet.OR.MainWindow().ImageButtonsPanelUiObject()\n\t\t\t .findChildren(Button.class,new ButtonDescription.Builder().nativeClass(\"javax.swing.JButton\").build());\n\t\t\t \n\t\t\t//There should be 3 Image Buttons\n\t\t\tassertEquals(3, imgButtons.length);\n\t\t\t\n\t\t\t//Trigger the Mouse Entered Event for the each button in the Panel\t\t\t\t\n\t\t\tRobot robo = new Robot();\t\t\t\n\t\t\tfor(Button btn : imgButtons)\n\t\t\t{\t\t\t\t\n\t\t\t\trobo.mouseMove(btn.getAbsoluteLocation().x,btn.getAbsoluteLocation().y);\n\t\t\t\tThread.sleep(500);\n\t\t\t}\n\t\t\t\n\t\t\t//Store the Original Dimension\n\t\t\tDimension orginalDimension = mySet.OR.MainWindow().ImageButtonsPanelUiObject().getSize();\n\t\t\t\n\t\t\t//Increase the Size by Selecting the Pad Radio Button\n\t\t\tmySet.OR.MainWindow().Pad10RadioButton().click();\n\t\t\t\n\t\t\t//Verify that the radio button is checked\n\t\t\tassertTrue(mySet.OR.MainWindow().Pad10RadioButton().isChecked()==true);\n\t\t\t\n\t\t\t//Store the New Dimension\n\t\t\tDimension newDimension = mySet.OR.MainWindow().ImageButtonsPanelUiObject().getSize();\n\t\t\t\n\t\t\t//Assert that Height Increases and Width Decreases\n\t\t\tassertTrue((newDimension.width < orginalDimension.width) && (newDimension.height > orginalDimension.height));\n\t\t\t\n\t\t\t//Click the Enabled Check box\n\t\t\tmySet.OR.MainWindow().EnabledCheckBox().click();\n\t\t\t\n\t\t\t//Check that the Check Box has been unchecked \n\t\t\tassertTrue(mySet.OR.MainWindow().EnabledCheckBox().getState()==CheckedState.UNCHECKED);\n\t\t\t\n\t\t\t//Check that all Image Buttons are disabled\n\t\t\tfor(Button btn : imgButtons)\n\t\t\t{\n\t\t\t\tassertTrue(btn.isEnabled()==false);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\t\t\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Unexpected Error Occurred. Message = \" + e.getMessage() + \"Stack Trace = \");\n\t\t\te.printStackTrace();\n\t\t\tassertTrue(false);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tSystem.out.println(\"Test 3 - Check Buttons Finished\");\n\t\t}\n\t\t\n\t}", "protected void setupUI() {\n\n }", "private GUI()\n {\n makeGUI();\n }", "@Test\n public void correctTextsAndLabels() {\n loadAllStartScreenReferences();\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n Assert.assertEquals(\"Title is not Start!\", \"Start\", stage.getTitle());\n Assert.assertEquals(\"GameName is Incorrect!\", \"TicTacToe Game (3x3)\", gameNameText.getText());\n Platform.runLater(() -> clickOn(startGameButton));\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n settingPlayers();\n loadAllMainScreenReferences();\n Assert.assertEquals(\"Title is not Main!\", \"Main\", stage.getTitle());\n Assert.assertEquals(\"Instruction Label is incorrect!\", \"You go first !\",\n instructionLabel.getText());\n Platform.runLater(() -> clickOn(buttonFour));\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n Assert.assertEquals(\"Instruction Label did not change!\", \"Nice, choose one more!\",\n instructionLabel.getText());\n Platform.runLater(() -> clickOn(leaveButton));\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n Assert.assertEquals(\"Title is not Start!\", \"Start\", stage.getTitle());\n }", "@Override\r\n\tprotected void initUI() {\n\r\n\t}", "@Test\r\n\tpublic void testButtonPressedNotEnoughCred() {\r\n\t\tvend.getSelectionButton(0).press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\t\t\r\n\t}", "public testGUI() {\n this.currBuff = new Buffer(currentTab,\"\");\n initComponents();\n }", "@Test(timeout=300000)\n public void test01() throws Throwable {\n BackendTransferListener backendTransferListener0 = new BackendTransferListener((CjdbcGui) null);\n backendTransferListener0.mouseEntered((MouseEvent) null);\n }", "@Test\n public void testWrongOpenHoursCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"00:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"00:00\"); \n window.button(\"addStoreBtn\").click();\n window.optionPane().okButton().click();\n window.label(\"openHoursFalseLbl\").requireVisible();\n }", "@Test(timeout=300000)\n public void test05() throws Throwable {\n BackendTransferListener backendTransferListener0 = new BackendTransferListener((CjdbcGui) null);\n backendTransferListener0.mouseReleased((MouseEvent) null);\n }", "public void testMainMenu() {\n // open and close New Project wizard\n NewProjectWizardOperator.invoke().close();\n\n //workaround for issue 166989\n if (System.getProperty(\"os.name\").equals(\"Mac OS X\")) {\n try {\n new NbDialogOperator(\"Warning\").close();\n } catch (TimeoutExpiredException e) {\n }\n }\n }", "@Test\r\n\tpublic void TC101() {\r\n\t\t\r\n\t\t// 1. User opens the JBrick application\r\n\t\t// => The Code Frame has one file open in the code frame (center) and a status pane (bottom)\r\n\t\t// (No file has been opened before hand, this is the equivalent to opening the application for the first time.)\r\n\t\t\r\n\t\tMainWindow jbricks = StartupFunctions.newJBricksInstance(\"JBricks - TC101\");\r\n\t\tComponent editorPane = ContainerFunctions.getEditorPane(jbricks);\r\n\t\tComponent statusPane = ContainerFunctions.getStatusPane(jbricks);\r\n\t\t\r\n\t\tassertTrue(editorPane.getLocationOnScreen().getY() < statusPane.getLocationOnScreen().getY());\r\n\t\t\r\n\t}", "private void initUI() {\n }", "@Test\n\tpublic void testGUIPanels() {\n\t\tfinal int RGB_GRAY = 238;\n\t\tColor defaultColor = new Color(RGB_GRAY, RGB_GRAY, RGB_GRAY);\n\n\t\tassertThat(window.requireEnabled());\n\t\tassertThat(window.requireVisible());\n\t\tassertThat(window.requireTitle(\"Parabolic shot!\"));\n\n\t\tassertThat(window.panel(\"Control panel\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Control panel\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireVisible());\n\n\t\tassertThat(window.panel(\"Information panel\").requireVisible());\n\t\tassertThat(window.panel(\"Information panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Information panel\").requireEnabled());\n\n\t\tassertThat(window.panel(\"Parabolic shot panel\").requireVisible());\n\t\tassertThat(window.panel(\"Parabolic shot panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Parabolic shot panel\").requireEnabled());\n\t}", "Gui getGui();", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n JDayChooser jDayChooser0 = new JDayChooser();\n SystemColor systemColor0 = SystemColor.controlLtHighlight;\n systemColor0.getColorSpace();\n jDayChooser0.setWeekdayForeground(systemColor0);\n boolean boolean0 = false;\n jDayChooser0.setDayBordersVisible(false);\n System.setCurrentTimeMillis(4294977024L);\n List<Locale.LanguageRange> list0 = null;\n ImageNode imageNode0 = new ImageNode();\n HelpSet helpSet0 = new HelpSet();\n DefaultHelpModel defaultHelpModel0 = new DefaultHelpModel(helpSet0);\n JHelp jHelp0 = new JHelp(defaultHelpModel0);\n BasicHelpUI basicHelpUI0 = new BasicHelpUI(jHelp0);\n // Undeclared exception!\n try { \n imageNode0.remove((Object) basicHelpUI0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // javax.help.plaf.basic.BasicHelpUI@23af518c is not a GraphicsNode\n //\n verifyException(\"org.apache.batik.gvt.CompositeGraphicsNode\", e);\n }\n }", "@Test(timeout=300000)\n public void test02() throws Throwable {\n ControllerTransferListener controllerTransferListener0 = new ControllerTransferListener((CjdbcGui) null);\n controllerTransferListener0.mouseDragged((MouseEvent) null);\n }", "public static void main(String[] args) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n DrawCanvas canvas;\n TicTacToeGui ttgui = new TicTacToeGui();\n \n /**CUI prompt user information to save accounts\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"Enter your username: \");\n String user = scanner.nextLine();\n System.out.print(\"Enter your password: \");\n String userpw = scanner.nextLine();\n Accounts users = ttgui.checkUser(user,userpw); **/\n \n }\n });\n }", "@Test(timeout = 4000)\n public void test47() throws Throwable {\n JYearChooser jYearChooser0 = new JYearChooser();\n JDayChooser jDayChooser0 = new JDayChooser(true);\n jDayChooser0.setEnabled(true);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n KeyEvent keyEvent0 = new KeyEvent(jDayChooser0, 3, (-1609L), 1359, 34, 'E');\n KeyEvent keyEvent1 = new KeyEvent(jYearChooser0, 34, 64, 3, 35, 'x');\n jDayChooser0.keyPressed(keyEvent1);\n jDayChooser0.setDay(34);\n JDayChooser.DecoratorButton jDayChooser_DecoratorButton0 = jDayChooser0.new DecoratorButton();\n Button button0 = null;\n try {\n button0 = new Button();\n fail(\"Expecting exception: HeadlessException\");\n \n } catch(HeadlessException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.awt.GraphicsEnvironment\", e);\n }\n }", "void processGUIInput(String cmd){\n try{\n debugWriter.write(cmd);\n debugWriter.flush();\n //}\n }catch(IOException e){\n //Eat it\n e.printStackTrace();\n //throw new InvalidInteractionsException();\n }\n }", "@Override\n public void initGui()\n {\n super.initGui();\n }", "@Override\r\n public void updateUI() {\r\n }", "public String runGUI(){\n ArrayList<ArrayList<Furniture>> all = getSubsets(getFoundFurniture());\n ArrayList<ArrayList<Furniture>> valid = getValid(all);\n ArrayList<ArrayList<Furniture>> ordered = comparePrice(valid);\n ArrayList<ArrayList<Furniture>> orders = produceOrder();\n return checkOrder(orders, true);\n }", "public static void main(String[] args) {\n \n javax.swing.SwingUtilities.invokeLater(new Runnable() {\n \npublic void run() {\n \n createAndShowGUI(); \n \n}\n \n });\n }", "@Override\n\tpublic void setGui(WaiterGui gui) {\n\t\t\n\t}", "@Test(timeout=300000)\n public void test03() throws Throwable {\n ControllerTransferListener controllerTransferListener0 = new ControllerTransferListener((CjdbcGui) null);\n controllerTransferListener0.mouseExited((MouseEvent) null);\n }", "@Before\n public void setUp() throws Exception {\n Map<String, String> salesRanking = new LinkedHashMap<>();\n salesRanking.put(\"abc\", \"def\");\n salesRanking.put(\"123\", \"456\");\n salesRanking.put(\"abc\", \"456\");\n salesRanking.put(\"123\", \"def\");\n guiRobot.interact(() -> salesRankingWindow = new SalesRankingWindow(salesRanking));\n FxToolkit.registerStage(salesRankingWindow::getRoot);\n //salesRankingWindowHandle = new SalesRankingWindowHandle(salesRankingWindow.getRoot(), salesRanking);\n }", "private GUIMain() {\n\t}", "@Test\n\tpublic void testInfobox() {\t\n\t\tTextArea info = (TextArea) s.lookup(\"#T6_infobox_TextArea\");\n\t\tTextArea compInfo = (TextArea) s.lookup(\"#T6_composite_infobox_TextArea\");\n\t\tTextArea parmInfo = (TextArea) s.lookup(\"#T6_parm_infobox_TextArea\");\n\t\tTextArea pasrmInfo = (TextArea) s.lookup(\"#T6_pasrm_infobox_TextArea\");\n\t\tTextArea ldInfo = (TextArea) s.lookup(\"#T6_ld_infobox_TextArea\");\n\t\tclickOn(\"#Main_compatibility_Button\");\n\t\tmoveTo(\"#T6_more_info_Text\");\n\t\tif (!info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(1);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_composite_Text\");\n\t\tif (info.isVisible()||!compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(2);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_parm_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||!parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(3);\n\t\t\tassertTrue(false);\n\t\t\t\n\t\t}\n\t\tmoveTo(\"#T6_pasrm_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||!pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(5);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_ld_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||!ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(5);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_generate_Button\");\n\t\t// if any infobox is shown fail test case\n\t\tassertFalse(info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible());\n\t\t\n\t}", "@Test\n\tpublic void setFrameTest() throws Exception {\n\t\tif (Configuration.shufflerepeat &&\n\t\tConfiguration.featureamp&&\n\t\tConfiguration.playengine&&\n\t\tConfiguration.choosefile&&\n\t\tConfiguration.gui&&\n\t\tConfiguration.skins&&\n\t\tConfiguration.light&&\n\t\tConfiguration.filesupport&&\n\t\tConfiguration.showtime&&\n\t\tConfiguration.volumecontrol&&\n\t\tConfiguration.mp3 &&\n\t\tConfiguration.queuetrack) {\n\t\t\tstart();\n\t\t\tgui.setFrame();\n\t\t\tJFrame g = (JFrame) MemberModifier.field(Application.class, \"frmAsd\").get(gui);\n\t\t\tassertTrue(g.getBounds().getX() == 100);\n\t\t\tassertTrue(g.getBounds().getY() == 100);\n\t\t\tassertTrue(g.getBounds().getWidth() == 1207);\n\t\t\tassertTrue(g.getBounds().getHeight() == 511);\n\t\t\tassertTrue(g.getDefaultCloseOperation() == JFrame.EXIT_ON_CLOSE);\n\t\t\tassertTrue(g.getContentPane().getLayout() == null);\n\t\t\tassertTrue(g.getContentPane() != null);\n\t\t}\n\n\t}", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n SystemColor systemColor0 = SystemColor.textText;\n JDayChooser jDayChooser0 = new JDayChooser();\n JDayChooser.DecoratorButton jDayChooser_DecoratorButton0 = jDayChooser0.new DecoratorButton();\n jDayChooser_DecoratorButton0.isFocusable();\n jDayChooser_DecoratorButton0.getIconTextGap();\n jDayChooser0.maxDayCharacters = 15;\n MultiButtonUI multiButtonUI0 = new MultiButtonUI();\n multiButtonUI0.paint((Graphics) null, jDayChooser0);\n // Undeclared exception!\n try { \n multiButtonUI0.getMinimumSize(jDayChooser_DecoratorButton0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "private void setUpGUI() {\n \n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n enzymeTypeCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useFlankingCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n monoPrecursorCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n peptideListCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n decoyFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n keepTerminalAaCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeMethionineCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n exactPvalueCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n spScoreCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n chargesCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useNeutralLossCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n outputFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeTempFoldersCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n \n minPepLengthTxt.setEditable(editable);\n minPepLengthTxt.setEnabled(editable);\n maxPepLengthTxt.setEditable(editable);\n maxPepLengthTxt.setEnabled(editable);\n minPrecursorMassTxt.setEditable(editable);\n minPrecursorMassTxt.setEnabled(editable);\n maxPrecursorMassTxt.setEditable(editable);\n maxPrecursorMassTxt.setEnabled(editable);\n monoPrecursorCmb.setEnabled(editable);\n removeMethionineCmb.setEnabled(editable);\n //minPtmsPerPeptideTxt.setEditable(editable);\n //minPtmsPerPeptideTxt.setEnabled(editable);\n maxPtmsPerPeptideTxt.setEditable(editable);\n maxPtmsPerPeptideTxt.setEnabled(editable);\n maxVariablePtmsPerTypeTxt.setEditable(editable);\n maxVariablePtmsPerTypeTxt.setEnabled(editable);\n enzymeTypeCmb.setEnabled(editable);\n peptideListCmb.setEnabled(editable);\n decoyFormatCombo.setEnabled(editable);\n keepTerminalAaCombo.setEnabled(editable);\n decoySeedTxt.setEditable(editable);\n decoySeedTxt.setEnabled(editable);\n removeTempFoldersCmb.setEnabled(editable);\n exactPvalueCombo.setEnabled(editable);\n spScoreCombo.setEnabled(editable);\n minSpectrumMzTxt.setEditable(editable);\n minSpectrumMzTxt.setEnabled(editable);\n maxSpectrumMzTxt.setEditable(editable);\n maxSpectrumMzTxt.setEnabled(editable);\n minPeaksTxt.setEditable(editable);\n minPeaksTxt.setEnabled(editable);\n chargesCombo.setEnabled(editable);\n removePrecursorPeakCombo.setEnabled(editable);\n removePrecursorPeakToleranceTxt.setEditable(editable);\n removePrecursorPeakToleranceTxt.setEnabled(editable);\n useFlankingCmb.setEnabled(editable);\n useNeutralLossCmb.setEnabled(editable);\n mzBinWidthTxt.setEditable(editable);\n mzBinWidthTxt.setEnabled(editable);\n mzBinOffsetTxt.setEditable(editable);\n mzBinOffsetTxt.setEnabled(editable);\n numberMatchesTxt.setEditable(editable);\n numberMatchesTxt.setEnabled(editable);\n outputFormatCombo.setEnabled(editable);\n \n }", "public void run() {\n criaGUI();\n \n }", "@Test\n\n\tpublic void testCallMain() {\n\n\t\tDABPanel.main(new String[0]);\n\n\t\tSwingUtilities.invokeLater(() -> {\n\n\t\t\tfor (Frame frame : Frame.getFrames()) {\n\n\t\t\t\tframe.dispose();\n\n\t\t\t}\n\n\t\t});\n\n\t}", "@Test\n public void TEST_FR_SELECTDIFFICULTY_UI() {\n GameData.gameDifficulty = \"unchanged\";\n ChooseDifficultyUI testUI = new ChooseDifficultyUI();\n clickButton(testUI, 1, \"easy\");\n clickButton(testUI, 2, \"medium\");\n clickButton(testUI, 3, \"hard\");\n }", "@Test(timeout=300000)\n public void test10() throws Throwable {\n BackendTransferListener backendTransferListener0 = new BackendTransferListener((CjdbcGui) null);\n backendTransferListener0.mouseMoved((MouseEvent) null);\n }", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n RefSystemGUI.main(args);\n }", "@Test\n public void testHandleBtnAlterar() throws Exception {\n }", "public void verifyGUIDeleteConfirmPopup() {\n try {\n String errorMessage = \"Can not test verify gui of delete confirm popup because ToDo list is empty \";\n boolean result = true;\n getLogger().info(\"Verify GUI Delete ToDo popup when click trash ToDo icon.\");\n boolean checkEmptyToDoListRow = checkListIsEmpty(eleToDoRowList);\n boolean checkEmptyToDoCompleteListRow = checkListIsEmpty(eleToDoCompleteRowList);\n // Check ToDo row list is empty\n if (checkEmptyToDoListRow && checkEmptyToDoCompleteListRow) {\n NXGReports.addStep(\"TestScript Failed: \" + errorMessage, LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n AbstractService.sStatusCnt++;\n return;\n }\n // Get id delete row\n String idRow = getIdRowDelete(checkEmptyToDoListRow, checkEmptyToDoCompleteListRow, eleToDoCheckboxRow, eleToDoCompleteCheckboxRow,\n eleToDoRowList, eleToDoCompleteRowList);\n //verify delete confirm icon\n clickElement(trashToDoBtnEle, \"Trash icon click\");\n //verify popup\n PopUpPage popUpPage = new PopUpPage(getLogger(), getDriver());\n result = popUpPage\n .verifyGUIPopUpDelete(categoryTitleEle, centerDeleteToDoDescriptionEle, cancelDeletedToDoButtonEle, deletedToDoButtonEle);\n if (!result) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"TestScript Failed: Verify gui of delete confirm popup in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n //verify close popup icon\n // Check row is delete out of list\n if (!checkEmptyToDoListRow) {\n result = checkRowIsDeleteOutOfToDoList(eleToDoRowList, idRow);\n }\n if (!checkEmptyToDoCompleteListRow && result) {\n result = checkRowIsDeleteOutOfToDoList(eleToDoCompleteRowList, idRow);\n }\n Assert.assertFalse(result, \"Popup icon close does not work\");\n NXGReports.addStep(\"Close popup icon working correct\", LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"TestScript Failed: Verify gui of delete confirm popup in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }", "@Test\n public void testNoOpenDaysCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"18:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"23:00\");\n window.button(\"addStoreBtn\").click();\n window.optionPane().okButton().click();\n window.label(\"openDaysFalseLbl\").requireVisible();\n }", "@Test\n public final void testClickButton() {\n spysizedialog.getStartButton().doClick();\n }", "public void buildGui() {\n\t}", "@Test\n\tpublic void test() {\n\t\tJFrame frame = new JFrame(\"My Screen\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(1000, 1000);\n\t\t\n\t\t//Create a dashboard\n\t\tGameDashboard dashboard = new GameDashboard();\n\t\t\n\t\t//Add a button to the dashboard\n\t\tdashboard.addButton(\"b1\", \"button1\", 100, 60, 10, 10);\n\t\t\n\t\t//Set the dashboard background color to red\n\t\tdashboard.setBackground(Color.RED);\n\t\t\n\t\t//Add the dashboard to the frame window\n\t\tframe.getContentPane().add(dashboard);\n\t\tframe.setVisible(true);\n\t\t\n\t\t//Flip the visibility status of the button 10 times.\n\t\tfor (int i = 0; i< 10; i++) {\n\t\t\tdashboard.flipStatus(\"b1\");\n\t\t\tSleeper.sleep(200);\n\t\t}\n\n\t}", "public anywheresoftware.b4a.objects.PanelWrapper _asview() throws Exception{\nif (true) return _wholescreen;\n //BA.debugLineNum = 37;BA.debugLine=\"End Sub\";\nreturn null;\n}", "private static void getWindowHandles() {\n\t\t\r\n\t}", "public void testExecute() {\n panel.execute();\n }", "public Object getGuiObject();", "protected GuiTestObject html_main() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"html_main\"));\n\t}", "@Test\n public void testMouseClicked() {\n System.out.println(\"mouseClicked\");\n MouseEvent e = null; \n //instance.mouseClicked(e);\n \n }", "@Test\n\tpublic void addButtons__wrappee__ShowTimeTest() throws Exception {\n\t\t\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\t!Configuration.mp3 &&\n\t\t\t\t!Configuration.ogg &&\n\t\t\t\tConfiguration.wav &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\t!Configuration.showtime) {\t\n\t\t\tstart();\n\t\t\t\n\t\t\tWhitebox.invokeMethod(gui, \"addButtons__wrappee__GUI\");\n\t\t\tassertFalse(gui.showTime);\n\t\t}\n\t}", "@Override\n\tpublic void transitToGUI(int i) {\n\t\t\n\t}", "private void test() {\n\n\t}", "@Test(timeout = 4000)\n public void test165() throws Throwable {\n TextArea textArea0 = new TextArea((Component) null, (String) null, \"XYD6eL5K7VD|_+{7`{$\");\n // Undeclared exception!\n try { \n textArea0.buttonInput(\"XYD6eL5K7VD|_+{7`{$\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n verifyException(\"wheel.components.ComponentCreator\", e);\n }\n }", "@Override\r\n\tprotected void onUnitSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"unit button implementation\");\r\n\t}", "@Override\n\tpublic boolean takeControl() {\n\t\treturn false;\n\t}", "@Test\r\n\tpublic void TC103() {\r\n\t\t\r\n\t\t// 1. User opens the JBrick application \r\n\t\t// => The Code Frame has one file open in the code frame (center) and a status pane (bottom)\r\n\t\t// (No file has been opened before hand, this is the equivalent to opening the application for the first time.)\r\n\t\t\r\n\t\tfinal MainWindow jbricks = StartupFunctions.newJBricksInstance(\"JBricks - TC102\");\r\n\t\tfinal Component editorPane = ContainerFunctions.getEditorPane(jbricks);\r\n\t\tfinal Component statusPane = ContainerFunctions.getStatusPane(jbricks);\r\n\t\t\r\n\t\tassertTrue(editorPane.getLocationOnScreen().getY() < statusPane.getLocationOnScreen().getY()); \r\n\t\t\r\n\t\t// 2. User selects the \"Show File Viewer\"\r\n\t\t// => The file viewer is opened on the left of the code and status frame. The viewer shows the files and folders in the workspace directory set in the preferences.\r\n\t\t\r\n\t\tMenuFunctions.showFilePane(jbricks);\r\n\t\tTestUtils.waitUntil(5000, new Callable<Object>() {\r\n\t\t\t@Override\r\n\t\t\tpublic Object call() throws Exception {\r\n\t\t\t\treturn (ContainerFunctions.getFilePane(jbricks) != null);\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal Component filePane = ContainerFunctions.getFilePane(jbricks);\r\n\r\n\t\tdouble filePaneX = filePane.getLocationOnScreen().getX();\r\n\t\tdouble editorPaneX = editorPane.getLocationOnScreen().getX();\r\n\t\tassertTrue(filePaneX < editorPaneX);\r\n\t\t\r\n\t\t// Any further testing, including what documents are listed in the file Pane, requires more decoupling\r\n\t\t\t\t\r\n\t\t\r\n\t}", "@Test\n\tpublic void testGetFrame() {\n\t}", "@Override\n public void testInit() {\n CommandScheduler.getInstance().cancelAll();\n //left_belt.set(ControlMode.PercentOutput,0.5);\n }", "@Test\n\tpublic void aaddMenu__wrappee__ChooseFile_Test() throws Exception {\n//\t\tConfiguration.mp3=true;\n//\t\tConfiguration.gui=true;\n//\t\tConfiguration.skins=true;\n//\t\tConfiguration.light=true;\n//\t\tConfiguration.filesupport=true;\n//\t\tConfiguration.showtime=true;\n//\t\tConfiguration.tracktime=true;\n//\t\tConfiguration.choosefile=true;\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.mp3 &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.tracktime &&\n\t\t\t\tConfiguration.choosefile\n\t\t\t\t) {\n\t\t\tstart();\n\t\t\t\n\t\t\t\n\t\t\tWhitebox.invokeMethod(gui, \"addMenu__wrappee__ChooseFile\");\n\t\t\tJMenuBar bar = (JMenuBar) MemberModifier.field(Application.class, \"menuBar\").get(gui);\n\t\t\tassertNotNull(bar);\n\t\t}\n\t}", "@Test\n\tpublic void setFrame_PTest() throws Exception {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\t!Configuration.queuetrack ) {\n\t\t\t\n\t\t\t\n\t\t\tstart();\n\t\t\tgui.setFrame();\n\t\t\n\t\t\tJFrame g = (JFrame) MemberModifier.field(Application.class, \"frmAsd\").get(gui);\n\t\t\t\n\t\t\tassertTrue(g.getBounds().getX() == 100);\n\t\t\tassertTrue(g.getBounds().getY() == 100);\n\t\t\tassertTrue(g.getBounds().getWidth() == 807);\n\t\t\tassertTrue(g.getBounds().getHeight() == 511);\n\t\t\tassertTrue(g.getDefaultCloseOperation() == JFrame.EXIT_ON_CLOSE);\n\t\t\tassertTrue(g.getContentPane().getLayout() == null);\n\t\t\tassertTrue(g.getContentPane() != null);\n\t\t}\n\t}", "public void runInUi(ElexisEvent ev){}", "private void performDirectEdit() {\n\t}", "public static String _butpaso3_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 171;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 172;BA.debugLine=\"butPaso4.Visible = True\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 173;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 174;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 175;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 176;BA.debugLine=\"lblPaso3.Visible = True\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 177;BA.debugLine=\"lblPaso3a.Visible = True\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 178;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 179;BA.debugLine=\"imgPupas.Visible = True\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 180;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 181;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 182;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 183;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 184;BA.debugLine=\"lblEstadio.Text = \\\"Pupa\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Pupa\"));\n //BA.debugLineNum = 185;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso4, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso4,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 186;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Test\n void test() {\n Game g = init(\"gen_2p_02\");\n List<Player> players = g.getData().getPlayers();\n wrappedIllegalCommand(g, players.get(0), \"tool 6\");\n wrappedLegalCommand(g, players.get(0), \"pick 1\");\n assertTrue(g.isUndoAvailable());\n wrappedLegalCommand(g, players.get(0), \"tool 6\");\n assertFalse(g.isUndoAvailable());\n lightestShade(g, players);\n notLightestShade(g, players);\n }", "@Before\n\n\tpublic void setUp() {\n\n\t\tdummyFrame = new JFrame();\n\n\t\tdabPanel = new DABPanel(dummyFrame);\n\n\t\tdummyFrame.setContentPane(dabPanel);\n\n\t\txCombo = findComponent(dabPanel, X_COMBO);\n\n\t\tyCombo = findComponent(dabPanel, Y_COMBO);\n\n\t\tdirCombo = findComponent(dabPanel, DIR_COMBO);\n\n\t\tdrawButton = findComponent(dabPanel, DRAW_BUTTON);\n\n\t\tp1ScoreLabel = findComponent(dabPanel, P1_SCORE_LABEL);\n\n\t\tp2ScoreLabel = findComponent(dabPanel, P2_SCORE_LABEL);\n\n\t\tturnLabel = findComponent(dabPanel, TURN_LABEL);\n\n\t\tdabGrid = findComponent(dabPanel, DAB_GRID);\n\n\t}", "public static String _butpaso2_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 152;BA.debugLine=\"butPaso3.Visible = True\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 153;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 154;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 155;BA.debugLine=\"lblPaso2a.Visible = True\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 156;BA.debugLine=\"lblPaso2b.Visible = True\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 157;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 158;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 159;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 160;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 161;BA.debugLine=\"imgLarvas.Visible = True\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 162;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 163;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 164;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 165;BA.debugLine=\"lblEstadio.Text = \\\"Larva\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Larva\"));\n //BA.debugLineNum = 166;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso3, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso3,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 168;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "protected GuiTestObject okbutton() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"okbutton\"));\n\t}", "public void testGetButton() {\n\t\tassertEquals(this.myButton.getJComponent(),this.myButton.getButton());\n\t}", "private void initGui(){\n // TODO: add code for GUI initialization for a given auction\n }", "@Test\n public void testHandleBtnExcluir() throws Exception {\n }", "@Test\n public void testMousePressed() {\n System.out.println(\"mousePressed\");\n MouseEvent e = null; \n //instance.mousePressed(e);\n \n }", "void showPlaceholderGui() {\n this.game.a(new da());\n }", "private void show(final SwingTestBase<?> testCase) {\n try {\n for (int i=0; i<testCase.numTests; i++) {\n show(testCase.create(i), i, testCase.numTests);\n }\n } catch (Exception e) {\n warning(e);\n }\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@Test\r\n\tpublic void testButtonPressedSafety() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tvend.enableSafety();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}", "public static void main(String[] args) {\r\n UserInterface ui;\r\n try {\r\n ui = new UserInterface();\r\n \r\n ui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n ui.pack(); \r\n ui.setVisible(true); \r\n } catch(InterruptedException ex) {\r\n \r\n }\r\n\r\n }", "@Test\n public void testFailedStoreCreationCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"00:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"00:00\"); \n window.button(\"addStoreBtn\").click();\n window.optionPane().requireInformationMessage().requireMessage(\"Store Creation Failed\\n\");\n }", "protected void setUp() {\n container =\n new DialogFloatContainer(new DefaultDock(new DockableWrapper(new JButton(\"Failure Test\"))));\n }", "@Override\n protected void windowInit ()\n {\n }", "public static String _butpaso4_click() throws Exception{\nmostCurrent._butpaso1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 189;BA.debugLine=\"butPaso2.Visible = False\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 190;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 191;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 192;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 193;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 194;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 195;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 196;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 197;BA.debugLine=\"lblPaso4.Visible = True\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 198;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 199;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 200;BA.debugLine=\"imgMosquito.Visible = True\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 201;BA.debugLine=\"imgMosquito.Top = 170dip\";\nmostCurrent._imgmosquito.setTop(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (170)));\n //BA.debugLineNum = 202;BA.debugLine=\"imgMosquito.Left = 30dip\";\nmostCurrent._imgmosquito.setLeft(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (30)));\n //BA.debugLineNum = 203;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 204;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 205;BA.debugLine=\"lblEstadio.Text = \\\"Mosquito\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Mosquito\"));\n //BA.debugLineNum = 206;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 207;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Test public void test() {\n click(\"#txfEmail\").\n type(SMALL_EMAIL_BODY).\n press(KeyCode.SHIFT).\n press(KeyCode.DIGIT2).\n release(KeyCode.SHIFT).\n release(KeyCode.DIGIT2).\n type(EMAIL_SERVER);\n click(\"#psfPassword\").type(PASS);\n click(\"#btnLogin\");\n sleep(3000);\n assertEquals(UStage.getInstance().getCurrentController().getClass(), CMain.class);\n verifyThat(\"#lblNickname\", hasText(NICK));\n verifyThat(\"#lblProfileName\", hasText(NAME));\n }" ]
[ "0.62712413", "0.6112556", "0.60606873", "0.6000571", "0.5939146", "0.5912143", "0.5906486", "0.58928585", "0.58812994", "0.58662313", "0.58601516", "0.58341503", "0.5819495", "0.5809791", "0.5808093", "0.57800883", "0.57800883", "0.5750848", "0.5739075", "0.57364565", "0.57348746", "0.57009256", "0.5696502", "0.5678986", "0.56607527", "0.5649811", "0.5612695", "0.56117475", "0.5607301", "0.5598736", "0.5595304", "0.55864936", "0.5585344", "0.5579654", "0.55787", "0.5559042", "0.5542982", "0.55429673", "0.55409724", "0.553832", "0.5537666", "0.55370176", "0.5535654", "0.5532326", "0.55294925", "0.550622", "0.5504992", "0.5504585", "0.5497262", "0.54967433", "0.5496717", "0.54897666", "0.54838645", "0.54725957", "0.5471873", "0.54634595", "0.5460406", "0.5456406", "0.5450778", "0.5450333", "0.5439322", "0.5428981", "0.5428005", "0.5420039", "0.5399239", "0.5391858", "0.538528", "0.5384577", "0.53797644", "0.53789955", "0.53745955", "0.53737944", "0.5373233", "0.53677833", "0.5359966", "0.5359181", "0.535695", "0.5356923", "0.53568643", "0.53549534", "0.53486127", "0.5347338", "0.5341663", "0.53404117", "0.5339244", "0.53388834", "0.5338668", "0.53343904", "0.5333524", "0.53331935", "0.5326571", "0.5325591", "0.53250265", "0.53243434", "0.53232604", "0.53214437", "0.532089", "0.53186995", "0.5316081", "0.5315651", "0.5314445" ]
0.0
-1
Note: can't really test and relies on package visibility which could change
@Test public void testSetColor() { proc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3})); if (IJInfo.RUN_ENHANCED_TESTS) { // this test crashes with a null ptr exception ip = new ImagePlus("MyChemicalRomance", proc); ip.setColor(null); } // try to set color of ImagePlus with no processor // ... should do nothing ip = new ImagePlus(); // can't rely on as packages may change : assertNull(ip.ip); ip.setColor(Color.yellow); // can't do due to access: assertEquals(ip.ip.drawingColor,Color.black); // try to set color of processor when it exists // ... should set something lower -> defers to ImageProcessor.setColor() -> test there ip = new ImagePlus("MyChemicalRomance", proc); // can't rely on as packages may change : assertEquals(proc,ip.ip); ip.setColor(Color.magenta); // can't do due to access: assertEquals(ip.ip.drawingColor,Color.magenta); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JacobUtils() {}", "private Util() { }", "private stendhal() {\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private ProtomakEngineTestHelper() {\r\n\t}", "@Test public void singletonResolutionInFunctions() {\n fail( \"Not yet implemented\" );\n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n\tpublic void testCompatibility() {\n\t\tSystem.out.println(\"compatibility test success\");\n\t}", "Compatibility compatibility();", "private SourcecodePackage() {}", "private boolean isInternal(String name) {\n return name.startsWith(\"java.\")\n || name.startsWith(\"javax.\")\n || name.startsWith(\"com.sun.\")\n || name.startsWith(\"javax.\")\n || name.startsWith(\"oracle.\");\n }", "@Ignore\n @Test\n public void useDefaultPackageName() throws Exception {\n }", "Reproducible newInstance();", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "JPackage _package();", "private void test() {\n\n\t}", "@Test\n public void testPackagePrivateAccessForNames_googModule() {\n disableRewriteClosureCode();\n testNoWarning(\n srcs(\n SourceFile.fromCode(\n Compiler.joinPathParts(\"foo\", \"bar.js\"),\n lines(\n \"goog.module('Foo');\",\n \"/** @package */\",\n \"var name = 'foo';\",\n \"exports = name;\")),\n SourceFile.fromCode(\n Compiler.joinPathParts(\"baz\", \"quux.js\"),\n \"goog.module('client'); const name = goog.require('Foo'); name;\")));\n }", "private BuilderUtils() {}", "private ClassifierUtils() {\n throw new AssertionError();\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private NativeSupport() {\n\t}", "private OMUtil() { }", "public abstract void mo56925d();", "zzafe mo29840Y() throws RemoteException;", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}", "public void testJavaClassRepository874() throws Exception {\n\t\tJavaClassRepository var2730 = new JavaClassRepository();\n\t\tvar2730.getClass(Gadget.class.getCanonicalName());\n\t\tvar2730.getClass(LoDStaticCall.class.getCanonicalName());\n\t}", "private test5() {\r\n\t\r\n\t}", "public abstract void mo70713b();", "private NaturePackage() {}", "public CharSequence getPackageName() {\n/* 1403 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private NamespaceHelper() {}", "private SolutionsPackage() {}", "@Test\n public void testDAM30903001() {\n testDAM30802001();\n }", "MystPackage getMystPackage();", "private SparkseeUtils()\n {\n /*\n * Intentionally left empty.\n */\n }", "public String getSuggestPackage() {\n/* 63 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void method_4270() {}", "void mo57277b();", "private Dex2JarProxy() {\r\n\t}", "private Mocks() { }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "private VarietyPackage() {}", "private CanonizeSource() {}", "@Test\n public void testPackagePrivateAccessForNames_esModule() {\n testNoWarning(\n srcs(\n SourceFile.fromCode(\n Compiler.joinPathParts(\"foo\", \"bar.js\"),\n lines(\n \"/** @package */\", //\n \"var name = 'foo';\",\n \"export {name};\")),\n SourceFile.fromCode(\n Compiler.joinPathParts(\"baz\", \"quux.js\"),\n \"import {name} from '/foo/bar.js'; name;\")));\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "private Util() {\n }", "private Quantify()\n {\n throw new UnsupportedOperationException(\"Instantiation of utility classes is not supported.\");\n }", "private GardenerStrategyHelpers() {\n }", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "private MApi() {}", "public void testJellyCompatibility() {\n try {\n assertTrue(\"SettingChildren class is public\", Modifier.isPublic(SettingChildren.class.getModifiers()));\n assertTrue(\"FileStateProperty class is public\", Modifier.isPublic(FileStateProperty.class.getModifiers()));\n try {\n new FileStateProperty(\"Modules-Layer\").getValue();\n } catch (NullPointerException npe) {}\n } catch (Exception e) {\n throw new AssertionFailedErrorException(\"JellyTools compatibility conflict, please contact QA or any JellyTools developer.\", e);\n }\n }", "AliciaTest5Package getAliciaTest5Package();", "@Test\n\tpublic abstract void testTransform4();", "@Test\n public void testNoPackagePrivateAccessForProperties7() {\n testError(\n srcs(\n SourceFile.fromCode(\n Compiler.joinPathParts(\"foo\", \"bar.js\"),\n \"/** @constructor */ function Foo() {} \"\n + \"/** @package */ Foo.prototype.bar = function() {};\"\n + \"/** @constructor \\n * @extends {Foo} */ \"\n + \"function SubFoo() {};\"\n + \"SubFoo.prototype.bar = function() {};\"),\n SourceFile.fromCode(\n Compiler.joinPathParts(\"baz\", \"quux.js\"),\n \"SubFoo.prototype.baz = function() { this.bar(); }\")),\n error(BAD_PACKAGE_PROPERTY_ACCESS));\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo42331g();", "private ReportGenerationUtil() {\n\t\t\n\t}", "@Test\n public void testDistBuiltins()\n {\n String sName = \"dist-builtins\";\n generateEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.asssertBuiltIns(sName);\n }", "public static void testXmlImport() {\n\n }", "private void m50366E() {\n }", "private FunctionUtils() {\n }", "private OpenAll() {\n throw new RuntimeException(\"Stub!\");\n }", "private ProcessorUtils() { }", "public void testJavaClassRepository873() throws Exception {\n\t\tJavaClassRepository var2730 = new JavaClassRepository();\n\t\tvar2730.getClass(CyclomaticMethods.class.getCanonicalName());\n\t\tvar2730.getClass(LineNumbersForConditionals.class.getCanonicalName());\n\t\tvar2730.getClass(LoDMultipleSameInvocations.class.getCanonicalName());\n\t}", "@Test\n public void testDAM30601001() {\n testDAM30102001();\n }", "public String findPackageForTest(String testClassName);", "public abstract void mo6549b();", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n typeArray0[6] = type6;\n Type type7 = Type.SHORT_TYPE;\n type2.toString();\n typeArray0[7] = type7;\n Class<Integer> class0 = Integer.class;\n Type.getType(class0);\n Type[] typeArray1 = new Type[1];\n typeArray1[0] = type0;\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Type.getMethodDescriptor(type1, typeArray1);\n ClassWriter classWriter0 = new ClassWriter(174);\n Item item0 = classWriter0.newConstItem(\"\");\n // Undeclared exception!\n try { \n frame0.execute(3, 2, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public void testGetInsDyn() {\n }", "private static interface Service {}", "private CollectionUtils() {\n\n\t}", "private DrillCalciteWrapperUtility() {\n }", "@Test\n public void testDAM30402001() {\n testDAM30101001();\n }", "static void init() {}", "private void kk12() {\n\n\t}", "public void testWeaveJavaxClassesNo() { runTest(\"weave javax classes - no\");}", "public abstract void mo42329d();", "private ClassUtil() {}", "private PackageValidator() {}", "@Test\n public void versionTest() {\n // TODO: test version\n }", "@RecentlyNonNull\n/* */ public String getPackageName() {\n/* 37 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n\tpublic void testTypeExtension() {\n\t}", "public static void main(String... args) throws Exception {\n //ScanUtils.getPrivateFields(PkgMain.class);\n// byte[] testPkg = new byte[]{\n// 0x1c,0x2d,0x3e,0x4f,\n// 0x13,0x00,0x00,0x00,\n// 0x06,0x00,0x00,0x00,\n// 0x01,0x00,0x00,0x00,\n// (byte) 0xE1,0x07,0x7,0x0f,\n// 0x16,0x35,0x0b,\n// 0x6e,0x01\n// };\n//\n// PkgTime tmpTestTime = new PkgTime(new Date());\n// PkgMain tmpTestMain = new PkgMain();\n// tmpTestMain.setInfo(tmpTestTime);\n// tmpTestMain.setSerialsNo(6);\n// tmpTestMain.setPyType(1);\n// tmpTestMain.setHeader(0x4f3e2d1c);\n// tmpTestMain.getPackageLength();\n// byte[] tmpbuffer = tmpTestMain.getThisBytes();\n//\n// PkgMain pkgMain = new PkgMain();\n// pkgMain.checkPackageIsReady(testPkg);\n// pkgMain.resolvePackage(testPkg,0);\n// byte[] testPk = new byte[100];\n// ByteBuffer byteBuffer = ByteBuffer.wrap(testPkg,0,testPkg.length);\n// byteBuffer.order(ByteOrder.LITTLE_ENDIAN);\n// byteBuffer.getInt(12);\n// byteBuffer = ByteBuffer.wrap(testPk);\n// byteBuffer.putInt(10);\n// byteBuffer.putInt(16);\n//\n// PackageUtil.resolvePackage(testPkg,0,pkgMain);\n// ScanUtils.setFieldValue(pkgMain,\"header\",0x6c7d8e9f);\n// PkgTime pkgTime = (PkgTime)ScanUtils.makeFieldInst(PkgTime.class);\n// PkgTD pkgTD =new PkgTD();\n// //pkgTD.setTest(pkgTime);\n// pkgMain.setInfo(pkgTD);\n// System.out.println(ScanUtils.getObjectSize(pkgMain));\n// return;\n if(args == null || args.length==0){\n System.out.println(\"arg = s or arg = c\");\n }else{\n if(args[0].equals(\"s\")){\n LabServer labServer = new LabServer();\n labServer.startTest();\n }\n if(args[0].equals(\"c\")){\n LabClient labClient = new LabClient();\n labClient.sendTest();\n }\n }\n }", "@Test\n public void testNoPackagePrivateAccessForProperties6() {\n testError(\n srcs(\n SourceFile.fromCode(\n Compiler.joinPathParts(\"foo\", \"bar.js\"),\n \"/** @constructor */ function Foo() {} \"\n + \"/** @package */ Foo.prototype.bar = function() {};\"),\n SourceFile.fromCode(\n Compiler.joinPathParts(\"baz\", \"quux.js\"),\n \"/** @constructor \\n * @extends {Foo} */ \"\n + \"function SubFoo() {};\"\n + \"SubFoo.prototype.bar = function() {};\")),\n error(BAD_PACKAGE_PROPERTY_ACCESS));\n }", "@Test\n public void package3PicTest() {\n // TODO: test package3Pic\n }", "void use();", "@Override\n public void func_104112_b() {\n \n }", "private CheckUtil(){ }", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "abstract int pregnancy();", "void mo72113b();", "private SnapshotUtils() {\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "private final zzgy zzgb() {\n }" ]
[ "0.603564", "0.5844955", "0.5769031", "0.5758873", "0.5758873", "0.5758873", "0.5758873", "0.5758179", "0.572499", "0.5710906", "0.5682387", "0.5676065", "0.5668985", "0.5638191", "0.5627079", "0.5582202", "0.5562527", "0.5550366", "0.553119", "0.549768", "0.5489931", "0.5483949", "0.54834616", "0.54834616", "0.5481583", "0.54813737", "0.54796326", "0.54672045", "0.54596305", "0.5455039", "0.54517734", "0.54512304", "0.54386127", "0.54346913", "0.5434103", "0.5427467", "0.5426342", "0.5424825", "0.54238194", "0.54236776", "0.54215395", "0.5421173", "0.5410247", "0.540811", "0.53994936", "0.5389978", "0.5389176", "0.5371436", "0.53658956", "0.5362117", "0.5362117", "0.5354368", "0.53508097", "0.53507155", "0.5343784", "0.5335759", "0.5334075", "0.5324953", "0.5321269", "0.531759", "0.5316014", "0.5313285", "0.53029585", "0.53026754", "0.53017676", "0.52969265", "0.5289451", "0.5286652", "0.5284471", "0.5283413", "0.5266637", "0.52641594", "0.5263801", "0.5258837", "0.52585363", "0.52446556", "0.5242695", "0.5241175", "0.5238688", "0.5219264", "0.52174896", "0.5216651", "0.521438", "0.52128506", "0.5211426", "0.5204838", "0.5202795", "0.52014554", "0.5198216", "0.519089", "0.518597", "0.5179468", "0.51777655", "0.51736414", "0.5172647", "0.5172647", "0.51711833", "0.5170764", "0.51698095", "0.5165972", "0.5158277" ]
0.0
-1
no img and no proc returns null
@Test public void testGetProcessor() { ip = new ImagePlus(); assertNull(ip.getProcessor()); // otherwise it gets into the method // uncalibrated subcase proc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3})); ip = new ImagePlus("FredFred",proc); assertEquals(proc,ip.getProcessor()); assertEquals(Line.getWidth(),proc.getLineWidth()); assertNull(proc.getCalibrationTable()); // calibrated subcase proc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3})); ip = new ImagePlus("FredFred",proc); ip.getCalibration().setFunction(Calibration.STRAIGHT_LINE, new double[] {3,5}, "Splutterflits"); assertEquals(proc,ip.getProcessor()); assertEquals(Line.getWidth(),proc.getLineWidth()); assertNotNull(proc.getCalibrationTable()); // note - untested side effect - Recorder records image was updated (sets a flag to true) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic ImageDescriptor getImageDescriptor() {\n\t\t\treturn null;\n\t\t}", "@Override\r\n public Object createImage(Object data) {\r\n\t // N/A in JS\r\n\t return null;\r\n\t}", "public boolean shouldImageProcess() {\r\n\t\treturn table.getBoolean(SHOULD_IMAGE_PROCESS_KEY, false);\r\n\t}", "boolean hasImageByHandler();", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "@Override\n\tprotected String getImage(int row, int col) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic ImageDescriptor getImageDescriptor() {\n\t\treturn null;\r\n\t}", "@Override\n protected String getRequestedImage(HttpServletRequest req) {\n\treturn null;\n }", "void ProcessImage() {\n DoDescribe();\n }", "@Override\n\tpublic ImageDescriptor getImageDescriptor() {\n\t\treturn null;\n\t}", "private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "protected Image getP0Image(){\n if (isBoosting()) {\n if (getAnimationStep()==3) return Boost4Image;\n if (getAnimationStep()==2) return Boost3Image;\n else return Boost2Image;\n }\n else return BoostImage;\n }", "@Override\r\n\tpublic void run(ImageProcessor ip) {\n\t\t\r\n\t}", "@Override\n\tpublic String process() {\n\t\treturn null;\n\t}", "public PImage getImg() {\n \treturn img;\n }", "public void isImagePresent() {\r\n\t\t\t\r\n\t\t}", "public String getImg_0() {\n return img_0;\n }", "public ImagePlus morph(ImagePlus imp_old,int proc, int rad){\nImageProcessor img = imp_old.getProcessor();\nImagePlus morphImg;\nif (proc==0){\nImageProcessor dil = Morphology.dilation(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"dilation\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n} else if (proc==1){\nImageProcessor dil = Morphology.erosion(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"erosion\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n} else{\nImageProcessor dil = Morphology.closing(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"closing\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n}\n}", "public ImageDescriptor getImageDescriptor()\n\t{\n\n\t\treturn null;\n\t}", "public String GetCameraModel(String img){\n String console = null;\n String c_arg = null;\n String command = null;\n\n if( this.OS.contains(\"Windows\") ){\n console = \"cmd\";\n c_arg = \"/c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\\"\"+img+\"\\\"\";\n }else{\n console = \"sh\";\n c_arg = \"-c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\'\"+img+\"\\'\";\n }\n\n\n String line = null;\n try{\n IJ.log(PATH_TO_EXIFTOOL);\n IJ.log(command);\n IJ.log(this.OS);\n ProcessBuilder bob = new ProcessBuilder(console, c_arg, command);\n bob.redirectErrorStream(true);\n final Process proc = bob.start();\n\n BufferedReader proc_out = new BufferedReader( new InputStreamReader(proc.getInputStream()));\n\n do{\n line = proc_out.readLine();\n //IJ.log(line);\n\n\n if( line != null ){\n if( line.matches( \".*Survey2_(BLUE|RED|GREEN|RGB|IR|NDVI)\" )){\n break;\n }\n }\n\n //IJ.log(line);\n }while( line != null );\n\n }catch( IOException e){\n e.printStackTrace();\n }\n\n\n if( line.matches(\".*Survey2_BLUE\") ){\n return \"Survey2_BLUE\";\n }else if( line.matches(\".*Survey2_RED\") ){\n return \"Survey2_RED\";\n }else if( line.matches(\".*Survey2_GREEN\") ){\n return \"Survey2_GREEN\";\n }else if( line.matches(\".*Survey2_RGB\") ){\n return \"Survey2_RGB\";\n }else if( line.matches(\".*Survey2_IR\") ){\n return \"Survery2_IR\";\n }else if( line.matches(\".*Survery2_NDVI\") ){\n return \"Survey2_NDVI\";\n }else{\n return \"CAMERA_NOT_SUPPORTED\";\n }\n }", "public Image getImage() {\n return null;\r\n }", "Imagem getImagem();", "public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }", "@Test\n public void getPicture_NoPictureExist(){\n Bitmap retrieved = testRecipe.getImage(appContext);\n assertNotEquals(\"getPicture - Not Null\", null, retrieved);\n }", "public interface Process{\n /**\n * process()\n *\n * Allows the image to be processed.\n **/\n public void process();\n\n /**\n * getXY()\n *\n * Gets the value of an ARGB pixel in the X and Y position, given the width\n * and height.\n *\n * @param x The X position of the pixel to be retrieved.\n * @param y The Y position of the pixel to be retrieved.\n * @return The ARGB pixel.\n **/\n public int getXY(int x, int y);\n}", "public Bitmap getFinalShapesImage();", "public String getImage() {\n\t\treturn null;\n\t}", "public Image getImage()\n {\n return null;\n }", "public ImageDescriptor getImageDescriptor() {\n\t\treturn null;\r\n\t}", "private void getBinaryImage() {\n //apply gaussianfilter\n Imgproc.GaussianBlur(currentGray, currentGray, new Size(gauss,gauss), 0);\n\n // subtract backgroundGray from current image and store in currentGray\n Core.subtract(currentGray, backgroundGray, currentGray);\n\n //get Binary image using Otsu\n Imgproc.threshold(currentGray, binary, 0, 255, Imgproc.THRESH_BINARY + Imgproc.THRESH_OTSU);\n }", "boolean hasImageByTransform();", "@Override\n public Object preProcess() {\n return null;\n }", "private static native boolean retrieve_0(long nativeObj, long image_nativeObj, int flag);", "@Override\n public Image getImage(Photo photo) {\n return null;\n }", "public native int getRenderingIntent() throws MagickException;", "@Test\n\tpublic void testGetProcessorForColorProcessor() {\n\t\tfinal PlanarImg< ARGBType, IntArray > argbs = PlanarImgs.argbs( 1, 1, 1 );\n\t\targbs.randomAccess().get().set( 0xff010203 );\n\t\tfinal VirtualStack stack = PlanarImgToVirtualStack.wrap( argbs );\n\t\tassertArrayEquals( new int[] { 0xff010203 }, (int[]) stack.getPixels( 1 ) );\n\t\tstack.getProcessor( 1 );\n\t\tassertArrayEquals( new int[] { 0xff010203 }, (int[]) stack.getPixels( 1 ) );\n\t}", "@Override\n public Image getInstructionPointerImage(final IEditorPart editorPart, final IStackFrame frame) {\n return null;\n }", "public boolean hasImage() {\n\t\treturn false;\n\t}", "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "@Override\n\tpublic Image getImage(Object element) {\n\t\treturn null;\n\t}", "public int getImage();", "java.lang.String getImage();", "private void programImgRetriever(Program p) {\n\n SwingWorker<ImageIcon, Void> sw = new SwingWorker<>() {\n @Override\n protected ImageIcon doInBackground() {\n\n return p.getImage();\n }\n\n @Override\n protected void done() {\n\n try {\n var tmp = get();\n view.setOptionDialog(p.getDescription(), tmp);\n isUpdating.set(false);\n\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n }\n };\n sw.execute();\n\n }", "public void execute()\r\n/* 31: */ throws GlobalException\r\n/* 32: */ {\r\n/* 33: 37 */ if (this.input.getCDim() != 1) {\r\n/* 34: 37 */ throw new GlobalException(\"Sorry, only mono-channel images for now...\");\r\n/* 35: */ }\r\n/* 36: 39 */ this.xdim = this.input.getXDim();\r\n/* 37: 40 */ this.ydim = this.input.getYDim();\r\n/* 38: */ \r\n/* 39: 42 */ this.output = new ArrayList();\r\n/* 40: */ \r\n/* 41: 44 */ this.temp = new BooleanImage(this.input, false);\r\n/* 42: 45 */ this.temp.fill(false);\r\n/* 43: */ \r\n/* 44: 47 */ this.temp2 = new BooleanImage(this.input, false);\r\n/* 45: 48 */ this.temp2.fill(false);\r\n/* 46: */ \r\n/* 47: 50 */ this.s = new Stack();\r\n/* 48: */ \r\n/* 49: 52 */ this.list2 = new ArrayList();\r\n/* 50: */ \r\n/* 51: 54 */ this.output = extractCC(this.seed, this.input);\r\n/* 52: */ }", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();", "@Test\n\tpublic void testImagePlusStringImageProcessor() {\n\t\tproc = new ByteProcessor(20,45);\n\t\tip = new ImagePlus(\"Houdini\", proc);\n\t\tassertNotNull(ip);\n\t\tassertEquals(proc,ip.getProcessor());\n\t}", "void kill () {if (img != null) {img.flush (); img = null;}}", "public M csmiDriverImageNull(){if(this.get(\"csmiDriverImageNot\")==null)this.put(\"csmiDriverImageNot\", \"\");this.put(\"csmiDriverImage\", null);return this;}", "void process(Mat image);", "public OutMessage imageTypeMsg(InMessage msg) {\n\t\treturn null;\n\t}", "static void processPicture(byte[][] img) {\n\t\tcontrastImage(img);\n\t\t//generateDebugImage(img);\n\t\t\n\t\t\n\t\tPoint[] ergs = raster(img);\n\t\tprintPoints(ergs);\n\t\tergs = Cluster.cluster(ergs);\n\t\tprintPoints(ergs);\n\t\tBlume[] blumen = Radiuserkennung.erkennen(img, ergs);\n\t\t\n\t\t//Blumen veröffentlichen!\n\t\tDaten.setNewBlumen(blumen);\n\t\t\n\t\tprintBlumen(blumen);\n\t}", "private boolean isImageGiven(){\n return captureImage.getDrawable() != null;\n }", "public boolean isSetImg() {\n return this.img != null;\n }", "private static native boolean detectMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "protected boolean init() {\n\t\tthis.mProcInfo = new ProcInfo();\t\t\n\t\tthis.mProcInfo.ml = this.mMediaLocator;\n\t\t\n\t\ttry {\n\t\t\tSystem.err.println(\"- Create processor for: \" + this.mMediaLocator);\n\t\t\tthis.mProcInfo.p = Manager.createProcessor(this.mMediaLocator);\n\t } catch (Exception e) {\n\t\t\tSystem.err.println(\"Yikes! Cannot create a processor from the given url: \" + e);\n\t\t\treturn false;\n \t}\n\t\treturn true;\n\t}", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "public Bitmap getShapesImage();", "public static ArrayList<Point> invoke(Image img, Point seed)\r\n/* 105: */ {\r\n/* 106: */ try\r\n/* 107: */ {\r\n/* 108:109 */ return (ArrayList)new ConnectedComponentFromSeed().preprocess(new Object[] { img, seed });\r\n/* 109: */ }\r\n/* 110: */ catch (GlobalException e)\r\n/* 111: */ {\r\n/* 112:111 */ e.printStackTrace();\r\n/* 113: */ }\r\n/* 114:112 */ return null;\r\n/* 115: */ }", "private boolean checkBarcodeImg(Barcode barcode) {\n//\t\tif(barcode.getImg())\n\t\treturn true;\n\t}", "@Test\n\tpublic void testSetProcessor() {\n\t\tip = new ImagePlus();\n\t\ttry {\n\t\t\tip.setProcessor(\"DoesNotMatterForThisCase\",null);\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\t// throws exception if passed processor has no pixels\n\t\tip = new ImagePlus();\n\t\tproc = new ByteProcessor(3,5,null,new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\ttry {\n\t\t\tip.setProcessor(\"DoesNotMatterForThisCase\",proc);\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\t// if stack size > 1 and passed processor dims != my dims throw IllegArgExcep\n\t\t//proc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\t//st = new ImageStack(1,3);\n\t\t//st.addSlice(\"Slice1\",proc);\n\t\t//st.addSlice(\"Slice2\",proc);\n\t\t//ip = new ImagePlus();\n\t\t//ip.width = 1;\n\t\t//ip.height = 3;\n\t\t//ip.setStack(\"TheStack\", st);\n\t\t//ip.height = 4;\n\t\t//ip.width = 7;\n\t\t//try {\n\t\t//\tip.setProcessor(\"DoesNotMatterForThisCase\",proc);\n\t\t//\tfail();\n\t\t//} catch (IllegalArgumentException e) {\n\t\t//\tassertTrue(true);\n\t\t//}\n\n\t\t// if stack size <= 1 then stack should be null and currSlice should be 1\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3);\n\t\tst.addSlice(\"Slice1\",proc);\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 3;\n\t\tip.setStack(\"TheStack\", st);\n\t\tip.setProcessor(\"DoesNotMatterForThisCase\",proc);\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertEquals(1,ip.currentSlice);\n\n\t\t// try with null title\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3);\n\t\tst.addSlice(\"Slice1\",proc);\n\t\tst.addSlice(\"Slice2\",proc);\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 3;\n\t\tip.setStack(\"TheStack\", st);\n\t\tip.setProcessor(null,proc);\n\t\tassertEquals(2,ip.getStackSize());\n\t\tassertEquals(\"TheStack\",ip.getTitle());\n\t\tassertEquals(proc,ip.getProcessor());\n\t\tassertEquals(ImagePlus.GRAY8,ip.getType());\n\t\tassertEquals(8,ip.getBitDepth());\n\t\tassertEquals(1,ip.getBytesPerPixel());\n\n\t\t// try with non-null title\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3);\n\t\tst.addSlice(\"Slice1\",proc);\n\t\tst.addSlice(\"Slice2\",proc);\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 3;\n\t\tip.setStack(\"TheStack\", st);\n\t\tip.setProcessor(\"MattersForThisCase\",proc);\n\t\tassertEquals(2,ip.getStackSize());\n\t\tassertEquals(\"MattersForThisCase\",ip.getTitle());\n\t\tassertEquals(proc,ip.getProcessor());\n\t\tassertEquals(ImagePlus.GRAY8,ip.getType());\n\t\tassertEquals(8,ip.getBitDepth());\n\t\tassertEquals(1,ip.getBytesPerPixel());\n\n\t\t// try to get roi subcase to run\n\t\tproc = new ShortProcessor(1,3,new short[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tip = new ImagePlus();\n\t\tip.width = 4;\n\t\tip.height = 4;\n\t\tip.setRoi(1,1,2,2);\n\t\tassertNotNull(ip.getRoi());\n\t\tip.setProcessor(\"Ooch\",proc);\n\t\tassertNull(ip.getRoi());\n\t\tassertEquals(1,ip.width);\n\t\tassertEquals(3,ip.height);\n\t\tassertEquals(ImagePlus.GRAY16,ip.getType());\n\t\tassertEquals(16,ip.getBitDepth());\n\t\tassertEquals(2,ip.getBytesPerPixel());\n\t}", "public Image getImage(T anItem) { return null; }", "public native double testyolo(String imgfile);", "public M csmiOnCertifyImageNull(){if(this.get(\"csmiOnCertifyImageNot\")==null)this.put(\"csmiOnCertifyImageNot\", \"\");this.put(\"csmiOnCertifyImage\", null);return this;}", "public boolean isEmptyImage() {\n if (mbarrayImg == null || mbarrayImg.length == 0 || mbarrayImg[0].length == 0 || mnWidth == 0 || mnHeight == 0) {\n return true;\n }\n return false;\n }", "String getImage();", "@Override\n public void run() {\n try {\n byte[] photoData = IOUtils.toByteArray(inputStream);\n inputStream.close();\n //Mat src = Imgcodecs.imdecode(new MatOfByte(photoData), Imgcodecs.CV_LOAD_IMAGE_UNCHANGED);\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n\n\n\n// //OCR PREPROCESSING FOR FAREHA'S MODULE\n// try{\n//// Mat src = Utils.loadResource(reportAnalysisActivity.this, R.drawable.bloodf, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);\n// //boolean ans = src.isContinuous();\n// //1. Resizing\n// double ratio = (double)src.width()/src.height();\n// if(src.width()>768){\n// int newHeight = (int)(768/ratio);\n// Imgproc.resize(src,src,new Size(768,newHeight ));\n// }\n// else if(src.height()>1024){\n// int newWidth = (int)(1024*ratio);\n// Imgproc.resize(src,src,new Size(newWidth,1024));\n// }\n//\n// //2. denoising\n// Photo.fastNlMeansDenoising(src,src,10,7,21);\n// }\n// catch(Exception e){}\n//\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n//\n Image inputImage = new Image();\n inputImage.encodeContent(photoData);\n\n Feature desiredFeature = new Feature();\n desiredFeature.setType(\"TEXT_DETECTION\");\n\n BatchAnnotateImagesRequest batchRequest =\n new BatchAnnotateImagesRequest();\n final AnnotateImageRequest request = new AnnotateImageRequest();\n request.setImage(inputImage);\n request.setFeatures(Arrays.asList(desiredFeature));\n batchRequest.setRequests(Arrays.asList(request));\n BatchAnnotateImagesResponse batchResponse = vision.images().annotate(batchRequest).execute();\n text = batchResponse.getResponses().get(0).getFullTextAnnotation();\n\n int block_number = -1;\n int current_block = 0;\n ArrayList<Vertex> block_coords = new ArrayList<Vertex>();\n\n for (Page page : text.getPages()) {\n for (Block block : page.getBlocks()) {\n\n block_number++;\n //Save vertices of all the blocks\n block_coords.add(block.getBoundingBox().getVertices().get(0));\n allBlocks.add(block);\n\n for (Paragraph paragraph : block.getParagraphs()) {\n for (Word word : paragraph.getWords()) {\n String c_word = \"\";\n for (Symbol symbol : word.getSymbols()) {\n c_word += symbol.getText();\n }\n if (c_word.equals(\"WBC\") || c_word.equals(\"RBC\") ||\n c_word.equals(\"HB\") || c_word.equals(\"Hb\") || c_word.contains(\"Hemoglobin\") || c_word.equals(\"Haemoglobin\")\n || c_word.equals(\"Hematocrit\") || c_word.equals(\"HCT\") || c_word.equals(\"MCV\") || c_word.equals(\"MCH\")\n || c_word.equals(\"MCHC\") || c_word.contains(\"Platelet\") || c_word.equals(\"PLT\") || c_word.equals(\"ESR\")\n || c_word.equals(\"LYM\") || c_word.equals(\"LYM#\") || c_word.equals(\"LYM%\") || c_word.contains(\"Lym\")\n || c_word.equals(\"NEUT#\") || c_word.contains(\"NUET%\") || c_word.equals(\"NEUT\") || c_word.contains(\"Neut\")\n || c_word.contains(\"Monocytes\") || c_word.contains(\"Eosinophils\")\n || c_word.equals(\"Mixed Cells\") ||c_word.equals(\"Basophils\") ||c_word.equals(\"Bands\") ||\n c_word.contains(\"Bilirubin\") || c_word.equals(\"ALT\") || c_word.equals(\"SGPT\") || c_word.equals(\"ALK-Phos\") || c_word.contains(\"Alk\")\n || c_word.equals(\"ALK\")) {\n\n //Store the y coords of blocks containing testnames in array if not already saved\n if (testnameBlocks_coords.isEmpty() || !testnameBlocks_coords.contains(block_coords.get(block_number)))\n testnameBlocks_coords.add(block_coords.get(block_number));\n }\n }\n }\n }\n\n }\n\n //Sort the array containing the blocks that contain the test names in an order of largest y coordinates\n Collections.sort(testnameBlocks_coords, new Comparator<Vertex>() {\n @Override\n public int compare(Vertex x1, Vertex x2) {\n int result= Integer.compare(x1.getY(), x2.getY());\n if(result==0){\n //both ys are equal so we compare the x\n result=Integer.compare(x1.getX(), x2.getX());\n }\n return result;\n }\n });\n\n //Save the names of the testnames in order in test_name array\n int blocknum = 0;\n for (int j = 0; j < testnameBlocks_coords.size(); j++) {\n for (int i = 0; i < allBlocks.size(); i++) {\n if (allBlocks.get(i).getBoundingBox().getVertices().get(0) == testnameBlocks_coords.get(j)) {\n blocknum = i; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n for (Paragraph paragraph : allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for (Word word : paragraph.getWords()) {\n String name = \"\";\n for (Symbol symbol : word.getSymbols()) {\n name += symbol.getText();\n //save the testnames in testnames array\n }\n if (name.equals(\"%\") || name.equals(\"#\") || name.equals(\"Count\") || name.equals(\",\")\n || name.equals(\"Level\")) {\n StringBuilder stringBuilder = new StringBuilder(testnames.get(testnames.size() - 1));\n stringBuilder.append(name);\n testnames.add(testnames.size() - 1, stringBuilder.toString());\n testnames.remove(testnames.size() - 1);\n }\n else if (name.equals(\"WBC\") || name.equals(\"RBC\") ||\n name.equals(\"HB\") || name.equals(\"Hb\") || name.contains(\"Hemoglobin\") || name.equals(\"Haemoglobin\")\n || name.equals(\"Hematocrit\") || name.equals(\"HCT\") || name.equals(\"MCV\") || name.equals(\"MCH\")\n || name.equals(\"MCHC\") || name.contains(\"Platelet\") || name.equals(\"PLT\") || name.equals(\"ESR\")\n || name.equals(\"LYM\") || name.equals(\"LYM#\") || name.equals(\"LYM%\") || name.contains(\"Lym\")\n || name.equals(\"NEUT#\") || name.contains(\"NUET%\") || name.equals(\"NEUT\") || name.contains(\"Neut\")\n || name.contains(\"Monocytes\") || name.contains(\"Eosinophils\")\n || name.equals(\"Mixed Cells\") ||name.equals(\"Basophils\") ||name.equals(\"Bands\") ||\n name.contains(\"Bilirubin\") || name.equals(\"ALT\") || name.equals(\"SGPT\") || name.equals(\"ALK-Phos\") || name.contains(\"Alk.\")\n || name.equals(\"ALK\"))\n testnames.add(name);\n\n }\n }\n\n }\n\n //Below is the procedure to find the values of testvalues\n int result_block_index = 0;\n int num_of_values=0;\n int diff=0;\n ArrayList<Integer> ignoreIndex=new ArrayList<Integer>();\n Boolean isFloat=true;\n float value=0;\n\n while(num_of_values<testnames.size()){\n //next block of values\n if(!testvaluesBlocks_coords.isEmpty()){\n int previous_result_block_index = result_block_index; //Index at which the value block lies\n diff = Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX())<diff && previous_result_block_index!=i){\n if(!ignoreIndex.contains(i)){\n diff= Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX());\n result_block_index=i;\n }\n\n }\n }\n }\n //first block of values\n else{\n //Getting values from te first block\n diff=Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY())<diff && block_coords.indexOf(testnameBlocks_coords.get(0))!=i){\n if(!ignoreIndex.contains(i)){\n diff= testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY();\n result_block_index=i;\n }\n\n }\n }\n }\n isFloat=false;\n for(Paragraph paragraph: allBlocks.get(result_block_index).getParagraphs()){\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n\n }\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n if(value_string.contains(\"-\")){\n isFloat=false;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n break;\n }\n try{\n value= Float.parseFloat(value_string);\n num_of_values++;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n isFloat=true;\n\n }\n catch (NumberFormatException e){\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n }\n\n\n\n\n }\n }\n\n if(isFloat){\n //Save y coordinates of value block\n testvaluesBlocks_coords.add(block_coords.get(result_block_index).getY());\n }\n }\n //sort test values coordinates array\n Collections.sort(testvaluesBlocks_coords);\n\n //save the values in an array\n for(int i=0; i<testvaluesBlocks_coords.size();i++){\n for(int j=0; j<allBlocks.size();j++){\n if(allBlocks.get(j).getBoundingBox().getVertices().get(0).getY()==testvaluesBlocks_coords.get(i)){\n blocknum=j; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n //save values in array\n for (Paragraph paragraph: allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n }\n\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n try{\n value= Float.parseFloat(value_string);\n //save the testnames in testnames array\n testValues.add(Float.parseFloat(value_string));\n }\n catch(NumberFormatException n){\n\n }\n }\n\n }\n }\n\n for (int a = 0; a < testnames.size(); a++) {\n Log.e(testnames.get(a), Float.toString(testValues.get(a)));\n }\n\n //Convert the testname and testvalues array to string so they can be passed on\n StringBuilder sb = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for (int i = 0; i < testnames.size(); i++) {\n sb.append(testnames.get(i)).append(\",\");\n sb2.append(testValues.get(i)).append(\",\");\n\n }\n\n //Save the values and testnames so they can be passed on to next activity\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(reportAnalysisActivity.this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"testnames\", sb.toString());\n editor.putString(\"testvalues\", sb2.toString());\n editor.putString(\"gender\", gender);\n editor.apply();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Intent reportresultScreen = new Intent(view.getContext(), reportResult_Activity.class);\n startActivity(reportresultScreen);\n }\n });\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n done=true;\n }", "public String getpImage() {\n return pImage;\n }", "@Override\n\tpublic boolean isMyImage() {\n\t\treturn false;\n\t}", "@Override\n\tpublic String getImagePathBig() {\n\t\treturn null;\n\t}", "@Override\n\tpublic ImageProducer getSource() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getImagePath32X32() {\n\t\treturn null;\n\t}", "private static native boolean read_0(long nativeObj, long image_nativeObj);", "public boolean hasImage(){\n return imageResourceID != NO_IMAGE_PROVIED;\n\n }", "public boolean generateImageFromText();", "public interface IFrameProcessor\n{\n /**\n * @param rawFrame Das Rohdatenframe\n * @return Das verarbeitete Frame\n */\n Bitmap processFrame(Bitmap rawFrame);\n}", "public final ImageProcessor getImage() {\r\n return image;\r\n }", "public Image getImage(Object element) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "public Image getImage(Object element) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "public Image getImage(Object element) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "private native void pararCamara();", "protected Surface getOutputSurface() { return null; }", "private byte[] evalToImage(Object obj, int width, int height, int dpi, boolean useFE) {\n byte[] imageData;\n imageData = null;\n this.lastError = null;\n try {\n this.putFunction(\"EvaluatePacket\", 1);\n this.putFunction(\"Needs\", 1);\n this.put(\"JLink`\");\n this.flush();\n this.discardAnswerNoPacketListeners();\n Utils.writeEvalToImageExpression(this, obj, width, height, dpi, useFE);\n this.flush();\n this.waitForAnswer();\n }\n catch (MathLinkException e) {\n String dbg = System.getProperty(\"JLINK_SHOW_INTERNAL_EXCEPTIONS\");\n if (dbg != null && dbg.equals(\"true\")) {\n System.err.println(\"Exception in evaluateToImage: \" + e.toString());\n }\n this.clearError();\n this.lastError = e;\n this.newPacket();\n return null;\n }\n try {\n if (this.getNext() == 34) {\n imageData = this.getByteString(0);\n }\n }\n catch (Throwable t) {\n String dbg = System.getProperty(\"JLINK_SHOW_INTERNAL_EXCEPTIONS\");\n if (dbg != null && dbg.equals(\"true\")) {\n System.err.println(\"Exception in evaluateToImage: \" + t.toString());\n }\n this.clearError();\n this.lastError = t;\n }\n finally {\n this.newPacket();\n }\n return imageData;\n }", "private void imgDetected(Matcher matcher) {\n String component;\n matcher.reset();\n\n // store src value if <img> exist\n while (matcher.find()) {\n Data.imagesSrc.add(matcher.group(1));\n }\n\n // separate if the paragraph contain img\n // replace <img> with -+-img-+- to indicate image position in the text\n component = matcher.replaceAll(\"-+-img-+-\");\n\n //split the delimiter to structure image position\n String[] imageStructure = component.split(\"-\\\\+-\");\n\n // start looping the structured text\n int imageFoundIndex = 0;\n for (String structure : imageStructure) {\n // continue if the current index is not empty string \"\"\n if (!structure.trim().equals(\"\")) {\n // create ImageView if current index value equeal to \"img\"\n if (structure.trim().equals(\"img\")) {\n createImageView();\n imageFoundIndex++;\n } else {\n // else create textView for the text\n generateView(structure);\n }\n }\n }\n }", "@Override\n public Action update() {\n // draws the image \"image\" at position \"this.x\" and \"this.y\" and then returns null\n Thing.getProcessing().image(this.image, this.x, this.y);\n return null;\n }", "public Image getMinimRest();", "public void Func_imagefile(){\n\n\t\tswf_env.containImg = true;\n\n\n\t\tthis.value = new SWFValue(\"Func\");\n\n\t\tString path = this.getAtt(\"path\", \".\");\n\t\tString filename = this.getAtt(\"default\");\n\t\tString type = \"auto\";\n\t\tvalue.instanceName = \"img\"+ Integer.toString(swf_env.instanceID);\n\t\tvalue.data = \"\";\n\t\tvalue.imgpath = path + \"/\" + filename;\n\t\tvalue.inter_imgpath = path + \"/\" + filename;\n\t\tvalue.inter_name = \"intimg\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.tmp = \"tmp\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.lnum = Integer.toString(swf_env.visibleflag_counter);\n\n\n\t\tif(!path.startsWith(\"/\")) {\n\t\t\tString basedir = GlobalEnv.getBaseDir();\n\t\t\tLog.out(\"basedir= \" +basedir);\n\t\t\tif(basedir != null && basedir != \"\") {\n\t\t\t\tpath = basedir + path;\n\t\t\t}\n\t\t}\n\n\t\tString filepath = path + \"/\" + filename;\n\n\n\t\tsetDecoration1();\n\t\tvalue.margin = margin;\n\n\n\t\tSystem.out.println(\"filepath = \"+filepath);\n\t\tint img = swf_env.open_image_file(type, filepath);\n\t\tvalue.img = img;\n\n\t\tdata_width = swf_env.get_value(\"imagewidth\", img);\n\t\tdata_height = swf_env.get_value(\"imageheight\", img);\n\t\tSystem.out.println(\"imagesize: \"+data_width+\" \"+data_height);\n\t\twidth = data_width + margin * 2;\n\t\theight = data_height + margin * 2;\n\n\n\t\tsetDecoration2();\n\n\t\tif(data_width > width){\n\t\t\tint original_width = data_width;\n\t\t\tdata_width = width - margin * 2;\n\t\t\tint scale = data_width / original_width;\n\t\t\tdata_height = data_height * scale;\n\t\t\theight = data_height + margin * 2;\n\t\t}\n\t\tif(data_height > height){\n\t\t\tint original_height = data_height;\n\t\t\tdata_height = height - margin * 2;\n\t\t\tint scale = data_height / original_height;\n\t\t\tdata_width = data_width * scale;\n\t\t\twidth = data_width + margin * 2;\n\t\t}\n\n\t\tvalue.data_width = data_width;\n\t\tvalue.data_height = data_height;\n\t\tvalue.width = width;\n\t\tvalue.height = height;\n\t\t//morya wrote\n\t\tvalue.int_w = width;\n\t\tvalue.int_h = height;\n\n\n\t\tsetDecoration3();\n\n\t\tswf_env.tmp_width = width;\n\t\tswf_env.tmp_height = height;\n\n\n\t\tswf_env.instanceID++;\n\n\t}", "PImage getImage() {\n return _img;\n }", "public static String _imghuevos_click() throws Exception{\nreturn \"\";\n}", "public String getPd_img() {\n\t\treturn pd_img;\n\t}", "public static String _imgpupas_click() throws Exception{\nreturn \"\";\n}", "@Test\n\tpublic void testGetChannelProcessor() {\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"gray8-3x2-sub1.tif\");\n\t\tproc = ip.getProcessor();\n\t\tassertEquals(proc,ip.getChannelProcessor());\n\t}", "boolean hasImagePath();", "IMG createIMG();", "private void initAreaImageFilm() {\n\n }", "boolean hasPicture();", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();", "public static double[]getBackgroundStatsFromProcessor(ImageProcessor imgP) {\n\t\tint dimX=imgP.getWidth();\n\t\tint dimY=imgP.getHeight();\n\t\tint samplSize=Math.min(10+20,dimX/10);\n\t\tif(dimX<100)samplSize=12;\n\t\tif(dimX>500)samplSize=40;\n\n\t\tint x0=(3*samplSize)/2;\n\t\tint y0=(3*samplSize)/2;\n\t\tint x1=dimX/2;\n\t\tint y1=dimY/2;\n\t\tint x2=dimX-(3*samplSize)/2;\n\t\tint y2=dimY-(3*samplSize)/2;\n\t\tdouble[][] vals=new double[8][];\n\t\tvals[0]=VitimageUtils.valuesOfImageProcessor(imgP,x0,y0,samplSize/2);\n\t\tvals[1]=VitimageUtils.valuesOfImageProcessor(imgP,x0,y2,samplSize/2);\n\t\tvals[2]=VitimageUtils.valuesOfImageProcessor(imgP,x2,y0,samplSize/2);\n\t\tvals[3]=VitimageUtils.valuesOfImageProcessor(imgP,x2,y2,samplSize/2);\t\t\n\t\tvals[4]=VitimageUtils.valuesOfImageProcessor(imgP,x0,y1,samplSize/4);\n\t\tvals[5]=VitimageUtils.valuesOfImageProcessor(imgP,x1,y0,samplSize/4);\n\t\tvals[6]=VitimageUtils.valuesOfImageProcessor(imgP,x2,y1,samplSize/4);\n\t\tvals[7]=VitimageUtils.valuesOfImageProcessor(imgP,x2,y2,samplSize/4);\n\n\t\t//Compute the global mean over all these squares\n\t\tdouble[]tempStatsMeanVar=null;\n\t\tdouble[]tempStats=new double[vals.length];\n\t\t\n\t\t//Measure local stats, and guess that three of them can host the object\n\t\tfor(int i=0;i<vals.length;i++) {\n\t\t\ttempStatsMeanVar=VitimageUtils.statistics1D(vals[i]);\n\t\t\ttempStats[i]=tempStatsMeanVar[0];\n\t\t}\n\n\t\tdouble[]tempStatsCorrected=null;\n\t\tint incr=0;\n\t\tdouble[][]valsBis=null;\n\t\ttempStatsCorrected=new double[5];//Suppress the 3 maximum, that should be the border or corner where the object lies\n\n\t\tdouble[]tempStats2=doubleArraySort(tempStats);\n\t\tfor(int i=0;i<5;i++)tempStatsCorrected[i]=tempStats2[i];\n\t\tvalsBis=new double[5][];\t\t\t\n\t\tfor(int i=0;i<8 && incr<5;i++) {if(tempStats[i]<=tempStatsCorrected[4]) {valsBis[incr++]=vals[i];}}\n\t\t\t\n\t\tdouble []valsRetBis=VitimageUtils.statistics2D(valsBis);\t\t\n\t\treturn valsRetBis;\n\t}", "private static Image getAttackPoint()\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + attack));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}", "public BufferedImage getImage ( ) {\n\n BufferedImage img =\n param.Parameters.PROBLEM.getData(param.Parameters.STATE, program, 0, 0);\n\n System.gc();\n\n return img;\n \n }", "public M csmiCertifyImageNull(){if(this.get(\"csmiCertifyImageNot\")==null)this.put(\"csmiCertifyImageNot\", \"\");this.put(\"csmiCertifyImage\", null);return this;}" ]
[ "0.56465685", "0.56112933", "0.55996335", "0.5587425", "0.55869436", "0.55833346", "0.55818003", "0.55806607", "0.5553641", "0.5511872", "0.5509123", "0.54870176", "0.5477284", "0.5443364", "0.54398", "0.5428088", "0.5426065", "0.53888303", "0.5384266", "0.5377533", "0.5376458", "0.53495693", "0.5335895", "0.53285205", "0.5321659", "0.5315405", "0.5313996", "0.5311057", "0.53108144", "0.529797", "0.52933526", "0.5292563", "0.52701336", "0.5263474", "0.52617985", "0.5235452", "0.5231013", "0.52083856", "0.52018833", "0.5200668", "0.5200169", "0.5198116", "0.51941425", "0.51823354", "0.5159844", "0.515132", "0.5142791", "0.51353", "0.511165", "0.51110125", "0.5104795", "0.51014084", "0.5095325", "0.5090185", "0.5088749", "0.5084745", "0.5079565", "0.5072409", "0.50715536", "0.5070529", "0.5068406", "0.5067654", "0.5066921", "0.5064341", "0.5063434", "0.5057838", "0.50485337", "0.5047785", "0.50442374", "0.5043836", "0.50413525", "0.50363964", "0.5027651", "0.5025109", "0.50223523", "0.5016208", "0.5013067", "0.5013067", "0.5013067", "0.5012787", "0.50069", "0.50044894", "0.50037163", "0.50027925", "0.4999948", "0.4996688", "0.49918482", "0.4990243", "0.49878097", "0.49775356", "0.49699548", "0.4959283", "0.49592274", "0.49569505", "0.49411622", "0.49378785", "0.4934618", "0.49319425", "0.4930142", "0.49297294" ]
0.5127338
48
note ImageStatistics does not override equals() so I need to do some testing of my own Will test a subset of fields. Will also test floats for equality usually a nono but desired here I think
private boolean imageStatsEquals(ImageStatistics a, ImageStatistics b) { if (!Arrays.equals(a.histogram, b.histogram)) return false; if (a.pixelCount != b.pixelCount) return false; if (a.mode != b.mode) return false; if (a.dmode != b.dmode) return false; if (a.area != b.area) return false; if (a.min != b.min) return false; if (a.max != b.max) return false; if (a.mean != b.mean) return false; if (a.median != b.median) return false; if (a.stdDev != b.stdDev) return false; if (a.skewness != b.skewness) return false; if (a.kurtosis != b.kurtosis) return false; if (a.xCentroid != b.xCentroid) return false; if (a.yCentroid != b.yCentroid) return false; if (a.xCenterOfMass != b.xCenterOfMass) return false; if (a.yCenterOfMass != b.yCenterOfMass) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test void compareToNaive() {\n\t\tfor (var type : new ImageType[]{ImageType.SB_U8, ImageType.SB_U16, ImageType.SB_F32, ImageType.SB_F64}) {\n\t\t\tvar src = (ImageGray)type.createImage(width, height);\n\t\t\tvar dst = (ImageGray)type.createImage(1, 1);\n\n\t\t\tGImageMiscOps.fillUniform(src, rand, 0, 100);\n\n\t\t\tdouble mean = GImageStatistics.mean(src);\n\t\t\tGeometricMeanFilter.filter(src, radiusX, radiusY, mean, dst);\n\n\t\t\tassertEquals(width, dst.width);\n\t\t\tassertEquals(height, dst.height);\n\n\t\t\tfor (int y = 0; y < dst.height; y++) {\n\t\t\t\tfor (int x = 0; x < dst.width; x++) {\n\t\t\t\t\tdouble found = GeneralizedImageOps.get(dst, x, y);\n\t\t\t\t\tassertEquals(naiveMean(src, x, y, radiusX, radiusY), found, 1.0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testSmallDist() throws Exception {\n assertTrue(\n new ImageSimilarity(getFile(\"imageSimilarity/with.png\"))\n .calcDistance(ImageIO.read(getFile(\"imageSimilarity/without.png\")))\n > 0);\n }", "private void areEquals(FileInfo a, FileInfo b)\n\t{\n\t\t// will test a subset for now\n\n\t\tassertEquals(a.width,b.width);\n\t\tassertEquals(a.height,b.height);\n\t\tassertEquals(a.nImages,b.nImages);\n\t\tassertEquals(a.whiteIsZero,b.whiteIsZero);\n\t\tassertEquals(a.intelByteOrder,b.intelByteOrder);\n\t\tassertEquals(a.pixels,b.pixels);\n\t\tassertEquals(a.pixelWidth,b.pixelWidth,Assert.DOUBLE_TOL);\n\t\tassertEquals(a.pixelHeight,b.pixelHeight,Assert.DOUBLE_TOL);\n\t\tassertEquals(a.unit,b.unit);\n\t\tassertEquals(a.pixelDepth,b.pixelDepth,Assert.DOUBLE_TOL);\n\t\tassertEquals(a.frameInterval,b.frameInterval,Assert.DOUBLE_TOL);\n\t\tassertEquals(a.calibrationFunction,b.calibrationFunction);\n\t\tAssert.assertDoubleArraysEqual(a.coefficients,b.coefficients,Assert.DOUBLE_TOL);\n\t\tassertEquals(a.valueUnit,b.valueUnit);\n\t\tassertEquals(a.fileType,b.fileType);\n\t\tassertEquals(a.lutSize,b.lutSize);\n\t\tassertArrayEquals(a.reds,b.reds);\n\t\tassertArrayEquals(a.greens,b.greens);\n\t\tassertArrayEquals(a.blues,b.blues);\n\t}", "@Test\n public void equality() {\n ImageReference expected = createSampleImage();\n\n assertEquals(expected, createSampleImage());\n assertNotEquals(expected, new ImageReference.Builder()\n .setContentUri(\"content://bar\")\n .setIsTintable(true)\n .setOriginalSize(TEST_WIDTH, TEST_HEIGHT)\n .build());\n assertNotEquals(expected, new ImageReference.Builder()\n .setContentUri(TEST_CONTENT_URI)\n .setIsTintable(false)\n .setOriginalSize(TEST_WIDTH, TEST_HEIGHT)\n .build());\n assertNotEquals(expected, new ImageReference.Builder()\n .setContentUri(TEST_CONTENT_URI)\n .setIsTintable(false)\n .setOriginalSize(1, TEST_HEIGHT)\n .build());\n assertNotEquals(expected, new ImageReference.Builder()\n .setContentUri(TEST_CONTENT_URI)\n .setIsTintable(false)\n .setOriginalSize(TEST_WIDTH, 1)\n .build());\n\n assertEquals(expected.hashCode(), new ImageReference.Builder()\n .setContentUri(TEST_CONTENT_URI)\n .setIsTintable(true)\n .setOriginalSize(TEST_WIDTH, TEST_HEIGHT)\n .build()\n .hashCode());\n }", "public boolean equals(@Nullable Object obj) {\n/* 338 */ if (obj == null) {\n/* 339 */ return false;\n/* */ }\n/* 341 */ if (getClass() != obj.getClass()) {\n/* 342 */ return false;\n/* */ }\n/* 344 */ Stats other = (Stats)obj;\n/* 345 */ return (this.count == other.count && \n/* 346 */ Double.doubleToLongBits(this.mean) == Double.doubleToLongBits(other.mean) && \n/* 347 */ Double.doubleToLongBits(this.sumOfSquaresOfDeltas) == Double.doubleToLongBits(other.sumOfSquaresOfDeltas) && \n/* 348 */ Double.doubleToLongBits(this.min) == Double.doubleToLongBits(other.min) && \n/* 349 */ Double.doubleToLongBits(this.max) == Double.doubleToLongBits(other.max));\n/* */ }", "public static void compareImage( BufferedImage expectedImage, BufferedImage calculatedImage) {\n\n // take buffer data from botm image files //\n DataBuffer dbA = expectedImage.getData().getDataBuffer();\n int dataTypeSizeA= dbA.getDataTypeSize(DataBuffer.TYPE_BYTE);\n\n DataBuffer dbB =calculatedImage.getData().getDataBuffer();\n int dataTypeSizeB = dbB.getDataTypeSize(DataBuffer.TYPE_BYTE);\n\n\n //validate the image size\n Assert.assertEquals(dataTypeSizeA, dataTypeSizeB);\n Assert.assertEquals(dbA.getSize(), dbB.getSize());\n\n\n if (expectedImage.getWidth() == calculatedImage.getWidth() && expectedImage.getHeight() == calculatedImage.getHeight()) {\n for (int x = 0; x < calculatedImage.getWidth(); x++) {\n for (int y = 0; y < calculatedImage.getHeight(); y++) {\n Assert.assertEquals(expectedImage.getRGB(x, y), calculatedImage.getRGB(x, y));\n\n }\n }\n }\n\n\n }", "public boolean equals(Object obj)\r\n\t{\r\n\t\tif (obj instanceof FloatDimension)\r\n\t\t{\r\n\t\t\tFloatDimension dimension = (FloatDimension)obj;\r\n\t\t\treturn dimension.width == width && dimension.height == height;\r\n\t\t}\r\n\t\treturn super.equals(obj);\r\n\t}", "@Test\n public void testImage() {\n int expected = 4;\n assertEquals(expected, image.getHeight());\n assertEquals(expected, image.getWidth());\n }", "private Comparison compareImages(SimpleNode first, SimpleNode second) {\n if (first instanceof JexlNode) {\n String firstImage = ((JexlNode) first).image;\n String secondImage = ((JexlNode) second).image;\n if (!Objects.equals(firstImage, secondImage)) {\n return Comparison.notEqual(\"Node images differ: \" + firstImage + \" vs \" + secondImage);\n }\n }\n return Comparison.IS_EQUAL;\n }", "@Override\n public boolean equals(Object o)\n {\n if(o.getClass() != this.getClass())\n {\n return false;\n }\n Complex_Number compare = (Complex_Number)o;\n if(this.powerOfIi == compare.getPower())\n {\n if(Math.abs(this.round(this.realPart,10) - this.round(compare.getRealPart(),10)) < 0.000000001)\n {\n if(Math.abs(this.round(this.imaginaryPart,10) - this.round(compare.getImaginaryPart(),10)) < 0.000000001)\n {\n return true;\n }\n }\n }\n return false;\n }", "public static void assertEquals(final File file, final BufferedImage image)\n throws IOException\n {\n BufferedImage other;\n int w, h, x, y;\n\n other = ImageIO.read(file);\n\n w = image.getWidth();\n h = image.getHeight();\n if (other.getWidth() != w || other.getHeight() != h)\n {\n fail(\"Image has not the same size as the file: \" + file.getPath());\n }\n for (y = 0; y < h; y++)\n {\n for (x = 0; x < w; x++)\n {\n if (image.getRGB(x, y) != other.getRGB(x, y))\n {\n fail(\"Image does not match the image in the file: \"\n + file.getPath());\n }\n }\n }\n }", "public boolean test(MyList<Point> pixels, Image img)\r\n/* 19: */ {\r\n/* 20:33 */ int volume = 0;\r\n/* 21:35 */ for (MyListNode<Point> n = pixels.getHead(); n != null; n = n.getNext())\r\n/* 22: */ {\r\n/* 23:36 */ Point p = (Point)n.getDatum();\r\n/* 24: */ \r\n/* 25:38 */ int[] val = img.getVXYByte(p.x, p.y);\r\n/* 26:40 */ for (int c = 0; c < val.length; c++) {\r\n/* 27:41 */ volume += img.getXYCByte(p.x, p.y, c);\r\n/* 28: */ }\r\n/* 29: */ }\r\n/* 30:44 */ if (volume < this.threshold) {\r\n/* 31:44 */ return false;\r\n/* 32: */ }\r\n/* 33:45 */ return true;\r\n/* 34: */ }", "public void testSetImage() {\n byte[] image = new byte[] {1, 2, 3};\n byte[] expResult = new byte[] {1, 2, 3};\n CLImage instance = new CLImage();\n instance.setImage(image);\n assertEquals(expResult.length, instance.image.length);\n for (int i = 0; i < expResult.length; ++i)\n {\n assertEquals(expResult[i], instance.image[i]);\n }\n }", "private void equalize(BufferedImage img) {\n \t\tfloat minSat = Float.MAX_VALUE, maxSat = Float.MIN_VALUE;\n \t\tfloat minVal = Float.MAX_VALUE, maxVal = Float.MIN_VALUE;\n \t\t\n \t\tint[] prgb = { 0, 0, 0 };\n \t\tfloat[] hsv = { 0, 0, 0 };\n \t\t\n \t\tint[] valCount = new int[16];\n \t\t\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\tfor (int x = 0; x < img.getWidth(); x++) {\n \t\t\t\tint pixel = img.getRGB(x, y);\n \t\t\t\tpixelToRGB(pixel, prgb);\n \t\t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], hsv);\n \t\t\t\tminSat = Math.min(hsv[1], minSat);\n \t\t\t\tmaxSat = Math.max(hsv[1], maxSat);\n \t\t\t\tminVal = Math.min(hsv[2], minVal);\n \t\t\t\tmaxVal = Math.max(hsv[2], maxVal);\n \t\t\t\tvalCount[(int) (hsv[2] / 16)]++;\n \t\t\t}\n \t\t}\n \t\t\n \t\tint maxPt = -1;\n \t\tfor (int i = 1; i < 15; i++) {\n \t\t\tif (maxPt == -1 || valCount[i] >= valCount[maxPt]) {\n \t\t\t\tmaxPt = i;\n \t\t\t}\n \t\t}\n \t\t\n \t\tint valueMidpoint = maxPt * 16;\n \t\t\n \t\tSystem.out.println(\"Equalize: sat = \"+minSat+\" to \" +maxSat+\"; val = \" + minVal + \" to \" + maxVal+\"; value midpoint = \" + valueMidpoint);\n \t\tfloat satScale = 1.0f - minSat;\n \t\tfloat valScale = 255 - minVal;\n \t\tfloat satDiff = maxSat - minSat;\n \t\tfloat valDiff = maxVal - minVal;\n \t\t\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\tfor (int x = 0; x < img.getWidth(); x++) {\n \t\t\t\tint pixel = img.getRGB(x, y);\n \t\t\t\tpixelToRGB(pixel, prgb);\n \t\t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], hsv);\n \t\t\t\t\n \t\t\t\tif (satDiff < 0.5)\n \t\t\t\t\thsv[1] = ((hsv[1] - minSat) / satDiff) * satScale + minSat;\n \t\t\t\tif (valDiff < 128)\n \t\t\t\t\thsv[2] = ((hsv[2] - minVal) / valDiff) * valScale + minVal;\n \n \t\t\t\thsvToRgb(hsv[0], hsv[1], hsv[2], prgb);\n \t\t\t\t\n \t\t\t\timg.setRGB(x, y, rgb8ToPixel(prgb) | (pixel & 0xff000000));\n \t\t\t}\n \t\t}\n \t}", "public boolean equals(Object o) {\n\n int i, j;\n\n if (o == this) return true;\n if (!(o instanceof Feature)) return false;\n Feature f = (Feature) o;\n if (!((((Feature.IS_NOMINAL(f.type)) && (Feature.IS_NOMINAL(type)))\n || ((Feature.IS_INTEGER(f.type)) && (Feature.IS_INTEGER(type)))\n || ((Feature.IS_CONTINUOUS(f.type)) && (Feature.IS_CONTINUOUS(type)))))) return false;\n\n if ((f.dmin_from_data != dmin_from_data)\n || (f.dmax_from_data != dmax_from_data)\n || (f.dmin != dmin)\n || (f.dmax != dmax)\n || (f.imin_from_data != imin_from_data)\n || (f.imax_from_data != imax_from_data)\n || (f.imin != imin)\n || (f.imax != imax)) return false;\n\n if (Feature.IS_NOMINAL(f.type)) {\n Vector<String> vf_test, v_test;\n if (f.modalities.size() != modalities.size()) return false;\n for (i = 0; i < f.modalities.size(); i++)\n if (!((String) f.modalities.elementAt(i)).equals(modalities.elementAt(i))) return false;\n\n if (f.tests.size() != tests.size()) return false;\n for (i = 0; i < f.tests.size(); i++) {\n vf_test = (Vector<String>) f.tests.elementAt(i);\n v_test = (Vector<String>) tests.elementAt(i);\n if (vf_test.size() != v_test.size()) return false;\n for (j = 0; j < vf_test.size(); j++)\n if (!((String) vf_test.elementAt(j)).equals(v_test.elementAt(j))) return false;\n }\n } else if (Feature.IS_INTEGER(f.type)) {\n if (f.tests.size() != tests.size()) return false;\n for (i = 0; i < f.tests.size(); i++)\n if (((Integer) f.tests.elementAt(i)).intValue()\n != ((Integer) tests.elementAt(i)).intValue()) return false;\n } else if (Feature.IS_CONTINUOUS(f.type)) {\n if (f.tests.size() != tests.size()) return false;\n for (i = 0; i < f.tests.size(); i++)\n if (((Double) f.tests.elementAt(i)).doubleValue()\n != ((Double) tests.elementAt(i)).doubleValue()) return false;\n }\n\n return true;\n }", "@Override\n public boolean equals(Object o)\n {\n //thanks to GeeksforGeeks for general form https://www.geeksforgeeks.org/overriding-equals-method-in-java/\n if (o == this)\n return true;\n if (!(o instanceof Thumbnail))\n return false;\n \n Thumbnail t = (Thumbnail) o;\n return imagePath.equals(t.getImagePath());\n }", "public double compareImages(ImageSub img1, ImageSub img2) {\n\t\tdouble[] channels = new double[3];\n\t\tdouble sumOfSquares = 0;\n\t\tfor(int i = 0; i < channels.length; i++) {\n\t\t\tchannels[i] = Imgproc.compareHist(img1.cvChannels.get(i), img2.cvChannels.get(i), Imgproc.CV_COMP_BHATTACHARYYA);\n\t\t\t\n\t\t\t//Uncomment this. Comment the line above\n\t\t\t//channels[i] = SSIM.compareImages(img1.cvChannels.get(i), img2.cvChannels.get(i));\n\t\t\tsumOfSquares += channels[i];\n\t\t}\n\t\tsumOfSquares /= channels.length;\n\t\t//System.out.println(sumOfSquares);\n\t\treturn sumOfSquares;\n\t}", "public void testGetImage() {\n CLImage instance = new CLImage();\n byte[] expResult = new byte[] {1, 2, 3};\n instance.image = new byte[] {1, 2, 3};\n byte[] result = instance.getImage();\n assertEquals(expResult.length, result.length);\n for (int i = 0; i < expResult.length; ++i)\n {\n assertEquals(expResult[i], result[i]);\n }\n }", "public static double compareImage(BufferedImage myImage, BufferedImage otherImage) {\n\t\tif (otherImage.getWidth() != myImage.getWidth()) {\n\t\t\tLOG.info(\"图片宽度不一致\");\n\t\t\treturn 0; \n\t\t}\n\t\tif (otherImage.getHeight() != myImage.getHeight()) {\n\t\t\tLOG.info(\"图片高度不一致\");\n\t\t\treturn 0; \n\t\t}\n\t\tint width = myImage.getWidth();\n\t\tint height = myImage.getHeight();\n\t\tint numDiffPixels = 0;\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tif (myImage.getRGB(x, y) != otherImage.getRGB(x, y)) {\n\t\t\t\t\tnumDiffPixels++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdouble numberPixels = height * width;\n\t\tdouble samePixels = numberPixels - numDiffPixels;\n\t\tdouble samePercent = samePixels / numberPixels * 100;\n\t\tLOG.info(\"相似像素数量:\" + samePixels + \" 不相似像素数量:\" + numDiffPixels + \" 相似率:\" + String.format(\"%.1f\", samePercent) + \"%\");\n\t\treturn samePercent;\n\t}", "@Test\n public void testMedian() {\n System.out.println(\"median\");\n ImageFilter instance = null;\n BufferedImage expResult = null;\n BufferedImage result = instance.median();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n Image image = (Image) o;\n if (image.getId() == null || getId() == null) {\n return false;\n }\n return Objects.equals(getId(), image.getId());\n }", "public boolean equals(Object object) {\n if (object instanceof ImageFile) {\n ImageFile imageFile = (ImageFile) object;\n return imageFile.getOpenable() == this.getOpenable() &&\n imageFile.getPlayable() == this.getPlayable() &&\n imageFile.animated() == this.animated() &&\n imageFile.getFileSizeInBytes() == this.getFileSizeInBytes() &&\n imageFile.getImageHeight() == this.getImageHeight() &&\n imageFile.getImageWidth() == this.getImageWidth() &&\n imageFile.getOpensWith().equals(this.getOpensWith()) &&\n imageFile.getFile() == this.getFile();\n }\n return false;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ProductImage)) {\n return false;\n }\n ProductImage other = (ProductImage) object;\n if ((this.idImage == null && other.idImage != null) || (this.idImage != null && !this.idImage.equals(other.idImage))) {\n return false;\n }\n return true;\n }", "@Test\n\tpublic void equalsSimilarObjects() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tboolean equals = key1.equals(key2);\n\t\tSystem.out.println();\n\t\tAssert.assertTrue(equals);\n\t}", "public boolean equals(Object o){\n if (o instanceof Pixel){\n Pixel other = (Pixel) o;\n return this.getColor() == other.getColor();\n }\n return false;\n }", "@Test\n public void testGenerateStatistics() {\n Statistics me = new Statistics(0, numFishes, numSharks);\n Statistics prog = dataHandler.generateStatistics();\n //assertEquals(me, prog);\n if (me.getIterationStep() == prog.getIterationStep()\n && me.getFishAmount() == prog.getFishAmount()\n && me.getSharksAmount() == prog.getSharksAmount()) {\n assertTrue(true);\n } else {\n assertTrue(false);\n }\n }", "@Test\n\t\tpublic void testPictureSample() {\n\t\t\tPixel[][] red = new Pixel[15][10];\n\t\t\tfor(int x =0; x < 15; x++) {\n\t\t\t\tfor(int y =0; y<10; y++) {\n\t\t\t\t\tif(x%2 == 0) {\n\t\t\t\t\t\tred[x][y] = new ColorPixel(1, 0, 0);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tred[x][y] = new GrayPixel(.5);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tPicture redAndGray = new MutablePixelArrayPicture(red, \"redAndGray\");\n\t\t\tIterator<Pixel> sample = redAndGray.sample(2,3, 3, 4);\n\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(2, 3));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(5, 3));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(8, 3));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(11, 3));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(14, 3));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(2, 7));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(5, 7));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(8, 7));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(11, 7));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(14, 7));\n\t\t\tassertFalse(sample.hasNext());\n\t\t}", "public void testEquals() {\n XYBlockRenderer r1 = new XYBlockRenderer();\n XYBlockRenderer r2 = new XYBlockRenderer();\n r1.setBlockHeight(2.0);\n r2.setBlockHeight(2.0);\n r1.setBlockWidth(2.0);\n r2.setBlockWidth(2.0);\n r1.setPaintScale(new GrayPaintScale(0.0, 1.0));\n r2.setPaintScale(new GrayPaintScale(0.0, 1.0));\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkImageScale() {\n\t\tboolean flag = oTest.checkImageScale();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ImageBank)) {\n return false;\n }\n ImageBank other = (ImageBank) object;\n if ((this.imageId == null && other.imageId != null) || (this.imageId != null && !this.imageId.equals(other.imageId))) {\n return false;\n }\n return true;\n }", "@Test\n public void testNotRegenerateImage() throws Exception {\n assertFalse(\n \"This flag should not be committed as true\", ImageSimilarity.REGENERATE_EXPECTED_IMAGES);\n }", "@Override\n public int compare(Camera.Size lhs, Camera.Size rhs) {\n return Long.signum((long) lhs.width * lhs.height -\n (long) rhs.width * rhs.height);\n }", "@Override\n public int compare(Camera.Size lhs, Camera.Size rhs) {\n return Long.signum((long) lhs.width * lhs.height -\n (long) rhs.width * rhs.height);\n }", "@Override\n public boolean equals(Object obj) {\n if (QuantitySummaryStatistics.class.isInstance(obj)) {\n @SuppressWarnings(\"rawtypes\")\n QuantitySummaryStatistics other = QuantitySummaryStatistics.class.cast(obj);\n return Objects.equals(empty.getUnit(),\n other.empty.getUnit());\n }\n return false;\n }", "private Comparison checkEquality(SimpleNode node1, SimpleNode node2) {\n // Compare the classes.\n Comparison comparison = compareClasses(node1, node2);\n if (!comparison.isEqual()) {\n return comparison;\n }\n\n // Compare the values.\n comparison = compareValues(node1, node2);\n if (!comparison.isEqual()) {\n return comparison;\n }\n\n // Compare the images.\n comparison = compareImages(node1, node2);\n if (!comparison.isEqual()) {\n return comparison;\n }\n\n // Compare the children.\n return compareChildren(node1, node2);\n }", "@Test\n public void noEqualsPicture() {\n final CourseType courseType1 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType1.setId(\"ID\");\n courseType1.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType1.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseType2 = new CourseType(\"N\", \"Pic2\", 5, 1);\n courseType2.setId(\"ID\");\n courseType2.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType2.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseTypeNull = new CourseType(\"N\", null, 5, 1);\n courseTypeNull.setId(\"ID\");\n courseTypeNull.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseTypeNull.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n\n assertNotEquals(courseType1, courseType2);\n assertNotEquals(courseType1, courseTypeNull);\n assertNotEquals(courseTypeNull, courseType1);\n }", "@Test\n public void equals_trulyEqual() {\n SiteInfo si1 = new SiteInfo(\n Amount.valueOf(12000, SiteInfo.CUBIC_FOOT),\n Amount.valueOf(76, NonSI.FAHRENHEIT),\n Amount.valueOf(92, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n 56,\n Damage.CLASS2,\n Country.USA,\n \"Default Site\"\n );\n SiteInfo si2 = new SiteInfo(\n Amount.valueOf(12000, SiteInfo.CUBIC_FOOT),\n Amount.valueOf(76, NonSI.FAHRENHEIT),\n Amount.valueOf(92, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n 56,\n Damage.CLASS2,\n Country.USA,\n \"Default Site\"\n );\n\n Assert.assertEquals(si1, si2);\n }", "public static boolean compareImages(String image1, String image2) {\n \t\tboolean equals = false;\n \t\ttry {\n \t\t\tExifInterface exif1 = new ExifInterface(image1);\n \t\t\tExifInterface exif2 = new ExifInterface(image2);\n \t\t\t\n \t\t\tfinal String datetime1 = exif1.getAttribute(ExifInterface.TAG_DATETIME);\n \t\t\tfinal String datetime2 = exif2.getAttribute(ExifInterface.TAG_DATETIME);\n \t\t\t\n \t\t\tif (!TextUtils.isEmpty(datetime1) && !TextUtils.isEmpty(datetime1)) {\n \t\t\t\tequals = datetime1.equals(datetime2);\n \t\t\t} else {\n \t\t\t\tLog.d(TAG, \"Datetime is null or empty. The MD5 checksum will be compared\");\n \t\t\t\tequals = compareFilesChecksum(image1, image2);\n \t\t\t}\n \t\t} catch (IOException e) {\n \t\t\tLog.e(TAG, e.getMessage());\n \t\t}\n \t\t\n \t\treturn equals;\n \t}", "void compare(BufferedImage bi0, BufferedImage bi1, int biType, Color c) {\n for (int x=0; x<wid; x++) {\n for (int y=0; y<hgt; y++) {\n int rgb0 = bi0.getRGB(x, y);\n int rgb1 = bi1.getRGB(x, y);\n if (rgb0 == rgb1) continue;\n int r0 = (rgb0 & 0xff0000) >> 16;\n int r1 = (rgb1 & 0xff0000) >> 16;\n int rdiff = r0-r1; if (rdiff<0) rdiff = -rdiff;\n int g0 = (rgb0 & 0x00ff00) >> 8;\n int g1 = (rgb1 & 0x00ff00) >> 8;\n int gdiff = g0-g1; if (gdiff<0) gdiff = -gdiff;\n int b0 = (rgb0 & 0x0000ff);\n int b1 = (rgb1 & 0x0000ff);\n int bdiff = b0-b1; if (bdiff<0) bdiff = -bdiff;\n if (rdiff > 1 || gdiff > 1 || bdiff > 1) {\n throw new RuntimeException(\n \"Images differ for type \"+biType + \" col=\"+c +\n \" at x=\" + x + \" y=\"+ y + \" \" +\n Integer.toHexString(rgb0) + \" vs \" +\n Integer.toHexString(rgb1));\n }\n }\n }\n\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (!(o instanceof Biometry)) return false;\n Biometry biometry = (Biometry) o;\n return fingerprint.equals(biometry.fingerprint);\n }", "@Test\n\tpublic void hashCodeSimilarObjects() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tAssert.assertEquals(key1.hashCode(), key2.hashCode());\n\t}", "@Test\n public void testScale() {\n System.out.println(\"scale\");\n Float s = null;\n ImageFilter instance = null;\n BufferedImage expResult = null;\n BufferedImage result = instance.scale(s);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testScaling() {\n System.out.println(\"scaling\");\n double s = 0.0;\n ImageFilter instance = null;\n BufferedImage expResult = null;\n BufferedImage result = instance.scaling(s);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n\tpublic void equalsSameObject() {\n\t\tProductScanImageURIKey key = this.getDefaultKey();\n\t\tboolean equals = key.equals(key);\n\t\tAssert.assertTrue(equals);\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Imagen)) {\r\n return false;\r\n }\r\n Imagen other = (Imagen) object;\r\n if ((this.idImagen == null && other.idImagen != null) || (this.idImagen != null && !this.idImagen.equals(other.idImagen))) {\r\n return false;\r\n }\r\n return true;\r\n }", "private Boolean equalWebItemImages(WebItemImage webItemImageOne, WebItemImage webItemImageTwo) {\n\t\tif (webItemImageOne==null && webItemImageTwo==null) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tif (webItemImageOne==null || webItemImageTwo==null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (webItemImageOne.getSourceURL() == webItemImageTwo.getSourceURL()) {\r\n\t\t\treturn true;\r\n\t\t } else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testPublicInstanceVars() {\n\t\tip = new ImagePlus();\n\t\tassertFalse(ip.changes);\n\t\t/* OBSOLETE\n\t\tassertEquals(1.0,ip.pixelHeight,0.0);\n\t\tassertEquals(1.0,ip.pixelWidth,0.0);\n\t\tassertEquals(\"pixel\",ip.unit);\n\t\tassertEquals(\"pixel\",ip.units);\n\t\tassertFalse(ip.sCalibrated);\n\t\t*/\n\t}", "public static boolean areImagesSame(Image a, Image b) {\n if(a.getWidth() == b.getWidth() && a.getHeight() == b.getHeight()) {\n for(int x=0; x<(int) a.getWidth(); x++) {\n for(int y=0; y<(int) a.getHeight(); y++) {\n // If even a single pixel doesn't match color then it will return false\n if(!a.getPixelReader().getColor(x, y).equals(b.getPixelReader().getColor(x, y))) return false;\n }\n }\n }\n return true;\n }", "@Test\n \tpublic void testEqual() {\n \t\tAssert.assertTrue(f1.equals(f1));\n \t}", "@Test\n public void equals_DifferentObjects_Test() {\n Assert.assertFalse(bq1.equals(ONE));\n }", "int compareToFloat(floats f);", "public void testEquals() {\n XIntervalDataItem item1 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n XIntervalDataItem item2 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.0, 3.0, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.0, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.0, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.4);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.4);\n }", "@Override\n public int compare(Recognition lhs, Recognition rhs) {\n return Float.compare(rhs.getConfidence(), lhs.getConfidence());\n }", "@Override\n\tpublic boolean equals(Object o) {\n\t\tif (this == o) {\n\t\t\treturn true;\n\t\t}\n\t\tif (!(o instanceof ImageSource)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tImageSource that = (ImageSource) o;\n\t\tif (this.id != null ? !this.id.equals(that.id) : that.id != null) return false;\n\n\t\treturn true;\n\t}", "@Test\n public void equalsWithDifferentTypes() throws Exception {\n AttributeKey<Number> key1 = new AttributeKey<Number>(Number.class, \"keyName\");\n AttributeKey<Date> key2 = new AttributeKey<Date>(Date.class, \"keyName\");\n\n assertThat(key1.equals(key2), is(false));\n assertThat(key2.equals(key1), is(false));\n }", "@Override\n\tpublic boolean equals(Object other) {\n\t\tfor(int i = 0; i < config.length; i++) {\n\t\t\tif(Math.abs(config[i] - ((ArmRobot) other).config[i]) / config[i] > 0.1)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\n\tpublic int hashCode()\n\t{\n\t\treturn Objects.hash(mean, stDev, alpha, nameOfStatisticalTest, CIWidth, sampleSize, replicationSize);\n\t}", "boolean equalPixelArrayDim(List<List<Pixel>> pixelArray);", "@Test\n @DisplayName(\"Matched\")\n public void testEqualsMatched() throws BadAttributeException {\n Settings settings = new Settings();\n assertEquals(new Settings().hashCode(), settings.hashCode());\n }", "@Override\n public boolean equals(Object object){\n if(object!=null && object instanceof Figure){\n return 0 == ((Figure)object).compare(this);\n }else\n return false;\n }", "public void testGetType() {\n CLImage instance = new CLImage();\n String expResult = \"image\";\n String result = instance.getType();\n assertEquals(expResult, result);\n }", "@Test\n @DisplayName(\"Matched\")\n public void testEqualsMatched() throws BadAttributeException {\n Settings settings = new Settings();\n assertEquals(new Settings(), settings);\n }", "public void testEquals()\r\n\t{\r\n\t\tIrClassType irClassType1 = new IrClassType();\r\n\t\tirClassType1.setName(\"irClassTypeName\");\r\n\t\tirClassType1.setDescription(\"irClassTypeDescription\");\r\n\t\tirClassType1.setId(55l);\r\n\t\tirClassType1.setVersion(33);\r\n\t\t\r\n\t\tIrClassType irClassType2 = new IrClassType();\r\n\t\tirClassType2.setName(\"irClassTypeName2\");\r\n\t\tirClassType2.setDescription(\"irClassTypeDescription2\");\r\n\t\tirClassType2.setId(55l);\r\n\t\tirClassType2.setVersion(33);\r\n\r\n\t\t\r\n\t\tIrClassType irClassType3 = new IrClassType();\r\n\t\tirClassType3.setName(\"irClassTypeName\");\r\n\t\tirClassType3.setDescription(\"irClassTypeDescription\");\r\n\t\tirClassType3.setId(55l);\r\n\t\tirClassType3.setVersion(33);\r\n\t\t\r\n\t\tassert irClassType1.equals(irClassType3) : \"Classes should be equal\";\r\n\t\tassert !irClassType1.equals(irClassType2) : \"Classes should not be equal\";\r\n\t\t\r\n\t\tassert irClassType1.hashCode() == irClassType3.hashCode() : \"Hash codes should be the same\";\r\n\t\tassert irClassType2.hashCode() != irClassType3.hashCode() : \"Hash codes should not be the same\";\r\n\t}", "@Test\n public void rectEqualImageWriteWithinReadImageTest() {\n final Rectangle rect = new Rectangle(10, 10, 5, 2);\n minx = 0;\n miny = 0;\n width = 100;\n height = 50;\n tilesWidth = 10;\n tilesHeight = 5;\n numBand = 3;\n setRenderedImgTest(minx, miny, width, height, tilesWidth, tilesHeight, numBand, null);\n final SampleModel sampleMW = new PixelInterleavedSampleModel(getDataBufferType(), tilesWidth, tilesHeight, numBand, tilesWidth*numBand, new int[]{0, 1, 2});\n final WritableRenderedImage rendWriteImage = new TiledImage(rect.x, rect.y, rect.width, rect.height, renderedImage.getTileGridXOffset(), renderedImage.getTileGridYOffset(), sampleMW, null);\n setPixelIterator(renderedImage, rendWriteImage, rect);\n while (pixIterator.next()) pixIterator.setSample(1);\n setPixelIterator(rendWriteImage);\n while (pixIterator.next()) assertTrue(pixIterator.getSampleDouble() == 1);\n }", "@Override\n\tpublic boolean equals(Object o) {\n\t\tif (o == null)\n\t\t\treturn false;\n\t\tif (o == this)\n\t\t\treturn true;\n\t\tif (o instanceof EWAHCompressedBitmap) {\n\t\t\tEWAHCompressedBitmap other = (EWAHCompressedBitmap) o;\n\t\t\tif (this.sizeinbits == other.sizeinbits\n\t\t\t\t\t&& this.actualsizeinwords == other.actualsizeinwords\n\t\t\t\t\t&& this.rlw.position == other.rlw.position) {\n\t\t\t\tfor (int k = 0; k < this.actualsizeinwords; ++k)\n\t\t\t\t\tif (this.buffer[k] != other.buffer[k])\n\t\t\t\t\t\treturn false;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tif (o instanceof IBitSet) {\n\t\t\tIBitSet b = (IBitSet) o;\n\t\t\tif (this.sizeinbits != b.sizeInBits())\n\t\t\t\treturn false;\n\t\t\tIntIterator i = intIterator();\n\t\t\tIntIterator j = b.intIterator();\n\n\t\t\twhile (i.hasNext())\n\t\t\t\tif (i.next() != j.next())\n\t\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "@RepeatedTest(20)\n void divTest(){\n assertEquals(f.div(f), new Float(decimal/decimal));\n if(random == 0){\n random+=1;\n g= new Float(random);\n }\n assertEquals(f.div(g), new Float(decimal/random));\n assertEquals(f.div(i), new Float(decimal/seed));\n String binary2 = binary+\"1\"; //just to be sure we're not dividing by zero\n Binary bin = new Binary(binary2);\n assertEquals(f.div(bin), new Float(decimal/bin.toInt(bin.getBinary())));\n assertEquals(i.div(f), new Float(seed/decimal));\n assertEquals(i.div(i), new Int(seed/seed));\n assertEquals(i.div(j), new Int(seed/random));\n assertEquals(i.div(bin), new Int(seed/bi.toInt(bin.getBinary())));\n\n //nulls\n //Bool / ITypes\n assertEquals(bot.div(st),Null);\n assertEquals(bof.div(st),Null);\n assertEquals(bot.div(bot),Null);\n assertEquals(bof.div(bot), Null);\n assertEquals(bot.div(f), Null);\n assertEquals(bof.div(i), Null);\n assertEquals(bot.div(bi), Null);\n //Float / ITypes \\ {Numbers}\n assertEquals(f.div(st), Null);\n assertEquals(f.div(bot), Null);\n assertEquals(f.div(bof), Null);\n //Int / ITypes \\ {Numbers}\n assertEquals(i.div(st), Null);\n assertEquals(i.div(bot),Null);\n assertEquals(i.div(bof), Null);\n //Binary / ITypes \\ {Int, Binary}\n assertEquals(bi.div(st), Null);\n assertEquals(bi.div(bot), Null);\n assertEquals(bi.div(f), Null);\n //NullType divisions\n assertEquals(Null.div(st), Null);\n assertEquals(Null.div(bof), Null);\n assertEquals(Null.div(f), Null);\n assertEquals(Null.div(i), Null);\n assertEquals(Null.div(bi), Null);\n assertEquals(Null.div(Null), Null);\n assertEquals(st.div(Null), Null);\n assertEquals(bot.div(Null), Null);\n assertEquals(f.div(Null), Null);\n assertEquals(i.div(Null), Null);\n assertEquals(bi.div(Null), Null);\n }", "@Test\n public void rectContainsImageWriteTest() {\n final Rectangle rect = new Rectangle(-10, -10, 150, 80);\n minx = 0;\n miny = 0;\n width = 100;\n height = 50;\n tilesWidth = 10;\n tilesHeight = 5;\n numBand = 3;\n setRenderedImgTest(minx, miny, width, height, tilesWidth, tilesHeight, numBand, null);\n setPixelIterator(renderedImage, rect);\n while (pixIterator.next()) pixIterator.setSample(-1);\n fillGoodTabRef(minx, miny, width, height, tilesWidth, tilesHeight, numBand, rect);\n setPixelIterator(renderedImage);\n int comp = 0;\n while (pixIterator.next()) {\n setTabTestValue(comp++, pixIterator.getSampleDouble());\n }\n assertTrue(compareTab());\n }", "@Test\n public void testGetImage() {\n int[][][] copyImage = image.getImage();\n assertEquals(copyImage.length, image.getHeight());\n }", "private boolean isFittingImage(GraphNode infoBitNode, Integer width, Integer height,\n boolean exact) {\n Lock readLock = infoBitNode.readLock();\n readLock.lock();\n try {\n final Iterator<Literal> mediaTypesIter = infoBitNode.getLiterals(DISCOBITS.mediaType);\n if (!mediaTypesIter.hasNext()) {\n return false;\n }\n if (mediaTypesIter.next().getLexicalForm().startsWith(\"image\")) {\n return getSurfaceSizeIfFitting(infoBitNode, width, height, exact) > -1;\n } else {\n return false;\n }\n } finally {\n readLock.unlock();\n }\n }", "int match(ArrayList<ImageCell> images);", "@Test\n public void shouldNotScaleImageWhenSameSize() {\n givenIHaveAnImage();\n\n whenIScaleImageWidthTo(14.999f);\n\n thenTheImageWidthIs(15);\n }", "@Test\n public void equals() {\n UpdateCommand.UpdateProfileDescriptor descriptorWithSameValues = new UpdateCommand\n .UpdateProfileDescriptor(UPDESC_1);\n assertTrue(UPDESC_1.equals(descriptorWithSameValues));\n\n // same object -> returns true\n assertTrue(UPDESC_1.equals(UPDESC_1));\n\n // null -> returns false\n assertFalse(UPDESC_1.equals(null));\n\n // different types -> returns false\n assertFalse(UPDESC_1.equals(5));\n\n // different values -> returns false\n assertFalse(UPDESC_1.equals(UPDESC_2));\n\n // different name -> returns false\n UpdateCommand.UpdateProfileDescriptor editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1)\n .withName(VALID_NAME_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n\n // different id -> returns false\n editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1).withId(VALID_ID_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n\n // different height -> returns false\n editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1).withHeight(VALID_HEIGHT_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n\n // different weight -> returns false\n editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1).withWeight(VALID_WEIGHT_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n }", "@Test\n\tpublic void hashCodeSameObject() {\n\t\tProductScanImageURIKey key = this.getDefaultKey();\n\t\tAssert.assertEquals(key.hashCode(), key.hashCode());\n\t}", "@Override\n public BufferedImage filter(BufferedImage image) {\n int width = image.getWidth();\n int height = image.getHeight();\n int imageType = image.getType();\n BufferedImage newImage = new BufferedImage(width, height, imageType);\n \n // Process each pixel in column-major order\n for (int column = 0; column < newImage.getWidth(); column++) {\n for (int row = 0; row < newImage.getHeight(); row++) {\n \n try {\n // Compare the pixel at (column, row) in this image to the pixel\n // at (column, row) in the other image, and visualize the results\n // accordingly.\n int thisRGB = image.getRGB(column, row);\n int otherRGB = this.other.getRGB(column, row);\n int difference = otherRGB - thisRGB;\n if (difference == 0) {\n newImage.setRGB(column, row, MATCH_COLOR);\n } else {\n newImage.setRGB(column, row, NO_MATCH_COLOR);\n }\n } \n \n // If the other image is narrower or shorter than this one, and this \n // pixel lies out of the range of the smaller image, then visualize\n // this pixel as \"out of bounds\"\n catch (IndexOutOfBoundsException e) {\n newImage.setRGB(column, row, OUT_OF_BOUNDS_COLOR);\n } \n }\n }\n \n return newImage;\n }", "@Test public void equalTest() {\n Dog d = new Dog(\"Owner 1\", \"Rex\", \"Boxer\", 90.0, 7);\n Dog d2 = new Dog(\"Owner 2\", \"Spot\", \"Pit Bull\", 90.0, 7);\n Assert.assertEquals(0, test.compare(d, d2));\n }", "@Test\n void checkChangeImage() {\n ImageViewModel imageModel = new ImageViewModel();\n int countUp = 10;\n int totalTime = 70;\n\n int i = imageModel.checkChangeImage(countUp, totalTime);\n\n assertEquals(1, i);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ComplaintImageDTO)) {\n return false;\n }\n ComplaintImageDTO other = (ComplaintImageDTO) object;\n if ((this.complaintImageID == null && other.complaintImageID != null) || (this.complaintImageID != null && !this.complaintImageID.equals(other.complaintImageID))) {\n return false;\n }\n return true;\n }", "@Test\n public void testExactness() {\n assertMetrics(\"exactness:1\", \"a b c\",\"a x b x x c\");\n assertMetrics(\"exactness:0.9\", \"a b c\",\"a x b:0.7 x x c\");\n assertMetrics(\"exactness:0.7\", \"a b c\",\"a x b:0.6 x x c:0.5\");\n assertMetrics(\"exactness:0.775\", \"a!200 b c\",\"a x b:0.6 x x c:0.5\");\n assertMetrics(\"exactness:0.65\", \"a b c!200\",\"a x b:0.6 x x c:0.5\");\n }", "@Test\n public void testInterestAccumulated() {\n //Just ensure that the first two digits are the same\n assertEquals(expectedResults.getInterestAccumulated(), results.getInterestAccumulated(), 0.15);\n }", "@Override\r\n public boolean equals(Object o)\r\n {\r\n assert(true);\r\n if (o instanceof Size)\r\n {\r\n return ((Size)o).amount==amount&&((Size)o).type==type;\r\n }\r\n return false;\r\n }", "@Test\n public void equals() {\n float[] a = new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n assertTrue(Vec4f.equals(a, 2, b, 3));\n assertTrue(! Vec4f.equals(a, 0, b, 0));\n \n float[] a4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f}; \n \n float[] b4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f};\n float[] c4 = new float[] {2.0f, 2.0f, 3.0f, 4.0f};\n float[] d4 = new float[] {1.0f, 4.0f, 3.0f, 4.0f};\n float[] e4 = new float[] {1.0f, 2.0f, 6.0f, 4.0f};\n float[] f4 = new float[] {1.0f, 2.0f, 3.0f, 5.0f};\n assertTrue(Vec4f.equals(a4,b4));\n assertTrue(!Vec4f.equals(a4,c4));\n assertTrue(!Vec4f.equals(a4,d4));\n assertTrue(!Vec4f.equals(a4,e4));\n assertTrue(!Vec4f.equals(a4,f4)); \n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Metric)) {\n return false;\n }\n return id != null && id.equals(((Metric) o).id);\n }", "@Test\n public void testGrayFilter() {\n System.out.println(\"grayFilter\");\n ImageFilter instance = null;\n BufferedImage expResult = null;\n BufferedImage result = instance.grayFilter();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n\tpublic void testIsAxesMatchingSpatialCalibrationDifferentUnits()\n\t\tthrows Exception\n\t{\n\t\tfinal double scale = 0.75;\n\t\tfinal DefaultLinearAxis xAxis = new DefaultLinearAxis(Axes.X, \"cm\", scale);\n\t\tfinal DefaultLinearAxis yAxis = new DefaultLinearAxis(Axes.Y, \"mm\", scale);\n\t\tfinal Img<BitType> img = ArrayImgs.bits(1, 1);\n\t\tfinal ImgPlus<BitType> imgPlus = new ImgPlus<>(img, \"Test image\", xAxis,\n\t\t\tyAxis);\n\n\t\tfinal boolean result = IsosurfaceWrapper.isAxesMatchingSpatialCalibration(\n\t\t\timgPlus);\n\n\t\tassertFalse(\n\t\t\t\"Different units in axes should mean that calibration doesn't match\",\n\t\t\tresult);\n\t}", "public boolean equals(Object obj) {\n/* 319 */ if (obj == this) {\n/* 320 */ return true;\n/* */ }\n/* 322 */ if (!(obj instanceof SlidingCategoryDataset)) {\n/* 323 */ return false;\n/* */ }\n/* 325 */ SlidingCategoryDataset that = (SlidingCategoryDataset)obj;\n/* 326 */ if (this.firstCategoryIndex != that.firstCategoryIndex) {\n/* 327 */ return false;\n/* */ }\n/* 329 */ if (this.maximumCategoryCount != that.maximumCategoryCount) {\n/* 330 */ return false;\n/* */ }\n/* 332 */ if (!this.underlying.equals(that.underlying)) {\n/* 333 */ return false;\n/* */ }\n/* 335 */ return true;\n/* */ }", "private static void compareForIdenticalKeys() {\n Integer[] identical = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};\n\n Insertion insertion = new Insertion();\n insertion.analyzeSort(identical);\n insertion.getStat().printReport();\n\n Selection selection = new Selection();\n selection.analyzeSort(identical);\n selection.getStat().printReport();\n }", "@Test\n @DisplayName(\"Test should detect equality between equal states.\")\n public void testShouldResultInEquality() {\n ObjectBag os1 = new ObjectBag(null, \"Hi\");\n ObjectBag os2 = new ObjectBag(null, \"Hi\");\n\n Assertions.assertThat(os1).isEqualTo(os2);\n }", "@Test\n\tpublic void testSampleEquals() {\n\n\t\tassertTrue(square.equals(squareRotate));\n\t\t\n\t\tassertTrue(pyr1.equals(pyr5));\n\t\t\n\t\tassertTrue(s.equals(sInitial));\n\t\tassertFalse(stick.equals(stickRotated));\n\t\tassertFalse(s.equals(sRotated));\n\n\n\t}", "private boolean isApproximatelyEqual(Node n, Node first) {\r\n\t\tDouble nwD = n.getWeightValueUnsynchronized(\"value\");\r\n\t\tdouble nw = nwD==null ? 1.0 : nwD.doubleValue();\r\n\t\tDouble fwD = first.getWeightValueUnsynchronized(\"value\");\r\n\t\tdouble fw = fwD==null ? 1.0 : fwD.doubleValue();\r\n\t\treturn fw*_alphaFactor <= nw &&\r\n\t\t\t first.getNborsUnsynchronized().size()*_alphaFactor >= \r\n\t\t\t n.getNborsUnsynchronized().size();\r\n\t}", "public void testRefreshImage()\n {\n Image orig = cover.getImage();\n cover.setType(GamePiece.O);\n cover.refreshImage();\n assertEquals(false, orig.equals(cover.getImage()));\n }", "@Override\n public boolean equals(Object other) {\n if (!(other instanceof BigNumber)) return false;\n BigNumber that = (BigNumber) other;\n if (this.isNaN()) return that.isNaN();\n if (that.isNaN()) return this.isNaN();\n if (this.isZero()) return that.isZero();\n if (that.isZero()) return this.isZero();\n if (this.sign != that.sign) return false;\n if (this.isInfinite()) return that.isInfinite();\n if (that.isInfinite()) return this.isInfinite();\n \n // adjust exponent before comparing mantissa\n int emin = Math.min(this.exponent, that.exponent);\n int dThis = this.exponent - emin;\n int dThat = that.exponent - emin;\n \n for (int i=0; i<Math.max(this.mantissa.length+dThis, that.mantissa.length+dThat); i++) {\n if (this.getMantissaBit(i-dThis) != that.getMantissaBit(i-dThat)) return false;\n }\n return true;\n }", "@Test\n public void testEqualsTrue() {\n Rectangle r5 = new Rectangle(7, 4, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 255),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, -75));\n Rectangle r8 = new Rectangle(0, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n\n assertEquals(r1, r5);\n assertEquals(r2, r6);\n assertEquals(r3, r7);\n assertEquals(r4, r8);\n }", "protected void runTest() throws OgnlException\n {\n Object result;\n\n result = OgnlOps.convertValue(value, toClass);\n if (!isEqual(result, expectedValue)) {\n if (scale >= 0) {\n double scalingFactor = Math.pow(10, scale),\n v1 = ((Number) value).doubleValue() * scalingFactor,\n v2 = ((Number) expectedValue).doubleValue() * scalingFactor;\n\n assertTrue((int) v1 == (int) v2);\n } else {\n fail();\n }\n }\n }", "@Test\r\n public void testMedia() {\r\n EstatisticasUmidade e = new EstatisticasUmidade();\r\n e.setValor(5.2);\r\n e.setValor(7.0);\r\n e.setValor(1.3);\r\n e.setValor(6);\r\n e.setValor(0.87);\r\n double result= e.media(1);\r\n assertArrayEquals(\"ESPERA RESULTADO\", 5.2 , result, 0.1);\r\n }", "@Test\n public void testEquals02() {\n System.out.println(\"equals\");\n Object otherObject = new SocialNetwork();\n boolean result = sn10.equals(otherObject);\n assertFalse(result);\n }", "@Test\n public void equalsWithDifferentName() throws Exception {\n AttributeKey<Number> key1 = new AttributeKey<Number>(Number.class, \"key1\");\n AttributeKey<Number> key2 = new AttributeKey<Number>(Number.class, \"key2\");\n\n assertThat(key1.equals(key2), is(false));\n assertThat(key2.equals(key1), is(false));\n }", "@Test\n\tpublic void testIsAxesMatchingSpatialCalibrationDifferentScales()\n\t\tthrows Exception\n\t{\n\t\tfinal String unit = \"mm\";\n\t\tfinal DefaultLinearAxis xAxis = new DefaultLinearAxis(Axes.X, unit, 0.5);\n\t\tfinal DefaultLinearAxis yAxis = new DefaultLinearAxis(Axes.Y, unit, 0.6);\n\t\tfinal Img<BitType> img = ArrayImgs.bits(1, 1);\n\t\tfinal ImgPlus<BitType> imgPlus = new ImgPlus<>(img, \"Test image\", xAxis,\n\t\t\tyAxis);\n\n\t\tfinal boolean result = IsosurfaceWrapper.isAxesMatchingSpatialCalibration(\n\t\t\timgPlus);\n\n\t\tassertFalse(\n\t\t\t\"Different scales in axes should mean that calibration doesn't match\",\n\t\t\tresult);\n\t}", "@Test\n\tpublic void testGetImage() {\n\n\t\tip = new ImagePlus();\n\t\t//assertNull(ip.img);\n\t\tassertNull(ip.getImage());\n\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"gray8-3x2-sub1.tif\");\n\t\t//assertNull(ip.img);\n\t\tassertNotNull(ip.getImage());\n\t}", "@Override\npublic int compareTo(ImageForSort newImage) {\n\tif(this.distance==newImage.distance)\n\treturn 0;\n\telse if(this.getDistance()>newImage.getDistance()){\n\t\treturn 1;\n\t}else{\n\t\treturn -1;\n\t}\n}", "public boolean equals(java.lang.Object r5) {\n /*\n r4 = this;\n r0 = 1\n if (r5 != r4) goto L_0x0004\n return r0\n L_0x0004:\n r1 = 0\n if (r5 != 0) goto L_0x0008\n return r1\n L_0x0008:\n java.lang.Class r2 = r5.getClass()\n java.lang.Class r3 = r4.getClass()\n boolean r2 = r2.equals(r3)\n if (r2 == 0) goto L_0x004b\n com.dropbox.core.v2.files.ThumbnailArg r5 = (com.dropbox.core.p005v2.files.ThumbnailArg) r5\n java.lang.String r2 = r4.path\n java.lang.String r3 = r5.path\n if (r2 == r3) goto L_0x0024\n boolean r2 = r2.equals(r3)\n if (r2 == 0) goto L_0x0049\n L_0x0024:\n com.dropbox.core.v2.files.ThumbnailFormat r2 = r4.format\n com.dropbox.core.v2.files.ThumbnailFormat r3 = r5.format\n if (r2 == r3) goto L_0x0030\n boolean r2 = r2.equals(r3)\n if (r2 == 0) goto L_0x0049\n L_0x0030:\n com.dropbox.core.v2.files.ThumbnailSize r2 = r4.size\n com.dropbox.core.v2.files.ThumbnailSize r3 = r5.size\n if (r2 == r3) goto L_0x003c\n boolean r2 = r2.equals(r3)\n if (r2 == 0) goto L_0x0049\n L_0x003c:\n com.dropbox.core.v2.files.ThumbnailMode r2 = r4.mode\n com.dropbox.core.v2.files.ThumbnailMode r5 = r5.mode\n if (r2 == r5) goto L_0x004a\n boolean r5 = r2.equals(r5)\n if (r5 == 0) goto L_0x0049\n goto L_0x004a\n L_0x0049:\n r0 = 0\n L_0x004a:\n return r0\n L_0x004b:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.dropbox.core.p005v2.files.ThumbnailArg.equals(java.lang.Object):boolean\");\n }" ]
[ "0.64513916", "0.63562006", "0.6330921", "0.62343115", "0.60846937", "0.5917444", "0.5822622", "0.5785056", "0.57031405", "0.5702863", "0.57012916", "0.5674085", "0.56691206", "0.5660184", "0.5640803", "0.5612106", "0.5600626", "0.55946386", "0.55693436", "0.55692947", "0.55594856", "0.551571", "0.54839194", "0.5483844", "0.54764014", "0.54683423", "0.54611933", "0.54422563", "0.54221225", "0.54118013", "0.53947675", "0.53585446", "0.53585446", "0.5352219", "0.53508615", "0.53435975", "0.53267616", "0.5314001", "0.531068", "0.52950543", "0.52794945", "0.5273001", "0.52708256", "0.5265044", "0.5259498", "0.52383983", "0.523428", "0.52315986", "0.5220314", "0.5209581", "0.52016664", "0.5200966", "0.519697", "0.519526", "0.5186098", "0.5176765", "0.5173214", "0.5171584", "0.5171396", "0.51646054", "0.51592684", "0.5158239", "0.51572", "0.51516604", "0.5143407", "0.5133116", "0.5131953", "0.5121871", "0.51217765", "0.51215917", "0.5121499", "0.5116145", "0.5115555", "0.5110948", "0.51099", "0.5108135", "0.50991124", "0.50984424", "0.5084349", "0.5073264", "0.50677776", "0.5065638", "0.5064448", "0.50635314", "0.50592905", "0.50569224", "0.50499046", "0.5043151", "0.50385815", "0.5036976", "0.5035098", "0.5032831", "0.5031321", "0.5029766", "0.50276715", "0.50266755", "0.5017815", "0.5015057", "0.5012125", "0.5007265" ]
0.72676986
0
just a getter do a compile time test
@Test public void testGetWidth() { ip = new ImagePlus(); ip.getWidth(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isCompileTest() {\n return isCompileTest;\n }", "@Test(result=\"true\")\n Object getConstantValue2() {\n return f3.getConstantValue();\n }", "@Test\n public void testGetter()\n {\n assertEquals(\"Virtus\",test.getPatterName());\n assertNotEquals(\"Fury\",test.getPatterName());\n }", "String constant();", "@Test \n\tpublic void get() \n\t{\n\t\tassertTrue(true);\n\t}", "java.lang.String getHowToUse();", "java.lang.String getHowToUse();", "public static String getFoo() {\n return \"foo\";\n }", "@Test\r\n public void testGetterMethodSucess() throws Exception {\r\n Method m = GetterMethod.getGetter(Tumor.class, \"tumorId\");\r\n assertNotNull(m);\r\n assertEquals(\"getTumorId\", m.getName());\r\n }", "String getConstant();", "@Override\n\tpublic String getTest() {\n\t\treturn \"123\";\n\t}", "static int test()\n\t{\n\n\t\treturn 20;\n\t}", "@Test\n public void testGetType() {\n System.out.println(\"getType\");\n\n String expResult = \"Comum\";\n String result = instance.getType();\n\n assertEquals(expResult, result);\n }", "@Test\n public void testGetType() {\n// CarType expected = CarType.SUV;\n \n }", "@Test\n public void testGetName() {\n System.out.println(\"getName\");\n Setting instance = Setting.factory(\"testname\", Setting.SETTING_TYPE.UND, new Object());\n String expResult = \"testname\";\n String result = instance.getName();\n assertEquals(expResult, result);\n\n }", "public abstract String\n conditional();", "interface TestConstants {\n /** Address that passes the email REGEX validation. */\n String GOOD_EMAIL = \"Jim@hotmail.com\";\n \n /** 10 digit phone number that meets our phone REGEX validation. */\n String GOOD_PHONE = \"5551112222\";\n \n /** There is no REGEX for real names, it just needs to not be blank. */\n String GOOD_NAME = \"Jim Bob\";\n \n /** int for testing good values in Job. */\n int GOOD_INT = 3;\n \n /** int for testing bad values in Job. */\n int BAD_INT = -5;\n \n /** String null value to test for catching cast errors */\n String BAD_STRING = null;\n \n /** String value to test for sunny day string */\n String GOOD_STRING = \"STRING\";\n \n /** Park null value to test for catching cast errors */\n Park P_NULL = null;\n}", "boolean test() {\n return false; // REPLACE WITH SOLUTION\n }", "boolean hasCustomValue();", "@Override\n\tpublic boolean getIsConstant() {\n\t\treturn false;\n\t}", "private Get() {}", "private Get() {}", "@Test\n public void test() {\n setHello(\"Hello\");\n assertThat(getHello() + addWorld()).isEqualTo(\"Hello World\");\n assertThat(likely(true)).isTrue();\n }", "@Test\n void get() {\n }", "public void test_getType() {\n assertEquals(\"'type' value should be properly retrieved.\", type, instance.getType());\n }", "@Test\n public void testAssertObjectNoGetMethodsType() {\n // setup\n final NoGetMethodsType noGetMethodsType = new NoGetMethodsType(TEST);\n final ChangedProperty<String> jokerProperty = Property.change(NoGetMethodsType.PROPERTY, TEST + TEST);\n\n // method\n assertObject(EMPTY_STRING, noGetMethodsType, jokerProperty);\n }", "@Test\r\n\tpublic void AnimalConstMethodTest() {\n\t\tAssert.assertEquals(\"A getBreed incorrect\",\"Dog\",a.getBreed());\r\n\t\tAssert.assertEquals(\"A getAge incorrect\", 5, a.getAge(), 0.000001);\r\n\t}", "boolean hasConstantValue();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public abstract boolean isConstant();", "String getDescriptionIfNotMet();", "@Test\n public void testGetters()\n {\n assertEquals(\"\",test.getPlayerName());\n assertEquals(\"UseCard\",test.toString());\n assertEquals(13,test.getCardID());\n }", "@Test\r\n\tpublic final void testGetSpeed() {\n\t\tassertEquals(20,a.getSpeed());\r\n\t}", "@Test\n public void getDefensiveModifierTest() {\n \n assertEquals(0.2, hawthorn1.getDefenseModifier(), 0.1);\n }", "public static String lazyInit(){\n\t\tthrow new IllegalStateException(\"Lombok were supposed to inject this variable\");\n\t}", "@Test\n\tpublic void test_returnBooleanFoo_true() {\n\n\t}", "public boolean mustCompile() {\n return true;\n }", "boolean isInjected();", "java.lang.String getConstantValue();", "@SuppressWarnings({ \"static-method\", \"nls\" })\n @Test\n public final void testGetProperty()\n {\n TestEasyPropertiesObject object = new TestEasyPropertiesObject();\n Assert.assertEquals(\"1.2.3\", object.getVersion());\n }", "public boolean getUsePrecompiled();", "@Test\n public void testGetValue() {\n System.out.println(\"getValue\");\n Setting instance = null;\n Object expResult = null;\n Object result = instance.getValue();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "Object getPropertytrue();", "public boolean isConstant();", "@Test\n public void testIsNotUsed() {\n System.out.println(\"isNotUsed\");\n Setting s = Setting.factory();\n Setting s1 = Setting.factory();\n Setting s2 = Setting.factory();\n Setting s3 = Setting.getSetting(\"test1\");\n assertTrue(Setting.isNotUsed(\"junk\"));\n assertFalse(Setting.isNotUsed(s.getName()));\n\n }", "public String getPattern() {\n/* 223 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n\tpublic void test_returnBooleanFoo_false() {\n\t}", "private String getGetMethodName() {\n assert name != null;\n if (field != null && (field.getType() == Boolean.class\n || \"boolean\".equals(field.getType().getName()))) {\n return \"is\" + upperFirstChar(name);\n }\n return \"get\" + upperFirstChar(name);\n }", "@Test\n public void comeTypeTest() {\n // TODO: test comeType\n }", "@Test\n public void testGetSrc() {\n System.out.println(\"getSrc\");\n VM instance = null;\n String expResult = \"\";\n String result = instance.getSrc();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "static int type_of_cmc(String passed){\n\t\treturn 1;\n\t}", "@Test\n public void effectTypeTest() {\n // TODO: test effectType\n }", "T getRandomAllowedValue();", "@Test\n public void testProgramElementsType() {\n // TODO: test ProgramElementsType\n }", "@Override\n\tpublic boolean test() {\n\t\treturn false;\n\t}", "@Test\n public void getterTest() {\n int shields2 = stack.getResource(ResourceType.SHIELDS);\n int servants2 = stack.getResource(ResourceType.SERVANTS);\n int coins2 = stack.getResource(ResourceType.COINS);\n int stones2 = stack.getResource(ResourceType.STONES);\n\n assertEquals(1, shields2);\n assertEquals(2, servants2);\n assertEquals(3, coins2);\n assertEquals(4, stones2);\n }", "@Override\n public boolean isConstant() {\n return false;\n }", "boolean get();", "boolean getNoPrecompile() {\n return noPrecompile;\n }", "@Test\n public void testGetInsulatedBool()\n {\n System.out.println(\"getInsulatedBool\");\n PipeTypeFour instance = new PipeTypeFour(1,39, PipeGrade.THREE, false);;\n boolean expResult = true;\n boolean result = instance.getInsulatedBool();\n assertEquals(expResult, result);\n }", "public void testAddressCityConstant() {\n assertEquals(\"ADDRESS_CITY is incorrect\", UserConstants.ADDRESS_CITY, \"address-city\");\n }", "@Test\n\tpublic void testGetBuildVersion() {\n\t\tString buildVersion = rmitAnalyticsModel.getBuildVersion();\n\t\tAssert.assertNotNull(buildVersion);\n\t\tAssert.assertTrue(buildVersion.isEmpty());\n\t}", "boolean getB23();", "@Test\n public void test() {\n final Template reference = TemplateReference.instance(\"reference\", \"value\");\n Assert.assertEquals(reference.apply(s -> null), reference.toString());\n Assert.assertEquals(reference.apply(s -> \"symbol\"), \"symbol\");\n Assert.assertEquals(reference.apply(s -> \"value\".equals(s) ? \"symbol\" : \"failed\"), \"symbol\");\n Assert.assertEquals(reference.toString(), \"reference\");\n }", "@Test\n public void testGetValue ()\n {\n System.out.println (\"getValue\");\n QueryDatas instance = new QueryDatas (\"nom\", \"value\");\n String expResult = \"value\";\n String result = instance.getValue ();\n Assert.assertEquals (expResult, result);\n\n }", "public void testSponsorTypeNameConstant() {\n assertEquals(\"SPONSOR_TYPE_NAME is incorrect\", UserConstants.SPONSOR_TYPE_NAME, \"sponsor\");\n }", "@Test\r\n\tpublic void HealthyPersonConstTest() {\n\t\tAssert.assertEquals(\"HP getReason incorrect\", \"allergies\", hp1.getReason());\r\n\t\tAssert.assertEquals(\"HP getName incorrect\", \"Alex\", hp1.getName());\r\n\t\tAssert.assertEquals(\"HP getAge incorrect\", 20, hp1.getAge(),0.0001);\r\n\t}", "@Nullable public abstract Object getConstantValue() throws CompileException;", "@Test\r\n public void getPhoneTest()\r\n {\r\n Assert.assertEquals(stub.getPhone(), PHONE);\r\n }", "boolean hasConst();", "@Test\n public void typeTest() {\n // TODO: test type\n }", "@Test\n public void typeTest() {\n // TODO: test type\n }", "@Test\n public void typeTest() {\n // TODO: test type\n }", "public int getProF() {\n/* 42 */ return this.proF;\n/* */ }", "public interface MyConstant {\n\tpublic boolean DEBUG = true;\n\n}", "@Test\n public void testValueOf() {\n assertSame(Configuration.Key.isDoubleToDoubleSupported,\n Configuration.Key.valueOf(\"isDoubleToDoubleSupported\", Boolean.class));\n assertSame(Configuration.Key.mtFactory,\n Configuration.Key.valueOf(\"mtFactory\", MathTransformFactory.class));\n }", "protected String isGetter(final Method<?> method)\r\n {\r\n \r\n String methodName = method.getName();\r\n String propertyName;\r\n \r\n if (methodName.startsWith(ClassUtils.JAVABEAN_GET_PREFIX))\r\n {\r\n propertyName = methodName.substring(ClassUtils.JAVABEAN_GET_PREFIX.length());\r\n \r\n }\r\n else if (methodName.startsWith(ClassUtils.JAVABEAN_IS_PREFIX)\r\n && boolean.class.equals(method.getQualifiedReturnType()))\r\n {\r\n \r\n // As per section 8.3.2 (Boolean properties) of The JavaBeans API specification, 'is'\r\n // only applies to boolean (little 'b')\r\n \r\n propertyName = methodName.substring(ClassUtils.JAVABEAN_IS_PREFIX.length());\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n \r\n if (!StringUtils.isCapitalized(propertyName))\r\n {\r\n return null;\r\n }\r\n \r\n return StringUtils.decapitalize(propertyName);\r\n }", "abstract String applicable(Method[] getters) throws InvalidObjectException;", "public void testPlayerTypeNameConstant() {\n assertEquals(\"PLAYER_TYPE_NAME is incorrect\", UserConstants.PLAYER_TYPE_NAME, \"player\");\n }", "public void testisReadOnly() {\n assertTrue(\"Failed to return the value correctly.\", loopReadOnly.isReadOnly());\n }", "@Test\n void getName() {\n assertEquals(\"roo\", roo.getName());\n }", "@Test\n public void testBooleanPropertyQuick() {\n Assertions.assertTrue(classObject.getBoolean(\"Started\"));\n }", "@RecentlyNonNull\n/* */ public String getWidgetType() {\n/* 47 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n\tpublic void testDoGeneration() {\n\t}", "public int getValue() { return 42; }", "@Test\n public void testGetMyPartyKey() {\n System.out.println(\"getMyPartyKey\");\n String expResult = MY_PARTY_KEY;\n String result = instance.getMyPartyKey();\n assertEquals(expResult, result);\n }", "private ReadProperty()\r\n {\r\n\r\n }", "public interface Rule<T> {\n\n /**\n * Get random allowed value.\n *\n * @return random allowed value\n */\n T getRandomAllowedValue();\n\n}", "boolean getPossiblyBad();", "abstract int pregnancy();", "@Test\n public void testGetValue()\n {\n // single default value\n when(m_AttributeModel.getDefaultValues()).thenReturn(Arrays.asList(new String[]{\"one default\"}));\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getValue(), is((Object)\"one default\"));\n \n when(m_AttributeModel.getDefaultValues()).thenReturn(Arrays.asList(new String[]{\"default 1\", \"default 2\"}));\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getValue(), is((Object)Arrays.asList(new String[]{\"default 1\", \"default 2\"})));\n \n // set a value\n m_SUT.setValue(\"test non-default\");\n assertThat(m_SUT.getValue(), is((Object)\"test non-default\"));\n \n //test empty default value array\n when(m_AttributeModel.getDefaultValues()).thenReturn(Arrays.asList(new String[]{}));\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getValue(), is((Object)\"\"));\n \n //ensure that returned type corresponds to given attribute definition type (boolean)\n when(m_AttributeModel.getDefaultValues()).thenReturn(Arrays.asList(new String[]{\"true\"}));\n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BOOLEAN);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n Boolean myBool = (Boolean)m_SUT.getValue();\n assertThat(myBool, is(true));\n \n //for good measure, verify bad boolean type will result in exception\n when(m_AttributeModel.getDefaultValues()).thenReturn(Arrays.asList(new String[]{\"not a bool\"}));\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n try\n {\n fail(\"illegal argument exception expected. Value is: \"+ m_SUT.getValue());\n }\n catch (IllegalArgumentException e)\n {\n assertThat(e.getMessage(), containsString(\"cannot be parsed to a boolean\"));\n }\n }", "public String getLanguage() {\n/* 238 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void reqTypeTest() {\n // TODO: test reqType\n }", "private Element get() {\n return new MockElement();\n }", "@Test\n public void testGetName() {\n System.out.println(\"getName\");\n assertEquals(\"Abstract building\", building.getName());\n // TODO review the generated test code and remove the default call to fail.\n }", "public void testSingleVar() { assertValid(\"int a;\"); }", "public void testInvalid() {\n\t\tassertNotNull(\"Should have compiler available (for testing to be available)\", this.compiler);\n\t}", "@Test\n\tpublic void testGetBuildDate() {\n\t\tString buildDate = rmitAnalyticsModel.getBuildDate();\n\t\tAssert.assertNotNull(buildDate);\n\t\tAssert.assertTrue(buildDate.isEmpty());\n\t}", "private StaticProperty() {}", "public abstract String get();", "public static Spring constant(int paramInt) {\n/* 526 */ return constant(paramInt, paramInt, paramInt);\n/* */ }" ]
[ "0.60950834", "0.58706576", "0.5870091", "0.5754489", "0.5701521", "0.5667622", "0.5667622", "0.5666315", "0.5662379", "0.56181115", "0.55019623", "0.5469712", "0.5469119", "0.5460324", "0.5455245", "0.5434684", "0.543097", "0.5430565", "0.5415487", "0.5407256", "0.5399145", "0.5399145", "0.53844017", "0.5381625", "0.5364637", "0.53546184", "0.5345867", "0.5340314", "0.5321767", "0.53194845", "0.52750653", "0.5246705", "0.52457345", "0.5244301", "0.52367663", "0.52340114", "0.52309865", "0.5229562", "0.5229172", "0.52276814", "0.5227389", "0.5213914", "0.5199092", "0.51972014", "0.51958203", "0.5191994", "0.5190355", "0.5176949", "0.51763827", "0.51669014", "0.51594573", "0.51569253", "0.51503515", "0.51487863", "0.51457757", "0.5144114", "0.51344466", "0.513261", "0.5130247", "0.51178557", "0.51046276", "0.5099857", "0.50956774", "0.50946546", "0.5092305", "0.5092226", "0.5090806", "0.50891924", "0.50885916", "0.5085943", "0.5084952", "0.5084952", "0.5084952", "0.5081812", "0.50768757", "0.5066907", "0.5065258", "0.5062789", "0.50602865", "0.50598484", "0.505786", "0.5053578", "0.50419086", "0.5041259", "0.50407183", "0.503646", "0.5035607", "0.50300366", "0.5029509", "0.50293994", "0.5027127", "0.5026059", "0.50260586", "0.50260335", "0.50204664", "0.501859", "0.50177395", "0.50119495", "0.5011385", "0.4997384", "0.49949718" ]
0.0
-1
just a getter do a compile time test
@Test public void testGetHeight() { ip = new ImagePlus(); ip.getHeight(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isCompileTest() {\n return isCompileTest;\n }", "@Test(result=\"true\")\n Object getConstantValue2() {\n return f3.getConstantValue();\n }", "@Test\n public void testGetter()\n {\n assertEquals(\"Virtus\",test.getPatterName());\n assertNotEquals(\"Fury\",test.getPatterName());\n }", "String constant();", "@Test \n\tpublic void get() \n\t{\n\t\tassertTrue(true);\n\t}", "java.lang.String getHowToUse();", "java.lang.String getHowToUse();", "public static String getFoo() {\n return \"foo\";\n }", "@Test\r\n public void testGetterMethodSucess() throws Exception {\r\n Method m = GetterMethod.getGetter(Tumor.class, \"tumorId\");\r\n assertNotNull(m);\r\n assertEquals(\"getTumorId\", m.getName());\r\n }", "String getConstant();", "@Override\n\tpublic String getTest() {\n\t\treturn \"123\";\n\t}", "static int test()\n\t{\n\n\t\treturn 20;\n\t}", "@Test\n public void testGetType() {\n System.out.println(\"getType\");\n\n String expResult = \"Comum\";\n String result = instance.getType();\n\n assertEquals(expResult, result);\n }", "@Test\n public void testGetType() {\n// CarType expected = CarType.SUV;\n \n }", "@Test\n public void testGetName() {\n System.out.println(\"getName\");\n Setting instance = Setting.factory(\"testname\", Setting.SETTING_TYPE.UND, new Object());\n String expResult = \"testname\";\n String result = instance.getName();\n assertEquals(expResult, result);\n\n }", "public abstract String\n conditional();", "interface TestConstants {\n /** Address that passes the email REGEX validation. */\n String GOOD_EMAIL = \"Jim@hotmail.com\";\n \n /** 10 digit phone number that meets our phone REGEX validation. */\n String GOOD_PHONE = \"5551112222\";\n \n /** There is no REGEX for real names, it just needs to not be blank. */\n String GOOD_NAME = \"Jim Bob\";\n \n /** int for testing good values in Job. */\n int GOOD_INT = 3;\n \n /** int for testing bad values in Job. */\n int BAD_INT = -5;\n \n /** String null value to test for catching cast errors */\n String BAD_STRING = null;\n \n /** String value to test for sunny day string */\n String GOOD_STRING = \"STRING\";\n \n /** Park null value to test for catching cast errors */\n Park P_NULL = null;\n}", "boolean test() {\n return false; // REPLACE WITH SOLUTION\n }", "boolean hasCustomValue();", "@Override\n\tpublic boolean getIsConstant() {\n\t\treturn false;\n\t}", "private Get() {}", "private Get() {}", "@Test\n public void test() {\n setHello(\"Hello\");\n assertThat(getHello() + addWorld()).isEqualTo(\"Hello World\");\n assertThat(likely(true)).isTrue();\n }", "@Test\n void get() {\n }", "public void test_getType() {\n assertEquals(\"'type' value should be properly retrieved.\", type, instance.getType());\n }", "@Test\n public void testAssertObjectNoGetMethodsType() {\n // setup\n final NoGetMethodsType noGetMethodsType = new NoGetMethodsType(TEST);\n final ChangedProperty<String> jokerProperty = Property.change(NoGetMethodsType.PROPERTY, TEST + TEST);\n\n // method\n assertObject(EMPTY_STRING, noGetMethodsType, jokerProperty);\n }", "@Test\r\n\tpublic void AnimalConstMethodTest() {\n\t\tAssert.assertEquals(\"A getBreed incorrect\",\"Dog\",a.getBreed());\r\n\t\tAssert.assertEquals(\"A getAge incorrect\", 5, a.getAge(), 0.000001);\r\n\t}", "boolean hasConstantValue();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public abstract boolean isConstant();", "String getDescriptionIfNotMet();", "@Test\n public void testGetters()\n {\n assertEquals(\"\",test.getPlayerName());\n assertEquals(\"UseCard\",test.toString());\n assertEquals(13,test.getCardID());\n }", "@Test\r\n\tpublic final void testGetSpeed() {\n\t\tassertEquals(20,a.getSpeed());\r\n\t}", "@Test\n public void getDefensiveModifierTest() {\n \n assertEquals(0.2, hawthorn1.getDefenseModifier(), 0.1);\n }", "public static String lazyInit(){\n\t\tthrow new IllegalStateException(\"Lombok were supposed to inject this variable\");\n\t}", "@Test\n\tpublic void test_returnBooleanFoo_true() {\n\n\t}", "public boolean mustCompile() {\n return true;\n }", "boolean isInjected();", "java.lang.String getConstantValue();", "@SuppressWarnings({ \"static-method\", \"nls\" })\n @Test\n public final void testGetProperty()\n {\n TestEasyPropertiesObject object = new TestEasyPropertiesObject();\n Assert.assertEquals(\"1.2.3\", object.getVersion());\n }", "public boolean getUsePrecompiled();", "@Test\n public void testGetValue() {\n System.out.println(\"getValue\");\n Setting instance = null;\n Object expResult = null;\n Object result = instance.getValue();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "Object getPropertytrue();", "public boolean isConstant();", "@Test\n public void testIsNotUsed() {\n System.out.println(\"isNotUsed\");\n Setting s = Setting.factory();\n Setting s1 = Setting.factory();\n Setting s2 = Setting.factory();\n Setting s3 = Setting.getSetting(\"test1\");\n assertTrue(Setting.isNotUsed(\"junk\"));\n assertFalse(Setting.isNotUsed(s.getName()));\n\n }", "public String getPattern() {\n/* 223 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n\tpublic void test_returnBooleanFoo_false() {\n\t}", "private String getGetMethodName() {\n assert name != null;\n if (field != null && (field.getType() == Boolean.class\n || \"boolean\".equals(field.getType().getName()))) {\n return \"is\" + upperFirstChar(name);\n }\n return \"get\" + upperFirstChar(name);\n }", "@Test\n public void comeTypeTest() {\n // TODO: test comeType\n }", "@Test\n public void testGetSrc() {\n System.out.println(\"getSrc\");\n VM instance = null;\n String expResult = \"\";\n String result = instance.getSrc();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "static int type_of_cmc(String passed){\n\t\treturn 1;\n\t}", "@Test\n public void effectTypeTest() {\n // TODO: test effectType\n }", "T getRandomAllowedValue();", "@Test\n public void testProgramElementsType() {\n // TODO: test ProgramElementsType\n }", "@Override\n\tpublic boolean test() {\n\t\treturn false;\n\t}", "@Test\n public void getterTest() {\n int shields2 = stack.getResource(ResourceType.SHIELDS);\n int servants2 = stack.getResource(ResourceType.SERVANTS);\n int coins2 = stack.getResource(ResourceType.COINS);\n int stones2 = stack.getResource(ResourceType.STONES);\n\n assertEquals(1, shields2);\n assertEquals(2, servants2);\n assertEquals(3, coins2);\n assertEquals(4, stones2);\n }", "@Override\n public boolean isConstant() {\n return false;\n }", "boolean get();", "boolean getNoPrecompile() {\n return noPrecompile;\n }", "@Test\n public void testGetInsulatedBool()\n {\n System.out.println(\"getInsulatedBool\");\n PipeTypeFour instance = new PipeTypeFour(1,39, PipeGrade.THREE, false);;\n boolean expResult = true;\n boolean result = instance.getInsulatedBool();\n assertEquals(expResult, result);\n }", "public void testAddressCityConstant() {\n assertEquals(\"ADDRESS_CITY is incorrect\", UserConstants.ADDRESS_CITY, \"address-city\");\n }", "@Test\n\tpublic void testGetBuildVersion() {\n\t\tString buildVersion = rmitAnalyticsModel.getBuildVersion();\n\t\tAssert.assertNotNull(buildVersion);\n\t\tAssert.assertTrue(buildVersion.isEmpty());\n\t}", "boolean getB23();", "@Test\n public void test() {\n final Template reference = TemplateReference.instance(\"reference\", \"value\");\n Assert.assertEquals(reference.apply(s -> null), reference.toString());\n Assert.assertEquals(reference.apply(s -> \"symbol\"), \"symbol\");\n Assert.assertEquals(reference.apply(s -> \"value\".equals(s) ? \"symbol\" : \"failed\"), \"symbol\");\n Assert.assertEquals(reference.toString(), \"reference\");\n }", "@Test\n public void testGetValue ()\n {\n System.out.println (\"getValue\");\n QueryDatas instance = new QueryDatas (\"nom\", \"value\");\n String expResult = \"value\";\n String result = instance.getValue ();\n Assert.assertEquals (expResult, result);\n\n }", "public void testSponsorTypeNameConstant() {\n assertEquals(\"SPONSOR_TYPE_NAME is incorrect\", UserConstants.SPONSOR_TYPE_NAME, \"sponsor\");\n }", "@Test\r\n\tpublic void HealthyPersonConstTest() {\n\t\tAssert.assertEquals(\"HP getReason incorrect\", \"allergies\", hp1.getReason());\r\n\t\tAssert.assertEquals(\"HP getName incorrect\", \"Alex\", hp1.getName());\r\n\t\tAssert.assertEquals(\"HP getAge incorrect\", 20, hp1.getAge(),0.0001);\r\n\t}", "@Nullable public abstract Object getConstantValue() throws CompileException;", "@Test\r\n public void getPhoneTest()\r\n {\r\n Assert.assertEquals(stub.getPhone(), PHONE);\r\n }", "boolean hasConst();", "@Test\n public void typeTest() {\n // TODO: test type\n }", "@Test\n public void typeTest() {\n // TODO: test type\n }", "@Test\n public void typeTest() {\n // TODO: test type\n }", "public int getProF() {\n/* 42 */ return this.proF;\n/* */ }", "public interface MyConstant {\n\tpublic boolean DEBUG = true;\n\n}", "@Test\n public void testValueOf() {\n assertSame(Configuration.Key.isDoubleToDoubleSupported,\n Configuration.Key.valueOf(\"isDoubleToDoubleSupported\", Boolean.class));\n assertSame(Configuration.Key.mtFactory,\n Configuration.Key.valueOf(\"mtFactory\", MathTransformFactory.class));\n }", "protected String isGetter(final Method<?> method)\r\n {\r\n \r\n String methodName = method.getName();\r\n String propertyName;\r\n \r\n if (methodName.startsWith(ClassUtils.JAVABEAN_GET_PREFIX))\r\n {\r\n propertyName = methodName.substring(ClassUtils.JAVABEAN_GET_PREFIX.length());\r\n \r\n }\r\n else if (methodName.startsWith(ClassUtils.JAVABEAN_IS_PREFIX)\r\n && boolean.class.equals(method.getQualifiedReturnType()))\r\n {\r\n \r\n // As per section 8.3.2 (Boolean properties) of The JavaBeans API specification, 'is'\r\n // only applies to boolean (little 'b')\r\n \r\n propertyName = methodName.substring(ClassUtils.JAVABEAN_IS_PREFIX.length());\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n \r\n if (!StringUtils.isCapitalized(propertyName))\r\n {\r\n return null;\r\n }\r\n \r\n return StringUtils.decapitalize(propertyName);\r\n }", "abstract String applicable(Method[] getters) throws InvalidObjectException;", "public void testPlayerTypeNameConstant() {\n assertEquals(\"PLAYER_TYPE_NAME is incorrect\", UserConstants.PLAYER_TYPE_NAME, \"player\");\n }", "public void testisReadOnly() {\n assertTrue(\"Failed to return the value correctly.\", loopReadOnly.isReadOnly());\n }", "@Test\n void getName() {\n assertEquals(\"roo\", roo.getName());\n }", "@Test\n public void testBooleanPropertyQuick() {\n Assertions.assertTrue(classObject.getBoolean(\"Started\"));\n }", "@RecentlyNonNull\n/* */ public String getWidgetType() {\n/* 47 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n\tpublic void testDoGeneration() {\n\t}", "public int getValue() { return 42; }", "@Test\n public void testGetMyPartyKey() {\n System.out.println(\"getMyPartyKey\");\n String expResult = MY_PARTY_KEY;\n String result = instance.getMyPartyKey();\n assertEquals(expResult, result);\n }", "private ReadProperty()\r\n {\r\n\r\n }", "public interface Rule<T> {\n\n /**\n * Get random allowed value.\n *\n * @return random allowed value\n */\n T getRandomAllowedValue();\n\n}", "boolean getPossiblyBad();", "abstract int pregnancy();", "@Test\n public void testGetValue()\n {\n // single default value\n when(m_AttributeModel.getDefaultValues()).thenReturn(Arrays.asList(new String[]{\"one default\"}));\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getValue(), is((Object)\"one default\"));\n \n when(m_AttributeModel.getDefaultValues()).thenReturn(Arrays.asList(new String[]{\"default 1\", \"default 2\"}));\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getValue(), is((Object)Arrays.asList(new String[]{\"default 1\", \"default 2\"})));\n \n // set a value\n m_SUT.setValue(\"test non-default\");\n assertThat(m_SUT.getValue(), is((Object)\"test non-default\"));\n \n //test empty default value array\n when(m_AttributeModel.getDefaultValues()).thenReturn(Arrays.asList(new String[]{}));\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getValue(), is((Object)\"\"));\n \n //ensure that returned type corresponds to given attribute definition type (boolean)\n when(m_AttributeModel.getDefaultValues()).thenReturn(Arrays.asList(new String[]{\"true\"}));\n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BOOLEAN);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n Boolean myBool = (Boolean)m_SUT.getValue();\n assertThat(myBool, is(true));\n \n //for good measure, verify bad boolean type will result in exception\n when(m_AttributeModel.getDefaultValues()).thenReturn(Arrays.asList(new String[]{\"not a bool\"}));\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n try\n {\n fail(\"illegal argument exception expected. Value is: \"+ m_SUT.getValue());\n }\n catch (IllegalArgumentException e)\n {\n assertThat(e.getMessage(), containsString(\"cannot be parsed to a boolean\"));\n }\n }", "public String getLanguage() {\n/* 238 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void reqTypeTest() {\n // TODO: test reqType\n }", "private Element get() {\n return new MockElement();\n }", "@Test\n public void testGetName() {\n System.out.println(\"getName\");\n assertEquals(\"Abstract building\", building.getName());\n // TODO review the generated test code and remove the default call to fail.\n }", "public void testSingleVar() { assertValid(\"int a;\"); }", "public void testInvalid() {\n\t\tassertNotNull(\"Should have compiler available (for testing to be available)\", this.compiler);\n\t}", "@Test\n\tpublic void testGetBuildDate() {\n\t\tString buildDate = rmitAnalyticsModel.getBuildDate();\n\t\tAssert.assertNotNull(buildDate);\n\t\tAssert.assertTrue(buildDate.isEmpty());\n\t}", "private StaticProperty() {}", "public abstract String get();", "public static Spring constant(int paramInt) {\n/* 526 */ return constant(paramInt, paramInt, paramInt);\n/* */ }" ]
[ "0.60950834", "0.58706576", "0.5870091", "0.5754489", "0.5701521", "0.5667622", "0.5667622", "0.5666315", "0.5662379", "0.56181115", "0.55019623", "0.5469712", "0.5469119", "0.5460324", "0.5455245", "0.5434684", "0.543097", "0.5430565", "0.5415487", "0.5407256", "0.5399145", "0.5399145", "0.53844017", "0.5381625", "0.5364637", "0.53546184", "0.5345867", "0.5340314", "0.5321767", "0.53194845", "0.52750653", "0.5246705", "0.52457345", "0.5244301", "0.52367663", "0.52340114", "0.52309865", "0.5229562", "0.5229172", "0.52276814", "0.5227389", "0.5213914", "0.5199092", "0.51972014", "0.51958203", "0.5191994", "0.5190355", "0.5176949", "0.51763827", "0.51669014", "0.51594573", "0.51569253", "0.51503515", "0.51487863", "0.51457757", "0.5144114", "0.51344466", "0.513261", "0.5130247", "0.51178557", "0.51046276", "0.5099857", "0.50956774", "0.50946546", "0.5092305", "0.5092226", "0.5090806", "0.50891924", "0.50885916", "0.5085943", "0.5084952", "0.5084952", "0.5084952", "0.5081812", "0.50768757", "0.5066907", "0.5065258", "0.5062789", "0.50602865", "0.50598484", "0.505786", "0.5053578", "0.50419086", "0.5041259", "0.50407183", "0.503646", "0.5035607", "0.50300366", "0.5029509", "0.50293994", "0.5027127", "0.5026059", "0.50260586", "0.50260335", "0.50204664", "0.501859", "0.50177395", "0.50119495", "0.5011385", "0.4997384", "0.49949718" ]
0.0
-1
note getImageStackSize() is nearly identical to getStackSize() one needs to be retired? same tests will suffice
@Test public void testGetImageStackSize() { ip = new ImagePlus(); assertEquals(1,ip.getImageStackSize()); st = new ImageStack(2,2); st.addSlice("GrandmaKat", new byte[] {0,8,4,1}); st.addSlice("GrandpaHuff", new byte[] {0,8,4,1}); st.addSlice("UncleRemus", new byte[] {0,8,4,1}); st.addSlice("AuntRomulus", new byte[] {0,8,4,1}); st.addSlice("BabyAchilles", new byte[] {0,8,4,1}); ip.setStack("CarribeanDreams", st); assertEquals(5,ip.getImageStackSize()); st.deleteLastSlice(); assertEquals(4,ip.getImageStackSize()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getStackSizeWishInKb();", "@Test\n\tpublic void testGetNFrames() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(8,ip.getNFrames());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(4,ip.getNFrames());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(2,ip.getNFrames());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(4,ip.getNFrames());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(2,ip.getNFrames());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNFrames());\n\t}", "@Test\n\tpublic void testGetStack() {\n\t\tip = new ImagePlus();\n\t\tst = ip.getStack();\n\t\tassertEquals(1,ip.getStackSize());\n\n\t\t// if stack == null and not proc == null and no info string\n\t\t// do stuff and setRoi() if needed\n\t\tproc = new ByteProcessor(1,1,new byte[] {22}, null);\n\t\tip = new ImagePlus(\"CareBearStation\",proc);\n\t\tst = ip.getStack();\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertNull(st.getSliceLabel(1));\n\t\tassertEquals(proc.getColorModel(),st.getColorModel());\n\t\tassertEquals(proc.getRoi(),st.getRoi());\n\n\t\t// if stack == null and not proc == null and yes info string\n\t\t// do stuff and setRoi() if needed\n\t\tproc = new ByteProcessor(1,1,new byte[] {22}, null);\n\t\tip = new ImagePlus(\"CareBearStation\",proc);\n\t\tip.setProperty(\"Info\",\"SnapDragon\");\n\t\tst = ip.getStack();\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertEquals(\"CareBearStation\\nSnapDragon\",st.getSliceLabel(1));\n\t\tassertEquals(proc.getColorModel(),st.getColorModel());\n\t\tassertEquals(proc.getRoi(),st.getRoi());\n\n\t\t// if not stack == null\n\t\t// do stuff and setRoi() if needed\n\t\tproc = new ByteProcessor(1,1,new byte[] {22}, null);\n\t\tip = new ImagePlus(\"CareBearStation\",proc);\n\t\tst = new ImageStack(1,1);\n\t\tst.addSlice(\"Fixed\", proc);\n\t\tst.addSlice(\"Crooked\", proc);\n\t\tip.setStack(\"Odds\",st);\n\t\tst = ip.getStack();\n\t\tassertEquals(2,ip.getStackSize());\n\t\tassertEquals(proc.getColorModel(),st.getColorModel());\n\t\tassertEquals(proc.getRoi(),st.getRoi());\n\t}", "public abstract int getSmallStackSizeWishInKb();", "@Test\n\tpublic void testGetImageStack() {\n\t\tip = new ImagePlus();\n\t\tassertNotNull(ip.getImageStack());\n\t}", "public int getStackSize() {\n\t\treturn stackSize;\n\t}", "@Test\n\tpublic void testGetNSlices() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNSlices());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(8,ip.getNSlices());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(1,ip.getNSlices());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(2,ip.getNSlices());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(4,ip.getNSlices());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(4,ip.getNSlices());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(2,ip.getNSlices());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNSlices());\n\t}", "private static int calcStackSize(Code32 code) {\r\n\t\tint size = 8 + nofNonVolGPR * 4 + nofNonVolEXTRD * 8 + nofNonVolEXTRS * 4;\t// includes LR and SP for back trace\r\n\t\tsize += callParamSlotsOnStack * 4 + RegAllocator.maxLocVarStackSlots * 4 + (intfMethStorage? 12: 0);\t\r\n\t\tassert(nofNonVolEXTRD < 16);\r\n\t\tif (nofNonVolEXTRD >= 16) ErrorReporter.reporter.error(1000);\r\n\t\t// enFloatsInExc could be true, even if this is no exception method\r\n\t\t// such a case arises when this method is called from within an exception method\r\n\t\tif (enFloatsInExc) size += nonVolStartEXTR * 8 + 4;\t// save volatile FPR's and FPSCR\r\n\t\tparamOffset = 4;\r\n\t\tcode.localVarOffset = paramOffset + callParamSlotsOnStack * 4;\r\n\t\tintfMethStorageOffset = paramOffset + callParamSlotsOnStack * 4 + RegAllocator.maxLocVarStackSlots * 4;\r\n\t\treturn size;\r\n\t}", "public abstract int getMediumStackSizeWishInKb();", "@Test\n\tpublic void testGetNDimensions() {\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\",st);\n\t\tip.setDimensions(1,1,1);\n\t\tassertEquals(2,ip.getNDimensions());\n\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(3,ip.getNDimensions());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(3,ip.getNDimensions());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(3,ip.getNDimensions());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(4,ip.getNDimensions());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(5,ip.getNDimensions());\n\t}", "@Test\n\tpublic void testGetNChannels() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNChannels());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(8,ip.getNChannels());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(2,ip.getNChannels());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(2,ip.getNChannels());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(4,ip.getNChannels());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(4,ip.getNChannels());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNChannels());\n\t}", "@Test\n\tpublic void testSetStackImageStackIntIntInt() {\n\t\tst = new ImageStack(1,2,24); // 24 slices of 1x2 images\n\t\tip = new ImagePlus();\n\n\t\tfor (int chan = 0; chan < 9; chan++)\n\t\t\tfor (int slice = 0; slice < 9; slice++)\n\t\t\t\tfor (int frame = 0; frame < 9; frame++)\n\t\t\t\t\tif (chan*slice*frame != 24)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tip.setStack(st,chan,slice,frame);\n\t\t\t\t\t\t\tfail();\n\t\t\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\t\t\tassertTrue(true);\n\t\t\t\t\t\t}\n\n\t\t// otherwise input dimensions match\n\t\t// .. delegates to setStack() - tested earlier\n\t\t// so just need to test that title did not change\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 2;\n\t\tip.setTitle(\"AlertAlert\");\n\t\tst = new ImageStack(1,2,null); // 1x2 images\n\t\tfor (int i = 0; i < 24; i++)\n\t\t\tst.addSlice(\"\"+i, new byte[] {1,2});\n\t\tip.setStack(st,2,3,4);\n\t\tassertEquals(\"AlertAlert\",ip.getTitle());\n\t}", "@Test\n\tpublic void testSetDimensions() {\n\n\t\t// empty stack\n\t\tip = new ImagePlus();\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(1,ip.getNSlices());\n\t\tassertEquals(ip.getStackSize(),ip.getNFrames());\n\n\t\t// stack but dimensions don't match\n\t\tip = new ImagePlus(\"Kerbam\",(Image)null);\n\t\tst = new ImageStack(2,2);\n\t\tst.addSlice(\"Oranges\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Apples\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Pears\", new byte[] {1,2,3,4});\n\t\tip.setStack(\"Kaboom\",st);\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(ip.getStackSize(),ip.getNSlices());\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// stack with matching dimensions\n\t\tip = new ImagePlus(\"Kerbam\",(Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"Oranges\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Apples\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Pears\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Quinces\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Kiwis\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Bananas\", new byte[] {1,2,3,4});\n\t\tip.setStack(\"Kaboom\",st);\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(2,ip.getNSlices());\n\t\tassertEquals(3,ip.getNFrames());\n\t}", "@Test\n\tpublic void testSetStackStringImageStack() {\n\t\tip = new ImagePlus();\n\t\tst = new ImageStack(2,2);\n\t\ttry {\n\t\t\tip.setStack(\"Gizzard\",st);\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\t// not a virt stack and null imagearray (impossible) or 1st entry of imagearray is null (possible) throw illArgExc\n\t\tip = new ImagePlus();\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3,14); // 14 empty slices sized 1x3\n\t\ttry {\n\t\t\tip.setStack(\"14Plates\",st);\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\t// otherwise it runs through\n\t\t// ... doesn't seem like there is anything to test\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 3;\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3);\n\t\tst.addSlice(\"Slice1\",proc);\n\t\tip.setStack(\"SuperStack\",st);\n\t\tassertEquals(st,ip.getStack());\n\t}", "@Test\n\tpublic void testIsHyperStack() {\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,3);\n\t\tip.setOpenAsHyperStack(false);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs false, nDimensions > 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"oof\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,4);\n\t\tip.setOpenAsHyperStack(false);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs true, nDimensions <= 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,3);\n\t\tip.setOpenAsHyperStack(true);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs true, nDimensions > 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"oof\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,2,2);\n\t\tip.setOpenAsHyperStack(true);\n\t\tassertTrue(ip.isHyperStack());\n\t}", "@Test\n public void testModuloStackSize() {\n MainPanel mp = new MainPanel();\n ProgramArea pa = new ProgramArea();\n ProgramStack ps = new ProgramStack();\n\n ps.push(10);\n ps.push(3);\n\n ProgramExecutor pe = new ProgramExecutor(mp, ps, pa);\n\n pe.modulo();\n ps.pop();\n\n Assert.assertEquals(\"[]\", ps.toString());\n }", "@Test\n public void testSize() {\n System.out.println(\"size\");\n instance = new Stack();\n int expResult = 10;\n for (int i = 0; i < 10; i++) {\n instance.push(i*3);\n }\n assertEquals(expResult, instance.size());\n }", "@Test\n\tpublic void testIsDisplayedHyperStack() {\n\t\tip = new ImagePlus();\n\t\tassertFalse(ip.isDisplayedHyperStack());\n\t}", "public int getSize(){\n return this.stack.size();\n }", "public int getStackDepth()\n/* */ {\n/* 139 */ StackTraceElement[] stes = new Exception().getStackTrace();\n/* 140 */ int len = stes.length;\n/* 141 */ for (int i = 0; i < len; i++) {\n/* 142 */ StackTraceElement ste = stes[i];\n/* 143 */ if (ste.getMethodName().equals(\"_runExecute\"))\n/* */ {\n/* 145 */ return i - 1;\n/* */ }\n/* */ }\n/* 148 */ throw new AssertionError(\"Expected task to be run by WorkerThread\");\n/* */ }", "public int getSize(){\r\n return topOfStack;\r\n }", "@Test\n\tpublic void testSetSlice() {\n\t\tip = new ImagePlus();\n\t\tip.setSlice(1234567890); // this should be safe\n\t\tassertEquals(1,ip.getCurrentSlice());\n\n\t\t// stack exists but asking for currentSlice and we have a processor - should do immediate return\n\t\tproc = new ColorProcessor(2,1,new int[] {2,1});\n\t\tip = new ImagePlus(\"Zoot\",proc);\n\t\tst = new ImageStack(2,1);\n\t\tst.addSlice(\"Bad\", new int[] {3,4});\n\t\tst.addSlice(\"Wicked\", new int[] {5,6});\n\t\tip.setStack(\"Qualities\", st);\n\t\tip.setCurrentSlice(2);\n\t\tip.setSlice(2);\n\t\tassertEquals(2,ip.getCurrentSlice());\n\n\t\t// stack size in allowed range and not current slice : case we already have a processor\n\t\tproc = new ColorProcessor(2,1,new int[] {2,1});\n\t\tip = new ImagePlus(\"Zoot\",proc);\n\t\tst = new ImageStack(2,1);\n\t\tst.addSlice(\"Bad\", new int[] {3,4});\n\t\tst.addSlice(\"Wicked\", new int[] {5,6});\n\t\tip.setStack(\"Qualities\", st);\n\t\tip.setCurrentSlice(2);\n\t\tip.getProcessor().snapshot();\n\t\tassertEquals(2,ip.getCurrentSlice());\n\t\tassertNotNull(ip.getProcessor().getSnapshotPixels());\n\t\tip.setSlice(1);\n\t\tassertEquals(1,ip.getCurrentSlice());\n\t\tassertArrayEquals(new int[] {3,4}, (int[])st.getPixels(1));\n\t\tassertNull(ip.getProcessor().getSnapshotPixels());\n\n\t\t// stack size in allowed range and not current slice : case we don't have a processor\n\t\tip = new ImagePlus();\n\t\tst = new ImageStack(2,2);\n\t\tst.addSlice(\"Frida\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Gwen\",new byte[] {5,6,7,8});\n\t\tip.setStack(\"PatrioticAmericans\", st);\n\t\tip.setCurrentSlice(2);\n\t\tassertEquals(2,ip.getCurrentSlice());\n\t\tip.setSlice(1);\n\t\tassertEquals(1,ip.getCurrentSlice());\n\t\t//assertTrue(ip.ip instanceof ByteProcessor); // with ImgLibProcessor this is noo longer true\n\t}", "@Test\n public void testImage() {\n int expected = 4;\n assertEquals(expected, image.getHeight());\n assertEquals(expected, image.getWidth());\n }", "public int stackCount() {\r\n\t\t return count;\r\n\t }", "@Test\n\tpublic void testGetWidth() {\n\t\tip = new ImagePlus();\n\t\tip.getWidth();\n\t}", "int getImagesByTransformCount();", "int getBurstNImages();", "public int getInventoryStackLimit()\n {\n return 64;\n }", "public int getInventoryStackLimit()\n {\n return 64;\n }", "public int getInventoryStackLimit()\n {\n return 64;\n }", "@Test\n public void testStack() {\n DatastructureTest.STACK.push(3);\n DatastructureTest.STACK.push(7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == -1);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == -1);\n }", "@Override\n\tpublic ItemStack decrStackSize(int index, int count) {\n\t\treturn null;\n\t}", "public void testSize() {\n assertEquals(this.stack.size(), 10, 0.01);\n assertEquals(this.empty.size(), 0, 0.01);\n }", "int imageCount();", "@Test\n public void pushOnStackTest_InCorrect(){\n assertNotEquals(10 , stack.getStack().returnFirst());\n }", "int getImagesByHandlerCount();", "@Test\n public void pushOnStackTest_Correct(){\n assertEquals(stack.getTop().getData() , stack.getStack().returnFirst());\n }", "@Test\n public void testStackInteger() {\n DatastructureTest.INTSTACK.push(3);\n DatastructureTest.INTSTACK.push(7);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == 7);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == 7);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == 3);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == 3);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == -1);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == -1);\n }", "int size() {\n return stackSize;\n }", "public int getSizeX() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeX;\r\n}", "@Override\n public ItemStack decrStackSize(int par1, int par2) {\n if (this.stack[par1] != null)\n {\n ItemStack var3;\n\n if (this.stack[par1].stackSize <= par2)\n {\n var3 = this.stack[par1];\n this.stack[par1] = null;\n return var3;\n }\n else\n {\n var3 = this.stack[par1].splitStack(par2);\n\n if (this.stack[par1].stackSize == 0)\n {\n this.stack[par1] = null;\n }\n\n return var3;\n }\n }\n else\n {\n return null;\n }\n }", "@Test\n public void addResourceTest() {\n ResourceStack stack5 = new ResourceStack(0, 0, 0, 0);\n stack5.addResource(10, ResourceType.SHIELDS);\n stack5.addResource(10, ResourceType.SERVANTS);\n stack5.addResource(10, ResourceType.COINS);\n stack5.addResource(10, ResourceType.STONES);\n\n assertEquals(10, stack5.getResource(ResourceType.SHIELDS));\n assertEquals(10, stack5.getResource(ResourceType.SERVANTS));\n assertEquals(10, stack5.getResource(ResourceType.COINS));\n assertEquals(10, stack5.getResource(ResourceType.STONES));\n\n stack5.addResource(57, ResourceType.SHIELDS);\n\n assertEquals(67, stack5.getResource(ResourceType.SHIELDS));\n }", "public stackTesting(int size){\n\t\tMaxSize = size;\n\t\tStack = new int[MaxSize];\n\t\tStackTop = -1;\n\t}", "private IntStack getStack(final String metaDir, final String name) throws IOException {\n\t\ttry {\r\n\t\t\tfinal double freeMemoryInBytes = (Runtime.getRuntime().freeMemory() / (numWorkers * 1d));\r\n\t\t\tfinal long graphSizeInBytes = this.dg.getSizeOnDisk();\r\n\t\t\tfinal double ratio = graphSizeInBytes / freeMemoryInBytes;\r\n\t\t\tif (ratio > TLCGlobals.livenessGraphSizeThreshold) {\r\n\t\t\t\t// Double SDIS's bufSize/pageSize by how much the graph size\r\n\t\t\t\t// overshoots the free memory size, but limit page size to 1gb.\r\n\t\t\t\t// Also, don't allocate more than what is available.\r\n\t\t\t\tfinal int capacityInBytes = SynchronousDiskIntStack.BufSize << Math.min((int) ratio, 5);\r\n\t\t\t\tif (capacityInBytes < freeMemoryInBytes) {\r\n\t\t\t\t\treturn new SynchronousDiskIntStack(metaDir, name, capacityInBytes);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Use default SDIS which is 32mb of in-memory size\r\n\t\t\t\t\treturn new SynchronousDiskIntStack(metaDir, name);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// If the disk graph as a whole fits into memory, do not use a\r\n\t\t\t// disk-backed SynchronousDiskIntStack.\r\n\t\t\treturn new MemIntStack(metaDir, name);\r\n\t\t} catch (final OutOfMemoryError oom) {\r\n\t\t\tSystem.gc();\r\n\t\t\t// If the allocation above failed, be more conservative. If it fails to\r\n\t\t\t// allocate even 16mb, TLC will subsequently terminate with a message about insufficient\r\n\t\t\t// memory. \r\n\t\t\tfinal SynchronousDiskIntStack sdis = new SynchronousDiskIntStack(metaDir, name,\r\n\t\t\t\t\tSynchronousDiskIntStack.BufSize / 2);\r\n\t\t\tMP.printWarning(EC.GENERAL,\r\n\t\t\t\t\t\"Liveness checking will be extremely slow because TLC is running low on memory.\\n\"\r\n\t\t\t\t\t\t\t+ \"Try allocating more memory to the Java pool (heap) in future TLC runs.\");\r\n\t\t\treturn sdis;\r\n\t\t}\r\n\t}", "@Test\n public void getImageForLessonNumber() throws Exception {\n for (int i = 0; i < 10; i++) {\n int imageForLessonNumber = CardViewFactory.getImageResourceForLessonNumber(i);\n System.out.println(i + \" - \" + imageForLessonNumber);\n }\n }", "public int getIconWidth()\r\n/* 50: */ {\r\n/* 51: 99 */ return SIZE;\r\n/* 52: */ }", "public int getSize() {\r\n\t\treturn stack.size();\r\n\t}", "@Before //Object created of the NumStack class\n public void setUp() {\n numStackTest = new NumStack();\n }", "@Test\n \tpublic void testSize() throws FileNotFoundException {\n \n \t\tMain.main(new String[]{\n \t\t\t\tArgs.TEST_STYLE_ARG,\n \t\t\t\t\"--preserve-element-order\",\n \t\t\t\tArgs.TEST_RESOURCE_OSM + \"uk-test-1.osm.gz\"\n \t\t});\n \n \t\tFileSystem fs = ImgFS.openFs(Args.DEF_MAP_ID + \".img\");\n \t\tassertNotNull(\"file exists\", fs);\n \n \t\tList<DirectoryEntry> entries = fs.list();\n \t\tint count = 0;\n \t\tfor (DirectoryEntry ent : entries) {\n \t\t\tString ext = ent.getExt();\n \n \t\t\tint size = ent.getSize();\n \t\t\tif (ext.equals(\"RGN\")) {\n \t\t\t\tcount++;\n \t\t\t\tassertEquals(\"RGN size\", 153466, size);\n \t\t\t} else if (ext.equals(\"TRE\")) {\n \t\t\t\tcount++;\n \t\t\t\tassertEquals(\"TRE size\", 1897, size);\n \t\t\t} else if (ext.equals(\"LBL\")) {\n \t\t\t\tcount++;\n\t\t\t\tassertEquals(\"LBL size\", 28351, size);\n \t\t\t}\n \t\t}\n \t\tassertTrue(\"enough checks run\", count >= 3);\n \t}", "@Test\n public void largePicTest() {\n // TODO: test largePic\n }", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "@Test\n\tpublic void testSetProcessor() {\n\t\tip = new ImagePlus();\n\t\ttry {\n\t\t\tip.setProcessor(\"DoesNotMatterForThisCase\",null);\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\t// throws exception if passed processor has no pixels\n\t\tip = new ImagePlus();\n\t\tproc = new ByteProcessor(3,5,null,new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\ttry {\n\t\t\tip.setProcessor(\"DoesNotMatterForThisCase\",proc);\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\t// if stack size > 1 and passed processor dims != my dims throw IllegArgExcep\n\t\t//proc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\t//st = new ImageStack(1,3);\n\t\t//st.addSlice(\"Slice1\",proc);\n\t\t//st.addSlice(\"Slice2\",proc);\n\t\t//ip = new ImagePlus();\n\t\t//ip.width = 1;\n\t\t//ip.height = 3;\n\t\t//ip.setStack(\"TheStack\", st);\n\t\t//ip.height = 4;\n\t\t//ip.width = 7;\n\t\t//try {\n\t\t//\tip.setProcessor(\"DoesNotMatterForThisCase\",proc);\n\t\t//\tfail();\n\t\t//} catch (IllegalArgumentException e) {\n\t\t//\tassertTrue(true);\n\t\t//}\n\n\t\t// if stack size <= 1 then stack should be null and currSlice should be 1\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3);\n\t\tst.addSlice(\"Slice1\",proc);\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 3;\n\t\tip.setStack(\"TheStack\", st);\n\t\tip.setProcessor(\"DoesNotMatterForThisCase\",proc);\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertEquals(1,ip.currentSlice);\n\n\t\t// try with null title\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3);\n\t\tst.addSlice(\"Slice1\",proc);\n\t\tst.addSlice(\"Slice2\",proc);\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 3;\n\t\tip.setStack(\"TheStack\", st);\n\t\tip.setProcessor(null,proc);\n\t\tassertEquals(2,ip.getStackSize());\n\t\tassertEquals(\"TheStack\",ip.getTitle());\n\t\tassertEquals(proc,ip.getProcessor());\n\t\tassertEquals(ImagePlus.GRAY8,ip.getType());\n\t\tassertEquals(8,ip.getBitDepth());\n\t\tassertEquals(1,ip.getBytesPerPixel());\n\n\t\t// try with non-null title\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3);\n\t\tst.addSlice(\"Slice1\",proc);\n\t\tst.addSlice(\"Slice2\",proc);\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 3;\n\t\tip.setStack(\"TheStack\", st);\n\t\tip.setProcessor(\"MattersForThisCase\",proc);\n\t\tassertEquals(2,ip.getStackSize());\n\t\tassertEquals(\"MattersForThisCase\",ip.getTitle());\n\t\tassertEquals(proc,ip.getProcessor());\n\t\tassertEquals(ImagePlus.GRAY8,ip.getType());\n\t\tassertEquals(8,ip.getBitDepth());\n\t\tassertEquals(1,ip.getBytesPerPixel());\n\n\t\t// try to get roi subcase to run\n\t\tproc = new ShortProcessor(1,3,new short[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tip = new ImagePlus();\n\t\tip.width = 4;\n\t\tip.height = 4;\n\t\tip.setRoi(1,1,2,2);\n\t\tassertNotNull(ip.getRoi());\n\t\tip.setProcessor(\"Ooch\",proc);\n\t\tassertNull(ip.getRoi());\n\t\tassertEquals(1,ip.width);\n\t\tassertEquals(3,ip.height);\n\t\tassertEquals(ImagePlus.GRAY16,ip.getType());\n\t\tassertEquals(16,ip.getBitDepth());\n\t\tassertEquals(2,ip.getBytesPerPixel());\n\t}", "static final int countStackFrames(Thread thread)\n {\n VMThread vt = thread.vmThread;\n if (vt == null)\n throw new IllegalThreadStateException();\n return vt.countStackFrames();\n }", "protected abstract StackManipulation preparation();", "public String getStack();", "@Test\n\tpublic void testGetHeight() {\n\t\tip = new ImagePlus();\n\t\tip.getHeight();\n\t}", "@Test\n public void testGetImage() {\n int[][][] copyImage = image.getImage();\n assertEquals(copyImage.length, image.getHeight());\n }", "public int maxStack();", "int getHungerPoints(ItemStack stack);", "public int getSizeZ() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeZ;\r\n}", "@Test\n public void pictureLargeTest() {\n // TODO: test pictureLarge\n }", "public int getSlotStackLimit()\n {\n return 1;\n }", "public int getSlotStackLimit()\n {\n return 1;\n }", "public void setStackSize(int stackSize) {\n\t\tthis.stackSize = stackSize;\n\t}", "private void increaseStackSize(int sizeIncrease) {\n Object [] newStack = new Object[stack.length + sizeIncrease];\n copyArray(newStack, stack);\n stack = newStack;\n }", "public int getIconHeight()\r\n/* 55: */ {\r\n/* 56:100 */ return SIZE;\r\n/* 57: */ }", "@Override\r\n\tpublic int size() {\r\n\t\treturn stack.length;\r\n\t}", "public int getIconWidth()\r\n/* 154: */ {\r\n/* 155:194 */ return SIZE;\r\n/* 156: */ }", "public Integer getFailedStackInstancesCount() {\n return this.failedStackInstancesCount;\n }", "@Test\n public void shouldNotScaleImageWhenSameSize() {\n givenIHaveAnImage();\n\n whenIScaleImageWidthTo(14.999f);\n\n thenTheImageWidthIs(15);\n }", "@Test\n public void totalResourcesToIntTest() {\n assertEquals(10, stack.totalResourcesToInt());\n assertEquals(14, stack2.totalResourcesToInt());\n }", "public native int getDepth() throws MagickException;", "int getExpoBracketingNImagesPref();", "void ProcessImage() {\n DoDescribe();\n }", "@Test\n public void testStackCodeExamples() {\n logger.info(\"Beginning testStackCodeExamples()...\");\n\n // Allocate an empty stack\n Stack<String> stack = new Stack<>();\n logger.info(\"Start with an empty stack: {}\", stack);\n\n // Push a rock onto it\n String rock = \"rock\";\n stack.pushElement(rock);\n assert stack.getTop().equals(rock);\n logger.info(\"Push a rock on it: {}\", stack);\n\n // Push paper onto it\n String paper = \"paper\";\n stack.pushElement(paper);\n assert stack.getTop().equals(paper);\n logger.info(\"Push paper on it: {}\", stack);\n\n // Push scissors onto it\n String scissors = \"scissors\";\n stack.pushElement(scissors);\n assert stack.getTop().equals(scissors);\n assert stack.getSize() == 3;\n logger.info(\"Push scissors on it: {}\", stack);\n\n // Pop off the scissors\n assert stack.popElement().equals(scissors);\n assert stack.getSize() == 2;\n logger.info(\"Pop scissors from it: {}\", stack);\n\n // Pop off the paper\n assert stack.popElement().equals(paper);\n assert stack.getSize() == 1;\n logger.info(\"Pop paper from it: {}\", stack);\n\n // Pop off the rock\n assert stack.popElement().equals(rock);\n assert stack.isEmpty();\n logger.info(\"Pop rock from it: {}\", stack);\n\n logger.info(\"Completed testStackCodeExamples().\\n\");\n }", "public Image getFive();", "public int getImage();", "private void startProcessing() {\n Util.lockOrientation(this);\n\n final int[] imageSpacing = Prefs.imageSpacing(MainActivity.this);\n final int SPACING_HORIZONTAL = imageSpacing[0];\n final int SPACING_VERTICAL = imageSpacing[1];\n\n final boolean horizontal = stackHorizontallyCheck.isChecked();\n int resultWidth;\n int resultHeight;\n\n log(\"--------------------------------\");\n if (horizontal) {\n log(\"Horizontally stacking\");\n\n // The width of the resulting image will be the largest width of the selected images\n // The height of the resulting image will be the sum of all the selected images' heights\n int maxHeight = -1;\n int minHeight = -1;\n\n // Traverse all selected images to find largest and smallest heights\n traverseIndex = -1;\n int[] size;\n while ((size = getNextBitmapSize()) != null) {\n if (size[0] == 0 && size[1] == 0) return;\n log(\"Image %d size: %d/%d\", traverseIndex, size[0], size[1]);\n if (maxHeight == -1)\n maxHeight = size[1];\n else if (size[1] > maxHeight)\n maxHeight = size[1];\n if (minHeight == -1)\n minHeight = size[1];\n else if (size[1] < minHeight)\n minHeight = size[1];\n }\n log(\"Min height: %d, max height: %d\", minHeight, maxHeight);\n\n // Traverse images again now that we know the min/max height, scale widths accordingly\n traverseIndex = -1;\n int totalWidth = 0;\n boolean scalePriority = Prefs.scalePriority(this);\n while ((size = getNextBitmapSize()) != null) {\n if (size[0] == 0 && size[1] == 0) return;\n int w = size[0];\n int h = size[1];\n float ratio = (float) w / (float) h;\n if (scalePriority) {\n // Scale to largest\n if (h < maxHeight) {\n h = maxHeight;\n w = (int) ((float) h * ratio);\n log(\"Height of image %d is less than max (%d), scaled up to %d/%d...\",\n traverseIndex, maxHeight, w, h);\n }\n } else {\n // Scale to smallest\n if (h > minHeight) {\n h = minHeight;\n w = (int) ((float) h * ratio);\n log(\"Height of image %d is larger than min (%d), scaled down to %d/%d...\",\n traverseIndex, minHeight, w, h);\n }\n }\n totalWidth += w;\n }\n\n // Compensate for spacing\n totalWidth += SPACING_HORIZONTAL * (selectedPhotos.length + 1);\n minHeight += SPACING_VERTICAL * 2;\n maxHeight += SPACING_VERTICAL * 2;\n\n // Crash avoidance\n if (totalWidth == 0) {\n Util.showError(this, new Exception(\"The total generated width is 0. Please \" +\n \"notify me of this through the Google+ community.\"));\n return;\n } else if (maxHeight == 0) {\n Util.showError(this, new Exception(\"The max found height is 0. Please notify \" +\n \"me of this through the Google+ community.\"));\n return;\n }\n\n // Print data and create large Bitmap\n log(\"Total width with spacing = %d, max height with spacing = %d\", totalWidth, maxHeight);\n resultWidth = totalWidth;\n resultHeight = scalePriority ? maxHeight : minHeight;\n } else {\n log(\"Vertically stacking\");\n\n // The height of the resulting image will be the largest height of the selected images\n // The width of the resulting image will be the sum of all the selected images' widths\n int maxWidth = -1;\n int minWidth = -1;\n\n // Traverse all selected images and load min/max width, scale height accordingly\n traverseIndex = -1;\n int[] size;\n while ((size = getNextBitmapSize()) != null) {\n if (size[0] == 0 && size[1] == 0) return;\n log(\"Image %d size: %d/%d\", traverseIndex, size[0], size[1]);\n if (maxWidth == -1)\n maxWidth = size[0];\n else if (size[0] > maxWidth)\n maxWidth = size[0];\n if (minWidth == -1)\n minWidth = size[0];\n else if (size[0] < minWidth)\n minWidth = size[0];\n }\n\n // Traverse images again now that we know the min/max height, scale widths accordingly\n traverseIndex = -1;\n int totalHeight = 0;\n boolean scalePriority = Prefs.scalePriority(this);\n while ((size = getNextBitmapSize()) != null) {\n if (size[0] == 0 && size[1] == 0) return;\n int w = size[0];\n int h = size[1];\n float ratio = (float) h / (float) w;\n if (scalePriority) {\n // Scale to largest\n if (w < maxWidth) {\n w = maxWidth;\n h = (int) ((float) w * ratio);\n log(\"Height of image %d is larger than min (%d), scaled down to %d/%d...\",\n traverseIndex, maxWidth, w, h);\n }\n } else {\n // Scale to smallest\n if (w > minWidth) {\n w = minWidth;\n h = (int) ((float) w * ratio);\n log(\"Width of image %d is larger than min (%d), scaled height down to %d/%d...\",\n traverseIndex, minWidth, w, h);\n }\n }\n totalHeight += h;\n }\n\n // Compensate for spacing\n totalHeight += SPACING_VERTICAL * (selectedPhotos.length + 1);\n minWidth += SPACING_HORIZONTAL * 2;\n maxWidth += SPACING_HORIZONTAL * 2;\n\n // Crash avoidance\n if (totalHeight == 0) {\n Util.showError(this, new Exception(\"The total generated height is 0. Please \" +\n \"notify me of this through the Google+ community.\"));\n return;\n } else if (maxWidth == 0) {\n Util.showError(this, new Exception(\"The max found width is 0. Please notify \" +\n \"me of this through the Google+ community.\"));\n return;\n }\n\n // Print data and create large Bitmap\n log(\"Max width with spacing = %d, total height with spacing = %d\", maxWidth, totalHeight);\n resultWidth = scalePriority ? maxWidth : minWidth;\n resultHeight = totalHeight;\n }\n\n ImageSizingDialog.show(this, resultWidth, resultHeight);\n }", "public interface StackManipulation {\n\n /**\n * Determines if this stack manipulation is valid.\n *\n * @return If {@code false}, this manipulation cannot be applied and should throw an exception.\n */\n boolean isValid();\n\n /**\n * Applies the stack manipulation that is described by this instance.\n *\n * @param methodVisitor The method visitor used to write the method implementation to.\n * @param implementationContext The context of the current implementation.\n * @return The changes to the size of the operand stack that are implied by this stack manipulation.\n */\n Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext);\n\n /**\n * Canonical representation of an illegal stack manipulation.\n */\n enum Illegal implements StackManipulation {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n public boolean isValid() {\n return false;\n }\n\n /**\n * {@inheritDoc}\n */\n public Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext) {\n throw new IllegalStateException(\"An illegal stack manipulation must not be applied\");\n }\n }\n\n /**\n * Canonical representation of a legal stack manipulation which does not require any action.\n */\n enum Trivial implements StackManipulation {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n public boolean isValid() {\n return true;\n }\n\n /**\n * {@inheritDoc}\n */\n public Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext) {\n return StackSize.ZERO.toIncreasingSize();\n }\n }\n\n /**\n * A description of the size change that is imposed by some\n * {@link StackManipulation}.\n */\n @HashCodeAndEqualsPlugin.Enhance\n class Size {\n\n /**\n * A size of zero.\n */\n public static final Size ZERO = new Size(0, 0);\n\n /**\n * The impact of any size operation onto the operand stack. This value can be negative if more values\n * were consumed from the stack than added to it.\n */\n private final int sizeImpact;\n\n /**\n * The maximal size of stack slots this stack manipulation ever requires. If an operation for example pushes\n * five values onto the stack and subsequently consumes three operations, this value should still be five\n * to express that a stack operation requires at least five slots in order to be applicable.\n */\n private final int maximalSize;\n\n /**\n * Creates an immutable descriptor of the size change that is implied by some stack manipulation.\n *\n * @param sizeImpact The change of the size of the operand stack that is implied by some stack manipulation.\n * @param maximalSize The maximal stack size that is required for executing this stack manipulation. Should\n * never be negative number.\n */\n public Size(int sizeImpact, int maximalSize) {\n this.sizeImpact = sizeImpact;\n this.maximalSize = maximalSize;\n }\n\n /**\n * Returns the size change on the operand stack that is represented by this instance.\n *\n * @return The size change on the operand stack that is represented by this instance.\n */\n public int getSizeImpact() {\n return sizeImpact;\n }\n\n /**\n * Returns the maximal interim size of the operand stack that is represented by this instance.\n *\n * @return The maximal interim size of the operand stack that is represented by this instance.\n */\n public int getMaximalSize() {\n return maximalSize;\n }\n\n /**\n * Concatenates this size representation with another size representation in order to represent the size\n * change that is represented by both alterations of the operand stack size.\n *\n * @param other The other size representation.\n * @return A new size representation representing both stack size requirements.\n */\n public Size aggregate(Size other) {\n return aggregate(other.sizeImpact, other.maximalSize);\n }\n\n /**\n * Aggregates a size change with this stack manipulation size.\n *\n * @param sizeChange The change in size the other operation implies.\n * @param interimMaximalSize The interim maximal size of the operand stack that the other operation requires\n * at least to function.\n * @return The aggregated size.\n */\n private Size aggregate(int sizeChange, int interimMaximalSize) {\n return new Size(sizeImpact + sizeChange, Math.max(maximalSize, sizeImpact + interimMaximalSize));\n }\n }\n\n /**\n * An abstract base implementation of a valid stack manipulation.\n */\n abstract class AbstractBase implements StackManipulation {\n\n /**\n * {@inheritDoc}\n */\n public boolean isValid() {\n return true;\n }\n }\n\n /**\n * An immutable stack manipulation that aggregates a sequence of other stack manipulations.\n */\n @HashCodeAndEqualsPlugin.Enhance\n class Compound implements StackManipulation {\n\n /**\n * The stack manipulations this compound operation represents in their application order.\n */\n private final List<StackManipulation> stackManipulations;\n\n /**\n * Creates a new compound stack manipulation.\n *\n * @param stackManipulation The stack manipulations to be composed in the order of their composition.\n */\n public Compound(StackManipulation... stackManipulation) {\n this(Arrays.asList(stackManipulation));\n }\n\n /**\n * Creates a new compound stack manipulation.\n *\n * @param stackManipulations The stack manipulations to be composed in the order of their composition.\n */\n public Compound(List<? extends StackManipulation> stackManipulations) {\n this.stackManipulations = new ArrayList<StackManipulation>();\n for (StackManipulation stackManipulation : stackManipulations) {\n if (stackManipulation instanceof Compound) {\n this.stackManipulations.addAll(((Compound) stackManipulation).stackManipulations);\n } else if (!(stackManipulation instanceof Trivial)) {\n this.stackManipulations.add(stackManipulation);\n }\n }\n }\n\n /**\n * {@inheritDoc}\n */\n public boolean isValid() {\n for (StackManipulation stackManipulation : stackManipulations) {\n if (!stackManipulation.isValid()) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * {@inheritDoc}\n */\n public Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext) {\n Size size = Size.ZERO;\n for (StackManipulation stackManipulation : stackManipulations) {\n size = size.aggregate(stackManipulation.apply(methodVisitor, implementationContext));\n }\n return size;\n }\n }\n\n /**\n * An implementation of {@link StackManipulation} that simplifies functional invocations via lambda expressions.\n */\n @HashCodeAndEqualsPlugin.Enhance\n class Simple extends StackManipulation.AbstractBase {\n\n /**\n * The dispatcher to use.\n */\n private final Dispatcher dispatcher;\n\n /**\n * Creates a new stack manipulation for a dispatcher.\n *\n * @param dispatcher The dispatcher to use.\n */\n public Simple(Dispatcher dispatcher) {\n this.dispatcher = dispatcher;\n }\n\n /**\n * {@inheritDoc}\n */\n public Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext) {\n return dispatcher.apply(methodVisitor, implementationContext);\n }\n\n /**\n * A dispatcher for an instance of {@link Simple}.\n */\n public interface Dispatcher {\n\n /**\n * A valid implementation of {@link StackManipulation#apply(MethodVisitor, Implementation.Context)}.\n *\n * @param methodVisitor The method visitor used to write the method implementation to.\n * @param implementationContext The context of the current implementation.\n * @return The changes to the size of the operand stack that are implied by this stack manipulation.\n */\n Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext);\n }\n }\n}", "@Test\n public void capacityTest() {\n // TODO: test capacity\n }", "@Override\n \tpublic Object[] getImageArray() {\n \t\t// Release 3 times an RGB stack with this dimensions.\n \t\tlayers.get(0).getProject().getLoader().releaseToFit((long)(getSize() * getWidth() * getHeight() * 4 * 3));\n \t\tfinal Object[] ia = new Object[getSize()];\n \t\tfor (int i=0; i<ia.length; i++) {\n \t\t\tia[i] = getProcessor(i+1).getPixels(); // slices 1<=slice<=n_slices\n \t\t}\n \t\treturn ia;\n \t}", "@Test\n public void testWidth() {\n BetterImageSpan span = new BetterImageSpan(mDrawable, mAlignment);\n int size = span.getSize(null, null, 0, 0, null);\n assertThat(size).isEqualTo(mDrawableWidth);\n }", "public Image getSix();", "@Override\r\n\tpublic int size() {\r\n\t\treturn stack.size();\r\n\t}", "public native int getNumFrames() throws MagickException;", "@Override\n\tpublic int getInventoryStackLimit() {\n\t\treturn 64;\n\t}", "@Override\n\tpublic int getInventoryStackLimit() {\n\t\treturn 64;\n\t}", "@Override\n\tpublic int getInventoryStackLimit(){\n\t return 64;\n\t}", "@Test\n\tpublic void testPush(){\n\t\tArrayIntStack stack = buildStack(4);\n\t\tassertEquals(4, stack.intCol.size());\n\t}", "public void setFailedStackInstancesCount(Integer failedStackInstancesCount) {\n this.failedStackInstancesCount = failedStackInstancesCount;\n }", "final boolean init_stacks()\r\n{\r\n stateptr = -1;\r\n val_init();\r\n return true;\r\n}", "@Test(retryAnalyzer = RerunOnFailure.class, groups = {\"full\", \"mpx\"})\r\n public void RepresentativeImage_TC3217() throws Exception{\r\n \r\n \tReporter.log(\"STEP 1\");\r\n \tUserLogin userLogin = applib.openApplication();\r\n \tuserLogin.Login(config.getConfigValueString(\"Admin1Username\"), config.getConfigValueString(\"Admin1Password\"));\r\n \r\n \tReporter.log(\"STEP 2\");\r\n \tCreateDefaultContent createDefaultContent = new CreateDefaultContent(webDriver);\r\n \tString postTitle = createDefaultContent.Post(\"Published\");\r\n \t\r\n \tReporter.log(\"STEP 3\");\r\n \tnavigation.Content();\r\n \tSearchFor searchFor = new SearchFor(webDriver);\r\n \tsearchFor.EnterTitle(postTitle);\r\n \tsearchFor.ClickApplyBtn();\r\n \tsearchFor.VerifySearchThumbnailImgPresent(postTitle, \"HanSolo\");\r\n \t\r\n \tReporter.log(\"STEP 4\");\r\n \tnavigation.Content(\"Files\");\r\n \tThumbnails thumbnails = new Thumbnails(webDriver);\r\n \tthumbnails.VerifyThumbnailImagePresent(\"HanSolo\", \"1\");\r\n \r\n Reporter.log(\"STEP 5\");\r\n navigation.AddContent(\"Post\");\r\n \tBasicInformation basicInformation = new BasicInformation(webDriver);\r\n String postTitle2 = random.GetCharacterString(15);\r\n basicInformation.EnterTitle(postTitle2);\r\n basicInformation.EnterSynopsis();\r\n basicInformation.ClickCoverSelectBtn();\r\n SelectFile selectFile = new SelectFile(webDriver);\r\n selectFile.SwitchToSelectFileFrm();\r\n selectFile.ClickPub7MPXVideoBtn();\r\n \t\tselectFile.EnterTitle(\"AutomationWThumb\");\r\n \t\tselectFile.ClickApplyBtn();\r\n \t\tcontentParent.WaitForThrobberNotPresent();\r\n \t\tselectFile.ClickPub7MPXVideoBtn();\r\n \t\tselectFile.ClickMPXMediaThumbnailImage(\"nbclogosmall\", \"1\");\r\n \t\tcontentParent.WaitForThrobberNotPresent();\r\n \t\tThread.sleep(2000); //TODO - dynamic wait\r\n \t\tselectFile.ClickSubmitBtn();\r\n \t\tThread.sleep(2000); //TODO - dynamic wait\r\n webDriver.switchTo().defaultContent();\r\n contentParent.ClickSaveBtn();\r\n contentParent.VerifyMessageStatus(\"Post \" + postTitle2 + \" has been created.\");\r\n \r\n Reporter.log(\"STEP 6\");\r\n navigation.Content();\r\n searchFor.EnterTitle(postTitle2);\r\n \tsearchFor.ClickApplyBtn();\r\n \tsearchFor.VerifySearchThumbnailImgPresent(postTitle2, \"nbclogosmall\");\r\n \t\r\n \t//TODO - step 7 to repeat 1 through 6 for all content items as time allows\r\n }", "private void createTestImage()\n {\n initialImage = new byte[3 * size / 2];\n for (int i = 0; i < size; i++)\n {\n initialImage[i] = (byte) (40 + i % 199);\n }\n\n for (int i = size; i < 3 * size / 2; i += 2)\n {\n initialImage[i] = (byte) (40 + i % 200);\n initialImage[i + 1] = (byte) (40 + (i + 99) % 200);\n }\n }", "@Test\n public void constructorTest() {\n assertEquals(1, stack.getResource(ResourceType.SHIELDS));\n assertEquals(2, stack.getResource(ResourceType.SERVANTS));\n assertEquals(3, stack.getResource(ResourceType.COINS));\n assertEquals(4, stack.getResource(ResourceType.STONES));\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n Frame frame0 = new Frame();\n Label label0 = new Label();\n Label label1 = label0.getFirst();\n frame0.owner = label1;\n ClassWriter classWriter0 = new ClassWriter(3002);\n classWriter0.visitSource(\"JSR/RET are not supported with computeFrames option\", (String) null);\n Class<ObjectInputStream> class0 = ObjectInputStream.class;\n Type type0 = Type.getType(class0);\n Type.getType(\")UBbE;._%G\");\n Type type1 = Type.BYTE_TYPE;\n Type type2 = Type.INT_TYPE;\n type0.getElementType();\n Type.getDescriptor(class0);\n Type type3 = Type.INT_TYPE;\n Type type4 = Type.SHORT_TYPE;\n type0.getElementType();\n Type type5 = Type.INT_TYPE;\n Item item0 = classWriter0.newInteger(6);\n frame0.execute(7, 2, classWriter0, item0);\n assertEquals(2, ClassWriter.COMPUTE_FRAMES);\n }", "public int getChildCount() {\n/* 179 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void package3PicTest() {\n // TODO: test package3Pic\n }", "@Override\n\tpublic int getSizeInventory(){\n\t return modularStacks.length;\n\t}", "ImagePlus doStackOperation(ImagePlus img1, ImagePlus img2) {\n ImagePlus img3 = null;\n int size1 = img1.getStackSize();\n int size2 = img2.getStackSize();\n if (size1 > 1 && size2 > 1 && size1 != size2) {\n IJ.error(\"Image Calculator\", \"'Image1' and 'image2' must be stacks with the same\\nnumber of slices, or 'image2' must be a single image.\");\n return null;\n }\n if (createWindow) {\n img1 = duplicateStack(img1);\n if (img1 == null) {\n IJ.error(\"Calculator\", \"Out of memory\");\n return null;\n }\n img3 = img1;\n }\n int mode = getBlitterMode();\n ImageWindow win = img1.getWindow();\n if (win != null)\n WindowManager.setCurrentWindow(win);\n else if (Interpreter.isBatchMode() && !createWindow && WindowManager.getImage(img1.getID()) != null)\n IJ.selectWindow(img1.getID());\n Undo.reset();\n ImageStack stack1 = img1.getStack();\n StackProcessor sp = new StackProcessor(stack1, img1.getProcessor());\n try {\n if (size2 == 1)\n sp.copyBits(img2.getProcessor(), 0, 0, mode);\n else\n sp.copyBits(img2.getStack(), 0, 0, mode);\n } catch (IllegalArgumentException e) {\n IJ.error(\"\\\"\" + img1.getTitle() + \"\\\": \" + e.getMessage());\n return null;\n }\n img1.setStack(null, stack1);\n if (img1.getType() != ImagePlus.GRAY8) {\n img1.getProcessor().resetMinAndMax();\n }\n if (img3 == null)\n img1.updateAndDraw();\n return img3;\n }", "@Test\n public void testRecomputeStretch(){\n //Recalculate stretch\n imageData.recomputeStretch(frArray, 0, rangeValues, true);\n BufferedImage stretchImage =imageData.getImage(frArray);\n Assert.assertNotEquals(expectedImage, stretchImage);\n }" ]
[ "0.7073758", "0.6943594", "0.67656606", "0.6697229", "0.659047", "0.656829", "0.65670395", "0.6469744", "0.64167106", "0.6366724", "0.6197918", "0.6111997", "0.6022617", "0.59996194", "0.59939563", "0.5989108", "0.5887168", "0.58248186", "0.57068217", "0.56892616", "0.5641804", "0.56406033", "0.5633261", "0.5547678", "0.5511319", "0.5511244", "0.5480928", "0.54803723", "0.54803723", "0.54803723", "0.5473399", "0.54613096", "0.5437815", "0.5437711", "0.5433864", "0.5428044", "0.5402548", "0.53963655", "0.5395708", "0.53956634", "0.5371236", "0.5368973", "0.5359516", "0.53430843", "0.5342253", "0.53345513", "0.53196454", "0.53170925", "0.5302191", "0.53017133", "0.5280678", "0.5271163", "0.5269943", "0.52692294", "0.5268388", "0.52487236", "0.5246568", "0.52462584", "0.5244627", "0.5235188", "0.52337885", "0.52232313", "0.52232313", "0.5218991", "0.520655", "0.52029645", "0.51820916", "0.5179886", "0.51682705", "0.5167819", "0.5163486", "0.51577663", "0.5156283", "0.5153678", "0.51516795", "0.5149884", "0.51413274", "0.5128204", "0.5125887", "0.5119287", "0.51187277", "0.5110314", "0.51065147", "0.5095699", "0.5091441", "0.5086442", "0.5086442", "0.5084017", "0.5077688", "0.5069464", "0.5063042", "0.506239", "0.5058794", "0.50572956", "0.5041107", "0.5033173", "0.5032168", "0.50292784", "0.50292236", "0.5024268" ]
0.78585404
0
there is some gui code in the setDimensions method that is untested here
@Test public void testSetDimensions() { // empty stack ip = new ImagePlus(); ip.setDimensions(1,2,3); assertEquals(1,ip.getNChannels()); assertEquals(1,ip.getNSlices()); assertEquals(ip.getStackSize(),ip.getNFrames()); // stack but dimensions don't match ip = new ImagePlus("Kerbam",(Image)null); st = new ImageStack(2,2); st.addSlice("Oranges", new byte[] {1,2,3,4}); st.addSlice("Apples", new byte[] {1,2,3,4}); st.addSlice("Pears", new byte[] {1,2,3,4}); ip.setStack("Kaboom",st); ip.setDimensions(1,2,3); assertEquals(1,ip.getNChannels()); assertEquals(ip.getStackSize(),ip.getNSlices()); assertEquals(1,ip.getNFrames()); // stack with matching dimensions ip = new ImagePlus("Kerbam",(Image)null); st = new ImageStack(1,4); st.addSlice("Oranges", new byte[] {1,2,3,4}); st.addSlice("Apples", new byte[] {1,2,3,4}); st.addSlice("Pears", new byte[] {1,2,3,4}); st.addSlice("Quinces", new byte[] {1,2,3,4}); st.addSlice("Kiwis", new byte[] {1,2,3,4}); st.addSlice("Bananas", new byte[] {1,2,3,4}); ip.setStack("Kaboom",st); ip.setDimensions(1,2,3); assertEquals(1,ip.getNChannels()); assertEquals(2,ip.getNSlices()); assertEquals(3,ip.getNFrames()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateDimensions() {\r\n width = gui.getWidth();\r\n height = gui.getHeight();\r\n yLabelsMargin = (int) gui.getLabelWidth(Integer.toString(((int) maximumDB / 10) * 10), true) + 2;\r\n if (track != null)\r\n scaleXpx = ((float) width - yLabelsMargin) / track.getBufferCapacity();\r\n else\r\n scaleXpx = 1;\r\n scaleYpx = (float) ((height - 1) / (maximumDB - minimumDB));\r\n if (scaleYpx == 0)\r\n scaleYpx = 1;\r\n }", "public void setSize(double width, double height){\r\n double topLaneHeight=height/100*myInformation.upperToDownPercent;\r\n double bottomLaneHeight=height-topLaneHeight;\r\n double leftSideWidth=width/100*myInformation.leftToRightPercent;\r\n double rightSideWidth=width-leftSideWidth-1;\r\n\r\n double buttonLeftHeight=(height-topLaneHeight)/100*myInformation.leftButtonsPercent;\r\n int countLeftButtons=0;\r\n double labelTopWidth=rightSideWidth/100*myInformation.upperButtonsPercent;\r\n int countTopLabels=0;\r\n //Regions\r\n leftVBox.setMinSize(leftSideWidth,height);\r\n leftVBox.setMaxSize(leftSideWidth,height);\r\n\r\n upperHBox.setMinSize(width,topLaneHeight);\r\n upperHBox.setMaxSize(width,topLaneHeight);\r\n\r\n canvas.setWidth(width);\r\n canvas.setHeight(bottomLaneHeight);\r\n\r\n pane.setMinSize(width,bottomLaneHeight);\r\n pane.setMaxSize(width,bottomLaneHeight);\r\n\r\n stackPane.setMinSize(width, height);\r\n stackPane.setMaxSize(width, height);\r\n\r\n mainVBox.setMinSize(width, height);\r\n mainVBox.setMaxSize(width, height);\r\n\r\n canvasStackPane.setMinSize(width,bottomLaneHeight);\r\n canvasStackPane.setMaxSize(width,bottomLaneHeight);\r\n\r\n listViewVBox.setMinSize(width, height);\r\n listViewVBox.setMaxSize(width, height);\r\n //Objects\r\n upperLeftButton.setMinSize(leftSideWidth,topLaneHeight);\r\n upperLeftButton.setMaxSize(leftSideWidth,topLaneHeight);\r\n //Left Side\r\n left1HintButton.setMinSize(leftSideWidth,buttonLeftHeight);\r\n left1HintButton.setMaxSize(leftSideWidth,buttonLeftHeight);\r\n countLeftButtons++;\r\n\r\n left2Button.setMinSize(leftSideWidth,buttonLeftHeight);\r\n left2Button.setMaxSize(leftSideWidth,buttonLeftHeight);\r\n countLeftButtons++;\r\n\r\n left3Button.setMinSize(leftSideWidth,buttonLeftHeight);\r\n left3Button.setMaxSize(leftSideWidth,buttonLeftHeight);\r\n countLeftButtons++;\r\n\r\n left4Button.setMinSize(leftSideWidth,buttonLeftHeight);\r\n left4Button.setMaxSize(leftSideWidth,buttonLeftHeight);\r\n countLeftButtons++;\r\n\r\n left5Button.setMinSize(leftSideWidth,buttonLeftHeight);\r\n left5Button.setMaxSize(leftSideWidth,buttonLeftHeight);\r\n countLeftButtons++;\r\n\r\n double restHeight=height-(buttonLeftHeight*countLeftButtons+topLaneHeight);\r\n leftRestLabel.setMinSize(leftSideWidth,restHeight);\r\n leftRestLabel.setMaxSize(leftSideWidth,restHeight);\r\n\r\n //Top\r\n upper1Label.setMinSize(labelTopWidth,topLaneHeight);\r\n upper1Label.setMaxSize(labelTopWidth,topLaneHeight);\r\n countTopLabels++;\r\n\r\n upper2Label.setMinSize(labelTopWidth,topLaneHeight);\r\n upper2Label.setMaxSize(labelTopWidth,topLaneHeight);\r\n countTopLabels++;\r\n\r\n upper3Label.setMinSize(labelTopWidth,topLaneHeight);\r\n upper3Label.setMaxSize(labelTopWidth,topLaneHeight);\r\n countTopLabels++;\r\n\r\n double restwidth=width-upperLeftButton.getWidth()-(labelTopWidth*countTopLabels);\r\n upperRestLabel.setMinSize(restwidth,topLaneHeight);\r\n upperRestLabel.setMaxSize(restwidth,topLaneHeight);\r\n //New Gamemode stuff\r\n newGamemodeHBox.setMinSize(width,height);\r\n newGamemodeHBox.setMaxSize(width,height);\r\n double nBWidth=width/100*myInformation.newGamemodeButtonsPercent.width;\r\n double nBHeight=height/100*myInformation.newGamemodeButtonsPercent.height;\r\n\r\n newGamemodebutton1.setMinSize(nBWidth,nBHeight);\r\n newGamemodebutton1.setMaxSize(nBWidth,nBHeight);\r\n\r\n newGamemodebutton2.setMinSize(nBWidth,nBHeight);\r\n newGamemodebutton2.setMaxSize(nBWidth,nBHeight);\r\n\r\n newGamemodebutton3.setMinSize(nBWidth,nBHeight);\r\n newGamemodebutton3.setMaxSize(nBWidth,nBHeight);\r\n\r\n //BackButton\r\n backPane.setMinSize(width, height);\r\n backPane.setMaxSize(width, height);\r\n double backWidth=width/100*myInformation.backButtonPercent.width;\r\n double backHeight=height/100*myInformation.backButtonPercent.height;\r\n backButton.setMinSize(backWidth,backHeight);\r\n backButton.setMaxSize(backWidth,backHeight);\r\n //New Graphmode\r\n newGraphModeHBox.setMinSize(width,height);\r\n newGraphModeHBox.setMaxSize(width,height);\r\n\r\n newGraphModebutton1.setMinSize(nBWidth,nBHeight);\r\n newGraphModebutton1.setMaxSize(nBWidth,nBHeight);\r\n\r\n newGraphModebutton2.setMinSize(nBWidth,nBHeight);\r\n newGraphModebutton2.setMaxSize(nBWidth,nBHeight);\r\n\r\n newGraphModebutton3.setMinSize(nBWidth,nBHeight);\r\n newGraphModebutton3.setMaxSize(nBWidth,nBHeight);\r\n\r\n sMBHBox.setMinSize(width,height);\r\n sMBHBox.setMaxSize(width,height);\r\n smallButton.setMinSize(nBWidth,nBHeight);\r\n smallButton.setMaxSize(nBWidth,nBHeight);\r\n middleButton.setMinSize(nBWidth,nBHeight);\r\n middleButton.setMaxSize(nBWidth,nBHeight);\r\n bigButton.setMinSize(nBWidth,nBHeight);\r\n bigButton.setMaxSize(nBWidth,nBHeight);\r\n\r\n gameEndButton.setMinSize(nBWidth,nBHeight);\r\n gameEndButton.setMaxSize(nBWidth,nBHeight);\r\n gameEndTop.setMinSize(width/2,height/5);\r\n gameEndTop.setMaxSize(width/2,height/5);\r\n\r\n\r\n listView.setMinSize(width/8,height/2);\r\n listView.setMaxSize(width/8,height/2);\r\n submit2.setMinSize(width/8,height/10);\r\n submit2.setMaxSize(width/8,height/10);\r\n\r\n textFieldHBox.setMinSize(width,height);\r\n textFieldHBox.setMaxSize(width,height);\r\n textFieldVertices.setMinSize(nBWidth,nBHeight);\r\n textFieldVertices.setMaxSize(nBWidth,nBHeight);\r\n textFieldEdges.setMinSize(nBWidth,nBHeight);\r\n textFieldEdges.setMaxSize(nBWidth,nBHeight);\r\n\r\n buttonTextfield.setMinSize(nBWidth/2,nBHeight);\r\n buttonTextfield.setMaxSize(nBWidth/2,nBHeight);\r\n\r\n //New Graph\r\n newGraphHBox.setMinSize(width,height);\r\n newGraphHBox.setMaxSize(width,height);\r\n\r\n newGraphButtonYes.setMinSize(nBWidth,nBHeight);\r\n newGraphButtonYes.setMaxSize(nBWidth,nBHeight);\r\n\r\n newGraphButtonNo.setMinSize(nBWidth,nBHeight);\r\n newGraphButtonNo.setMaxSize(nBWidth,nBHeight);\r\n\r\n hintButton1.setMinSize(nBWidth,nBHeight);\r\n hintButton1.setMaxSize(nBWidth,nBHeight);\r\n hintButton2.setMinSize(nBWidth,nBHeight);\r\n hintButton2.setMaxSize(nBWidth,nBHeight);\r\n hintButton3.setMinSize(nBWidth,nBHeight);\r\n hintButton3.setMaxSize(nBWidth,nBHeight);\r\n hintButton4.setMinSize(nBWidth,nBHeight);\r\n hintButton4.setMaxSize(nBWidth,nBHeight);\r\n hintButton5.setMinSize(nBWidth,nBHeight);\r\n hintButton5.setMaxSize(nBWidth,nBHeight);\r\n hintButton6.setMinSize(nBWidth,nBHeight);\r\n hintButton6.setMaxSize(nBWidth,nBHeight);\r\n hintButton7.setMinSize(nBWidth,nBHeight);\r\n hintButton7.setMaxSize(nBWidth,nBHeight);\r\n hintButton8.setMinSize(nBWidth,nBHeight);\r\n hintButton8.setMaxSize(nBWidth,nBHeight);\r\n hintButton9.setMinSize(nBWidth,nBHeight);\r\n hintButton9.setMaxSize(nBWidth,nBHeight);\r\n\r\n gameWinStackPane.setMinSize(width, height);\r\n gameWinStackPane.setMaxSize(width, height);\r\n\r\n gameWinButton1.setMinSize(nBWidth,nBHeight);\r\n gameWinButton1.setMaxSize(nBWidth,nBHeight);\r\n\r\n gameWinButton2.setMinSize(nBWidth,nBHeight);\r\n gameWinButton2.setMaxSize(nBWidth,nBHeight);\r\n\r\n gameWinHBox.setMinSize(width,height/4);\r\n gameWinHBox.setMaxSize(width,height/4);\r\n\r\n hintMenuStack.setMinSize(width, height);\r\n hintMenuStack.setMaxSize(width, height);\r\n\r\n hintMenu.setSpacing(width/30);\r\n vBoxHint.setSpacing(height/20);\r\n vBoxHint2.setSpacing(height/20);\r\n vBoxHint3.setSpacing(height/20);\r\n\r\n abstand.setMinSize(width,height/3);\r\n }", "@Override\r\n public Dimension getPreferredSize() {\n \r\n return new Dimension((int) (this.getHeight() * 0.8), this.getHeight());\r\n }", "@Override\n\tpublic void setDimensions() {\n\t\t\n\t}", "private void basicSize(){\n setSize(375,400);\n }", "public void updateDimensions() {\n }", "private void updateViewBounds() \r\n {\r\n assert !sim.getMap().isEmpty() : \"Visualiser needs simulator whose a map has at least one node\"; \r\n \r\n \r\n viewMinX = minX * zoomFactor;\r\n viewMinY = minY * zoomFactor;\r\n \r\n viewMaxX = maxX * zoomFactor;\r\n viewMaxY = maxY * zoomFactor;\r\n \r\n \r\n double marginLength = zoomFactor * maxCommRange;\r\n \r\n \r\n // Set the size of the component\r\n int prefWidth = (int)Math.ceil( (viewMaxX - viewMinX) + (marginLength * 2) );\r\n int prefHeight = (int)Math.ceil( (viewMaxY - viewMinY) + (marginLength * 2) );\r\n setPreferredSize( new Dimension( prefWidth, prefHeight ) );\r\n \r\n \r\n // Adjust for margin lengths \r\n viewMinX -= marginLength;\r\n viewMinY -= marginLength;\r\n \r\n viewMaxX += marginLength;\r\n viewMaxY += marginLength;\r\n }", "private void updateDimensions()\n\t{\n\t\tthis.drawer.setSprite(this.drawer.getSprite().withDimensions(\n\t\t\t\tgetMaster().getDimensions()));\n\t\tthis.lastDimensions = getMaster().getDimensions();\n\t}", "protected abstract void setSize();", "public void setSizePlayingFields()\r\n {\n setPreferredSize(new Dimension(109*8,72*8));//powieżchnia o 2 m z każdej strony większa niz boisko 106 i 69 pomnożone o 8\r\n //większe boisko żeby było widać\r\n setMaximumSize(getMaximumSize());\r\n setBackground(Color.green);\r\n }", "private void updateSize() {\n double width = pane.getWidth();\n double height = pane.getHeight();\n\n if(oldWidth == 0) {\n oldWidth = width;\n }\n if(oldHeight == 0) {\n oldHeight = height;\n }\n\n double oldHvalue = pane.getHvalue();\n double oldVvalue = pane.getVvalue();\n if(Double.isNaN(oldVvalue)) {\n oldVvalue = 0;\n }\n if(Double.isNaN(oldHvalue)) {\n oldHvalue = 0;\n }\n\n pane.setVmax(height);\n pane.setHmax(width);\n\n if(grow) {\n renderMapGrow(width, height, curZoom);\n } else {\n renderMap(width, height, curZoom);\n }\n\n pane.setVvalue((height/oldHeight)*oldVvalue);\n pane.setHvalue((width/oldWidth)*oldHvalue);\n\n oldWidth = width;\n oldHeight = height;\n }", "public abstract void setSize(Dimension d);", "protected void setSize(Dimension dim) {}", "public void assignDimensionalControls() {\n frame = imp1.getWindow();\n Component[] comps = frame.getComponents();\n try {\n cSelectorChannel_ = (ScrollbarWithLabel) comps[1];\n if (comps.length > 2) {\n tSelectorTime_ = (ScrollbarWithLabel) comps[2];\n }\n if (comps.length > 3) {\n zSelectorZSlice_ = (ScrollbarWithLabel) comps[3];\n }\n } catch (Exception ex) {\n }\n try {\n pSelectorPos = (ScrollbarWithLabel) comps[4];\n } catch (Exception ex) {\n System.out.println(\n \"Warning: Orientation indicators could not attach to Position dim. It might not be present.\");\n }\n// if (imp1.getRoi() == null && imp1.getCanvas().getMagnification() > 1) {\n// Rectangle rec = new Rectangle(imp1.getCanvas().getSrcRect());\n// imp1.setRoi(rec);\n// }\n// if (\"Yes\".equals(UseListener) && \"Yes\".equals(EnableIndicators)) {\n// //loadParams();\n// addListeners();\n// } else {\n// //UseListener = \"No\";\n// EnableIndicators = \"No\";\n// removeListeners();\n// }\n }", "public Dimension getPreferredSize()\n{ \n Dimension d=new Dimension(gRectangle.width+2*GC_CANVAS_HORIZ_GAP,\n gRectangle.height+2*GC_CANVAS_VERT_GAP);\n return d;\n}", "@Override\r\n public Dimension getPreferredSize() {\r\n return new Dimension(colorWheelWidth + valueBarWidth + spacing + margins * 2,\r\n diameter + selectDiameter + margins * 2);\r\n }", "void setSize(Dimension size);", "@Override\n\tprotected void changeSize(int x, int y, int previousX, int previousY) {\n this.setWidth(this.getWidth()+(x-previousX));\n this.setHeight(this.getHeight()+(y-previousY));\n this.setX(this.getX()+(x-previousX));\n\t}", "private void setDimensions() {\n IPhysicalVolume physVol_parent = getModule().getGeometry().getPhysicalVolume();\n ILogicalVolume logVol_parent = physVol_parent.getLogicalVolume();\n ISolid solid_parent = logVol_parent.getSolid();\n Box box_parent;\n if (Box.class.isInstance(solid_parent)) {\n box_parent = (Box) solid_parent;\n } else {\n throw new RuntimeException(\"Couldn't cast the module volume to a box!?\");\n }\n _length = box_parent.getXHalfLength() * 2.0;\n _width = box_parent.getYHalfLength() * 2.0;\n\n }", "void setDimension(double width, double height);", "public void settings() { size(1200, 800); }", "public void setSize();", "@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }", "@Before\n public void setDimension() {\n this.view.setDimension(new Dimension(WITDH, HEIGHT));\n }", "protected void createDialogSize ()\n {\n }", "@Override\r\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tfloat xPad = getPaddingLeft() + getPaddingRight();\r\n\t\tfloat yPad = getPaddingTop() + getPaddingBottom();\r\n\t\tdimension = Math.min(w - xPad, (h - yPad) * 2);\r\n\t\tradius = 60;\r\n\t\tinsideLeft = w / 2 - radius;\r\n\t\tinsideRight = w / 2 + radius;\r\n\t\tinsideTop = dimension - getPaddingBottom() - radius;\r\n\t\tinsideBottom = dimension - getPaddingBottom();\r\n\t\t\r\n//\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), dimension - getPaddingRight(), dimension - getPaddingBottom());\r\n//\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), dimension - getPaddingRight(), dimension/2);\r\n//\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), dimension, dimension);\r\n\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), w-getPaddingRight(), h-getPaddingBottom());\r\n\t\tfloat insideRectDownH = dimension-getPaddingBottom()-getPaddingTop()+150;\r\n//\t\tinsideRect = new RectF(50, 300, 320, insideRectDownH);\r\n\t\tinsideRect = new RectF(w/2-radius, dimension-radius, w/2+radius, dimension+radius);\r\n\t}", "public Dimension getPreferredSize(){\n return new Dimension(400,350);\n }", "public void showRectangleSizeSetup() {\n sizeArea.removeAllViewsInLayout();\n sizeArea.addView(heightEdit);\n sizeArea.addView(widthEdit);\n }", "@Override\n protected void sizeChanged () {\n }", "@SuppressWarnings(\"UnnecessaryBoxing\")\r\n private void initLayoutDimensions() {\r\n leftPanelWidth = Page.getScreenWidth() * 20 / 100;\r\n leftPanelHeight = Page.getScreenHeight() - 225;\r\n middlePanelWidth = Page.getScreenWidth() / 2;\r\n if (Double.valueOf(middlePanelWidth) % 2.0 > 0.0) {\r\n middlePanelWidth = middlePanelWidth - 1;\r\n }\r\n rightPanelWidth = Page.getScreenWidth() - (leftPanelWidth + 2 + middlePanelWidth + 2);\r\n }", "@Override\r\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\r\n\t\t// 图所占范围大小\r\n\t\tchart.setChartRange(w, h);\r\n\t}", "public Dimension getPreferredSize();", "protected void doResize() {\r\n\t\tif (renderer.surface == null) {\r\n\t\t\tdoNew();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, false);\r\n\t\tdlg.widthText.setText(\"\" + renderer.surface.width);\r\n\t\tdlg.heightText.setText(\"\" + renderer.surface.height);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\trenderer.surface.width = dlg.width;\r\n\t\t\trenderer.surface.height = dlg.height;\r\n\t\t\trenderer.surface.computeRenderingLocations();\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void setDimension() {\n\r\n\t}", "@Override\r\n\tpublic void setDimension() {\n\r\n\t}", "@Override\n\tpublic void componentResized(ComponentEvent e) {\n\t\twidthAttitude=e.getComponent().getSize().getWidth()/Width;\n\t\theightAttitude=e.getComponent().getSize().getHeight()/Height;\n\t}", "private void setSizeBox() {\n\t\t\tthis.leftX = pointsSubStroke.get(0).getX();\n\t\t\tthis.righX = pointsSubStroke.get(0).getX();\n\t\t\tthis.topY = pointsSubStroke.get(0).getY();\n\t\t\tthis.bottomY = pointsSubStroke.get(0).getY();\n\t\t\t\n\t\t\tfor(int i = 0; i < pointsSubStroke.size();i++) {\n\t\t\t\tdouble x = pointsSubStroke.get(i).getX();\n\t\t\t\tdouble y = pointsSubStroke.get(i).getX();\n\t\t\t\t\n\t\t\t\tthis.leftX = Math.min(x, leftX);\n\t\t\t\tthis.righX = Math.max(x, righX);\n\t\t\t\tthis.topY = Math.min(y, topY);\n\t\t\t\tthis.bottomY = Math.max(y, bottomY);\n\t\t\t}\n\t\t}", "public abstract void windowResized();", "private void customize() {\r\n panel.setSize(new Dimension(width, height));\r\n panel.setLayout(new BorderLayout());\r\n }", "@Override\r\npublic void componentResized(ComponentEvent arg0) {\n\tsetSizeBackgr(getSize());\r\n\tsetSizeHat (getSize());\r\n\tsetSizeGift(getSize());\r\n}", "@Override\n\tpublic Dimension getPreferredSize() {\n\t\treturn new Dimension(400,400);\n\t}", "public Dimension getPreferredSize() {\n Dimension size = super.getPreferredSize();\n size.width += extraWindowWidth;\n return size;\n }", "private void init() {\r\n setTitle(\"Crop Boundary Pixels\");\r\n setSize(350, 230);\r\n setForeground(Color.black);\r\n\r\n Box contentBox = new Box(BoxLayout.Y_AXIS);\r\n JPanel optionPanel = new JPanel();\r\n\r\n // make border\r\n optionPanel.setBorder(buildTitledBorder(\"Pixels Around Image\"));\r\n contentBox.add(optionPanel);\r\n\r\n // set layout\r\n GridBagLayout gbl = new GridBagLayout();\r\n GridBagConstraints gbc = new GridBagConstraints();\r\n optionPanel.setLayout(gbl);\r\n\r\n gbc.anchor = GridBagConstraints.NORTHWEST;\r\n // make content, place into layout\r\n\r\n // left\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel leftSideLabel = new JLabel(\"Pixels on the left side:\");\r\n leftSideLabel.setFont(serif12);\r\n leftSideLabel.setForeground(Color.black);\r\n leftSideLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2;\r\n gbl.setConstraints(leftSideLabel, gbc);\r\n optionPanel.add(leftSideLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n leftSideInput = new JTextField(\"0\", 4);\r\n leftSideInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(leftSideInput, false);\r\n\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(leftSideInput, gbc);\r\n optionPanel.add(leftSideInput);\r\n\r\n // right\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel rightSideLabel = new JLabel(\"Pixels on the right side:\");\r\n rightSideLabel.setFont(serif12);\r\n rightSideLabel.setForeground(Color.black);\r\n rightSideLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2;\r\n gbl.setConstraints(rightSideLabel, gbc);\r\n optionPanel.add(rightSideLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n rightSideInput = new JTextField(\"0\", 4);\r\n rightSideInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(rightSideInput, false);\r\n\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(rightSideInput, gbc);\r\n optionPanel.add(rightSideInput);\r\n\r\n // top\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel topLabel = new JLabel(\"Pixels on top:\");\r\n topLabel.setFont(serif12);\r\n topLabel.setForeground(Color.black);\r\n topLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2;\r\n gbl.setConstraints(topLabel, gbc);\r\n optionPanel.add(topLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n topInput = new JTextField(\"0\", 4);\r\n topInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(topInput, false);\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(topInput, gbc);\r\n optionPanel.add(topInput);\r\n\r\n // bottom\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel bottomLabel = new JLabel(\"Pixels on bottom:\");\r\n bottomLabel.setFont(serif12);\r\n bottomLabel.setForeground(Color.black);\r\n bottomLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2;\r\n gbl.setConstraints(bottomLabel, gbc);\r\n optionPanel.add(bottomLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n bottomInput = new JTextField(\"0\", 4);\r\n bottomInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(bottomInput, false);\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(bottomInput, gbc);\r\n optionPanel.add(bottomInput);\r\n\r\n // front\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel frontLabel = new JLabel(\"Slices at the front of image:\");\r\n frontLabel.setFont(serif12);\r\n frontLabel.setForeground(Color.black);\r\n frontLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2; // GridBagConstraints.RELATIVE;\r\n gbl.setConstraints(frontLabel, gbc);\r\n optionPanel.add(frontLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n frontInput = new JTextField(\"0\", 4);\r\n frontInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(frontInput, false);\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(frontInput, gbc);\r\n optionPanel.add(frontInput);\r\n\r\n // back\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel backLabel = new JLabel(\"Slices at the back of image:\");\r\n backLabel.setFont(serif12);\r\n backLabel.setForeground(Color.black);\r\n backLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2; // GridBagConstraints.RELATIVE;\r\n gbl.setConstraints(backLabel, gbc);\r\n optionPanel.add(backLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n backInput = new JTextField(\"0\", 4);\r\n backInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(backInput, false);\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(backInput, gbc);\r\n optionPanel.add(backInput);\r\n\r\n // image destination select\r\n JPanel destPanel = new JPanel(); // panel carries no content but box & border\r\n destPanel.setBorder(buildTitledBorder(\"Select Destination\"));\r\n\r\n Box destinationBox = new Box(BoxLayout.Y_AXIS);\r\n\r\n destinationGroup = new ButtonGroup();\r\n newImage = new JRadioButton(\"New Image\", true);\r\n newImage.setFont(serif12);\r\n newImage.addActionListener(this);\r\n destinationGroup.add(newImage);\r\n destinationBox.add(newImage);\r\n newImage.setEnabled(true);\r\n\r\n replaceImage = new JRadioButton(\"Replace Image\", false);\r\n replaceImage.setFont(serif12);\r\n replaceImage.addActionListener(this);\r\n destinationGroup.add(replaceImage);\r\n destinationBox.add(replaceImage);\r\n replaceImage.setEnabled(true);\r\n destPanel.add(destinationBox);\r\n contentBox.add(destPanel);\r\n\r\n // test speed panel (choice 1: algo has personal buff, imported into img,\r\n // choice 2: algo calcs where to insert a row. methinks fewer loops)\r\n /*\r\n * JPanel loopingTestPanel = new JPanel(); loopingTestPanel.setBorder(buildTitledBorder(\"Looping test\")); Box\r\n * loopingTestBox = new Box(BoxLayout.Y_AXIS); loopingGroup = new ButtonGroup(); noBuffer = new JRadioButton(\"No\r\n * Buffer\", true); noBuffer.setFont(serif12); noBuffer.addActionListener(this); loopingGroup.add(noBuffer);\r\n * loopingTestBox.add(noBuffer); usingBuffer = new JRadioButton(\"Uses Buffer\", false);\r\n * usingBuffer.setFont(serif12); usingBuffer.addActionListener(this); loopingGroup.add(usingBuffer);\r\n * loopingTestBox.add(usingBuffer); loopingTestPanel.add(loopingTestBox); contentBox.add(loopingTestPanel);\r\n */\r\n // end looping test display\r\n\r\n /*\r\n * JPanel OKCancelPanel = new JPanel(new FlowLayout()); OKButton = buildOKButton(); OKCancelPanel.add(OKButton);\r\n *\r\n * cancelButton = buildCancelButton(); OKCancelPanel.add(cancelButton); contentBox.add(OKCancelPanel);\r\n */\r\n contentBox.add(buildButtons());\r\n\r\n // if this is a 2D image, turn off slice margins\r\n if (image.getNDims() == 2) {\r\n frontLabel.setEnabled(false);\r\n frontInput.setEnabled(false);\r\n backLabel.setEnabled(false);\r\n backInput.setEnabled(false);\r\n }\r\n\r\n mainDialogPanel.add(contentBox);\r\n getContentPane().add(mainDialogPanel);\r\n\r\n pack();\r\n setVisible(true);\r\n }", "@Override\n\tpublic Dimension getSize() \n\t{\n\t\treturn panel.getSize();\n\t}", "@Override\n public Dimension getPreferredSize()\n {\n return new Dimension( width, height );\n }", "public void onSizeChanged(int w, int h, int oldw, int oldh) {\r\n super.onSizeChanged(w, h, oldw, oldh);\r\n returnDefualt();\r\n this.startWidth = (float)getWidth()/4;\r\n this.endWidth = (float)getWidth()-((float)getWidth()/4);\r\n this.startHeight = (float)getHeight()/12;\r\n this.endHeight = getHeight()-((float)getHeight()/12);\r\n this.oval = new RectF(this.startWidth,this.startHeight , this.endWidth, this.endHeight);\r\n }", "private void updateSizeInfo() {\n RelativeLayout drawRegion = (RelativeLayout)findViewById(R.id.drawWindow);\r\n drawW = drawRegion.getWidth();\r\n drawH = drawRegion.getHeight();\r\n getImageFromStorage();\r\n LinearLayout parentWindow = (LinearLayout)findViewById(R.id.parentWindow);\r\n parentWindow.setPadding((drawW - bgImage.getWidth())/2, (drawH - bgImage.getHeight())/2, (drawW - bgImage.getWidth())/2, (drawH - bgImage.getHeight())/2);\r\n parentWindow.invalidate();\r\n }", "@Override\n public void settings() {\n size(800, 800, P3D);\n }", "public String _base_resize(double _width,double _height) throws Exception{\n_cvs.Resize((float) (_width),(float) (_height));\n //BA.debugLineNum = 86;BA.debugLine=\"pnl.SetLayoutAnimated(0, 0, 0, Width, Height)\";\n_pnl.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height));\n //BA.debugLineNum = 87;BA.debugLine=\"If thumb.IsInitialized = False Then CreateThumb\";\nif (_thumb.IsInitialized()==__c.False) { \n_createthumb();};\n //BA.debugLineNum = 88;BA.debugLine=\"CircleRect.Initialize(ThumbSize + stroke, ThumbSi\";\n_circlerect.Initialize((float) (_thumbsize+_stroke),(float) (_thumbsize+_stroke),(float) (_width-_thumbsize-_stroke),(float) (_height-_thumbsize-_stroke));\n //BA.debugLineNum = 89;BA.debugLine=\"xlbl.SetLayoutAnimated(0, CircleRect.Left, Circle\";\n_xlbl.SetLayoutAnimated((int) (0),(int) (_circlerect.getLeft()),(int) (_circlerect.getTop()),(int) (_circlerect.getWidth()),(int) (_circlerect.getHeight()));\n //BA.debugLineNum = 90;BA.debugLine=\"Draw\";\n_draw();\n //BA.debugLineNum = 91;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void onSizeChanged(int w, int h, int oldW, int oldH) {\n super.onSizeChanged(w, h, oldW, oldH);\n this.beginWid = (float)getWidth()/8;\n this.endWid = (float)getWidth()-((float)getWidth()/8);\n this.beginHei = (float)getHeight()/8;\n this.endHei = getHeight()-((float)getHeight()/8);\n this.oval = new RectF(this.beginWid,this.beginHei, this.endWid, this.endHei);\n returnDefault();\n }", "@Override\n\tpublic Dimension getPreferredSize(){\n\t\treturn new Dimension(640, 480);\n\t}", "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }", "@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }", "private void actionModifySize() {\n CSizePanel csizePanel = new CSizePanel(layoutPanel.getLayoutSize(),\n false);\n int result = JOptionPane.showConfirmDialog(this, csizePanel,\n \"Modify layout size\", JOptionPane.OK_CANCEL_OPTION);\n if (result == JOptionPane.OK_OPTION) { // Afirmative\n try {\n int sizeX = Integer\n .parseInt(csizePanel.tfields[CSizePanel.idxX].getText());\n int sizeY = Integer\n .parseInt(csizePanel.tfields[CSizePanel.idxY].getText());\n if (sizeX >= LayoutPanel.minXCells\n && sizeX <= LayoutPanel.maxXCells\n && sizeY >= LayoutPanel.minYCells\n && sizeY <= LayoutPanel.maxYCells) {\n RepType rtype = RepType.CLEAR;\n if (csizePanel.newButton.isSelected()) {\n rtype = RepType.CLEAR;\n } else if (csizePanel.rptButton.isSelected()) {\n rtype = RepType.REPEAT;\n } else if (csizePanel.altButton.isSelected()) {\n rtype = RepType.ALT;\n }\n\n changeLayoutSize(new Dimension(sizeX, sizeY), rtype);\n } else {\n JOptionPane.showMessageDialog(null,\n \"Size x must be between \" + LayoutPanel.minXCells\n + \" and \" + LayoutPanel.maxXCells\n + \", or size y must be between \"\n + LayoutPanel.minYCells + \" and \"\n + LayoutPanel.maxYCells + \".\");\n }\n } catch (NumberFormatException ne) {\n JOptionPane.showMessageDialog(null, \"Invalid number.\");\n }\n }\n }", "@Override\npublic Dimension getPreferredSize() {\n\treturn new Dimension(Config.WIDTH, Config.HEIGHT);\n}", "@Override\n\tpublic Dimension getPreferredSize() {\n\t\treturn new Dimension(800,600);\n\t}", "protected void isotrop()\r\n {\r\n Dimension d = getSize();\r\n int maxX = d.width - 1, maxY = d.height - 1;\r\n\tpSize = Math.max(width / maxX, height / maxY);\r\n\tcX = maxX / 2;\r\n\tcY = maxY / 2;\r\n\r\n\t// Since pixel size is max of width/height over their device sizes, one of these\r\n\t// values will actually be larger. This should be used to use all of the canvas\r\n\tactualWidth = maxX * pSize;\r\n\tactualHeight = maxY * pSize;\r\n }", "@Override\n public void settings(){\n size(500, 500);\n }", "private void calcContentSize() {\n }", "private void extendedSize(){\n setSize(600,400);\n }", "public void setFrameSize();", "protected abstract void resize();", "public Dimension getPreferredSizeRO();", "Dimension getSize();", "Dimension getSize();", "protected void calculateBounds()\r\n {\r\n Toolkit DefaultToolkit = Toolkit.getDefaultToolkit();\r\n Dimension ScreenSize = DefaultToolkit.getScreenSize();\r\n int FrameWidth = ScreenSize.width - 100;\r\n int FrameHeight = ScreenSize.height - 100;\r\n setBounds(50, 50, FrameWidth, FrameHeight);\r\n }", "@Override\n public void onSizeChanged(int w, int h, int oldW, int oldH) {\n mId = w / 2;\n mId = mId - mViewsCount * 9;\n }", "@Override\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\twidth = w;\n\t\theigth = h;\n\t\tajestPosition();\n\t\tthis.invalidate();\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\n\t}", "public void setSize( int width, int height ) {\n checkWidget();\n int newHeight = height;\n int newWidth = width;\n Point point = parent.fixPoint( newWidth, newHeight );\n newWidth = Math.max( point.x, minimumWidth + MINIMUM_WIDTH );\n newHeight = Math.max( point.y, 0 );\n if ( !ideal ) {\n preferredWidth = newWidth;\n preferredHeight = newHeight;\n }\n itemBounds.width = requestedWidth = newWidth;\n itemBounds.height = newHeight;\n if ( control != null ) {\n int controlWidth = newWidth - MINIMUM_WIDTH;\n if ( (style & SWT.DROP_DOWN) != 0 && newWidth < preferredWidth ) {\n controlWidth -= CHEVRON_IMAGE_WIDTH + CHEVRON_HORIZONTAL_TRIM\n + CHEVRON_LEFT_MARGIN;\n }\n control.setSize( parent.fixPoint( controlWidth, newHeight ) );\n }\n parent.relayout();\n updateChevron();\n }", "abstract int calculatePreferredSize(int axis);", "protected final Dimension windowSizeControl () {\n\t\tif (!this.isMaximum && !this.isIcon && !this.isClosed) {\n\t\t\tint height = size.height;\n\t\t\tint width = size.height;\n\t\t\t\n\t\t\t// Gets the current size\n\t\t\tint currentHeight = this.getHeight();\n\t\t\tint currentWidth = this.getWidth();\n\t\t\t\n\t\t\t// Makes a pack() to get the minimum required size\n\t\t\tthis.pack();\n\t\t\t\n\t\t\t// Gets the pack size\n\t\t\tint packHeight = this.getHeight();\n\t\t\tint packWidth = this.getWidth();\n\t\t\t\n\t\t\t// Calculates the ideal height\n\t\t\tif (packHeight > currentHeight) {\n\t\t\t\theight = packHeight;\n\t\t\t} else {\n\t\t\t\theight = currentHeight;\n\t\t\t}\n\t\t\t// Calculates the ideal width\n\t\t\tif (packWidth > currentWidth) {\n\t\t\t\twidth = packWidth;\n\t\t\t} else {\n\t\t\t\twidth = currentWidth;\n\t\t\t}\n\t\t\t\n\t\t\t// It must not be greater than the desktop size\n\t\t\tint desktopHeight = parent.getDesktopPane().getHeight();\n\t\t\tint desktopWidth = parent.getDesktopPane().getWidth();\n\t\t\t\n\t\t\tif (width > desktopWidth){\n\t\t\t\twidth = desktopWidth;\n\t\t\t}\n\t\t\tif (packWidth > desktopWidth){\n\t\t\t\tpackWidth = desktopWidth;\n\t\t\t}\n\t\t\tif (height > desktopHeight){\n\t\t\t\theight = desktopHeight;\n\t\t\t}\n\t\t\tif (packHeight > desktopHeight){\n\t\t\t\tpackHeight = desktopHeight;\n\t\t\t}\n\t\t\t\n\t\t\t// Resizes the window and sets the minimum allowed size\n\t\t\tsize = new Dimension(width, height);\n\t\t\tsetSize(size);\n\t\t\tsetMinimumSize(new Dimension(packWidth, packHeight));\n\t\t}\n\t\treturn size;\n\t}", "private void setCorrectSize() {\n double newHeight = this.getContentPane().getPreferredSize().getHeight() +\n this.getContentPane().getPreferredSize().getHeight()/10 * 7;\n int newHeightInt = (int)Math.round(newHeight);\n \n this.setSize(this.getWidth(),newHeightInt);\n }", "private void resize() {\n }", "private void geometry()\r\n\t\t{\r\n\t\t//default : spinners are at min and max value, so that the user\r\n\t\t//know what range he can work through at first glance\r\n\t\tspinMin = createRangedSpinner(min, min, max);\r\n\t\tspinMax = createRangedSpinner(max, min, max);\r\n\r\n\t\t//prepare internal grid layout\r\n\t\tgridLayout = new GridLayout(2, 2);\r\n\t\tthis.setLayout(gridLayout);\r\n\r\n\t\t//add components to grid pannel\r\n\t\tthis.add(new JCenter(new JLabel(descMinspinner)));\r\n\t\tthis.add(new JCenter(spinMin));\r\n\t\tthis.add(new JCenter(new JLabel(descMaxspinner)));\r\n\t\tthis.add(new JCenter(spinMax));\r\n\r\n\t\t}", "public ToolWindowSelector() {\r\n\t\tfinal ImageStack slices = ImageStack.getInstance();\t\t\r\n\t\t\r\n\r\n\t\t// range_max needs to be calculated from the bits_stored value\r\n\t\t// in the current dicom series\r\n\t\tint window_center_min = 0;\r\n\t\tint window_width_min = 0;\r\n\t\tint window_center_max = 1<<(slices.getDiFile(0).getBitsStored());\r\n\t\tint window_width_max = 1<<(slices.getDiFile(0).getBitsStored());\r\n\t\t_window_center = slices.getWindowCenter();\r\n\t\t_window_width = slices.getWindowWidth();\r\n\t\t\r\n\t\t_window_settings_label = new JLabel(\"Window Settings\");\r\n\t\t_window_center_label = new JLabel(\"Window Center:\");\r\n\t\t_window_width_label = new JLabel(\"Window Width:\");\r\n\t\t\r\n\t\t_window_center_slider = new JSlider(window_center_min, window_center_max, _window_center);\r\n\t\t_window_center_slider.addChangeListener(new ChangeListener() {\r\n\t\t\tpublic void stateChanged(ChangeEvent e) {\r\n\t\t\t\tJSlider source = (JSlider) e.getSource();\r\n\t\t\t\tif (source.getValueIsAdjusting()) {\r\n\t\t\t\t\t_window_center = (int)source.getValue();\r\n//\t\t\t\t\tSystem.out.println(\"_window_center_slider state Changed: \"+_window_center);\r\n\t\t\t\t\tslices.setWindowCenter(_window_center);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\t\t\r\n\t\t\r\n\t\t_window_width_slider= new JSlider(window_width_min, window_width_max, _window_width);\r\n\t\t_window_width_slider.addChangeListener(new ChangeListener() {\r\n\t\t\tpublic void stateChanged(ChangeEvent e) {\r\n\t\t\t\tJSlider source = (JSlider) e.getSource();\r\n\t\t\t\tif (source.getValueIsAdjusting()) {\r\n\t\t\t\t\t_window_width = (int)source.getValue();\r\n//\t\t\t\t\tSystem.out.println(\"_window_width_slider state Changed: \"+_window_width);\r\n\t\t\t\t\tslices.setWindowWidth(_window_width);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tsetLayout(new GridBagLayout());\r\n\t\tGridBagConstraints c = new GridBagConstraints();\r\n\t\tc.weighty = 0.3;\r\n\t\tc.fill = GridBagConstraints.BOTH;\r\n\t\tc.insets = new Insets(2,2,2,2); // top,left,bottom,right\r\n\t\tc.weightx = 0.1;\r\n\t\tc.gridwidth = 2;\r\n\t\tc.gridx = 0; c.gridy = 0; this.add(_window_settings_label, c);\r\n\t\tc.gridwidth=1;\r\n\r\n\t\tc.weightx = 0;\r\n\t\tc.gridx = 0; c.gridy = 1; this.add(_window_center_label, c);\r\n\t\tc.gridx = 0; c.gridy = 2; this.add(_window_width_label, c);\r\n\t\tc.gridx = 1; c.gridy = 1; this.add(_window_center_slider, c);\r\n\t\tc.gridx = 1; c.gridy = 2; this.add(_window_width_slider, c);\r\n\t\t\r\n\r\n\t}", "Dimension getCanvasDimension();", "public Dimension getPreferredSize()\n {\n return new Dimension( FRAME_WIDTH-20, FRAME_HEIGHT-40 );\n }", "@Test\n\tpublic void testSetDimensions() {\n\t\tExplorer explore = new Explorer();\n\t\texplore.setDimensions(3, 3);\n\t\tassertTrue(explore.getHeight() == 3);\n\t\tassertTrue(explore.getWidth() == 3);\n\t}", "public void setPreferredSize( int width, int height ) {\n checkWidget();\n ideal = true;\n Point point = parent.fixPoint( width, height );\n preferredWidth = Math.max( point.x, MINIMUM_WIDTH );\n preferredHeight = point.y;\n }", "public void setComponentBounds(){\n spelerIDLabel.setBounds(40,10,100,40);\n typeLabel.setBounds(40,60,100,40);\n codeLabel.setBounds(40,110,200,40);\n heeftBetaaldLabel.setBounds(40, 160, 200, 40);\n\n spelerIDField.setBounds(250, 10, 100, 40);\n typeField.setBounds(250, 60, 100, 40);\n codeField.setBounds(250, 110, 100, 40);\n heeftBetaaldField.setBounds(250, 160, 100, 40);\n\n terugButton.setBounds(300,260,75,40);\n klaarButton.setBounds(200,260,100,40);\n\n\n\n\n }", "@Override\r\n\tpublic void resize() {\n\t\t\r\n\t}", "public void updateBounds(){\r\n\t\tRectangle bounds = new Rectangle(super.getBounds());\r\n\t\tint preferredHeight = 0;\r\n\t\tfor(Object child : getChildren()){\r\n\t\t\tIFigure figure = (IFigure)child;\r\n\t\t\tpreferredHeight += figure.getPreferredSize().height;\r\n\t\t}\r\n\t\tif (preferredHeight == 0) preferredHeight = 200;\r\n\t\tbounds.setHeight(preferredHeight+20);\r\n\t\tsetBounds(bounds);\r\n\t}", "public int winSize() { return winSize; }", "@Override\n\tpublic void resized() {\n\t}", "public void updateBounds() {\n\t\tswitch (this.species){\n\t\tcase HOGCHOKER:\n\t\tcase SILVERSIDE:\n\t\tcase FLOUNDER:\n\t\t\tthis.topYBound = frameHeight / 3 * 2;\n\t\t\tthis.bottomYBound = frameHeight - imageHeight - frameBarSize;\n\t\t\tbreak;\n\t\tcase PERCH: \n\t\tcase MINNOW: \n\t\tcase WEAKFISH:\n\t\t\tthis.topYBound = frameHeight / 3;\n\t\t\tthis.bottomYBound = frameHeight / 3 * 2 - imageHeight;\n\t\t\tbreak;\n\n\t\tcase MENHADEN:\n\t\tcase MUMMICHOG:\n\t\t\tthis.topYBound = 0;\n\t\t\tthis.bottomYBound = frameHeight / 3 - imageHeight;\n\t\t\tbreak;\n\t\tcase GOLD:\n\t\tdefault:\n\t\t\ttopYBound = 0;\n\t\t\tbottomYBound = frameHeight;\n\t\t}\n\t}", "private void init() {\r\n setForeground(Color.black);\r\n setTitle(\"Evolve Boundary\");\r\n\r\n JPanel scalePanel = new JPanel(new GridLayout(4, 2));\r\n scalePanel.setForeground(Color.black);\r\n scalePanel.setBorder(buildTitledBorder(\"Contour Change\"));\r\n\r\n int[] aiUnits = image.getUnitsOfMeasure();\r\n JLabel labelChangeX = new JLabel(\"Enter size change in \" + FileInfoBase.getUnitsOfMeasureAbbrevStr(aiUnits[0]) + \" units \");\r\n labelChangeX.setForeground(Color.black);\r\n labelChangeX.setFont(serif12);\r\n scalePanel.add(labelChangeX);\r\n\r\n textChangeX = new JTextField();\r\n textChangeX.setText(\"2.0\");\r\n textChangeX.setFont(serif12);\r\n scalePanel.add(textChangeX);\r\n \r\n JLabel labelBoundaryDir = new JLabel(\"Move boundary \"); // make & set a label\r\n labelBoundaryDir.setForeground(Color.black);\r\n labelBoundaryDir.setFont(serif12);\r\n scalePanel.add(labelBoundaryDir); // add kernel label\r\n\r\n boundaryDirBox = new JComboBox();\r\n boundaryDirBox.setFont(serif12);\r\n boundaryDirBox.setBackground(Color.white);\r\n boundaryDirBox.addItem(\"Outward\");\r\n boundaryDirBox.addItem(\"Inward\");\r\n scalePanel.add(boundaryDirBox);\r\n\r\n //JPanel imageVOIPanel = new JPanel(new GridLayout(1, 1));\r\n //imageVOIPanel.setForeground(Color.black);\r\n //imageVOIPanel.setBorder(buildTitledBorder(\"Evolve Boundary\"));\r\n\r\n //ButtonGroup imageVOIGroup = new ButtonGroup();\r\n //singleSlice = new JRadioButton(\"Single slice\", true);\r\n //singleSlice.setFont(serif12);\r\n //imageVOIGroup.add(singleSlice);\r\n //imageVOIPanel.add(singleSlice);\r\n\r\n removeOriginalCheckBox = new JCheckBox(\"Replace Original Contour\");\r\n removeOriginalCheckBox.setFont(serif12);\r\n removeOriginalCheckBox.setForeground(Color.black);\r\n removeOriginalCheckBox.setSelected(false);\r\n scalePanel.add(removeOriginalCheckBox);\r\n\r\n\r\n JPanel mainPanel = new JPanel(new GridBagLayout());\r\n mainPanel.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));\r\n\r\n GridBagConstraints gbc = new GridBagConstraints();\r\n gbc.gridwidth = 1;\r\n gbc.gridheight = 1;\r\n gbc.anchor = GridBagConstraints.WEST;\r\n gbc.weightx = 1;\r\n gbc.insets = new Insets(3, 3, 3, 3);\r\n gbc.gridx = 0;\r\n gbc.gridy = 0;\r\n gbc.fill = GridBagConstraints.HORIZONTAL;\r\n mainPanel.add(scalePanel, gbc);\r\n //gbc.gridy++;\r\n //mainPanel.add(imageVOIPanel, gbc);\r\n\r\n JPanel buttonPanel = new JPanel();\r\n buildOKButton();\r\n buttonPanel.add(OKButton);\r\n buildCancelButton();\r\n buttonPanel.add(cancelButton);\r\n buildHelpButton();\r\n buttonPanel.add(helpButton);\r\n\r\n getContentPane().add(mainPanel, BorderLayout.CENTER);\r\n getContentPane().add(buttonPanel, BorderLayout.SOUTH);\r\n pack();\r\n setVisible(true);\r\n }", "public Dimension getPreferredSize(){\n\t\treturn new Dimension(1000, 1000);\n\t}", "public abstract Dimension getSize();", "public Dimension getPreferredSize()\n {\n return new Dimension(m_grid.length,m_grid[0].length);\n }", "private void setComponentBounds() {\n float width = this.getWidth();\n float height = this.getHeight();\n\n int fontSize = height / 30 > 16 ? 16 : (int) (height / 30);\n int buttonWidth = width / 4.5 > 200 ? 200 : (int) (width / 4.5);\n int buttonHeight = height / 14.15 > 35 ? 35 : (int) (height / 14.15);\n int horMargin = (int) (width / 38.15);\n int verMargin = (int) (height / 21.2);\n\n registerButton.setBounds(horMargin, verMargin, buttonWidth, buttonHeight);\n registerButton.setFont(new Font(\"Arial\", Font.BOLD, fontSize));\n\n editButton.setBounds(horMargin + buttonWidth + 30, verMargin, buttonWidth, buttonHeight);\n editButton.setFont(new Font(\"Arial\", Font.BOLD, fontSize));\n\n deleteButton.setBounds((int) (width - (horMargin + buttonWidth)), verMargin, buttonWidth, buttonHeight);\n deleteButton.setFont(new Font(\"Arial\", Font.BOLD, fontSize));\n\n partidaScrollPane.setBounds(horMargin, (int) (height / 7), (int) (width - (horMargin * 2)), (int) (height - ((height / 21.2 * 3) + (height / 14.15))));\n partidaTable.setFont(new Font(\"Arial\", Font.PLAIN, fontSize));\n partidaTable.packAll();\n }", "public void ResizeActionPerformed(ActionEvent evt){\r\n int w = Integer.parseInt(imageWidth.getText());\r\n int h = Integer.parseInt(imageHeight.getText());\r\n drawingPanel.setImageSize(w, h);\r\n }", "@Override\n\tpublic void resize() {\n\t\t\n\t}", "public Dimension getPreferredSize()\n {\n return new Dimension(200, 200);\n }", "public void adjustSize() {\r\n /*\r\n * Calculate target width: max of header, adjusted window, content\r\n * \r\n * TODO: restrict to available desktop space\r\n */\r\n int targetWidth = TOTAL_BORDER_THICKNESS\r\n + MathUtils.maxInt(headerBar.getOffsetWidth(),\r\n contentWidget.getOffsetWidth(), getWidth()\r\n - TOTAL_BORDER_THICKNESS);\r\n /*\r\n * Calculate target height: max of adjusted window, content\r\n * \r\n * TODO: restrict to available desktop space\r\n */\r\n int targetHeight = TOTAL_BORDER_THICKNESS\r\n + MathUtils.maxInt(contentWidget.getOffsetHeight(), getHeight()\r\n - TOTAL_BORDER_THICKNESS - headerBar.getOffsetHeight());\r\n\r\n setPixelSize(targetWidth, targetHeight);\r\n }", "@Override\r\n protected boolean isResizable() {\r\n return true;\r\n }", "@Override\r\n protected boolean isResizable() {\r\n return true;\r\n }", "void setSize(int width, int height)\r\n\t{\r\n\t\tthis.controls.clear();\r\n\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t\t\r\n\t\tthis.innerHeight = this.height - TOP - BOTTOM;\r\n\t\tthis.innerWidth = this.width - (MARGIN * 2) - 6;\r\n\t}", "@Override\n\tpublic void init() \n\t{\n\t\tthis.m_view.setCenter(new Vector2f(1024f,1024f));\n\t\t// initilisation de m_centerSought\n\t\tthis.m_centerSought = this.m_view.getCenter();\n\t\t// zoom\n\t\tthis.m_zoom = this.m_zoomSought = 1f;\t\t\n\t\t// size\n\t\tthis.m_sizeNormal = m_size = m_sizeSought = m_sizeBackup = m_sizeInit = this.getView().getSize();\n\t\tthis.m_sizeDown = Vector2f.mul(this.m_sizeNormal, 0.8f);\n\t\tthis.m_sizeUp = Vector2f.mul(m_sizeNormal, 1.2f);\n\t\t\n\t\t// cadre\n\t\tm_cadre = new IntRect(m_spaceScrolling,m_spaceScrolling,(int)this.getView().getSize().x - m_spaceScrolling * 2,(int) this.getView().getSize().y - m_spaceScrolling * 2);\n\t\t\n\t}", "public void updateSize() {\n\t\tint mpVis = (csub.isMorePanelVisible()) ? 1 : 0;\n\t\tint csubAwake = (csub.isAwake()) ? 1 : 0;\n\t\t\n\t\tint height = csubAwake * (CSub.INTERFACE_PANEL_HEIGHT + mpVis * CSub.MORE_PANEL_HEIGHT);\n\t\t\n\t\tsetPreferredSize(new Dimension(csub.getWidth() - 2 * CSub.RESIZE_BORDER_WIDTH, height));\n\t\tsetSize(new Dimension(csub.getWidth() - 2 * CSub.RESIZE_BORDER_WIDTH, height));\n\t}", "private void determineCanvasSize() {\n boolean changed = transformManager.determineCanvasSize();\n if ( changed ) {\n changeListenerProxy.canvasSizeChanged( new ApparatusPanel2.ChangeEvent( ApparatusPanel2.this ) );\n paint();\n }\n }", "@Override\n protected boolean isResizable() {\n return true;\n\n }" ]
[ "0.7589982", "0.70565766", "0.68659675", "0.68470824", "0.68249655", "0.6777504", "0.6746695", "0.6742843", "0.6713707", "0.67070514", "0.6701833", "0.66845685", "0.66829234", "0.668275", "0.6669751", "0.66592246", "0.6629491", "0.66195893", "0.6614762", "0.6611274", "0.6606449", "0.6604249", "0.65924114", "0.65831023", "0.6581725", "0.6561206", "0.65319", "0.65247506", "0.6501872", "0.649856", "0.647018", "0.64636415", "0.64633036", "0.6462286", "0.6462286", "0.6457679", "0.645691", "0.6445537", "0.64401126", "0.6438825", "0.6427206", "0.64261687", "0.6401464", "0.6393536", "0.63878596", "0.6383671", "0.6382932", "0.6371007", "0.63700444", "0.6367506", "0.6359391", "0.63415796", "0.63382185", "0.6336463", "0.6326009", "0.6307965", "0.63001615", "0.62826806", "0.628062", "0.6279432", "0.6274566", "0.62671137", "0.6266429", "0.6266389", "0.6266389", "0.62610084", "0.6260696", "0.6256851", "0.62471735", "0.6245307", "0.6241145", "0.62403315", "0.6233336", "0.6230496", "0.62276286", "0.6216418", "0.62148637", "0.6210137", "0.62080026", "0.62039083", "0.6198135", "0.6195558", "0.6193175", "0.61907494", "0.618847", "0.61884344", "0.6187089", "0.61851823", "0.6181693", "0.6181627", "0.61815625", "0.6172752", "0.61671925", "0.6162064", "0.6154956", "0.6154956", "0.615297", "0.6149085", "0.61447954", "0.6144398", "0.6128336" ]
0.0
-1
due to lack of gui during tests, inside isHyperStack() isDisplayedHyperStack() always false openAs false, nDimensions <= 3
@Test public void testIsHyperStack() { ip = new ImagePlus("ack phooey", (Image)null); st = new ImageStack(1,4); st.addSlice("ouch",new byte[] {1,2,3,4}); st.addSlice("yowee",new byte[] {1,2,3,4}); st.addSlice("zounds",new byte[] {1,2,3,4}); ip.setStack("wonder twins activate", st); ip.setDimensions(1,1,3); ip.setOpenAsHyperStack(false); assertFalse(ip.isHyperStack()); // openAs false, nDimensions > 3 ip = new ImagePlus("ack phooey", (Image)null); st = new ImageStack(1,4); st.addSlice("ouch",new byte[] {1,2,3,4}); st.addSlice("yowee",new byte[] {1,2,3,4}); st.addSlice("zounds",new byte[] {1,2,3,4}); st.addSlice("oof",new byte[] {1,2,3,4}); ip.setStack("wonder twins activate", st); ip.setDimensions(1,1,4); ip.setOpenAsHyperStack(false); assertFalse(ip.isHyperStack()); // openAs true, nDimensions <= 3 ip = new ImagePlus("ack phooey", (Image)null); st = new ImageStack(1,4); st.addSlice("ouch",new byte[] {1,2,3,4}); st.addSlice("yowee",new byte[] {1,2,3,4}); st.addSlice("zounds",new byte[] {1,2,3,4}); ip.setStack("wonder twins activate", st); ip.setDimensions(1,1,3); ip.setOpenAsHyperStack(true); assertFalse(ip.isHyperStack()); // openAs true, nDimensions > 3 ip = new ImagePlus("ack phooey", (Image)null); st = new ImageStack(1,4); st.addSlice("ouch",new byte[] {1,2,3,4}); st.addSlice("yowee",new byte[] {1,2,3,4}); st.addSlice("zounds",new byte[] {1,2,3,4}); st.addSlice("oof",new byte[] {1,2,3,4}); ip.setStack("wonder twins activate", st); ip.setDimensions(1,2,2); ip.setOpenAsHyperStack(true); assertTrue(ip.isHyperStack()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testIsDisplayedHyperStack() {\n\t\tip = new ImagePlus();\n\t\tassertFalse(ip.isDisplayedHyperStack());\n\t}", "boolean hasGridLayout();", "boolean isDisplayed();", "public boolean isDisplayed();", "boolean hasGrid();", "boolean hasMosaicLayout();", "boolean isContentDisplayed();", "public abstract boolean isInWidgetTree();", "@Test\n\tpublic void testIsVisible() {\n\t\tip = new ImagePlus();\n\t\tassertFalse(ip.isVisible());\n\t}", "public boolean isInMultiPane();", "private boolean isInTwoPaneMode() {\n\t\t\n Log.i(TAG, \"DailySelfieMainActivity.isInTwoPaneMode entered\");\n\n\t\treturn findViewById(R.id.selfie_list) != null;\n\t}", "protected boolean openHelp() {\r\n\t\tboolean rc = false;\r\n\t\tMPart helpPart = getHelpPart();\r\n\t\tif (helpPart != null) {\r\n\t\t\trc = partService.isPartVisible(helpPart);\r\n\t\t\t\r\n\t\t\t// if part was not visible before: clear its history\r\n\t\t\tHelpPart obj = getHelpPartObject();\r\n\t\t\tif (obj != null) {\r\n\t\t\t\tobj.clearHistory();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// hide the part\r\n\t\t\tpartService.hidePart(helpPart);\r\n\r\n\t\t\t// required if initial not visible\r\n\t\t\thelpPart.setVisible(true);\r\n\r\n\t\t\t// show the part\r\n\t\t\tpartService.showPart(helpPart, PartState.VISIBLE); \r\n\t\t\t\r\n\t\t\t// Ensure the container visibility\r\n\t\t\tMElementContainer<?> container = helpPart.getParent();\r\n\t\t\trc &= container.isVisible() && container.isOnTop();\r\n\t\t\tcontainer.setVisible(false);\r\n\t\t\tcontainer.setVisible(true);\r\n\t\t\tcontainer.setOnTop(true);\r\n\t\t}\r\n\t\treturn rc;\r\n\t}", "boolean hasDimension();", "public boolean isHBarShowing() { return getHBar().getParent()!=null; }", "public boolean isExpandable();", "boolean isImageDisplayed();", "public boolean isExpanded();", "boolean isWasLayouting();", "public boolean isStackVisible(int windowingMode) {\n TaskStack stack = getTopStackInWindowingMode(windowingMode);\n return stack != null && stack.isVisible();\n }", "public boolean isDockable() {\n return true;\r\n }", "boolean hasExpandedLandingPageView();", "public boolean isDisplayed() {\n return graphConfig.isDisplayed();\n }", "protected boolean isOnSameScreenAsChildren() {\n return true;\n }", "private void isTwoPane() {\n FrameLayout fragmentItemDetail = (FrameLayout) findViewById(R.id.DetailFragment);\n if (fragmentItemDetail != null) {\n isTwoPane = true;\n }\n }", "boolean isFull(Stack stack){\n\t\tif(stack.getStackSize() >= 100) return true;\r\n\t\telse return false;\t\r\n\t}", "boolean hasGroupPlacementView();", "boolean isVisible();", "boolean isVisible();", "public boolean isExpanded(){\n\t\treturn syncExec(new BoolResult() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Boolean run() {\n\t\t\t\treturn widget.isExpanded();\n\t\t\t}\n\t\t});\n\t}", "@Test(priority = 7)\n public void rightSectionIsDisplayedTest() {\n assertTrue(driver.findElement(By.name(\"log-sidebar\")).isDisplayed());\n }", "private void showStacksVisualization() {\n\t\tsetVisualization(new StackVisualization(rootComposite, controller, checklist));\n\t}", "public boolean hasSplitScreenPrimaryStack() {\n return getSplitScreenPrimaryStack() != null;\n }", "boolean reachedEdge() {\n\t\treturn this.x > parent.width - 30;// screen width including the size of\n\t\t\t\t\t\t\t\t\t\t\t// the image\n\t}", "public boolean hasLinkPanel(ItemStack page);", "public boolean isOpened(){\n return chestProgressLevel==1;\n }", "@Override\n public boolean isOpen(){\n boolean statement = isElementPresent(czDppButon); //TODO - zmena na pozdejsi stranku\n if(!statement){ DriverSettings.takeScreenshot(); }\n return statement;\n }", "boolean hasManagedPlacementView();", "public void verifyTopLevelNavigationIsDisplayed() {\n\t\tmoveToElement(topLevelNavigator);\n\t\tAssert.assertTrue(isElementPresent(topLevelNavigator));\n\t\treportInfo();\t\t\n\t}", "public boolean isPushedByFluid() {\n/* 1974 */ return !this.abilities.flying;\n/* */ }", "public void checkChannel1(){\n\t\ttools.findAndReport(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.support.v4.view.ViewPager/android.view.View/android.widget.RelativeLayout/android.support.v7.widget.RecyclerView/android.widget.LinearLayout[1]/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.RelativeLayout\", \"No se encuentra el primer en vivo\");\r\n\t}", "boolean isDisplay();", "boolean isDisplay();", "public void onStackWindowingModeChanged(TaskStack stack) {\n removeStackReferenceIfNeeded(stack);\n addStackReferenceIfNeeded(stack);\n if (stack == this.mPinnedStack && getTopStack() != stack) {\n positionChildAt(Integer.MAX_VALUE, stack, false);\n }\n }", "@Override\n public boolean isShown() {\n return super.isShown();\n }", "public void verifyNewTabDorMessageBoardsOpened() {\n Assert.assertTrue(boardButton.isDisplayed());\t\t\n\t}", "@Override\n\t\t\tpublic Boolean apply(WebDriver webDriver) {\n\t\t\t\treturn webDriver.getWindowHandles().size() == count;\n\t\t\t}", "public boolean isDisplayed() \n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}", "private boolean m87319a(View view) {\n this.f61231x.set(0, 0, view.getWidth(), view.getHeight());\n offsetDescendantRectToMyCoords(view, this.f61231x);\n if (view.getParent() != this) {\n ViewParent parent = view.getParent();\n while (parent != this) {\n view = (View) parent;\n parent = view.getParent();\n }\n }\n int height = getHeight() - getPaddingBottom();\n int childCount = getChildCount();\n for (int indexOfChild = indexOfChild(view) + 1; indexOfChild < childCount; indexOfChild++) {\n View childAt = getChildAt(indexOfChild);\n if (childAt.getVisibility() != 8) {\n height = Math.min(height, childAt.getTop());\n }\n }\n if (this.f61231x.bottom > height) {\n return true;\n }\n return false;\n }", "public boolean isShowGrid()\n {\n return showGrid;\n }", "boolean hasDetailPlacementView();", "@Test\n\tpublic void testGetNDimensions() {\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\",st);\n\t\tip.setDimensions(1,1,1);\n\t\tassertEquals(2,ip.getNDimensions());\n\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(3,ip.getNDimensions());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(3,ip.getNDimensions());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(3,ip.getNDimensions());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(4,ip.getNDimensions());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(5,ip.getNDimensions());\n\t}", "@Test\n public void neighbourDetailOpen() {\n ViewInteraction recyclerView = onView(\n allOf(withId(R.id.list_neighbours),isDisplayed()));\n recyclerView.perform(actionOnItemAtPosition(0, click()));\n }", "public boolean isFullyExplored();", "public boolean isVisible();", "public boolean isVisible();", "public boolean isVisible();", "@Test\n\tpublic void testGetNFrames() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(8,ip.getNFrames());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(4,ip.getNFrames());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(2,ip.getNFrames());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(4,ip.getNFrames());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(2,ip.getNFrames());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNFrames());\n\t}", "boolean isFeedExpanded();", "boolean hasRootFrame();", "@Test(priority = 8)\n public void leftSectionIsDisplayedTest() {\n assertTrue(driver.findElement(By.className(\"sidebar-menu\")).isDisplayed());\n }", "public boolean getIsVisible();", "boolean isCloseButtonDisplayed();", "@Test\n\tpublic void testGetNSlices() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNSlices());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(8,ip.getNSlices());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(1,ip.getNSlices());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(2,ip.getNSlices());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(4,ip.getNSlices());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(4,ip.getNSlices());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(2,ip.getNSlices());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNSlices());\n\t}", "public abstract boolean isVisible();", "public abstract boolean isVisible();", "private void insertNewInternalFrame(JInternalFrame treeDisplay) {\n jInternalFrameTree = treeDisplay;\n jLayeredPane1.add(jInternalFrameTree, JLayeredPane.PALETTE_LAYER);\n jInternalFrameTree.setMaximizable(true);\n jInternalFrameTree.setDefaultCloseOperation(JInternalFrame.DISPOSE_ON_CLOSE);\n jInternalFrameTree.setIconifiable(true);\n jInternalFrameTree.setClosable(true);\n jInternalFrameTree.setVisible(true);\n jInternalFrameTree.addMouseListener(new MouseAdapter(){\n public void mouseClicked(MouseEvent event){\n doMouseClicked(event);\n }\n\n private void doMouseClicked(MouseEvent event) {\n if(event.getButton() == MouseEvent.BUTTON3 && event.getComponent().getParent().getParent() instanceof JSplitPane){\n jInternalFrameTree = ((JInternalFrame)event.getComponent());\n JPopupMenu jPopupMenu = new JPopupMenu();\n JMenuItem jMenuItem = new JMenuItem(\"Window Preview\");\n jPopupMenu.add(jMenuItem);\n jMenuItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n setNewWindowEnabled(false);\n }\n\n private void setNewWindowEnabled(boolean b) {\n JFrame frame = new JFrame();\n JMenuBar jMenuBar = new JMenuBar();\n JMenu jMenu = new JMenu(\"Restore size\");\n jMenu.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent event){\n jMenuSelected(event);\n }\n\n private void jMenuSelected(MouseEvent event) {\n if(event.getComponent() instanceof JMenu){\n Container container = event.getComponent().getParent().getParent().getParent();\n jInternalFrameTree = new JInternalFrame(((JFrame)event.getComponent().getParent().getParent().getParent().getParent()).getTitle());\n jInternalFrameTree.setToolTipText(\"teste\");\n //jInternalFrameTree.add(null);\n insertNewInternalFrame(jInternalFrameTree);\n }\n }\n });\n jMenuBar.add(jMenu);\n frame.setJMenuBar(jMenuBar);\n frame.setTitle(jInternalFrameTree.getTitle());\n frame.add(jInternalFrameTree.getContentPane());\n try {\n jInternalFrameTree.setClosed(true);\n } catch (PropertyVetoException ex) {\n Logger.getLogger(Tool.class.getName()).log(Level.SEVERE, null, ex);\n }\n //jInternalFrameTree.dispose();\n //jInternalFrameTree = null;\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n frame.setSize(800, 800);\n frame.setVisible(true);\n }\n });\n jPopupMenu.show(event.getComponent(), event.getX(), event.getY());\n }\n }\n });\n }", "boolean hasParentalStatusView();", "public void verifyQuickNavigatorIsDisplayed() {\n\t\tmoveToElement(burgerButton);\n\t\tAssert.assertTrue(isElementPresent(burgerButton));\n\t\treportInfo();\n\t\t}", "public void testWindowSystem() {\n final ProjectsTabOperator projectsOper = ProjectsTabOperator.invoke();\n final FavoritesOperator favoritesOper = FavoritesOperator.invoke();\n\n // test attaching\n favoritesOper.attachTo(new OutputOperator(), AttachWindowAction.AS_LAST_TAB);\n favoritesOper.attachTo(projectsOper, AttachWindowAction.TOP);\n favoritesOper.attachTo(new OutputOperator(), AttachWindowAction.RIGHT);\n favoritesOper.attachTo(projectsOper, AttachWindowAction.AS_LAST_TAB);\n // wait until TopComponent is in new location and is showing\n final TopComponent projectsTc = (TopComponent) projectsOper.getSource();\n final TopComponent favoritesTc = (TopComponent) favoritesOper.getSource();\n try {\n new Waiter(new Waitable() {\n\n @Override\n public Object actionProduced(Object tc) {\n // run in dispatch thread\n Mode mode1 = (Mode) projectsOper.getQueueTool().invokeSmoothly(new QueueTool.QueueAction(\"findMode\") { // NOI18N\n\n @Override\n public Object launch() {\n return WindowManager.getDefault().findMode(projectsTc);\n }\n });\n Mode mode2 = (Mode) favoritesOper.getQueueTool().invokeSmoothly(new QueueTool.QueueAction(\"findMode\") { // NOI18N\n\n @Override\n public Object launch() {\n return WindowManager.getDefault().findMode(favoritesTc);\n }\n });\n return (mode1 == mode2 && favoritesTc.isShowing()) ? Boolean.TRUE : null;\n }\n\n @Override\n public String getDescription() {\n return (\"Favorites TopComponent is next to Projects TopComponent.\"); // NOI18N\n }\n }).waitAction(null);\n } catch (InterruptedException e) {\n throw new JemmyException(\"Interrupted.\", e); // NOI18N\n }\n favoritesOper.close();\n\n // test maximize/restore\n // open sample file in Editor\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n JavaNode sampleClass2Node = new JavaNode(sample1Node, SAMPLE2_FILE_NAME);\n sampleClass2Node.open();\n // find open file in editor\n EditorOperator eo = new EditorOperator(SAMPLE2_FILE_NAME);\n eo.maximize();\n eo.restore();\n EditorOperator.closeDiscardAll();\n }", "public boolean isGroupListSideBarPresent() {\r\n\t\treturn isElementPresent(groupListSideBar, SHORTWAIT);\r\n\t}", "protected final boolean isShowing() {\n synchronized (getPeerTreeLock()) {\n if (isVisible()) {\n final LWContainerPeer<?, ?> container = getContainerPeer();\n return (container == null) || container.isShowing();\n }\n }\n return false;\n }", "public boolean getMaximizeVisible() {\n checkWidget();\n return showMax;\n }", "@Override\n public boolean isCorrectMachinePart(ItemStack itemStack) {\n return true;\n }", "public void setIsMultiPane(boolean isMultiPane);", "@Test\n public void testIsVisible_1()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n\n boolean result = fixture.isVisible();\n\n assertEquals(true, result);\n }", "@Override\r\n\tpublic boolean isFull() {\r\n\t\tif(topIndex == stack.length -1) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\t\r\n\t}", "private boolean canRemoveTiles() {\n return this.mCurrentSpecs.size() > 8;\n }", "public boolean docked() {\n return inDock;\n }", "public boolean isModelChartIsVisible();", "public boolean myHealthVisible()\n\t{\n\t\tIntBitmap lifeBar = IntBitmap.getInstance(takeScreenshot(ScreenRegion.LIFE_RECT));\n\t\tRatioFilter.maintainRatio(lifeBar, FilterType.LIFE);\n\t\tBinaryImage bin = lifeBar.toGreyscale().doubleCutoff(30);\n\t\treturn bin.countWhite() > 1000;\n\t\t//return imageMatches(IntBitmap.getInstance(takeScreenshot(ScreenRegion.FIND_HEALTH_RECT)), ImageLibrary.MY_HEALTH_ICON.get());\n\t}", "@Test\n\tpublic void testSetDimensions() {\n\n\t\t// empty stack\n\t\tip = new ImagePlus();\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(1,ip.getNSlices());\n\t\tassertEquals(ip.getStackSize(),ip.getNFrames());\n\n\t\t// stack but dimensions don't match\n\t\tip = new ImagePlus(\"Kerbam\",(Image)null);\n\t\tst = new ImageStack(2,2);\n\t\tst.addSlice(\"Oranges\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Apples\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Pears\", new byte[] {1,2,3,4});\n\t\tip.setStack(\"Kaboom\",st);\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(ip.getStackSize(),ip.getNSlices());\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// stack with matching dimensions\n\t\tip = new ImagePlus(\"Kerbam\",(Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"Oranges\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Apples\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Pears\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Quinces\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Kiwis\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Bananas\", new byte[] {1,2,3,4});\n\t\tip.setStack(\"Kaboom\",st);\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(2,ip.getNSlices());\n\t\tassertEquals(3,ip.getNFrames());\n\t}", "public boolean getModelChartIsVisible();", "@Test\n public void testHasToBeShownMaxNumberReached() {\n NotificationConfiguration notificationConfiguration = new NotificationConfiguration();\n notificationConfiguration.setExecutionPolicy(ExecutionPolicy.ALWAYS);\n notificationConfiguration.setNumberOfTotalViews(5);\n AlertDialogNotification notification = new AlertDialogNotification(notificationConfiguration);\n PersistentNotification persistentNotification = new PersistentNotification(notification);\n persistentNotification.setShownCounter(5);\n\n boolean hasToBeShown = persistentNotification.hasToBeShown(1);\n assertFalse(hasToBeShown);\n }", "public boolean IsSane() // not thread safe !! - for debug \n { \n \tdebugSane = true;\n \tverifyRBTreeConditions(rootHolder.right);\n \treturn debugSane; \n }", "public java.lang.Boolean getIsVisible();", "private synchronized void monitorWidgetVisibility(GridPane gridPane, StackPane stackPane)\n {\n boolean showing = false;\n List<Node> widgets = stackPane.getChildren();\n for (Node widget : widgets)\n {\n if (widget.isVisible())\n {\n showing = widget.isVisible();\n }\n }\n\n gridPane.setVisible(showing);\n }", "boolean wasShownBefore(MultiViewElement element) {\n return shownElements.contains(element);\n }", "public abstract boolean fragmentStackUnderFlow();", "public boolean errorOutOfOrderIsDisplayed() {\n return isDisplayed(errorDisplayedLabel);\n }", "@Override\n public boolean isVisible()\n {\n return true;\n }", "boolean hasWidth();", "boolean hasWidth();", "boolean hasWidth();", "boolean isShowLabelBackdrop();", "public boolean getMinimizeVisible() {\n checkWidget();\n return showMin;\n }", "public void isImagePresent() {\r\n\t\t\t\r\n\t\t}", "@Test\n\tpublic void testGetNChannels() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNChannels());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(8,ip.getNChannels());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(2,ip.getNChannels());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(2,ip.getNChannels());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(4,ip.getNChannels());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(4,ip.getNChannels());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNChannels());\n\t}", "@Test\n public void test11() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n AxisLocation axisLocation0 = categoryPlot0.getRangeAxisLocation();\n CategoryItemRenderer categoryItemRenderer0 = categoryPlot0.getRenderer(305);\n boolean boolean0 = categoryPlot0.isRangeGridlinesVisible();\n Button button0 = null;\n try {\n button0 = new Button((String) null);\n } catch(HeadlessException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"java.awt.GraphicsEnvironment\", e);\n }\n }", "private boolean hasPinnedStack() {\n return this.mTaskStackContainers.getPinnedStack() != null;\n }", "@Test\n public void testIsVisible_2()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(false);\n\n boolean result = fixture.isVisible();\n\n assertEquals(false, result);\n }" ]
[ "0.6958888", "0.63634306", "0.5902301", "0.5884496", "0.58794695", "0.5833553", "0.58212674", "0.5818658", "0.57994485", "0.5793086", "0.57394004", "0.5706083", "0.56585723", "0.56486547", "0.56439763", "0.5615767", "0.56064874", "0.5596077", "0.557993", "0.5561925", "0.5560407", "0.5557988", "0.55492485", "0.5531539", "0.5504022", "0.55023813", "0.5495693", "0.5495693", "0.5491799", "0.547028", "0.5450212", "0.5423922", "0.54208744", "0.54152775", "0.5393338", "0.539119", "0.5389014", "0.5378042", "0.5372984", "0.5359826", "0.533368", "0.533368", "0.532758", "0.5324217", "0.53236073", "0.5319456", "0.5315605", "0.53147435", "0.53125936", "0.52981377", "0.5295296", "0.5294235", "0.5277755", "0.5275094", "0.5275094", "0.5275094", "0.52618796", "0.5260102", "0.52525026", "0.52495307", "0.52418447", "0.5240882", "0.52390844", "0.52351105", "0.52351105", "0.52332443", "0.5232061", "0.52151185", "0.5214341", "0.5211213", "0.5207409", "0.51894337", "0.5185617", "0.51706684", "0.51692736", "0.51638585", "0.5163823", "0.51629335", "0.51616216", "0.516101", "0.51604754", "0.5155937", "0.51418006", "0.51367736", "0.51328343", "0.51315117", "0.5128192", "0.51249623", "0.51179206", "0.51175606", "0.5114545", "0.5114545", "0.5114545", "0.5113233", "0.5106109", "0.51043165", "0.51019174", "0.5101797", "0.5101755", "0.50960994" ]
0.7091425
0
all dims <= 1
@Test public void testGetNDimensions() { ip = new ImagePlus("Agent007", (Image)null); st = new ImageStack(2,3); st.addSlice("suave",new byte[] {1,2,3,4,5,6}); ip.setStack("MoneyPenny",st); ip.setDimensions(1,1,1); assertEquals(2,ip.getNDimensions()); ip = new ImagePlus("Agent007", (Image)null); st = new ImageStack(2,3); st.addSlice("suave",new byte[] {1,2,3,4,5,6}); st.addSlice("debonair",new byte[] {1,2,3,4,5,6}); st.addSlice("sophisticated",new byte[] {1,2,3,4,5,6}); st.addSlice("handsome",new byte[] {1,2,3,4,5,6}); st.addSlice("humorous",new byte[] {1,2,3,4,5,6}); st.addSlice("aloof",new byte[] {1,2,3,4,5,6}); st.addSlice("calm",new byte[] {1,2,3,4,5,6}); st.addSlice("composed",new byte[] {1,2,3,4,5,6}); ip.setStack("MoneyPenny", st); // one dim > 1 ip.setDimensions(1,1,8); assertEquals(3,ip.getNDimensions()); ip.setDimensions(1,8,1); assertEquals(3,ip.getNDimensions()); ip.setDimensions(8,1,1); assertEquals(3,ip.getNDimensions()); // two dims > 1 ip.setDimensions(1,2,4); assertEquals(4,ip.getNDimensions()); ip.setDimensions(1,4,2); assertEquals(4,ip.getNDimensions()); ip.setDimensions(2,1,4); assertEquals(4,ip.getNDimensions()); ip.setDimensions(2,4,1); assertEquals(4,ip.getNDimensions()); ip.setDimensions(4,1,2); assertEquals(4,ip.getNDimensions()); ip.setDimensions(4,2,1); assertEquals(4,ip.getNDimensions()); // three dims > 1 ip.setDimensions(2,2,2); assertEquals(5,ip.getNDimensions()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int numberOfDimensions();", "public static int numDimensions_data() {\n return 1;\n }", "@Override\n\tboolean computeDimensions() {\n\t\treturn true;\n\t}", "int dim(){\n\t\treturn dimx*dimy;\n\t}", "int dimensionality();", "@Override\n\tpublic int size() {\n\t\treturn this.nDims;\n\t}", "int getNumSampleDimensions();", "@Override\n\tpublic void setDimensions() {\n\t\t\n\t}", "public int geomDim();", "public static int[] dims(int... dim)\n {\n return dim;\n }", "int dim() {\r\n\t\treturn dimt * dimx * dimy;\r\n\t}", "public static long[] dims(long... dim)\n {\n return dim;\n }", "public void visit(ArrayDimsAndInits n) {\n n.f0.accept(this);\n }", "boolean hasDimension();", "boolean equalPixelArrayDim(List<List<Pixel>> pixelArray);", "@Override\n\tvoid findArea(double dim1) {\n\t\t\n\t}", "private int adequateDimensions(int cols, int rows) {\r\n\r\n if ((cols >= MINALG) && (cols <= MAXALG)) {\r\n if ((rows >= MINDATA) && (rows <= MAXDATA)) {\r\n return 0;\r\n } else {\r\n return 1;\r\n }\r\n } else {\r\n return 2;\r\n }\r\n\r\n }", "private boolean isNxNShape() {\n return this.matrix.size() == this.n &&\n this.matrix.stream()\n .allMatch(row -> row.size() == this.n);\n }", "int getDimensionsCount();", "public int getNoDimensions() {\n return noDimensions;\n }", "public abstract Collection<T> getFirstDimension();", "private static double[] calculatePositiveDimensions(double[] dimensions) {\r\n\r\n\t\tif (dimensions[2] < 0) {\r\n\t\t\tdimensions[0] += dimensions[2];\r\n\t\t\tdimensions[2] = -dimensions[2];\r\n\t\t}\r\n\t\tif (dimensions[3] < 0) {\r\n\t\t\tdimensions[1] += dimensions[3];\r\n\t\t\tdimensions[3] = -dimensions[3];\r\n\t\t}\r\n\r\n\t\treturn dimensions;\r\n\r\n\t}", "public boolean percolates()\r\n { return uf.find(0) == uf.find(dimension*dimension + 1); }", "@Test\n @DependsOnMethod(\"testConstantDimension\")\n public void testDimensionReduction() throws TransformException {\n isInverseTransformSupported = false;\n create(3, 0, 1);\n assertIsNotIdentity(transform);\n\n final double[] source = generateRandomCoordinates();\n final double[] target = new double[source.length * 2/3];\n for (int i=0,j=0; i<source.length; i++) {\n target[j++] = source[i++];\n target[j++] = source[i++];\n // Skip one i (in the for loop).\n }\n verifyTransform(source, target);\n\n makeProjectiveTransform();\n verifyTransform(source, target);\n }", "@Override\n\tpublic int getDimension() {\n\t\treturn 1;\n\t}", "@Override\n\tpublic int getDimension() {\n\t\treturn 1;\n\t}", "int[] shape(){\n int[] dimensions = new int[2];\n dimensions[0] = this.rows;\n dimensions[1] = this.cols;\n return dimensions;\n }", "boolean sameDimensions(List<Layer> layers);", "@Override\n public boolean is2D()\n {\n return false;\n }", "public int getDimX ()\n {\n return m_dim_x;\n }", "public short[][] getIntensity(){ return intensity; }", "private boolean isEmpty()\n {\n return dimensions.isEmpty();\n }", "Dimension dimension();", "@Override\n\tpublic int getContentNbDims() {\n\t\treturn 0;\n\t}", "public long[] dimensions()\n\t{\n\t\tint dimcount=multimemory.dims.length;\n\t\tlong[] o=new long[dimcount];\n\t\tfor (int i=0; i<o.length; i++)\n\t\t{\n\t\t\to[i]=multimemory.dims[i];\n\t\t\t\n\t\t}\n\t\t\n\t\treturn o;\n\t}", "void colFull(int col);", "private int xyTo1D(int row, int col)\n {\n validate(row, col);\n return (row-1) * gridSize + col-1;\n }", "int getDimX(){\n\t\treturn dimx;\n\t}", "public final int dimension() { return _N; }", "public int[] getDims() {\n int[] dimsTuple = { this.xDimension, this.yDimension };\n return dimsTuple;\n }", "public static long[] ldims(long... dim)\n {\n return dim;\n }", "public void dim(int value) {\n\n\t}", "int sizeOfFeatureArray();", "int sizeOfFeatureArray();", "public abstract int getDimension();", "Dimension getDimensions();", "private int xyTo1D(final int row, final int col) {\n return (row - 1) * size + (col - 1);\n }", "private int getSumD1(int[][] a) {\n int sum = 0;\n for (int j = 0; j < a.length; j++) {\n sum += a[j][j];\n }\n return sum;\n }", "public long dimCount()\n\t{\n\t\treturn (long)multimemory.dims.length;\n\t}", "protected abstract void fromSpace( float[] abc );", "public native short[][] __short2dArrayMethod( long __swiftObject, short[][] arg );", "@Override\n public int getNumCols(){ return WIDTH; }", "int sizeOfClassificationArray();", "void verifyNumberOfDimensions(int ignoreMeNumDimensions) {\n // do nothing on purpose\n }", "public int getDimension() {\n return 0;\n }", "public int[] getDimensions(){\n int[] m={columnas*dimensionCasilla,filas*dimensionCasilla};\n return m;\n }", "public int size() {\n\treturn slices*rows*columns;\n}", "private static void demoMultiDArrays() {\r\n\t\tint[][] nums = new int[3][5];\r\n\t\tnums[0][2] = 10;\r\n//\t\tcompact, hard to read version: **note: slower. its worse in every way.**\r\n//\t\tnums[nums.length-1][nums[nums.length-1].length-1] = 14;\r\n\t\tint lastRow = nums.length-1;\r\n\t\tint lastCol = nums[lastRow].length-1;\r\n\t\tnums[lastRow][lastCol] = 14;\r\n//\t\tcompact, hard to read version: **note: slower. its worse in every way.**\r\n//\t\tnums[0][0] = nums[0][2] + nums[nums.length-1][nums[nums.length-1].length-1];\r\n\t\tnums[0][0] = nums[0][2]+nums[lastRow][lastCol];\r\n\t\t\r\n\t\t//return length of the cols in nums\r\n\t\t//return the length of the rows in nums\r\n\t\tfor (int[] rowData : nums) {\r\n\t\t\tSystem.out.print(\"[\");\r\n\t\t\tfor (int colData : rowData) {\r\n\t\t\t\tSystem.out.print(colData);\r\n\t\t\t\tSystem.out.print(\",\\t\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"], \");\r\n\t\t}\r\n\t\t\r\n\t}", "private double[][] emptyW() {\n double[][] temp = new double[inputLayerSize][numNodeFeatures];\n for (int i = 0; i < inputLayerSize; i++) {\n temp[i] = new double[numNodeFeatures];\n }\n return temp;\n }", "public boolean isSetDimensns()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DIMENSNS$6) != 0;\n }\n }", "private int xyTo1D(int r, int c) {\n\t\treturn r * N + c;\n\t}", "public java.util.List<Dimension> getDimensionsAll();", "char[][][] getTypeParameterBounds();", "public static int numDimensions_infos_noise() {\n return 1;\n }", "public int[] isScale(Region r) {\n\t\tint[] res=new int[2];\n\t\tint t=0;\n\t\tif (nearlyEquals(sizeX,r.sizeX) && nearlyEquals(sizeY,r.sizeY))\n\t\t\treturn res;\n\t\tif (!nearlyEquals(this.sizeX, r.sizeX) && !nearlyEquals(this.sizeY, r.sizeY)) {\n\t\t\tdouble factor=(double)r.sizeX/sizeX;\n\t\t\tif (Math.abs((double)r.sizeY/sizeY-factor)>0.2)\n\t\t\t\treturn res;\n\t\t\tfor (int i=0;i<sizeX/2;i++) {\n\t\t\t\tfor (int j=0;j<sizeY/2;j++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (info[i][j]!=r.get((int)(r.sizeX/2-Math.abs(sizeX/2-i)*factor), (int)(r.sizeY/2-Math.abs(sizeY/2-j)*factor))) \n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t\tif (info[sizeX-1-i][j]!=r.get((int)(r.sizeX/2+Math.abs(sizeX/2-i)*factor), (int)(r.sizeY/2-Math.abs(sizeY/2-j)*factor))) \n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t\tif (info[i][sizeY-1-j]!=r.get((int)(r.sizeX/2-Math.abs(sizeX/2-i)*factor), (int)(r.sizeY/2+Math.abs(sizeY/2-j)*factor))) \n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t\tif (info[sizeX-1-i][sizeY-1-j]!=r.get((int)(r.sizeX/2+Math.abs(sizeX/2-i)*factor), (int)(r.sizeY/2+Math.abs(sizeY/2-j)*factor))) \n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (t<square/5) {\n\t\t\t\tres[0]=3;\n\t\t\t\tres[1]=(r.sizeX-sizeX)/2;\n\t\t\t} \n\t\t\treturn res;\n\t\t}\n\t\t\n\t\tif (!nearlyEquals(sizeX,r.sizeX)) {\n\t\t\tdouble factor=(double)r.sizeX/sizeX;\n\t\t\tfor (int i=0;i<sizeX/2;i++) {\n\t\t\t\tfor (int j=0;j<sizeY;j++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (info[i][j]!=r.get((int)(r.sizeX/2-Math.abs(sizeX/2-i)*factor), j)) \n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t\tif (info[sizeX-i-1][j]!=r.get((int)(r.sizeX/2+Math.abs(sizeX/2-i)*factor), j)) \n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (t<square/5) {\n\t\t\t\tres[0]=1;\n\t\t\t\tres[1]=(r.sizeX-sizeX)/2;\n\t\t\t}\n\t\t} else {\n\t\t\tdouble factor=(double)r.sizeY/sizeY;\n\t\t\tfor (int i=0;i<sizeX;i++) {\n\t\t\t\tfor (int j=0;j<sizeY/2;j++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (info[i][j]!=r.get(i, (int)(r.sizeY/2-Math.abs(sizeY/2-j)*factor))) \n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t\tif (info[i][sizeY-1-j]!=r.get(i, (int)(r.sizeY/2-Math.abs(sizeY/2-j)*factor))) \n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (t<square/5) {\n\t\t\t\tres[0]=2;\n\t\t\t\tres[1]=(r.sizeY-sizeY)/2;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "public static void main(String[] args) { \r\n int[][] a = new int[3][5]; // прямоугольный массив\r\n int size1 = a.length;\r\n int size2 = a[0].length;\r\n int[][] b = new int[3][]; // массив переменной длины (тут - треугольный)\r\n b[0] = new int[1];\r\n b[1] = new int[2];\r\n b[2] = new int[3];\r\n int c[] = new int[] {1,2,3,};\r\n c = new int[]{0,1,2,3}; // а вот так не сработает: c = {0,1,2,3};\r\n \r\n int[] array1D= {0,1,2,3}; \r\n int[][] array2D= {{0,1,5,10},{2,3,1,0,5,55,16},{0,1}};\r\n int[][][] array3D= {\r\n { {2,3,1,0},\r\n {2,3,1,0},\r\n {2,3,1,0}},\r\n \r\n { {2,3,1,0},\r\n {2,3,1,0},\r\n {2,3,1,0}},\r\n \r\n { {2,3,1,0},\r\n {2,3,1,0},\r\n {2,3,1,0}}};\r\n System.out.println(\"============array1D==========\");\r\n System.out.println(array1D);\r\n System.out.println(Arrays.toString(array1D)); //Работает на глубину одного измерения (для одномерных масивов)\r\n System.out.println(\"============array2D==========\");\r\n System.out.println(array2D);\r\n System.out.println(Arrays.toString(array2D)); \r\n System.out.println(Arrays.deepToString(array2D));\r\n System.out.println(\"============array3D==========\");\r\n System.out.println(array3D);\r\n System.out.println(Arrays.toString(array3D));\r\n System.out.println(Arrays.deepToString(array3D));\r\n }", "@Override\n \tpublic Object[] getImageArray() {\n \t\t// Release 3 times an RGB stack with this dimensions.\n \t\tlayers.get(0).getProject().getLoader().releaseToFit((long)(getSize() * getWidth() * getHeight() * 4 * 3));\n \t\tfinal Object[] ia = new Object[getSize()];\n \t\tfor (int i=0; i<ia.length; i++) {\n \t\t\tia[i] = getProcessor(i+1).getPixels(); // slices 1<=slice<=n_slices\n \t\t}\n \t\treturn ia;\n \t}", "public Double[][] toPresent() throws IndexOutOfBoundsException;", "public int getDimension() {\n \treturn dim;\n }", "public boolean percolates() {\n for (int i = 0; i < size; i++) {\r\n if (flowGrid[size * (size - 1) + i] < size) { // if any of the bottom row points at any of the index in the top row\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public void updateDimensions() {\n }", "public default int getDimension() {\n\t\treturn 1;\n\t}", "private int xyTo1D(int i, int j) {\n return (mGridSize * (i - 1) + j);\n }", "public boolean isScalar() {\n return size == 1;\n }", "public int get3dXtiles(int framenum)\n\t\t{ return dims[(framenum >> 5)&1]; }", "public boolean isFull() {\r\n return placeCounter == dimension * dimension;\r\n }", "private void checkDimension(DataPoint point) {\n if ((point.getDimension() > 1) && (point.getDimension() != dimensions)) {\n throw new IllegalArgumentException(\"Error: Dataset is \"\n + dimensions + \" dimensional, added data is \"\n + point.getDimension() + \" dimensional\");\n }\n }", "@Test\n public void testConstantDimension() throws TransformException {\n create(3, 2, 1, 0);\n assertIsNotIdentity(transform);\n\n final double[] source = generateRandomCoordinates();\n final double[] target = new double[source.length];\n for (int i=0; i<source.length; i++) {\n final int r = i % 3;\n final int b = i - r;\n target[b + (2-r)] = source[i];\n }\n verifyTransform(source, target);\n\n makeProjectiveTransform();\n verifyTransform(source, target);\n }", "int sizeOfPlanFeatureArray();", "public boolean isFull(int[][] grid) {\n for (int row = 0; row < 9; row++){\n for (int col = 0; col < 9; col++) {\n if (grid[row][col] == 0) return false;\n }\n }\n return true;\n }", "short[][] productionTable();", "private int size() {\n\treturn matrix.length; //# of rows\n }", "public Integer[] sMapDimensions() {\n\t\tDualSteenrod AmodAn = new DualSteenrod(DualSteenrod.getDualAModAnGenerators(N));\n\t\tint topClassDim = Tools.milnorDimension(topClass());\n\t\tInteger[] AmodAnKeys = Tools.keysToSortedArray(AmodAn.getMonomialsAtOrBelow(topClassDim));\n\t\tMap<Integer, List<int[]>> filteredMonomials = getMonomialsByFilter(AmodAnKeys);\n\t\treturn Tools.keysToSortedArray(filteredMonomials);\n\t}", "public void displayData(int[][] arr);", "void dims() throws IOException {\n\t\tmatch('[');\n\t\tmatch(Tag.NUM);\n\t\tmatch(']');\n\t\tif (look.tag == '[')\n\t\t\tdims();\n\t\treturn;\n\t}", "Dimension[] getSizes();", "@Override\r\n\tpublic void setDimension() {\n\r\n\t}", "@Override\r\n\tpublic void setDimension() {\n\r\n\t}", "public int dimensions() {\n\t\treturn dim;\n\t}", "public final float[][] reconstructedExactLevelSets() {\n \tfloat[][] levelsets = new float[nobj][nx*ny*nz];\n \tfor (int n=0;n<nobj;n++) {\n \t\tfor (int xyz=0; xyz<nx*ny*nz; xyz++) {\n \t\t\tif (mgdmlabels[0][xyz]==n) levelsets[n][xyz] = -mgdmfunctions[0][xyz];\n \t\t\telse levelsets[n][xyz] = 0.0f;\n \t\t\t\n \t\t\tint max=0;\n \t\t\tfor (int l=0;l<nmgdm && mgdmlabels[l][xyz]!=n;l++) {\n \t\t\t\tlevelsets[n][xyz] += mgdmfunctions[l][xyz];\n \t\t\t\tmax++;\n \t\t\t}\n \t\t\tif (max==nmgdm) levelsets[n][xyz] = UNKNOWN;\n \t\t}\n \t}\n \treturn levelsets;\n }", "private double[][] a2() {\n double[][] r = a;\n for (int j = 0; j < nBinVars; j++) {\n final int v = intVars[j];\n if (existsBinConstraint(v)) {\n LOG.debug(\"existsBinConstraint\", v);\n this.nBinVars2--;\n continue;\n }\n double[] constraint = new double[n];\n constraint[v - 1] = 1d;\n r = Maths.append(r, constraint);\n }\n return r;\n }", "@Override\n\tpublic boolean checkHomogeneous(List<int[]> input) {\n\t\treturn false;\n\t}", "void show(double[][][] arr,String name){\n \n System.out.println(name+\"Array\");\n Vector Size = new Vector(arr.length,arr[0].length,arr[0][0].length);\n \n for(int i=0;i<Size.x;i++){\n \n for(int j=0;j<Size.y;j++){\n \n for(int k=0;k<Size.z;k++){\n \n System.out.print(arr[i][j][k]+\" \");\n }\n System.out.println();\n }\n System.out.println();\n }\n\n}", "UINT SafeArrayGetDim(SAFEARRAY psa);", "@Test\n\tpublic void testGetNChannels() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNChannels());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(8,ip.getNChannels());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(2,ip.getNChannels());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(2,ip.getNChannels());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(4,ip.getNChannels());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(4,ip.getNChannels());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNChannels());\n\t}", "public Unit<Dimensionless> one() {return one;}", "public Matrix P0 ();", "@Test\n\tpublic final void testProcGridCoord() {\n\t\tfor (int d=0; d<DIMENSIONALITY; d++) {\n\t\t\tassertTrue(0 <= block.procGridCoord(d)\n\t\t\t\t\t&& block.procGridCoord(d)<block.procGridSize(d));\n\t\t}\n\t}", "public boolean percolates() {\n\t\treturn linearGrid.connected(0, 1);\n\t}", "private boolean isValid(int index) {\r\n return index >= 0 && index < dimension;\r\n }" ]
[ "0.6030347", "0.59009194", "0.58601505", "0.58226717", "0.5818066", "0.57869804", "0.57828796", "0.5649221", "0.564631", "0.5640204", "0.56342834", "0.5537711", "0.5527226", "0.5521196", "0.55152684", "0.55107486", "0.54947513", "0.5469043", "0.5457526", "0.5443739", "0.5434674", "0.5421813", "0.53900874", "0.5386121", "0.5374766", "0.5374766", "0.537441", "0.5320726", "0.5298237", "0.52549255", "0.5242118", "0.52323467", "0.5227449", "0.52270186", "0.52220964", "0.52202994", "0.5216004", "0.51886016", "0.51882476", "0.5185413", "0.5174578", "0.5169789", "0.5144375", "0.5144375", "0.5114444", "0.51082504", "0.51007056", "0.509308", "0.5071741", "0.50692123", "0.50540644", "0.503961", "0.5038217", "0.5027187", "0.50238943", "0.49972844", "0.49937007", "0.4992751", "0.49890476", "0.49847636", "0.49765587", "0.4976449", "0.49666026", "0.4964218", "0.495997", "0.49538288", "0.4949447", "0.4947768", "0.4937236", "0.4931086", "0.493042", "0.49281326", "0.4928016", "0.49229813", "0.4917725", "0.49175295", "0.49147624", "0.4913369", "0.4908964", "0.49055955", "0.48998174", "0.4899014", "0.48971498", "0.48949948", "0.48948497", "0.48947024", "0.4890825", "0.4890825", "0.4889397", "0.4888951", "0.4873253", "0.48624462", "0.48611206", "0.48590875", "0.48553228", "0.48517576", "0.4848816", "0.4847568", "0.484391", "0.48407012" ]
0.49853322
59
note method requires a gui can't fully test
@Test public void testIsDisplayedHyperStack() { ip = new ImagePlus(); assertFalse(ip.isDisplayedHyperStack()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void guiTinNhan() {\n\n\t}", "private static void initAndShowGUI() {\n }", "void gui(){\n _hasGUI = true;\n }", "private void updateGUIStatus() {\r\n\r\n }", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "Gui getGui();", "@Override\n public void initGUI() {\n\n }", "private InstructGui() {\n }", "public void buildGui() {\n\t}", "private GUI()\n {\n makeGUI();\n }", "@Override\r\n public void updateUI() {\r\n }", "private GuiTest() {\n // Load custom resources (fonts, etc.)\n ResourceLoader.loadResources();\n\n // Load the user accounts into the system\n UserController.getInstance().loadUsers();\n\n // Set up GuiController and the main window.\n GuiController.instantiate(1280, 720, \"FPTS\");\n\n char[] password = {'p', 'a', 's', 's', 'w', 'o', 'r', 'd'};\n UserController.getInstance().login(\"rhochmuth\", password);\n\n // Show the screen/window\n PortfolioController.getInstance().showAddHoldingView();\n GuiController.getInstance().showWindow();\n\n // Load the market information and update it every 2 minutes\n MarketController.getInstance().StartTimer();\n }", "protected void setupUI() {\n\n }", "@Override\n public void initGui()\n {\n super.initGui();\n }", "public void showGui()\n {\n // TODO\n }", "@Override\r\n\tprotected void initUI() {\n\r\n\t}", "public static void main(String[] args) {\n \n javax.swing.SwingUtilities.invokeLater(new Runnable() {\n \npublic void run() {\n \n createAndShowGUI(); \n \n}\n \n });\n }", "@Override\n\tpublic void setGui(WaiterGui gui) {\n\t\t\n\t}", "public void updateUI(){}", "public Object getGuiObject();", "private void initUI() {\n }", "private static void returnBook() {\n\t\tnew ReturnBookUI(new returnBookControl()).run();\t// method name change ReturnBookControl() to returnBookControl(),RuN to run()\r\n\t}", "private GUIMain() {\n\t}", "@Override\n\tpublic void addGui(Gui gui) {\n\t\t\n\t}", "public static void main(String[] args) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n DrawCanvas canvas;\n TicTacToeGui ttgui = new TicTacToeGui();\n \n /**CUI prompt user information to save accounts\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"Enter your username: \");\n String user = scanner.nextLine();\n System.out.print(\"Enter your password: \");\n String userpw = scanner.nextLine();\n Accounts users = ttgui.checkUser(user,userpw); **/\n \n }\n });\n }", "GuiView getGui();", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "public abstract Datastore launchGUI(Datastore theDatastore);", "@Test\n\tpublic void guiElementsTest() throws Exception {\n\t\tif (Configuration.shufflerepeat &&\n\t\tConfiguration.featureamp&&\n\t\tConfiguration.playengine&&\n\t\tConfiguration.choosefile&&\n\t\tConfiguration.gui&&\n\t\tConfiguration.skins&&\n\t\tConfiguration.light&&\n\t\tConfiguration.filesupport&&\n\t\tConfiguration.showtime&&\n\t\tConfiguration.volumecontrol&&\n\t\tConfiguration.mute\n\t\t) {\t\n\n\t\tstart();\n\t\tJMenu menu = (JMenu) MemberModifier.field(Application.class, \"menu\").get(gui);\n\t\tassertEquals(menu.getName(), \"menu\");\n\t\tJMenuItem menuItem = menu.getItem(0);\n\t\tassertTrue(menuItem.getComponentListeners() != null);\n\t\t}\n\t}", "public void run() {\n criaGUI();\n \n }", "private void initGui(){\n // TODO: add code for GUI initialization for a given auction\n }", "void successUiUpdater();", "private GUIReminder() {\n\n initComponents();\n initOthers();\n\n }", "@Override\n\tpublic void transitToGUI(int i) {\n\t\t\n\t}", "public void testGUI(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tTestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick-parse\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \tTestUtils.view().getTextArea().scrollTo(3319,false);\n\t\tfinal java.awt.Point hrefP = TestUtils.view().getTextArea().offsetToXY(3319);\n\t\threfP.translate(30, 10);\n\t\tfinal JEditTextAreaFixture tf = new JEditTextAreaFixture(TestUtils.robot(),TestUtils.view().getTextArea()); \n\n\t\t// doesn't work: the hyperlink is not triggered...\n\t\ttf.robot.moveMouse(tf.target,hrefP);\n\t\ttf.robot.pressModifiers(InputEvent.CTRL_DOWN_MASK);\n\t\tPause.pause(2000);\n\t\threfP.translate(10,4);\n\t\ttf.robot.moveMouse(tf.target,hrefP);\n\t\tPause.pause(4000);\n\t\ttf.robot.click(tf.target, MouseButton.LEFT_BUTTON);\n\t\ttf.robot.releaseModifiers(InputEvent.CTRL_DOWN_MASK);\n\t}", "public interface GUIManagerInterface {\n\n \n /**\n * Methode zum abrufen der Eingabedaten\n * \n * @return Tabelle mit Eingabedaten\n */\n public Table<Integer, Integer, String> getData();\n \n /**\n * Methode zum Abrufen der bereits anonymisierten Daten\n * \n * @return Tabelle mit den anonymisierten Daten\n */\n public Table<Integer, Integer, String> getAnonymizedData();\n \n /**\n * Methode zum Abrufen der Metadaten\n * \n * @return MetaData-Objekt\n */\n public MetaData getMetaData();\n \n /**\n * Methode zum Aktualisieren der Metadaten\n * \n * @param newMetaData Das aktualisierte MetaData-Objekt\n */\n public void setMetaData(MetaData newMetaData);\n \n \n /**\n * Methode zum anonymisieren der Daten. \n * \n * @param metadata Die Metadaten zu den Daten\n * @param data\tDie zu anonymisierenden Daten\n * @param method\tDie Anonymisierungsmethode\n */\n public void anonymize(MetaData metadata, AnonymizingMethods method, \n\t Table<Double, Double, Double> data);\n \n /**\n * Methode zur Simulation eines Datenangriffs\n * \n * @param metadata\t Die Metadaten zu den Daten\n * @param method\t Die Matching-Methode\n * @param data\t Die echten Daten\n * @param anonymData Die anonymisierten Daten\n */\n public void match(MetaData metadata, MatchingMethods method, \n\t Table<Integer, Integer, String> data, \n\t Table<Integer, Integer, String> anonymData);\n\n \n}", "@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}", "void showOrdersGui();", "public GUI_Edit_Tour(){\n init();\n }", "public void initGui()\n {\n StringTranslate var1 = StringTranslate.getInstance();\n int var2 = this.func_73907_g();\n\n for (int var3 = 0; var3 < this.options.keyBindings.length; ++var3)\n {\n this.controlList.add(new GuiSmallButton(var3, var2 + var3 % 2 * 160, this.height / 6 + 24 * (var3 >> 1), 70, 20, this.options.getOptionDisplayString(var3)));\n }\n\n this.controlList.add(new GuiButton(200, this.width / 2 - 100, this.height / 6 + 168, var1.translateKey(\"gui.done\")));\n this.screenTitle = var1.translateKey(\"controls.minimap.title\");\n }", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }", "public String runGUI(){\n ArrayList<ArrayList<Furniture>> all = getSubsets(getFoundFurniture());\n ArrayList<ArrayList<Furniture>> valid = getValid(all);\n ArrayList<ArrayList<Furniture>> ordered = comparePrice(valid);\n ArrayList<ArrayList<Furniture>> orders = produceOrder();\n return checkOrder(orders, true);\n }", "private static void borrow() {\n\t\tnew BorrowBookUI(new borrowBookControl()()).run();\t// method changes BorrowBookControl to borrowBookControl()\t\r\n\t}", "void processGUIInput(String cmd){\n try{\n debugWriter.write(cmd);\n debugWriter.flush();\n //}\n }catch(IOException e){\n //Eat it\n e.printStackTrace();\n //throw new InvalidInteractionsException();\n }\n }", "public History_GUI(){\n super();\n InitializeComponents();\n ConfigureWin();\n\n }", "protected void initializeGUI() {\n\n\t}", "private void designGUI() {\n\t\tmnb= new JMenuBar();\r\n\t\tFileMenu=new JMenu(\"file\");\r\n\t\tEditMenu=new JMenu(\"edit\");\r\n\t\timg1=new ImageIcon(\"s.gif\");\r\n\t\tNew=new JMenuItem(\"new\",img1);\r\n\t\topen=new JMenuItem(\"open\");\r\n\t\tsave=new JMenuItem(\"save\");\r\n\t\tquit=new JMenuItem(\"quit\");\r\n\t\tcut=new JMenuItem(\"cut\");\r\n\t\tcopy=new JMenuItem(\"copy\");\r\n\t\tpaste=new JMenuItem(\"paste\");\r\n\t\t\r\n\t\tFileMenu.add(New);\r\n\t\tFileMenu.add(save);\r\n\t\tFileMenu.add(open);\r\n\t\tFileMenu.add(new JSeparator());\r\n\t\tFileMenu.add(quit);\r\n\t\tEditMenu.add(cut);\r\n\t\tEditMenu.add(copy);\r\n\t\tEditMenu.add(paste);\r\n\t\t\r\n\t\tmnb.add(FileMenu);\r\n\t\tmnb.add(EditMenu);\r\n\t\tsetJMenuBar(mnb);\r\n\t\t\r\n\t\t//to add shortcut\r\n\t\tquit.setMnemonic('q');\r\n\t\t//quit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W,ActionEvent.CTRL_MASK));\r\n\t\tquit.addActionListener((ActionEvent e)->\r\n\t\t\t\t{\r\n\t\t\tSystem.exit(0);\r\n\t\t\t\t});\r\n\t\t\r\n\t\t//moving the mouse near to it we get this\r\n\t\tcut.setToolTipText(\"cut the text\");\r\n\t\t//new way fro get domension\r\n\t\tdim=getToolkit().getScreenSize();\r\n\t\tint x=(int) dim.getHeight();\r\n\t\tint y=(int) dim.getWidth();\r\n\t\tc=getContentPane();\r\n\t\tc.setLayout(new BorderLayout());\r\n\t\tmainpanel=new JPanel();\r\n\t\tta1=new JTextArea(x/18,y/12);\r\n\t\tmainpanel.add(new JScrollPane(ta1));\r\n\t\tc.add(mainpanel,BorderLayout.CENTER);\r\n\t\tmymethods();\r\n\t\topen.addActionListener(this);\r\n\t\tsave.addActionListener(this);\r\n\t\tcut.addActionListener(this);\r\n\t\tcopy.addActionListener(this);\r\n\t\tpaste.addActionListener(this);\r\n\t\t\r\n\t}", "public anywheresoftware.b4a.objects.PanelWrapper _asview() throws Exception{\nif (true) return _wholescreen;\n //BA.debugLineNum = 37;BA.debugLine=\"End Sub\";\nreturn null;\n}", "public static void main(String[] args) {\n\t\t SwingUtilities.invokeLater(new Runnable() {\r\n\r\n\t public void run() {\r\n\r\n\t \tCharacterBuilderInterface ex = new CharacterBuilderInterface();\r\n\t ex.setVisible(true);\r\n\t }\r\n\t });\r\n\t}", "public static void main(String[] args) {\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (Exception e) {\n }\n\n transferITThreadFactory = new TransferITThreadFactory();\n transferITModel = new TransferITModel();\n initSettings(transferITModel);\n\n transferITController = new TransferITController(transferITModel);\n\n SwingUtilities.invokeLater(new Runnable() {\n\n public void run() {\n gUIView = new GUIView(transferITModel, transferITController);\n }\n });\n\n /*gUIView.appendToLog(\"Thread count \" + Thread.activeCount());\n gUIView.appendToLog(\"wid \" + gUIView.getTransferToServer().getBounds().getWidth());*/\n }", "private void todoChooserGui() {\r\n jframe = makeFrame(\"My Todo List\", 500, 800, JFrame.EXIT_ON_CLOSE);\r\n panelSelectFile = makePanel(jframe, BorderLayout.CENTER,\r\n \"Choose a Todo\", 150, 50, 200, 25);\r\n JButton clickRetrieve = makeButton(\"retrieveTodo\", \"Retrieve A TodoList\",\r\n 175, 100, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickRetrieve);\r\n JTextField textFieldName = makeJTextField(1, 100, 150, 150, 25);\r\n textFieldName.setName(\"Name\");\r\n panelSelectFile.add(textFieldName);\r\n JButton clickNew = makeButton(\"newTodo\", \"Make New TodoList\",\r\n 250, 150, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickNew);\r\n panelSelectFile.setBackground(Color.WHITE);\r\n jframe.setBackground(Color.PINK);\r\n jframe.setVisible(true);\r\n }", "@Test\n public void testGreenButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"DateAvailable\").selectItem(1);\n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"greenButton4\").requireVisible();\n }", "private static void createAndShowGUI() {\n\t\tgui = new GUI();\n\t}", "@Override\n protected void windowInit ()\n {\n }", "public void instruction() {\n gui.setUp();\n JLabel header = new JLabel(\"Vocabulary Quiz\");\n header.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 28));\n gui.getConstraints().gridx = 0;\n gui.getConstraints().gridy = 0;\n gui.getConstraints().insets = new Insets(10,0,100,0);\n gui.getPanel().add(header, gui.getConstraints());\n String instructionText = \"You can make sure how many vocabularies you remember \";\n instructionText += \"in your list.\\nThere are \\\"\" + VocabularyQuizList.MAX_NUMBER_QUIZ + \"\\\" questions. \";\n instructionText += \"Each question has \\\"\" + VocabularyQuiz.NUM_SELECT + \"\\\" choices.\\n\\n\";\n instructionText += \"LET'S START!!\";\n JTextArea instruction = new JTextArea(instructionText);\n instruction.setEditable(false);\n instruction.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 20));\n gui.getConstraints().gridy = 1;\n gui.getPanel().add(instruction, gui.getConstraints());\n JButton b = new JButton(\"start\");\n gui.getConstraints().gridy = 2;\n startQuestionListener(b);\n gui.getConstraints().insets = new Insets(10,300,10,300);\n gui.getPanel().add(b, gui.getConstraints());\n }", "public interface GUI {\n\n /**\n * Adds a MouseListener to the GUI.\n * @param mouseListener added to the GUI.\n */\n void addMouseListener(MouseListener mouseListener);\n\n /**\n * Get list link button for other GUIs. \n * @return List of ButtonLink\n */\n List<ButtonLink> getBtnActionLinks();\n\n /**\n * Sets the link identifier of the GUI.\n * @param linkActionGUI link identifier.\n */\n void setMainAction(LinkActionGUI linkActionGUI);\n\n /**\n * Set the boundaries from a rectangle.\n * @param rectangle for borders.\n */\n void setBounds(Rectangle rectangle);\n\n /**\n * Set visibility of the GUI.\n * @param visible for visibility.\n */\n void setVisible(boolean visible);\n\n /**\n * Set background image.\n * @param path of image.\n */\n void setImageBackground(String path);\n\n /**\n * Set the border color and thickness.\n * @param color for border.\n * @param thickness for border.\n */\n void setBorder(Color color, int thickness);\n\n /**\n * Set visibility of the foreground panel of the GUI.\n * @param visible for visibility panel.\n */\n void setVisibleGlassPanel(Visibility visible);\n\n /**\n * Close the GUI and destroyed JFrame.\n */\n void close();\n\n}", "public guiProntuarioVirtual() {\n initComponents();\n \n }", "public SearchFrame(){//The main search frame which calls other methods\n\t\t/*Calling the methods intitialiseGUI and buildGUI*/\n\t\tintitialiseGUI();\n\t\tbuildGUI();\n\t}", "public static void main(String[] args) {\r\n UserInterface ui;\r\n try {\r\n ui = new UserInterface();\r\n \r\n ui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n ui.pack(); \r\n ui.setVisible(true); \r\n } catch(InterruptedException ex) {\r\n \r\n }\r\n\r\n }", "@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }", "public void updateUI()\n\t{\n\t\tif( isRunning() == false) \n\t\t{\n\t\t\tupdateButton(\"Run\");\n\t\t\tbutton.setClickable(true);\n\t\t\tupdateTextView(Feedback.getMessage(Feedback.TYPE.NEW_TEST, null));\n\t\t}else\n\t\t{\n\t\t\tbutton.setClickable(true);\n\t\t\tupdateButton( \"Stop\" );\n\t\t\tupdateTextView(\"Tests are running.\");\n\n\t\t}\n\t}", "public testGUI() {\n this.currBuff = new Buffer(currentTab,\"\");\n initComponents();\n }", "void showPlaceholderGui() {\n this.game.a(new da());\n }", "@Test\n public void testRedButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"ilias\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"redButton4\").requireVisible();\n }", "public helpFrame() {\n this.setTitle(\"Help\");\n JPanel panel = new JPanel();\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n\n JLabel helpLabel = new JLabel(\"This is helpful\");\n JTextArea helpArea = new JTextArea(\"Executable refers to the program which will be run, eg python, ls \" +\n \"\\n\\nInput file is the file, or files, to be read by the running program.\" +\n \"\\n\\nExecutable arguments are the parameters given to that program, eg example.py, -l\" +\n \"\\n\\nSearch text is the string Triana will look for in the executables output. \" +\n \"The integer directly after the search string will be sent to the next unit in the workflow. \" +\n \"If this unit is a collection FileUnit, the number will be used as the number of files in the collection.\");\n helpArea.setEditable(false);\n helpArea.setLineWrap(true);\n helpArea.setWrapStyleWord(true);\n\n JScrollPane scrollPane = new JScrollPane(helpArea);\n\n panel.add(helpLabel);\n panel.add(scrollPane);\n JButton ok = new JButton(\"Ok\");\n ok.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n dispose();\n }\n });\n panel.add(ok);\n this.add(panel);\n this.setSize(400, 200);\n this.setVisible(true);\n }", "private static void createAndShowGUI()\n {\n Sudoku s = new Sudoku();\n }", "public void updateUI() {\n/* 393 */ setUI((ScrollPaneUI)UIManager.getUI(this));\n/* */ }", "public void memoGui() {\n HBox memos = new HBox();\n Label memoLabel = new Label(\"Add to memo\");\n ChoiceBox<Object> memoChoice = new ChoiceBox<>();\n memoChoice.getItems().addAll(mSys.getListOfMemo().toArray());\n memos.getChildren().addAll(memoLabel, memoChoice);\n\n Button button = new Button();\n if (isNew) {\n button.setText(\"Add Event to Memo\");\n } else {\n button.setText(\"Remove Event From Memo\");\n }\n\n button.setOnMouseClicked(e -> {\n if (isNew) {\n if (memoChoice.getValue() == null) {\n return;\n }\n memo = (Memo) memoChoice.getValue();\n mSys.addEventToMemo(memo, event.getId());\n } else {\n mSys.removeEventInMemo(event.getId());\n }\n stage.close();\n });\n\n VBox vBox = new VBox();\n if (isNew) {\n vBox.getChildren().addAll(memos, button);\n } else {\n vBox.getChildren().addAll(button);\n }\n\n Scene scene = new Scene(vBox, 500, 400);\n scene.getStylesheets().add(Theme.getInstance().getStylesheet());\n stage.setScene(scene);\n stage.showAndWait();\n }", "private void performDirectEdit() {\n\t}", "@Override\n\tpublic void EjecutaGui() {\n\t\tSystem.out.println(\"Ejecucion en ventana del ejercicio 2 del grupo 3\");\n\t}", "public static void main(String args[]) {\n SwingUtilities.invokeLater(new Runnable() { \r\n public void run() { \r\n new shemInputForm(); \r\n } \r\n }); \r\n }", "void setGui(Gui gui);", "public abstract void newGuiFeedback(long ms, int n);", "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tupdateUI();\n\t\t\t\t\t\t}", "private void setGUI()\r\n\t{\r\n\t\tbubblePB = setProgressBar(bubblePB);\r\n\t\tinsertionPB = setProgressBar(insertionPB);\r\n\t\tmergePB = setProgressBar(mergePB);\r\n\t\tquickPB = setProgressBar(quickPB);\r\n\t\tradixPB = setProgressBar(radixPB);\r\n\t\t\r\n\t\tsetLabels();\r\n\t\tsetPanel();\r\n\t\tsetLabels();\r\n\t\tsetFrame();\r\n\t}", "protected void aboutUs(ActionEvent arg0) {\n\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\"A Curriculum Design of DBMS By psiphonc in NOV.2019\");\r\n\t}", "private void setUpGUI() {\n \n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n enzymeTypeCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useFlankingCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n monoPrecursorCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n peptideListCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n decoyFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n keepTerminalAaCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeMethionineCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n exactPvalueCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n spScoreCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n chargesCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useNeutralLossCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n outputFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeTempFoldersCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n \n minPepLengthTxt.setEditable(editable);\n minPepLengthTxt.setEnabled(editable);\n maxPepLengthTxt.setEditable(editable);\n maxPepLengthTxt.setEnabled(editable);\n minPrecursorMassTxt.setEditable(editable);\n minPrecursorMassTxt.setEnabled(editable);\n maxPrecursorMassTxt.setEditable(editable);\n maxPrecursorMassTxt.setEnabled(editable);\n monoPrecursorCmb.setEnabled(editable);\n removeMethionineCmb.setEnabled(editable);\n //minPtmsPerPeptideTxt.setEditable(editable);\n //minPtmsPerPeptideTxt.setEnabled(editable);\n maxPtmsPerPeptideTxt.setEditable(editable);\n maxPtmsPerPeptideTxt.setEnabled(editable);\n maxVariablePtmsPerTypeTxt.setEditable(editable);\n maxVariablePtmsPerTypeTxt.setEnabled(editable);\n enzymeTypeCmb.setEnabled(editable);\n peptideListCmb.setEnabled(editable);\n decoyFormatCombo.setEnabled(editable);\n keepTerminalAaCombo.setEnabled(editable);\n decoySeedTxt.setEditable(editable);\n decoySeedTxt.setEnabled(editable);\n removeTempFoldersCmb.setEnabled(editable);\n exactPvalueCombo.setEnabled(editable);\n spScoreCombo.setEnabled(editable);\n minSpectrumMzTxt.setEditable(editable);\n minSpectrumMzTxt.setEnabled(editable);\n maxSpectrumMzTxt.setEditable(editable);\n maxSpectrumMzTxt.setEnabled(editable);\n minPeaksTxt.setEditable(editable);\n minPeaksTxt.setEnabled(editable);\n chargesCombo.setEnabled(editable);\n removePrecursorPeakCombo.setEnabled(editable);\n removePrecursorPeakToleranceTxt.setEditable(editable);\n removePrecursorPeakToleranceTxt.setEnabled(editable);\n useFlankingCmb.setEnabled(editable);\n useNeutralLossCmb.setEnabled(editable);\n mzBinWidthTxt.setEditable(editable);\n mzBinWidthTxt.setEnabled(editable);\n mzBinOffsetTxt.setEditable(editable);\n mzBinOffsetTxt.setEnabled(editable);\n numberMatchesTxt.setEditable(editable);\n numberMatchesTxt.setEnabled(editable);\n outputFormatCombo.setEnabled(editable);\n \n }", "@Override\n\tpublic void setGui(LiveGui g) {\n\t\t\n\t}", "private void displayGUI()\n {\n SpringLayout springLayout = new SpringLayout();\n setLayout(springLayout);\n\n displayTextAreas(springLayout);\n displayButtons(springLayout);\n displayLabels(springLayout);\n displayTables(springLayout);\n //displaySelectedQuestion();\n }", "@Override\n \t\t\t\tpublic void doHelp() {\n \n \t\t\t\t}", "private static void createAndShowGUI() {\n Functionality func = new Functionality();\n }", "public void registerGui()\n {\n }", "private void txtDisplayActionPerformed(java.awt.event.ActionEvent evt) {\n \n }", "public void initGui()\n {\n Keyboard.enableRepeatEvents(true);\n this.buttons.clear();\n GuiButton guibutton = this.addButton(new GuiButton(3, this.width / 2 - 100, this.height / 4 + 24 + 12, I18n.format(\"selectWorld.edit.resetIcon\")));\n this.buttons.add(new GuiButton(4, this.width / 2 - 100, this.height / 4 + 48 + 12, I18n.format(\"selectWorld.edit.openFolder\")));\n this.buttons.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 96 + 12, I18n.format(\"selectWorld.edit.save\")));\n this.buttons.add(new GuiButton(1, this.width / 2 - 100, this.height / 4 + 120 + 12, I18n.format(\"gui.cancel\")));\n guibutton.enabled = this.mc.getSaveLoader().getFile(this.worldId, \"icon.png\").isFile();\n ISaveFormat isaveformat = this.mc.getSaveLoader();\n WorldInfo worldinfo = isaveformat.getWorldInfo(this.worldId);\n String s = worldinfo == null ? \"\" : worldinfo.getWorldName();\n this.nameEdit = new GuiTextField(2, this.fontRenderer, this.width / 2 - 100, 60, 200, 20);\n this.nameEdit.setFocused(true);\n this.nameEdit.setText(s);\n }", "private void todoListGui() {\r\n panelSelectFile.setVisible(false);\r\n if (panelTask != null) {\r\n panelTask.setVisible(false);\r\n }\r\n\r\n makePanelList();\r\n syncListFromTodo();\r\n\r\n jframe.setTitle(myTodo.getName());\r\n panelList.setBackground(Color.ORANGE);\r\n panelList.setVisible(true);\r\n }", "public SysRunGUI() {\n initComponents();\n this.run();\n }", "private GUIAltaHabitacion() {\r\n\t initComponents();\r\n\t }", "private static void createAndShowGUI() {\n \n JFrame frame = new HandleActionEventsForJButton();\n \n //Display the window.\n \n frame.pack();\n \n frame.setVisible(true);\n \n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n }", "public void runInUi(ElexisEvent ev){}", "void add(String prompt, UIFormTest test);", "public interface GUI {\r\n\r\n public SPLGraph getSoundLevelGraph();\r\n\r\n public int getHeight();\r\n\r\n public int getWidth();\r\n\r\n public float getLabelWidth(String label, boolean antiAlias);\r\n\r\n public float getLabelHeight(String label, boolean antiAlias);\r\n\r\n public void drawLine(NTColor color, float x1, float y1, float x2, float y2, boolean antiAlias, boolean hairline);\r\n\r\n public void drawLabel(String label, NTColor labelColor, float x, float y, boolean antiAlias);\r\n\r\n public void drawSurface(NTColor color, ArrayList<Float> xs, ArrayList<Float> ys, boolean antiAlias);\r\n\r\n }", "public void testMainMenu() {\n // open and close New Project wizard\n NewProjectWizardOperator.invoke().close();\n\n //workaround for issue 166989\n if (System.getProperty(\"os.name\").equals(\"Mac OS X\")) {\n try {\n new NbDialogOperator(\"Warning\").close();\n } catch (TimeoutExpiredException e) {\n }\n }\n }", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n RefSystemGUI.main(args);\n }", "private void makeGUI() {\n //Create the canvas and Components for GUI.\n canvas = new Canvas();\n\n canvas.setBounds(0, 0, getWidth(), getHeight());\n getContentPane().setBackground(DrawAttribute.whiteblue);\n searchArea = new JTextField();\n searchArea.setForeground(Color.GRAY);\n searchArea.setText(promptText);\n\n //Make the components for the frame.\n makeComponents();\n addComponentsToLayers();\n }", "@Test\n public void correctTextsAndLabels() {\n loadAllStartScreenReferences();\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n Assert.assertEquals(\"Title is not Start!\", \"Start\", stage.getTitle());\n Assert.assertEquals(\"GameName is Incorrect!\", \"TicTacToe Game (3x3)\", gameNameText.getText());\n Platform.runLater(() -> clickOn(startGameButton));\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n settingPlayers();\n loadAllMainScreenReferences();\n Assert.assertEquals(\"Title is not Main!\", \"Main\", stage.getTitle());\n Assert.assertEquals(\"Instruction Label is incorrect!\", \"You go first !\",\n instructionLabel.getText());\n Platform.runLater(() -> clickOn(buttonFour));\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n Assert.assertEquals(\"Instruction Label did not change!\", \"Nice, choose one more!\",\n instructionLabel.getText());\n Platform.runLater(() -> clickOn(leaveButton));\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n Assert.assertEquals(\"Title is not Start!\", \"Start\", stage.getTitle());\n }", "public void factoryMainScreen()\n\t{\n\t\t\n\t}", "public static void main(String[] args) {\n \r\n Runnable doCreateAndShowGUI = new Runnable() {\r\n public void run() {\r\n createAndShowGUI();\r\n }\r\n };\r\n SwingUtilities.invokeLater(doCreateAndShowGUI);\r\n }" ]
[ "0.6924379", "0.65271103", "0.6425655", "0.63958114", "0.6394879", "0.6394879", "0.6379007", "0.6372292", "0.6332935", "0.6325296", "0.62363875", "0.6207847", "0.6154989", "0.61290246", "0.61018777", "0.6096134", "0.6015125", "0.5989003", "0.5985645", "0.5984041", "0.5953769", "0.59379417", "0.58781075", "0.5864091", "0.58638906", "0.5859333", "0.5852882", "0.58485776", "0.58485776", "0.58485776", "0.58478516", "0.58395547", "0.58376914", "0.58305204", "0.58134633", "0.57971275", "0.5771773", "0.57435864", "0.5723106", "0.57218164", "0.5716281", "0.57023495", "0.5700318", "0.56958455", "0.5692788", "0.56926274", "0.5687952", "0.5683703", "0.56829935", "0.5671849", "0.5666703", "0.56506914", "0.56465316", "0.56412977", "0.56394094", "0.56365407", "0.56298167", "0.5626984", "0.56182", "0.5617628", "0.5611117", "0.56077695", "0.56069386", "0.5606632", "0.56056505", "0.55975735", "0.55956036", "0.5595034", "0.5582392", "0.55744356", "0.5568384", "0.5563549", "0.55560696", "0.5542957", "0.5542904", "0.5535594", "0.55325663", "0.552553", "0.55253667", "0.552224", "0.55220175", "0.55209863", "0.55200714", "0.5515246", "0.551461", "0.55101573", "0.55082995", "0.5506704", "0.5501101", "0.54988104", "0.54980254", "0.54979706", "0.5497863", "0.549102", "0.54867905", "0.54862285", "0.54857177", "0.54840153", "0.5481758", "0.5480053", "0.5477899" ]
0.0
-1
stack does not match dimensions
@Test public void testGetNChannels() { ip = new ImagePlus("Groening", (Image)null); st = new ImageStack(2,3); st.addSlice("silly",new byte[] {1,2,3,4,5,6}); ip.setStack("AyeCarumba",st); ip.setDimensions(1,1,3); assertEquals(1,ip.getNChannels()); ip.setDimensions(1,3,1); assertEquals(1,ip.getNChannels()); ip.setDimensions(3,1,1); assertEquals(1,ip.getNChannels()); // stack matches dimensions ip = new ImagePlus("Agent007", (Image)null); st = new ImageStack(2,3); st.addSlice("suave",new byte[] {1,2,3,4,5,6}); st.addSlice("debonair",new byte[] {1,2,3,4,5,6}); st.addSlice("sophisticated",new byte[] {1,2,3,4,5,6}); st.addSlice("handsome",new byte[] {1,2,3,4,5,6}); st.addSlice("humorous",new byte[] {1,2,3,4,5,6}); st.addSlice("aloof",new byte[] {1,2,3,4,5,6}); st.addSlice("calm",new byte[] {1,2,3,4,5,6}); st.addSlice("composed",new byte[] {1,2,3,4,5,6}); ip.setStack("MoneyPenny", st); // one dim > 1 ip.setDimensions(1,1,8); assertEquals(1,ip.getNChannels()); ip.setDimensions(1,8,1); assertEquals(1,ip.getNChannels()); ip.setDimensions(8,1,1); assertEquals(8,ip.getNChannels()); // two dims > 1 ip.setDimensions(1,2,4); assertEquals(1,ip.getNChannels()); ip.setDimensions(1,4,2); assertEquals(1,ip.getNChannels()); ip.setDimensions(2,1,4); assertEquals(2,ip.getNChannels()); ip.setDimensions(2,4,1); assertEquals(2,ip.getNChannels()); ip.setDimensions(4,1,2); assertEquals(4,ip.getNChannels()); ip.setDimensions(4,2,1); assertEquals(4,ip.getNChannels()); // three dims > 1 ip.setDimensions(2,2,2); assertEquals(2,ip.getNChannels()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSetDimensions() {\n\n\t\t// empty stack\n\t\tip = new ImagePlus();\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(1,ip.getNSlices());\n\t\tassertEquals(ip.getStackSize(),ip.getNFrames());\n\n\t\t// stack but dimensions don't match\n\t\tip = new ImagePlus(\"Kerbam\",(Image)null);\n\t\tst = new ImageStack(2,2);\n\t\tst.addSlice(\"Oranges\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Apples\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Pears\", new byte[] {1,2,3,4});\n\t\tip.setStack(\"Kaboom\",st);\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(ip.getStackSize(),ip.getNSlices());\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// stack with matching dimensions\n\t\tip = new ImagePlus(\"Kerbam\",(Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"Oranges\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Apples\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Pears\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Quinces\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Kiwis\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Bananas\", new byte[] {1,2,3,4});\n\t\tip.setStack(\"Kaboom\",st);\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(2,ip.getNSlices());\n\t\tassertEquals(3,ip.getNFrames());\n\t}", "@Test\n\tpublic void testPush(){\n\t\tArrayIntStack stack = buildStack(4);\n\t\tassertEquals(4, stack.intCol.size());\n\t}", "@Test\n\tpublic void testGetNSlices() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNSlices());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(8,ip.getNSlices());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(1,ip.getNSlices());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(2,ip.getNSlices());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(4,ip.getNSlices());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(4,ip.getNSlices());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(2,ip.getNSlices());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNSlices());\n\t}", "void setStack(int[][][] add);", "@Test\n\tpublic void testGetNFrames() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(8,ip.getNFrames());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(4,ip.getNFrames());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(2,ip.getNFrames());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(4,ip.getNFrames());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(2,ip.getNFrames());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNFrames());\n\t}", "public void resize(){\n Object[] old = myCustomStack;\n //resize array to be twice the size when the Stack is more than 3/4 full\n if(numElements > old.length * .75){\n Object[] resizedArr = new Object[old.length * 2];\n for(int i = 0; i < numElements; i++){\n resizedArr[i] = old[i];\n }\n myCustomStack = resizedArr;\n System.out.println(\"Array has been resized to twice the size. Array length: \" + myCustomStack.length);\n }\n //resize array to be half the size when the Stack is more than 1/4 empty\n else if(numElements < old.length * .25){\n Object[] resizedArr = new Object[old.length / 2];\n for(int i = 0; i < numElements; i++){\n resizedArr[i] = old[i];\n }\n myCustomStack = resizedArr;\n System.out.println(\"Array has been resized to half the size. Array length: \" + myCustomStack.length);\n }\n else{\n return;\n }\n }", "@Test\n\tpublic void testIsHyperStack() {\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,3);\n\t\tip.setOpenAsHyperStack(false);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs false, nDimensions > 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"oof\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,4);\n\t\tip.setOpenAsHyperStack(false);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs true, nDimensions <= 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,3);\n\t\tip.setOpenAsHyperStack(true);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs true, nDimensions > 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"oof\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,2,2);\n\t\tip.setOpenAsHyperStack(true);\n\t\tassertTrue(ip.isHyperStack());\n\t}", "Stack(int sizeYouWantYourDataStuctureToBe){\n stackArray = new int [sizeYouWantYourDataStuctureToBe];\n }", "@SuppressWarnings({\"unchecked\"})\n private void expandStack() {\n T[] newStack;\n \n newStack = (T[]) new Object[Array.getLength(this.elements) + 1];\n for( int i = 0; i < Array.getLength(this.elements); i++ )\n newStack[i] = this.elements[i];\n this.elements = newStack;\n }", "protected static Object[] expand(Object[] stack) {\n Object[] newStack = new Object[stack.length * 2];\n System.arraycopy(stack, 0, newStack, 0, stack.length);\n return newStack;\n }", "public Stacked(){\n count = 0;\n stackArray = (E[]) new Object[START_CAP];\n }", "private void expandCapacity() {\n\t\tT[] larger = (T[]) (new Object[stack.length*2]);\t\t//double size of previous stack\n\t\t\n\t\tfor(int i = 0; i < stack.length; i++)\n\t\t\tlarger[i] = stack[i];\n\t\t\n\t\tstack = larger;\n\t}", "public int[][] extractVoxels(ImageStack stack){\n\t\tint stack_width = stack.getWidth();\n\t\tint stack_height = stack.getHeight();\n\t\tint stack_length = stack.getSize();\n\n\t\t// method will extract cone thath's been cutoff from the stack\n\t\t\n\t\tint cone_radius \t= (int)Math.round(this.r);\n\t\t//int cone_radius1 \t= (int)Math.round(this.r1);\n\t\tint cone_height\t\t= (int)Math.round(this.getH());\n\t\tint cone_limit\t\t= (int)Math.ceil(Math.sqrt(Math.pow(r1, 2)+Math.pow(this.getH(), 2)));\n\t\t\n\t\tif(cone_radius>cone_limit){\n\t\t\tcone_limit = cone_radius;\n\t\t}\n\t\t\n\t\t// center in pixel coordinates\n\t\tint[] centerPix = {(int)Math.round(this.x), (int)Math.round(this.y), (int)Math.round(this.z)};\n\t\t\n\t\t// define the range\n\t\tint startX = 1; if (centerPix[0]-cone_limit > 1) startX = centerPix[0]-cone_limit;\n\t\tint startY = 1; if (centerPix[1]-cone_limit > 1) startY = centerPix[1]-cone_limit;\n\t\tint startZ = 1; if (centerPix[2]-cone_limit > 1) startZ = centerPix[2]-cone_limit;\n\t\t\t\n\t\tint endX = stack_width; if (centerPix[0]+cone_limit < stack_width) endX = centerPix[0]+cone_limit;\n\t\tint endY = stack_height; if (centerPix[1]+cone_limit < stack_height) endY = centerPix[1]+cone_limit;\n\t\tint endZ = stack_length; if (centerPix[2]+cone_limit < stack_length) endZ = centerPix[2]+cone_limit;\n\n\t\tint count=0;\n\t\t// this consumes memory! - maybe not necessary to allocate here\n\t\tbyte[] pixels = new byte[stack_width*stack_height]; //storage for pixels from one layer\n\t\tint[][] roi = new int [2*cone_limit*2*cone_limit*2*cone_limit][4];//roi big enough to take cone at any orientation\n\t\t\n\t\tdouble[] b ={0, 0, 0}; \n\t\tdouble[] c ={0, 0, 0};\n\t\tdouble[] a ={0, 0, 0}; //this one will serve as unit h vector\n\t\ta[0] = h[0]/this.getH(); a[1] = h[1]/this.getH(); a[2] = h[2]/this.getH();\n\t\t\n\t\tTransf.cartesian(a[0], a[1], a[2], b, c);\n\t\t\n\t\tfor(int z_layer=startZ; z_layer<endZ; z_layer++){\n\t\t\tpixels = (byte[])stack.getPixels(z_layer);\n\t\t\tfor(int x_row=startX; x_row<endX; x_row++){\n\t\t\t\tfor(int y_col=startY; y_col<endY; y_col++){\n\t\t\t\t\t\n\t\t\t\t\tdouble point_h, point_r;\n\t\t\t\t\tdouble vx, vy, vz;\n\t\t\t\t\t\n\t\t\t\t\tvx = x_row-x; \n\t\t\t\t\tvy = y_col-y; \n\t\t\t\t\tvz = z_layer-z;\n\t\t\t\t\t\n\t\t\t\t\tpoint_h = vx*a[0]+vy*a[1]+vz*a[2]; \n\t\t\t\t\tpoint_r = Math.sqrt(Math.pow(vx*b[0]+vy*b[1]+vz*b[2], 2)+Math.pow(vx*c[0]+vy*c[1]+vz*c[2], 2));\n\t\t\t\t\t\n\t\t\t\t\tboolean isInCone = true;\n\t\t\t\t\tisInCone = (point_h<=cone_height) && (point_h>=0) && (point_r<= ((r1-r)/this.getH())*point_h+r);//\n\t\t\t\t\t\n\t\t\t\t\tif(isInCone){\n\t\t\t\t\t\troi[count][3] = pixels[x_row + stack_width * y_col] & 0xff; //int\n\t\t\t\t\t\troi[count][0] = x_row; \n\t\t\t\t\t\troi[count][1] = y_col; \n\t\t\t\t\t\troi[count][2] = z_layer;\n\t\t\t\t\t\tcount ++;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t// quite inefficient for memory to extract twice... but left it this way by now\n\t\tint[][] extractedVoxels = new int [count][4];\n\t\tfor(int i=0; i<count; i++){\n\t\t\tfor(int j=0; j<4; j++){\n\t\t\t\textractedVoxels[i][j]=roi[i][j];\n\t\t\t}\n\t\t}\n\t\treturn extractedVoxels;\n\t}", "@Test\n\tpublic void testGetNDimensions() {\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\",st);\n\t\tip.setDimensions(1,1,1);\n\t\tassertEquals(2,ip.getNDimensions());\n\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(3,ip.getNDimensions());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(3,ip.getNDimensions());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(3,ip.getNDimensions());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(4,ip.getNDimensions());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(5,ip.getNDimensions());\n\t}", "stack() {\n arr = (E[]) new Object[size];\n }", "public static void main(String[] args) throws Exception {\n StackUsingArrays stack=new StackUsingArrays(5);\n \n for(int i=1;i<=5;i++) {\n \tstack.push(i*10);\n \tstack.display();\n }\n \n System.out.println(stack.size());\n \n //stack.push(60);\n System.out.println(stack.top());\n \n// while(!stack.isEmpty()) {\n// \tstack.display();\n// \tstack.pop();\n// \t\n// }\n// \n// stack.pop();\n\t}", "public CustomStack() {\n this.myCustomStack = new Object[10]; //array starts with 10 spaces, all empty\n numElements = 0; //stack starts with zero elements\n\n }", "private void expand(){\n \n int newSize = size + expand;\n E[] tempArray = (E[]) new Object[newSize];\n for(int n = 0; n < size; n++){\n tempArray[n] = stackArray[n]; \n }\n stackArray = tempArray;\n size = newSize;\n }", "@Test\n\tpublic void testGetImageStackSize() {\n\n\t\tip = new ImagePlus();\n\t\tassertEquals(1,ip.getImageStackSize());\n\n\t\tst = new ImageStack(2,2);\n\t\tst.addSlice(\"GrandmaKat\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"GrandpaHuff\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"UncleRemus\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"AuntRomulus\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"BabyAchilles\", new byte[] {0,8,4,1});\n\n\t\tip.setStack(\"CarribeanDreams\", st);\n\t\tassertEquals(5,ip.getImageStackSize());\n\n\t\tst.deleteLastSlice();\n\t\tassertEquals(4,ip.getImageStackSize());\n\t}", "@Test\n\tpublic void testSetStackStringImageStack() {\n\t\tip = new ImagePlus();\n\t\tst = new ImageStack(2,2);\n\t\ttry {\n\t\t\tip.setStack(\"Gizzard\",st);\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\t// not a virt stack and null imagearray (impossible) or 1st entry of imagearray is null (possible) throw illArgExc\n\t\tip = new ImagePlus();\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3,14); // 14 empty slices sized 1x3\n\t\ttry {\n\t\t\tip.setStack(\"14Plates\",st);\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\t// otherwise it runs through\n\t\t// ... doesn't seem like there is anything to test\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 3;\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3);\n\t\tst.addSlice(\"Slice1\",proc);\n\t\tip.setStack(\"SuperStack\",st);\n\t\tassertEquals(st,ip.getStack());\n\t}", "@Override\n public void push(E z){\n if(isFull()){\n expand();\n System.out.println(\"Stack expanded by \"+ expand+ \" cells\");\n }\n stackArray[count] = z;\n count++;\n }", "static void stackPush(Stack<Integer> stack)\r\n\t{\r\n\t\tfor(int i=0;i<5;i++)\r\n\t\t{\r\n\t\t\tstack.push(i*5);\r\n\t\t}\r\n\t\tSystem.out.println(\"Printing the stack value which is push:\");\r\n\t\tSystem.out.println(\"Push :\"+stack +\"\\nsize of stack: \"+ stack.size());\r\n\t}", "public Stacked(int size){\n this.size = size;\n count = 0;\n expand = 5;\n stackArray = (E[]) new Object[size];\n }", "private void expandCapacity()\r\n {\r\n T[] larger = (T[])(new Object[stack.length*2]);\r\n \r\n for (int index=0; index < stack.length; index++)\r\n larger[index] = stack[index];\r\n \r\n stack = larger;\r\n }", "private void ensureCapacity(){\n if(topIndex >= stack.length - 1){\n int newLength = 2 * stack.length;\n stack = Arrays.copyOf(stack, newLength);\n }\n }", "private void resizeArray() {\n stackArray = Arrays.copyOf(stackArray, stackArray.length * 2 + 1);\n }", "@Test\n\tpublic void testSetStackImageStackIntIntInt() {\n\t\tst = new ImageStack(1,2,24); // 24 slices of 1x2 images\n\t\tip = new ImagePlus();\n\n\t\tfor (int chan = 0; chan < 9; chan++)\n\t\t\tfor (int slice = 0; slice < 9; slice++)\n\t\t\t\tfor (int frame = 0; frame < 9; frame++)\n\t\t\t\t\tif (chan*slice*frame != 24)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tip.setStack(st,chan,slice,frame);\n\t\t\t\t\t\t\tfail();\n\t\t\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\t\t\tassertTrue(true);\n\t\t\t\t\t\t}\n\n\t\t// otherwise input dimensions match\n\t\t// .. delegates to setStack() - tested earlier\n\t\t// so just need to test that title did not change\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 2;\n\t\tip.setTitle(\"AlertAlert\");\n\t\tst = new ImageStack(1,2,null); // 1x2 images\n\t\tfor (int i = 0; i < 24; i++)\n\t\t\tst.addSlice(\"\"+i, new byte[] {1,2});\n\t\tip.setStack(st,2,3,4);\n\t\tassertEquals(\"AlertAlert\",ip.getTitle());\n\t}", "public ArrayStack(){\r\n\t\tstack= new Object[DEFAULT_SIZE];\r\n\t\t}", "private void expandArray() {\r\n//\t\tSystem.out.println(\"Expanding: current capacity \" + capacity); //Used for debugging\r\n\t\tcapacity = 2 * capacity;\r\n\t\tE[] temp = (E[]) new Object[capacity];\r\n\t\tfor (int i = 0; i < t + 1; i++)\r\n\t\t\ttemp[i] = stack[i];\r\n\t\tstack = temp;\r\n\t}", "@Test\r\n public void testStackstack() {\r\n StackArrayList<Integer> stack = new StackArrayList<Integer>();\r\n\r\n stack.push(1);\r\n stack.push(2);\r\n stack.push(3);\r\n stack.push(4);\r\n stack.push(5);\r\n\r\n assertEquals(5, stack.peek());\r\n assertEquals(5, stack.pop());\r\n assertEquals(4, stack.size());\r\n }", "@Test\n public void testStack() {\n DatastructureTest.STACK.push(3);\n DatastructureTest.STACK.push(7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == -1);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == -1);\n }", "Stack_Using_Arrays(){\n\t\ttop=-1;\n\t}", "public FixedSizeArrayStack() {\r\n\t\tthis(CAPACITY);\r\n\t}", "public LC155_MinStack2() {\n\t\tdata = new Stack<Long>();\n\t}", "public ArrayStack() {\n\t\ttop = 0;\t\t\t\t\t\t\t\t\t\t// points to the first element. Since empty, points 0\n\t\tstack = (T[]) (new Object[DEFAULT_CAPACITY]);\t// Casting to whatever is our desired element.\n\t}", "@SubL(source = \"cycl/stacks.lisp\", position = 1818) \n public static final SubLObject create_stack() {\n return clear_stack(make_stack(UNPROVIDED));\n }", "public void doubleSize()\r\n\t{\r\n \t\tint newSize = Stack.length * 2;\r\n\t Stack = Arrays.copyOf(Stack, newSize);\r\n\t}", "@Test\n\tpublic void testGetStack() {\n\t\tip = new ImagePlus();\n\t\tst = ip.getStack();\n\t\tassertEquals(1,ip.getStackSize());\n\n\t\t// if stack == null and not proc == null and no info string\n\t\t// do stuff and setRoi() if needed\n\t\tproc = new ByteProcessor(1,1,new byte[] {22}, null);\n\t\tip = new ImagePlus(\"CareBearStation\",proc);\n\t\tst = ip.getStack();\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertNull(st.getSliceLabel(1));\n\t\tassertEquals(proc.getColorModel(),st.getColorModel());\n\t\tassertEquals(proc.getRoi(),st.getRoi());\n\n\t\t// if stack == null and not proc == null and yes info string\n\t\t// do stuff and setRoi() if needed\n\t\tproc = new ByteProcessor(1,1,new byte[] {22}, null);\n\t\tip = new ImagePlus(\"CareBearStation\",proc);\n\t\tip.setProperty(\"Info\",\"SnapDragon\");\n\t\tst = ip.getStack();\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertEquals(\"CareBearStation\\nSnapDragon\",st.getSliceLabel(1));\n\t\tassertEquals(proc.getColorModel(),st.getColorModel());\n\t\tassertEquals(proc.getRoi(),st.getRoi());\n\n\t\t// if not stack == null\n\t\t// do stuff and setRoi() if needed\n\t\tproc = new ByteProcessor(1,1,new byte[] {22}, null);\n\t\tip = new ImagePlus(\"CareBearStation\",proc);\n\t\tst = new ImageStack(1,1);\n\t\tst.addSlice(\"Fixed\", proc);\n\t\tst.addSlice(\"Crooked\", proc);\n\t\tip.setStack(\"Odds\",st);\n\t\tst = ip.getStack();\n\t\tassertEquals(2,ip.getStackSize());\n\t\tassertEquals(proc.getColorModel(),st.getColorModel());\n\t\tassertEquals(proc.getRoi(),st.getRoi());\n\t}", "public void pushMatrix() {\n buffer(() -> kernelStack = kernelStack.extend(kernel.get().asArray()));\n }", "@Test\n public void testPushAndPopC() {\n\n System.out.println(\"pushB - All Nulls\");\n String elementOne = null;\n String elementTwo = null;\n String elementThree = null;\n String elementFour = null;\n\n //Stack<String> instance = new StackArrayImpl();\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n instance.push(elementOne);\n instance.push(elementTwo);\n instance.push(elementThree);\n instance.push(elementFour);\n\n int fourSize = instance.size();\n assertEquals(fourSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String resultFour = instance.pop();\n String resultThree = instance.pop();\n String resultTwo = instance.pop();\n String resultOne = instance.pop();\n\n assertEquals(elementOne, resultOne);\n assertEquals(elementTwo, resultTwo);\n assertEquals(elementThree, resultThree);\n assertEquals(elementFour, resultFour);\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "private static Object[] formatShapedGrid(Object[] itemStacksRaw, int width, int height) {\n int rawIndex = 0;\n Object[] itemStacks = new Object[9];\n for(int y = 0; y < height; y++) {\n for(int x = 0; x < width; x++) {\n itemStacks[y * 3 + x] = itemStacksRaw[rawIndex++];\n if(rawIndex >= itemStacksRaw.length) break;\n }\n if(rawIndex >= itemStacksRaw.length) break;\n }\n return itemStacks;\n }", "public _30_min_stack() {\n data = new Stack<>();\n help = new Stack<>();\n }", "public myStackUsingDynamicArray(){\n A = new dynamicArray();\n top=-1;\n bottom=-1;\n localSize=0;\n //Othe initializations to be done by student\n }", "@Test\n public void pushOnStackTest_Correct(){\n assertEquals(stack.getTop().getData() , stack.getStack().returnFirst());\n }", "@Override\n public ItemStack decrStackSize(int par1, int par2) {\n if (this.stack[par1] != null)\n {\n ItemStack var3;\n\n if (this.stack[par1].stackSize <= par2)\n {\n var3 = this.stack[par1];\n this.stack[par1] = null;\n return var3;\n }\n else\n {\n var3 = this.stack[par1].splitStack(par2);\n\n if (this.stack[par1].stackSize == 0)\n {\n this.stack[par1] = null;\n }\n\n return var3;\n }\n }\n else\n {\n return null;\n }\n }", "public void StackTest() {\n\tSystem.out.println( \"\\nQuestion (8) Stack Test\" );\n\tSystem.out.println( \"-----------------------\");\n\tStack s = new Stack(3);\n\tSystem.out.println( \"push 0\");\n\ts.push(0);\n\tSystem.out.println( \"push 1\");\n\ts.push(1);\n\tSystem.out.println( \"push 2\");\n\ts.push(2);\n\tSystem.out.println( \"try to push 3\");\n\ts.push(3); // error here pushing beyond stack depth, will print error messgae\n\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() ); \n\tSystem.out.println( \"try to pop \" ); // error here poping off empty stack\n\ts.pop();\n }", "public int getSize(){\n return this.stack.size();\n }", "public MinStack2() {\r\n\t\t\tdata = new Stack<>();\r\n\t\t\thelper = new Stack<>();\r\n\t\t}", "private void initStackPanes() {\n\t\tstackPanes=new ArrayList<StackPane>();\n\t\tstackPanes.add(c0);\n\t\tstackPanes.add(c1);\n\t\tstackPanes.add(c2);\n\t\tstackPanes.add(c3);\n\t\tstackPanes.add(c4);\n\t\tstackPanes.add(c5);\n\t\tstackPanes.add(c6);\n\t\tstackPanes.add(c7);\n\t\tstackPanes.add(c8);\n\t\tstackPanes.add(c9);\n\t\tstackPanes.add(c10);\n\t\tstackPanes.add(c11);\n\t\tstackPanes.add(c12);\n\t\tstackPanes.add(c13);\n\t\tstackPanes.add(c14);\n\t\tstackPanes.add(c15);\n\t\tstackPanes.add(c16);\n\t\tstackPanes.add(c17);\n\t\tstackPanes.add(c18);\n\t\tstackPanes.add(c19);\n\t\tstackPanes.add(c20);\n\t\tstackPanes.add(c21);\n\t\tstackPanes.add(c22);\n\t\tstackPanes.add(c23);\n\t\tstackPanes.add(c24);\n\t\tstackPanes.add(c25);\n\t\tstackPanes.add(c26);\n\t\tstackPanes.add(c27);\n\t\tstackPanes.add(c28);\n\t\tstackPanes.add(c29);\n\t\tstackPanes.add(c30);\n\t\tstackPanes.add(c31);\n\t\tstackPanes.add(c32);\n\t\tstackPanes.add(c33);\n\t\tstackPanes.add(c34);\n\t\tstackPanes.add(c35);\n\t\tstackPanes.add(c36);\n\t\tstackPanes.add(c37);\n\t\tstackPanes.add(c38);\n\t\tstackPanes.add(c39);\n\t\tstackPanes.add(c40);\n\t\tstackPanes.add(c41);\n\t\tstackPanes.add(c42);\n\t\tstackPanes.add(c43);\n\t\tstackPanes.add(c44);\n\t\tstackPanes.add(c45);\n\t\tstackPanes.add(c46);\n\t\tstackPanes.add(c47);\n\t}", "@Override\n \tpublic Object[] getImageArray() {\n \t\t// Release 3 times an RGB stack with this dimensions.\n \t\tlayers.get(0).getProject().getLoader().releaseToFit((long)(getSize() * getWidth() * getHeight() * 4 * 3));\n \t\tfinal Object[] ia = new Object[getSize()];\n \t\tfor (int i=0; i<ia.length; i++) {\n \t\t\tia[i] = getProcessor(i+1).getPixels(); // slices 1<=slice<=n_slices\n \t\t}\n \t\treturn ia;\n \t}", "Stack(Recycler<T> parent, Thread thread, int maxCapacity, int maxSharedCapacityFactor, int ratioMask, int maxDelayedQueues)\r\n/* 408: */ {\r\n/* 409:440 */ this.parent = parent;\r\n/* 410:441 */ this.threadRef = new WeakReference(thread);\r\n/* 411:442 */ this.maxCapacity = maxCapacity;\r\n/* 412:443 */ this.availableSharedCapacity = new AtomicInteger(Math.max(maxCapacity / maxSharedCapacityFactor, Recycler.LINK_CAPACITY));\r\n/* 413:444 */ this.elements = new Recycler.DefaultHandle[Math.min(Recycler.INITIAL_CAPACITY, maxCapacity)];\r\n/* 414:445 */ this.ratioMask = ratioMask;\r\n/* 415:446 */ this.maxDelayedQueues = maxDelayedQueues;\r\n/* 416: */ }", "protected static char[] expand(char[] stack) {\n char[] newStack = new char[stack.length * 2];\n System.arraycopy(stack, 0, newStack, 0, stack.length);\n return newStack;\n }", "@Test\n public void testPushAndPopD() {\n System.out.println(\"popC - Out of Order\");\n\n String elementOne = \"Bill\";\n String elementTwo = \"Steve\";\n String elementThree = \"Tim\";\n String elementFour = \"Dave\";\n\n //Stack<String> instance = new StackArrayImpl();\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n instance.push(elementOne);\n instance.push(elementTwo);\n instance.push(elementThree);\n\n int fourSize = instance.size();\n assertEquals(fourSize, 3);\n assertEquals(instance.isEmpty(), false);\n\n String resultThree = instance.pop();\n String resultTwo = instance.pop();\n\n instance.push(elementFour);\n String resultFour = instance.pop();\n\n String resultOne = instance.pop();\n\n assertEquals(elementOne, resultOne);\n assertEquals(elementTwo, resultTwo);\n assertEquals(elementThree, resultThree);\n assertEquals(elementFour, resultFour);\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "private void fillPRStack() {\n for (int i = 0; i < PRToVR.length - 1; i++) {\n PRStack.push(i);\n }\n }", "public interface Stack<E> {\r\n \r\n /** \r\n * Pre: Se ingresa el dato\r\n * @param data se ingresa un dato para agregar al Vector\r\n * Post: Se guarda el dato en Stack\r\n */\r\n public void push(E data);\r\n\r\n /** \r\n * Pre: Estan todos los datos en el Stack\r\n * @return E se regresa un item.\r\n * Post: Se regresa y elimina un dato del Stack\r\n */\r\n public E pop();\r\n\r\n /** \r\n * Pre: Se encuentra el Stack con sus datos\r\n * @return E se regresa cualquier tipo de dato\r\n * @throws EmptyStackException regresa un error\r\n * Post: Se regresa el dato sobre la lista\r\n */\r\n public E peek();\r\n\r\n /** \r\n * Pre:Se encuentra el Stack\r\n * @return boolean se regresa un valor True o False\r\n * Post: Si el Stack se encuentra vacio este regresa True\r\n */\r\n public boolean empty();\r\n\r\n /** \r\n * Pre:Se encuentra el Stack \r\n * @return int se regrea cualquier numero\r\n * Post: Se devuelve el numero de objetos que tiene el Stack\r\n */\r\n public int size();\r\n\r\n}", "public void testMyStack() {\n\t\tMyStack<String> s = new MyStack<String>();\n\t\ts.push(\"1\");\n\t\ts.push(\"2\");\n\t\ts.push(\"3\");\n\t\ts.pop();\n\t\ts.push(\"4\");\n\t\ts.toString();\n\t\tSystem.out.println(\"MyStack size is: \" + s.size());\n\t}", "public MinStack1() {\r\n stack = new Stack<>();\r\n }", "@Test\n public void testStackInteger() {\n DatastructureTest.INTSTACK.push(3);\n DatastructureTest.INTSTACK.push(7);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == 7);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == 7);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == 3);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == 3);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == -1);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == -1);\n }", "@Test\n public void testStackCodeExamples() {\n logger.info(\"Beginning testStackCodeExamples()...\");\n\n // Allocate an empty stack\n Stack<String> stack = new Stack<>();\n logger.info(\"Start with an empty stack: {}\", stack);\n\n // Push a rock onto it\n String rock = \"rock\";\n stack.pushElement(rock);\n assert stack.getTop().equals(rock);\n logger.info(\"Push a rock on it: {}\", stack);\n\n // Push paper onto it\n String paper = \"paper\";\n stack.pushElement(paper);\n assert stack.getTop().equals(paper);\n logger.info(\"Push paper on it: {}\", stack);\n\n // Push scissors onto it\n String scissors = \"scissors\";\n stack.pushElement(scissors);\n assert stack.getTop().equals(scissors);\n assert stack.getSize() == 3;\n logger.info(\"Push scissors on it: {}\", stack);\n\n // Pop off the scissors\n assert stack.popElement().equals(scissors);\n assert stack.getSize() == 2;\n logger.info(\"Pop scissors from it: {}\", stack);\n\n // Pop off the paper\n assert stack.popElement().equals(paper);\n assert stack.getSize() == 1;\n logger.info(\"Pop paper from it: {}\", stack);\n\n // Pop off the rock\n assert stack.popElement().equals(rock);\n assert stack.isEmpty();\n logger.info(\"Pop rock from it: {}\", stack);\n\n logger.info(\"Completed testStackCodeExamples().\\n\");\n }", "public static List<int[]> getContainedPixels(MeshImageStack stack, DeformableMesh3D mesh){\n Box3D box = mesh.getBoundingBox();\n double[] lowI = stack.getImageCoordinates(box.low);\n double[] highI = stack.getImageCoordinates(box.high);\n\n InterceptingMesh3D picker = new InterceptingMesh3D(mesh);\n double[] xdirection = {1,0,0};\n\n int slices = stack.getNSlices();\n int w = stack.getWidthPx();\n int h = stack.getHeightPx();\n double center[] = new double[3];\n\n int sliceLow = (int)lowI[2];\n int sliceHigh = (int)highI[2];\n //verify\n sliceLow = sliceLow < 0 ? 0 : sliceLow;\n sliceHigh = sliceHigh <= slices ? sliceHigh : slices;\n\n int jlo = (int)lowI[1];\n int jhi = (int)highI[1];\n jlo = jlo < 0 ? 0 : jlo;\n jhi = jhi <= h ? jhi : h;\n\n int xlo = (int)lowI[0];\n int xhi = (int)highI[0];\n xlo = xlo < 0 ? 0: xlo;\n xhi = xhi > w ? w : xhi;\n List<int[]> contained = new ArrayList<>();\n for(int slice = sliceLow; slice<sliceHigh; slice++){\n\n center[2] = slice;\n\n\n for(int j = jlo; j<jhi; j++){\n\n int offset = j*w;\n center[1] = j;\n\n List<Intersection> sections = picker.getIntersections(stack.getNormalizedCoordinate(center), xdirection);\n if(sections.size()==0){\n //No intersections. No points inside.\n continue;\n }\n scanDirty(sections);\n sections.sort((a,b)->Double.compare(a.location[0], b.location[0]));\n\n boolean startInside = false;\n double count = 0;\n double[] boundaries = new double[sections.size()+1];\n\n //the number of boundaries that switch the state from inside to outside.\n int valid = 0;\n double lowestEntry = Double.MAX_VALUE;\n double highestExit = -Double.MAX_VALUE;\n\n for(int k = 0; k<sections.size(); k++){\n\n double bound = stack.getImageCoordinates(sections.get(k).location)[0];\n\n boolean facingLeft = sections.get(k).surfaceNormal[0]<0;\n boolean facingRight = !facingLeft;\n //going through all interfaces, and either going further in\n //or back out.\n if(facingLeft){\n count++;\n if(bound < lowestEntry){\n lowestEntry = bound;\n }\n } else{\n count--;\n if(bound > highestExit){\n highestExit = bound;\n }\n }\n if(bound>0) {\n //check if it is actually a boundary\n if ( count==1 && facingLeft ) {\n //boundary entering region.\n if( valid == 0){\n startInside = false;\n }\n boundaries[valid] = bound;\n valid++;\n } else if (count==0 && facingRight) {\n //stepped out.\n if( valid == 0){\n startInside = true;\n }\n boundaries[valid] = bound;\n valid++;\n }\n\n }\n }\n\n boolean inside = startInside;\n\n\n if(lowestEntry < lowI[0]){\n System.out.println(\"Topo Error: lowest entry is less than bounding box!\");\n }\n if( (int)highestExit > highI[0] ){\n System.out.println(\"Topo Error: highest exit is outside of bounding box!\");\n }\n\n if(startInside && lowestEntry>0){\n System.out.println(\"Topo Error: Lower bound above zero but mesh starts inside.\");\n }\n\n boundaries[valid] = w;\n\n //This isn't necessarily true.\n //lowestIntersection >= lowI[0] and highestIntersection <= highI[0]\n boolean finishesOutsideImage = lowestEntry <= (w-1) && highestExit >= (w - 1) ;\n\n int current = 0;\n\n\n for(int p = 0; p<w; p++){\n if(p>boundaries[current]){\n //switch.\n current++;\n inside = !inside;\n }\n if(inside){\n contained.add(new int[]{p, j, slice});\n }\n }\n if(finishesOutsideImage && !inside){\n System.out.println(\"topography warning: bounds outside image, but not inside the shape at end\");\n }\n\n if(!finishesOutsideImage && inside){\n System.out.println(\"Inconsistent bounding box: End of image is out of bounds, but state is inside the shape\");\n System.out.println(Arrays.toString(lowI) + \" [~] \" + Arrays.toString(highI));\n }\n\n }\n\n }\n return contained;\n }", "protected abstract StackManipulation preparation();", "public int getStackSize() {\n\t\treturn stackSize;\n\t}", "boolean isFull(Stack stack){\n\t\tif(stack.getStackSize() >= 100) return true;\r\n\t\telse return false;\t\r\n\t}", "private void showStacksVisualization() {\n\t\tsetVisualization(new StackVisualization(rootComposite, controller, checklist));\n\t}", "public StackUnderflowException(){\n super(\"Can not pop from an empty stack\");\n }", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\r\n{\r\n stateptr = -1;\r\n val_init();\r\n return true;\r\n}", "final boolean init_stacks()\n {\n stateptr = -1;\n val_init();\n return true;\n }", "@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Fixed Stack\");\r\n\t\t\r\n\t}", "@Override\n\tpublic ItemStack decrStackSize(int index, int count) {\n\t\treturn null;\n\t}", "public GMap<Integer, Stack> getStacks();", "public ArrayStackTest(int capacity){\n\t\tstore = (E[]) new Object[capacity];\n\t\ttop = -1;\n\t}", "public ArrayStack (int initialCapacity)\r\n {\r\n top = 0;\r\n stack = (T[]) (new Object[initialCapacity]);\r\n }", "public void deleteStack(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // if stack is present\n topOfStack=-1;\n arr=null;\n System.out.println(\"Stack deleted successfully\");\n }", "@Override\r\n\tpublic int size() {\r\n\t\treturn stack.length;\r\n\t}", "private static ArrayStack stackOfPatients() {\r\n Patient p0 = new Patient(\"Jerry Smith\", 3);\r\n Patient p1 = new Patient(\"Morty Smith\", 9);\r\n Patient p2 = new Patient(\"Saint Petes\", 1);\r\n Patient p3 = new Patient(\"Anner Bananer\", 1);\r\n Patient p4 = new Patient(\"Bruce Wayne\", 4);\r\n Patient p5 = new Patient(\"Thomas Muller\", 8);\r\n Patient p6 = new Patient(\"Mario Gotze\", 6);\r\n Patient p7 = new Patient(\"Philip Lahm\", 5);\r\n Patient p8 = new Patient(\"Sir Tiny Eyes\", 3);\r\n Patient p9 = new Patient(\"Celery Man\", 10);\r\n\r\n ArrayStack<Patient> patientStack = new ArrayStack<>();\r\n patientStack.push(p0);\r\n patientStack.push(p6);\r\n patientStack.push(p5);\r\n patientStack.push(p3);\r\n patientStack.push(p8);\r\n patientStack.push(p4);\r\n patientStack.push(p7);\r\n patientStack.push(p1);\r\n patientStack.push(p2);\r\n patientStack.push(p9);\r\n\r\n return patientStack;\r\n\r\n }", "public DoubleElementMinStack() {\n stack = new Stack<>();\n }", "private void increaseStackSize(int sizeIncrease) {\n Object [] newStack = new Object[stack.length + sizeIncrease];\n copyArray(newStack, stack);\n stack = newStack;\n }", "public void print_stacks(ArrayList<ArrayList<Stack<Integer>>> stacks) {\n\t\tfor (int k=0; k<size*size; k++) {\n\t\t\tSystem.out.println(\"----------------------------------------\\n\\tRow \"+k+\"'s Possible Values\\n----------------------------------------\");\n\t\t\tfor (int l=0; l<size*size; l++) {\n\t\t\t\tSystem.out.print(\"col \"+l+\" |\");\n\t\t\t\tif (!stacks.get(k).get(l).empty()) System.out.println(stacks.get(k).get(l));\n\t\t\t\telse System.out.println();\t\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testModuloStackSize() {\n MainPanel mp = new MainPanel();\n ProgramArea pa = new ProgramArea();\n ProgramStack ps = new ProgramStack();\n\n ps.push(10);\n ps.push(3);\n\n ProgramExecutor pe = new ProgramExecutor(mp, ps, pa);\n\n pe.modulo();\n ps.pop();\n\n Assert.assertEquals(\"[]\", ps.toString());\n }", "public static Boolean isZStack(String slideRef, String... varargs) {\n\t\t// setting the default value when arguments' value is omitted\n\t\tString sessionID = varargs.length > 0 ? varargs[0] : null;\n\t\t// Determine whether a slide is a z-stack or not\n\t\treturn isMultiLayer(slideRef, sessionID);\n\t}", "public String getStack();", "void dump_stacks(int count)\n{\nint i;\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\n for (i=0;i<count;i++)\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\n System.out.println(\"======================\");\n}", "void dump_stacks(int count)\n{\nint i;\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\n for (i=0;i<count;i++)\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\n System.out.println(\"======================\");\n}", "void dump_stacks(int count)\n{\nint i;\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\n for (i=0;i<count;i++)\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\n System.out.println(\"======================\");\n}", "public MyStack2() {\n q1 = new ArrayDeque<>();\n q2 = new ArrayDeque<>();\n }", "public static void main(String[] args) {\n// System.out.println(\"as.getSize() == \" + as.getSize());\n// as.pop();\n// System.out.println(\"as.pop() == \" + as);\n// System.out.println(\"as.peek() == \" + as.peek());\n// as.push(\"17\");\n// System.out.println(as);\n\n LinkedListStack<Integer> stack = new LinkedListStack<>();\n\n for(int i = 0 ; i < 5 ; i ++){\n stack.push(i);\n System.out.println(stack);\n }\n\n stack.pop();\n System.out.println(stack);\n\n }", "public ArrayStack()\r\n {\r\n top = 0;\r\n stack = (T[])(new Object[DEFAULT_CAPACITY]);\r\n }", "void dump_stacks(int count)\r\n{\r\nint i;\r\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\r\n for (i=0;i<count;i++)\r\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\r\n System.out.println(\"======================\");\r\n}", "public MinStack_155() {\n\t\tmin= new Stack<Integer>();\n\t\tstack= new Stack<Integer>();\n\t}", "public MinStack() {\n dataStack=new Stack<>();\n minStack=new Stack<>();\n }", "public MinStack() {\n data = new ArrayDeque<>();\n helper = new ArrayDeque<>();\n }", "public int getSize() {\r\n\t\treturn stack.size();\r\n\t}", "@Test\r\n public void testStackListaEncadenada() {\r\n StackListaEncadenada<Integer> stack = new StackListaEncadenada<Integer>();\r\n\r\n stack.push(1);\r\n stack.push(2);\r\n stack.push(3);\r\n stack.push(4);\r\n stack.push(5);\r\n\r\n assertEquals(5, stack.peek());\r\n assertEquals(5, stack.pop());\r\n assertEquals(4, stack.size());\r\n }", "public static void main(String[] args) {\r\n\r\n\t\tArrayStack arrst = new ArrayStack(5);\r\n\t\tIntStream.range(0, 5).forEach(arrst::push);\r\n\t\tSystem.out.println(\"Response of peek \" + arrst.peek());\r\n\t\tSystem.out.println(\"Response of pop\" + arrst.pop());\r\n\t\tSystem.out.println(\"push one random number in the middle\");\r\n\t\tarrst.push(10);\r\n\t\tSystem.out.println(\"printing stack after first pop\");\r\n\t\tarrst.display();\r\n\r\n\t\tIntStream.range(0, arrst.size()).forEach(i -> arrst.pop());\r\n\r\n\t\tSystem.out.println(\"isEmpty after poping all the elements ???\" + arrst.isEmpty());\r\n\r\n\t\tarrst.display();\r\n\r\n\t}", "@Override void apply(Env e) {\n // stack is [ ..., rhs, lhs ]\n Key k = Key.make(e.popStr());\n Frame fr;\n if( e.isAry() ) {\n Frame f = e.popAry();\n fr = new Frame(k, f.names(), f.vecs());\n } else if( e.isNum() ) fr = new Frame(k, null, new Vec[]{Vec.makeCon(e.popDbl(), 1)});\n else if( e.isStr() ) {\n Vec v = Vec.makeZero(1);\n v.setDomain(new String[]{e.popStr()});\n fr = new Frame(k,new String[]{\"C1\"}, new Vec[]{v});\n } else throw new IllegalArgumentException(\"Don't know what to do with: \"+e.peek().getClass());\n e.lock(fr);\n e.put(k.toString(), fr);\n e.push(new ValFrame(fr, false /*isGlobalSet*/));\n }", "public MinValueStack(){\r\n stack1 = new Stack<T>();\r\n stack2 = new Stack<T>();\r\n size = 0;\r\n }", "ArrayStack() {\r\n\t\tstack = new int[10];\r\n\t\ttop = 0;\r\n\t}" ]
[ "0.65293705", "0.6474458", "0.6356223", "0.62178344", "0.61261034", "0.60978824", "0.60806143", "0.60777086", "0.59847796", "0.59495294", "0.5885759", "0.58852845", "0.5856733", "0.58551866", "0.5793647", "0.57897717", "0.5748476", "0.57440466", "0.5737041", "0.57199854", "0.5704051", "0.56978506", "0.5685294", "0.5651567", "0.564833", "0.56395304", "0.56369966", "0.5621828", "0.56013125", "0.5579416", "0.55735683", "0.55589634", "0.5534338", "0.5511904", "0.5491521", "0.5479934", "0.5462661", "0.5456565", "0.5445538", "0.5427973", "0.5422435", "0.54073894", "0.53868383", "0.5375859", "0.5374216", "0.5373396", "0.53690284", "0.5364587", "0.5364386", "0.5355196", "0.53189003", "0.5303799", "0.5293992", "0.5289003", "0.527292", "0.52700037", "0.52410585", "0.52363586", "0.5231455", "0.5222065", "0.521814", "0.52166486", "0.52149546", "0.52148914", "0.520913", "0.52062577", "0.52062577", "0.52062577", "0.5203129", "0.5199019", "0.51925194", "0.517531", "0.51658845", "0.51609176", "0.5149917", "0.51479673", "0.51474696", "0.5146995", "0.5139386", "0.5124396", "0.51239145", "0.51216084", "0.51105416", "0.5104585", "0.51035494", "0.51035494", "0.51035494", "0.5102216", "0.5099171", "0.5093709", "0.5092578", "0.50922763", "0.5084851", "0.5084263", "0.5082549", "0.50824785", "0.5079363", "0.5077408", "0.5077108", "0.50678974" ]
0.59815896
9
stack does not match dimensions
@Test public void testGetNSlices() { ip = new ImagePlus("Groening", (Image)null); st = new ImageStack(2,3); st.addSlice("silly",new byte[] {1,2,3,4,5,6}); ip.setStack("AyeCarumba",st); ip.setDimensions(1,1,3); assertEquals(1,ip.getNSlices()); ip.setDimensions(1,3,1); assertEquals(1,ip.getNSlices()); ip.setDimensions(3,1,1); assertEquals(1,ip.getNSlices()); // stack matches dimensions ip = new ImagePlus("Agent007", (Image)null); st = new ImageStack(2,3); st.addSlice("suave",new byte[] {1,2,3,4,5,6}); st.addSlice("debonair",new byte[] {1,2,3,4,5,6}); st.addSlice("sophisticated",new byte[] {1,2,3,4,5,6}); st.addSlice("handsome",new byte[] {1,2,3,4,5,6}); st.addSlice("humorous",new byte[] {1,2,3,4,5,6}); st.addSlice("aloof",new byte[] {1,2,3,4,5,6}); st.addSlice("calm",new byte[] {1,2,3,4,5,6}); st.addSlice("composed",new byte[] {1,2,3,4,5,6}); ip.setStack("MoneyPenny", st); // one dim > 1 ip.setDimensions(1,1,8); assertEquals(1,ip.getNSlices()); ip.setDimensions(1,8,1); assertEquals(8,ip.getNSlices()); ip.setDimensions(8,1,1); assertEquals(1,ip.getNSlices()); // two dims > 1 ip.setDimensions(1,2,4); assertEquals(2,ip.getNSlices()); ip.setDimensions(1,4,2); assertEquals(4,ip.getNSlices()); ip.setDimensions(2,1,4); assertEquals(1,ip.getNSlices()); ip.setDimensions(2,4,1); assertEquals(4,ip.getNSlices()); ip.setDimensions(4,1,2); assertEquals(1,ip.getNSlices()); ip.setDimensions(4,2,1); assertEquals(2,ip.getNSlices()); // three dims > 1 ip.setDimensions(2,2,2); assertEquals(2,ip.getNSlices()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSetDimensions() {\n\n\t\t// empty stack\n\t\tip = new ImagePlus();\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(1,ip.getNSlices());\n\t\tassertEquals(ip.getStackSize(),ip.getNFrames());\n\n\t\t// stack but dimensions don't match\n\t\tip = new ImagePlus(\"Kerbam\",(Image)null);\n\t\tst = new ImageStack(2,2);\n\t\tst.addSlice(\"Oranges\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Apples\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Pears\", new byte[] {1,2,3,4});\n\t\tip.setStack(\"Kaboom\",st);\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(ip.getStackSize(),ip.getNSlices());\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// stack with matching dimensions\n\t\tip = new ImagePlus(\"Kerbam\",(Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"Oranges\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Apples\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Pears\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Quinces\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Kiwis\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Bananas\", new byte[] {1,2,3,4});\n\t\tip.setStack(\"Kaboom\",st);\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(2,ip.getNSlices());\n\t\tassertEquals(3,ip.getNFrames());\n\t}", "@Test\n\tpublic void testPush(){\n\t\tArrayIntStack stack = buildStack(4);\n\t\tassertEquals(4, stack.intCol.size());\n\t}", "void setStack(int[][][] add);", "@Test\n\tpublic void testGetNFrames() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(8,ip.getNFrames());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(4,ip.getNFrames());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(2,ip.getNFrames());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(4,ip.getNFrames());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(1,ip.getNFrames());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(2,ip.getNFrames());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNFrames());\n\t}", "public void resize(){\n Object[] old = myCustomStack;\n //resize array to be twice the size when the Stack is more than 3/4 full\n if(numElements > old.length * .75){\n Object[] resizedArr = new Object[old.length * 2];\n for(int i = 0; i < numElements; i++){\n resizedArr[i] = old[i];\n }\n myCustomStack = resizedArr;\n System.out.println(\"Array has been resized to twice the size. Array length: \" + myCustomStack.length);\n }\n //resize array to be half the size when the Stack is more than 1/4 empty\n else if(numElements < old.length * .25){\n Object[] resizedArr = new Object[old.length / 2];\n for(int i = 0; i < numElements; i++){\n resizedArr[i] = old[i];\n }\n myCustomStack = resizedArr;\n System.out.println(\"Array has been resized to half the size. Array length: \" + myCustomStack.length);\n }\n else{\n return;\n }\n }", "@Test\n\tpublic void testIsHyperStack() {\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,3);\n\t\tip.setOpenAsHyperStack(false);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs false, nDimensions > 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"oof\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,4);\n\t\tip.setOpenAsHyperStack(false);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs true, nDimensions <= 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,3);\n\t\tip.setOpenAsHyperStack(true);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs true, nDimensions > 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"oof\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,2,2);\n\t\tip.setOpenAsHyperStack(true);\n\t\tassertTrue(ip.isHyperStack());\n\t}", "Stack(int sizeYouWantYourDataStuctureToBe){\n stackArray = new int [sizeYouWantYourDataStuctureToBe];\n }", "@SuppressWarnings({\"unchecked\"})\n private void expandStack() {\n T[] newStack;\n \n newStack = (T[]) new Object[Array.getLength(this.elements) + 1];\n for( int i = 0; i < Array.getLength(this.elements); i++ )\n newStack[i] = this.elements[i];\n this.elements = newStack;\n }", "@Test\n\tpublic void testGetNChannels() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNChannels());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(8,ip.getNChannels());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(2,ip.getNChannels());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(2,ip.getNChannels());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(4,ip.getNChannels());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(4,ip.getNChannels());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNChannels());\n\t}", "protected static Object[] expand(Object[] stack) {\n Object[] newStack = new Object[stack.length * 2];\n System.arraycopy(stack, 0, newStack, 0, stack.length);\n return newStack;\n }", "public Stacked(){\n count = 0;\n stackArray = (E[]) new Object[START_CAP];\n }", "private void expandCapacity() {\n\t\tT[] larger = (T[]) (new Object[stack.length*2]);\t\t//double size of previous stack\n\t\t\n\t\tfor(int i = 0; i < stack.length; i++)\n\t\t\tlarger[i] = stack[i];\n\t\t\n\t\tstack = larger;\n\t}", "public int[][] extractVoxels(ImageStack stack){\n\t\tint stack_width = stack.getWidth();\n\t\tint stack_height = stack.getHeight();\n\t\tint stack_length = stack.getSize();\n\n\t\t// method will extract cone thath's been cutoff from the stack\n\t\t\n\t\tint cone_radius \t= (int)Math.round(this.r);\n\t\t//int cone_radius1 \t= (int)Math.round(this.r1);\n\t\tint cone_height\t\t= (int)Math.round(this.getH());\n\t\tint cone_limit\t\t= (int)Math.ceil(Math.sqrt(Math.pow(r1, 2)+Math.pow(this.getH(), 2)));\n\t\t\n\t\tif(cone_radius>cone_limit){\n\t\t\tcone_limit = cone_radius;\n\t\t}\n\t\t\n\t\t// center in pixel coordinates\n\t\tint[] centerPix = {(int)Math.round(this.x), (int)Math.round(this.y), (int)Math.round(this.z)};\n\t\t\n\t\t// define the range\n\t\tint startX = 1; if (centerPix[0]-cone_limit > 1) startX = centerPix[0]-cone_limit;\n\t\tint startY = 1; if (centerPix[1]-cone_limit > 1) startY = centerPix[1]-cone_limit;\n\t\tint startZ = 1; if (centerPix[2]-cone_limit > 1) startZ = centerPix[2]-cone_limit;\n\t\t\t\n\t\tint endX = stack_width; if (centerPix[0]+cone_limit < stack_width) endX = centerPix[0]+cone_limit;\n\t\tint endY = stack_height; if (centerPix[1]+cone_limit < stack_height) endY = centerPix[1]+cone_limit;\n\t\tint endZ = stack_length; if (centerPix[2]+cone_limit < stack_length) endZ = centerPix[2]+cone_limit;\n\n\t\tint count=0;\n\t\t// this consumes memory! - maybe not necessary to allocate here\n\t\tbyte[] pixels = new byte[stack_width*stack_height]; //storage for pixels from one layer\n\t\tint[][] roi = new int [2*cone_limit*2*cone_limit*2*cone_limit][4];//roi big enough to take cone at any orientation\n\t\t\n\t\tdouble[] b ={0, 0, 0}; \n\t\tdouble[] c ={0, 0, 0};\n\t\tdouble[] a ={0, 0, 0}; //this one will serve as unit h vector\n\t\ta[0] = h[0]/this.getH(); a[1] = h[1]/this.getH(); a[2] = h[2]/this.getH();\n\t\t\n\t\tTransf.cartesian(a[0], a[1], a[2], b, c);\n\t\t\n\t\tfor(int z_layer=startZ; z_layer<endZ; z_layer++){\n\t\t\tpixels = (byte[])stack.getPixels(z_layer);\n\t\t\tfor(int x_row=startX; x_row<endX; x_row++){\n\t\t\t\tfor(int y_col=startY; y_col<endY; y_col++){\n\t\t\t\t\t\n\t\t\t\t\tdouble point_h, point_r;\n\t\t\t\t\tdouble vx, vy, vz;\n\t\t\t\t\t\n\t\t\t\t\tvx = x_row-x; \n\t\t\t\t\tvy = y_col-y; \n\t\t\t\t\tvz = z_layer-z;\n\t\t\t\t\t\n\t\t\t\t\tpoint_h = vx*a[0]+vy*a[1]+vz*a[2]; \n\t\t\t\t\tpoint_r = Math.sqrt(Math.pow(vx*b[0]+vy*b[1]+vz*b[2], 2)+Math.pow(vx*c[0]+vy*c[1]+vz*c[2], 2));\n\t\t\t\t\t\n\t\t\t\t\tboolean isInCone = true;\n\t\t\t\t\tisInCone = (point_h<=cone_height) && (point_h>=0) && (point_r<= ((r1-r)/this.getH())*point_h+r);//\n\t\t\t\t\t\n\t\t\t\t\tif(isInCone){\n\t\t\t\t\t\troi[count][3] = pixels[x_row + stack_width * y_col] & 0xff; //int\n\t\t\t\t\t\troi[count][0] = x_row; \n\t\t\t\t\t\troi[count][1] = y_col; \n\t\t\t\t\t\troi[count][2] = z_layer;\n\t\t\t\t\t\tcount ++;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t// quite inefficient for memory to extract twice... but left it this way by now\n\t\tint[][] extractedVoxels = new int [count][4];\n\t\tfor(int i=0; i<count; i++){\n\t\t\tfor(int j=0; j<4; j++){\n\t\t\t\textractedVoxels[i][j]=roi[i][j];\n\t\t\t}\n\t\t}\n\t\treturn extractedVoxels;\n\t}", "@Test\n\tpublic void testGetNDimensions() {\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\",st);\n\t\tip.setDimensions(1,1,1);\n\t\tassertEquals(2,ip.getNDimensions());\n\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(3,ip.getNDimensions());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(3,ip.getNDimensions());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(3,ip.getNDimensions());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(4,ip.getNDimensions());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(5,ip.getNDimensions());\n\t}", "stack() {\n arr = (E[]) new Object[size];\n }", "public static void main(String[] args) throws Exception {\n StackUsingArrays stack=new StackUsingArrays(5);\n \n for(int i=1;i<=5;i++) {\n \tstack.push(i*10);\n \tstack.display();\n }\n \n System.out.println(stack.size());\n \n //stack.push(60);\n System.out.println(stack.top());\n \n// while(!stack.isEmpty()) {\n// \tstack.display();\n// \tstack.pop();\n// \t\n// }\n// \n// stack.pop();\n\t}", "public CustomStack() {\n this.myCustomStack = new Object[10]; //array starts with 10 spaces, all empty\n numElements = 0; //stack starts with zero elements\n\n }", "private void expand(){\n \n int newSize = size + expand;\n E[] tempArray = (E[]) new Object[newSize];\n for(int n = 0; n < size; n++){\n tempArray[n] = stackArray[n]; \n }\n stackArray = tempArray;\n size = newSize;\n }", "@Test\n\tpublic void testGetImageStackSize() {\n\n\t\tip = new ImagePlus();\n\t\tassertEquals(1,ip.getImageStackSize());\n\n\t\tst = new ImageStack(2,2);\n\t\tst.addSlice(\"GrandmaKat\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"GrandpaHuff\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"UncleRemus\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"AuntRomulus\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"BabyAchilles\", new byte[] {0,8,4,1});\n\n\t\tip.setStack(\"CarribeanDreams\", st);\n\t\tassertEquals(5,ip.getImageStackSize());\n\n\t\tst.deleteLastSlice();\n\t\tassertEquals(4,ip.getImageStackSize());\n\t}", "@Test\n\tpublic void testSetStackStringImageStack() {\n\t\tip = new ImagePlus();\n\t\tst = new ImageStack(2,2);\n\t\ttry {\n\t\t\tip.setStack(\"Gizzard\",st);\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\t// not a virt stack and null imagearray (impossible) or 1st entry of imagearray is null (possible) throw illArgExc\n\t\tip = new ImagePlus();\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3,14); // 14 empty slices sized 1x3\n\t\ttry {\n\t\t\tip.setStack(\"14Plates\",st);\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\t// otherwise it runs through\n\t\t// ... doesn't seem like there is anything to test\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 3;\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3);\n\t\tst.addSlice(\"Slice1\",proc);\n\t\tip.setStack(\"SuperStack\",st);\n\t\tassertEquals(st,ip.getStack());\n\t}", "@Override\n public void push(E z){\n if(isFull()){\n expand();\n System.out.println(\"Stack expanded by \"+ expand+ \" cells\");\n }\n stackArray[count] = z;\n count++;\n }", "static void stackPush(Stack<Integer> stack)\r\n\t{\r\n\t\tfor(int i=0;i<5;i++)\r\n\t\t{\r\n\t\t\tstack.push(i*5);\r\n\t\t}\r\n\t\tSystem.out.println(\"Printing the stack value which is push:\");\r\n\t\tSystem.out.println(\"Push :\"+stack +\"\\nsize of stack: \"+ stack.size());\r\n\t}", "public Stacked(int size){\n this.size = size;\n count = 0;\n expand = 5;\n stackArray = (E[]) new Object[size];\n }", "private void expandCapacity()\r\n {\r\n T[] larger = (T[])(new Object[stack.length*2]);\r\n \r\n for (int index=0; index < stack.length; index++)\r\n larger[index] = stack[index];\r\n \r\n stack = larger;\r\n }", "private void ensureCapacity(){\n if(topIndex >= stack.length - 1){\n int newLength = 2 * stack.length;\n stack = Arrays.copyOf(stack, newLength);\n }\n }", "private void resizeArray() {\n stackArray = Arrays.copyOf(stackArray, stackArray.length * 2 + 1);\n }", "@Test\n\tpublic void testSetStackImageStackIntIntInt() {\n\t\tst = new ImageStack(1,2,24); // 24 slices of 1x2 images\n\t\tip = new ImagePlus();\n\n\t\tfor (int chan = 0; chan < 9; chan++)\n\t\t\tfor (int slice = 0; slice < 9; slice++)\n\t\t\t\tfor (int frame = 0; frame < 9; frame++)\n\t\t\t\t\tif (chan*slice*frame != 24)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tip.setStack(st,chan,slice,frame);\n\t\t\t\t\t\t\tfail();\n\t\t\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\t\t\tassertTrue(true);\n\t\t\t\t\t\t}\n\n\t\t// otherwise input dimensions match\n\t\t// .. delegates to setStack() - tested earlier\n\t\t// so just need to test that title did not change\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 2;\n\t\tip.setTitle(\"AlertAlert\");\n\t\tst = new ImageStack(1,2,null); // 1x2 images\n\t\tfor (int i = 0; i < 24; i++)\n\t\t\tst.addSlice(\"\"+i, new byte[] {1,2});\n\t\tip.setStack(st,2,3,4);\n\t\tassertEquals(\"AlertAlert\",ip.getTitle());\n\t}", "public ArrayStack(){\r\n\t\tstack= new Object[DEFAULT_SIZE];\r\n\t\t}", "private void expandArray() {\r\n//\t\tSystem.out.println(\"Expanding: current capacity \" + capacity); //Used for debugging\r\n\t\tcapacity = 2 * capacity;\r\n\t\tE[] temp = (E[]) new Object[capacity];\r\n\t\tfor (int i = 0; i < t + 1; i++)\r\n\t\t\ttemp[i] = stack[i];\r\n\t\tstack = temp;\r\n\t}", "@Test\r\n public void testStackstack() {\r\n StackArrayList<Integer> stack = new StackArrayList<Integer>();\r\n\r\n stack.push(1);\r\n stack.push(2);\r\n stack.push(3);\r\n stack.push(4);\r\n stack.push(5);\r\n\r\n assertEquals(5, stack.peek());\r\n assertEquals(5, stack.pop());\r\n assertEquals(4, stack.size());\r\n }", "@Test\n public void testStack() {\n DatastructureTest.STACK.push(3);\n DatastructureTest.STACK.push(7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == -1);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == -1);\n }", "Stack_Using_Arrays(){\n\t\ttop=-1;\n\t}", "public FixedSizeArrayStack() {\r\n\t\tthis(CAPACITY);\r\n\t}", "public LC155_MinStack2() {\n\t\tdata = new Stack<Long>();\n\t}", "public ArrayStack() {\n\t\ttop = 0;\t\t\t\t\t\t\t\t\t\t// points to the first element. Since empty, points 0\n\t\tstack = (T[]) (new Object[DEFAULT_CAPACITY]);\t// Casting to whatever is our desired element.\n\t}", "@SubL(source = \"cycl/stacks.lisp\", position = 1818) \n public static final SubLObject create_stack() {\n return clear_stack(make_stack(UNPROVIDED));\n }", "public void doubleSize()\r\n\t{\r\n \t\tint newSize = Stack.length * 2;\r\n\t Stack = Arrays.copyOf(Stack, newSize);\r\n\t}", "@Test\n\tpublic void testGetStack() {\n\t\tip = new ImagePlus();\n\t\tst = ip.getStack();\n\t\tassertEquals(1,ip.getStackSize());\n\n\t\t// if stack == null and not proc == null and no info string\n\t\t// do stuff and setRoi() if needed\n\t\tproc = new ByteProcessor(1,1,new byte[] {22}, null);\n\t\tip = new ImagePlus(\"CareBearStation\",proc);\n\t\tst = ip.getStack();\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertNull(st.getSliceLabel(1));\n\t\tassertEquals(proc.getColorModel(),st.getColorModel());\n\t\tassertEquals(proc.getRoi(),st.getRoi());\n\n\t\t// if stack == null and not proc == null and yes info string\n\t\t// do stuff and setRoi() if needed\n\t\tproc = new ByteProcessor(1,1,new byte[] {22}, null);\n\t\tip = new ImagePlus(\"CareBearStation\",proc);\n\t\tip.setProperty(\"Info\",\"SnapDragon\");\n\t\tst = ip.getStack();\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertEquals(\"CareBearStation\\nSnapDragon\",st.getSliceLabel(1));\n\t\tassertEquals(proc.getColorModel(),st.getColorModel());\n\t\tassertEquals(proc.getRoi(),st.getRoi());\n\n\t\t// if not stack == null\n\t\t// do stuff and setRoi() if needed\n\t\tproc = new ByteProcessor(1,1,new byte[] {22}, null);\n\t\tip = new ImagePlus(\"CareBearStation\",proc);\n\t\tst = new ImageStack(1,1);\n\t\tst.addSlice(\"Fixed\", proc);\n\t\tst.addSlice(\"Crooked\", proc);\n\t\tip.setStack(\"Odds\",st);\n\t\tst = ip.getStack();\n\t\tassertEquals(2,ip.getStackSize());\n\t\tassertEquals(proc.getColorModel(),st.getColorModel());\n\t\tassertEquals(proc.getRoi(),st.getRoi());\n\t}", "public void pushMatrix() {\n buffer(() -> kernelStack = kernelStack.extend(kernel.get().asArray()));\n }", "@Test\n public void testPushAndPopC() {\n\n System.out.println(\"pushB - All Nulls\");\n String elementOne = null;\n String elementTwo = null;\n String elementThree = null;\n String elementFour = null;\n\n //Stack<String> instance = new StackArrayImpl();\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n instance.push(elementOne);\n instance.push(elementTwo);\n instance.push(elementThree);\n instance.push(elementFour);\n\n int fourSize = instance.size();\n assertEquals(fourSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String resultFour = instance.pop();\n String resultThree = instance.pop();\n String resultTwo = instance.pop();\n String resultOne = instance.pop();\n\n assertEquals(elementOne, resultOne);\n assertEquals(elementTwo, resultTwo);\n assertEquals(elementThree, resultThree);\n assertEquals(elementFour, resultFour);\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "private static Object[] formatShapedGrid(Object[] itemStacksRaw, int width, int height) {\n int rawIndex = 0;\n Object[] itemStacks = new Object[9];\n for(int y = 0; y < height; y++) {\n for(int x = 0; x < width; x++) {\n itemStacks[y * 3 + x] = itemStacksRaw[rawIndex++];\n if(rawIndex >= itemStacksRaw.length) break;\n }\n if(rawIndex >= itemStacksRaw.length) break;\n }\n return itemStacks;\n }", "public _30_min_stack() {\n data = new Stack<>();\n help = new Stack<>();\n }", "public myStackUsingDynamicArray(){\n A = new dynamicArray();\n top=-1;\n bottom=-1;\n localSize=0;\n //Othe initializations to be done by student\n }", "@Test\n public void pushOnStackTest_Correct(){\n assertEquals(stack.getTop().getData() , stack.getStack().returnFirst());\n }", "@Override\n public ItemStack decrStackSize(int par1, int par2) {\n if (this.stack[par1] != null)\n {\n ItemStack var3;\n\n if (this.stack[par1].stackSize <= par2)\n {\n var3 = this.stack[par1];\n this.stack[par1] = null;\n return var3;\n }\n else\n {\n var3 = this.stack[par1].splitStack(par2);\n\n if (this.stack[par1].stackSize == 0)\n {\n this.stack[par1] = null;\n }\n\n return var3;\n }\n }\n else\n {\n return null;\n }\n }", "public void StackTest() {\n\tSystem.out.println( \"\\nQuestion (8) Stack Test\" );\n\tSystem.out.println( \"-----------------------\");\n\tStack s = new Stack(3);\n\tSystem.out.println( \"push 0\");\n\ts.push(0);\n\tSystem.out.println( \"push 1\");\n\ts.push(1);\n\tSystem.out.println( \"push 2\");\n\ts.push(2);\n\tSystem.out.println( \"try to push 3\");\n\ts.push(3); // error here pushing beyond stack depth, will print error messgae\n\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() ); \n\tSystem.out.println( \"try to pop \" ); // error here poping off empty stack\n\ts.pop();\n }", "public int getSize(){\n return this.stack.size();\n }", "public MinStack2() {\r\n\t\t\tdata = new Stack<>();\r\n\t\t\thelper = new Stack<>();\r\n\t\t}", "private void initStackPanes() {\n\t\tstackPanes=new ArrayList<StackPane>();\n\t\tstackPanes.add(c0);\n\t\tstackPanes.add(c1);\n\t\tstackPanes.add(c2);\n\t\tstackPanes.add(c3);\n\t\tstackPanes.add(c4);\n\t\tstackPanes.add(c5);\n\t\tstackPanes.add(c6);\n\t\tstackPanes.add(c7);\n\t\tstackPanes.add(c8);\n\t\tstackPanes.add(c9);\n\t\tstackPanes.add(c10);\n\t\tstackPanes.add(c11);\n\t\tstackPanes.add(c12);\n\t\tstackPanes.add(c13);\n\t\tstackPanes.add(c14);\n\t\tstackPanes.add(c15);\n\t\tstackPanes.add(c16);\n\t\tstackPanes.add(c17);\n\t\tstackPanes.add(c18);\n\t\tstackPanes.add(c19);\n\t\tstackPanes.add(c20);\n\t\tstackPanes.add(c21);\n\t\tstackPanes.add(c22);\n\t\tstackPanes.add(c23);\n\t\tstackPanes.add(c24);\n\t\tstackPanes.add(c25);\n\t\tstackPanes.add(c26);\n\t\tstackPanes.add(c27);\n\t\tstackPanes.add(c28);\n\t\tstackPanes.add(c29);\n\t\tstackPanes.add(c30);\n\t\tstackPanes.add(c31);\n\t\tstackPanes.add(c32);\n\t\tstackPanes.add(c33);\n\t\tstackPanes.add(c34);\n\t\tstackPanes.add(c35);\n\t\tstackPanes.add(c36);\n\t\tstackPanes.add(c37);\n\t\tstackPanes.add(c38);\n\t\tstackPanes.add(c39);\n\t\tstackPanes.add(c40);\n\t\tstackPanes.add(c41);\n\t\tstackPanes.add(c42);\n\t\tstackPanes.add(c43);\n\t\tstackPanes.add(c44);\n\t\tstackPanes.add(c45);\n\t\tstackPanes.add(c46);\n\t\tstackPanes.add(c47);\n\t}", "@Override\n \tpublic Object[] getImageArray() {\n \t\t// Release 3 times an RGB stack with this dimensions.\n \t\tlayers.get(0).getProject().getLoader().releaseToFit((long)(getSize() * getWidth() * getHeight() * 4 * 3));\n \t\tfinal Object[] ia = new Object[getSize()];\n \t\tfor (int i=0; i<ia.length; i++) {\n \t\t\tia[i] = getProcessor(i+1).getPixels(); // slices 1<=slice<=n_slices\n \t\t}\n \t\treturn ia;\n \t}", "Stack(Recycler<T> parent, Thread thread, int maxCapacity, int maxSharedCapacityFactor, int ratioMask, int maxDelayedQueues)\r\n/* 408: */ {\r\n/* 409:440 */ this.parent = parent;\r\n/* 410:441 */ this.threadRef = new WeakReference(thread);\r\n/* 411:442 */ this.maxCapacity = maxCapacity;\r\n/* 412:443 */ this.availableSharedCapacity = new AtomicInteger(Math.max(maxCapacity / maxSharedCapacityFactor, Recycler.LINK_CAPACITY));\r\n/* 413:444 */ this.elements = new Recycler.DefaultHandle[Math.min(Recycler.INITIAL_CAPACITY, maxCapacity)];\r\n/* 414:445 */ this.ratioMask = ratioMask;\r\n/* 415:446 */ this.maxDelayedQueues = maxDelayedQueues;\r\n/* 416: */ }", "protected static char[] expand(char[] stack) {\n char[] newStack = new char[stack.length * 2];\n System.arraycopy(stack, 0, newStack, 0, stack.length);\n return newStack;\n }", "@Test\n public void testPushAndPopD() {\n System.out.println(\"popC - Out of Order\");\n\n String elementOne = \"Bill\";\n String elementTwo = \"Steve\";\n String elementThree = \"Tim\";\n String elementFour = \"Dave\";\n\n //Stack<String> instance = new StackArrayImpl();\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n instance.push(elementOne);\n instance.push(elementTwo);\n instance.push(elementThree);\n\n int fourSize = instance.size();\n assertEquals(fourSize, 3);\n assertEquals(instance.isEmpty(), false);\n\n String resultThree = instance.pop();\n String resultTwo = instance.pop();\n\n instance.push(elementFour);\n String resultFour = instance.pop();\n\n String resultOne = instance.pop();\n\n assertEquals(elementOne, resultOne);\n assertEquals(elementTwo, resultTwo);\n assertEquals(elementThree, resultThree);\n assertEquals(elementFour, resultFour);\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "private void fillPRStack() {\n for (int i = 0; i < PRToVR.length - 1; i++) {\n PRStack.push(i);\n }\n }", "public interface Stack<E> {\r\n \r\n /** \r\n * Pre: Se ingresa el dato\r\n * @param data se ingresa un dato para agregar al Vector\r\n * Post: Se guarda el dato en Stack\r\n */\r\n public void push(E data);\r\n\r\n /** \r\n * Pre: Estan todos los datos en el Stack\r\n * @return E se regresa un item.\r\n * Post: Se regresa y elimina un dato del Stack\r\n */\r\n public E pop();\r\n\r\n /** \r\n * Pre: Se encuentra el Stack con sus datos\r\n * @return E se regresa cualquier tipo de dato\r\n * @throws EmptyStackException regresa un error\r\n * Post: Se regresa el dato sobre la lista\r\n */\r\n public E peek();\r\n\r\n /** \r\n * Pre:Se encuentra el Stack\r\n * @return boolean se regresa un valor True o False\r\n * Post: Si el Stack se encuentra vacio este regresa True\r\n */\r\n public boolean empty();\r\n\r\n /** \r\n * Pre:Se encuentra el Stack \r\n * @return int se regrea cualquier numero\r\n * Post: Se devuelve el numero de objetos que tiene el Stack\r\n */\r\n public int size();\r\n\r\n}", "public void testMyStack() {\n\t\tMyStack<String> s = new MyStack<String>();\n\t\ts.push(\"1\");\n\t\ts.push(\"2\");\n\t\ts.push(\"3\");\n\t\ts.pop();\n\t\ts.push(\"4\");\n\t\ts.toString();\n\t\tSystem.out.println(\"MyStack size is: \" + s.size());\n\t}", "public MinStack1() {\r\n stack = new Stack<>();\r\n }", "@Test\n public void testStackInteger() {\n DatastructureTest.INTSTACK.push(3);\n DatastructureTest.INTSTACK.push(7);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == 7);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == 7);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == 3);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == 3);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == -1);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == -1);\n }", "@Test\n public void testStackCodeExamples() {\n logger.info(\"Beginning testStackCodeExamples()...\");\n\n // Allocate an empty stack\n Stack<String> stack = new Stack<>();\n logger.info(\"Start with an empty stack: {}\", stack);\n\n // Push a rock onto it\n String rock = \"rock\";\n stack.pushElement(rock);\n assert stack.getTop().equals(rock);\n logger.info(\"Push a rock on it: {}\", stack);\n\n // Push paper onto it\n String paper = \"paper\";\n stack.pushElement(paper);\n assert stack.getTop().equals(paper);\n logger.info(\"Push paper on it: {}\", stack);\n\n // Push scissors onto it\n String scissors = \"scissors\";\n stack.pushElement(scissors);\n assert stack.getTop().equals(scissors);\n assert stack.getSize() == 3;\n logger.info(\"Push scissors on it: {}\", stack);\n\n // Pop off the scissors\n assert stack.popElement().equals(scissors);\n assert stack.getSize() == 2;\n logger.info(\"Pop scissors from it: {}\", stack);\n\n // Pop off the paper\n assert stack.popElement().equals(paper);\n assert stack.getSize() == 1;\n logger.info(\"Pop paper from it: {}\", stack);\n\n // Pop off the rock\n assert stack.popElement().equals(rock);\n assert stack.isEmpty();\n logger.info(\"Pop rock from it: {}\", stack);\n\n logger.info(\"Completed testStackCodeExamples().\\n\");\n }", "public static List<int[]> getContainedPixels(MeshImageStack stack, DeformableMesh3D mesh){\n Box3D box = mesh.getBoundingBox();\n double[] lowI = stack.getImageCoordinates(box.low);\n double[] highI = stack.getImageCoordinates(box.high);\n\n InterceptingMesh3D picker = new InterceptingMesh3D(mesh);\n double[] xdirection = {1,0,0};\n\n int slices = stack.getNSlices();\n int w = stack.getWidthPx();\n int h = stack.getHeightPx();\n double center[] = new double[3];\n\n int sliceLow = (int)lowI[2];\n int sliceHigh = (int)highI[2];\n //verify\n sliceLow = sliceLow < 0 ? 0 : sliceLow;\n sliceHigh = sliceHigh <= slices ? sliceHigh : slices;\n\n int jlo = (int)lowI[1];\n int jhi = (int)highI[1];\n jlo = jlo < 0 ? 0 : jlo;\n jhi = jhi <= h ? jhi : h;\n\n int xlo = (int)lowI[0];\n int xhi = (int)highI[0];\n xlo = xlo < 0 ? 0: xlo;\n xhi = xhi > w ? w : xhi;\n List<int[]> contained = new ArrayList<>();\n for(int slice = sliceLow; slice<sliceHigh; slice++){\n\n center[2] = slice;\n\n\n for(int j = jlo; j<jhi; j++){\n\n int offset = j*w;\n center[1] = j;\n\n List<Intersection> sections = picker.getIntersections(stack.getNormalizedCoordinate(center), xdirection);\n if(sections.size()==0){\n //No intersections. No points inside.\n continue;\n }\n scanDirty(sections);\n sections.sort((a,b)->Double.compare(a.location[0], b.location[0]));\n\n boolean startInside = false;\n double count = 0;\n double[] boundaries = new double[sections.size()+1];\n\n //the number of boundaries that switch the state from inside to outside.\n int valid = 0;\n double lowestEntry = Double.MAX_VALUE;\n double highestExit = -Double.MAX_VALUE;\n\n for(int k = 0; k<sections.size(); k++){\n\n double bound = stack.getImageCoordinates(sections.get(k).location)[0];\n\n boolean facingLeft = sections.get(k).surfaceNormal[0]<0;\n boolean facingRight = !facingLeft;\n //going through all interfaces, and either going further in\n //or back out.\n if(facingLeft){\n count++;\n if(bound < lowestEntry){\n lowestEntry = bound;\n }\n } else{\n count--;\n if(bound > highestExit){\n highestExit = bound;\n }\n }\n if(bound>0) {\n //check if it is actually a boundary\n if ( count==1 && facingLeft ) {\n //boundary entering region.\n if( valid == 0){\n startInside = false;\n }\n boundaries[valid] = bound;\n valid++;\n } else if (count==0 && facingRight) {\n //stepped out.\n if( valid == 0){\n startInside = true;\n }\n boundaries[valid] = bound;\n valid++;\n }\n\n }\n }\n\n boolean inside = startInside;\n\n\n if(lowestEntry < lowI[0]){\n System.out.println(\"Topo Error: lowest entry is less than bounding box!\");\n }\n if( (int)highestExit > highI[0] ){\n System.out.println(\"Topo Error: highest exit is outside of bounding box!\");\n }\n\n if(startInside && lowestEntry>0){\n System.out.println(\"Topo Error: Lower bound above zero but mesh starts inside.\");\n }\n\n boundaries[valid] = w;\n\n //This isn't necessarily true.\n //lowestIntersection >= lowI[0] and highestIntersection <= highI[0]\n boolean finishesOutsideImage = lowestEntry <= (w-1) && highestExit >= (w - 1) ;\n\n int current = 0;\n\n\n for(int p = 0; p<w; p++){\n if(p>boundaries[current]){\n //switch.\n current++;\n inside = !inside;\n }\n if(inside){\n contained.add(new int[]{p, j, slice});\n }\n }\n if(finishesOutsideImage && !inside){\n System.out.println(\"topography warning: bounds outside image, but not inside the shape at end\");\n }\n\n if(!finishesOutsideImage && inside){\n System.out.println(\"Inconsistent bounding box: End of image is out of bounds, but state is inside the shape\");\n System.out.println(Arrays.toString(lowI) + \" [~] \" + Arrays.toString(highI));\n }\n\n }\n\n }\n return contained;\n }", "protected abstract StackManipulation preparation();", "public int getStackSize() {\n\t\treturn stackSize;\n\t}", "boolean isFull(Stack stack){\n\t\tif(stack.getStackSize() >= 100) return true;\r\n\t\telse return false;\t\r\n\t}", "private void showStacksVisualization() {\n\t\tsetVisualization(new StackVisualization(rootComposite, controller, checklist));\n\t}", "public StackUnderflowException(){\n super(\"Can not pop from an empty stack\");\n }", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\r\n{\r\n stateptr = -1;\r\n val_init();\r\n return true;\r\n}", "final boolean init_stacks()\n {\n stateptr = -1;\n val_init();\n return true;\n }", "@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Fixed Stack\");\r\n\t\t\r\n\t}", "@Override\n\tpublic ItemStack decrStackSize(int index, int count) {\n\t\treturn null;\n\t}", "public GMap<Integer, Stack> getStacks();", "public ArrayStackTest(int capacity){\n\t\tstore = (E[]) new Object[capacity];\n\t\ttop = -1;\n\t}", "public ArrayStack (int initialCapacity)\r\n {\r\n top = 0;\r\n stack = (T[]) (new Object[initialCapacity]);\r\n }", "public void deleteStack(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // if stack is present\n topOfStack=-1;\n arr=null;\n System.out.println(\"Stack deleted successfully\");\n }", "@Override\r\n\tpublic int size() {\r\n\t\treturn stack.length;\r\n\t}", "private static ArrayStack stackOfPatients() {\r\n Patient p0 = new Patient(\"Jerry Smith\", 3);\r\n Patient p1 = new Patient(\"Morty Smith\", 9);\r\n Patient p2 = new Patient(\"Saint Petes\", 1);\r\n Patient p3 = new Patient(\"Anner Bananer\", 1);\r\n Patient p4 = new Patient(\"Bruce Wayne\", 4);\r\n Patient p5 = new Patient(\"Thomas Muller\", 8);\r\n Patient p6 = new Patient(\"Mario Gotze\", 6);\r\n Patient p7 = new Patient(\"Philip Lahm\", 5);\r\n Patient p8 = new Patient(\"Sir Tiny Eyes\", 3);\r\n Patient p9 = new Patient(\"Celery Man\", 10);\r\n\r\n ArrayStack<Patient> patientStack = new ArrayStack<>();\r\n patientStack.push(p0);\r\n patientStack.push(p6);\r\n patientStack.push(p5);\r\n patientStack.push(p3);\r\n patientStack.push(p8);\r\n patientStack.push(p4);\r\n patientStack.push(p7);\r\n patientStack.push(p1);\r\n patientStack.push(p2);\r\n patientStack.push(p9);\r\n\r\n return patientStack;\r\n\r\n }", "public DoubleElementMinStack() {\n stack = new Stack<>();\n }", "private void increaseStackSize(int sizeIncrease) {\n Object [] newStack = new Object[stack.length + sizeIncrease];\n copyArray(newStack, stack);\n stack = newStack;\n }", "public void print_stacks(ArrayList<ArrayList<Stack<Integer>>> stacks) {\n\t\tfor (int k=0; k<size*size; k++) {\n\t\t\tSystem.out.println(\"----------------------------------------\\n\\tRow \"+k+\"'s Possible Values\\n----------------------------------------\");\n\t\t\tfor (int l=0; l<size*size; l++) {\n\t\t\t\tSystem.out.print(\"col \"+l+\" |\");\n\t\t\t\tif (!stacks.get(k).get(l).empty()) System.out.println(stacks.get(k).get(l));\n\t\t\t\telse System.out.println();\t\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testModuloStackSize() {\n MainPanel mp = new MainPanel();\n ProgramArea pa = new ProgramArea();\n ProgramStack ps = new ProgramStack();\n\n ps.push(10);\n ps.push(3);\n\n ProgramExecutor pe = new ProgramExecutor(mp, ps, pa);\n\n pe.modulo();\n ps.pop();\n\n Assert.assertEquals(\"[]\", ps.toString());\n }", "public static Boolean isZStack(String slideRef, String... varargs) {\n\t\t// setting the default value when arguments' value is omitted\n\t\tString sessionID = varargs.length > 0 ? varargs[0] : null;\n\t\t// Determine whether a slide is a z-stack or not\n\t\treturn isMultiLayer(slideRef, sessionID);\n\t}", "public String getStack();", "void dump_stacks(int count)\n{\nint i;\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\n for (i=0;i<count;i++)\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\n System.out.println(\"======================\");\n}", "void dump_stacks(int count)\n{\nint i;\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\n for (i=0;i<count;i++)\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\n System.out.println(\"======================\");\n}", "void dump_stacks(int count)\n{\nint i;\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\n for (i=0;i<count;i++)\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\n System.out.println(\"======================\");\n}", "public MyStack2() {\n q1 = new ArrayDeque<>();\n q2 = new ArrayDeque<>();\n }", "public static void main(String[] args) {\n// System.out.println(\"as.getSize() == \" + as.getSize());\n// as.pop();\n// System.out.println(\"as.pop() == \" + as);\n// System.out.println(\"as.peek() == \" + as.peek());\n// as.push(\"17\");\n// System.out.println(as);\n\n LinkedListStack<Integer> stack = new LinkedListStack<>();\n\n for(int i = 0 ; i < 5 ; i ++){\n stack.push(i);\n System.out.println(stack);\n }\n\n stack.pop();\n System.out.println(stack);\n\n }", "public ArrayStack()\r\n {\r\n top = 0;\r\n stack = (T[])(new Object[DEFAULT_CAPACITY]);\r\n }", "void dump_stacks(int count)\r\n{\r\nint i;\r\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\r\n for (i=0;i<count;i++)\r\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\r\n System.out.println(\"======================\");\r\n}", "public MinStack_155() {\n\t\tmin= new Stack<Integer>();\n\t\tstack= new Stack<Integer>();\n\t}", "public MinStack() {\n dataStack=new Stack<>();\n minStack=new Stack<>();\n }", "public MinStack() {\n data = new ArrayDeque<>();\n helper = new ArrayDeque<>();\n }", "public int getSize() {\r\n\t\treturn stack.size();\r\n\t}", "@Test\r\n public void testStackListaEncadenada() {\r\n StackListaEncadenada<Integer> stack = new StackListaEncadenada<Integer>();\r\n\r\n stack.push(1);\r\n stack.push(2);\r\n stack.push(3);\r\n stack.push(4);\r\n stack.push(5);\r\n\r\n assertEquals(5, stack.peek());\r\n assertEquals(5, stack.pop());\r\n assertEquals(4, stack.size());\r\n }", "public static void main(String[] args) {\r\n\r\n\t\tArrayStack arrst = new ArrayStack(5);\r\n\t\tIntStream.range(0, 5).forEach(arrst::push);\r\n\t\tSystem.out.println(\"Response of peek \" + arrst.peek());\r\n\t\tSystem.out.println(\"Response of pop\" + arrst.pop());\r\n\t\tSystem.out.println(\"push one random number in the middle\");\r\n\t\tarrst.push(10);\r\n\t\tSystem.out.println(\"printing stack after first pop\");\r\n\t\tarrst.display();\r\n\r\n\t\tIntStream.range(0, arrst.size()).forEach(i -> arrst.pop());\r\n\r\n\t\tSystem.out.println(\"isEmpty after poping all the elements ???\" + arrst.isEmpty());\r\n\r\n\t\tarrst.display();\r\n\r\n\t}", "@Override void apply(Env e) {\n // stack is [ ..., rhs, lhs ]\n Key k = Key.make(e.popStr());\n Frame fr;\n if( e.isAry() ) {\n Frame f = e.popAry();\n fr = new Frame(k, f.names(), f.vecs());\n } else if( e.isNum() ) fr = new Frame(k, null, new Vec[]{Vec.makeCon(e.popDbl(), 1)});\n else if( e.isStr() ) {\n Vec v = Vec.makeZero(1);\n v.setDomain(new String[]{e.popStr()});\n fr = new Frame(k,new String[]{\"C1\"}, new Vec[]{v});\n } else throw new IllegalArgumentException(\"Don't know what to do with: \"+e.peek().getClass());\n e.lock(fr);\n e.put(k.toString(), fr);\n e.push(new ValFrame(fr, false /*isGlobalSet*/));\n }", "public MinValueStack(){\r\n stack1 = new Stack<T>();\r\n stack2 = new Stack<T>();\r\n size = 0;\r\n }", "ArrayStack() {\r\n\t\tstack = new int[10];\r\n\t\ttop = 0;\r\n\t}" ]
[ "0.65293705", "0.6474458", "0.62178344", "0.61261034", "0.60978824", "0.60806143", "0.60777086", "0.59847796", "0.59815896", "0.59495294", "0.5885759", "0.58852845", "0.5856733", "0.58551866", "0.5793647", "0.57897717", "0.5748476", "0.57440466", "0.5737041", "0.57199854", "0.5704051", "0.56978506", "0.5685294", "0.5651567", "0.564833", "0.56395304", "0.56369966", "0.5621828", "0.56013125", "0.5579416", "0.55735683", "0.55589634", "0.5534338", "0.5511904", "0.5491521", "0.5479934", "0.5462661", "0.5456565", "0.5445538", "0.5427973", "0.5422435", "0.54073894", "0.53868383", "0.5375859", "0.5374216", "0.5373396", "0.53690284", "0.5364587", "0.5364386", "0.5355196", "0.53189003", "0.5303799", "0.5293992", "0.5289003", "0.527292", "0.52700037", "0.52410585", "0.52363586", "0.5231455", "0.5222065", "0.521814", "0.52166486", "0.52149546", "0.52148914", "0.520913", "0.52062577", "0.52062577", "0.52062577", "0.5203129", "0.5199019", "0.51925194", "0.517531", "0.51658845", "0.51609176", "0.5149917", "0.51479673", "0.51474696", "0.5146995", "0.5139386", "0.5124396", "0.51239145", "0.51216084", "0.51105416", "0.5104585", "0.51035494", "0.51035494", "0.51035494", "0.5102216", "0.5099171", "0.5093709", "0.5092578", "0.50922763", "0.5084851", "0.5084263", "0.5082549", "0.50824785", "0.5079363", "0.5077408", "0.5077108", "0.50678974" ]
0.6356223
2
stack does not match dimensions
@Test public void testGetNFrames() { ip = new ImagePlus("Groening", (Image)null); st = new ImageStack(2,3); st.addSlice("silly",new byte[] {1,2,3,4,5,6}); ip.setStack("AyeCarumba",st); ip.setDimensions(1,1,3); assertEquals(1,ip.getNFrames()); ip.setDimensions(1,3,1); assertEquals(1,ip.getNFrames()); ip.setDimensions(3,1,1); assertEquals(1,ip.getNFrames()); // stack matches dimensions ip = new ImagePlus("Agent007", (Image)null); st = new ImageStack(2,3); st.addSlice("suave",new byte[] {1,2,3,4,5,6}); st.addSlice("debonair",new byte[] {1,2,3,4,5,6}); st.addSlice("sophisticated",new byte[] {1,2,3,4,5,6}); st.addSlice("handsome",new byte[] {1,2,3,4,5,6}); st.addSlice("humorous",new byte[] {1,2,3,4,5,6}); st.addSlice("aloof",new byte[] {1,2,3,4,5,6}); st.addSlice("calm",new byte[] {1,2,3,4,5,6}); st.addSlice("composed",new byte[] {1,2,3,4,5,6}); ip.setStack("MoneyPenny", st); // one dim > 1 ip.setDimensions(1,1,8); assertEquals(8,ip.getNFrames()); ip.setDimensions(1,8,1); assertEquals(1,ip.getNFrames()); ip.setDimensions(8,1,1); assertEquals(1,ip.getNFrames()); // two dims > 1 ip.setDimensions(1,2,4); assertEquals(4,ip.getNFrames()); ip.setDimensions(1,4,2); assertEquals(2,ip.getNFrames()); ip.setDimensions(2,1,4); assertEquals(4,ip.getNFrames()); ip.setDimensions(2,4,1); assertEquals(1,ip.getNFrames()); ip.setDimensions(4,1,2); assertEquals(2,ip.getNFrames()); ip.setDimensions(4,2,1); assertEquals(1,ip.getNFrames()); // three dims > 1 ip.setDimensions(2,2,2); assertEquals(2,ip.getNFrames()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSetDimensions() {\n\n\t\t// empty stack\n\t\tip = new ImagePlus();\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(1,ip.getNSlices());\n\t\tassertEquals(ip.getStackSize(),ip.getNFrames());\n\n\t\t// stack but dimensions don't match\n\t\tip = new ImagePlus(\"Kerbam\",(Image)null);\n\t\tst = new ImageStack(2,2);\n\t\tst.addSlice(\"Oranges\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Apples\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Pears\", new byte[] {1,2,3,4});\n\t\tip.setStack(\"Kaboom\",st);\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(ip.getStackSize(),ip.getNSlices());\n\t\tassertEquals(1,ip.getNFrames());\n\n\t\t// stack with matching dimensions\n\t\tip = new ImagePlus(\"Kerbam\",(Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"Oranges\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Apples\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Pears\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Quinces\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Kiwis\", new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Bananas\", new byte[] {1,2,3,4});\n\t\tip.setStack(\"Kaboom\",st);\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(2,ip.getNSlices());\n\t\tassertEquals(3,ip.getNFrames());\n\t}", "@Test\n\tpublic void testPush(){\n\t\tArrayIntStack stack = buildStack(4);\n\t\tassertEquals(4, stack.intCol.size());\n\t}", "@Test\n\tpublic void testGetNSlices() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNSlices());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(8,ip.getNSlices());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(1,ip.getNSlices());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(2,ip.getNSlices());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(4,ip.getNSlices());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(4,ip.getNSlices());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(2,ip.getNSlices());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNSlices());\n\t}", "void setStack(int[][][] add);", "public void resize(){\n Object[] old = myCustomStack;\n //resize array to be twice the size when the Stack is more than 3/4 full\n if(numElements > old.length * .75){\n Object[] resizedArr = new Object[old.length * 2];\n for(int i = 0; i < numElements; i++){\n resizedArr[i] = old[i];\n }\n myCustomStack = resizedArr;\n System.out.println(\"Array has been resized to twice the size. Array length: \" + myCustomStack.length);\n }\n //resize array to be half the size when the Stack is more than 1/4 empty\n else if(numElements < old.length * .25){\n Object[] resizedArr = new Object[old.length / 2];\n for(int i = 0; i < numElements; i++){\n resizedArr[i] = old[i];\n }\n myCustomStack = resizedArr;\n System.out.println(\"Array has been resized to half the size. Array length: \" + myCustomStack.length);\n }\n else{\n return;\n }\n }", "@Test\n\tpublic void testIsHyperStack() {\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,3);\n\t\tip.setOpenAsHyperStack(false);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs false, nDimensions > 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"oof\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,4);\n\t\tip.setOpenAsHyperStack(false);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs true, nDimensions <= 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,3);\n\t\tip.setOpenAsHyperStack(true);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs true, nDimensions > 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"oof\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,2,2);\n\t\tip.setOpenAsHyperStack(true);\n\t\tassertTrue(ip.isHyperStack());\n\t}", "Stack(int sizeYouWantYourDataStuctureToBe){\n stackArray = new int [sizeYouWantYourDataStuctureToBe];\n }", "@SuppressWarnings({\"unchecked\"})\n private void expandStack() {\n T[] newStack;\n \n newStack = (T[]) new Object[Array.getLength(this.elements) + 1];\n for( int i = 0; i < Array.getLength(this.elements); i++ )\n newStack[i] = this.elements[i];\n this.elements = newStack;\n }", "@Test\n\tpublic void testGetNChannels() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNChannels());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(8,ip.getNChannels());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(2,ip.getNChannels());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(2,ip.getNChannels());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(4,ip.getNChannels());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(4,ip.getNChannels());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNChannels());\n\t}", "protected static Object[] expand(Object[] stack) {\n Object[] newStack = new Object[stack.length * 2];\n System.arraycopy(stack, 0, newStack, 0, stack.length);\n return newStack;\n }", "public Stacked(){\n count = 0;\n stackArray = (E[]) new Object[START_CAP];\n }", "private void expandCapacity() {\n\t\tT[] larger = (T[]) (new Object[stack.length*2]);\t\t//double size of previous stack\n\t\t\n\t\tfor(int i = 0; i < stack.length; i++)\n\t\t\tlarger[i] = stack[i];\n\t\t\n\t\tstack = larger;\n\t}", "public int[][] extractVoxels(ImageStack stack){\n\t\tint stack_width = stack.getWidth();\n\t\tint stack_height = stack.getHeight();\n\t\tint stack_length = stack.getSize();\n\n\t\t// method will extract cone thath's been cutoff from the stack\n\t\t\n\t\tint cone_radius \t= (int)Math.round(this.r);\n\t\t//int cone_radius1 \t= (int)Math.round(this.r1);\n\t\tint cone_height\t\t= (int)Math.round(this.getH());\n\t\tint cone_limit\t\t= (int)Math.ceil(Math.sqrt(Math.pow(r1, 2)+Math.pow(this.getH(), 2)));\n\t\t\n\t\tif(cone_radius>cone_limit){\n\t\t\tcone_limit = cone_radius;\n\t\t}\n\t\t\n\t\t// center in pixel coordinates\n\t\tint[] centerPix = {(int)Math.round(this.x), (int)Math.round(this.y), (int)Math.round(this.z)};\n\t\t\n\t\t// define the range\n\t\tint startX = 1; if (centerPix[0]-cone_limit > 1) startX = centerPix[0]-cone_limit;\n\t\tint startY = 1; if (centerPix[1]-cone_limit > 1) startY = centerPix[1]-cone_limit;\n\t\tint startZ = 1; if (centerPix[2]-cone_limit > 1) startZ = centerPix[2]-cone_limit;\n\t\t\t\n\t\tint endX = stack_width; if (centerPix[0]+cone_limit < stack_width) endX = centerPix[0]+cone_limit;\n\t\tint endY = stack_height; if (centerPix[1]+cone_limit < stack_height) endY = centerPix[1]+cone_limit;\n\t\tint endZ = stack_length; if (centerPix[2]+cone_limit < stack_length) endZ = centerPix[2]+cone_limit;\n\n\t\tint count=0;\n\t\t// this consumes memory! - maybe not necessary to allocate here\n\t\tbyte[] pixels = new byte[stack_width*stack_height]; //storage for pixels from one layer\n\t\tint[][] roi = new int [2*cone_limit*2*cone_limit*2*cone_limit][4];//roi big enough to take cone at any orientation\n\t\t\n\t\tdouble[] b ={0, 0, 0}; \n\t\tdouble[] c ={0, 0, 0};\n\t\tdouble[] a ={0, 0, 0}; //this one will serve as unit h vector\n\t\ta[0] = h[0]/this.getH(); a[1] = h[1]/this.getH(); a[2] = h[2]/this.getH();\n\t\t\n\t\tTransf.cartesian(a[0], a[1], a[2], b, c);\n\t\t\n\t\tfor(int z_layer=startZ; z_layer<endZ; z_layer++){\n\t\t\tpixels = (byte[])stack.getPixels(z_layer);\n\t\t\tfor(int x_row=startX; x_row<endX; x_row++){\n\t\t\t\tfor(int y_col=startY; y_col<endY; y_col++){\n\t\t\t\t\t\n\t\t\t\t\tdouble point_h, point_r;\n\t\t\t\t\tdouble vx, vy, vz;\n\t\t\t\t\t\n\t\t\t\t\tvx = x_row-x; \n\t\t\t\t\tvy = y_col-y; \n\t\t\t\t\tvz = z_layer-z;\n\t\t\t\t\t\n\t\t\t\t\tpoint_h = vx*a[0]+vy*a[1]+vz*a[2]; \n\t\t\t\t\tpoint_r = Math.sqrt(Math.pow(vx*b[0]+vy*b[1]+vz*b[2], 2)+Math.pow(vx*c[0]+vy*c[1]+vz*c[2], 2));\n\t\t\t\t\t\n\t\t\t\t\tboolean isInCone = true;\n\t\t\t\t\tisInCone = (point_h<=cone_height) && (point_h>=0) && (point_r<= ((r1-r)/this.getH())*point_h+r);//\n\t\t\t\t\t\n\t\t\t\t\tif(isInCone){\n\t\t\t\t\t\troi[count][3] = pixels[x_row + stack_width * y_col] & 0xff; //int\n\t\t\t\t\t\troi[count][0] = x_row; \n\t\t\t\t\t\troi[count][1] = y_col; \n\t\t\t\t\t\troi[count][2] = z_layer;\n\t\t\t\t\t\tcount ++;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t// quite inefficient for memory to extract twice... but left it this way by now\n\t\tint[][] extractedVoxels = new int [count][4];\n\t\tfor(int i=0; i<count; i++){\n\t\t\tfor(int j=0; j<4; j++){\n\t\t\t\textractedVoxels[i][j]=roi[i][j];\n\t\t\t}\n\t\t}\n\t\treturn extractedVoxels;\n\t}", "@Test\n\tpublic void testGetNDimensions() {\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\",st);\n\t\tip.setDimensions(1,1,1);\n\t\tassertEquals(2,ip.getNDimensions());\n\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(3,ip.getNDimensions());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(3,ip.getNDimensions());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(3,ip.getNDimensions());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(4,ip.getNDimensions());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(5,ip.getNDimensions());\n\t}", "stack() {\n arr = (E[]) new Object[size];\n }", "public static void main(String[] args) throws Exception {\n StackUsingArrays stack=new StackUsingArrays(5);\n \n for(int i=1;i<=5;i++) {\n \tstack.push(i*10);\n \tstack.display();\n }\n \n System.out.println(stack.size());\n \n //stack.push(60);\n System.out.println(stack.top());\n \n// while(!stack.isEmpty()) {\n// \tstack.display();\n// \tstack.pop();\n// \t\n// }\n// \n// stack.pop();\n\t}", "public CustomStack() {\n this.myCustomStack = new Object[10]; //array starts with 10 spaces, all empty\n numElements = 0; //stack starts with zero elements\n\n }", "private void expand(){\n \n int newSize = size + expand;\n E[] tempArray = (E[]) new Object[newSize];\n for(int n = 0; n < size; n++){\n tempArray[n] = stackArray[n]; \n }\n stackArray = tempArray;\n size = newSize;\n }", "@Test\n\tpublic void testGetImageStackSize() {\n\n\t\tip = new ImagePlus();\n\t\tassertEquals(1,ip.getImageStackSize());\n\n\t\tst = new ImageStack(2,2);\n\t\tst.addSlice(\"GrandmaKat\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"GrandpaHuff\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"UncleRemus\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"AuntRomulus\", new byte[] {0,8,4,1});\n\t\tst.addSlice(\"BabyAchilles\", new byte[] {0,8,4,1});\n\n\t\tip.setStack(\"CarribeanDreams\", st);\n\t\tassertEquals(5,ip.getImageStackSize());\n\n\t\tst.deleteLastSlice();\n\t\tassertEquals(4,ip.getImageStackSize());\n\t}", "@Test\n\tpublic void testSetStackStringImageStack() {\n\t\tip = new ImagePlus();\n\t\tst = new ImageStack(2,2);\n\t\ttry {\n\t\t\tip.setStack(\"Gizzard\",st);\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\t// not a virt stack and null imagearray (impossible) or 1st entry of imagearray is null (possible) throw illArgExc\n\t\tip = new ImagePlus();\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3,14); // 14 empty slices sized 1x3\n\t\ttry {\n\t\t\tip.setStack(\"14Plates\",st);\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\t// otherwise it runs through\n\t\t// ... doesn't seem like there is anything to test\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 3;\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3);\n\t\tst.addSlice(\"Slice1\",proc);\n\t\tip.setStack(\"SuperStack\",st);\n\t\tassertEquals(st,ip.getStack());\n\t}", "@Override\n public void push(E z){\n if(isFull()){\n expand();\n System.out.println(\"Stack expanded by \"+ expand+ \" cells\");\n }\n stackArray[count] = z;\n count++;\n }", "static void stackPush(Stack<Integer> stack)\r\n\t{\r\n\t\tfor(int i=0;i<5;i++)\r\n\t\t{\r\n\t\t\tstack.push(i*5);\r\n\t\t}\r\n\t\tSystem.out.println(\"Printing the stack value which is push:\");\r\n\t\tSystem.out.println(\"Push :\"+stack +\"\\nsize of stack: \"+ stack.size());\r\n\t}", "public Stacked(int size){\n this.size = size;\n count = 0;\n expand = 5;\n stackArray = (E[]) new Object[size];\n }", "private void expandCapacity()\r\n {\r\n T[] larger = (T[])(new Object[stack.length*2]);\r\n \r\n for (int index=0; index < stack.length; index++)\r\n larger[index] = stack[index];\r\n \r\n stack = larger;\r\n }", "private void ensureCapacity(){\n if(topIndex >= stack.length - 1){\n int newLength = 2 * stack.length;\n stack = Arrays.copyOf(stack, newLength);\n }\n }", "private void resizeArray() {\n stackArray = Arrays.copyOf(stackArray, stackArray.length * 2 + 1);\n }", "@Test\n\tpublic void testSetStackImageStackIntIntInt() {\n\t\tst = new ImageStack(1,2,24); // 24 slices of 1x2 images\n\t\tip = new ImagePlus();\n\n\t\tfor (int chan = 0; chan < 9; chan++)\n\t\t\tfor (int slice = 0; slice < 9; slice++)\n\t\t\t\tfor (int frame = 0; frame < 9; frame++)\n\t\t\t\t\tif (chan*slice*frame != 24)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tip.setStack(st,chan,slice,frame);\n\t\t\t\t\t\t\tfail();\n\t\t\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\t\t\tassertTrue(true);\n\t\t\t\t\t\t}\n\n\t\t// otherwise input dimensions match\n\t\t// .. delegates to setStack() - tested earlier\n\t\t// so just need to test that title did not change\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 2;\n\t\tip.setTitle(\"AlertAlert\");\n\t\tst = new ImageStack(1,2,null); // 1x2 images\n\t\tfor (int i = 0; i < 24; i++)\n\t\t\tst.addSlice(\"\"+i, new byte[] {1,2});\n\t\tip.setStack(st,2,3,4);\n\t\tassertEquals(\"AlertAlert\",ip.getTitle());\n\t}", "public ArrayStack(){\r\n\t\tstack= new Object[DEFAULT_SIZE];\r\n\t\t}", "private void expandArray() {\r\n//\t\tSystem.out.println(\"Expanding: current capacity \" + capacity); //Used for debugging\r\n\t\tcapacity = 2 * capacity;\r\n\t\tE[] temp = (E[]) new Object[capacity];\r\n\t\tfor (int i = 0; i < t + 1; i++)\r\n\t\t\ttemp[i] = stack[i];\r\n\t\tstack = temp;\r\n\t}", "@Test\r\n public void testStackstack() {\r\n StackArrayList<Integer> stack = new StackArrayList<Integer>();\r\n\r\n stack.push(1);\r\n stack.push(2);\r\n stack.push(3);\r\n stack.push(4);\r\n stack.push(5);\r\n\r\n assertEquals(5, stack.peek());\r\n assertEquals(5, stack.pop());\r\n assertEquals(4, stack.size());\r\n }", "@Test\n public void testStack() {\n DatastructureTest.STACK.push(3);\n DatastructureTest.STACK.push(7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == -1);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == -1);\n }", "Stack_Using_Arrays(){\n\t\ttop=-1;\n\t}", "public FixedSizeArrayStack() {\r\n\t\tthis(CAPACITY);\r\n\t}", "public LC155_MinStack2() {\n\t\tdata = new Stack<Long>();\n\t}", "public ArrayStack() {\n\t\ttop = 0;\t\t\t\t\t\t\t\t\t\t// points to the first element. Since empty, points 0\n\t\tstack = (T[]) (new Object[DEFAULT_CAPACITY]);\t// Casting to whatever is our desired element.\n\t}", "@SubL(source = \"cycl/stacks.lisp\", position = 1818) \n public static final SubLObject create_stack() {\n return clear_stack(make_stack(UNPROVIDED));\n }", "public void doubleSize()\r\n\t{\r\n \t\tint newSize = Stack.length * 2;\r\n\t Stack = Arrays.copyOf(Stack, newSize);\r\n\t}", "@Test\n\tpublic void testGetStack() {\n\t\tip = new ImagePlus();\n\t\tst = ip.getStack();\n\t\tassertEquals(1,ip.getStackSize());\n\n\t\t// if stack == null and not proc == null and no info string\n\t\t// do stuff and setRoi() if needed\n\t\tproc = new ByteProcessor(1,1,new byte[] {22}, null);\n\t\tip = new ImagePlus(\"CareBearStation\",proc);\n\t\tst = ip.getStack();\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertNull(st.getSliceLabel(1));\n\t\tassertEquals(proc.getColorModel(),st.getColorModel());\n\t\tassertEquals(proc.getRoi(),st.getRoi());\n\n\t\t// if stack == null and not proc == null and yes info string\n\t\t// do stuff and setRoi() if needed\n\t\tproc = new ByteProcessor(1,1,new byte[] {22}, null);\n\t\tip = new ImagePlus(\"CareBearStation\",proc);\n\t\tip.setProperty(\"Info\",\"SnapDragon\");\n\t\tst = ip.getStack();\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertEquals(\"CareBearStation\\nSnapDragon\",st.getSliceLabel(1));\n\t\tassertEquals(proc.getColorModel(),st.getColorModel());\n\t\tassertEquals(proc.getRoi(),st.getRoi());\n\n\t\t// if not stack == null\n\t\t// do stuff and setRoi() if needed\n\t\tproc = new ByteProcessor(1,1,new byte[] {22}, null);\n\t\tip = new ImagePlus(\"CareBearStation\",proc);\n\t\tst = new ImageStack(1,1);\n\t\tst.addSlice(\"Fixed\", proc);\n\t\tst.addSlice(\"Crooked\", proc);\n\t\tip.setStack(\"Odds\",st);\n\t\tst = ip.getStack();\n\t\tassertEquals(2,ip.getStackSize());\n\t\tassertEquals(proc.getColorModel(),st.getColorModel());\n\t\tassertEquals(proc.getRoi(),st.getRoi());\n\t}", "public void pushMatrix() {\n buffer(() -> kernelStack = kernelStack.extend(kernel.get().asArray()));\n }", "@Test\n public void testPushAndPopC() {\n\n System.out.println(\"pushB - All Nulls\");\n String elementOne = null;\n String elementTwo = null;\n String elementThree = null;\n String elementFour = null;\n\n //Stack<String> instance = new StackArrayImpl();\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n instance.push(elementOne);\n instance.push(elementTwo);\n instance.push(elementThree);\n instance.push(elementFour);\n\n int fourSize = instance.size();\n assertEquals(fourSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String resultFour = instance.pop();\n String resultThree = instance.pop();\n String resultTwo = instance.pop();\n String resultOne = instance.pop();\n\n assertEquals(elementOne, resultOne);\n assertEquals(elementTwo, resultTwo);\n assertEquals(elementThree, resultThree);\n assertEquals(elementFour, resultFour);\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "private static Object[] formatShapedGrid(Object[] itemStacksRaw, int width, int height) {\n int rawIndex = 0;\n Object[] itemStacks = new Object[9];\n for(int y = 0; y < height; y++) {\n for(int x = 0; x < width; x++) {\n itemStacks[y * 3 + x] = itemStacksRaw[rawIndex++];\n if(rawIndex >= itemStacksRaw.length) break;\n }\n if(rawIndex >= itemStacksRaw.length) break;\n }\n return itemStacks;\n }", "public _30_min_stack() {\n data = new Stack<>();\n help = new Stack<>();\n }", "public myStackUsingDynamicArray(){\n A = new dynamicArray();\n top=-1;\n bottom=-1;\n localSize=0;\n //Othe initializations to be done by student\n }", "@Test\n public void pushOnStackTest_Correct(){\n assertEquals(stack.getTop().getData() , stack.getStack().returnFirst());\n }", "@Override\n public ItemStack decrStackSize(int par1, int par2) {\n if (this.stack[par1] != null)\n {\n ItemStack var3;\n\n if (this.stack[par1].stackSize <= par2)\n {\n var3 = this.stack[par1];\n this.stack[par1] = null;\n return var3;\n }\n else\n {\n var3 = this.stack[par1].splitStack(par2);\n\n if (this.stack[par1].stackSize == 0)\n {\n this.stack[par1] = null;\n }\n\n return var3;\n }\n }\n else\n {\n return null;\n }\n }", "public void StackTest() {\n\tSystem.out.println( \"\\nQuestion (8) Stack Test\" );\n\tSystem.out.println( \"-----------------------\");\n\tStack s = new Stack(3);\n\tSystem.out.println( \"push 0\");\n\ts.push(0);\n\tSystem.out.println( \"push 1\");\n\ts.push(1);\n\tSystem.out.println( \"push 2\");\n\ts.push(2);\n\tSystem.out.println( \"try to push 3\");\n\ts.push(3); // error here pushing beyond stack depth, will print error messgae\n\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() ); \n\tSystem.out.println( \"try to pop \" ); // error here poping off empty stack\n\ts.pop();\n }", "public int getSize(){\n return this.stack.size();\n }", "public MinStack2() {\r\n\t\t\tdata = new Stack<>();\r\n\t\t\thelper = new Stack<>();\r\n\t\t}", "private void initStackPanes() {\n\t\tstackPanes=new ArrayList<StackPane>();\n\t\tstackPanes.add(c0);\n\t\tstackPanes.add(c1);\n\t\tstackPanes.add(c2);\n\t\tstackPanes.add(c3);\n\t\tstackPanes.add(c4);\n\t\tstackPanes.add(c5);\n\t\tstackPanes.add(c6);\n\t\tstackPanes.add(c7);\n\t\tstackPanes.add(c8);\n\t\tstackPanes.add(c9);\n\t\tstackPanes.add(c10);\n\t\tstackPanes.add(c11);\n\t\tstackPanes.add(c12);\n\t\tstackPanes.add(c13);\n\t\tstackPanes.add(c14);\n\t\tstackPanes.add(c15);\n\t\tstackPanes.add(c16);\n\t\tstackPanes.add(c17);\n\t\tstackPanes.add(c18);\n\t\tstackPanes.add(c19);\n\t\tstackPanes.add(c20);\n\t\tstackPanes.add(c21);\n\t\tstackPanes.add(c22);\n\t\tstackPanes.add(c23);\n\t\tstackPanes.add(c24);\n\t\tstackPanes.add(c25);\n\t\tstackPanes.add(c26);\n\t\tstackPanes.add(c27);\n\t\tstackPanes.add(c28);\n\t\tstackPanes.add(c29);\n\t\tstackPanes.add(c30);\n\t\tstackPanes.add(c31);\n\t\tstackPanes.add(c32);\n\t\tstackPanes.add(c33);\n\t\tstackPanes.add(c34);\n\t\tstackPanes.add(c35);\n\t\tstackPanes.add(c36);\n\t\tstackPanes.add(c37);\n\t\tstackPanes.add(c38);\n\t\tstackPanes.add(c39);\n\t\tstackPanes.add(c40);\n\t\tstackPanes.add(c41);\n\t\tstackPanes.add(c42);\n\t\tstackPanes.add(c43);\n\t\tstackPanes.add(c44);\n\t\tstackPanes.add(c45);\n\t\tstackPanes.add(c46);\n\t\tstackPanes.add(c47);\n\t}", "@Override\n \tpublic Object[] getImageArray() {\n \t\t// Release 3 times an RGB stack with this dimensions.\n \t\tlayers.get(0).getProject().getLoader().releaseToFit((long)(getSize() * getWidth() * getHeight() * 4 * 3));\n \t\tfinal Object[] ia = new Object[getSize()];\n \t\tfor (int i=0; i<ia.length; i++) {\n \t\t\tia[i] = getProcessor(i+1).getPixels(); // slices 1<=slice<=n_slices\n \t\t}\n \t\treturn ia;\n \t}", "Stack(Recycler<T> parent, Thread thread, int maxCapacity, int maxSharedCapacityFactor, int ratioMask, int maxDelayedQueues)\r\n/* 408: */ {\r\n/* 409:440 */ this.parent = parent;\r\n/* 410:441 */ this.threadRef = new WeakReference(thread);\r\n/* 411:442 */ this.maxCapacity = maxCapacity;\r\n/* 412:443 */ this.availableSharedCapacity = new AtomicInteger(Math.max(maxCapacity / maxSharedCapacityFactor, Recycler.LINK_CAPACITY));\r\n/* 413:444 */ this.elements = new Recycler.DefaultHandle[Math.min(Recycler.INITIAL_CAPACITY, maxCapacity)];\r\n/* 414:445 */ this.ratioMask = ratioMask;\r\n/* 415:446 */ this.maxDelayedQueues = maxDelayedQueues;\r\n/* 416: */ }", "protected static char[] expand(char[] stack) {\n char[] newStack = new char[stack.length * 2];\n System.arraycopy(stack, 0, newStack, 0, stack.length);\n return newStack;\n }", "@Test\n public void testPushAndPopD() {\n System.out.println(\"popC - Out of Order\");\n\n String elementOne = \"Bill\";\n String elementTwo = \"Steve\";\n String elementThree = \"Tim\";\n String elementFour = \"Dave\";\n\n //Stack<String> instance = new StackArrayImpl();\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n instance.push(elementOne);\n instance.push(elementTwo);\n instance.push(elementThree);\n\n int fourSize = instance.size();\n assertEquals(fourSize, 3);\n assertEquals(instance.isEmpty(), false);\n\n String resultThree = instance.pop();\n String resultTwo = instance.pop();\n\n instance.push(elementFour);\n String resultFour = instance.pop();\n\n String resultOne = instance.pop();\n\n assertEquals(elementOne, resultOne);\n assertEquals(elementTwo, resultTwo);\n assertEquals(elementThree, resultThree);\n assertEquals(elementFour, resultFour);\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "private void fillPRStack() {\n for (int i = 0; i < PRToVR.length - 1; i++) {\n PRStack.push(i);\n }\n }", "public interface Stack<E> {\r\n \r\n /** \r\n * Pre: Se ingresa el dato\r\n * @param data se ingresa un dato para agregar al Vector\r\n * Post: Se guarda el dato en Stack\r\n */\r\n public void push(E data);\r\n\r\n /** \r\n * Pre: Estan todos los datos en el Stack\r\n * @return E se regresa un item.\r\n * Post: Se regresa y elimina un dato del Stack\r\n */\r\n public E pop();\r\n\r\n /** \r\n * Pre: Se encuentra el Stack con sus datos\r\n * @return E se regresa cualquier tipo de dato\r\n * @throws EmptyStackException regresa un error\r\n * Post: Se regresa el dato sobre la lista\r\n */\r\n public E peek();\r\n\r\n /** \r\n * Pre:Se encuentra el Stack\r\n * @return boolean se regresa un valor True o False\r\n * Post: Si el Stack se encuentra vacio este regresa True\r\n */\r\n public boolean empty();\r\n\r\n /** \r\n * Pre:Se encuentra el Stack \r\n * @return int se regrea cualquier numero\r\n * Post: Se devuelve el numero de objetos que tiene el Stack\r\n */\r\n public int size();\r\n\r\n}", "public void testMyStack() {\n\t\tMyStack<String> s = new MyStack<String>();\n\t\ts.push(\"1\");\n\t\ts.push(\"2\");\n\t\ts.push(\"3\");\n\t\ts.pop();\n\t\ts.push(\"4\");\n\t\ts.toString();\n\t\tSystem.out.println(\"MyStack size is: \" + s.size());\n\t}", "public MinStack1() {\r\n stack = new Stack<>();\r\n }", "@Test\n public void testStackInteger() {\n DatastructureTest.INTSTACK.push(3);\n DatastructureTest.INTSTACK.push(7);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == 7);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == 7);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == 3);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == 3);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == -1);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == -1);\n }", "@Test\n public void testStackCodeExamples() {\n logger.info(\"Beginning testStackCodeExamples()...\");\n\n // Allocate an empty stack\n Stack<String> stack = new Stack<>();\n logger.info(\"Start with an empty stack: {}\", stack);\n\n // Push a rock onto it\n String rock = \"rock\";\n stack.pushElement(rock);\n assert stack.getTop().equals(rock);\n logger.info(\"Push a rock on it: {}\", stack);\n\n // Push paper onto it\n String paper = \"paper\";\n stack.pushElement(paper);\n assert stack.getTop().equals(paper);\n logger.info(\"Push paper on it: {}\", stack);\n\n // Push scissors onto it\n String scissors = \"scissors\";\n stack.pushElement(scissors);\n assert stack.getTop().equals(scissors);\n assert stack.getSize() == 3;\n logger.info(\"Push scissors on it: {}\", stack);\n\n // Pop off the scissors\n assert stack.popElement().equals(scissors);\n assert stack.getSize() == 2;\n logger.info(\"Pop scissors from it: {}\", stack);\n\n // Pop off the paper\n assert stack.popElement().equals(paper);\n assert stack.getSize() == 1;\n logger.info(\"Pop paper from it: {}\", stack);\n\n // Pop off the rock\n assert stack.popElement().equals(rock);\n assert stack.isEmpty();\n logger.info(\"Pop rock from it: {}\", stack);\n\n logger.info(\"Completed testStackCodeExamples().\\n\");\n }", "public static List<int[]> getContainedPixels(MeshImageStack stack, DeformableMesh3D mesh){\n Box3D box = mesh.getBoundingBox();\n double[] lowI = stack.getImageCoordinates(box.low);\n double[] highI = stack.getImageCoordinates(box.high);\n\n InterceptingMesh3D picker = new InterceptingMesh3D(mesh);\n double[] xdirection = {1,0,0};\n\n int slices = stack.getNSlices();\n int w = stack.getWidthPx();\n int h = stack.getHeightPx();\n double center[] = new double[3];\n\n int sliceLow = (int)lowI[2];\n int sliceHigh = (int)highI[2];\n //verify\n sliceLow = sliceLow < 0 ? 0 : sliceLow;\n sliceHigh = sliceHigh <= slices ? sliceHigh : slices;\n\n int jlo = (int)lowI[1];\n int jhi = (int)highI[1];\n jlo = jlo < 0 ? 0 : jlo;\n jhi = jhi <= h ? jhi : h;\n\n int xlo = (int)lowI[0];\n int xhi = (int)highI[0];\n xlo = xlo < 0 ? 0: xlo;\n xhi = xhi > w ? w : xhi;\n List<int[]> contained = new ArrayList<>();\n for(int slice = sliceLow; slice<sliceHigh; slice++){\n\n center[2] = slice;\n\n\n for(int j = jlo; j<jhi; j++){\n\n int offset = j*w;\n center[1] = j;\n\n List<Intersection> sections = picker.getIntersections(stack.getNormalizedCoordinate(center), xdirection);\n if(sections.size()==0){\n //No intersections. No points inside.\n continue;\n }\n scanDirty(sections);\n sections.sort((a,b)->Double.compare(a.location[0], b.location[0]));\n\n boolean startInside = false;\n double count = 0;\n double[] boundaries = new double[sections.size()+1];\n\n //the number of boundaries that switch the state from inside to outside.\n int valid = 0;\n double lowestEntry = Double.MAX_VALUE;\n double highestExit = -Double.MAX_VALUE;\n\n for(int k = 0; k<sections.size(); k++){\n\n double bound = stack.getImageCoordinates(sections.get(k).location)[0];\n\n boolean facingLeft = sections.get(k).surfaceNormal[0]<0;\n boolean facingRight = !facingLeft;\n //going through all interfaces, and either going further in\n //or back out.\n if(facingLeft){\n count++;\n if(bound < lowestEntry){\n lowestEntry = bound;\n }\n } else{\n count--;\n if(bound > highestExit){\n highestExit = bound;\n }\n }\n if(bound>0) {\n //check if it is actually a boundary\n if ( count==1 && facingLeft ) {\n //boundary entering region.\n if( valid == 0){\n startInside = false;\n }\n boundaries[valid] = bound;\n valid++;\n } else if (count==0 && facingRight) {\n //stepped out.\n if( valid == 0){\n startInside = true;\n }\n boundaries[valid] = bound;\n valid++;\n }\n\n }\n }\n\n boolean inside = startInside;\n\n\n if(lowestEntry < lowI[0]){\n System.out.println(\"Topo Error: lowest entry is less than bounding box!\");\n }\n if( (int)highestExit > highI[0] ){\n System.out.println(\"Topo Error: highest exit is outside of bounding box!\");\n }\n\n if(startInside && lowestEntry>0){\n System.out.println(\"Topo Error: Lower bound above zero but mesh starts inside.\");\n }\n\n boundaries[valid] = w;\n\n //This isn't necessarily true.\n //lowestIntersection >= lowI[0] and highestIntersection <= highI[0]\n boolean finishesOutsideImage = lowestEntry <= (w-1) && highestExit >= (w - 1) ;\n\n int current = 0;\n\n\n for(int p = 0; p<w; p++){\n if(p>boundaries[current]){\n //switch.\n current++;\n inside = !inside;\n }\n if(inside){\n contained.add(new int[]{p, j, slice});\n }\n }\n if(finishesOutsideImage && !inside){\n System.out.println(\"topography warning: bounds outside image, but not inside the shape at end\");\n }\n\n if(!finishesOutsideImage && inside){\n System.out.println(\"Inconsistent bounding box: End of image is out of bounds, but state is inside the shape\");\n System.out.println(Arrays.toString(lowI) + \" [~] \" + Arrays.toString(highI));\n }\n\n }\n\n }\n return contained;\n }", "protected abstract StackManipulation preparation();", "public int getStackSize() {\n\t\treturn stackSize;\n\t}", "boolean isFull(Stack stack){\n\t\tif(stack.getStackSize() >= 100) return true;\r\n\t\telse return false;\t\r\n\t}", "private void showStacksVisualization() {\n\t\tsetVisualization(new StackVisualization(rootComposite, controller, checklist));\n\t}", "public StackUnderflowException(){\n super(\"Can not pop from an empty stack\");\n }", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\r\n{\r\n stateptr = -1;\r\n val_init();\r\n return true;\r\n}", "final boolean init_stacks()\n {\n stateptr = -1;\n val_init();\n return true;\n }", "@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Fixed Stack\");\r\n\t\t\r\n\t}", "@Override\n\tpublic ItemStack decrStackSize(int index, int count) {\n\t\treturn null;\n\t}", "public GMap<Integer, Stack> getStacks();", "public ArrayStackTest(int capacity){\n\t\tstore = (E[]) new Object[capacity];\n\t\ttop = -1;\n\t}", "public ArrayStack (int initialCapacity)\r\n {\r\n top = 0;\r\n stack = (T[]) (new Object[initialCapacity]);\r\n }", "public void deleteStack(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // if stack is present\n topOfStack=-1;\n arr=null;\n System.out.println(\"Stack deleted successfully\");\n }", "@Override\r\n\tpublic int size() {\r\n\t\treturn stack.length;\r\n\t}", "private static ArrayStack stackOfPatients() {\r\n Patient p0 = new Patient(\"Jerry Smith\", 3);\r\n Patient p1 = new Patient(\"Morty Smith\", 9);\r\n Patient p2 = new Patient(\"Saint Petes\", 1);\r\n Patient p3 = new Patient(\"Anner Bananer\", 1);\r\n Patient p4 = new Patient(\"Bruce Wayne\", 4);\r\n Patient p5 = new Patient(\"Thomas Muller\", 8);\r\n Patient p6 = new Patient(\"Mario Gotze\", 6);\r\n Patient p7 = new Patient(\"Philip Lahm\", 5);\r\n Patient p8 = new Patient(\"Sir Tiny Eyes\", 3);\r\n Patient p9 = new Patient(\"Celery Man\", 10);\r\n\r\n ArrayStack<Patient> patientStack = new ArrayStack<>();\r\n patientStack.push(p0);\r\n patientStack.push(p6);\r\n patientStack.push(p5);\r\n patientStack.push(p3);\r\n patientStack.push(p8);\r\n patientStack.push(p4);\r\n patientStack.push(p7);\r\n patientStack.push(p1);\r\n patientStack.push(p2);\r\n patientStack.push(p9);\r\n\r\n return patientStack;\r\n\r\n }", "public DoubleElementMinStack() {\n stack = new Stack<>();\n }", "private void increaseStackSize(int sizeIncrease) {\n Object [] newStack = new Object[stack.length + sizeIncrease];\n copyArray(newStack, stack);\n stack = newStack;\n }", "public void print_stacks(ArrayList<ArrayList<Stack<Integer>>> stacks) {\n\t\tfor (int k=0; k<size*size; k++) {\n\t\t\tSystem.out.println(\"----------------------------------------\\n\\tRow \"+k+\"'s Possible Values\\n----------------------------------------\");\n\t\t\tfor (int l=0; l<size*size; l++) {\n\t\t\t\tSystem.out.print(\"col \"+l+\" |\");\n\t\t\t\tif (!stacks.get(k).get(l).empty()) System.out.println(stacks.get(k).get(l));\n\t\t\t\telse System.out.println();\t\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testModuloStackSize() {\n MainPanel mp = new MainPanel();\n ProgramArea pa = new ProgramArea();\n ProgramStack ps = new ProgramStack();\n\n ps.push(10);\n ps.push(3);\n\n ProgramExecutor pe = new ProgramExecutor(mp, ps, pa);\n\n pe.modulo();\n ps.pop();\n\n Assert.assertEquals(\"[]\", ps.toString());\n }", "public static Boolean isZStack(String slideRef, String... varargs) {\n\t\t// setting the default value when arguments' value is omitted\n\t\tString sessionID = varargs.length > 0 ? varargs[0] : null;\n\t\t// Determine whether a slide is a z-stack or not\n\t\treturn isMultiLayer(slideRef, sessionID);\n\t}", "public String getStack();", "void dump_stacks(int count)\n{\nint i;\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\n for (i=0;i<count;i++)\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\n System.out.println(\"======================\");\n}", "void dump_stacks(int count)\n{\nint i;\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\n for (i=0;i<count;i++)\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\n System.out.println(\"======================\");\n}", "void dump_stacks(int count)\n{\nint i;\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\n for (i=0;i<count;i++)\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\n System.out.println(\"======================\");\n}", "public MyStack2() {\n q1 = new ArrayDeque<>();\n q2 = new ArrayDeque<>();\n }", "public static void main(String[] args) {\n// System.out.println(\"as.getSize() == \" + as.getSize());\n// as.pop();\n// System.out.println(\"as.pop() == \" + as);\n// System.out.println(\"as.peek() == \" + as.peek());\n// as.push(\"17\");\n// System.out.println(as);\n\n LinkedListStack<Integer> stack = new LinkedListStack<>();\n\n for(int i = 0 ; i < 5 ; i ++){\n stack.push(i);\n System.out.println(stack);\n }\n\n stack.pop();\n System.out.println(stack);\n\n }", "public ArrayStack()\r\n {\r\n top = 0;\r\n stack = (T[])(new Object[DEFAULT_CAPACITY]);\r\n }", "void dump_stacks(int count)\r\n{\r\nint i;\r\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\r\n for (i=0;i<count;i++)\r\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\r\n System.out.println(\"======================\");\r\n}", "public MinStack_155() {\n\t\tmin= new Stack<Integer>();\n\t\tstack= new Stack<Integer>();\n\t}", "public MinStack() {\n dataStack=new Stack<>();\n minStack=new Stack<>();\n }", "public MinStack() {\n data = new ArrayDeque<>();\n helper = new ArrayDeque<>();\n }", "public int getSize() {\r\n\t\treturn stack.size();\r\n\t}", "@Test\r\n public void testStackListaEncadenada() {\r\n StackListaEncadenada<Integer> stack = new StackListaEncadenada<Integer>();\r\n\r\n stack.push(1);\r\n stack.push(2);\r\n stack.push(3);\r\n stack.push(4);\r\n stack.push(5);\r\n\r\n assertEquals(5, stack.peek());\r\n assertEquals(5, stack.pop());\r\n assertEquals(4, stack.size());\r\n }", "public static void main(String[] args) {\r\n\r\n\t\tArrayStack arrst = new ArrayStack(5);\r\n\t\tIntStream.range(0, 5).forEach(arrst::push);\r\n\t\tSystem.out.println(\"Response of peek \" + arrst.peek());\r\n\t\tSystem.out.println(\"Response of pop\" + arrst.pop());\r\n\t\tSystem.out.println(\"push one random number in the middle\");\r\n\t\tarrst.push(10);\r\n\t\tSystem.out.println(\"printing stack after first pop\");\r\n\t\tarrst.display();\r\n\r\n\t\tIntStream.range(0, arrst.size()).forEach(i -> arrst.pop());\r\n\r\n\t\tSystem.out.println(\"isEmpty after poping all the elements ???\" + arrst.isEmpty());\r\n\r\n\t\tarrst.display();\r\n\r\n\t}", "@Override void apply(Env e) {\n // stack is [ ..., rhs, lhs ]\n Key k = Key.make(e.popStr());\n Frame fr;\n if( e.isAry() ) {\n Frame f = e.popAry();\n fr = new Frame(k, f.names(), f.vecs());\n } else if( e.isNum() ) fr = new Frame(k, null, new Vec[]{Vec.makeCon(e.popDbl(), 1)});\n else if( e.isStr() ) {\n Vec v = Vec.makeZero(1);\n v.setDomain(new String[]{e.popStr()});\n fr = new Frame(k,new String[]{\"C1\"}, new Vec[]{v});\n } else throw new IllegalArgumentException(\"Don't know what to do with: \"+e.peek().getClass());\n e.lock(fr);\n e.put(k.toString(), fr);\n e.push(new ValFrame(fr, false /*isGlobalSet*/));\n }", "public MinValueStack(){\r\n stack1 = new Stack<T>();\r\n stack2 = new Stack<T>();\r\n size = 0;\r\n }", "ArrayStack() {\r\n\t\tstack = new int[10];\r\n\t\ttop = 0;\r\n\t}" ]
[ "0.65293705", "0.6474458", "0.6356223", "0.62178344", "0.60978824", "0.60806143", "0.60777086", "0.59847796", "0.59815896", "0.59495294", "0.5885759", "0.58852845", "0.5856733", "0.58551866", "0.5793647", "0.57897717", "0.5748476", "0.57440466", "0.5737041", "0.57199854", "0.5704051", "0.56978506", "0.5685294", "0.5651567", "0.564833", "0.56395304", "0.56369966", "0.5621828", "0.56013125", "0.5579416", "0.55735683", "0.55589634", "0.5534338", "0.5511904", "0.5491521", "0.5479934", "0.5462661", "0.5456565", "0.5445538", "0.5427973", "0.5422435", "0.54073894", "0.53868383", "0.5375859", "0.5374216", "0.5373396", "0.53690284", "0.5364587", "0.5364386", "0.5355196", "0.53189003", "0.5303799", "0.5293992", "0.5289003", "0.527292", "0.52700037", "0.52410585", "0.52363586", "0.5231455", "0.5222065", "0.521814", "0.52166486", "0.52149546", "0.52148914", "0.520913", "0.52062577", "0.52062577", "0.52062577", "0.5203129", "0.5199019", "0.51925194", "0.517531", "0.51658845", "0.51609176", "0.5149917", "0.51479673", "0.51474696", "0.5146995", "0.5139386", "0.5124396", "0.51239145", "0.51216084", "0.51105416", "0.5104585", "0.51035494", "0.51035494", "0.51035494", "0.5102216", "0.5099171", "0.5093709", "0.5092578", "0.50922763", "0.5084851", "0.5084263", "0.5082549", "0.50824785", "0.5079363", "0.5077408", "0.5077108", "0.50678974" ]
0.61261034
4
null imageProc and null image
@Test public void testIsInvertedLut() { ip = new ImagePlus("CircusHell",(Image)null); assertFalse(ip.isInvertedLut()); // null image proc with non null image ip = new ImagePlus("CircusHell",new BufferedImage(50,75,BufferedImage.TYPE_USHORT_555_RGB)); assertEquals(ip.ip.isInvertedLut(),ip.isInvertedLut()); // non null image proc = new ByteProcessor(2,3,new byte[]{1,2,3,4,5,6},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3})); ip = new ImagePlus("CircusHell",proc); assertEquals(ip.ip.isInvertedLut(),ip.isInvertedLut()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected String getImage(int row, int col) {\n\t\treturn null;\n\t}", "@Override\n\tpublic ImageDescriptor getImageDescriptor() {\n\t\treturn null;\n\t}", "@Override\n\t\tpublic ImageDescriptor getImageDescriptor() {\n\t\t\treturn null;\n\t\t}", "@Override\r\n\tpublic ImageDescriptor getImageDescriptor() {\n\t\treturn null;\r\n\t}", "@Override\r\n public Object createImage(Object data) {\r\n\t // N/A in JS\r\n\t return null;\r\n\t}", "@Override\n public Image getImage(Photo photo) {\n return null;\n }", "public IImage createImage(IImage source) {\n return null;\r\n }", "@Override\n\tpublic Image getImage(Object element) {\n\t\treturn null;\n\t}", "@Override\n protected String getRequestedImage(HttpServletRequest req) {\n\treturn null;\n }", "private void initAreaImageFilm() {\n\n }", "private void drawImage(){\n Integer resourceId = imageId.get(this.name);\n if (resourceId != null) {\n drawAbstract(resourceId);\n } else {\n drawNone();\n }\n }", "public void Func_imagefile(){\n\n\t\tswf_env.containImg = true;\n\n\n\t\tthis.value = new SWFValue(\"Func\");\n\n\t\tString path = this.getAtt(\"path\", \".\");\n\t\tString filename = this.getAtt(\"default\");\n\t\tString type = \"auto\";\n\t\tvalue.instanceName = \"img\"+ Integer.toString(swf_env.instanceID);\n\t\tvalue.data = \"\";\n\t\tvalue.imgpath = path + \"/\" + filename;\n\t\tvalue.inter_imgpath = path + \"/\" + filename;\n\t\tvalue.inter_name = \"intimg\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.tmp = \"tmp\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.lnum = Integer.toString(swf_env.visibleflag_counter);\n\n\n\t\tif(!path.startsWith(\"/\")) {\n\t\t\tString basedir = GlobalEnv.getBaseDir();\n\t\t\tLog.out(\"basedir= \" +basedir);\n\t\t\tif(basedir != null && basedir != \"\") {\n\t\t\t\tpath = basedir + path;\n\t\t\t}\n\t\t}\n\n\t\tString filepath = path + \"/\" + filename;\n\n\n\t\tsetDecoration1();\n\t\tvalue.margin = margin;\n\n\n\t\tSystem.out.println(\"filepath = \"+filepath);\n\t\tint img = swf_env.open_image_file(type, filepath);\n\t\tvalue.img = img;\n\n\t\tdata_width = swf_env.get_value(\"imagewidth\", img);\n\t\tdata_height = swf_env.get_value(\"imageheight\", img);\n\t\tSystem.out.println(\"imagesize: \"+data_width+\" \"+data_height);\n\t\twidth = data_width + margin * 2;\n\t\theight = data_height + margin * 2;\n\n\n\t\tsetDecoration2();\n\n\t\tif(data_width > width){\n\t\t\tint original_width = data_width;\n\t\t\tdata_width = width - margin * 2;\n\t\t\tint scale = data_width / original_width;\n\t\t\tdata_height = data_height * scale;\n\t\t\theight = data_height + margin * 2;\n\t\t}\n\t\tif(data_height > height){\n\t\t\tint original_height = data_height;\n\t\t\tdata_height = height - margin * 2;\n\t\t\tint scale = data_height / original_height;\n\t\t\tdata_width = data_width * scale;\n\t\t\twidth = data_width + margin * 2;\n\t\t}\n\n\t\tvalue.data_width = data_width;\n\t\tvalue.data_height = data_height;\n\t\tvalue.width = width;\n\t\tvalue.height = height;\n\t\t//morya wrote\n\t\tvalue.int_w = width;\n\t\tvalue.int_h = height;\n\n\n\t\tsetDecoration3();\n\n\t\tswf_env.tmp_width = width;\n\t\tswf_env.tmp_height = height;\n\n\n\t\tswf_env.instanceID++;\n\n\t}", "public PDFConversionImageHandler() {\r\n\t\tsuper(null, true);\r\n\t}", "public ImageDescriptor getImageDescriptor()\n\t{\n\n\t\treturn null;\n\t}", "public M csmiOnCertifyImageNull(){if(this.get(\"csmiOnCertifyImageNot\")==null)this.put(\"csmiOnCertifyImageNot\", \"\");this.put(\"csmiOnCertifyImage\", null);return this;}", "private void enhanceImage(){\n }", "@Override\n\tpublic String getImagePath32X32() {\n\t\treturn null;\n\t}", "public Image getImage() {\n return null;\r\n }", "void ProcessImage() {\n DoDescribe();\n }", "void kill () {if (img != null) {img.flush (); img = null;}}", "public M csmiDriverImageNull(){if(this.get(\"csmiDriverImageNot\")==null)this.put(\"csmiDriverImageNot\", \"\");this.put(\"csmiDriverImage\", null);return this;}", "public M csmiCertifyImageNull(){if(this.get(\"csmiCertifyImageNot\")==null)this.put(\"csmiCertifyImageNot\", \"\");this.put(\"csmiCertifyImage\", null);return this;}", "@Override\r\n\tpublic void run(ImageProcessor ip) {\n\t\t\r\n\t}", "public ImageDescriptor getImageDescriptor() {\n\t\treturn null;\r\n\t}", "@Override\n public Action update() {\n // draws the image \"image\" at position \"this.x\" and \"this.y\" and then returns null\n Thing.getProcessing().image(this.image, this.x, this.y);\n return null;\n }", "public void setImg_0(String img_0) {\n this.img_0 = img_0;\n }", "public String getImage() {\n\t\treturn null;\n\t}", "public Image getImage()\n {\n return null;\n }", "private void paintNull(Graphics g, int j, int i) {\n // Image img=imgVec[NULL_ST];\n // if(img==null){\n // img=createImage(ISIZE,ISIZE);\n // imgVec[NULL_ST]=img;\n // Graphics ig=img.getGraphics();\n g.setColor(Color.black);\n g.fillRect(j * CELL_SIZE, i * CELL_SIZE, CELL_SIZE, CELL_SIZE);\n // }\n // g.drawImage(img,j * DIM, i * DIM,this);\n }", "@Override\r\n\tpublic void init() {\n\t\timg = new ImageClass();\r\n\t\timg.Init(imgPath);\r\n\t}", "public native void destroyImages();", "public void renderOutputImageManager()\n {\n if(input != null)\n {\n if(toRerender)\n {\n background(background);\n mosaic.newCanvas();\n mosaic.setPreviewCanvas();\n mosaic.drawImage();\n renderPreview();\n renderHover();\n image(infoGraphics,10,270);\n toRerender = false;\n }\n }\n else\n {\n background(background);\n image(infoGraphics,40,270);\n }\n }", "public BufferedImage createImage(int taskId, Connection con, String imageName) throws SQLException, ServletException {\n return null;\n }", "public ImageProcessor(Pic a) {\n image = a;\n }", "public void renderInputImageManager()\n {\n background(background);\n if(resized != null)\n {\n imageMode(CENTER);\n image(resized,(width-150)/2+140,height/2);\n imageMode(CORNERS);\n }\n }", "@Override\n\tpublic void init() {\n\t\tthis.image = Helper.getImageFromAssets(AssetConstants.IMG_ROAD_NORMAL);\n\t}", "private void initImage() {\n this.image = (BufferedImage)this.createImage(DisplayPanel.COLS, DisplayPanel.ROWS);\n this.r.setRect(0, 0, DisplayPanel.ROWS, DisplayPanel.COLS);\n this.paint = new TexturePaint(this.image,\n this.r);\n }", "IMG createIMG();", "public abstract Image gen();", "public void eraseImage() {\n\t\timage = null;\n\t}", "private void displayNoImage() {\n\t\tGRect imageRect = new GRect(LEFT_MARGIN, nameY + IMAGE_MARGIN,\n\t\t\t\tIMAGE_WIDTH, IMAGE_HEIGHT);\n\t\tadd(imageRect);\n\t\tGLabel noImage = new GLabel(\"No Image\");\n\t\tnoImage.setFont(PROFILE_IMAGE_FONT);\n\t\tdouble labelWidth = LEFT_MARGIN + IMAGE_WIDTH / 2 - noImage.getWidth()\n\t\t\t\t/ 2;\n\t\tdouble labelHeight = nameY + IMAGE_MARGIN + IMAGE_HEIGHT / 2;\n\t\tadd(noImage, labelWidth, labelHeight);\n\t}", "protected abstract Image loadImage();", "protected void setPic() {\n }", "Image createImage();", "@Override\n\tpublic String getImagePath16X16() {\n\t\treturn null;\n\t}", "public void initComp(){\n\n\n mResultImg = (ImageView) findViewById(R.id.result_imageView);\n\n mResultImg.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (mNormalImg){\n mResultImg.setImageDrawable(PicSingleton.getInstance().getPicShaped());\n mNormalImg = false;\n }\n else {\n mResultImg.setImageBitmap(PicSingleton.getInstance().getPicToShape());\n mNormalImg = true;\n }\n }\n });\n\n mResultImg.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n\n showSaveDialog();\n return true;\n }\n });\n\n }", "public void isImagePresent() {\r\n\t\t\t\r\n\t\t}", "public HSIImage()\r\n {\r\n }", "private void helperDisplayInputImage()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//---- Get currently selected file index in the combo box\r\n\t\t\tint index = mainFormLink.getComponentPanelLeft().getComponentComboboxFileName().getSelectedIndex();\r\n\r\n\t\t\t//---- Check the index if the action is invoked by image deletion then causes error\r\n\t\t\tint imageCount = DataController.getTable().getTableSize();\r\n\r\n\t\t\tif (index >= 0 && index < imageCount)\r\n\t\t\t{\r\n\t\t\t\t//---- Get file path of the table\r\n\r\n\t\t\t\tString filePath = DataController.getTable().getElement(index).getDataFile().getFilePath();\r\n\r\n\t\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().displayPolygonStop();\r\n\t\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().loadImage(filePath);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic byte[] flush() throws ImageHandlingException {\n\t\treturn null;\r\n\t}", "public ImagePlus morph(ImagePlus imp_old,int proc, int rad){\nImageProcessor img = imp_old.getProcessor();\nImagePlus morphImg;\nif (proc==0){\nImageProcessor dil = Morphology.dilation(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"dilation\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n} else if (proc==1){\nImageProcessor dil = Morphology.erosion(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"erosion\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n} else{\nImageProcessor dil = Morphology.closing(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"closing\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n}\n}", "Imagem getImagem();", "@Override\n\tpublic String getImageURL() {\n\t\treturn \"\";\n\t}", "@Override\n public boolean prepareImage(Image img, int w, int h, ImageObserver o) {\n return Toolkit.getDefaultToolkit().prepareImage(img, w, h, o);\n }", "private Images() {}", "public void finalize(){\r\n srcImage = null;\r\n sigmas = null;\r\n xDataRound = null;\r\n yDataRound = null;\r\n zDataRound = null;\r\n super.finalize();\r\n }", "public void writeImageNoParams(BufferedImage image) throws IOException {\n }", "public PlainImage(Image image) {\r\n\t\tthis.image = image;\r\n\t}", "void lSetImage(Image img);", "public void unsetNullFlavor()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(NULLFLAVOR$28);\n }\n }", "public Image getImage(T anItem) { return null; }", "protected Surface getOutputSurface() { return null; }", "private void reanderImage(ImageData data) {\n \n }", "public IImage createImage(String name) throws IOException {\n return null;\r\n }", "public void setPicture(javax.activation.DataHandler param) {\r\n localPictureTracker = param != null;\r\n\r\n this.localPicture = param;\r\n }", "@Override\n\tpublic String getImageName() {\n\t\treturn \"\";\n\t}", "String removeImageStyle();", "public imageProcessor(BufferedImage img, int h) {\n records = null;\n\n this.untouchedImage = img;\n this.orig = img;\n maxHeight = h;\n dataPath = \"\";\n\n }", "public OutMessage imageTypeMsg(InMessage msg) {\n\t\treturn null;\n\t}", "public a(a imgSrc, J2KImageWriteParamJava wp) {\n/* 123 */ super((f)imgSrc);\n/* 124 */ this.f = wp.getComponentTransformation();\n/* 125 */ this.g = wp.getFilters();\n/* 126 */ this.e = imgSrc;\n/* */ }", "public ImageProviderPipeline() {\n/* 82 */ this(null, null);\n/* */ }", "@Override\n\tpublic String getImagePathBig() {\n\t\treturn null;\n\t}", "@Nullable\n @Generated\n @Selector(\"image\")\n public native UIImage image();", "@Override\n\tpublic boolean isMyImage() {\n\t\treturn false;\n\t}", "public void removeImage() {\n setFileImage(null);\n getSelected().setUrlImage(null);\n RequestContext.getCurrentInstance().update(\"image\");\n }", "void setImage(PImage img) {\n _img = img;\n }", "@Override\n public Image getInstructionPointerImage(final IEditorPart editorPart, final IStackFrame frame) {\n return null;\n }", "@Override\n public ProcessedImage process(ImageProcessRequest imageProcessRequest, BufferedImage img) throws IOException {\n\n if(img.getColorModel().hasAlpha() && imageProcessRequest.preset.format == FileFormat.JPG) {\n // Perform PNG -> JPG alpha fix\n // https://github.com/thebuzzmedia/imgscalr/issues/59#issuecomment-3743920\n BufferedImage tmpImg = new BufferedImage(img.getWidth(), img.getHeight(), BufferedImage.TYPE_INT_RGB);\n\n Graphics g = tmpImg.getGraphics();\n g.drawImage(img, 0, 0, null);\n g.dispose();\n\n img.flush();\n img = tmpImg;\n }\n\n img = resize(img, getScalrMethod(imageProcessRequest.preset), getScalrMode(imageProcessRequest.preset), imageProcessRequest.preset.width, imageProcessRequest.preset.height);\n\n ProcessedImage processedImage = new ProcessedImage(\n write(img, imageProcessRequest.preset),\n img.getWidth(),\n img.getHeight()\n );\n\n return processedImage;\n }", "public void act()\n {\n mudaImagem();\n }", "private void putProfPic(Blob gbPhoto) throws SQLException, FileNotFoundException, IOException {\n if(gbPhoto == null){\n ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();\n File file = new File(externalContext.getRealPath(\"\")+\"\\\\resources\\\\images\\\\user_default.png\");\n imagePic = new OracleSerialBlob(FileUtils.getBytes(file));\n Long size = imagePic.length();\n photo_profile = new ByteArrayContent(imagePic.getBytes(1, size.intValue()));\n }else{\n imagePic = gbPhoto;\n Long size = gbPhoto.length();\n photo_profile = new ByteArrayContent(gbPhoto.getBytes(1, size.intValue()));\n }\n }", "public Bitmap getFinalShapesImage();", "public boolean shouldImageProcess() {\r\n\t\treturn table.getBoolean(SHOULD_IMAGE_PROCESS_KEY, false);\r\n\t}", "private void filter(BufferedImageOp op)\n { \n if (image == null) return;\n BufferedImage filteredImage \n = new BufferedImage(image.getWidth(), image.getHeight(), image.getType());\n op.filter(image, filteredImage);\n image = filteredImage;\n repaint();\n }", "private Operation filterOperation(Operation op) {\n\t\t\tif (op instanceof ImageOperation) {\n\t\t\t\tImage i = ((ImageOperation) op).getImage();\n\t\t\t\tDimension d = ImageSize.get(i);\n\t\t\t\tBufferedImage bi = new BufferedImage(d.width, d.height,\n\t\t\t\t\t\tBufferedImage.TYPE_INT_ARGB);\n\t\t\t\tGraphics2D g3 = bi.createGraphics();\n\t\t\t\tg3.drawImage(i, 0, 0, null);\n\t\t\t\tg3.dispose();\n\t\t\t\t((ImageOperation) op).setImage(bi);\n\t\t\t}\n\t\t\treturn op;\n\t\t}", "private void setPhotoAttcher() {\n\n }", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(img, 0, 0, null);\n }", "private ImageLoader() {}", "private void prepararImagenYStorage() {\n mImageBitmap = null;\n\n //this.capturarFotoButton = (Button) findViewById(R.id.capturarFotoButton);\n// setBtnListenerOrDisable(\n// this.capturarFotoButton,\n// mTakePicSOnClickListener,\n// MediaStore.ACTION_IMAGE_CAPTURE\n// );\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO) {\n mAlbumStorageDirFactory = new FroyoAlbumDirFactory();\n } else {\n mAlbumStorageDirFactory = new BaseAlbumDirFactory();\n }\n }", "@Test\n public void getPicture_NoPictureExist(){\n Bitmap retrieved = testRecipe.getImage(appContext);\n assertNotEquals(\"getPicture - Not Null\", null, retrieved);\n }", "private static native boolean retrieve_0(long nativeObj, long image_nativeObj, int flag);", "public Image getImage(Object element) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "public Image getImage(Object element) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "public Image getImage(Object element) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "void resetDragImage();", "public native MagickImage flopImage() throws MagickException;", "private synchronized static native void nativeFreeImage( int image ) \n throws UnsatisfiedLinkError;", "public boolean hasImage() { return ImageResource != NO_IMAGE_PROVIDED; }", "@Override\n\tpublic ImageProducer getSource() {\n\t\treturn null;\n\t}", "public void clearImage() {\n IntStream.range(0, bytes.length).forEach(i -> bytes[i] = CLEAR_BYTE);\n }", "private ImageUtils() {}" ]
[ "0.6450893", "0.64401144", "0.6419463", "0.6385745", "0.6332043", "0.60781926", "0.59583086", "0.59343827", "0.59145325", "0.5914307", "0.58885133", "0.58863735", "0.5820972", "0.5817969", "0.58104575", "0.5753403", "0.5741353", "0.57213724", "0.57117754", "0.5707977", "0.57022077", "0.5670204", "0.56678796", "0.5660876", "0.5660713", "0.56543523", "0.5642208", "0.5625619", "0.56178683", "0.5604339", "0.5589576", "0.55821776", "0.5574875", "0.555252", "0.5547772", "0.55399084", "0.5529809", "0.55224186", "0.5517802", "0.5511625", "0.5491341", "0.54847974", "0.5483085", "0.5469784", "0.5467574", "0.54544306", "0.5448102", "0.54451185", "0.5443451", "0.5441551", "0.5431682", "0.54190415", "0.5418503", "0.5416498", "0.54153186", "0.5399591", "0.539716", "0.53928936", "0.53908926", "0.53883547", "0.5385244", "0.53846174", "0.53675437", "0.5366707", "0.53629625", "0.5361509", "0.5359292", "0.5353236", "0.5348908", "0.5344555", "0.53383005", "0.53173053", "0.53165364", "0.5316337", "0.53137493", "0.53113604", "0.5308255", "0.53080076", "0.53066903", "0.53012055", "0.52848417", "0.5280218", "0.52773577", "0.5271783", "0.5265176", "0.5262535", "0.52562183", "0.52555203", "0.5249172", "0.5248455", "0.5246835", "0.5246835", "0.5246835", "0.52454495", "0.5242967", "0.5237379", "0.5234253", "0.5234239", "0.5230801", "0.5224324" ]
0.5259169
86
if null img then always return [0,0,0,0]
@Test public void testGetPixel() { ip = new ImagePlus(); assertArrayEquals(new int[] {0,0,0,0}, ip.getPixel(0,0)); // COLOR_256 IndexColorModel cm = new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}); proc = new ByteProcessor(1,1,new byte[] {0},cm); ip = new ImagePlus("SoupySales",proc); ip.setImage(new BufferedImage(1,1,BufferedImage.TYPE_BYTE_INDEXED, cm)); assertEquals(ImagePlus.COLOR_256,ip.getType()); assertArrayEquals(new int[] {1,2,3,0}, ip.getPixel(0,0)); // GRAY8 proc = new ByteProcessor(1,1,new byte[] {53}, null); ip = new ImagePlus("SoupySales",proc); ip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0] assertEquals(ImagePlus.GRAY8,ip.getType()); assertArrayEquals(new int[] {53,0,0,0}, ip.getPixel(0,0)); assertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1)); // GRAY16 proc = new ShortProcessor(1,1,new short[] {30000},null); ip = new ImagePlus("SoupySales",proc); ip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0] assertEquals(ImagePlus.GRAY16,ip.getType()); assertArrayEquals(new int[] {30000,0,0,0}, ip.getPixel(0,0)); assertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1)); // COLOR_RGB proc = new ColorProcessor(1,1,new int[] {0xffeedd}); ip = new ImagePlus("SoupySales",proc); ip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0] assertEquals(ImagePlus.COLOR_RGB,ip.getType()); assertArrayEquals(new int[] {0xff,0xee,0xdd,0}, ip.getPixel(0,0)); assertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1)); // GRAY32 int[] ints = new int[3]; proc = new FloatProcessor(1,3,ints); proc.set(0, 0, Float.floatToIntBits(25.0f)); ip = new ImagePlus("SoupySales",proc); ip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0] assertEquals(ImagePlus.GRAY32,ip.getType()); assertArrayEquals(new int[] {Float.floatToIntBits(25.0f),0,0,0}, ip.getPixel(0,0)); assertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getImg_0() {\n return img_0;\n }", "private static int[][][] getImagePixels(Image img) {\n\n // Get the raw pixel data \n iObserver observer = new iObserver();\n int width1 = img.getWidth(observer);\n int height1 = img.getHeight(observer);\n int[] rawPixels = utils.getPixels(img,width1,height1);\n\n // Each pixel is represented by 32 bits. Separate the tH32 bits into\n // four 8-bit values (red, green, blue, offset).\n int[][] rgbPixels = new int[rawPixels.length][4];\n for(int j=0; j<rawPixels.length; j++) {\n rgbPixels[j][0] = ((rawPixels[j]>>16)&0xff);\n rgbPixels[j][1] = ((rawPixels[j]>>8)&0xff);\n rgbPixels[j][2] = (rawPixels[j]&0xff);\n rgbPixels[j][3] =((rawPixels[j]>>24)&0xff);\n } // for j\n\n // Arrange the data by rows and columns\n int[][][] imagePixels = new int[height1][width1][4];\n int index=0;\n for(int row=0; row<imagePixels.length; row++) {\n for(int col=0; col<imagePixels[0].length; col++) {\n for(int rgbo=0; rgbo<4; rgbo++) {\n imagePixels[row][col][rgbo]=rgbPixels[index][rgbo];\n } // for rgbo\n index++;\n } // for col\n } // for row\n return imagePixels;\n }", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "public BufferedImage[] frontwalk(){\n\t\tBufferedImage arr[] = new BufferedImage[4];\n\n\t\tarr[0] = img.getSubimage(724, 283, 71, 67);\n\t\tarr[1] = img.getSubimage(658, 139, 66, 64);\n\t\tarr[2] = img.getSubimage(587, 141, 70, 66);\n\t\tarr[3] = img.getSubimage(513, 144, 73, 66);\n\t\t\n\t\treturn arr;\n\t}", "private byte[] getImageOne() {\n Bitmap icon = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.image0);\n return ImageConvert.convertImage2ByteArray(icon);\n }", "@Override\n \tpublic Object[] getImageArray() {\n \t\t// Release 3 times an RGB stack with this dimensions.\n \t\tlayers.get(0).getProject().getLoader().releaseToFit((long)(getSize() * getWidth() * getHeight() * 4 * 3));\n \t\tfinal Object[] ia = new Object[getSize()];\n \t\tfor (int i=0; i<ia.length; i++) {\n \t\t\tia[i] = getProcessor(i+1).getPixels(); // slices 1<=slice<=n_slices\n \t\t}\n \t\treturn ia;\n \t}", "@Override\n\tprotected String getImage(int row, int col) {\n\t\treturn null;\n\t}", "public Image getImg(){\n\t\treturn imgs[count];\n\t}", "public float getIMG(){\n return profile.getImg();\n }", "public int[][] getImage() {\n return m_img;\n }", "public int getImage();", "java.lang.String getImage();", "@Nullable\n public abstract Image images();", "public void setImg_0(String img_0) {\n this.img_0 = img_0;\n }", "@Test(expected = IllegalArgumentException.class)\n public void testImageWhenNull() {\n int[][][] test = null;\n Image img = new ImageImpl(test);\n }", "private BufferedImage initImg() throws IOException {\n\t\tint h = 256, w = 256;\n\t\tBufferedImage img = new BufferedImage(h, w, BufferedImage.TYPE_INT_ARGB);\n\t\t\n\t\t//int red = 0xff000000 + 0x00ff0000 + 0x00000000 + 0x00000000;\n\t\tshort max = 0, min = 255, c = max;\n\t\tint color = SimpleImageViewer.getIntPixel(c, c, c);\n\t\t\n\t\tfor (int y = 0; y < h; y++) {\n\t\t\tfor (int x = 0; x < w; x++) {\n\t\t\t\timg.setRGB(x, y, color);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn img;\n\t}", "public int[] getRGB() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn originalRGB;\r\n}", "List<Bitmap> getRecipeImgSmall();", "public static int[][] getMatrizBin(BufferedImage img){\n int largura = img.getWidth();\r\n int altura = img.getHeight();\r\n \r\n //Imagem de saida\r\n BufferedImage outImage = new BufferedImage(largura, altura, BufferedImage.TYPE_3BYTE_BGR);\r\n \r\n //matriz de saida\r\n int[][] output = new int[largura][altura];\r\n \r\n //calculando os valores do CIVE\r\n for (int x = 0; x < largura; x++) {\r\n for (int y = 0; y < altura; y++) {\r\n double red = Color.getColor(\"red\", img.getRGB(x, y)).getRed();\r\n double green = Color.getColor(\"green\", img.getRGB(x, y)).getGreen();\r\n \r\n if (green > red ) {\r\n output[x][y] = 1;\r\n } else {\r\n output[x][y] = 0;\r\n }\r\n \r\n }\r\n }\r\n\r\n return output;\r\n }", "BufferedImage getImage();", "BufferedImage getImage();", "BufferedImage getImage();", "@Override\n\tpublic Image[] getStaticImages() {\n\t\treturn null;\n\t}", "public Image getFlat();", "public BufferedImage getImage(int[][] data) {\n BufferedImage image = new BufferedImage(IMGSIZEX, IMGSIZEY,\n BufferedImage.TYPE_INT_RGB);\n for (int x = 0; x < IMGSIZEX; x++) {\n for (int y = 0; y < IMGSIZEY; y++) {\n int pixelColor = data[x][y];\n // Set Colors based on Binary Image value\n if (pixelColor == 0) {\n pixelColor = Color.ORANGE.getRGB();\n } else {\n pixelColor = Color.CYAN.getRGB();\n }\n image.setRGB(x, y, pixelColor);\n } // End for y.\n } // End for x.\n return image;\n }", "private @Nullable Integer getFirstNullImageIndex() {\n\n Integer foundIndex = null;\n\n for (int i = 0; i < MAX_IMAGES && foundIndex == null; i++) {\n\n if (imageFilesToUpload[i] == null)\n foundIndex = i;\n }\n\n return foundIndex;\n }", "BufferedImage getImage(Mat mat){\n Imgproc.cvtColor(mat,mat,Imgproc.COLOR_RGB2BGR);\n\n //Hue Saturation Lighting to Blue Green Red values\n Imgproc.cvtColor(mat,mat,Imgproc.COLOR_HLS2BGR);\n\n //Re-reverses Blue and Red color values\n Imgproc.cvtColor(mat,mat,Imgproc.COLOR_BGR2RGB);\n\n //Sets colors to grayscale\n Imgproc.cvtColor(mat,mat,Imgproc.COLOR_RGB2GRAY);\n\n\n getSpace(mat);\n WritableRaster raster = img.getRaster();\n DataBufferByte dataBuffer = (DataBufferByte) raster.getDataBuffer();\n byte[] data = dataBuffer.getData();\n mat.get(0, 0, data);\n return img;\n }", "String getImage();", "public IntBuffer getData(BufferedImage img)\n\t{\n\t\tIntBuffer buf = IntBuffer.allocate(img.getWidth()*img.getHeight());\n\t\t//ByteBuffer b = ByteBuffer.allocate(buf.capacity()*4);\n\n\t\tfor(int i=0; i<img.getHeight(); i++)\n\t\t{\n\t\t\tfor(int j=0; j<img.getWidth(); j++)\n\t\t\t{\n\t\t\t\t// We need to shuffle the RGB values to pass them correctly to OpenGL. \n\t\t\t\tint in = img.getRGB(j,i);\n\t\t\t\tint out = ((in & 0x000000FF) << 16) | (in & 0x0000FF00) | ((in & 0x00FF0000) >> 16);\n\t\t\t\tbuf.put((img.getHeight()-i-1)*img.getWidth()+j, out);\n\t\t\t}\n\t\t}\n\t\t//b.asIntBuffer().put(buf);\n\t\treturn buf;\n\t}", "public String getImg(){\n return img;\n }", "public BufferedImage[] moves(){\n\t\t\n\t\tBufferedImage arr[] = new BufferedImage[4];\n\t\t//arr[0] = img.getSubimage(725, 143, 70, 67);\n\t\t//arr[1] = img.getSubimage(725, 72, 70, 66);\n\t\t//arr[2] = img.getSubimage(496, 212, 74, 67);\n\t\t\n\t\tarr[0] = img.getSubimage(724, 283, 71, 67);\n\t\t\n\t\tarr[1] = img.getSubimage(724, 283, 71, 67);\n\t\t\n\t\tarr[2] = img.getSubimage(724, 283, 71, 67);\n\t\t\n\t\tarr[3] = img.getSubimage(724, 283, 71, 67);\n\t\t\n\t\treturn arr;\n\t}", "public int[][][] getdata(){\r\n\t\theight = BfImage.getHeight();\r\n\t\twidth = BfImage.getWidth();\r\n\t\tint[][][] data = new int[height][width][3];\r\n\t\t\r\n\t\tfor (int x = 0; x < width; x++)\t\t\t\t//store image's RGB data\r\n\t\t\tfor (int y = 0; y < height; y++) {\r\n\t\t\t\tint rgb = BfImage.getRGB(x, y);\r\n\t\t\t\tif (rgb == 0 || rgb == 3){\t//is transparent || Transparency.TRANSLUCENT\r\n\t\t\t\t\tdata[y][x][0] = -1;\r\n\t\t\t\t\tdata[y][x][1] = -1;\r\n\t\t\t\t\tdata[y][x][2] = -1;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tdata[y][x][0] = Utils.getR(rgb);\r\n\t\t\t\t\tdata[y][x][1] = Utils.getG(rgb);\r\n\t\t\t\t\tdata[y][x][2] = Utils.getB(rgb);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn data;\r\n\t}", "public Bitmap getImage(){\n return images[currentFrame];\n }", "public Image getImage() {\n return null;\r\n }", "byte[] getCurrentPixel() {\n byte[] pixel = new byte[2];\n\n pixel[0] = ((byte) cursor.getX());\n pixel[1] = ((byte) cursor.getY());\n\n for (byte b : pixel) {\n\n if (b >= axisLength || b < 0) {\n return null;\n }\n }\n return pixel;\n }", "public Image getImage()\n {\n return null;\n }", "private Color[] imageToArray(BufferedImage image){\n Color[] pixels = new Color[image.getWidth() * image.getWidth()];\n for (int i = 0; i < image.getHeight(); i++) {\n for (int j = 0; j < image.getWidth(); j++) {\n Color color = new Color(image.getRGB(j,i));\n pixels[i*image.getWidth() + j] = color;\n }\n }\n return pixels;\n }", "private byte[] getImage(){\n byte image[] = null;\n try {\n if(isImageGiven()) {\n image = getImageBytes();\n }\n }catch (IOException e){\n Toast.makeText(this,\"Error in Creating the image \"+e, Toast.LENGTH_SHORT).show();\n }\n return image;\n }", "public Texture getImage(){\n\t\treturn images[0];\t\t\n\t}", "public boolean isEmptyImage() {\n if (mbarrayImg == null || mbarrayImg.length == 0 || mbarrayImg[0].length == 0 || mnWidth == 0 || mnHeight == 0) {\n return true;\n }\n return false;\n }", "com.google.protobuf.ByteString getImgData(int index);", "@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}", "public String getImg() {\n return img;\n }", "public String getImg() {\n return img;\n }", "public String getImg() {\n return img;\n }", "public PImage getImg() {\n \treturn img;\n }", "public BufferedImage[] powerSprite(){\n\t\tBufferedImage arr[] = new BufferedImage[4];\n\t\tarr[0] = img.getSubimage(724, 283, 71, 67);\n\t\tarr[1] = img.getSubimage(650, 286, 72, 64);\n\t\tarr[2] = img.getSubimage(484, 292, 83, 58);\n\t\tarr[3] = img.getSubimage(257, 281, 71, 69);\n\t\treturn arr;\n\t\t\t\n\t}", "public byte[] getImageBytes()\n {\n byte[] buff = null;\n \n try\n {\n ByteArrayOutputStream bos = new ByteArrayOutputStream() ;\n ImageIO.write(img, \"jpg\", bos);\n buff = bos.toByteArray();\n bos.flush();\n bos.close();\n }\n catch(Exception ex)\n {\n System.out.println(\"Problem Serializeing PicNode\");\n ex.printStackTrace();\n }\n return buff;\n }", "int[] getStartRGB();", "public static Color[][] getImageC(Image img) {\n\n // Get the raw pixel data \n iObserver observer = new iObserver();\n int width1 = img.getWidth(observer);\n int height1 = img.getHeight(observer);\n int[] rawPixels = utils.getPixels(img,width1,height1);\n\n // Each pixel is represented by 32 bits. Separate the tH32 bits into\n // four 8-bit values (red, green, blue, offset).\n\n // Arrange the data by rows and columns\n //row-col has been reversed\n Color[][] imagePixels = new Color[height1][width1];\n int index=0;\n for(int row=0; row<imagePixels.length; row++) {\n for(int col=0; col<imagePixels[0].length; col++) {\n imagePixels[col][row] = new Color(rawPixels[index]);\n index++;\n } // for col\n } // for row\n return imagePixels;\n }", "public void gettingImageInput(){\n Bitmap bm = getYourInputImage();\n int z;\n if(res==2) { z=50; }\n else { z=224; }\n Bitmap bitmap = Bitmap.createScaledBitmap(bm, z, z, true);\n input = ByteBuffer.allocateDirect(z * z * 3 * 4).order(ByteOrder.nativeOrder());\n for (int y = 0; y < z; y++) {\n for (int x = 0; x < z; x++) {\n int px = bitmap.getPixel(x, y);\n\n // Get channel values from the pixel value.\n int r = Color.red(px);\n int g = Color.green(px);\n int b = Color.blue(px);\n\n // Normalize channel values to [-1.0, 1.0]. This requirement depends\n // on the model. For example, some models might require values to be\n // normalized to the range [0.0, 1.0] instead.\n float rf = (r) / 255.0f;\n float gf = (g) / 255.0f;\n float bf = (b) / 255.0f;\n\n input.putFloat(rf);\n input.putFloat(gf);\n input.putFloat(bf);\n }\n }\n }", "public String getImage() {\n\t\treturn null;\n\t}", "public String[] stitch() {\n String[] result = new String[image.length * image[0][0].getImageSize()];\n Arrays.fill(result, \"\");\n for (int i = 0; i < image.length; i++) {\n for (int j = 0; j < image[i].length; j++) {\n for (int k = 0; k < image[i][j].getImageSize(); k++) {\n result[i * image[i][j].getImageSize() + k] += image[i][j].getImageSlice(k);\n }\n }\n }\n return result;\n }", "public Bitmap getFinalShapesImage();", "public int[] getUniquePixelValues() {\r\n\tint imageLength = originalRGB.length;\r\n\tif (imageLength==0){\r\n\t\treturn null;\r\n\t}\r\n\t\r\n\tint pixelValueArray[] = new int[1];\r\n\tpixelValueArray[0] = originalRGB[0];\r\n\r\n\tfor (int i=0;i<imageLength;i++){\r\n\t\tint currPixel = originalRGB[i];\r\n\r\n\t\t//\r\n\t\t// look for current pixel in list\r\n\t\t//\r\n\t\tboolean found = false;\r\n\t\tfor (int j=0;j<pixelValueArray.length;j++){\r\n\t\t\tif (pixelValueArray[j]==currPixel){\r\n\t\t\t\tfound = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//\r\n\t\t// if current pixel not found, extend list and add pixel to end\r\n\t\t//\r\n\t\tif (!found){\r\n\t\t\tint newArray[] = new int[pixelValueArray.length+1];\r\n\t\t\tfor (int j=0;j<pixelValueArray.length;j++){\r\n\t\t\t\tnewArray[j] = pixelValueArray[j];\r\n\t\t\t}\r\n\t\t\tnewArray[pixelValueArray.length] = currPixel;\r\n\t\t\tpixelValueArray = newArray;\r\n\t\t}\r\n\t}\r\n\treturn pixelValueArray;\r\n}", "public BufferedImage getDati()\n { \n return imgDati;\n }", "public String getImg_1() {\n return img_1;\n }", "void imageData(int width, int height, int[] rgba);", "public String getImage(){\n StringBuilder sb = new StringBuilder();\n for (char[] subArray : hidden) {\n sb.append(subArray);\n sb.append(\"\\n\");\n }\n return sb.toString();\n }", "private static final byte[] xfsim_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, -128,\n\t\t\t\t-128, -128, -64, -64, -64, 0, 0, 0, -1, -1, -1, 0, 0, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101,\n\t\t\t\t32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1,\n\t\t\t\t10, 0, 5, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 72, 88, -70,\n\t\t\t\t-36, 14, 48, -58, 23, -86, -83, 64, 48, 48, -70, -17, -112,\n\t\t\t\t-74, 112, 66, 105, 14, -31, 54, 8, 68, -37, -94, -103, -54,\n\t\t\t\t-70, 4, 44, 42, 36, 93, -89, -29, -9, 101, -112, -111, 105, 88,\n\t\t\t\t2, 4, 68, 28, -97, -57, 24, 43, -124, -128, 2, 104, -54, 40,\n\t\t\t\t56, 90, -85, 88, 77, 82, -23, 57, 42, -120, -32, -110, 99, -20,\n\t\t\t\t72, 0, 0, 59 };\n\t\treturn data;\n\t}", "protected Image getP0Image(){\n if (isBoosting()) {\n if (getAnimationStep()==3) return Boost4Image;\n if (getAnimationStep()==2) return Boost3Image;\n else return Boost2Image;\n }\n else return BoostImage;\n }", "public void clearImage()\n {\n //Initialize the array of 0s\n int arr_len;\n if (image.getHeight() > image.getWidth()) arr_len = image.getHeight();\n else arr_len = image.getWidth();\n int[] rgb = new int[arr_len];\n //Set the whole image to black color\n image.setRGB(0,0,image.getWidth()-1,image.getHeight()-1,rgb,0,0);\n }", "@Override\n\tpublic String getImagePath32X32() {\n\t\treturn null;\n\t}", "public int[][] cargarImagenDeFichero(String fileName) {\n int[][] img;\n try {\n BufferedImage imageRGB = ImageIO.read(new File(fileName));\n BufferedImage image = getGrayScale(imageRGB);\n int alto = image.getHeight();\n int ancho = image.getWidth();\n img = new int[alto][ancho];\n\n for (int i = 0; i < alto; i++) {\n for (int j = 0; j < ancho; j++) {\n int pix = image.getRGB(j, i);\n Color c = new Color(pix);\n int r = c.getRed(), g = c.getGreen(), b = c.getBlue();\n img[i][j] = (r + g + b) / 3;\n }\n }\n return img;\n }\n catch (IOException e) { return null; }\n }", "Imagem getImagem();", "public Point convertImageToView(Point img) {\n\t\treturn null;\n\t}", "int[] getEndRGB();", "java.util.List<com.google.protobuf.ByteString> getImgDataList();", "private Image getCurrentPicture(){\r\n\t\tif (i >= images.size()) {\r\n\t\t\ti = 0;\r\n\t\t}else if(i<0){\r\n\t\t\ti = images.size() -1;\r\n\t\t}\r\n\t\treturn new Image(images.get(i).getUrl());\r\n\t}", "public void ToImage(){\n\t\tint row=SL.length;\n\t\tint col=SL[0].length;\n\t\tint cr=0;\n\t\tint cb=0;\n\t\t// System.out.println(row+\" \"+col);\n\t\tint[] intArray = new int[3*row*col];\n\t\tint w=row;\n\t int h=col;\n\t BufferedImage image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);\n\t\tint pixel = 0;\n\t\tfor(int x=0;x<row;x++){\n\t\t\tfor(int y=0;y<col;y++){\n\t\t\t\tint rByte = (int)(SL[x][y]);\n\t\t int gByte = (int)(SL[x][y]);\n\t\t int bByte = (int)(SL[x][y]);\n\t\t \n\t\t // int rByte = (int)(SL[x][y]+1.402*(cr-128));\n\t\t // int gByte = (int)(SL[x][y]-0.3414*(cb-128)-0.71414*(cr-128));\n\t\t // int bByte = (int)(SL[x][y]+1.772*(cb-128));\n\t\t int rgb = (rByte *65536) + (gByte * 256) + bByte;\n\t\t image.setRGB(x,y,rgb);\n\t \t}\n\t\t}\n\t try {\n\t ImageIO.write(image, \"bmp\", new File(\"\"+picture_num+\".png\"));\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t }\n\t}", "public ImageArray getCurrentImage() {\n return currentIm;\n }", "public Bitmap getShapesImage();", "WorldImage getImage();", "void deriveImage()\n\t{\n\n\t\t//img = new BufferedImage(dimx, dimy, BufferedImage.TYPE_INT_ARGB);\n\t\timg = null;\n\t\ttry{\n\t\t\timg = ImageIO.read(new File(\"src/input/World.png\"));\n\n\t\t}catch (IOException e){\n\t\t\tSystem.out.println(\"world image file error\");\n\t\t}\n\t\t//System.out.println(img.getHeight());\n\t\t//System.out.println(img.getWidth());\n//\t\tfloat maxh = -10000.0f, minh = 10000.0f;\n//\n//\t\t// determine range of tempVals s\n//\t\tfor(int x=0; x < dimx; x++)\n//\t\t\tfor(int y=0; y < dimy; y++) {\n//\t\t\t\tfloat h = tempVals [x][y];\n//\t\t\t\tif(h > maxh)\n//\t\t\t\t\tmaxh = h;\n//\t\t\t\tif(h < minh)\n//\t\t\t\t\tminh = h;\n//\t\t\t}\n\t\t\n\t\tfor(int x=0; x < dimx; x++)\n\t\t\tfor(int y=0; y < dimy; y++) {\n\t\t\t\t \t\n\t\t\t\t// find normalized tempVals value in range\n\t\t\t\t//float val = (tempVals [x][y] - minh) / (maxh - minh);\n\t\t\t\tfloat val = tempVals[x][y];\n\n\t\t\t\t//System.out.println(val);\n\n\t\t\t\tColor c = new Color(img.getRGB(x,y));\n\n\t\t\t\tif((c.getRed() > 50 && c.getGreen() > 100 && c.getBlue() < 200)) {\n\n\t\t\t\t\tif (val != 0.0f) {\n\t\t\t\t\t\tColor col = new Color(val, 0, 0);\n\t\t\t\t\t\timg.setRGB(x, y, col.getRGB());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\t\n\t}", "protected ImageView getImageView(){\n\t\treturn iv1;\n\t}", "public Image getCrotchetRest();", "public Image getSix();", "public BufferedImage getImage() { // operates every 10 ms\n\t\tif(isLife()) { // alive\n\t\t\treturn images[0]; // return images[0]\n\t\t}else if(isDead()) { // dead\n\t\t\tBufferedImage img = images[index++]; // start from the second image\n\t\t\tif(index==images.length) { // if at the last image\n\t\t\t\tstate = REMOVE; // change the state to REMOVE\n\t\t\t}\n\t\t\treturn img; // return explosion image\n\t\t}\n\t\treturn null; // return null when state removed\n\t\t/*\n\t\t * index=1\n\t\t * 10M img=images[1] index=2 return images[1]\n\t\t * 20M img=images[2] index=3 return images[2]\n\t\t * 30M img=images[3] index=4 return images[3]\n\t\t * 40M img=images[4] index=5(REMOVE) \t\treturn images[4]\n\t\t * 50M return null\n\t\t */\n\t}", "public String getaImg() {\n return aImg;\n }", "public byte[] readImagePNG(BufferedImage bufferedimage) throws IOException{\n byte[] data = ImageUtil.toByteArray(bufferedimage);\r\n /* \r\n for (int i = 0; i < data.length; i++) {\r\n if(i!=0&&i%4==0)\r\n System.out.println();\r\n System.out.format(\"%02X \",data[i]);\r\n }\r\n */ \r\n \r\n \r\n \r\n \r\n byte[] stximage = getStximage();\r\n byte[] etximage = getEtximage();\r\n \r\n byte[] stxdata = new byte[stximage.length];\r\n byte[] etxdata = new byte[etximage.length];\r\n byte[] length = new byte[4];\r\n \r\n boolean stxsw=false;\r\n boolean etxsw=false;\r\n byte[] full_data=null;\r\n byte[] only_data=null;\r\n try{\r\n for (int i = 0; i < data.length; i++) {\r\n System.arraycopy(data, i, stxdata,0, stxdata.length);\r\n stxsw = ByteUtil.equals(stximage, stxdata);\r\n int subindex=i+stxdata.length;\r\n if(stxsw){\r\n System.arraycopy(data, subindex, length,0, length.length);\r\n int length_fulldata = ConversionUtil.toInt(length);\r\n // System.out.format(\"%02X %d subIndex[%d]\",data[subindex],length_fulldata,subindex);\r\n \r\n \r\n subindex+=i+length.length;\r\n int etx_index= subindex+ length_fulldata;\r\n // System.out.println(\"subindex : \"+subindex+\" etx_index : \"+etx_index);\r\n System.arraycopy(data, etx_index, etxdata,0, etxdata.length);\r\n \r\n// for (int j = 0; j < etxdata.length; j++) {\r\n// System.out.format(\"%02X \",etxdata[j]);\r\n// }\r\n \r\n etxsw = ByteUtil.equals(etximage, etxdata);\r\n if(etxsw){\r\n full_data = new byte[etx_index-subindex];\r\n System.arraycopy(data, subindex, full_data,0, full_data.length); //fulldata\r\n break;\r\n }else{\r\n continue;\r\n }\r\n }\r\n \r\n \r\n }\r\n \r\n /////only data search\r\n System.arraycopy(full_data, 0, length,0, length.length);\r\n int length_onlydata = ConversionUtil.toInt(length); \r\n only_data = new byte[length_onlydata];\r\n System.arraycopy(full_data, length.length, only_data,0, only_data.length);\r\n \r\n \r\n \r\n }catch (Exception e) {\r\n return null;\r\n }\r\n \r\n return only_data;\r\n \r\n }", "@Override\n\tpublic Image getImage(Object element) {\n\t\treturn null;\n\t}", "public BufferedImage getImage() {\n\t\t return img;\n\t}", "public String toString() {\n String res = \"\";\n \n for ( int[] row : img ) {\n for ( int x : row )\n res += x + \" \";\n res += \"\\n\";\n }\n return res;\n }", "int getImgDataCount();", "PImage getImage() {\n return _img;\n }", "public int[] getPixels() {\n\t\treturn pixels;\n\t}", "public String getImg(){\n switch(image){\n case 0: // Case 0: Ant looks up/north\n return \"imgs/ant_n.png\";\n case 1: // Case 1: Ant looks right/east\n return \"imgs/ant_e.png\";\n case 2: // Case 2: Ant looks down/south\n return \"imgs/ant_s.png\";\n case 3: // Case 3: Ant looks left/west\n return \"imgs/ant_w.png\";\n default: // Default: This shouldn't happen on a normal run. It returns an empty string and prints an error.\n System.err.println(\"Something went wrong while the ant was trying change direction\");\n return \"\";\n }\n }", "private int[] blankFinder(){\n for(int x = 0; x < n; x++){\n for(int y = 0; y < n; y++){\n if(tiles[x][y] == 0){\n return new int[]{x, y};\n }\n }\n }\n return null;\n }", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "private Color[] getExpectedPixels() {\n return new Color[]{BLACK, BLACK, BLACK,\n BLACK, BLACK, WHITE,\n BLACK, WHITE, BLACK,\n WHITE, BLACK, BLACK};\n }", "@Override\n\tpublic String getImagePath16X16() {\n\t\treturn null;\n\t}", "public byte[] bitmap();", "@Override\r\n public Object createImage(Object data) {\r\n\t // N/A in JS\r\n\t return null;\r\n\t}", "public Image getThree();", "@Override\n public Image getImage(Photo photo) {\n return null;\n }", "private String[] getImgUrls(String html){\n String result=\"\";\n Document doc = Jsoup.parse(html);\n Elements images = doc.select(\"img\");\n for(Element node : images) {\n result = result + \",\" + node.attr(\"src\");\n }\n return result.length()<1?new String[0]:result.substring(1).split(\",\");\n }", "private static final byte[] xfsp_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -95, 0, 0, -1, 0,\n\t\t\t\t0, 0, -45, 0, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100,\n\t\t\t\t101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4,\n\t\t\t\t1, 10, 0, 3, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 2, 52, -36,\n\t\t\t\t-128, -87, 104, 6, 1, -93, 4, -19, -56, 27, 104, 123, 65, 8,\n\t\t\t\t-84, 57, -112, 7, 86, 28, 121, -123, 86, -9, -91, -26, -40, 78,\n\t\t\t\t47, 91, 110, 112, 45, -46, -82, -51, 122, -88, 122, -14, -3,\n\t\t\t\t102, 24, 8, -80, 24, 1, 46, -106, -122, 2, 0, 59 };\n\t\treturn data;\n\t}", "public Image getImage()\n {\n if (fill instanceof ImageFill)\n {\n return ((ImageFill) fill).getImage();\n }\n else\n {\n return null;\n }\n }", "public Image getMinimRest();", "List<Bitmap> getFavoriteRecipeImgs();", "private static final byte[] xfsl_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -95, 0, 0, 0, 0,\n\t\t\t\t-103, -83, 0, 0, -124, -124, -1, -1, -1, -1, 33, -2, 14, 77,\n\t\t\t\t97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0,\n\t\t\t\t33, -7, 4, 1, 10, 0, 3, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 2,\n\t\t\t\t44, -100, -113, -87, -53, 7, -48, -36, -101, 108, 90, 42, -81,\n\t\t\t\t-122, 59, 108, 62, 5, -34, -122, -120, 95, 18, 12, -126, 38,\n\t\t\t\t40, 41, 32, -84, -16, -22, 14, 83, -116, -107, 54, -119, 26,\n\t\t\t\t90, -28, -125, 0, -127, 5, 0, 59 };\n\t\treturn data;\n\t}" ]
[ "0.6766164", "0.6248043", "0.6186283", "0.6097323", "0.60952294", "0.6055068", "0.60116726", "0.599103", "0.59809387", "0.5977066", "0.5959751", "0.59453744", "0.5933957", "0.58951813", "0.5892817", "0.58737874", "0.5871555", "0.5854982", "0.5851492", "0.58427036", "0.58427036", "0.58427036", "0.58308095", "0.58024347", "0.57897776", "0.5768805", "0.5764724", "0.5757129", "0.57523686", "0.572105", "0.5712837", "0.5700431", "0.5699968", "0.5698814", "0.5696668", "0.5695868", "0.56946504", "0.56908137", "0.5684665", "0.5658737", "0.5658586", "0.5656623", "0.5645561", "0.5645561", "0.5645561", "0.5631783", "0.5630958", "0.5618894", "0.5615228", "0.5610446", "0.556873", "0.5568438", "0.5564397", "0.5563104", "0.55603135", "0.5539989", "0.55386114", "0.55363524", "0.55355567", "0.55150664", "0.5503861", "0.5496332", "0.5486287", "0.5477031", "0.5475165", "0.5474907", "0.547397", "0.5447934", "0.54472387", "0.5439989", "0.5438684", "0.543126", "0.54188293", "0.541732", "0.54169935", "0.5413172", "0.5406369", "0.5397681", "0.53974354", "0.53953576", "0.5393314", "0.53897715", "0.5367982", "0.5365243", "0.5364547", "0.53621167", "0.53598225", "0.5350457", "0.5325694", "0.53252906", "0.5323284", "0.53225654", "0.531991", "0.5315391", "0.53108346", "0.52996916", "0.52962255", "0.5291133", "0.52910733", "0.52891755", "0.5287149" ]
0.0
-1
if stack == null and proc == null return an "empty" stack
@Test public void testGetStack() { ip = new ImagePlus(); st = ip.getStack(); assertEquals(1,ip.getStackSize()); // if stack == null and not proc == null and no info string // do stuff and setRoi() if needed proc = new ByteProcessor(1,1,new byte[] {22}, null); ip = new ImagePlus("CareBearStation",proc); st = ip.getStack(); assertEquals(1,ip.getStackSize()); assertNull(st.getSliceLabel(1)); assertEquals(proc.getColorModel(),st.getColorModel()); assertEquals(proc.getRoi(),st.getRoi()); // if stack == null and not proc == null and yes info string // do stuff and setRoi() if needed proc = new ByteProcessor(1,1,new byte[] {22}, null); ip = new ImagePlus("CareBearStation",proc); ip.setProperty("Info","SnapDragon"); st = ip.getStack(); assertEquals(1,ip.getStackSize()); assertEquals("CareBearStation\nSnapDragon",st.getSliceLabel(1)); assertEquals(proc.getColorModel(),st.getColorModel()); assertEquals(proc.getRoi(),st.getRoi()); // if not stack == null // do stuff and setRoi() if needed proc = new ByteProcessor(1,1,new byte[] {22}, null); ip = new ImagePlus("CareBearStation",proc); st = new ImageStack(1,1); st.addSlice("Fixed", proc); st.addSlice("Crooked", proc); ip.setStack("Odds",st); st = ip.getStack(); assertEquals(2,ip.getStackSize()); assertEquals(proc.getColorModel(),st.getColorModel()); assertEquals(proc.getRoi(),st.getRoi()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SubL(source = \"cycl/stacks.lisp\", position = 2117) \n public static final SubLObject stack_empty_p(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n return Types.sublisp_null(stack_struc_elements(stack));\n }", "public boolean stackEmpty() {\r\n\t\treturn (top == -1) ? true : false;\r\n\t }", "@Test\n public void testNonemptyStack() {\n ProgramStack ps = new ProgramStack();\n\n ps.push(1);\n ps.push(2);\n ps.push(3);\n\n Assert.assertEquals(\"[1, 2, 3]\", ps.toString());\n }", "public GenericStack peek(){\n // checks if stack is empty\n if(top == null){\n System.out.println(\"Stack is empty.\");\n return null;\n //System.exit(0);\n }\n return top;\n }", "private static boolean isStackEmpty(SessionState state)\n\t{\n\t\tStack operations_stack = (Stack) state.getAttribute(STATE_SUSPENDED_OPERATIONS_STACK);\n\t\tif(operations_stack == null)\n\t\t{\n\t\t\toperations_stack = new Stack();\n\t\t\tstate.setAttribute(STATE_SUSPENDED_OPERATIONS_STACK, operations_stack);\n\t\t}\n\t\treturn operations_stack.isEmpty();\n\t}", "void onStackEmpty();", "public boolean isEmpty(){\n return this.stack.isEmpty();\n\n }", "public void peek(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is empty\n if(topOfStack==-1){\n System.out.println(\"Stack is empty, can't peek\");\n return;\n }\n // if stack is not empty\n System.out.println(\"Top of the stack: \"+this.arr[this.topOfStack]);\n }", "final boolean init_stacks()\n {\n stateptr = -1;\n val_init();\n return true;\n }", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "@Test\n public void testEmptyStack() {\n ProgramStack ps = new ProgramStack();\n\n Assert.assertEquals(\"[]\", ps.toString());\n }", "final boolean init_stacks()\r\n{\r\n stateptr = -1;\r\n val_init();\r\n return true;\r\n}", "public boolean isEmpty(){\r\n \treturn stack1.isEmpty();\r\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn stack.isEmpty();\r\n\t}", "public void pop(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is empty\n if(this.topOfStack==-1){\n System.out.println(\"Stack is empty, can't pop from stack\");\n return;\n }\n // if stack is not empty\n this.arr[this.topOfStack]=Integer.MIN_VALUE;\n this.topOfStack--;\n }", "public static void main(String[] args) \r\n\t{\n\t \r\n Stack st=new Stack();\r\n st.push(6);\r\n st.push(5);\r\n st.push(3);\r\n st.push(2);\r\n st.push(1);\r\n \r\n System.out.println( st.peek());\r\n \r\n \r\n // System.out.println( st.isEmpty());\r\n\t}", "@Test\n public void testPushCallTop(){\n ms = new MyStack();\n ms.push(1);\n ms.top();\n assertFalse(ms.IsEmpty());\n }", "@Test\n public void shouldReturnNullForAllSystemStack() {\n assertNull(\n CallerBasedSecurityManager.getLastCaller(\n Object.class,\n Object.class,\n Object.class\n ), \"No caller expected for all-system stack\"\n );\n }", "public boolean isEmpty() {return stackList.isEmpty();}", "public boolean isEmpty() {\n \treturn stack.size() == 0;\n }", "protected void stackEmptyButton() {\n \tif (stack.empty()) {\n \t\tenter();\n \t}\n \telse {\n \t\tstack.pop();\n \t\tif (stack.empty()) {\n \t\t\tenter();\n \t}\n \t}\n }", "public boolean isCarStackEmpty() {\n boolean carStackEmpty = false;\n if(top < 0) {\n carStackEmpty = true;\n }\n return carStackEmpty;\n }", "public String getStack();", "@SubL(source = \"cycl/stacks.lisp\", position = 3462) \n public static final SubLObject stack_peek(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n if ((NIL == stack_empty_p(stack))) {\n {\n SubLObject elements = stack_struc_elements(stack);\n SubLObject item = elements.first();\n return item;\n }\n }\n return NIL;\n }", "public void pop(){\n \n if(top==null) System.out.println(\"stack is empty\");\n else top=top.next;\n \t\n }", "@Test\n void whenPopTillStackEmptyReturnNodeShouldBeFirstNode() {\n\n MyNode<Integer> myFirstNode = new MyNode<>(70);\n MyNode<Integer> mySecondNode = new MyNode<>(30);\n MyNode<Integer> myThirdNode = new MyNode<>(56);\n MyStack myStack = new MyStack();\n myStack.push(myFirstNode);\n myStack.push(mySecondNode);\n myStack.push(myThirdNode);\n boolean isEmpty = myStack.popTillEmpty();\n\n System.out.println(isEmpty);\n boolean result = myStack.head == null && myStack.tail == null;\n }", "public void deleteStack(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // if stack is present\n topOfStack=-1;\n arr=null;\n System.out.println(\"Stack deleted successfully\");\n }", "public GetMinStack() {\n stackData = new Stack<>();\n stackMin = new Stack<>();\n }", "public boolean isEmpty()\n {\n return stack.size() == 0;\n }", "public boolean emptyStack() {\n return (expStack.size() == 0);\n }", "public boolean empty() {\r\n return this.stack.isEmpty();\r\n }", "public boolean isEmpty()\n {\n return stack.isEmpty();\n }", "public boolean empty() {\n return stack.empty();\n }", "@Test\n public void testSingleStack() {\n ProgramStack ps = new ProgramStack();\n\n ps.push(1);\n\n Assert.assertEquals(\"[1]\", ps.toString());\n }", "public Stack() {\n\t\t \n\t\ttop = null;\n\t}", "@Test(expected = EmptyStackException.class)\n public void testPeekOnEmptyStack() throws EmptyStackException {\n SimpleStack stack = new DefaultSimpleStack();\n\n // When we « pop » the stack\n stack.peek(); // should throws an EmptyStackException.\n }", "public boolean empty() {\n return this.stack2.size() == 0 && this.stack1.size() == 0;\n }", "public void peek() {\r\n\t\t\tif(top==-1) {\r\n\t\t\t\tSystem.out.println(\"stack is empty!!\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(arr[top]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "public MinStack() {\r\n stk = new Stack<>();\r\n stk1 = new Stack<>();\r\n }", "public boolean empty() {\r\n return stack.isEmpty();\r\n }", "boolean isFull(Stack stack){\n\t\tif(stack.getStackSize() >= 100) return true;\r\n\t\telse return false;\t\r\n\t}", "public boolean empty() {\n return stack1.empty();\n }", "public boolean empty() {\r\n return stack.isEmpty();\r\n }", "public Stack()\n {\n first = null;\n }", "public boolean empty() {\n\t\tif(stackTmp.isEmpty() && stack.isEmpty()){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean empty() {\n System.out.println(stack.isEmpty());\n return stack.isEmpty();\n }", "public MinStack1() {\r\n stack = new Stack<>();\r\n }", "public boolean empty() {\r\n return inStack.empty() && outStack.empty();\r\n }", "@Test\r\n public void isEmptyTest1(){\r\n stack.pop();\r\n stack.pop();\r\n stack.pop();\r\n assertThat(stack.isEmpty(), is(true));\r\n }", "public void popAllStacks(){\n // if top is lost then all elements are lost.\n top = null;\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "public void pop()\r\n\t{\r\n\t\ttop--;\r\n\t\tstack[top] = null;\r\n\t}", "@Override\r\n\tpublic boolean isFull() {\r\n\t\tif(topIndex == stack.length -1) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\t\r\n\t}", "public boolean empty() {\n return this.stack1.empty() && this.stack2.empty();\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "@Override\r\n\tpublic AnyType peek() throws StackException {\n\t\tif(isEmpty()) throw new StackException(\"Stack is full\");\r\n\t\treturn top.data;\r\n\t}", "public boolean isEmpty(){\r\n\t\treturn stackData.isEmpty();\r\n\t}", "public MinStack() {\n st = new Stack<>();\n }", "public Solution_155() {\n stack = new Stack();\n minStack = new Stack();\n }", "public Stack() { \ntop = null; \n//A constructor to initialize top \n//The answer to (iii)\n}", "@Override\n\tpublic T pop() {\n\t\tif(isEmpty()) {\n\t\t\tSystem.out.println(\"Stack is Empty\");\n\t\treturn null;}\n\t\ttop--;\t\t\t\t\t\t//top-- now before since we need index top-1\n\t\tT result = stack[top];\n\t\tstack[top] = null;\n\t\treturn result;\n\t\t\t\n\t}", "@Override\r\n\tpublic E peek() {\r\n\t\tif (isEmpty())\r\n\t\t\treturn null;\r\n\t\treturn stack[t];\r\n\t}", "@Test\n public void testPushAndPopC() {\n\n System.out.println(\"pushB - All Nulls\");\n String elementOne = null;\n String elementTwo = null;\n String elementThree = null;\n String elementFour = null;\n\n //Stack<String> instance = new StackArrayImpl();\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n instance.push(elementOne);\n instance.push(elementTwo);\n instance.push(elementThree);\n instance.push(elementFour);\n\n int fourSize = instance.size();\n assertEquals(fourSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String resultFour = instance.pop();\n String resultThree = instance.pop();\n String resultTwo = instance.pop();\n String resultOne = instance.pop();\n\n assertEquals(elementOne, resultOne);\n assertEquals(elementTwo, resultTwo);\n assertEquals(elementThree, resultThree);\n assertEquals(elementFour, resultFour);\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "private static Map peekAtStack(SessionState state)\n\t{\n\t\tMap current_stack_frame = null;\n\t\tStack operations_stack = (Stack) state.getAttribute(STATE_SUSPENDED_OPERATIONS_STACK);\n\t\tif(operations_stack == null)\n\t\t{\n\t\t\toperations_stack = new Stack();\n\t\t\tstate.setAttribute(STATE_SUSPENDED_OPERATIONS_STACK, operations_stack);\n\t\t}\n\t\tif(! operations_stack.isEmpty())\n\t\t{\n\t\t\tcurrent_stack_frame = (Map) operations_stack.peek();\n\t\t}\n\t\treturn current_stack_frame;\n\n\t}", "public boolean isEmpty() {\n return stackImpl.isEmpty();\n }", "@Test\n public void isEmpty() {\n SimpleStack stack = new DefaultSimpleStack();\n\n // then the stack is empty\n assertTrue(stack.isEmpty());\n }", "@SubL(source = \"cycl/stacks.lisp\", position = 1818) \n public static final SubLObject create_stack() {\n return clear_stack(make_stack(UNPROVIDED));\n }", "public boolean isEmpty() {\n\t\treturn (stackSize == 0 ? true : false);\n\t}", "public boolean isEmpty() \n {\n return stack1.isEmpty() && stack2.isEmpty();\n }", "public boolean empty() {\n return popStack.empty() && pushStack.empty();\n }", "public void StackTest() {\n\tSystem.out.println( \"\\nQuestion (8) Stack Test\" );\n\tSystem.out.println( \"-----------------------\");\n\tStack s = new Stack(3);\n\tSystem.out.println( \"push 0\");\n\ts.push(0);\n\tSystem.out.println( \"push 1\");\n\ts.push(1);\n\tSystem.out.println( \"push 2\");\n\ts.push(2);\n\tSystem.out.println( \"try to push 3\");\n\ts.push(3); // error here pushing beyond stack depth, will print error messgae\n\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() ); \n\tSystem.out.println( \"try to pop \" ); // error here poping off empty stack\n\ts.pop();\n }", "@Test\n public void testIsEmpty() {\n System.out.println(\"isEmpty\");\n instance = new Stack();\n assertTrue(instance.isEmpty());\n instance.push(\"ab\");\n instance.push(\"cd\");\n assertFalse(instance.isEmpty());\n instance.pop();\n instance.pop();\n assertTrue(instance.isEmpty());\n }", "@Test(enabled = true, dependsOnMethods = {\"remove\"}, expectedExceptions = NullPointerException.class)\n\tpublic void getNullOnNull() {\n\t\tassert stack.getLast().getNext() == node5;\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn top==null;\r\n\t}", "@Override\r\n\tpublic T pop() throws StackEmptyException {\n\t\tif(isempty()) { throw new StackEmptyException(\"Pila vacia!!\");}\r\n\t\treturn pop(sentinel);\r\n\t\t\r\n\t}", "boolean isEmpty() {\n // -\n if(top == null)\n return true;\n return false;\n }", "Object pop(){\r\n\t\tlastStack = getLastStack();\r\n\t\tif(lastStack!=null){\r\n\t\t\tint num = lastStack.pop();\r\n\t\t\treturn num;\r\n\t\t} else {stacks.remove(stacks.size()-1);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Test\n public void testMassiveStackOfNothing() {\n\n System.out.println(\"isEmpty\");\n\n int sizeTest = 10000;\n int expectedSize = 0;\n \n String tempString = null;\n String expected = null;\n \n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n for (int i = 0; i < sizeTest; i++) {\n instance.push(tempString);\n }\n\n int fourSize = instance.size();\n assertEquals(fourSize, expectedSize);\n assertEquals(instance.isEmpty(), true);\n\n for (int i = sizeTest; i > 0; i--) {\n\n String result = instance.pop();\n\n assertEquals(expected, result);\n\n }\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "E pop() throws EmptyStackException;", "public boolean isEmpty(){\n if(top == null)return true;\n return false;\n }", "public boolean isEmpty() {\r\n return (top == null);\r\n }", "public E top()\n\tthrows EmptyStackException;", "public boolean isEmpty() {\n return downStack.isEmpty();\n }", "public Object peek() {\n if (top >= 0) {\n return stack[top];\n }\n else {\n return null;\n }\n }", "public Object pop() {\n if (top != null) {\n Object item = top.getOperand();\n\n top = top.next;\n return item;\n }\n\n System.out.println(\"Stack is empty\");\n return null;\n\n }", "public Stack() {\n stack = new Object[1];\n minStackSize = 1;\n top = -1;\n }", "static void stack_peek(Stack<Integer> stack)\r\n\t{\r\n\t\tInteger element=stack.peek();\r\n\t\tSystem.out.println(\"Element on stack top :\" + element);\r\n\t}", "@Override\r\n\tpublic boolean isFull() {\r\n\t\treturn stack.size() == size;\r\n\t}", "public OpStack() {\n opStack = new Stack();\n }", "public Card[] GetCardStack() { return null; }", "public StringStack()\n\t{\n\t\ttop = null;\n\t}", "public boolean isEmpty(){\n \treturn top==-1;\n\t}", "@Test\r\n public void testIsEmptyShouldReturnFalseWhenStackNotEmpty() {\r\n stackInstance=new StackUsingLinkedList<Integer>();\r\n stackInstance.push(90);\r\n stackInstance.push(5);\r\n boolean actualOutput=stackInstance.isEmpty();\r\n assertEquals(false,actualOutput);\r\n }", "public boolean empty() {\n return popStack.isEmpty();\n }", "public boolean isFull() {\n return (this.top == this.stack.length);\n }", "public void traverseStack(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is empty\n if(this.topOfStack==-1){\n System.out.println(\"Stack is empty, can't traverse\");\n return;\n }\n // if stack is not empty\n System.out.println(\"Printing stack...\");\n for(int i=0;i<=this.topOfStack;i++){\n System.out.print(this.arr[i]+\" \");\n }\n System.out.println();\n }", "public Solution67() {\n stack = new Stack<>();\n min_stack = new Stack<>();\n }" ]
[ "0.7493015", "0.6918699", "0.6685683", "0.6574159", "0.64090866", "0.64060366", "0.64028317", "0.6383624", "0.6340944", "0.6286338", "0.6286338", "0.6286338", "0.6283837", "0.62534255", "0.6226737", "0.62043774", "0.61960155", "0.619421", "0.611964", "0.61143744", "0.6106149", "0.61006665", "0.60460466", "0.60445416", "0.60407376", "0.5988186", "0.59847885", "0.59764403", "0.5936304", "0.59155846", "0.5895739", "0.58920866", "0.58776534", "0.58689106", "0.5853445", "0.5844446", "0.58338445", "0.5833573", "0.58321214", "0.5824654", "0.5815778", "0.5799615", "0.57886344", "0.57850045", "0.5779987", "0.5776073", "0.577336", "0.57417256", "0.57216555", "0.57194847", "0.57184184", "0.57167757", "0.57136685", "0.5704894", "0.5703051", "0.57013625", "0.5699248", "0.5699248", "0.5697575", "0.56880456", "0.5682177", "0.56730956", "0.56684136", "0.56659514", "0.5657809", "0.56534463", "0.5652171", "0.564481", "0.5640301", "0.56376886", "0.5637312", "0.5636207", "0.56333536", "0.56326497", "0.5628333", "0.561925", "0.5618753", "0.5613816", "0.5611387", "0.56018645", "0.55998486", "0.5586922", "0.5582529", "0.5578551", "0.55736935", "0.55689913", "0.55638415", "0.5548754", "0.55472225", "0.55451167", "0.5544227", "0.55410236", "0.55378383", "0.5536983", "0.5534526", "0.5529508", "0.5527603", "0.552736", "0.55262095", "0.55215913" ]
0.58384174
36
again equals() not defined for ImageSTack and thus I can't compare equality unless I make a method
@Test public void testGetImageStack() { ip = new ImagePlus(); assertNotNull(ip.getImageStack()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void equality() {\n ImageReference expected = createSampleImage();\n\n assertEquals(expected, createSampleImage());\n assertNotEquals(expected, new ImageReference.Builder()\n .setContentUri(\"content://bar\")\n .setIsTintable(true)\n .setOriginalSize(TEST_WIDTH, TEST_HEIGHT)\n .build());\n assertNotEquals(expected, new ImageReference.Builder()\n .setContentUri(TEST_CONTENT_URI)\n .setIsTintable(false)\n .setOriginalSize(TEST_WIDTH, TEST_HEIGHT)\n .build());\n assertNotEquals(expected, new ImageReference.Builder()\n .setContentUri(TEST_CONTENT_URI)\n .setIsTintable(false)\n .setOriginalSize(1, TEST_HEIGHT)\n .build());\n assertNotEquals(expected, new ImageReference.Builder()\n .setContentUri(TEST_CONTENT_URI)\n .setIsTintable(false)\n .setOriginalSize(TEST_WIDTH, 1)\n .build());\n\n assertEquals(expected.hashCode(), new ImageReference.Builder()\n .setContentUri(TEST_CONTENT_URI)\n .setIsTintable(true)\n .setOriginalSize(TEST_WIDTH, TEST_HEIGHT)\n .build()\n .hashCode());\n }", "@Override\n public boolean equals(Object o)\n {\n //thanks to GeeksforGeeks for general form https://www.geeksforgeeks.org/overriding-equals-method-in-java/\n if (o == this)\n return true;\n if (!(o instanceof Thumbnail))\n return false;\n \n Thumbnail t = (Thumbnail) o;\n return imagePath.equals(t.getImagePath());\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n Image image = (Image) o;\n if (image.getId() == null || getId() == null) {\n return false;\n }\n return Objects.equals(getId(), image.getId());\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ProductImage)) {\n return false;\n }\n ProductImage other = (ProductImage) object;\n if ((this.idImage == null && other.idImage != null) || (this.idImage != null && !this.idImage.equals(other.idImage))) {\n return false;\n }\n return true;\n }", "public boolean equals(Object object) {\n if (object instanceof ImageFile) {\n ImageFile imageFile = (ImageFile) object;\n return imageFile.getOpenable() == this.getOpenable() &&\n imageFile.getPlayable() == this.getPlayable() &&\n imageFile.animated() == this.animated() &&\n imageFile.getFileSizeInBytes() == this.getFileSizeInBytes() &&\n imageFile.getImageHeight() == this.getImageHeight() &&\n imageFile.getImageWidth() == this.getImageWidth() &&\n imageFile.getOpensWith().equals(this.getOpensWith()) &&\n imageFile.getFile() == this.getFile();\n }\n return false;\n }", "@Test\n\tpublic void equalsSameObject() {\n\t\tProductScanImageURIKey key = this.getDefaultKey();\n\t\tboolean equals = key.equals(key);\n\t\tAssert.assertTrue(equals);\n\t}", "@Test\n\tpublic void equalsSimilarObjects() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tboolean equals = key1.equals(key2);\n\t\tSystem.out.println();\n\t\tAssert.assertTrue(equals);\n\t}", "public static boolean areImagesSame(Image a, Image b) {\n if(a.getWidth() == b.getWidth() && a.getHeight() == b.getHeight()) {\n for(int x=0; x<(int) a.getWidth(); x++) {\n for(int y=0; y<(int) a.getHeight(); y++) {\n // If even a single pixel doesn't match color then it will return false\n if(!a.getPixelReader().getColor(x, y).equals(b.getPixelReader().getColor(x, y))) return false;\n }\n }\n }\n return true;\n }", "private Comparison compareImages(SimpleNode first, SimpleNode second) {\n if (first instanceof JexlNode) {\n String firstImage = ((JexlNode) first).image;\n String secondImage = ((JexlNode) second).image;\n if (!Objects.equals(firstImage, secondImage)) {\n return Comparison.notEqual(\"Node images differ: \" + firstImage + \" vs \" + secondImage);\n }\n }\n return Comparison.IS_EQUAL;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Imagen)) {\r\n return false;\r\n }\r\n Imagen other = (Imagen) object;\r\n if ((this.idImagen == null && other.idImagen != null) || (this.idImagen != null && !this.idImagen.equals(other.idImagen))) {\r\n return false;\r\n }\r\n return true;\r\n }", "private Boolean equalWebItemImages(WebItemImage webItemImageOne, WebItemImage webItemImageTwo) {\n\t\tif (webItemImageOne==null && webItemImageTwo==null) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tif (webItemImageOne==null || webItemImageTwo==null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (webItemImageOne.getSourceURL() == webItemImageTwo.getSourceURL()) {\r\n\t\t\treturn true;\r\n\t\t } else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean imageStatsEquals(ImageStatistics a, ImageStatistics b)\n\t{\n\t\tif (!Arrays.equals(a.histogram, b.histogram))\n\t\t\treturn false;\n\n\t\tif (a.pixelCount != b.pixelCount)\n\t\t\treturn false;\n\n\t\tif (a.mode != b.mode)\n\t\t\treturn false;\n\n\t\tif (a.dmode != b.dmode)\n\t\t\treturn false;\n\n\t\tif (a.area != b.area)\n\t\t\treturn false;\n\n\t\tif (a.min != b.min)\n\t\t\treturn false;\n\n\t\tif (a.max != b.max)\n\t\t\treturn false;\n\n\t\tif (a.mean != b.mean)\n\t\t\treturn false;\n\n\t\tif (a.median != b.median)\n\t\t\treturn false;\n\n\t\tif (a.stdDev != b.stdDev)\n\t\t\treturn false;\n\n\t\tif (a.skewness != b.skewness)\n\t\t\treturn false;\n\n\t\tif (a.kurtosis != b.kurtosis)\n\t\t\treturn false;\n\n\t\tif (a.xCentroid != b.xCentroid)\n\t\t\treturn false;\n\n\t\tif (a.yCentroid != b.yCentroid)\n\t\t\treturn false;\n\n\t\tif (a.xCenterOfMass != b.xCenterOfMass)\n\t\t\treturn false;\n\n\t\tif (a.yCenterOfMass != b.yCenterOfMass)\n\t\t\treturn false;\n\n\t\treturn true;\n\t}", "public void testSetImage() {\n byte[] image = new byte[] {1, 2, 3};\n byte[] expResult = new byte[] {1, 2, 3};\n CLImage instance = new CLImage();\n instance.setImage(image);\n assertEquals(expResult.length, instance.image.length);\n for (int i = 0; i < expResult.length; ++i)\n {\n assertEquals(expResult[i], instance.image[i]);\n }\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ImageBank)) {\n return false;\n }\n ImageBank other = (ImageBank) object;\n if ((this.imageId == null && other.imageId != null) || (this.imageId != null && !this.imageId.equals(other.imageId))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean equals(Object o) {\n\t\tif (this == o) {\n\t\t\treturn true;\n\t\t}\n\t\tif (!(o instanceof ImageSource)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tImageSource that = (ImageSource) o;\n\t\tif (this.id != null ? !this.id.equals(that.id) : that.id != null) return false;\n\n\t\treturn true;\n\t}", "private static boolean isMirrorImage(Tree left, Tree right){\n if(left==null || right == null){\n return (left==null && right==null);\n }\n\n return left.data==right.data && isMirrorImage(left.left,right.right) && isMirrorImage(left.right,right.left);\n}", "public void testRefreshImage()\n {\n Image orig = cover.getImage();\n cover.setType(GamePiece.O);\n cover.refreshImage();\n assertEquals(false, orig.equals(cover.getImage()));\n }", "public boolean isEqual(Card card) {\n\t\treturn imageLink.equals(card.getURL());\n\t}", "private void equalize(BufferedImage img) {\n \t\tfloat minSat = Float.MAX_VALUE, maxSat = Float.MIN_VALUE;\n \t\tfloat minVal = Float.MAX_VALUE, maxVal = Float.MIN_VALUE;\n \t\t\n \t\tint[] prgb = { 0, 0, 0 };\n \t\tfloat[] hsv = { 0, 0, 0 };\n \t\t\n \t\tint[] valCount = new int[16];\n \t\t\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\tfor (int x = 0; x < img.getWidth(); x++) {\n \t\t\t\tint pixel = img.getRGB(x, y);\n \t\t\t\tpixelToRGB(pixel, prgb);\n \t\t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], hsv);\n \t\t\t\tminSat = Math.min(hsv[1], minSat);\n \t\t\t\tmaxSat = Math.max(hsv[1], maxSat);\n \t\t\t\tminVal = Math.min(hsv[2], minVal);\n \t\t\t\tmaxVal = Math.max(hsv[2], maxVal);\n \t\t\t\tvalCount[(int) (hsv[2] / 16)]++;\n \t\t\t}\n \t\t}\n \t\t\n \t\tint maxPt = -1;\n \t\tfor (int i = 1; i < 15; i++) {\n \t\t\tif (maxPt == -1 || valCount[i] >= valCount[maxPt]) {\n \t\t\t\tmaxPt = i;\n \t\t\t}\n \t\t}\n \t\t\n \t\tint valueMidpoint = maxPt * 16;\n \t\t\n \t\tSystem.out.println(\"Equalize: sat = \"+minSat+\" to \" +maxSat+\"; val = \" + minVal + \" to \" + maxVal+\"; value midpoint = \" + valueMidpoint);\n \t\tfloat satScale = 1.0f - minSat;\n \t\tfloat valScale = 255 - minVal;\n \t\tfloat satDiff = maxSat - minSat;\n \t\tfloat valDiff = maxVal - minVal;\n \t\t\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\tfor (int x = 0; x < img.getWidth(); x++) {\n \t\t\t\tint pixel = img.getRGB(x, y);\n \t\t\t\tpixelToRGB(pixel, prgb);\n \t\t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], hsv);\n \t\t\t\t\n \t\t\t\tif (satDiff < 0.5)\n \t\t\t\t\thsv[1] = ((hsv[1] - minSat) / satDiff) * satScale + minSat;\n \t\t\t\tif (valDiff < 128)\n \t\t\t\t\thsv[2] = ((hsv[2] - minVal) / valDiff) * valScale + minVal;\n \n \t\t\t\thsvToRgb(hsv[0], hsv[1], hsv[2], prgb);\n \t\t\t\t\n \t\t\t\timg.setRGB(x, y, rgb8ToPixel(prgb) | (pixel & 0xff000000));\n \t\t\t}\n \t\t}\n \t}", "int match(ArrayList<ImageCell> images);", "@Test\n\tpublic void hashCodeSameObject() {\n\t\tProductScanImageURIKey key = this.getDefaultKey();\n\t\tAssert.assertEquals(key.hashCode(), key.hashCode());\n\t}", "public void testGetImage() {\n CLImage instance = new CLImage();\n byte[] expResult = new byte[] {1, 2, 3};\n instance.image = new byte[] {1, 2, 3};\n byte[] result = instance.getImage();\n assertEquals(expResult.length, result.length);\n for (int i = 0; i < expResult.length; ++i)\n {\n assertEquals(expResult[i], result[i]);\n }\n }", "public boolean equals(Object o){\n if (o instanceof Pixel){\n Pixel other = (Pixel) o;\n return this.getColor() == other.getColor();\n }\n return false;\n }", "boolean hasImageByTransform();", "boolean hasPicture();", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ComplaintImageDTO)) {\n return false;\n }\n ComplaintImageDTO other = (ComplaintImageDTO) object;\n if ((this.complaintImageID == null && other.complaintImageID != null) || (this.complaintImageID != null && !this.complaintImageID.equals(other.complaintImageID))) {\n return false;\n }\n return true;\n }", "public boolean equals(java.lang.Object r5) {\n /*\n r4 = this;\n r0 = 1\n if (r5 != r4) goto L_0x0004\n return r0\n L_0x0004:\n r1 = 0\n if (r5 != 0) goto L_0x0008\n return r1\n L_0x0008:\n java.lang.Class r2 = r5.getClass()\n java.lang.Class r3 = r4.getClass()\n boolean r2 = r2.equals(r3)\n if (r2 == 0) goto L_0x004b\n com.dropbox.core.v2.files.ThumbnailArg r5 = (com.dropbox.core.p005v2.files.ThumbnailArg) r5\n java.lang.String r2 = r4.path\n java.lang.String r3 = r5.path\n if (r2 == r3) goto L_0x0024\n boolean r2 = r2.equals(r3)\n if (r2 == 0) goto L_0x0049\n L_0x0024:\n com.dropbox.core.v2.files.ThumbnailFormat r2 = r4.format\n com.dropbox.core.v2.files.ThumbnailFormat r3 = r5.format\n if (r2 == r3) goto L_0x0030\n boolean r2 = r2.equals(r3)\n if (r2 == 0) goto L_0x0049\n L_0x0030:\n com.dropbox.core.v2.files.ThumbnailSize r2 = r4.size\n com.dropbox.core.v2.files.ThumbnailSize r3 = r5.size\n if (r2 == r3) goto L_0x003c\n boolean r2 = r2.equals(r3)\n if (r2 == 0) goto L_0x0049\n L_0x003c:\n com.dropbox.core.v2.files.ThumbnailMode r2 = r4.mode\n com.dropbox.core.v2.files.ThumbnailMode r5 = r5.mode\n if (r2 == r5) goto L_0x004a\n boolean r5 = r2.equals(r5)\n if (r5 == 0) goto L_0x0049\n goto L_0x004a\n L_0x0049:\n r0 = 0\n L_0x004a:\n return r0\n L_0x004b:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.dropbox.core.p005v2.files.ThumbnailArg.equals(java.lang.Object):boolean\");\n }", "public boolean hasSameVariants(ImageVariantConfig other) {\n if (getVariantList().size() != other.getVariantList().size()) return false;\n for(VariantInfo variant : getVariantList()) {\n if (!variant.equalsProps(other.getVariant(variant.getName()))) return false;\n }\n return true;\n }", "boolean isImageDisplayed();", "@Override\n\tpublic boolean equals(Card anotherCard){\n\t\t\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Producimage)) {\r\n return false;\r\n }\r\n Producimage other = (Producimage) object;\r\n if ((this.producImageId == null && other.producImageId != null) || (this.producImageId != null && !this.producImageId.equals(other.producImageId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Test\n\tpublic void hashCodeSimilarObjects() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tAssert.assertEquals(key1.hashCode(), key2.hashCode());\n\t}", "@Override\n public int checkImage(Image img, int w, int h, ImageObserver o) {\n return Toolkit.getDefaultToolkit().checkImage(img, w, h, o);\n }", "public boolean equals(java.lang.Object r4) {\n /*\n r3 = this;\n r0 = r4 instanceof com.bumptech.glide.load.engine.bitmap_recycle.C3039h.C3037a;\n r1 = 0;\n if (r0 == 0) goto L_0x0022;\n L_0x0005:\n r4 = (com.bumptech.glide.load.engine.bitmap_recycle.C3039h.C3037a) r4;\n r0 = r3.f9469b;\n r2 = r4.f9469b;\n if (r0 != r2) goto L_0x0021;\n L_0x000d:\n r0 = r3.f9470c;\n if (r0 != 0) goto L_0x0016;\n L_0x0011:\n r4 = r4.f9470c;\n if (r4 != 0) goto L_0x0021;\n L_0x0015:\n goto L_0x0020;\n L_0x0016:\n r0 = r3.f9470c;\n r4 = r4.f9470c;\n r4 = r0.equals(r4);\n if (r4 == 0) goto L_0x0021;\n L_0x0020:\n r1 = 1;\n L_0x0021:\n return r1;\n L_0x0022:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bumptech.glide.load.engine.bitmap_recycle.h.a.equals(java.lang.Object):boolean\");\n }", "public static boolean compareImages(String image1, String image2) {\n \t\tboolean equals = false;\n \t\ttry {\n \t\t\tExifInterface exif1 = new ExifInterface(image1);\n \t\t\tExifInterface exif2 = new ExifInterface(image2);\n \t\t\t\n \t\t\tfinal String datetime1 = exif1.getAttribute(ExifInterface.TAG_DATETIME);\n \t\t\tfinal String datetime2 = exif2.getAttribute(ExifInterface.TAG_DATETIME);\n \t\t\t\n \t\t\tif (!TextUtils.isEmpty(datetime1) && !TextUtils.isEmpty(datetime1)) {\n \t\t\t\tequals = datetime1.equals(datetime2);\n \t\t\t} else {\n \t\t\t\tLog.d(TAG, \"Datetime is null or empty. The MD5 checksum will be compared\");\n \t\t\t\tequals = compareFilesChecksum(image1, image2);\n \t\t\t}\n \t\t} catch (IOException e) {\n \t\t\tLog.e(TAG, e.getMessage());\n \t\t}\n \t\t\n \t\treturn equals;\n \t}", "public boolean equals(Object object) {\n/* 4770 */ if (this == object)\n/* */ {\n/* 4772 */ return true;\n/* */ }\n/* 4774 */ if (object != null && object.getClass() == getClass()) {\n/* */ \n/* 4776 */ VolaTile tile = (VolaTile)object;\n/* 4777 */ return (tile.getTileX() == this.tilex && tile.getTileY() == this.tiley && tile.surfaced == this.surfaced);\n/* */ } \n/* 4779 */ return false;\n/* */ }", "@Override\n\tpublic boolean equals(Object o) {\n\t\tif (o == null)\n\t\t\treturn false;\n\t\tif (o == this)\n\t\t\treturn true;\n\t\tif (o instanceof EWAHCompressedBitmap) {\n\t\t\tEWAHCompressedBitmap other = (EWAHCompressedBitmap) o;\n\t\t\tif (this.sizeinbits == other.sizeinbits\n\t\t\t\t\t&& this.actualsizeinwords == other.actualsizeinwords\n\t\t\t\t\t&& this.rlw.position == other.rlw.position) {\n\t\t\t\tfor (int k = 0; k < this.actualsizeinwords; ++k)\n\t\t\t\t\tif (this.buffer[k] != other.buffer[k])\n\t\t\t\t\t\treturn false;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tif (o instanceof IBitSet) {\n\t\t\tIBitSet b = (IBitSet) o;\n\t\t\tif (this.sizeinbits != b.sizeInBits())\n\t\t\t\treturn false;\n\t\t\tIntIterator i = intIterator();\n\t\t\tIntIterator j = b.intIterator();\n\n\t\t\twhile (i.hasNext())\n\t\t\t\tif (i.next() != j.next())\n\t\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "@Test\n public void testEqualsTrue() {\n Rectangle r5 = new Rectangle(7, 4, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 255),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, -75));\n Rectangle r8 = new Rectangle(0, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n\n assertEquals(r1, r5);\n assertEquals(r2, r6);\n assertEquals(r3, r7);\n assertEquals(r4, r8);\n }", "public void isImagePresent() {\r\n\t\t\t\r\n\t\t}", "@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}", "@Test void compareToNaive() {\n\t\tfor (var type : new ImageType[]{ImageType.SB_U8, ImageType.SB_U16, ImageType.SB_F32, ImageType.SB_F64}) {\n\t\t\tvar src = (ImageGray)type.createImage(width, height);\n\t\t\tvar dst = (ImageGray)type.createImage(1, 1);\n\n\t\t\tGImageMiscOps.fillUniform(src, rand, 0, 100);\n\n\t\t\tdouble mean = GImageStatistics.mean(src);\n\t\t\tGeometricMeanFilter.filter(src, radiusX, radiusY, mean, dst);\n\n\t\t\tassertEquals(width, dst.width);\n\t\t\tassertEquals(height, dst.height);\n\n\t\t\tfor (int y = 0; y < dst.height; y++) {\n\t\t\t\tfor (int x = 0; x < dst.width; x++) {\n\t\t\t\t\tdouble found = GeneralizedImageOps.get(dst, x, y);\n\t\t\t\t\tassertEquals(naiveMean(src, x, y, radiusX, radiusY), found, 1.0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "boolean isImageTileType();", "public void testEquals() {\n XYBlockRenderer r1 = new XYBlockRenderer();\n XYBlockRenderer r2 = new XYBlockRenderer();\n r1.setBlockHeight(2.0);\n r2.setBlockHeight(2.0);\n r1.setBlockWidth(2.0);\n r2.setBlockWidth(2.0);\n r1.setPaintScale(new GrayPaintScale(0.0, 1.0));\n r2.setPaintScale(new GrayPaintScale(0.0, 1.0));\n }", "@Override\n public boolean equals(Object object){\n if(object!=null && object instanceof Figure){\n return 0 == ((Figure)object).compare(this);\n }else\n return false;\n }", "public boolean colorEquals(MagipicPuzzle other) {\r\n if (this.squares.size() != other.squares.size()) {\r\n return false;\r\n } else {\r\n for (int i : Interval.zeroUpTo(this.squares.size())) {\r\n if (!this.squares.get(i).colorEquals(other.squares.get(i))) {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "public static void compareImage( BufferedImage expectedImage, BufferedImage calculatedImage) {\n\n // take buffer data from botm image files //\n DataBuffer dbA = expectedImage.getData().getDataBuffer();\n int dataTypeSizeA= dbA.getDataTypeSize(DataBuffer.TYPE_BYTE);\n\n DataBuffer dbB =calculatedImage.getData().getDataBuffer();\n int dataTypeSizeB = dbB.getDataTypeSize(DataBuffer.TYPE_BYTE);\n\n\n //validate the image size\n Assert.assertEquals(dataTypeSizeA, dataTypeSizeB);\n Assert.assertEquals(dbA.getSize(), dbB.getSize());\n\n\n if (expectedImage.getWidth() == calculatedImage.getWidth() && expectedImage.getHeight() == calculatedImage.getHeight()) {\n for (int x = 0; x < calculatedImage.getWidth(); x++) {\n for (int y = 0; y < calculatedImage.getHeight(); y++) {\n Assert.assertEquals(expectedImage.getRGB(x, y), calculatedImage.getRGB(x, y));\n\n }\n }\n }\n\n\n }", "private void areEquals(FileInfo a, FileInfo b)\n\t{\n\t\t// will test a subset for now\n\n\t\tassertEquals(a.width,b.width);\n\t\tassertEquals(a.height,b.height);\n\t\tassertEquals(a.nImages,b.nImages);\n\t\tassertEquals(a.whiteIsZero,b.whiteIsZero);\n\t\tassertEquals(a.intelByteOrder,b.intelByteOrder);\n\t\tassertEquals(a.pixels,b.pixels);\n\t\tassertEquals(a.pixelWidth,b.pixelWidth,Assert.DOUBLE_TOL);\n\t\tassertEquals(a.pixelHeight,b.pixelHeight,Assert.DOUBLE_TOL);\n\t\tassertEquals(a.unit,b.unit);\n\t\tassertEquals(a.pixelDepth,b.pixelDepth,Assert.DOUBLE_TOL);\n\t\tassertEquals(a.frameInterval,b.frameInterval,Assert.DOUBLE_TOL);\n\t\tassertEquals(a.calibrationFunction,b.calibrationFunction);\n\t\tAssert.assertDoubleArraysEqual(a.coefficients,b.coefficients,Assert.DOUBLE_TOL);\n\t\tassertEquals(a.valueUnit,b.valueUnit);\n\t\tassertEquals(a.fileType,b.fileType);\n\t\tassertEquals(a.lutSize,b.lutSize);\n\t\tassertArrayEquals(a.reds,b.reds);\n\t\tassertArrayEquals(a.greens,b.greens);\n\t\tassertArrayEquals(a.blues,b.blues);\n\t}", "public boolean equals(Object obj)\r\n\t{\r\n\t\tif (obj instanceof FloatDimension)\r\n\t\t{\r\n\t\t\tFloatDimension dimension = (FloatDimension)obj;\r\n\t\t\treturn dimension.width == width && dimension.height == height;\r\n\t\t}\r\n\t\treturn super.equals(obj);\r\n\t}", "@Override\n public boolean equals (Object object) {\n if (! (object instanceof BoxPhotography) ) {return false;}\n if (this.getRow() != ((BoxPhotography) object).getRow()) {return false;}\n if (this.getColumn() != ((BoxPhotography) object).getColumn()) {return false;}\n if (this.getLevel() != ((BoxPhotography) object).getLevel()) {return false;}\n if(this.isOccupied() != ((BoxPhotography) object).isOccupied()) {return false;}\n if (this.getColor() != ((BoxPhotography) object).getColor()) {return false;}\n return this.isDomed() == ((BoxPhotography) object).isDomed();\n }", "@Override\n public boolean equals(Object obj) {\n if (obj == null || !(obj instanceof Photo)) {\n return false;\n }\n\n Photo p = (Photo) obj;\n\n if(this.urlString.equals(p.urlString)){\n return true;\n }\n\n return false;\n }", "private boolean checkBarcodeImg(Barcode barcode) {\n//\t\tif(barcode.getImg())\n\t\treturn true;\n\t}", "public double compareImages(ImageSub img1, ImageSub img2) {\n\t\tdouble[] channels = new double[3];\n\t\tdouble sumOfSquares = 0;\n\t\tfor(int i = 0; i < channels.length; i++) {\n\t\t\tchannels[i] = Imgproc.compareHist(img1.cvChannels.get(i), img2.cvChannels.get(i), Imgproc.CV_COMP_BHATTACHARYYA);\n\t\t\t\n\t\t\t//Uncomment this. Comment the line above\n\t\t\t//channels[i] = SSIM.compareImages(img1.cvChannels.get(i), img2.cvChannels.get(i));\n\t\t\tsumOfSquares += channels[i];\n\t\t}\n\t\tsumOfSquares /= channels.length;\n\t\t//System.out.println(sumOfSquares);\n\t\treturn sumOfSquares;\n\t}", "@Test\n\tpublic void testGetNDimensions() {\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\",st);\n\t\tip.setDimensions(1,1,1);\n\t\tassertEquals(2,ip.getNDimensions());\n\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(3,ip.getNDimensions());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(3,ip.getNDimensions());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(3,ip.getNDimensions());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(4,ip.getNDimensions());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(4,ip.getNDimensions());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(5,ip.getNDimensions());\n\t}", "public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}", "@Test\n\tpublic void testSampleEquals() {\n\n\t\tassertTrue(square.equals(squareRotate));\n\t\t\n\t\tassertTrue(pyr1.equals(pyr5));\n\t\t\n\t\tassertTrue(s.equals(sInitial));\n\t\tassertFalse(stick.equals(stickRotated));\n\t\tassertFalse(s.equals(sRotated));\n\n\n\t}", "@Test\n\tpublic void equalsNull() {\n\t\tProductScanImageURIKey key = this.getDefaultKey();\n\t\tboolean equals = key.equals(null);\n\t\tAssert.assertFalse(equals);\n\t}", "public void testGetSetImageImage() {\n\t\tassertEquals(testNormal.getImage(), new ImageIcon(\"PACMAN/smallpill.png\").getImage());\n\t\t\n\t\t//SET NEW IMAGE\n\t\ttestNormal.setImage(testImage);\n\t\tassertEquals(testNormal.getImage(), testImage);\n\t}", "public boolean checkImageComponent(String filename) {\n if (componentMap.containsKey(filename))\n return true;\n else\n return false;\n }", "@Override\n public int compare(Camera.Size lhs, Camera.Size rhs) {\n return Long.signum((long) lhs.width * lhs.height -\n (long) rhs.width * rhs.height);\n }", "@Override\n public int compare(Camera.Size lhs, Camera.Size rhs) {\n return Long.signum((long) lhs.width * lhs.height -\n (long) rhs.width * rhs.height);\n }", "@Test\n\t\tpublic void testPictureSample() {\n\t\t\tPixel[][] red = new Pixel[15][10];\n\t\t\tfor(int x =0; x < 15; x++) {\n\t\t\t\tfor(int y =0; y<10; y++) {\n\t\t\t\t\tif(x%2 == 0) {\n\t\t\t\t\t\tred[x][y] = new ColorPixel(1, 0, 0);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tred[x][y] = new GrayPixel(.5);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tPicture redAndGray = new MutablePixelArrayPicture(red, \"redAndGray\");\n\t\t\tIterator<Pixel> sample = redAndGray.sample(2,3, 3, 4);\n\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(2, 3));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(5, 3));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(8, 3));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(11, 3));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(14, 3));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(2, 7));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(5, 7));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(8, 7));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(11, 7));\n\t\t\tcheck_for_component_equality(sample.next(), redAndGray.getPixel(14, 7));\n\t\t\tassertFalse(sample.hasNext());\n\t\t}", "@Override\n\tpublic boolean imageUpdate(Image arg0, int arg1, int arg2, int arg3, int arg4, int arg5) {\n\t\treturn false;\n\t}", "@Test\n @DisplayName(\"Test should detect equality between equal states.\")\n public void testShouldResultInEquality() {\n ObjectBag os1 = new ObjectBag(null, \"Hi\");\n ObjectBag os2 = new ObjectBag(null, \"Hi\");\n\n Assertions.assertThat(os1).isEqualTo(os2);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Photo)) {\n return false;\n }\n Photo other = (Photo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "boolean equalPixelArrayDim(List<List<Pixel>> pixelArray);", "public boolean equals(Grid<T> other) {\r\n // TODO Auto-generated method stub\r\n return this.toString() == other.toString();\r\n }", "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof EditPictureCommand)) {\n return false;\n }\n\n // state check\n EditPictureCommand e = (EditPictureCommand) other;\n return index.equals(e.index)\n && newProfilePicturePath.equals(e.newProfilePicturePath)\n && Objects.equals(studentToEditPicture, e.studentToEditPicture);\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (this == obj)\r\n\t\t\treturn true;\r\n\t\tif (obj == null)\r\n\t\t\treturn false;\r\n\t\tif (getClass() != obj.getClass())\r\n\t\t\treturn false;\r\n\t\tSprite other = (Sprite) obj;\r\n\t\tif (column != other.column)\r\n\t\t\treturn false;\r\n\t\tif (row != other.row)\r\n\t\t\treturn false;\r\n\t\tif (symbol != other.symbol)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "@Test\n\tpublic void testGetNSlices() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(1,3,1);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(3,1,1);\n\t\tassertEquals(1,ip.getNSlices());\n\n\t\t// stack matches dimensions\n\t\tip = new ImagePlus(\"Agent007\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"suave\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"debonair\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"sophisticated\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"handsome\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"humorous\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"aloof\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"calm\",new byte[] {1,2,3,4,5,6});\n\t\tst.addSlice(\"composed\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"MoneyPenny\", st);\n\n\t\t// one dim > 1\n\t\tip.setDimensions(1,1,8);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(1,8,1);\n\t\tassertEquals(8,ip.getNSlices());\n\t\tip.setDimensions(8,1,1);\n\t\tassertEquals(1,ip.getNSlices());\n\n\t\t// two dims > 1\n\t\tip.setDimensions(1,2,4);\n\t\tassertEquals(2,ip.getNSlices());\n\t\tip.setDimensions(1,4,2);\n\t\tassertEquals(4,ip.getNSlices());\n\t\tip.setDimensions(2,1,4);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(2,4,1);\n\t\tassertEquals(4,ip.getNSlices());\n\t\tip.setDimensions(4,1,2);\n\t\tassertEquals(1,ip.getNSlices());\n\t\tip.setDimensions(4,2,1);\n\t\tassertEquals(2,ip.getNSlices());\n\n\t\t// three dims > 1\n\t\tip.setDimensions(2,2,2);\n\t\tassertEquals(2,ip.getNSlices());\n\t}", "@Test\r\n public void testEquals() {\r\n Articulo art = new Articulo();\r\n articuloPrueba.setCodigo(1212);\r\n art.setCodigo(1212);\r\n boolean expResult = true;\r\n boolean result = articuloPrueba.equals(art);\r\n assertEquals(expResult, result);\r\n }", "@Test\n public void testNotRegenerateImage() throws Exception {\n assertFalse(\n \"This flag should not be committed as true\", ImageSimilarity.REGENERATE_EXPECTED_IMAGES);\n }", "protected Boolean hasImageName(Object value) {\n\t return true;\n }", "boolean hasImagePath();", "protected abstract boolean equalityTest(Object key, Object key2);", "public boolean test(MyList<Point> pixels, Image img)\r\n/* 19: */ {\r\n/* 20:33 */ int volume = 0;\r\n/* 21:35 */ for (MyListNode<Point> n = pixels.getHead(); n != null; n = n.getNext())\r\n/* 22: */ {\r\n/* 23:36 */ Point p = (Point)n.getDatum();\r\n/* 24: */ \r\n/* 25:38 */ int[] val = img.getVXYByte(p.x, p.y);\r\n/* 26:40 */ for (int c = 0; c < val.length; c++) {\r\n/* 27:41 */ volume += img.getXYCByte(p.x, p.y, c);\r\n/* 28: */ }\r\n/* 29: */ }\r\n/* 30:44 */ if (volume < this.threshold) {\r\n/* 31:44 */ return false;\r\n/* 32: */ }\r\n/* 33:45 */ return true;\r\n/* 34: */ }", "public boolean equals(Object obj) {\n/* 319 */ if (obj == this) {\n/* 320 */ return true;\n/* */ }\n/* 322 */ if (!(obj instanceof SlidingCategoryDataset)) {\n/* 323 */ return false;\n/* */ }\n/* 325 */ SlidingCategoryDataset that = (SlidingCategoryDataset)obj;\n/* 326 */ if (this.firstCategoryIndex != that.firstCategoryIndex) {\n/* 327 */ return false;\n/* */ }\n/* 329 */ if (this.maximumCategoryCount != that.maximumCategoryCount) {\n/* 330 */ return false;\n/* */ }\n/* 332 */ if (!this.underlying.equals(that.underlying)) {\n/* 333 */ return false;\n/* */ }\n/* 335 */ return true;\n/* */ }", "private boolean checkImage(int row, int col, String imageName) {\n\t\tDirectionalPanel[] room = rooms[row][col];\n\t\tfor (int i = 0; i < room.length; i++) {\n\t\t\tString roomImageName = room[i].getImageName();\n\t\t\tif (roomImageName != null && roomImageName.equals(imageName)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean properExtensionalImage(CompoundTerm term) {\n\t\tif (term.con().equals(Connector.ExtImage())) {\n\t\t\tIterator<AtomicTerm> i = term.comps().iterator();\n\t\t\ti.next(); // xxx (relation)\n\t\t\treturn i.next().equals(AtomicTerm.Placeholder());\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void addPicture_ReturnsTrue(){\n Bitmap image = BitmapFactory.decodeResource(appContext.getResources(),R.drawable.ic_add);\n assertEquals(\"addPicture - Returns True Upon Valid Pic\", true, testRecipe.setImage(image, appContext));\n assertNotEquals(\"addPicture - Not Null Upon Valid Pic\", null, testRecipe.getImage(appContext));\n }", "@Test\n public void testSmallDist() throws Exception {\n assertTrue(\n new ImageSimilarity(getFile(\"imageSimilarity/with.png\"))\n .calcDistance(ImageIO.read(getFile(\"imageSimilarity/without.png\")))\n > 0);\n }", "private Equals() {}", "public static void assertEquals(final File file, final BufferedImage image)\n throws IOException\n {\n BufferedImage other;\n int w, h, x, y;\n\n other = ImageIO.read(file);\n\n w = image.getWidth();\n h = image.getHeight();\n if (other.getWidth() != w || other.getHeight() != h)\n {\n fail(\"Image has not the same size as the file: \" + file.getPath());\n }\n for (y = 0; y < h; y++)\n {\n for (x = 0; x < w; x++)\n {\n if (image.getRGB(x, y) != other.getRGB(x, y))\n {\n fail(\"Image does not match the image in the file: \"\n + file.getPath());\n }\n }\n }\n }", "public boolean equals(Bitmap bitmap1, Bitmap bitmap2) {\n ByteBuffer buffer1 = ByteBuffer.allocate(bitmap1.getHeight() * bitmap1.getRowBytes());\n bitmap1.copyPixelsToBuffer(buffer1);\n\n ByteBuffer buffer2 = ByteBuffer.allocate(bitmap2.getHeight() * bitmap2.getRowBytes());\n bitmap2.copyPixelsToBuffer(buffer2);\n\n return Arrays.equals(buffer1.array(), buffer2.array());\n }", "@Test\r\n public void testSameSize(){\r\n List<Tone> palette = Arrays.asList(new Tone(Color.red));\r\n\r\n BufferedImage image = ImageFileUtils.loadImageResource(\"/sampleImages/dimensions/2x4.png\");\r\n\r\n PaletteReplacer replacer = new PaletteReplacer();\r\n\r\n BufferedImage result = replacer.replace(image, palette);\r\n\r\n assertDimensions(result, 2, 4);\r\n }", "@Override\n public boolean equals(Object other) {\n return this == other;\n }", "boolean saveImage(Image img) {\r\n\t\treturn true;\r\n\t}", "@Test\n public void testSharpenABlurredImage() {\n\n IImage newImage = new Blur().applyFilter(this.checkerboard);\n\n List<List<Pixel>> result = new ArrayList<>();\n List<Pixel> row1 = new ArrayList<>();\n row1.add(new Pixel(80, 80, 80, new Posn(0, 0)));\n row1.add(new Pixel(64, 64, 64, new Posn(1, 0)));\n List<Pixel> row2 = new ArrayList<>();\n row2.add(new Pixel(64, 64, 64, new Posn(0, 1)));\n row2.add(new Pixel(80, 80, 80, new Posn(1, 1)));\n result.add(row1);\n result.add(row2);\n IImage resultImage = new Image(result, 255);\n\n assertEquals(resultImage, newImage);\n\n IImage newImage2 = new Sharpen().applyFilter(newImage);\n\n List<List<Pixel>> result2 = new ArrayList<>();\n List<Pixel> row01 = new ArrayList<>();\n row01.add(new Pixel(132, 132, 132, new Posn(0, 0)));\n row01.add(new Pixel(120, 120, 120, new Posn(1, 0)));\n List<Pixel> row02 = new ArrayList<>();\n row02.add(new Pixel(120, 120, 120, new Posn(0, 1)));\n row02.add(new Pixel(132, 132, 132, new Posn(1, 1)));\n result2.add(row01);\n result2.add(row02);\n IImage resultImage2 = new Image(result2, 255);\n\n assertEquals(resultImage2, newImage2);\n\n\n\n\n }", "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n if (!(other instanceof Card)) {\n return false;\n }\n\n Card otherCard = (Card) other;\n return otherCard.getFrontFace().equals(getFrontFace())\n && otherCard.getBackFace().equals(getBackFace());\n }", "public boolean imageMatches(IntBitmap icon, IntBitmap searchArea)\n\t{\n\t\t//System.out.println(searchArea.matchError(icon));\n\t\treturn searchArea.matchError(icon) < GENERIC_MATCH_THRESHOLD;\n\t\t\n\t}", "void compare(BufferedImage bi0, BufferedImage bi1, int biType, Color c) {\n for (int x=0; x<wid; x++) {\n for (int y=0; y<hgt; y++) {\n int rgb0 = bi0.getRGB(x, y);\n int rgb1 = bi1.getRGB(x, y);\n if (rgb0 == rgb1) continue;\n int r0 = (rgb0 & 0xff0000) >> 16;\n int r1 = (rgb1 & 0xff0000) >> 16;\n int rdiff = r0-r1; if (rdiff<0) rdiff = -rdiff;\n int g0 = (rgb0 & 0x00ff00) >> 8;\n int g1 = (rgb1 & 0x00ff00) >> 8;\n int gdiff = g0-g1; if (gdiff<0) gdiff = -gdiff;\n int b0 = (rgb0 & 0x0000ff);\n int b1 = (rgb1 & 0x0000ff);\n int bdiff = b0-b1; if (bdiff<0) bdiff = -bdiff;\n if (rdiff > 1 || gdiff > 1 || bdiff > 1) {\n throw new RuntimeException(\n \"Images differ for type \"+biType + \" col=\"+c +\n \" at x=\" + x + \" y=\"+ y + \" \" +\n Integer.toHexString(rgb0) + \" vs \" +\n Integer.toHexString(rgb1));\n }\n }\n }\n\n }", "public boolean equals(Object obj) {\n\t\tMercator p;\n\t\ttry {\n\t\t\tp = (Mercator)obj;\n\t\t} catch (ClassCastException ex) {\n\t\t\treturn false;\n\t\t}\n\t\tif(!super.equals(p))return false;\n\t\treturn (refY==p.refY) && (scaleY==p.scaleY);\n\t}", "@Test\n public void testEquals() {\n System.out.println(\"Animal.equals\");\n Animal newAnimal = new Animal(252, \"Candid Chandelier\", 10, \"Cheetah\", 202);\n assertTrue(animal1.equals(newAnimal));\n assertFalse(animal2.equals(newAnimal));\n }", "@Test\n\tpublic void testIsHyperStack() {\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,3);\n\t\tip.setOpenAsHyperStack(false);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs false, nDimensions > 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"oof\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,4);\n\t\tip.setOpenAsHyperStack(false);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs true, nDimensions <= 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,1,3);\n\t\tip.setOpenAsHyperStack(true);\n\t\tassertFalse(ip.isHyperStack());\n\n\t\t// openAs true, nDimensions > 3\n\t\tip = new ImagePlus(\"ack phooey\", (Image)null);\n\t\tst = new ImageStack(1,4);\n\t\tst.addSlice(\"ouch\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"yowee\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"zounds\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"oof\",new byte[] {1,2,3,4});\n\t\tip.setStack(\"wonder twins activate\", st);\n\t\tip.setDimensions(1,2,2);\n\t\tip.setOpenAsHyperStack(true);\n\t\tassertTrue(ip.isHyperStack());\n\t}", "public abstract boolean isInSelectionImage(final Rectangle _r);", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkImageScale() {\n\t\tboolean flag = oTest.checkImageScale();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "private static RenderedImage equalize(final RenderedImage source) {\n final ColorModel srcModel = source.getColorModel();\n\n // Store min and max value for each band, along with the pixel where we've found the position.\n final double[] minMax = new Rescaler(\n Interpolation.create(new PixelIterator.Builder().setIteratorOrder(SequenceType.LINEAR).create(source), InterpolationCase.NEIGHBOR, 2), 0, 255).getMinMaxValue(null);\n\n // Compute transformation to apply on pixel values. We want to scale the pixel range in [0..255]\n final int numBands = srcModel.getNumComponents();\n double[] translation = new double[numBands];\n final double[] scale = new double[numBands];\n // Java 2D manage color scaling until ushort size. After that, current approach is totally wrong.\n for (int i = 0, j = 0; i < numBands; i++, j += 6) {\n final double min = 0, max;\n if (srcModel.getComponentSize(i) > 8) {\n max = 65532;\n } else {\n max = 255;\n }\n scale[i] = max / (minMax[j + 3] - minMax[j]);\n translation[i] = (min - minMax[j]) * scale[i];\n }\n\n /**\n * If just one of the bands is already scaled right, it might means that the entire image is right scaled, we\n * won't perform any operation.\n */\n boolean noOperationNeeded = false;\n final double scaleEpsilon = 0.05; // 5 % tolerence.\n final double translationTolerence = 1.0;\n for (int i = 0; i < scale.length; i++) {\n if ((scale[i] < 1.00 + scaleEpsilon && scale[i] > 1.00 - scaleEpsilon)\n && (translation[i] < translationTolerence && translation[i] > -translationTolerence)) {\n noOperationNeeded = true;\n break;\n }\n }\n\n if (noOperationNeeded) {\n return source;\n } else {\n\n final WritableRenderedImage destination;\n if (source instanceof WritableRenderedImage) {\n destination = (WritableRenderedImage) source;\n } else {\n destination = BufferedImages.createImage(source.getWidth(), source.getHeight(), source);\n }\n\n final PixelIterator pxIt = new PixelIterator.Builder().setIteratorOrder(SequenceType.LINEAR).create(source);\n final WritablePixelIterator wIt = new PixelIterator.Builder().setIteratorOrder(SequenceType.LINEAR).createWritable(destination);\n\n while (pxIt.next()) {\n wIt.next();\n for (int band = 0; band < numBands; band++) {\n wIt.setSample(band, pxIt.getSampleDouble(band) * scale[band] + translation[band]);\n }\n }\n return destination;\n }\n }", "public boolean equals (Object object) {\n\t\tif (object == null)\n\t\t\treturn false;\n\t\tif (object instanceof Photo) {\n\t\t\tPhoto newObject = (Photo) object;\n\t\t\tif (this.caption.equals(newObject.getCaption()) && this.filename.equals(newObject.getFilename())){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse \n\t\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof IdeaBookPhoto)) {\n return false;\n }\n IdeaBookPhoto other = (IdeaBookPhoto) object;\n if ((this.photoId == null && other.photoId != null) || (this.photoId != null && !this.photoId.equals(other.photoId))) {\n return false;\n }\n return true;\n }", "public abstract boolean equals(Object other);" ]
[ "0.68788207", "0.6646589", "0.6570937", "0.6533422", "0.6447082", "0.64442605", "0.6409419", "0.6376781", "0.63577956", "0.63329786", "0.63161427", "0.6301207", "0.62314683", "0.62241703", "0.6213459", "0.6136956", "0.60914475", "0.6067262", "0.6027984", "0.6008442", "0.6002219", "0.60006195", "0.59979963", "0.59874064", "0.59770614", "0.59233266", "0.59147096", "0.58885664", "0.58792067", "0.58785003", "0.58598995", "0.58576894", "0.5811956", "0.5799083", "0.5786417", "0.57675964", "0.5748807", "0.57478243", "0.574757", "0.5731727", "0.5731455", "0.57291806", "0.57278377", "0.57274204", "0.5718314", "0.5717796", "0.5707638", "0.5707608", "0.5698815", "0.56864965", "0.56821173", "0.5668907", "0.5665755", "0.5664096", "0.5664094", "0.56589127", "0.5652197", "0.565035", "0.56353384", "0.56266344", "0.56266344", "0.56260014", "0.561882", "0.56079644", "0.5600907", "0.55919653", "0.5587502", "0.5585593", "0.55846715", "0.5579496", "0.55790573", "0.55736965", "0.5570461", "0.55634284", "0.55448955", "0.5541022", "0.5537138", "0.5535987", "0.55270326", "0.5518623", "0.5516477", "0.5509915", "0.5502352", "0.5502143", "0.54987705", "0.5495555", "0.54955125", "0.5489356", "0.5484692", "0.54843736", "0.5484207", "0.5483192", "0.5480322", "0.5477881", "0.5468794", "0.5468726", "0.54684997", "0.5464013", "0.54634446", "0.5461994" ]
0.5476859
94
will test in setPosIntIntInt
@Test public void testGetChannel() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Buffer setInt(int pos, int i) {\n\t\treturn null;\r\n\t}", "int attrib_int(int i, int v) {\n if (i < maxpos) {\n AllPos[i] = v;\n } else {\n int[] temp = new int[maxpos];\n int j;\n for (j = 0; j < maxpos; j++) temp[j] = AllPos[j];\n AllPos = new int[maxpos + increasepos];\n for (j = 0; j < maxpos; j++) AllPos[j] = temp[j];\n maxpos = maxpos + increase;\n AllPos[i] = v;\n }\n return (0);\n }", "public int getPos();", "public int getPos();", "public void setPos(int pos);", "public void setPos(int pos);", "public final int getPos() { return i; }", "@Override\r\n\tpublic Buffer setUnsignedInt(int pos, long i) {\n\t\treturn null;\r\n\t}", "public void set(int pos);", "private MsoSmartArtNodePosition(int value) { this.value = value; }", "public void setX(int x){ xPosition = x; }", "int getPosition();", "public void setPosition(Integer position);", "protected void _setInt(int index, int value)\r\n/* 483: */ {\r\n/* 484:497 */ HeapByteBufUtil.setInt(this.array, index, value);\r\n/* 485: */ }", "public int PositionGet();", "public int getPosition();", "private void indexOfInt(Instruction o, Type index){\n\t\tif (! index.equals(Type.INT))\n\t\t\t\tconstraintViolated(o, \"The 'index' is not of type int but of type \"+index+\".\");\n\t}", "public boolean checkPosIntValues(TextField tempField) { //check if integer is positive\n \tString param = \"Nframes and N_reactions\";\n \treturn Values.checkPosIntValues(param, tempField);\n }", "public ByteBuf setInt(int index, int value)\r\n/* 289: */ {\r\n/* 290:304 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 291:305 */ return super.setInt(index, value);\r\n/* 292: */ }", "@Override\n\tpublic int getPos() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic int getInt(int arg) {\n\t\treturn 0;\r\n\t}", "public void PositionSet(int position);", "public void setPosition(int position);", "void setIdx(int i);", "public abstract int positionBonus();", "protected void _setIntLE(int index, int value)\r\n/* 495: */ {\r\n/* 496:509 */ HeapByteBufUtil.setIntLE(this.array, index, value);\r\n/* 497: */ }", "public Integer getPosition();", "public int getPosition(){\n return -1;\n }", "public void setIndx(int indx){\n this.indx = indx;\n }", "@Override\r\n\tpublic int getInt(int pos) {\n\t\treturn buffer.getInt(pos);\r\n\t}", "private final int initializeInt() {\n\t\treturn 0;\r\n\t}", "private void setMin(int min) { this.min = new SimplePosition(false,false,min); }", "public abstract int ranXPos();", "public void setValue(int param1Int) {\n/* 294 */ this.s.setValue(-param1Int);\n/* */ }", "public TextPos(boolean baseZero, int value) {\n if (baseZero) {\n this.value = value + 1;\n }\n else {\n this.value = value;\n }\n adjustLimits(NO_MAX_LIMIT);\n }", "public long getPos()\n\t{\n\t\treturn -1;\n\t}", "void selectpos()\n {\n \n }", "public void testMovToPos() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n assertTrue(test1.moveToPos(5));\n assertTrue(test1.getValue().inRange(5));\n assertFalse(test1.moveToPos(-5));\n assertFalse(test1.getValue().inRange(-5));\n assertFalse(test1.moveToPos(50));\n assertFalse(test1.getValue().inRange(50));\n }", "void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }", "void setInt(int index, int value) throws SQLException;", "public int getPos()\n {\n return pos;\n }", "@Override\n\tpublic int getPosition() {\n\t\treturn 0;\n\t}", "Integer getBPos();", "public void setX(int xPos){\t\t\n\t\tx = new Integer(xPos);\n\t}", "@Override\n\tpublic void posModify() {\n\t\t\n\t}", "@Override\n\tpublic void posModify() {\n\t\t\n\t}", "private static void setValueInt(int value)\n {\n Util.valueInt = value;\n }", "public void setIndex(int position) {\n/* 271 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public TextPos(int value) {\n this.value = value;\n adjustLimits(NO_MAX_LIMIT);\n }", "private void setInt(byte [] buffer, int offset, int value) {\r\n\t\tbuffer[offset++] = (byte)((value & 0xFF000000) >>> 24);\r\n\t\tbuffer[offset++] = (byte)((value & 0x00FF0000) >>> 16);\r\n\t\tbuffer[offset++] = (byte)((value & 0x0000FF00) >>> 8);\r\n\t\tbuffer[offset] = (byte)((value & 0x000000FF));\r\n\t}", "public void increaseStartPos(int num) {\r\n this.startPos += num;\r\n }", "protected final int computeSlot(int paramInt)\n/* */ {\n/* 149 */ return (paramInt * 517 & 0x7FFFFFFF) % this.m_flagTable.length;\n/* */ }", "public ByteBuf setIntLE(int index, int value)\r\n/* 799: */ {\r\n/* 800:808 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 801:809 */ return super.setIntLE(index, value);\r\n/* 802: */ }", "@Override\n public int intValue(int numId) {\n return 0;\n }", "public int getPos()\n {\n return pos;\n }", "public int getInputPositionIncrement () { return 1; }", "private int getInt(int location) {\n return intArray[location];\n }", "private void setEntryFieldInt(int item, OFFSET offset, int value) {\n assert item + offset.value >= 0;\n switch (offset) {\n case KEY_LENGTH:\n // OFFSET_KEY_LENGTH and OFFSET_KEY_BLOCK should be less then 16 bits long\n // *2 in order to get read of the signed vs unsigned limits\n assert value < Short.MAX_VALUE * 2;\n // set two low bytes of the key block id and length index\n entries[item + offset.value] =\n (entries[item + offset.value]) | (value & KEY_LENGTH_MASK);\n return;\n case KEY_BLOCK:\n // OFFSET_KEY_LENGTH and OFFSET_KEY_BLOCK should be less then 16 bits long\n // *2 in order to get read of the signed vs unsigned limits\n assert value < Short.MAX_VALUE * 2;\n // offset must be OFFSET_KEY_BLOCK,\n // set 2 high bytes of the int inside OFFSET_KEY_LENGTH\n assert value > 0; // block id can never be 0\n entries[item + offset.value] =\n (entries[item + offset.value]) | (value << KEY_BLOCK_SHIFT);\n return;\n case VALUE_LENGTH:\n // make sure the length is at most 2^23 and at least 0\n assert (value & VALUE_LENGTH_MASK) == value;\n entries[item + offset.value] =\n (entries[item + offset.value]) | (value & VALUE_LENGTH_MASK);\n return;\n case VALUE_BLOCK:\n assert value > 0; // block id can never be 0\n assert ((value << VALUE_BLOCK_SHIFT) >>> VALUE_BLOCK_SHIFT) == value; // value is up to 2^9\n entries[item + offset.value] =\n (entries[item + offset.value]) | (value << VALUE_BLOCK_SHIFT);\n return;\n default:\n entries[item + offset.value] = value;\n }\n }", "@Override\n\t/**\n\t * sets the position of the class\n\t * \n\t * @param i\n\t */\n\tpublic void setPosition(int i) {\n\t\tposition = i;\n\t}", "public void setPositionRow(int value){this.positionRow = value;}", "@Override\r\n public int intValue() {\r\n return (int) this.m_current;\r\n }", "private void setComponentsOfIndex() {\n\t\tint t = this.numbersIdex + 1;\n\t\tif (t == NUMBEROFEACHCARD) {\n\t\t\tthis.numbersIdex = 0;\n\t\t\tsetColorIndex();\n\t\t} else {\n\t\t\tthis.numbersIdex = t;\n\t\t}\n\t}", "protected void setMove(int _move)\t\t{\tmove = _move;\t\t}", "public ByteBuf setInt(int index, int value)\r\n/* 476: */ {\r\n/* 477:490 */ ensureAccessible();\r\n/* 478:491 */ _setInt(index, value);\r\n/* 479:492 */ return this;\r\n/* 480: */ }", "@Override\n\tpublic void moveset(int num) {\n\n\t}", "static int fixIndex(int i)\r\n {\r\n return i >= 0 ? i : -(i + 1);\r\n }", "@Override\n public void setValueAt(java.lang.Object arg0, int arg1, int arg2) {\n\n }", "@Override\n public void setValueAt(java.lang.Object arg0, int arg1, int arg2) {\n\n }", "protected final int internalFind(int paramInt)\n/* */ {\n/* 200 */ int i = computeSlot(paramInt);\n/* 201 */ while (this.m_flagTable[i] != false) {\n/* 202 */ if (paramInt == this.m_keyTable[i]) {\n/* 203 */ return i;\n/* */ }\n/* 205 */ i = stepSlot(i);\n/* */ }\n/* 207 */ return -i - 1;\n/* */ }", "public void SetPosition(int i)\n {\n SetPosition(i, 1.0);\n }", "static int setBit(int num, int pos) {\n\t\t\treturn num | (1<<pos);\n\t\t}", "public int getInt(int index)\r\n/* 372: */ {\r\n/* 373:386 */ ensureAccessible();\r\n/* 374:387 */ return _getInt(index);\r\n/* 375: */ }", "public int getX(){ return xPosition; }", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "public abstract void setInteger(int value);", "public void setPosition(){\r\n currentPosition = 0; \r\n }", "private int newCursorPosition(int count) {\n int newCursorPosition = cursorPosition + count;\n if (((cursorPosition ^ newCursorPosition) & (count ^ newCursorPosition)) < 0) {\n return Integer.MAX_VALUE;\n } else {\n return newCursorPosition;\n }\n }", "private void set_position(int pos[])\r\n\t{\r\n\t\tthis.position = pos;\r\n\t}", "public void setCoordinates(int pos){\n if(this.pIndex<2){\n this.coordinates[0]=TILE_SIZE*15-DICE_SIZE-pos;}\n else{\n this.coordinates[0]=pos;}\n if(this.pIndex%3==0){\n this.coordinates[1]=pos;}\n else{\n this.coordinates[1]=TILE_SIZE*15-DICE_SIZE-pos;}\n }", "@Test\n\tpublic void testInt2() {\n\t\tTextField intText = new TextField(\"-23\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}", "public void initPos(){\r\n for (int i=0; i< MAX_LENGTH; i++){\r\n pos[i] = i;\r\n }\r\n }", "@Override\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\n\t}", "@Override\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\n\t}", "public int positionHint() {\n\t\treturn 101;\n\t}", "@Override\n public long getPosition() {\n return startPosition + super.getPosition();\n }", "@Override\n public int getPosition() {\n return position;\n }", "void locate(int pos, int [] ind)\n\t{\n\t\tind[0] = (int) pos / dimy; // x\n\t\tind[1] = pos % dimy; // y\t\n\t}", "private void int_to_int_step( ExpressionNode nd, VMState vms ) {\n Assert.check( vms.top().at( nd ) == null ) ;\r\n \r\n // Clear the selection\r\n vms.top().setSelected( null ) ;\r\n \r\n // Get the operand value\r\n long x = getIntOperand( nd, vms, 0 ) ;\r\n \r\n // Compute the value\r\n Assert.check( op_code == IABS ) ;\r\n long value = x < 0 ? -x : x ;\r\n \r\n putIntResult(nd, vms, value ) ;\r\n }", "public void setPosicion(int posicion){\n _posicion = posicion;\n }", "void setX(int newX) {\n this.xPos = newX;\n }", "private int calcIndexTemplet0(int overPos, boolean isStart, int result) {\n // Start index\n if (isStart) {\n if (overPos < mItemHeight * 2) {\n result = 1;\n } else {\n result = 4;\n }\n }\n // End index\n else {\n if (overPos < mItemHeight) {\n result = 2;\n } else if (overPos < mItemHeight * 2) {\n result = 3;\n } else {\n result = 6;\n }\n }\n\n return result;\n }", "protected final int getRawOffset(int paramInt, char paramChar) {\n/* 264 */ return (this.m_index_[paramInt + (paramChar >> 5)] << 2) + (paramChar & 0x1F);\n/* */ }", "public int getPosition() {\n\treturn (_current);\n }", "void set(int idx, int val);", "protected int[] pos(int raster, int[] pos) {\n return FormatTools.rasterToPosition(lengths, raster, pos);\n }", "protected int getPositionIndex(int position) {\n return (position - startPosition);\n }", "@Override\n public int getPosition() throws IOException\n {\n return (int) randomAccessRead.getPosition();\n }", "@Override public boolean set_impl(int idx, long l) { return false; }", "public int getPosition(int index);", "public int getInteger(int pos) {\n return Tuples.toInteger(getObject(pos));\n }" ]
[ "0.7026881", "0.65502816", "0.6524994", "0.6524994", "0.6470123", "0.6470123", "0.64345783", "0.6430832", "0.63550556", "0.63134027", "0.61801624", "0.61716014", "0.61523527", "0.60919607", "0.6091051", "0.60815835", "0.6070535", "0.6045709", "0.6037698", "0.6021377", "0.60204124", "0.59992677", "0.5983982", "0.5978514", "0.59748304", "0.59521353", "0.5945793", "0.5943355", "0.59304607", "0.59160304", "0.59139234", "0.59058726", "0.5888356", "0.5870524", "0.5860315", "0.58424145", "0.5829093", "0.58243537", "0.58213127", "0.58149815", "0.58146894", "0.5791752", "0.5786517", "0.5777161", "0.5775475", "0.5775475", "0.57737863", "0.5753734", "0.57483894", "0.5747556", "0.5746832", "0.5735071", "0.57248473", "0.57191676", "0.5705629", "0.57050216", "0.5701993", "0.5695602", "0.56750727", "0.5673069", "0.56486917", "0.56412226", "0.56384647", "0.56347513", "0.56296724", "0.56269944", "0.5624666", "0.5624666", "0.56209034", "0.55984324", "0.55968595", "0.5585815", "0.55797994", "0.5577452", "0.5577452", "0.557343", "0.5571195", "0.556027", "0.5556426", "0.5553367", "0.55526674", "0.5551282", "0.55459195", "0.55459195", "0.55425596", "0.553521", "0.5533449", "0.55188656", "0.5496312", "0.54929656", "0.54893446", "0.54874706", "0.5482446", "0.54799503", "0.5476398", "0.54734725", "0.54702556", "0.5463872", "0.5460508", "0.5457784", "0.54562414" ]
0.0
-1
will test in setPosIntIntInt
@Test public void testGetSlice() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Buffer setInt(int pos, int i) {\n\t\treturn null;\r\n\t}", "int attrib_int(int i, int v) {\n if (i < maxpos) {\n AllPos[i] = v;\n } else {\n int[] temp = new int[maxpos];\n int j;\n for (j = 0; j < maxpos; j++) temp[j] = AllPos[j];\n AllPos = new int[maxpos + increasepos];\n for (j = 0; j < maxpos; j++) AllPos[j] = temp[j];\n maxpos = maxpos + increase;\n AllPos[i] = v;\n }\n return (0);\n }", "public int getPos();", "public int getPos();", "public void setPos(int pos);", "public void setPos(int pos);", "public final int getPos() { return i; }", "@Override\r\n\tpublic Buffer setUnsignedInt(int pos, long i) {\n\t\treturn null;\r\n\t}", "public void set(int pos);", "private MsoSmartArtNodePosition(int value) { this.value = value; }", "public void setX(int x){ xPosition = x; }", "int getPosition();", "public void setPosition(Integer position);", "protected void _setInt(int index, int value)\r\n/* 483: */ {\r\n/* 484:497 */ HeapByteBufUtil.setInt(this.array, index, value);\r\n/* 485: */ }", "public int PositionGet();", "public int getPosition();", "private void indexOfInt(Instruction o, Type index){\n\t\tif (! index.equals(Type.INT))\n\t\t\t\tconstraintViolated(o, \"The 'index' is not of type int but of type \"+index+\".\");\n\t}", "public boolean checkPosIntValues(TextField tempField) { //check if integer is positive\n \tString param = \"Nframes and N_reactions\";\n \treturn Values.checkPosIntValues(param, tempField);\n }", "public ByteBuf setInt(int index, int value)\r\n/* 289: */ {\r\n/* 290:304 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 291:305 */ return super.setInt(index, value);\r\n/* 292: */ }", "@Override\n\tpublic int getPos() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic int getInt(int arg) {\n\t\treturn 0;\r\n\t}", "public void PositionSet(int position);", "public void setPosition(int position);", "void setIdx(int i);", "public abstract int positionBonus();", "protected void _setIntLE(int index, int value)\r\n/* 495: */ {\r\n/* 496:509 */ HeapByteBufUtil.setIntLE(this.array, index, value);\r\n/* 497: */ }", "public Integer getPosition();", "public int getPosition(){\n return -1;\n }", "public void setIndx(int indx){\n this.indx = indx;\n }", "@Override\r\n\tpublic int getInt(int pos) {\n\t\treturn buffer.getInt(pos);\r\n\t}", "private final int initializeInt() {\n\t\treturn 0;\r\n\t}", "private void setMin(int min) { this.min = new SimplePosition(false,false,min); }", "public abstract int ranXPos();", "public void setValue(int param1Int) {\n/* 294 */ this.s.setValue(-param1Int);\n/* */ }", "public TextPos(boolean baseZero, int value) {\n if (baseZero) {\n this.value = value + 1;\n }\n else {\n this.value = value;\n }\n adjustLimits(NO_MAX_LIMIT);\n }", "public long getPos()\n\t{\n\t\treturn -1;\n\t}", "void selectpos()\n {\n \n }", "public void testMovToPos() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n assertTrue(test1.moveToPos(5));\n assertTrue(test1.getValue().inRange(5));\n assertFalse(test1.moveToPos(-5));\n assertFalse(test1.getValue().inRange(-5));\n assertFalse(test1.moveToPos(50));\n assertFalse(test1.getValue().inRange(50));\n }", "void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }", "void setInt(int index, int value) throws SQLException;", "public int getPos()\n {\n return pos;\n }", "@Override\n\tpublic int getPosition() {\n\t\treturn 0;\n\t}", "Integer getBPos();", "public void setX(int xPos){\t\t\n\t\tx = new Integer(xPos);\n\t}", "@Override\n\tpublic void posModify() {\n\t\t\n\t}", "@Override\n\tpublic void posModify() {\n\t\t\n\t}", "private static void setValueInt(int value)\n {\n Util.valueInt = value;\n }", "public void setIndex(int position) {\n/* 271 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public TextPos(int value) {\n this.value = value;\n adjustLimits(NO_MAX_LIMIT);\n }", "private void setInt(byte [] buffer, int offset, int value) {\r\n\t\tbuffer[offset++] = (byte)((value & 0xFF000000) >>> 24);\r\n\t\tbuffer[offset++] = (byte)((value & 0x00FF0000) >>> 16);\r\n\t\tbuffer[offset++] = (byte)((value & 0x0000FF00) >>> 8);\r\n\t\tbuffer[offset] = (byte)((value & 0x000000FF));\r\n\t}", "public void increaseStartPos(int num) {\r\n this.startPos += num;\r\n }", "protected final int computeSlot(int paramInt)\n/* */ {\n/* 149 */ return (paramInt * 517 & 0x7FFFFFFF) % this.m_flagTable.length;\n/* */ }", "public ByteBuf setIntLE(int index, int value)\r\n/* 799: */ {\r\n/* 800:808 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 801:809 */ return super.setIntLE(index, value);\r\n/* 802: */ }", "@Override\n public int intValue(int numId) {\n return 0;\n }", "public int getPos()\n {\n return pos;\n }", "public int getInputPositionIncrement () { return 1; }", "private int getInt(int location) {\n return intArray[location];\n }", "private void setEntryFieldInt(int item, OFFSET offset, int value) {\n assert item + offset.value >= 0;\n switch (offset) {\n case KEY_LENGTH:\n // OFFSET_KEY_LENGTH and OFFSET_KEY_BLOCK should be less then 16 bits long\n // *2 in order to get read of the signed vs unsigned limits\n assert value < Short.MAX_VALUE * 2;\n // set two low bytes of the key block id and length index\n entries[item + offset.value] =\n (entries[item + offset.value]) | (value & KEY_LENGTH_MASK);\n return;\n case KEY_BLOCK:\n // OFFSET_KEY_LENGTH and OFFSET_KEY_BLOCK should be less then 16 bits long\n // *2 in order to get read of the signed vs unsigned limits\n assert value < Short.MAX_VALUE * 2;\n // offset must be OFFSET_KEY_BLOCK,\n // set 2 high bytes of the int inside OFFSET_KEY_LENGTH\n assert value > 0; // block id can never be 0\n entries[item + offset.value] =\n (entries[item + offset.value]) | (value << KEY_BLOCK_SHIFT);\n return;\n case VALUE_LENGTH:\n // make sure the length is at most 2^23 and at least 0\n assert (value & VALUE_LENGTH_MASK) == value;\n entries[item + offset.value] =\n (entries[item + offset.value]) | (value & VALUE_LENGTH_MASK);\n return;\n case VALUE_BLOCK:\n assert value > 0; // block id can never be 0\n assert ((value << VALUE_BLOCK_SHIFT) >>> VALUE_BLOCK_SHIFT) == value; // value is up to 2^9\n entries[item + offset.value] =\n (entries[item + offset.value]) | (value << VALUE_BLOCK_SHIFT);\n return;\n default:\n entries[item + offset.value] = value;\n }\n }", "@Override\n\t/**\n\t * sets the position of the class\n\t * \n\t * @param i\n\t */\n\tpublic void setPosition(int i) {\n\t\tposition = i;\n\t}", "public void setPositionRow(int value){this.positionRow = value;}", "@Override\r\n public int intValue() {\r\n return (int) this.m_current;\r\n }", "private void setComponentsOfIndex() {\n\t\tint t = this.numbersIdex + 1;\n\t\tif (t == NUMBEROFEACHCARD) {\n\t\t\tthis.numbersIdex = 0;\n\t\t\tsetColorIndex();\n\t\t} else {\n\t\t\tthis.numbersIdex = t;\n\t\t}\n\t}", "protected void setMove(int _move)\t\t{\tmove = _move;\t\t}", "public ByteBuf setInt(int index, int value)\r\n/* 476: */ {\r\n/* 477:490 */ ensureAccessible();\r\n/* 478:491 */ _setInt(index, value);\r\n/* 479:492 */ return this;\r\n/* 480: */ }", "@Override\n\tpublic void moveset(int num) {\n\n\t}", "static int fixIndex(int i)\r\n {\r\n return i >= 0 ? i : -(i + 1);\r\n }", "@Override\n public void setValueAt(java.lang.Object arg0, int arg1, int arg2) {\n\n }", "@Override\n public void setValueAt(java.lang.Object arg0, int arg1, int arg2) {\n\n }", "protected final int internalFind(int paramInt)\n/* */ {\n/* 200 */ int i = computeSlot(paramInt);\n/* 201 */ while (this.m_flagTable[i] != false) {\n/* 202 */ if (paramInt == this.m_keyTable[i]) {\n/* 203 */ return i;\n/* */ }\n/* 205 */ i = stepSlot(i);\n/* */ }\n/* 207 */ return -i - 1;\n/* */ }", "public void SetPosition(int i)\n {\n SetPosition(i, 1.0);\n }", "static int setBit(int num, int pos) {\n\t\t\treturn num | (1<<pos);\n\t\t}", "public int getInt(int index)\r\n/* 372: */ {\r\n/* 373:386 */ ensureAccessible();\r\n/* 374:387 */ return _getInt(index);\r\n/* 375: */ }", "public int getX(){ return xPosition; }", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "public abstract void setInteger(int value);", "public void setPosition(){\r\n currentPosition = 0; \r\n }", "private int newCursorPosition(int count) {\n int newCursorPosition = cursorPosition + count;\n if (((cursorPosition ^ newCursorPosition) & (count ^ newCursorPosition)) < 0) {\n return Integer.MAX_VALUE;\n } else {\n return newCursorPosition;\n }\n }", "private void set_position(int pos[])\r\n\t{\r\n\t\tthis.position = pos;\r\n\t}", "public void setCoordinates(int pos){\n if(this.pIndex<2){\n this.coordinates[0]=TILE_SIZE*15-DICE_SIZE-pos;}\n else{\n this.coordinates[0]=pos;}\n if(this.pIndex%3==0){\n this.coordinates[1]=pos;}\n else{\n this.coordinates[1]=TILE_SIZE*15-DICE_SIZE-pos;}\n }", "@Test\n\tpublic void testInt2() {\n\t\tTextField intText = new TextField(\"-23\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}", "public void initPos(){\r\n for (int i=0; i< MAX_LENGTH; i++){\r\n pos[i] = i;\r\n }\r\n }", "@Override\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\n\t}", "@Override\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\n\t}", "public int positionHint() {\n\t\treturn 101;\n\t}", "@Override\n public long getPosition() {\n return startPosition + super.getPosition();\n }", "@Override\n public int getPosition() {\n return position;\n }", "void locate(int pos, int [] ind)\n\t{\n\t\tind[0] = (int) pos / dimy; // x\n\t\tind[1] = pos % dimy; // y\t\n\t}", "private void int_to_int_step( ExpressionNode nd, VMState vms ) {\n Assert.check( vms.top().at( nd ) == null ) ;\r\n \r\n // Clear the selection\r\n vms.top().setSelected( null ) ;\r\n \r\n // Get the operand value\r\n long x = getIntOperand( nd, vms, 0 ) ;\r\n \r\n // Compute the value\r\n Assert.check( op_code == IABS ) ;\r\n long value = x < 0 ? -x : x ;\r\n \r\n putIntResult(nd, vms, value ) ;\r\n }", "public void setPosicion(int posicion){\n _posicion = posicion;\n }", "void setX(int newX) {\n this.xPos = newX;\n }", "private int calcIndexTemplet0(int overPos, boolean isStart, int result) {\n // Start index\n if (isStart) {\n if (overPos < mItemHeight * 2) {\n result = 1;\n } else {\n result = 4;\n }\n }\n // End index\n else {\n if (overPos < mItemHeight) {\n result = 2;\n } else if (overPos < mItemHeight * 2) {\n result = 3;\n } else {\n result = 6;\n }\n }\n\n return result;\n }", "protected final int getRawOffset(int paramInt, char paramChar) {\n/* 264 */ return (this.m_index_[paramInt + (paramChar >> 5)] << 2) + (paramChar & 0x1F);\n/* */ }", "public int getPosition() {\n\treturn (_current);\n }", "void set(int idx, int val);", "protected int[] pos(int raster, int[] pos) {\n return FormatTools.rasterToPosition(lengths, raster, pos);\n }", "protected int getPositionIndex(int position) {\n return (position - startPosition);\n }", "@Override\n public int getPosition() throws IOException\n {\n return (int) randomAccessRead.getPosition();\n }", "@Override public boolean set_impl(int idx, long l) { return false; }", "public int getPosition(int index);", "public int getInteger(int pos) {\n return Tuples.toInteger(getObject(pos));\n }" ]
[ "0.7026881", "0.65502816", "0.6524994", "0.6524994", "0.6470123", "0.6470123", "0.64345783", "0.6430832", "0.63550556", "0.63134027", "0.61801624", "0.61716014", "0.61523527", "0.60919607", "0.6091051", "0.60815835", "0.6070535", "0.6045709", "0.6037698", "0.6021377", "0.60204124", "0.59992677", "0.5983982", "0.5978514", "0.59748304", "0.59521353", "0.5945793", "0.5943355", "0.59304607", "0.59160304", "0.59139234", "0.59058726", "0.5888356", "0.5870524", "0.5860315", "0.58424145", "0.5829093", "0.58243537", "0.58213127", "0.58149815", "0.58146894", "0.5791752", "0.5786517", "0.5777161", "0.5775475", "0.5775475", "0.57737863", "0.5753734", "0.57483894", "0.5747556", "0.5746832", "0.5735071", "0.57248473", "0.57191676", "0.5705629", "0.57050216", "0.5701993", "0.5695602", "0.56750727", "0.5673069", "0.56486917", "0.56412226", "0.56384647", "0.56347513", "0.56296724", "0.56269944", "0.5624666", "0.5624666", "0.56209034", "0.55984324", "0.55968595", "0.5585815", "0.55797994", "0.5577452", "0.5577452", "0.557343", "0.5571195", "0.556027", "0.5556426", "0.5553367", "0.55526674", "0.5551282", "0.55459195", "0.55459195", "0.55425596", "0.553521", "0.5533449", "0.55188656", "0.5496312", "0.54929656", "0.54893446", "0.54874706", "0.5482446", "0.54799503", "0.5476398", "0.54734725", "0.54702556", "0.5463872", "0.5460508", "0.5457784", "0.54562414" ]
0.0
-1
will test in setPosIntIntInt
@Test public void testGetFrame() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Buffer setInt(int pos, int i) {\n\t\treturn null;\r\n\t}", "int attrib_int(int i, int v) {\n if (i < maxpos) {\n AllPos[i] = v;\n } else {\n int[] temp = new int[maxpos];\n int j;\n for (j = 0; j < maxpos; j++) temp[j] = AllPos[j];\n AllPos = new int[maxpos + increasepos];\n for (j = 0; j < maxpos; j++) AllPos[j] = temp[j];\n maxpos = maxpos + increase;\n AllPos[i] = v;\n }\n return (0);\n }", "public int getPos();", "public int getPos();", "public void setPos(int pos);", "public void setPos(int pos);", "public final int getPos() { return i; }", "@Override\r\n\tpublic Buffer setUnsignedInt(int pos, long i) {\n\t\treturn null;\r\n\t}", "public void set(int pos);", "private MsoSmartArtNodePosition(int value) { this.value = value; }", "public void setX(int x){ xPosition = x; }", "int getPosition();", "public void setPosition(Integer position);", "protected void _setInt(int index, int value)\r\n/* 483: */ {\r\n/* 484:497 */ HeapByteBufUtil.setInt(this.array, index, value);\r\n/* 485: */ }", "public int PositionGet();", "public int getPosition();", "private void indexOfInt(Instruction o, Type index){\n\t\tif (! index.equals(Type.INT))\n\t\t\t\tconstraintViolated(o, \"The 'index' is not of type int but of type \"+index+\".\");\n\t}", "public boolean checkPosIntValues(TextField tempField) { //check if integer is positive\n \tString param = \"Nframes and N_reactions\";\n \treturn Values.checkPosIntValues(param, tempField);\n }", "public ByteBuf setInt(int index, int value)\r\n/* 289: */ {\r\n/* 290:304 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 291:305 */ return super.setInt(index, value);\r\n/* 292: */ }", "@Override\n\tpublic int getPos() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic int getInt(int arg) {\n\t\treturn 0;\r\n\t}", "public void PositionSet(int position);", "public void setPosition(int position);", "void setIdx(int i);", "public abstract int positionBonus();", "protected void _setIntLE(int index, int value)\r\n/* 495: */ {\r\n/* 496:509 */ HeapByteBufUtil.setIntLE(this.array, index, value);\r\n/* 497: */ }", "public Integer getPosition();", "public int getPosition(){\n return -1;\n }", "public void setIndx(int indx){\n this.indx = indx;\n }", "@Override\r\n\tpublic int getInt(int pos) {\n\t\treturn buffer.getInt(pos);\r\n\t}", "private final int initializeInt() {\n\t\treturn 0;\r\n\t}", "private void setMin(int min) { this.min = new SimplePosition(false,false,min); }", "public abstract int ranXPos();", "public void setValue(int param1Int) {\n/* 294 */ this.s.setValue(-param1Int);\n/* */ }", "public TextPos(boolean baseZero, int value) {\n if (baseZero) {\n this.value = value + 1;\n }\n else {\n this.value = value;\n }\n adjustLimits(NO_MAX_LIMIT);\n }", "public long getPos()\n\t{\n\t\treturn -1;\n\t}", "void selectpos()\n {\n \n }", "public void testMovToPos() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n assertTrue(test1.moveToPos(5));\n assertTrue(test1.getValue().inRange(5));\n assertFalse(test1.moveToPos(-5));\n assertFalse(test1.getValue().inRange(-5));\n assertFalse(test1.moveToPos(50));\n assertFalse(test1.getValue().inRange(50));\n }", "void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }", "void setInt(int index, int value) throws SQLException;", "public int getPos()\n {\n return pos;\n }", "@Override\n\tpublic int getPosition() {\n\t\treturn 0;\n\t}", "Integer getBPos();", "public void setX(int xPos){\t\t\n\t\tx = new Integer(xPos);\n\t}", "@Override\n\tpublic void posModify() {\n\t\t\n\t}", "@Override\n\tpublic void posModify() {\n\t\t\n\t}", "private static void setValueInt(int value)\n {\n Util.valueInt = value;\n }", "public void setIndex(int position) {\n/* 271 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public TextPos(int value) {\n this.value = value;\n adjustLimits(NO_MAX_LIMIT);\n }", "private void setInt(byte [] buffer, int offset, int value) {\r\n\t\tbuffer[offset++] = (byte)((value & 0xFF000000) >>> 24);\r\n\t\tbuffer[offset++] = (byte)((value & 0x00FF0000) >>> 16);\r\n\t\tbuffer[offset++] = (byte)((value & 0x0000FF00) >>> 8);\r\n\t\tbuffer[offset] = (byte)((value & 0x000000FF));\r\n\t}", "public void increaseStartPos(int num) {\r\n this.startPos += num;\r\n }", "protected final int computeSlot(int paramInt)\n/* */ {\n/* 149 */ return (paramInt * 517 & 0x7FFFFFFF) % this.m_flagTable.length;\n/* */ }", "public ByteBuf setIntLE(int index, int value)\r\n/* 799: */ {\r\n/* 800:808 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 801:809 */ return super.setIntLE(index, value);\r\n/* 802: */ }", "@Override\n public int intValue(int numId) {\n return 0;\n }", "public int getPos()\n {\n return pos;\n }", "public int getInputPositionIncrement () { return 1; }", "private int getInt(int location) {\n return intArray[location];\n }", "private void setEntryFieldInt(int item, OFFSET offset, int value) {\n assert item + offset.value >= 0;\n switch (offset) {\n case KEY_LENGTH:\n // OFFSET_KEY_LENGTH and OFFSET_KEY_BLOCK should be less then 16 bits long\n // *2 in order to get read of the signed vs unsigned limits\n assert value < Short.MAX_VALUE * 2;\n // set two low bytes of the key block id and length index\n entries[item + offset.value] =\n (entries[item + offset.value]) | (value & KEY_LENGTH_MASK);\n return;\n case KEY_BLOCK:\n // OFFSET_KEY_LENGTH and OFFSET_KEY_BLOCK should be less then 16 bits long\n // *2 in order to get read of the signed vs unsigned limits\n assert value < Short.MAX_VALUE * 2;\n // offset must be OFFSET_KEY_BLOCK,\n // set 2 high bytes of the int inside OFFSET_KEY_LENGTH\n assert value > 0; // block id can never be 0\n entries[item + offset.value] =\n (entries[item + offset.value]) | (value << KEY_BLOCK_SHIFT);\n return;\n case VALUE_LENGTH:\n // make sure the length is at most 2^23 and at least 0\n assert (value & VALUE_LENGTH_MASK) == value;\n entries[item + offset.value] =\n (entries[item + offset.value]) | (value & VALUE_LENGTH_MASK);\n return;\n case VALUE_BLOCK:\n assert value > 0; // block id can never be 0\n assert ((value << VALUE_BLOCK_SHIFT) >>> VALUE_BLOCK_SHIFT) == value; // value is up to 2^9\n entries[item + offset.value] =\n (entries[item + offset.value]) | (value << VALUE_BLOCK_SHIFT);\n return;\n default:\n entries[item + offset.value] = value;\n }\n }", "@Override\n\t/**\n\t * sets the position of the class\n\t * \n\t * @param i\n\t */\n\tpublic void setPosition(int i) {\n\t\tposition = i;\n\t}", "public void setPositionRow(int value){this.positionRow = value;}", "@Override\r\n public int intValue() {\r\n return (int) this.m_current;\r\n }", "private void setComponentsOfIndex() {\n\t\tint t = this.numbersIdex + 1;\n\t\tif (t == NUMBEROFEACHCARD) {\n\t\t\tthis.numbersIdex = 0;\n\t\t\tsetColorIndex();\n\t\t} else {\n\t\t\tthis.numbersIdex = t;\n\t\t}\n\t}", "protected void setMove(int _move)\t\t{\tmove = _move;\t\t}", "public ByteBuf setInt(int index, int value)\r\n/* 476: */ {\r\n/* 477:490 */ ensureAccessible();\r\n/* 478:491 */ _setInt(index, value);\r\n/* 479:492 */ return this;\r\n/* 480: */ }", "@Override\n\tpublic void moveset(int num) {\n\n\t}", "static int fixIndex(int i)\r\n {\r\n return i >= 0 ? i : -(i + 1);\r\n }", "@Override\n public void setValueAt(java.lang.Object arg0, int arg1, int arg2) {\n\n }", "@Override\n public void setValueAt(java.lang.Object arg0, int arg1, int arg2) {\n\n }", "protected final int internalFind(int paramInt)\n/* */ {\n/* 200 */ int i = computeSlot(paramInt);\n/* 201 */ while (this.m_flagTable[i] != false) {\n/* 202 */ if (paramInt == this.m_keyTable[i]) {\n/* 203 */ return i;\n/* */ }\n/* 205 */ i = stepSlot(i);\n/* */ }\n/* 207 */ return -i - 1;\n/* */ }", "public void SetPosition(int i)\n {\n SetPosition(i, 1.0);\n }", "static int setBit(int num, int pos) {\n\t\t\treturn num | (1<<pos);\n\t\t}", "public int getInt(int index)\r\n/* 372: */ {\r\n/* 373:386 */ ensureAccessible();\r\n/* 374:387 */ return _getInt(index);\r\n/* 375: */ }", "public int getX(){ return xPosition; }", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "public abstract void setInteger(int value);", "public void setPosition(){\r\n currentPosition = 0; \r\n }", "private int newCursorPosition(int count) {\n int newCursorPosition = cursorPosition + count;\n if (((cursorPosition ^ newCursorPosition) & (count ^ newCursorPosition)) < 0) {\n return Integer.MAX_VALUE;\n } else {\n return newCursorPosition;\n }\n }", "private void set_position(int pos[])\r\n\t{\r\n\t\tthis.position = pos;\r\n\t}", "public void setCoordinates(int pos){\n if(this.pIndex<2){\n this.coordinates[0]=TILE_SIZE*15-DICE_SIZE-pos;}\n else{\n this.coordinates[0]=pos;}\n if(this.pIndex%3==0){\n this.coordinates[1]=pos;}\n else{\n this.coordinates[1]=TILE_SIZE*15-DICE_SIZE-pos;}\n }", "@Test\n\tpublic void testInt2() {\n\t\tTextField intText = new TextField(\"-23\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}", "public void initPos(){\r\n for (int i=0; i< MAX_LENGTH; i++){\r\n pos[i] = i;\r\n }\r\n }", "@Override\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\n\t}", "@Override\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\n\t}", "public int positionHint() {\n\t\treturn 101;\n\t}", "@Override\n public long getPosition() {\n return startPosition + super.getPosition();\n }", "@Override\n public int getPosition() {\n return position;\n }", "void locate(int pos, int [] ind)\n\t{\n\t\tind[0] = (int) pos / dimy; // x\n\t\tind[1] = pos % dimy; // y\t\n\t}", "private void int_to_int_step( ExpressionNode nd, VMState vms ) {\n Assert.check( vms.top().at( nd ) == null ) ;\r\n \r\n // Clear the selection\r\n vms.top().setSelected( null ) ;\r\n \r\n // Get the operand value\r\n long x = getIntOperand( nd, vms, 0 ) ;\r\n \r\n // Compute the value\r\n Assert.check( op_code == IABS ) ;\r\n long value = x < 0 ? -x : x ;\r\n \r\n putIntResult(nd, vms, value ) ;\r\n }", "public void setPosicion(int posicion){\n _posicion = posicion;\n }", "void setX(int newX) {\n this.xPos = newX;\n }", "private int calcIndexTemplet0(int overPos, boolean isStart, int result) {\n // Start index\n if (isStart) {\n if (overPos < mItemHeight * 2) {\n result = 1;\n } else {\n result = 4;\n }\n }\n // End index\n else {\n if (overPos < mItemHeight) {\n result = 2;\n } else if (overPos < mItemHeight * 2) {\n result = 3;\n } else {\n result = 6;\n }\n }\n\n return result;\n }", "protected final int getRawOffset(int paramInt, char paramChar) {\n/* 264 */ return (this.m_index_[paramInt + (paramChar >> 5)] << 2) + (paramChar & 0x1F);\n/* */ }", "public int getPosition() {\n\treturn (_current);\n }", "void set(int idx, int val);", "protected int[] pos(int raster, int[] pos) {\n return FormatTools.rasterToPosition(lengths, raster, pos);\n }", "protected int getPositionIndex(int position) {\n return (position - startPosition);\n }", "@Override\n public int getPosition() throws IOException\n {\n return (int) randomAccessRead.getPosition();\n }", "@Override public boolean set_impl(int idx, long l) { return false; }", "public int getPosition(int index);", "public int getInteger(int pos) {\n return Tuples.toInteger(getObject(pos));\n }" ]
[ "0.7026881", "0.65502816", "0.6524994", "0.6524994", "0.6470123", "0.6470123", "0.64345783", "0.6430832", "0.63550556", "0.63134027", "0.61801624", "0.61716014", "0.61523527", "0.60919607", "0.6091051", "0.60815835", "0.6070535", "0.6045709", "0.6037698", "0.6021377", "0.60204124", "0.59992677", "0.5983982", "0.5978514", "0.59748304", "0.59521353", "0.5945793", "0.5943355", "0.59304607", "0.59160304", "0.59139234", "0.59058726", "0.5888356", "0.5870524", "0.5860315", "0.58424145", "0.5829093", "0.58243537", "0.58213127", "0.58149815", "0.58146894", "0.5791752", "0.5786517", "0.5777161", "0.5775475", "0.5775475", "0.57737863", "0.5753734", "0.57483894", "0.5747556", "0.5746832", "0.5735071", "0.57248473", "0.57191676", "0.5705629", "0.57050216", "0.5701993", "0.5695602", "0.56750727", "0.5673069", "0.56486917", "0.56412226", "0.56384647", "0.56347513", "0.56296724", "0.56269944", "0.5624666", "0.5624666", "0.56209034", "0.55984324", "0.55968595", "0.5585815", "0.55797994", "0.5577452", "0.5577452", "0.557343", "0.5571195", "0.556027", "0.5556426", "0.5553367", "0.55526674", "0.5551282", "0.55459195", "0.55459195", "0.55425596", "0.553521", "0.5533449", "0.55188656", "0.5496312", "0.54929656", "0.54893446", "0.54874706", "0.5482446", "0.54799503", "0.5476398", "0.54734725", "0.54702556", "0.5463872", "0.5460508", "0.5457784", "0.54562414" ]
0.0
-1
note nothing to test as differences from previous method are simply UI related
@Test public void testSetPositionWithoutUpdate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\r\n public void updateUI() {\r\n }", "public void updateUI(){}", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\r\n\tprotected void initUI() {\n\r\n\t}", "protected void setupUI() {\n\n }", "@Override\n\tpublic void view() {\n\t\t\n\t}", "void successUiUpdater();", "public void updateUI()\n\t{\n\t\tif( isRunning() == false) \n\t\t{\n\t\t\tupdateButton(\"Run\");\n\t\t\tbutton.setClickable(true);\n\t\t\tupdateTextView(Feedback.getMessage(Feedback.TYPE.NEW_TEST, null));\n\t\t}else\n\t\t{\n\t\t\tbutton.setClickable(true);\n\t\t\tupdateButton( \"Stop\" );\n\t\t\tupdateTextView(\"Tests are running.\");\n\n\t\t}\n\t}", "private static void returnBook() {\n\t\tnew ReturnBookUI(new returnBookControl()).run();\t// method name change ReturnBookControl() to returnBookControl(),RuN to run()\r\n\t}", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "public void updateChooser()\r\n\t{\r\n\t\t/*\twhat shall we do here ? */\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void initUI() {\n }", "private void performDirectEdit() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Test\n public void TEST_FR_SELECTDIFFICULTY_UI() {\n GameData.gameDifficulty = \"unchanged\";\n ChooseDifficultyUI testUI = new ChooseDifficultyUI();\n clickButton(testUI, 1, \"easy\");\n clickButton(testUI, 2, \"medium\");\n clickButton(testUI, 3, \"hard\");\n }", "@Override\n\tprotected void logic() {\n\n\t}", "@Test\n public void TEST_GOTO_CHOOSING_UI() {\n GameData.mainMenuState = false;\n GameData.chooseDifficultyState = true;\n ChooseDifficultyUI testUI = new ChooseDifficultyUI();\n GameData.currentUI = testUI;\n\n assertFalse(GameData.currentUI.getClass() == ChoosingUI.class);\n assertFalse(GameData.chooseDifficultyState == false);\n assertFalse(GameData.choosingBoatState == true);\n //Create a click position at a point within the button's area (in this case, exactly central).\n Vector2 clickPosition = new Vector2(SCREEN_WIDTH/2, 100 + BUTTON_HEIGHT/2);\n testUI.getInput(SCREEN_WIDTH, clickPosition);\n //test that clickPosition is within area\n assertTrue(clickPosition.x < SCREEN_WIDTH / 2 - BUTTON_WIDTH / 2 + BUTTON_WIDTH);\n assertTrue(clickPosition.x > SCREEN_WIDTH / 2 - BUTTON_WIDTH / 2);\n assertTrue(clickPosition.y < 100 + BUTTON_HEIGHT);\n assertTrue(clickPosition.y > 100);\n //Check changes have been made.\n assertTrue(GameData.currentUI.getClass() == ChoosingUI.class);\n assertTrue(GameData.chooseDifficultyState == false);\n assertTrue(GameData.choosingBoatState == true);\n }", "@Override\n public void perish() {\n \n }", "private void updateUI() {\n mUser.weight.sortListByDate();\n mUser.bloodPressure.sortListsByDate();\n updateText();\n updateChart();\n }", "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tupdateUI();\n\t\t\t\t\t\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n protected boolean isAppropriate() {\n return true; // always show\n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "private void updateUi() {\n this.tabDetail.setDisable(false);\n this.lblDisplayName.setText(this.currentChild.getDisplayName());\n this.lblPersonalId.setText(String.format(\"(%s)\", this.currentChild.getPersonalId()));\n this.lblPrice.setText(String.format(\"%.2f\", this.currentChild.getPrice()));\n this.lblAge.setText(String.valueOf(this.currentChild.getAge()));\n this.dtBirthDate.setValue(this.currentChild\n .getBirthDate()\n .toInstant()\n .atZone(ZoneId.systemDefault())\n .toLocalDate());\n this.lblWeight.setText(String.format(\"%.1f kg\", this.currentChild.getWeight()));\n this.sldWeight.setValue(this.currentChild.getWeight());\n this.checkboxTrueRace.setSelected(!this.currentChild.isRace());\n this.imgChildProfile.setImage(this.currentChild.getAvatar());\n if (this.currentChild.getGender().equals(GenderType.MALE)){\n this.imgSex.setImage(FileUtils.loadImage(\"assets/image/gender/boy.png\"));\n this.lblSex.setText(\"Male\");\n }\n else {\n this.imgSex.setImage(FileUtils.loadImage(\"assets/image/gender/girl.png\"));\n this.lblSex.setText(\"Female\");\n }\n if (this.currentChild.isVirginity()){\n this.imgVirginity.setImage(FileUtils.loadImage(\"assets/image/virginity/virgin.png\"));\n this.lblVirginity.setText(\"Virgin\");\n }\n else {\n this.imgVirginity.setImage(FileUtils.loadImage(\"assets/image/virginity/not-virgin.png\"));\n this.lblVirginity.setText(\"Not Virgin\");\n }\n\n // TODO [assignment2] nastavit obrazek/avatar ditete v karte detailu\n // TODO [assignment2] nastavit spravny obrazek pohlavi v karte detailu\n // TODO [assignment2] nastavit spravny obrazek virginity atribut v v karte detailu\n }", "@Test\n public void correctTextsAndLabels() {\n loadAllStartScreenReferences();\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n Assert.assertEquals(\"Title is not Start!\", \"Start\", stage.getTitle());\n Assert.assertEquals(\"GameName is Incorrect!\", \"TicTacToe Game (3x3)\", gameNameText.getText());\n Platform.runLater(() -> clickOn(startGameButton));\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n settingPlayers();\n loadAllMainScreenReferences();\n Assert.assertEquals(\"Title is not Main!\", \"Main\", stage.getTitle());\n Assert.assertEquals(\"Instruction Label is incorrect!\", \"You go first !\",\n instructionLabel.getText());\n Platform.runLater(() -> clickOn(buttonFour));\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n Assert.assertEquals(\"Instruction Label did not change!\", \"Nice, choose one more!\",\n instructionLabel.getText());\n Platform.runLater(() -> clickOn(leaveButton));\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n Assert.assertEquals(\"Title is not Start!\", \"Start\", stage.getTitle());\n }", "private static void borrow() {\n\t\tnew BorrowBookUI(new borrowBookControl()()).run();\t// method changes BorrowBookControl to borrowBookControl()\t\r\n\t}", "public static void testShowTodoView(){\n }", "@Override\n\tprotected void refreshView() {\n\t\t\n\t}", "@Test\r\n public void checkSpinnerChoicesViews(){\r\n\r\n String [] VALUES = {\"Education\", \"Transport\", \"Planning\", \"Fire and Public Safety\", \"Social Care\", \"Libraries\", \"Waste Management\",\r\n \"Allotments\", \"Public Clocks\", \"Bus Shelters\", \"Community Centres\", \"Play Areas\", \"Grants\", \"Neighbourhood Planning\", \"Litter, Fouling and Graffiti\"};\r\n\r\n String [] PARISH_ISSUES =\r\n {\"Allotments\", \"Public Clocks\", \"Bus Shelters\", \"Community Centres\", \"Play Areas\", \"Grants\", \"Neighbourhood Planning\", \"Litter, Fouling and Graffiti\"};\r\n\r\n DrawerLayout rlContainer = mActivity.findViewById(R.id.drawer_layout);\r\n ComplaintFragment complaintFragment = new ComplaintFragment();\r\n mActivity.getSupportFragmentManager().beginTransaction().replace(R.id.drawer_layout, complaintFragment).commitAllowingStateLoss();\r\n getInstrumentation().waitForIdleSync();\r\n\r\n String str = null;\r\n for(int i = 0; i< 15 ; i++ ) {\r\n\r\n\r\n str = VALUES[i];\r\n onView(withId(R.id.spinner))\r\n .perform(click());\r\n onData(hasToString(startsWith(str)))\r\n .perform(click());\r\n if (Arrays.asList(PARISH_ISSUES).contains(str)) {\r\n\r\n assertTrue(complaintFragment.getView().findViewById(R.id.submitButton).isShown());\r\n assertTrue(complaintFragment.getView().findViewById(R.id.complaintBody).isShown());\r\n assertFalse(complaintFragment.getView().findViewById(R.id.reportLinkText).isShown());\r\n } else {\r\n assertFalse(complaintFragment.getView().findViewById(R.id.submitButton).isShown());\r\n assertFalse(complaintFragment.getView().findViewById(R.id.complaintBody).isShown());\r\n assertTrue(complaintFragment.getView().findViewById(R.id.reportLinkText).isShown());\r\n\r\n }\r\n }\r\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void verifyUsertable() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify AddnewView Button Overlay\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.Verifyuserlistindb(userProfile);\n\t}", "public void working()\n {\n \n \n }", "public void test5() {\n Log.d(TAG, \"BackupRestoreTest test5 : test for person_data ui changed\");\n boolean result = false;\n\n mSolo.clickOnText(getActivity().getText(R.string.backup_personal_data).toString());\n sleep(2000);\n ListActivity la = (ListActivity) mSolo.getCurrentActivity();\n while (la.getListAdapter().getCount() == 0) {\n Log.d(TAG, \"BackupRestoreTest test5 : sleep = \");\n sleep(1000);\n }\n sleep(1000);\n result = mSolo.searchButton(getActivity().getText(R.string.selectall).toString());\n sleep(1000);\n if (!result) {\n result = mSolo.searchButton(getActivity().getText(R.string.unselectall).toString());\n sleep(1000);\n mSolo.clickOnText(getActivity().getText(R.string.selectall).toString());\n }\n sleep(1000);\n mSolo.clickOnView(la.getListView().getChildAt(0));\n sleep(1000);\n View configView = (View) mSolo.getView(R.id.setting);\n mSolo.clickOnView(configView);\n sleep(1000);\n result = mSolo.searchText(getActivity().getText(R.string.contact_module).toString());\n assertTrue(result);\n sleep(1000);\n /*mSolo.clickOnText(getActivity().getText(R.string.contact_phone).toString());\n sleep(1000);*/\n mSolo.clickOnText(getActivity().getText(R.string.btn_ok).toString());\n sleep(1000);\n mSolo.goBack();\n }", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}", "void tempInRegionUI();", "@Test\n public void testGreenButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"DateAvailable\").selectItem(1);\n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"greenButton4\").requireVisible();\n }", "private void actionComboboxChangedImage ()\r\n\t{\r\n\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t//---- Check if the project is empty or not\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\tif (isDisplaySamples) { helperDisplayDetectedSamples(); }\r\n\t\t\telse { helperDisplayInputImage(); }\r\n\r\n\t\t\thelperDisplaySamplesCombobox();\r\n\t\t\thelperDisplayResults();\r\n\t\t\thelperDisplayChart(true);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void guiTinNhan() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private void updateGUIStatus() {\r\n\r\n }", "@Override\r\n\t\tpublic void updateUI() {\n\t\t\tif(deparments != null){\r\n\r\n\t\t\t\ttv.setText(deparments.toString());\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"deparments \"+deparments.toString());\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\tprotected void onUnitSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"unit button implementation\");\r\n\t}", "protected void dopositiveClick2() {\n\n }", "@Override\n\tprotected void RefreshView() {\n\t\t\n\t}", "@Test\n public void testRedButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"ilias\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"redButton4\").requireVisible();\n }", "@Test\n public void ensureTextChangesWork(){\n onView(withId(R.id.placeEditText)).perform(typeText(\"London\"));\n\n // Check that the language text was changed.\n onView(withId(R.id.languageEditText)).perform(typeText(\"It\"));\n\n // Check that the language text was changed.\n onView(withId(R.id.maxrowsEditText)).perform(typeText(\"3\"));\n\n // check button click\n onView(withId(R.id.button)).perform(click());\n\n // check returned list view\n onView(withId(R.id.listViewResult)).check(matches(isDisplayed()));\n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tprotected void interr() {\n\t}", "private void presentShowcaseSequence() {\n }", "@Override\r\n\t\t\tpublic void onUseCacheDoInUI() {\n\t\t\t}", "@Override\r\n\t\t\tpublic void onUseCacheDoInUI() {\n\t\t\t}", "private void updateUI() {\n if(mChoice == Keys.CHOICE_WAITING) {\n mInstructionView.setText(\"Choose your weapon...\");\n mChoiceView.setImageResource(R.drawable.unknown);\n mRockButton.setEnabled(true);\n mPaperButton.setEnabled(true);\n mScissorsButton.setEnabled(true);\n } else {\n // A mChoice has been made\n mRockButton.setEnabled(false);\n mPaperButton.setEnabled(false);\n mScissorsButton.setEnabled(false);\n\n mInstructionView.setText(\"Waiting for opponent...\");\n\n switch(mChoice) {\n case Keys.CHOICE_ROCK:\n mChoiceView.setImageResource(R.drawable.rock);\n break;\n case Keys.CHOICE_PAPER:\n mChoiceView.setImageResource(R.drawable.paper);\n break;\n case Keys.CHOICE_SCISSORS:\n mChoiceView.setImageResource(R.drawable.scissors);\n break;\n }\n }\n\n // Check Pebble player response has arrived first\n if(mChoice != Keys.CHOICE_WAITING && mP2Choice != Keys.CHOICE_WAITING) {\n doMatch();\n }\n }", "@Test\r\n\tpublic void testButtonPressedNotEnoughCred() {\r\n\t\tvend.getSelectionButton(0).press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\t\t\r\n\t}", "public abstract void pickUp();", "public void test9() {\n Log.d(TAG, \"BackupRestoreTest test9 : test for ui change\");\n boolean result = false;\n\n //startCurrentActivity(new Intent(activity, AppBackupActivity.class));\n mSolo.clickOnText(getActivity().getText(R.string.backup_app).toString());\n sleep(2000);\n ListActivity la = (ListActivity) mSolo.getCurrentActivity();\n while (la.getListAdapter().getCount() == 0) {\n Log.d(TAG, \"BackupRestoreTest test9 : sleep = \");\n sleep(1000);\n }\n sleep(1000);\n result = mSolo.searchButton(getActivity().getText(R.string.selectall).toString());\n if (result) {\n mSolo.clickOnText(getActivity().getText(R.string.selectall).toString());\n }\n sleep(1000);\n mSolo.clickOnView(la.getListView().getChildAt(0));\n sleep(1000);\n mSolo.goBack();\n sleep(1000);\n mSolo.clickOnText(getActivity().getText(R.string.backup_app).toString());\n sleep(2000);\n ListActivity la1 = (ListActivity) mSolo.getCurrentActivity();\n while (la1.getListAdapter().getCount() == 0) {\n Log.d(TAG, \"BackupRestoreTest test9 : sleep = \");\n sleep(1000);\n }\n sleep(1000);\n if (la1.getListAdapter().getCount() == 1) {\n result = mSolo.searchButton(getActivity().getText(R.string.unselectall).toString());\n } else {\n result = mSolo.searchButton(getActivity().getText(R.string.selectall).toString());\n }\n assertTrue(result);\n Log.d(TAG, \"test9 for test for ui change finish\");\n sleep(2000);\n mSolo.goBack();\n sleep(500);\n }", "public void testUI() throws Throwable {\n GameSetupFragment fragPre = GameSetupFragment.newInstance();\n Fragment fragPost = startFragment(fragPre, \"1\");\n assertNotNull(fragPost);\n\n //check that passing string argument to fragment creates adapter as expected\n\n //4x4 should give 16 in adapter\n GameFragment gameFragPre = GameFragment.newInstance(\"4x4\");\n final GameFragment gameFragPost = (GameFragment) startFragment(gameFragPre, \"2\");\n assertNotNull(gameFragPost);\n\n int numCubes = gameFragPost.cubeGrid.getAdapter().getCount();\n assertEquals(16, numCubes);\n\n //check that no more than two cubes are ever selected\n runTestOnUiThread(new Runnable() {\n @Override\n public void run() {\n gameFragPost.cubeGrid.performItemClick(null, 2, 0);\n\n int selectedCount = ((CubeView.Adapter)gameFragPost.cubeGrid.getAdapter()).getSelectedCount();\n assertEquals(1, selectedCount); //1 cube selected after 1 press\n\n gameFragPost.itemClick.onItemClick(null, null, 0, 0);\n gameFragPost.itemClick.onItemClick(null, null, 4, 0);\n gameFragPost.itemClick.onItemClick(null, null, 9, 0);\n selectedCount = ((CubeView.Adapter)gameFragPost.cubeGrid.getAdapter()).getSelectedCount();\n assertEquals(2, selectedCount); //2 cubes selected after several more presses\n }\n });\n }", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void verify() {\n lblPaletteContent();\n treePaletteContentsTree();\n lblJLabel();\n btMoveUp();\n btMoveDown();\n btRemove();\n btNewCategory();\n btAddFromJAR();\n btAddFromLibrary();\n btAddFromProject();\n btResetPalette();\n btClose();\n }", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "@Test\n\tpublic void argumentTest() {\n\t\tSelectionController selectionController = new SelectionController();\n\t\ttry {\n\t\t\tselectionController.select(null);\n\t\t\tAssert.fail(\"The new selection was null\");\n\t\t} catch (NullPointerException e) {\n\t\t}\n\n\t\ttry {\n\t\t\tselectionController.unselect(null);\n\t\t\tAssert.fail(\"The new unselection was null\");\n\t\t} catch (NullPointerException e) {\n\t\t}\n\n\t\ttry {\n\t\t\tselectionController.reselect(null);\n\t\t\tAssert.fail(\"The new reselection was null\");\n\t\t} catch (NullPointerException e) {\n\t\t}\n\t}", "@Override\n\tpublic void stateChanged() {\n\t\t\n\t}", "public void clickedPresentationNew() {\n\t\t\n\t}", "@Override\n protected void doAct() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@UiThreadTest\r\n public void testValidationRequired() {\n View addProjectValidateRequired = solo.getView(R.id.projectname_required);\r\n View addProjectValidateUnique = solo.getView(R.id.projectname_unique);\r\n assertEquals(\"The validation error message 'required' should be gone\", View.GONE, addProjectValidateRequired.getVisibility());\r\n assertEquals(\"The validation error message 'unique' should be gone\", View.GONE, addProjectValidateUnique.getVisibility());\r\n\r\n // Try to add with empty values\r\n ActionBar.clickMenuItem(R.id.menu_add_project_activity_save, solo.getCurrentActivity());\r\n solo.assertCurrentActivity(\"The add/edit project activity is expected\", AddEditProjectActivity.class);\r\n addProjectValidateRequired = solo.getView(R.id.projectname_required);\r\n addProjectValidateUnique = solo.getView(R.id.projectname_unique);\r\n assertEquals(\"The validation error message 'required' should be visible\", View.VISIBLE, addProjectValidateRequired.getVisibility());\r\n assertEquals(\"The validation error message 'unique' should be gone\", View.GONE, addProjectValidateUnique.getVisibility());\r\n }", "private void actionComboboxChangedSample ()\r\n\t{\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t//---- Check if the project is empty or not\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\thelperDisplaySampleLocation();\r\n\t\t\thelperDisplayResults();\r\n\t\t}\r\n\t}", "private void updateUI() {\n Bite bite = BiteLab.get(getActivity()).getBite(mBiteId);\n\n mPlacementTextView.setText(bite.getPlacement());\n\n Calendar c = bite.getCalendar();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH)+1;\n int day = c.get(Calendar.DAY_OF_MONTH);\n mDateTextView.setText(getString(R.string.show_date, day, month, year));\n\n mDaysSinceBiteTextView.setText(getString(R.string.days_since_bite\n , bite.getDaysSinceBite()));\n\n mStageTextView.setText(getString(R.string.show_stage, bite.getStage()));\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "protected abstract void onPresenter();", "public void designBasement() {\n\t\t\r\n\t}", "public void test030301() {\n\t\tActivityMonitor activityMonitor = getInstrumentation().addMonitor(MainActivity.class.getName(), null, false);\n\t\t//User click \"Change User\"\n\t\tactivity.runOnUiThread(new Runnable(){\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tassertTrue(UserButton.performClick());\t\n\n\t\t\t\t// opening a dialog\n\t\t \t// access the alert dialog using the getDialog() method created in the activity\n\t\t\t\tAlertDialog d = (AlertDialog) activity.getDialog();\t\t\t\t\n\t\t\t}\t\n\t\t});\n\t\t\n\t\t// get current activity\t\t\t\n\t\tMainActivity myActivity = getActivity();\n\t\t// click \"Claimant\" button and start next activity\n\t\tmyActivity.runOnUiThread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tActivityMonitor activityMonitor00 = getInstrumentation().addMonitor(ClaimantClaimListActivity.class.getName(), null, false);\n\t\t\t\t// click button and open next activity.\n\t\t\t\tClaimantButton.performClick();\n\t\t\t\tClaimantClaimListActivity nextActivity = (ClaimantClaimListActivity) getInstrumentation().waitForMonitorWithTimeout(activityMonitor00, 10000);\n\t\t\t\t// next activity is opened and captured.\n\t\t\t\tassertNotNull(nextActivity);\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 1\n\t\t\t\t */\n\t\t\t\t// view which is expected to be present on the screen\t\t\t\n\t\t\t\tfinal View decorView1 = nextActivity.getWindow().getDecorView();\n\t\t\t\t// layout of claim list\n\t\t\t\tlistView = (ListView) nextActivity.findViewById(ca.ualberta.CMPUT301W15T06.R.id.claimListView);\n\t\t\t\t// check if it is on screen\n\t\t\t\tViewAsserts.assertOnScreen(decorView1, listView);\n\t\t\t\t// check whether the Button object's width and height attributes match the expected values\n\t\t\t\tfinal ViewGroup.LayoutParams layoutParams11 = listView.getLayoutParams();\n\t\t\t\tassertEquals(layoutParams11.width, WindowManager.LayoutParams.MATCH_PARENT);\n\t\t\t\tassertEquals(layoutParams11.height, WindowManager.LayoutParams.WRAP_CONTENT);\t\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 2,3\n\t\t\t\t */\n\t\t\t\t// Click the menu option\n\t\t\t\tint count_be = u.getClaimList().size();\n\t\t\t\tActivityMonitor am = getInstrumentation().addMonitor(ClaimantClaimListActivity.class.getName(), null, false);\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 4\n\t\t\t\t */\n\t\t\t\tgetInstrumentation().invokeMenuActionSync(nextActivity,ca.ualberta.CMPUT301W15T06.R.id.filter, 1);\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 5\n\t\t\t\t */\t\t\n\t\t\t\t// test alert dialog (contains saved tags)\n\t\t\t\tAlertDialog d = (AlertDialog) nextActivity.getDialog();\n\t\t\t\tassertNotNull(d);\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 6a\n\t\t\t\t */\n\t\t\t\t//\"Filter Model\" button\n\t\t\t\tButton positiveButton = d.getButton(DialogInterface.BUTTON_POSITIVE);\n\t\t\t\tassertNotNull(positiveButton);\n\t\t\t\tpositiveButton.performClick();\n\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 6b\n\t\t\t\t */\n\t\t\t\t//\"show all model\" button\n\t\t\t\tButton negativeButton = d.getButton(DialogInterface.BUTTON_NEGATIVE);\n\t\t\t\tassertNotNull(negativeButton);\n\t\t\t\tnegativeButton.performClick();\n\t\t\t\t// all claims are shown\n\t\t\t\tint count_all = u.getClaimList().size();\n\t\t\t\tassertEquals(count_be, count_all);\n\n\t\t\t\t//finish activity\n\t\t\t\tnextActivity.finish();\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tactivity.finish();\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "protected void aktualisieren() {\r\n\r\n\t}", "@Override\n public void onClick() {\n }", "@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}", "public static void testAddTodoView(){\n }", "@UiThreadTest\r\n public void testValidationUnique() {\n View addProjectValidateRequired = solo.getView(R.id.projectname_required);\r\n View addProjectValidateUnique = solo.getView(R.id.projectname_unique);\r\n assertEquals(\"The validation error message 'required' should be gone\", View.GONE, addProjectValidateRequired.getVisibility());\r\n assertEquals(\"The validation error message 'unique' should be gone\", View.GONE, addProjectValidateUnique.getVisibility());\r\n\r\n // Enter the name of the default project that is already in use...\r\n EditText addProjectName = (EditText) solo.getView(R.id.projectname);\r\n solo.enterText(addProjectName, getActivity().getString(R.string.default_project_name));\r\n\r\n takeScreenshot();\r\n\r\n ActionBar.clickMenuItem(R.id.menu_add_project_activity_save, solo.getCurrentActivity());\r\n solo.assertCurrentActivity(\"The add/edit project activity is expected\", AddEditProjectActivity.class);\r\n addProjectValidateRequired = solo.getView(R.id.projectname_required);\r\n addProjectValidateUnique = solo.getView(R.id.projectname_unique);\r\n assertEquals(\"The validation error message 'required' should be gone\", View.GONE, addProjectValidateRequired.getVisibility());\r\n assertEquals(\"The validation error message 'unique' should be visible\", View.VISIBLE, addProjectValidateUnique.getVisibility());\r\n }", "private static void fixBook() {\n\t\tnew FixBookUI(new fixBookControl()).run();\t// method name FixBookControl changes to fixBookControl\t,RuN to run()\r\n\t}", "public void updateUI() {\n/* 393 */ setUI((ScrollPaneUI)UIManager.getUI(this));\n/* */ }", "@Override\n protected void initView() {\n }", "@Override\n protected void initView() {\n }", "private void edit() {\n\n\t}", "public void doChanges2() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel4\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel4-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel4-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel4-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel4-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(59, 120);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel4-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel4-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel4-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel4-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(60, 120);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n changeMark = lm.getChangeMark();\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 59, 20)};\n Point hotspot = new Point(135, 120);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(397, 141);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 323, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 141);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 323, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 323, 20));\n baselinePosition.put(\"jTextField2-323-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 323, 20));\n baselinePosition.put(\"jTextField2-323-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "@Override\n \tprotected void controlRender(RenderManager rm, ViewPort vp) {\n \n \t}", "@Override\n protected void negativeClick() {\n\n }", "public interface IGetEntryPresenter {\n\n /**\n * Method to load the entry presenter screen\n * \n * @param responseDTO An instance of GetEntryResponseDTO which contains\n * variables that determine the loading/handling of\n * entry canvas.\n */\n void load(GetEntryResponseDTO responseDTO);\n \n void rotateScreen(boolean isLandScape);\n\n /**\n * Unloads the view\n */\n void unLoad();\n\n /**\n * Method to remove a menu item from the view\n * \n * @param itemId Item Id of the menu item\n * @param itemName Item Name of the menu item\n */\n void removeMenuItem(int itemId, String itemName);\n\n /**\n * Method to rename the menu item. Method adds the item edit box to the view\n * \n * @param itemId Item Id of the menu item\n * @param itemName Item Name of the menu item\n */\n //#if KEYPAD\n //|JG| void renameMenuItem(int itemId, String itemName);\n //#endif\n\n /**\n * Method to change a menu item name\n * \n * @param itemId Item id of the menu item whose name needs to be changed\n * @param itemName New item name\n */\n void changeMenuItemName(String itemId, String itemName);\n\n /**\n * Method to load message box\n * @param type\n * <li> 1 - Smartpopup without any options that last for \n * predefined time </li>\n * <li> 2,3,5 - Message box with options menu </li>\n * <li> 4,6 - Notification window </li>\n * @param msg Message\n */\n// void loadMessageBox(byte type, String msg);\n\n /**\n * Method to select the last accessed menu item\n * \n * @param iName Item name to be selected\n */\n void selectLastAccessedItem(String itemId);\n\n /**\n * Method to copy the text to the text box\n * \n * @param txt Text to be copied\n */\n void copyTextToTextBox(String text,boolean isMaxSet);\n\n /**\n * Method to show notification. This function internally calls the the\n * handlesmartpopup with the type defined for notification window\n * \n * @param isGoTo Boolean to indicate whether the notification window should\n * have \"Goto\" option or not\n * \n * @param dmsg Notification message\n * \n * @param param String Array which consists of two elements\n * <li> Element 0 - To represents whether the notification\n * is raised for message arrival or scheduler invocation\n * </li>\n * <li> Element 1 - Gives you the message id incase of \n * message or sequence name in case of scheduler\n * <li>\n */\n// void showNotification(byte isGoto);\n \n void keyPressed(int keycode);\n \n void paintGameView(Graphics g);\n \n byte commandAction(byte priority);\n \n// void displayMessageSendSprite();\n \n boolean pointerPressed(int x, int y, boolean isPointed, boolean isReleased, boolean isPressed);\n\n// //CR 12318\n// public void updateChatNotification(String[] msg);\n\n //CR 12118\n //bug 14155\n //bug 14156\n void changeMenuItemName(String itemName, byte type, String msgPlus);\n\n //CR 14672, 14675\n void refreshList(String[] contacts, int[] contactId);\n\n void setImage(ByteArrayOutputStream byteArrayOutputStream); //CR 14694\n}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void doChanges1() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel3\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel3-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel3-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel3-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-0-0-2\", new Integer(21)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(53, 91);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 84, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel3-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel3-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel3-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-0-0-2\", new Integer(21)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(52, 91);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 84, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n changeMark = lm.getChangeMark();\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 59, 20)};\n Point hotspot = new Point(99, 126);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 133);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 133);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "public void verifyUIElements(){\r\n\t\t\tisClickable(Txt_HomePage_Search);\r\n\t\t\tisClickable(Btn_HomePage_Search);\r\n\t\t}" ]
[ "0.64555764", "0.64555764", "0.6407122", "0.60005915", "0.5974222", "0.5974222", "0.5974222", "0.5896393", "0.58421963", "0.5794756", "0.57600975", "0.5718005", "0.5715502", "0.56913275", "0.56230265", "0.5605135", "0.5578756", "0.5566854", "0.5560105", "0.55550075", "0.5544683", "0.55352277", "0.5508864", "0.54979974", "0.5492023", "0.548108", "0.54686064", "0.54433817", "0.5441744", "0.543666", "0.5418246", "0.54106736", "0.5408285", "0.54033136", "0.5397718", "0.5389801", "0.5379499", "0.536922", "0.53671026", "0.5364953", "0.53646946", "0.53478426", "0.5340925", "0.5340491", "0.5335608", "0.5334943", "0.53330356", "0.5332212", "0.5330782", "0.5330054", "0.5326368", "0.5319503", "0.53188795", "0.5311073", "0.52949417", "0.52937347", "0.52937347", "0.52806014", "0.5279914", "0.527675", "0.527616", "0.52727306", "0.5271401", "0.5271401", "0.52683806", "0.5268059", "0.5265005", "0.52615446", "0.52615446", "0.525769", "0.5255771", "0.52450484", "0.5241018", "0.52382785", "0.52382785", "0.52377623", "0.52277505", "0.52203137", "0.52173084", "0.5209426", "0.52030796", "0.5200066", "0.5191781", "0.5191781", "0.51845133", "0.51839155", "0.5183542", "0.51758057", "0.5175169", "0.5173341", "0.5172114", "0.5171945", "0.5171945", "0.5169481", "0.516765", "0.5164735", "0.5157906", "0.51561064", "0.5155284", "0.5152073", "0.51496184" ]
0.0
-1
stack doesn't exist should be immediate return
@Test public void testSetSlice() { ip = new ImagePlus(); ip.setSlice(1234567890); // this should be safe assertEquals(1,ip.getCurrentSlice()); // stack exists but asking for currentSlice and we have a processor - should do immediate return proc = new ColorProcessor(2,1,new int[] {2,1}); ip = new ImagePlus("Zoot",proc); st = new ImageStack(2,1); st.addSlice("Bad", new int[] {3,4}); st.addSlice("Wicked", new int[] {5,6}); ip.setStack("Qualities", st); ip.setCurrentSlice(2); ip.setSlice(2); assertEquals(2,ip.getCurrentSlice()); // stack size in allowed range and not current slice : case we already have a processor proc = new ColorProcessor(2,1,new int[] {2,1}); ip = new ImagePlus("Zoot",proc); st = new ImageStack(2,1); st.addSlice("Bad", new int[] {3,4}); st.addSlice("Wicked", new int[] {5,6}); ip.setStack("Qualities", st); ip.setCurrentSlice(2); ip.getProcessor().snapshot(); assertEquals(2,ip.getCurrentSlice()); assertNotNull(ip.getProcessor().getSnapshotPixels()); ip.setSlice(1); assertEquals(1,ip.getCurrentSlice()); assertArrayEquals(new int[] {3,4}, (int[])st.getPixels(1)); assertNull(ip.getProcessor().getSnapshotPixels()); // stack size in allowed range and not current slice : case we don't have a processor ip = new ImagePlus(); st = new ImageStack(2,2); st.addSlice("Frida",new byte[] {1,2,3,4}); st.addSlice("Gwen",new byte[] {5,6,7,8}); ip.setStack("PatrioticAmericans", st); ip.setCurrentSlice(2); assertEquals(2,ip.getCurrentSlice()); ip.setSlice(1); assertEquals(1,ip.getCurrentSlice()); //assertTrue(ip.ip instanceof ByteProcessor); // with ImgLibProcessor this is noo longer true }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void pushOnStackTest_InCorrect(){\n assertNotEquals(10 , stack.getStack().returnFirst());\n }", "final boolean init_stacks()\n {\n stateptr = -1;\n val_init();\n return true;\n }", "void onStackEmpty();", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\r\n{\r\n stateptr = -1;\r\n val_init();\r\n return true;\r\n}", "public String getStack();", "public boolean stackEmpty() {\r\n\t\treturn (top == -1) ? true : false;\r\n\t }", "@Test\n public void pushOnStackTest_Correct(){\n assertEquals(stack.getTop().getData() , stack.getStack().returnFirst());\n }", "private static boolean isStackEmpty(SessionState state)\n\t{\n\t\tStack operations_stack = (Stack) state.getAttribute(STATE_SUSPENDED_OPERATIONS_STACK);\n\t\tif(operations_stack == null)\n\t\t{\n\t\t\toperations_stack = new Stack();\n\t\t\tstate.setAttribute(STATE_SUSPENDED_OPERATIONS_STACK, operations_stack);\n\t\t}\n\t\treturn operations_stack.isEmpty();\n\t}", "boolean isFull(Stack stack){\n\t\tif(stack.getStackSize() >= 100) return true;\r\n\t\telse return false;\t\r\n\t}", "@Test\n public void testPushCallTop(){\n ms = new MyStack();\n ms.push(1);\n ms.top();\n assertFalse(ms.IsEmpty());\n }", "public boolean canStack() {\n return this.hasStacking;\n }", "static void jstack() {\n\n }", "protected void stackEmptyButton() {\n \tif (stack.empty()) {\n \t\tenter();\n \t}\n \telse {\n \t\tstack.pop();\n \t\tif (stack.empty()) {\n \t\t\tenter();\n \t}\n \t}\n }", "public void deleteStack(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // if stack is present\n topOfStack=-1;\n arr=null;\n System.out.println(\"Stack deleted successfully\");\n }", "private OperandStack stack(){\n\t\treturn frame.getStack();\n\t}", "public void StackTest() {\n\tSystem.out.println( \"\\nQuestion (8) Stack Test\" );\n\tSystem.out.println( \"-----------------------\");\n\tStack s = new Stack(3);\n\tSystem.out.println( \"push 0\");\n\ts.push(0);\n\tSystem.out.println( \"push 1\");\n\ts.push(1);\n\tSystem.out.println( \"push 2\");\n\ts.push(2);\n\tSystem.out.println( \"try to push 3\");\n\ts.push(3); // error here pushing beyond stack depth, will print error messgae\n\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() ); \n\tSystem.out.println( \"try to pop \" ); // error here poping off empty stack\n\ts.pop();\n }", "public static String firstOfStack(){\n StringBuilder sb = new StringBuilder(\"1\");\n try{second(sb);}\n catch(Error e) {\n sb.append(\"Catch\");\n }\n sb.append(\"Out\");\n return sb.toString();\n }", "@Test\n public void testPopEmptyStack(){\n ms = new MyStack();\n try {\n ms.pop();\n }catch(EmptyStackException e){\n System.out.println(\"Error, cannot pop an empty stack.\");\n }\n }", "@Test\n public void testPush(){\n ms=new MyStack();\n ms.push(1);\n assertFalse(ms.IsEmpty());\n }", "public static boolean stackHelper(Stack st)\n\t{\n\t\tif (st.empty() || (int) st.peek() < 0)\n\t\t{\n\t\t\tthrow new InvalidSequenceException();\n\t\t}\n\t\treturn true;\n\t}", "public GenericStack peek(){\n // checks if stack is empty\n if(top == null){\n System.out.println(\"Stack is empty.\");\n return null;\n //System.exit(0);\n }\n return top;\n }", "public boolean vacio(){\n if (stack != null){\n return false;\n }\n return true;\n }", "@SubL(source = \"cycl/stacks.lisp\", position = 2117) \n public static final SubLObject stack_empty_p(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n return Types.sublisp_null(stack_struc_elements(stack));\n }", "@Test\n public void testStack() {\n DatastructureTest.STACK.push(3);\n DatastructureTest.STACK.push(7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == -1);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == -1);\n }", "@Test\n public void shouldReturnNullForAllSystemStack() {\n assertNull(\n CallerBasedSecurityManager.getLastCaller(\n Object.class,\n Object.class,\n Object.class\n ), \"No caller expected for all-system stack\"\n );\n }", "@Override\r\n\tpublic boolean isFull() {\r\n\t\tif(topIndex == stack.length -1) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\t\r\n\t}", "private static Map pushOnStack(SessionState state)\n\t{\n\t\tMap current_stack_frame = null;\n\t\tStack operations_stack = (Stack) state.getAttribute(STATE_SUSPENDED_OPERATIONS_STACK);\n\t\tif(operations_stack == null)\n\t\t{\n\t\t\toperations_stack = new Stack();\n\t\t\tstate.setAttribute(STATE_SUSPENDED_OPERATIONS_STACK, operations_stack);\n\t\t}\n\t\tif(operations_stack.size() < MAXIMUM_SUSPENDED_OPERATIONS_STACK_DEPTH)\n\t\t{\n\t\t\tcurrent_stack_frame = (Map) operations_stack.push(new Hashtable());\n\t\t}\n\t\tObject helper_mode = state.getAttribute(STATE_RESOURCES_HELPER_MODE);\n\t\tif(helper_mode != null)\n\t\t{\n\t\t\tcurrent_stack_frame.put(STATE_RESOURCES_HELPER_MODE, helper_mode);\n\t\t}\n\t\treturn current_stack_frame;\n\n\t}", "protected abstract List breakOutOfStateStack();", "public synchronized void check() {\n if (stack == null) {\n stack = Thread.currentThread().getStackTrace();\n } else {\n IllegalStateException ex =\n new IllegalStateException(\"This is the stack of the previous call\");\n ex.setStackTrace(stack);\n throw ex;\n }\n }", "@SubL(source = \"cycl/stacks.lisp\", position = 1818) \n public static final SubLObject create_stack() {\n return clear_stack(make_stack(UNPROVIDED));\n }", "public boolean isCarStackEmpty() {\n boolean carStackEmpty = false;\n if(top < 0) {\n carStackEmpty = true;\n }\n return carStackEmpty;\n }", "public boolean isEmpty(){\n return this.stack.isEmpty();\n\n }", "private synchronized void PCToStack() throws RuntimeException\n {\n int first8bites, second8bites, third8bits;\n \n first8bites = Utils.get_lobyte(mPC);\n second8bites = Utils.get_hibyte(mPC);\n if (PC_BIT_SIZE == 22)\n third8bits = Utils.get_lobyte(mPC >> 16);\n else\n third8bits = 0;\n mStack.push(first8bites);\n mStack.push(second8bites);\n if (PC_BIT_SIZE == 22)\n mStack.push(third8bits);\n }", "public void peek(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is empty\n if(topOfStack==-1){\n System.out.println(\"Stack is empty, can't peek\");\n return;\n }\n // if stack is not empty\n System.out.println(\"Top of the stack: \"+this.arr[this.topOfStack]);\n }", "private static Map peekAtStack(SessionState state)\n\t{\n\t\tMap current_stack_frame = null;\n\t\tStack operations_stack = (Stack) state.getAttribute(STATE_SUSPENDED_OPERATIONS_STACK);\n\t\tif(operations_stack == null)\n\t\t{\n\t\t\toperations_stack = new Stack();\n\t\t\tstate.setAttribute(STATE_SUSPENDED_OPERATIONS_STACK, operations_stack);\n\t\t}\n\t\tif(! operations_stack.isEmpty())\n\t\t{\n\t\t\tcurrent_stack_frame = (Map) operations_stack.peek();\n\t\t}\n\t\treturn current_stack_frame;\n\n\t}", "private void cmdInfoOpStack() throws NoSystemException {\n MSystem system = system(); \n Deque<MOperationCall> callStack = system.getCallStack();\n int index = callStack.size();\n\t\tfor (MOperationCall call : callStack) {\n\t\t\tLog.print(index-- + \". \");\n\t\t\tLog.println(call.toString() + \" \" + call.getCallerString());\n\t\t}\n\t\tif (callStack.isEmpty()) {\n\t\t\tLog.println(\"no active operations.\");\n\t\t}\n }", "private static Map popFromStack(SessionState state)\n\t{\n\t\tMap current_stack_frame = null;\n\t\tStack operations_stack = (Stack) state.getAttribute(STATE_SUSPENDED_OPERATIONS_STACK);\n\t\tif(operations_stack == null)\n\t\t{\n\t\t\toperations_stack = new Stack();\n\t\t\tstate.setAttribute(STATE_SUSPENDED_OPERATIONS_STACK, operations_stack);\n\t\t}\n\t\tif(! operations_stack.isEmpty())\n\t\t{\n\t\t\tcurrent_stack_frame = (Map) operations_stack.pop();\n\t\t\tif(operations_stack.isEmpty())\n\t\t\t{\n\t\t\t\tString canceled = (String) current_stack_frame.get(STATE_HELPER_CANCELED_BY_USER);\n\t\t\t\tif(canceled != null)\n\t\t\t\t{\n\t\t\t\t\tstate.setAttribute(STATE_HELPER_CANCELED_BY_USER, canceled);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn current_stack_frame;\n\n\t}", "public abstract boolean fragmentStackUnderFlow();", "@Test\r\n public void isEmptyTest1(){\r\n stack.pop();\r\n stack.pop();\r\n stack.pop();\r\n assertThat(stack.isEmpty(), is(true));\r\n }", "public void pop(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is empty\n if(this.topOfStack==-1){\n System.out.println(\"Stack is empty, can't pop from stack\");\n return;\n }\n // if stack is not empty\n this.arr[this.topOfStack]=Integer.MIN_VALUE;\n this.topOfStack--;\n }", "public void popFrame(){\n runStack.popFrame();\n }", "StackManipulation cached();", "private void _visitStackAccessor(Instruction o){\n\t\tint consume = o.consumeStack(cpg); // Stack values are always consumed first; then produced.\n\t\tif (consume > stack().slotsUsed()){\n\t\t\tconstraintViolated((Instruction) o, \"Cannot consume \"+consume+\" stack slots: only \"+stack().slotsUsed()+\" slot(s) left on stack!\\nStack:\\n\"+stack());\n\t\t}\n\n\t\tint produce = o.produceStack(cpg) - ((Instruction) o).consumeStack(cpg); // Stack values are always consumed first; then produced.\n\t\tif ( produce + stack().slotsUsed() > stack().maxStack() ){\n\t\t\tconstraintViolated((Instruction) o, \"Cannot produce \"+produce+\" stack slots: only \"+(stack().maxStack()-stack().slotsUsed())+\" free stack slot(s) left.\\nStack:\\n\"+stack());\n\t\t}\n\t}", "@Test\r\npublic void testTop()\r\n{\n\tassertEquals(null,myStack.top());\r\n\r\n\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\tassertEquals(27,myStack.top().getId());\r\n\tassertEquals(27,myStack.pop().getId());\r\n\tassertEquals(4,myStack.top().getId());\r\n\tassertEquals(4,myStack.pop().getId());\r\n\tassertEquals(2,myStack.pop().getId());\r\n\t\r\n\t// Stack leer\r\n\tassertEquals(null,myStack.top());\r\n\r\n}", "@Override\n public boolean popStackOnAllUnacceptableMoves(int xiPopDepth)\n {\n return false;\n }", "@When(\"^I pop from the stack$\")\n\tpublic void i_pop_from_the_stack() throws Throwable {\n\t throw new PendingException();\n\t}", "public boolean emptyStack() {\n return (expStack.size() == 0);\n }", "@Test\n public void testStackCodeExamples() {\n logger.info(\"Beginning testStackCodeExamples()...\");\n\n // Allocate an empty stack\n Stack<String> stack = new Stack<>();\n logger.info(\"Start with an empty stack: {}\", stack);\n\n // Push a rock onto it\n String rock = \"rock\";\n stack.pushElement(rock);\n assert stack.getTop().equals(rock);\n logger.info(\"Push a rock on it: {}\", stack);\n\n // Push paper onto it\n String paper = \"paper\";\n stack.pushElement(paper);\n assert stack.getTop().equals(paper);\n logger.info(\"Push paper on it: {}\", stack);\n\n // Push scissors onto it\n String scissors = \"scissors\";\n stack.pushElement(scissors);\n assert stack.getTop().equals(scissors);\n assert stack.getSize() == 3;\n logger.info(\"Push scissors on it: {}\", stack);\n\n // Pop off the scissors\n assert stack.popElement().equals(scissors);\n assert stack.getSize() == 2;\n logger.info(\"Pop scissors from it: {}\", stack);\n\n // Pop off the paper\n assert stack.popElement().equals(paper);\n assert stack.getSize() == 1;\n logger.info(\"Pop paper from it: {}\", stack);\n\n // Pop off the rock\n assert stack.popElement().equals(rock);\n assert stack.isEmpty();\n logger.info(\"Pop rock from it: {}\", stack);\n\n logger.info(\"Completed testStackCodeExamples().\\n\");\n }", "@Test\n\tpublic void testGetStack() {\n\t\tip = new ImagePlus();\n\t\tst = ip.getStack();\n\t\tassertEquals(1,ip.getStackSize());\n\n\t\t// if stack == null and not proc == null and no info string\n\t\t// do stuff and setRoi() if needed\n\t\tproc = new ByteProcessor(1,1,new byte[] {22}, null);\n\t\tip = new ImagePlus(\"CareBearStation\",proc);\n\t\tst = ip.getStack();\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertNull(st.getSliceLabel(1));\n\t\tassertEquals(proc.getColorModel(),st.getColorModel());\n\t\tassertEquals(proc.getRoi(),st.getRoi());\n\n\t\t// if stack == null and not proc == null and yes info string\n\t\t// do stuff and setRoi() if needed\n\t\tproc = new ByteProcessor(1,1,new byte[] {22}, null);\n\t\tip = new ImagePlus(\"CareBearStation\",proc);\n\t\tip.setProperty(\"Info\",\"SnapDragon\");\n\t\tst = ip.getStack();\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertEquals(\"CareBearStation\\nSnapDragon\",st.getSliceLabel(1));\n\t\tassertEquals(proc.getColorModel(),st.getColorModel());\n\t\tassertEquals(proc.getRoi(),st.getRoi());\n\n\t\t// if not stack == null\n\t\t// do stuff and setRoi() if needed\n\t\tproc = new ByteProcessor(1,1,new byte[] {22}, null);\n\t\tip = new ImagePlus(\"CareBearStation\",proc);\n\t\tst = new ImageStack(1,1);\n\t\tst.addSlice(\"Fixed\", proc);\n\t\tst.addSlice(\"Crooked\", proc);\n\t\tip.setStack(\"Odds\",st);\n\t\tst = ip.getStack();\n\t\tassertEquals(2,ip.getStackSize());\n\t\tassertEquals(proc.getColorModel(),st.getColorModel());\n\t\tassertEquals(proc.getRoi(),st.getRoi());\n\t}", "@Test\n public void testPushPop(){\n ms=new MyStack();\n ms.push(2);\n ms.pop();\n assertTrue(ms.IsEmpty());\n }", "private boolean hasPinnedStack() {\n return this.mTaskStackContainers.getPinnedStack() != null;\n }", "public boolean isCarStackFull() {\n boolean carStackFull = false;\n if(top >= 4) {\n carStackFull = true;\n }\n return carStackFull;\n }", "private void assertStackTop(Tree<Token> t) {\n assertEquals(t, parser.stack.peek());\n }", "@Override\r\n\tpublic boolean isFull() {\r\n\t\treturn stack.size() == size;\r\n\t}", "boolean push(int x) \r\n {\n if(top >= (MAX-1))\r\n {\r\n System.out.println(\"Stack Overflow Occurred!\");\r\n return false;\r\n }\r\n //Write your code here\r\n a[++top] = x;\r\n System.out.println(\"Pushed \" + x + \" into stack\");\r\n return true;\r\n }", "@Test\n public void testSingleStack() {\n ProgramStack ps = new ProgramStack();\n\n ps.push(1);\n\n Assert.assertEquals(\"[1]\", ps.toString());\n }", "@Test\n public void TestStackPeek() { Assert.assertEquals(\"C\", stack.peek()); }", "@Override\n public ItemStack decrStackSize(int par1, int par2) {\n if (this.stack[par1] != null)\n {\n ItemStack var3;\n\n if (this.stack[par1].stackSize <= par2)\n {\n var3 = this.stack[par1];\n this.stack[par1] = null;\n return var3;\n }\n else\n {\n var3 = this.stack[par1].splitStack(par2);\n\n if (this.stack[par1].stackSize == 0)\n {\n this.stack[par1] = null;\n }\n\n return var3;\n }\n }\n else\n {\n return null;\n }\n }", "public boolean isFull(){\n return (top == employeeStack.length);\n }", "@Test\n public void testNonemptyStack() {\n ProgramStack ps = new ProgramStack();\n\n ps.push(1);\n ps.push(2);\n ps.push(3);\n\n Assert.assertEquals(\"[1, 2, 3]\", ps.toString());\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn stack.isEmpty();\r\n\t}", "public boolean onPopBackStack() {\n\t\treturn false;\n\t}", "public void popScope() {\n this.stack.removeFirst();\n }", "public boolean isEmpty(){\r\n \treturn stack1.isEmpty();\r\n }", "public Card[] GetCardStack() { return null; }", "static void ret() {\n\t\tcurColor = callStack[--size];\n\t}", "public E top()\n\tthrows EmptyStackException;", "@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Fixed Stack\");\r\n\t\t\r\n\t}", "@SubL(source = \"cycl/stacks.lisp\", position = 3462) \n public static final SubLObject stack_peek(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n if ((NIL == stack_empty_p(stack))) {\n {\n SubLObject elements = stack_struc_elements(stack);\n SubLObject item = elements.first();\n return item;\n }\n }\n return NIL;\n }", "public void testPush() {\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.push(10);\n assertEquals(this.stack.size(), 11, 0.01);\n assertEquals(this.stack.peek(), 10, 0.01);\n }", "@Override\n public E top()throws EmptyStackException{\n E c = null;\n if(!isEmpty()){\n c = stackArray[count-1];\n return c;\n }\n \n else \n throw new EmptyStackException();\n }", "public void testPeek() {\n Exception exception = null;\n try {\n this.empty.peek();\n }\n catch (Exception e) {\n exception = e;\n }\n assertNotNull(exception);\n assertTrue(exception instanceof EmptyStackException);\n\n assertEquals(this.stack.peek(), 9, 0.01);\n }", "public boolean isFull() {\n return (this.top == this.stack.length);\n }", "public Stack getStack() {\r\n\t\treturn stack;\r\n\t}", "static void stack_peek(Stack<Integer> stack)\r\n\t{\r\n\t\tInteger element=stack.peek();\r\n\t\tSystem.out.println(\"Element on stack top :\" + element);\r\n\t}", "@Test(expected = EmptyStackException.class)\n public void testPeekOnEmptyStack() throws EmptyStackException {\n SimpleStack stack = new DefaultSimpleStack();\n\n // When we « pop » the stack\n stack.peek(); // should throws an EmptyStackException.\n }", "final void state_push(int state)\r\n{\r\n try {\r\n\t\tstateptr++;\r\n\t\tstatestk[stateptr]=state;\r\n\t }\r\n\t catch (ArrayIndexOutOfBoundsException e) {\r\n int oldsize = statestk.length;\r\n int newsize = oldsize * 2;\r\n int[] newstack = new int[newsize];\r\n System.arraycopy(statestk,0,newstack,0,oldsize);\r\n statestk = newstack;\r\n statestk[stateptr]=state;\r\n }\r\n}", "public int getStackSize() {\n\t\treturn stackSize;\n\t}", "@Test\n public void testIsEmpty(){\n ms = new MyStack();\n assertTrue(ms.IsEmpty());\n }", "@Test\n void whenPopTillStackEmptyReturnNodeShouldBeFirstNode() {\n\n MyNode<Integer> myFirstNode = new MyNode<>(70);\n MyNode<Integer> mySecondNode = new MyNode<>(30);\n MyNode<Integer> myThirdNode = new MyNode<>(56);\n MyStack myStack = new MyStack();\n myStack.push(myFirstNode);\n myStack.push(mySecondNode);\n myStack.push(myThirdNode);\n boolean isEmpty = myStack.popTillEmpty();\n\n System.out.println(isEmpty);\n boolean result = myStack.head == null && myStack.tail == null;\n }", "int peek() \r\n {\n if(top <0){\r\n System.out.println(\"Stack Empty\");\r\n return -1;\r\n }\r\n return a[top];\r\n }", "@Override\r\n\tpublic T top() throws StackUnderflowException{\r\n\t\tif (!isEmpty()) {\r\n\t\t\tT e = stack.get(size()-1);\r\n\t\t\treturn e;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new StackUnderflowException();\r\n\t\t}\r\n\t}", "E pop() throws EmptyStackException;", "private List<ThroughNode> popStackStackForward() {\n List<ThroughNode> popped = nodeStackStack.peek();\n nodeStackStack.push(C.tail(popped));\n return popped;\n }", "int pop() \r\n {\n if(top < 0)\r\n {\r\n System.out.println(\"Stack Underflow Occurred!\");\r\n return -1;\r\n }\r\n //Write your code here\r\n int p = a[top];\r\n top--;\r\n return p; \r\n }", "@Test /*Test 21 - the pop() method now throws the EmptyStackException if it is called when \n the stack size is currently 0.*/\n public void testPopEmptyStackException() throws EmptyStackException, BadTypeException {\n exception.expect(EmptyStackException.class);\n exception.expectMessage(\"The stack is empty. No element can be removed.\");\n numStackTest.pop();\n }", "static void pop_from_stack(String passed){\n\t\tchar r = passed.charAt(4);\n\t\tswitch(r){\n\t\tcase 'B':\n\t\t\tregisters.put('C',memory.get(SP++));\n\t\t\tregisters.put('B',memory.get(SP++));\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\tregisters.put('E',memory.get(SP++));\n\t\t\tregisters.put('D',memory.get(SP++));\n\t\t\tbreak;\n\t\tcase 'H':\n\t\t\tregisters.put('L',memory.get(SP++));\n\t\t\tregisters.put('H',memory.get(SP++));\n\t\t\tbreak;\n\t\tcase 'P':\n\t\t\tString w = memory.get(SP++);\n\t\t\tregisters.put('A',memory.get(SP++));\n\t\t\tw = Integer.toBinaryString(hexa_to_deci(w));\n\t\t\tCS = w.charAt(0)=='1'?true:false;\n\t\t\tP = w.charAt(2)=='1'?true:false;\n\t\t\tAC = w.charAt(4)=='1'?true:false;\n\t\t\tZ = w.charAt(6)=='1'?true:false;\n\t\t\tS = w.charAt(7)=='1'?true:false;\n\t\t}\n\t}", "@Test(expected = EmptyStackException.class)\n public void testPopOnEmptyStack() throws EmptyStackException {\n SimpleStack stack = new DefaultSimpleStack();\n\n // When we « pop » the stack\n stack.pop(); // should throws an EmptyStackException.\n }", "public static void main(String[] args) \r\n\t{\n\t \r\n Stack st=new Stack();\r\n st.push(6);\r\n st.push(5);\r\n st.push(3);\r\n st.push(2);\r\n st.push(1);\r\n \r\n System.out.println( st.peek());\r\n \r\n \r\n // System.out.println( st.isEmpty());\r\n\t}", "@Test\r\n\tpublic void testPop()\r\n\t{\n\t\tassertEquals(null,myStack.pop());\r\n\t\r\n\t\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\t\tassertEquals(27,myStack.top().getId());\r\n\t\tassertEquals(\"Chur\",myStack.pop().getName());\r\n\t\tassertEquals(4,myStack.pop().getId());\r\n\t\tassertEquals(2,myStack.pop().getId());\r\n\t\t\r\n\t\t// leerer Stack\r\n\t\tassertEquals(null,myStack.pop());\r\n\t\tassertEquals(null,myStack.top());\r\n\t}", "public boolean stackPop() {\r\n\t\t if(stackEmpty())\r\n\t\t {\r\n\t\t\t return false;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t if(top == 0)\r\n\t\t {\r\n\t\t \ttop = -1;\r\n\t\t \tcount--;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t \tarray[top] = array[top-1];\r\n\t\t \ttop--;\r\n\t\t \tcount--;\r\n\t\t }\r\n\t\t\t return true;\r\n\t\t } \t\r\n\t }", "@Override\n public void backtrack() {\n if (!stack.isEmpty()) {\n int index = (Integer) stack.pop();\n\n if (index > arr.length) {//popping the insert function unneeded push\n insert((Integer) stack.pop());\n stack.pop();\n }\n if (index < arr.length) {//popping the delete function unneeded push\n delete(index);\n stack.pop();\n stack.pop();\n }\n System.out.println(\"backtracking performed\");\n }\n }", "default void popNestedPath() throws IllegalStateException {\n\t\tthrow new IllegalStateException(\"Cannot pop nested path: no nested path on stack\");\n\t}", "@Test\n public void testPushTop(){\n ms = new MyStack();\n ms.push(2);\n assertEquals(2,ms.top());\n }", "private synchronized BackStep peek() {\r\n\t\t\treturn stack[top];\r\n\t\t}", "@Test\n public void testEmptyStack() {\n ProgramStack ps = new ProgramStack();\n\n Assert.assertEquals(\"[]\", ps.toString());\n }", "private static int pop(Stack<Integer> top_ref) {\n /*If stack is empty then error */\n if (top_ref.isEmpty()) {\n System.out.println(\"Stack Underflow\");\n System.exit(0);\n }\n //pop the data from the stack\n return top_ref.pop();\n }", "public boolean isEmpty() {return stackList.isEmpty();}" ]
[ "0.70712894", "0.68398523", "0.68140674", "0.68038917", "0.68038917", "0.68038917", "0.67944765", "0.6756121", "0.6720886", "0.663951", "0.65435797", "0.64944154", "0.63976175", "0.63754493", "0.6368397", "0.63613343", "0.6341929", "0.62175256", "0.6209497", "0.6206155", "0.61846566", "0.61844474", "0.6179885", "0.6157041", "0.61550593", "0.61525625", "0.6143951", "0.6121986", "0.61178434", "0.6100439", "0.6099816", "0.6074077", "0.6065767", "0.60314965", "0.6013673", "0.6007516", "0.5992437", "0.59817", "0.5971708", "0.59660614", "0.59567815", "0.5946239", "0.5929081", "0.5921135", "0.5902228", "0.59001654", "0.5897724", "0.5879612", "0.586127", "0.5858457", "0.584691", "0.5846906", "0.5837448", "0.5830564", "0.582565", "0.5820377", "0.5811578", "0.5808989", "0.5806979", "0.5789656", "0.5789399", "0.5788489", "0.57750916", "0.5772984", "0.5769209", "0.576769", "0.576219", "0.5753478", "0.5752757", "0.5747657", "0.57470065", "0.57402354", "0.57342046", "0.57283765", "0.57258403", "0.57224655", "0.5721162", "0.57171893", "0.57155925", "0.5704821", "0.5701689", "0.569975", "0.56977296", "0.5697669", "0.5692175", "0.56901467", "0.56887984", "0.56870145", "0.5682003", "0.56709254", "0.566557", "0.56627077", "0.56555295", "0.56535476", "0.56479", "0.56441015", "0.5643665", "0.56410253", "0.5635471", "0.5635403", "0.5633344" ]
0.0
-1
note nothing to test same as previous method but with no GUI interaction
@Test public void testSetSliceWithoutUpdate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "private void test() {\n\n\t}", "@Test\n public void TEST_GOTO_CHOOSING_UI() {\n GameData.mainMenuState = false;\n GameData.chooseDifficultyState = true;\n ChooseDifficultyUI testUI = new ChooseDifficultyUI();\n GameData.currentUI = testUI;\n\n assertFalse(GameData.currentUI.getClass() == ChoosingUI.class);\n assertFalse(GameData.chooseDifficultyState == false);\n assertFalse(GameData.choosingBoatState == true);\n //Create a click position at a point within the button's area (in this case, exactly central).\n Vector2 clickPosition = new Vector2(SCREEN_WIDTH/2, 100 + BUTTON_HEIGHT/2);\n testUI.getInput(SCREEN_WIDTH, clickPosition);\n //test that clickPosition is within area\n assertTrue(clickPosition.x < SCREEN_WIDTH / 2 - BUTTON_WIDTH / 2 + BUTTON_WIDTH);\n assertTrue(clickPosition.x > SCREEN_WIDTH / 2 - BUTTON_WIDTH / 2);\n assertTrue(clickPosition.y < 100 + BUTTON_HEIGHT);\n assertTrue(clickPosition.y > 100);\n //Check changes have been made.\n assertTrue(GameData.currentUI.getClass() == ChoosingUI.class);\n assertTrue(GameData.chooseDifficultyState == false);\n assertTrue(GameData.choosingBoatState == true);\n }", "public void working()\n {\n \n \n }", "@Test\r\n\tpublic void testButtonPressedNotEnoughCred() {\r\n\t\tvend.getSelectionButton(0).press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\t\t\r\n\t}", "@Test\n public void testGreenButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"DateAvailable\").selectItem(1);\n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"greenButton4\").requireVisible();\n }", "@Test\n\tpublic void guiElementsTest() throws Exception {\n\t\tif (Configuration.shufflerepeat &&\n\t\tConfiguration.featureamp&&\n\t\tConfiguration.playengine&&\n\t\tConfiguration.choosefile&&\n\t\tConfiguration.gui&&\n\t\tConfiguration.skins&&\n\t\tConfiguration.light&&\n\t\tConfiguration.filesupport&&\n\t\tConfiguration.showtime&&\n\t\tConfiguration.volumecontrol&&\n\t\tConfiguration.mute\n\t\t) {\t\n\n\t\tstart();\n\t\tJMenu menu = (JMenu) MemberModifier.field(Application.class, \"menu\").get(gui);\n\t\tassertEquals(menu.getName(), \"menu\");\n\t\tJMenuItem menuItem = menu.getItem(0);\n\t\tassertTrue(menuItem.getComponentListeners() != null);\n\t\t}\n\t}", "@Override\n\tpublic void guiTinNhan() {\n\n\t}", "@Test\n public void testRedButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"ilias\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"redButton4\").requireVisible();\n }", "@Test\r\n public void testInitUI() {\r\n System.out.println(\"initUI\");\r\n Graph instance = new Graph();\r\n instance.initUI();\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "private GuiTest() {\n // Load custom resources (fonts, etc.)\n ResourceLoader.loadResources();\n\n // Load the user accounts into the system\n UserController.getInstance().loadUsers();\n\n // Set up GuiController and the main window.\n GuiController.instantiate(1280, 720, \"FPTS\");\n\n char[] password = {'p', 'a', 's', 's', 'w', 'o', 'r', 'd'};\n UserController.getInstance().login(\"rhochmuth\", password);\n\n // Show the screen/window\n PortfolioController.getInstance().showAddHoldingView();\n GuiController.getInstance().showWindow();\n\n // Load the market information and update it every 2 minutes\n MarketController.getInstance().StartTimer();\n }", "@Override\n\tpublic boolean takeControl() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean test() {\n\t\treturn false;\n\t}", "private void tests(Component comp){\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(Component)> - ======= Tested component=\"+comp.getClass().getName());\n \n \n testContainer(comp);\n \n /* H1 -> Hack for JLabels - JLabel isn't focusTraversable, but If we want test labelFor pointing we must have all JLabels. */\n if (testSettings.AP_noLabelFor) {\n if (testSettings.AP_showingOnly && !comp.isShowing()){\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(\"+comp.getClass().getName()+\")> - Label For => NOT TESTED - because : testSettings.AP_showingOnly=\"+testSettings.AP_showingOnly+\" && !!comp.isShowing()=\"+!comp.isShowing());\n return;\n }\n \n if(comp instanceof JLabel) {\n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(Component)> - \\t -add label =\"+comp);\n \n labels.add(comp);\n }\n }\n \n /* Check Labels which have set labelFor have mnemonics */\n if ((comp instanceof JLabel) && testSettings.AP_mnemonics && testSettings.AP_m_label) {\n JLabel label = (JLabel) comp;\n int mnemonic = label.getDisplayedMnemonic();\n \n // LOG ONLY -/\n if(debugLog) System.err.print(LOG_CAPTION+\" - <tests(Component)> - \\t - label Mnemonic=\"+mnemonic+\" label.getLabelFor()=\"+label.getLabelFor()+\" label.getDisplayedMnemonic()=\"+label.getDisplayedMnemonic());\n \n Component labelF = label.getLabelFor();\n \n if (labelF != null){\n // hack for JDK1.4 or higher if((labelF.isFocusTraversable()) && (label.getDisplayedMnemonic() <= 0))\n if(testFocusability(labelF) && (mnemonic <= 0))\n noMnemonic.add(comp);\n \n if(label.isShowing())\n testMnemonics(label.getText(), mnemonic, comp);\n \n }\n }\n \n \n // Test implement Accessible\n testImplementAccessible(comp);\n \n /* Test parent (Window) although will not test non-showed or non-traversable*/\n if(!comp.equals(parent)){\n if (testSettings.AP_showingOnly && !comp.isShowing()){\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(\"+comp.getClass().getName()+\")> - NOT TESTED - because : testSettings.AP_showingOnly=\"+testSettings.AP_showingOnly+\" && !!comp.isShowing()=\"+!comp.isShowing());\n return;\n }\n \n // hack for JDK 1.4 or higner if (testSettings.AP_focusTraversableOnly && !comp.isFocusTraversable()){\n if (testSettings.AP_focusTraversableOnly && !testFocusability(comp)){\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(\"+comp.getClass().getName()+\")> - NOT TESTED - because : testSettings.AP_focusTraversableOnly=\"+testSettings.AP_focusTraversableOnly+\" && !testFocusability(comp)=\"+!testFocusability(comp));\n return;\n }\n }\n \n /* Check if class is excluded from the test */\n String classname = comp.getClass().toString();\n if (classname.startsWith(\"class \")){\n classname = classname.substring(6);\n }\n if (excludedClasses.contains(classname)){\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(\"+comp.getClass().getName()+\")> - NOT TESTED - because : Excluded classes contains this class.\");\n return;\n }\n \n \n // Test Accessible Name and Accessible Description\n if(comp instanceof Accessible){\n AccessibleContext comp_AC = comp.getAccessibleContext();\n \n if(comp_AC != null) {\n testAccessibleName(comp, comp_AC);\n testAccessibleDescription(comp, comp_AC);\n } else {\n noName.add(comp);\n noDesc.add(comp);\n }\n }\n \n \n // Test Label For set\n testLabelForSet(comp);\n \n // Test Buttons Mnemonics\n testButtonsMnemonics(comp);\n \n // Test Component Name\n if(testSettings.test_name){\n testComponentName(comp);\n }\n \n }", "private static void initAndShowGUI() {\n }", "@Test(timeout=300000)\n public void test08() throws Throwable {\n BackendTransferListener backendTransferListener0 = new BackendTransferListener((CjdbcGui) null);\n backendTransferListener0.mouseClicked((MouseEvent) null);\n }", "@Override\r\n\tpublic void simulate() {\n\t\t\r\n\t}", "@Test\n public void testMouseClicked() {\n System.out.println(\"mouseClicked\");\n MouseEvent e = null; \n //instance.mouseClicked(e);\n \n }", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n RefSystemGUI.main(args);\n }", "@Test\n public void TEST_FR_SELECTDIFFICULTY_UI() {\n GameData.gameDifficulty = \"unchanged\";\n ChooseDifficultyUI testUI = new ChooseDifficultyUI();\n clickButton(testUI, 1, \"easy\");\n clickButton(testUI, 2, \"medium\");\n clickButton(testUI, 3, \"hard\");\n }", "@Test\n public void testNoOpenDaysCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"18:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"23:00\");\n window.button(\"addStoreBtn\").click();\n window.optionPane().okButton().click();\n window.label(\"openDaysFalseLbl\").requireVisible();\n }", "private InstructGui() {\n }", "void gui(){\n _hasGUI = true;\n }", "@Test\n public final void testClickButton() {\n spysizedialog.getStartButton().doClick();\n }", "@Test\n public void testHandleBtnExcluir() throws Exception {\n }", "public void testExecute() {\n panel.execute();\n }", "@Test\n public void testHandleBtnAlterar() throws Exception {\n }", "@Test\n public void testWrongOpenHoursCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"00:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"00:00\"); \n window.button(\"addStoreBtn\").click();\n window.optionPane().okButton().click();\n window.label(\"openHoursFalseLbl\").requireVisible();\n }", "@Test\n\n\tpublic void testCallMain() {\n\n\t\tDABPanel.main(new String[0]);\n\n\t\tSwingUtilities.invokeLater(() -> {\n\n\t\t\tfor (Frame frame : Frame.getFrames()) {\n\n\t\t\t\tframe.dispose();\n\n\t\t\t}\n\n\t\t});\n\n\t}", "private void performDirectEdit() {\n\t}", "public void singleClick() throws Exception {\n }", "public void singleClick() throws Exception {\n }", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Before\n public void setUp() {\n synchronized (mWm.mGlobalLock) {\n spyOn(mDisplayContent);\n doNothing().when(mDisplayContent).layoutAndAssignWindowLayersIfNeeded();\n }\n }", "@Test\n public void testMousePressed() {\n System.out.println(\"mousePressed\");\n MouseEvent e = null; \n //instance.mousePressed(e);\n \n }", "@Override\n public void runTest() {\n }", "public testReformat2() {\n initComponents();\n }", "private GUI()\n {\n makeGUI();\n }", "@Test(timeout=300000)\n public void test01() throws Throwable {\n BackendTransferListener backendTransferListener0 = new BackendTransferListener((CjdbcGui) null);\n backendTransferListener0.mouseEntered((MouseEvent) null);\n }", "public void verify() {\n lblPaletteContent();\n treePaletteContentsTree();\n lblJLabel();\n btMoveUp();\n btMoveDown();\n btRemove();\n btNewCategory();\n btAddFromJAR();\n btAddFromLibrary();\n btAddFromProject();\n btResetPalette();\n btClose();\n }", "protected void setupUI() {\n\n }", "@Before\n public void setUp() throws Exception {\n Map<String, String> salesRanking = new LinkedHashMap<>();\n salesRanking.put(\"abc\", \"def\");\n salesRanking.put(\"123\", \"456\");\n salesRanking.put(\"abc\", \"456\");\n salesRanking.put(\"123\", \"def\");\n guiRobot.interact(() -> salesRankingWindow = new SalesRankingWindow(salesRanking));\n FxToolkit.registerStage(salesRankingWindow::getRoot);\n //salesRankingWindowHandle = new SalesRankingWindowHandle(salesRankingWindow.getRoot(), salesRanking);\n }", "@Test\n public void correctTextsAndLabels() {\n loadAllStartScreenReferences();\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n Assert.assertEquals(\"Title is not Start!\", \"Start\", stage.getTitle());\n Assert.assertEquals(\"GameName is Incorrect!\", \"TicTacToe Game (3x3)\", gameNameText.getText());\n Platform.runLater(() -> clickOn(startGameButton));\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n settingPlayers();\n loadAllMainScreenReferences();\n Assert.assertEquals(\"Title is not Main!\", \"Main\", stage.getTitle());\n Assert.assertEquals(\"Instruction Label is incorrect!\", \"You go first !\",\n instructionLabel.getText());\n Platform.runLater(() -> clickOn(buttonFour));\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n Assert.assertEquals(\"Instruction Label did not change!\", \"Nice, choose one more!\",\n instructionLabel.getText());\n Platform.runLater(() -> clickOn(leaveButton));\n\n WaitForAsyncUtils.waitForFxEvents(); // waiting for change\n\n Assert.assertEquals(\"Title is not Start!\", \"Start\", stage.getTitle());\n }", "@Test\n public void testMouseEntered() {\n System.out.println(\"mouseEntered\");\n MouseEvent e = null; \n //instance.mouseEntered(e);\n \n }", "@Override\n public void test() {\n \n }", "@Test\r\n\tpublic void testButtonPressedSafety() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tvend.enableSafety();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n public void testInit() {\n CommandScheduler.getInstance().cancelAll();\n //left_belt.set(ControlMode.PercentOutput,0.5);\n }", "private Boolean setUp() {\n\t\twhile(!this.menu());\n\t\treturn true;\n\t}", "@Test\n\tpublic void argumentTest() {\n\t\tSelectionController selectionController = new SelectionController();\n\t\ttry {\n\t\t\tselectionController.select(null);\n\t\t\tAssert.fail(\"The new selection was null\");\n\t\t} catch (NullPointerException e) {\n\t\t}\n\n\t\ttry {\n\t\t\tselectionController.unselect(null);\n\t\t\tAssert.fail(\"The new unselection was null\");\n\t\t} catch (NullPointerException e) {\n\t\t}\n\n\t\ttry {\n\t\t\tselectionController.reselect(null);\n\t\t\tAssert.fail(\"The new reselection was null\");\n\t\t} catch (NullPointerException e) {\n\t\t}\n\t}", "@Test\n \tpublic void testFocusHandling() throws FactoryException {\n \n \t\tMainUI ui = new MainUI();\n \t\tButtonPanel bp = new ButtonPanel();\n \t\tui.withModelInteractor(pi).withButtonPanel(bp);\n \t\tRobot robot = BasicRobot.robotWithCurrentAwtHierarchy();\n \n \t\tui.initialize();\n \t\tui.start();\n \t\tbp.start();\n \n \t\t// perform tab key press and wait until it took place\n \t\trobot.pressAndReleaseKey(KeyEvent.VK_TAB);\n \t\trobot.waitForIdle();\n \n \t\t// perform left key press and wait until it took place\n \t\trobot.pressAndReleaseKey(KeyEvent.VK_LEFT);\n \t\trobot.waitForIdle();\n \n \t\t// verify that the game registered the left key press and that it didn't\n \t\t// lose focus\n \t\tverify(pi).left();\n \t\tassertTrue(ui.isFocusOwner());\n \n \t}", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n JDayChooser jDayChooser0 = new JDayChooser();\n SystemColor systemColor0 = SystemColor.controlLtHighlight;\n systemColor0.getColorSpace();\n jDayChooser0.setWeekdayForeground(systemColor0);\n boolean boolean0 = false;\n jDayChooser0.setDayBordersVisible(false);\n System.setCurrentTimeMillis(4294977024L);\n List<Locale.LanguageRange> list0 = null;\n ImageNode imageNode0 = new ImageNode();\n HelpSet helpSet0 = new HelpSet();\n DefaultHelpModel defaultHelpModel0 = new DefaultHelpModel(helpSet0);\n JHelp jHelp0 = new JHelp(defaultHelpModel0);\n BasicHelpUI basicHelpUI0 = new BasicHelpUI(jHelp0);\n // Undeclared exception!\n try { \n imageNode0.remove((Object) basicHelpUI0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // javax.help.plaf.basic.BasicHelpUI@23af518c is not a GraphicsNode\n //\n verifyException(\"org.apache.batik.gvt.CompositeGraphicsNode\", e);\n }\n }", "public void test5() {\n Log.d(TAG, \"BackupRestoreTest test5 : test for person_data ui changed\");\n boolean result = false;\n\n mSolo.clickOnText(getActivity().getText(R.string.backup_personal_data).toString());\n sleep(2000);\n ListActivity la = (ListActivity) mSolo.getCurrentActivity();\n while (la.getListAdapter().getCount() == 0) {\n Log.d(TAG, \"BackupRestoreTest test5 : sleep = \");\n sleep(1000);\n }\n sleep(1000);\n result = mSolo.searchButton(getActivity().getText(R.string.selectall).toString());\n sleep(1000);\n if (!result) {\n result = mSolo.searchButton(getActivity().getText(R.string.unselectall).toString());\n sleep(1000);\n mSolo.clickOnText(getActivity().getText(R.string.selectall).toString());\n }\n sleep(1000);\n mSolo.clickOnView(la.getListView().getChildAt(0));\n sleep(1000);\n View configView = (View) mSolo.getView(R.id.setting);\n mSolo.clickOnView(configView);\n sleep(1000);\n result = mSolo.searchText(getActivity().getText(R.string.contact_module).toString());\n assertTrue(result);\n sleep(1000);\n /*mSolo.clickOnText(getActivity().getText(R.string.contact_phone).toString());\n sleep(1000);*/\n mSolo.clickOnText(getActivity().getText(R.string.btn_ok).toString());\n sleep(1000);\n mSolo.goBack();\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void interactWhenSteppingOn() {\r\n\t\t\r\n\t}", "private test5() {\r\n\t\r\n\t}", "public void testMainMenu() {\n // open and close New Project wizard\n NewProjectWizardOperator.invoke().close();\n\n //workaround for issue 166989\n if (System.getProperty(\"os.name\").equals(\"Mac OS X\")) {\n try {\n new NbDialogOperator(\"Warning\").close();\n } catch (TimeoutExpiredException e) {\n }\n }\n }", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "@Test\n public void buttonOne_initiates_game_matching_shapes() {\n\n }", "@Test\n\tpublic void test() {\n\t\tJFrame frame = new JFrame(\"My Screen\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(1000, 1000);\n\t\t\n\t\t//Create a dashboard\n\t\tGameDashboard dashboard = new GameDashboard();\n\t\t\n\t\t//Add a button to the dashboard\n\t\tdashboard.addButton(\"b1\", \"button1\", 100, 60, 10, 10);\n\t\t\n\t\t//Set the dashboard background color to red\n\t\tdashboard.setBackground(Color.RED);\n\t\t\n\t\t//Add the dashboard to the frame window\n\t\tframe.getContentPane().add(dashboard);\n\t\tframe.setVisible(true);\n\t\t\n\t\t//Flip the visibility status of the button 10 times.\n\t\tfor (int i = 0; i< 10; i++) {\n\t\t\tdashboard.flipStatus(\"b1\");\n\t\t\tSleeper.sleep(200);\n\t\t}\n\n\t}", "@Override\r\n\tprotected void onUnitSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"unit button implementation\");\r\n\t}", "boolean invokeOperation() {\n return false;\n }", "@Test(timeout=300000)\n public void test11() throws Throwable {\n ControllerTransferListener controllerTransferListener0 = new ControllerTransferListener((CjdbcGui) null);\n controllerTransferListener0.mousePressed((MouseEvent) null);\n }", "@Override\r\n\tprotected void initUI() {\n\r\n\t}", "@Test\n void test() {\n Game g = init(\"gen_2p_02\");\n List<Player> players = g.getData().getPlayers();\n wrappedIllegalCommand(g, players.get(0), \"tool 6\");\n wrappedLegalCommand(g, players.get(0), \"pick 1\");\n assertTrue(g.isUndoAvailable());\n wrappedLegalCommand(g, players.get(0), \"tool 6\");\n assertFalse(g.isUndoAvailable());\n lightestShade(g, players);\n notLightestShade(g, players);\n }", "@Override\r\n public void updateUI() {\r\n }", "public void testGetButton() {\n\t\tassertEquals(this.myButton.getJComponent(),this.myButton.getButton());\n\t}", "public boolean method_218() {\r\n return false;\r\n }", "private void updateGUIStatus() {\r\n\r\n }", "@Test\r\n\tpublic void TC101() {\r\n\t\t\r\n\t\t// 1. User opens the JBrick application\r\n\t\t// => The Code Frame has one file open in the code frame (center) and a status pane (bottom)\r\n\t\t// (No file has been opened before hand, this is the equivalent to opening the application for the first time.)\r\n\t\t\r\n\t\tMainWindow jbricks = StartupFunctions.newJBricksInstance(\"JBricks - TC101\");\r\n\t\tComponent editorPane = ContainerFunctions.getEditorPane(jbricks);\r\n\t\tComponent statusPane = ContainerFunctions.getStatusPane(jbricks);\r\n\t\t\r\n\t\tassertTrue(editorPane.getLocationOnScreen().getY() < statusPane.getLocationOnScreen().getY());\r\n\t\t\r\n\t}", "public void control() {\n\r\n\t}", "@Override\n\tpublic void homeTestRun() {\n\t\t\n\t}", "public abstract void pickUp();", "@Test\n public void testA_initialState() {\n write(\"marting\");\n clickOn(\"#signInPWD\");\n write(\"Aa12345!\");\n clickOn(\"#signInBtn\");\n verifyThat(\"#RecipeView\", isVisible());\n clickOn(\"#btnShowMenus\");\n verifyThat(\"#windowMenu\", isVisible());\n menuTable = lookup(\"#menuTable\").queryTableView();\n verifyThat(\"#btnDeleteMenu\", isDisabled());\n verifyThat(\"#btnCreateMenu\", isEnabled());\n }", "protected GuiTestObject okbutton() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"okbutton\"));\n\t}", "@Test(groups ={Slingshot,Regression})\n\tpublic void verifyUsertable() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify AddnewView Button Overlay\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.Verifyuserlistindb(userProfile);\n\t}", "public void testUI() throws Throwable {\n GameSetupFragment fragPre = GameSetupFragment.newInstance();\n Fragment fragPost = startFragment(fragPre, \"1\");\n assertNotNull(fragPost);\n\n //check that passing string argument to fragment creates adapter as expected\n\n //4x4 should give 16 in adapter\n GameFragment gameFragPre = GameFragment.newInstance(\"4x4\");\n final GameFragment gameFragPost = (GameFragment) startFragment(gameFragPre, \"2\");\n assertNotNull(gameFragPost);\n\n int numCubes = gameFragPost.cubeGrid.getAdapter().getCount();\n assertEquals(16, numCubes);\n\n //check that no more than two cubes are ever selected\n runTestOnUiThread(new Runnable() {\n @Override\n public void run() {\n gameFragPost.cubeGrid.performItemClick(null, 2, 0);\n\n int selectedCount = ((CubeView.Adapter)gameFragPost.cubeGrid.getAdapter()).getSelectedCount();\n assertEquals(1, selectedCount); //1 cube selected after 1 press\n\n gameFragPost.itemClick.onItemClick(null, null, 0, 0);\n gameFragPost.itemClick.onItemClick(null, null, 4, 0);\n gameFragPost.itemClick.onItemClick(null, null, 9, 0);\n selectedCount = ((CubeView.Adapter)gameFragPost.cubeGrid.getAdapter()).getSelectedCount();\n assertEquals(2, selectedCount); //2 cubes selected after several more presses\n }\n });\n }", "@Test\r\n\tpublic final void testGetSelectedElement() {\r\n\t\tassertNull(listener.getSelectedElement());\r\n\t}", "public void updateUI()\n\t{\n\t\tif( isRunning() == false) \n\t\t{\n\t\t\tupdateButton(\"Run\");\n\t\t\tbutton.setClickable(true);\n\t\t\tupdateTextView(Feedback.getMessage(Feedback.TYPE.NEW_TEST, null));\n\t\t}else\n\t\t{\n\t\t\tbutton.setClickable(true);\n\t\t\tupdateButton( \"Stop\" );\n\t\t\tupdateTextView(\"Tests are running.\");\n\n\t\t}\n\t}", "@Override public void action() {\n //Do Nothing\n assert(checkRep());\n }", "public void testAccessComponents() throws Exception\n {\n executeScript(SCRIPT);\n assertNotNull(\"Cannot access button\", builderData\n .getComponentHandler(\"dlgOkButton\"));\n assertNotNull(\"Cannot access label\", builderData\n .getWidgetHandler(\"label\"));\n }", "@Override\n public void initGUI() {\n\n }", "private DungeonBotsMain() {\n\t\t// Does nothing.\n\t}", "@Test\n\tpublic void testUndo()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Test(timeout = 4000)\n public void test47() throws Throwable {\n JYearChooser jYearChooser0 = new JYearChooser();\n JDayChooser jDayChooser0 = new JDayChooser(true);\n jDayChooser0.setEnabled(true);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n KeyEvent keyEvent0 = new KeyEvent(jDayChooser0, 3, (-1609L), 1359, 34, 'E');\n KeyEvent keyEvent1 = new KeyEvent(jYearChooser0, 34, 64, 3, 35, 'x');\n jDayChooser0.keyPressed(keyEvent1);\n jDayChooser0.setDay(34);\n JDayChooser.DecoratorButton jDayChooser_DecoratorButton0 = jDayChooser0.new DecoratorButton();\n Button button0 = null;\n try {\n button0 = new Button();\n fail(\"Expecting exception: HeadlessException\");\n \n } catch(HeadlessException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.awt.GraphicsEnvironment\", e);\n }\n }", "@Test(timeout=300000)\n public void test05() throws Throwable {\n BackendTransferListener backendTransferListener0 = new BackendTransferListener((CjdbcGui) null);\n backendTransferListener0.mouseReleased((MouseEvent) null);\n }", "public @Override void actionPerformed(ActionEvent e) {\n assert false;\n }", "@Override\n\tpublic void test() {\n\t\t\n\t}", "@Test\n\tpublic void testInfobox() {\t\n\t\tTextArea info = (TextArea) s.lookup(\"#T6_infobox_TextArea\");\n\t\tTextArea compInfo = (TextArea) s.lookup(\"#T6_composite_infobox_TextArea\");\n\t\tTextArea parmInfo = (TextArea) s.lookup(\"#T6_parm_infobox_TextArea\");\n\t\tTextArea pasrmInfo = (TextArea) s.lookup(\"#T6_pasrm_infobox_TextArea\");\n\t\tTextArea ldInfo = (TextArea) s.lookup(\"#T6_ld_infobox_TextArea\");\n\t\tclickOn(\"#Main_compatibility_Button\");\n\t\tmoveTo(\"#T6_more_info_Text\");\n\t\tif (!info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(1);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_composite_Text\");\n\t\tif (info.isVisible()||!compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(2);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_parm_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||!parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(3);\n\t\t\tassertTrue(false);\n\t\t\t\n\t\t}\n\t\tmoveTo(\"#T6_pasrm_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||!pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(5);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_ld_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||!ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(5);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_generate_Button\");\n\t\t// if any infobox is shown fail test case\n\t\tassertFalse(info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible());\n\t\t\n\t}", "public void interact() {\r\n\t\t\r\n\t}", "@SuppressWarnings(\"EmptyMethod\")\n\t@Override\n public boolean performClick() {\n return super.performClick();\n }", "@Test\n\tpublic void test3_checkButtons() throws GeneralLeanFtException{\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tSystem.out.println(\"Test 3 - Check Buttons Started\");\n\t\t\t\n\t\t\t//Check that the Main window should exist\n\t\t\tassertTrue(mySet.appExistsorNot());\t\t\t\n\t\t\t\n\t\t\t//Toolbar Object\n\t\t\tToolBar toolbar = mySet.OR.MainWindow().ToolBar(); \n\n\t\t\t// Clicking the JButton displays the required frame\n\t\t\ttoolbar.getButton(\"JButton\").press();\n\t\t\t\n\t\t\t//Getting the Image Buttons in the Panel\n\t\t\tButton[] imgButtons = mySet.OR.MainWindow().ImageButtonsPanelUiObject()\n\t\t\t .findChildren(Button.class,new ButtonDescription.Builder().nativeClass(\"javax.swing.JButton\").build());\n\t\t\t \n\t\t\t//There should be 3 Image Buttons\n\t\t\tassertEquals(3, imgButtons.length);\n\t\t\t\n\t\t\t//Trigger the Mouse Entered Event for the each button in the Panel\t\t\t\t\n\t\t\tRobot robo = new Robot();\t\t\t\n\t\t\tfor(Button btn : imgButtons)\n\t\t\t{\t\t\t\t\n\t\t\t\trobo.mouseMove(btn.getAbsoluteLocation().x,btn.getAbsoluteLocation().y);\n\t\t\t\tThread.sleep(500);\n\t\t\t}\n\t\t\t\n\t\t\t//Store the Original Dimension\n\t\t\tDimension orginalDimension = mySet.OR.MainWindow().ImageButtonsPanelUiObject().getSize();\n\t\t\t\n\t\t\t//Increase the Size by Selecting the Pad Radio Button\n\t\t\tmySet.OR.MainWindow().Pad10RadioButton().click();\n\t\t\t\n\t\t\t//Verify that the radio button is checked\n\t\t\tassertTrue(mySet.OR.MainWindow().Pad10RadioButton().isChecked()==true);\n\t\t\t\n\t\t\t//Store the New Dimension\n\t\t\tDimension newDimension = mySet.OR.MainWindow().ImageButtonsPanelUiObject().getSize();\n\t\t\t\n\t\t\t//Assert that Height Increases and Width Decreases\n\t\t\tassertTrue((newDimension.width < orginalDimension.width) && (newDimension.height > orginalDimension.height));\n\t\t\t\n\t\t\t//Click the Enabled Check box\n\t\t\tmySet.OR.MainWindow().EnabledCheckBox().click();\n\t\t\t\n\t\t\t//Check that the Check Box has been unchecked \n\t\t\tassertTrue(mySet.OR.MainWindow().EnabledCheckBox().getState()==CheckedState.UNCHECKED);\n\t\t\t\n\t\t\t//Check that all Image Buttons are disabled\n\t\t\tfor(Button btn : imgButtons)\n\t\t\t{\n\t\t\t\tassertTrue(btn.isEnabled()==false);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\t\t\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Unexpected Error Occurred. Message = \" + e.getMessage() + \"Stack Trace = \");\n\t\t\te.printStackTrace();\n\t\t\tassertTrue(false);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tSystem.out.println(\"Test 3 - Check Buttons Finished\");\n\t\t}\n\t\t\n\t}", "private static void borrow() {\n\t\tnew BorrowBookUI(new borrowBookControl()()).run();\t// method changes BorrowBookControl to borrowBookControl()\t\r\n\t}", "private void initUI() {\n }", "@Test\n\tpublic void testGetFrame() {\n\t}", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n SystemColor systemColor0 = SystemColor.textText;\n JDayChooser jDayChooser0 = new JDayChooser();\n JDayChooser.DecoratorButton jDayChooser_DecoratorButton0 = jDayChooser0.new DecoratorButton();\n jDayChooser_DecoratorButton0.isFocusable();\n jDayChooser_DecoratorButton0.getIconTextGap();\n jDayChooser0.maxDayCharacters = 15;\n MultiButtonUI multiButtonUI0 = new MultiButtonUI();\n multiButtonUI0.paint((Graphics) null, jDayChooser0);\n // Undeclared exception!\n try { \n multiButtonUI0.getMinimumSize(jDayChooser_DecoratorButton0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test\n public void createValidFlightFromGUI() {\n JButton buttonAddFlight = addFlight.getButtonAddFlight();\n\n addFlight.getTxtflightname().setText(\"TEST_FLIGHT_NAME\");\n addFlight.getTxtdate().setDate(new Date(2021, 3, 30));\n addFlight.getTxtdtime().setText(\"TEST_DEPART_TIME\");\n addFlight.getTxtarrtime().setText(\"TEST_ARRIVAL_TIME\");\n addFlight.getTxtflightcharge().setText(\"TEST_FLIGHT_CHARGE\");\n addFlight.getTxtsource().setSelectedIndex(0);\n addFlight.getTxtdepart().setSelectedIndex(0);\n\n Mockito.when(mockDAO.createFlight(Mockito.any(Flight.class))).thenReturn(true);\n buttonAddFlight.doClick();\n robot.keyPress(KeyEvent.VK_ENTER);\n robot.keyRelease(KeyEvent.VK_ENTER);\n Mockito.verify(mockDAO).createFlight(Mockito.any(Flight.class));\n }", "public static void dummyTest(){}", "public static void dummyTest(){}" ]
[ "0.60514706", "0.60360235", "0.59906286", "0.5930033", "0.5876055", "0.58512706", "0.5841651", "0.5800138", "0.5799241", "0.57862616", "0.57823247", "0.57692087", "0.57574916", "0.5750775", "0.57017976", "0.56999874", "0.5693437", "0.56933415", "0.5689977", "0.56804156", "0.5679609", "0.5678187", "0.56657904", "0.5665425", "0.5647315", "0.5644488", "0.5643679", "0.56421405", "0.564099", "0.5639252", "0.56344616", "0.56344616", "0.56341046", "0.56341046", "0.5623851", "0.5620208", "0.5586453", "0.5578546", "0.5567309", "0.55655897", "0.5561708", "0.5561101", "0.55594957", "0.55566216", "0.555646", "0.5556345", "0.55516756", "0.55514526", "0.55512303", "0.5547664", "0.5545324", "0.5540943", "0.55292416", "0.5525354", "0.5524039", "0.5521239", "0.55170304", "0.5514159", "0.5503215", "0.5500662", "0.5499616", "0.54945505", "0.54868543", "0.5485366", "0.5473932", "0.5471319", "0.5466224", "0.54636216", "0.5461093", "0.5458297", "0.545817", "0.54498696", "0.54475516", "0.54459614", "0.5445348", "0.54436326", "0.54415107", "0.5440298", "0.5432614", "0.5431657", "0.5431128", "0.5424094", "0.54182553", "0.54181814", "0.5417654", "0.54162323", "0.54150367", "0.5413038", "0.5412878", "0.5406418", "0.5405988", "0.5399636", "0.5398816", "0.5392472", "0.5390601", "0.53859633", "0.53836673", "0.5383091", "0.5381641", "0.53810304", "0.53810304" ]
0.0
-1
note can't fully test this method as it depends on GUI vars and state and can draw too
@Test public void testCreateNewRoi() { proc = new ByteProcessor(1,3,new byte[] {7,5,3},null); ip = new ImagePlus("America's Hardware Store",proc); // this is the best that can be done ... ip.createNewRoi(5,10); assertNotNull(ip.getRoi()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "private void updateGUIStatus() {\r\n\r\n }", "@Override\n public void draw()\n {\n }", "void updateDrawing() {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n }", "@Override\r\n public void draw() {\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public void initGui() {\r\n boolean var10000 = method_1147();\r\n this.buttonList.clear();\r\n this.field_985 = this.height / 4 - 52;\r\n boolean var1 = var10000;\r\n this.field_986 = this.height - 29;\r\n bcb var10001 = new bcb;\r\n var10001.method_748(1, this.width / 2 - 98, this.method_1143(1), 60, 20, String.valueOf(class_687.field_2947));\r\n this.field_972 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(2, this.width / 2 + 102, this.method_1143(1), 60, 20, String.valueOf(class_687.field_2946));\r\n this.field_973 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(3, this.width / 2 + 2, this.method_1143(2), 60, 20, String.valueOf(class_687.field_2948));\r\n this.field_974 = var10001;\r\n class_157 var4 = new class_157;\r\n int var10004 = this.width / 2 + 2;\r\n int var10005 = this.method_1143(3);\r\n String[] var3 = field_989;\r\n var4.method_833(50, var10004, var10005, 150, 20, \"X Pos: \", 1.0F, (float)(this.width - 25), (float)class_687.field_2949, true);\r\n this.field_979 = var4;\r\n var4 = new class_157;\r\n var4.method_833(60, this.width / 2 + 2, this.method_1143(4), 150, 20, \"Y Pos: \", 1.0F, (float)(this.height - 8), (float)class_687.field_2950, true);\r\n this.field_980 = var4;\r\n var10001 = new bcb;\r\n var10001.method_748(4, this.width / 2 + 2, this.method_1143(5), 60, 20, String.valueOf(class_687.field_2951));\r\n this.field_975 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(5, this.width / 2 + 2, this.method_1143(6), 60, 20, String.valueOf(class_687.field_2952));\r\n this.field_976 = var10001;\r\n var4 = new class_157;\r\n var4.method_833(70, this.width / 2 + 2, this.method_1143(7), 150, 20, \"x\", 0.0F, 10.0F, (float)class_687.field_2953, false);\r\n this.field_981 = var4;\r\n var10001 = new bcb;\r\n var10001.method_748(100, this.width / 2 - 155, this.field_986, 150, 20, \"Sauvegarder\");\r\n this.field_977 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(110, this.width / 2 + 5, this.field_986, 150, 20, \"Annuler\");\r\n this.field_978 = var10001;\r\n this.buttonList.add(this.field_972);\r\n this.buttonList.add(this.field_973);\r\n this.buttonList.add(this.field_974);\r\n this.buttonList.add(this.field_979);\r\n this.buttonList.add(this.field_980);\r\n this.buttonList.add(this.field_975);\r\n this.buttonList.add(this.field_976);\r\n this.buttonList.add(this.field_981);\r\n this.buttonList.add(this.field_977);\r\n this.buttonList.add(this.field_978);\r\n if(!var1) {\r\n int var2 = class_689.method_3977();\r\n ++var2;\r\n class_689.method_3975(var2);\r\n }\r\n\r\n }", "@Override\n public void updateDrawState(TextPaint ds) {\n }", "@Override\n public void drawScreen(int n, int n2) {\n void mouseY;\n void mouseX;\n super.drawScreen((int)mouseX, (int)mouseY);\n float[] hsb = Color.RGBtoHSB(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), null);\n Color color = Color.getHSBColor(hsb[0], Float.intBitsToFloat(Float.floatToIntBits(6.4887953f) ^ 0x7F4FA436), Float.intBitsToFloat(Float.floatToIntBits(4.629535f) ^ 0x7F142527));\n Gui.drawRect((int)this.getX(), (int)this.getY(), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 14), (int)new Color(40, 40, 40).getRGB());\n Gui.drawRect((int)(this.getX() + this.getWidth() - 12), (int)(this.getY() + 2), (int)(this.getX() + this.getWidth() - 2), (int)(this.getY() + 12), (int)this.setting.getValue().getRGB());\n RenderUtils.drawOutline(this.getX() + this.getWidth() - 12, this.getY() + 2, this.getX() + this.getWidth() - 2, this.getY() + 12, Float.intBitsToFloat(Float.floatToIntBits(2.7144578f) ^ 0x7F2DB9AD), new Color(20, 20, 20).getRGB());\n if (this.open) {\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 14), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 28), (int)new Color(40, 40, 40).getRGB());\n float i = Float.intBitsToFloat(Float.floatToIntBits(1.3378998E38f) ^ 0x7EC94E07);\n while (i + Float.intBitsToFloat(Float.floatToIntBits(13.8331995f) ^ 0x7EDD54C9) < Float.intBitsToFloat(Float.floatToIntBits(0.07128618f) ^ 0x7F51FE7D)) {\n RenderUtils.drawRecta((float)(this.getX() + 2) + i, this.getY() + 16, Float.intBitsToFloat(Float.floatToIntBits(7.249331f) ^ 0x7F67FA85), Float.intBitsToFloat(Float.floatToIntBits(1.7045807f) ^ 0x7EEA2FB3), Color.getHSBColor(i / Float.intBitsToFloat(Float.floatToIntBits(0.115068644f) ^ 0x7F2BA91C), Float.intBitsToFloat(Float.floatToIntBits(4.3161592f) ^ 0x7F0A1DFA), Float.intBitsToFloat(Float.floatToIntBits(21.075346f) ^ 0x7E289A4F)).getRGB());\n i += Float.intBitsToFloat(Float.floatToIntBits(3.807338f) ^ 0x7E95CD0B);\n }\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 16, this.getX() + 2 + this.getWidth() - 4, this.getY() + 27, Float.intBitsToFloat(Float.floatToIntBits(2.7503529f) ^ 0x7F3005C8), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.hueWidth, this.getY() + 16, Float.intBitsToFloat(Float.floatToIntBits(5.200255f) ^ 0x7F26687D), Float.intBitsToFloat(Float.floatToIntBits(1.2665411f) ^ 0x7E921E05), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 28), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 42), (int)new Color(40, 40, 40).getRGB());\n RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 29, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(0.19645536f) ^ 0x7F792B98), new Color(255, 255, 255), color, 255, 255);\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 29, this.getX() + 2 + this.getWidth() - 4, this.getY() + 40, Float.intBitsToFloat(Float.floatToIntBits(103.69628f) ^ 0x7DCF647F), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.satWidth, this.getY() + 29, Float.intBitsToFloat(Float.floatToIntBits(7.3489017f) ^ 0x7F6B2A34), Float.intBitsToFloat(Float.floatToIntBits(0.1948352f) ^ 0x7F7782E1), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 42), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 56), (int)new Color(40, 40, 40).getRGB());\n RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 42, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(1.5246161f) ^ 0x7EF3269F), new Color(0, 0, 0), color, 255, 255);\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 42, this.getX() + 2 + this.getWidth() - 4, this.getY() + 53, Float.intBitsToFloat(Float.floatToIntBits(3.7803736f) ^ 0x7F71F1A4), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.briWidth, this.getY() + 42, Float.intBitsToFloat(Float.floatToIntBits(8.346171f) ^ 0x7E8589EB), Float.intBitsToFloat(Float.floatToIntBits(0.08925866f) ^ 0x7C86CD3F), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 56), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 70), (int)new Color(40, 40, 40).getRGB());\n this.renderAlphaBG(this.getX() + 2, this.getY() + 55, this.alphaBG);\n RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 55, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(0.13166903f) ^ 0x7F36D43F), new Color(0, 0, 0), color, 0, 255);\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 55, this.getX() + 2 + this.getWidth() - 4, this.getY() + 66, Float.intBitsToFloat(Float.floatToIntBits(19.69502f) ^ 0x7E9D8F67), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.alphaWidth, this.getY() + 55, Float.intBitsToFloat(Float.floatToIntBits(6.702013f) ^ 0x7F5676E4), Float.intBitsToFloat(Float.floatToIntBits(0.13652846f) ^ 0x7F3BCE1E), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 70), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 84), (int)new Color(40, 40, 40).getRGB());\n Europa.FONT_MANAGER.drawString(\"Rainbow\", this.getX() + 3, (float)(this.getY() + 78) - Europa.FONT_MANAGER.getHeight() / Float.intBitsToFloat(Float.floatToIntBits(0.8730777f) ^ 0x7F5F8205), Color.WHITE);\n Gui.drawRect((int)(this.getX() + this.getWidth() - 12), (int)(this.getY() + 72), (int)(this.getX() + this.getWidth() - 2), (int)(this.getY() + 82), (int)new Color(30, 30, 30).getRGB());\n if (this.setting.getRainbow().booleanValue()) {\n RenderUtils.prepareGL();\n GL11.glShadeModel((int)7425);\n GL11.glEnable((int)2848);\n GL11.glLineWidth((float)Float.intBitsToFloat(Float.floatToIntBits(0.2713932f) ^ 0x7EAAF40D));\n GL11.glBegin((int)1);\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.015137452f) ^ 0x7F070313)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(1.1948546f) ^ 0x7CE7F0FF)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.36357376f) ^ 0x7DC52657)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8), (double)(this.getY() + 80));\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.015521388f) ^ 0x7F014D6B)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.01025841f) ^ 0x7F5712E4)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.10675689f) ^ 0x7EA5A35B)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8 + 4), (double)(this.getY() + 74));\n GL11.glEnd();\n GL11.glBegin((int)1);\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.009417259f) ^ 0x7F654AD9)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.07014828f) ^ 0x7EF0A9E7)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.013465701f) ^ 0x7F239F3E)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8), (double)(this.getY() + 80));\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.0155056f) ^ 0x7F010B33)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.011914493f) ^ 0x7F3C3501)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.012230922f) ^ 0x7F376434)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 10), (double)(this.getY() + 77));\n GL11.glEnd();\n RenderUtils.releaseGL();\n }\n }\n Gui.drawRect((int)(this.getX() - 1), (int)this.getY(), (int)this.getX(), (int)(this.getY() + 84), (int)new Color(30, 30, 30).getRGB());\n Gui.drawRect((int)(this.getX() + this.getWidth()), (int)this.getY(), (int)(this.getX() + this.getWidth() + 1), (int)(this.getY() + 84), (int)new Color(30, 30, 30).getRGB());\n Europa.FONT_MANAGER.drawString(this.setting.getName(), this.getX() + 3, this.getY() + 3, Color.WHITE);\n }", "public void drawNonEssentialComponents(){\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n public void draw() {\n }", "@Override\n\tpublic void draw() {\n\t}", "@Override\n\tpublic void redraw() {\n\t\t\n\t}", "public DrawCanvas(DrawConsoleUI drawConsole) {\n /*Call the super constructor and set the background colour*/\n super();\n this.setBackground(Color.white);\n\n /*Set the size of this component*/\n this.setPreferredSize(new Dimension(970,800));\n\n /*Enable autoscroll for this panel, when there is a need to\n update component's view*/\n this.setAutoscrolls(true);\n\n /*Construct a list that will hold the shapes*/\n //shapesBuffer = Collections.synchronizedList(new ArrayList());\n labelBuffer = Collections.synchronizedList(new ArrayList());\n\n /*Hold a reference to the DrawConsoleUI class*/\n drawConsoleUI = drawConsole;\n\n \n /***\n * Register Listeners to the canvas\n */\n\n /*Mouse move*/\n this.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseMoved(java.awt.event.MouseEvent evt) {\n //panelMouseMoved(evt);\n }//end mouse motion moved\n\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n try {\n panelMouseDragged(evt);\n } catch (Exception e) {e.getMessage(); }\n }//end mouse motion Dragged\n });\n\n /*Mouse Clicked*/\n this.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n try {\n panelMouseClicked(evt);\n } catch (Exception e) {e.getMessage(); }\n }//end\n\n /*Mouse Pressed*/\n public void mousePressed(java.awt.event.MouseEvent evt) {\n try {\n panelMousePressed(evt);\n } catch (Exception e) {e.getMessage(); }\n }//end\n\n /*Mouse Released*/\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n try {\n panelMouseReleased(evt);\n } catch (Exception e) {e.getMessage(); }\n }//end\n });\n\n\n }", "public void draw() {\n \n // TODO\n }", "public void drawButtons(){\r\n\t\tGuiBooleanButton showDirection = new GuiBooleanButton(1, 10, 20, 150, 20, \"Show Direction\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowdir(), \"showdir\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showdir\").split(\";\"));\r\n\t\tGuiChooseStringButton dirpos = new GuiChooseStringButton(2, width/2+50, 20, 150, 20, \"Dir-Position\", GuiPositions.getPosList(), \"posdir\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosDir()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showFPS= new GuiBooleanButton(3, 10, 45, 150, 20, \"Show FPS\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowfps(), \"showfps\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showfps\").split(\";\"));\r\n\t\tGuiChooseStringButton fpspos = new GuiChooseStringButton(4, width/2+50, 45, 150, 20, \"FPS-Position\", GuiPositions.getPosList(), \"posfps\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosFPS()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showCoor = new GuiBooleanButton(5, 10, 70, 150, 20, \"Show Coor\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowcoor(), \"showcoor\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showcoor\").split(\";\"));\r\n\t\tGuiChooseStringButton coorpos = new GuiChooseStringButton(6, width/2+50, 70, 150, 20, \"Coor-Position\", GuiPositions.getPosList(), \"poscoor\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosCoor()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showworldage = new GuiBooleanButton(7, 10, 95, 150, 20, \"Show WorldAge\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowWorldAge(), \"showworldage\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showworldage\").split(\";\"));\r\n\t\tGuiChooseStringButton worldagepos = new GuiChooseStringButton(8, width/2+50, 95, 150, 20, \"WorldAge-Position\", GuiPositions.getPosList(), \"posworldage\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosWorldAge()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\t\r\n\t\tGuiBooleanButton showFriendly = new GuiBooleanButton(7, 10, 120, 150, 20, \"Mark friendly spawns\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowingFriendlySpawns(), \"showfmobspawn\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showfriendlymobspawn\").split(\";\"));\r\n\t\tGuiBooleanButton showAggressiv = new GuiBooleanButton(7, 10, 145, 150, 20, \"Mark aggressiv spawns\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowingAggressivSpawns(), \"showamobspawn\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showaggressivmobspawn\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton dynamic = new GuiBooleanButton(7, width/2+50, 120, 150, 20, \"dynamic selection\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isDynamic(), \"dynamichsel\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.dynamicselection\").split(\";\"));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tGuiButton back = new GuiButton(9, width/2-100,height-50 , \"back to game\");\r\n\t\t\r\n\t\tbuttonList.add(showworldage);\r\n\t\tbuttonList.add(worldagepos);\r\n\t\tbuttonList.add(dirpos);\r\n\t\tbuttonList.add(fpspos);\r\n\t\tbuttonList.add(coorpos);\r\n\t\tbuttonList.add(showCoor);\r\n\t\tbuttonList.add(showFPS);\r\n\t\tbuttonList.add(showDirection);\r\n\t\t\r\n\t\tbuttonList.add(showFriendly);\r\n\t\tbuttonList.add(showAggressiv);\r\n\t\tbuttonList.add(dynamic);\r\n\t\t\r\n\t\tbuttonList.add(back);\r\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\r\n public void updateUI() {\r\n }", "public void draw(){\n\t\tif(!visible) return;\n\n\t\twinApp.pushStyle();\n\t\twinApp.style(G4P.g4pStyle);\n\t\tPoint pos = new Point(0,0);\n\t\tcalcAbsPosition(pos);\n\n\t\t// Draw selected option area\n\t\tif(border == 0)\n\t\t\twinApp.noStroke();\n\t\telse {\n\t\t\twinApp.strokeWeight(border);\n\t\t\twinApp.stroke(localColor.txfBorder);\n\t\t}\n\t\tif(opaque)\n\t\t\twinApp.fill(localColor.txfBack);\n\t\telse\n\t\t\twinApp.noFill();\n\t\twinApp.rect(pos.x, pos.y, width, height);\n\t\t\n\t\t// Draw selected text\n\t\twinApp.noStroke();\n\t\twinApp.fill(localColor.txfFont);\n\t\twinApp.textFont(localFont, localFont.getSize());\n\t\twinApp.text(text, pos.x + PADH, pos.y -PADV +(height - localFont.getSize())/2, width - 16, height);\n\n\t\t// draw drop down list\n\t\twinApp.fill(winApp.color(255,255));\n\t\tif(imgArrow != null)\n\t\t\twinApp.image(imgArrow, pos.x + width - imgArrow.width - 1, pos.y + (height - imgArrow.height)/2);\n\t\tif(expanded == true){\n\t\t\tGOption opt;\n\t\t\twinApp.noStroke();\n\t\t\twinApp.fill(localColor.txfBack);\n\t\t\twinApp.rect(pos.x,pos.y+height,width,nbrRowsToShow*height);\n\n\t\t\tfor(int i = 0; i < optGroup.size(); i++){\n\t\t\t\topt = optGroup.get(i);\n\t\t\t\tif(i >= startRow && i < startRow + nbrRowsToShow){\n\t\t\t\t\topt.visible = true;\n\t\t\t\t\topt.y = height * (i - startRow + 1);\n\t\t\t\t\topt.draw();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\topt.visible = false;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Draw box round list\n\t\t\tif(border != 0){\n\t\t\t\twinApp.strokeWeight(border);\n\t\t\t\twinApp.stroke(localColor.txfBorder);\n\t\t\t\twinApp.noFill();\n\t\t\t\twinApp.rect(pos.x,pos.y+height,width,nbrRowsToShow*height);\n\t\t\t}\n\t\t\tif(optGroup.size() > maxRows){\n\t\t\t\tslider.setVisible(true);\n\t\t\t\tslider.draw();\n\t\t\t}\n\t\t}\n\t\twinApp.popStyle();\n\t}", "public void visualChange();", "void reDraw();", "protected abstract void draw();", "private void drawHelp(Graphics2D g2d) {\n Composite orig_comp = g2d.getComposite();\n g2d.setColor(RTColorManager.getColor(\"brush\", \"dim\")); g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.8f)); g2d.fillRect(0,0,getWidth(),getHeight()); g2d.setComposite(orig_comp);\n int base_x = 5, base_y = Utils.txtH(g2d,\"0\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Key\", \"Normal\", \"Shift\", \"Ctrl\", \"Ctrl-Shift\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"E\", \"Expand Selection\", \"Use Directed Graph\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"1 - 9\", \"Select Degree\", \"Subtract\", \"Add\", \"Intersect\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"0\", \"Select Degree > 10\", \"Subtract\", \"Add\", \"Intersect\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"R\", \"Select Cut Vertices\", \"Subtract\", \"Add\", \"Intersect\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Q\", \"Invert Selection\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"X\", \"Hide Selection\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"M\", \"Toggle Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"G\", \"Grid Layout Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Y\", \"Line Layout Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"C\", \"Circle Layout Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"T\", \"Group Nodes\", \"Align Horizontally\", \"Align Vertically\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"S\", \"Set/Clear Sticky Labels\", \"Subtract From\", \"Add To\", \"Intersect With\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"V\", \"Toggle Node Size\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"L\", \"Toggle Labels\", \"Toggle Edge Templates\", \"Toggle Node Legend\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"W\", \"Make One Hops Visible\", \"Use Directed Graph\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"N\", \"Add Note\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"A\", \"Pan Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"F\", \"Fit\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Minus (-)\", \"Zoom Out\", \"Fit\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Plus (+)\", \"Zoom In\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Cursor Keys\", \"Shift Selected Nodes\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"< >\", \"Rotate Selected Nodes\", \"15 Degs\", \"90 Degs\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"{ }\", \"Scale Selected Nodes\", \"More\", \"Even More\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"F[2-5]\", \"Save Layout To Fx\", \"Restore\", \"Delete\", \"Restore\");\n }", "public void draw() {\n \n }", "public void draw() {\n\t\tsuper.repaint();\n\t}", "public void draw()\n {\n super.draw();\n k = 0;\n traceOK = true;\n\n // Initialize n, x0, and xn in the control panel.\n nText.setText(\" \");\n x0Text.setText(\" \");\n xnText.setText(\" \");\n\n PlotFunction plotFunction = getSelectedPlotFunction();\n\n // Create the fixed-point iteration root finder.\n finder = new FixedPointRootFinder((Function) plotFunction.getFunction());\n }", "void computeDrawing() {\n if (dirtyD) {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n modelRoot.decrementNumberOfDirtyDNodes();\n dirtyD = false;\n }\n }", "@Override\r\n\tpublic void paint(float deltaTime) {\n\t\t\r\n\t}", "@Override\n public void update() {\n if (changedState) {\n selectedPosY = selection * hItemBox + yPos + hItemBox;\n selectedPosX = xPos; \n changedState = false;\n }\n }", "@Override\n\tpublic void Draw(float delta) {\n\t\t\n\t}", "public void stateChanged(ChangeEvent e){\n\r\n repaint(); // at the moment we're being pretty crude with this, redrawing all the shapes\r\n\r\n\r\n\r\n if (fDeriverDocument!=null) // if this drawing has a journal, set it for saving\r\n fDeriverDocument.setDirty(true);\r\n\r\n\r\n\r\n }", "@Override\n public void paintComponent(Graphics g)\n {\n m_g = g;\n // Not sure what our parent is doing, but this seems safe\n super.paintComponent(g);\n // Setup, then blank out with white, so we always start fresh\n g.setColor(Color.white);\n g.setFont(null);\n g.clearRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.fillRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.setColor(Color.red);\n //g.drawRect(10,10,0,0);\n //drawPoint(20,20);\n \n // Call spiffy functions for the training presentation\n m_app.drawOnTheCanvas(new ExposedDrawingCanvas(this));\n m_app.drawOnTheCanvasAdvanced(g);\n \n // ADVANCED EXERCISE: YOU CAN DRAW IN HERE\n \n // END ADVANCED EXERCISE SPACE\n \n // Clear the special reference we made - don't want to abuse this\n m_g = null;\n \n \n // Schedule the next repaint\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n m_app.repaint();\n try\n {\n Thread.sleep(100);\n }\n catch (Exception e)\n { \n \n }\n }\n }); \n }", "public void render(){\n ui.stroke(255,140,0);\r\n Random rand = new Random();\r\n int value1 = rand.nextInt(255);\r\n int value2 = rand.nextInt(255);\r\n int value3 = rand.nextInt(255);\r\n int value4 = rand.nextInt(255);\r\n ui.fill(value1,value2,value3,value4);\r\n ui.rect(x + 75 ,y + 380,200,40);\r\n String Text = \"TARGET ACQUIRED\";\r\n ui.textSize(18);\r\n ui.fill(255, 0, 0);\r\n ui.text(Text, x + 95 ,y + 407);\r\n\r\n //Create Target Aimer\r\n ui.noFill();\r\n ui.stroke(255,0,0);\r\n ui.ellipse(x + width / 2, y + height / 2, radius, radius);\r\n\r\n radius = radius + 1;\r\n if(radius>=150){\r\n radius *= -1;\r\n }\r\n }", "protected void drawGUI() {\n batch.draw(background, 0, 0);\n }", "public BasicTextUI() {\n painted = false;\n }", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public void paint() {\r\n\t\tBufferStrategy bf = base.frame.getBufferStrategy();\r\n\t\ttry {\r\n\t\t\tg = bf.getDrawGraphics();\r\n\t\t\tg.clearRect(0, 0, 1024, 768);\r\n\t\t\tg.setFont(normal);\r\n\t\t\tif (gameState == 1) {\r\n\t\t\t\tg.drawImage(playButton, playButtonXM, playButtonYM, playButtonWidthM, playButtonHeightM, this);\t\t\t\t\r\n\t\t\t}else if (gameState == 3){\r\n\t\t\t\tint weaponPosX = ((arrow2X-arrowX) /2) + arrowX - 20;\r\n\t\t\t\tint weaponPosY = arrowY - 15;\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY2ndRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY2ndRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY3rdRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY3rdRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrowX, arrowY4thRow, arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(Arrow, arrow2X, arrowY4thRow, -arrowWidth, arrowHeight, this);\r\n\t\t\t\tg.drawImage(playButton, playButtonX, playButtonY, playButtonWidth, playButtonHeight, this);\r\n\r\n\t\t\t\t//text boxes above choices\r\n\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\tg.drawString(\"Weapon\", weaponPosX, weaponPosY);\r\n\t\t\t\tg.drawString(\"Difficulty\", weaponPosX, (arrowY2ndRow - 15));\r\n\t\t\t\tg.drawString(\"Number of AI\", weaponPosX - 12, (arrowY3rdRow - 15));\r\n\t\t\t\tg.drawString(\"Number of players\", weaponPosX - 20, (arrowY4thRow - 15));\r\n\r\n\t\t\t\tif (getDifficulty() == 1){\r\n\t\t\t\t\tg.drawImage(Easy, difficultyXPos, arrowY2ndRow, difficultyWidth , arrowHeight, this);\r\n\t\t\t\t}else if (getDifficulty() == 2) {\r\n\t\t\t\t\tg.drawImage(Normal, difficultyXPos, arrowY2ndRow, difficultyWidth, arrowHeight, this);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tg.drawImage(Hard, difficultyXPos, arrowY2ndRow, difficultyWidth, arrowHeight, this);\r\n\t\t\t\t}\r\n\t\t\t\tif (getAttackStyle() == 2) {\r\n\t\t\t\t\tg.drawImage(Arrowr, weaponPosX -85, weaponPosY + 15, (arrow2X - arrowX) - 280, arrowHeight, this);\r\n\t\t\t\t}else {\r\n\t\t\t\t\t//due to the sword using all of the x positions the width is slightly different\r\n\t\t\t\t\tg.drawImage(SwordL, weaponPosX -85, weaponPosY + 15, (arrow2X - arrowX) - 300, arrowHeight, this);\r\n\t\t\t\t}\r\n\t\t\t\tint AIXPos = weaponPosX;\r\n\t\t\t\tif (AINum >= 10 && AINum<100) {\r\n\t\t\t\t\tAIXPos -=25;\r\n\t\t\t\t} else if (AINum >= 100 && AINum < 1000) {\r\n\t\t\t\t\t//the reason why this grows by 40 instead of an additional 20 is because we are not storing the variable\r\n\t\t\t\t\t//of current position anywhere so we just add another 20 onto the decrease\r\n\t\t\t\t\tAIXPos-=50;\r\n\t\t\t\t} else if (AINum >= 1000) {\r\n\t\t\t\t\tAIXPos-=75;\r\n\t\t\t\t}\r\n\t\t\t\tg.setFont(numbers);\r\n\t\t\t\tString currentNum = Integer.toString(AINum);\r\n\t\t\t\tString currentPlayerString = Integer.toString(currentPlayer);\r\n\t\t\t\tg.drawString(currentNum, AIXPos, arrowY3rdRow + 72);\r\n\t\t\t\tg.drawString(currentPlayerString, weaponPosX, arrowY4thRow + 72);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif ((!escape) && (!dead) &&(!allAIDead)) {\r\n\t\t\t\t\tg.drawImage(picture, 0, 0, base.frame.getWidth(), base.frame.getHeight(), this);\r\n\t\t\t\t\tfor (int i = 0; i < playerObject.length; i++) {\r\n\t\t\t\t\t\tint playerX = (int) playerObject[i].getX();\r\n\t\t\t\t\t\tint playerY = (int) playerObject[i].getY();\r\n\t\t\t\t\t\tg.setColor(Color.darkGray);\r\n\t\t\t\t\t\t// health bar\r\n\t\t\t\t\t\tg.fillRect(playerX, playerY - 30, 100, healthY);\r\n\t\t\t\t\t\tg.setColor(Color.red);\r\n\t\t\t\t\t\tg.fillOval(playerX, playerY, 20, 20);\r\n\t\t\t\t\t\tg.fillRect(playerX, playerY - 30, (int) (playerObject[i].getHealth()/2) , healthY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//AI\r\n\t\t\t\t\tfor (int i = 0; i < AIObject.length; i++) {\r\n\t\t\t\t\t\tif (!AIObject[i].isDead()) {\r\n\t\t\t\t\t\t\tint AIRoundedX = (int) AIObject[i].getAIX();\r\n\t\t\t\t\t\t\tint AIRoundedY = (int) AIObject[i].getAIY();\r\n\t\t\t\t\t\t\tif (AIObject[i].getColor() == null) {\r\n\t\t\t\t\t\t\t\tint red = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tint green = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tint blue = generator.nextInt(256);\r\n\t\t\t\t\t\t\t\tColor newColor = new Color(red,green,blue);\r\n\t\t\t\t\t\t\t\tg.setColor(newColor);\r\n\t\t\t\t\t\t\t\tAIObject[i].setColor(newColor);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tg.setColor(AIObject[i].getColor());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tg.fillOval(AIRoundedX, AIRoundedY, 20, 20);\r\n\t\t\t\t\t\t\tAIDeadCount = 0;\r\n\t\t\t\t\t\t\tg.setColor(Color.darkGray);\r\n\t\t\t\t\t\t\tg.fillRect(AIRoundedX, AIRoundedY - 40, AI_ORIG_HEALTH/AI_HEALTH_WIDTH_SCALE, healthY);\r\n\t\t\t\t\t\t\tg.setColor(AIObject[i].getColor());\r\n\t\t\t\t\t\t\tg.fillRect(AIRoundedX, AIRoundedY - 40, (int) AIObject[i].getAIHealth()/AI_HEALTH_WIDTH_SCALE, healthY);\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tAIDeadCount++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// early access banner\r\n\t\t\t\t\tg.drawImage(earlyAccess, 0, 24, this);\r\n\r\n\t\t\t\t\tif (attackStyle == 2) {\r\n\t\t\t\t\t\tif (drawArrow == true) {\r\n\t\t\t\t\t\t\tinFlight = true;\r\n\t\t\t\t\t\t\tshouldPlaySound = true;\r\n\t\t\t\t\t\t\tif ((fireLeft) && (currentlyDrawingArrow != 2)) {\r\n\t\t\t\t\t\t\t\tgoingLeft = true;\r\n\t\t\t\t\t\t\t\tgoingRight = false;\r\n\t\t\t\t\t\t\t\tcurrentlyDrawingArrow = 1;\r\n\t\t\t\t\t\t\t\tg.drawImage(Arrowl, Math.round(aX), Math.round(aY), this);\r\n\r\n\t\t\t\t\t\t\t} else if ((fireRight) && (currentlyDrawingArrow != 1)) {\r\n\t\t\t\t\t\t\t\tgoingRight = true;\r\n\t\t\t\t\t\t\t\tgoingLeft = false;\r\n\t\t\t\t\t\t\t\tcurrentlyDrawingArrow = 2;\r\n\t\t\t\t\t\t\t\tg.drawImage(Arrowr, Math.round(aX), Math.round(aY), this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif ((aX >= 1024) || (!drawArrow) || (aX <= 0)) {\r\n\t\t\t\t\t\t\tinFlight = false;\r\n\t\t\t\t\t\t\taX = playerObject[0].getX();\r\n\t\t\t\t\t\t\taY = playerObject[0].getY();\r\n\t\t\t\t\t\t\tcurrentlyDrawingArrow = 0;\r\n\t\t\t\t\t\t\tdrawArrow = false;\r\n\t\t\t\t\t\t\tshouldPlaySound = false;\r\n\t\t\t\t\t\t\tnotPlayingSound = false;\r\n\t\t\t\t\t\t\talreadyShot = false;\r\n\t\t\t\t\t\t\tif (wasReleased) {\r\n\t\t\t\t\t\t\t\tlClick = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tint roundedX = Math.round(playerObject[0].getX());\r\n\t\t\t\t\t\tint roundedY = Math.round(playerObject[0].getY());\r\n\t\t\t\t\t\tif (drawSword) {\r\n\t\t\t\t\t\t\tswordCount++;\r\n\t\t\t\t\t\t\tif (mouseLeft) {\r\n\t\t\t\t\t\t\t\tif (swordCount < 5) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount > 5 && swordCount <=15) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(Sword45L, roundedX - 45, roundedY - 30, this);\r\n\t\t\t\t\t\t\t\t}else if (swordCount >15 && swordCount<30) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordL, roundedX - 63, roundedY, this);\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount >30 || !drawSword){\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t\t\tswordCount = 0;\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\tif (swordCount < 5) {\r\n\t\t\t\t\t\t\t\t\t//image flip g.drawImage(SwordHorizontalL, Math.round(x) - 2, Math.round(y) - 45, -SwordHorizontalL.getWidth(this),SwordHorizontalL.getHeight(this),this);\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t\t-swordHorizontalLWidth,swordHorizontalLWidth,this);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount > 5 && swordCount <=15) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(Sword45L, roundedX + 80, roundedY - 30,\r\n\t\t\t\t\t\t\t\t\t\t\t-sword45LWidth, sword45LHeight, this);\r\n\t\t\t\t\t\t\t\t}else if (swordCount >15 && swordCount<30) {\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordL, roundedX +90, roundedY, -swordLWidth, swordLHeight, this);\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (swordCount >30 || !drawSword){\r\n\t\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t\t-swordHorizontalLWidth, swordHorizontalLHeight, this);\r\n\t\t\t\t\t\t\t\t\tswordCount = 0;\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (shield) {\r\n\t\t\t\t\t\t\tif (mouseLeft) {\r\n\t\t\t\t\t\t\t\tg.drawImage(shieldImage, roundedX - 5, roundedY - 5, shieldWidth, scaledShieldHeight, this);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tg.drawImage(shieldImage, roundedX + 5, roundedY - 5, shieldWidth, scaledShieldHeight, this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif(mouseLeft) {\r\n\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX - 2, roundedY - 45, this);\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tg.drawImage(SwordHorizontalL, roundedX + 20, roundedY - 45,\r\n\t\t\t\t\t\t\t\t\t\t-SwordHorizontalL.getWidth(this), SwordHorizontalL.getHeight(this), this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tswordCount = 0;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (wasReleased) {\r\n\t\t\t\t\t\t\tlClick = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if (escape) {\r\n\t\t\t\t\tg.setColor(Color.white);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawString(\"PAUSED\", 512, 389);\r\n\t\t\t\t}\r\n\t\t\t\telse if (dead) {\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.drawString(\"Dead\", 512, 389);\r\n\t\t\t\t} else if(allAIDead) {\r\n\t\t\t\t\tg.setColor(Color.black);\r\n\t\t\t\t\tg.drawRect(0, 0, 1024, 768);\r\n\t\t\t\t\tg.drawString(\"You win\", 512, 389);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tg.dispose();\r\n\t\t}\r\n\t\t// Shows the contents of the backbuffer on the screen.\r\n\t\tbf.show();\r\n\t}", "public void showNet()\n/* */ {\n/* 482 */ update(getGraphics());\n/* */ }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n progress_stack = progress_stack_bkup;\r\n\r\n rec_points = rec_points_bkup;\r\n rec_colors = rec_colors_bkup;\r\n\r\n squ_points = squ_points_bkup;\r\n squ_colors = squ_colors_bkup;\r\n\r\n ell_points = ell_points_bkup;\r\n ell_colors = ell_colors_bkup;\r\n\r\n cir_points = cir_points_bkup;\r\n cir_colors = cir_colors_bkup;\r\n\r\n str_points = str_points_bkup;\r\n str_colors = str_colors_bkup;\r\n\r\n poly_points = poly_points_bkup;\r\n poly_colors = poly_colors_bkup;\r\n\r\n handdraw_points = handdraw_points_bkup;\r\n handdraw_colors = handdraw_colors_bkup;\r\n\r\n\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n //repaint circle\r\n if(cir_colors.size()>0){\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n //repaint square\r\n if(squ_colors.size()>0){\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n //repaint ellipse\r\n if(ell_colors.size()>0){\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n //repaint straight line\r\n if(str_colors.size()>0){\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n\r\n //repaint polygons\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n }\r\n\r\n //repaint freehand lines\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n }", "@Override\r\n\tprotected void onDraw() {\n\t\t\r\n\t}", "@Override\n public void paint(Graphics g) {\n }", "@Override\r\n public void repaint() {\r\n }", "public void paintComponent(Graphics g) {\r\n\t\tGraphics2D g2 = (Graphics2D) g;\r\n\t\tg2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n\t\t\t\tRenderingHints.VALUE_ANTIALIAS_ON);\r\n\r\n\t\tRectangle text_field_rect = new Rectangle(0, 0, DEFAULT_WIDTH\r\n\t\t\t\t- DEFAULT_HEIGHT - 1, DEFAULT_HEIGHT);\r\n\t\tRectangle button_rect = new Rectangle(DEFAULT_WIDTH - DEFAULT_HEIGHT,\r\n\t\t\t\t0, DEFAULT_HEIGHT, DEFAULT_HEIGHT);\r\n\r\n\t\tif (this.enabled)\r\n\t\t g2.setColor(Color.white);\r\n\t\telse\r\n\t\t g2.setColor(this.colorDisabled);\t\r\n\t\t\r\n\t\tg2.fillRect(text_field_rect.x, text_field_rect.y,\r\n\t\t\t\ttext_field_rect.width, text_field_rect.height);\r\n\r\n\t\tFont font = new Font(\"Dialog\", Font.PLAIN, 10);\r\n\t\tg2.setFont(font);\r\n\r\n\t\tFontMetrics metrics = getFontMetrics(font);\r\n\t\tint str_height = metrics.getHeight();\r\n\t\tint str_descent = metrics.getDescent();\r\n\r\n\t\tg2.setColor(Color.black);\r\n\t\tg2.drawString(this.label, 4, text_field_rect.height / 2 + str_height\r\n\t\t\t\t/ 2 - str_descent);\r\n\r\n\t\tg2.setColor(Color.gray);\r\n\t\tg2.draw3DRect(text_field_rect.x, text_field_rect.y,\r\n\t\t\t\ttext_field_rect.width, text_field_rect.height, false);\r\n\r\n\t\tg2.translate(button_rect.x, button_rect.y);\r\n\t\tint w = button_rect.width;\r\n\t\tint h = button_rect.height;\r\n\r\n\t\tg2.setColor(Color.black);\r\n\t\tg2.drawRect(0, 0, w - 1, h - 1);\r\n\t\tg2.setColor(Color.lightGray);\r\n\t\tg2.fill3DRect(0, 0, w - 1, h - 1, !selected);\r\n\r\n\t\tint w_3 = (int) ((float) w / (float) 3);\r\n\t\tint w_3_times_2 = 2 * w_3;\r\n\t\tint w_2 = (int) ((float) w / (float) 2);\r\n\t\tint h_3 = (int) ((float) h / (float) 3);\r\n\t\tint h_3_times_2 = 2 * (int) h / 3;\r\n\r\n\t\tPolygon p = new Polygon();\r\n\t\tp.addPoint(w_3, h_3);\r\n\t\tp.addPoint(w_3_times_2, h_3);\r\n\t\tp.addPoint(w_2, h_3_times_2);\r\n\r\n\t\tg2.setColor(Color.black);\r\n\t\tg2.fillPolygon(p);\r\n\r\n\t\tg2.translate(-button_rect.x, -button_rect.y);\r\n\t}", "private void repaint() {\n\t\tclear();\n\t\tfor (PR1Model.Shape c : m.drawDataProperty()) {\n\t\t\tif(!c.getText().equals(defaultshape))\n\t\t\t\tdrawShape(c, false);\n\t\t}\n\t\tif (getSelection() != null) {\n\t\t\tdrawShape(getSelection(), true);\n\t\t}\n\t}", "public LafPaintFrame() {\n initComponents();\n add(canvas);\n \n /*\n try {\n img = ImageIO.read(new File(\"D:\\\\kishida\\\\java\\\\trial\\\\nb6m10\\\\Laftan\\\\laf.png\"));\n } catch (IOException e) {\n }*/\n \n undoMan.setLimit(30);\n saveAction.putValue(Action.ACCELERATOR_KEY, \n KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));\n btnSave.setAction(saveAction);\n miSave.setAction(saveAction);\n \n undoAction.putValue(Action.ACCELERATOR_KEY, \n KeyStroke.getKeyStroke(KeyEvent.VK_Z, ActionEvent.CTRL_MASK));\n btnUndo.setAction(undoAction);\n miUndo.setAction(undoAction);\n\n redoAction.putValue(Action.ACCELERATOR_KEY, \n KeyStroke.getKeyStroke(KeyEvent.VK_Y, ActionEvent.CTRL_MASK));\n btnRedo.setAction(redoAction);\n miRedo.setAction(redoAction);\n \n undoUpdate();\n \n //色設定ボタン\n Color[] colors = {\n Color.BLACK, Color.GRAY, Color.LIGHT_GRAY, Color.WHITE,\n Color.RED, Color.GREEN, Color.BLUE, Color.YELLOW,Color.ORANGE\n };\n boolean first = true;\n for(Color col : colors){\n JToggleButton tb = new JToggleButton();\n tb.setBackground(col);\n tb.setText(\" \");\n tb.setMinimumSize(new Dimension(32, 32));\n tb.setPreferredSize(new Dimension(32, 32));\n bgColor.add(tb);\n tbColor.add(tb);\n if(first){\n tb.setSelected(true);\n selectedColor = tb.getBackground();\n first = false;\n }\n tb.addActionListener(ae -> {\n selectColor(((JToggleButton)ae.getSource()).getBackground());\n });\n }\n \n actions.put(\"LINE\", new DrawLine());\n actions.put(\"FILL\", new DrawFillLine());\n actions.put(\"ERASE\", new Erase());\n canvas.addMouseListener(new MouseListener(){\n\n public void mouseClicked(MouseEvent e) {\n }\n\n public void mousePressed(MouseEvent e) {\n Draw d = actions.get(getMode());\n if(d == null) return;\n d.canvasMousePressed(e);\n }\n\n @Override\n public void mouseReleased(MouseEvent e) {\n Draw d = actions.get(getMode());\n if(d == null) return;\n d.canvasMouseReleased(e);\n }\n\n @Override\n public void mouseEntered(MouseEvent e) {\n Draw d = actions.get(getMode());\n if(d == null) return;\n d.canvasMouseEntered(e);\n }\n\n @Override\n public void mouseExited(MouseEvent e) {\n Draw d = actions.get(getMode());\n if(d == null) return;\n d.canvasMouseExited(e);\n }\n\n });\n canvas.addMouseMotionListener(new MouseMotionListener(){\n @Override\n public void mouseDragged(MouseEvent e) {\n Draw d = actions.get(getMode());\n if(d == null) return;\n d.canvasMouseDragged(e);\n }\n\n @Override\n public void mouseMoved(MouseEvent e) {\n }\n });\n \n }", "public void drawMainWindow(){\n\n p.pushMatrix();\n p.translate(0,0);// translate whole window if necessary\n\n // window stuff\n // show name and draw\n p.stroke(0);\n p.strokeWeight(2);\n p.textSize(30);\n p.fill(0);\n p.text(\"Work space\",15,35);\n p.rectMode(CORNER);\n p.fill(219, 216, 206);\n p.rect(-285,40,1000,700);\n p.rectMode(CENTER);\n\n // show \"pause\" text\n if(pause) {\n p.fill(0);\n p.textSize(20);\n p.text(\"PAUSE\", 20, 60);\n p.textSize(12);\n }\n\n // draw coordinates lines\n drawCoordinateSystem();\n showRouteAsked();\n calculatePointer();\n\n // main mainManipulator\n manipulator.showManipulator(false);\n manipulator.route(true);\n\n if(routeAsked.size()>0) {\n if(!pause) manipulator.moveManally(routeAsked.get(0).copy());\n\n if (manipulator.segment_2_end.dist(routeAsked.get(0)) < 1) {\n routeAsked.remove(0);\n }\n\n // if you want to make it work with nn:\n\n// p.circle(routeAsked.get(0).x,routeAsked.get(0).y,15);\n// manipulator.setTarget(routeAsked.get(0));\n// manipulator.route(true);\n// if (!pause) manipulator.update();\n// manipulator.showManipulator(true);\n//\n// if (manipulator.targetDistFromAgent < 10) {\n// routeAsked.remove(0);\n// }\n }\n\n\n // pointer\n // show pointer and line to the pointer\n p.stroke(2);\n p.stroke(133, 168, 13,100);\n p.line(BASE_POS.x,BASE_POS.y,p.cos(pointerAngle)*pointerDist+BASE_POS.x,p.sin(pointerAngle)*pointerDist+BASE_POS.y);\n p.fill(207, 95, 43);\n p.noStroke();\n p.ellipse(pointerPos.x,pointerPos.y,15,15);\n\n p.popMatrix();\n }", "public void draw() {\n }", "public void doChanges0() {\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compBounds.put(\"jScrollPane1\", new Rectangle(232, 11, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jScrollPane1-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compBounds.put(\"jScrollPane1\", new Rectangle(232, 11, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n // parentId-compId-dimension-compAlignment\n lm.removeComponent(\"jScrollPane1\", true);\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "void drawBuilding() {\r\n\t\tgc.setFill(Color.BEIGE);\r\n\t\tgc.fillRect(0, 0, theBuilding.getXSize(), theBuilding.getYSize()); // clear the canvas\r\n\t\ttheBuilding.showBuilding(this); // draw all items\r\n\r\n\t\tString s = theBuilding.toString();\r\n\t\trtPane.getChildren().clear(); // clear rtpane\r\n\t\tLabel l = new Label(s); // turn string to label\r\n\t\trtPane.getChildren().add(l); // add label\r\n\r\n\t}", "void gui(){\n _hasGUI = true;\n }", "@Override\n public boolean shouldPaint() {\n return false;\n }", "public void drawScreen(int par1, int par2, float par3)\n {\n \tStringTranslate var1 = StringTranslate.getInstance();\n this.drawDefaultBackground();\n this.drawCenteredString(this.fontRenderer, this.screenTitle, this.width / 2, 20, 16777215);\n int var4 = this.func_73907_g();\n int var5 = 0;\n\n while (var5 < this.options.keyBindings.length)\n {\n boolean var6 = false;\n int var7 = 0;\n\n while (true)\n {\n if (var7 < this.options.keyBindings.length) // checking for collisions in the minimap's bindings, and the game's bindings from 0 to the size of the minimap's bindings\n {\n if (this.options.keyBindings[var5].keyCode == Keyboard.KEY_NONE || (var7 == var5 || this.options.keyBindings[var5].keyCode != this.options.keyBindings[var7].keyCode) && (this.options.keyBindings[var5].keyCode != this.options.game.gameSettings.keyBindings[var7].keyCode))\n {\n ++var7;\n continue;\n }\n\n var6 = true; // collision\n }\n \n if (var7 < this.options.game.gameSettings.keyBindings.length) // continue checking for collisions only among the standard game's keybindings - an array larger than that of the minimap.\n {\n if (this.options.keyBindings[var5].keyCode == Keyboard.KEY_NONE || this.options.keyBindings[var5].keyCode != this.options.game.gameSettings.keyBindings[var7].keyCode)\n {\n ++var7;\n continue;\n }\n\n var6 = true; // collision\n }\n\n if (this.buttonId == var5) // buttonId is currently being edited button. Draw > ??? <\n {\n ((GuiButton)this.controlList.get(var5)).displayString = \"\\u00a7f> \\u00a7e??? \\u00a7f<\";\n }\n else if (var6) // key collision, draw red\n {\n ((GuiButton)this.controlList.get(var5)).displayString = \"\\u00a7c\" + this.options.getOptionDisplayString(var5);\n }\n else // just show current binding\n {\n ((GuiButton)this.controlList.get(var5)).displayString = this.options.getOptionDisplayString(var5);\n }\n\n this.drawString(this.fontRenderer, this.options.getKeyBindingDescription(var5), var4 + var5 % 2 * 160 + 70 + 6, this.height / 6 + 24 * (var5 >> 1) + 7, -1);\n ++var5;\n break;\n }\n }\n \n this.drawCenteredString(this.fontRenderer, var1.translateKey(\"controls.minimap.unbind1\"), this.width / 2, this.height / 6 + 115, 16777215);\n this.drawCenteredString(this.fontRenderer, var1.translateKey(\"controls.minimap.unbind2\"), this.width / 2, this.height / 6 + 129, 16777215);\n\n\n super.drawScreen(par1, par2, par3);\n }", "public void draw(){\n }", "private void feedback_output(){\r\n\t\tif(up){controller_computer.gui_computer.PressedBorderUp();}\r\n\t\tif(down){controller_computer.gui_computer.PressedBorderDown();}\r\n\t\tif(right){controller_computer.gui_computer.PressedBorderRight();}\r\n\t\tif(left){controller_computer.gui_computer.PressedBorderLeft();}\r\n\t}", "@Override\r\n public void draw()\r\n {\n\r\n }", "protected void userDrawing(MouseEvent e){\n\t}", "public void layoutGUI() {\r\n\t\t\r\n\t\tsetLayout(null);\r\n\t\tthis.setSize(800,600);\r\n\t\tthis.setLocation(50,50);\r\n\t\tthis.setTitle(\"Hunt the Wumpus\");\r\n\r\n\t\t\r\n\t\tstatusLabel = new JLabel();\r\n\t\tstatusLabel.setLocation(15, 500);\r\n\t\tstatusLabel.setSize(300, 20);\r\n\t\tadd(statusLabel);\r\n\t\r\n\t\tTextView textPanel = new TextView(game);\t\r\n\t\tImageView imagePanel = new ImageView(game);\r\n\t\t\r\n\t\tgame.addObserver(this);\r\n\t\tgame.addObserver(textPanel);\r\n\t\tgame.addObserver(imagePanel);\r\n\t\r\n\t\t\t\t\r\n\t\tthis.controlPanel = new JPanel();\r\n\t\tcontrolPanel.setLocation(15, 50);\r\n\t\tcontrolPanel.setSize(250, 400);\r\n\t\tcontrolPanel.setLayout(new BoxLayout(controlPanel, BoxLayout.Y_AXIS));\r\n\t\t\r\n\t\tadd(controlPanel);\r\n\t\t\r\n\t\tthis.controls = new JTextArea();\r\n\t\tcontrols.setEditable(false);\r\n\t\tcontrols.setFocusable(false);\r\n\t\tcontrols.setText(\"Up Arrow:\\tMove North\\n\"\r\n\t\t\t\t + \"Down Arrow:\\tMove South\\n\"\r\n\t\t\t\t + \"Left Arrow:\\tMove West\\n\"\r\n\t\t\t\t + \"Right Arrow:\\tMove East\\n\"\r\n\t\t\t\t + \"\\n\\n\"\r\n\t\t\t\t + \"W:\\tShoot Arrow North\\n\"\r\n\t\t\t\t + \"S:\\tShoot Arrow South\\n\"\r\n\t\t\t\t + \"A:\\tShoot Arrow West\\n\"\r\n\t\t\t\t + \"D:\\tShoot Arrow East\");\r\n\t\tcontrolPanel.add(controls);\r\n\t\t\r\n\t\teasy = new JRadioButton(\"Easy\");\r\n\t\teasy.setFocusable(false);\r\n\t\t\r\n\t\tmedium = new JRadioButton(\"Medium\");\r\n\t\tmedium.setFocusable(false);\r\n\t\t\r\n\t\thard = new JRadioButton(\"Hard\");\r\n\t\thard.setFocusable(false);\r\n\t\t\r\n\t\tButtonGroup group = new ButtonGroup();\r\n\t\tJButton reset = new JButton(\"Reset\");\r\n\t\treset.setFocusable(false);\r\n\t\t\r\n\t\tButtonGroup bg = new ButtonGroup();\r\n\t\t\r\n\t\treset.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tresetGame();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\teasy.setSelected(true);\r\n\t\t\r\n\t\tbg.add(easy);\r\n\t\tbg.add(medium);\r\n\t\tbg.add(hard);\r\n\t\t\r\n\t\tcontrolPanel.add(easy);\r\n\t\tcontrolPanel.add(medium);\r\n\t\tcontrolPanel.add(hard);\r\n\t\tcontrolPanel.add(reset);\r\n\t\t\r\n\t\tthis.tabPane = new JTabbedPane();\r\n\t\ttabPane.setLocation(280, 30);\r\n\t\ttabPane.setSize(500\t,500);\r\n\t\ttabPane.setFocusable(false);\r\n\t\ttabPane.addTab(\"Image View\", imagePanel);\r\n\t\ttabPane.addTab(\"Text View\", textPanel);\t\t\r\n\t\tadd(tabPane);\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\tthis.repaint();\r\n\t}", "@Override\n\tpublic void drawScreen(int mouseX, int mouseY, float partialTicks) {\n\t\t super.drawScreen(mouseX, mouseY, partialTicks);\n\t\t updateScreen();\n\t\t \n\t\t GuiScreen.drawRect(0, 0, 0 + fadeIn - fadeOut, this.height, Colorutils.rainbowEffect(index + x*20000000F, 1.0F).getRGB());\n\t\t // GuiButton.drawRect(left, top, right, bottom, color);\n\t\t this.scrollPanel.setDimensions(fadeIn * 3, this.height, fadeOut * 3, this.height);\n\t\t //this.scrollPanel.setDimensions(widthIn, heightIn, topIn, bottomIn);\n\t\t\t//this.drawRect(0, 65, 90 , 16, new Color(255, 255, 255).getRGB());\n\t\t\t//this.drawString(fontRendererObj, s1, 15, 15, -1);\n\t\t\t\n\t\t\t//this.buttonList.add(new GuiButton(191, 15, 15, \"Keystokes\"));\n\t\t \n\t\t // GuiCheckBox.drawRect(0, 65, 90, 16, new Color(0, 0, 0).getRGB());\n\t\t \n\t\t\t\n\t\t\t\n //this.drawRect(left, top, right, bottom, color);\n\t\t\t\n\t\t\t\n\tthis.scrollPanel.drawScreen(mouseX, mouseY, partialTicks);\n\t\t//this.drawCenteredString(this.fontRendererObj, \"Mod Options\", this.width / 2, 8, 16777215);\n\t\t\t\n\t\tsuper.drawScreen(mouseX, mouseY, partialTicks);\n\t}", "@Override\n public void paint(Graphics g) {\n g2 = (Graphics2D) g;\n drawBackground();\n drawSquares();\n drawLines();\n gui.hint = new TreeSet<>();\n }", "public void initUI() {\n\t\tFlowLayout flow = new FlowLayout();\r\n\t\tthis.setTitle(\"来一波\");\r\n\t\tthis.setSize(960, 720);\r\n\t\tthis.setLayout(flow);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setDefaultCloseOperation(3);\r\n\t\t\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tthis.add(panel);\r\n\t\tthis.setBackground(Color.BLACK);\r\n\t\t\r\n\t\tslider1.setName(\"改变大小\");\r\n\t\tslider1.setMinorTickSpacing(20);\r\n\t\tslider1.setPaintTicks(true);\r\n\t\tslider1.setPaintLabels(true);\r\n\t\tthis.add(slider1);\r\n\t\t\r\n\t\tJButton button1 = new JButton(\"导入图片\");\r\n\t\tbutton1.setPreferredSize(new Dimension(100,30));\r\n\t\tthis.add(button1);\r\n\t\t\r\n\t\tJButton button2 = new JButton(\"热感应\");\r\n\t\tbutton2.setPreferredSize(new Dimension(100,30));\r\n\t\tthis.add(button2);\r\n\t\t\r\n\t\tJButton button3 = new JButton(\"模糊化\");\r\n\t\tbutton3.setPreferredSize(new Dimension(100,30));\r\n\t\tthis.add(button3);\r\n\t\t\r\n\t\tJButton button4 = new JButton(\"流行拼接\");\r\n\t\tbutton4.setPreferredSize(new Dimension(100,30));\r\n\t\tthis.add(button4);\r\n\t\t\r\n\t\tJButton button5 = new JButton(\"万花筒\");\r\n\t\tbutton5.setPreferredSize(new Dimension(100,30));\r\n\t\tthis.add(button5);\r\n\t\t\r\n\t\tslider2.setName(\"调整参数\");\r\n\t\tslider2.setMinorTickSpacing(20);\r\n\t\tslider2.setPaintTicks(true);\r\n\t\tslider2.setPaintLabels(true);\r\n\t\tthis.add(slider2);\r\n\t\t\r\n\t\tthis.setVisible(true);\r\n\t\t\r\n\t\tGraphics g = this.getGraphics();//传画笔的操作一定要在设置界面可见后进行\r\n\t\t\r\n\t\tDrawListener ml = new DrawListener(g,this);\r\n\t\tbutton1.addActionListener(ml);\r\n\t\tbutton2.addActionListener(ml);\r\n\t\tbutton3.addActionListener(ml);\r\n\t\tbutton4.addActionListener(ml);\r\n\t\tbutton5.addActionListener(ml);\r\n\t\tslider1.addChangeListener(ml);\r\n\t\tslider2.addChangeListener(ml);\r\n\t\t\r\n\t}", "public void doChanges0() {\n lm.setChangeRecording(true);\n changeMark = lm.getChangeMark();\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 59, 20)};\n Point hotspot = new Point(102, 106);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 128);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(400, 128);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "public void draw() {\n\n }", "@Override\n public void paintComponent(Graphics g) \n {\n super.paintComponent(g);\n doDrawing(g);\n }", "public void draw(){\n\t\tcomponent.draw();\r\n\t}", "void updateInterpretationBoards(){\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext()){\r\n TShape theShape=(TShape) iter.next();\r\n if (theShape.fTypeID==TShape.IDInterpretationBoard){\r\n theShape.setSelected(false);\r\n // ((TInterpretationBoard)theShape).updateInterpretationBoard();\r\n }\r\n }\r\n }\r\n\r\n\r\n }", "@Override\n public void run(){\n gameItem = shapeFactory.getShape(shapeButton, shapeName);\n if (gameItem != null) {\n gameItem.clearName(); //clears text\n gameItem.draw(); //draws new shape\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawType = 1;\n\t\t\t}", "public void majGui(){\n gui.reset();\n ArrayList<Ball> ballsArray = balls.getBalls();\n for (Ball b: ballsArray){\n Vector location = b.getLocation();\n gui.addGraphicalElement(\n new Oval(\n (int) location.x, (int) location.y, Color.decode(\"#FF77b4\"), Color.decode(\"#00FF48\"), 50));\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawType = 2;\n\t\t\t}", "private void updateGUI() {\n\t\tsfrDlg.readSFRTableFromCPU();\n\t\tsourceCodeDlg.updateRowSelection(cpu.PC);\n\t\tsourceCodeDlg.getCyclesLabel().setText(\"Cycles count : \" + cpu.getCyclesCount());\n\t\tdataMemDlg.fillDataMemory();\n\t\t//ioPortsDlg.fillIOPorts();\t\t\n\t\tIterator iter = seg7DlgList.iterator();\n\t\twhile(iter.hasNext())\n\t\t\t((GUI_7SegDisplay)iter.next()).drawSeg();\n\t}", "public void draw(){\n if (! this.isFinished() ){\n UI.setColor(this.color);\n double left = this.xPos-this.radius;\n double top = GROUND-this.ht-this.radius;\n UI.fillOval(left, top, this.radius*2, this.radius*2);\n }\n }", "public void draw()\n {\n myPencil.up();\n myPencil.backward(100);\n myPencil.down();\n myPencil.turnRight(90);\n myPencil.forward(200);\n myPencil.turnLeft(90);\n myPencil.forward(200);\n myPencil.turnLeft(90);\n myPencil.forward(400);\n myPencil.turnLeft(90);\n myPencil.forward(200);\n myPencil.turnLeft(90);\n myPencil.forward(200);\n // Roof\n myPencil.up();\n myPencil.move(0,200);\n myPencil.down();\n myPencil.setDirection(333.435);\n myPencil.forward(223.607);\n myPencil.setColor(new Color(2, 0, 0));\n myPencil.up();\n myPencil.move(0,200);\n myPencil.setDirection(206.565);\n myPencil.down();\n myPencil.forward(223.607);\n // Windows\n myPencil.up();\n myPencil.move(-150,0);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.up();\n myPencil.move(75,0);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(75);\n myPencil.up();\n myPencil.move(-50,-100);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(75);\n myPencil.turnLeft(90);\n myPencil.forward(100);\n myPencil.turnLeft(90);\n myPencil.forward(50);\n myPencil.turnLeft(90);\n myPencil.forward(100);\n myPencil.up();\n myPencil.move(-50,-100);\n myPencil.setDirection(60);\n myPencil.down();\n myPencil.backward(150);\n myPencil.up();\n myPencil.move(50,-100);\n myPencil.setDirection(120);\n myPencil.down();\n myPencil.backward(150);\n myPencil.up();\n myPencil.move(150,-150);\n myPencil.down();\n myPencil.drawCircle(25);\n myPencil.up();\n myPencil.move(-150,-150);\n myPencil.down();\n myPencil.drawCircle(25);\n myPencil.up();\n myPencil.move(-150,-175);\n myPencil.setDirection(90);\n myPencil.down();\n myPencil.backward(20);\n myPencil.up();\n myPencil.move(150,-175);\n myPencil.setDirection(90);\n myPencil.down();\n myPencil.backward(20);\n myPencil.up();\n myPencil.move(-150,37.5);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(75);\n myPencil.up();\n myPencil.move(75,37.5);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(75);\n myPencil.up();\n myPencil.move(-112.5,0);\n myPencil.setDirection(90);\n myPencil.down();\n myPencil.forward(75);\n myPencil.up();\n myPencil.move(112.5,0);\n myPencil.setDirection(90);\n myPencil.down();\n myPencil.forward(75);\n // House Sidewalk\n myPencil.up();\n myPencil.move(-250,-112.5);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(192.5);\n myPencil.up();\n myPencil.move(250,-112.5);\n myPencil.setDirection(180);\n myPencil.down();\n myPencil.forward(192.5);\n myPencil.up();\n myPencil.move(-250,-100);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(90);\n myPencil.forward(193);\n myPencil.up();\n myPencil.move(250,-100);\n myPencil.setDirection(180);\n myPencil.down();\n myPencil.forward(90);\n myPencil.up();\n myPencil.move(-75,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-100,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-125,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-150,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-175,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-200,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-225,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(-250,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(75,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(100,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(125,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(150,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(175,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(200,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(225,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n myPencil.up();\n myPencil.move(250,-100);\n myPencil.setDirection(240);\n myPencil.down();\n myPencil.forward(15);\n // Chimney\n myPencil.up();\n myPencil.move(125,190);\n myPencil.setDirection(270);\n myPencil.down();\n myPencil.forward(52);\n myPencil.up();\n myPencil.move(100,190);\n myPencil.setDirection(270);\n myPencil.down();\n myPencil.forward(40);\n myPencil.up();\n myPencil.move(100,190);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(25);\n // Door window\n myPencil.up();\n myPencil.move(0,-25);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.drawCircle(8);\n myPencil.up();\n myPencil.move(-8,-25);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.forward(16);\n myPencil.up();\n myPencil.move(0,-17);\n myPencil.setDirection(270);\n myPencil.down();\n myPencil.forward(16);\n // Door knob\n myPencil.up();\n myPencil.move(14,-55);\n myPencil.setDirection(0);\n myPencil.down();\n myPencil.drawCircle(2);\n }", "protected abstract void saveGraphicsState();", "private void updateGui() {\n final IDebugger debugger = m_debugPerspectiveModel.getCurrentSelectedDebugger();\n final TargetProcessThread thread = debugger == null ? null : debugger.getProcessManager().getActiveThread();\n\n final boolean connected = debugger != null && debugger.isConnected();\n final boolean suspended = connected && thread != null;\n\n m_hexView.setEnabled(connected && suspended && m_provider.getDataLength() != 0);\n\n if (connected) {\n m_hexView.setDefinitionStatus(DefinitionStatus.DEFINED);\n } else {\n // m_hexView.setDefinitionStatus(DefinitionStatus.UNDEFINED);\n\n m_provider.setMemorySize(0);\n m_hexView.setBaseAddress(0);\n m_hexView.uncolorizeAll();\n }\n }", "private void paintButton() {\n pauseButton = new JButton(\"PAUSE\");\n shiftButton = new JButton(\"PRINTING\");\n solveButton = new JButton(\"SOLVE\");\n resetButton = new JButton(\"RESET\");\n openButton = new JButton(\"OPEN\");\n exportButton = new JButton(\"EXPORT\");\n\n String sudoTypes[] = {\"4*4\", \"5*5\", \"6*6\", \"7*7\", \"8*8\", \"9*9\"};\n suduTypeComboBox = new JComboBox(sudoTypes);\n suduTypeComboBox.setSelectedIndex(5);\n\n if(mode == PRINTING)\n solveButton.setEnabled(false);\n openButton.setEnabled(false);\n solveButton.setEnabled(true);\n suduTypeComboBox.setEnabled(false);\n\n pauseButton.addActionListener(new pauseEventListener());\n shiftButton.addActionListener(new switchEventListener());\n solveButton.addActionListener(new solveEventListener());\n resetButton.addActionListener(new resetEventListener());\n openButton.addActionListener(new openEventListener());\n exportButton.addActionListener(new exportEventListener());\n suduTypeComboBox.addActionListener(new sudoTypeEventListener());\n\n bottomPanel.setLayout(new FlowLayout());\n bottomPanel.add(Box.createHorizontalGlue());\n bottomPanel.add(pauseButton);\n bottomPanel.add(Box.createHorizontalGlue());\n bottomPanel.add(openButton);\n bottomPanel.add(Box.createHorizontalGlue());\n bottomPanel.add(exportButton);\n bottomPanel.add(Box.createHorizontalGlue());\n bottomPanel.add(solveButton);\n bottomPanel.add(Box.createHorizontalGlue());\n bottomPanel.add(resetButton);\n bottomPanel.add(Box.createHorizontalGlue());\n bottomPanel.add(shiftButton);\n bottomPanel.add(Box.createHorizontalGlue());\n bottomPanel.add(suduTypeComboBox);\n bottomPanel.add(Box.createHorizontalGlue());\n }", "@Override\n\tpublic void drawPoint(MouseEvent e, int state) {\n\n\t}", "public abstract void draw( );", "public void drawSelector(int x) {\n int currentTime = millis() / 100;\n noStroke();\n if (currentTime % 13 == 0) {\n fill(200, 200, 100, 30);\n }\n else if (currentTime % 13 == 1) {\n fill(200, 200, 100, 40);\n }\n else if (currentTime % 13 == 2) {\n fill(200, 200, 100, 50);\n }\n else if (currentTime % 13 == 3) {\n fill(200, 200, 100, 60);\n }\n else if (currentTime % 13 == 4) {\n fill(200, 200, 100, 70);\n }\n else if (currentTime % 13 == 5) {\n fill(200, 200, 100, 80);\n }\n else if (currentTime % 13 == 6) {\n fill(200, 200, 100, 90);\n }\n else if (currentTime % 13 == 7) {\n fill(200, 200, 100, 100);\n }\n else if (currentTime % 13 == 8) {\n fill(200, 200, 100, 110);\n }\n else if (currentTime % 13 == 9) {\n fill(200, 200, 100, 120);\n }\n else if (currentTime % 13 == 10) {\n fill(200, 200, 100, 130);\n }\n else if (currentTime % 13 == 11) {\n fill(200, 200, 100, 140);\n }\n else if (currentTime % 13 == 12) {\n fill(200, 200, 100, 150);\n }\n else {\n fill(255, 200, 100);\n }\n switch(x){\n case 1:\n beginShape();\n vertex(80, 330);\n vertex(50, 360);\n vertex(80, 350);\n vertex(110, 360);\n endShape();\n break;\n case 2:\n beginShape();\n vertex(370, 330);\n vertex(340, 360);\n vertex(370, 350);\n vertex(400, 360);\n endShape();\n break;\n case 3:\n beginShape();\n vertex(80, 600);\n vertex(50, 630);\n vertex(80, 620);\n vertex(110, 630);\n endShape();\n break;\n case 4:\n beginShape();\n vertex(370, 600);\n vertex(340, 630);\n vertex(370, 620);\n vertex(400, 630);\n endShape();\n break;\n }\n\n}", "void draw() {\n scsw.draw();\n \n}", "private void initDraw(){\n view.getDraw().setOnAction(event -> {\n String title = \"Confirm\";\n String message = (isWhiteTurn ? whiteName : blackName) + \" wish to make a draw to this game.\\n\" +\n (isWhiteTurn ? blackName : whiteName) + \", do you agree?\";\n ConfirmBox.display(title, message);\n if (ConfirmBox.isConfirmed){\n draw();\n }\n });\n }", "@Override\n public void initGUI() {\n\n }", "@Override\n\tpublic void draw(Graphics canvas) {}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawType = 0;\n\t\t\t}", "public static void draw() {\n\t\tStdDraw.clear();\n\t\tStdDraw.text(.5, .90, hint);\n\t\tStdDraw.text(.5, .5, label);\n\t\tStdDraw.text(0.5, 0.3, textBeingEntered);\n\t\tStdDraw.show(0);\n\n\t}", "public void updateUI(){}", "public void start() {\n\t\t\n\t\t/*\n\t\t * This is the main JFrame that everything will be placed on. \n\t\t * The size is set to a maximum value, and made unresizable to make repainting easier to achieve.\n\t\t */\n\t\tJFrame frame = new JFrame(\"Paint\");\n\t\tframe.setSize(Canvas.getMaxWindowSize(), Canvas.getMaxWindowSize());\n\t\tframe.setResizable(false);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\t/*\n\t\t * The mainPanel is the panel on which all the other panels will be organized.\n\t\t * It uses a BorderLayout to divide the panel into 5 possible areas: North, South, West, East, and Center.\n\t\t */\n\t\tJPanel mainPanel = new JPanel(new BorderLayout());\n\t\tframe.add(mainPanel);\n\t\t\n\t\t/*\n\t\t * The canvas is added to the center of the mainPanel.\n\t\t */\n\t\tCanvas canvas = new Canvas();\n\t\tmainPanel.add(canvas, BorderLayout.CENTER);\n\t\t\n\t\t/*\n\t\t * The topToolPanel is a JPanel that will also use a BorderLayout to organize items placed upon it.\n\t\t * It is placed in the North portion of the mainPanel.\n\t\t */\n\t\tJPanel topToolPanel = new JPanel(new BorderLayout());\n\t\tmainPanel.add(topToolPanel, BorderLayout.NORTH);\n\t\t\n\t\t/*\n\t\t * The shapeToolsPanel is JPanel on which all the buttons for different shapes will be placed. \n\t\t * It is placed in the West portion of the topToolPanel.\n\t\t */\n\t\tJPanel shapeToolsPanel = new JPanel();\n\t\ttopToolPanel.add(shapeToolsPanel, BorderLayout.WEST);\n\t\t\n\t\t/*\n\t\t * The usefulToolPanel will hold buttons for options like \"Fill\" or \"No Fill\", as well as our \"Undo\" button.\n\t\t */\n\t\tJPanel usefulToolPanel = new JPanel();\n\t\ttopToolPanel.add(usefulToolPanel, BorderLayout.EAST);\n\t\t\n\t\t/*\n\t\t * Each of the next five buttons added represent an option to choose a certain shape to draw.\n\t\t * They all get added to the shapeToolsPanel from left to right.\n\t\t */\n\t\tJButton rectButton = new JButton(\"Rectangle\");\n\t\tshapeToolsPanel.add(rectButton);\n\t\trectButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"rectangle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton circButton = new JButton (\"Circle\");\n\t\tshapeToolsPanel.add(circButton);\n\t\tcircButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"circle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton triButton = new JButton (\"Triangle\");\n\t\tshapeToolsPanel.add(triButton);\n\t\ttriButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"triangle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton lineButton = new JButton (\"Line\");\n\t\tshapeToolsPanel.add(lineButton);\n\t\tlineButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"line\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton penButton = new JButton (\"Pen\");\n\t\tshapeToolsPanel.add(penButton);\n\t\tpenButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"pen\");\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t/*\n\t\t * The following three buttons are useful tools for the program to use: the option to choose whether or not to fill shapes, and the undo option.\n\t\t * Each of these will be added to the usefulToolPanel, once again from right to left.\n\t\t */\n\t\tJButton fillButton = new JButton(\"Fill\");\n\t\tusefulToolPanel.add(fillButton);\n\t\tfillButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setIsFilled(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton outlineButton = new JButton(\"No Fill\");\n\t\tusefulToolPanel.add(outlineButton);\n\t\toutlineButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setIsFilled(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton increaseButton = new JButton (\"Increase width\");\n\t\tusefulToolPanel.add(increaseButton);\n\t\tincreaseButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeThickness(Canvas.getShapeThickness() + 1);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton decreaseButton = new JButton (\"Decrease width\");\n\t\tusefulToolPanel.add(decreaseButton);\n\t\tdecreaseButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tCanvas.setShapeThickness(Canvas.getShapeThickness() - 1);\n\t\t\t\t}catch(IllegalArgumentException exception) {\n\t\t\t\t\tSystem.out.println(\"The shape thickness cannot be zero.\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton undoButton = new JButton (\"Undo\");\n\t\tusefulToolPanel.add(undoButton);\n\t\tundoButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tcanvas.undo();\n\t\t\t\t}catch(IndexOutOfBoundsException exception) {\n\t\t\t\t\tSystem.out.println(\"No item in shape list to undo.\");\n\t\t\t\t}\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * The colorPanel is a JPanel which utilizes a GridLayout to organize buttons from the top to the bottom.\n\t\t * It is set up to have more rows than are actually filled to minimize the size of each button on it.\n\t\t */\n\t\tJPanel colorPanel = new JPanel(new GridLayout(defaultGridRows, defaultGridColumns, defaultGridPadding, defaultGridPadding));\n\t\tmainPanel.add(colorPanel, BorderLayout.WEST);\n\t\t\n\t\t/*\n\t\t * Each of the following buttons will be added to the colorPanel.\n\t\t * They will stack one on top of the other as the grid is set up to only have one column.\n\t\t * Additionally, the text portion of each button will be set to the color that the button is connected to.\n\t\t */\n\t\tJButton blackButton = new JButton (\"Black\");\n\t\tcolorPanel.add(blackButton);\n\t\tblackButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.black);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton yellowButton = new JButton (\"Yellow\");\n\t\tyellowButton.setForeground(Color.yellow);\n\t\tcolorPanel.add(yellowButton);\n\t\tyellowButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.yellow);\n\t\t\t}\n\t\t});\n\n\t\tJButton greenButton = new JButton (\"Green\");\n\t\tgreenButton.setForeground(Color.green);\n\t\tcolorPanel.add(greenButton);\n\t\tgreenButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.green);\n\t\t\t}\n\t\t});\n\n\t\tJButton blueButton = new JButton (\"Blue\");\n\t\tblueButton.setForeground(Color.blue);\n\t\tcolorPanel.add(blueButton);\n\t\tblueButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.blue);\n\t\t\t}\n\t\t});\n\n\t\tJButton magentaButton = new JButton (\"Magenta\");\n\t\tmagentaButton.setForeground(Color.magenta);\n\t\tcolorPanel.add(magentaButton);\n\t\tmagentaButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.magenta);\n\t\t\t}\n\t\t});\n\n\t\tJButton redButton = new JButton (\"Red\");\n\t\tredButton.setForeground(Color.red);\n\t\tcolorPanel.add(redButton);\n\t\tredButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.red);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton pinkButton = new JButton (\"Pink\");\n\t\tpinkButton.setForeground(Color.pink);\n\t\tcolorPanel.add(pinkButton);\n\t\tpinkButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.pink);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tframe.setVisible(true);\n\t}", "@Override\n\tpublic void initGui()\n {\n this.controlList.clear();\n //Keyboard.enableRepeatEvents(true);\n\n int var1 = (this.width - this.bookImageWidth) / 2;\n int var2 = (this.height - this.bookImageHeight - 40) / 2;\n this.controlList.add(this.buttonNextPage = new GuiButtonNextPage(1, var1 + 120, var2 + 154, true));\n this.controlList.add(this.buttonPreviousPage = new GuiButtonNextPage(2, var1 + 38, var2 + 154, false));\n this.controlList.add(this.buttonIndex = new GuiButtonNextPage(8, var1 + 28, var2 + 10, false));\n this.controlList.add(this.buttonMenu1 = new GuiButtonSelect(3, var1 + 35, var2 + 30, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu2 = new GuiButtonSelect(4, var1 + 35, var2 + 55, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu3 = new GuiButtonSelect(5, var1 + 35, var2 + 80, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu4 = new GuiButtonSelect(6, var1 + 35, var2 + 105, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu5 = new GuiButtonSelect(7, var1 + 35, var2 + 130, 110, 20, \"\"));\n this.controlList.add(this.bookmark = new GuiButtonBookmark(9, var1 + 142, var2 + 7, false));\n this.updateButtons();\n }", "private void drawPanelMouseClicked(java.awt.event.MouseEvent evt) {\n System.out.println(evt.getX() + \", \" + evt.getY());\n \n out:\n for (int i = 0; i < xcount; i++) {\n for (int j = 0; j < ycount; j++) {\n RectangularShape shape = Shapes[i][j];\n if (shape.contains(evt.getPoint())) {\n changeState(Shapes, States, i, j);\n \n shapesList.set(Slidercnt, Shapes);\n statesList.set(Slidercnt, States);\n \n break out;\n }\n }\n }\n \n this.repaint();\n \n }", "void updateControls();", "private void state1()\n {\n SparseArray passCount = team\n .getPassesBy(pView.getMappedPlayer(),\n statusBar.getMinRange(), statusBar.getMaxRange());\n teamArrowView.val =\n new ArrowView(activity, pView, playerViews, passCount, true);\n parentLayout.addView(teamArrowView.val);\n }", "public void draw() {\r\n if(isVisible()) {\r\n Canvas canvas = Canvas.getCanvas();\r\n canvas.draw(this,getColor(),\r\n new Rectangle(\r\n (int)round(getXposition()),\r\n (int)round(getYposition()),\r\n (int)round(size),\r\n (int)round(size)));\r\n canvas.wait(10);\r\n }\r\n }", "abstract void draw();", "abstract void draw();" ]
[ "0.63919204", "0.63919204", "0.6283855", "0.62804693", "0.6278979", "0.6269687", "0.62484646", "0.62484646", "0.6245078", "0.6241742", "0.62246174", "0.6207795", "0.6198371", "0.6198371", "0.6193107", "0.6165712", "0.6165143", "0.61304176", "0.61303", "0.6121592", "0.61043364", "0.61043364", "0.6098089", "0.60910356", "0.6063055", "0.6046437", "0.6030037", "0.60208833", "0.6016065", "0.60112053", "0.6008585", "0.6007968", "0.60072255", "0.60063124", "0.60019684", "0.59984034", "0.5972363", "0.5969797", "0.59459126", "0.59449", "0.5944083", "0.59393483", "0.5938848", "0.5932985", "0.5932737", "0.5929607", "0.5925217", "0.5922991", "0.59211814", "0.59148824", "0.5914198", "0.5908842", "0.5897867", "0.58881146", "0.5887193", "0.58861125", "0.58794135", "0.5879053", "0.5876881", "0.58714855", "0.5869938", "0.5869327", "0.58686006", "0.58636504", "0.58598006", "0.585941", "0.5857849", "0.585713", "0.585713", "0.5853721", "0.5845812", "0.5840299", "0.58395404", "0.58367544", "0.5829761", "0.58295596", "0.58284974", "0.58238804", "0.5822298", "0.5813327", "0.5811181", "0.58079356", "0.57999605", "0.5795094", "0.5792951", "0.5788402", "0.5781525", "0.5778325", "0.577521", "0.5774224", "0.57719666", "0.57718784", "0.5771008", "0.57659906", "0.576478", "0.5761657", "0.57599723", "0.57576525", "0.5755329", "0.5753568", "0.5753568" ]
0.0
-1
/ Note this method has interacted badly with CurveFitter when running the two from the command line via org.junit.runn.JUnitCore.
@Test public void testRevert() { // note - the following code required minor changes to FileOpener. a helper of the revert method in FileOpener requires // the existence of a IJ instance to update its progress bar. we don't have an IJ and if I create one all subsequent // tests are affected. For now I have modified FileOpener::revertToSaved to not access IJ.getInstance().getProgressBar(). // I have asked Wayne to look at this. // note - not testing revert to file stored at a URL. // simple test - stacked item should not revert //proc = new ByteProcessor(1,2,new byte[] {1,2},null); //ip = new ImagePlus("Zowblooie",proc); ip = new ImagePlus("Zowblooie",(Image)null); st = new ImageStack(1,2); st.addSlice("uno", new byte[] {3,4}); st.addSlice("dos", new byte[] {5,6}); ip.setStack("Pachoom",st); ip.setCurrentSlice(1); proc = ip.getProcessor(); assertEquals(3,proc.getPixel(0, 0)); proc.set(0,0,99); assertEquals(99,proc.getPixel(0, 0)); ip.revert(); proc = ip.getProcessor(); assertEquals(99,proc.getPixel(0, 0)); // simple test - a ImagePlus that did not come from a file should not revert proc = new ByteProcessor(1,2,new byte[] {1,2},null); ip = new ImagePlus("Zowblooie",proc); assertEquals(1,proc.getPixel(0, 0)); proc.set(0,0,99); assertEquals(99,proc.getPixel(0, 0)); ip.revert(); proc = ip.getProcessor(); assertEquals(99,proc.getPixel(0, 0)); // should revert - a simple test ip = new Opener().openTiff(DataConstants.DATA_DIR, "head8bit.tif"); proc = ip.getProcessor(); assertEquals(6,proc.getPixel(0, 0)); proc.set(0,0,99); assertEquals(99,proc.getPixel(0, 0)); ip.revert(); proc = ip.getProcessor(); assertEquals(6,proc.getPixel(0, 0)); // should revert but Roi should not be not reverted Roi roi = new Roi(0,0,1,1); ip = new Opener().openTiff(DataConstants.DATA_DIR, "head8bit.tif"); proc = ip.getProcessor(); assertEquals(6,proc.getPixel(0, 0)); assertNull(ip.getRoi()); ip.setRoi(roi); proc.set(0,0,99); assertEquals(99,proc.getPixel(0, 0)); ip.revert(); proc = ip.getProcessor(); assertEquals(6,proc.getPixel(0, 0)); assertEquals(roi,ip.getRoi()); // roi should survive the revert() call // should revert and changes flag should be correctly updated ip = new Opener().openTiff(DataConstants.DATA_DIR, "head8bit.tif"); assertFalse(ip.changes); proc = ip.getProcessor(); assertEquals(6,proc.getPixel(0, 0)); proc.set(0,0,99); assertEquals(99,proc.getPixel(0, 0)); ip.changes = true; ip.revert(); proc = ip.getProcessor(); assertEquals(6,proc.getPixel(0, 0)); assertFalse(ip.changes); // test that trimProcessor() ran ip = new Opener().openTiff(DataConstants.DATA_DIR, "head8bit.tif"); proc = ip.getProcessor(); assertNull(proc.getSnapshotPixels()); proc.snapshot(); assertNotNull(proc.getSnapshotPixels()); ip.revert(); proc = ip.getProcessor(); assertNull(proc.getSnapshotPixels()); // test that LUT was inverted if needed boolean origInvertStatus = Prefs.useInvertingLut; Prefs.useInvertingLut = true; ip = new Opener().openTiff(DataConstants.DATA_DIR, "head8bit.tif"); proc = ip.getProcessor(); assertFalse(proc.isInvertedLut()); assertEquals(6,proc.get(0, 0)); ip.revert(); proc = ip.getProcessor(); assertTrue(proc.isInvertedLut()); assertEquals(249,proc.get(0, 0)); Prefs.useInvertingLut = origInvertStatus; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void test58() throws Throwable {\n Rectangle2D.Double rectangle2D_Double0 = (Rectangle2D.Double)Plot.DEFAULT_LEGEND_ITEM_BOX;\n double double0 = rectangle2D_Double0.getWidth();\n SubCategoryAxis subCategoryAxis0 = new SubCategoryAxis(\"\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) subCategoryAxis0);\n combinedDomainCategoryPlot0.rendererChanged((RendererChangeEvent) null);\n combinedDomainCategoryPlot0.setWeight((-1699));\n double double1 = combinedDomainCategoryPlot0.getRangeCrosshairValue();\n int int0 = combinedDomainCategoryPlot0.getDomainAxisCount();\n Collection collection0 = combinedDomainCategoryPlot0.getRangeMarkers((Layer) null);\n Color color0 = (Color)combinedDomainCategoryPlot0.getRangeCrosshairPaint();\n combinedDomainCategoryPlot0.mapDatasetToDomainAxis(1, (-1699));\n AxisLocation axisLocation0 = combinedDomainCategoryPlot0.getDomainAxisLocation();\n Range range0 = combinedDomainCategoryPlot0.getDataRange((ValueAxis) null);\n combinedDomainCategoryPlot0.setRangeAxisLocation(axisLocation0, true);\n combinedDomainCategoryPlot0.rendererChanged((RendererChangeEvent) null);\n MockFile mockFile0 = new MockFile(\"$dhA|P=px%DHgW<3M\", \"$dhA|P=px%DHgW<3M\");\n MockFileInputStream mockFileInputStream0 = null;\n try {\n mockFileInputStream0 = new MockFileInputStream((File) mockFile0);\n } catch(FileNotFoundException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"org.evosuite.runtime.mock.java.io.MockFileInputStream\", e);\n }\n }", "public void testGetStartValue2() {\n TaskSeriesCollection c = createCollection2();\n TaskSeriesCollection c3 = createCollection3();\n }", "@Test\n public void baseCommandTests_part2() throws Exception {\n ExecutionSummary executionSummary = testViaExcel(\"unitTest_base_part2.xlsx\");\n assertPassFail(executionSummary, \"crypto\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"macro-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"repeat-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"expression-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"multi-scenario2\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"flow_controls\", new TestOutcomeStats(2, 14));\n }", "public static void main(String[] args) throws Exception {\n\n\t\t testDistance();\n\n\t\t //functionFitting();\n\t\t //testFunction();\n\t}", "@Test(timeout = 4000)\n public void test146() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n String[] stringArray0 = new String[4];\n stringArray0[1] = \"[\";\n stringArray0[2] = \"*\";\n double[] doubleArray0 = new double[7];\n doubleArray0[0] = (double) 0;\n doubleArray0[1] = (double) 2;\n doubleArray0[3] = (double) 1;\n resultMatrixCSV0.setSignificanceWidth(123);\n doubleArray0[4] = (double) 2;\n doubleArray0[5] = (double) 0;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixPlainText0);\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n double[][] doubleArray1 = new double[6][2];\n doubleArray1[0] = doubleArray0;\n doubleArray1[1] = doubleArray0;\n doubleArray1[2] = doubleArray0;\n doubleArray1[3] = doubleArray0;\n doubleArray1[4] = doubleArray0;\n double[] doubleArray2 = new double[3];\n doubleArray2[0] = (double) 1;\n doubleArray2[1] = (double) 1;\n doubleArray2[2] = (double) 2;\n doubleArray1[5] = doubleArray2;\n resultMatrixGnuPlot0.m_StdDev = doubleArray1;\n ResultMatrixCSV resultMatrixCSV2 = new ResultMatrixCSV(resultMatrixCSV1);\n resultMatrixCSV1.clearRanking();\n resultMatrixCSV1.getShowStdDev();\n resultMatrixCSV0.setEnumerateRowNames(false);\n assertEquals(123, resultMatrixCSV0.getSignificanceWidth());\n \n resultMatrixCSV1.getColOrder();\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixGnuPlot0);\n resultMatrixPlainText0.rowNameWidthTipText();\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n }", "@Test\n public void test55() throws Throwable {\n CategoryAxis categoryAxis0 = new CategoryAxis(\"\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot(categoryAxis0);\n DefaultCategoryItemRenderer defaultCategoryItemRenderer0 = new DefaultCategoryItemRenderer();\n boolean boolean0 = categoryAxis0.equals(defaultCategoryItemRenderer0);\n AxisLocation axisLocation0 = AxisLocation.BOTTOM_OR_LEFT;\n combinedDomainCategoryPlot0.setDomainAxisLocation(axisLocation0, false);\n combinedDomainCategoryPlot0.setDomainAxisLocation(0, axisLocation0, false);\n DefaultPolarItemRenderer defaultPolarItemRenderer0 = new DefaultPolarItemRenderer();\n defaultPolarItemRenderer0.setAutoPopulateSeriesPaint(true);\n categoryAxis0.setCategoryLabelPositionOffset(1378);\n BasicStroke basicStroke0 = (BasicStroke)defaultPolarItemRenderer0.getItemStroke(0, 0);\n MockPrintStream mockPrintStream0 = null;\n try {\n mockPrintStream0 = new MockPrintStream(\"\", \"\");\n } catch(FileNotFoundException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"org.evosuite.runtime.mock.java.io.MockFileOutputStream\", e);\n }\n }", "@Test\n public void test() throws Exception {\n// diversifiedRankingxPM2()\n diversifiedRankingxQuAD();\n }", "@Test\n public void testCalcTotalFillTime() throws PuzzleWaterSceneException {\n System.out.println(\"calcTotalFillTime\");\n double tubFillRate = 18.18;\n double numberOfFills = 3.0;\n PuzzleSceneWater instance = new PuzzleSceneWater();\n double expResult = 54.54;\n double result = instance.calcTotalFillTime(tubFillRate, numberOfFills);\n assertEquals(expResult, result, 54.54);\n \n /**\n * Test case #2\n * Test of calcTubFillRate method, of class PuzzleSceneWater.\n */\n System.out.println(\"\\tTest case #2\");\n \n // input values for test case 2\n double volume = -1.0;\n double gpm = 2.2;\n numberOfFills = 3.0;\n \n expResult = -1; // expected output returned value\n \n // call function to run test\n result = instance.calcTubFillRate((int) volume, gpm);\n \n // compare expected return value with actual value returned\n assertEquals(expResult, result, -1.0);\n \n /**\n * Test case #3\n * Test of calcTubFillRate method, of class PuzzleSceneWater.\n */\n System.out.println(\"\\tTest case #3\");\n \n // input values for test case 3\n volume = 40.0;\n gpm = -1;\n numberOfFills = 3.0;\n \n expResult = -1; // expected output returned value\n \n // call function to run test\n result = instance.calcTubFillRate((int) volume, gpm);\n \n // compare expected return value with actual value returned\n assertEquals(expResult, result, -1.0);\n \n /**\n * Test case #4\n * Test of calcTubFillRate method, of class PuzzleSceneWater.\n */\n System.out.println(\"\\tTest case #4\");\n \n // input values for test case 4\n volume = 40.0;\n gpm = 2.2;\n numberOfFills = -1;\n \n expResult = 18.18181818181818; // expected output returned value\n \n // call function to run test\n result = instance.calcTubFillRate((int) volume, gpm);\n \n // compare expected return value with actual value returned\n assertEquals(expResult, result, 18.18181818181818);\n \n /**\n * Test case #5\n * Test of calcTubFillRate method, of class PuzzleSceneWater.\n */\n System.out.println(\"\\tTest case #5\");\n \n // input values for test case 5\n volume = 40.0;\n gpm = 2.2;\n numberOfFills = 3.0;\n \n expResult = 54.54; // expected output returned value\n \n // call function to run test\n result = instance.calcTubFillRate((int) volume, gpm);\n \n // compare expected return value with actual value returned\n assertEquals(expResult, result, 54.54);\n \n }", "@Test(timeout = 4000)\n public void test043() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n resultMatrixGnuPlot0.m_PrintColNames = true;\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n \n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[2] = intArray2;\n int[] intArray3 = new int[6];\n assertFalse(intArray3.equals((Object)intArray2));\n assertFalse(intArray3.equals((Object)intArray1));\n \n intArray3[0] = 0;\n intArray3[1] = 0;\n intArray3[4] = 2;\n intArray3[5] = 0;\n resultMatrixGnuPlot0.setCount(0, 0.0);\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n }", "@Test(timeout = 4000)\n public void test073() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string0 = resultMatrixGnuPlot0.removeFilterNameTipText();\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertNotNull(string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", string0);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixSignificance0.setStdDevWidth(0);\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string1 = resultMatrixSignificance0.getDisplayName();\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertNotNull(string1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Significance only\", string1);\n assertFalse(string1.equals((Object)string0));\n \n String string2 = resultMatrixSignificance0.printColNamesTipText();\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertNotNull(string2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Whether to output column names or just numbers representing them.\", string2);\n assertFalse(string2.equals((Object)string0));\n assertFalse(string2.equals((Object)string1));\n \n boolean boolean0 = resultMatrixGnuPlot0.getDefaultShowAverage();\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(boolean0);\n \n String string3 = resultMatrixSignificance0.removeFilterName(\"JPwA&1'#}BS9j|\");\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertNotNull(string3);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"JPwA&1'#}BS9j|\", string3);\n assertFalse(string3.equals((Object)string2));\n assertFalse(string3.equals((Object)string1));\n assertFalse(string3.equals((Object)string0));\n \n resultMatrixGnuPlot0.setMeanWidth(2);\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n double double0 = resultMatrixGnuPlot0.getCount(1820);\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0.0, double0, 0.01);\n \n // Undeclared exception!\n try { \n resultMatrixSignificance0.toStringHeader();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test11() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, false);\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints(3594);\n Discretize discretize1 = new Discretize();\n discretize1.attributeIndicesTipText();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n Discretize discretize2 = new Discretize();\n // Undeclared exception!\n try { \n discretize2.calculateCutPoints();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "public static void main(String[] args) {\n\t\t \n\t\tResult result1 = JUnitCore.runClasses(TestUnitForCreate.class);\n\t for (Failure failure : result1.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result1.wasSuccessful());\n\n\t Result result2 = JUnitCore.runClasses(TestUnitForReadByCalimNumber.class);\n\t for (Failure failure : result2.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result2.wasSuccessful());\n\t \n\t Result result3 = JUnitCore.runClasses(TestUnitForReadByLossDate.class);\n\t for (Failure failure : result3.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result3.wasSuccessful());\n\t \n\t\tResult result4 = JUnitCore.runClasses(TestUnitForUpdate.class);\n\t\tfor (Failure failure : result4.getFailures()) {\n\t\t\tSystem.out.println(failure.toString());\n\t\t}\n\t\tSystem.out.println(result4.wasSuccessful());\n\t \n\t Result result5 = JUnitCore.runClasses(TestUnitForReadVehicle.class);\n\t for (Failure failure : result5.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result5.wasSuccessful());\n \n\t Result result6 = JUnitCore.runClasses(TestUnitForDelete.class);\n\t for (Failure failure : result6.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result6.wasSuccessful());\n\t \n\t}", "@Test\n\tpublic void testMain() {\n\t\t// TODO: test output streams for various IO methods, emulating a user's\n\t\t// input - kinda like Joel did for CSSE2310\n\t\tAssert.fail();\n\t}", "@Test\n public void testArgline() throws Exception {\n String testName = \"argline\";\n EkstaziPaths.removeEkstaziDirectories(getClass(), testName);\n executeCleanTestStep(testName, 0, 1);\n }", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.relativeAbsoluteError();\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n }", "@Test(timeout = 4000)\n public void test176() throws Throwable {\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixPlainText0);\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixPlainText0);\n resultMatrixCSV0.clearRanking();\n resultMatrixCSV0.getShowStdDev();\n resultMatrixCSV0.getColOrder();\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(5, resultMatrixCSV0.getCountWidth());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot0.setSignificance((-1), 2, 0);\n resultMatrixGnuPlot0.toStringRanking();\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n \n resultMatrixPlainText0.getDefaultPrintColNames();\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n }", "@Test(timeout = 4000)\n public void test140() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV();\n ResultMatrixCSV resultMatrixCSV2 = new ResultMatrixCSV();\n resultMatrixCSV2.toStringKey();\n resultMatrixCSV1.clear();\n resultMatrixCSV2.setShowStdDev(true);\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixCSV0);\n resultMatrixGnuPlot0.getDisplayName();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixCSV2);\n resultMatrixLatex0.toStringMatrix();\n resultMatrixCSV2.getColOrder();\n resultMatrixLatex0.m_RowNameWidth = (-1577);\n resultMatrixLatex0.getDefaultPrintColNames();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n assertEquals((-1577), resultMatrixLatex0.getRowNameWidth());\n assertEquals(2, resultMatrixCSV2.getStdDevPrec());\n }", "@Test\n public void test65() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis((-738.666557918385), 0.0);\n BasicStroke basicStroke0 = (BasicStroke)cyclicNumberAxis0.getAdvanceLineStroke();\n categoryPlot0.setDomainGridlineStroke(basicStroke0);\n FileDescriptor fileDescriptor0 = new FileDescriptor();\n MockFileInputStream mockFileInputStream0 = new MockFileInputStream(fileDescriptor0);\n ObjectInputStream objectInputStream0 = null;\n try {\n objectInputStream0 = new ObjectInputStream((InputStream) mockFileInputStream0);\n } catch(IOException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"org.evosuite.runtime.mock.java.io.NativeMockedIO\", e);\n }\n }", "@Test\n public void baseCommandTests_part1() throws Exception {\n ExecutionSummary executionSummary = testViaExcel(\"unitTest_base_part1.xlsx\");\n assertPassFail(executionSummary, \"base_showcase\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_projectfile\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_array\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_count\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_date\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"actual_in_output\", TestOutcomeStats.allPassed());\n }", "public static void main(String[] args) {\n\t\t\n\t\t testMid();\n\t\t testCircular();\n\t\n\t}", "@Test(timeout = 4000)\n public void test174() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV();\n ResultMatrixCSV resultMatrixCSV2 = new ResultMatrixCSV();\n Vector<String> vector0 = new Vector<String>();\n resultMatrixCSV1.m_HeaderValues = vector0;\n assertFalse(resultMatrixCSV1.getShowStdDev());\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.getRevision();\n int int0 = ResultMatrix.SIGNIFICANCE_TIE;\n resultMatrixSignificance0.getSignificance(44, 2967);\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n }", "@Test\n public void testVizier() throws ExecutionException, InterruptedException {\n }", "public void TestMain(){\n SampleStatements();\n TestMyPow();\n }", "@Test(timeout = 4000)\n public void test066() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[1] = intArray2;\n int[] intArray3 = new int[0];\n assertFalse(intArray3.equals((Object)intArray1));\n assertFalse(intArray3.equals((Object)intArray2));\n \n intArray0[2] = intArray3;\n int[] intArray4 = new int[6];\n assertFalse(intArray4.equals((Object)intArray1));\n assertFalse(intArray4.equals((Object)intArray3));\n assertFalse(intArray4.equals((Object)intArray2));\n \n intArray4[1] = 0;\n intArray4[2] = 2;\n intArray4[3] = 0;\n String string0 = resultMatrixGnuPlot0.getRevision();\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"8034\", string0);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot();\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(50, resultMatrixGnuPlot1.getColNameWidth());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertNotNull(resultMatrixGnuPlot1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n String string1 = resultMatrixGnuPlot1.doubleToString(0, 26);\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(50, resultMatrixGnuPlot1.getColNameWidth());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertNotNull(string1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"0.00000000000000000000000000\", string1);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n assertFalse(string1.equals((Object)string0));\n \n resultMatrixGnuPlot1.addHeader((String) null, \"*\");\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(50, resultMatrixGnuPlot1.getColNameWidth());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[1] = intArray2;\n int[] intArray3 = new int[0];\n assertFalse(intArray3.equals((Object)intArray2));\n assertFalse(intArray3.equals((Object)intArray1));\n \n intArray0[2] = intArray3;\n int[] intArray4 = new int[6];\n assertFalse(intArray4.equals((Object)intArray1));\n assertFalse(intArray4.equals((Object)intArray3));\n assertFalse(intArray4.equals((Object)intArray2));\n \n intArray4[1] = 0;\n intArray4[2] = 2;\n intArray4[3] = 0;\n intArray4[4] = 2;\n intArray4[5] = 0;\n resultMatrixGnuPlot0.setMeanWidth(2);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot();\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertNotNull(resultMatrixGnuPlot1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n double double0 = resultMatrixGnuPlot0.getMean(2, 1504);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0.0, double0, 0.01);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(55, 126);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(50, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertNotNull(resultMatrixHTML0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int int0 = 3;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixPlainText0.setRowNameWidth(3);\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n boolean boolean0 = resultMatrixHTML0.getShowAverage();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(boolean0);\n \n boolean boolean1 = resultMatrixPlainText0.isSignificance(0);\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean1);\n assertTrue(boolean1 == boolean0);\n \n int int1 = resultMatrixHTML0.getColCount();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, int1);\n assertFalse(int1 == int0);\n \n int[] intArray2 = resultMatrixHTML0.getRowOrder();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertNull(intArray2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixHTML0.setMeanPrec((-1));\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(1065, 1);\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertNotNull(resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixGnuPlot0.setMeanWidth(1);\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixPlainText0.setPrintRowNames(false);\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n String[][] stringArray0 = resultMatrixPlainText0.toArray();\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateRowNames());\n assertNotNull(stringArray0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(3, stringArray0.length);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(1, 3486);\n }", "@Test(timeout = 4000)\n public void test181() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n intArray0[1] = intArray2;\n int[] intArray3 = new int[0];\n intArray0[2] = intArray3;\n int[] intArray4 = new int[6];\n intArray4[1] = 0;\n intArray4[2] = 2;\n intArray4[3] = 0;\n intArray4[4] = 2;\n intArray4[5] = 0;\n intArray0[3] = intArray4;\n int[] intArray5 = new int[3];\n intArray0[4] = intArray5;\n int[] intArray6 = new int[3];\n intArray6[1] = 1;\n intArray6[2] = 2;\n intArray0[5] = intArray6;\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n resultMatrixCSV0.setEnumerateRowNames(false);\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixCSV0);\n resultMatrixSignificance0.setColHidden(0, false);\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.getDefaultPrintColNames();\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixCSV0);\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n \n resultMatrixLatex0.getDefaultPrintColNames();\n assertEquals(1, resultMatrixLatex0.getColCount());\n }", "@Test(timeout = 4000)\n public void test189() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(26, 26);\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixSignificance0);\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixSignificance1);\n int int0 = resultMatrixGnuPlot0.getMeanPrec();\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(26, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(2, int0);\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(26, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n }", "public static void run()\n {\n String[] testInput = FileIO.readAsStrings(\"2020/src/day17/Day17TestInput.txt\");\n String[] realInput = FileIO.readAsStrings(\"2020/src/day17/Day17Input.txt\");\n\n Test.assertEqual(\"Day 17 - Part A - Test input\", partA(testInput), 112);\n Test.assertEqual(\"Day 17 - Part A - Challenge input\", partA(realInput), 384);\n Test.assertEqual(\"Day 17 - Part B - Test input\", partB(testInput), 848);\n Test.assertEqual(\"Day 17 - Part B - Challenge input\", partB(realInput), 2012);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[3] = intArray2;\n int[] intArray3 = new int[0];\n assertFalse(intArray3.equals((Object)intArray2));\n assertFalse(intArray3.equals((Object)intArray1));\n \n intArray0[2] = intArray3;\n int[] intArray4 = new int[6];\n assertFalse(intArray4.equals((Object)intArray2));\n assertFalse(intArray4.equals((Object)intArray3));\n assertFalse(intArray4.equals((Object)intArray1));\n \n intArray4[1] = 0;\n intArray4[2] = 2;\n intArray4[3] = 0;\n intArray4[4] = 2;\n intArray4[5] = 0;\n intArray0[3] = intArray4;\n int[] intArray5 = new int[0];\n assertFalse(intArray5.equals((Object)intArray1));\n assertFalse(intArray5.equals((Object)intArray3));\n assertFalse(intArray5.equals((Object)intArray4));\n assertFalse(intArray5.equals((Object)intArray2));\n \n intArray0[4] = intArray5;\n int[] intArray6 = new int[3];\n assertFalse(intArray6.equals((Object)intArray3));\n assertFalse(intArray6.equals((Object)intArray4));\n assertFalse(intArray6.equals((Object)intArray2));\n assertFalse(intArray6.equals((Object)intArray1));\n assertFalse(intArray6.equals((Object)intArray5));\n \n intArray6[1] = 1;\n intArray6[2] = 2;\n intArray0[5] = intArray6;\n int[] intArray7 = new int[2];\n assertFalse(intArray7.equals((Object)intArray4));\n assertFalse(intArray7.equals((Object)intArray6));\n assertFalse(intArray7.equals((Object)intArray3));\n assertFalse(intArray7.equals((Object)intArray2));\n assertFalse(intArray7.equals((Object)intArray5));\n assertFalse(intArray7.equals((Object)intArray1));\n \n intArray7[0] = 1;\n intArray7[1] = 2;\n intArray0[6] = intArray7;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(2, 26);\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(26, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(26, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n String string0 = resultMatrixSignificance0.getRevision();\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(26, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(26, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"8034\", string0);\n \n String string1 = resultMatrixSignificance0.toStringRanking();\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(26, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(26, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertNotNull(string1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"-ranking data not set-\", string1);\n assertFalse(string1.equals((Object)string0));\n \n int int0 = resultMatrixSignificance0.getDisplayCol(0);\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(26, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(26, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, int0);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n intArray0[1] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[2] = intArray2;\n int[] intArray3 = new int[6];\n assertFalse(intArray3.equals((Object)intArray1));\n assertFalse(intArray3.equals((Object)intArray2));\n \n intArray3[1] = 0;\n resultMatrixGnuPlot0.clearRanking();\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n intArray3[2] = 2;\n intArray3[3] = 0;\n intArray3[4] = 2;\n intArray3[5] = 0;\n intArray0[3] = intArray3;\n int[] intArray4 = new int[0];\n assertFalse(intArray4.equals((Object)intArray1));\n assertFalse(intArray4.equals((Object)intArray2));\n assertFalse(intArray4.equals((Object)intArray3));\n \n intArray0[4] = intArray4;\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixGnuPlot0);\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertNotNull(resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixLatex0.setSummary(intArray0, intArray0);\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(7, intArray0.length);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[] intArray5 = resultMatrixCSV0.getColOrder();\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertNull(intArray5);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n boolean boolean0 = resultMatrixLatex0.getDefaultPrintColNames();\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean0);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(50, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n String string0 = resultMatrixCSV0.toStringSummary();\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"-summary data not set-\", string0);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixLatex0);\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n boolean boolean1 = resultMatrixPlainText0.isRowName(505);\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean1);\n assertTrue(boolean1 == boolean0);\n }", "public static void main(String[] args) {\n\t\tString typeBaseline = \"Optimal Tophat\";\n\t\tint windowSize = 3;\n\t\tBaseline b = new Baseline(typeBaseline, windowSize);\n\n\t\t// Make ImzMLWrapper\n\t\tString imzmlPath = \"/Users/parker/work/imzMLPracticeDatasets/s042_continuous-1/S042_Continuous.imzML\";\n\t\tImzMLWrapper imzml = new ImzMLWrapper(imzmlPath);\n\n\t\t// Make experiment.\n\t\tBaselineExperiments exper = new BaselineExperiments(b, imzml, BaselineExperiments.f_LOGARITHMIC,\n\t\t\t\tBaselineExperiments.m_EUCLIDEAN_METRIC, typeBaseline, \"Logarithmic\", windowSize);\n\t\t\n\t\texper.doExperiment();\n\t\t\n\t\texper.Window = 7;\n\t\texper.baseline.setWindowSize(7);\n\t\texper.doExperiment();\n\t\t\n\t\texper.Window = 11;\n\t\texper.baseline.setWindowSize(11);\n\t\texper.doExperiment();\n\t}", "@Test\n public void testImprimirStatistics()\n {\n //this.linealRegressionCalculator.printStatistics();\n }", "public static void main(String[] args) {\n inOrbitDestinationControllerTest();\n// inOrbitReplayControllerTest();\n\n }", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string0 = resultMatrixGnuPlot0.toStringSummary();\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"-summary data not set-\", string0);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string1 = resultMatrixPlainText0.globalInfo();\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertNotNull(string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", string1);\n assertFalse(string1.equals((Object)string0));\n \n int[] intArray0 = new int[0];\n resultMatrixGnuPlot0.setColOrder(intArray0);\n assertArrayEquals(new int[] {}, intArray0);\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, intArray0.length);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV();\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertNotNull(resultMatrixCSV1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n \n ResultMatrixCSV resultMatrixCSV2 = new ResultMatrixCSV();\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV2.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV2.printColNamesTipText());\n assertEquals(0, resultMatrixCSV2.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV2.colNameWidthTipText());\n assertFalse(resultMatrixCSV2.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV2.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV2.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV2.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV2.getEnumerateColNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV2.globalInfo());\n assertEquals(0, resultMatrixCSV2.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV2.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV2.getMeanWidth());\n assertFalse(resultMatrixCSV2.getShowAverage());\n assertEquals(2, resultMatrixCSV2.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV2.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV2.getStdDevWidth());\n assertFalse(resultMatrixCSV2.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV2.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV2.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV2.meanWidthTipText());\n assertTrue(resultMatrixCSV2.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixCSV2.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV2.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV2.getDisplayName());\n assertFalse(resultMatrixCSV2.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV2.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV2.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV2.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV2.meanPrecTipText());\n assertEquals(2, resultMatrixCSV2.getMeanPrec());\n assertFalse(resultMatrixCSV2.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV2.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixCSV2.getRowNameWidth());\n assertFalse(resultMatrixCSV2.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV2.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV2.showStdDevTipText());\n assertEquals(0, resultMatrixCSV2.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV2.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV2.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV2.rowNameWidthTipText());\n assertFalse(resultMatrixCSV2.getShowStdDev());\n assertFalse(resultMatrixCSV2.getPrintColNames());\n assertFalse(resultMatrixCSV2.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV2.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV2.removeFilterNameTipText());\n assertTrue(resultMatrixCSV2.getPrintRowNames());\n assertEquals(2, resultMatrixCSV2.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV2.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV2.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV2.significanceWidthTipText());\n assertNotNull(resultMatrixCSV2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixCSV2.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV2.equals((Object)resultMatrixCSV0));\n \n resultMatrixCSV2.setShowAverage(true);\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV2.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV2.printColNamesTipText());\n assertEquals(0, resultMatrixCSV2.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV2.colNameWidthTipText());\n assertFalse(resultMatrixCSV2.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV2.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV2.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV2.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV2.getEnumerateColNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV2.globalInfo());\n assertEquals(0, resultMatrixCSV2.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV2.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV2.getMeanWidth());\n assertEquals(2, resultMatrixCSV2.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV2.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV2.getStdDevWidth());\n assertFalse(resultMatrixCSV2.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV2.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV2.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV2.meanWidthTipText());\n assertTrue(resultMatrixCSV2.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixCSV2.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV2.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV2.getDisplayName());\n assertFalse(resultMatrixCSV2.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV2.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV2.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV2.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV2.meanPrecTipText());\n assertEquals(2, resultMatrixCSV2.getMeanPrec());\n assertFalse(resultMatrixCSV2.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV2.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixCSV2.getRowNameWidth());\n assertFalse(resultMatrixCSV2.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV2.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV2.showStdDevTipText());\n assertEquals(0, resultMatrixCSV2.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV2.getDefaultRemoveFilterName());\n assertTrue(resultMatrixCSV2.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV2.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV2.rowNameWidthTipText());\n assertFalse(resultMatrixCSV2.getShowStdDev());\n assertFalse(resultMatrixCSV2.getPrintColNames());\n assertFalse(resultMatrixCSV2.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV2.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV2.removeFilterNameTipText());\n assertTrue(resultMatrixCSV2.getPrintRowNames());\n assertEquals(2, resultMatrixCSV2.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV2.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV2.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV2.significanceWidthTipText());\n assertNotSame(resultMatrixCSV2, resultMatrixCSV1);\n assertNotSame(resultMatrixCSV2, resultMatrixCSV0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixCSV2.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV2.equals((Object)resultMatrixCSV0));\n \n String string2 = resultMatrixCSV1.getRevision();\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertNotNull(string2);\n assertNotSame(resultMatrixCSV1, resultMatrixCSV0);\n assertNotSame(resultMatrixCSV1, resultMatrixCSV2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"8034\", string2);\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV2));\n assertFalse(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n \n resultMatrixCSV0.clear();\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertNotSame(resultMatrixCSV0, resultMatrixCSV2);\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV2));\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n \n String string3 = resultMatrixCSV2.globalInfo();\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV2.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV2.printColNamesTipText());\n assertEquals(0, resultMatrixCSV2.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV2.colNameWidthTipText());\n assertFalse(resultMatrixCSV2.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV2.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV2.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV2.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV2.getEnumerateColNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV2.globalInfo());\n assertEquals(0, resultMatrixCSV2.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV2.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV2.getMeanWidth());\n assertEquals(2, resultMatrixCSV2.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV2.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV2.getStdDevWidth());\n assertFalse(resultMatrixCSV2.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV2.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV2.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV2.meanWidthTipText());\n assertTrue(resultMatrixCSV2.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixCSV2.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV2.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV2.getDisplayName());\n assertFalse(resultMatrixCSV2.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV2.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV2.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV2.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV2.meanPrecTipText());\n assertEquals(2, resultMatrixCSV2.getMeanPrec());\n assertFalse(resultMatrixCSV2.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV2.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixCSV2.getRowNameWidth());\n assertFalse(resultMatrixCSV2.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV2.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV2.showStdDevTipText());\n assertEquals(0, resultMatrixCSV2.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV2.getDefaultRemoveFilterName());\n assertTrue(resultMatrixCSV2.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV2.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV2.rowNameWidthTipText());\n assertFalse(resultMatrixCSV2.getShowStdDev());\n assertFalse(resultMatrixCSV2.getPrintColNames());\n assertFalse(resultMatrixCSV2.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV2.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV2.removeFilterNameTipText());\n assertTrue(resultMatrixCSV2.getPrintRowNames());\n assertEquals(2, resultMatrixCSV2.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV2.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV2.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV2.significanceWidthTipText());\n assertNotNull(string3);\n assertNotSame(resultMatrixCSV2, resultMatrixCSV1);\n assertNotSame(resultMatrixCSV2, resultMatrixCSV0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", string3);\n assertFalse(resultMatrixCSV2.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV2.equals((Object)resultMatrixCSV0));\n assertFalse(string3.equals((Object)string2));\n assertFalse(string3.equals((Object)string1));\n assertFalse(string3.equals((Object)string0));\n \n resultMatrixCSV0.setEnumerateRowNames(true);\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertNotSame(resultMatrixCSV0, resultMatrixCSV2);\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV2));\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(1, 637);\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(637, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(637, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n double double0 = resultMatrixSignificance0.getStdDev(15, 0);\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(637, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(637, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0.0, double0, 0.01);\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixCSV2);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertTrue(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV2.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV2.printColNamesTipText());\n assertEquals(0, resultMatrixCSV2.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV2.colNameWidthTipText());\n assertFalse(resultMatrixCSV2.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV2.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV2.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV2.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV2.getEnumerateColNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV2.globalInfo());\n assertEquals(0, resultMatrixCSV2.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV2.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV2.getMeanWidth());\n assertEquals(2, resultMatrixCSV2.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV2.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV2.getStdDevWidth());\n assertFalse(resultMatrixCSV2.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV2.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV2.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV2.meanWidthTipText());\n assertTrue(resultMatrixCSV2.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixCSV2.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV2.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV2.getDisplayName());\n assertFalse(resultMatrixCSV2.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV2.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV2.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV2.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV2.meanPrecTipText());\n assertEquals(2, resultMatrixCSV2.getMeanPrec());\n assertFalse(resultMatrixCSV2.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV2.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixCSV2.getRowNameWidth());\n assertFalse(resultMatrixCSV2.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV2.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV2.showStdDevTipText());\n assertEquals(0, resultMatrixCSV2.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV2.getDefaultRemoveFilterName());\n assertTrue(resultMatrixCSV2.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV2.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV2.rowNameWidthTipText());\n assertFalse(resultMatrixCSV2.getShowStdDev());\n assertFalse(resultMatrixCSV2.getPrintColNames());\n assertFalse(resultMatrixCSV2.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV2.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV2.removeFilterNameTipText());\n assertTrue(resultMatrixCSV2.getPrintRowNames());\n assertEquals(2, resultMatrixCSV2.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV2.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV2.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV2.significanceWidthTipText());\n assertNotNull(resultMatrixHTML0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixCSV2.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV2.equals((Object)resultMatrixCSV0));\n \n resultMatrixHTML0.setRowOrder(intArray0);\n assertArrayEquals(new int[] {}, intArray0);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertTrue(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV2.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV2.printColNamesTipText());\n assertEquals(0, resultMatrixCSV2.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV2.colNameWidthTipText());\n assertFalse(resultMatrixCSV2.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV2.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV2.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV2.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV2.getEnumerateColNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV2.globalInfo());\n assertEquals(0, resultMatrixCSV2.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV2.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV2.getMeanWidth());\n assertEquals(2, resultMatrixCSV2.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV2.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV2.getStdDevWidth());\n assertFalse(resultMatrixCSV2.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV2.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV2.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV2.meanWidthTipText());\n assertTrue(resultMatrixCSV2.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixCSV2.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV2.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV2.getDisplayName());\n assertFalse(resultMatrixCSV2.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV2.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV2.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV2.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV2.meanPrecTipText());\n assertEquals(2, resultMatrixCSV2.getMeanPrec());\n assertFalse(resultMatrixCSV2.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV2.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixCSV2.getRowNameWidth());\n assertFalse(resultMatrixCSV2.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV2.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV2.showStdDevTipText());\n assertEquals(0, resultMatrixCSV2.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV2.getDefaultRemoveFilterName());\n assertTrue(resultMatrixCSV2.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV2.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV2.rowNameWidthTipText());\n assertFalse(resultMatrixCSV2.getShowStdDev());\n assertFalse(resultMatrixCSV2.getPrintColNames());\n assertFalse(resultMatrixCSV2.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV2.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV2.removeFilterNameTipText());\n assertTrue(resultMatrixCSV2.getPrintRowNames());\n assertEquals(2, resultMatrixCSV2.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV2.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV2.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV2.significanceWidthTipText());\n assertNotSame(resultMatrixCSV2, resultMatrixCSV1);\n assertNotSame(resultMatrixCSV2, resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, intArray0.length);\n assertFalse(resultMatrixCSV2.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV2.equals((Object)resultMatrixCSV0));\n \n // Undeclared exception!\n try { \n resultMatrixHTML0.toStringHeader();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test167() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.showStdDevTipText();\n resultMatrixLatex0.getRevision();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixLatex0);\n resultMatrixGnuPlot0.RIGHT_PARENTHESES = \")\";\n resultMatrixGnuPlot0.getDefaultRowNameWidth();\n int[] intArray0 = new int[7];\n intArray0[0] = 2;\n intArray0[1] = 2;\n intArray0[2] = 0;\n intArray0[3] = 1;\n intArray0[4] = 0;\n intArray0[5] = 1;\n intArray0[6] = 2;\n resultMatrixLatex0.m_ColOrder = intArray0;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixGnuPlot0);\n int[] intArray1 = new int[6];\n intArray1[0] = 0;\n intArray1[1] = 50;\n intArray1[2] = 50;\n intArray1[3] = 50;\n intArray1[4] = 2;\n intArray1[5] = 0;\n resultMatrixSignificance0.m_RankingLosses = intArray1;\n resultMatrixSignificance0.getDisplayName();\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n \n String string0 = resultMatrixLatex0.getSummaryTitle(0);\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"a\", string0);\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n }", "public void testMain() throws ClassNotFoundException, IOException \r\n {\r\n String[] args = new String[1];\r\n args[0] = \"SyntaxTest\";\r\n \r\n System.out.println(\"Filename: SyntaxTest:\\n\");\r\n Rectangle1.main(args);\r\n \r\n\r\n\r\n String[] args2 = new String[1];\r\n args2[0] = \"SimpleInsertionTest\";\r\n \r\n System.out.println(\"\\n\\nFilename: SimpleInsertionTest:\\n\");\r\n Rectangle1.main(args2);\r\n \r\n String[] args3 = new String[1];\r\n args3[0] = \"RegionSearchTest\";\r\n \r\n System.out.println(\"\\n\\nFilename: RegionSearchTest:\\n\");\r\n Rectangle1.main(args3);\r\n \r\n String[] args4 = new String[1];\r\n args4[0] = \"WebCatTests\";\r\n \r\n System.out.println(\"\\n\\nFilename: WebCatTests:\\n\");\r\n Rectangle1.main(args4);\r\n \r\n String[] args5 = new String[1];\r\n args5[0] = \"RemoveTest\";\r\n \r\n System.out.println(\"\\n\\nFilename: RemoveTest:\\n\");\r\n Rectangle1.main(args5);\r\n \r\n String[] args6 = new String[1];\r\n args6[0] = \"MoreCommands\";\r\n \r\n System.out.println(\"\\n\\nFilename: MoreCommands:\\n\");\r\n Rectangle1.main(args6);\r\n \r\n assertEquals(\"RegionSearchTest\", args3[0]);\r\n }", "public static void main( String[] args )\n {\n DataSet ds1 = DataSetFactory.getTestDataSet(); //create the first test DataSet\n DataSet ds2 = DataSetFactory.getTestDataSet(); //create the second test DataSet\n new ViewManager(ds1, ViewManager.IMAGE);\n Operator op = new DataSetDivide( ds1, ds2, true );\n DataSet new_ds = (DataSet)op.getResult();\n new ViewManager(new_ds, ViewManager.IMAGE);\n }", "@Test\n\tpublic void test2() throws Exception {\n\t\tprepareTest(Arrays.asList(\"/tests/basic/data01endpoint1.ttl\", \"/tests/basic/data01endpoint2.ttl\"));\n\t\texecute(\"/tests/basic/query02.rq\", \"/tests/basic/query02.ttl\", false);\n\t}", "@Test(timeout = 4000)\n public void test094() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[3] = intArray2;\n int[] intArray3 = new int[0];\n assertFalse(intArray3.equals((Object)intArray2));\n assertFalse(intArray3.equals((Object)intArray1));\n \n intArray0[2] = intArray3;\n int[] intArray4 = new int[6];\n assertFalse(intArray4.equals((Object)intArray2));\n assertFalse(intArray4.equals((Object)intArray3));\n assertFalse(intArray4.equals((Object)intArray1));\n \n intArray4[1] = 0;\n intArray4[2] = 2;\n intArray4[3] = 0;\n intArray4[4] = 2;\n intArray4[5] = 0;\n intArray0[3] = intArray4;\n int[] intArray5 = new int[0];\n assertFalse(intArray5.equals((Object)intArray4));\n assertFalse(intArray5.equals((Object)intArray1));\n assertFalse(intArray5.equals((Object)intArray2));\n assertFalse(intArray5.equals((Object)intArray3));\n \n intArray0[4] = intArray5;\n intArray0[5] = intArray4;\n intArray0[6] = intArray4;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(0, 26);\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(26, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(26, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string0 = resultMatrixSignificance0.getRevision();\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(26, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(26, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"8034\", string0);\n \n String string1 = resultMatrixSignificance0.toStringRanking();\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(26, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(26, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertNotNull(string1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"-ranking data not set-\", string1);\n assertFalse(string1.equals((Object)string0));\n \n int int0 = resultMatrixSignificance0.getDisplayCol(0);\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(26, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(26, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals((-1), int0);\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixGnuPlot0.setColNameWidth(166);\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(166, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(166, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(50, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertNotNull(resultMatrixHTML0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n String[] stringArray0 = new String[8];\n stringArray0[0] = \"\";\n stringArray0[1] = \" \";\n stringArray0[2] = \"-col-name-width\";\n stringArray0[3] = \"v\";\n stringArray0[4] = \"\";\n stringArray0[5] = \"\";\n stringArray0[6] = \"9;)w#KSr]i*JiLJmi\";\n stringArray0[7] = \"*\";\n try { \n resultMatrixHTML0.setOptions(stringArray0);\n fail(\"Expecting exception: NumberFormatException\");\n \n } catch(NumberFormatException e) {\n //\n // For input string: \\\"v\\\"\n //\n verifyException(\"java.lang.NumberFormatException\", e);\n }\n }", "@Test\n public void testCalculateScore() {\n System.out.println(\"calculateScore\");\n String input1 = \"8 0 3 1 6 5 -2 4 7 1 3 -2 6\";\n String input2 = \"8 0 3 1 6 5 -2 4 7 3 2 -2 6\";\n CCGeneticDrift instance = new CCGeneticDrift();\n int expResult1 = 2;\n int expResult2 = 4;\n int result1 = instance.calculateScore(input1);\n assertEquals(result1, expResult1);\n int result2 = instance.calculateScore(input2);\n assertEquals(result2, expResult2);\n }", "@Test(enabled =true, groups={\"fast\",\"window.One\",\"unix.One\",\"release1.one\"})\n\tpublic void testOne(){\n\t\tSystem.out.println(\"In TestOne\");\n\t}", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string0 = resultMatrixGnuPlot0.getRevision();\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"8034\", string0);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot();\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertNotNull(resultMatrixGnuPlot1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n String string1 = resultMatrixGnuPlot1.doubleToString(2, 1);\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertNotNull(string1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"2.0\", string1);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n assertFalse(string1.equals((Object)string0));\n \n resultMatrixGnuPlot1.addHeader(\"*\", \"HTML\");\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n int int0 = resultMatrixGnuPlot1.getDefaultCountWidth();\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, int0);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n }", "@Test(timeout = 4000)\n public void test027() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(50, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertNotNull(resultMatrixHTML0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixPlainText0.setRowNameWidth(3);\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n boolean boolean0 = resultMatrixHTML0.getShowAverage();\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean0);\n \n boolean boolean1 = resultMatrixPlainText0.isSignificance(0);\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean1);\n assertTrue(boolean1 == boolean0);\n \n int int0 = resultMatrixHTML0.getColCount();\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, int0);\n \n int[] intArray2 = resultMatrixHTML0.getRowOrder();\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertNull(intArray2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(1065, 1);\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixCSV0.setMeanPrec(2);\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String[][] stringArray0 = resultMatrixPlainText0.toArray();\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertNotNull(stringArray0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(3, stringArray0.length);\n \n String string0 = resultMatrixCSV0.getSummaryTitle(1);\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"b\", string0);\n \n String string1 = resultMatrixCSV0.toStringRanking();\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertNotNull(string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"-ranking data not set-\", string1);\n assertFalse(string1.equals((Object)string0));\n \n double double0 = resultMatrixGnuPlot0.getAverage(554);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0.0, double0, 0.01);\n \n resultMatrixPlainText0.assign(resultMatrixCSV0);\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1065, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(1065, resultMatrixPlainText0.getVisibleColCount());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n boolean boolean2 = resultMatrixGnuPlot0.isAverage(0);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean2);\n assertTrue(boolean2 == boolean1);\n assertTrue(boolean2 == boolean0);\n }", "@Test\n public void testPlotExport(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecCommandStack.push(VecCommandFactory.GetShapeCommand(VecCommandType.PLOT, fakeCoord));\n String print = VecCommandStack.peek().PrintToFile();\n assertEquals(\"PLOT 0.1 0.2 \\n\", print);\n }", "@Test(timeout = 4000)\n public void test141() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(0, 12);\n resultMatrixCSV0.doubleToString((-1649.242085), 0);\n resultMatrixCSV0.clearSummary();\n ResultMatrixCSV.main((String[]) null);\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixCSV0);\n ResultMatrixCSV resultMatrixCSV2 = new ResultMatrixCSV(resultMatrixCSV1);\n ResultMatrixHTML.main((String[]) null);\n }", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(636, 0);\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(636, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(636, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string0 = resultMatrixGnuPlot0.toStringSummary();\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(636, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(636, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"-summary data not set-\", string0);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n String string1 = resultMatrixGnuPlot0.toStringSummary();\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(636, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(636, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertNotNull(string1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"-summary data not set-\", string1);\n \n ResultMatrixPlainText resultMatrixPlainText1 = new ResultMatrixPlainText();\n assertFalse(resultMatrixPlainText1.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText1.getCountWidth());\n assertEquals(0, resultMatrixPlainText1.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixPlainText1.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixPlainText1.getDefaultMeanPrec());\n assertEquals(25, resultMatrixPlainText1.getRowNameWidth());\n assertTrue(resultMatrixPlainText1.getDefaultPrintColNames());\n assertTrue(resultMatrixPlainText1.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText1.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText1.getDisplayName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText1.enumerateColNamesTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText1.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText1.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText1.getMeanPrec());\n assertFalse(resultMatrixPlainText1.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText1.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText1.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText1.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText1.printColNamesTipText());\n assertTrue(resultMatrixPlainText1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixPlainText1.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText1.significanceWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText1.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText1.getStdDevWidth());\n assertEquals(1, resultMatrixPlainText1.getVisibleColCount());\n assertTrue(resultMatrixPlainText1.getEnumerateColNames());\n assertFalse(resultMatrixPlainText1.getShowAverage());\n assertEquals(0, resultMatrixPlainText1.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText1.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText1.showAverageTipText());\n assertTrue(resultMatrixPlainText1.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText1.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText1.printRowNamesTipText());\n assertFalse(resultMatrixPlainText1.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText1.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText1.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText1.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText1.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText1.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText1.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText1.getRemoveFilterName());\n assertFalse(resultMatrixPlainText1.getEnumerateRowNames());\n assertEquals(25, resultMatrixPlainText1.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixPlainText1.getVisibleRowCount());\n assertFalse(resultMatrixPlainText1.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText1.getStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText1.getColCount());\n assertNotNull(resultMatrixPlainText1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixPlainText1.equals((Object)resultMatrixPlainText0));\n \n String string2 = resultMatrixPlainText1.globalInfo();\n assertFalse(resultMatrixPlainText1.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText1.getCountWidth());\n assertEquals(0, resultMatrixPlainText1.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixPlainText1.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixPlainText1.getDefaultMeanPrec());\n assertEquals(25, resultMatrixPlainText1.getRowNameWidth());\n assertTrue(resultMatrixPlainText1.getDefaultPrintColNames());\n assertTrue(resultMatrixPlainText1.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText1.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText1.getDisplayName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText1.enumerateColNamesTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText1.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText1.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText1.getMeanPrec());\n assertFalse(resultMatrixPlainText1.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText1.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText1.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText1.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText1.printColNamesTipText());\n assertTrue(resultMatrixPlainText1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixPlainText1.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText1.significanceWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText1.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText1.getStdDevWidth());\n assertEquals(1, resultMatrixPlainText1.getVisibleColCount());\n assertTrue(resultMatrixPlainText1.getEnumerateColNames());\n assertFalse(resultMatrixPlainText1.getShowAverage());\n assertEquals(0, resultMatrixPlainText1.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText1.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText1.showAverageTipText());\n assertTrue(resultMatrixPlainText1.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText1.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText1.printRowNamesTipText());\n assertFalse(resultMatrixPlainText1.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText1.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText1.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText1.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText1.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText1.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText1.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText1.getRemoveFilterName());\n assertFalse(resultMatrixPlainText1.getEnumerateRowNames());\n assertEquals(25, resultMatrixPlainText1.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixPlainText1.getVisibleRowCount());\n assertFalse(resultMatrixPlainText1.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText1.getStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText1.getColCount());\n assertNotNull(string2);\n assertNotSame(resultMatrixPlainText1, resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", string2);\n assertFalse(resultMatrixPlainText1.equals((Object)resultMatrixPlainText0));\n assertFalse(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n \n resultMatrixGnuPlot0.setColOrder((int[]) null);\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(636, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertNotNull(resultMatrixCSV0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixCSV0.setShowAverage(true);\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string3 = resultMatrixCSV0.getRevision();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertNotNull(string3);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"8034\", string3);\n assertFalse(string3.equals((Object)string2));\n assertFalse(string3.equals((Object)string1));\n assertFalse(string3.equals((Object)string0));\n \n resultMatrixCSV0.clear();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string4 = resultMatrixCSV0.globalInfo();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertNotNull(string4);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", string4);\n assertFalse(string4.equals((Object)string3));\n assertFalse(string4.equals((Object)string2));\n assertFalse(string4.equals((Object)string0));\n assertFalse(string4.equals((Object)string1));\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixPlainText0);\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixPlainText0.equals((Object)resultMatrixPlainText1));\n \n resultMatrixSignificance0.setColHidden(1, true);\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(5, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertNotSame(resultMatrixPlainText0, resultMatrixPlainText1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixPlainText0.equals((Object)resultMatrixPlainText1));\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertNotNull(resultMatrixSignificance1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n int int0 = resultMatrixSignificance1.getVisibleColCount();\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, int0);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n }", "public void testCaseTwo() {\n\t\tgrcbal3 = new GRCbal3();\n\n\t\t// first tick\n\t\tgrcbal3.doTick();\n\t\tassertEquals(grcbal3.a.isPresent(), ABSENT);\n\t\tassertEquals(grcbal3.b.isPresent(), ABSENT);\n\t\tassertEquals(grcbal3.c.isPresent(), ABSENT);\n\t\tassertEquals(grcbal3.d.isPresent(), ABSENT);\n\t\tassertEquals(grcbal3.e.isPresent(), ABSENT);\n\t\tassertEquals(grcbal3.t.isPresent(), ABSENT);\n\n\t\t// second tick\n\t\tgrcbal3.doTick();\n\t\tassertEquals(grcbal3.a.isPresent(), ABSENT);\n\t\tassertEquals(grcbal3.b.isPresent(), PRESENT);\n\t\tassertEquals(grcbal3.c.isPresent(), ABSENT);\n\t\tassertEquals(grcbal3.d.isPresent(), ABSENT);\n\t\tassertEquals(grcbal3.e.isPresent(), ABSENT);\n\t\tassertEquals(grcbal3.t.isPresent(), ABSENT);\n\t}", "@Test(timeout = 4000)\n public void test145() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(637, 0);\n resultMatrixGnuPlot0.toStringSummary();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n resultMatrixPlainText0.globalInfo();\n int[] intArray0 = new int[0];\n resultMatrixGnuPlot0.setColOrder(intArray0);\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV();\n ResultMatrixCSV resultMatrixCSV2 = new ResultMatrixCSV();\n resultMatrixCSV2.setShowAverage(true);\n resultMatrixCSV1.getRevision();\n resultMatrixCSV0.clear();\n resultMatrixCSV2.globalInfo();\n resultMatrixCSV0.setEnumerateRowNames(true);\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixCSV0);\n resultMatrixSignificance0.setColHidden(0, false);\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n resultMatrixSignificance1.getVisibleColCount();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n boolean boolean0 = resultMatrixCSV1.getPrintRowNames();\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertTrue(boolean0);\n }", "public static void run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n //countTautPaths();\n// other();\n// testLOSScan();\n //testRPSScan();\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(50, resultMatrixHTML0.getRowNameWidth());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertNotNull(resultMatrixHTML0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixPlainText0.setRowNameWidth(3);\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n boolean boolean0 = resultMatrixHTML0.getShowAverage();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(boolean0);\n \n boolean boolean1 = resultMatrixPlainText0.isSignificance(0);\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean1);\n assertTrue(boolean1 == boolean0);\n \n int int0 = resultMatrixHTML0.getColCount();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, int0);\n \n resultMatrixHTML0.setMeanPrec((-1));\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertNotNull(resultMatrixLatex0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixLatex0.setSummary(intArray0, intArray0);\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(7, intArray0.length);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertNotNull(resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int[] intArray2 = resultMatrixCSV0.getColOrder();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertNull(intArray2);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex(resultMatrixHTML0);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertFalse(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertNotNull(resultMatrixLatex1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n boolean boolean2 = resultMatrixLatex1.getDefaultPrintColNames();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertFalse(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(boolean2);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n assertTrue(boolean2 == boolean0);\n assertTrue(boolean2 == boolean1);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixGnuPlot0);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(50, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n String string0 = resultMatrixCSV0.toStringSummary();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"-summary data not set-\", string0);\n \n boolean boolean3 = resultMatrixGnuPlot0.getDefaultEnumerateColNames();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean3);\n assertTrue(boolean3 == boolean2);\n assertTrue(boolean3 == boolean0);\n assertTrue(boolean3 == boolean1);\n \n int int1 = resultMatrixLatex0.getDefaultRowNameWidth();\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertNotSame(resultMatrixLatex0, resultMatrixLatex1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, int1);\n assertFalse(int1 == int0);\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex1));\n }", "@Test\n public void testFitnessProportionateSelection()\n {\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int[][] intArray0 = new int[2][4];\n int[] intArray1 = new int[1];\n intArray1[0] = 0;\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[1] = intArray1;\n resultMatrixGnuPlot0.setRanking(intArray0);\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, intArray0.length);\n \n // Undeclared exception!\n try { \n resultMatrixGnuPlot0.setSize((-4715), (-4715));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Override\n public void runTest() {\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\trand = new Random();\n\t\tlong seed = rand.nextLong();\n\t\tmockTG = mock(TrapGrid.class);\n\t\ttestSimRunner1 = new SimulationRunner(mockTG, numDays, numFlies, diffCoeff, \n\t\t\t\tstepSize, stepsPerDay, turnAngleStdev, useMDD, seed, 5);\n\t\tmockSim1 = mock(Simulation.class);\n\t\ttestSimRunner2 = spy(new SimulationRunner(mockTG, numDays, numFlies, diffCoeff, \n\t\t\t\tstepSize, stepsPerDay, turnAngleStdev, useMDD, seed, 2));\n\t\tdoReturn(mockSim1)\n\t\t\t.when(testSimRunner2)\n\t\t\t.createSimulation( any( TrapGrid.class), any ( Outbreak.class));\n\t\tSimulationResultsHolder mockSimResults = mock(SimulationResultsHolder.class);\n\t\tdoReturn(mockSimResults)\n\t\t\t.when(mockSim1)\n\t\t\t.runSimulation();\n\t\tString outbreakFile = \"foo.outbreak\";\n\t\ttestSimRunner3 = new SimulationRunner(mockTG, outbreakFile, numDays, numFlies, diffCoeff, \n\t\t\t\tstepSize, stepsPerDay, turnAngleStdev, useMDD, seed);\n\t}", "@BeforeClass\n public static void setUpClass() throws Exception {\n cpuWorkLoad = new RtdBaseContinuous<Float>(maxAgeCpuWorkLoad);\n cpuWorkLoad.setValidatorRtd((ValidatorRtdInterface) new ValidatorRtdFloat());\n \n memWorkLoad = new RtdBaseContinuous<Float>(maxAgeMemWorkLoad);\n memWorkLoad.setValidatorRtd((ValidatorRtdInterface) new ValidatorRtdFloat());\n\n loadTrend = new RtdBaseDiscrete<Float>();\n loadTrend.setValidatorRtd((ValidatorRtdInterface) new ValidatorRtdFloat());\n \n measureVal = new RtdDerived<Float>((AbstractCalcRtdDerivation) new MeasureValCalc(Long.valueOf(5)));\n measureVal.addRtdReadSet(\"cpuWorkLoad\",cpuWorkLoad);\n measureVal.addRtdReadSet(\"memWorkLoad\",memWorkLoad);\n measureVal.addRtdReadSet(\"loadTrend\",loadTrend);\n \n testByteDiscrete = new RtdBaseDiscrete<Byte>();\n testByteDiscrete.setValidatorRtd((ValidatorRtdInterface) new ValidatorRtdByte());\n }", "public static void main(String[] args){\r\n\t\tputSPECmeasurement(System.nanoTime(), 100, 1000, \"nix1\", 5000);\r\n\t\tputSPECmeasurement(System.nanoTime(), 200, 2000, \"nix2\", 10000);\r\n\t}", "@Test\n public void brewTest(){\n try{\n cmTest.brew(2.5,15);\n cmTest.brew(2.4,14.5);\n cmTest.brew(2.6,14.5);\n } catch (Exception e) {\n fail();\n }\n\n }", "private static void sample2() {\n\t\tIComputer computer = new Computer();\n\t\tcomputer.setProgram(\n\t\t\t(byte) 0x70,\n\t\t\t(byte) 0xff,\n\t\t\t(byte) 0xc0,\n\t\t\t(byte) 0xc1,\n\t\t\t(byte) 0x70,\n\t\t\t(byte) 0xc0,\n\t\t\t(byte) 0xff);\n\t\tTestContext context = new TestContext(\n\t\t (byte) 0xa1, (byte) 0x9b, (byte) 0x3c);\n\t\tcomputer.run(context);\n\t\tSystem.out.println(context.outputToString());\n\t}", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test016() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String[] stringArray0 = new String[8];\n stringArray0[0] = \"v\";\n resultMatrixGnuPlot0.setShowStdDev(true);\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n stringArray0[1] = \"\";\n stringArray0[2] = \"*\";\n stringArray0[3] = \" \";\n stringArray0[4] = \"\";\n stringArray0[5] = \"v\";\n stringArray0[6] = \"v\";\n stringArray0[7] = \" \";\n resultMatrixGnuPlot0.setOptions(stringArray0);\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(8, stringArray0.length);\n \n resultMatrixGnuPlot0.m_ColNames = stringArray0;\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(8, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n \n int int0 = resultMatrixGnuPlot0.getStdDevPrec();\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(8, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, int0);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(0, 969);\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(969, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(969, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertNotNull(resultMatrixLatex0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n // Undeclared exception!\n try { \n resultMatrixLatex0.setRanking((int[][]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixGnuPlot0);\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(50, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixSignificance0.assign(resultMatrixGnuPlot0);\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(50, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n // Undeclared exception!\n try { \n resultMatrixSignificance0.getHeader((String) null);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test\n public void testSumEstimatedProxySizeActualDevelopmentTime()\n {\n assertEquals(this.linealRegressionCalculator.sumEstimatedProxySizeActualDevelopmentTime(), 411628.6, 0.01); \n }", "@Test\n public void testingTheTwoPlane2016Order() {\n }", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[1] = intArray2;\n int[] intArray3 = new int[1];\n assertFalse(intArray3.equals((Object)intArray2));\n assertFalse(intArray3.equals((Object)intArray1));\n \n intArray0[2] = intArray3;\n String string0 = resultMatrixGnuPlot0.getRevision();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"8034\", string0);\n \n double double0 = resultMatrixGnuPlot0.getMean(1129, 97);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0.0, double0, 0.01);\n \n ResultMatrixGnuPlot.main((String[]) null);\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixGnuPlot0);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertNotNull(resultMatrixGnuPlot1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n String string1 = resultMatrixGnuPlot1.getRowName(1);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertNull(string1);\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n resultMatrixGnuPlot1.m_MeanWidth = 1129;\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(1129, resultMatrixGnuPlot1.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n \n int int0 = resultMatrixGnuPlot1.getDefaultColNameWidth();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(1129, resultMatrixGnuPlot1.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(50, int0);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n boolean boolean0 = resultMatrixGnuPlot1.getDefaultEnumerateColNames();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(1129, resultMatrixGnuPlot1.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean0);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "public static void main(String[] arg) {\n testSingleLowRate();\n testSingleHighRate();\n testMarriedLowRate();\n testMarriedHighRate();\n System.out.println(doesPass ? \"PASS\" : \"FAIL\");\n }", "@Test(timeout = 4000)\n public void test183() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot0.toStringMatrix();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n resultMatrixPlainText0.globalInfo();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV();\n resultMatrixCSV1.setCountWidth(2);\n resultMatrixCSV1.setSignificanceWidth((-259));\n resultMatrixCSV1.setShowAverage(true);\n resultMatrixCSV0.toStringKey();\n resultMatrixCSV1.clear();\n resultMatrixPlainText0.meanPrecTipText();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixCSV0);\n resultMatrixLatex0.toStringMatrix();\n resultMatrixCSV0.getColOrder();\n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex();\n resultMatrixLatex1.getDefaultPrintColNames();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixPlainText0);\n resultMatrixSignificance0.toStringRanking();\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n resultMatrixSignificance1.globalInfo();\n resultMatrixLatex1.getDefaultMeanPrec();\n ResultMatrixHTML resultMatrixHTML0 = null;\n try {\n resultMatrixHTML0 = new ResultMatrixHTML(1, (-1056));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "public static void main(String[] args) {\n Part2_2 part2_2 = new Part2_2();\n part2_2.testHowMany();\n Part2_3 part_23 = new Part2_3();\n part_23.testHowManyGenes();\n Part3_1 part3_1 = new Part3_1();\n part3_1.testCgRatio();\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int[][] intArray0 = new int[7][8];\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixGnuPlot0);\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertNotNull(resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string0 = resultMatrixPlainText0.getSummaryTitle(936);\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"a\", string0);\n \n resultMatrixLatex0.setSummary(intArray0, intArray0);\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(7, intArray0.length);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertNotNull(resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[] intArray1 = resultMatrixCSV0.getColOrder();\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertNull(intArray1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n boolean boolean0 = resultMatrixLatex0.getDefaultPrintColNames();\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(boolean0);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(50, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string1 = resultMatrixCSV0.toStringSummary();\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertNotNull(string1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"-summary data not set-\", string1);\n assertFalse(string1.equals((Object)string0));\n \n boolean boolean1 = resultMatrixPlainText0.isRowName(2);\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean1);\n assertTrue(boolean1 == boolean0);\n }", "public static void main(String[] args) {\n//\t\ttest1dOutput();\n\t\ttestMultimensionalOutput();\n\t}", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n intArray0[1] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n int[] intArray3 = new int[6];\n assertFalse(intArray3.equals((Object)intArray2));\n assertFalse(intArray3.equals((Object)intArray1));\n \n intArray3[1] = 0;\n intArray3[2] = 2;\n intArray3[3] = 0;\n intArray3[4] = 2;\n intArray3[5] = 0;\n intArray0[3] = intArray3;\n int[] intArray4 = new int[0];\n assertFalse(intArray4.equals((Object)intArray1));\n assertFalse(intArray4.equals((Object)intArray3));\n assertFalse(intArray4.equals((Object)intArray2));\n \n intArray0[4] = intArray4;\n int[] intArray5 = new int[3];\n assertFalse(intArray5.equals((Object)intArray4));\n assertFalse(intArray5.equals((Object)intArray1));\n assertFalse(intArray5.equals((Object)intArray2));\n assertFalse(intArray5.equals((Object)intArray3));\n \n intArray5[1] = 1;\n intArray5[2] = 0;\n intArray0[5] = intArray5;\n int[] intArray6 = new int[2];\n assertFalse(intArray6.equals((Object)intArray1));\n assertFalse(intArray6.equals((Object)intArray5));\n assertFalse(intArray6.equals((Object)intArray3));\n assertFalse(intArray6.equals((Object)intArray2));\n assertFalse(intArray6.equals((Object)intArray4));\n \n intArray6[0] = 1;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixGnuPlot0);\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixPlainText0.setRowNameWidth(586);\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(586, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String[] stringArray0 = resultMatrixPlainText0.getOptions();\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(586, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertNotNull(stringArray0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(18, stringArray0.length);\n }", "@Test\n\tpublic void whenExecuteMainThenPrintToConsole() {\n\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\tSystem.setOut(new PrintStream(out));\n\t\tCalculate.main(null);\n\t\tassertThat(out.toString(), is(\"Hello World\\r\\n\"));\n\t}", "@Test\n public void testStationaryDistribution()\n {\n try\n {\n IDoubleArray T = Doubles.create.fromFile(inputT1);\n IDoubleArray expResult = Doubles.create.fromFile(inputT1_pi); \n IDoubleArray pi = MarkovModel.util.stationaryDistribution(T);\n assertEqual(pi, expResult, 1e-5);\n }\n catch(IOException e)\n {\n \n e.printStackTrace();\n }\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "private static FaultyVersion createDummyVersion1() {\n\t\t/**\tzur Initialisierung der Coverage arrays in der TestCase Klasse wird auf\n\t\t * \tFaultyProjectGlobals.methodsCount zugegriffen\t*/\n\t\tFaultyProjectGlobals.methodsCount = 8;\n\t\t\n\t\tTestCase[] failures = new TestCase[6];\n\t\tfailures[0] = new TestCase(\"Test-A-Fail\", false, new Boolean[] {true, false, true, false, true, false, true, false});\n\t\tfailures[1] = new TestCase(\"Test-B-Fail\", false, new Boolean[] {true, false, true, false, true, false, true, false});\n\t\tfailures[2] = new TestCase(\"Test-C-Fail\", false, new Boolean[] {false, true, false, true, false, true, true, true});\n\t\tfailures[3] = new TestCase(\"Test-D-Fail\", false, new Boolean[] {false, false, false, false, false, false, true, true});\n\t\tfailures[4] = new TestCase(\"Test-E-Fail\", false, new Boolean[] {false, true, false, true, true, true, false, false});\n\t\tfailures[5] = new TestCase(\"Test-F-Fail\", false, new Boolean[] {false, true, true, true, true, true, false, false});\n\t\t\n\t\tTestCase[] passedTCs = new TestCase[8];\n\t\tpassedTCs[0] = new TestCase(\"Test-G-Success\", true, new Boolean[] {false, false, false, false, true, true, true, true});\n\t\tpassedTCs[1] = new TestCase(\"Test-H-Success\", true, new Boolean[] {true, false, true, false, false, false, false, true});\n\t\tpassedTCs[2] = new TestCase(\"Test-I-Success\", true, new Boolean[] {true, true, false, true, false, true, true, true});\n\t\tpassedTCs[3] = new TestCase(\"Test-J-Success\", true, new Boolean[] {false, false, false, true, true, true, false, true});\n\t\tpassedTCs[4] = new TestCase(\"Test-K-Success\", true, new Boolean[] {false, true, true, false, false, true, false, false});\n\t\tpassedTCs[5] = new TestCase(\"Test-L-Success\", true, new Boolean[] {true, false, true, true, true, true, false, false});\n\t\tpassedTCs[6] = new TestCase(\"Test-M-Success\", true, new Boolean[] {true, true, true, false, true, true, true, true});\n\t\tpassedTCs[7] = new TestCase(\"Test-N-Success\", true, new Boolean[] {false, false, false, true, false, false, true, true});\n\t\treturn new FaultyVersion(failures, passedTCs, \"dummyVersion-1\", 8);\n\t}", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "public void testGetStartValue() {\n TaskSeriesCollection c = createCollection1();\n TaskSeriesCollection c3 = createCollection3();\n }", "static void executeTest() {\n int[] param1 = { // Checkpoint 1\n 12, 11, 10, -1, -15,};\n boolean[] expect = { // Checkpoint 2\n true, false,true, false, true,}; \n System.out.printf(\"課題番号:%s, 学籍番号:%s, 氏名:%s\\n\",\n question, gakuban, yourname);\n int passed = 0;\n for (int i = 0; i < param1.length; i++) {\n String info1 = \"\", info2 = \"\";\n Exception ex = null;\n boolean returned = false; //3\n try {\n returned = isDivable(param1[i]); //4\n if (expect[i] == (returned)) { //5\n info1 = \"OK\";\n passed++;\n } else {\n info1 = \"NG\";\n info2 = String.format(\" <= SHOULD BE %s\", expect[i]);\n }\n } catch (Exception e) {\n info1 = \"NG\";\n info2 = \"EXCEPTION!!\";\n ex = e;\n } finally {\n String line = String.format(\"*** Test#%d %s %s(%s) => \",\n i + 1, info1, method, param1[i]);\n if (ex == null) {\n System.out.println(line + returned + info2);\n } else {\n System.out.println(line + info2);\n ex.printStackTrace();\n return;\n }\n }\n }\n System.out.printf(\"Summary: %s,%s,%s,%d/%d\\n\",\n question, gakuban, yourname, passed, param1.length);\n }", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[1] = intArray2;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixGnuPlot0);\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string0 = resultMatrixPlainText0.doubleToString(2, 0);\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"2.\", string0);\n \n Enumeration enumeration0 = resultMatrixPlainText0.headerKeys();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertNotNull(enumeration0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int int0 = resultMatrixPlainText0.getDisplayCol(0);\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, int0);\n \n String string1 = resultMatrixPlainText0.toStringMatrix();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertNotNull(string1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"Dataset col0\\n----------------------------------------------------------\\nrow0 (0) |\\n----------------------------------------------------------\\nv/ /* |\\n\", string1);\n assertFalse(string1.equals((Object)string0));\n \n String[][] stringArray0 = resultMatrixPlainText0.toArray();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertNotNull(stringArray0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(3, stringArray0.length);\n \n boolean boolean0 = resultMatrixPlainText0.isMean(0);\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean0);\n \n ResultMatrixLatex resultMatrixLatex0 = null;\n try {\n resultMatrixLatex0 = new ResultMatrixLatex((-1517), 1);\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test\n public void testLineExport(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecCommandStack.push(VecCommandFactory.GetShapeCommand(VecCommandType.LINE, fakeCoord));\n String print = VecCommandStack.peek().PrintToFile();\n assertEquals(\"LINE 0.1 0.2 \\n\", print);\n }", "public void testMain()\r\n {\r\n InputStream instream = null;\r\n OutputStream outstream = null;\r\n\r\n try\r\n {\r\n File afile = new File(\"testfiles/testfile.txt\");\r\n File bfile = new File(\"testfiles/testfilecopy.txt\");\r\n instream = new FileInputStream(afile);\r\n outstream = new FileOutputStream(bfile);\r\n byte[] buffer = new byte[1024];\r\n int length;\r\n // copy the file content in bytes\r\n while ((length = instream.read(buffer)) > 0)\r\n {\r\n\r\n outstream.write(buffer, 0, length);\r\n\r\n }\r\n\r\n instream.close();\r\n outstream.close();\r\n }\r\n catch (IOException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n\r\n String[] args = new String[3];\r\n args[0] = \"testfiles/testfilecopy.txt\";\r\n args[1] = \"1\";\r\n args[2] = \"testfiles/output.txt\";\r\n Quicksort.main(args);\r\n assertTrue(systemOut().getHistory().contains(\"Time to run: \"));\r\n\r\n }", "public static void main(String[] args){\n new Testing().runTests();\r\n \r\n }", "@Test(timeout = 4000)\n public void test179() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV(resultMatrixCSV0);\n resultMatrixCSV0.clearRanking();\n boolean boolean0 = resultMatrixCSV0.getShowStdDev();\n assertFalse(boolean0);\n \n resultMatrixCSV1.setEnumerateRowNames(false);\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n \n resultMatrixCSV0.getColOrder();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot0.setSignificance(1913, 844, 844);\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n }", "public static void main(String args[]){\n\t\tTestingUtils.runTests();\n\t\t\n\t}", "public void testGetEndValue() {\n TaskSeriesCollection c = createCollection1();\n TaskSeriesCollection c3 = createCollection3();\n }", "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "public static void main (String[] args){\n\t\tincPieceCountTest();\n\t\tdecPieceCountTest();\n\t\tsetPieceTest();\n\t\tmoveTest();\n\t\tanyMoveTest();\n\t\tgetPiecesTest();\n\t\tsetPieceTest2();\n\t}", "public static void main(String[] args) {\r\n\r\n Logger root = (Logger)LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);\r\n root.setLevel(Level.ERROR); // TODO create a program argument to switch to trace\r\n Logger logger = (Logger)LoggerFactory.getLogger(\"main\");\r\n \r\n\r\n System.out.println(\"\\nTEST: \" + TEST_ID);\r\n System.out.println(\"========================\\n\");\r\n System.out.println(\"This is a simple test battery for this class.\\n\");\r\n\r\n logger.trace(\"Setting up test for class '{}'\\n\", TEST_ID);\r\n \r\n /*\r\n * Read parameters from file\r\n * \r\n * To write a new parameter file template, uncomment the following two lines\r\n * TestBrownianProcessParams.writeParamDefinition(\"param_template.xml\");\r\n * System.exit(0);\r\n */\r\n \r\n String fileName = CmdLineProcessor.process(args); // process command line arguments\r\n TestSteppedDataGeneratorParams params = null;\r\n \r\n try {\r\n params = TestSteppedDataGeneratorParams.readParameters(fileName);\r\n } catch (Throwable e) {\r\n logger.error(e.getMessage());\r\n System.exit(0);\r\n }\r\n \r\n params.validate();\r\n \r\n /**\r\n * Copy distribution parameters into a single array \r\n */\r\n DoubleArrayList shifts = params.getValidatedDoubleSequence(TestSteppedDataGeneratorParams.Sequence.SHIFT);\r\n DoubleArrayList stepHeights = params.getValidatedDoubleSequence(TestSteppedDataGeneratorParams.Sequence.STEP_HEIGHT);\r\n DoubleArrayList stepWidths = params.getValidatedDoubleSequence(TestSteppedDataGeneratorParams.Sequence.STEP_WIDTH);\r\n DoubleArrayList valleyWidths = params.getValidatedDoubleSequence(TestSteppedDataGeneratorParams.Sequence.VALLEY_WIDTH);\r\n ArrayList<Double> distParams = new ArrayList<Double>();\r\n \r\n for (int i = 0; i < shifts.size(); i++) {\r\n distParams.add(shifts.get(i));\r\n distParams.add(stepHeights.get(i));\r\n distParams.add(stepWidths.get(i));\r\n distParams.add(valleyWidths.get(i));\r\n }\r\n\r\n // Number formatter for the output\r\n DecimalFormat df = new DecimalFormat(\"0.00000\", new DecimalFormatSymbols(Locale.UK));\r\n DoubleTimeSeries.setFormatter(df);\r\n FormattedDoubleArrayList.setFormatter(df);\r\n\r\n /**\r\n * Data storage and formatting\r\n */\r\n DoubleTimeSeries dts = new DoubleTimeSeries();\r\n DoubleTimeSeriesList dtsl_1 = new DoubleTimeSeriesList();\r\n DoubleTimeSeriesList dtsl_2 = new DoubleTimeSeriesList();\r\n VersatileTimeSeriesCollection atc_1 = new VersatileTimeSeriesCollection(\"results\");\r\n VersatileTimeSeriesCollection atc_2 = new VersatileTimeSeriesCollection(\"results\");\r\n VersatileTimeSeries.StaticInternalParams.setTimePeriodFormat(\"tick\");\r\n VersatileTimeSeries.StaticInternalParams.setTimePeriod(VersatileTimeSeries.Period.DAY);\r\n VersatileTimeSeries.StaticInternalParams.setOutputHead(25);\r\n VersatileTimeSeries.StaticInternalParams.setOutputTail(10);\r\n int FIRST_COLUMN_WIDTH = 10;\r\n String baseName = \"STEPPED\";\r\n\r\n /**\r\n * Setup\r\n */\r\n SteppedDataGenerator gen = new SteppedDataGenerator(distParams.toArray(new Double[1]));\r\n \r\n int dim = (int) Math.floor(0.1 + distParams.size() / 4); // 4 is the number of parameters of the stepped function generator \r\n \r\n for (int i = 0; i < dim; i++) {\r\n String tsName = baseName;\r\n if (dim > 1) tsName += \"_\" + i;\r\n dtsl_1.add(new DoubleTimeSeries(tsName));\r\n dtsl_2.add(new DoubleTimeSeries(tsName));\r\n }\r\n\r\n /**\r\n * Run\r\n */ \r\n DoubleArrayList vec;\r\n// DoubleArrayList increments;\r\n \r\n for (int i = 0; i < params.nTicks; i++) {\r\n vec = gen.nextDoubleVector();\r\n// increments = gen.nextDoubleVectorIncrements();\r\n \r\n for (int j = 0; j < dim; j++) {\r\n \tdtsl_1.get(j).add(vec.get(j));\r\n// \t\tdtsl_2.get(j).add(increments.get(j));\r\n } \t\r\n }\r\n \r\n \r\n /**\r\n * Output - Text\r\n */\r\n atc_1.populateSeries(1, \"step\", dtsl_1, 0);\r\n// atc_2.populateSeries(1, \"step\", dtsl_2, 0);\r\n \r\n System.out.println(atc_1.printDecoratedSeries(baseName, FIRST_COLUMN_WIDTH, true));\r\n// System.out.println(atc_2.printDecoratedSeries(baseName, FIRST_COLUMN_WIDTH, true));\r\n \r\n /**\r\n * Output - Graph\r\n */\r\n VersatileChart charts_1 = new VersatileChart();\r\n charts_1.getInternalParms().autoRange = true;\r\n charts_1.getInternalParms().autoRangePadding = 0;\r\n charts_1.getInternalParms().ticks = true;\r\n\r\n charts_1.draw(atc_1);\r\n \r\n// VersatileChart charts_2 = new VersatileChart();\r\n// charts_2.getInternalParms().autoRange = true;\r\n// charts_2.getInternalParms().autoRangePadding = 0;\r\n// charts_2.getInternalParms().ticks = true;\r\n//\r\n// charts_2.draw(atc_2);\r\n }", "public static void other() {\n // This is how to generate test data for the grid. (Use the VisibilityGraph algorithm to generate optimal path lengths)\n// ArrayList<Point> points = ReachableNodes.computeReachable(gridGraph, 5, 5);\n// System.out.println(points.size());\n//\n// generateRandomTestDataAndPrint(gridGraph);\n\n //This is how to conduct a running time / path length test for tha algorithm:\n// TestResult test1 = testAlgorithm(gridGraph, sx, sy, ex, ey, 1, 1);\n// System.out.println(test1);\n// TestResult test2 = testAlgorithm(gridGraph, sx, sy, ex, ey, 30, 25);\n// System.out.println(test2);\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n drunkardTest(TEST_STEP_TIMES_1, TEST_STEP_SIZE_1);\n drunkardTest(TEST_STEP_TIMES_2, TEST_STEP_SIZE_2);\n\t}", "public static void main(String[] args) \n {\n \n /*\n * The aggregated pi values for the no line differentiation\n * and line differentation methods. These values are used\n * to determine the percent error for both implementations.\n */\n double noLine = 0.;\n double yesLine = 0.;\n \n /*\n * Iterate for the number of iterations defined above and add the values determined\n * by noLineDelineation() and lineDelineation() to their respective\n * total values.\n */\n for(int i = 0; i < ITER_TO_ESTIMATE; i++) \n {\n //line is always part of the circle\n noLine += noLineDelineation(); \n \n //line is delineated\n yesLine += lineDelineation(); \n }\n \n /*\n * ndiff and ydiff are the respective values that are obtained for PI\n * from the lineDelineation() and noLineDelineation() functions.\n */\n double ndiff = ((noLine - (Math.PI*ITER_TO_ESTIMATE))/(Math.PI*ITER_TO_ESTIMATE));\n double ydiff = ((yesLine - (Math.PI*ITER_TO_ESTIMATE))/(Math.PI*ITER_TO_ESTIMATE));\n \n System.out.printf(\"%.30f percent => no delineation\\n%.30f percent => yes delineation\\n\", Math.abs(ndiff), Math.abs(ydiff));\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[1] = intArray2;\n int[] intArray3 = new int[0];\n assertFalse(intArray3.equals((Object)intArray1));\n assertFalse(intArray3.equals((Object)intArray2));\n \n intArray0[2] = intArray3;\n int[] intArray4 = new int[6];\n assertFalse(intArray4.equals((Object)intArray1));\n assertFalse(intArray4.equals((Object)intArray3));\n assertFalse(intArray4.equals((Object)intArray2));\n \n intArray4[1] = 0;\n intArray4[2] = 2;\n intArray4[3] = 0;\n intArray4[4] = 2;\n intArray4[5] = 0;\n intArray0[3] = intArray4;\n int[] intArray5 = new int[0];\n assertFalse(intArray5.equals((Object)intArray1));\n assertFalse(intArray5.equals((Object)intArray3));\n assertFalse(intArray5.equals((Object)intArray4));\n assertFalse(intArray5.equals((Object)intArray2));\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixGnuPlot0);\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertNotNull(resultMatrixLatex0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray6 = new int[0][5];\n assertFalse(intArray6.equals((Object)intArray0));\n \n // Undeclared exception!\n try { \n resultMatrixLatex0.setSummary(intArray6, intArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "private void test(IApproximatorCreator creator, List<Point> data, List<ExpectedApproximation> expectations) {\r\n File tmp = new File(FileUtils.getTempDirectory(), \"approx\");\r\n tmp.mkdirs();\r\n \r\n IStorageStrategy strategy = DefaultStorageStrategy.INSTANCE;\r\n IApproximator approx1 = creator.createApproximator(strategy, tmp, \"key\", TimeBehavior.LATENCY);\r\n Assert.assertNotNull(approx1);\r\n for (int d = 0; d < data.size(); d++) {\r\n data.get(d).update(approx1);\r\n }\r\n File f = approx1.store(tmp);\r\n Assert.assertNotNull(f);\r\n Assert.assertTrue(f.exists());\r\n \r\n IApproximator approx2 = creator.createApproximator(strategy, tmp, \"key\", TimeBehavior.LATENCY);\r\n Assert.assertNotNull(approx2);\r\n Assert.assertTrue(approx2.containsSameData(approx1));\r\n\r\n if (null != expectations) {\r\n for (ExpectedApproximation a : expectations) {\r\n double v1 = a.assertApproximation(approx1);\r\n double v2 = a.assertApproximation(approx2);\r\n Assert.assertEquals(v1, v2, 0.05);\r\n }\r\n }\r\n \r\n FileUtils.deleteQuietly(tmp);\r\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n intArray0[1] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[2] = intArray2;\n int[] intArray3 = new int[6];\n assertFalse(intArray3.equals((Object)intArray1));\n assertFalse(intArray3.equals((Object)intArray2));\n \n intArray3[1] = 0;\n intArray3[2] = 2;\n intArray3[3] = 0;\n intArray3[4] = 2;\n intArray3[5] = 0;\n intArray0[3] = intArray3;\n int[] intArray4 = new int[0];\n assertFalse(intArray4.equals((Object)intArray3));\n assertFalse(intArray4.equals((Object)intArray2));\n assertFalse(intArray4.equals((Object)intArray1));\n \n intArray0[4] = intArray4;\n int[] intArray5 = new int[3];\n assertFalse(intArray5.equals((Object)intArray1));\n assertFalse(intArray5.equals((Object)intArray4));\n assertFalse(intArray5.equals((Object)intArray2));\n assertFalse(intArray5.equals((Object)intArray3));\n \n intArray5[1] = 1;\n intArray5[2] = 2;\n intArray0[5] = intArray5;\n int[] intArray6 = new int[2];\n assertFalse(intArray6.equals((Object)intArray4));\n assertFalse(intArray6.equals((Object)intArray1));\n assertFalse(intArray6.equals((Object)intArray3));\n assertFalse(intArray6.equals((Object)intArray2));\n assertFalse(intArray6.equals((Object)intArray5));\n \n intArray6[0] = 1;\n intArray6[1] = 2;\n intArray0[6] = intArray6;\n resultMatrixGnuPlot0.setRanking(intArray0);\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(7, intArray0.length);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixGnuPlot0);\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertNotNull(resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n boolean boolean0 = resultMatrixLatex0.getDefaultPrintRowNames();\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(boolean0);\n }", "@Test\n public void CanvasChartTest() {\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n\tpublic void testHw1_1000000LOC26method21_2()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tbyte var0 = (byte) 1;\n\t\tbyte var1 = (byte) 1;\n\t\tshort var2 = (short) 1;\n\n\t\tdouble result = fixture.hw1_1000000LOC26method21(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0.0, result, 0.1);\n\t}", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void showHandledPeaksForInterestingCases() {\n List<ISpectrum> spectra = ClusteringTestUtilities.readISpectraFromResource();\n\n ISpectrum[] spectrums = (ISpectrum[]) spectra.toArray();\n\n ISimilarityChecker checker = new FrankEtAlDotProductTester();\n ISimilarityChecker currentChecker = new FrankEtAlDotProduct(0.5F, 15, true);\n\n //noinspection UnnecessaryLocalVariable,UnusedDeclaration,UnusedAssignment\n Set<String> interestingIds = new HashSet<>();\n\n\n for (int i = 0; i < spectrums.length; i++) {\n ISpectrum psm1 = spectrums[i];\n String id1 = psm1.getId();\n if (!INTERESTING_ID_SET.contains(id1))\n continue; // not an interesting case\n\n for (int j = i + 1; j < spectrums.length; j++) {\n ISpectrum psm2 = spectrums[j];\n\n String id2 = psm2.getId();\n if (!INTERESTING_ID_SET.contains(id2))\n continue; // not an interesting case\n\n // System.out.println(\"Comparing \" + id1 + \" \" + id2);\n\n StringBuilder usedPeaksTester = new StringBuilder();\n\n //noinspection UnnecessaryLocalVariable,UnusedDeclaration,UnusedAssignment\n double dotOrg = checker.assessSimilarity(psm1, psm2);\n\n // System.out.println(\"Peaks compared original Frank Et Al (when the code is written)\");\n // print usage\n // System.out.println(usedPeaksTester.toString());\n\n usedPeaksTester.setLength(0); // clear debug output\n double dotNew = currentChecker.assessSimilarity(psm1, psm2);\n\n // print usage\n // System.out.println(\"Peaks compared current Frank Et Al \");\n // System.out.println(usedPeaksTester.toString());\n\n\n }\n\n }\n }" ]
[ "0.6063864", "0.60238415", "0.5994573", "0.59106123", "0.5880194", "0.58554655", "0.58462363", "0.5831961", "0.58238053", "0.5822523", "0.58195245", "0.57968366", "0.57872295", "0.5784389", "0.57802737", "0.5778458", "0.577337", "0.5772612", "0.5766383", "0.5761737", "0.5743624", "0.5734471", "0.572161", "0.5712316", "0.5703998", "0.5699478", "0.5691306", "0.5666825", "0.56642956", "0.566414", "0.5663731", "0.56625146", "0.5660948", "0.56571805", "0.56552947", "0.5653316", "0.5647792", "0.5643446", "0.5642302", "0.5638069", "0.56358284", "0.5634072", "0.56326705", "0.5631147", "0.5629574", "0.5628873", "0.56249404", "0.5617888", "0.56164956", "0.56153935", "0.5614835", "0.5614563", "0.5614505", "0.56107867", "0.56083184", "0.5606057", "0.56056964", "0.56033176", "0.560009", "0.55980873", "0.55966336", "0.55892754", "0.5588468", "0.5586642", "0.55843204", "0.5578009", "0.55714387", "0.5571306", "0.55689585", "0.55683935", "0.55671823", "0.55656385", "0.555837", "0.55573034", "0.5556546", "0.5556189", "0.55535936", "0.55518866", "0.555043", "0.55476135", "0.55449796", "0.5544945", "0.5544501", "0.55429435", "0.55420274", "0.5541306", "0.5541184", "0.55397385", "0.5538131", "0.55374885", "0.5536276", "0.55317557", "0.55255544", "0.55239415", "0.5523648", "0.5522211", "0.5521555", "0.5521", "0.551889", "0.55133563", "0.55130565" ]
0.0
-1
again I find I could use an equals() method for a class in this case FileInfo
private void areEquals(FileInfo a, FileInfo b) { // will test a subset for now assertEquals(a.width,b.width); assertEquals(a.height,b.height); assertEquals(a.nImages,b.nImages); assertEquals(a.whiteIsZero,b.whiteIsZero); assertEquals(a.intelByteOrder,b.intelByteOrder); assertEquals(a.pixels,b.pixels); assertEquals(a.pixelWidth,b.pixelWidth,Assert.DOUBLE_TOL); assertEquals(a.pixelHeight,b.pixelHeight,Assert.DOUBLE_TOL); assertEquals(a.unit,b.unit); assertEquals(a.pixelDepth,b.pixelDepth,Assert.DOUBLE_TOL); assertEquals(a.frameInterval,b.frameInterval,Assert.DOUBLE_TOL); assertEquals(a.calibrationFunction,b.calibrationFunction); Assert.assertDoubleArraysEqual(a.coefficients,b.coefficients,Assert.DOUBLE_TOL); assertEquals(a.valueUnit,b.valueUnit); assertEquals(a.fileType,b.fileType); assertEquals(a.lutSize,b.lutSize); assertArrayEquals(a.reds,b.reds); assertArrayEquals(a.greens,b.greens); assertArrayEquals(a.blues,b.blues); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean equals(Object obj) {\n/* 64 */ if (this == obj) {\n/* 65 */ return true;\n/* */ }\n/* 67 */ if (obj == null) {\n/* 68 */ return false;\n/* */ }\n/* 70 */ if (getClass() != obj.getClass()) {\n/* 71 */ return false;\n/* */ }\n/* 73 */ FileBean other = (FileBean)obj;\n/* 74 */ if (this.filePath == null) {\n/* 75 */ if (other.filePath != null)\n/* 76 */ return false; \n/* 77 */ } else if (!this.filePath.equals(other.filePath)) {\n/* 78 */ return false;\n/* 79 */ } return true;\n/* */ }", "public boolean equals(Object obj)\n {\n if (obj instanceof ClassFile)\n {\n ClassFile that = (ClassFile) obj;\n if (this == that)\n {\n return true;\n }\n\n // equal iff .class structure is identical\n byte[] abThis = this.getBytes();\n byte[] abThat = that.getBytes();\n return Arrays.equals(abThis, abThat);\n }\n return false;\n }", "@Override\r\n\tpublic boolean equals(Object fileBean){\r\n\t\tFileBean newBean = (FileBean)fileBean;\r\n\t\treturn newBean.toString().compareTo(this.toString()) == 0;\r\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof FS)) {\r\n return false;\r\n }\r\n FS other = (FS) object;\r\n return !((this.idfs == null && other.idfs != null) || (this.idfs != null && !this.idfs.equals(other.idfs)));\r\n }", "@Override\r\n public boolean equals(Object obj) {\r\n if(obj == null)\r\n return false;\r\n if(obj instanceof FileNode) {\r\n if(((FileNode) obj).getData().equals(this.data)) \r\n return true;\r\n }\r\n return false;\r\n }", "@Override\n public boolean equals(Object obj) {\n FSItem item=(FSItem)obj;\n return this.fsItemPath.equals(item.fsItemPath);\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Namefile)) {\r\n return false;\r\n }\r\n Namefile other = (Namefile) object;\r\n if ((this.namefilePK == null && other.namefilePK != null) || (this.namefilePK != null && !this.namefilePK.equals(other.namefilePK))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n File file = (File) o;\n if (file.getId() == null || getId() == null) {\n return false;\n }\n return Objects.equals(getId(), file.getId());\n }", "public boolean equals(Object object) {\n if (object instanceof ImageFile) {\n ImageFile imageFile = (ImageFile) object;\n return imageFile.getOpenable() == this.getOpenable() &&\n imageFile.getPlayable() == this.getPlayable() &&\n imageFile.animated() == this.animated() &&\n imageFile.getFileSizeInBytes() == this.getFileSizeInBytes() &&\n imageFile.getImageHeight() == this.getImageHeight() &&\n imageFile.getImageWidth() == this.getImageWidth() &&\n imageFile.getOpensWith().equals(this.getOpensWith()) &&\n imageFile.getFile() == this.getFile();\n }\n return false;\n }", "@Override\n public boolean equals(Object o)\n {\n //thanks to GeeksforGeeks for general form https://www.geeksforgeeks.org/overriding-equals-method-in-java/\n if (o == this)\n return true;\n if (!(o instanceof Thumbnail))\n return false;\n \n Thumbnail t = (Thumbnail) o;\n return imagePath.equals(t.getImagePath());\n }", "public boolean equals(Object arg) {\n\t\tif (arg == null) {\n\t\t\treturn(false);\n\t\t}\n\t\t\n\t\tFileSystem temp = (FileSystem) arg;\n\t\t\n\t\tif (temp.getDevice().equals(_device)) {\n\t\t\t//empty\n\t\t} else {\n\t\t\treturn(false);\n\t\t}\n\t\t\n\t\tif (temp.getMountPoint().equals(_mount)) {\n\t\t\t//empty\n\t\t} else {\n\t\t\treturn(false);\n\t\t}\n\t\t\n\t\tif (temp.getFileSystemType().equals(_type)) {\n\t\t\t//empty\n\t\t} else {\n\t\t\treturn(false);\n\t\t}\n\t\t\n\t\treturn(true);\n\t}", "boolean hasFileInfo();", "boolean hasFileInfo();", "@Override\n public boolean equals(Object it) {\n return !(it == null || getClass() != it.getClass()) && equals((TarArchiveEntry) it);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof IntegrationFile)) {\n return false;\n }\n IntegrationFile other = (IntegrationFile) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n \n return true;\n }", "@Test\n\tpublic void testSetFileInfo() {\n\n\t}", "public boolean equals(Object fn) {\n if (!(fn instanceof FileName)) {\n return false;\n }\n\n return ((FileName) fn).getFile().equals(this.getFile());\n }", "public FileInfo getFileInfo() {\n return fileInfo;\n }", "@Override\n public boolean equals(Object obj) {\n if (!(obj instanceof XiangqiCoordinate)) return false;\n XiangqiCoordinate coordinate = (XiangqiCoordinate) obj;\n return coordinate.getRank() == rank && coordinate.getFile() == file;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Perfiles)) {\n return false;\n }\n Perfiles other = (Perfiles) object;\n if ((this.idPerfil == null && other.idPerfil != null) || (this.idPerfil != null && !this.idPerfil.equals(other.idPerfil))) {\n return false;\n }\n return true;\n }", "@java.lang.Override\n public boolean hasFileInfo() {\n return fileInfo_ != null;\n }", "@java.lang.Override\n public boolean hasFileInfo() {\n return fileInfo_ != null;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof AttachmentFile)) {\n return false;\n }\n AttachmentFile other = (AttachmentFile) object;\n if ((this.idAttachmentFile == null && other.idAttachmentFile != null) || (this.idAttachmentFile != null && !this.idAttachmentFile.equals(other.idAttachmentFile))) {\n return false;\n }\n return true;\n }", "public boolean equals(java.lang.Object r5) {\n /*\n r4 = this;\n r0 = 1\n if (r5 != r4) goto L_0x0004\n return r0\n L_0x0004:\n r1 = 0\n if (r5 != 0) goto L_0x0008\n return r1\n L_0x0008:\n java.lang.Class r2 = r5.getClass()\n java.lang.Class r3 = r4.getClass()\n boolean r2 = r2.equals(r3)\n if (r2 == 0) goto L_0x003f\n com.dropbox.core.v2.sharing.ChangeFileMemberAccessArgs r5 = (com.dropbox.core.p005v2.sharing.ChangeFileMemberAccessArgs) r5\n java.lang.String r2 = r4.file\n java.lang.String r3 = r5.file\n if (r2 == r3) goto L_0x0024\n boolean r2 = r2.equals(r3)\n if (r2 == 0) goto L_0x003d\n L_0x0024:\n com.dropbox.core.v2.sharing.MemberSelector r2 = r4.member\n com.dropbox.core.v2.sharing.MemberSelector r3 = r5.member\n if (r2 == r3) goto L_0x0030\n boolean r2 = r2.equals(r3)\n if (r2 == 0) goto L_0x003d\n L_0x0030:\n com.dropbox.core.v2.sharing.AccessLevel r2 = r4.accessLevel\n com.dropbox.core.v2.sharing.AccessLevel r5 = r5.accessLevel\n if (r2 == r5) goto L_0x003e\n boolean r5 = r2.equals(r5)\n if (r5 == 0) goto L_0x003d\n goto L_0x003e\n L_0x003d:\n r0 = 0\n L_0x003e:\n return r0\n L_0x003f:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.dropbox.core.p005v2.sharing.ChangeFileMemberAccessArgs.equals(java.lang.Object):boolean\");\n }", "public boolean hasFileInfo() {\n return fieldSetFlags()[15];\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (!(obj instanceof ChunkID))\r\n\t\t\treturn false;\r\n\r\n\t\tChunkID chunkObj = (ChunkID) obj;\r\n\r\n\t\tif (this.getChunkNumber() != chunkObj.getChunkNumber() || !this.getFileID().equals(chunkObj.getFileID()))\r\n\t\t\treturn false;\r\n\r\n\t\treturn true;\r\n\t}", "public FileInfo()\r\n {\r\n hash = new HashInfo();\r\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tCommunitySubGraph dstGraph = (CommunitySubGraph) obj;\n\t\tif (this.filePath.equals(dstGraph.filePath)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean equals(Object obj) {\n if(obj == null) return false;\n if(!(obj instanceof JFMViewRepresentation)) return false;\n JFMViewRepresentation viewObj = (JFMViewRepresentation)obj;\n //if any of the members are null, return false\n if(this.getName() == null || this.getClassName() == null) return false;\n if(viewObj.getName() == null || viewObj.getClassName() == null) return false; \n if(!getName().equals(viewObj.getName())) return false;\n if(!getClassName().equals(viewObj.getClassName())) return false;\n return true;\n }", "public boolean equals (Object object) {\n\t\tif (object == null)\n\t\t\treturn false;\n\t\tif (object instanceof Photo) {\n\t\t\tPhoto newObject = (Photo) object;\n\t\t\tif (this.caption.equals(newObject.getCaption()) && this.filename.equals(newObject.getFilename())){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse \n\t\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean equals(TarArchiveEntry it) {\n return getName().equals(it.getName());\n }", "public boolean hasFileInfo() {\n return fileInfoBuilder_ != null || fileInfo_ != null;\n }", "public boolean hasFileInfo() {\n return fileInfoBuilder_ != null || fileInfo_ != null;\n }", "private Equals() {}", "@Override\n public boolean equals(Object o) {\n if (o == this) { \n return true; \n } \n \n /* Check if o is an instance of Complex or not \n \"null instanceof [type]\" also returns false */\n if (!(o instanceof Path)) { \n return false; \n } \n \n // typecast o to Complex so that we can compare data members \n Path p = (Path) o; \n \n // Compare the data members and return accordingly \n return (this.startingPointIndex == p.startingPointIndex && this.distance == p.distance);\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tboolean issame = false;\r\n\t\tif(obj instanceof MediaItem) {\r\n\t\t\tMediaItem mi = (MediaItem)obj;\r\n\t\t\tboolean a = this.runTime == mi.runTime;\r\n\t\t return a;\r\n\t\t}\r\n\t\treturn issame;\r\n\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (this == obj) { return true; }\r\n\t\tif (obj == null) { return false; }\r\n\t\tif (!(obj instanceof Song)) { return false; }\r\n\t\tfinal Song other = (Song) obj;\r\n\t\t\r\n\t\treturn\r\n\t\t\t((name == other.name) || (name != null && name.equals(other.name))) &&\r\n\t\t\t(duration == other.duration);\r\n\t}", "@Override\n public boolean equals(Object o)\n {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n FilePermCacheKey that = (FilePermCacheKey) o;\n if (!tenantId.equals(that.tenantId)) return false;\n if (!username.equals(that.username)) return false;\n if (!systemId.equals(that.systemId)) return false;\n if (!path.equals(that.path)) return false;\n return perm == that.perm;\n }", "@Test //same file\n\t\t\tpublic void SameFileDifferentInstances() throws PizzaException, LogHandlerException{\n\t\t\t\tArrayList<Pizza> pizzaArr1;\n\t\t\t\tArrayList<Pizza> pizzaArr2;\n\n\t\t\t\tPath currentRelativePath = Paths.get(\"\");\n\t\t\t\tString s = currentRelativePath.toAbsolutePath().toString();\n\t\t\t\tString path = s + \"\\\\logs\\\\20170101.txt\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tpizzaArr2 = LogHandler.populatePizzaDataset(path);\n\t\t\t\tpizzaArr1 = LogHandler.populatePizzaDataset(path);\n\t\t\t\tassertNotEquals(pizzaArr2.hashCode(), pizzaArr1.hashCode());\n\t\t\t}", "@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsUserInfo) {\n BsUserInfo other = (BsUserInfo)obj;\n if (!xSV(_id, other._id)) { return false; }\n return true;\n } else {\n return false;\n }\n }", "@Override\n public boolean equals(\n Object object\n ){\n \tif(this == object) {\n \t\treturn true;\n \t}\n \tif(object instanceof Path) {\n \t\tPath that = (Path) object;\n \t\tif(this.size == that.size) {\n \t\t\tif(this.size == 0) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\tif(this.base.equals(that.base)) {\n \t\t\t return \n \t\t\t this.parent == that.parent ||\n \t\t\t this.parent.equals(that.parent);\n \t\t\t}\n \t\t}\n \t}\n\t\treturn false;\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n\n Node node = (Node) o;\n\n if (position != node.position) return false;\n if (!method.equals(node.method)) return false;\n return clazz.equals(node.clazz);\n }", "@Override\r\n public boolean equals(Object other) {\r\n if (other instanceof Song == false)\r\n return false;\r\n return this.toString().equals(other.toString());\r\n }", "@Override\n\tpublic boolean equals(Object o) {\n\t\treturn (o instanceof TunaFish);\n\t}", "public FileInfo(File file) {\n this.file = file;\n }", "@Test\n public void equals() {\n CsvAdaptedPatient alice = new CsvAdaptedPatient(ALICE);\n CsvAdaptedPatient aliceCopy = new CsvAdaptedPatient(new PatientBuilder(ALICE).build());\n\n assertTrue(alice.equals(aliceCopy));\n\n // same object -> returns true\n assertTrue(alice.equals(alice));\n\n // null -> returns false\n assertFalse(alice.equals(null));\n\n // different type -> returns false\n assertFalse(alice.equals(5));\n\n // different patient -> returns false\n assertFalse(alice.equals(new CsvAdaptedPatient(BOB)));\n\n // different name -> returns false\n Patient editedAlice = new PatientBuilder(ALICE).withName(VALID_NAME_BOB).build();\n assertFalse(alice.equals(new CsvAdaptedPatient(editedAlice)));\n\n // different phone -> returns false\n editedAlice = new PatientBuilder(ALICE).withPhone(VALID_PHONE_BOB).build();\n assertFalse(alice.equals(new CsvAdaptedPatient(editedAlice)));\n\n // different address -> returns false\n editedAlice = new PatientBuilder(ALICE).withAddress(VALID_ADDRESS_BOB).build();\n assertFalse(alice.equals(new CsvAdaptedPatient(editedAlice)));\n\n // different remark -> returns false\n editedAlice = new PatientBuilder(ALICE).withRemark(VALID_REMARK_BOB).build();\n assertFalse(alice.equals(new CsvAdaptedPatient(editedAlice)));\n }", "public boolean equals(java.lang.Object r5) {\n /*\n r4 = this;\n r0 = 1\n if (r5 != r4) goto L_0x0004\n return r0\n L_0x0004:\n r1 = 0\n if (r5 != 0) goto L_0x0008\n return r1\n L_0x0008:\n java.lang.Class r2 = r5.getClass()\n java.lang.Class r3 = r4.getClass()\n boolean r2 = r2.equals(r3)\n if (r2 == 0) goto L_0x004b\n com.dropbox.core.v2.files.ThumbnailArg r5 = (com.dropbox.core.p005v2.files.ThumbnailArg) r5\n java.lang.String r2 = r4.path\n java.lang.String r3 = r5.path\n if (r2 == r3) goto L_0x0024\n boolean r2 = r2.equals(r3)\n if (r2 == 0) goto L_0x0049\n L_0x0024:\n com.dropbox.core.v2.files.ThumbnailFormat r2 = r4.format\n com.dropbox.core.v2.files.ThumbnailFormat r3 = r5.format\n if (r2 == r3) goto L_0x0030\n boolean r2 = r2.equals(r3)\n if (r2 == 0) goto L_0x0049\n L_0x0030:\n com.dropbox.core.v2.files.ThumbnailSize r2 = r4.size\n com.dropbox.core.v2.files.ThumbnailSize r3 = r5.size\n if (r2 == r3) goto L_0x003c\n boolean r2 = r2.equals(r3)\n if (r2 == 0) goto L_0x0049\n L_0x003c:\n com.dropbox.core.v2.files.ThumbnailMode r2 = r4.mode\n com.dropbox.core.v2.files.ThumbnailMode r5 = r5.mode\n if (r2 == r5) goto L_0x004a\n boolean r5 = r2.equals(r5)\n if (r5 == 0) goto L_0x0049\n goto L_0x004a\n L_0x0049:\n r0 = 0\n L_0x004a:\n return r0\n L_0x004b:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.dropbox.core.p005v2.files.ThumbnailArg.equals(java.lang.Object):boolean\");\n }", "public boolean nextFileInfo(FileInfo info) {\n\n\t\t// Get the next file from the search\n\n\t\ttry {\n\n\t\t\t// Return the next file details or loop until a match is found if a\n\t\t\t// complex wildcard filter\n\t\t\t// has been specified\n\t\t\twhile (m_rs.next()) {\n\t\t\t\tString name = m_rs.getString(\"name\");\n\t\t\t\t// Get the file name for the next file\n\t\t\t\tinfo.setFileId(m_rs.getInt(\"id\"));\n\t\t\t\tinfo.setFileName(name);\n\t\t\t\tinfo.setSize(m_rs.getLong(\"size\"));\n\t\t\t\tif(name.equalsIgnoreCase(DBUtil.CLOUDURL))\n\t\t\t\t{\n\t\t\t\t\ttry{\n\t\t\t\t\t//重设置大小\n\t\t\t\t\tinfo.setFileId(-99);\n//\t\t\t\t\tinfo.setFileId(-userId);\n\t\t\t\t\tinfo.setSize(DBUtil.getURLMYFILE_TXT(this.getBaseUrl(),userId).getBytes().length);\n\t\t\t\t\t}catch(Exception e)\n\t\t\t\t\t{\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlong modifyDate = m_rs.getLong(\"lastModified\");\n\t\t\t\tif (modifyDate != 0L)\n\t\t\t\t\tinfo.setModifyDateTime(modifyDate);\n\t\t\t\telse\n\t\t\t\t\tinfo.setModifyDateTime(System.currentTimeMillis());\n\t\t\t\t\n\t\t\t\tTimestamp ts = m_rs.getTimestamp(\"add_time\");\n\t\t\t\tif (ts !=null && ts.getTime()>0)\n\t\t\t\t{\n\t\t\t\t\tinfo.setCreationDateTime(ts.getTime());\n\t\t\t\t\tinfo.setChangeDateTime(info.getModifyDateTime());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tinfo.setCreationDateTime(info.getModifyDateTime());\n\t\t\t\t\tinfo.setChangeDateTime(info.getModifyDateTime());\n\t\t\t\t}\t\t\t\t\n\t\t\t\tint attr = 0;\n\t\t\t\tif (m_rs.getBoolean(\"isFile\") == true) {\n\t\t\t\t\tinfo.setFileType(FileType.RegularFile);\t\t\t\t\t\n\t\t\t\t\tattr += FileAttribute.ReadOnly;// 只读权限\n\t\t\t\t} else\n\t\t\t\t\tattr += FileAttribute.Directory;\n\n\t\t\t\tif (m_rs.getBoolean(\"isHidden\") == true) \n\t\t\t\t{\n\t\t\t\t\tattr += FileAttribute.Hidden;//隐藏\n\t\t\t\t}\n\t\t\t\tinfo.setFileType(FileType.Directory);\n\t\t\t\t\t\t\t\t\n\t\t\t\tif (hasMarkAsOffline()) {\n\t\t\t\t\tif (getOfflineFileSize() == 0 || info.getSize() >= getOfflineFileSize())\n\t\t\t\t\t\tattr += FileAttribute.NTOffline;\n\t\t\t\t}\n\t\t\t\tinfo.setFileAttributes(attr);\n\t\t\t\tinfo.setUid(userId);\n\n\t\t\t\tif (m_filter == null || m_filter.matchesPattern(info.getFileName()) == true)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t// No more files\n\t\tcloseSearch();\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object obj) {\n return super.equals(obj);\n }", "@Test\n\tpublic void sameModificationDate() throws IOException {\n\t\tFile firstFile = File.createTempFile(\"junit\", null);\n\t\tFile secondFile = File.createTempFile(\"junit\", null);\n\t\tsecondFile.setLastModified(firstFile.lastModified());\n\n\t\tFileTuple firstTuple = new FileTuple(firstFile, firstFile);\n\t\tFileTuple secondTuple = new FileTuple(secondFile, secondFile);\n\n\t\tassertThat(COMPARATOR.compare(firstTuple, secondTuple)).isZero();\n\t}", "@Override\n public boolean equals(Object obj) {\n return this == obj;\n }", "@Override\n public boolean equals(Object obj) {\n return this == obj;\n }", "entities.Torrent.FileInfo getFileInfo();", "entities.Torrent.FileInfo getFileInfo();", "public void testEquals()\r\n\t{\r\n\t\tIrClassType irClassType1 = new IrClassType();\r\n\t\tirClassType1.setName(\"irClassTypeName\");\r\n\t\tirClassType1.setDescription(\"irClassTypeDescription\");\r\n\t\tirClassType1.setId(55l);\r\n\t\tirClassType1.setVersion(33);\r\n\t\t\r\n\t\tIrClassType irClassType2 = new IrClassType();\r\n\t\tirClassType2.setName(\"irClassTypeName2\");\r\n\t\tirClassType2.setDescription(\"irClassTypeDescription2\");\r\n\t\tirClassType2.setId(55l);\r\n\t\tirClassType2.setVersion(33);\r\n\r\n\t\t\r\n\t\tIrClassType irClassType3 = new IrClassType();\r\n\t\tirClassType3.setName(\"irClassTypeName\");\r\n\t\tirClassType3.setDescription(\"irClassTypeDescription\");\r\n\t\tirClassType3.setId(55l);\r\n\t\tirClassType3.setVersion(33);\r\n\t\t\r\n\t\tassert irClassType1.equals(irClassType3) : \"Classes should be equal\";\r\n\t\tassert !irClassType1.equals(irClassType2) : \"Classes should not be equal\";\r\n\t\t\r\n\t\tassert irClassType1.hashCode() == irClassType3.hashCode() : \"Hash codes should be the same\";\r\n\t\tassert irClassType2.hashCode() != irClassType3.hashCode() : \"Hash codes should not be the same\";\r\n\t}", "@Override\n\tpublic boolean equals(Object o) {\n\t\treturn (o instanceof AnchovyFish);\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Format)) {\n return false;\n }\n Format other = (Format) object;\n if ((this.type == null && other.type != null) || (this.type != null && !this.type.equals(other.type))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object other) {\n return super.equals(other);\n }", "@Test\n public void equals_returnsTrueIfNameIsTheSame_false() {\n Animal firstAnimal = new Animal(\"Deer\");\n Animal anotherAnimal = new Animal(\"Deer\");\n assertTrue(firstAnimal.equals(anotherAnimal));\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserInfo)) {\n return false;\n }\n UserInfo other = (UserInfo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserInfo)) {\n return false;\n }\n UserInfo other = (UserInfo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserInfo)) {\n return false;\n }\n UserInfo other = (UserInfo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Infoentity)) {\r\n return false;\r\n }\r\n Infoentity other = (Infoentity) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n\tpublic boolean equals(Object ob){\n\t\tItem itemob=(Item)ob;\t//transfer object type to Item type\r\n\t\tif(this.UID==itemob.UID && this.TITLE==itemob.TITLE && this.NOOFCOPIES==itemob.NOOFCOPIES) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n public final boolean equals( Object obj ) {\n return super.equals(obj);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Galeria)) {\n return false;\n }\n Galeria other = (Galeria) object;\n if ((this.idFoto == null && other.idFoto != null) || (this.idFoto != null && !this.idFoto.equals(other.idFoto))) {\n return false;\n }\n return true;\n }", "public boolean metadataEquals(INodeDirectory other) {\r\n return other != null && getNsQuota() == other.getNsQuota()\r\n && getDsQuota() == other.getDsQuota()\r\n && getUserName().equals(other.getUserName())\r\n && getGroupName().equals(other.getGroupName())\r\n && getFsPermission().equals(other.getFsPermission());\r\n }", "public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}", "@Override\n public final boolean equals(final Object other) {\n return super.equals(other);\n }", "public final FileInfoBase getFileInfo() {\r\n return fileInfo;\r\n }", "@Override\n\t\tpublic boolean equals(Object obj) {\n\t\t\treturn super.equals(obj);\n\t\t}", "@Override\n public boolean equals (Object object)\n {\n if (!(object instanceof POFileDiscountPK)) {\n return false;\n }\n \n POFileDiscountPK other = (POFileDiscountPK) object;\n if (this.v_poFile.equals(other.v_poFile))\n return false;\n if (this.v_name.equals(other.v_name))\n return false;\n \n return true;\n }", "@Override\n public boolean equals(Object obj) {\n return super.equals(obj);\n }", "@Override\n public boolean equals(Object o) {\n return this == o;\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n Entry entry = (Entry) o;\n return field == entry.field;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Importador)) {\r\n return false;\r\n }\r\n Importador other = (Importador) object;\r\n if ((this.codigo == null && other.codigo != null) || (this.codigo != null && !this.codigo.equals(other.codigo))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}", "@Override\r\n public boolean equals(Object obj) {\r\n return super.equals(obj);\r\n }", "@Override\n public boolean equals(Object obj) {\n if (obj instanceof UsageInfo) {\n UsageInfo info = (UsageInfo)obj;\n return info.getPhysicalMachine().getID() == pm.getID();\n }\n return false;\n }", "@Test\n public void checkIfNewFilenameAlreadyExists(){\n Music randomMusicCD1 = new Music(\"Random CD 1\", \"11/12/1993\",\"Rock\",\"Jack\",12,100);\n DiscFile<Music> randomMusicFile1 = new DiscFile<Music>(randomMusicCD1, randomMusicCD1.getTitle(), randomMusicCD1.getFullDetails(), \"randomcCD1\");\n\n Music randomMusicCD2 = new Music(\"Random CD 2\", \"08/05/2004\",\"Pop\",\"Ben\",8,70);\n DiscFile<Music> randomMusicFile2 = new DiscFile<Music>(randomMusicCD2, randomMusicCD1.getTitle(), randomMusicCD2.getFullDetails(), \"randomCD2\");\n\n boolean actual = rename.renameFile(\"tomsmith\",\"badboymusic\");\n assertTrue(actual);\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "protected boolean equals(URL paramURL1, URL paramURL2) {\n/* 336 */ String str1 = paramURL1.getRef();\n/* 337 */ String str2 = paramURL2.getRef();\n/* 338 */ return ((str1 == str2 || (str1 != null && str1.equals(str2))) && \n/* 339 */ sameFile(paramURL1, paramURL2));\n/* */ }", "@Override\n public boolean equals(Object obj) {\n \n //TODO: Complete Method\n \n return true;\n }", "@Override\n\tpublic boolean equals(Object object) {\n\t\tboolean isEqual = false;\n\n\t\tif (object != null && object instanceof CharacterSheet) {\n\t\t\tisEqual = (this.fileAbsolutePath\n\t\t\t\t\t.equals(((CharacterSheet) object).fileAbsolutePath));\n\t\t}\n\n\t\treturn isEqual;\n\t}", "public final boolean equals(java.lang.Object r2) {\n /*\n r1 = this;\n if (r1 == r2) goto L_0x0015\n boolean r0 = r2 instanceof com.p280ss.android.ugc.aweme.shortvideo.subtitle.SubtitleOriginalSoundUploadTask\n if (r0 == 0) goto L_0x0013\n com.ss.android.ugc.aweme.shortvideo.subtitle.SubtitleOriginalSoundUploadTask r2 = (com.p280ss.android.ugc.aweme.shortvideo.subtitle.SubtitleOriginalSoundUploadTask) r2\n java.lang.String r0 = r1.f106943b\n java.lang.String r2 = r2.f106943b\n boolean r2 = kotlin.jvm.internal.C7573i.m23585a(r0, r2)\n if (r2 == 0) goto L_0x0013\n goto L_0x0015\n L_0x0013:\n r2 = 0\n return r2\n L_0x0015:\n r2 = 1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.shortvideo.subtitle.SubtitleOriginalSoundUploadTask.equals(java.lang.Object):boolean\");\n }", "@Override\n\tpublic boolean equals(Object other) { \n\t\tif (other instanceof Fish) {\n\t\t\tFish otherFish =((Fish) other);\n\t\t\treturn this.xloc == otherFish.getXLoc() && this.yloc == otherFish.getYLoc()\n\t\t\t\t\t\t\t\t&& this.isCaught == otherFish.isCaught && this.direction\n\t\t\t\t\t\t\t\t== otherFish.direction && this.species == otherFish.species;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (obj == null)\n\t\t\treturn false;\n\t\tif (getClass() != obj.getClass())\n\t\t\treturn false;\n\t\treturn true;\n\t}", "@Override\n public final boolean equals(Object obj) {\n return super.equals(obj);\n }", "@Override\n boolean equals(Object obj);", "@Override\n public boolean equals(Object o) {\n return true;\n }", "@Override\n public boolean equals(Object obj) {\n if (!(obj instanceof Entry<?>)) {\n return false;\n }\n\n var entry = (Entry<?>) obj;\n\n if (!this.registry.equals(entry.registry)) {\n return false;\n }\n\n if (this.index != entry.index) {\n return false;\n }\n\n if (this.value.getClass() != entry.value.getClass()) {\n return false;\n }\n\n return true;\n }", "public boolean equals(Object object) {\n/* 4770 */ if (this == object)\n/* */ {\n/* 4772 */ return true;\n/* */ }\n/* 4774 */ if (object != null && object.getClass() == getClass()) {\n/* */ \n/* 4776 */ VolaTile tile = (VolaTile)object;\n/* 4777 */ return (tile.getTileX() == this.tilex && tile.getTileY() == this.tiley && tile.surfaced == this.surfaced);\n/* */ } \n/* 4779 */ return false;\n/* */ }", "@Override \n boolean equals(Object obj);" ]
[ "0.69109976", "0.6510577", "0.65092385", "0.64236385", "0.64007205", "0.6387662", "0.6372172", "0.63183445", "0.63061583", "0.62708926", "0.6197224", "0.6149327", "0.6149327", "0.6120842", "0.6029153", "0.5979831", "0.5968758", "0.59636045", "0.5945752", "0.5915593", "0.5909279", "0.59084755", "0.5892531", "0.5873915", "0.5866546", "0.5848441", "0.583483", "0.5826602", "0.5798814", "0.5756516", "0.57554203", "0.5735511", "0.57340825", "0.5720924", "0.5697954", "0.5695027", "0.5689201", "0.568539", "0.5682158", "0.5680496", "0.5677487", "0.56751776", "0.5663735", "0.56583446", "0.56442237", "0.5626264", "0.56155676", "0.55898076", "0.5552673", "0.55498683", "0.55422133", "0.5541053", "0.5540839", "0.5540839", "0.5534397", "0.5525579", "0.55251384", "0.5524731", "0.5514224", "0.5513878", "0.5513878", "0.5513878", "0.5511217", "0.5508554", "0.55045605", "0.5500203", "0.54982054", "0.5487719", "0.54848474", "0.5483714", "0.54798007", "0.5472488", "0.5469223", "0.54676914", "0.54602045", "0.5455265", "0.54551536", "0.54551536", "0.54551536", "0.5454507", "0.54519343", "0.54498243", "0.54412663", "0.54412663", "0.54412663", "0.54412663", "0.54412663", "0.54412663", "0.543429", "0.54318756", "0.5429999", "0.5429057", "0.5426343", "0.5424389", "0.5422589", "0.5421498", "0.5416963", "0.5414206", "0.54114723", "0.54100657" ]
0.6802895
1
tested in previous method
@Test public void testSetIgnoreFlush() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void smell() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "public void mo38117a() {\n }", "public void method_4270() {}", "public void mo4359a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void gored() {\n\t\t\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void test() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "protected void mo6255a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "protected abstract Set method_1559();", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void verificaData() {\n\t\t\n\t}", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "public void mo12628c() {\n }", "public abstract void mo70713b();", "public boolean method_218() {\r\n return false;\r\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "protected boolean func_70041_e_() { return false; }", "public void mo55254a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "protected void additionalProcessing() {\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tprotected void postRun() {\n\n\t}", "private void remplirFabricantData() {\n\t}", "public void mo6081a() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "protected OpinionFinding() {/* intentionally empty block */}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "protected void runBeforeIteration() {}", "public void mo21793R() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "private static void iterator() {\n\t\t\r\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "private test5() {\r\n\t\r\n\t}", "public boolean method_216() {\r\n return false;\r\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo9848a() {\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}" ]
[ "0.61774784", "0.6067081", "0.60139906", "0.60113686", "0.60029805", "0.5929477", "0.5917818", "0.5893066", "0.5881953", "0.5877502", "0.58735025", "0.5868901", "0.5868174", "0.5862139", "0.58299947", "0.57916546", "0.57785857", "0.5776291", "0.57536674", "0.57295156", "0.57295156", "0.5727333", "0.5711708", "0.5708453", "0.56945145", "0.5685774", "0.5684566", "0.56720483", "0.5659838", "0.5658219", "0.5658219", "0.56516767", "0.5651046", "0.56467336", "0.563887", "0.5616805", "0.56036586", "0.5590446", "0.5582106", "0.5581281", "0.55777246", "0.5576555", "0.55558264", "0.552706", "0.552534", "0.55229914", "0.5517261", "0.5515934", "0.5515934", "0.5515934", "0.5515934", "0.5515934", "0.5515934", "0.5515934", "0.5499126", "0.549729", "0.548618", "0.54788595", "0.54610723", "0.5452442", "0.5451845", "0.5450752", "0.5450752", "0.5450199", "0.5438163", "0.54270595", "0.5417634", "0.54154956", "0.54154956", "0.5399413", "0.53981614", "0.53907096", "0.5389076", "0.5385581", "0.5382547", "0.5373994", "0.5371913", "0.53685236", "0.5368471", "0.5366164", "0.53652376", "0.53644115", "0.5353368", "0.5352731", "0.5352322", "0.53482485", "0.5337938", "0.53357756", "0.5335276", "0.5335276", "0.5335276", "0.5335276", "0.5335276", "0.5335276", "0.53302014", "0.53260994", "0.5323133", "0.5316318", "0.5316318", "0.5307755", "0.53055924" ]
0.0
-1
note nothing to test. exercise to do a compile time check of existence
@Test public void testStartTiming() { ip = new ImagePlus(); ip.startTiming(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean _non_existent();", "public abstract boolean doesExist();", "boolean hasDef();", "boolean hasExists();", "public abstract boolean exists();", "@Override\n\tpublic boolean exists(String arg0) {\n\t\treturn false;\n\t}", "private boolean programIfExists(String compiledPath) {\n\t\tboolean itExists = false;\n\n\t\tif (Files.exists(Paths.get(compiledPath))) {\n\t\t\titExists = true;\n\t\t}\n\n\t\treturn itExists;\n\t}", "boolean hasUknown();", "boolean getIfNotExist();", "boolean getIfNotExist();", "@Test\n public void testIsCreatingProjectIfMissing() throws Exception {\n assertThat(\"Expect true\", testling.isCreatingProjectIfMissing(), is(Boolean.TRUE));\n }", "@Override\r\n\tpublic boolean isExist() {\n\t\treturn false;\r\n\t}", "boolean exists();", "boolean exists();", "boolean hasBuild();", "public boolean exists(String arg0) {\n\t\treturn false;\n\t}", "public boolean exists(String arg0) {\n\t\treturn false;\n\t}", "public boolean exists(String arg0) {\n\t\treturn false;\n\t}", "Object getTargetexists();", "@Override\n\tpublic boolean isExist(String name) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void exist() {\n\t\t\n\t}", "boolean hasConstruct();", "public boolean mustCompile() {\n return true;\n }", "private static void checkIfFound(final Object toCheck, final String path) {\n if (toCheck == null) {\n resourceNotFound(path);\n }\n if (toCheck instanceof String s && s.isEmpty()) {\n resourceNotFound(path);\n }\n if (toCheck instanceof File f && !f.exists()) {\n resourceNotFound(path);\n }\n }", "abstract public boolean exists() throws VlException;", "public boolean exists (java.lang.String userClassName) { throw new RuntimeException(); }", "abstract void checkWhetherVariable(SyntaxUnit use);", "boolean hasSrcPath();", "@Override\r\n\tpublic boolean exists() {\n\t\treturn false;\r\n\t}", "boolean hasSourceFile();", "private static boolean validateFileExists(Map.Entry<String, CheckState> entry) {\n String prop = System.getProperty(entry.getKey());\n if (entry.getValue().isOptional && prop == null) {\n return true;\n }\n\n if (prop == null || \"\".equals(prop)) {\n return false;\n }\n\n return Files.exists(new File(prop).toPath());\n }", "boolean hasX();", "boolean hasX();", "boolean hasX();", "boolean hasX();", "boolean hasX();", "boolean hasX();", "boolean hasX();", "boolean hasX();", "boolean hasX();", "boolean hasX();", "boolean hasX();", "boolean hasX();", "boolean hasX();", "boolean hasX();", "boolean hasX();", "boolean hasX();", "boolean hasX();", "boolean hasX();", "boolean hasResolve();", "@Override\n\tpublic boolean exists() {\n\t\treturn false;\n\t}", "boolean hasUnknown1();", "boolean hasUnknown1();", "boolean hasUnknown1();", "boolean hasUnknown1();", "boolean hasUnknown1();", "boolean hasUnknown1();", "private boolean shouldBuild(IResource resource) {\n \t\treturn resource.getType() == IResource.FILE && resource.getFileExtension().equals(\"gf\");\n \t}", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "public abstract boolean exists() throws VlException;", "boolean hasProject();", "boolean hasCode();", "boolean hasCode();", "boolean hasCode();", "@Override\n public boolean isExist(Object o) {\n return true;\n }", "@Test\n public void testEnsureStringExists(){\n String exists = \"Hello World\";\n String emptyString = \"\";\n\n assertTrue(StringUtil.ensureStringExists(exists));\n assertFalse(StringUtil.ensureStringExists(null));\n assertFalse(StringUtil.ensureStringExists(emptyString));\n }", "boolean hasUnknown2();", "boolean hasUnknown2();", "boolean hasUnknown2();", "boolean hasA();", "private static boolean classExists(String className) {\n\t\tClass<?> theLogicClass = null;\n\t\ttry {\n\t\t\ttheLogicClass = ClassLoaderManager.getInstance().getLogicClassFromName(className);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\t// Do nothing\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tlog.debug(\"SystemBusinessLogicFinder.classExists : candidate logic class \" + \n\t\t\t\t\t\tclassName + \" was not found - ignoring\");\n\t\t\t\tif (ex.getCause() == null || ! (ex.getCause() instanceof ClassNotFoundException)) {\n\t\t\t\t\tlog.debug(\"Error while loading logic class \" + className, ex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn theLogicClass != null;\n\t}", "boolean hasPossiblyBad();", "private boolean checkIfGccExists() {\n\t\tboolean itExists = false;\n\n\t\tLocalConfiguration local = LocalConfiguration.getInstance();\n\n\t\tString gcc = \"\";\n\t\t\n\t\tSystem.out.println(local.getGccPath());\n\t\t\n\t\tif (!Files.exists(Paths.get(local.getGccPath()))) {\n\t\t\t//C:\\\\Program Files (x86)\\\\Dev-Cpp\\\\MinGW64\\\\bin\\\\gcc.exe\n\t\t\t//C:\\Program Files (x86)\\Dev-Cpp\\MinGW64\\bin\\gcc.exe\n\t\t\tgcc = JOptionPane.showInputDialog(\"Input the GCC (GNU Compiler Collection) location.\");\n\t\t\tif (Files.exists(Paths.get(gcc))) {\n\t\t\t\titExists = true;\n\n\t\t\t\tPath path = Paths.get(gcc);\n\t\t\t\tlocal.setGccPath(path.toAbsolutePath().toString());\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (Files.exists(Paths.get(gcc))) {\n\t\t\titExists = true;\n\t\t}\n\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null, \"QUEST cannot find the gcc.exe specified. Please use the settings to fix the path.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t\treturn itExists;\n\t}", "boolean getExists();", "boolean hasC();", "public boolean _non_existent() {\n return false;\n }", "boolean hasImported();", "boolean hasCodeName();", "boolean hasMagic();" ]
[ "0.66541034", "0.6612048", "0.6120418", "0.61014825", "0.6030778", "0.60264075", "0.59782296", "0.5972085", "0.5902455", "0.5902455", "0.5894256", "0.5871129", "0.5844421", "0.5844421", "0.5838298", "0.58364636", "0.58364636", "0.58364636", "0.582644", "0.57834977", "0.57696587", "0.576744", "0.5741926", "0.5679299", "0.56623447", "0.5660239", "0.5631821", "0.56220007", "0.5610942", "0.561051", "0.55833095", "0.5578366", "0.5578366", "0.5578366", "0.5578366", "0.5578366", "0.5578366", "0.5578366", "0.5578366", "0.5578366", "0.5578366", "0.5578366", "0.5578366", "0.5578366", "0.5578366", "0.5578366", "0.5578366", "0.5578366", "0.5578366", "0.55758476", "0.5571192", "0.55679333", "0.55679333", "0.55679333", "0.55679333", "0.55679333", "0.55679333", "0.556403", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55589426", "0.55513304", "0.55437607", "0.55396706", "0.55396706", "0.55396706", "0.55329895", "0.55312866", "0.5529065", "0.5529065", "0.5529065", "0.5509322", "0.5507603", "0.5495866", "0.54953545", "0.547138", "0.54654115", "0.5463587", "0.54588556", "0.5456837", "0.54546434" ]
0.0
-1