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
getPositiveRelation Return the positive relation (if any) between this value and the given variable. Throws if no matrix for this variable.
public Value getPositiveRelation( Variable inVar ) throws Exception { if (inVar == _var) return null; try { RelationMatrix mat = _var.getMatrixForVariable( inVar ); return mat.getPositiveRelation( this ); } catch (Exception ex) { throw ex; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getRelation( Value inValue )\n throws Exception\n {\n // identity relation\n if (this == inValue)\n return RelationMatrix.YES;\n\n // two values of the same variable are unrelated\n if (getVariable() == inValue.getVariable())\n return RelationMatrix.NO;\n\n try {\n RelationMatrix mat = _var.getMatrixForVariable( inValue.getVariable() );\n return mat.getRelation( this, inValue );\n }\n catch (Exception ex) {\n throw ex;\n }\n }", "public int getRelationNo() {\n return _relationNo;\n }", "public AbstractComponent getPositiveOutcomeStep () {\n\n\t\t// Return the positive rule.\n\t\treturn positiveOutcomeStep;\n\t}", "@Override\n\tpublic int getNodeRelationNum() {\n\t\ttry {\n\t\t\tString getNodeNum = \"select count(*) from routefinder.relations\";\n\t\t\tpstmt = conn.prepareStatement(getNodeNum);\n\t\t\trs = pstmt.executeQuery();\n\t\t\t// if there is a result..\n\t\t\tif (rs.next()) {\n\t\t\t\treturn rs.getInt(1);\n\t\t\t}\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(rs, pstmt);\n\t\t}\n\n\t\t// means you get nothing from database..\n\t\t// which means error occurs..\n\t\t// this line may never get execute then?\n\t\treturn -1;\n\n\t}", "public String get_relation() {\n\t\treturn relation;\n\t}", "public void setNoRelation( Value inValue )\n throws Exception\n {\n if (getVariable() == inValue.getVariable())\n return;\n\n try {\n RelationMatrix mat = _var.getMatrixForVariable( inValue._var );\n mat.setNoRelation( this, inValue );\n }\n catch (Exception ex) {\n throw ex;\n }\n }", "public String getRelation() {\n return relation;\n }", "public int getLowerBound ()\n\t{\n\t\treturn getRelationshipImpl().getLowerBound();\n\t}", "@Nullable\n public RelationInfo relation() {\n return relation;\n }", "public Relation getRelation(int user_num){\n\t\treturn (this.vector[user_num]);\n\t}", "public boolean isPositive()\n {\n return Native.fpaIsNumeralPositive(getContext().nCtx(), getNativeObject());\n }", "public static <N extends Number> PropertyConstraint<N> positive() {\n return ConstraintFactory.fromPredicate(\n new Predicate<N>() {\n @Override\n public boolean test(N t) {\n return t.intValue() > 0;\n }\n },\n \"Should be positive\"\n );\n }", "Relation getNegation();", "private boolean isPositive() {\n return this._isPositive;\n }", "public abstract RelationDeclaration getRelation();", "public boolean isPositive()\n\t{\n\t\treturn _bIsPositive;\n\t}", "public void setRelation( Value inValue )\n throws Exception\n {\n if (getVariable() == inValue.getVariable())\n return;\n\n try {\n RelationMatrix mat = _var.getMatrixForVariable( inValue._var );\n mat.setRelation( this, inValue );\n }\n catch (Exception ex) {\n throw ex;\n }\n }", "public SpatialRelation getSpatialRelation() {\n return spatialRelation;\n }", "public org.apache.spark.sql.catalyst.plans.logical.LocalRelation asRelation () { throw new RuntimeException(); }", "public Variable getObjective() {\r\n\t\treturn objective;\r\n\t}", "public interface IRelation {\n\n\t/**\n\t * Gets the negation of the relation.\n\t */\n\tRelation getNegation();\n}", "boolean getNormal();", "public static String randomPositiveAdj()\n {\n int index = (int)(Math.random() * posAdjectives.size());\n return posAdjectives.get(index);\n }", "public final native String getRelationship() /*-{\n return this.getRelationship();\n }-*/;", "private int getGoalValue(Proposition goalProposition) {\r\n \tGdlRelation relation = (GdlRelation) goalProposition.getName();\r\n GdlConstant constant = (GdlConstant) relation.get(1);\r\n return Integer.parseInt(constant.toString());\r\n }", "public boolean relationalExpressionLowerDerivation() {\r\n\t\treturn this.getImpl().relationalExpressionLowerDerivation();\r\n\t}", "public M csmiRelationNull(){if(this.get(\"csmiRelationNot\")==null)this.put(\"csmiRelationNot\", \"\");this.put(\"csmiRelation\", null);return this;}", "public double getX (){\n if (_parent != null)\n return _node.getLayoutX() + _parent.getX();\n else\n return _node.getLayoutX() ;\n }", "public double getMinimumX () {\n return minimumX;\n }", "public int getRelativePositioning(int i) {\n if (i == 0) {\n return this.mRelX;\n }\n return i == 1 ? this.mRelY : 0;\n }", "public String getPositivePrefix() {\n return positivePrefix;\n }", "default DiscreteDoubleMap2D nonPositivePart() {\r\n\t\treturn pointWiseMinimum(ZERO);\r\n\t}", "public PrimitiveConstraint getConstraint() {\r\n return new XlteqC(var, value);\r\n }", "public abstract boolean isPositive();", "public float getMinX(){\n return points.get(0).getX();\n }", "public String revealRelationshipsInX() {\n\t\tString x = \"\";\n\t\tif (this.numXVertices > 0) {\n\t\t\tint start = this.vertices.size() - this.numXVertices; // location where X vertices start\n\t\t\tfor (int i = start; i < this.vertices.size(); i++) {\n\t\t\t\t// find x_i and print it with all its neighbors\n\t\t\t\tx += this.vertices.get(i).toString() + \": \" + this.vertices.get(i).getNeighbors() + \"\\n\";\n\t\t\t}\n\t\t}\n\t\treturn x;\n\t}", "public float getRelX() {\n return x + (getReferenceX()-Controller.getMap().getChunkCoords(0)[0]) * Chunk.getGameWidth();\n }", "private void scaleToPositive() {\r\n // Obtain min value\r\n double minScalarization = Double.MAX_VALUE;\r\n for (S solution : solutions()) {\r\n if (scalarization.getAttribute(solution) < minScalarization) {\r\n minScalarization = scalarization.getAttribute(solution);\r\n }\r\n }\r\n if (minScalarization < 0) {\r\n // Avoid scalarization values of 0\r\n double eps = 10e-6;\r\n for (S solution : solutions()) {\r\n scalarization.setAttribute(solution, eps + scalarization.getAttribute(solution) + minScalarization);\r\n }\r\n }\r\n }", "protected VertexRelation getProteinsRelation(VertexObject proteinVertex, VertexObject relatedVertex) {\n Map<VertexObject, VertexRelation> relationsMap = proteinRelationMaps.get(proteinVertex);\n if (relationsMap == null) {\n relationsMap = createProteinsRelationsMap(proteinVertex);\n proteinRelationMaps.put(proteinVertex, relationsMap);\n }\n \n if (relationsMap != null) {\n return relationsMap.get(relatedVertex);\n } else {\n return null;\n }\n }", "public ObjectProp getRelationship() {\n return relationship;\n }", "public Relation getRelation(String relationName);", "boolean hasRelation();", "int getXMin();", "public Node negaposi()\r\n\t{\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.PLUS)\r\n\t\t{\r\n\t\t\tNode fact = power();\r\n\t\t\tif(fact!=null)\r\n\t\t\t{\r\n\t\t\t\treturn new Positive(fact);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\tif(lexer.getToken()==Lexer.Token.MINUS)\r\n\t\t{\r\n\t\t\tNode fact = power();\r\n\t\t\tif(fact!=null)\r\n\t\t\t{\r\n\t\t\t\treturn new Negative(fact);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\treturn power();\r\n\t}", "public Point getMin () {\r\n\r\n\treturn getA();\r\n }", "public static double getPositiveDouble() {\n double result;\n\n do {\n result = getDouble();\n } while (result <= 0);\n return result;\n }", "public float getPositivePercentage() {\n\t\t\n\t\t//Cannot divide by zero\n\t\tif(messageCount == 0) {\n\t\t\t\n\t\t\treturn 0;\n\t\t\t\n\t\t}else {\n\t\t\t\n\t\t\treturn positiveCount/(float)messageCount*100;\n\t\t\t\n\t\t}//end if\n\t\t\n\t}", "public WeightedPoint getGoal()\n {\n return map.getGoal();\n }", "private int getRelativeRow() {\n\t\treturn direction == OUT ? -row : row;\n\t}", "public StatisticVariable getStatisticVariable();", "public Point getLowerPoint() {\n return lower;\n }", "public final flipsParser.numericValuePositive_return numericValuePositive() throws RecognitionException {\n flipsParser.numericValuePositive_return retval = new flipsParser.numericValuePositive_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token FloatingPointLiteral548=null;\n flipsParser.integerValuePositive_return integerValuePositive547 = null;\n\n\n CommonTree FloatingPointLiteral548_tree=null;\n\n try {\n // flips.g:820:2: ( integerValuePositive | FloatingPointLiteral )\n int alt216=2;\n int LA216_0 = input.LA(1);\n\n if ( ((LA216_0>=BinaryLiteral && LA216_0<=HexLiteral)) ) {\n alt216=1;\n }\n else if ( (LA216_0==FloatingPointLiteral) ) {\n alt216=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 216, 0, input);\n\n throw nvae;\n }\n switch (alt216) {\n case 1 :\n // flips.g:820:4: integerValuePositive\n {\n root_0 = (CommonTree)adaptor.nil();\n\n pushFollow(FOLLOW_integerValuePositive_in_numericValuePositive4892);\n integerValuePositive547=integerValuePositive();\n\n state._fsp--;\n\n adaptor.addChild(root_0, integerValuePositive547.getTree());\n\n }\n break;\n case 2 :\n // flips.g:821:4: FloatingPointLiteral\n {\n root_0 = (CommonTree)adaptor.nil();\n\n FloatingPointLiteral548=(Token)match(input,FloatingPointLiteral,FOLLOW_FloatingPointLiteral_in_numericValuePositive4897); \n FloatingPointLiteral548_tree = (CommonTree)adaptor.create(FloatingPointLiteral548);\n adaptor.addChild(root_0, FloatingPointLiteral548_tree);\n\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public Relationship getRelationship() {\n\t\treturn relationship;\n\t}", "public Matrix P0 ();", "@Override\n\tpublic String toString() {\n\t\treturn \"(relation \" +\n\t\t\t\t(this.source != null ? this.source.getId() : \"nil\") + \" \" +\n\t\t\t\tthis.name.toString() + \" \" +\n\t\t\t\t(this.dest != null ? this.dest.toString() : \"nil\") + \")\";\n\t}", "public Double getVariable(Object var) {\n Double val = constraints.get(var);\n if (val == null)\n return 0.0;\n else\n return val;\n }", "protected double asRelativeValue(final InformationLoss<?> infoLoss) {\n if (model != null && model.getResult() != null && model.getResult().getLattice() != null &&\n model.getResult().getLattice().getBottom() != null && model.getResult().getLattice().getTop() != null) {\n return infoLoss.relativeTo(model.getResult().getLattice().getMinimumInformationLoss(),\n model.getResult().getLattice().getMaximumInformationLoss()) * 100d;\n } else {\n return 0;\n }\n }", "public int getNumPositive() {\n int numPositive = 0;\n for (NucleiSelected n : nucleiSelected) {\n switch (n.getState()) {\n case POSITIVE:\n numPositive++;\n break;\n case NEGATIVE:\n // do nothing\n break;\n }\n }\n return numPositive;\n }", "public OBOProperty getDefaultRelationship() {\n return DEFAULT_REL; // genotype influences phenotype\n }", "@Override\r\n\tpublic double getX1() {\n\t\treturn 0;\r\n\t}", "public int getRelativeWeight() {\n return relativeWeight;\n }", "private int getPositiveCount(){\n return m_PositiveCount;\n }", "public void set_relation(String relation){\n\t\tthis.relation = relation;\n\t}", "@Override\n\tpublic Condition getGoal()\n\t{\n\t\treturn explicitGoal;\n\t}", "Coordinate getMinX();", "public double getPositionToP0(boolean includeGates)\r\n\t{\r\n\t\tdouble min = 1;\r\n\t\tfor(Unit u : units)\r\n\t\t{\r\n\t\t\tif(u instanceof Gate && !includeGates)\r\n\t\t\t\tcontinue;\r\n\t\t\tdouble d = u.getPositionAlongCurve() - u.getRadius()/owner.getLength();\r\n\t\t\tif(d < min)\r\n\t\t\t\tmin = d;\r\n\t\t}\r\n\t\tif(min < 0)\r\n\t\t\tmin = 0;\r\n\t\tif(min > 1)\r\n\t\t\tmin = 1;\r\n\t\treturn min;\r\n\t}", "public Matrix getValue();", "@Override\n\tpublic Instances relationalValue(final Attribute att) {\n\t\treturn null;\n\t}", "protected double getReferenceX() {\n if (isXAxisBoundsManual() && !mGraphView.getGridLabelRenderer().isHumanRoundingX()) {\n if (Double.isNaN(referenceX)) {\n referenceX = getMinX(false);\n }\n return referenceX;\n } else {\n // starting from 0 so that the steps have nice numbers\n return 0;\n }\n }", "private double readPositive(JTextField field, double oldValue, String title) {\n boolean isOK = true;\n double newValue = 1;\n try{\n //test input\n newValue = Double.parseDouble(field.getText());\n }\n catch (NumberFormatException e){\n //Error message\n JOptionPane.showMessageDialog(null,\n NOT_A_NUMBER,\n title,\n JOptionPane.ERROR_MESSAGE);\n isOK = false;\n }\n if (newValue <=0){\n //ERROR message\n JOptionPane.showMessageDialog(null,\n NOT_POSITIVE,\n title,\n JOptionPane.ERROR_MESSAGE);\n isOK = false;\n }\n if (isOK)\n return newValue;\n\n else {\n field.setText(numberFormatter.format(oldValue));\n return oldValue;\n }\n }", "public String relation_str(DaikonVariableInfo var) {\n String out = parent_ppt_name + \" \" + id;\n if (!var.isStatic() && (local_prefix != null) && !local_prefix.equals(parent_prefix)) {\n out += \" \" + var.getName().replaceFirst(Pattern.quote(local_prefix), parent_prefix);\n }\n return out;\n }", "int nilaiMin(Node node){\n if (node.left != null) { // karena node yg nilainya minimum atau lebih kecil di sebelah kiri\n return nilaiMin(node.left);// maka jika != null akan me return node sebelah kiri\n }\n return node.data;\n }", "public Node getGoal(){\n return goal;\n }", "public double getMinX() {\n\treturn minX;\n }", "@Override\n\tpublic double getWeight(double x) {\n\t\tif (-0.5 <= x && x < 0.5)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "public Bearing getLeftNeighbour() {\n return this == N || this == S ? W : N;\n }", "public java.lang.String getStudent_contactRelationship() {\n\t\treturn _primarySchoolStudent.getStudent_contactRelationship();\n\t}", "public int getC_BP_Relation_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BP_Relation_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "@Override\n public Map<PhysicalObject, Double> getRelationBetweenCentralAndObject() {\n assert false : \"shouldn't call this method\";\n return null;\n }", "public Matrix getGraphMatrix(){\n\t\treturn graphMatrix;\n\t}", "public double getMinX() {\n\t\treturn nx;\n\t}", "public double getX(double y) {\n double x = y / Math.sin(getDirection());\n\n // if theta != 0, x2 = o / tan(theta)\n if (getDirection() != 0) \n x = y / Math.tan(getDirection());\n\n/* if (x < getX() || Math.abs(y) > Math.abs(matrix.get(0,0)))\n return Double.NaN;\n else*/\n return x; \n }", "public org.apache.xmlbeans.XmlBoolean xgetNorth()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(NORTH$0, 0);\n return target;\n }\n }", "private int findProperLeavingBasicVariable(int newBasicColumn) {\n int rowLeavingBasicVariable = -1;\n for (int i = 0; i < numberOfVariables; i++) {\n if (tableaux[i][newBasicColumn] <= 0)\n continue;\n else if (rowLeavingBasicVariable == -1)\n rowLeavingBasicVariable = i;\n else if ((tableaux[i][numberOfConstraints\n + numberOfVariables] / tableaux[i][newBasicColumn]) < (tableaux[rowLeavingBasicVariable][numberOfConstraints\n + numberOfVariables] / tableaux[rowLeavingBasicVariable][newBasicColumn]))\n rowLeavingBasicVariable = i;\n }\n if (rowLeavingBasicVariable == -1) throw new ArithmeticException(\"PROGRAM NIEOGRANICZONY\");\n return rowLeavingBasicVariable;\n }", "public double getX() {\n\t\tif (v == 0) {\n\t\t\treturn 0.0;\n\t\t} else {\n\t\t\treturn x;\n\t\t}\n\t}", "public ArrayList<StatementParse> positiveFirst(ArrayList<StatementParse> expression){\n for (int i = 0; i < expression.size(); i++){\n if (expression.get(i).isNegative()) continue;\n\n // move the first positive to the front\n StatementParse positive = expression.get(i);\n expression.remove(i);\n expression.add(0, positive);\n return expression;\n }\n // if no positive node exist, or the collapsed array is empty\n // insert a 0 in the front\n expression.add(0, new IntegerParse(0));\n return expression;\n }", "@Override\r\n\tpublic Double getModel_fixed_correlation() {\n\t\treturn super.getModel_fixed_correlation();\r\n\t}", "public Vector2D neg()\n\t{\n\t\treturn this.mul(-1);\n\t}", "@Override\n\tpublic Vector getNormal(Point3D point) {\n\t\tdouble temp=axisRay.getDir().dotProduct(point.subtract(axisRay.getP0()));\n\t\tif(Util.isZero(temp/100))return (point.subtract(Point3D.ZERO)).normalize();\n\t\tPoint3D O=axisRay.getP0().add(axisRay.getDir().scale(temp));\n\t\treturn (point.subtract(O)).normalize();\n\n\t}", "public double getY(double x) {\n double theta = getDirection();\n double tan = Math.tan(theta);\n double opposite = x * tan;\n\n/* // Check bounds\n if (x < 0 || Math.abs(opposite) > Math.abs(matrix.get(0,0))) {\n System.out.println(\"NaN\");\n return Double.NaN;\n } else */\n return opposite;\n }", "public double getObjectiveValue() {\n\t\treturn 0;\r\n\t}", "public Matrix getMatrix() {\n\t\treturn matrix;\n\t}", "public Point getXLower()\n {\n return (Point)xLow.clone();\n }", "public static RegressionPrior noninformative() {\n return NONINFORMATIVE_PRIOR;\n }", "public static int getRelationshipValue(EntityLivingBase entity, EntityPlayer player) {\n if (entity.worldObj.isRemote) {\n return 1 + Short.MAX_VALUE + ClientHelper.getPlayerData().getRelationship(entity);\n } else return 1 + Short.MAX_VALUE + ServerHelper.getPlayerData(player).getRelationship(entity);\n }", "public Optional<String> getNormal()\n {\n return m_normal;\n }", "public int getX() {\r\n return (int) this.p.getX();\r\n }", "public boolean getNormal() {\n return normal_;\n }", "@Override\n public Iterable<Integer> relatedToFirst(final int a) {\n if (!isValid(a)) {\n throw new IllegalArgumentException(\"relatedToFirst(\" + a + \")\" +\n \" violates precondition.\");\n }\n\n return relation.get(a);\n//# END TODO\n }", "@Override\n\tpublic Instances relationalValue(final int attIndex) {\n\t\treturn null;\n\t}" ]
[ "0.6196339", "0.5309193", "0.5077936", "0.49756047", "0.4958083", "0.48614353", "0.4846465", "0.4812412", "0.48120475", "0.48096573", "0.47896838", "0.47852227", "0.47585458", "0.47450206", "0.47376782", "0.47152373", "0.46787882", "0.46343994", "0.46330193", "0.4595893", "0.45941553", "0.45562834", "0.45317024", "0.45291352", "0.45271355", "0.45180556", "0.4511183", "0.4471956", "0.44479054", "0.44435483", "0.44415575", "0.4389206", "0.43841627", "0.4379002", "0.43737012", "0.437146", "0.43689406", "0.4364763", "0.43645036", "0.4361546", "0.43457747", "0.4344937", "0.43235517", "0.43101463", "0.43047687", "0.4302423", "0.42920983", "0.42880806", "0.42830706", "0.42778385", "0.42740786", "0.42660186", "0.42594397", "0.42560732", "0.42541638", "0.42475724", "0.42454305", "0.42416775", "0.42363945", "0.42242977", "0.42219085", "0.4218439", "0.4205044", "0.42017454", "0.41900674", "0.4185816", "0.41669223", "0.4166224", "0.41605", "0.4156622", "0.41562045", "0.41548705", "0.41542658", "0.41480178", "0.41413483", "0.4141143", "0.41365296", "0.4123864", "0.4120552", "0.41186833", "0.4112804", "0.41025373", "0.41017795", "0.4096971", "0.40958086", "0.40906167", "0.40901464", "0.40886354", "0.40878075", "0.4085949", "0.40852275", "0.40844104", "0.40809494", "0.40776944", "0.4072104", "0.40704855", "0.4067645", "0.40665948", "0.4061736", "0.40569445" ]
0.8114026
0
Tests add to see if integers are correctly added to the list.
@Test void testAdd() { SimpleList test = new SimpleList(); test.add(7); test.add(10); test.add(9); String output = test.toString(); assertEquals("9 10 7", output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testAddIntE() {\r\n\t\tassertEquals(0, ll.size());\r\n\t\tassertTrue(ll.isEmpty());\r\n\r\n\t\t// valid additions\r\n\t\tll.add(0, t3);\r\n\t\tassertEquals(1, ll.size());\r\n\t\tll.add(0, t2);\r\n\t\tassertEquals(2, ll.size());\r\n\t\tll.add(2, t4);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertFalse(ll.isEmpty());\r\n\r\n\t\t// invalid additions\r\n\t\ttry {\r\n\t\t\tll.add(-1, t1);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(4, t5);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(0, t3);\r\n\t\t\tfail();\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(0, null);\r\n\t\t\tfail();\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\t}", "private void testAdd(){\n System.out.println(\"------ TESTING: add(int element) -----\");\n try{\n // add values to list, the sequence is 0,1,....,iSize-1\n for(int i = 0; i < iSize; i++) {\n // if the add method returns false the program did not work correctly\n if (!iTestList.add(i))\n throw new RuntimeException(\"FAILED -> failed to add value to list\");\n }\n }catch(RuntimeException e){\n System.out.print(e.getMessage());\n }\n }", "public static void checkAdd(int testSize) {\r\n\t\tSystem.out.println(\"Beginning checkAdd basic add test of size \" + testSize);\r\n\t\tSortedIntList list = new SortedIntList(false, testSize);\r\n\t\tRandom r = new Random();\r\n\t\tfor (int i = 0; i < testSize; i++) {\r\n\t\t\t// remember old list contents in case of a problem\r\n\t\t\tString old = list.toString();\r\n\t\t\t// pick a number between -testSize and +testSize, add to list\r\n\t\t\tint next = r.nextInt(2 * testSize + 1) - testSize;\r\n\t\t\t\r\n\t\t\tint expectedSize = i + 1;\r\n\t\t\t\r\n\t\t\t// add to end of list\r\n\t\t\tlist.add(next);\r\n\t\t\t\r\n\t\t\t// check list size and make sure list is sorted\r\n\t\t\tif (list.size() != expectedSize) {\r\n\t\t\t\tthrow new RuntimeException(\"\\n\\nafter adding \" + expectedSize\r\n\t\t\t\t+ \" items, size = \" + list.size() + \" (should be \" + expectedSize + \")\\n\");\r\n\t\t\t} else if (!isSorted(list)) {\r\n\t\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\"\\n\\nadding \" + next + \" failed; list is not sorted.\\n\" +\r\n\t\t\t\t\"List before add = \" + old + \";\\nlist after add = \" + list + \"\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\" Passed!\\n\");\r\n\t}", "@Test\n public void testAdd() {\n System.out.println(\"add\");\n al.add(1);\n Integer a = 1;\n assertEquals(a, al.get(0));\n }", "boolean add(int value);", "public Boolean add(int value) {\n\t\t\n\t\tfor (Integer elem : elemList) {\n\t\t\tif (elem == value)\n\t\t\t\treturn false;\n\t\t}\n\t\tthis.elemList.add(value);\n\t\treturn true;\n\t}", "@Test\n public void validAdd1() {\n assertEquals(i3, isl.get(2));\n\n //checks the amount of ingredient 4\n assertEquals(2.39, ((Ingredient) isl.get(3)).amountNeed, 0);\n assertEquals(1.01, ((Ingredient) isl.get(3)).amountHave, 0);\n\n //add an ingredient that is already present in the list\n //the amount should be added to the current amount 2.39 + 0.45 = 2.84\n //ignores the fact that category and unit don't match\n assertFalse(isl.add(new Ingredient(\"vANiLle\", \"niks\", 0.45, 0.69, \"none\")));\n assertEquals(2.84, ((Ingredient) isl.get(3)).amountNeed, 0.00001);\n assertEquals(1.7, ((Ingredient) isl.get(3)).amountHave, 0.00001);\n assertEquals(\"kruiden\", ((Ingredient) isl.get(3)).category);\n assertEquals(Unit.GRAMS, ((Ingredient) isl.get(3)).unit);\n\n //add a new ingredient and check if it's added correctly\n assertTrue(isl.add(new Ingredient(\"cookies\", \"yum\", 3, 4, \"none\")));\n assertEquals(\"cookies\", isl.get(5).name);\n assertEquals(\"yum\", ((Ingredient) isl.get(5)).category);\n assertEquals(3, ((Ingredient) isl.get(5)).amountNeed, 0);\n assertEquals(4, ((Ingredient) isl.get(5)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl.get(5)).unit);\n }", "@Test\r\n\tpublic void testAddAllInt() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 4, \"ferrum\"));\r\n\t\tsample.add(new Munitions(10, 5, \"ferrum\"));\r\n\t\tsample.addAll(1, list);\r\n\t\tAssert.assertEquals(17, sample.size());\r\n\t\tAssert.assertTrue(sample.get(0).equals(new Munitions(2, 4, \"ferrum\")));\r\n\t\tAssert.assertTrue(sample.get(1).equals(list.get(0)));\r\n\t\tAssert.assertTrue(sample.get(16).equals(new Munitions(10, 5, \"ferrum\")));\r\n\t}", "@Test\n public void testAdd_int_GenericType() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n int expResult = 8;\n instance.add(2, 9);\n assertEquals(expResult, instance.size());\n }", "public boolean add(IntSet add){\n\t\tif(contains(add)==-1){\n\t\t\tcontents.addElement(add);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void addToIncreaseCount() {\n testList.add(42);\n assertEquals(1, testList.count());\n }", "@Test\n public void testAdd_int_GenericType_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n int expResult = 8;\n instance.add(2, 9);\n assertEquals(expResult, instance.size());\n }", "@Override\n public final boolean add(Integer e) {\n if(definedOn.contains(e)){\n return super.add(e);\n } else {\n return false;\n }\n }", "public Boolean add(Integer i) {\n return list.add(i);\n }", "@Test\n\tpublic void testAdd(){\n\t\tArrayIntList list = buildList(5);\n\t\tassertEquals(5, list.intCol.size());\n\t}", "@Test\r\n\tpublic void testAdd() {\r\n\t\tlist.add(new Munitions(23, 24, \"cuprum\"));\r\n\t\tAssert.assertEquals(16, list.size());\r\n\t\tAssert.assertTrue(list.get(15).equals(new Munitions(23, 24, \"cuprum\")));\r\n\t}", "@Test\r\n public void addWorks() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n assertTrue(s.add(1));\r\n assertTrue(s.contains(1));\r\n assertFalse(s.add(1));\r\n }", "@Test\r\n\tpublic void testAddE() {\r\n\t\tassertEquals(0, ll.size());\r\n\t\tassertTrue(ll.isEmpty());\r\n\t\t\r\n\t\tassertTrue(ll.add(t5));\r\n\t\tassertEquals(1, ll.size());\r\n\t\tassertEquals(t5, ll.get(0));\r\n\t\t\r\n\t\tassertTrue(ll.add(t4));\r\n\t\tassertEquals(2, ll.size());\r\n\t\tassertEquals(t5, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\t\r\n\t\tassertTrue(ll.add(t3));\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t5, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\tassertEquals(t3, ll.get(2));\r\n\t\t\r\n\t\tassertFalse(ll.add(null));\r\n\t\tassertFalse(ll.add(t3));\r\n\t\ttry {\r\n\t\t\tll.get(-1);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tll.get(3);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean add(Integer e) {\n\t\t// TODO Auto-generated method stub\n\t\treturn false;\n\t}", "@Test\n\tpublic void testAddInRange() {\n\t\tInteger result = SimpleCalc.add(3, 5);\n\t\tassertEquals(new Integer(8), result);\n\t}", "private void testAddAtIndex(){\n System.out.println(\"------ TESTING : add(int index, int element) ------\");\n try{\n // The insertion will add values to the front\n // the sequence should be iSize-1....,1,0\n for(int i = 0; i < iSize ; i++){\n if(!iTestList.add(0,i))\n throw new RuntimeException(\"FAILED -> add(index,element) not working correctly\");\n }\n // we should test the out of edge cases\n // if we try the following code and the return value is true or if the\n // program crashes then there is a problem\n if(iTestList.add(iSize+10, 999 )){\n throw new RuntimeException(\"FAILED -> index should not be > SIZE\");\n }\n if(iTestList.add(-2,999 )){\n throw new RuntimeException(\"FAILED -> index should not be < 0\");\n }\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "@Test\n public void testAdd_int_GenericType_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.add(2, 9);\n List<Integer> expResult = Arrays.asList(1, 1, 9, 7, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n }", "@Test\n\tpublic void testAdd1() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\n\t\tint notadd = 3;\n\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\n\t\tlistObj2.add(notadd);\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t}", "@Test \n public void testGet() {\n System.out.println(\"get\");\n al.add(1);\n al.add(8);\n Integer a = 1;\n Integer b = 8;\n assertEquals(a, al.get(0));\n assertEquals(b, al.get(1));\n \n }", "void add(int value);", "@Test\r\n public void containsAll() throws Exception {\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(2);\r\n l.add(3);\r\n assertTrue(sInt.containsAll(l));\r\n l.add(7);\r\n assertFalse(sInt.containsAll(l));\r\n }", "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 }", "@Test\n public void testAdd() {\n list1.add(0, 11.25);\n list1.add(1, 12.25);\n list1.add(2, 13.25);\n list1.add(3, 14.25);\n list1.add(4, 15.25);\n list1.add(5, 17.25);\n list1.add(6, 18.25);\n list1.add(7, 19.25);\n list1.add(3, 16.25);\n assertEquals(16.25 , list1.get(3), 0);\n assertEquals(14.25 , list1.get(4), 0);\n assertEquals(15.25, list1.get(5), 0);\n assertEquals(9, list1.size());\n }", "@Override\n public final boolean add(final Integer element) {\n // First, check to see that the array can support another element\n ensureCapacity(size);\n // Add the element to the next available slot\n arrayList[size++] = element;\n return true;\n }", "@Test\n public void testAdd_int_GenericType_Order() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.add(2, 9);\n List<Integer> expResult = Arrays.asList(1, 1, 9, 7, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n }", "public void add(int element);", "private static void addAtTest( int addAt\n , int value\n ) {\n list.add( addAt, value);\n System.out.println(\n \"insert \" + value\n + \" at position \" + addAt\n + \", resulting in \" + list.size() + \" elements:\"\n + System.lineSeparator()\n + list\n + System.lineSeparator()\n );\n }", "void add(int val);", "@Test\r\n\tpublic void testContains() {\r\n\t\tassertFalse(ll.contains(t1));\r\n\t\tll.add(0, t1);\r\n\t\tassertTrue(ll.contains(t1));\r\n\t}", "@Test\n @Ignore\n public void testAdd_intArr() {\n System.out.println(\"add\");\n int[] number = null;\n AbstractMethod instance = new AbstractMethodImpl();\n int expResult = 0;\n int result = instance.add(number);\n assertEquals(expResult, result);\n // TODO Test muss noch erstellt werden..\n fail(\"Test muss noch erstellt werden.\");\n }", "public Integer add();", "@Test\n public void addToList(){\n List<Float> list = new ArrayList<>();\n list.add(1f);\n list.add(2f);\n list.add(3f);\n list.add(4f);\n\n assertEquals(4,list.size());\n\n list.add(5f);\n\n assertEquals(5,list.size());\n }", "public boolean testAdd() {\n boolean succeeded = true;\n\n // Test positive addition\n this.mockCalculator.x = new Double(10);\n \n Double resultPositive = this.mockCalculator.x(new Double(5));\n Double expectedPositive = new Double(15);\n\n if (!resultPositive.equals(expectedPositive)) {\n succeeded = false;\n System.out.println(\"[FAIL] Calculator adds incorrectly\");\n } else {\n System.out.println(\"[ OK ] Calculator can add positive numbers\");\n }\n\n // Test negative addition\n this.mockCalculator.x = new Double(-10);\n \n Double resultNegative = this.mockCalculator.x(new Double(-5));\n Double expectedNegative = new Double(-15);\n \n if (!resultNegative.equals(expectedNegative)) {\n succeeded = false;\n System.out.println(\"[FAIL] Calculator adds with negative numbers incorrectly\");\n } else {\n System.out.println(\"[ OK ] Calculator can add a negative number\");\n }\n\n return succeeded;\n }", "public boolean add(int paramInt)\n/* */ {\n/* 179 */ ensureCapacity(this.m_entryCount + 1);\n/* 180 */ int i = -internalFind(paramInt) - 1;\n/* 181 */ if (i >= 0) {\n/* 182 */ this.m_entryCount += 1;\n/* 183 */ this.m_flagTable[i] = true;\n/* 184 */ this.m_keyTable[i] = paramInt;\n/* 185 */ return true;\n/* */ }\n/* 187 */ return false;\n/* */ }", "@Test\n public void testAdd_After_Add() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.add(3);\n instance.add(9);\n int expResult = 3;\n\n assertEquals(expResult, baseList.indexOf(9));\n }", "boolean testAdd(Tester t) {\n return t.checkExpect(this.p5.add(this.p7), new MyPosn(249, 50))\n && t.checkExpect(this.p6.add(this.p1), new MyPosn(51, 50));\n }", "public void addElement(Integer e){\n list.add(e);\n }", "@Test\n public void testAdd() {\n System.out.println(\"testing add\");\n Arithmetic arithmetic = new Arithmetic(); \n \n assertEquals(\"unexpected result of addition\", 8, arithmetic.add(3,5));\n assertEquals(\"unexpected result of addition\", 6, arithmetic.add(0,6));\n assertEquals(\"unexpected result of addition\", -14, arithmetic.add(0,-14));\n assertEquals(\"unexpected result of addition\", 0, arithmetic.add(-5,5));\n assertEquals(\"unexpected result of addition\", -6, arithmetic.add(-12,6));\n \n }", "public void add(NestedInteger ni){}", "@Test(timeout = 50)\r\n\t// The below method is a test method\r\n\tpublic void testAdd() {\n\t\ttry {\r\n\t\t\tint calculatedValue = calc.add(20, 30);\r\n\t\t\tint expectedValue = 50;\r\n\t\t\tassertEquals(expectedValue, calculatedValue);\r\n\t\t} catch (NegativeNumberException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"Negative number\");\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\n public void testAddAll_int_Collection_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.addAll(1, c);\n assertEquals(expResult, result);\n\n }", "public abstract void add(NestedInteger ni);", "private void addTwoNumbers() {\n\t\t\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}", "@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}", "@Test\n public void testSize() {\n System.out.println(\"size\");\n al.add(1);\n assertEquals(1, al.size());\n }", "@Override\n public boolean add(int value) {\n Entry newElement = new Entry(value);\n if (size == 0) {\n first = newElement;\n last = newElement;\n } else {\n last.next = newElement;\n newElement.previous = last;\n last = newElement;\n }\n size++;\n return true;\n }", "@Override\r\n\tpublic int add() {\n\t\treturn 0;\r\n\t}", "boolean isAdditionAllowed();", "public void add(NestedInteger ni);", "public void addElement(Integer elem){\n\t\tlist.add(elem);\n\t}", "public static boolean testAlphabetListAddBadInput1() {\r\n AlphabetList list1 = new AlphabetList(4);\r\n try {\r\n list1.add(null);\r\n } catch (NullPointerException e) {\r\n return true;\r\n }\r\n return false;\r\n }", "public void add(int add) {\r\n value += add;\r\n }", "@Override\n\tpublic boolean addAll(Collection<? extends Integer> c) {\n\t\treturn false;\n\t}", "@Test\r\n public void addAll() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>();\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(7);\r\n l.add(9);\r\n check.addAll(l);\r\n assertTrue(check.containsAll(l));\r\n }", "@Test\n\tpublic void testAddItem() {\n\t\tassertEquals(\"testAddItem(LongTermTest): valid enter failure\", 0, ltsTest.addItem(item4, 10)); //can enter\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid available capacity after adding\", 900, ltsTest.getAvailableCapacity());\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid item count after adding\", 10, ltsTest.getItemCount(item4.getType()));\n\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid enter failure\", -1, ltsTest.addItem(item4, 100)); // can't enter\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid available capacity after adding\", 900, ltsTest.getAvailableCapacity());\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid item count after adding\", 10, ltsTest.getItemCount(item4.getType()));\n\t}", "public Boolean contains(Integer valueToAdd) {\n return list.contains(valueToAdd);\n }", "@Override\n\tpublic <T> int add(List<T> store, T b) {\n\t\tif(store.add(b)){\n\t\t\tSystem.out.println(\" Success in addition \");\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\tSystem.out.println(\" failed to add \");\n\t\treturn 0;\n\t\t\n\t}", "public void visitIADD(IADD o){\n\t\tif (stack().peek() != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'int', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1) != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack next-to-top is not of type 'int', but of type '\"+stack().peek(1)+\"'.\");\n\t\t}\n\t}", "@Test\n public void testAdd_GenericType_Overflow_Boundary() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n boolean expResult = true;\n boolean result = instance.add(7);\n assertEquals(expResult, result);\n }", "public void testAdd() {\r\n assertEquals(0, list.size());\r\n list.add(\"A\");\r\n assertEquals(1, list.size());\r\n list.add(\"B\");\r\n assertEquals(2, list.size());\r\n assertEquals(\"B\", list.get(1));\r\n\r\n }", "@Test\n public void testAddAll_int_Collection() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.addAll(1, c);\n assertEquals(expResult, result);\n\n }", "@Test(expected = ListIndexOutOfBoundsException.class)\r\n\tpublic void testExceptionAdd() throws ListIndexOutOfBoundsException\r\n\t{\r\n\t\tthreeElementsInOrder.add(5, 8);\r\n\t}", "public boolean add(T t);", "@Override\n\tpublic int add(int a, int b) {\n\t\treturn a+b;\n\t}", "public void addValue(List<Integer> list, int number) {\n list.add(number);\n System.out.println(list);\n }", "@Test\n\tpublic void testAddition() {\n\t assertEquals(\"4 + 5 must be 9\", 9, this.tester.addTwoNumbers(4, 5));\n\t }", "@Test\n public void testAdd_GenericType_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n\n boolean expResult = true;\n boolean result = instance.add(3);\n assertEquals(expResult, result);\n }", "@Test\n public void addFirst() {\n\n collection.addFirst(0000);\n collection.addFirst(0001);\n assertEquals(collection.getFirst(),0001);\n }", "boolean add(T value);", "@Test // New test annotation without a try/catch\r\n\tpublic void testAdd1() {\n\t\t\r\n\t\t\ttry {\r\n\t\t\t\tint calculatedValue = calc.add(-20, 30);\r\n\t\t\t\tint expectedValue = 10;\r\n\t\t\t\tassertEquals(expectedValue, calculatedValue);\r\n\t\t\t} catch (NegativeNumberException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n//\t\t\t\te.printStackTrace();\r\n\t\t\t\tSystem.out.println(\"Negative number\");\r\n\t\t\t}\r\n\t}", "@Test\n public void addDogTest() {\n Dog dog = new Dog(\"Her\", new Date(), 2);\n DogHouse.add(new Dog(\"Jim\", new Date(), 0));\n DogHouse.add(new Dog(\"Him\", new Date(), 1));\n Integer expected = DogHouse.getNumberOfDogs() + 1;\n DogHouse.add(dog);\n\n Assert.assertEquals(expected, DogHouse.getNumberOfDogs());\n }", "public static void addItem() {\n\t scanner scan; \n scan = new Scanner(System.in);\n while(true){\n System.out.print(\"Enter the Index you'd like to add:\");\n if (scan.hasNextInt()){\n int adds=scan.nextInt();\n ArrayList.add(adds);\n }\n }\n }", "@Override\n\t\t\tpublic boolean test(Integer t) {\n\t\t\t\treturn false;\n\t\t\t}", "public void addToPrimitive(int add) {\n primitiveCounter += add;\n }", "public void add(int number) {\n for(int num : list) set.add(num + number);\n list.add(number);\n }", "@Test\n\tpublic void testAddition() {\n\t\tint tmpRndVal = 0;\n\t\tint tmpRndVal2 = 0;\n\t\tint tmpResult = 0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = RandomNegativeNumbers();\n\t\t\ttmpRndVal2 = RandomNegativeNumbers();\n\t\t\ttmpResult = tmpRndVal + tmpRndVal2;\n\t\t\tassertEquals(bc.addition(tmpRndVal, tmpRndVal2), tmpResult);\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = RandomPositiveNumbers();\n\t\t\ttmpRndVal2 = RandomPositiveNumbers();\n\t\t\ttmpResult = tmpRndVal + tmpRndVal2;\n\t\t\tassertEquals(bc.addition(tmpRndVal, tmpRndVal2), tmpResult);\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tint zero = 0;\n\t\tint tmpVal = 7;\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tassertTrue( ((bc.addition(tmpVal, zero) == zero) \n\t\t\t\t\t|| (bc.addition(zero, zero) == zero)\n\t\t\t\t\t|| (bc.addition(zero, tmpVal) == zero) ));\n\t\t}\n\t\t\n\t}", "int addElement(int list, int data) {\n\t\treturn insertElement(list, -1, data);\n\t}", "private void add(int i) {\n\tArrayList<Integer>ar1= new ArrayList<Integer>();\t\n\tar1.add(100);\n\tar1.add(60);\n\tar1.add(70);\n\tSystem.out.println(ar1.size());\n\t}", "@Test\n public void testAddAll_int_Collection_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n instance.addAll(1, c);\n\n int expResult = 9;\n int result = instance.size();\n assertEquals(expResult, result);\n\n }", "boolean add(T element);", "boolean add(T element);", "@Override\r\n\tpublic int add(int a,int b) {\n\t\treturn a+b;\r\n\t}", "public abstract boolean add(Comparable element) throws IllegalArgumentException;", "public boolean insert(int val) {\n\n return list.add(val);\n }", "@Test\n public void addTest(){\n // Given\n CatHouse catHouse = new CatHouse();\n Cat tom = new Cat(\"tom\", new Date(), 1);\n\n // When\n catHouse.add(tom);\n Integer expected = 1;\n Integer actual = catHouse.getNumberOfCats();\n\n // Then\n Assert.assertEquals(expected, actual);\n }", "@Test\n public void addPastInitialCapacity() {\n for (int iteration = 0; iteration < 20; iteration++) {\n testList.add(42);\n }\n assertEquals(20, testList.count());\n }", "@Test\n\tpublic void testAddOutOfRange() {\n\t\tInteger result = SimpleCalc.add(40, 10);\n\t\tassertNull(\"Input value 40 is out of range [-10, 10]\", result);\n\t}", "void addAll(intList list) throws IllegalAccessException;", "public void test_addTypedValue_accuracy() {\n instance.addTypedValue(typedValue);\n assertTrue(\"The TypedValue is not added properly.\", instance.containsTypedValue(typedValue));\n }", "@Test\n @Ignore\n public void testAdd_3args() {\n System.out.println(\"add\");\n int[] number = null;\n int start = 0;\n int end = 0;\n AbstractMethod instance = new AbstractMethodImpl();\n int expResult = 0;\n int result = instance.add(number, start, end);\n assertEquals(expResult, result);\n // TODO Test muss noch erstellt werden..\n fail(\"Test muss noch erstellt werden.\");\n }", "private static void testAdd(ArrayList list, int[] content) {\n System.out.print(\"Adding to the list: \");\n for (int index = 0; index < content[index]; index++) {\n list.addToEnd(content);\n } // end for\n System.out.println();\n displayList(list);\n }", "boolean add(E e);", "public void testAdd() {\r\n Object[] objects = new String[OPERATIONS];\r\n\r\n for (int i = 0; i < OPERATIONS; i++) {\r\n objects[i] = new String(\"stress\" + i);\r\n }\r\n\r\n //test add.\r\n long startTime = System.currentTimeMillis();\r\n\r\n for (int i = 0; i < OPERATIONS; i++) {\r\n target.add(objects[i]);\r\n }\r\n\r\n long endTime = System.currentTimeMillis();\r\n System.out.println(\"Stress tests ------ \" + \" add(Object) in \" + OPERATIONS + \" times in \" +\r\n Integer.toString((int) (endTime - startTime)) + \" ms\");\r\n\r\n //verify contains.\r\n Collection collection = new ArrayList();\r\n\r\n for (int i = 0; i < OPERATIONS; i++) {\r\n assertTrue(\"not contained.\", target.contains(objects[i]));\r\n collection.add(objects[i]);\r\n }\r\n\r\n assertTrue(\"The collection should be contained.\", target.containsAll(collection));\r\n }" ]
[ "0.7556097", "0.73966527", "0.7326184", "0.71702075", "0.69685906", "0.68772924", "0.6731001", "0.67231935", "0.6640818", "0.65600216", "0.65442467", "0.6513612", "0.6486931", "0.64657384", "0.64345086", "0.64035934", "0.6390285", "0.6383845", "0.6381924", "0.6336357", "0.63314307", "0.63254774", "0.62820315", "0.62819433", "0.62769765", "0.6273155", "0.6271048", "0.62702996", "0.6267327", "0.6258457", "0.6206997", "0.6199574", "0.61942375", "0.61250955", "0.6114503", "0.60631996", "0.6058957", "0.6045479", "0.604203", "0.60417724", "0.60395473", "0.6033441", "0.60288864", "0.6026375", "0.60124797", "0.6010081", "0.5995969", "0.59787786", "0.59773195", "0.59773195", "0.59773195", "0.5974021", "0.59652925", "0.59603584", "0.5953095", "0.5951146", "0.594868", "0.5946417", "0.5941691", "0.59414023", "0.5933207", "0.59277785", "0.5924888", "0.5910819", "0.5906076", "0.58962905", "0.58780324", "0.58604187", "0.58475107", "0.5846855", "0.58428633", "0.5837257", "0.58190787", "0.581427", "0.5805769", "0.5783201", "0.5778269", "0.576864", "0.57599175", "0.5759336", "0.57572204", "0.575352", "0.574925", "0.5748002", "0.57440525", "0.57236487", "0.571789", "0.57111627", "0.57111627", "0.57100844", "0.57046646", "0.5703725", "0.5701583", "0.5695113", "0.5692477", "0.5691094", "0.5684287", "0.56783074", "0.56729126", "0.5669323", "0.56668663" ]
0.0
-1
Tests add to see if integers aren't pushed off the list, but rather the list increases in size when count and list.length are the same value.
@Test void testAdd2() { SimpleList test = new SimpleList(); test.add(1); test.add(2); test.add(3); test.add(4); test.add(5); test.add(6); test.add(7); test.add(8); test.add(9); test.add(10); test.add(11); String output = test.toString(); assertEquals("11 10 9 8 7 6 5 4 3 2 1", output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void checkAdd(int testSize) {\r\n\t\tSystem.out.println(\"Beginning checkAdd basic add test of size \" + testSize);\r\n\t\tSortedIntList list = new SortedIntList(false, testSize);\r\n\t\tRandom r = new Random();\r\n\t\tfor (int i = 0; i < testSize; i++) {\r\n\t\t\t// remember old list contents in case of a problem\r\n\t\t\tString old = list.toString();\r\n\t\t\t// pick a number between -testSize and +testSize, add to list\r\n\t\t\tint next = r.nextInt(2 * testSize + 1) - testSize;\r\n\t\t\t\r\n\t\t\tint expectedSize = i + 1;\r\n\t\t\t\r\n\t\t\t// add to end of list\r\n\t\t\tlist.add(next);\r\n\t\t\t\r\n\t\t\t// check list size and make sure list is sorted\r\n\t\t\tif (list.size() != expectedSize) {\r\n\t\t\t\tthrow new RuntimeException(\"\\n\\nafter adding \" + expectedSize\r\n\t\t\t\t+ \" items, size = \" + list.size() + \" (should be \" + expectedSize + \")\\n\");\r\n\t\t\t} else if (!isSorted(list)) {\r\n\t\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\"\\n\\nadding \" + next + \" failed; list is not sorted.\\n\" +\r\n\t\t\t\t\"List before add = \" + old + \";\\nlist after add = \" + list + \"\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\" Passed!\\n\");\r\n\t}", "@Test\n public void addPastInitialCapacity() {\n for (int iteration = 0; iteration < 20; iteration++) {\n testList.add(42);\n }\n assertEquals(20, testList.count());\n }", "@Test\n public void addToIncreaseCount() {\n testList.add(42);\n assertEquals(1, testList.count());\n }", "void add(int list) {\n\t\t\n\t\t// check if element can be added to the queue\n\t\tif (!canPush)\n\t\t\tthrow new IllegalStateException(\"Queue capacity is excided!\");\n\t\t\n\t\t// add element into the cell push-pointer points to and shift pointer\n\t\tqueue[qPush++] = list;\n\t\t\n\t\t// set poll-flag, cuz there's now at least one element in the queue\n\t\tcanPoll = true;\n\t\t\n\t\t/*\n\t\t * If poll pointer went beyond array bounds - return it to the first position\n\t\t */\n\t\t\n\t\tif (qPush == queue.length)\n\t\t\tqPush = 0;\n\t\t\n\t\t/*\n\t\t * If push pointer now points to the poll pointer - then queue is full\n\t\t * Set flag\n\t\t */\n\t\t\n\t\tif (qPush == qPoll)\n\t\t\tcanPush = false;\n\t}", "private void testAdd(){\n System.out.println(\"------ TESTING: add(int element) -----\");\n try{\n // add values to list, the sequence is 0,1,....,iSize-1\n for(int i = 0; i < iSize; i++) {\n // if the add method returns false the program did not work correctly\n if (!iTestList.add(i))\n throw new RuntimeException(\"FAILED -> failed to add value to list\");\n }\n }catch(RuntimeException e){\n System.out.print(e.getMessage());\n }\n }", "@Override\n public final boolean add(final Integer element) {\n // First, check to see that the array can support another element\n ensureCapacity(size);\n // Add the element to the next available slot\n arrayList[size++] = element;\n return true;\n }", "@Test\n public void getSizeOfList() {\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n list.add(3);\n list.add(4);\n\n assertEquals(4, list.size());\n }", "private void arrayIncreaaseSize(MyArrayList myArrayList, Results results) {\r\n int old_size = myArrayList.length();\r\n int value;\r\n Random rand = new Random();\r\n \r\n for(int i=0; i<50; i++) {\r\n value = rand.nextInt(10000);\r\n if(value < 0) {\r\n value = value * -1;\r\n }\r\n myArrayList.insertSorted(value);\r\n }\r\n if(myArrayList.length() == old_size + 25) {\r\n results.storeNewResult(\"ArrayIncrease test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayIncrease test case: FAILED\");\r\n }\r\n }", "@Test\n public void testAddAll_int_Collection_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n instance.addAll(1, c);\n\n int expResult = 9;\n int result = instance.size();\n assertEquals(expResult, result);\n\n }", "@Test\n public void testAdd_int_GenericType_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n int expResult = 8;\n instance.add(2, 9);\n assertEquals(expResult, instance.size());\n }", "public void offer(int num){\n if(tail == fixedSize - 1) {\n List<Object> newList = new ArrayList<>();\n newList.add(num);\n //save next new list at tail\n tailList.add(newList);\n tailList = (List<Object>) tailList.get(tail);\n tail = 0;\n }else{ //not in last index,then directly add it;\n tailList.add(num);\n }\n count++;\n tail++;\n }", "private void arraySize(MyArrayList list, Results results) {\r\n int size = -123;\r\n size = list.size();\r\n if(size != -123) {\r\n results.storeNewResult(\"ArraySize test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArraySize test case: FAILED\");\r\n }\r\n }", "@Override\n\tpublic void add(int n) {\n\t\tvalues[size] = n; //add value to the list\n\t\tsize++; //increment size\n\t\tif (size == values.length){ //if the list is full expand it\n\t\t\tresize();\n\t\t}\n\t}", "@Test\n public void testRemove_int_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n Integer expResult = 6;\n Integer result = instance.size();\n\n assertEquals(expResult, result);\n\n }", "@Test\n\tpublic void testAddList() {\n\t\tarrayList = new ArrayListImplementation<String>();\n\t\tarrayList.addItem(\"1\");\n\t\tarrayList.addItem(\"2\");\n\t\tArrayListImplementation<String> tempArrayList = new ArrayListImplementation<String>();\n\t\ttempArrayList.addItem(\"4\");\n\t\ttempArrayList.addItem(\"5\");\n\t\ttempArrayList.addItem(\"6\");\n\t\tint sizeBeforeListAdded = arrayList.getActualSize();\n\t\tarrayList.addList(tempArrayList);\n\t\tint sizeAfterListAdded = arrayList.getActualSize();\n\t\tassertNotEquals(sizeBeforeListAdded, sizeAfterListAdded);\n\t}", "@Override\n public boolean add(int value) {\n Entry newElement = new Entry(value);\n if (size == 0) {\n first = newElement;\n last = newElement;\n } else {\n last.next = newElement;\n newElement.previous = last;\n last = newElement;\n }\n size++;\n return true;\n }", "private static int sumIntegerList(List<Integer> superGrowingList) {\r\n\t\tint sum = 0;\r\n\t\tIterator<Integer> iterator = superGrowingList.iterator();\r\n\t\twhile (iterator.hasNext()) {\r\n\t\t\tInteger integer = (Integer) iterator.next();\r\n\t\t\tsum += (int)integer;\r\n\t\t}\r\n\t\treturn sum;\r\n\t}", "@Test\n public void addToList(){\n List<Float> list = new ArrayList<>();\n list.add(1f);\n list.add(2f);\n list.add(3f);\n list.add(4f);\n\n assertEquals(4,list.size());\n\n list.add(5f);\n\n assertEquals(5,list.size());\n }", "public boolean insert(int val) {\n if (checkDups.containsKey(val)) {\n return false;\n }\n if (this.list.size() == this.size) {\n this.list.add(val);\n } else {\n this.list.set(this.size, val);\n }\n checkDups.put(val, this.size);\n this.size++;\n return true;\n \n }", "private static List<Integer> addOne(List<Integer> input) {\n\n\t\tList<Integer> copy = new ArrayList<>();\n\t\tcopy.addAll(input);\n\n\t\tint size = copy.size();\n\t\tcopy.set(size-1, input.get(size-1)+1);//last element of input is updated/replaced by (original value + 1)\n\n\t\tfor(int i=size-1; i>0 && copy.get(i)==10; i--) {\n\t\t\tcopy.set(i, 0);\n\t\t\tcopy.set(i-1, copy.get(i-1)+1);\n\t\t}\n\n\t\tif(copy.get(0) == 10) {\n\t\t\tcopy.set(0, 0);\n\t\t\tcopy.add(0, 1);//add 1 at index0 ,shift all elements after to right\n\t\t}\n\n\t\treturn copy;//this NOT modifies the original input\n\t}", "@Test\n public void testPersistedSegmentCount_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n int expResult = 2;\n int result = instance.persistedSegmentCount();\n assertEquals(expResult, result);\n\n }", "@Test\r\n\tvoid testSize2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.append(1);\r\n\t\ttest.append(2);\r\n\t\ttest.append(3);\r\n\t\ttest.append(4);\r\n\t\ttest.append(5);\r\n\t\ttest.append(6);\r\n\t\ttest.append(7);\r\n\t\ttest.append(8);\r\n\t\ttest.append(9);\r\n\t\ttest.append(10);\r\n\t\ttest.append(11);\r\n\t\tint output = test.size();\r\n\t\tassertEquals(15, output);\r\n\t}", "@Test\n public void testAdd_Size() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.add(9);\n int expResult = 5;\n\n assertEquals(expResult, baseList.size());\n }", "public void add(int num) {\n // if the array is not large enough, an array of twice\n // the capacity is created\n if (count + 1 > list.length) {\n int[] temp = new int[list.length * 2];\n for (int i = 0; i < list.length; i++) {\n temp[i] = list[i];\n }\n list = temp;\n temp = null;\n }\n \n // add the element to the array and increment the count\n list[count++] = num;\n }", "void testAppend(Tester t) {\n t.checkExpect(ints1.length(), 1);\n t.checkExpect(ints2.length(), 2);\n t.checkExpect(ints3.length(), 2);\n\n ints1.append(ints2);\n\n t.checkExpect(ints1.length(), 3);\n\n ints2.append(ints3);\n\n t.checkExpect(ints1.length(), 5);\n ints2.append(ints4);\n\n t.checkExpect(ints2.length(), 6);\n\n ints4.append(ints4);\n\n // will be infinite\n // t.checkExpect(ints4.length(), -1);\n }", "@Test\n public void addToNonEmptyList() {\n OurLinkedListHW list = new OurLinkedListHW();\n list.add(\"A\");\n list.add(\"C\");\n list.add(\"D\");\n list.add(\"E\");\n list.add(\"F\");\n list.add(\"G\");\n assertEquals(\"[A,C,D,E,F,G,]\", list.toString());\n assertEquals(6, list.size());\n //add to a specific index\n list.add(1, \"B\");\n list.add(5, \"B\");\n assertEquals(\"[A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(8, list.size());\n //add to the first index\n list.add(0, \"B\");\n assertEquals(\"[B,A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(9, list.size());\n //remove if at first index\n list.remove(\"B\");\n assertEquals(\"[A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(8, list.size());\n //remove if at last index\n list.remove(\"G\");\n assertEquals(\"[A,B,C,D,E,B,F,]\", list.toString());\n assertEquals(7, list.size());\n //remove if elsewhere\n list.remove(\"C\");\n assertEquals(\"[A,B,D,E,B,F,]\", list.toString());\n assertEquals(6, list.size());\n }", "@Test\n public void testSize() {\n System.out.println(\"size\");\n al.add(1);\n assertEquals(1, al.size());\n }", "@Test\n public void testAddAll_int_Collection_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.addAll(1, c);\n assertEquals(expResult, result);\n\n }", "public void add(int x)\n {\n int arrayLength = list.length; // get size of array\n if (length == arrayLength)\n {\n list = Arrays.copyOf(list, 100 + list.length);\n list[length] = x;\n length++;\n\n } else\n {\n list[length] = x;\n length++;\n }\n }", "private static void testAdd(ArrayList list, int[] content) {\n System.out.print(\"Adding to the list: \");\n for (int index = 0; index < content[index]; index++) {\n list.addToEnd(content);\n } // end for\n System.out.println();\n displayList(list);\n }", "private void testAddAtIndex(){\n System.out.println(\"------ TESTING : add(int index, int element) ------\");\n try{\n // The insertion will add values to the front\n // the sequence should be iSize-1....,1,0\n for(int i = 0; i < iSize ; i++){\n if(!iTestList.add(0,i))\n throw new RuntimeException(\"FAILED -> add(index,element) not working correctly\");\n }\n // we should test the out of edge cases\n // if we try the following code and the return value is true or if the\n // program crashes then there is a problem\n if(iTestList.add(iSize+10, 999 )){\n throw new RuntimeException(\"FAILED -> index should not be > SIZE\");\n }\n if(iTestList.add(-2,999 )){\n throw new RuntimeException(\"FAILED -> index should not be < 0\");\n }\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "public boolean insert(int val) {\n if (!map.containsKey(val)) {\n map.put(val, new HashSet<>());\n }\n map.get(val).add(size);\n list.add(val);\n size++;\n return map.get(val).size() == 1;\n }", "public void add(int item) {\r\n if (!contains(item)) {\r\n items[NumItems++] = item;\r\n } else if (NumItems == MAX_LIST) {\r\n throw new ListFullException(\"List is full\");\r\n }\r\n }", "@Test\n public void isEmpty() {\n assertTrue(myList.isEmpty());\n\n //given\n myList.add(0);\n\n //then\n assertFalse(myList.isEmpty());\n }", "private static List<Integer> addOnePlus(List<Integer> input) {\n\n\t\tint size = input.size();\n\t\tinput.set(size-1, input.get(size-1)+1);//last element of input is updated/replaced by (original value + 1)\n\n\t\tfor(int i=size-1; i>0 && input.get(i)==10; i--) {\n\t\t\tinput.set(i, 0);\n\t\t\tinput.set(i-1, input.get(i-1)+1);\n\t\t}\n\n\t\tif(input.get(0) == 10) {\n\t\t\tinput.set(0, 0);\n\t\t\tinput.add(0, 1);//add 1 at index0 ,shift all elements after to right\n\t\t}\n\n\t\treturn input;//this modifies the original input\n\t}", "public Boolean add(int value) {\n\t\t\n\t\tfor (Integer elem : elemList) {\n\t\t\tif (elem == value)\n\t\t\t\treturn false;\n\t\t}\n\t\tthis.elemList.add(value);\n\t\treturn true;\n\t}", "@Test\r\n\tvoid testCount2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.add(2);\r\n\t\ttest.add(3);\r\n\t\ttest.add(4);\r\n\t\ttest.add(5);\r\n\t\ttest.add(6);\r\n\t\ttest.add(7);\r\n\t\ttest.add(8);\r\n\t\ttest.add(9);\r\n\t\ttest.add(10);\r\n\t\ttest.add(11);\r\n\t\tint output = test.count();\r\n\t\tassertNotEquals(10, output);\r\n\t}", "@Test\n public void testSize_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n int expResult = 6;\n\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n long result = instance.size();\n assertEquals(expResult, result);\n\n }", "@Test\n public void testSize() {\n testAdd();\n assertEquals(9, list1.size());\n }", "int addElement(int list, int data) {\n\t\treturn insertElement(list, -1, data);\n\t}", "boolean isListRemainingEmpty();", "@Test\n public void testAdd_int_GenericType_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.add(2, 9);\n List<Integer> expResult = Arrays.asList(1, 1, 9, 7, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n }", "private static boolean areAdjoining(List<Integer> list) {\r\n if (list.isEmpty()) {\r\n return false;\r\n }\r\n int check = list.get(0);\r\n for (int value : list) { // (use iterator for efficiency)\r\n if (value != check) {\r\n return false;\r\n }\r\n check += 1;\r\n }\r\n return true;\r\n }", "public boolean insert(int val) {\n if(map.containsKey(val))\n {\t\n \tmap.get(val).add(list.size());\n \tlist.add(val);\n \treturn false;\n }else{\n \tmap.put(val, new HashSet<Integer>());\n \tmap.get(val).add(list.size()); \t\n \tlist.add(val);\n \treturn true;\n }\n }", "private int getAmountOfSuccessorsAndRemoveThem(PhoneForward pf, List<PhoneForward> list, int currentCount) {\n for (PhoneForward value : list) {\n if (value.getOwnNumber().equals(pf.getTargetNumber())) {\n list.remove(value);\n currentCount++;\n return getAmountOfSuccessorsAndRemoveThem(value, list, currentCount);\n }\n }\n return currentCount;\n }", "public int addOrderedList(int number) {\n\t\tint index;\n\n\t\tif (olist.traverse(number) == 1) {\n\t\t\tindex = olist.returnPos(number);\n\t\t\tSystem.out.println(\"number will be added at\" + index);\n\n\t\t\tolist.insertAt(number, index);\n\n\t\t\tcount++;\n\n\t\t} else if (olist.traverse(number) == 0) {\n\t\t\tolist.deleteElement(number);\n\t\t\tcount--;\n\n\t\t}\n\n\t\treturn count;\n\n\t}", "public synchronized void addList(int[] list) {\r\n listsOfSorted.offer(list);\r\n }", "@Test\r\n\tpublic void testSize() {\r\n\t\tAssert.assertEquals(15, list.size());\r\n\t}", "public boolean add(E obj)\r\n {\r\n int originalSize = this.size();\r\n listIterator(originalSize).add(obj);\r\n return originalSize != this.size();\r\n }", "@Test\r\n\tpublic void testAddIntE() {\r\n\t\tassertEquals(0, ll.size());\r\n\t\tassertTrue(ll.isEmpty());\r\n\r\n\t\t// valid additions\r\n\t\tll.add(0, t3);\r\n\t\tassertEquals(1, ll.size());\r\n\t\tll.add(0, t2);\r\n\t\tassertEquals(2, ll.size());\r\n\t\tll.add(2, t4);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertFalse(ll.isEmpty());\r\n\r\n\t\t// invalid additions\r\n\t\ttry {\r\n\t\t\tll.add(-1, t1);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(4, t5);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(0, t3);\r\n\t\t\tfail();\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(0, null);\r\n\t\t\tfail();\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testAddAllInt() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 4, \"ferrum\"));\r\n\t\tsample.add(new Munitions(10, 5, \"ferrum\"));\r\n\t\tsample.addAll(1, list);\r\n\t\tAssert.assertEquals(17, sample.size());\r\n\t\tAssert.assertTrue(sample.get(0).equals(new Munitions(2, 4, \"ferrum\")));\r\n\t\tAssert.assertTrue(sample.get(1).equals(list.get(0)));\r\n\t\tAssert.assertTrue(sample.get(16).equals(new Munitions(10, 5, \"ferrum\")));\r\n\t}", "@Test\n\tpublic void testAdd(){\n\t\tArrayIntList list = buildList(5);\n\t\tassertEquals(5, list.intCol.size());\n\t}", "@Test\n public void testAdd() {\n list1.add(0, 11.25);\n list1.add(1, 12.25);\n list1.add(2, 13.25);\n list1.add(3, 14.25);\n list1.add(4, 15.25);\n list1.add(5, 17.25);\n list1.add(6, 18.25);\n list1.add(7, 19.25);\n list1.add(3, 16.25);\n assertEquals(16.25 , list1.get(3), 0);\n assertEquals(14.25 , list1.get(4), 0);\n assertEquals(15.25, list1.get(5), 0);\n assertEquals(9, list1.size());\n }", "private int sizeOfList(Student [] list) {\r\n\t\t\r\n\t\tint size = 0;\r\n\t\tStudent sizechecker;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\twhile (true) {\r\n\t\t\t\t\r\n\t\t\t\tsizechecker = list[size];\r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) { \r\n\t\t \r\n\t\t}\r\n\t\t\r\n\t\treturn size;\r\n\t}", "public int listSize(){\r\n return counter;\r\n }", "private void helper(List<Integer> tempList,ArrayList<Integer> list) {\n //stopping condition\n if(list.size()==0) {\n ans.add(new ArrayList<>(tempList)); // add a copy of tempList\n }\n else {\n for(int i=0;i<list.size();i++) {\n if(i==0 || list.get(i-1) != list.get(i)) // avoid duplication\n {\n ArrayList<Integer> newlist = new ArrayList<>(list);\n tempList.add(list.get(i));\n newlist.remove(i);\n helper(tempList,newlist);\n tempList.remove(tempList.size()-1);\n }\n\n }\n }\n }", "@Test\n public void remove() {\n testList.add(42);\n testList.remove(42);\n assertEquals(0, testList.count());\n }", "public boolean isListLengthFixed();", "public int addSongToPlayList(){\n\t\t\n\t\tint pos =0;\n\t\t\n\t\tboolean out = false;\n\t\t\n\t\tfor(int i=0; (i<songList.length)&&(out==false);i++){\n\t\t\n\t\tif(songList[i] == null){\n\t\t\tout = true;\n\t\t\tpos = i;\n\t\t}\n\t\t}\n\t\treturn pos;\n\t}", "@Test\r\n\tpublic void testAdd() {\r\n\t\tlist.add(new Munitions(23, 24, \"cuprum\"));\r\n\t\tAssert.assertEquals(16, list.size());\r\n\t\tAssert.assertTrue(list.get(15).equals(new Munitions(23, 24, \"cuprum\")));\r\n\t}", "public static boolean completeCheck(ArrayList<Integer> aList) {\n\t\tif (aList.size() == Utils.SIZE) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "@Test\n public void testAddAll_int_Collection_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n instance.addAll(1, c);\n\n List expResult = Arrays.asList(3, 1, 2, 3, 2, 3, 2, 3, 2);\n\n for (int i = 0; i < expResult.size(); i++) {\n assertEquals(expResult.get(i), instance.get(i));\n }\n }", "public int addItemsNotFull ( Item... items ) {\n\t\tint added_count = 0;\n\t\tfor ( int i = 0; i < items.length; i++ ) {\n\t\t\tfor ( int j = 0; j < getPages ( ).length; j++ ) {\n\t\t\t\tif ( !getPage ( j ).isFull ( ) ) {\n\t\t\t\t\tgetPage ( j ).addItem ( items[ i ] );\n\t\t\t\t\tadded_count++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn added_count;\n\t}", "public boolean add( T element )\n {\n // THIS IS AN APPEND TO THE LOGICAL END OF THE ARRAY AT INDEX count\n if (size() == theArray.length) upSize(); // DOUBLES PHYSICAL CAPACITY\n theArray[ count++] = element; // ADD IS THE \"setter\"\n return true; // success. it was added\n }", "public boolean add (T obj) {\r\n\t\tboolean result = _list.add (obj);\r\n\t\tHeapSet.siftUp (this, _list.size () - 1);\r\n\t\treturn result;\r\n\t}", "@Test\n public void testRemove_Contains_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n instance.remove(new Integer(1));\n\n int expResult = 5;\n int result = instance.size();\n assertEquals(expResult, result);\n }", "public void addCount() {\n \t\tdupCount++;\n \t}", "private void addToEmptyList(T data) {\n this.first = this.last = new Node(data);\n this.nrOfElements++;\n }", "@Override\n public boolean add(T item) {\n // if the last spot in the array is unoccupied, item is simply added to the first empty spot\n if (arr[arr.length-1]!=null) {\n arr[size + 1] = item;\n size++;\n }\n // if array is full, number of spots is doubled and item is added\n if (arr[arr.length-1]== null){\n grow();\n arr[size+1] = item;\n size++;\n }\n return true;\n }", "public void add(LinkedListInt other) {\nthis.size += other.size;\nNode current = head;\nif(head == null) {\nhead = other.head;\nreturn;\n}\nwhile(current.next != null)\ncurrent = current.next;\ncurrent.next = other.head;\n}", "private int getAmountOfPrecursorsAndRemoveThem(PhoneForward pf, List<PhoneForward> list, int currentCount) {\n for (PhoneForward value : list) {\n if (value.getTargetNumber().equals(pf.getOwnNumber())) {\n list.remove(value);\n currentCount++;\n return getAmountOfPrecursorsAndRemoveThem(value, list, currentCount);\n }\n }\n return currentCount;\n }", "@Test\r\n\tvoid testSize3() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\tint output = test.size();\r\n\t\tassertEquals(8, output);\r\n\t}", "public boolean insert(int val) {\n nums.add(val); //在列表末尾添加的元素 O(1)\n Set<Integer> set = idx.getOrDefault(val, new HashSet<Integer>());\n set.add(nums.size()-1);\n idx.put(val,set);\n return set.size()==1;\n }", "@Override\n public boolean add(T e) {\n if (numElements == maxElements) {\n doubleCapacity();\n }\n\n // Add element\n elements[numElements++] = e;\n return true;\n }", "@Test\n public void testRemove_int_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n Integer expResult = 7;\n Integer result = instance.remove(2);\n\n assertEquals(expResult, result);\n\n }", "public static void putPrincipleExample(List<? super Integer> list, int count)\r\n {\r\n for (int i = 0; i < count; ++i)\r\n list.add(i);\r\n }", "@Override\n boolean shouldFlush(TYPE item) {\n // increment the current item count, and get the modulus of size\n currentItem = ++currentItem % size;\n // if the modulus is 0, we've hit our max, and we flush the list\n return currentItem == 0;\n }", "@org.junit.Test(timeout = 10000)\n public void testEmptyList_add41324() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyList_add41324__5 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyList_add41324__5, 0);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedFoos.size()) == (foos.size())));\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n }", "public boolean insert(int val) {\n if(map.containsKey(val)) return false;\n map.put(val, list.size());\n list.add(val);\n return true;\n }", "public static int sumList(ArrayList<Integer> list)\n {\n int sum = 0;\n for (int value: list)\n {\n \n sum+=value;\n \n //list.add(7);\n }\n \n return sum;\n }", "@Test\n public void testRetainAll_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n\n Collection c = Arrays.asList(3, 2, 3, 2, 3, 1, 2);\n instance.addAll(c);\n\n c = Arrays.asList(2, 3);\n instance.retainAll(c);\n\n int expectedResult = 6;\n assertEquals(expectedResult, instance.size());\n\n }", "@Test\n public void testAdd_GenericType_Overflow_Boundary() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n boolean expResult = true;\n boolean result = instance.add(7);\n assertEquals(expResult, result);\n }", "public boolean insert(int val) {\n if (list.containsKey(val)) {\n list.put(val,list.get(val) +1);\n linklist.add(val);\n return false;\n } else {\n linklist.add(val);\n list.put(val,1);\n return true;\n }\n }", "void add(int value) {\n size++;\n\n int[] newItems = new int[size];\n\n System.arraycopy(items, 0, newItems, 0, items.length);\n\n newItems[newItems.length - 1] = value;\n\n items = newItems;\n }", "private void arraySum(MyArrayList myArrayList, Results results) {\r\n int old_sum = myArrayList.sum();\r\n myArrayList.insertSorted(511);\r\n int new_sum = myArrayList.sum();\r\n if(old_sum < new_sum) {\r\n results.storeNewResult(\"ArraySum test case: PASSED\");\r\n }\r\n else { \r\n results.storeNewResult(\"ArraySum test case: FAILED\");\r\n }\r\n }", "@Test\n public void testRemove_int_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n Integer expResult = 6;\n Integer result = instance.size();\n\n assertEquals(expResult, result);\n\n }", "void add (int value) {\n array[fillLength] = value;\n fillLength++;\n for (int i = fillLength - 1; i > 0; i--) {\n if (array[i - 1] > array[i]) {\n int tempHolder = array[i];\n array[i] = array[i - 1];\n array[i - 1] = tempHolder;\n } else {\n break;\n }\n }\n }", "public static int jump_over_numbers(List<Integer> list) {\n\t\tIterator<Integer> it = list.iterator();\n\t\tint count = 0;\n\t\twhile(it.hasNext()){\n\t\t\tint current = it.next();\n\t\t\tcount++;\n\t\t\tif(current == 0){\n\t\t\t\tcount = -1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twhile(it.hasNext() && current > 1 ){\n\t\t\t\tit.next();\n\t\t\t\tcurrent--;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t }", "@Test\n public void testGet_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n Integer expResult = 7;\n Integer result = instance.get(2);\n assertEquals(expResult, result);\n\n }", "public boolean add(T val) {\n Integer idx = hmap.get(val);\n if (idx == null) {\n int i = list.size();\n list.add(val);\n idx = new Integer(i);\n hmap.put(val, idx);\n return true;\n }\n return false;\n }", "@Test\r\n\tvoid testCount() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.count();\r\n\t\tassertEquals(3, output);\r\n\t}", "@Test\r\n\tpublic void testSize() {\r\n\t\ttestArray = new ArrayBasedList<String>();\r\n\t\tassertEquals(0, testArray.size());\r\n\t\ttestArray.add(\"hi\");\r\n\t\ttestArray.add(\"hey\");\r\n\t\ttestArray.add(\"hello\");\r\n\t\tassertEquals(3, testArray.size());\r\n\t}", "@Test\n public void testAdd_int_GenericType() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n int expResult = 8;\n instance.add(2, 9);\n assertEquals(expResult, instance.size());\n }", "public boolean add(ElementType element){\n if(this.contains(element)){\n return false;\n }\n else{\n if(size==capacity){\n reallocate();\n }\n elements[size]=element;\n size++;\n }\n return true;\n }", "public void testIsEmpty() {\r\n assertTrue( list.isEmpty());\r\n list.add(\"A\");\r\n assertFalse(list.isEmpty());\r\n }", "private static boolean canEasyAdd( List<ProductPrice> currentList, ProductPrice iter) {\n\t\treturn currentList.get(0).start.after(iter.end) || currentList.get(currentList.size()-1).end.before(iter.start) ; \r\n\t}", "void testListMethods(Tester t) {\n IList<Integer> mt = new Empty<Integer>();\n IList<Integer> l1 = new Cons<Integer>(1,\n new Cons<Integer>(2, new Cons<Integer>(3, \n new Cons<Integer>(4, mt))));\n\n t.checkExpect(mt.len(), 0);\n t.checkExpect(l1.len(), 4);\n\n t.checkExpect(mt.append(l1), l1);\n t.checkExpect(l1.append(mt), l1);\n\n t.checkExpect(mt.getData(), null);\n t.checkExpect(l1.getData(), 1);\n\n t.checkExpect(l1.getNext(), new Cons<Integer>(2 , new Cons<Integer>(3 , \n new Cons<Integer>(4 , mt))));\n }", "@Test\r\n\tpublic void testRemoveInt() {\r\n\t\tll.add(t1);\r\n\t\tll.add(t2);\r\n\t\tll.add(t3);\r\n\t\tll.add(t4);\r\n\t\tll.add(t5);\r\n\t\tassertEquals(5, ll.size());\r\n\t\t// order of list: [0: t1, 1: t2, 2: t3, 3: t4, 4: t5]\r\n\t\t\r\n\t\ttry {\r\n\t\t\tll.remove(-1);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(5, ll.size());\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tll.remove(5);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(5, ll.size());\r\n\t\t}\r\n\t\t\r\n\t\tll.remove(0);\r\n\t\tassertEquals(4, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4, 3: t5]\r\n\t\t\r\n\t\tll.remove(ll.size() - 1);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t4, ll.get(2));\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4]\r\n\t\t\r\n\t\tll.remove(1);\r\n\t\tassertEquals(2, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\t// order of list: [0: t2, 1: t4]\r\n\t\t\r\n\t\tll.remove(0);\r\n\t\tassertEquals(1, ll.size());\r\n\t\tassertEquals(t4, ll.get(0));\r\n\t\t// order of list: [0: t4]\r\n\t\t\r\n\t\tll.remove(0);\r\n\t\tassertEquals(0, ll.size());\r\n\t}", "public void add(int number) {\n\t if (hash.containsKey(number)) hash.put(number, 2); // two is enough\n\t else {\n\t \thash.put(number, 1);\n\t \tlist.add(number);\n\t }\n\t}", "OrderedIntList(int size)\n\t{\n\t\tdata = new int[size];\n\t\tcount = 0;\n\t}", "@Test\n public void testAdd_After_Add() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.add(3);\n instance.add(9);\n int expResult = 3;\n\n assertEquals(expResult, baseList.indexOf(9));\n }" ]
[ "0.6755372", "0.6707596", "0.66161346", "0.64477783", "0.6214437", "0.6139026", "0.6120599", "0.6090117", "0.6013186", "0.59954685", "0.59414905", "0.5884042", "0.58537096", "0.58141553", "0.5792816", "0.57900655", "0.57776636", "0.576354", "0.5748056", "0.5727778", "0.5719084", "0.571873", "0.5718717", "0.57153416", "0.5705605", "0.56995076", "0.5670603", "0.56704634", "0.56667084", "0.5660257", "0.56561774", "0.5655802", "0.5648127", "0.56382936", "0.56295985", "0.56284654", "0.56222373", "0.5616282", "0.56159055", "0.560103", "0.5600993", "0.55909264", "0.5589658", "0.5577562", "0.5565491", "0.5541307", "0.5533998", "0.5521492", "0.5518661", "0.5518563", "0.5514972", "0.55066705", "0.5500023", "0.5498556", "0.54958814", "0.5489322", "0.5486192", "0.54779935", "0.54774714", "0.5474136", "0.54738736", "0.5462685", "0.54526085", "0.54468304", "0.5435443", "0.54183245", "0.5409274", "0.5407639", "0.54056925", "0.5403904", "0.53929657", "0.53909576", "0.53902495", "0.53901744", "0.538732", "0.5386354", "0.53846776", "0.53776944", "0.5373762", "0.53711224", "0.53647834", "0.53529173", "0.5343758", "0.53423345", "0.53389066", "0.53370535", "0.5331361", "0.5330905", "0.5329568", "0.5328262", "0.53239554", "0.5321754", "0.5318602", "0.53181267", "0.53141934", "0.53099245", "0.529197", "0.5291759", "0.5288636", "0.5288193", "0.5286941" ]
0.0
-1
Tests remove to see if a value in the list is removed.
@Test void testRemove() { SimpleList test = new SimpleList(); test.add(7); test.add(10); test.add(9); test.remove(10); String output = test.toString(); assertEquals("9 7", output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean remove(int val) {\n return list.remove(val);\n }", "@Override\n\tpublic boolean remove(Object value) {\n\t\tint index = indexOf(value);\n\n\t\tif (index == -1) {\n\t\t\treturn false;\n\t\t}\n\n\t\tremove(index);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean remove(Object value) {\n\t\ttry {\n\t\t\tremove(indexOf(value));\n\t\t}catch(IndexOutOfBoundsException e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean remove(Object value) {\n\t\treturn false;\n\t}", "@Test\n void testRemoveDeletesElement() {\n MyList l = new MyList();\n l.put(\"key\", \"value\");\n l.remove(\"key\");\n\n assertEquals(false, l.contains(\"key\"));\n }", "@Override\r\n\tpublic boolean remove(T element) {\n\t\treturn this._list.remove(element);\r\n\t}", "boolean isRemove();", "public boolean remove ( Object o ){\n\n \ttry{\n\n if(contains(o)){\n\n \t\t for(int i = 0; i < list.size(); i++){\n\n if(list.get(i).equals(o)){\n list.remove(i);\n }\n\n }\n\n \t\t return true;\n\n }\n\n else{\n return false;\n }\n\n \t}\n\n \tcatch (Exception e){\n \t\treturn false;\n \t}\n\n }", "public boolean remove(T item) {\n\t\treturn list.remove(item);\n\t}", "public boolean remove(U value) {\n\t\t\tNode<U> currNode = mHead;\n\n\t\t\tfor (int i = 0; i < mLength; ++i) {\n\t\t\t\tif (Objects.equals(currNode.getValue(), value)) {\n\t\t\t\t\tunlinkNode(currNode);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tcurrNode = currNode.getNext();\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}", "@Override\n public boolean removeByValue(int value) {\n Entry tmp = first;\n for (int i = 0; i < size; i++) {\n if (tmp.value == value) {\n tmp.previous.next = tmp.next;\n tmp.next.previous = tmp.previous;\n size--;\n return true;\n }\n tmp = tmp.next;\n }\n return false;\n }", "@Test\n public void testRemove_Not_Contains() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n\n Integer item = 2;\n boolean expResult = false;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "public boolean remove(Object value)\r\n {\r\n if (!contains(value))\r\n return false;\r\n root = remove(root, value);\r\n return true;\r\n }", "@Test\n public void testRemove_Contains() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n\n Integer item = 1;\n boolean expResult = true;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "public boolean remove(int val) {\r\n\r\n\t\tint pos = get_pos(val);\r\n\t\tif (bucket[pos] != null) {\r\n\t\t\tNode n = bucket[pos].list;\r\n\t\t\tNode p = n;\r\n\t\t\twhile (n != null) {\r\n\t\t\t\tif (n.val == val) {\r\n\t\t\t\t\tif (p == bucket[pos].list) {\r\n\t\t\t\t\t\tbucket[pos].list = n.next;\r\n\t\t\t\t\t\tbucket[pos].size--;\r\n\t\t\t\t\t\tif (bucket[pos].list == null)\r\n\t\t\t\t\t\t\tbucket[pos] = null;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tp.next = n.next;\r\n\t\t\t\t\t\tbucket[pos].size--;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\tp = n;\r\n\t\t\t\tn = n.next;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "public boolean remove(List<T> o) {\n\t\treturn lists.remove(o);\n\t}", "boolean canRemove();", "boolean remove(T element);", "public boolean remove(T value) {\n int prevSize = size;\n root = remove( value, root );\n\n return prevSize != size;//return true if size changed\n\n }", "public boolean remove(int val) {\n if (!set.containsKey(val)) return false;\n int lastElement = list.get(list.size() - 1);\n int idx = set.get(val);\n list.set(idx, lastElement);\n set.put(lastElement, idx);\n list.remove(list.size() - 1);\n set.remove(val);\n return true;\n }", "boolean remove(E e);", "public boolean remove(int val) {\n if (values.containsKey(val)) {\n List<Integer> indices = values.get(val);\n int index = indices.get(indices.size() - 1);\n list.set(index, list.size() - 1);\n list.remove(list.size() - 1);\n values.get(val).remove(indices.size() - 1);\n if (values.get(val).size() == 0) {\n values.remove(val);\n }\n return true;\n } else {\n return false;\n }\n }", "public boolean remove(IntSet remove){\n\t\tint index = contains(remove);\n\t\tif(index==-1){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\tcontents.remove(index);\n\t\t\treturn true;\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\") // stops Java complaining about the call to compare\n public boolean remove(Object item) {\n E itm = (E) item; //this here is cast statment, which allows an object of anytype to be cast as a generic element, which means multiple types of elements can be use in this program\n if (itm == null) { //if the item is null it sends but null, if the item at index is null rerun false, and if the item does not equal the item at the position it returns null\n return false;\n }\n int indexValue = findIndexOf(itm);\n if (data[indexValue] == null) return false;\n if (!data[indexValue].equals(item))\n return false;\n\n for (int i = indexValue; i < count; i++) { //iterates through the list, moving all the elements to the on in front,\n data[i] = data[i + 1];\n }\n count--; //the decrments the count to show an item has been remove, it has not been removed but instead moved to the end, from there the item is overwritten when something is added.\n return true; //the count prevents the item from being seen.\n }", "public boolean remove(int val) {\n boolean contains = map.containsKey(val);\n if(!contains) return false;\n int pos = map.get(val);\n if (pos < nums.size() - 1) { // if not the last one, then swap the last one with this val\n int last = nums.get(nums.size() - 1); // arraylist get() O(1), basically a value in an array\n nums.set(pos, last); // set the element at \"pos\" position to be last element in the list , set like assign value in an array element\n map.put(last, pos); // put the last element in the list with the pos position\n }\n map.remove(val); // hashmap remove() It is O(1) only when removing the last element by index.\n // O(1); map remove(obj)\n //O(1+k/n) where k is the no. of collision elements\n // added to the same LinkedList (k elements had same hashCode)\n nums.remove(nums.size() - 1);\n return true;\n }", "public boolean remove(int val) {\r\n boolean retval = false;\r\n int i = getIndex(val);\r\n Item item = items.get(i);\r\n if (item != null) {\r\n if (item.value == val) {\r\n removeItem(i, item);\r\n retval = true;\r\n } else {\r\n Node previous = null;\r\n Node next = item.next;\r\n while (next != null) {\r\n if (next.value == val) {\r\n break;\r\n }\r\n previous = next;\r\n next = next.next;\r\n }\r\n if (next != null) {\r\n assert (next.value == val);\r\n --item.count;\r\n if (previous == null) {\r\n item.next = next.next;\r\n } else {\r\n previous.next = next.next;\r\n }\r\n retval = true;\r\n }\r\n }\r\n }\r\n /*\r\n * if (retval) { if ((itemSize / nextIndexInCache) < 0.5) {\r\n * rehash(Math.max(itemSize, bufSize), items); } }\r\n */\r\n return retval;\r\n }", "@Test\n public void remove() {\n testList.add(42);\n testList.remove(42);\n assertEquals(0, testList.count());\n }", "public boolean remove(T value) {\n checkForNull(value);\n\n if (!childrenValueSet.contains(value)) {\n return false;\n }\n\n childrenValueSet.remove(value);\n\n Iterator<Tree<T>> iterator = children.iterator();\n while (iterator.hasNext()) {\n if (value.equals(iterator.next().getValue())) {\n iterator.remove();\n incModificationCount();\n\n return true;\n }\n }\n\n return false;\n }", "public boolean remove(int val) {\n if(!map.containsKey(val)) return false;\n int index = map.get(val);\n int size = list.size();\n int tmp = list.get(size-1);\n list.set(size-1, list.get(index));\n list.set(index, tmp);\n list.remove(size-1);\n map.put(tmp, index);\n map.remove(val);\n return true;\n }", "public boolean remove(int val) {\n if (!map.containsKey(val)) {\n return false;\n }\n int idx = map.remove(val);\n int last = lst.remove(lst.size() - 1);\n if (val != last) {\n lst.set(idx, last);\n map.put(last, idx);\n }\n return true;\n }", "public boolean remove(T data) {\n\t\tint targetIndex = indexOf(data);\n\t\tif (targetIndex == -1) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tT temp = remove(targetIndex);\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean remove(String key, V value) {\n Collection<V> values = map.get(key);\n\n if (values != null) {\n return values.remove(value);\n }\n\n return false;\n }", "public boolean removeItem(int value) {\n if (root == null) {\n return false;\n } else {\n return remove(value, root, null);\n }\n }", "public boolean remove(E e){\n int target = e.hashCode() % this.buckets;\n return this.data[target].remove(e) == null;\n }", "public boolean remove(int val) {\n if (!list.containsKey(val)) {\n return false;\n }\n\n int c = list.get(val);\n c--;\n if (c == 0) {\n list.remove(val);\n }\n\n linklist.removeFirstOccurrence(val);\n return true;\n }", "public void remove()\r\n { Exceptions.unmodifiable(\"list\"); }", "public boolean remove(int val) {\n if (!checkDups.containsKey(val)) {\n return false;\n }\n checkDups.put(this.list.get(this.size - 1), this.checkDups.get(val)); // important! update map\n swap(this.list, this.checkDups.get(val), this.size - 1);\n checkDups.remove(val);\n this.size--;\n return true;\n }", "@Override\n public boolean remove(final Object element) {\n for (int i = 0; i < size; i++) {\n if (this.checkIfEqual(element, i)) {\n this.shiftRemove(i);\n return true;\n }\n }\n\n return false;\n }", "private boolean isRemoved() {\r\n\t\t\treturn removed;\r\n\t\t}", "public boolean removeItem(Item toRemove) {\n\t\tboolean success = this.items\n\t\t\t\t.remove(toRemove);\n\n\t\treturn success;\n\t}", "public void testRemoveObj() {\r\n list.add(\"A\");\r\n list.add(\"B\");\r\n assertTrue(list.remove(\"A\"));\r\n assertEquals( \"B\", list.get(0));\r\n assertEquals( 1, list.size());\r\n list.add(\"C\");\r\n assertTrue(list.remove(\"C\"));\r\n assertEquals(\"B\", list.get(0));\r\n }", "@Test\r\n\tpublic void testRemoveE() {\r\n\t\tll.add(t1);\r\n\t\tll.add(t2);\r\n\t\tll.add(t3);\r\n\t\tll.add(t4);\r\n\t\tll.add(t5);\r\n\t\tassertEquals(5, ll.size());\r\n\t\t// order of list: [0: t1, 1: t2, 2: t3, 3: t4, 4: t5]\r\n\t\t\r\n\t\tassertFalse(ll.remove(null));\r\n\t\tassertFalse(ll.remove(\"not in list\"));\r\n\t\t\r\n\t\tassertTrue(ll.remove(t1));\r\n\t\tassertEquals(4, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4, 3: t5]\r\n\t\t\r\n\t\tassertTrue(ll.remove(t3));\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\tassertEquals(t5, ll.get(2));\r\n\t\t// order of list: [0: t2, 1: t4, 2: t5]\r\n\t\t\r\n\t\tassertTrue(ll.remove(t5));\r\n\t\tassertEquals(2, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\t// order of list: [0: t2, 1: t4]\r\n\t\t\r\n\t\tassertTrue(ll.remove(t2));\r\n\t\tassertFalse(ll.remove(\"not in list\"));\r\n\t\tassertTrue(ll.remove(t4));\r\n\t\tassertFalse(ll.remove(t1));\r\n\t\t\r\n\t}", "public boolean remove(int val) {\n boolean contain = _map.containsKey(val);\n if ( ! contain ) return false;\n int loc = _map.get(val);\n if (loc < _list.size() - 1 ) { // not the last one than swap the last one with this val\n int lastone = _list.get(_list.size() - 1 );\n _list.set( loc , lastone );\n _map.put(lastone, loc);\n }\n _map.remove(val);\n _list.remove(_list.size() - 1);\n return true;\n }", "public boolean remove(int val) {\r\n return set.remove(val);\r\n }", "public boolean remove(int val) {\n if (set.contains(val)) {\n set.remove(val);\n return true;\n } else return false;\n }", "@Override\n public boolean remove(Comparable k) {\n\n boolean found = false; // Boolean for found key\n\n // check is null\n if (k == null) {\n throw new IllegalArgumentException(\"null key\");\n }\n\n else {\n // Temporary array to hold Pairs\n Pair[] newList = new Pair[this.CAPACITY];\n\n // Loop over Pairs\n for (int i = 0; i < this.size; i++) {\n\n // If found the one to remove...\n if (ls[i].key.equals(k)) {\n\n found = true; // Change to true\n this.size--; // Decrease size\n\n // Inner loop to skip item\n for (int j = i; j < this.size; j++) {\n newList[j] = ls[j + 1];\n }\n\n // Change value of this.ls to reference newList\n this.ls = newList;\n\n return found;\n\n } else {\n // If not yet found, add to newList\n newList[i] = ls[i];\n }\n }\n\n // Same thing in reassigning\n this.ls = newList;\n return found;\n }\n }", "private boolean remove() {\r\n\t\t\treturn removed = true;\r\n\t\t}", "@Override\n public boolean remove(Object o) {\n if (elements.remove(o)) {\n ordered.remove(o);\n return true;\n } else {\n return false;\n }\n\n }", "public boolean remove(T o) {\n\t\tfor (List<?> list : lists) {\n\t\t\tif (list.remove(o)) return true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean remove(int val) {\n if (m.containsKey(val)) {\n if (l.size() > 1) {\n int idx = m.get(val);\n if (idx == l.size()-1) {\n m.remove(val);\n l.remove(idx);\n } else {\n m.remove(val);\n l.set(idx, l.get(l.size() - 1));\n l.remove(l.size() - 1);\n m.put(l.get(idx), idx);\n }\n } else {\n l.remove(0);\n m.remove(val);\n }\n return true;\n } else {\n return false;\n }\n }", "@Test\n public void testRemove_Not_Contains_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n Integer item = 2;\n boolean expResult = false;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "public boolean remove()\n {\n return false;\n }", "public boolean remove(E item){\n\t\treturn (delete(item) != null) ? true : false;\n\t}", "@Test\n void testRemoveReturnsRightValue() {\n MyList l = new MyList();\n l.put(\"key\", \"value\");\n\n assertEquals(\"value\", l.remove(\"key\"));\n }", "@Override\n public boolean remove( K key,\n V value ) {\n ValueIterator values = new ValueIterator(key);\n while (values.hasNext()) {\n if (ObjectUtil.isEqualWithNulls(values.next(), value)) {\n values.remove();\n return true;\n }\n }\n return false;\n }", "public boolean remove(int val) {\n if (!map.containsKey(val) || map.get(val).size() == 0) {\n return false;\n }\n Integer next = map.get(val).iterator().next();\n map.get(val).remove(next);\n int last = list.get(list.size()-1);\n list.set(next, last);\n map.get(last).add(next);\n map.get(last).remove(list.size()-1);\n\n list.remove(list.size()-1);\n size--;\n return true;\n }", "@Test\n public void testRemove_Contains_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n Integer item = 1;\n boolean expResult = true;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "@Test\n void testRemoveDeletesElementAfterMultiplePuts() {\n MyList l = new MyList();\n for (int i = 0; i < 10; i++)\n l.put(\"key\" + i, \"value\" + i);\n l.remove(\"key5\");\n\n assertEquals(false, l.contains(\"key5\"));\n }", "public Boolean remove(int indexToRemove) {\n if (indexToRemove >= 0) {\n if (indexToRemove < items.size()) {\n items.remove(indexToRemove);\n return true;\n }\n }\n throw new IndexOutOfBoundsException();\n }", "public boolean atomicRemove();", "@Test\n public void testRemoveCard() {\n d_gameData.getD_playerList().get(1).addCard(GameCard.BOMB);\n d_gameData.getD_playerList().get(1).removeCard(GameCard.BOMB);\n assertEquals(false, d_gameData.getD_playerList().get(1).getD_cards().contains(GameCard.BOMB));\n }", "public boolean remove(T anEntry);", "@Override\n public int remove() {\n isEmptyList();\n int result = first.value;\n first = first.next;\n first.previous = null;\n size--;\n return result;\n }", "public boolean remove(int val) {\n if(map.containsKey(val)){\n \tif(map.get(val).size() == 1){\n \t\tint last = list.get(list.size()-1);\n \t\tint mvindex = map.get(val).iterator().next();\n \t\tmap.get(last).remove(list.size()-1);\n \t\tmap.get(last).add(mvindex);\n \t\tlist.set(mvindex,list.get(list.size()-1));\n \t\tlist.remove(list.size()-1);\n \t\tmap.remove(val);\n \t}else {\n \t\tint last = list.get(list.size()-1);\n \t\tint mvindex = map.get(val).iterator().next();\n \t\tmap.get(last).remove(list.size()-1);\n \t\tmap.get(last).add(mvindex);\n \t\tlist.set(mvindex, list.get(list.size()-1));\n \t\tlist.remove(list.size()-1);\n \t\tif(last != val)\n \t\t\tmap.get(val).remove(mvindex);\n\t\t\t} \t\n \treturn true;\n }else {\n\t\t\treturn false;\n\t\t}\n }", "public boolean remove(ReadOnlyItem toRemove) throws ItemNotFoundException {\n assert toRemove != null;\n final boolean itemFoundAndDeleted = internalList.remove(toRemove);\n if (!itemFoundAndDeleted) {\n throw new ItemNotFoundException();\n }\n return itemFoundAndDeleted;\n }", "@Test\r\n\tvoid testRemove4() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\ttest.remove(1);\r\n\t\tassertNotEquals(8, test.list.length);\r\n\t}", "public boolean removeData(Data toRemove) {\r\n\t\t// Verify the value exists before trying to remove.\r\n\t\tif(this.dataExists(toRemove)) {\r\n\t\t\tthis.data.remove(toRemove.getKeyValue());\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\t// end if\r\n\t}", "boolean remove(int pos);", "@Override\r\n\tpublic boolean remove(Object o) {\n\t\treturn set.remove(o);\r\n\t}", "public Boolean remove(Item itemToRemove) {\n int index = indexOf(itemToRemove);\n if (index == -1) {\n return false;\n }\n return remove(index);\n }", "public boolean remove(E element){\n // TO BE IMPLEMENTED\n Object result = map.remove(element);\n if(result != null){\n return true;\n }else{\n return false;\n } \n }", "public boolean remove(int val) {\n if (!location.containsKey(val)) {\n return false;\n }\n int numSize = nums.size();\n int lastVal = nums.get(numSize - 1);\n int index = location.get(val);\n nums.set(index, lastVal);\n location.put(lastVal, index);\n nums.remove(numSize - 1); // O(1)\n location.remove(val);\n return true;\n }", "@Test\r\n\tvoid testRemove3() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\ttest.remove(10);\r\n\t\tassertEquals(8, test.list.length);\r\n\t}", "public void remove(E value) {\n\t\tboolean exists = false;\r\n\t\t//compare keys\r\n\t\tif (curr.next().element().compareTo(value) == 0) {\r\n\t\t\t//if cnt is greater than 1\r\n\t\t\tif(cnt > 1) {\r\n\t\t\t\t//create a temp link\r\n\t\t\t\tLink<E> temp = curr.next();\r\n\t\t\t\t//set curr next to temp\r\n\t\t\t\tcurr.setNext(temp);\r\n\t\t\t\t//decrease cnt by 1\r\n\t\t\t\tcnt--;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t//set curr, tail and head to null\r\n\t\t\t\tcurr = tail = head = new Link<E> (null);\r\n\t\t\t\t//cnt to 0\r\n\t\t\t\tcnt = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//iterate through the list\r\n\t\t\tfor(int i=0; i <= cnt; i++) {\r\n\t\t\t\t//set curr to curr.next()\r\n\t\t\t\tcurr = curr.next();\r\n\t\t\t\t//if curr.next() is null\r\n\t\t\t\tif(curr.next() == null) {\r\n\t\t\t\t\t//print statement for saying not found\r\n\t\t\t\t\tSystem.out.println(\"Could not find \" + value + \" in the links.\");\r\n\t\t\t\t\t//set exists to false\r\n\t\t\t\t\texists = false;\r\n\t\t\t\t\t//break out of the for loop\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t//if exists is not false\r\n\t\t\t\telse if(exists != false) {\r\n\t\t\t\t\t//set curr next to curr.next().next()\r\n\t\t\t\t\tcurr.setNext(curr.next());\r\n\t\t\t\t\t//decrease by 1\r\n\t\t\t\t\tcnt--;\r\n\t\t\t\t\t//break out of for loop\r\n\t\t\t\t\t//break;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean remove (Object obj) {\r\n\t\tboolean result = _list.remove (obj);\r\n\t\tHeapSet.heapify (this);\r\n\t\treturn result;\r\n\t}", "private void testRemove() {\n System.out.println(\"------ TESTING: remove(int index) -----\");\n try{\n for(int i = 0; i < iSize; i++){\n if(iTestList.remove(0) != i)\n throw new RuntimeException(\"FAILED -> remove not working correctly\");\n }\n\n iTestList.remove(-9);\n iTestList.remove(iSize+10);\n }catch(RuntimeException e){\n System.out.println(e.getMessage());\n }\n }", "boolean remove(T o);", "public abstract boolean remove(E e);", "public boolean remove(Card x) {\n if (head == null)\n return false;\n \n // Remove the first element, if necessary.\n if (head.data.ValueIn == x.ValueIn && !(head.data.suit.compareTo(\"x.suit\") == 0)) {\n head = head.next;\n return true;\n }\n\n // Set up helper reference to refer to the Node right before the Node\n // to be deleted would be stored.\n Node helper = head; \n while ((helper.next != null) && (helper.next.data.ValueIn < x.ValueIn)) \n helper = helper.next;\n\n // If x was too big to be on the list, simply return false.\n if (helper.next == null)\n return false;\n\n // Only if the appropriate Node stores x should it be deleted.\n if (helper.next.data.ValueIn == x.ValueIn) {\n helper.next = helper.next.next;\n return true;\n } \n\n return false; // Case where x is not found.\n }", "public boolean remove(int val) {\n //若当前val不在map中,无法remove,返回false\n if (!valueToIndex.containsKey(val)) return false;\n int index = valueToIndex.get(val);\n int lastValue = values.get(values.size() - 1);\n //将arraylist的最后一位元素移动到要删除val的index上\n values.set(index, lastValue);\n //更新最后一位元素的映射\n valueToIndex.put(lastValue, index);\n //将val移除出当前map(删除该元素)\n valueToIndex.remove(val);\n //同时将arraylist最后一位移除\n values.remove(values.size() - 1);\n return true;\n }", "public boolean remove(int val) {\n if(valToIndex.containsKey(val)){\n // remove value from valToIndex and get index\n int index = valToIndex.remove(val);\n\n\n // now update elementsList\n // remove last element, if this is val we can stop, if not we put it in index\n int lastVal = elementsList.remove(elementsList.size() - 1);\n\n if(lastVal != val){\n // add to elementsList\n elementsList.remove(index);\n elementsList.add(index, lastVal);\n // update index\n valToIndex.put(lastVal, index);\n }\n\n return true;\n }\n return false;\n }", "public boolean removeFromProductList(CatalogPres cat, ObservableList<ProductPres> toBeRemoved) {\n\t\tif(toBeRemoved != null && !toBeRemoved.isEmpty()) {\n\t\t\tboolean result = productsMap.get(cat).remove(toBeRemoved.get(0));\n\t\t\treturn result;\n\t\t}\n\t\treturn false;\n\t}", "@Test\r\n\tpublic void testRemoveObject() {\r\n\t\tAssert.assertFalse(list.remove(null));\r\n\t\tAssert.assertTrue(list.remove(new Munitions(2, 3, \"iron\")));\r\n\t\tAssert.assertEquals(14, list.size());\r\n\t}", "public boolean remove(Object element) {\n\n\t\tif (element == null) {\n\t\t\tthrow new IllegalArgumentException(\"ArrayList cannot contain null.\");\n\t\t}\n\t\tint index = -1;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tObject object = this.storedObjects[i];\n\t\t\tif (object.equals(element)) {\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (index == -1) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i = index + 1; i < this.size; i++) {\n\t\t\tthis.storedObjects[i - 1] = this.storedObjects[i];\n\t\t}\n\t\tthis.size--;\n\t\tthis.storedObjects[this.size] = null;\n\t\treturn true;\n\t}", "public boolean remove(int val) {\n //这里讲要删除的元素交换到data的最后一个位置,实际上就是将最后一个元素值赋值到val位置,这样保证时间复杂度是O(1)\n if(valueIndex.containsKey(val)){\n //获取val位置\n int index=valueIndex.get(val);\n //val不是最后一个元素\n if(index!=data.size()-1){\n //获取最后一个元素\n int lastEle=data.get(data.size()-1);\n //将最后一个元素值赋值到val位置\n data.set(index,lastEle);\n valueIndex.put(lastEle,index);\n }\n //删除data中最后一个元素\n data.remove(data.size()-1);\n valueIndex.remove(val);\n return true;\n }\n return false;\n }", "@Override public boolean remove(Object vme) {\n // throw new UnsupportedOperationException(\"remove: \" + o + \"; must remove by index\");\n return remove(indexOf(vme)) != null;\n }", "public final boolean remove(final Integer element) {\n final int index = linearSearch(element);\n if (index == -1) {\n return false;\n } else {\n for (int i = index; i < (size - 1); i++) {\n arrayList[i] = arrayList[i + 1];\n arrayList[i + 1] = 0;\n }\n size--;\n return true;\n\n }\n }", "boolean remove(Object o);", "public boolean remove(int val) {\n if(!map.containsKey(val))\n return false;\n HashSet<Integer> st=map.get(val);\n if(st.size()==1)\n map.remove(val);\n Integer ind=0;\n for(Integer a:st){\n ind=a;\n break;\n }\n st.remove(ind);\n li.set(ind,li.get(li.size()-1));\n st=map.get(li.get(li.size()-1));\n if(st!=null){\n st.remove(new Integer(li.size()-1));\n st.add(ind);\n }\n li.remove(li.size()-1);\n \n return true;\n \n }", "public static void testRemove(LinkedList list) {\n\t\tlist.remove(\"3\");\n\t\tlist.printForward();\n\t}", "@Test\n void testRemoveReturnsNull() {\n MyList l = new MyList();\n l.put(\"key\", \"value\");\n\n assertEquals(null, l.remove(\"another key\"));\n }", "public boolean removeSelectedValue( final T selectedValue ) {\r\n List< T > selectedValues = getSelectedValuesChoicesObject();\r\n return selectedValues.remove( selectedValue );\r\n }", "public boolean remove(int val) {\n boolean removed = valueToIdx.containsKey(val);\n\n if ( removed ) {\n int lastIdx = valueList.size() - 1;\n int replaceIdx = valueToIdx.remove(val);\n int replaceValue = valueList.remove(lastIdx);\n\n if ( replaceIdx != lastIdx ) {\n valueList.set(replaceIdx, replaceValue);\n valueToIdx.put(replaceValue, replaceIdx);\n }\n }\n\n return removed;\n }", "@Override\n public boolean remove(Object o) {\n for (int i = 0; i < size; i++) {\n if (contains(o)) {\n remove(i);\n return true;\n }\n }\n return false;\n }", "private void arrayRemove(MyArrayList myArrayList, Results results, int value) {\r\n int old_size = myArrayList.size();\r\n myArrayList.removeValue(value);\r\n int new_size = myArrayList.size();\r\n if(old_size == new_size + 1) {\r\n results.storeNewResult(\"ArrayRemove test case: FAILED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayRemove test case: PASSED\");\r\n }\r\n }", "public boolean removeFlight(Flight removeFlight){\r\n return flights.remove(removeFlight);\r\n }", "@Override\n public boolean remove(T item) {\n //find the node with the value\n Node n = getRefTo(item);\n //make sure it actually is in the set\n if(n == null)\n return false;\n //reassign the value from the first node to the removed node\n n.value = first.value;\n //take out the first node\n remove();\n return true;\n }", "public boolean remove(E e) {\n if (!contains(e)) {\n return false;\n }\n int i = hash(e);\n if (table[i].data.equals(e)) {\n table[i] = table[i].next;\n } else {\n HashNode<E> current = table[i];\n while (!current.next.data.equals(e)) {\n current = current.next;\n }\n current.next = current.next.next;\n }\n size--;\n return true;\n }", "public boolean remove(int val) {\n if (!idx.containsKey(val)){\n return false; //没有该值,删除失败\n }\n int lastNum = nums.get(nums.size() - 1);\n //交换要删除的元素和列表最末的元素\n if (val==lastNum){ //如果末尾元素就是的要删除的元素\n idx.get(val).remove(nums.size()-1);\n return true;\n }\n //如果末尾元素不是要删除的元素\n int lastIndex=idx.get(val).iterator().next(); //要删除的元素第一次出现的位置\n nums.set(lastIndex, lastNum); //最后一个元素到要删除的元素第一次出现的位置\n idx.get(val).remove(lastIndex);\n idx.get(lastNum).remove(nums.size()-1);\n if (lastIndex < nums.size() - 1) idx.get(lastNum).add(lastIndex);\n if (idx.get(val).size() == 0) { //删除之后,val出现的次数变为0\n idx.remove(val);\n }\n nums.remove(nums.size()-1); //删除末尾元素的时间复杂度为O(1)\n return true;\n }", "public boolean remove(E item) {\n \tif(item == null) {\n \t\tthrow new IllegalArgumentException(\"Invalid parameter!\");\n \t}\n \t\n \tIterator<E> iterateSet = this.iterator();\n \tboolean foundMatch = false;\n \t\n \twhile(iterateSet.hasNext()) {\n \t\tE element = iterateSet.next();\n \t\t// removes all occurrences of a target element\n \t\tif(element.equals(item)) {\n \t\t\titerateSet.remove();\n \t\t\tfoundMatch = true;\n \t\t}\t\n \t}\n \t\n \treturn foundMatch;\n }" ]
[ "0.72021556", "0.718859", "0.71836466", "0.71535385", "0.71332747", "0.70013744", "0.6980181", "0.6969856", "0.6959792", "0.6921208", "0.6920875", "0.68566793", "0.6836001", "0.6808258", "0.67528325", "0.67103386", "0.6665895", "0.6625828", "0.6599917", "0.6592485", "0.6590653", "0.65888876", "0.6577625", "0.65756595", "0.65754753", "0.6573029", "0.65382016", "0.6534028", "0.6531244", "0.6529238", "0.6511759", "0.6493328", "0.64915204", "0.64913243", "0.6487839", "0.64833987", "0.6482313", "0.6470526", "0.64702106", "0.6469424", "0.64565384", "0.64559007", "0.64526874", "0.6448873", "0.6446958", "0.6425285", "0.6421722", "0.6417333", "0.64064896", "0.63873506", "0.63628495", "0.63469046", "0.6341404", "0.63312125", "0.6327537", "0.63061196", "0.6305888", "0.6300666", "0.628886", "0.62879515", "0.6286282", "0.6270399", "0.62702215", "0.62642384", "0.6261237", "0.62332183", "0.6230654", "0.6225829", "0.62234044", "0.62069535", "0.62056947", "0.62025553", "0.61944497", "0.61943364", "0.6188402", "0.61850464", "0.6182521", "0.61818624", "0.6179526", "0.616568", "0.6163823", "0.61573285", "0.6143218", "0.6138334", "0.61374617", "0.6135127", "0.611393", "0.6109861", "0.6090329", "0.6069051", "0.60650694", "0.60646725", "0.6063574", "0.6060725", "0.6057058", "0.60569054", "0.6054458", "0.6051574", "0.60467106", "0.604233" ]
0.6140071
83
Tests remove to see if a value not in the list is attempted to be removed decrements the count.
@Test void testRemove2() { SimpleList test = new SimpleList(); test.add(7); test.add(10); test.add(9); test.remove(1); String output = test.toString(); assertNotEquals("9 10", output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int remove() {\n isEmptyList();\n int result = first.value;\n first = first.next;\n first.previous = null;\n size--;\n return result;\n }", "public boolean removeCount()\n {\n count--;\n if (count <= 0)\n {\n return false;\n }\n else\n {\n \treturn true;\n }\n }", "@Test\n public void remove() {\n testList.add(42);\n testList.remove(42);\n assertEquals(0, testList.count());\n }", "@Override\n public boolean removeByValue(int value) {\n Entry tmp = first;\n for (int i = 0; i < size; i++) {\n if (tmp.value == value) {\n tmp.previous.next = tmp.next;\n tmp.next.previous = tmp.previous;\n size--;\n return true;\n }\n tmp = tmp.next;\n }\n return false;\n }", "private void testRemove() {\n System.out.println(\"------ TESTING: remove(int index) -----\");\n try{\n for(int i = 0; i < iSize; i++){\n if(iTestList.remove(0) != i)\n throw new RuntimeException(\"FAILED -> remove not working correctly\");\n }\n\n iTestList.remove(-9);\n iTestList.remove(iSize+10);\n }catch(RuntimeException e){\n System.out.println(e.getMessage());\n }\n }", "public void remove()\n {\n if( current > 0 )\n {\n set(-- current);\n }\n }", "public void remove() {\n if (count == 0) {\n return;\n }\n \n Random rand = new Random();\n int index = rand.nextInt(count);\n for (int i = index; i < count - 1; i++) {\n list[i] = list[i+1];\n }\n count--; \n }", "@Test\r\n\tpublic void testRemoveInt() {\r\n\t\tll.add(t1);\r\n\t\tll.add(t2);\r\n\t\tll.add(t3);\r\n\t\tll.add(t4);\r\n\t\tll.add(t5);\r\n\t\tassertEquals(5, ll.size());\r\n\t\t// order of list: [0: t1, 1: t2, 2: t3, 3: t4, 4: t5]\r\n\t\t\r\n\t\ttry {\r\n\t\t\tll.remove(-1);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(5, ll.size());\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tll.remove(5);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(5, ll.size());\r\n\t\t}\r\n\t\t\r\n\t\tll.remove(0);\r\n\t\tassertEquals(4, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4, 3: t5]\r\n\t\t\r\n\t\tll.remove(ll.size() - 1);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t4, ll.get(2));\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4]\r\n\t\t\r\n\t\tll.remove(1);\r\n\t\tassertEquals(2, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\t// order of list: [0: t2, 1: t4]\r\n\t\t\r\n\t\tll.remove(0);\r\n\t\tassertEquals(1, ll.size());\r\n\t\tassertEquals(t4, ll.get(0));\r\n\t\t// order of list: [0: t4]\r\n\t\t\r\n\t\tll.remove(0);\r\n\t\tassertEquals(0, ll.size());\r\n\t}", "public void removeCount() {\n \t\tdupCount--;\n \t}", "public void testRemoveIndex() {\r\n list.add(\"A\");\r\n list.add(\"B\");\r\n assertTrue(list.remove(0));\r\n assertEquals(1, list.size());\r\n list.add(\"B\");\r\n assertTrue(list.remove(0));\r\n assertEquals(1, list.size());\r\n }", "@Test\n public void testRemove_Not_Contains_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n Integer item = 2;\n boolean expResult = false;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "public void remove(E value) {\n\t\tboolean exists = false;\r\n\t\t//compare keys\r\n\t\tif (curr.next().element().compareTo(value) == 0) {\r\n\t\t\t//if cnt is greater than 1\r\n\t\t\tif(cnt > 1) {\r\n\t\t\t\t//create a temp link\r\n\t\t\t\tLink<E> temp = curr.next();\r\n\t\t\t\t//set curr next to temp\r\n\t\t\t\tcurr.setNext(temp);\r\n\t\t\t\t//decrease cnt by 1\r\n\t\t\t\tcnt--;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t//set curr, tail and head to null\r\n\t\t\t\tcurr = tail = head = new Link<E> (null);\r\n\t\t\t\t//cnt to 0\r\n\t\t\t\tcnt = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//iterate through the list\r\n\t\t\tfor(int i=0; i <= cnt; i++) {\r\n\t\t\t\t//set curr to curr.next()\r\n\t\t\t\tcurr = curr.next();\r\n\t\t\t\t//if curr.next() is null\r\n\t\t\t\tif(curr.next() == null) {\r\n\t\t\t\t\t//print statement for saying not found\r\n\t\t\t\t\tSystem.out.println(\"Could not find \" + value + \" in the links.\");\r\n\t\t\t\t\t//set exists to false\r\n\t\t\t\t\texists = false;\r\n\t\t\t\t\t//break out of the for loop\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t//if exists is not false\r\n\t\t\t\telse if(exists != false) {\r\n\t\t\t\t\t//set curr next to curr.next().next()\r\n\t\t\t\t\tcurr.setNext(curr.next());\r\n\t\t\t\t\t//decrease by 1\r\n\t\t\t\t\tcnt--;\r\n\t\t\t\t\t//break out of for loop\r\n\t\t\t\t\t//break;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void remove()\r\n {\r\n if(bookCount>0)\r\n {\r\n bookCount-=1;\r\n }\r\n }", "private void arrayRemove(MyArrayList myArrayList, Results results, int value) {\r\n int old_size = myArrayList.size();\r\n myArrayList.removeValue(value);\r\n int new_size = myArrayList.size();\r\n if(old_size == new_size + 1) {\r\n results.storeNewResult(\"ArrayRemove test case: FAILED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayRemove test case: PASSED\");\r\n }\r\n }", "private int getAmountOfSuccessorsAndRemoveThem(PhoneForward pf, List<PhoneForward> list, int currentCount) {\n for (PhoneForward value : list) {\n if (value.getOwnNumber().equals(pf.getTargetNumber())) {\n list.remove(value);\n currentCount++;\n return getAmountOfSuccessorsAndRemoveThem(value, list, currentCount);\n }\n }\n return currentCount;\n }", "public Integer remove() {\n while (true) {\n\n if (buffer.isEmpty()) {\n System.out.println(\"List is empty! Waiting..\");\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n System.out.println(e.getMessage());\n }\n } else {\n full.waiting();\n mutex.waiting();\n int back = buffer.removeFirst();\n mutex.signal();\n empty.signal();\n return back;\n\n }\n }\n\n\n }", "@Test\r\n\tvoid testRemove4() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\ttest.remove(1);\r\n\t\tassertNotEquals(8, test.list.length);\r\n\t}", "@Test\r\n\tpublic void testRemoveByIndex() {\r\n\t\tAssert.assertNull(list.remove(100));\r\n\t\tAssert.assertTrue(list.get(5).equals(list.remove(5)));\r\n\t\tAssert.assertEquals(14, list.size());\r\n\t}", "public boolean remove(int val) {\r\n\r\n\t\tint pos = get_pos(val);\r\n\t\tif (bucket[pos] != null) {\r\n\t\t\tNode n = bucket[pos].list;\r\n\t\t\tNode p = n;\r\n\t\t\twhile (n != null) {\r\n\t\t\t\tif (n.val == val) {\r\n\t\t\t\t\tif (p == bucket[pos].list) {\r\n\t\t\t\t\t\tbucket[pos].list = n.next;\r\n\t\t\t\t\t\tbucket[pos].size--;\r\n\t\t\t\t\t\tif (bucket[pos].list == null)\r\n\t\t\t\t\t\t\tbucket[pos] = null;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tp.next = n.next;\r\n\t\t\t\t\t\tbucket[pos].size--;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\tp = n;\r\n\t\t\t\tn = n.next;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "@Test\n public void testRemove_Contains_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n Integer item = 1;\n boolean expResult = true;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "public void remove(int num) {\n // find the index of num\n for (int i = 0; i < count; i++) {\n if (list[i] == num) {\n // shift the elements leftward and decrement count\n for (int j = 0; j < count - 1; j++) {\n list[i+j] = list[i+j+1];\n }\n count--;\n return;\n }\n }\n }", "@Test\n public void testRemove_Contains_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n instance.remove(new Integer(1));\n\n int expResult = 5;\n int result = instance.size();\n assertEquals(expResult, result);\n }", "public int remove(E toRemove) {\n\t\tint numRemoved = 0;\n\t\tfor(int x = 0; x < numElements; x++) {\n\t\t\tif(elements[x].equals(toRemove)) {\n\t\t\t\tfor(int i = 0; i < numElements; i++) {\n\t\t\t\t\telements[x] = elements[x+1];\n\t\t\t\t}\n\t\t\t\tnumRemoved++;\n\t\t\t}\n\t\t}\n\t\tnumElements -= numRemoved;\n\t\treturn numRemoved;\n\t}", "@Override\n\tpublic int remove(int n) {\n\t\treturn 0;\n\t}", "private int getAmountOfPrecursorsAndRemoveThem(PhoneForward pf, List<PhoneForward> list, int currentCount) {\n for (PhoneForward value : list) {\n if (value.getTargetNumber().equals(pf.getOwnNumber())) {\n list.remove(value);\n currentCount++;\n return getAmountOfPrecursorsAndRemoveThem(value, list, currentCount);\n }\n }\n return currentCount;\n }", "void remove(int v){\n if(isEmpty()!=1){\n for(int i=0;i<size;i++){\n if(values[i]==v){\n int j = i;\n while((j+1)!=size){\n values[j] = values[j+1];\n j++;\n\n }\n values[j] = (-1);\n break;\n }\n }\n }\n }", "public void remove() {\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }", "public void remove() {\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }", "@Test\r\n\tvoid testRemove3() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\ttest.remove(10);\r\n\t\tassertEquals(8, test.list.length);\r\n\t}", "public boolean remove(int val) {\n if (!set.containsKey(val)) return false;\n int lastElement = list.get(list.size() - 1);\n int idx = set.get(val);\n list.set(idx, lastElement);\n set.put(lastElement, idx);\n list.remove(list.size() - 1);\n set.remove(val);\n return true;\n }", "public boolean remove(int val) {\r\n boolean retval = false;\r\n int i = getIndex(val);\r\n Item item = items.get(i);\r\n if (item != null) {\r\n if (item.value == val) {\r\n removeItem(i, item);\r\n retval = true;\r\n } else {\r\n Node previous = null;\r\n Node next = item.next;\r\n while (next != null) {\r\n if (next.value == val) {\r\n break;\r\n }\r\n previous = next;\r\n next = next.next;\r\n }\r\n if (next != null) {\r\n assert (next.value == val);\r\n --item.count;\r\n if (previous == null) {\r\n item.next = next.next;\r\n } else {\r\n previous.next = next.next;\r\n }\r\n retval = true;\r\n }\r\n }\r\n }\r\n /*\r\n * if (retval) { if ((itemSize / nextIndexInCache) < 0.5) {\r\n * rehash(Math.max(itemSize, bufSize), items); } }\r\n */\r\n return retval;\r\n }", "void removeAt(final int removeIndex) {\n final Object[] items = this.items;\n if (removeIndex == takeIndex) {\n items[takeIndex] = null;\n if (++takeIndex == items.length) takeIndex = 0;\n count--;\n } else {\n final int putIndex = this.putIndex;\n for (int i = removeIndex;;) {\n int next = i + 1;\n if (next == items.length) next = 0;\n if (next != putIndex) {\n items[i] = items[next];\n i = next;\n } else {\n items[i] = null;\n this.putIndex = i;\n break;\n }\n }\n count--;\n }\n notFull.signal();\n }", "@Test\n void testRemoveDeletesElementAfterMultiplePuts() {\n MyList l = new MyList();\n for (int i = 0; i < 10; i++)\n l.put(\"key\" + i, \"value\" + i);\n l.remove(\"key5\");\n\n assertEquals(false, l.contains(\"key5\"));\n }", "public void remove() {\n\t\t if (lastReturned == null)\n\t\t throw new IllegalStateException(\n\t\t \"Iterator call to next() \" +\n\t\t \"required before calling remove()\");\n\t\t\tif (modCount != expectedModCount)\n\t\t\t\t throw new ConcurrentModificationException();\n\n\t\t\t// remove lastReturned by calling remove() in Hash.\n\t\t\t// this call will increment modCount\n\t\t\tHashAVL.this.remove(lastReturned);\n\t\t\texpectedModCount = modCount;\n\t\t\tlastReturned = null;\n\t\t}", "public boolean remove(int val) {\n return list.remove(val);\n }", "public boolean remove(int val) {\n if (!checkDups.containsKey(val)) {\n return false;\n }\n checkDups.put(this.list.get(this.size - 1), this.checkDups.get(val)); // important! update map\n swap(this.list, this.checkDups.get(val), this.size - 1);\n checkDups.remove(val);\n this.size--;\n return true;\n }", "@Test\r\n\tvoid testRemove5() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\tassertNotEquals(0, test.list.length);\r\n\t}", "void decrementAddedCount() {\n addedCount.decrementAndGet();\n }", "@Test\r\n\tpublic void testRemoveE() {\r\n\t\tll.add(t1);\r\n\t\tll.add(t2);\r\n\t\tll.add(t3);\r\n\t\tll.add(t4);\r\n\t\tll.add(t5);\r\n\t\tassertEquals(5, ll.size());\r\n\t\t// order of list: [0: t1, 1: t2, 2: t3, 3: t4, 4: t5]\r\n\t\t\r\n\t\tassertFalse(ll.remove(null));\r\n\t\tassertFalse(ll.remove(\"not in list\"));\r\n\t\t\r\n\t\tassertTrue(ll.remove(t1));\r\n\t\tassertEquals(4, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4, 3: t5]\r\n\t\t\r\n\t\tassertTrue(ll.remove(t3));\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\tassertEquals(t5, ll.get(2));\r\n\t\t// order of list: [0: t2, 1: t4, 2: t5]\r\n\t\t\r\n\t\tassertTrue(ll.remove(t5));\r\n\t\tassertEquals(2, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\t// order of list: [0: t2, 1: t4]\r\n\t\t\r\n\t\tassertTrue(ll.remove(t2));\r\n\t\tassertFalse(ll.remove(\"not in list\"));\r\n\t\tassertTrue(ll.remove(t4));\r\n\t\tassertFalse(ll.remove(t1));\r\n\t\t\r\n\t}", "@Test\n public void testRemove_Contains_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(1);\n instance.add(2);\n instance.add(1);\n\n instance.remove(new Integer(1));\n\n int expResult = 3;\n int result = instance.size();\n assertEquals(expResult, result);\n }", "public boolean remove(int val) {\n if(!map.containsKey(val)) return false;\n int index = map.get(val);\n int size = list.size();\n int tmp = list.get(size-1);\n list.set(size-1, list.get(index));\n list.set(index, tmp);\n list.remove(size-1);\n map.put(tmp, index);\n map.remove(val);\n return true;\n }", "public void remove()\r\n { Exceptions.unmodifiable(\"list\"); }", "public Message remove() \n { \n Message r = elements[head]; \n head = (head + 1) % elements.length; \n count--; \n return r; \n }", "@Test(expected = IllegalStateException.class)\n public void testRemove_After_Remove() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.remove();\n\n instance.remove();\n\n }", "@Override\n public boolean remove(Object item) {\n if (item == null)\n return false;\n Counter count = map.get(item);\n if (count == null)\n return false;\n count.decrement();\n if (count.isZero())\n map.remove(item);\n return true;\n }", "public boolean remove(int val) {\n boolean contains = map.containsKey(val);\n if(!contains) return false;\n int pos = map.get(val);\n if (pos < nums.size() - 1) { // if not the last one, then swap the last one with this val\n int last = nums.get(nums.size() - 1); // arraylist get() O(1), basically a value in an array\n nums.set(pos, last); // set the element at \"pos\" position to be last element in the list , set like assign value in an array element\n map.put(last, pos); // put the last element in the list with the pos position\n }\n map.remove(val); // hashmap remove() It is O(1) only when removing the last element by index.\n // O(1); map remove(obj)\n //O(1+k/n) where k is the no. of collision elements\n // added to the same LinkedList (k elements had same hashCode)\n nums.remove(nums.size() - 1);\n return true;\n }", "@Test\n public void testRemove_Contains_First_Ocurrence_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(3);\n\n instance.remove(new Integer(3));\n\n int expResult = 2;\n int result = instance.get(0);\n assertEquals(expResult, result);\n }", "@Test\n public void testRemove_int_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n Integer expResult = 6;\n Integer result = instance.size();\n\n assertEquals(expResult, result);\n\n }", "@Override\n public int remove(int index) {\n checkIndex(index);\n Entry tmp = getEntry(index);\n int result = tmp.value;\n tmp.previous.next = tmp.next;\n tmp.next.previous = tmp.previous;\n size--;\n return result;\n }", "@Test(expected = IllegalStateException.class)\n public void removeFive() {\n this.reset();\n this.bps.remove(6, 4);\n }", "@Test\r\n\tpublic void testRemoveAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tsample.add(new Munitions(new Munitions(3, 4, \"iron\")));\r\n\t\tAssert.assertTrue(list.removeAll(sample));\r\n\t\tAssert.assertFalse(list.removeAll(sample));\r\n\t\tAssert.assertEquals(13, list.size());\r\n\t}", "@Test\n public void testRemove_Not_Contains() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n\n Integer item = 2;\n boolean expResult = false;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "public boolean remove(int val) {\n if (!list.containsKey(val)) {\n return false;\n }\n\n int c = list.get(val);\n c--;\n if (c == 0) {\n list.remove(val);\n }\n\n linklist.removeFirstOccurrence(val);\n return true;\n }", "@Test\n public void testRemoveAll_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "public int remove() {\n return priorityQueue[--counter];\n }", "@Test\n public void testRemove_int_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n Integer expResult = 7;\n Integer result = instance.remove(2);\n\n assertEquals(expResult, result);\n\n }", "public boolean remove(int val) {\n if (values.containsKey(val)) {\n List<Integer> indices = values.get(val);\n int index = indices.get(indices.size() - 1);\n list.set(index, list.size() - 1);\n list.remove(list.size() - 1);\n values.get(val).remove(indices.size() - 1);\n if (values.get(val).size() == 0) {\n values.remove(val);\n }\n return true;\n } else {\n return false;\n }\n }", "@Test\n void testRemoveDeletesElement() {\n MyList l = new MyList();\n l.put(\"key\", \"value\");\n l.remove(\"key\");\n\n assertEquals(false, l.contains(\"key\"));\n }", "public void testRemoveObj() {\r\n list.add(\"A\");\r\n list.add(\"B\");\r\n assertTrue(list.remove(\"A\"));\r\n assertEquals( \"B\", list.get(0));\r\n assertEquals( 1, list.size());\r\n list.add(\"C\");\r\n assertTrue(list.remove(\"C\"));\r\n assertEquals(\"B\", list.get(0));\r\n }", "@Test(expected = IllegalStateException.class)\n public void removeOne() {\n this.reset();\n this.bps.remove(6, 2, 6, 6);\n }", "int remove(){\n int x = head.val;\n head = head.next;\n if(--n == 0) tail = null;\n return x;\n }", "public void testRemove() {\n TaskSeriesCollection c = new TaskSeriesCollection();\n TaskSeries s1 = new TaskSeries(\"S1\");\n c.add(s1);\n c.remove(0);\n c.add(s1);\n boolean pass = false;\n try {\n c.remove(-1);\n } catch (IllegalArgumentException e) {\n pass = true;\n }\n pass = false;\n try {\n c.remove(1);\n } catch (IllegalArgumentException e) {\n pass = true;\n }\n }", "@Test\n public void testRemove_int_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "public boolean remove(int val) {\n if (!map.containsKey(val) || map.get(val).size() == 0) {\n return false;\n }\n Integer next = map.get(val).iterator().next();\n map.get(val).remove(next);\n int last = list.get(list.size()-1);\n list.set(next, last);\n map.get(last).add(next);\n map.get(last).remove(list.size()-1);\n\n list.remove(list.size()-1);\n size--;\n return true;\n }", "@Test\n public void testRemoveAll_Not_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "@Override\n\tpublic boolean remove(Object value) {\n\t\ttry {\n\t\t\tremove(indexOf(value));\n\t\t}catch(IndexOutOfBoundsException e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean remove(int val) {\n if (!lookup.containsKey(val)) return false;\n\n int index = lookup.get(val);\n lookup.remove(val);\n size--;\n\n nums[index] = nums[size];\n nums[size] = 0;\n lookup.replace(nums[index], index);\n\n return true;\n }", "@Test\n public void testRemoveAll_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "private int remove(int index){\n\t\tremovedItem=heap[index];\n\t\theap[index]=INFINITE;\n\t\tshiftUp(index);\n\t\treturn extractMax();\n\t}", "@Test\n public void testRemoveAt() {\n testAdd();\n list1.removeAt(3);\n assertEquals(8, list1.size());\n assertEquals(15.25, list1.get(4), 0);\n assertEquals(14.25, list1.get(3), 0);\n assertEquals(17.25, list1.get(5), 0);\n }", "@Override\n public void remove(int no) throws Exception {\n \n }", "public void testRemoveFromEmpty() {\r\n list.add(\"dance\");\r\n list.add(0, \"safety\");\r\n list.clear();\r\n assertFalse(list.remove(\"safety\"));\r\n Exception exception;\r\n exception = null;\r\n try {\r\n list.remove(0);\r\n } \r\n catch (IndexOutOfBoundsException e) {\r\n exception = e;\r\n }\r\n assertTrue( exception instanceof IndexOutOfBoundsException);\r\n\r\n DLList<String> emptyList = new DLList<String>();\r\n exception = null;\r\n try {\r\n emptyList.remove(0);\r\n } \r\n catch (IndexOutOfBoundsException e) {\r\n exception = e;\r\n }\r\n assertTrue( exception instanceof IndexOutOfBoundsException);\r\n }", "public boolean remove(int val) {\n if(map.containsKey(val)){\n \tif(map.get(val).size() == 1){\n \t\tint last = list.get(list.size()-1);\n \t\tint mvindex = map.get(val).iterator().next();\n \t\tmap.get(last).remove(list.size()-1);\n \t\tmap.get(last).add(mvindex);\n \t\tlist.set(mvindex,list.get(list.size()-1));\n \t\tlist.remove(list.size()-1);\n \t\tmap.remove(val);\n \t}else {\n \t\tint last = list.get(list.size()-1);\n \t\tint mvindex = map.get(val).iterator().next();\n \t\tmap.get(last).remove(list.size()-1);\n \t\tmap.get(last).add(mvindex);\n \t\tlist.set(mvindex, list.get(list.size()-1));\n \t\tlist.remove(list.size()-1);\n \t\tif(last != val)\n \t\t\tmap.get(val).remove(mvindex);\n\t\t\t} \t\n \treturn true;\n }else {\n\t\t\treturn false;\n\t\t}\n }", "@Test\n public void testRemove_int_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n Integer expResult = 6;\n Integer result = instance.size();\n\n assertEquals(expResult, result);\n\n }", "public void remove(int n) { // not being used\n\t\tcollection.remove(n); \n\t}", "public boolean remove(int val) {\n if (!map.containsKey(val)) {\n return false;\n }\n int idx = map.remove(val);\n int last = lst.remove(lst.size() - 1);\n if (val != last) {\n lst.set(idx, last);\n map.put(last, idx);\n }\n return true;\n }", "private void removeLargeValues(ArrayList<Integer> myList)\n {\n // sort list to make removing values easy\n Collections.sort(myList);\n\n while (myList.size() > 1)\n {\n if (myList.get(myList.size() - 1) > 21)\n myList.remove(myList.size() - 1);\n else\n break;\n }\n }", "public boolean remove(E e){\n int target = e.hashCode() % this.buckets;\n return this.data[target].remove(e) == null;\n }", "@Test\n public void testRemove() {\n testAdd();\n list1.remove(12.25);\n assertEquals(8, list1.size());\n assertEquals(13.25, list1.get(1), 0);\n assertEquals(16.25, list1.get(2), 0);\n assertEquals(14.25, list1.get(3), 0);\n }", "public void remove(E key) {\t//O(n)\r\n\t\t//checks if there is an element with the same value as the key\r\n\t\tint index=compareTo(key);\t\r\n\t\tif (index!=-1) {\t//element exists in array\r\n\t\t\tfor (int k=index+1; k<=size;k++) {\t//shifting element\r\n\t\t\t\tlist[k-1]=list[k];\r\n\t\t\t}\r\n\t\t\tsize--;\t//decreasing size\r\n\t\t\t//checks if the size of array is not 0 and less than 25% of the capacity of the array\r\n\t\t\tif (size!=0 && capacity/size >=4)\r\n\t\t\t\tresize(this.capacity/2);\t//decreasing size of array\r\n\t\t\tSystem.out.println(key+\" removed!\");\r\n\t\t} else {\t//element doesn't exist in array\r\n\t\t\tSystem.out.println(key +\" is not in the list\");\r\n\t\t}\r\n\t}", "@Test(expected = IllegalStateException.class)\n public void testRemove_After_Set() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.set(2);\n\n instance.remove();\n\n }", "public boolean remove(int val) {\n if(map.containsKey(val)){\n int idx = map.get(val);\n if(idx == (validLength - 1)){\n validLength--;\n }\n else{\n int lastValue = set.get(--validLength);\n set.set(idx, lastValue);\n map.put(lastValue, idx);\n }\n map.remove(val);\n return true;\n }\n else{\n return false;\n }\n }", "@Override\n public boolean remove(final Object element) {\n for (int i = 0; i < size; i++) {\n if (this.checkIfEqual(element, i)) {\n this.shiftRemove(i);\n return true;\n }\n }\n\n return false;\n }", "private void removeFromEnd(){\n ListNode tailItem = tail.prev;\n removeFromList(tailItem);\n \n //remove the entry from hashtable\n hashtable.remove(tailItem.key);\n --totalCacheItems;\n }", "public boolean remove(int val) {\r\n return set.remove(val);\r\n }", "public boolean remove(int val) {\n boolean contain = _map.containsKey(val);\n if ( ! contain ) return false;\n int loc = _map.get(val);\n if (loc < _list.size() - 1 ) { // not the last one than swap the last one with this val\n int lastone = _list.get(_list.size() - 1 );\n _list.set( loc , lastone );\n _map.put(lastone, loc);\n }\n _map.remove(val);\n _list.remove(_list.size() - 1);\n return true;\n }", "protected abstract void checkRemoved();", "public boolean remove(int val) {\n if (m.containsKey(val)) {\n if (l.size() > 1) {\n int idx = m.get(val);\n if (idx == l.size()-1) {\n m.remove(val);\n l.remove(idx);\n } else {\n m.remove(val);\n l.set(idx, l.get(l.size() - 1));\n l.remove(l.size() - 1);\n m.put(l.get(idx), idx);\n }\n } else {\n l.remove(0);\n m.remove(val);\n }\n return true;\n } else {\n return false;\n }\n }", "@Test\n public void testRemoveAll_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "public boolean remove(int val) {\n if (!idx.containsKey(val)){\n return false; //没有该值,删除失败\n }\n int lastNum = nums.get(nums.size() - 1);\n //交换要删除的元素和列表最末的元素\n if (val==lastNum){ //如果末尾元素就是的要删除的元素\n idx.get(val).remove(nums.size()-1);\n return true;\n }\n //如果末尾元素不是要删除的元素\n int lastIndex=idx.get(val).iterator().next(); //要删除的元素第一次出现的位置\n nums.set(lastIndex, lastNum); //最后一个元素到要删除的元素第一次出现的位置\n idx.get(val).remove(lastIndex);\n idx.get(lastNum).remove(nums.size()-1);\n if (lastIndex < nums.size() - 1) idx.get(lastNum).add(lastIndex);\n if (idx.get(val).size() == 0) { //删除之后,val出现的次数变为0\n idx.remove(val);\n }\n nums.remove(nums.size()-1); //删除末尾元素的时间复杂度为O(1)\n return true;\n }", "public boolean remove(int val) {\n if (!realSet.contains(val)) return false;\n if (realSet.size() > 10 && realSet.size() == allSet.length / 4) {\n Integer[] tmpSet = new Integer[size * 2];\n int not = 0;\n for (int i = 0; i < size; i ++) {\n if (allSet[i] == null) {\n not ++;\n continue;\n }\n tmpSet[i - not] = allSet[i];\n }\n size -= not;\n allSet = tmpSet;\n }\n realSet.remove(val);\n return true;\n }", "private boolean remove() {\r\n\t\t\treturn removed = true;\r\n\t\t}", "@Test\n\tpublic void testRemove() {\n\t\ttry {\n\t\t\tVRDevice v1 = new VRDevice(\"Serial\", \"Name\", 0);\n\t\t\ts1.putOnWaitingList(v1);\n\t\t} catch (BadDeviceInformationException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t\ts1.remove(null, 0);\n\n\t\tassertEquals(\"\", s1.printWaitList(null));\n\t\t\n\t\ttry {\n\t\t\tVRDevice v1 = new VRDevice(\"Serial\", \"Name\", 0);\n\t\t\ts1.putOnWaitingList(v1);\n\t\t} catch (BadDeviceInformationException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\ts1.remove(\"n\", 0);\n\t\tassertEquals(\"\", s1.printWaitList(null));\n\t}", "@Test\n public void testRemove_After_Next() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.remove();\n\n assertFalse(baseList.contains(2));\n }", "private void removeFromList(Visit visit){\n\t\tfor (int i=0; i<searchResults.size(); i++) {\n\t\t\tif(searchResults.get(i).getClientRegNo().equals(visit.getClientRegNo())\n\t\t\t\t\t&& searchResults.get(i).getPropertyRegNo().equals(visit.getPropertyRegNo())\n\t\t\t\t\t&& searchResults.get(i).getDate().equals(visit.getDate())){\n\t\t\t\tsearchResults.remove(i);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t}", "public long remove(){\n\t\t\r\n\t\t\tlong temp = queueArray[front]; //retrieves and stores the front element\r\n\t\t\tfront++;\r\n\t\t\tif(front == maxSize){ //To set front = 0 and use it again\r\n\t\t\t\tfront = 0;\r\n\t\t\t}\r\n\t\t\tnItems--;\r\n\t\t\treturn temp;\r\n\t\t}", "public boolean remove(int paramInt)\n/* */ {\n/* 231 */ int i = internalFind(paramInt);\n/* 232 */ if (i >= 0) {\n/* 233 */ this.m_flagTable[i] = false;\n/* 234 */ this.m_entryCount -= 1;\n/* 235 */ while (this.m_flagTable[(i = stepSlot(i))] != false) {\n/* 236 */ reinsert(i);\n/* */ }\n/* 238 */ return true;\n/* */ }\n/* 240 */ return false;\n/* */ }", "public boolean remove(int val) {\n if (set.contains(val)) {\n set.remove(val);\n return true;\n } else return false;\n }", "private void deleteOne(String value){\n\t\tnumCache.put(value, numCache.get(value) - 1);\n\t\tif (numCache.get(value) == 0){\n\t\t\tnumCache.remove(value);\n\t\t}\n\t}", "public int remove(int value)\n {\n amount=amount-value;\n return amount;\n }", "public final void remove(@NotNull T value) {\n\t\tObject priorValue;\n\t\tboolean replaced;\n\t\tdo {\n\t\t\tpriorValue = this.value.get();\n\t\t\tObject newValue = remove(priorValue, value);\n\t\t\treplaced = this.value.compareAndSet(priorValue, newValue);\n\t\t} while (!replaced);\n\t}" ]
[ "0.681361", "0.6675874", "0.66011643", "0.6449598", "0.6411286", "0.64090794", "0.6367945", "0.62566715", "0.6250924", "0.6235693", "0.62337565", "0.61234736", "0.6107565", "0.6086972", "0.60751665", "0.60724103", "0.60680324", "0.59845006", "0.5969997", "0.5961543", "0.59492767", "0.5939637", "0.5936619", "0.59316033", "0.59276396", "0.59242207", "0.59240663", "0.59240663", "0.5911706", "0.5909455", "0.5898703", "0.5875261", "0.58470273", "0.5836632", "0.583214", "0.5824963", "0.58157", "0.5814521", "0.58129776", "0.5796863", "0.57915014", "0.5781476", "0.5780168", "0.57784706", "0.57748914", "0.5774684", "0.576078", "0.57538337", "0.57536113", "0.5751171", "0.57361543", "0.57214564", "0.5717257", "0.5716792", "0.5702627", "0.5701408", "0.5692037", "0.56808937", "0.5678396", "0.567507", "0.56742144", "0.56737554", "0.5656571", "0.56503516", "0.56466794", "0.56438446", "0.56372", "0.56296164", "0.56169015", "0.56149465", "0.56137323", "0.5596433", "0.5593943", "0.5591499", "0.55841434", "0.5582494", "0.55759645", "0.5569181", "0.5566711", "0.5566611", "0.55618185", "0.55594385", "0.55580556", "0.5556996", "0.55561507", "0.5551547", "0.55510503", "0.55469596", "0.55425364", "0.5538155", "0.5537413", "0.55356", "0.553119", "0.5522432", "0.5508353", "0.55042744", "0.5502726", "0.5502478", "0.5499233", "0.54984844", "0.5493971" ]
0.0
-1
Tests remove to see if the length of the list is decreased by 25% after an element is removed (when the conditions are met)
@Test void testRemove3() { SimpleList test = new SimpleList(); test.add(7); test.add(10); test.add(9); test.remove(10); assertEquals(8, test.list.length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeLargeValues(ArrayList<Integer> myList)\n {\n // sort list to make removing values easy\n Collections.sort(myList);\n\n while (myList.size() > 1)\n {\n if (myList.get(myList.size() - 1) > 21)\n myList.remove(myList.size() - 1);\n else\n break;\n }\n }", "@Test\n public void testRemove_Not_Contains_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n Integer item = 2;\n boolean expResult = false;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "@Test\n public void testRemove_Contains_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n instance.remove(new Integer(1));\n\n int expResult = 5;\n int result = instance.size();\n assertEquals(expResult, result);\n }", "@Test\n public void testRemove_Contains_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n Integer item = 1;\n boolean expResult = true;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "@Test\n public void testRemove() {\n testAdd();\n list1.remove(12.25);\n assertEquals(8, list1.size());\n assertEquals(13.25, list1.get(1), 0);\n assertEquals(16.25, list1.get(2), 0);\n assertEquals(14.25, list1.get(3), 0);\n }", "private void testRemove() {\n System.out.println(\"------ TESTING: remove(int index) -----\");\n try{\n for(int i = 0; i < iSize; i++){\n if(iTestList.remove(0) != i)\n throw new RuntimeException(\"FAILED -> remove not working correctly\");\n }\n\n iTestList.remove(-9);\n iTestList.remove(iSize+10);\n }catch(RuntimeException e){\n System.out.println(e.getMessage());\n }\n }", "@Test\r\n\tvoid testRemove5() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\tassertNotEquals(0, test.list.length);\r\n\t}", "public void remove(int index) {\r\n\t\t//checks if the index is valid\r\n\t\tif(index>=0 && index<=size) {\r\n\t\t\tfor (int k=index;k<size;k++) {\t//shifting element\r\n\t\t\t\tlist[k]=list[k+1];\r\n\t\t\t}\r\n\t\t\tsize--;\t\t//decreases size\r\n\t\t\t//checks if the size of array is not 0 and less than 25% of the capacity of the array\r\n\t\t\tif (size!=0 && capacity/size >=4)\r\n\t\t\t\tresize(this.capacity/2);\t//decreasing size of array\r\n\t\t} else {\t//index is not valid\r\n\t\t\tSystem.out.println(\"index \"+index+\" is out or range!\");\r\n\t\t}\r\n\t}", "@Test\n public void testRemoveAt() {\n testAdd();\n list1.removeAt(3);\n assertEquals(8, list1.size());\n assertEquals(15.25, list1.get(4), 0);\n assertEquals(14.25, list1.get(3), 0);\n assertEquals(17.25, list1.get(5), 0);\n }", "public static void main(String[] args) {\r\n\t\t\r\n\tList<Integer> myList = new ArrayList<>();\r\n\tmyList.add(0);\r\n\tmyList.add(1);\r\n\tmyList.add(5);\r\n\tmyList.add(115);\r\n\tmyList.add(100);\r\n\tmyList.add(26);\r\n\tmyList.add(5555);\r\n\tmyList.add(-12);\r\n\t\r\n\tSystem.out.println(myList);\r\n\t\r\n\tfor(int i = 0; i<myList.size(); i++) {\r\n\t\tif(myList.get(i) > 100 || myList.get(i) < 1) {\r\n\t\t\tmyList.remove(i);\r\n\t\t\ti--;\r\n\t\t}\r\n\t}\r\n\t\r\n\tSystem.out.println(myList);\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t}", "@Test\n public void testRemove_Contains_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(1);\n instance.add(2);\n instance.add(1);\n\n instance.remove(new Integer(1));\n\n int expResult = 3;\n int result = instance.size();\n assertEquals(expResult, result);\n }", "@Test\r\n\tvoid testRemove4() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\ttest.remove(1);\r\n\t\tassertNotEquals(8, test.list.length);\r\n\t}", "@Test\r\n\tpublic void testRemoveAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tsample.add(new Munitions(new Munitions(3, 4, \"iron\")));\r\n\t\tAssert.assertTrue(list.removeAll(sample));\r\n\t\tAssert.assertFalse(list.removeAll(sample));\r\n\t\tAssert.assertEquals(13, list.size());\r\n\t}", "private void arrayRemove(MyArrayList myArrayList, Results results, int value) {\r\n int old_size = myArrayList.size();\r\n myArrayList.removeValue(value);\r\n int new_size = myArrayList.size();\r\n if(old_size == new_size + 1) {\r\n results.storeNewResult(\"ArrayRemove test case: FAILED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayRemove test case: PASSED\");\r\n }\r\n }", "public static void removeEvens(ArrayList<Integer> list)\n {\n /*\n * size method returns the number of elements in the list\n */\n //int size = list.size();//valid way to ge the size\n \n for(int i = 0; i < list.size(); )\n {\n /*\n * get method return the value of the elemtne at the index\n * list get smaller, elements are \"shifted left\"\n */\n int value = list.get(i);\n if( value %2 == 0)\n {\n /*\n * remove method deletes the element at the specified index\n */\n list.remove(i);\n //i--;// if remove move index back one to compensate\n }\n else//only increase i if you don't remove\n {\n i++;\n }\n }\n }", "void dropcard()\n{\nfor (int i=0;i<hc.size()-1;i++)\n\t{\n\tif(hc.get(i)==1||hc.get(i)==2)\n\t\tcontinue;\n\telse if((((hc.get(i))-3)/4)==(((hc.get(i+1))-3)/4))\n\t\t{hc.remove(i);\n\t\thc.remove(i);\n\t\ti--;}\t\n\t}\n}", "@Test\n public void testRemoveAtIndexNoResize() {\n //No Resize\n for (int i = 0; i < 9; i++) {\n String input = String.format(\"b0%d\", i);\n list.addToBack(input);\n }\n list.removeAtIndex(4);\n int actualCapacity = ((Object[]) (list.getBackingArray())).length;\n Assert.assertEquals(\"The list resized when removing an element from a list while at capacity\",\n ArrayList.INITIAL_CAPACITY, actualCapacity);\n\n //With Resize\n list.addToBack(\"Filler1\");\n list.addToBack(\"Filler2\");\n list.addToBack(\"Filler3\");\n list.removeAtIndex(0);\n list.removeAtIndex(3);\n list.removeAtIndex(8);\n int newActualCapacity = ((Object[]) (list.getBackingArray())).length;\n Assert.assertEquals(\"The list resized when moving from above to below initial capacity.\",\n ArrayList.INITIAL_CAPACITY * 2, newActualCapacity);\n }", "@Test\r\n\tpublic void testRemoveByIndex() {\r\n\t\tAssert.assertNull(list.remove(100));\r\n\t\tAssert.assertTrue(list.get(5).equals(list.remove(5)));\r\n\t\tAssert.assertEquals(14, list.size());\r\n\t}", "public void removeMissiles(){\n nunMissiles--;\n }", "@Test\n public void testRemove_int_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n Integer expResult = 6;\n Integer result = instance.size();\n\n assertEquals(expResult, result);\n\n }", "public void remove(E key) {\t//O(n)\r\n\t\t//checks if there is an element with the same value as the key\r\n\t\tint index=compareTo(key);\t\r\n\t\tif (index!=-1) {\t//element exists in array\r\n\t\t\tfor (int k=index+1; k<=size;k++) {\t//shifting element\r\n\t\t\t\tlist[k-1]=list[k];\r\n\t\t\t}\r\n\t\t\tsize--;\t//decreasing size\r\n\t\t\t//checks if the size of array is not 0 and less than 25% of the capacity of the array\r\n\t\t\tif (size!=0 && capacity/size >=4)\r\n\t\t\t\tresize(this.capacity/2);\t//decreasing size of array\r\n\t\t\tSystem.out.println(key+\" removed!\");\r\n\t\t} else {\t//element doesn't exist in array\r\n\t\t\tSystem.out.println(key +\" is not in the list\");\r\n\t\t}\r\n\t}", "public static void arraySpeedTestRemove0() {\n ArrayList<Integer> list = new ArrayList<Integer>();\n\t\tfor(int n = 0; n < 8000000; n++) {\n list.add(n);\n }\n\n //Displaying quantity of elements\n\t\tSystem.out.println(\"*** Quantity of elements in the collection: \" + list.size());\n\n //Deleting last element in the collection\n long begin = System.currentTimeMillis();\n\t\tlist.remove(list.size()-1);\n long end = System.currentTimeMillis();\n\n //Displaying time of deletion\n\t\tSystem.out.println(\"*** Removing last element has taken: \" + (end - begin) + \"ms\");\n\n //Deleting first element from collection\n begin = System.currentTimeMillis();\n\t\tlist.remove(0);\n end = System.currentTimeMillis();\n\n //Displaying time of deletion\n\t\tSystem.out.println(\"*** Removing first element has taken: \" + (end - begin) + \"ms\");\n}", "@Test\n public void testRemoveAll_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "@Test\n public void testRemove_Contains_First_Ocurrence_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(3);\n\n instance.remove(new Integer(3));\n\n int expResult = 2;\n int result = instance.get(0);\n assertEquals(expResult, result);\n }", "@Test\n public void testRemoveAll_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "public boolean removePerkPoints(int removed) {\n if (perkpoints - removed >= 0) {\n perkpoints = perkpoints - removed;\n if (perkpoints > 1000) perkpoints = 1000;\n return true;\n }\n return false;\n }", "private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }", "private boolean ifTooEmpty() {\n if (items.length <= 8) {\n return false;\n }\n float efficiency = (float) size / (float) items.length;\n return efficiency < 0.25;\n }", "public int remove(E toRemove) {\n\t\tint numRemoved = 0;\n\t\tfor(int x = 0; x < numElements; x++) {\n\t\t\tif(elements[x].equals(toRemove)) {\n\t\t\t\tfor(int i = 0; i < numElements; i++) {\n\t\t\t\t\telements[x] = elements[x+1];\n\t\t\t\t}\n\t\t\t\tnumRemoved++;\n\t\t\t}\n\t\t}\n\t\tnumElements -= numRemoved;\n\t\treturn numRemoved;\n\t}", "public T remove() {\r\n \r\n if (this.isEmpty()) {\r\n return null;\r\n }\r\n \r\n Random r = new Random();\r\n // Randomly selects element to remove and stores in rValue.\r\n int rValue = r.nextInt(size);\r\n // Store removed element in remove\r\n T remove = elements[rValue];\r\n elements[rValue] = null;\r\n \r\n // Move last element to replace \"remove\" if \"remove\" is not last element\r\n if (rValue != (size - 1)) {\r\n elements[rValue] = elements[size - 1];\r\n elements[size - 1] = null;\r\n }\r\n size--;\r\n // If array is less than 25% full, resize to 1/2 of current size.\r\n if (size > 0 && size < elements.length / 4) {\r\n resize(elements.length / 2);\r\n }\r\n return remove;\r\n }", "@Test\n public void testRemoveAll_Not_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "@Override\n public boolean remove(final Object element) {\n for (int i = 0; i < size; i++) {\n if (this.checkIfEqual(element, i)) {\n this.shiftRemove(i);\n return true;\n }\n }\n\n return false;\n }", "public static boolean testAlphabetListRemove() {\r\n AlphabetList list1 = new AlphabetList();\r\n AlphabetList list2 = new AlphabetList();\r\n AlphabetList list3 = new AlphabetList();\r\n AlphabetList list4 = new AlphabetList();\r\n AlphabetList list5 = new AlphabetList();\r\n \r\n // Try removing a cart (at position index 0) from a list which contains only one cart;\r\n list1.add(new Cart(\"D\"));\r\n if (list1.size() != 1)\r\n return false;\r\n list1.remove(0);\r\n if (!list1.readForward().equals(\"\"))\r\n return false;\r\n if (!list1.readBackward().equals(\"\"))\r\n return false;\r\n try {\r\n //Try to remove a cart (position index 0) from a list which contains at least 2 carts;\r\n list2.add(new Cart(\"A\"));\r\n if (list2.size() != 1)\r\n return false;\r\n list2.add(new Cart(\"Z\"));\r\n if (list2.size() != 2)\r\n return false;\r\n list2.remove(0);\r\n if (!list2.readForward().equals(\"Z\"))\r\n return false;\r\n if (!list2.readBackward().equals(\"Z\"))\r\n return false;\r\n // Try to remove a cart from the middle of a non-empty list containing at least 3 carts;\r\n list3.add(new Cart(\"C\"));\r\n if (list3.size() != 1)\r\n return false;\r\n list3.add(new Cart(\"F\"));\r\n if (list3.size() != 2)\r\n return false;\r\n list3.add(new Cart(\"G\"));\r\n if (list3.size() != 3)\r\n return false;\r\n list3.remove(1);\r\n if (!list3.readForward().equals(\"CG\"))\r\n return false;\r\n if (!list3.readBackward().equals(\"GC\"))\r\n return false;\r\n // Try to remove the cart at the end of a list containing at least two carts.\r\n list4.add(new Cart(\"C\"));\r\n if (list4.size() != 1)\r\n return false;\r\n list4.add(new Cart(\"F\"));\r\n if (list4.size() != 2)\r\n return false;\r\n list4.remove(list4.size() - 1);\r\n if (!list4.readForward().equals(\"C\"))\r\n return false;\r\n if (!list4.readBackward().equals(\"C\"))\r\n return false;\r\n // Try to remove a cart from a list containing only one cart.\r\n list5.add(new Cart(\"C\"));\r\n if (list5.size() != 1)\r\n return false;\r\n list5.remove(list5.size() - 1);\r\n if (!list5.readForward().equals(\"\"))\r\n return false;\r\n if (!list5.readBackward().equals(\"\"))\r\n return false;\r\n \r\n // Try removing a cart from an empty list or pass a negative index to AlphabetList.remove()\r\n // method;\r\n list1.remove(-1);\r\n } catch (IndexOutOfBoundsException e) {\r\n if (e.getMessage() == \"Invalid index.\")\r\n return true;\r\n } catch (NullPointerException e) {\r\n return true;\r\n }\r\n\r\n return true;\r\n }", "public void remove() {\n if (count == 0) {\n return;\n }\n \n Random rand = new Random();\n int index = rand.nextInt(count);\n for (int i = index; i < count - 1; i++) {\n list[i] = list[i+1];\n }\n count--; \n }", "public boolean remove(int x) {\n\n // Can't remove anything from an empty list.\n if (head == null)\n return false;\n \n // Remove the first element, if necessary.\n if (head.data == x) {\n head = head.next;\n return true;\n }\n\n // Set up helper reference to refer to the node right before the node\n // to be deleted would be stored.\n Node helper = head; \n while ((helper.next != null) && (helper.next.data < x)) \n helper = helper.next;\n\n // If x was too big to be on the list, simply return false.\n if (helper.next == null)\n return false;\n\n // Only if the appropriate node stores x should it be deleted.\n if (helper.next.data == x) {\n helper.next = helper.next.next;\n return true;\n } \n\n return true; // Never gets here, compiler complains w/o this.\n }", "private Boolean cutScores(List<Pair<String, Integer>> list2) {\n final boolean modified;\n if (list2.size() > this.maxScores) {\n modified = true;\n } else {\n modified = false;\n }\n while (list2.size() > this.maxScores) {\n list2.remove(this.maxScores);\n }\n return modified;\n\n }", "@Test\n public void testRemove(){\n FunctionalLinkedList newList = new FunctionalLinkedList();\n for(int i = 1; i < 101; i++){\n if(i%2 == 1){\n newList.add(\"Odd\");\n } else {\n newList.add(\"Even\");\n }\n }\n stack = new ImprovedStackImpl(newList);\n \n // Remove one set of elements & check size.\n stack.remove(\"Odd\");\n assertEquals(\"Size of list is incorrect.\", 50, stack.size());\n String even;\n for(int i = 0; i < stack.size(); i++){\n even = (String) stack.pop().getReturnValue();\n assertEquals(\"'Odd' not removed at loop \"+ i +\".\", \"Even\", even);\n }\n }", "public static void removedEvenLength(LinkedList<String> list){ //ARRAY AND LINKED \r\n\t\t\r\n\t\tIterator< String> i = list.iterator();// call iterator\r\n\t\twhile ( i.hasNext()){\r\n\t\t\tString element = i.next();\r\n\t\t\tif (element.length()%2 == 0){// even\r\n\t\t\t\ti.remove();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\t}", "int numberOfBlocksToRemove();", "private static void task33(int nUMS, AVLTree<Integer> h) {\n\t\t\n\t double search_start = 0, search_end = 0;\n\n\t System.out.println(\"AVL DELETION Started...\");\n\t search_start = System.nanoTime();\n\t int count = 0;\n\t \t\n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (h.contains(checker)) {\n\t h.remove(checker);\n//\t System.out.println(\"INT Removed\");\n\t count++;\n\t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each deletion: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t \n\t System.out.println(\"TOTAL REMOVES\" + count);\n\t\t \n\t}", "public Integer remove() {\n while (true) {\n\n if (buffer.isEmpty()) {\n System.out.println(\"List is empty! Waiting..\");\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n System.out.println(e.getMessage());\n }\n } else {\n full.waiting();\n mutex.waiting();\n int back = buffer.removeFirst();\n mutex.signal();\n empty.signal();\n return back;\n\n }\n }\n\n\n }", "@Test\n public void testRemove_int_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "@Test\n\tpublic void testEliminar() {\n\t\tassertFalse(l.eliminar());\n\t\tassertEquals(0, l.tamanio());\n\t\t\n\t\t//Test eliminar el unico elemento que hay\n\t\tl.agregar(0, 0);\n\t\tl.comenzar();\n\t\tassertTrue(l.eliminar());\n\t\tassertEquals(0, l.tamanio());\n\t\t\n\t\tfor (int i = 0; i < 10; i++)\n\t\t\tl.agregar(i, i);\n\n\t\t//Test eliminar el primer elemento cuando hay mas\n\t\tl.comenzar();\n\t\tassertTrue(l.eliminar());\n\t\tassertEquals(9, l.tamanio());\n\t\tfor (int i = 0; i < l.tamanio(); i++)\n\t\t\tassertEquals((int)(new Integer(i + 1)), l.elemento(i));\n\t\t\n\t\t//Test eliminar un elemento del medio\n\t\tl.agregar(1, 1);\n\t\tl.comenzar();\n\t\tl.proximo();\n\t\tassertTrue(l.eliminar());\n\t\tassertEquals(9, l.tamanio());\n\t\tfor (int i = 0; i < l.tamanio(); i++)\n\t\t\tassertEquals((int)(new Integer(i + 1)), l.elemento(i));\n\t\t\n\t\t//Test eliminar el ultimo elemento\n\t\tl.comenzar();\n\t\tfor (int i = 0; i < 8; i++)\n\t\t\tl.proximo();\n\t\tassertTrue(l.eliminar());\n\t\tassertEquals(8, l.tamanio());\n\t\tfor (int i = 0; i < l.tamanio(); i++)\n\t\t\tassertEquals((int)(new Integer(i + 1)), l.elemento(i));\n\t\t\n\t\t//Test de eliminar luego de haber recorrido todo.\n\t\tl.comenzar();\n\t\twhile (!l.fin())\n\t\t\tl.proximo();\n\t\tassertFalse(l.eliminar());\n\t\tassertEquals(8, l.tamanio());\n\t\tfor (int i = 0; i < l.tamanio(); i++)\n\t\t\tassertEquals((int)(new Integer(i + 1)), l.elemento(i));\n\t\t\n\t\t\n\t}", "@Test\n public void testRemove_int_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n Integer expResult = 6;\n Integer result = instance.size();\n\n assertEquals(expResult, result);\n\n }", "@Test\r\n\tpublic void testRemoveE() {\r\n\t\tll.add(t1);\r\n\t\tll.add(t2);\r\n\t\tll.add(t3);\r\n\t\tll.add(t4);\r\n\t\tll.add(t5);\r\n\t\tassertEquals(5, ll.size());\r\n\t\t// order of list: [0: t1, 1: t2, 2: t3, 3: t4, 4: t5]\r\n\t\t\r\n\t\tassertFalse(ll.remove(null));\r\n\t\tassertFalse(ll.remove(\"not in list\"));\r\n\t\t\r\n\t\tassertTrue(ll.remove(t1));\r\n\t\tassertEquals(4, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4, 3: t5]\r\n\t\t\r\n\t\tassertTrue(ll.remove(t3));\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\tassertEquals(t5, ll.get(2));\r\n\t\t// order of list: [0: t2, 1: t4, 2: t5]\r\n\t\t\r\n\t\tassertTrue(ll.remove(t5));\r\n\t\tassertEquals(2, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\t// order of list: [0: t2, 1: t4]\r\n\t\t\r\n\t\tassertTrue(ll.remove(t2));\r\n\t\tassertFalse(ll.remove(\"not in list\"));\r\n\t\tassertTrue(ll.remove(t4));\r\n\t\tassertFalse(ll.remove(t1));\r\n\t\t\r\n\t}", "public boolean shouldRemove(){\r\n\t\tif (heat<=0){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Test\n public void remove() {\n testList.add(42);\n testList.remove(42);\n assertEquals(0, testList.count());\n }", "boolean canBeRemoved(int cardIndex);", "@Test\n public void testRemoveFromBackNoResize() {\n //No Resize\n for (int i = 0; i < 9; i++) {\n String input = String.format(\"b0%d\", i);\n list.addToBack(input);\n }\n list.removeFromBack();\n int actualCapacity = ((Object[]) (list.getBackingArray())).length;\n Assert.assertEquals(\"The list resized when removing an element from a list while at capacity\",\n ArrayList.INITIAL_CAPACITY, actualCapacity);\n\n //With Resize\n list.addToBack(\"Filler1\");\n list.addToBack(\"Filler2\");\n list.addToBack(\"Filler3\");\n list.removeFromBack();\n list.removeFromBack();\n list.removeFromBack();\n int newActualCapacity = ((Object[]) (list.getBackingArray())).length;\n Assert.assertEquals(\"The list resized when moving from above to below initial capacity.\",\n ArrayList.INITIAL_CAPACITY * 2, newActualCapacity);\n }", "private void arrayCompact(MyArrayList myArrayList, Results results, int value) {\r\n int old_size = myArrayList.size();\r\n myArrayList.removeValue(value);\r\n myArrayList.compact();\r\n int new_size = myArrayList.size();\r\n if(old_size > new_size) {\r\n results.storeNewResult(\"ArrayCompact test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayCompact test case: FAILED\");\r\n }\r\n }", "@Test\r\n\tpublic void testRemoveInt() {\r\n\t\tll.add(t1);\r\n\t\tll.add(t2);\r\n\t\tll.add(t3);\r\n\t\tll.add(t4);\r\n\t\tll.add(t5);\r\n\t\tassertEquals(5, ll.size());\r\n\t\t// order of list: [0: t1, 1: t2, 2: t3, 3: t4, 4: t5]\r\n\t\t\r\n\t\ttry {\r\n\t\t\tll.remove(-1);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(5, ll.size());\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tll.remove(5);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(5, ll.size());\r\n\t\t}\r\n\t\t\r\n\t\tll.remove(0);\r\n\t\tassertEquals(4, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4, 3: t5]\r\n\t\t\r\n\t\tll.remove(ll.size() - 1);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t4, ll.get(2));\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4]\r\n\t\t\r\n\t\tll.remove(1);\r\n\t\tassertEquals(2, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\t// order of list: [0: t2, 1: t4]\r\n\t\t\r\n\t\tll.remove(0);\r\n\t\tassertEquals(1, ll.size());\r\n\t\tassertEquals(t4, ll.get(0));\r\n\t\t// order of list: [0: t4]\r\n\t\t\r\n\t\tll.remove(0);\r\n\t\tassertEquals(0, ll.size());\r\n\t}", "@Test\n public void testRemove_Not_Contains() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n\n Integer item = 2;\n boolean expResult = false;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "private boolean canRemoveTiles() {\n return this.mCurrentSpecs.size() > 8;\n }", "@Test\n void testRemoveDeletesElementAfterMultiplePuts() {\n MyList l = new MyList();\n for (int i = 0; i < 10; i++)\n l.put(\"key\" + i, \"value\" + i);\n l.remove(\"key5\");\n\n assertEquals(false, l.contains(\"key5\"));\n }", "public boolean remove(T x) {\n boolean delete = false;\n if (needRebuild) {\n rebuildSqrt();\n }\n for (int j = 1; j < numberOfBlocks; ++j) {\n if (comparator.compare((T) dataInBegin[j], x) > 0) {\n for (int k = (len * (j - 1) << 1); k < endOfBlock[j - 1]; ++k) {\n if (comparator.compare((T)data[k], x) == 0) {\n if (k == (len * (j - 1) << 1)) dataInBegin[j - 1] = data[k + 1];\n for (int l = k; l < endOfBlock[j - 1] - 1; l++) {\n data[l] = data[l + 1];\n }\n endOfBlock[j - 1]--;\n size--;\n if (endOfBlock[j - 1] <= (len * (j - 1) << 1)) {\n rebuildSqrt();\n };\n return true;\n }\n }\n return false;\n }\n }\n if (!delete) {\n for (int k = (len * (numberOfBlocks - 1) << 1); k < endOfBlock[numberOfBlocks - 1]; k++) {\n if (comparator.compare((T) data[k], x) == 0) {\n if (k == (len * (numberOfBlocks - 1)) << 1) dataInBegin[numberOfBlocks - 1] = data[k + 1];\n for (int l = k; l < endOfBlock[numberOfBlocks - 1] - 1; l++) {\n data[l] = data[l + 1];\n }\n endOfBlock[numberOfBlocks - 1]--;\n size--;\n if (endOfBlock[numberOfBlocks - 1] <= (len * (numberOfBlocks - 1) << 1)) {\n rebuildSqrt();\n }\n return true;\n }\n }\n }\n return false;\n }", "public boolean burn(){\r\n for(ListIterator<Item> iter = listIterator();iter.hasNext();)\r\n if(iter.next().flammable) iter.remove();\r\n return isEmpty();\r\n }", "@Test\n public void testRemoveAll_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "public long remove(Collection<String> collection, int amount) {\r\n long startTime = System.currentTimeMillis();\r\n\r\n int n = 0;\r\n Iterator<String> iterator = collection.iterator();\r\n while (iterator.hasNext() && n < amount) {\r\n iterator.next();\r\n iterator.remove();\r\n n++;\r\n }\r\n long spentTime = System.currentTimeMillis() - startTime;\r\n return spentTime;\r\n }", "@Test\r\n public void testRemovedLast() {\r\n ObservableList<String> items = createObservableList(true);\r\n ListChangeReport report = new ListChangeReport(items);\r\n int oldSize = items.size();\r\n int lastIndex = oldSize - 1;\r\n items.remove(lastIndex);\r\n assertEquals(oldSize - 1, items.size());\r\n Change c = report.getLastChange();\r\n c.next();\r\n assertEquals(lastIndex, c.getFrom());\r\n// report.prettyPrint();\r\n }", "private boolean notTooManySkips(ArrayList<Integer> jValues)\r\n\t{\r\n\t\tint length = jValues.size();\r\n\t\tint span = jValues.get(jValues.size() - 1) - jValues.get(0) + 1;\r\n\r\n\t\treturn span - length <= MAX_SKIPS;\r\n\t}", "protected abstract void checkRemoved();", "public boolean remove(E e){\n int target = e.hashCode() % this.buckets;\n return this.data[target].remove(e) == null;\n }", "public boolean removeCount()\n {\n count--;\n if (count <= 0)\n {\n return false;\n }\n else\n {\n \treturn true;\n }\n }", "public boolean deleteWithin(long sec, int fudge)\n\t{\n\t\tfor(int i=0; i<vars.size(); i++)\n\t\t{\n\t\t\tTimedVariable tv = vars.get(i);\n\t\t\tint dt = (int)(tv.getTime().getTime() / 1000L - sec);\n\t\t\tif (-fudge <= dt && dt <= fudge)\n\t\t\t{\n\t\t\t\tvars.remove(i);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean checkQuantity(Integer numToRemove) {\n return this.quantity >= numToRemove;\n }", "boolean updateDeathsTillForget() {\n\t\tdeathsTillForget -= 1;\n\t\treturn (deathsTillForget < 1);\n\t}", "@Test\n public void testRemove_Contains() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n\n Integer item = 1;\n boolean expResult = true;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "public void f6(List<Book> a) {\r\n double min = a.get(0).getPrice();\r\n for (Book o : a) {\r\n if (o.getPrice() < min) {\r\n min = o.getPrice();\r\n }\r\n }\r\n int acc = a.size();\r\n for (int i = acc-1; i > 0; i--) {\r\n a.remove(i);\r\n break;\r\n }\r\n }", "@Test\n public void myNeighboursList_deleteAction_shouldRemoveItem() {\n // Given : We remove the element at position 2\n onView(allOf(ViewMatchers.withId(R.id.list_neighbours),isDisplayed()))\n .check(withItemCount(ITEMS_COUNT));\n // When perform a click on a delete icon\n onView(allOf(ViewMatchers.withId(R.id.list_neighbours),isDisplayed()))\n .perform(RecyclerViewActions.actionOnItemAtPosition(1, new DeleteViewAction()));\n // Then : the number of element is 11\n onView(allOf(ViewMatchers.withId(R.id.list_neighbours),isDisplayed())).check(withItemCount(ITEMS_COUNT-1));\n }", "@Test\n public void testRemove_int_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n Integer expResult = 7;\n Integer result = instance.remove(2);\n\n assertEquals(expResult, result);\n\n }", "public void removeOverTime(){\r\n\t\tlong latest = timeQueue.getLast();\r\n\t\twhile( !timeQueue.isEmpty() && overlapRatioQueue.isEmpty() ){\r\n\t\t\tlong temp = timeQueue.getFirst();\r\n\t\t\tif( latest - temp > SMOOTING_INTERVAL ){\r\n\t\t\t\ttimeQueue.removeFirst();\r\n\t\t\t\toverlapRatioQueue.removeFirst();\r\n\t\t\t}else{\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void removeByTodoDouble(double todoDouble);", "private static void trim( List<?> list, int n ) {\n \twhile (list.size() > n) {\n \t\tlist.remove(list.size() - 1);\n \t}\n }", "default boolean removeIf(LongPredicate filter) {\n/* 193 */ Objects.requireNonNull(filter);\n/* 194 */ boolean removed = false;\n/* 195 */ LongIterator each = iterator();\n/* 196 */ while (each.hasNext()) {\n/* 197 */ if (filter.test(each.nextLong())) {\n/* 198 */ each.remove();\n/* 199 */ removed = true;\n/* */ } \n/* */ } \n/* 202 */ return removed;\n/* */ }", "public boolean removeCopies(int copies)\n\t{\n\t\t\n\t\t\n\t\tif (avail >= copies)\n\t\t{\n\t\t\tavail = avail - copies;\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public void RemoveRowsIfStackedTooHigh() {\n \t\t\n while (rowHasBlocks(Parameters.RemoveBiggestPartialRowIfBlockInRow)) {\n int NoOfPiecesRemoved = \n eraseBiggestRowGreaterThan(Parameters.RemoveBiggestPartialRowIfBlockInRow);\n //remove points for each empty square\n ComputeScoreAndDelay(-(COLUMNS - NoOfPiecesRemoved) * Parameters.PointsSubtractedPerEmptySpaceFromPartialRow);\n \n }\n game_grid.repaint();\n LogEvent(\"row_removed\");\n }", "public int numberOfBlocksToRemove() {\r\n return 105;\r\n }", "@Test\r\n\tpublic void fieldToDeleteTest() {\n\t\tArrayList<Point> fieldToDelete = boardService.getGameRules().fieldToDelete(board.field[11][10]); //we invoke this on the one of the black stones\r\n\t\t//should return arraylist of a size that is same as whites amount\r\n\t\tint counter = 0;\r\n\t\t\r\n\t\tfor(Point point : fieldToDelete)\r\n\t\t\tfor(int i = 11; i <= 15; i++)\r\n\t\t\t\tfor(int j = 11; j <= 15; j++) {\r\n\t\t\t\t\tif(point.getX() == i && point.getY() == j)\r\n\t\t\t\t\t\tcounter++; \r\n//we increase counter, only when we meet point with the same coordiantes, then when counter == size of returned array, then test is passed\r\n\t\t\t\t}\r\n\t\tassertEquals(counter, fieldToDelete.size());\r\n\t}", "public boolean remove(Card x) {\n if (head == null)\n return false;\n \n // Remove the first element, if necessary.\n if (head.data.ValueIn == x.ValueIn && !(head.data.suit.compareTo(\"x.suit\") == 0)) {\n head = head.next;\n return true;\n }\n\n // Set up helper reference to refer to the Node right before the Node\n // to be deleted would be stored.\n Node helper = head; \n while ((helper.next != null) && (helper.next.data.ValueIn < x.ValueIn)) \n helper = helper.next;\n\n // If x was too big to be on the list, simply return false.\n if (helper.next == null)\n return false;\n\n // Only if the appropriate Node stores x should it be deleted.\n if (helper.next.data.ValueIn == x.ValueIn) {\n helper.next = helper.next.next;\n return true;\n } \n\n return false; // Case where x is not found.\n }", "private void arrayIncreaaseSize(MyArrayList myArrayList, Results results) {\r\n int old_size = myArrayList.length();\r\n int value;\r\n Random rand = new Random();\r\n \r\n for(int i=0; i<50; i++) {\r\n value = rand.nextInt(10000);\r\n if(value < 0) {\r\n value = value * -1;\r\n }\r\n myArrayList.insertSorted(value);\r\n }\r\n if(myArrayList.length() == old_size + 25) {\r\n results.storeNewResult(\"ArrayIncrease test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayIncrease test case: FAILED\");\r\n }\r\n }", "@Test(expected = IllegalStateException.class)\n public void removeFive() {\n this.reset();\n this.bps.remove(6, 4);\n }", "@Override\n public int remove() {\n isEmptyList();\n int result = first.value;\n first = first.next;\n first.previous = null;\n size--;\n return result;\n }", "private boolean removeLastElement() {\n if (--size == 0) {\n clear();\n return true;\n }\n return false;\n }", "private static void task4(int nUMS, BinarySearchTree<Integer> t) {\n\t\t\n\t\tdouble search_start = 0, search_end = 0;\n\n\t System.out.println(\"SPLAY DELETION Started...\");\n\t search_start = System.nanoTime();\n\t int count = 0;\n\t \t\n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (t.contains(checker)) {\n\t t.remove(checker);\n//\t System.out.println(\"INT Removed\");\n\t count++;\n\t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each deletion: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t \n\t System.out.println(\"TOTAL REMOVES\" + count);\n\n\t\t\n\t\t\n\t}", "void removeSpeeds(int i);", "private void limitDistance(double latitude, double longitude, ArrayList<String[]> arrList){\r\n\t\tString[] currArr;//will hold match that is being checked\r\n\t\tDouble dist = 0.0;//holds the computed distance\r\n\t\t\r\n\t\t//for the entire match list\r\n\t\tfor(int i = 0; i < arrList.size(); i++){\r\n\t\t\tcurrArr = arrList.get(i);//current match\r\n\t\t\tdist = distance(latitude, longitude, currArr[0]);//compute the distance\r\n\t\t\t\r\n\t\t\tif(dist > MAX_DISTANCE){//check for distance\r\n\t\t\t\tarrList.remove(i);//remove violating match\r\n\t\t\t\ti--;//compensate for removed item\r\n\t\t\t} else {\r\n\t\t\t\tcurrArr[7] = String.valueOf(dist);//add the distance from the client\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void testRemoveIndex() {\r\n list.add(\"A\");\r\n list.add(\"B\");\r\n assertTrue(list.remove(0));\r\n assertEquals(1, list.size());\r\n list.add(\"B\");\r\n assertTrue(list.remove(0));\r\n assertEquals(1, list.size());\r\n }", "public boolean trim() {\n final int l = arraySize(size, f);\n if (l >= n || size > maxFill(l, f)) return true;\n try {\n rehash(l);\n } catch (Error cantDoIt) {\n return false;\n }\n return true;\n }", "default boolean removeItemsAbsolute(int amount, Predicate<ItemStack> filter) {\n for (IInventoryAdapter inventoryObject : this) {\n InventoryManipulator im = InventoryManipulator.get(inventoryObject);\n if (im.canRemoveItems(filter, amount)) {\n im.removeItems(filter, amount);\n return true;\n }\n }\n return false;\n }", "private static void task3333(int nUMS, SplayTree<Integer> j) {\n\t\t// TODO Auto-generated method stub\n\t\tdouble search_start = 0, search_end = 0;\n\n\t System.out.println(\"SPLAY DELETION Started...\");\n\t search_start = System.nanoTime();\n\t int count = 0;\n\t \t\n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (j.contains(checker)) {\n\t j.remove(checker);\n//\t System.out.println(\"INT Removed\");\n\t count++;\n\t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each deletion: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t \n\t System.out.println(\"TOTAL REMOVES\" + count);\n\n\t\t\n\t}", "@Test\n public void myNeighboursList_deleteAction_shouldRemoveItem() {\n // Given : We remove the element at position 2\n onView(ViewMatchers.withId(R.id.list_neighbours)).check(withItemCount(ITEMS_COUNT));\n // When perform a click on a delete icon\n onView(ViewMatchers.withId(R.id.list_neighbours))\n .perform(RecyclerViewActions.actionOnItemAtPosition(1, new DeleteViewAction()));\n // Then : the number of element is 11\n onView(ViewMatchers.withId(R.id.list_neighbours)).check(withItemCount(ITEMS_COUNT-1));\n\n }", "private void removeTailElement(){\n JavaBaseTask removed = items.remove(tail.getKey());\n System.out.println(\"element with index : \" + removed.getKey() + \"has been deleted doe to cache eviction\");\n tail = tail.previous;\n var headAu = head;\n while (headAu.next != null){\n headAu = headAu.next;\n }\n headAu = headAu.previous;\n headAu.next = null;\n }", "boolean testRemoveTouchers(Tester t) {\n return t.checkExpect(this.los3.removeTouchers(this.los2), this.los3)\n && t.checkExpect(this.mt.removeTouchers(this.los2), this.mt)\n && t.checkExpect(this.los3.removeTouchers(this.mt), this.los3)\n && t.checkExpect(this.lob3.removeTouchers(this.lob2), this.lob3)\n && t.checkExpect(this.los4.removeTouchers(this.lob4),\n new ConsLoGamePiece(this.ship1, this.mt))\n && t.checkExpect(this.lob4.removeTouchers(this.los4),\n new ConsLoGamePiece(this.bullet1, this.mt));\n }", "private void removeweak(final List<Level> levels) {\n \n final List<Integer> removeIdx = Lists.newArrayList();\n\n for (int i = 0; i < (levels.size()); i++) {\n final Level currentLevel = levels.get(i);\n final Float strength = currentLevel.getStrength();\n if (strength.intValue() < STRENGTH) {\n removeIdx.add(i);\n }\n }\n\n CollectionUtils.remove(levels, removeIdx);\n }", "public long poll() {\n if (size == 0)\n return 0L;\n\n for (int i = 0; i < STRIPES_COUNT; i++) {\n int stripeIdx = nextStripeUpdater.getAndIncrement(this) & (STRIPES_COUNT - 1);\n\n synchronized (stripeLocks[stripeIdx]) {\n GridLongList stripe = stripes[stripeIdx];\n\n if (stripe != null && !stripe.isEmpty()) {\n if (sizeUpdater.decrementAndGet(this) == 0 && pagesCacheLimit != null)\n pagesCacheLimit.incrementAndGet();\n\n return stripe.remove();\n }\n }\n }\n\n return 0L;\n }", "public boolean remove(int elem)\r\n\t{\r\n\t\tElo p = null;\r\n\t\tp = busca(elem);\r\n\r\n\t\tif (p == null) return false;\r\n\r\n\t\t/* Retira primeiro elemento */\r\n\t\tif (p == prim) \r\n\t\t\tprim = prim.prox;\r\n\t\telse \r\n\t\t\t/* Retira elemento do meio */\r\n\t\t\tp.ant.prox = p.prox;\r\n\r\n\t\t/* Testa se é ultimo elemento */ \r\n\t\tif (p.prox != null)\r\n\t\t\tp.prox.ant = p.ant;\r\n\r\n\t\tp = null;\r\n\t\t\r\n\t\tthis.tamanho--;\r\n\r\n\t\treturn true;\r\n\t}", "public boolean remove(int val) {\r\n boolean retval = false;\r\n int i = getIndex(val);\r\n Item item = items.get(i);\r\n if (item != null) {\r\n if (item.value == val) {\r\n removeItem(i, item);\r\n retval = true;\r\n } else {\r\n Node previous = null;\r\n Node next = item.next;\r\n while (next != null) {\r\n if (next.value == val) {\r\n break;\r\n }\r\n previous = next;\r\n next = next.next;\r\n }\r\n if (next != null) {\r\n assert (next.value == val);\r\n --item.count;\r\n if (previous == null) {\r\n item.next = next.next;\r\n } else {\r\n previous.next = next.next;\r\n }\r\n retval = true;\r\n }\r\n }\r\n }\r\n /*\r\n * if (retval) { if ((itemSize / nextIndexInCache) < 0.5) {\r\n * rehash(Math.max(itemSize, bufSize), items); } }\r\n */\r\n return retval;\r\n }", "private void sweepChunk(Chunk chunk) {\n for (Entity entity : chunk.getEntities()) {\n\n // Constrain entities to be removed to limitable mobs, excluding villagers\n if (entity.isDead() || !EntityHelper.isLimitableMob(entity) || entity instanceof Villager) continue;\n\n // Exempt special mobs\n if (EntityHelper.isSpecialMob((LivingEntity) entity)) {\n if (plugin.getConfiguration().debug()) {\n plugin.getLogger().info(\"Special mob exempted from removal: \" + EntityHelper.getMobDescription(entity));\n }\n continue;\n }\n\n // Leave two of any farm animals\n if (EntityHelper.isBreedingPair(entity)) continue;\n\n // If relative ages are on, and the mob is targeting a player, don't remove it\n if (isTargetingPlayer(entity)) continue;\n\n // Remove mobs\n ConfiguredMob limits = plugin.getConfiguration().getLimits(entity);\n if (!entity.isDead() && adjustedAge(entity) > limits.getAge() && limits.getAge() > -1) {\n ((LivingEntity) entity).damage(1000); // Kill the entity and drop its items\n removed++;\n lastTargeted.remove(entity.getUniqueId());\n plugin.getLogBlock().logEntityRemoval(entity, 347);\n if (plugin.getConfiguration().debug()) {\n plugin.getLogger().info(\"Removed mob (age limit): \" + EntityHelper.getMobDescription(entity));\n }\n }\n\n }\n }", "private void remove_elements() throws InterruptedException {\n while (buffer.getNumElementsInBuffer() > 0 || !this.threadComplete) {\n if (hasServerRemovedAllElements()) {\n return;\n }\n if (buffer.attemptRemove(this)) {\n elementsRemoved++;\n }\n //Thread.sleep(1); // For testing buffer being frequently full\n }\n }", "public boolean delete(java.lang.String toDelete) {\n int loc = indexValue(toDelete);\n\n if (loc != -1) {\n\n if ((numOfElements - 1) / (double)capacity < lowerLoadFactor && capacity !=1)\n changeHashSetSize(openHashSetArray, -1);\n\n openHashSetArray[this.clamp(toDelete.hashCode())].myList.remove(toDelete);\n numOfElements--;\n return true;\n }\n\n return false;\n }" ]
[ "0.6089457", "0.606933", "0.6067021", "0.6019441", "0.600998", "0.59404814", "0.59110993", "0.5879492", "0.5806376", "0.57646894", "0.5759954", "0.5748746", "0.57205856", "0.571237", "0.56777453", "0.5663106", "0.5649019", "0.5620237", "0.5604647", "0.5604528", "0.5600944", "0.5597992", "0.55762064", "0.55421144", "0.5516116", "0.54906774", "0.54743654", "0.5455717", "0.5452098", "0.54497224", "0.5447615", "0.544217", "0.5427294", "0.5420622", "0.54038715", "0.54012495", "0.5399331", "0.5398529", "0.539809", "0.5372779", "0.53676397", "0.5364837", "0.53509116", "0.53489065", "0.53425926", "0.533323", "0.5323802", "0.53236103", "0.5313072", "0.5299612", "0.5298024", "0.52958584", "0.5293683", "0.52935815", "0.5279802", "0.5275219", "0.5271221", "0.52602315", "0.5258857", "0.5257324", "0.525057", "0.5245707", "0.524195", "0.52387506", "0.5225918", "0.52225596", "0.52197456", "0.52093744", "0.520819", "0.5205431", "0.52044624", "0.5202003", "0.5195483", "0.51857525", "0.5172432", "0.5170541", "0.5168437", "0.51609886", "0.5156896", "0.5145596", "0.5142203", "0.5137815", "0.51360434", "0.51352644", "0.512954", "0.5127169", "0.51207215", "0.5114997", "0.5111062", "0.5110147", "0.5103283", "0.5100825", "0.509927", "0.5096445", "0.50919056", "0.50896496", "0.5084936", "0.5079759", "0.5068778", "0.50657964" ]
0.55665183
23
Tests remove to see if the length of the list is decreased after an element is removed (when the conditions aren't met)
@Test void testRemove4() { SimpleList test = new SimpleList(); test.add(7); test.add(10); test.add(9); test.remove(1); assertNotEquals(8, test.list.length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int remove() {\n isEmptyList();\n int result = first.value;\n first = first.next;\n first.previous = null;\n size--;\n return result;\n }", "@Override\n public boolean remove(final Object element) {\n for (int i = 0; i < size; i++) {\n if (this.checkIfEqual(element, i)) {\n this.shiftRemove(i);\n return true;\n }\n }\n\n return false;\n }", "@Test\n public void testRemove_Not_Contains_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n Integer item = 2;\n boolean expResult = false;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "private boolean removeLastElement() {\n if (--size == 0) {\n clear();\n return true;\n }\n return false;\n }", "public boolean deleteLast() {\n if(size == 0) return false;\n\n tail.prev = tail.prev.prev;\n tail.prev.next= tail;\n size -= 1;\n return true;\n}", "@Test\n public void testRemove_Contains_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n Integer item = 1;\n boolean expResult = true;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "private void testRemove() {\n System.out.println(\"------ TESTING: remove(int index) -----\");\n try{\n for(int i = 0; i < iSize; i++){\n if(iTestList.remove(0) != i)\n throw new RuntimeException(\"FAILED -> remove not working correctly\");\n }\n\n iTestList.remove(-9);\n iTestList.remove(iSize+10);\n }catch(RuntimeException e){\n System.out.println(e.getMessage());\n }\n }", "public Integer remove() {\n while (true) {\n\n if (buffer.isEmpty()) {\n System.out.println(\"List is empty! Waiting..\");\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n System.out.println(e.getMessage());\n }\n } else {\n full.waiting();\n mutex.waiting();\n int back = buffer.removeFirst();\n mutex.signal();\n empty.signal();\n return back;\n\n }\n }\n\n\n }", "@Test\n public void testRemove_Contains_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n instance.remove(new Integer(1));\n\n int expResult = 5;\n int result = instance.size();\n assertEquals(expResult, result);\n }", "@Test\r\n\tpublic void testRemoveInt() {\r\n\t\tll.add(t1);\r\n\t\tll.add(t2);\r\n\t\tll.add(t3);\r\n\t\tll.add(t4);\r\n\t\tll.add(t5);\r\n\t\tassertEquals(5, ll.size());\r\n\t\t// order of list: [0: t1, 1: t2, 2: t3, 3: t4, 4: t5]\r\n\t\t\r\n\t\ttry {\r\n\t\t\tll.remove(-1);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(5, ll.size());\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tll.remove(5);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(5, ll.size());\r\n\t\t}\r\n\t\t\r\n\t\tll.remove(0);\r\n\t\tassertEquals(4, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4, 3: t5]\r\n\t\t\r\n\t\tll.remove(ll.size() - 1);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t4, ll.get(2));\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4]\r\n\t\t\r\n\t\tll.remove(1);\r\n\t\tassertEquals(2, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\t// order of list: [0: t2, 1: t4]\r\n\t\t\r\n\t\tll.remove(0);\r\n\t\tassertEquals(1, ll.size());\r\n\t\tassertEquals(t4, ll.get(0));\r\n\t\t// order of list: [0: t4]\r\n\t\t\r\n\t\tll.remove(0);\r\n\t\tassertEquals(0, ll.size());\r\n\t}", "@Test\r\n public void testRemovedLast() {\r\n ObservableList<String> items = createObservableList(true);\r\n ListChangeReport report = new ListChangeReport(items);\r\n int oldSize = items.size();\r\n int lastIndex = oldSize - 1;\r\n items.remove(lastIndex);\r\n assertEquals(oldSize - 1, items.size());\r\n Change c = report.getLastChange();\r\n c.next();\r\n assertEquals(lastIndex, c.getFrom());\r\n// report.prettyPrint();\r\n }", "@Override\n public boolean remove(Object o) {\n if (elements.remove(o)) {\n ordered.remove(o);\n return true;\n } else {\n return false;\n }\n\n }", "@Test\r\n\tvoid testRemove3() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\ttest.remove(10);\r\n\t\tassertEquals(8, test.list.length);\r\n\t}", "private void arrayRemove(MyArrayList myArrayList, Results results, int value) {\r\n int old_size = myArrayList.size();\r\n myArrayList.removeValue(value);\r\n int new_size = myArrayList.size();\r\n if(old_size == new_size + 1) {\r\n results.storeNewResult(\"ArrayRemove test case: FAILED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayRemove test case: PASSED\");\r\n }\r\n }", "public boolean deleteLast() {\n if (head == tail && size == 0)\n return false;\n else {\n tail = (tail - 1 + capacity) % capacity;//删除了最左侧的头元素,则需要将尾指针向左\n //移动一个;\n size--;\n return true;\n }\n // return true;\n }", "public boolean remove(ElementType element){\n if(this.find(element)==-1){\n return false;\n }\n elements[this.find(element)]=elements[size-1];\n size--;\n return true;\n }", "public final boolean remove(final Integer element) {\n final int index = linearSearch(element);\n if (index == -1) {\n return false;\n } else {\n for (int i = index; i < (size - 1); i++) {\n arrayList[i] = arrayList[i + 1];\n arrayList[i + 1] = 0;\n }\n size--;\n return true;\n\n }\n }", "public boolean deQueue() {\n if(!isEmpty()){\n l.remove(head);\n if(this.head+1==this.tail){\n this.head=-1;\n this.tail=-1;\n }else{\n this.head = (this.head + 1) % this.size;\n }\n return true;\n }\n return false;\n }", "public void remove()\n {\n if( current > 0 )\n {\n set(-- current);\n }\n }", "public boolean remove(int x) {\n\n // Can't remove anything from an empty list.\n if (head == null)\n return false;\n \n // Remove the first element, if necessary.\n if (head.data == x) {\n head = head.next;\n return true;\n }\n\n // Set up helper reference to refer to the node right before the node\n // to be deleted would be stored.\n Node helper = head; \n while ((helper.next != null) && (helper.next.data < x)) \n helper = helper.next;\n\n // If x was too big to be on the list, simply return false.\n if (helper.next == null)\n return false;\n\n // Only if the appropriate node stores x should it be deleted.\n if (helper.next.data == x) {\n helper.next = helper.next.next;\n return true;\n } \n\n return true; // Never gets here, compiler complains w/o this.\n }", "public void testRemoveIndex() {\r\n list.add(\"A\");\r\n list.add(\"B\");\r\n assertTrue(list.remove(0));\r\n assertEquals(1, list.size());\r\n list.add(\"B\");\r\n assertTrue(list.remove(0));\r\n assertEquals(1, list.size());\r\n }", "public boolean remove(int val) {\n if (!set.containsKey(val)) return false;\n int lastElement = list.get(list.size() - 1);\n int idx = set.get(val);\n list.set(idx, lastElement);\n set.put(lastElement, idx);\n list.remove(list.size() - 1);\n set.remove(val);\n return true;\n }", "protected abstract void checkRemoved();", "public boolean deleteLast() {\n if (isEmpty()) {\n return false;\n } else {\n elements[front++] = -1;\n return true;\n }\n }", "public boolean remove(int val) {\n if (!idx.containsKey(val)){\n return false; //没有该值,删除失败\n }\n int lastNum = nums.get(nums.size() - 1);\n //交换要删除的元素和列表最末的元素\n if (val==lastNum){ //如果末尾元素就是的要删除的元素\n idx.get(val).remove(nums.size()-1);\n return true;\n }\n //如果末尾元素不是要删除的元素\n int lastIndex=idx.get(val).iterator().next(); //要删除的元素第一次出现的位置\n nums.set(lastIndex, lastNum); //最后一个元素到要删除的元素第一次出现的位置\n idx.get(val).remove(lastIndex);\n idx.get(lastNum).remove(nums.size()-1);\n if (lastIndex < nums.size() - 1) idx.get(lastNum).add(lastIndex);\n if (idx.get(val).size() == 0) { //删除之后,val出现的次数变为0\n idx.remove(val);\n }\n nums.remove(nums.size()-1); //删除末尾元素的时间复杂度为O(1)\n return true;\n }", "@Test\r\n\tpublic void testRemoveE() {\r\n\t\tll.add(t1);\r\n\t\tll.add(t2);\r\n\t\tll.add(t3);\r\n\t\tll.add(t4);\r\n\t\tll.add(t5);\r\n\t\tassertEquals(5, ll.size());\r\n\t\t// order of list: [0: t1, 1: t2, 2: t3, 3: t4, 4: t5]\r\n\t\t\r\n\t\tassertFalse(ll.remove(null));\r\n\t\tassertFalse(ll.remove(\"not in list\"));\r\n\t\t\r\n\t\tassertTrue(ll.remove(t1));\r\n\t\tassertEquals(4, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4, 3: t5]\r\n\t\t\r\n\t\tassertTrue(ll.remove(t3));\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\tassertEquals(t5, ll.get(2));\r\n\t\t// order of list: [0: t2, 1: t4, 2: t5]\r\n\t\t\r\n\t\tassertTrue(ll.remove(t5));\r\n\t\tassertEquals(2, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\t// order of list: [0: t2, 1: t4]\r\n\t\t\r\n\t\tassertTrue(ll.remove(t2));\r\n\t\tassertFalse(ll.remove(\"not in list\"));\r\n\t\tassertTrue(ll.remove(t4));\r\n\t\tassertFalse(ll.remove(t1));\r\n\t\t\r\n\t}", "@Test\r\n\tpublic void testRemoveByIndex() {\r\n\t\tAssert.assertNull(list.remove(100));\r\n\t\tAssert.assertTrue(list.get(5).equals(list.remove(5)));\r\n\t\tAssert.assertEquals(14, list.size());\r\n\t}", "public boolean removeCount()\n {\n count--;\n if (count <= 0)\n {\n return false;\n }\n else\n {\n \treturn true;\n }\n }", "public static boolean testAlphabetListRemove() {\r\n AlphabetList list1 = new AlphabetList();\r\n AlphabetList list2 = new AlphabetList();\r\n AlphabetList list3 = new AlphabetList();\r\n AlphabetList list4 = new AlphabetList();\r\n AlphabetList list5 = new AlphabetList();\r\n \r\n // Try removing a cart (at position index 0) from a list which contains only one cart;\r\n list1.add(new Cart(\"D\"));\r\n if (list1.size() != 1)\r\n return false;\r\n list1.remove(0);\r\n if (!list1.readForward().equals(\"\"))\r\n return false;\r\n if (!list1.readBackward().equals(\"\"))\r\n return false;\r\n try {\r\n //Try to remove a cart (position index 0) from a list which contains at least 2 carts;\r\n list2.add(new Cart(\"A\"));\r\n if (list2.size() != 1)\r\n return false;\r\n list2.add(new Cart(\"Z\"));\r\n if (list2.size() != 2)\r\n return false;\r\n list2.remove(0);\r\n if (!list2.readForward().equals(\"Z\"))\r\n return false;\r\n if (!list2.readBackward().equals(\"Z\"))\r\n return false;\r\n // Try to remove a cart from the middle of a non-empty list containing at least 3 carts;\r\n list3.add(new Cart(\"C\"));\r\n if (list3.size() != 1)\r\n return false;\r\n list3.add(new Cart(\"F\"));\r\n if (list3.size() != 2)\r\n return false;\r\n list3.add(new Cart(\"G\"));\r\n if (list3.size() != 3)\r\n return false;\r\n list3.remove(1);\r\n if (!list3.readForward().equals(\"CG\"))\r\n return false;\r\n if (!list3.readBackward().equals(\"GC\"))\r\n return false;\r\n // Try to remove the cart at the end of a list containing at least two carts.\r\n list4.add(new Cart(\"C\"));\r\n if (list4.size() != 1)\r\n return false;\r\n list4.add(new Cart(\"F\"));\r\n if (list4.size() != 2)\r\n return false;\r\n list4.remove(list4.size() - 1);\r\n if (!list4.readForward().equals(\"C\"))\r\n return false;\r\n if (!list4.readBackward().equals(\"C\"))\r\n return false;\r\n // Try to remove a cart from a list containing only one cart.\r\n list5.add(new Cart(\"C\"));\r\n if (list5.size() != 1)\r\n return false;\r\n list5.remove(list5.size() - 1);\r\n if (!list5.readForward().equals(\"\"))\r\n return false;\r\n if (!list5.readBackward().equals(\"\"))\r\n return false;\r\n \r\n // Try removing a cart from an empty list or pass a negative index to AlphabetList.remove()\r\n // method;\r\n list1.remove(-1);\r\n } catch (IndexOutOfBoundsException e) {\r\n if (e.getMessage() == \"Invalid index.\")\r\n return true;\r\n } catch (NullPointerException e) {\r\n return true;\r\n }\r\n\r\n return true;\r\n }", "@Override\n public boolean removeByValue(int value) {\n Entry tmp = first;\n for (int i = 0; i < size; i++) {\n if (tmp.value == value) {\n tmp.previous.next = tmp.next;\n tmp.next.previous = tmp.previous;\n size--;\n return true;\n }\n tmp = tmp.next;\n }\n return false;\n }", "boolean isListRemainingEmpty();", "@Override\n public void remove() throws IllegalStateException{\n if (!removable) throw new IllegalStateException(\"nothing to remove\");\n ArrayList.this.remove(j - 1); // that was the last one returned\n j--; // next element has shifted one cell to the left\n removable = false; // do not allow remove again util next is called\n }", "public T remove(int index) {\n\n if (index >= size) {\n throw new IndexOutOfBoundsException(\"Index: \" + index + \", Size: \" + size);\n }\n\n T oldValue = myList[index];\n int value = size - index - 1;\n\n if (value > 0) {\n System.arraycopy(myList, index + 1, myList, index, value);\n }\n System.out.println(\"one \" + size);\n myList[--size] = null;\n System.out.println(\"two \" + size);\n\n return oldValue;\n }", "@Test\n public void testRemoveAll_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "@Test\n public void testRemove_After_Previous() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n instance.previous();\n\n instance.remove();\n\n assertFalse(baseList.contains(2));\n }", "public boolean remove(int val) {\n if (!checkDups.containsKey(val)) {\n return false;\n }\n checkDups.put(this.list.get(this.size - 1), this.checkDups.get(val)); // important! update map\n swap(this.list, this.checkDups.get(val), this.size - 1);\n checkDups.remove(val);\n this.size--;\n return true;\n }", "boolean canBeRemoved(int cardIndex);", "boolean remove(int pos);", "@Test\n public void testRemove_Contains_First_Ocurrence_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(3);\n\n instance.remove(new Integer(3));\n\n int expResult = 2;\n int result = instance.get(0);\n assertEquals(expResult, result);\n }", "public int remove(E toRemove) {\n\t\tint numRemoved = 0;\n\t\tfor(int x = 0; x < numElements; x++) {\n\t\t\tif(elements[x].equals(toRemove)) {\n\t\t\t\tfor(int i = 0; i < numElements; i++) {\n\t\t\t\t\telements[x] = elements[x+1];\n\t\t\t\t}\n\t\t\t\tnumRemoved++;\n\t\t\t}\n\t\t}\n\t\tnumElements -= numRemoved;\n\t\treturn numRemoved;\n\t}", "@Test\n public void remove() {\n testList.add(42);\n testList.remove(42);\n assertEquals(0, testList.count());\n }", "@Test\n public void testRemove_Contains_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(1);\n instance.add(2);\n instance.add(1);\n\n instance.remove(new Integer(1));\n\n int expResult = 3;\n int result = instance.size();\n assertEquals(expResult, result);\n }", "@Test\r\n\tvoid testRemove5() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\tassertNotEquals(0, test.list.length);\r\n\t}", "boolean isRemove();", "@Test\n public void testRemoveAll_Not_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "public boolean deleteLast() {\n if(isEmpty()){\n return false;\n }\n tail = moveLeft(tail);\n return true;\n }", "public boolean deleteFront() {\n if (isEmpty()) {\n return false;\n } else {\n elements[--last] = -1;\n return true;\n }\n }", "boolean canRemove();", "public boolean remove(int val) {\r\n boolean retval = false;\r\n int i = getIndex(val);\r\n Item item = items.get(i);\r\n if (item != null) {\r\n if (item.value == val) {\r\n removeItem(i, item);\r\n retval = true;\r\n } else {\r\n Node previous = null;\r\n Node next = item.next;\r\n while (next != null) {\r\n if (next.value == val) {\r\n break;\r\n }\r\n previous = next;\r\n next = next.next;\r\n }\r\n if (next != null) {\r\n assert (next.value == val);\r\n --item.count;\r\n if (previous == null) {\r\n item.next = next.next;\r\n } else {\r\n previous.next = next.next;\r\n }\r\n retval = true;\r\n }\r\n }\r\n }\r\n /*\r\n * if (retval) { if ((itemSize / nextIndexInCache) < 0.5) {\r\n * rehash(Math.max(itemSize, bufSize), items); } }\r\n */\r\n return retval;\r\n }", "@Test\n public void testRemove_Not_Contains() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n\n Integer item = 2;\n boolean expResult = false;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "void deleteBack()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call deleteBack() on empty List\");\n\t\t}\n\t\tif (cursor == back) \n\t\t{\n\t\t\tcursor = null;\n\t\t\tindex = -1;\n\t\t}\n \n\t\tback = back.prev; //the back element becomes the previous element in the list\n\t\tlength--;\n\n\t}", "@Test\n public void testRemove_int_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "public boolean remove(int val) {\n if(valToIndex.containsKey(val)){\n // remove value from valToIndex and get index\n int index = valToIndex.remove(val);\n\n\n // now update elementsList\n // remove last element, if this is val we can stop, if not we put it in index\n int lastVal = elementsList.remove(elementsList.size() - 1);\n\n if(lastVal != val){\n // add to elementsList\n elementsList.remove(index);\n elementsList.add(index, lastVal);\n // update index\n valToIndex.put(lastVal, index);\n }\n\n return true;\n }\n return false;\n }", "public boolean remove(int val) {\n //这里讲要删除的元素交换到data的最后一个位置,实际上就是将最后一个元素值赋值到val位置,这样保证时间复杂度是O(1)\n if(valueIndex.containsKey(val)){\n //获取val位置\n int index=valueIndex.get(val);\n //val不是最后一个元素\n if(index!=data.size()-1){\n //获取最后一个元素\n int lastEle=data.get(data.size()-1);\n //将最后一个元素值赋值到val位置\n data.set(index,lastEle);\n valueIndex.put(lastEle,index);\n }\n //删除data中最后一个元素\n data.remove(data.size()-1);\n valueIndex.remove(val);\n return true;\n }\n return false;\n }", "public boolean remove(T value) {\n int prevSize = size;\n root = remove( value, root );\n\n return prevSize != size;//return true if size changed\n\n }", "@Override\n public boolean remove(Object o) {\n for (int i = 0; i < size; i++) {\n if (contains(o)) {\n remove(i);\n return true;\n }\n }\n return false;\n }", "public boolean deleteLast() {\n if (isEmpty()) {\n return false;\n }\n tail = (tail - 1 + k) % k;\n return true;\n }", "@Test\n public void testRemoveAtIndexNoResize() {\n //No Resize\n for (int i = 0; i < 9; i++) {\n String input = String.format(\"b0%d\", i);\n list.addToBack(input);\n }\n list.removeAtIndex(4);\n int actualCapacity = ((Object[]) (list.getBackingArray())).length;\n Assert.assertEquals(\"The list resized when removing an element from a list while at capacity\",\n ArrayList.INITIAL_CAPACITY, actualCapacity);\n\n //With Resize\n list.addToBack(\"Filler1\");\n list.addToBack(\"Filler2\");\n list.addToBack(\"Filler3\");\n list.removeAtIndex(0);\n list.removeAtIndex(3);\n list.removeAtIndex(8);\n int newActualCapacity = ((Object[]) (list.getBackingArray())).length;\n Assert.assertEquals(\"The list resized when moving from above to below initial capacity.\",\n ArrayList.INITIAL_CAPACITY * 2, newActualCapacity);\n }", "@Override\n public boolean remove(T item) {\n //find where the item is in the array\n int index = this.findIndex(item);\n //if it is not in the array, return false\n if(index == -1)\n return false;\n //otherwise, move the last item in the array to the removed items\n //spot, decrement numItems and return true\n else{\n arr[index] = arr[--numItems];\n return true;\n }\n }", "@Test\n public void testRemoveAt() {\n testAdd();\n list1.removeAt(3);\n assertEquals(8, list1.size());\n assertEquals(15.25, list1.get(4), 0);\n assertEquals(14.25, list1.get(3), 0);\n assertEquals(17.25, list1.get(5), 0);\n }", "public boolean remove(E e){\n int target = e.hashCode() % this.buckets;\n return this.data[target].remove(e) == null;\n }", "@Test(expected = IllegalStateException.class)\n public void testRemove_After_Remove() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.remove();\n\n instance.remove();\n\n }", "@Test\n void testRemoveDeletesElementAfterMultiplePuts() {\n MyList l = new MyList();\n for (int i = 0; i < 10; i++)\n l.put(\"key\" + i, \"value\" + i);\n l.remove(\"key5\");\n\n assertEquals(false, l.contains(\"key5\"));\n }", "public boolean remove(Card x) {\n if (head == null)\n return false;\n \n // Remove the first element, if necessary.\n if (head.data.ValueIn == x.ValueIn && !(head.data.suit.compareTo(\"x.suit\") == 0)) {\n head = head.next;\n return true;\n }\n\n // Set up helper reference to refer to the Node right before the Node\n // to be deleted would be stored.\n Node helper = head; \n while ((helper.next != null) && (helper.next.data.ValueIn < x.ValueIn)) \n helper = helper.next;\n\n // If x was too big to be on the list, simply return false.\n if (helper.next == null)\n return false;\n\n // Only if the appropriate Node stores x should it be deleted.\n if (helper.next.data.ValueIn == x.ValueIn) {\n helper.next = helper.next.next;\n return true;\n } \n\n return false; // Case where x is not found.\n }", "@Override\n public boolean remove() {\n if(this.getSize() == 0){\n return false;\n } else{\n bankArrays[this.numBanks-1] = null;\n numBanks--;\n return true;\n }\n\n }", "public boolean remove(Object element)\n {\n if(head==null)return false;\n if(((Comparable)(head.data)).compareTo((Comparable)element)==0){\n if(head==tail){\n head=tail=null;\n return true;\n }\n head=head.next;\n return true;\n }\n if(head==tail)return false;\n SLListNode ref = head;\n while(ref.next != tail){\n if(((Comparable)(ref.next.data)).compareTo(element)==0){\n ref.next = ref.next.next;\n return true;\n }\n ref=ref.next;\n }\n if(((Comparable)(tail.data)).compareTo(element)==0){\n ref.next=null;\n tail=ref;\n return true;\n }\n return false;\n }", "@SuppressWarnings(\"unchecked\") // stops Java complaining about the call to compare\n public boolean remove(Object item) {\n E itm = (E) item; //this here is cast statment, which allows an object of anytype to be cast as a generic element, which means multiple types of elements can be use in this program\n if (itm == null) { //if the item is null it sends but null, if the item at index is null rerun false, and if the item does not equal the item at the position it returns null\n return false;\n }\n int indexValue = findIndexOf(itm);\n if (data[indexValue] == null) return false;\n if (!data[indexValue].equals(item))\n return false;\n\n for (int i = indexValue; i < count; i++) { //iterates through the list, moving all the elements to the on in front,\n data[i] = data[i + 1];\n }\n count--; //the decrments the count to show an item has been remove, it has not been removed but instead moved to the end, from there the item is overwritten when something is added.\n return true; //the count prevents the item from being seen.\n }", "@Override\r\n\tpublic boolean remove(T element) {\n\t\treturn this._list.remove(element);\r\n\t}", "@Test\n public void testRemoveAll_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "@Test\n public void testRemove_After_Next() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.remove();\n\n assertFalse(baseList.contains(2));\n }", "@Test\n public void testRemove_Contains() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n\n Integer item = 1;\n boolean expResult = true;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "@Override\n public boolean remove(Object o) {\n for (int i = 0; i < currentSize; i++) {\n if (container[i] == o) {\n System.arraycopy(container, i + 1, container, i, currentSize - i - 1);\n currentSize--;\n return true;\n }\n }\n return false;\n }", "public boolean remove(int val) {\n if (!val2Index.containsKey(val)) return false;\n // 删除的元素和最后一个元素交换并删除\n int last = data.get(data.size() - 1);\n data.set(val2Index.get(val), last);\n val2Index.put(last, val2Index.get(val));\n data.remove(data.size() - 1);\n val2Index.remove(val);\n return true;\n }", "public void removeDuplication() {\r\n\t\t//checks if the array contains any elements\r\n\t\tif (!isEmpty()) {\t//contains elements\r\n\t\t\t//loop to execute for every element in the array\r\n\t\t\tfor (int i=0;i<size-1;i++) {\r\n\t\t\t\tObject element=list[i];\t//to store value of element in array\r\n\t\t\t\t//loop to execute for every element after the current element in the list\r\n\t\t\t\tfor (int j=i+1;j<size;j++) {\r\n\t\t\t\t\t//checks if there is are 2 elements in the list with the same value\r\n\t\t\t\t\tif (element==list[j]) {\r\n\t\t\t\t\t\tremove(j);\t//calls function to remove that element from array\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\t//contains 0 elements\r\n\t\t\tSystem.out.println(\"List is empty!\");\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean remove(Object o) throws IndexOutOfBoundsException\n\t{\n\t\tint index= 0;\n\t\twhile (myArray[index]!=null && !(myArray[index].equals(o)))\n\t\t\tindex++;\n\t\tif(myArray[index]== null)\n\t\t\treturn false;\n\t\telse\n\t\t{\n\t\t\twhile(index < size)\n\t\t\t{\n\t\t\t\tmyArray[index] = myArray[index+1];\n\t\t\t\tmyArray[index+1] = null;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t //to check if need to resize\n\t\t\tif(size==myArray.length/4)\n\t\t\t\tresizeDown();\n\t\t\t\n\t\t/*\n\t\tmyArray[index] = null;\n\t\tint temp = index;\n\t\twhile(index < size)\n {\n \tmyArray[index] = myArray[index+1];\n \tmyArray[index+1] = null;\n index++;\n }*/\n size--;\n \n\t\n\t\t\n\t\treturn false;\n\t}", "@Test\r\n\tpublic void testRemoveAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tsample.add(new Munitions(new Munitions(3, 4, \"iron\")));\r\n\t\tAssert.assertTrue(list.removeAll(sample));\r\n\t\tAssert.assertFalse(list.removeAll(sample));\r\n\t\tAssert.assertEquals(13, list.size());\r\n\t}", "public void remove(int index) {\r\n\t\t//checks if the index is valid\r\n\t\tif(index>=0 && index<=size) {\r\n\t\t\tfor (int k=index;k<size;k++) {\t//shifting element\r\n\t\t\t\tlist[k]=list[k+1];\r\n\t\t\t}\r\n\t\t\tsize--;\t\t//decreases size\r\n\t\t\t//checks if the size of array is not 0 and less than 25% of the capacity of the array\r\n\t\t\tif (size!=0 && capacity/size >=4)\r\n\t\t\t\tresize(this.capacity/2);\t//decreasing size of array\r\n\t\t} else {\t//index is not valid\r\n\t\t\tSystem.out.println(\"index \"+index+\" is out or range!\");\r\n\t\t}\r\n\t}", "public boolean burn(){\r\n for(ListIterator<Item> iter = listIterator();iter.hasNext();)\r\n if(iter.next().flammable) iter.remove();\r\n return isEmpty();\r\n }", "public void removeEnd() {\n\t\t\tif (length != 0)\n\t\t\t\t{ \n\t\t\t ElementDPtr save = tail.getPrev();\n\t\t\t tail.setPrev(save.getPrev());\n\t\t\t save.getPrev().setNext(tail);\n\t\t\t length -= 1;\n\t\t\t System.out.println(tail.getPrev().getValue() + \" removeE \" + length);\n\t\t\t\t}\n\t\t\t\n\t\t}", "public static void removeEvens(ArrayList<Integer> list)\n {\n /*\n * size method returns the number of elements in the list\n */\n //int size = list.size();//valid way to ge the size\n \n for(int i = 0; i < list.size(); )\n {\n /*\n * get method return the value of the elemtne at the index\n * list get smaller, elements are \"shifted left\"\n */\n int value = list.get(i);\n if( value %2 == 0)\n {\n /*\n * remove method deletes the element at the specified index\n */\n list.remove(i);\n //i--;// if remove move index back one to compensate\n }\n else//only increase i if you don't remove\n {\n i++;\n }\n }\n }", "@Test\n void testRemoveDeletesElement() {\n MyList l = new MyList();\n l.put(\"key\", \"value\");\n l.remove(\"key\");\n\n assertEquals(false, l.contains(\"key\"));\n }", "public boolean atomicRemove();", "@Test\n public void testRemove_int_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n Integer expResult = 6;\n Integer result = instance.size();\n\n assertEquals(expResult, result);\n\n }", "@Test\n public void testRemoveFromBackNoResize() {\n //No Resize\n for (int i = 0; i < 9; i++) {\n String input = String.format(\"b0%d\", i);\n list.addToBack(input);\n }\n list.removeFromBack();\n int actualCapacity = ((Object[]) (list.getBackingArray())).length;\n Assert.assertEquals(\"The list resized when removing an element from a list while at capacity\",\n ArrayList.INITIAL_CAPACITY, actualCapacity);\n\n //With Resize\n list.addToBack(\"Filler1\");\n list.addToBack(\"Filler2\");\n list.addToBack(\"Filler3\");\n list.removeFromBack();\n list.removeFromBack();\n list.removeFromBack();\n int newActualCapacity = ((Object[]) (list.getBackingArray())).length;\n Assert.assertEquals(\"The list resized when moving from above to below initial capacity.\",\n ArrayList.INITIAL_CAPACITY * 2, newActualCapacity);\n }", "private void removeTailElement(){\n JavaBaseTask removed = items.remove(tail.getKey());\n System.out.println(\"element with index : \" + removed.getKey() + \"has been deleted doe to cache eviction\");\n tail = tail.previous;\n var headAu = head;\n while (headAu.next != null){\n headAu = headAu.next;\n }\n headAu = headAu.previous;\n headAu.next = null;\n }", "public boolean deQueue() {\n if (this.count == 0)\n return false;\n this.headIndex = (this.headIndex + 1) % this.capacity;\n this.count -= 1;\n return true;\n }", "boolean toBeRemoved(){\n\t\tif(isCancelled() || getStatus() == 0){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean remove(int elem)\r\n\t{\r\n\t\tElo p = null;\r\n\t\tp = busca(elem);\r\n\r\n\t\tif (p == null) return false;\r\n\r\n\t\t/* Retira primeiro elemento */\r\n\t\tif (p == prim) \r\n\t\t\tprim = prim.prox;\r\n\t\telse \r\n\t\t\t/* Retira elemento do meio */\r\n\t\t\tp.ant.prox = p.prox;\r\n\r\n\t\t/* Testa se é ultimo elemento */ \r\n\t\tif (p.prox != null)\r\n\t\t\tp.prox.ant = p.ant;\r\n\r\n\t\tp = null;\r\n\t\t\r\n\t\tthis.tamanho--;\r\n\r\n\t\treturn true;\r\n\t}", "public Item removeLast(){\r\n\t\tif (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\r\n\t\tItem tmp = list[last--];\r\n\t\tn--;\r\n\t\tlatter=last+1;\r\n\t\tif(last==-1){last=list.length-1;}\r\n\t\tif (n > 0 && n == list.length/4) resize(list.length/2); \r\n\t\treturn tmp;}", "public boolean remove(int val) {\n if (values.containsKey(val)) {\n List<Integer> indices = values.get(val);\n int index = indices.get(indices.size() - 1);\n list.set(index, list.size() - 1);\n list.remove(list.size() - 1);\n values.get(val).remove(indices.size() - 1);\n if (values.get(val).size() == 0) {\n values.remove(val);\n }\n return true;\n } else {\n return false;\n }\n }", "public boolean remove(int val) {\n boolean contains = map.containsKey(val);\n if(!contains) return false;\n int pos = map.get(val);\n if (pos < nums.size() - 1) { // if not the last one, then swap the last one with this val\n int last = nums.get(nums.size() - 1); // arraylist get() O(1), basically a value in an array\n nums.set(pos, last); // set the element at \"pos\" position to be last element in the list , set like assign value in an array element\n map.put(last, pos); // put the last element in the list with the pos position\n }\n map.remove(val); // hashmap remove() It is O(1) only when removing the last element by index.\n // O(1); map remove(obj)\n //O(1+k/n) where k is the no. of collision elements\n // added to the same LinkedList (k elements had same hashCode)\n nums.remove(nums.size() - 1);\n return true;\n }", "public boolean remove(int val) {\n if (m.containsKey(val)) {\n if (l.size() > 1) {\n int idx = m.get(val);\n if (idx == l.size()-1) {\n m.remove(val);\n l.remove(idx);\n } else {\n m.remove(val);\n l.set(idx, l.get(l.size() - 1));\n l.remove(l.size() - 1);\n m.put(l.get(idx), idx);\n }\n } else {\n l.remove(0);\n m.remove(val);\n }\n return true;\n } else {\n return false;\n }\n }", "public Boolean remove(int indexToRemove) {\n if (indexToRemove >= 0) {\n if (indexToRemove < items.size()) {\n items.remove(indexToRemove);\n return true;\n }\n }\n throw new IndexOutOfBoundsException();\n }", "public void remove() {\n if (count == 0) {\n return;\n }\n \n Random rand = new Random();\n int index = rand.nextInt(count);\n for (int i = index; i < count - 1; i++) {\n list[i] = list[i+1];\n }\n count--; \n }", "public boolean remove(int val) {\n if(map.containsKey(val)){\n int idx = map.get(val);\n if(idx == (validLength - 1)){\n validLength--;\n }\n else{\n int lastValue = set.get(--validLength);\n set.set(idx, lastValue);\n map.put(lastValue, idx);\n }\n map.remove(val);\n return true;\n }\n else{\n return false;\n }\n }", "@Test\n public void testRemove(){\n FunctionalLinkedList newList = new FunctionalLinkedList();\n for(int i = 1; i < 101; i++){\n if(i%2 == 1){\n newList.add(\"Odd\");\n } else {\n newList.add(\"Even\");\n }\n }\n stack = new ImprovedStackImpl(newList);\n \n // Remove one set of elements & check size.\n stack.remove(\"Odd\");\n assertEquals(\"Size of list is incorrect.\", 50, stack.size());\n String even;\n for(int i = 0; i < stack.size(); i++){\n even = (String) stack.pop().getReturnValue();\n assertEquals(\"'Odd' not removed at loop \"+ i +\".\", \"Even\", even);\n }\n }", "public boolean remove(int paramInt)\n/* */ {\n/* 231 */ int i = internalFind(paramInt);\n/* 232 */ if (i >= 0) {\n/* 233 */ this.m_flagTable[i] = false;\n/* 234 */ this.m_entryCount -= 1;\n/* 235 */ while (this.m_flagTable[(i = stepSlot(i))] != false) {\n/* 236 */ reinsert(i);\n/* */ }\n/* 238 */ return true;\n/* */ }\n/* 240 */ return false;\n/* */ }", "public boolean remove ( Object o ){\n\n \ttry{\n\n if(contains(o)){\n\n \t\t for(int i = 0; i < list.size(); i++){\n\n if(list.get(i).equals(o)){\n list.remove(i);\n }\n\n }\n\n \t\t return true;\n\n }\n\n else{\n return false;\n }\n\n \t}\n\n \tcatch (Exception e){\n \t\treturn false;\n \t}\n\n }", "@Override\n public Item removeLast() {\n nextLast = moveBack(nextLast, 1);\n Item output = items[nextLast];\n items[nextLast] = null;\n size -= 1;\n return output;\n }", "public boolean remove(int val) {\n if(!map.containsKey(val)) return false;\n int index = map.get(val);\n int size = list.size();\n int tmp = list.get(size-1);\n list.set(size-1, list.get(index));\n list.set(index, tmp);\n list.remove(size-1);\n map.put(tmp, index);\n map.remove(val);\n return true;\n }" ]
[ "0.65414864", "0.6497441", "0.645021", "0.6402999", "0.6395886", "0.63762283", "0.62967545", "0.61763704", "0.6122621", "0.6097991", "0.606905", "0.6061257", "0.60394", "0.6039058", "0.6029141", "0.6017245", "0.60034937", "0.6003052", "0.599834", "0.5959255", "0.5956547", "0.5955233", "0.5951923", "0.5947876", "0.5944614", "0.59384036", "0.593253", "0.59214723", "0.59079343", "0.5903442", "0.5892818", "0.58909893", "0.5856899", "0.58530915", "0.5851599", "0.5838841", "0.58175796", "0.5816222", "0.5809063", "0.580582", "0.57961965", "0.5791243", "0.5788555", "0.5785129", "0.5784107", "0.5781785", "0.5775064", "0.57738215", "0.5765479", "0.5749849", "0.57463574", "0.5734463", "0.57294685", "0.5729027", "0.57173115", "0.5715979", "0.57158697", "0.5704838", "0.5697814", "0.5694616", "0.56892866", "0.5687233", "0.56805176", "0.56617343", "0.56606495", "0.5659136", "0.5658224", "0.5656804", "0.5652683", "0.5647005", "0.56466436", "0.5639267", "0.5630867", "0.56198984", "0.56163496", "0.56143403", "0.56107295", "0.5606513", "0.56048584", "0.5599485", "0.55974185", "0.5595724", "0.55926186", "0.5591995", "0.5591529", "0.5590713", "0.5589241", "0.55890733", "0.55863154", "0.5584796", "0.5581754", "0.55779994", "0.55683655", "0.5568075", "0.5552258", "0.5550953", "0.5547487", "0.5544118", "0.5542725", "0.55409914" ]
0.6077344
10
Tests remove to see if the length of the list may be decreased to less than one entry.
@Test void testRemove5() { SimpleList test = new SimpleList(); test.add(1); test.remove(1); test.add(1); test.remove(1); test.add(1); test.remove(1); test.add(1); test.remove(1); test.add(1); test.remove(1); test.add(1); test.remove(1); test.add(1); test.remove(1); test.add(1); test.remove(1); test.add(1); test.remove(1); test.add(1); test.remove(1); assertNotEquals(0, test.list.length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testRemove_Contains_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n instance.remove(new Integer(1));\n\n int expResult = 5;\n int result = instance.size();\n assertEquals(expResult, result);\n }", "@Override\r\n\t\t\t\t\tprotected boolean removeEldestEntry(Map.Entry e)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn size()>5;\r\n\t\t\t\t\t}", "@Override\n public int remove() {\n isEmptyList();\n int result = first.value;\n first = first.next;\n first.previous = null;\n size--;\n return result;\n }", "private boolean removeLastElement() {\n if (--size == 0) {\n clear();\n return true;\n }\n return false;\n }", "@Test\n public void testRemove_Not_Contains_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n Integer item = 2;\n boolean expResult = false;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "@Test\n public void testRemove_Contains_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n Integer item = 1;\n boolean expResult = true;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "@Override\n\tpublic boolean removeEldestEntry(Map.Entry<T,U> element)\n\t{\n\t\t// Remove it if we've hit our capacity (meaning\n\t\t// we've overflowed)\n\t\t//\n\t\treturn size() > maxSize;\n\t}", "public boolean removeEldestEntry(Map.Entry entry){\n return size() > capacity;\n }", "@Test\n public void testRemove_int_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n Integer expResult = 6;\n Integer result = instance.size();\n\n assertEquals(expResult, result);\n\n }", "@Test\n public void testRemove_Contains_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(1);\n instance.add(2);\n instance.add(1);\n\n instance.remove(new Integer(1));\n\n int expResult = 3;\n int result = instance.size();\n assertEquals(expResult, result);\n }", "public boolean removeCount()\n {\n count--;\n if (count <= 0)\n {\n return false;\n }\n else\n {\n \treturn true;\n }\n }", "@Test\r\n\tvoid testRemove4() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\ttest.remove(1);\r\n\t\tassertNotEquals(8, test.list.length);\r\n\t}", "protected boolean removeEldestEntry(Map.Entry eldest) {\n/* 49 */ return (size() > this.maxElements);\n/* */ }", "@Override\r\n\t\t\tprotected boolean removeEldestEntry(Map.Entry eldest) {\r\n\t\t return size() > 3;\t//every time the eldest element will be removed if size > 3\r\n\t\t }", "@Override\n\tprotected boolean removeEldestEntry(java.util.Map.Entry<String, String> eldest) {\n\t\treturn size() > maximumSize;\n\t}", "public void remove()\n {\n if( current > 0 )\n {\n set(-- current);\n }\n }", "@Test\r\n\tvoid testRemove3() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\ttest.remove(10);\r\n\t\tassertEquals(8, test.list.length);\r\n\t}", "@Override\n\tprotected boolean removeEldestEntry(Map.Entry eldest) {\n\t\treturn size() > MAX_ENTRIES;\n\t}", "public Integer remove() {\n while (true) {\n\n if (buffer.isEmpty()) {\n System.out.println(\"List is empty! Waiting..\");\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n System.out.println(e.getMessage());\n }\n } else {\n full.waiting();\n mutex.waiting();\n int back = buffer.removeFirst();\n mutex.signal();\n empty.signal();\n return back;\n\n }\n }\n\n\n }", "@Test\n public void testRemove_Contains_First_Ocurrence_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(3);\n\n instance.remove(new Integer(3));\n\n int expResult = 2;\n int result = instance.get(0);\n assertEquals(expResult, result);\n }", "public boolean deleteLast() {\n if(size == 0) return false;\n\n tail.prev = tail.prev.prev;\n tail.prev.next= tail;\n size -= 1;\n return true;\n}", "public boolean remove(T value) {\n int prevSize = size;\n root = remove( value, root );\n\n return prevSize != size;//return true if size changed\n\n }", "boolean isListRemainingEmpty();", "private void testRemove() {\n System.out.println(\"------ TESTING: remove(int index) -----\");\n try{\n for(int i = 0; i < iSize; i++){\n if(iTestList.remove(0) != i)\n throw new RuntimeException(\"FAILED -> remove not working correctly\");\n }\n\n iTestList.remove(-9);\n iTestList.remove(iSize+10);\n }catch(RuntimeException e){\n System.out.println(e.getMessage());\n }\n }", "public boolean checkQuantity(Integer numToRemove) {\n return this.quantity >= numToRemove;\n }", "protected boolean removeEldestEntry(Map.Entry eldest) {\n\t\t\t\treturn size() > CACHESIZE;\r\n\t\t\t}", "protected boolean removeEldestEntry(Map.Entry eldest) {\n\t\t\t\treturn size() > CACHESIZE;\r\n\t\t\t}", "@Test\n public void testRemoveAll_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "@Override\n\t\t\tprotected boolean removeEldestEntry(final Map.Entry<K, V> eldest) {\n\t\t\t\treturn super.size() > LRUCache.this.cacheSize;\n\t\t\t}", "boolean canRemove();", "protected boolean removeEldestEntry(Map.Entry<Integer, String> eldest){\n\t return size() > this.capacity;\n\t }", "@Override\n public boolean remove(final Object element) {\n for (int i = 0; i < size; i++) {\n if (this.checkIfEqual(element, i)) {\n this.shiftRemove(i);\n return true;\n }\n }\n\n return false;\n }", "public void testRemoveIndex() {\r\n list.add(\"A\");\r\n list.add(\"B\");\r\n assertTrue(list.remove(0));\r\n assertEquals(1, list.size());\r\n list.add(\"B\");\r\n assertTrue(list.remove(0));\r\n assertEquals(1, list.size());\r\n }", "public boolean remove(E e){\n int target = e.hashCode() % this.buckets;\n return this.data[target].remove(e) == null;\n }", "private void removeLargeValues(ArrayList<Integer> myList)\n {\n // sort list to make removing values easy\n Collections.sort(myList);\n\n while (myList.size() > 1)\n {\n if (myList.get(myList.size() - 1) > 21)\n myList.remove(myList.size() - 1);\n else\n break;\n }\n }", "@Test\n public void remove() {\n testList.add(42);\n testList.remove(42);\n assertEquals(0, testList.count());\n }", "@Test\n public void testRemoveAtIndexNoResize() {\n //No Resize\n for (int i = 0; i < 9; i++) {\n String input = String.format(\"b0%d\", i);\n list.addToBack(input);\n }\n list.removeAtIndex(4);\n int actualCapacity = ((Object[]) (list.getBackingArray())).length;\n Assert.assertEquals(\"The list resized when removing an element from a list while at capacity\",\n ArrayList.INITIAL_CAPACITY, actualCapacity);\n\n //With Resize\n list.addToBack(\"Filler1\");\n list.addToBack(\"Filler2\");\n list.addToBack(\"Filler3\");\n list.removeAtIndex(0);\n list.removeAtIndex(3);\n list.removeAtIndex(8);\n int newActualCapacity = ((Object[]) (list.getBackingArray())).length;\n Assert.assertEquals(\"The list resized when moving from above to below initial capacity.\",\n ArrayList.INITIAL_CAPACITY * 2, newActualCapacity);\n }", "public int Delete_Min()\n {\n \tthis.array[0]=this.array[this.getSize()-1];\n \tthis.size--; \n \tthis.array[0].setPos(0);\n \tint numOfCompares = heapifyDown(this, 0);\n \treturn numOfCompares;\n }", "@Test\r\n\tvoid testSize3() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\tint output = test.size();\r\n\t\tassertEquals(8, output);\r\n\t}", "@Override\n public boolean removeByValue(int value) {\n Entry tmp = first;\n for (int i = 0; i < size; i++) {\n if (tmp.value == value) {\n tmp.previous.next = tmp.next;\n tmp.next.previous = tmp.previous;\n size--;\n return true;\n }\n tmp = tmp.next;\n }\n return false;\n }", "public long remove(){\n\t\t\r\n\t\t\tlong temp = queueArray[front]; //retrieves and stores the front element\r\n\t\t\tfront++;\r\n\t\t\tif(front == maxSize){ //To set front = 0 and use it again\r\n\t\t\t\tfront = 0;\r\n\t\t\t}\r\n\t\t\tnItems--;\r\n\t\t\treturn temp;\r\n\t\t}", "public boolean trim() {\n final int l = arraySize(size, f);\n if (l >= n || size > maxFill(l, f)) return true;\n try {\n rehash(l);\n } catch (Error cantDoIt) {\n return false;\n }\n return true;\n }", "@Test\r\n\tpublic void testRemoveByIndex() {\r\n\t\tAssert.assertNull(list.remove(100));\r\n\t\tAssert.assertTrue(list.get(5).equals(list.remove(5)));\r\n\t\tAssert.assertEquals(14, list.size());\r\n\t}", "@Test\r\n public void testRemovedLast() {\r\n ObservableList<String> items = createObservableList(true);\r\n ListChangeReport report = new ListChangeReport(items);\r\n int oldSize = items.size();\r\n int lastIndex = oldSize - 1;\r\n items.remove(lastIndex);\r\n assertEquals(oldSize - 1, items.size());\r\n Change c = report.getLastChange();\r\n c.next();\r\n assertEquals(lastIndex, c.getFrom());\r\n// report.prettyPrint();\r\n }", "boolean isRemove();", "@Test\n public void testRemove_int_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n Integer expResult = 6;\n Integer result = instance.size();\n\n assertEquals(expResult, result);\n\n }", "@Test\n public void testRemoveAll_Not_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "private boolean ifTooEmpty() {\n if (items.length <= 8) {\n return false;\n }\n float efficiency = (float) size / (float) items.length;\n return efficiency < 0.25;\n }", "public boolean deleteLast() {\n if (isEmpty()) {\n return false;\n } else {\n elements[front++] = -1;\n return true;\n }\n }", "@Test\n public void testRemoveFromBackNoResize() {\n //No Resize\n for (int i = 0; i < 9; i++) {\n String input = String.format(\"b0%d\", i);\n list.addToBack(input);\n }\n list.removeFromBack();\n int actualCapacity = ((Object[]) (list.getBackingArray())).length;\n Assert.assertEquals(\"The list resized when removing an element from a list while at capacity\",\n ArrayList.INITIAL_CAPACITY, actualCapacity);\n\n //With Resize\n list.addToBack(\"Filler1\");\n list.addToBack(\"Filler2\");\n list.addToBack(\"Filler3\");\n list.removeFromBack();\n list.removeFromBack();\n list.removeFromBack();\n int newActualCapacity = ((Object[]) (list.getBackingArray())).length;\n Assert.assertEquals(\"The list resized when moving from above to below initial capacity.\",\n ArrayList.INITIAL_CAPACITY * 2, newActualCapacity);\n }", "@Test\n public void testRemove_int_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "@Override\n public boolean remove() {\n if(this.getSize() == 0){\n return false;\n } else{\n bankArrays[this.numBanks-1] = null;\n numBanks--;\n return true;\n }\n\n }", "@Override\n\tpublic boolean add(ComparableSimpleEntry e) {\n\t\t// Delete exception and implement here\n\t\tif (elementsLeft > 0) {\n\t\t\telementsLeft--;\n\t\t\tsuper.offer(e);\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\tif (super.peek().compareTo(e) < 0) {\n\t\t\t\tsuper.offer(e);\n\t\t\t\tsuper.poll();\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public T remove(int index) {\n\n if (index >= size) {\n throw new IndexOutOfBoundsException(\"Index: \" + index + \", Size: \" + size);\n }\n\n T oldValue = myList[index];\n int value = size - index - 1;\n\n if (value > 0) {\n System.arraycopy(myList, index + 1, myList, index, value);\n }\n System.out.println(\"one \" + size);\n myList[--size] = null;\n System.out.println(\"two \" + size);\n\n return oldValue;\n }", "@Override\n protected boolean removeEldestEntry(final Map.Entry<K, V> eldest) {\n return size() > capacity;\n }", "private boolean canRemoveTiles() {\n return this.mCurrentSpecs.size() > 8;\n }", "public boolean deleteLast() {\n if (head == tail && size == 0)\n return false;\n else {\n tail = (tail - 1 + capacity) % capacity;//删除了最左侧的头元素,则需要将尾指针向左\n //移动一个;\n size--;\n return true;\n }\n // return true;\n }", "@Test\n public void testRemoveAll_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "private boolean checkGap() { //Checks if any gap due to previously deleted resv\n\t\tif (numOfReservation == 0)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn !(rList.get(rList.size()-1).getResvNo() == numOfReservation);\n\t}", "private void arrayRemove(MyArrayList myArrayList, Results results, int value) {\r\n int old_size = myArrayList.size();\r\n myArrayList.removeValue(value);\r\n int new_size = myArrayList.size();\r\n if(old_size == new_size + 1) {\r\n results.storeNewResult(\"ArrayRemove test case: FAILED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayRemove test case: PASSED\");\r\n }\r\n }", "public boolean remove(int val) {\n if(map.containsKey(val)){\n int idx = map.get(val);\n if(idx == (validLength - 1)){\n validLength--;\n }\n else{\n int lastValue = set.get(--validLength);\n set.set(idx, lastValue);\n map.put(lastValue, idx);\n }\n map.remove(val);\n return true;\n }\n else{\n return false;\n }\n }", "public boolean deleteFront() {\n if (isEmpty()) {\n return false;\n } else {\n elements[--last] = -1;\n return true;\n }\n }", "public final boolean remove(final Integer element) {\n final int index = linearSearch(element);\n if (index == -1) {\n return false;\n } else {\n for (int i = index; i < (size - 1); i++) {\n arrayList[i] = arrayList[i + 1];\n arrayList[i + 1] = 0;\n }\n size--;\n return true;\n\n }\n }", "public boolean shouldRemove(){\r\n\t\tif (heat<=0){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void remove(E key) {\t//O(n)\r\n\t\t//checks if there is an element with the same value as the key\r\n\t\tint index=compareTo(key);\t\r\n\t\tif (index!=-1) {\t//element exists in array\r\n\t\t\tfor (int k=index+1; k<=size;k++) {\t//shifting element\r\n\t\t\t\tlist[k-1]=list[k];\r\n\t\t\t}\r\n\t\t\tsize--;\t//decreasing size\r\n\t\t\t//checks if the size of array is not 0 and less than 25% of the capacity of the array\r\n\t\t\tif (size!=0 && capacity/size >=4)\r\n\t\t\t\tresize(this.capacity/2);\t//decreasing size of array\r\n\t\t\tSystem.out.println(key+\" removed!\");\r\n\t\t} else {\t//element doesn't exist in array\r\n\t\t\tSystem.out.println(key +\" is not in the list\");\r\n\t\t}\r\n\t}", "private boolean remove() {\r\n\t\t\treturn removed = true;\r\n\t\t}", "@Test\n public void testRemove_int_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n Integer expResult = 7;\n Integer result = instance.remove(2);\n\n assertEquals(expResult, result);\n\n }", "public Item removeLast(){\r\n\t\tif (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\r\n\t\tItem tmp = list[last--];\r\n\t\tn--;\r\n\t\tlatter=last+1;\r\n\t\tif(last==-1){last=list.length-1;}\r\n\t\tif (n > 0 && n == list.length/4) resize(list.length/2); \r\n\t\treturn tmp;}", "public boolean remove(int val) {\r\n boolean retval = false;\r\n int i = getIndex(val);\r\n Item item = items.get(i);\r\n if (item != null) {\r\n if (item.value == val) {\r\n removeItem(i, item);\r\n retval = true;\r\n } else {\r\n Node previous = null;\r\n Node next = item.next;\r\n while (next != null) {\r\n if (next.value == val) {\r\n break;\r\n }\r\n previous = next;\r\n next = next.next;\r\n }\r\n if (next != null) {\r\n assert (next.value == val);\r\n --item.count;\r\n if (previous == null) {\r\n item.next = next.next;\r\n } else {\r\n previous.next = next.next;\r\n }\r\n retval = true;\r\n }\r\n }\r\n }\r\n /*\r\n * if (retval) { if ((itemSize / nextIndexInCache) < 0.5) {\r\n * rehash(Math.max(itemSize, bufSize), items); } }\r\n */\r\n return retval;\r\n }", "public int remove(E toRemove) {\n\t\tint numRemoved = 0;\n\t\tfor(int x = 0; x < numElements; x++) {\n\t\t\tif(elements[x].equals(toRemove)) {\n\t\t\t\tfor(int i = 0; i < numElements; i++) {\n\t\t\t\t\telements[x] = elements[x+1];\n\t\t\t\t}\n\t\t\t\tnumRemoved++;\n\t\t\t}\n\t\t}\n\t\tnumElements -= numRemoved;\n\t\treturn numRemoved;\n\t}", "public boolean remove(int x) {\n\n // Can't remove anything from an empty list.\n if (head == null)\n return false;\n \n // Remove the first element, if necessary.\n if (head.data == x) {\n head = head.next;\n return true;\n }\n\n // Set up helper reference to refer to the node right before the node\n // to be deleted would be stored.\n Node helper = head; \n while ((helper.next != null) && (helper.next.data < x)) \n helper = helper.next;\n\n // If x was too big to be on the list, simply return false.\n if (helper.next == null)\n return false;\n\n // Only if the appropriate node stores x should it be deleted.\n if (helper.next.data == x) {\n helper.next = helper.next.next;\n return true;\n } \n\n return true; // Never gets here, compiler complains w/o this.\n }", "@Override\n public E deleteMin()\n {\n return list.removeFirst();\n }", "@Test\n public void testRemoveFromFrontNoResize() {\n //No Resize\n for (int i = 0; i < 9; i++) {\n String input = String.format(\"b0%d\", i);\n list.addToBack(input);\n }\n list.removeFromFront();\n int actualCapacity = ((Object[]) (list.getBackingArray())).length;\n Assert.assertEquals(\"The list resized when removing an element from a list while at capacity\",\n ArrayList.INITIAL_CAPACITY, actualCapacity);\n\n //With Resize\n list.addToBack(\"Filler1\");\n list.addToBack(\"Filler2\");\n list.addToBack(\"Filler3\");\n list.removeFromFront();\n list.removeFromFront();\n list.removeFromFront();\n int newActualCapacity = ((Object[]) (list.getBackingArray())).length;\n Assert.assertEquals(\"The list resized when moving from above to below initial capacity.\",\n ArrayList.INITIAL_CAPACITY * 2, newActualCapacity);\n }", "public long removeLeft() {\n long temporary = Array[start++];\n if ( start == max ) {\n start = 0;\n }\n nItems--;\n return temporary;\n }", "public boolean isListLengthFixed();", "@Test\r\n public void removeAndSize() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n assertTrue(s.remove(2));\r\n assertEquals(4, s.size());\r\n assertFalse(s.remove(2));\r\n assertEquals(4, s.size());\r\n }", "public void trimToSize() {\r\n for (int i=size(); i-->0;)\r\n if (get(i)==null)\r\n remove(i);\r\n }", "public boolean deleteLast() {\n if (isEmpty()) {\n return false;\n }\n tail = (tail - 1 + k) % k;\n return true;\n }", "@Test(expected = IllegalStateException.class)\n public void removeOne() {\n this.reset();\n this.bps.remove(6, 2, 6, 6);\n }", "public Message remove() \n { \n Message r = elements[head]; \n head = (head + 1) % elements.length; \n count--; \n return r; \n }", "public void remove(int index) {\r\n\t\t//checks if the index is valid\r\n\t\tif(index>=0 && index<=size) {\r\n\t\t\tfor (int k=index;k<size;k++) {\t//shifting element\r\n\t\t\t\tlist[k]=list[k+1];\r\n\t\t\t}\r\n\t\t\tsize--;\t\t//decreases size\r\n\t\t\t//checks if the size of array is not 0 and less than 25% of the capacity of the array\r\n\t\t\tif (size!=0 && capacity/size >=4)\r\n\t\t\t\tresize(this.capacity/2);\t//decreasing size of array\r\n\t\t} else {\t//index is not valid\r\n\t\t\tSystem.out.println(\"index \"+index+\" is out or range!\");\r\n\t\t}\r\n\t}", "private int remove(int index){\n\t\tremovedItem=heap[index];\n\t\theap[index]=INFINITE;\n\t\tshiftUp(index);\n\t\treturn extractMax();\n\t}", "@Test\r\n\tpublic void testRemoveInt() {\r\n\t\tll.add(t1);\r\n\t\tll.add(t2);\r\n\t\tll.add(t3);\r\n\t\tll.add(t4);\r\n\t\tll.add(t5);\r\n\t\tassertEquals(5, ll.size());\r\n\t\t// order of list: [0: t1, 1: t2, 2: t3, 3: t4, 4: t5]\r\n\t\t\r\n\t\ttry {\r\n\t\t\tll.remove(-1);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(5, ll.size());\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tll.remove(5);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(5, ll.size());\r\n\t\t}\r\n\t\t\r\n\t\tll.remove(0);\r\n\t\tassertEquals(4, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4, 3: t5]\r\n\t\t\r\n\t\tll.remove(ll.size() - 1);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t4, ll.get(2));\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4]\r\n\t\t\r\n\t\tll.remove(1);\r\n\t\tassertEquals(2, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\t// order of list: [0: t2, 1: t4]\r\n\t\t\r\n\t\tll.remove(0);\r\n\t\tassertEquals(1, ll.size());\r\n\t\tassertEquals(t4, ll.get(0));\r\n\t\t// order of list: [0: t4]\r\n\t\t\r\n\t\tll.remove(0);\r\n\t\tassertEquals(0, ll.size());\r\n\t}", "private boolean hasServerRemovedAllElements() {\n return getNumElementsRemoved() >= getNumElementsToRemove();\n }", "public boolean deleteFront() {\n if (head == tail && size == 0)\n return false;\n else {\n head = (head + 1 + capacity) % capacity;//删除了右侧的头元素,则需要将头指针向右\n //移动一个;\n size--;\n return true;\n }\n }", "public boolean remove(ElementType element){\n if(this.find(element)==-1){\n return false;\n }\n elements[this.find(element)]=elements[size-1];\n size--;\n return true;\n }", "public boolean remove(int val) {\n if (!set.containsKey(val)) return false;\n int lastElement = list.get(list.size() - 1);\n int idx = set.get(val);\n list.set(idx, lastElement);\n set.put(lastElement, idx);\n list.remove(list.size() - 1);\n set.remove(val);\n return true;\n }", "private void checkIfArrayFull() {\n\n if(this.arrayList.length == this.elementsInArray) {\n size *= 2;\n arrayList = Arrays.copyOf(arrayList, size);\n }\n }", "@Override\n public E remove() {\n if (size == 0){\n throw new NoSuchElementException();\n }\n E removed = heap[0];\n heap[0] = heap[--size];\n siftDown(0);\n return removed;\n }", "public boolean deQueue() {\n if(!isEmpty()){\n l.remove(head);\n if(this.head+1==this.tail){\n this.head=-1;\n this.tail=-1;\n }else{\n this.head = (this.head + 1) % this.size;\n }\n return true;\n }\n return false;\n }", "@Override\n\tpublic boolean remove(Object o) throws IndexOutOfBoundsException\n\t{\n\t\tint index= 0;\n\t\twhile (myArray[index]!=null && !(myArray[index].equals(o)))\n\t\t\tindex++;\n\t\tif(myArray[index]== null)\n\t\t\treturn false;\n\t\telse\n\t\t{\n\t\t\twhile(index < size)\n\t\t\t{\n\t\t\t\tmyArray[index] = myArray[index+1];\n\t\t\t\tmyArray[index+1] = null;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t //to check if need to resize\n\t\t\tif(size==myArray.length/4)\n\t\t\t\tresizeDown();\n\t\t\t\n\t\t/*\n\t\tmyArray[index] = null;\n\t\tint temp = index;\n\t\twhile(index < size)\n {\n \tmyArray[index] = myArray[index+1];\n \tmyArray[index+1] = null;\n index++;\n }*/\n size--;\n \n\t\n\t\t\n\t\treturn false;\n\t}", "public boolean removeEmpty(){\n List<Expiration> tempExp = new ArrayList<>();\n for(Expiration e : expiration){\n if(e.getQuantity() > 0)\n tempExp.add(e);\n }\n if(expiration.equals(tempExp)) return false;\n expiration = tempExp;\n return true;\n }", "private boolean ifFull() {\n return items.length == size;\n }", "public static void main(String[] args) {\r\n\t\t\r\n\tList<Integer> myList = new ArrayList<>();\r\n\tmyList.add(0);\r\n\tmyList.add(1);\r\n\tmyList.add(5);\r\n\tmyList.add(115);\r\n\tmyList.add(100);\r\n\tmyList.add(26);\r\n\tmyList.add(5555);\r\n\tmyList.add(-12);\r\n\t\r\n\tSystem.out.println(myList);\r\n\t\r\n\tfor(int i = 0; i<myList.size(); i++) {\r\n\t\tif(myList.get(i) > 100 || myList.get(i) < 1) {\r\n\t\t\tmyList.remove(i);\r\n\t\t\ti--;\r\n\t\t}\r\n\t}\r\n\t\r\n\tSystem.out.println(myList);\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t}", "@Test\n public void testRemoveAt() {\n testAdd();\n list1.removeAt(3);\n assertEquals(8, list1.size());\n assertEquals(15.25, list1.get(4), 0);\n assertEquals(14.25, list1.get(3), 0);\n assertEquals(17.25, list1.get(5), 0);\n }", "@Test\n public void testRemoveAll_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "@Override\n public int pop() {\n isEmptyList();\n int result = first.value;\n first = first.next;\n size--;\n return result;\n }", "private Boolean cutScores(List<Pair<String, Integer>> list2) {\n final boolean modified;\n if (list2.size() > this.maxScores) {\n modified = true;\n } else {\n modified = false;\n }\n while (list2.size() > this.maxScores) {\n list2.remove(this.maxScores);\n }\n return modified;\n\n }", "public boolean hasMore()\n\t{\n\t\treturn numLeft.compareTo(BigInteger.ZERO) == 1;\n\t}", "@Test\n public void testRemove() {\n testAdd();\n list1.remove(12.25);\n assertEquals(8, list1.size());\n assertEquals(13.25, list1.get(1), 0);\n assertEquals(16.25, list1.get(2), 0);\n assertEquals(14.25, list1.get(3), 0);\n }" ]
[ "0.6778885", "0.6653126", "0.65815693", "0.65339196", "0.64844203", "0.64618033", "0.64394224", "0.6416211", "0.633337", "0.6316388", "0.62936217", "0.6290601", "0.6287107", "0.6258052", "0.62340236", "0.62154406", "0.6192233", "0.6191541", "0.61761063", "0.6103491", "0.6100026", "0.60655206", "0.605994", "0.6055166", "0.6053746", "0.60358703", "0.60358703", "0.60118777", "0.60021067", "0.59746623", "0.5974578", "0.5966812", "0.5952194", "0.59483564", "0.59339666", "0.592432", "0.59238446", "0.5912983", "0.59046346", "0.5904058", "0.58883005", "0.588529", "0.5879554", "0.5877639", "0.5871887", "0.5868467", "0.5867336", "0.5854198", "0.585139", "0.58407104", "0.58344656", "0.5823052", "0.5818807", "0.58176106", "0.5813994", "0.58097875", "0.5807114", "0.5803415", "0.5790597", "0.5768937", "0.57683253", "0.5763969", "0.57409245", "0.5728746", "0.5725502", "0.5723409", "0.5715806", "0.5708809", "0.5700106", "0.5700033", "0.56968963", "0.56918997", "0.5691529", "0.5686887", "0.5684768", "0.5682095", "0.5681911", "0.56735086", "0.5663717", "0.56597227", "0.565719", "0.564814", "0.5646955", "0.5633577", "0.5633308", "0.5632751", "0.56235194", "0.56122833", "0.5608302", "0.56065184", "0.56033856", "0.5597328", "0.5597203", "0.5579193", "0.55768526", "0.5569936", "0.5558931", "0.5556927", "0.5553649", "0.5553396" ]
0.5941459
34
Tests count to see if the count is correct after adding elements to the list.
@Test void testCount() { SimpleList test = new SimpleList(); test.add(7); test.add(10); test.add(9); int output = test.count(); assertEquals(3, output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void addToIncreaseCount() {\n testList.add(42);\n assertEquals(1, testList.count());\n }", "@Test\n public void addPastInitialCapacity() {\n for (int iteration = 0; iteration < 20; iteration++) {\n testList.add(42);\n }\n assertEquals(20, testList.count());\n }", "private void testAdd(){\n System.out.println(\"------ TESTING: add(int element) -----\");\n try{\n // add values to list, the sequence is 0,1,....,iSize-1\n for(int i = 0; i < iSize; i++) {\n // if the add method returns false the program did not work correctly\n if (!iTestList.add(i))\n throw new RuntimeException(\"FAILED -> failed to add value to list\");\n }\n }catch(RuntimeException e){\n System.out.print(e.getMessage());\n }\n }", "public static void checkAdd(int testSize) {\r\n\t\tSystem.out.println(\"Beginning checkAdd basic add test of size \" + testSize);\r\n\t\tSortedIntList list = new SortedIntList(false, testSize);\r\n\t\tRandom r = new Random();\r\n\t\tfor (int i = 0; i < testSize; i++) {\r\n\t\t\t// remember old list contents in case of a problem\r\n\t\t\tString old = list.toString();\r\n\t\t\t// pick a number between -testSize and +testSize, add to list\r\n\t\t\tint next = r.nextInt(2 * testSize + 1) - testSize;\r\n\t\t\t\r\n\t\t\tint expectedSize = i + 1;\r\n\t\t\t\r\n\t\t\t// add to end of list\r\n\t\t\tlist.add(next);\r\n\t\t\t\r\n\t\t\t// check list size and make sure list is sorted\r\n\t\t\tif (list.size() != expectedSize) {\r\n\t\t\t\tthrow new RuntimeException(\"\\n\\nafter adding \" + expectedSize\r\n\t\t\t\t+ \" items, size = \" + list.size() + \" (should be \" + expectedSize + \")\\n\");\r\n\t\t\t} else if (!isSorted(list)) {\r\n\t\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\"\\n\\nadding \" + next + \" failed; list is not sorted.\\n\" +\r\n\t\t\t\t\"List before add = \" + old + \";\\nlist after add = \" + list + \"\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\" Passed!\\n\");\r\n\t}", "@Test\r\n\tvoid testCount2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.add(2);\r\n\t\ttest.add(3);\r\n\t\ttest.add(4);\r\n\t\ttest.add(5);\r\n\t\ttest.add(6);\r\n\t\ttest.add(7);\r\n\t\ttest.add(8);\r\n\t\ttest.add(9);\r\n\t\ttest.add(10);\r\n\t\ttest.add(11);\r\n\t\tint output = test.count();\r\n\t\tassertNotEquals(10, output);\r\n\t}", "@Test\n public void cantAddMoreThanCapacity(){\n for (int i = 0; i<12; i++){\n library.addBook(book);\n }\n assertEquals(10, library.bookCount());\n }", "@SmallTest\n\tpublic void testListCount() {\n\t\tint adapterCount = AVAILABLE_MENSAS;\n\t\tfor (int i = 0; i < mAdapter.getCount(); i++) {\n\t\t\t// if it is a section, then will be null, so we should add it to\n\t\t\t// number of canteens\n\t\t\tif (mAdapter.getItem(i) == null)\n\t\t\t\tadapterCount++;\n\t\t}\n\t\tassertEquals(\"List count does not match\", mAdapter.getCount(),\n\t\t\t\tadapterCount);\n\t}", "@Test\n\tpublic void testAddList() {\n\t\tarrayList = new ArrayListImplementation<String>();\n\t\tarrayList.addItem(\"1\");\n\t\tarrayList.addItem(\"2\");\n\t\tArrayListImplementation<String> tempArrayList = new ArrayListImplementation<String>();\n\t\ttempArrayList.addItem(\"4\");\n\t\ttempArrayList.addItem(\"5\");\n\t\ttempArrayList.addItem(\"6\");\n\t\tint sizeBeforeListAdded = arrayList.getActualSize();\n\t\tarrayList.addList(tempArrayList);\n\t\tint sizeAfterListAdded = arrayList.getActualSize();\n\t\tassertNotEquals(sizeBeforeListAdded, sizeAfterListAdded);\n\t}", "private void arrayIncreaaseSize(MyArrayList myArrayList, Results results) {\r\n int old_size = myArrayList.length();\r\n int value;\r\n Random rand = new Random();\r\n \r\n for(int i=0; i<50; i++) {\r\n value = rand.nextInt(10000);\r\n if(value < 0) {\r\n value = value * -1;\r\n }\r\n myArrayList.insertSorted(value);\r\n }\r\n if(myArrayList.length() == old_size + 25) {\r\n results.storeNewResult(\"ArrayIncrease test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayIncrease test case: FAILED\");\r\n }\r\n }", "private void arraySize(MyArrayList list, Results results) {\r\n int size = -123;\r\n size = list.size();\r\n if(size != -123) {\r\n results.storeNewResult(\"ArraySize test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArraySize test case: FAILED\");\r\n }\r\n }", "@Test\r\n\tvoid testSize2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.append(1);\r\n\t\ttest.append(2);\r\n\t\ttest.append(3);\r\n\t\ttest.append(4);\r\n\t\ttest.append(5);\r\n\t\ttest.append(6);\r\n\t\ttest.append(7);\r\n\t\ttest.append(8);\r\n\t\ttest.append(9);\r\n\t\ttest.append(10);\r\n\t\ttest.append(11);\r\n\t\tint output = test.size();\r\n\t\tassertEquals(15, output);\r\n\t}", "@Test\n public void testSize() {\n System.out.println(\"size\");\n al.add(1);\n assertEquals(1, al.size());\n }", "@Test\r\n\tpublic void testSize() {\r\n\t\tAssert.assertEquals(15, list.size());\r\n\t}", "@Test\n public void testSize() {\n testAdd();\n assertEquals(9, list1.size());\n }", "public void addValidRecord() {\r\n recordCount++;\r\n }", "private void testAddAtIndex(){\n System.out.println(\"------ TESTING : add(int index, int element) ------\");\n try{\n // The insertion will add values to the front\n // the sequence should be iSize-1....,1,0\n for(int i = 0; i < iSize ; i++){\n if(!iTestList.add(0,i))\n throw new RuntimeException(\"FAILED -> add(index,element) not working correctly\");\n }\n // we should test the out of edge cases\n // if we try the following code and the return value is true or if the\n // program crashes then there is a problem\n if(iTestList.add(iSize+10, 999 )){\n throw new RuntimeException(\"FAILED -> index should not be > SIZE\");\n }\n if(iTestList.add(-2,999 )){\n throw new RuntimeException(\"FAILED -> index should not be < 0\");\n }\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "@Test\r\n\tpublic void testSize() {\r\n\t\ttestArray = new ArrayBasedList<String>();\r\n\t\tassertEquals(0, testArray.size());\r\n\t\ttestArray.add(\"hi\");\r\n\t\ttestArray.add(\"hey\");\r\n\t\ttestArray.add(\"hello\");\r\n\t\tassertEquals(3, testArray.size());\r\n\t}", "@Test\r\n\tpublic void addFeedbackTest() {\n\t\tassertNotNull(\"Check if there is valid Feedback arraylist to add to\", feedbackList);\r\n\t\t// After feedback is added Feedback list size should increase - normal\r\n\t\tfeedbackList.add(fb1);\r\n\t\tassertEquals(\"Check that Feedback arraylist size is 1\", 1, feedbackList.size());\r\n\t\t// Then check if correct Feedback was added\r\n\t\tassertSame(\"Check that Feedback is added\", fb1, feedbackList.get(0));\r\n\t}", "public void addOccurence() {\n\t\tcount = count + 1;\n\t}", "private int getPlayerCounter_CheckForOrderValidity() {\r\n\t\tif ( playerList.size() <= playerCounter)\r\n\t\t\tplayerCounter = 0;\r\n\t\treturn playerCounter;\r\n\t}", "@Test\n public void testAdd() {\n list1.add(0, 11.25);\n list1.add(1, 12.25);\n list1.add(2, 13.25);\n list1.add(3, 14.25);\n list1.add(4, 15.25);\n list1.add(5, 17.25);\n list1.add(6, 18.25);\n list1.add(7, 19.25);\n list1.add(3, 16.25);\n assertEquals(16.25 , list1.get(3), 0);\n assertEquals(14.25 , list1.get(4), 0);\n assertEquals(15.25, list1.get(5), 0);\n assertEquals(9, list1.size());\n }", "public void addCount()\n {\n \tcount++;\n }", "private void assertEqual(long count, long size) {\n\t\t\n\t}", "@Test\n public void testAdd_Size() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.add(9);\n int expResult = 5;\n\n assertEquals(expResult, baseList.size());\n }", "@Test\r\n\tpublic void testAdd() {\r\n\t\tlist.add(new Munitions(23, 24, \"cuprum\"));\r\n\t\tAssert.assertEquals(16, list.size());\r\n\t\tAssert.assertTrue(list.get(15).equals(new Munitions(23, 24, \"cuprum\")));\r\n\t}", "@Test\n public void addToList(){\n List<Float> list = new ArrayList<>();\n list.add(1f);\n list.add(2f);\n list.add(3f);\n list.add(4f);\n\n assertEquals(4,list.size());\n\n list.add(5f);\n\n assertEquals(5,list.size());\n }", "@Test\n public void testAddAll_int_Collection_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n instance.addAll(1, c);\n\n int expResult = 9;\n int result = instance.size();\n assertEquals(expResult, result);\n\n }", "@Test\n public void getSizeOfList() {\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n list.add(3);\n list.add(4);\n\n assertEquals(4, list.size());\n }", "@Test\r\n\tvoid testSize3() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\tint output = test.size();\r\n\t\tassertEquals(8, output);\r\n\t}", "@Test\n public void testPersistedSegmentCount_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n int expResult = 2;\n int result = instance.persistedSegmentCount();\n assertEquals(expResult, result);\n\n }", "private void testSize() {\n init();\n assertTrue(\"FListInteger.size(l0)\", FListInteger.size(l0) == 0);\n assertTrue(\"FListInteger.size(l1)\", FListInteger.size(l1) == 1);\n assertTrue(\"FListInteger.size(l2)\", FListInteger.size(l2) == 2);\n assertTrue(\"FListInteger.size(l3)\", FListInteger.size(l3) == 3);\n }", "public static void addFailCount(int count)\r\n\t{\r\n\t\tsynchronized(keywords)\r\n\t\t{\r\n\t\t\tfailCount += count;\r\n\t\t}//sync\r\n\t}", "public void testAdd() {\r\n assertEquals(0, list.size());\r\n list.add(\"A\");\r\n assertEquals(1, list.size());\r\n list.add(\"B\");\r\n assertEquals(2, list.size());\r\n assertEquals(\"B\", list.get(1));\r\n\r\n }", "public static boolean completeCheck(ArrayList<Integer> aList) {\n\t\tif (aList.size() == Utils.SIZE) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public void addCount() {\n \t\tdupCount++;\n \t}", "@Test\n public void isEmpty() {\n assertTrue(myList.isEmpty());\n\n //given\n myList.add(0);\n\n //then\n assertFalse(myList.isEmpty());\n }", "private void checkIfArrayFull() {\n\n if(this.arrayList.length == this.elementsInArray) {\n size *= 2;\n arrayList = Arrays.copyOf(arrayList, size);\n }\n }", "private int sizeOfList(Student [] list) {\r\n\t\t\r\n\t\tint size = 0;\r\n\t\tStudent sizechecker;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\twhile (true) {\r\n\t\t\t\t\r\n\t\t\t\tsizechecker = list[size];\r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) { \r\n\t\t \r\n\t\t}\r\n\t\t\r\n\t\treturn size;\r\n\t}", "void incrementAddedCount() {\n addedCount.incrementAndGet();\n }", "@Test\n public void testPersistedSegmentCount() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n int expResult = 0;\n int result = instance.persistedSegmentCount();\n assertEquals(expResult, result);\n\n }", "private boolean checkStock(){\n int i;\n int inventorySize = inventory.size();\n int count = 0;\n for(i = 0; i < inventorySize; i++){\n count = count + inventory.get(i).getStock();\n\n }\n //System.out.println(\"Count was: \" + count);\n if(count < 1){\n return false;\n }else{\n return true;\n }\n }", "@Override\n public final boolean add(final Integer element) {\n // First, check to see that the array can support another element\n ensureCapacity(size);\n // Add the element to the next available slot\n arrayList[size++] = element;\n return true;\n }", "private void modificationCheck() {\n if (this.expectedMod != modCount) {\n throw new ConcurrentModificationException(\"The Simple Array List was changed its structure!\");\n }\n }", "private static boolean checkOrderList() {\n if (size != MainGUI.orderList.size()) {\n size = MainGUI.orderList.size();\n return true;\n }\n\n return false;\n }", "@Test\n\tpublic void testAdd(){\n\t\tArrayIntList list = buildList(5);\n\t\tassertEquals(5, list.intCol.size());\n\t}", "@Test\r\n\tvoid testSize() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\tint output = test.size();\r\n\t\tassertEquals(10, output);\r\n\t}", "private static void add() {\n\tcount.incrementAndGet();\n}", "@Test\n public void remove() {\n testList.add(42);\n testList.remove(42);\n assertEquals(0, testList.count());\n }", "public int listSize(){\r\n return counter;\r\n }", "@Test\n public void testAddAll_int_Collection_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n instance.addAll(1, c);\n\n List expResult = Arrays.asList(3, 1, 2, 3, 2, 3, 2, 3, 2);\n\n for (int i = 0; i < expResult.size(); i++) {\n assertEquals(expResult.get(i), instance.get(i));\n }\n }", "@Test\n public void validAdd1() {\n assertEquals(i3, isl.get(2));\n\n //checks the amount of ingredient 4\n assertEquals(2.39, ((Ingredient) isl.get(3)).amountNeed, 0);\n assertEquals(1.01, ((Ingredient) isl.get(3)).amountHave, 0);\n\n //add an ingredient that is already present in the list\n //the amount should be added to the current amount 2.39 + 0.45 = 2.84\n //ignores the fact that category and unit don't match\n assertFalse(isl.add(new Ingredient(\"vANiLle\", \"niks\", 0.45, 0.69, \"none\")));\n assertEquals(2.84, ((Ingredient) isl.get(3)).amountNeed, 0.00001);\n assertEquals(1.7, ((Ingredient) isl.get(3)).amountHave, 0.00001);\n assertEquals(\"kruiden\", ((Ingredient) isl.get(3)).category);\n assertEquals(Unit.GRAMS, ((Ingredient) isl.get(3)).unit);\n\n //add a new ingredient and check if it's added correctly\n assertTrue(isl.add(new Ingredient(\"cookies\", \"yum\", 3, 4, \"none\")));\n assertEquals(\"cookies\", isl.get(5).name);\n assertEquals(\"yum\", ((Ingredient) isl.get(5)).category);\n assertEquals(3, ((Ingredient) isl.get(5)).amountNeed, 0);\n assertEquals(4, ((Ingredient) isl.get(5)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl.get(5)).unit);\n }", "@Test\n public void testAdd_After_Add() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.add(3);\n instance.add(9);\n int expResult = 3;\n\n assertEquals(expResult, baseList.indexOf(9));\n }", "public boolean add( T element )\n {\n // THIS IS AN APPEND TO THE LOGICAL END OF THE ARRAY AT INDEX count\n if (size() == theArray.length) upSize(); // DOUBLES PHYSICAL CAPACITY\n theArray[ count++] = element; // ADD IS THE \"setter\"\n return true; // success. it was added\n }", "@Test(expected = ListIndexOutOfBoundsException.class)\r\n\tpublic void testExceptionAdd() throws ListIndexOutOfBoundsException\r\n\t{\r\n\t\tthreeElementsInOrder.add(5, 8);\r\n\t}", "@Test\r\n\tpublic void testAddStall() {\n\t\tassertNotNull(\"Test if there is stall arraylist to add to\", stall);\r\n\r\n\t\t// Given an empty list, after adding 1 stall, the size of the list is 1\r\n\t\tC206_CaseStudy.addStall(stall, s1);\r\n\t\tassertEquals(\"Test if that stall arraylist size is 1\", 1, stall.size());\r\n\r\n\t\t// The stall just added is as same as the first stall of the list\r\n\t\tassertSame(\"Test that stall is added same as first item of the list\", s1, stall.get(0));\r\n\r\n\t\t// Add another stall. Test if the size of the list is 2?\r\n\t\tC206_CaseStudy.addStall(stall, s2);\r\n\t\tassertEquals(\"Test that stall arraylist size is 2\", 2, stall.size());\r\n\t\t\r\n\t\t// Test that a repeated stall id cannot be added.\r\n\t\tC206_CaseStudy.addStall(stall, s2);\r\n\t\tassertEquals(\"Test that stall arraylist size is 2\", 2, stall.size());\r\n\t\t\r\n\t\t// The stall just added is as same as the second stall of the list\r\n\t\tassertSame(\"Test that stall is added same as second item of the list\", s2, stall.get(1));\r\n\r\n\t\t//Test if the stall list can add stall 10\r\n\t\tStall_Info s3 = new Stall_Info(3, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\t\tStall_Info s4 = new Stall_Info(4, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\t\tStall_Info s5 = new Stall_Info(5, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\t\tStall_Info s6 = new Stall_Info(6, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\t\tStall_Info s7 = new Stall_Info(7, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\t\tStall_Info s8 = new Stall_Info(8, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\t\tStall_Info s9 = new Stall_Info(9, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\t\tStall_Info s10 = new Stall_Info(10, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\t\tStall_Info s11 = new Stall_Info(10, \"Malay Food\", \"06-09-2021\", \"test\");\r\n\r\n\t\tC206_CaseStudy.addStall(stall, s3);\r\n\t\tC206_CaseStudy.addStall(stall, s4);\r\n\t\tC206_CaseStudy.addStall(stall, s5);\r\n\t\tC206_CaseStudy.addStall(stall, s6);\r\n\t\tC206_CaseStudy.addStall(stall, s7);\r\n\t\tC206_CaseStudy.addStall(stall, s8);\r\n\t\tC206_CaseStudy.addStall(stall, s9);\r\n\t\tC206_CaseStudy.addStall(stall, s10);\r\n\t\tC206_CaseStudy.addStall(stall, s11);\r\n\t\t\r\n\t\t//Test if the stall list can add stall 10\r\n\t\tassertEquals(\"Test that stall arraylist size is 10?\", 10, stall.size());\r\n\t\t\r\n\t\t//Test after stall 11 have been block, the stall list is still 10\r\n\t\tassertEquals(\"Test that stall arraylist size is 10?\", 10, stall.size());\r\n\t\t\r\n\t}", "@Test\r\n\tpublic void testAddE() {\r\n\t\tassertEquals(0, ll.size());\r\n\t\tassertTrue(ll.isEmpty());\r\n\t\t\r\n\t\tassertTrue(ll.add(t5));\r\n\t\tassertEquals(1, ll.size());\r\n\t\tassertEquals(t5, ll.get(0));\r\n\t\t\r\n\t\tassertTrue(ll.add(t4));\r\n\t\tassertEquals(2, ll.size());\r\n\t\tassertEquals(t5, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\t\r\n\t\tassertTrue(ll.add(t3));\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t5, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\tassertEquals(t3, ll.get(2));\r\n\t\t\r\n\t\tassertFalse(ll.add(null));\r\n\t\tassertFalse(ll.add(t3));\r\n\t\ttry {\r\n\t\t\tll.get(-1);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tll.get(3);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\t}", "@Test\n public void adding_item_to_menu_should_increase_menu_size_by_1_Failure_Scenario(){\n\n int initialMenuSize = restaurant.getMenu().size();\n restaurant.addToMenu(\"Sizzling brownie\",319);\n assertEquals(initialMenuSize-1,restaurant.getMenu().size());\n System.out.println(\"Will decrease Instead of adding\");\n }", "@Test\n public void Board_creteHouseAndStoreArray_shouldCreateArrayList()\n {\n int actual = 0;\n Iterator<Integer> iterator = sut.getHousesAndStores();\n int expected = sut.getBoardRows()*sut.getBoardHousesPerSide() + sut.getStoreSize();\n while(iterator.hasNext())\n {\n iterator.next();\n actual++;\n }\n assertEquals(expected,actual);\n }", "@Test\n public void insertarAerolineaEnArrayList() {\n int tamanio = AerolineasControlador.listaAerolineas.size();\n Aerolinea aerolinea = new Aerolinea(\"47FS\",\"Air Europa\",\"70\",\"MAdrid\",\"4672339U\");\n AerolineasControlador.listaAerolineas.add(aerolinea);\n assertEquals(tamanio + 1,AerolineasControlador.listaAerolineas.size());\n }", "public int addItemsNotFull ( Item... items ) {\n\t\tint added_count = 0;\n\t\tfor ( int i = 0; i < items.length; i++ ) {\n\t\t\tfor ( int j = 0; j < getPages ( ).length; j++ ) {\n\t\t\t\tif ( !getPage ( j ).isFull ( ) ) {\n\t\t\t\t\tgetPage ( j ).addItem ( items[ i ] );\n\t\t\t\t\tadded_count++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn added_count;\n\t}", "@Override\n public boolean add(T e) {\n if (numElements == maxElements) {\n doubleCapacity();\n }\n\n // Add element\n elements[numElements++] = e;\n return true;\n }", "public static void putPrincipleExample(List<? super Integer> list, int count)\r\n {\r\n for (int i = 0; i < count; ++i)\r\n list.add(i);\r\n }", "void add(int list) {\n\t\t\n\t\t// check if element can be added to the queue\n\t\tif (!canPush)\n\t\t\tthrow new IllegalStateException(\"Queue capacity is excided!\");\n\t\t\n\t\t// add element into the cell push-pointer points to and shift pointer\n\t\tqueue[qPush++] = list;\n\t\t\n\t\t// set poll-flag, cuz there's now at least one element in the queue\n\t\tcanPoll = true;\n\t\t\n\t\t/*\n\t\t * If poll pointer went beyond array bounds - return it to the first position\n\t\t */\n\t\t\n\t\tif (qPush == queue.length)\n\t\t\tqPush = 0;\n\t\t\n\t\t/*\n\t\t * If push pointer now points to the poll pointer - then queue is full\n\t\t * Set flag\n\t\t */\n\t\t\n\t\tif (qPush == qPoll)\n\t\t\tcanPush = false;\n\t}", "private void arraySum(MyArrayList myArrayList, Results results) {\r\n int old_sum = myArrayList.sum();\r\n myArrayList.insertSorted(511);\r\n int new_sum = myArrayList.sum();\r\n if(old_sum < new_sum) {\r\n results.storeNewResult(\"ArraySum test case: PASSED\");\r\n }\r\n else { \r\n results.storeNewResult(\"ArraySum test case: FAILED\");\r\n }\r\n }", "private void testSize() {\n System.out.println(\"------ TESTING: size() ----- \");\n System.out.println(\"Expected: \" +iSize);\n System.out.print(\"Returned: \");\n try{\n if(iTestList.size() != iSize)\n throw new RuntimeException(\"FAILED -> test size not matching\");\n else\n System.out.print(iTestList.size());\n }catch(RuntimeException e){\n System.out.print(e.getMessage());\n }\n System.out.print(\"\\n\");\n }", "@Test\n public void testSize_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n int expResult = 6;\n\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n long result = instance.size();\n assertEquals(expResult, result);\n\n }", "public int checkEmpty() {\n\t\treturn (slist.checkEmpty());\n\n\t}", "public int check(){\r\n\r\n\treturn count ++;\r\n\t\r\n}", "public boolean isFull()\n { \n return count == elements.length; \n }", "@Test\n public void AfterAddingDuplicatetheSizeShouldBeOne() throws MySetException {\n set.add(1);\n assertThat(set.size(), is(1));\n }", "@Test\n public void nelioMuodostuu() {\n ArrayList lista=this.tetrimino.palautaKuvio();\n assertEquals(lista.size(), 4);\n \n }", "@Test\n public void testSize() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n int expResult = 4;\n\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n\n long result = instance.size();\n assertEquals(expResult, result);\n }", "@Test\n public void testAddAll_int_Collection_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n instance.addAll(1, c);\n\n int expResult = 5;\n int result = instance.size();\n assertEquals(expResult, result);\n\n }", "private static void testAdd(ArrayList list, int[] content) {\n System.out.print(\"Adding to the list: \");\n for (int index = 0; index < content[index]; index++) {\n list.addToEnd(content);\n } // end for\n System.out.println();\n displayList(list);\n }", "@Test\n public void testAddAll_int_Collection_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.addAll(1, c);\n assertEquals(expResult, result);\n\n }", "private int getAmountOfSuccessorsAndRemoveThem(PhoneForward pf, List<PhoneForward> list, int currentCount) {\n for (PhoneForward value : list) {\n if (value.getOwnNumber().equals(pf.getTargetNumber())) {\n list.remove(value);\n currentCount++;\n return getAmountOfSuccessorsAndRemoveThem(value, list, currentCount);\n }\n }\n return currentCount;\n }", "private boolean mustAddElement(int element, List<Integer> featuresCombination)\n\t{\n\t\treturn featuresCombination.size() < maxRuleSize && featuresCombination.get(featuresCombination.size() - 1) < element;\n\t}", "@org.junit.Test(timeout = 10000)\n public void testEmptyList_add41324() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyList_add41324__5 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyList_add41324__5, 0);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedFoos.size()) == (foos.size())));\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n }", "private void updateExpectedTotalOffices() {\n mExpectedTotalOffices++;\n }", "@Test\n public void whenAddOneHundredElement() {\n String testWord = \"Bong!\";\n for (int i = 0; i < 100; i++) {\n link.add(testWord);\n }\n assertThat(link.getSize(), is(100));\n }", "public boolean hasMoreElements() {\r\n \t\tif(numItems == 0 || currentObject == numItems) {\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\treturn true;\r\n \t}", "boolean isListRemainingEmpty();", "@Test\r\n\tpublic void testAddAllInt() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 4, \"ferrum\"));\r\n\t\tsample.add(new Munitions(10, 5, \"ferrum\"));\r\n\t\tsample.addAll(1, list);\r\n\t\tAssert.assertEquals(17, sample.size());\r\n\t\tAssert.assertTrue(sample.get(0).equals(new Munitions(2, 4, \"ferrum\")));\r\n\t\tAssert.assertTrue(sample.get(1).equals(list.get(0)));\r\n\t\tAssert.assertTrue(sample.get(16).equals(new Munitions(10, 5, \"ferrum\")));\r\n\t}", "private void ensureCapacity(int index) {\n\t\t\tint overflow = index - list.size();\n\t\t\twhile (overflow-- >= 0) {\n\t\t\t\tlist.add(null);\n\t\t\t}\n\t\t}", "@Test\n\tpublic void testContains() {\n\t\tHeap heap = new Heap(testArrayList.length);\n\t\theap.build(testArrayList);\n\t\tassertTrue(heap.contains(33));\n\t\tassertFalse(heap.contains(1));\n\t}", "@Test\r\n\tpublic void testAddChromebook() {\n\t\tassertNotNull(\"Test if there is valid Chromebook arraylist to add to\", chromebookList);\r\n\r\n\t\t// No.2 - size 1\r\n\t\tResourceCentre.addChromebook(chromebookList, cb1);\r\n\t\tassertEquals(\"Test if that Chromebook arraylist size is 1?\", 1, chromebookList.size());\r\n\r\n\t\t// No.2 - same item added, size 1\r\n\t\tassertSame(\"Test that Chromebook is added same as 1st item of the list?\", cb1, chromebookList.get(0));\r\n\r\n\t\t// No.3 - size 2\r\n\t\tResourceCentre.addChromebook(chromebookList, cb2);\r\n\t\tassertEquals(\"Test that Chromebook arraylist size is 2?\", 2, chromebookList.size());\r\n\r\n\t\t// No.3 - same item added, size 2\r\n\t\tassertSame(\"Test that Chromebook is added same as 2nd item of the list?\", cb2, chromebookList.get(1));\r\n\t\t\n\t}", "static int getCapacity(List al) throws Exception {\n Field field = ArrayList.class.getDeclaredField(\"elementData\");\n field.setAccessible(true);\n return ((Object[]) field.get(al)).length;\n }", "@Test\r\n\tpublic void testAddIntE() {\r\n\t\tassertEquals(0, ll.size());\r\n\t\tassertTrue(ll.isEmpty());\r\n\r\n\t\t// valid additions\r\n\t\tll.add(0, t3);\r\n\t\tassertEquals(1, ll.size());\r\n\t\tll.add(0, t2);\r\n\t\tassertEquals(2, ll.size());\r\n\t\tll.add(2, t4);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertFalse(ll.isEmpty());\r\n\r\n\t\t// invalid additions\r\n\t\ttry {\r\n\t\t\tll.add(-1, t1);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(4, t5);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(0, t3);\r\n\t\t\tfail();\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(0, null);\r\n\t\t\tfail();\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\t}", "@Test\r\n public void testSize() {\r\n Grocery entry1 = new Grocery(\"Mayo\", \"Dressing / Mayo\", 1, 2.99f, 1);\r\n\r\n assertEquals(0, instance.size());\r\n\r\n instance.add(entry1);\r\n\r\n // Test increment\r\n assertEquals(1, instance.size());\r\n\r\n assertTrue(instance.remove(entry1));\r\n\r\n // Test decrement\r\n assertEquals(0, instance.size());\r\n }", "@Override\n public int size() {\n return count;\n }", "@Override\n public int size() {\n return count;\n }", "@Test\n\tpublic void whenListHaveTwoEmptyStringThenReturnTwo(){\n\t\tassertEquals(s1.getEmptyElementCount(data), 2);\n\t}", "public void testCount()\n\t{\n\t\tinfo.append(a1);\n\t\tinfo.append(a2);\n\t\tinfo.append(a3);\n\t\tassertEquals(3,info.getSynonymsCount());\n\t}", "@Test\n public void find_redundant_interaction() {\n list1.add(1);\n list1.add(2);\n verify(list1, Mockito.times(2)).add(Mockito.anyInt());\n verifyNoMoreInteractions(list1);\n\n //List<Integer> list2 = Mockito.mock(List.class);\n list2.add(1);\n list2.add(2);\n verify(list2, Mockito.times(2)).add(Mockito.anyInt());\n verify(list2, Mockito.never()).add(3);\n verifyNoMoreInteractions(list2);\n }", "@Test\n public void canAddBedroomToArrayList() {\n hotel.addBedroom(bedroom1);\n assertEquals(5, hotel.checkNumberOfBedrooms());\n }", "private boolean ifFull() {\n return items.length == size;\n }", "public void addReceived() {\n this.indexExpected++;\n }", "@Override\n public int size() {\n return list.size();\n }", "public void sanityCheckNumNodes() {\n\t\tint sanity = viewedPos.sanityCheckGetNumberOfNodes();\n\t\tif(sanity != numPosRecorded) {\n\t\t\tSystem.err.println(\"ERROR: the number of nodes in the tree is not equal to the number of nodes added. #Added: \" + numPosRecorded + \" number received: \" + sanity);\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public void update(int count){\n\t\tthis.count += count;\n\n\t\tif(this.count >= totalCount)\n\t\t\tachieved = true;\n\t}" ]
[ "0.7133269", "0.70363283", "0.6839238", "0.6748397", "0.67045826", "0.66580766", "0.6615714", "0.6466357", "0.645703", "0.64291847", "0.6382717", "0.63514173", "0.63464516", "0.63426", "0.6258122", "0.6204918", "0.6191966", "0.6127758", "0.6091697", "0.60857767", "0.60730463", "0.6066273", "0.60611486", "0.6058635", "0.60562783", "0.6048584", "0.6043199", "0.6024577", "0.60176337", "0.60112244", "0.5991793", "0.59743863", "0.5964857", "0.5948229", "0.59409416", "0.58908194", "0.58624446", "0.58616775", "0.5848188", "0.5837492", "0.5829141", "0.5826927", "0.58164537", "0.5814284", "0.58125603", "0.5811366", "0.5773779", "0.5768329", "0.57597584", "0.5727489", "0.572567", "0.570961", "0.57007957", "0.5695484", "0.5692796", "0.56732476", "0.5669051", "0.5654324", "0.5649533", "0.5648567", "0.5648201", "0.56477803", "0.56476027", "0.5646466", "0.5645316", "0.5638709", "0.56295085", "0.5608442", "0.5604725", "0.559889", "0.559299", "0.5591177", "0.55898714", "0.5581124", "0.55760616", "0.5575811", "0.5571926", "0.5570145", "0.55686766", "0.55626917", "0.55615467", "0.554921", "0.5546249", "0.55435663", "0.55418575", "0.55370265", "0.5536047", "0.55340976", "0.55329394", "0.5532716", "0.5532716", "0.5524454", "0.5523508", "0.55233926", "0.5522563", "0.5522005", "0.5519194", "0.55184937", "0.5513833", "0.54898775" ]
0.6544222
7
Tests count to see if the count could be more than 10.
@Test void testCount2() { SimpleList test = new SimpleList(); test.add(1); test.add(2); test.add(3); test.add(4); test.add(5); test.add(6); test.add(7); test.add(8); test.add(9); test.add(10); test.add(11); int output = test.count(); assertNotEquals(10, output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean limitHit() {\r\n return (count >= maxCount);\r\n }", "public static boolean exceedsMaxCount() {\n final long maxTestCount = HostConfig.getMaxTestCount();\n return (maxTestCount > 0) && (mTestCount >= maxTestCount);\n }", "protected void checkThreshold(int count) throws IOException\n {\n if (!thresholdExceeded && (written + count > threshold))\n {\n thresholdReached();\n thresholdExceeded = true;\n }\n }", "private boolean caughtTwenty(){\n\t\treturn (theTrainer.getPokedex().size() >= 20);\n\t}", "private static boolean multipleOfTen(double direction) {\r\n\t\treturn (direction % 10)==0; \r\n\t}", "private boolean caughtEmAll(){\n\t\tint howMany = 1;\n\t\tArrayList<Pokemon> pokedex = theTrainer.getPokedex();\n\t\tCollections.sort(pokedex);\n\t\tfor(int i = 0; i < pokedex.size() - 1; i++){\n\t\t\tif(pokedex.get(i+1).getPokemonID() != pokedex.get(i).getPokemonID()){\n\t\t\t\thowMany++;\n\t\t\t}\n\t\t}\n\t\treturn (howMany == 10);\n\t}", "boolean hasMaxCount();", "@SuppressWarnings(\"unused\")\r\n\tpublic static void checkNumberOfCoffeeDispensers() {\r\n\t\tif (NUMBEROFCOFFEEDISPENSER > 5) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Danger! A person who probably likes 42 has manipulated the interface above its limits.\\n\\nYou can get more rooms for money. ;-)\\n\\nprogram will terminate...\", \"Warning Number Of CoffeeDispensers\",\r\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE, ICONWARNING);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}", "public boolean hasLimit() {\n return result.hasLimit();\n }", "public void checkErrorLimit(int increment) {\n errorCounter += increment;\n if (errorCounter >= AppyAdService.getInstance().maxErrors()) {\n setAdProcessing(false);\n // todo ????\n }\n }", "@Override\n public boolean isFull() {\n return this.count() == 5;\n }", "@Test\n public void shouldHaveNoMoreThan1000Books() {\n\n }", "private boolean requestLimitReached() {\n\t\treturn (requestCount >= maximumRequests);\n\t}", "public boolean makes10(int a, int b) {\n return a == 10 || b == 10 || a + b == 10;\n }", "public static boolean has10() {\n return getVersion() >= Build.VERSION_CODES.GINGERBREAD_MR1;\n }", "public static boolean checkdigitsequal() {\n int count2=0;\n for (a = 0; a < 10; a++) {\n if (digits[a] == 0)\n {\n count2++;\n if(count2==10)return true;\n }\n else return false;\n }\n return false;\n }", "private void assertEqual(long count, long size) {\n\t\t\n\t}", "protected void testLessThanMaxLots () throws OutsideMaxLotsException\n {\n if (lots.size() >= MAX_LOTS)\n throw new OutsideMaxLotsException();\n }", "boolean hasCount();", "public boolean hasLimit() {\n return instance.hasLimit();\n }", "@Test\n public void testInvokeAbsoluteCountValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n long result = CSJmxStats.invokeAbsoluteCountValueMethod();\n //Result should be 5 or greater because it will not reset\n assertEquals(true, result >= count);\n }", "@Test(timeout = 500)\n\tpublic void testGetNthPrime() {\n\t\tAssert.fail();\n\t}", "@Test\n public void cantAddMoreThanCapacity(){\n for (int i = 0; i<12; i++){\n library.addBook(book);\n }\n assertEquals(10, library.bookCount());\n }", "public boolean validate() {\n int res = 0;\n for (PostDTO p : postList) {\n if (p.getTmpRating() != null) {\n res += p.getTmpRating().intValue();\n }\n }\n if (res <= 10 && res >= 0) {\n return true;\n }\n return false;\n }", "private boolean hasNumberThreshold() {\r\n return entity.getActualNumber() < entity.getTheoreticalNumber();\r\n }", "public boolean hasMore() {\n return numLeft.compareTo(BigInteger.ZERO) == 1;\n }", "boolean testCountAndSay(Tester t) {\n\t\treturn\n\t\tt.checkExpect(s.countAndSay(1), \"1\") &&\n\t\tt.checkExpect(s.countAndSay(3), \"21\") &&\n\t\tt.checkExpect(s.countAndSay(4), \"1211\");\n\t}", "@Override\r\n\tint check_sweetness() {\n\t\treturn 10;\r\n\t}", "public boolean hasMore()\n\t{\n\t\treturn numLeft.compareTo(BigInteger.ZERO) == 1;\n\t}", "public void check() {\n\t\t\ttry {\n\t\t\t\twhile (num < MAX) {\n\t\t\t\t\tMessage msg = Message.obtain();\n\t\t\t\t\tlong workingNum = num;\n\t\t\t\t\tif (isPrime(workingNum)) {\n\t\t\t\t\t\tif (workingNum == 1)\n\t\t\t\t\t\t\tworkingNum = 2;\n\t\t\t\t\t\tmsg.obj = workingNum;\n\t\t\t\t\t\thandler.sendMessage(msg);\n\n\t\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\t}\n\n\t\t\t\t\tnum += 2;\n\n\t\t\t\t}\n\n\t\t\t\tMessage msg = Message.obtain();\n\t\t\t\tLog.d(TAG, \"Counter has reached Max\");\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(\"max\", \"Counter has reached Max\");\n\t\t\t\tmsg.setData(bundle);\n\t\t\t\thandler.sendMessage(msg);\n\n\t\t\t\t// If the Thread is interrupted.\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tLog.d(TAG, \"Thread interrupted\");\n\t\t\t}\n\n\t\t}", "boolean isMore();", "protected void checkRowNumLimit(PmTableImpl<PmBean<?>, ?> pm, long numOfItemsToValidate) {\n if (numOfItemsToValidate > itemNumWarningLimit) {\n LOG.warn(pm.getPmRelativeName() + \": Performance warning - In memory validation for \" + numOfItemsToValidate + \" row PMs started.\");\n }\n }", "protected abstract boolean reachedContractLimit(int size);", "@Test(priority = 7, description=\"Check for remaining cards field, with bad value to Draw\", dependsOnGroups = \"StatusCheck\")\n public void drawUsingBadCountValue() throws IOException, URISyntaxException {\n response = DeckOfCardsApi.drawCardsFromDeckUsingGet(\"https://deckofcardsapi.com/api/deck/\", deckID, \"-1\");\n jsonObject = DeckOfCardsApi.getJsonData(response);\n\n Assert.assertEquals(DeckOfCardsApi.getJsonValue(jsonObject, jkey_remaining), \"50\", \"Expected to Fail, Seems like an error in the API; When given -n, n is a number, All Cards are deleted but only n card remains.\");\n }", "public Boolean verifyBusinessID(int id, int count){\n //checks that number entered is more than 0 and less than max\n return !(id > count || id <= 0);\n }", "public boolean removeCount()\n {\n count--;\n if (count <= 0)\n {\n return false;\n }\n else\n {\n \treturn true;\n }\n }", "protected boolean isFinished() {\n return count > maxCount;\n }", "public Boolean isValidCountWildCard() {\r\n\t\tint count = 0;\r\n\t\tfor (RiskCardModel card : lstTradedCards) {\r\n\t\t\tif (card.card_type.equals(\"WILD\")) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (count > 1 ? false : true);\r\n\t}", "@Test\n public void returnMaxNumberOfBetsCanMade(){\n assertEquals(maxNumberOfBets,gameRule.getMaxBetsPerRound());\n }", "private void checkLimit (Connection connection) throws SQLException {\n int checkValeu2 = 2;\n //int checkValeu3 = 3;\n try(ResultSet nrOfInstrumentsRented = checkLimitStmt.executeQuery()){\n while(nrOfInstrumentsRented.next()) {\n System.out.println(\"Count: \" + nrOfInstrumentsRented.getInt(1));\n\n /* //Endast Tester\n if (nrOfInstrumentsRented.getInt(1) == checkValeu2) {\n\n System.out.println(\"Test 1\");\n } else if (nrOfInstrumentsRented.getInt(1) <= checkValeu) {\n System.out.println(\"Test 2\");\n }\n\n */\n\n if(nrOfInstrumentsRented.getInt(1) < checkValeu2){\n System.out.println(\"You have rented \" +\n nrOfInstrumentsRented.getInt(1) + \" instrument(s)\");\n\n rentInstrumentStmt.executeUpdate();\n updateLeaseStmt.executeUpdate();\n System.out.println(\"Instrument has been rented\");\n connection.commit();\n\n } else{\n System.out.println(\"You have already rented 2 instruments\");\n }\n }\n }catch(SQLException e){\n e.printStackTrace();\n connection.rollback();\n }\n }", "public void setErrorcount(int value) {\n this.errorcount = value;\n }", "public boolean gameOver()\r\n {\r\n return enemigos.size() == 10;\r\n }", "private boolean isNormalCountOK(int normalObs, int numNormalReads, int tumorObs) {\n\t\treturn normalObs == 0 || (tumorObs >= 20 && numNormalReads >= 20);\t\t\n\t}", "public boolean hasMore () {\n\t return numLeft.compareTo (BigInteger.ZERO) == 1;\n\t }", "public boolean nearHundred(int n) {\n return (Math.abs(n - 100) <= 10 || Math.abs(n - 200) <= 10);\n}", "private void SevenResourceCheck() {\n\t\tint randomResourceNumber = 0;\n\t\tint resourceCounter = 0;\n\t\tfor (int i = 0; i < robberPlayers.size(); i++) // for loop runs once for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// every player\n\t\t{\n\t\t\tif (robberPlayers.get(i).countResources() >= 7) // If the current\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// than 7 resource\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// cards...\n\t\t\t\tresourceCounter = robberPlayers.get(i).countResources() / 2;\n\t\t\t{\n\t\t\t\tSystem.out.println(\"\\n\" + robberPlayers.get(i).getNickname() + \" lost:\");\n\t\t\t\tfor (int j = 0; j < resourceCounter; j++) {\n\t\t\t\t\trandomResourceNumber = RandomResourceValue(i);\n\t\t\t\t\trobberPlayers.get(i).resources[randomResourceNumber]--;\n\t\t\t\t\tresourceBank.bankReturnResource(randomResourceNumber, 1);\n\t\t\t\t\tSystem.out.print(\" one \" + resourceBank.getResourceName(randomResourceNumber));\n\t\t\t\t} // end of inner for loop\n\t\t\t} // end of inner if statment\n\t\t} // end of for loop\n\t\tSystem.out.println(Arrays.toString(resourceBank.resources));\n\t\t//checkHex(this.getCurrentHex());\n\t}", "@Test\n public void shouldHaveAtLeast100Books() {\n\n }", "boolean hasMore();", "private boolean isWrong() {\n\t\treturn wrongMatches >= 5;\n\t}", "@Override\r\n public Boolean limitInserts(Long id) {\n long limit = 8;\r\n try {\r\n Query query = manager.createQuery(\"select count(n) from \" + Oferta.class.getName() + \" n where id_empresa = :id\");\r\n query.setParameter(\"id\", id);\r\n long result = (Long) query.getSingleResult();\r\n if (result >= limit) {\r\n return false;\r\n }\r\n return true;\r\n } catch (NoResultException ex) {\r\n log.error(ex);\r\n return false;\r\n }\r\n }", "public void setCount(int count)\r\n\t{\r\n\t}", "public void setDesiredCount(Integer desiredCount) {\n this.desiredCount = desiredCount;\n }", "public boolean isWithinLimit() {\n return assumptionsFailed.get() < assumptionLimit;\n }", "@Test\n public void test081() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.button();\n // Undeclared exception!\n try {\n Component component0 = block0.add((Component) errorPage0);\n fail(\"Expecting exception: TooManyResourcesException\");\n \n } catch(TooManyResourcesException e) {\n //\n // Loop has been executed more times than the allowed 100000\n //\n }\n }", "public boolean hasBust() {\n\t\treturn this.hand.countValue().first() > 21;\n\t}", "@Override\n public boolean verifyClientExpectedRst(int clientReceivedRstCount) {\n return clientReceivedRstCount >= MAX_REQUEST_ID - 2;\n }", "public boolean hasLimit() {\n return limit_ != null;\n }", "public boolean makes10(int a, int b) {\n return (a == 10 || b == 10 || a + b == 10);\n}", "public static void main(String[] args) {\n int number = 990;\n boolean result = number > 1000 || number % 10 == 0;\n System.out.println(result);\n }", "public boolean isHasMorePages() {\n\t\treturn (this.skipEntries + this.NUM_PER_PAGE - 1) < this.totalEntries;\n\t}", "public void setCount(int count) {\r\n this.count = count;\r\n }", "public boolean isDeviceLimitExceedErrorMessagePresent() {\r\n\t\treturn isElementPresent(addVehiclesHeader.replace(\"Add Vehicle\", \"Your Site Devices limit exceed.\"), SHORTWAIT);\r\n\t}", "@Test\n\tpublic void bikesAvailable()\n\t{\t\t\n\t\tassertTrue(controller.getReport().getNoOfBikesAvailable() == 1);\n\t}", "public boolean nearHundred(int n) {\n return ((Math.abs(100 - n) <= 10) || (Math.abs(200 - n) <= 10));\n}", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "protected boolean hasNext() {\n\t\treturn (counter + incrValue) < max && (counter + incrValue) > min;\n\t}", "public void setCount(int count)\r\n {\r\n this.count = count;\r\n }", "public void setCount(Integer count) {\r\n this.count = count;\r\n }", "public void setErrorCount(Long errorCount) {\n this.errorCount = errorCount;\n }", "@Test\r\n\tpublic void testSize() {\r\n\t\tAssert.assertEquals(15, list.size());\r\n\t}", "public static int count() {\n\treturn errorCount;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "boolean isSetNumberOfResults();", "public boolean hasBust()\n {\n return getSumOfCards(false) > 21;\n }", "public boolean hasMorePages() {\n int itemsLeft = total - currentIndex;\n\n // If itemsLeft is greater than itemsPerPage, there's still items left.\n return itemsLeft > itemsPerPage;\n }", "@Test\n\tpublic void totalBikes()\n\t{\t\t\n\t\tassertTrue(controller.getReport().getTotalBikes() == 4);\n\t}", "public Boolean CheckLimits(String phoneNumber, int bombAmount)\n {\n Boolean passed = true;\n if (phoneNumber.length() < 9 || phoneNumber.length() > 11)\n {\n passed = false;\n Toast.makeText(getApplicationContext(), \"Invalid phone number. Re-enter valid 10 digit phone number\", Toast.LENGTH_LONG).show();\n return passed;\n }\n if (bombAmount > 100)\n {\n passed = false;\n Toast.makeText(getApplicationContext(), \"Cannot send more than 100 texts at a time\", Toast.LENGTH_LONG).show();\n return passed;\n }\n\n return passed;\n }", "private static boolean verify(int value, int size) {\r\n return size > 0 && size < Integer.SIZE\r\n && Integer.SIZE - Integer.numberOfLeadingZeros(value) <= size;\r\n }", "private boolean endOfProcessingReached(long entityCount) {\n // Special case, -1 means all entities in the corpus\n if (numToProcess == -1) {\n return false;\n } else if (numToProcess == 0) {\n return true;\n } else {\n // check if exceeded or matched the configured max number of entities\n return (entityCount >= numToProcess);\n }\n }", "public boolean checkQuantity(Integer numToRemove) {\n return this.quantity >= numToRemove;\n }", "protected boolean checkRetryCount(MessageDto messageDto, ConsumerQueueDto pre) {\n return pre.getTopicType() == 1 || (pre.getTopicType() == 2 && pre.getRetryCount() > messageDto.getRetryCount());\n }", "private boolean checkStock(){\n int i;\n int inventorySize = inventory.size();\n int count = 0;\n for(i = 0; i < inventorySize; i++){\n count = count + inventory.get(i).getStock();\n\n }\n //System.out.println(\"Count was: \" + count);\n if(count < 1){\n return false;\n }else{\n return true;\n }\n }", "public boolean isThresholdExceeded()\n {\n return (written > threshold);\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public static boolean hasBetweenSixAndNineChars(String password)\r\n {\r\n return (password.length() > 5 && password.length() < 10);\r\n }", "public int check(){\r\n\r\n\treturn count ++;\r\n\t\r\n}", "public boolean isFull(){\n \treturn count==capacity;\n }", "public static void main(String[] args) {\n\tint count = 99 ;\t\n\tint ten = 0 ;\n\tSystem.out.println(\"Counting from 100 to 200\") ; \n\tSystem.out.println(\"Divisible by 5 or 6, but not both\") ;\n\tSystem.out.println(\"_______________________________________\") ;\n\t\t\n\t\t//Display all the numbers between 100 and 200\n\t\tdo {\n\t\t\tif (count % 5 == 0 ^ count % 6 == 0) {\n\t\t\t\tSystem.out.print(count + \" \") ;\n\t\t\t\tten++;\n\t\t\t}//display only 10 per line\n\t\t\tif (ten == 10){\n\t\t\t\tSystem.out.println() ;\n\t\t\t\tten = 0 ;\n\t\t\t}\n\t\t\tcount++ ;\n\t\t} while (count <= 200);\t\n\t\t\t\n\t}", "long countMessageLengthTill(long maxLength) throws IllegalStateException;" ]
[ "0.65338635", "0.6420471", "0.616629", "0.59840065", "0.5945698", "0.5939836", "0.5840989", "0.5840661", "0.58164364", "0.58147436", "0.573338", "0.5712491", "0.56362146", "0.5617981", "0.5610568", "0.55445826", "0.55085", "0.5484081", "0.5439996", "0.54346997", "0.5420233", "0.53868324", "0.5383417", "0.5369509", "0.53682303", "0.535602", "0.53508145", "0.5337608", "0.5334997", "0.5334921", "0.533185", "0.53262883", "0.5322803", "0.53101784", "0.52964926", "0.529435", "0.5274697", "0.5263811", "0.5255867", "0.52527636", "0.5241686", "0.52372456", "0.5234831", "0.52283925", "0.5227668", "0.5227079", "0.5218666", "0.52095425", "0.52046865", "0.5200778", "0.5194179", "0.5191671", "0.5185914", "0.51794785", "0.5166222", "0.5155908", "0.5148792", "0.5145788", "0.5143901", "0.5125938", "0.5123899", "0.51229745", "0.5122323", "0.51173526", "0.51032776", "0.51032776", "0.51032776", "0.5089919", "0.5084994", "0.5084741", "0.5083356", "0.5082547", "0.50784177", "0.5076785", "0.5076785", "0.5076785", "0.5076785", "0.5076785", "0.5076574", "0.5075789", "0.507476", "0.5063637", "0.5061384", "0.5057271", "0.50572675", "0.5054501", "0.5053715", "0.5051685", "0.50489414", "0.5048231", "0.5048231", "0.5048231", "0.5048231", "0.5048231", "0.5048231", "0.5040149", "0.50397116", "0.5039415", "0.5038055", "0.5037819" ]
0.5392105
21
Tests toString to see if the string is empty when there are no elements in the list.
@Test void testToString() { SimpleList test = new SimpleList(); String output = test.toString(); assertEquals("", output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean empty() {\n return s.isEmpty();\n }", "public boolean isEmpty() {\n return strings.isEmpty();\n }", "public boolean empty() {\n\t return s.isEmpty();\n\t}", "@Test\n\tpublic void NotExamtestListToString() {\n\t\t\n\t\tassertEquals(\"[a,b,c]\",listToString(list));\n\t\tassertEquals(\"[a,b,c,aaa,a,a,d,a]\",listToString(list2));\n\t\tassertEquals(\"[]\",listToString(empty));\n\t\tassertEquals(\"[hello]\",listToString(onlyOne));\n\n\t}", "private boolean checkForEmptyString(Object value)\n\t{\n\t\tif (value == null || value.toString().isEmpty()) \n\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean isEmpty() {\r\n\t\treturn this.strings != null ? this.strings.isEmpty() : true;\r\n\t}", "public void testIsEmpty() {\r\n assertTrue( list.isEmpty());\r\n list.add(\"A\");\r\n assertFalse(list.isEmpty());\r\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "@Test\n\tpublic void zeroLength() {\n\t\tString s = \"\";\n\t\tassertTrue(\"Zero length string\", StringUtil.isEmpty(s));\n\t}", "private boolean isEmpty(String str) {\n return (str == null) || (str.equals(\"\"));\n }", "public boolean isEmpty() {\n\t\tString v = getValue();\n\t\treturn v == null || v.isEmpty();\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn size() == 0;\r\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}", "@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}", "@Override\n public boolean isEmpty() { return true; }", "private static boolean isEmpty(CharSequence str) {\n return str == null || str.length() == 0;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn(size() == 0);\n\t}", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "public boolean is_empty() {\n\t\treturn false;\n\t}", "@Override\n public boolean isEmpty()\n {\n return false;\n }", "@Override\n\tpublic boolean isEmpty()\n\t{\n if (list.isEmpty())\n {\n return true;\n } \n else\n {\n return false;\n }\n\t}", "@Override\n\tpublic boolean isEmpty ()\n\t{\n\t\treturn false;\n\t}", "private static boolean isEmpty(CharSequence str) {\n if (str == null || str.length() == 0) {\n return true;\n } else {\n return false;\n }\n }", "public boolean empty() {\n\t\treturn list.size() == 0;\n\t}", "public boolean empty() {\n \tint size = s.size();\n \tfor(int i = 0; i < size; i++) {\n \t\ts2.push(s.pop());\n \t}\n return s2.isEmpty();\n }", "@Override\n\t\t\tpublic boolean isEmpty() {\n\t\t\t\treturn false;\n\t\t\t}", "private static boolean isEmpty(String str) {\n return str == null || str.trim().isEmpty();\n }", "public boolean isEmpty() {\n\t\t\t\t\n\t\treturn length() == 0;\n\t}", "private boolean isEmpty() {\n\t\treturn size() == 0;\n\t}", "public boolean isEmpty() { return true; }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn this.size == 0;\r\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "protected boolean isEmpty(Object obj) {\r\n return (obj == null || obj instanceof String\r\n && ((String) obj).trim().length() == 0);\r\n }", "public boolean empty() {\n return s1.isEmpty();\n }", "public boolean isEmpty() {\n return (this.text == null);\n }", "boolean isListRemainingEmpty();", "public boolean empty() {\n if (list.size() == 0) {\n return true;\n }\n else {\n return false;\n }\n }", "@Override\n public boolean isEmpty() {\n return this.size == 0;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\tif(size() == 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean isEmpty()\n {\n return list.size()<1;\n }", "@Override\npublic boolean isEmpty() {\n\treturn false;\n}", "public boolean isEmpty(){\n\t\tif(list.isEmpty()){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "@Test\n\tpublic void nonEmptyString() {\n\t\tString s = \" H \";\n\t\tassertFalse(\"Non empty string\", StringUtil.isEmpty(s));\n\t}", "boolean canMatchEmptyString() {\n return false;\n }", "private boolean isEmpty(String s) {\n return s == null || \"\".equals(s);\n }", "private void testToString() {\n init();\n assertTrue(\"l0.toString()\", l0.toString().equals(\"[]\"));\n assertTrue(\"l1.toString()\", l1.toString().equals(\"[5]\"));\n assertTrue(\"l2.toString()\", l2.toString().equals(\"[4, 5]\"));\n }", "public boolean isEmpty()\n\t{\n\t\treturn list.isEmpty();\n\t}", "public /*@ pure @*/ boolean isEmpty() {\n return the_list == null;\n }", "public boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "public boolean empty() {\n \treturn s1.empty();\n }", "protected boolean checkEmptyList(){\n boolean emptyArray = true;\n String empty= alertList.get(AppCSTR.FIRST_ELEMENT).get(AppCSTR.NAME);\n if(!empty.equals(\"null\") && !empty.equals(\"\")) {\n emptyArray = false;\n }\n return emptyArray;\n }", "public boolean isEmpty() {\r\n\t\treturn al.listSize == 0;\r\n\t}", "public boolean empty() {\n return list.isEmpty();\n }", "@Test\n public void clearForEmptyList() {\n myList.clear();\n\n //then\n assertTrue(myList.isEmpty());\n assertEquals(\"[]\", myList.toString());\n }", "public boolean isEmpty(){\n\n \treturn list.size() == 0;\n\n }", "@Override\n public boolean isEmpty() {\n return size()==0;\n }", "@Override\n public boolean isEmpty() {\n return this.size==0;\n }", "@Override\r\n public boolean isEmpty() {\r\n return size == 0;\r\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn bst.isEmpty();\n\t}", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn count == 0;\r\n\t}", "public static boolean empty() {\n\n if (list.size() != 0){\n return false;\n }\n return true;\n }", "@Override\n public boolean isEmpty()\n {\n return size == 0;\n }", "public boolean isEmpty()\n {\n return false;\n }", "public boolean isEmpty() {\n return list.isEmpty();\n }", "@Override\n public boolean isEmpty() {\n return false;\n }", "@Override\n public boolean isEmpty() {\n return this.count() == 0;\n }", "@Test\r\n\tpublic void testIsEmpty() {\r\n\t\ttestArray = new ArrayBasedList<String>();\r\n\t\tassertTrue(testArray.isEmpty());\r\n\t\ttestArray.add(\"hi\");\r\n\t\tassertTrue(!testArray.isEmpty());\r\n\t}", "public boolean isEmpty() {\n\t\treturn false;\r\n\t}", "public boolean empty() {\n return s2.isEmpty();\n }", "@Override\n public boolean isEmpty() {\n if (size == 0) {\n return true;\n }\n return false;\n }", "@Override\n public boolean isEmpty() {\n return _size == 0;\n }", "private final boolean emptyVal(String val) {\n return ((val == null) || (val.length() == 0));\n }", "public static boolean isEmptyOrNullString (final String in) {\n\t\treturn StringUtils.EMPTY_STRING.equals(in);\n\t}", "public boolean isEmpty() {\n return true;\n }", "public boolean isEmpty() {\n return false;\n }", "public boolean isEmpty() {\n return false;\n }", "public boolean isEmpty() {\n\t\treturn length == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn length == 0;\n\t}", "public boolean isEmpty() {\n return len == 0;\n }", "public void testToString() {\r\n assertEquals(\"[]\",\r\n list.toString());\r\n list.add(\"A\");\r\n assertEquals(\"[A]\",\r\n list.toString());\r\n list.add(\"B\");\r\n assertEquals(\"[A, B]\",\r\n list.toString());\r\n }", "@Override\n public boolean isEmpty() {\n if (size == 0) {\n return true;\n }\n return false;\n }", "public boolean isEmpty(){\n return this.listSize == 0;\n }" ]
[ "0.7081276", "0.7066315", "0.7038177", "0.7012349", "0.69375455", "0.6873458", "0.68394226", "0.670487", "0.670487", "0.6632122", "0.6619872", "0.66047215", "0.6583343", "0.65815735", "0.65815735", "0.65815735", "0.65815735", "0.65815735", "0.65815735", "0.65815735", "0.65503955", "0.65503955", "0.6547583", "0.6545939", "0.65203255", "0.6520269", "0.6520269", "0.6520269", "0.6520269", "0.6520269", "0.6507946", "0.6507191", "0.6498273", "0.649537", "0.6493269", "0.6488168", "0.6470332", "0.6459642", "0.64502513", "0.6446457", "0.64462465", "0.64407957", "0.6439378", "0.6436722", "0.6436722", "0.6436373", "0.64206874", "0.6413635", "0.6391566", "0.6390787", "0.63829273", "0.6382265", "0.6382146", "0.6380969", "0.63788784", "0.6377342", "0.6371294", "0.6367205", "0.63668317", "0.6364574", "0.6360909", "0.6356692", "0.6356481", "0.6353785", "0.6348019", "0.6344508", "0.6340155", "0.63357586", "0.6321725", "0.63166946", "0.63146156", "0.6311472", "0.6310647", "0.6310647", "0.6310647", "0.6310647", "0.6310647", "0.63088214", "0.6308191", "0.6305991", "0.630596", "0.630306", "0.6302287", "0.63005257", "0.6300033", "0.62986565", "0.62960887", "0.6294727", "0.6291912", "0.62916756", "0.6291162", "0.6280898", "0.628065", "0.628065", "0.6277661", "0.6277661", "0.6271969", "0.62681884", "0.6267664", "0.62613535" ]
0.6838496
7
Test toString to see if spaces are placed after elements.
@Test void testToString2() { SimpleList test = new SimpleList(); test.add(2); String output = test.toString(); assertNotEquals("2 ", output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean spaces() {\r\n return OPT(GO() && space() && spaces());\r\n }", "public static String addSpace(Object o)\r\n/* 100: */ {\r\n/* 101: 96 */ String s = o.toString().trim();\r\n/* 102: 97 */ if (s.isEmpty()) {\r\n/* 103: 98 */ return \"\";\r\n/* 104: */ }\r\n/* 105:100 */ char last = s.charAt(s.length() - 1);\r\n/* 106:101 */ if (\">\".indexOf(last) >= 0) {\r\n/* 107:102 */ return s;\r\n/* 108: */ }\r\n/* 109:104 */ if (\":\".indexOf(last) >= 0) {\r\n/* 110:105 */ return s.trim() + \" \";\r\n/* 111: */ }\r\n/* 112:107 */ if (\".?!\".indexOf(last) >= 0) {\r\n/* 113:108 */ return s + \" \";\r\n/* 114: */ }\r\n/* 115:111 */ return s + \" \";\r\n/* 116: */ }", "private boolean space() {\r\n return CHAR(' ');\r\n }", "private void space() {\n if (wereTokens && !spaceSuppressed) {\n out.print(' ');\n }\n }", "private boolean getReplaceNonBreakingSpace() {\n return false;\n }", "private boolean isOneSpace(final String message) {\n\t\treturn message.contains(\"1 space\"); //$NON-NLS-1$\n\t}", "private boolean isNoSpace(final String message) {\n\t\treturn message.contains(\"0 space\"); //$NON-NLS-1$\n\t}", "private boolean endsWithSpace(String str) {\r\n\t\treturn str.length() != 0 && str.charAt(str.length() - 1) == ' ';\r\n\t}", "public boolean getTrimSpaces();", "public boolean hasSpaces() {\n\t\treturn !divided && points.keySet().size() != QUADTREE_NODE_CAPACITY;\n\t}", "private boolean isSpace() {\n return (char) c == ' ';\n }", "public static boolean stillSpace(char[][] a){\r\n boolean temp = false;\r\n for (int i = 0; i<a.length;i++){\r\n for (int j = 0; j<a[0].length;j++){\r\n if (a[i][j]==' '){\r\n temp = true;\r\n }\r\n }\r\n }\r\n return temp;\r\n }", "private boolean makeSpaceBefore(boolean addSpace){\n int index = ts.index();\n try {\n while(true) {\n if (!ts.movePrevious()){\n return false;\n }\n if (ts.token().id() == NEW_LINE){\n DiffResult diff = diffs.getDiffs(ts, 0);\n if (diff == null || diff.replace == null || diff.replace.hasNewLine()){\n return false;\n }\n } else if (ts.token().id() == PREPROCESSOR_DIRECTIVE){\n return false;\n } else if (ts.token().id() != WHITESPACE){\n replaceSegment(addSpace, index);\n return true;\n }\n }\n } finally {\n ts.moveIndex(index);\n ts.moveNext();\n }\n }", "public boolean hasSpace() {\r\n\t\treturn hasSpace;\r\n\t}", "private boolean checkSpacingTabs(){\r\n\t\tString tmp = \"\";\r\n\t\ttry{ tmp = doc.getText(getCaretPosition()-2,1); }\r\n\t\tcatch(BadLocationException a){};\r\n\t\tSystem.out.println((int)tmp.charAt(0));\r\n\t\tif(tmp.charAt(0) == 9) return true;\r\n\t\telse return false;\r\n\t}", "boolean hasPunctuationToAppend();", "private boolean isEndLineSpace(final String message) {\n\t\treturn message.contains(\"A line should not end with blank space\"); //$NON-NLS-1$\n\t}", "public void spaces() {\n System.out.println(\"\");\n System.out.println(\"\");\n }", "@Override\n protected String stringifySeparator() {\n return \" != \";\n }", "private String addSpaces(String expr) {\n\t\tString output = \"\";\n\t\tString prev = \" \";\n\n\t\tfor(Character c : expr.trim().toCharArray()) {\n\t\t\tif(!areSameType(prev, c.toString()) || isOperator(prev) || \n\t\t\t\t\t(isMatrix(c.toString()) && isMatrix(prev))) \n\t\t\t\toutput += \" \";\n\t\t\toutput += c;\n\t\t\tprev = c.toString();\n\t\t}\n\n\t\treturn output;\n\t}", "public void testShouldAddColonExceptSpace(){\n indentlogic.addText(\"except \\n\");\n assertTrue(indentlogic.shouldAddColon());\n }", "void addSpaces() {\n\t\tSystem.out.print(\" \");\n\t\tfor (int j = 0; j < 3; j++)\n\t\t\tSystem.out.print(\"| \");\n\t\tSystem.out.println(\"|\");\n\t}", "@Override\r\n \tpublic String toString() {\r\n \t\tStringBuilder result = new StringBuilder();\r\n \t\tresult.append('[');\r\n \t\tif(numItems > 0) {\r\n \t\t\tresult.append(items[0].toString());\r\n \t\t\t// We want number of spaces to be equal to numItems - 1\r\n \t\t\tfor(int i=1; i<numItems; i++) {\r\n \t\t\t\tresult.append(' ');\r\n \t\t\t\tresult.append(items[i].toString());\r\n \t\t\t}\r\n \t\t}\r\n \t\tresult.append(']');\r\n \t\treturn result.toString();\r\n \t}", "public void printSpace(){\n\t\tSystem.out.println(\"Current Space: \"+number);\n\t\tSystem.out.print(\"Type: \"+type);\n\t\tSystem.out.print(\"\\nNext Space(s): \");\n\t\tfor(String n: next){\n\t\t\tSystem.out.print(n +\" \");\t\n\t\t}\n\t\tSystem.out.println(\" \");\n\t}", "private void skipBlankSpaces() {\n while (currentIndex < this.data.length) {\n if (!Character.isWhitespace(data[currentIndex])) {\n break;\n }\n currentIndex++;\n }\n }", "private boolean isAllWhitespace(Object obj) {\r\n String str = null;\r\n\r\n if (obj instanceof String) {\r\n str = (String) obj;\r\n }\r\n else if (obj instanceof Text) {\r\n str = ((Text) obj).getText();\r\n }\r\n else {\r\n return false;\r\n }\r\n\r\n for (int i = 0; i < str.length(); i++) {\r\n if ( !isWhitespace( str.charAt( i)))\r\n return false;\r\n }\r\n return true;\r\n }", "private boolean isBlank() {\n\t\tchar currentChar = data[index];\n\t\tif (currentChar == '\\r' || currentChar == '\\n' || currentChar == '\\t' || currentChar == ' ') {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@org.junit.Test\n public void markingSpaces()\n {\n assertEquals(\"empty\", \"\", markSpaces(\"\"));\n assertEquals(\"simple\", \"just_a_test\", markSpaces(\"just a test\"));\n assertEquals(\"all\", \"just\\\\ta\\\\ntest\\\\f\\\\r_with___all_\\\\n\\\\nthings\",\n markSpaces(\"just\\ta\\ntest\\f\\r with all \\n\\nthings\"));\n }", "private boolean isSpace(int c) {\n\t\treturn (c == ' ' || c == '\\t' || c == '\\n');\n\t}", "private void printSeparator() {\r\n\t\tthis.printLineGap();\r\n\t}", "private boolean skipSpaceChars() {\r\n \t\tint ch;\r\n \t\twhile ((ch = readCharBackward()) != -1) {\r\n \t\t\tif (!Character.isSpaceChar(ch)) {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\tbreak;\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn true;\r\n \t}", "private boolean startsWithSpace(String str) {\r\n\t\treturn str.length() != 0 && str.charAt(0) == ' ';\r\n\t}", "@Override\n\tpublic String toString()\n\t{\n\t\treturn \" \";\n\t}", "private void skipBlankSpaces() {\n\t\twhile(currentIndex < data.length) {\n\t\t\tchar c = data[currentIndex];\n\t\t\tif(c == ' ' || c == '\\t' || c =='\\n' || c == '\\r') {\n\t\t\t\tcurrentIndex++;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testToString() {\n assertEquals(jesseOberstein.toString(),\n \"joberste\" + \"\\n\" + \"Jesse\" + \"\\n\" + \"Oberstein\" + \"\\n\"\n + \"Mazor\" + \"\\n\" + \"2017\" + \"\\n\");\n assertFalse(nathanGoodman.toString().equals(\"Nathan Goodman\"));\n }", "public void testToString() {\n assertEquals(this.empty.toString(), \"[]\");\n assertEquals(this.stack.toString(), \"[9, 8, 7, 6, 5, 4, 3, 2, 1, 0]\");\n }", "private static boolean testToString() {\r\n String answer = \"1 2 3 4 9 7 8 6 5 \\n\" +\r\n \"4 5 9 _ _ _ _ _ _ \\n\" +\r\n \"6 7 8 _ _ _ _ _ _ \\n\" +\r\n \"3 _ _ _ 1 _ _ _ _ \\n\" +\r\n \"2 _ _ _ _ _ _ _ _ \\n\" +\r\n \"9 _ _ _ _ 5 _ _ _ \\n\" +\r\n \"8 _ _ _ _ _ _ _ _ \\n\" +\r\n \"7 _ _ _ _ _ _ _ _ \\n\" +\r\n \"5 _ _ 9 _ _ _ _ _ \\n\";\r\n//analyze the return statement: to string of the game object passed into a \r\n//comparison function of the string object that assigned to the variable \"answer\"\r\n//and had been manually defined above (a concatenated string with line breaks to \r\n//simulate the Sudoku array), and the evaluation is all done in the return statement.\r\n return (answer.equalsIgnoreCase(game.toString()));\r\n }", "public String addEmptySpace(int spaces) {\n\n String stringOfEmptySpace = \"\";\n\n for (int i = 0; i < spaces; i++)\n stringOfEmptySpace += \" \";\n\n return stringOfEmptySpace;\n }", "public boolean isWhiteSpace() {\n return node.getNodeType() == Node.TEXT_NODE && node.getTextContent().trim().length() == 0;\n }", "String getSpace();", "public boolean inVerticalBlank();", "private boolean endsWithWhite(String str) {\r\n if ((str != null) &&\r\n (str.length() > 0) &&\r\n isWhitespace( str.charAt(str.length() - 1))) {\r\n return true;\r\n }\r\n return false;\r\n }", "public static void checkToString() {\r\n\t\tSystem.out.println(\"Beginning toString test (should be [-1, 2, 5, 17] and [3, 6, 8, 42])\");\r\n\t\tSortedIntList list = new SortedIntList(5);\r\n\t\tlist.add(5);\r\n\t\tlist.add(-1);\r\n\t\tlist.add(17);\r\n\t\tlist.add(2);\r\n\t\tSystem.out.println(\" \" + list.toString());\r\n\t\t\r\n\t\tSortedIntList list2 = new SortedIntList(true);\r\n\t\tlist2.add(6);\r\n\t\tlist2.add(3);\r\n\t\tlist2.add(6);\r\n\t\tlist2.add(42);\r\n\t\tlist2.add(8);\r\n\t\tSystem.out.println(\" \" + list2.toString());\r\n\t\tSystem.out.println();\r\n\t}", "public boolean isEmpty() {\n return top == ' ';\n }", "public static void spaces() {\r\n // prints 13 spaces\r\n for (int space = 0; space < 15; space++) {\r\n System.out.println(\"\");\r\n }\r\n\r\n }", "private void testToString() {\n init();\n assertTrue(\"l0.toString()\", l0.toString().equals(\"[]\"));\n assertTrue(\"l1.toString()\", l1.toString().equals(\"[5]\"));\n assertTrue(\"l2.toString()\", l2.toString().equals(\"[4, 5]\"));\n }", "@Override\n public void run() {\n int count = text.length() - text.replace(\" \", \"\").length();\n System.out.printf(\"Spaces: %d;\\n\", count);\n }", "private void skipSpaces() {\r\n\t\twhile (currentIndex < expression.length && (expression[currentIndex] == ' ' || expression[currentIndex] == '\\t'\r\n\t\t\t\t|| expression[currentIndex] == '\\n' || expression[currentIndex] == '\\r')) {\r\n\t\t\tcurrentIndex++;\r\n\t\t}\r\n\t}", "private static boolean noWhiteSpace(String password) {\n\t\tint whitespaces = 0;\n\t\tfor (int i = 0; i < password.length(); i++) {\n\t\t char c = password.charAt(i);\n\t\t if ( Character.isWhitespace(c) ) {\n\t\t \t whitespaces++;\n\t\t }\n\t\t}\n\t\tif (whitespaces >= 1) {\n\t\t\tSystem.out.println(\"no whitespaces!\");\n\t\t\treturn false;\n\t\t} else return true;\n\t}", "private static boolean isWhiteSpace(final String strval)\n\t{\n\t\tif (null != strval)\n\t\t{\n\t\t\tfinal int n = strval.length();\n\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\tfinal char ch = strval.charAt(i);\n\n\t\t\t\t// The follwing pattern is denormalized for speed.\n\t\t\t\tif ((ch == 0x20) || (ch == 0x09) || (ch == 0xD) || (ch == 0xA))\n\t\t\t\t{\n\t\t\t\t\t// Try the next one, all must be whiteSpace.\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "@Test\n\tpublic void testEmptyString() {\n\t\tString s = \" \\t \";\n\t\tassertTrue(\"Empty string with tab\", StringUtil.isEmpty(s));\n\t}", "@Test\r\n\tpublic void testParseSpace() {\r\n\r\n\t\t// Enter the code\r\n\r\n\t\tdriver.findElement(By.name(\"code[code]\"))\r\n\t\t\t\t.sendKeys(\"the_best_cat = \\\"Noogie Cat\\\"\\nputs \\\"The best cat is: \\\" + the_best_cat\");\r\n\r\n\t\t// Look for the \"Parse\" button and click\r\n\r\n\t\tdriver.findElements(By.name(\"commit\")).get(1).click();\r\n\r\n\t\t// Check that there contains space and newlines\r\n\r\n\t\ttry {\r\n\t\t\tWebElement code = driver.findElement(By.tagName(\"code\"));\r\n\t\t\tassertFalse(code.getText().contains(\":op_nl\"));\r\n\t\t\tassertFalse(code.getText().contains(\":op_sp\"));\r\n\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "public void testToString() {\r\n assertEquals(\"[]\",\r\n list.toString());\r\n list.add(\"A\");\r\n assertEquals(\"[A]\",\r\n list.toString());\r\n list.add(\"B\");\r\n assertEquals(\"[A, B]\",\r\n list.toString());\r\n }", "public void testDumpList() {\n \n String result = tester.dumpList(box); \n \n assertTrue(\"Wrong start\", result.startsWith(\"[item 0, item 1, item 2, item 3, item 4, item 5, \"));\n assertTrue(\"Wrong end\", result.endsWith(\", item 96, item 97, item 98, item 99]\"));\n }", "private boolean checkElementSeparator() {\n if (flavor == ConfigSyntax.JSON) {\n TokenWithComments t = nextTokenIgnoringNewline();\n if (t.token == Tokens.COMMA) {\n return true;\n } else {\n putBack(t);\n return false;\n }\n } else {\n boolean sawSeparatorOrNewline = false;\n TokenWithComments t = nextToken();\n while (true) {\n if (Tokens.isNewline(t.token)) {\n // newline number is the line just ended, so add one\n lineNumber = t.token.lineNumber() + 1;\n sawSeparatorOrNewline = true;\n\n // we want to continue to also eat\n // a comma if there is one.\n } else if (t.token == Tokens.COMMA) {\n return true;\n } else {\n // non-newline-or-comma\n putBack(t);\n return sawSeparatorOrNewline;\n }\n t = nextToken();\n }\n }\n }", "@Test\n\tpublic void nonEmptyMultiLine() {\n\t\tString s = \" \\n\" + \"Nothing\";\n\t\tassertFalse(\"Non empty string\", StringUtil.isEmpty(s));\n\t}", "public boolean noSeparator(){\n return separator == EMPTY_CHAR;\n }", "@Test\n\tpublic void nonEmptyString() {\n\t\tString s = \" H \";\n\t\tassertFalse(\"Non empty string\", StringUtil.isEmpty(s));\n\t}", "private String indent(int spaces) {\n\t\tString result = \"\";\n\t\tfor (int i = 0; i < spaces; i++) {\n\t\t\tresult = result + \" \";// it creates as much spaces as it is told to\n\t\t}\n\t\treturn result;\n\t}", "Rule WhiteSpace() {\n return ZeroOrMore(AnyOf(\" \\n\\r\\t\\f\"));\n }", "private boolean isWhitespace(char c) {\r\n if (c==' ' || c=='\\n' || c=='\\t' || c=='\\r' ){\r\n return true;\r\n }\r\n return false;\r\n }", "@Test\n\tpublic void testEmptyLine() {\n\t\tString s = \" \\n\";\n\t\tassertTrue(\"Empty string with line ending\", StringUtil.isEmpty(s));\n\t}", "@Test(timeout=100)\r\n\tpublic void testUnquotedSpace() {\r\n\t\tString [] r1in = {\"aaa \",\" bbb\",\" ccc \"};\r\n\t\tString [] r1out = {\"aaa\",\"bbb\",\"ccc\"};\r\n\t\tString [] r2 = {\"AA AA\",\"\",\"C C\",\"DD DD\"};\r\n\t\twriteArrayToLine(r1in);\r\n\t\twriteArrayToLine(r2);\r\n\t\tout.close();\r\n\t\t\r\n\t\tCSVReader csv = new CSVReader(getInstream());\r\n\t\tassertArrayEquals( r1out, csv.next() );\r\n\t\tassertArrayEquals( r2, csv.next() );\r\n\t}", "private boolean isSpaceOrBracket(char c) {\n\t\t\treturn (c == '\\t' || c == '\\n' || c == ' ' || c == '(' || c == ')');\n\t\t}", "private static String lineInsideSquareWithBlankAtTheEnd(String line) {\n while (line.length() < SPACES_INSIDE_SQUARE) {\n line+= EMPTY_SPACE_CAR;\n }\n return line;\n }", "@Test\n\t public void test3()\n\t{\n\t\t\tString s = new String();\n\t s = s.replaceAll(\"\\\\s+\", \" \");\n\t assertEquals(\"\", LRS.lrs(s)); \n\t}", "public boolean skipWhitespace()\r\n {\r\n String str = feed.findWithinHorizon( WHITESPACE_PATTERN, 0 );\r\n \r\n if( str == null )\r\n return false;\r\n else\r\n return true;\r\n }", "@Override\n\tpublic void space() {\n\t\t\n\t}", "public String quitaespacios (String str) {\n\n str = repNull(str);\n str = str.trim();\n str = rep(str, \"[ ]{2,}\", \" \");\n\n return str;\n }", "public static void main(String[] args) {\n assertEquals(\" \", reverseWords(\" \"));\n }", "public static void main(String args[])\n {\n String s = \"Bharat mata ki jai\";\n char[] c = s.toCharArray();\n\n for(int i =0; i<c.length;i++)\n {\n if(c[i]!=' ' && (i == 0 || c[i-1]==' '))\n {\n System.out.print(c[i]+\" \");\n }\n }\n\n\n\n\n }", "private static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\t' || c == '\\n' || c == '\\f' || c == '\\r';\n }", "private static boolean PreviousSpace() {\n //FastTextList.TempNodeCursorUpdate();\n FastTextList.WrapperTempNodeSync();\n //System.out.println(FastTextList.WordWrapNode.nextN.getTextUnit().content);\n while (FastTextList.WordWrapNode.nextN.prevN.getTextUnit().getString().charAt(0) != 32\n || FastTextList.WordWrapNode.nextN.getTextUnit().getX() == STARTING_CURSOR_X){\n if (FastTextList.WordWrapNode.nextN.getTextUnit().getX() == STARTING_CURSOR_X){\n //System.out.println(\"the whole line!!\");\n return false;\n }\n if(FastTextList.WordWrapNode.nextN.prevN == FastTextList.Sentinel\n || FastTextList.WordWrapNode.nextN.prevN.getTextUnit().getString().equals(\"NewLine\")){\n return false;\n }\n\n FastTextList.WordWrapNode.nextN = FastTextList.WordWrapNode.nextN.prevN;\n //System.out.println(FastTextList.WordWrapNode.nextN.getTextUnit().getString());\n }\n /*\n System.out.println(\"got it! it is \" + FastTextList.WordWrapNode.nextN.getTextUnit().content );\n */\n return true;\n }", "@Override\n\tpublic boolean isAtEnd()\n\t{\n\t\tif (right.isEmpty())\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "private boolean isWhitespace(char c) {\n\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t';\n\t}", "private boolean isWhitespace(char c) {\n\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t';\n\t}", "@Override\n public String toString() {\n StringBuilder devPlaceArt = new StringBuilder();\n StringBuilder[] devString = new StringBuilder[3];\n devString[0] = new StringBuilder();\n devString[1] = new StringBuilder();\n devString[2] = new StringBuilder();\n int i = 0;\n String space = \" \";\n String emptyCard =\n \"\"\"\n ┌─────────────────┐\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n └─────────────────┘\n \"\"\";\n String emptySpace = \"\"\"\n \\s\n \\s\n \\s\n \"\"\";\n String[] temp1;\n String[] temp2;\n String[] temp3;\n\n for (ObservableList<DevelopmentCard> stacks : devStack) {\n if (stacks.isEmpty()) {\n devString[i].append(emptyCard);\n devString[i].append(emptySpace).append(emptySpace);\n } else {\n devString[i].append(stacks.get(stacks.size() - 1).toString());\n switch (stacks.size()) {\n case 1 -> devString[i].append(emptySpace).append(emptySpace);\n case 2 -> {\n int l = stacks.get(0).toString().length();\n devString[i].append(stacks.get(0).toString(), l - 58, l);\n devString[i].append(emptySpace);\n }\n case 3 -> {\n int len = stacks.get(0).toString().length();\n devString[i].append(stacks.get(0).toString(), len - 58, len);\n devString[i].append(stacks.get(1).toString(), len - 58, len);\n }\n }\n\n }\n i++;\n }\n temp1 = devString[0].toString().split(\"\\n\");\n temp2 = devString[1].toString().split(\"\\n\");\n temp3 = devString[2].toString().split(\"\\n\");\n\n for (int j = 0; j < 14; j++) {\n devPlaceArt.append(temp1[j]).append(space).append(temp2[j]).append(space).append(temp3[j]);\n devPlaceArt.append(\"\\n\");\n }\n return devPlaceArt.toString();\n }", "@Test\n public void shouldMatchBreakingWhitespace(){\n Assert.assertThat(\"match any breaking white space\",CharMatcher.BREAKING_WHITESPACE.matchesAnyOf(\"\\n\\r\"),is(true));\n }", "@Test\n public void toStringTest() {\n assertEquals(\"1 2 3 4\", stack.toString());\n }", "@Test\n\tpublic void testTrimmingWhiteSpaces() {\n\t\t// Setup\n\t\tString file = \" file.name \";\n\n\t\t// Exercise\n\t\tLine line = new Line(\"5\", \"5\", file);\n\n\t\t// Verify\n\t\tassertEquals(\"file.name\", line.toString());\n\t}", "public static String spaceRightJustify(String blank, int spaces) {\n\t\tfor (int i = blank.length(); i < spaces; i++) {\n\t\t\tblank = \" \" + blank;\n\n\t\t}\n\t\treturn blank;\t\t\n\n\t}", "public void checkAndAppendSpacer(StringBuffer buffer, String spacer){\n\t\tif(buffer.lastIndexOf(spacer) < buffer.length() - spacer.length())\n\t\t\tbuffer.append(spacer);\n\t}", "static void trimWhitespace() {\n for (int i = a.size() - 1; i >= 0; i-- ) {\n Object o = a.get(i);\n StringBuilder sb = new StringBuilder();\n if (o instanceof Token)\n sb.append( ((Token)o).image );\n else\n sb.append((String)o);\n while(sb.length() > 0 && (sb.charAt(sb.length() - 1) == '\\u005cr'\n || sb.charAt(sb.length() - 1) == '\\u005cn'\n || sb.charAt(sb.length() - 1) == '\\u005ct'\n || sb.charAt(sb.length() - 1) == ' ')) {\n sb.deleteCharAt(sb.length() - 1);\n }\n if (sb.length() == 0) {\n a.remove(i);\n }\n else {\n a.set(i, sb.toString());\n break;\n }\n }\n if (a.size() == 0) {\n while(outputBuffer.length() > 0 && (outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cr'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cn'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005ct'\n || outputBuffer.charAt(outputBuffer.length() - 1) == ' ')) {\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n }\n }\n }", "public String abbreviatedCellText() {\r\n\t\treturn \" \";//returns 10 spaces because the cell has to be empty\r\n\t}", "public static void space(int space) {\r\n\t\tfor(int i=0; i<space; i++) {\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testToString() {\n\t\t//Assert.assertEquals(\" \",\" \",EUR0.toString()); //fixed in different way but works( finally :D )\n\t\tAssert.assertEquals(\" \", \"0 EUR\", EUR0.toString());\n\t}", "public boolean nextIsSep()\n {\n\n if (Character.isLetterOrDigit(str.charAt(currentPosition)))\n return false;\n else\n return true;\n }", "private static void assertEqualsIgnoringWhitespace(final String expected, final String actual){\n // assertEquals(expected.replaceAll(\"^ +\", \"\"), actual.replaceAll(\"^ +\", \"\"));\n assertEquals(expected.replaceAll(\"\\\\s+\", \"\"), actual.replaceAll(\"\\\\s+\", \"\"));\n }", "public void printValidMoves(){\r\n Iterator itr = this.validMoves.iterator();\r\n System.out.print(\"Next Spaces: \");\r\n while(itr.hasNext()){\r\n Point next = (Point)itr.next();\r\n System.out.print(\"(\" + (int)next.getX() + \" \" + (int)next.getY()+\")\");\r\n }\r\n }", "@Override\n public void printable()\n {\n\tfor (int i = 0; i < width; i++)\n\t{\n\t for (int k = 0; k < length; k++)\n\t {\n\t\tif (k == 0 || k == length - 1)\n\t\t System.out.print(\"O \");\n\t\telse if (i == 0 || i == width - 1)\n\t\t System.out.print(\"O \");\n\t\telse\n\t\t System.out.print(\" \");\n\t }\n\n\t System.out.println();\n\t}\n }", "private static String formattingWhitespace(String string) {\n // Splitting the String.\n String[] stringSplits = string.split(\" \");\n\n StringBuilder formattedString = new StringBuilder();\n for (int word = 0; word < stringSplits.length; word++) {\n // If the element is not an empty String.\n if (!stringSplits[word].isEmpty()) {\n // Checking if the word is not the last word of the sentence.\n if (word < stringSplits.length - 1) {\n // Adding a space after the word.\n formattedString.append(stringSplits[word]).append(\" \");\n }\n // If last word of the sentence.\n else {\n // Last word does not have a space after it.\n formattedString.append(stringSplits[word]);\n }\n }\n }\n // Returning a formatted String.\n return formattedString.toString();\n }", "@Test\n void testWhiteSpace() {\n assertEquals(1, Calculator.calculate(\" 5 - 4\"));\n }", "public boolean isWhitespace(char testChar) {\n switch (testChar) {\n case ' ':\n case '\\t':\n case '\\r':\n case '\\n':\n return true;\n default:\n return false;\n }\n }", "static public final boolean ccIsAllNoneSpace(String pxLine){\n return VcStringUtility.ccNulloutString(pxLine)\n .matches(\"^\\\\S+$\");\n }", "public String toString()\n\t{\tString doesItSting = \"\";\n\t\n\t\tif (stings) doesItSting = \"it DOES sting.\";\n\t\telse doesItSting = \"it does NOT sting.\";\n\t\t\n\t\treturn super.toString() + \"and has \" + doesItSting;\n\t}", "public static String whitespace(int count, String spaces) {\r\n\t\tfor (int i = 0; i < count; i++) {spaces += \" \";}\r\n\t\treturn spaces;\r\n\t}", "public boolean isPrintBlankLine()\n\t{\n\t\treturn printBlankLine;\n\t}", "private boolean isMiddleSquareEmpty() {\n return myGame.myBoard[4].getText().length() <= 0;\n }", "private void skipWhitespaces() {\n\t\twhile(currentIndex < data.length) {\n\t\t\tif (isWhitespace(data[currentIndex])) {\n\t\t\t\tcurrentIndex++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\t\n\t\t}\n\t}", "private void skipWhitespaces() {\n\t\twhile(currentIndex < data.length) {\n\t\t\tif (isWhitespace(data[currentIndex])) {\n\t\t\t\tcurrentIndex++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\t\n\t\t}\n\t}" ]
[ "0.65501636", "0.6416747", "0.6226361", "0.6122466", "0.5974794", "0.5903737", "0.58133435", "0.5748944", "0.57352835", "0.57004905", "0.56830597", "0.5647283", "0.56470764", "0.5641685", "0.5631643", "0.5619757", "0.56130934", "0.5597588", "0.5593995", "0.5581907", "0.55645776", "0.55612856", "0.5545214", "0.5541155", "0.55337477", "0.55250543", "0.5492316", "0.5485923", "0.5480887", "0.5473486", "0.54648095", "0.544368", "0.5438086", "0.54272836", "0.54265577", "0.5414443", "0.53860533", "0.5358403", "0.535654", "0.532771", "0.5311869", "0.53104836", "0.53077775", "0.5303313", "0.53003556", "0.5287131", "0.52707714", "0.5252359", "0.5244908", "0.52384746", "0.5237273", "0.52372634", "0.5235013", "0.52197045", "0.52182496", "0.5205713", "0.5175166", "0.5161021", "0.5145734", "0.51331854", "0.51295906", "0.5127147", "0.5125409", "0.5125389", "0.51204884", "0.5118448", "0.511354", "0.5110837", "0.511049", "0.51076114", "0.5072389", "0.5068083", "0.50641835", "0.5053057", "0.5052066", "0.5052066", "0.5050888", "0.50454164", "0.5040003", "0.50269395", "0.5023513", "0.5021056", "0.50208277", "0.5011697", "0.50096506", "0.5007859", "0.49997324", "0.49989948", "0.49935618", "0.49788997", "0.49757177", "0.49671352", "0.49602112", "0.49599308", "0.49485964", "0.4946418", "0.49450603", "0.49304074", "0.49171308", "0.49171308" ]
0.49686384
91
Tests search to see if the location of an element in the list is correct.
@Test void testSearch() { SimpleList test = new SimpleList(); test.add(7); test.add(10); test.add(9); int output = test.search(10); assertEquals(1, output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tvoid testSearch2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.search(4);\r\n\t\tassertNotEquals(3, output);\r\n\t}", "boolean checkItem (List<Student> search, int item){\r\n // We use for loop to search\r\n for (int i = 0; i < search.size(); i++) {\r\n // if item exists, then we reutrn true\r\n if (item == i){\r\n return true;\r\n }\r\n }\r\n // else if it doesn't, then we return false\r\n return false;\r\n }", "@Test\r\n\tvoid testContains() {\r\n\t\tSortedList list = new SortedList(\"List\");\r\n\t\tlist.insert(toDoItem1);\r\n\t\tlist.insert(toDoItem2);\r\n\t\tlist.insert(toDoItem3);\r\n\t\tlist.insert(toDoItem4);\r\n\r\n\t\tif (list.contains(\"Item 1\") != true) {\r\n\t\t\tfail(\"Failed to find \\\"Item 1\\\"\");\r\n\t\t}\r\n\t\tif (list.contains(\"Item 2\") != true) {\r\n\t\t\tfail(\"Failed to find \\\"Item 2\\\"\");\r\n\t\t}\r\n\t\tif (list.contains(\"Item 3\") != true) {\r\n\t\t\tfail(\"Failed to find \\\"Item 3\\\"\");\r\n\t\t}\r\n\t\tif (list.contains(\"Item 4\") != true) {\r\n\t\t\tfail(\"Failed to find \\\"Item 4\\\"\");\r\n\t\t}\r\n\t}", "@Test\r\n public void testSearchShouldReturnTrueWhenValueIsPresent() {\r\n nestedList=new NestedList();\r\n boolean isPresent=nestedList.search(10);\r\n assertEquals(true,isPresent);\r\n }", "@Test\r\n public void testIndexOf() {\r\n Grocery entry1 = new Grocery(\"Mayo\", \"Dressing / Mayo\", 1, 2.99f, 1);\r\n\r\n // Test element not found case\r\n boolean elementNotFound = false;\r\n try {\r\n instance.indexOf(entry1);\r\n fail(\"Should throw ENFE - testIndexOf\");\r\n } catch (ElementNotFoundException e) {\r\n elementNotFound = true;\r\n }\r\n assertTrue(elementNotFound);\r\n\r\n instance.add(entry1);\r\n\r\n // Test element found case\r\n try {\r\n assertEquals(0, instance.indexOf(entry1));\r\n\r\n } catch (ElementNotFoundException e) {\r\n fail(\"Should not throw exception - testIndexOf\");\r\n }\r\n }", "@Test\n public void testFind() {\n// System.out.println(\"---find---\");\n// //Test1: Trying to find an element in an empty list returns -1.\n// ADTList instance = ADTList.create();\n// int expResult = -1;\n// int result = instance.find(8);\n// assertEquals(expResult, result);\n// System.out.println(\"Test1 OK\");\n// \n// //Test2: Method returns the position of an element in a list\n// ADTList instance2 = createTestADTListIns(3);\n// int expResult2 = 2;\n// int result2 = instance2.find(2);\n// assertEquals(expResult2, result2);\n// System.out.println(\"Test2 OK\");\n// \n// //Test3: Method returns the position of the first occurence(lowest position) of the specified element.\n// ADTList instance3 = createTestADTList(2,1,2,2,2,3);\n// int expResult3 = 1;\n// int result3 = instance3.find(2);\n// assertEquals(expResult3, result3);\n// System.out.println(\"Test3 OK\");\n }", "private static void testFind(String s, LinkedList list) {\n\t\tif (list.find(s) != null)\n\t\t\tSystem.out.println(\"found the string :)\");\n\t\telse\n\t\t\tSystem.out.println(\"we did not find the string :(\");\n\t}", "private void arraySearch(MyArrayList myArrayList, Results results, int value) {\r\n if(myArrayList.search(value)) { \r\n results.storeNewResult(\"ArraySearch test case: PASSED\");\r\n }\r\n else { \r\n results.storeNewResult(\"ArraySearch test case: FAILED\");\r\n }\r\n }", "public synchronized int search(Object arg)\n {\n int result = -1;\n for (int i=0; i<dataList.size(); i++)\n {\n Object testItem = dataList.get(i);\n if (arg.equals(testItem))\n {\n // calculate the 1-based index of the last item\n // in the List (the top item on the stack)\n result = i + 1;\n break;\n }\n }\n return result;\n }", "public boolean findElement(int element) {\r\n\tfor(int i = 0 ;i <myList.size();i++) {\r\n\t\tif(element == myList.get(i))\r\n\t\t\treturn true;\r\n\t}\r\n\treturn false;\r\n}", "public static void testFind(LinkedList list) {\n\t\ttestFind(\"hi\", list);\n\t\ttestFind(\"3\", list);\n\t}", "@Test\n public void testIndexOf() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n Integer arg = 7;\n\n int result = instance.indexOf(arg);\n int expResult = 2;\n\n assertEquals(expResult, result);\n\n }", "@Test\r\n\tpublic void testIndexOf() {\r\n\t\ttestArray = new ArrayBasedList<String>();\r\n\t\ttestArray.add(\"math\");\r\n\t\ttestArray.add(\"reading\");\r\n\t\ttestArray.add(\"science\");\r\n\t\ttestArray.add(\"social studies\");\r\n\t\tassertEquals(0, testArray.indexOf(\"math\"));\r\n\t\tassertEquals(1, testArray.indexOf(\"reading\"));\r\n\t\tassertEquals(2, testArray.indexOf(\"science\"));\r\n\t\tassertEquals(3, testArray.indexOf(\"social studies\"));\r\n\t\tassertEquals(-1, testArray.indexOf(\"invalid\"));\r\n\t}", "static boolean testSearch() {\n BinaryTree tree = new BinaryTree();\n int[] profile = new int[1];\n\n // Implment insert method\n tree.insert(\"a\", 1);\n tree.insert(\"b\", 2);\n tree.insert(\"c\", 3);\n tree.insert(\"d\", 4);\n tree.insert(\"e\", 5);\n\n // Validates that search works correctly for every key in tree\n if(tree.search(\"a\", profile) != 1)\n return false;\n if(tree.search(\"b\", profile) != 2)\n return false;\n if(tree.search(\"c\", profile) != 3)\n return false;\n if(tree.search(\"d\", profile) != 4)\n return false;\n if(tree.search(\"e\", profile) != 5)\n return false;\n\n // Validates that search works if a key has been overwritten\n tree.insert(\"a\", 3);\n if(tree.search(\"a\", profile) != 3)\n return false;\n\n // Validates that search returns -1 if value is not found\n if(tree.search(\"f\", profile) != -1)\n return false;\n\n // Validates that profile is as expected\n if(profile[0] <= 0)\n return false;\n\n return true;\n }", "@Test\r\n\tpublic void testIndexOf() {\r\n\t\tAssert.assertTrue(list.indexOf(null) == -1);\r\n\t\tAssert.assertEquals(2, list.indexOf(new Munitions(2, 3, \"iron\")));\r\n\t}", "@Test\r\n\tpublic void testContains() {\r\n\t\tassertFalse(ll.contains(t1));\r\n\t\tll.add(0, t1);\r\n\t\tassertTrue(ll.contains(t1));\r\n\t}", "private static void search(int arr[],int element)\n {\n for(int i=0;i<arr.length;i++)\n {\n if(arr[i]==element)\n {\n System.out.println(\"The \"+element+\" is located at the position of \"+i);\n System.exit(0);\n }\n }\n }", "@Test\n void givenElementWhenSearchingShouldPassLinkedListResult() {\n MyNode<Integer> myFirstNode = new MyNode<>(56);\n MyNode<Integer> mySecondNode = new MyNode<>(30);\n MyNode<Integer> myThirdNode = new MyNode<>(70);\n MyLinkedList myLinkedList = new MyLinkedList();\n myLinkedList.append(myFirstNode);\n myLinkedList.append(mySecondNode);\n myLinkedList.append(myThirdNode);\n myLinkedList.printMyNodes();\n myLinkedList.searchMyNode();\n boolean result = myLinkedList.head.equals(myFirstNode) &&\n myLinkedList.head.getNext().equals(mySecondNode) &&\n myLinkedList.tail.equals(myThirdNode);\n System.out.println(result);\n Assertions.assertTrue(result);\n }", "@Test\r\n public void testFind() {\r\n Grocery entry1 = new Grocery(\"Mayo\", \"Dressing / Mayo\", 1, 2.99f, 1);\r\n\r\n // Test empty collection exception\r\n try {\r\n instance.find(0);\r\n fail(\"Should throw ECE - testFind\");\r\n } catch (EmptyCollectionException | IndexOutOfBoundsException e) {\r\n assertTrue(e instanceof EmptyCollectionException);\r\n }\r\n\r\n instance.add(entry1);\r\n\r\n // Test element not found exception\r\n try {\r\n instance.find(1);\r\n fail(\"Should throw IOOBE - testFind\");\r\n } catch (EmptyCollectionException | IndexOutOfBoundsException e) {\r\n assertTrue(e instanceof IndexOutOfBoundsException);\r\n }\r\n\r\n // Test element exists case\r\n assertTrue(instance.contains(entry1));\r\n try {\r\n assertEquals(entry1, instance.find(0));\r\n\r\n } catch (EmptyCollectionException | IndexOutOfBoundsException e) {\r\n fail(\"Should not throw exception - testFind\");\r\n }\r\n }", "@Test\n public void testSearch(){\n for(int i = 0; i < realLocations.length; i++) {\n try {\n String[] locationInfo = new SearchTask().execute(browserKey, realLocations[i]).get();\n assertTrue(locationInfo.length > 0);\n testLocation(locationInfo);\n }\n catch (Exception e){\n assertFalse(\"Search task failed: \" + e.getMessage(), true);\n }\n }\n for(int i = 0; i < falseLocations.length; i++){\n try {\n String[] locationInfo = new SearchTask().execute(browserKey, (String) falseLocations[i]).get();\n assertTrue(locationInfo.length > 0);\n testLocation(locationInfo);\n }\n catch (Exception e){\n assertFalse(\"Search task failed: \" + e.getMessage(), true);\n }\n }\n }", "@Test\n public void testFind() {\n testAdd();\n assertEquals(list1.find(11.25), 0);\n assertEquals(list1.find(16.25), 3);\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 }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "@Test\r\n public void testSearchList() throws Exception {\r\n LOG.info(\"searchList\");\r\n String query = \"watch\";\r\n int page = 0;\r\n List result = tmdb.searchList(query, LANGUAGE_DEFAULT, page);\r\n assertFalse(\"No lists found\", result == null);\r\n assertTrue(\"No lists found\", result.size() > 0);\r\n }", "@Test\n public void searchTrueTest() {\n assertThat(4, is(this.queue.search(\"work4\")));\n assertThat(1, is(this.queue.search(\"work1\")));\n }" ]
[ "0.7140621", "0.6700562", "0.6538853", "0.65114474", "0.64133996", "0.6344143", "0.6332507", "0.6295158", "0.6215325", "0.6207191", "0.6145843", "0.6145684", "0.61337435", "0.61103916", "0.60547847", "0.60303676", "0.60235906", "0.60069525", "0.59893405", "0.58945966", "0.5880881", "0.5880451", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5880418", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.5879623", "0.58788663", "0.5868589" ]
0.7470539
0
Tests search to see if the location of an element not present in the list outputs the count instead of 1.
@Test void testSearch2() { SimpleList test = new SimpleList(); test.add(7); test.add(10); test.add(9); int output = test.search(4); assertNotEquals(3, output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tvoid testSearch() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.search(10);\r\n\t\tassertEquals(1, output);\r\n\t}", "static int missingNumber(int arr[], int size)\n {\n Arrays.sort(arr);\n int searchFor = 0;\n int counter = 0;\n for (int i = 0; i < arr.length; i++) {\n \tif (arr[i] > 0) {\n\t\t\t\tif (arr[i] == searchFor) continue;\n else if (arr[i] == searchFor+1) searchFor++;\n else break;\n \t}\n }\n \n return searchFor+1;\n }", "public int checkEmpty() {\n\t\treturn (slist.checkEmpty());\n\n\t}", "public synchronized int search(Object arg)\n {\n int result = -1;\n for (int i=0; i<dataList.size(); i++)\n {\n Object testItem = dataList.get(i);\n if (arg.equals(testItem))\n {\n // calculate the 1-based index of the last item\n // in the List (the top item on the stack)\n result = i + 1;\n break;\n }\n }\n return result;\n }", "int getMissingCount();", "@Override\r\n public int locate(Copiable value) {\r\n for (int i = 0; i < count; i++) {\r\n if (list[i].equals(value)) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }", "protected int findNonEmptyPosition() {\n\t\t\twhile (!set.bv[++indice]) {\n\t\t\t}\n\t\t\treturn indice;\n\t\t}", "int getNotInCount();", "public int getMissCountNotFound() {\n return missCountNotFound;\n }", "@Test\r\n public void testIndexOf() {\r\n Grocery entry1 = new Grocery(\"Mayo\", \"Dressing / Mayo\", 1, 2.99f, 1);\r\n\r\n // Test element not found case\r\n boolean elementNotFound = false;\r\n try {\r\n instance.indexOf(entry1);\r\n fail(\"Should throw ENFE - testIndexOf\");\r\n } catch (ElementNotFoundException e) {\r\n elementNotFound = true;\r\n }\r\n assertTrue(elementNotFound);\r\n\r\n instance.add(entry1);\r\n\r\n // Test element found case\r\n try {\r\n assertEquals(0, instance.indexOf(entry1));\r\n\r\n } catch (ElementNotFoundException e) {\r\n fail(\"Should not throw exception - testIndexOf\");\r\n }\r\n }", "public void findExits() {\n try {\n for (int i = 1; i < accumulate.size() - 1; i++) {\n if (accumulate.get(i).value < accumulate.get(i - 1).value) {\n timeOfExists.add(accumulate.get(i).timeOfChange);\n }\n }\n } catch (IndexOutOfBoundsException exception) {\n LOG_HANDLER.logger.severe(\"findExits Method as thrown an \"\n + \"OutOfBoundsException: \" + exception\n + \"Your timeOfExists seems to be null\");\n }\n }", "public int count() {\n\t\tint q = 0;\n\t\tfor(int i = 0; i < list.length; i++) if (list[i] != null) q++;\n\t\treturn q;\n\t\t\n\t}", "int findCount();", "public int findEmpty()\n\t{\n\t\temptyIndices.clear();\n\t\tfor (int i = 0; i < 20; i++)\n\t\t{\n\t\t\tif (river[i] == null)\n\t\t\t\temptyIndices.add(i);\n\t\t}\n\t\t\n\t\tif (emptyIndices.size() != 0){\n\t\t\treturn (int) emptyIndices.get(rng.nextInt(emptyIndices.size()));\n\t\t}\n\t\telse\n\t\t\treturn -1;\n\t}", "public static void Search(ArrayList<Integer> list, int val)\n{\n // Your code here\n int result = -1;\n for(int i=0; i<list.size(); i++)\n {\n if(list.get(i) == val)\n {\n result = i;\n break;\n }\n }\n System.out.print(result + \" \");\n \n}", "public int alreadyExists(FoodItem item){\n for(int i = 0; i < numItems; i++) {\n\n if(inventory[i]!= null) {\n if(item.isEqual(inventory[i])){\n return i;\n }\n }\n }\n return -1;\n }", "private int containsExactItem(Item item) {\n\t\tfor (Item currentItem : this.items) {\n\t\t\tif (item.equals(currentItem)) {\n\t\t\t\treturn items.indexOf(currentItem);\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "@Override\r\n\tpublic int find() {\n\t\treturn 0;\r\n\t}", "private static int findMissing(int[] arr, int totalCount) {\n int nSum = totalCount * (totalCount + 1) / 2;\n int actualSum = Arrays.stream(arr).sum();\n return nSum - actualSum;\n }", "private int searchCountByName(Object name) {\n\t\treturn 0;\r\n\t}", "Long countByLocationContaining(String search);", "private synchronized int search(Card card)\n {\n int i = cards.lastIndexOf(card);\n \n if (i >= 0)\n return cards.size() - i;\n else\n return -1;\n }", "boolean checkItem (List<Student> search, int item){\r\n // We use for loop to search\r\n for (int i = 0; i < search.size(); i++) {\r\n // if item exists, then we reutrn true\r\n if (item == i){\r\n return true;\r\n }\r\n }\r\n // else if it doesn't, then we return false\r\n return false;\r\n }", "private int getUnusedDependencyIndex(ArrayList<String> output, String startingPoint) {\n int index = 0;\n int counter = 0;\n for (String start : output) {\n if (start.equals(startingPoint)) {\n index = counter;\n break;\n }\n counter++;\n }\n return index;\n }", "@Test\n public void searchFalseTest() {\n assertThat(-1, is(this.queue.search(\"work5\")));\n }", "@Test\r\n\tpublic void testIndexOf() {\r\n\t\tAssert.assertTrue(list.indexOf(null) == -1);\r\n\t\tAssert.assertEquals(2, list.indexOf(new Munitions(2, 3, \"iron\")));\r\n\t}", "public int search(int data) {\n\t\tint count = 0;\n\t\tNode temp = head;\n\t\twhile(temp != null) {\n\t\t\tcount++;\n\t\t\tif(temp.data == data) {\n\t\t\t\tSystem.out.println(data + \" found at Position \" + count);\n\t\t\t\treturn count;\n\t\t\t}\n\t\t\ttemp = temp.next;\n\t\t}\n\t\tSystem.out.println(data + \" not found\");\n\t\treturn 0;\n\t}", "private int getPositionInList(Node n) \n\t//PRE: Node n is initialized\n\t//POST: FCTVAL == the position of the Node n in the list\n\t{\n\t\tNode<T> tmp = start;\n\t\tint count = 0;\t//set counter variable to keep track of position\n\t\twhile(tmp != n) //while current node != to node being searched for\n\t\t{\n\t\t\tif(count > length) //make sure position is not greater than max size of list\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tcount++;\t//increment position\n\t\t\ttmp = tmp.next;\t//move to next element\n\t\t}\n\t\treturn count;\t//return count which is the position of the node n in the list\n\t}", "private int find(Book book) {\n for (int i = 0; i < books.length; i ++){\n if (books[i] != null && book.equals(books[i])){ return i; }\n }\n return NOT_FOUND;\n }", "int missingWatchpointIndexOf(Watch[] a)\n\t{\n\t\tint size = watchpointCount();\n\t\tint at = -1;\n\t\tfor(int i=0; i<size && at<0; i++)\n\t\t{\n\t\t\tWatchAction action = watchpointAt(i);\n\t\t\tWatch w = action.getWatch();\n\t\t\t\n\t\t\t// now scan the list of watches looking for a hit\n\t\t\tint hit = -1;\n\t\t\tfor(int j=0; j<a.length && hit<0; j++)\n\t\t\t{\n\t\t\t\tif (w == a[j])\n\t\t\t\t\thit = j;\n\t\t\t}\n\n\t\t\t// can't find the watch object corresponding to our\n\t\t\t// watchpoint in list of session watches.\n\t\t\tif (hit < 0)\n\t\t\t\tat = i;\n\t\t}\n\n\t\treturn at;\n\t}", "private int calculateImagesNotFound() {\n int imagesNotFound = 0;\n for (int count : countImagesNotFound) {\n imagesNotFound += count;\n }\n\n return imagesNotFound;\n }", "@Test\n public void testContains_Not_Contain_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n boolean expResult = false;\n boolean result = instance.contains(7);\n assertEquals(expResult, result);\n }", "private int linearSearch(final Integer element) {\n for (int i = 0; i < size; i++) {\n if (arrayList[i] == element) {\n return i;\n }\n }\n return -1;\n }", "@Then(\"no results appear in the search list\")\n public void no_results_appear_in_the_search_list() {\n assert true;\n }", "@Test\n public void testFind() {\n// System.out.println(\"---find---\");\n// //Test1: Trying to find an element in an empty list returns -1.\n// ADTList instance = ADTList.create();\n// int expResult = -1;\n// int result = instance.find(8);\n// assertEquals(expResult, result);\n// System.out.println(\"Test1 OK\");\n// \n// //Test2: Method returns the position of an element in a list\n// ADTList instance2 = createTestADTListIns(3);\n// int expResult2 = 2;\n// int result2 = instance2.find(2);\n// assertEquals(expResult2, result2);\n// System.out.println(\"Test2 OK\");\n// \n// //Test3: Method returns the position of the first occurence(lowest position) of the specified element.\n// ADTList instance3 = createTestADTList(2,1,2,2,2,3);\n// int expResult3 = 1;\n// int result3 = instance3.find(2);\n// assertEquals(expResult3, result3);\n// System.out.println(\"Test3 OK\");\n }", "public int antalNuller(ArrayList<Integer> list) {\r\n int nuller = 0;\r\n for (int i : list) {\r\n if (i == 0) {\r\n nuller++;\r\n }\r\n }\r\n return nuller;\r\n }", "public int buscaElementoRetornaIndice(String elemento) {\n No temp = ini;\n int count = 1;\n \n //Percorre todos os elementos da lista, ate achar o elemento procurado, ou ate chegar ao final\n while (temp != null){\n if (temp.getElemento().equals(elemento)) {\n //Caso tenha encontrado o elemento\n return count;\n }\n \n temp = temp.getProx();\n count++;\n }\n \n //Caso nao tenha encontrado o elemento\n return 0;\n }", "public int searchElement (E targetElement){\n\r\n Node curr = head;\r\n int count = 0;\r\n\r\n while (curr != null){\r\n if(curr.getItem() == targetElement){\r\n count++;\r\n }\r\n curr = curr.getNext();\r\n }\r\n\r\n return count;\r\n }", "public Integer isElementPresent(By locator) {\n return driver.findElements(locator).size();\n }", "private int countOccurrence(Integer valueToCount) {\n int count = 0;\n\n for(Integer currentValue : list) {\n if (currentValue == valueToCount) {\n count++;\n }\n }\n\n return count;\n }", "public int UserNamePresent(String search) {\n\t\tint item = -1;\n\t\tfor (int i = 0; i < CarerAccounts.size(); ++i) {\n if (CarerAccounts.get(i).getUsername().equals(search)){\n item = CarerAccounts.get(i).getID();\n\t\t\t}\n\t\t}\n\t\treturn item;\n\t}", "@Test\n public void testIndexOf_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n Integer arg = 7;\n\n int result = instance.indexOf(arg);\n int expResult = 2;\n\n assertEquals(expResult, result);\n\n }", "@Override\n\tpublic int indexOf(T searchItem) {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (searchItem.equals(data[i])) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }", "public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }" ]
[ "0.6188457", "0.59719956", "0.59207034", "0.58785385", "0.58744735", "0.5862708", "0.58261406", "0.5791325", "0.5755991", "0.56851196", "0.5680994", "0.5660758", "0.56562483", "0.5651207", "0.5619257", "0.5570286", "0.556704", "0.5564028", "0.5537499", "0.54938483", "0.5493099", "0.5488496", "0.54504937", "0.54480994", "0.54267585", "0.541999", "0.5404256", "0.53961754", "0.5396035", "0.5395518", "0.53799963", "0.5377355", "0.53747326", "0.5364222", "0.53605115", "0.535913", "0.53580195", "0.5345735", "0.5332377", "0.5329565", "0.531714", "0.5316783", "0.53095263", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53071314", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854", "0.53065854" ]
0.62012196
0
Tests append to see if integers are correctly added to the end of the list.
@Test void testAppend() { SimpleList test = new SimpleList(); test.append(7); test.append(10); test.append(9); String output = test.toString(); assertEquals("7 10 9", output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void testAppend(Tester t) {\n t.checkExpect(ints1.length(), 1);\n t.checkExpect(ints2.length(), 2);\n t.checkExpect(ints3.length(), 2);\n\n ints1.append(ints2);\n\n t.checkExpect(ints1.length(), 3);\n\n ints2.append(ints3);\n\n t.checkExpect(ints1.length(), 5);\n ints2.append(ints4);\n\n t.checkExpect(ints2.length(), 6);\n\n ints4.append(ints4);\n\n // will be infinite\n // t.checkExpect(ints4.length(), -1);\n }", "public static void checkAdd(int testSize) {\r\n\t\tSystem.out.println(\"Beginning checkAdd basic add test of size \" + testSize);\r\n\t\tSortedIntList list = new SortedIntList(false, testSize);\r\n\t\tRandom r = new Random();\r\n\t\tfor (int i = 0; i < testSize; i++) {\r\n\t\t\t// remember old list contents in case of a problem\r\n\t\t\tString old = list.toString();\r\n\t\t\t// pick a number between -testSize and +testSize, add to list\r\n\t\t\tint next = r.nextInt(2 * testSize + 1) - testSize;\r\n\t\t\t\r\n\t\t\tint expectedSize = i + 1;\r\n\t\t\t\r\n\t\t\t// add to end of list\r\n\t\t\tlist.add(next);\r\n\t\t\t\r\n\t\t\t// check list size and make sure list is sorted\r\n\t\t\tif (list.size() != expectedSize) {\r\n\t\t\t\tthrow new RuntimeException(\"\\n\\nafter adding \" + expectedSize\r\n\t\t\t\t+ \" items, size = \" + list.size() + \" (should be \" + expectedSize + \")\\n\");\r\n\t\t\t} else if (!isSorted(list)) {\r\n\t\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\"\\n\\nadding \" + next + \" failed; list is not sorted.\\n\" +\r\n\t\t\t\t\"List before add = \" + old + \";\\nlist after add = \" + list + \"\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\" Passed!\\n\");\r\n\t}", "private void testAdd(){\n System.out.println(\"------ TESTING: add(int element) -----\");\n try{\n // add values to list, the sequence is 0,1,....,iSize-1\n for(int i = 0; i < iSize; i++) {\n // if the add method returns false the program did not work correctly\n if (!iTestList.add(i))\n throw new RuntimeException(\"FAILED -> failed to add value to list\");\n }\n }catch(RuntimeException e){\n System.out.print(e.getMessage());\n }\n }", "@Override\n public final boolean add(final Integer element) {\n // First, check to see that the array can support another element\n ensureCapacity(size);\n // Add the element to the next available slot\n arrayList[size++] = element;\n return true;\n }", "@Test\r\n\tpublic void testAddIntE() {\r\n\t\tassertEquals(0, ll.size());\r\n\t\tassertTrue(ll.isEmpty());\r\n\r\n\t\t// valid additions\r\n\t\tll.add(0, t3);\r\n\t\tassertEquals(1, ll.size());\r\n\t\tll.add(0, t2);\r\n\t\tassertEquals(2, ll.size());\r\n\t\tll.add(2, t4);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertFalse(ll.isEmpty());\r\n\r\n\t\t// invalid additions\r\n\t\ttry {\r\n\t\t\tll.add(-1, t1);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(4, t5);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(0, t3);\r\n\t\t\tfail();\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.add(0, null);\r\n\t\t\tfail();\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\t}", "private void testAddAtIndex(){\n System.out.println(\"------ TESTING : add(int index, int element) ------\");\n try{\n // The insertion will add values to the front\n // the sequence should be iSize-1....,1,0\n for(int i = 0; i < iSize ; i++){\n if(!iTestList.add(0,i))\n throw new RuntimeException(\"FAILED -> add(index,element) not working correctly\");\n }\n // we should test the out of edge cases\n // if we try the following code and the return value is true or if the\n // program crashes then there is a problem\n if(iTestList.add(iSize+10, 999 )){\n throw new RuntimeException(\"FAILED -> index should not be > SIZE\");\n }\n if(iTestList.add(-2,999 )){\n throw new RuntimeException(\"FAILED -> index should not be < 0\");\n }\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "public boolean add (Object o) {return addLast(o);}", "@Test\n public void addPastInitialCapacity() {\n for (int iteration = 0; iteration < 20; iteration++) {\n testList.add(42);\n }\n assertEquals(20, testList.count());\n }", "public Boolean add(int value) {\n\t\t\n\t\tfor (Integer elem : elemList) {\n\t\t\tif (elem == value)\n\t\t\t\treturn false;\n\t\t}\n\t\tthis.elemList.add(value);\n\t\treturn true;\n\t}", "@Test\n public void testAdd_int_GenericType_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n int expResult = 8;\n instance.add(2, 9);\n assertEquals(expResult, instance.size());\n }", "public boolean insertLast(int value) {\n if (head == tail && size == capacity)\n return false;\n else {\n elementData[tail] = value;//由于tail初始时为0,在最左侧,即为双端队列\n //最左侧头端点:tail的位置;将value值插入进来后。\n tail = (tail + 1 + capacity) % capacity;//更新尾指针的指向指向前一个位置\n size++;\n return true;\n }\n }", "public boolean add( T element )\n {\n // THIS IS AN APPEND TO THE LOGICAL END OF THE ARRAY AT INDEX count\n if (size() == theArray.length) upSize(); // DOUBLES PHYSICAL CAPACITY\n theArray[ count++] = element; // ADD IS THE \"setter\"\n return true; // success. it was added\n }", "@Test\r\n\tvoid testAppend2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.append(1);\r\n\t\ttest.append(2);\r\n\t\ttest.append(3);\r\n\t\ttest.append(4);\r\n\t\ttest.append(5);\r\n\t\ttest.append(6);\r\n\t\ttest.append(7);\r\n\t\ttest.append(8);\r\n\t\ttest.append(9);\r\n\t\ttest.append(10);\r\n\t\ttest.append(11);\r\n\t\tString output = test.toString();\r\n\t\tassertEquals(\"1 2 3 4 5 6 7 8 9 10 11\", output);\r\n\t}", "public Boolean add(Integer i) {\n return list.add(i);\n }", "@Test\n public void testAdd_int_GenericType_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.add(2, 9);\n List<Integer> expResult = Arrays.asList(1, 1, 9, 7, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n }", "public void append(Integer data) {\n\t\t// Construct a node tmp and make null as the next pointer:Step1\n\t\tListNode tmp = new ListNode(data, null);\n\n\t\tif (!isEmpty()) {\n\t\t\t// make next pointer of tail as tmp :Step2\n\t\t\t tail.next = tmp;// tmp is new tail\n\t\t\t\n\t\t} else {\n\t\t\t// but if list is empty then the temp is the only element \n\t\t\t//and is new tail as wells as head[see next statement executed]\t\n\t\t\tthis.head = tmp;\n\t\t}\n\t\tthis.tail = tmp; // now make tmp the new tail:Step2\n\t\n\t\tlength++;\n\t}", "public boolean insertLast(int value) {\n if (isFull()) {\n return false;\n } else if (front == 0 && !isEmpty()) {\n int[] newElements = new int[capacitySize];\n System.arraycopy(elements, 0, newElements, 1, last);\n elements = newElements;\n front = 0;\n last++;\n elements[0] = value;\n } else if (front == 0 && isEmpty()) {\n elements[0] = value;\n last++;\n } else {\n elements[--front] = value;\n }\n return true;\n }", "public boolean insert(int val) {\n\n return list.add(val);\n }", "@Override\n public boolean add(int value) {\n Entry newElement = new Entry(value);\n if (size == 0) {\n first = newElement;\n last = newElement;\n } else {\n last.next = newElement;\n newElement.previous = last;\n last = newElement;\n }\n size++;\n return true;\n }", "@Test\n public void addToIncreaseCount() {\n testList.add(42);\n assertEquals(1, testList.count());\n }", "private static void addAtTest( int addAt\n , int value\n ) {\n list.add( addAt, value);\n System.out.println(\n \"insert \" + value\n + \" at position \" + addAt\n + \", resulting in \" + list.size() + \" elements:\"\n + System.lineSeparator()\n + list\n + System.lineSeparator()\n );\n }", "public boolean add( Object newVal )\n {\n\t//first expand if necessary\n\tif ( _size >= _data.length )\n\t expand();\n\n\t_data[_size] = newVal;\n\t_size++;\n\n\treturn true;\n }", "@Test\n public void testAdd_After_Add() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.add(3);\n instance.add(9);\n int expResult = 3;\n\n assertEquals(expResult, baseList.indexOf(9));\n }", "public boolean insertLast(int value) {\n if (isFull()) {\n return false;\n }\n arr[tail] = value;\n tail = (tail + 1) % k;\n return true;\n\n }", "@Test\n public void testAdd() {\n System.out.println(\"add\");\n al.add(1);\n Integer a = 1;\n assertEquals(a, al.get(0));\n }", "@Override\n public boolean add(T e) {\n if (numElements == maxElements) {\n doubleCapacity();\n }\n\n // Add element\n elements[numElements++] = e;\n return true;\n }", "public void testAppend() {\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n assertEquals(6, test1.length());\n }", "private static void testAdd(ArrayList list, int[] content) {\n System.out.print(\"Adding to the list: \");\n for (int index = 0; index < content[index]; index++) {\n list.addToEnd(content);\n } // end for\n System.out.println();\n displayList(list);\n }", "@Test\n\tpublic void testAddList() {\n\t\tarrayList = new ArrayListImplementation<String>();\n\t\tarrayList.addItem(\"1\");\n\t\tarrayList.addItem(\"2\");\n\t\tArrayListImplementation<String> tempArrayList = new ArrayListImplementation<String>();\n\t\ttempArrayList.addItem(\"4\");\n\t\ttempArrayList.addItem(\"5\");\n\t\ttempArrayList.addItem(\"6\");\n\t\tint sizeBeforeListAdded = arrayList.getActualSize();\n\t\tarrayList.addList(tempArrayList);\n\t\tint sizeAfterListAdded = arrayList.getActualSize();\n\t\tassertNotEquals(sizeBeforeListAdded, sizeAfterListAdded);\n\t}", "@Test\r\n\tpublic void testAddE() {\r\n\t\tassertEquals(0, ll.size());\r\n\t\tassertTrue(ll.isEmpty());\r\n\t\t\r\n\t\tassertTrue(ll.add(t5));\r\n\t\tassertEquals(1, ll.size());\r\n\t\tassertEquals(t5, ll.get(0));\r\n\t\t\r\n\t\tassertTrue(ll.add(t4));\r\n\t\tassertEquals(2, ll.size());\r\n\t\tassertEquals(t5, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\t\r\n\t\tassertTrue(ll.add(t3));\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t5, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\tassertEquals(t3, ll.get(2));\r\n\t\t\r\n\t\tassertFalse(ll.add(null));\r\n\t\tassertFalse(ll.add(t3));\r\n\t\ttry {\r\n\t\t\tll.get(-1);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tll.get(3);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testAddAllInt() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 4, \"ferrum\"));\r\n\t\tsample.add(new Munitions(10, 5, \"ferrum\"));\r\n\t\tsample.addAll(1, list);\r\n\t\tAssert.assertEquals(17, sample.size());\r\n\t\tAssert.assertTrue(sample.get(0).equals(new Munitions(2, 4, \"ferrum\")));\r\n\t\tAssert.assertTrue(sample.get(1).equals(list.get(0)));\r\n\t\tAssert.assertTrue(sample.get(16).equals(new Munitions(10, 5, \"ferrum\")));\r\n\t}", "public boolean add(E obj)\r\n {\r\n int originalSize = this.size();\r\n listIterator(originalSize).add(obj);\r\n return originalSize != this.size();\r\n }", "@Test\n public void testAppends(){\n DoubleLinkedList<Integer> list1 = new DoubleLinkedList<Integer>();\n DoubleLinkedList<Integer> list2 = new DoubleLinkedList<Integer>();\n DoubleLinkedList<Integer> list3 = new DoubleLinkedList<Integer>();\n //builing of lists\n list1.addToFront(1);\n list1.addToFront(2);\n list1.addToFront(3);\n list2.addToFront(4);\n list2.addToFront(5);\n list2.addToFront(6);\n list3.addToFront(4);\n list3.addToFront(5);\n list3.addToFront(6);\n list3.addToFront(1);\n list3.addToFront(2);\n list3.addToFront(3);\n list1.append(list2);\n assertTrue(\"testing append with two lists\", list1.equals(list3));\n }", "@Test\n\tpublic void addNodeAtEnd() {\n\t\tSystem.out.println(\"Adding a node at the End of the list\");\n\t\tdll.append(1);\n\t\tdll.append(2);\n\t\tdll.append(3);\n\t\tdll.print();\n\t}", "@Test\n public void testAddAll_int_Collection_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.addAll(1, c);\n assertEquals(expResult, result);\n\n }", "public boolean add(int number)\n\t{\n\t\tif (arraySize >= array.length)\n\t\t{\n\t\t\tthis.ensureCapacity(array.length * 2 + 1);\n\t\t} \n\t\tarray[arraySize] = number;\t\n\t\tarraySize++;\n\t\treturn true;\n\t}", "public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }", "@Override\n public boolean add(T value) {\n if (!this.validate(this.cursor)) {\n this.ensureCapacity();\n }\n this.values[this.cursor++] = value;\n return this.values[this.cursor - 1].equals(value);\n }", "@Override\n public boolean add(T item) {\n // if the last spot in the array is unoccupied, item is simply added to the first empty spot\n if (arr[arr.length-1]!=null) {\n arr[size + 1] = item;\n size++;\n }\n // if array is full, number of spots is doubled and item is added\n if (arr[arr.length-1]== null){\n grow();\n arr[size+1] = item;\n size++;\n }\n return true;\n }", "public boolean insert(int val) {\n nums.add(val); //在列表末尾添加的元素 O(1)\n Set<Integer> set = idx.getOrDefault(val, new HashSet<Integer>());\n set.add(nums.size()-1);\n idx.put(val,set);\n return set.size()==1;\n }", "public boolean insertLast(int value) {\n if (isFull()) {\n return false;\n }\n queue[tail] = value;\n tail = moveRight(tail);\n return true;\n }", "@Test\n public void testAdd_int_GenericType() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n int expResult = 8;\n instance.add(2, 9);\n assertEquals(expResult, instance.size());\n }", "@Override\n public boolean add(E value) {\n if (this.values.length == this.index) {\n this.grow();\n }\n this.modCount++;\n this.values[index++] = value;\n return true;\n }", "@Override\n public final boolean add(Integer e) {\n if(definedOn.contains(e)){\n return super.add(e);\n } else {\n return false;\n }\n }", "public boolean append(E elem) {\r\n\t\tNode<E> newTail = new Node<E>(elem, tail, null);\r\n\t\tif (size == 0) {\r\n\t\t\ttail = newTail;\r\n\t\t\thead = tail;\r\n\t\t} else if (size == 1) {\r\n\t\t\ttail = newTail;\r\n\t\t\thead.next = tail;\r\n\t\t} else {\r\n\t\t\tNode<E> prevTail = tail;\r\n\t\t\ttail = newTail;\r\n\t\t\tprevTail.next = tail;\r\n\t\t}\r\n\t\tindices.add(tail);\r\n\t\tsize++;\r\n\t\treturn true;\r\n\t}", "public boolean insert(int val) {\n if (checkDups.containsKey(val)) {\n return false;\n }\n if (this.list.size() == this.size) {\n this.list.add(val);\n } else {\n this.list.set(this.size, val);\n }\n checkDups.put(val, this.size);\n this.size++;\n return true;\n \n }", "@Override\n public boolean add(E e) {\n notNull(e);\n if (size >= elementData.length) {\n int newCapacity = (elementData.length << 1);\n elementData = Arrays.copyOf(elementData, newCapacity);\n }\n elementData[size++] = e;\n return true;\n }", "public void add( Comparable newVal )\n {\n for( int p = 0; p < _data.size(); p++ ) {\n if ( newVal.compareTo( _data.get(p) ) < 0 ) {\n //newVal < oal[p]\n _data.add( p, newVal );\n return; //Q:why not break?\n }\n }\n _data.add( newVal ); //newVal > every item in oal, so add to end\n }", "public boolean add(T val) {\n Integer idx = hmap.get(val);\n if (idx == null) {\n int i = list.size();\n list.add(val);\n idx = new Integer(i);\n hmap.put(val, idx);\n return true;\n }\n return false;\n }", "@Test\n\tpublic void testAdd(){\n\t\tArrayIntList list = buildList(5);\n\t\tassertEquals(5, list.intCol.size());\n\t}", "boolean add(int value);", "public boolean add(IntSet add){\n\t\tif(contains(add)==-1){\n\t\t\tcontents.addElement(add);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean add(T data) {\n\t\tLinkedListNode<T> toAdd = new LinkedListNode<T>(tail, tail.getPrevious(), (T) data);\n\t\ttail.getPrevious().setNext(toAdd);\n\t\ttail.setPrevious(toAdd);\n\t\ttoAdd.setNext(tail);\n\t\t\n\t\tmodcount++;\n\t\tnodeCount++;\n\t\t\n\t\treturn true;\n\t}", "boolean testAppend(Tester t) {\n return t.checkExpect(this.mt.append(los3), los3)\n && t.checkExpect(this.mt.append(this.mt), this.mt)\n && t.checkExpect(this.lob3.append(los3),\n new ConsLoGamePiece(this.bullet9,\n new ConsLoGamePiece(this.bullet8,\n new ConsLoGamePiece(this.bullet1,\n new ConsLoGamePiece(this.ship3,\n new ConsLoGamePiece(this.ship2,\n new ConsLoGamePiece(this.ship1, new MtLoGamePiece())))))))\n && t.checkExpect(this.lob3.append(this.mt), this.lob3);\n }", "public void addToEnd( int newdata ) {\t\t\r\n\t\tif( link == null )\r\n\t\t\tlink = new IntNode( newdata, null );\r\n\t\telse {\r\n\t\t\tIntNode current = link;\r\n\t\t\twhile( current.link != null ) {\r\n\t\t\t\tcurrent = current.link;\r\n\t\t\t} // end while\r\n\t\t\tIntNode newNode = new IntNode( newdata, null );\r\n\t\t\tcurrent.link = newNode;\r\n\t\t} // end else\r\n\t}", "public void testAppend1()\n\t{\n\t\tinfo.append(a2);\n\t\tassertEquals(a2,info.remove());\n\t}", "@Test\n public void testAddAll_int_Collection_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n instance.addAll(1, c);\n\n int expResult = 9;\n int result = instance.size();\n assertEquals(expResult, result);\n\n }", "@Test\n public void testLastIndexOf_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n Integer arg = 7;\n\n int result = instance.lastIndexOf(arg);\n int expResult = 3;\n\n assertEquals(expResult, result);\n\n }", "public void append(int data) {\r\n ListNode temp = head;\r\n while(temp.next !=null) {\r\n temp = temp.next;\r\n }\r\n ListNode new_node = new ListNode(data);\r\n temp.next=new_node;\r\n }", "@Test\r\n\tpublic void testContains() {\r\n\t\tassertFalse(ll.contains(t1));\r\n\t\tll.add(0, t1);\r\n\t\tassertTrue(ll.contains(t1));\r\n\t}", "@Test\r\n public void test_nonEmptyList_endOfExistingListNotNull()\r\n {\r\n System.out.println(\"> Test4 - test_nonEmptyList_endOfExistingListNotNull(): end of existing-list should no longer point to null\");\r\n int obj = 7;\r\n System.out.print(\"creating a non-empty list with an arbitrary number of nodes...\");\r\n int[] a = {0, 0, 0, 0, 0};\r\n LinkedList instance = new LinkedList(a);\r\n // get to and mark end of list\r\n ListNode current = instance.getHead();\r\n int nodesInList = a.length;\r\n for (int i = 1; i < nodesInList; i++)\r\n current = current.getLink();\r\n System.out.println(\"inserting a new node at end of non-empty list...\");\r\n instance.addLast(obj);\r\n // test node insertion\r\n assertNotNull(\"end of existing-list points to null\", current.getLink());\r\n System.out.println(\"As expected, the end of the existing list no longer points to null\");\r\n }", "public boolean add(T data){\r\n\t\tif (data == null){\r\n\t\t\tthrow new IllegalArgumentException(\"data cannot be null\");\r\n\t\t}\r\n\t\tnumAdded++;\r\n \tmodCount++;\r\n\t\tArrayNode<T> temp = beginMarker.next;\r\n\t\t\r\n\t\t//Make first node and insert\r\n\t\tif (temp == endMarker){\r\n\t\t\tArrayNode<T> first = new ArrayNode<T>(\r\n\t\t\t\t\tbeginMarker,endMarker,capacityOfArrays);\r\n\t\t\tsize++;\r\n\t\t\tbeginMarker.next = first;\r\n\t\t\tendMarker.prev = first;\r\n\t\t\tfirst.insertSorted(data);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t//find node to place\r\n\t\twhile (temp != endMarker){\r\n\t\t\t//last node\r\n\t\t\tif ((temp.next==endMarker)){\r\n\t\t\t\tinsertWithPossibleSplit(temp, data);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//first element in the chainedarrays\r\n\t\t\tif ((temp==beginMarker.next)&&(temp.getFirst().compareTo(data)>0)){\r\n\t\t\t\tinsertWithPossibleSplit(temp, data);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//in between nodes\r\n\t\t\tif ((temp.getLast().compareTo(data)<0)&&\r\n\t\t\t\t\t(temp.next.getFirst().compareTo(data)>0)){\r\n\t\t\t\t//checks which is longer\r\n\t\t\t\tif ((temp.getArraySize()>=temp.next.getArraySize())&&\r\n\t\t\t\t\t\ttemp.getArraySize()==temp.getLength())\r\n\t\t\t\t\ttemp = temp.next;\r\n\t\t\t\t\r\n\t\t\t\tinsertWithPossibleSplit(temp, data);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//past this node\r\n\t\t\tif ((temp.getLast().compareTo(data) < 0)){\r\n\t\t\t\ttemp = temp.next;\r\n\t\t\t}\r\n\t\t\t//otherwise this one\r\n\t\t\telse{\r\n\t\t\t\tinsertWithPossibleSplit(temp, data);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "void testListMethods(Tester t) {\n IList<Integer> mt = new Empty<Integer>();\n IList<Integer> l1 = new Cons<Integer>(1,\n new Cons<Integer>(2, new Cons<Integer>(3, \n new Cons<Integer>(4, mt))));\n\n t.checkExpect(mt.len(), 0);\n t.checkExpect(l1.len(), 4);\n\n t.checkExpect(mt.append(l1), l1);\n t.checkExpect(l1.append(mt), l1);\n\n t.checkExpect(mt.getData(), null);\n t.checkExpect(l1.getData(), 1);\n\n t.checkExpect(l1.getNext(), new Cons<Integer>(2 , new Cons<Integer>(3 , \n new Cons<Integer>(4 , mt))));\n }", "public boolean add(int key) {\r\n\t\tint i = ArrayUtils.binarySearch(keys, size, key);\r\n\r\n\t\tif (i >= 0) {\r\n\t\t\treturn false; // already in array no need to add again\r\n\t\t} else {\r\n\t\t\ti = ~i;\r\n\r\n\t\t\tif (size >= keys.length) {\r\n\t\t\t\tint n = ArrayUtils.idealArraySize(size + 1);\r\n\r\n\t\t\t\tint[] nkeys = new int[n];\r\n\r\n\t\t\t\tSystem.arraycopy(keys, 0, nkeys, 0, keys.length);\r\n\t\t\t\tkeys = nkeys;\r\n\t\t\t}\r\n\r\n\t\t\tif (size - i != 0) {\r\n\t\t\t\tSystem.arraycopy(keys, i, keys, i + 1, size - i);\r\n\t\t\t}\r\n\r\n\t\t\tkeys[i] = key;\r\n\t\t\tsize++;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\n public void given3NumbersWhenAppendedToLinkedListShouldBeAddedToLast() {\n MyNode<Integer> myFirstNode = new MyNode<>(56);\n MyNode<Integer> mySecondNode = new MyNode<>(30);\n MyNode<Integer> myThirdNode = new MyNode<>(70);\n MyLinkedList myLinkedList = new MyLinkedList();\n myLinkedList.append(myFirstNode);\n myLinkedList.append(mySecondNode);\n myLinkedList.append(myThirdNode);\n myLinkedList.printMyNodes();\n boolean result = myLinkedList.head.equals(myFirstNode) &&\n myLinkedList.head.getNext().equals(mySecondNode) &&\n myLinkedList.tail.equals(myThirdNode);\n Assertions.assertTrue(result);\n }", "@Test\n\tpublic void testAdd1() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\n\t\tint notadd = 3;\n\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\n\t\tlistObj2.add(notadd);\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t}", "@Override\n public boolean add(final T element) {\n if (this.size > this.data.length - 1) {\n this.doubleArraySizeBy(2);\n }\n\n this.data[this.size++] = element;\n return true;\n }", "int addElement(int list, int data) {\n\t\treturn insertElement(list, -1, data);\n\t}", "@Override\n public boolean add(T t) {\n if (size >= 10) {\n data = new Object[(data.length * 3) / 2 + 1];\n data = Arrays.copyOfRange(data, 0, data.length);\n }\n data[size++] = t;\n return true;\n }", "@Test\n public void isEmpty() {\n assertTrue(myList.isEmpty());\n\n //given\n myList.add(0);\n\n //then\n assertFalse(myList.isEmpty());\n }", "void append(int new_data)\n {\n /* 1. allocate node\n * 2. put in the data */\n Node new_node = new Node(new_data);\n\n Node last = head;/* used in step 5*/\n\n /* 3. This new node is going to be the last node, so\n * make next of it as NULL*/\n new_node.setNext(null);\n\n /* 4. If the Linked List is empty, then make the new\n * node as head */\n if(head == null)\n {\n new_node.setPrev(null);\n head = new_node;\n return;\n }\n\n /* 5. Else traverse till the last node */\n while(last.getNext() != null)\n last = last.getNext();\n\n /* 6. Change the next of last node */\n last.setNext(new_node);\n\n /* 7. Make last node as previous of new node */\n new_node.setPrev(last);\n }", "public boolean insert(int val) {\n if (!map.containsKey(val)) {\n map.put(val, lst.size());\n lst.add(val);\n return true;\n }\n return false;\n }", "@Test\r\n public void containsAll() throws Exception {\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(2);\r\n l.add(3);\r\n assertTrue(sInt.containsAll(l));\r\n l.add(7);\r\n assertFalse(sInt.containsAll(l));\r\n }", "public boolean insert(int val) {\n if(map.containsKey(val))\n {\t\n \tmap.get(val).add(list.size());\n \tlist.add(val);\n \treturn false;\n }else{\n \tmap.put(val, new HashSet<Integer>());\n \tmap.get(val).add(list.size()); \t\n \tlist.add(val);\n \treturn true;\n }\n }", "@Override\n public boolean add(E e) {\n head++; //Increment the head by one\n if (head == ringArray.length)\n head = 0; //If we get to the end of the ring set the pointer to be 0 again to loop back round\n ringArray[head] = e; //Get the element\n if (elementCount < ringArray.length) //Increase the element count up until the length because at that point the number of elements cant change.\n elementCount++;\n return true;\n }", "@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}", "@Test\n public void addToNonEmptyList() {\n OurLinkedListHW list = new OurLinkedListHW();\n list.add(\"A\");\n list.add(\"C\");\n list.add(\"D\");\n list.add(\"E\");\n list.add(\"F\");\n list.add(\"G\");\n assertEquals(\"[A,C,D,E,F,G,]\", list.toString());\n assertEquals(6, list.size());\n //add to a specific index\n list.add(1, \"B\");\n list.add(5, \"B\");\n assertEquals(\"[A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(8, list.size());\n //add to the first index\n list.add(0, \"B\");\n assertEquals(\"[B,A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(9, list.size());\n //remove if at first index\n list.remove(\"B\");\n assertEquals(\"[A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(8, list.size());\n //remove if at last index\n list.remove(\"G\");\n assertEquals(\"[A,B,C,D,E,B,F,]\", list.toString());\n assertEquals(7, list.size());\n //remove if elsewhere\n list.remove(\"C\");\n assertEquals(\"[A,B,D,E,B,F,]\", list.toString());\n assertEquals(6, list.size());\n }", "public static boolean testAlphabetListAddBadInput1() {\r\n AlphabetList list1 = new AlphabetList(4);\r\n try {\r\n list1.add(null);\r\n } catch (NullPointerException e) {\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean insert(int val) {\n if(map.containsKey(val)) return false;\n map.put(val, list.size());\n list.add(val);\n return true;\n }", "public void add(int toBeAdded) {\n\t\tif (this.myCount==this.myValues.length){\n\t\t\tSystem.err.println(\"No more space in array\");\n\t\t\tSystem.exit(1);\n\t\t}\n \tthis.myValues[this.myCount] = toBeAdded;\n this.myCount++;\n }", "@Test\n public void testAdd_int_GenericType_Order() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.add(2, 9);\n List<Integer> expResult = Arrays.asList(1, 1, 9, 7, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n }", "public int addSongToPlayList(){\n\t\t\n\t\tint pos =0;\n\t\t\n\t\tboolean out = false;\n\t\t\n\t\tfor(int i=0; (i<songList.length)&&(out==false);i++){\n\t\t\n\t\tif(songList[i] == null){\n\t\t\tout = true;\n\t\t\tpos = i;\n\t\t}\n\t\t}\n\t\treturn pos;\n\t}", "@Test\n public void testAdd_After_Next() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.add(9);\n int expResult = 2;\n\n assertEquals(expResult, baseList.indexOf(9));\n }", "@Override\n\tpublic boolean add(T insertItem) {\n\t\t// TODO Just add the item to the array\n\t\tif (isFull()) {\n\t\t\treturn false;\n\t\t}\n\t\tdata[size++] = insertItem;\n\t\treturn true;\n\t}", "public void offer(int num){\n if(tail == fixedSize - 1) {\n List<Object> newList = new ArrayList<>();\n newList.add(num);\n //save next new list at tail\n tailList.add(newList);\n tailList = (List<Object>) tailList.get(tail);\n tail = 0;\n }else{ //not in last index,then directly add it;\n tailList.add(num);\n }\n count++;\n tail++;\n }", "@Test\r\n\tpublic void testAdd() {\r\n\t\tlist.add(new Munitions(23, 24, \"cuprum\"));\r\n\t\tAssert.assertEquals(16, list.size());\r\n\t\tAssert.assertTrue(list.get(15).equals(new Munitions(23, 24, \"cuprum\")));\r\n\t}", "@Override\r\n\tpublic int add() {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void add(int n) {\n\t\tvalues[size] = n; //add value to the list\n\t\tsize++; //increment size\n\t\tif (size == values.length){ //if the list is full expand it\n\t\t\tresize();\n\t\t}\n\t}", "@Override\n\tpublic boolean add(Integer e) {\n\t\t// TODO Auto-generated method stub\n\t\treturn false;\n\t}", "public boolean insert(int val) {\n if (set.containsKey(val)) return false;\n set.put(val, set.size());\n list.add(val);\n return true;\n }", "public void insertAtEnd(int val)\n {\n List nptr = new List(val, null, null); \n if(start == null)\n {\n start = nptr;\n end = start;\n }\n else\n {\n nptr.setListPrev(end);\n end.setListNext(nptr);\n end = nptr;\n }\n size++;\n }", "public void add( Comparable newVal ) {\n \t//if _data is full, expand the array\n \tif (_size == _data.length){\n\t \texpand();\n \t}\n \t\n\tset(_lastPos + 1, newVal);\n \t//increases _lastPos and _size\n \t_lastPos++;\n \t_size++;\n }", "@Test\n public void testAdd_GenericType_Overflow_Boundary() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n boolean expResult = true;\n boolean result = instance.add(7);\n assertEquals(expResult, result);\n }", "@Test\n public void testSize() {\n System.out.println(\"size\");\n al.add(1);\n assertEquals(1, al.size());\n }", "@Test\n public void testSubList_SubList_Item_Added() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n List<Integer> result = (SegmentedOasisList<Integer>) instance.subList(1, 4);\n result.add(8);\n\n List<Integer> expResult = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "public boolean insert(int val) {\n if (m.containsKey(val)) {\n return false;\n } else {\n l.add(val);\n m.put(val, l.size()-1);\n return true;\n }\n }", "public boolean insert(int val) {\n if (val2Index.containsKey(val)) return false;\n // 新元素插入到最后\n data.add(val);\n val2Index.put(val, data.size() - 1);\n return true;\n }", "private void arrayInsertLargeNumber(MyArrayList myArrayList, Results results, int value) {\r\n myArrayList.insertSorted(value);\r\n if(myArrayList.search(value)) {\r\n results.storeNewResult(\"ArrayInsertLargeNumber test case: FAILED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayInsertLargeNumber test case: PASSED\");\r\n }\r\n }" ]
[ "0.76499856", "0.6785407", "0.6603377", "0.64990306", "0.6385299", "0.61826736", "0.60886866", "0.6008874", "0.598397", "0.5957424", "0.5947468", "0.5913015", "0.5908372", "0.5906801", "0.5869007", "0.58681005", "0.5853975", "0.5815444", "0.58140147", "0.5801121", "0.5799166", "0.5793992", "0.5757794", "0.5753367", "0.57443386", "0.5723256", "0.5722741", "0.5718037", "0.5713451", "0.5702112", "0.569269", "0.5683511", "0.568231", "0.5679188", "0.5664638", "0.5654136", "0.5653808", "0.5635617", "0.56192774", "0.5617112", "0.559203", "0.5588444", "0.5587512", "0.5574904", "0.5571641", "0.55708206", "0.55656725", "0.5561884", "0.55577135", "0.5554183", "0.55511", "0.55394506", "0.5539266", "0.5534457", "0.55334574", "0.5512757", "0.5511385", "0.5505403", "0.5505216", "0.5500437", "0.5498678", "0.54928625", "0.5478926", "0.5473812", "0.54737926", "0.54721105", "0.54708207", "0.5463786", "0.5453274", "0.5441816", "0.5435079", "0.5423681", "0.5419836", "0.54196185", "0.5415215", "0.5411874", "0.5411874", "0.5411874", "0.5410224", "0.5405953", "0.53936857", "0.53919494", "0.5391597", "0.5388672", "0.5386843", "0.5384511", "0.53809446", "0.5379214", "0.53737485", "0.5369047", "0.5367883", "0.53629494", "0.53608596", "0.5355791", "0.53549814", "0.535431", "0.5353424", "0.53512836", "0.5341989", "0.53397155" ]
0.6205874
5
Tests append to see if the list increases in size when count and list.length are the same value.
@Test void testAppend2() { SimpleList test = new SimpleList(); test.append(1); test.append(2); test.append(3); test.append(4); test.append(5); test.append(6); test.append(7); test.append(8); test.append(9); test.append(10); test.append(11); String output = test.toString(); assertEquals("1 2 3 4 5 6 7 8 9 10 11", output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isFull(){\n return (count == size);\n \n }", "void testAppend(Tester t) {\n t.checkExpect(ints1.length(), 1);\n t.checkExpect(ints2.length(), 2);\n t.checkExpect(ints3.length(), 2);\n\n ints1.append(ints2);\n\n t.checkExpect(ints1.length(), 3);\n\n ints2.append(ints3);\n\n t.checkExpect(ints1.length(), 5);\n ints2.append(ints4);\n\n t.checkExpect(ints2.length(), 6);\n\n ints4.append(ints4);\n\n // will be infinite\n // t.checkExpect(ints4.length(), -1);\n }", "@Test\n public void addPastInitialCapacity() {\n for (int iteration = 0; iteration < 20; iteration++) {\n testList.add(42);\n }\n assertEquals(20, testList.count());\n }", "@Test\n public void addToIncreaseCount() {\n testList.add(42);\n assertEquals(1, testList.count());\n }", "private void arraySize(MyArrayList list, Results results) {\r\n int size = -123;\r\n size = list.size();\r\n if(size != -123) {\r\n results.storeNewResult(\"ArraySize test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArraySize test case: FAILED\");\r\n }\r\n }", "private void arrayIncreaaseSize(MyArrayList myArrayList, Results results) {\r\n int old_size = myArrayList.length();\r\n int value;\r\n Random rand = new Random();\r\n \r\n for(int i=0; i<50; i++) {\r\n value = rand.nextInt(10000);\r\n if(value < 0) {\r\n value = value * -1;\r\n }\r\n myArrayList.insertSorted(value);\r\n }\r\n if(myArrayList.length() == old_size + 25) {\r\n results.storeNewResult(\"ArrayIncrease test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayIncrease test case: FAILED\");\r\n }\r\n }", "private boolean ifFull() {\n return items.length == size;\n }", "public boolean isFull()\n\t{\n\t\tif (counter == list.length)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "private void checkIfArrayFull() {\n\n if(this.arrayList.length == this.elementsInArray) {\n size *= 2;\n arrayList = Arrays.copyOf(arrayList, size);\n }\n }", "public boolean isFull()\n { \n return count == elements.length; \n }", "@Test\r\n\tvoid testSize2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.append(1);\r\n\t\ttest.append(2);\r\n\t\ttest.append(3);\r\n\t\ttest.append(4);\r\n\t\ttest.append(5);\r\n\t\ttest.append(6);\r\n\t\ttest.append(7);\r\n\t\ttest.append(8);\r\n\t\ttest.append(9);\r\n\t\ttest.append(10);\r\n\t\ttest.append(11);\r\n\t\tint output = test.size();\r\n\t\tassertEquals(15, output);\r\n\t}", "@Test\n\tpublic void testAddList() {\n\t\tarrayList = new ArrayListImplementation<String>();\n\t\tarrayList.addItem(\"1\");\n\t\tarrayList.addItem(\"2\");\n\t\tArrayListImplementation<String> tempArrayList = new ArrayListImplementation<String>();\n\t\ttempArrayList.addItem(\"4\");\n\t\ttempArrayList.addItem(\"5\");\n\t\ttempArrayList.addItem(\"6\");\n\t\tint sizeBeforeListAdded = arrayList.getActualSize();\n\t\tarrayList.addList(tempArrayList);\n\t\tint sizeAfterListAdded = arrayList.getActualSize();\n\t\tassertNotEquals(sizeBeforeListAdded, sizeAfterListAdded);\n\t}", "@Test\n public void testSize() {\n testAdd();\n assertEquals(9, list1.size());\n }", "public static void checkAdd(int testSize) {\r\n\t\tSystem.out.println(\"Beginning checkAdd basic add test of size \" + testSize);\r\n\t\tSortedIntList list = new SortedIntList(false, testSize);\r\n\t\tRandom r = new Random();\r\n\t\tfor (int i = 0; i < testSize; i++) {\r\n\t\t\t// remember old list contents in case of a problem\r\n\t\t\tString old = list.toString();\r\n\t\t\t// pick a number between -testSize and +testSize, add to list\r\n\t\t\tint next = r.nextInt(2 * testSize + 1) - testSize;\r\n\t\t\t\r\n\t\t\tint expectedSize = i + 1;\r\n\t\t\t\r\n\t\t\t// add to end of list\r\n\t\t\tlist.add(next);\r\n\t\t\t\r\n\t\t\t// check list size and make sure list is sorted\r\n\t\t\tif (list.size() != expectedSize) {\r\n\t\t\t\tthrow new RuntimeException(\"\\n\\nafter adding \" + expectedSize\r\n\t\t\t\t+ \" items, size = \" + list.size() + \" (should be \" + expectedSize + \")\\n\");\r\n\t\t\t} else if (!isSorted(list)) {\r\n\t\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\"\\n\\nadding \" + next + \" failed; list is not sorted.\\n\" +\r\n\t\t\t\t\"List before add = \" + old + \";\\nlist after add = \" + list + \"\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\" Passed!\\n\");\r\n\t}", "public boolean isListLengthFixed();", "@Test\r\n\tpublic void testSize() {\r\n\t\tAssert.assertEquals(15, list.size());\r\n\t}", "@Test\n public void getSizeOfList() {\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n list.add(3);\n list.add(4);\n\n assertEquals(4, list.size());\n }", "@Test\r\n\tpublic void testSize() {\r\n\t\ttestArray = new ArrayBasedList<String>();\r\n\t\tassertEquals(0, testArray.size());\r\n\t\ttestArray.add(\"hi\");\r\n\t\ttestArray.add(\"hey\");\r\n\t\ttestArray.add(\"hello\");\r\n\t\tassertEquals(3, testArray.size());\r\n\t}", "@Override\r\n\tpublic boolean isfull() {\n\t\t\r\n\t\treturn count == size ;\r\n\t}", "boolean isListRemainingEmpty();", "public static boolean completeCheck(ArrayList<Integer> aList) {\n\t\tif (aList.size() == Utils.SIZE) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean append(E elem) {\r\n\t\tNode<E> newTail = new Node<E>(elem, tail, null);\r\n\t\tif (size == 0) {\r\n\t\t\ttail = newTail;\r\n\t\t\thead = tail;\r\n\t\t} else if (size == 1) {\r\n\t\t\ttail = newTail;\r\n\t\t\thead.next = tail;\r\n\t\t} else {\r\n\t\t\tNode<E> prevTail = tail;\r\n\t\t\ttail = newTail;\r\n\t\t\tprevTail.next = tail;\r\n\t\t}\r\n\t\tindices.add(tail);\r\n\t\tsize++;\r\n\t\treturn true;\r\n\t}", "public boolean add( T element )\n {\n // THIS IS AN APPEND TO THE LOGICAL END OF THE ARRAY AT INDEX count\n if (size() == theArray.length) upSize(); // DOUBLES PHYSICAL CAPACITY\n theArray[ count++] = element; // ADD IS THE \"setter\"\n return true; // success. it was added\n }", "private int sizeOfList(Student [] list) {\r\n\t\t\r\n\t\tint size = 0;\r\n\t\tStudent sizechecker;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\twhile (true) {\r\n\t\t\t\t\r\n\t\t\t\tsizechecker = list[size];\r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) { \r\n\t\t \r\n\t\t}\r\n\t\t\r\n\t\treturn size;\r\n\t}", "public boolean hasNext(){\n if(index < size && newList.get(index) != null){\n return true;\n }\n return false;\n }", "private void assertEqual(long count, long size) {\n\t\t\n\t}", "@Test\n public void testSize() {\n System.out.println(\"size\");\n al.add(1);\n assertEquals(1, al.size());\n }", "public void testAppend() {\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n assertEquals(6, test1.length());\n }", "@Override\n public final boolean add(final Integer element) {\n // First, check to see that the array can support another element\n ensureCapacity(size);\n // Add the element to the next available slot\n arrayList[size++] = element;\n return true;\n }", "public boolean add( Object newVal )\n {\n\t//first expand if necessary\n\tif ( _size >= _data.length )\n\t expand();\n\n\t_data[_size] = newVal;\n\t_size++;\n\n\treturn true;\n }", "public int getAppendCount();", "@Override\n public int size() {\n return list.size();\n }", "public int listSize(){\r\n return counter;\r\n }", "public boolean isFull() {\n return size == cnt;\n }", "@SuppressWarnings(\"unchecked\")\n\t private boolean grow() {\n\n\t /* \n\t * Add code here \n\t * Expand capacity (double it) and copy old array contents to the\n\t * new one. \n\t */\n\t\t \n\t\t capacity = (capacity*2);\n\t\t E[] new_elements = elements;\n\t\t elements = (E[])new Object[capacity];\n\t\t for(int i=0; i<new_elements.length;i++){\n\t\t\t elements[i] = new_elements[i];\n\t\t }\n\t System.out.println(\"Capacity reached. Increasing storage...\");\n\t System.out.println(\"New capacity is \" + capacity + \" elements\");\n\n\t return true;\n\t }", "public boolean isFull(){\n \treturn count==capacity;\n }", "@Test\n public void testAppends(){\n DoubleLinkedList<Integer> list1 = new DoubleLinkedList<Integer>();\n DoubleLinkedList<Integer> list2 = new DoubleLinkedList<Integer>();\n DoubleLinkedList<Integer> list3 = new DoubleLinkedList<Integer>();\n //builing of lists\n list1.addToFront(1);\n list1.addToFront(2);\n list1.addToFront(3);\n list2.addToFront(4);\n list2.addToFront(5);\n list2.addToFront(6);\n list3.addToFront(4);\n list3.addToFront(5);\n list3.addToFront(6);\n list3.addToFront(1);\n list3.addToFront(2);\n list3.addToFront(3);\n list1.append(list2);\n assertTrue(\"testing append with two lists\", list1.equals(list3));\n }", "@Test\n public void testAdd_Size() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.add(9);\n int expResult = 5;\n\n assertEquals(expResult, baseList.size());\n }", "@Override\n\tpublic int size() {\n\t\t\n\t\treturn list.size();\n\t}", "private void grow() {\r\n\t\t\r\n\t\t Student [] newList = new Student[sizeOfList(list) + 4];\r\n\t int size = sizeOfList(list);\r\n\t \r\n\t for(int i = 0; i < size; i++) {\r\n\t \t newList[i] = list[i];\r\n\t }\r\n\t list = newList;\r\n\t}", "@SmallTest\n\tpublic void testListCount() {\n\t\tint adapterCount = AVAILABLE_MENSAS;\n\t\tfor (int i = 0; i < mAdapter.getCount(); i++) {\n\t\t\t// if it is a section, then will be null, so we should add it to\n\t\t\t// number of canteens\n\t\t\tif (mAdapter.getItem(i) == null)\n\t\t\t\tadapterCount++;\n\t\t}\n\t\tassertEquals(\"List count does not match\", mAdapter.getCount(),\n\t\t\t\tadapterCount);\n\t}", "public synchronized int size(){\n return list.size();\n }", "@Override\n public boolean hasNext() {\n return currentPosition < list.size();\n }", "@Test\n public void testAddAll_int_Collection_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n instance.addAll(1, c);\n\n int expResult = 9;\n int result = instance.size();\n assertEquals(expResult, result);\n\n }", "public boolean add(E obj)\r\n {\r\n int originalSize = this.size();\r\n listIterator(originalSize).add(obj);\r\n return originalSize != this.size();\r\n }", "@Test\r\n\tvoid testSize() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\tint output = test.size();\r\n\t\tassertEquals(10, output);\r\n\t}", "@Test\n public void testPersistedSegmentCount_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n int expResult = 2;\n int result = instance.persistedSegmentCount();\n assertEquals(expResult, result);\n\n }", "private boolean removeLastElement() {\n if (--size == 0) {\n clear();\n return true;\n }\n return false;\n }", "public int size(){\n return list.size();\n }", "@Test\n public void testSize_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n int expResult = 6;\n\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n long result = instance.size();\n assertEquals(expResult, result);\n\n }", "public boolean isFull() {\n return count == capacity;\n }", "public boolean isFull()\r\n\t\t{\r\n\t\t\tint count = 0;\r\n\t\t\tData currentData = head;\r\n\t\t\twhile (currentData != null)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tcurrentData = currentData.nextData();\r\n\t\t\t}\r\n\t\t\treturn (count > 2); //if the count is > 2 then it is full\r\n\t\t}", "public boolean hasMoreElements() {\r\n \t\tif(numItems == 0 || currentObject == numItems) {\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\treturn true;\r\n \t}", "@Test\r\n\tvoid testCount2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.add(2);\r\n\t\ttest.add(3);\r\n\t\ttest.add(4);\r\n\t\ttest.add(5);\r\n\t\ttest.add(6);\r\n\t\ttest.add(7);\r\n\t\ttest.add(8);\r\n\t\ttest.add(9);\r\n\t\ttest.add(10);\r\n\t\ttest.add(11);\r\n\t\tint output = test.count();\r\n\t\tassertNotEquals(10, output);\r\n\t}", "public int size(){\r\n\t\treturn numAdded;\r\n\t}", "public boolean isFull()\r\n\t{\r\n\t\treturn (count == capacity);\r\n\t}", "public void testIsEmpty() {\r\n assertTrue( list.isEmpty());\r\n list.add(\"A\");\r\n assertFalse(list.isEmpty());\r\n }", "@Override\n public boolean add(T e) {\n if (numElements == maxElements) {\n doubleCapacity();\n }\n\n // Add element\n elements[numElements++] = e;\n return true;\n }", "@Test\r\n\tvoid testSize3() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\tint output = test.size();\r\n\t\tassertEquals(8, output);\r\n\t}", "@Test\n public void testSubList_SubList_Item_Update_Overflow() {\n SegmentedOasisList<StringBuilder> instance = new SegmentedOasisList<>(2, 2);\n\n instance.add(new StringBuilder(\"1\"));\n instance.add(new StringBuilder(\"1\"));\n instance.add(new StringBuilder(\"7\"));\n instance.add(new StringBuilder(\"7\"));\n instance.add(new StringBuilder(\"1\"));\n instance.add(new StringBuilder(\"1\"));\n\n List<StringBuilder> expResult = Arrays.asList(new StringBuilder(\"17\"), new StringBuilder(\"7\"),\n new StringBuilder(\"7\"));\n List<StringBuilder> result = instance.subList(1, 4);\n\n instance.get(1).append(\"7\");\n assertTrue(isEqual(expResult, result));\n\n }", "public boolean insert(int val) {\n if (checkDups.containsKey(val)) {\n return false;\n }\n if (this.list.size() == this.size) {\n this.list.add(val);\n } else {\n this.list.set(this.size, val);\n }\n checkDups.put(val, this.size);\n this.size++;\n return true;\n \n }", "private static boolean areAdjoining(List<Integer> list) {\r\n if (list.isEmpty()) {\r\n return false;\r\n }\r\n int check = list.get(0);\r\n for (int value : list) { // (use iterator for efficiency)\r\n if (value != check) {\r\n return false;\r\n }\r\n check += 1;\r\n }\r\n return true;\r\n }", "private static boolean checkOrderList() {\n if (size != MainGUI.orderList.size()) {\n size = MainGUI.orderList.size();\n return true;\n }\n\n return false;\n }", "public boolean addNewItem(VendItem item) {\n if (itemCount < maxItems) {\n stock[itemCount] = item;\n itemCount++;\n return true;\n } else {\n return false;\n }\n }", "@Test\n public void testContinguosStorageReSize() {\n for (int i = 9; i >= 0; i--) {\n String input = String.format(\"b0%d\", i);\n list.addToFront(input);\n }\n\n list.addToFront(\"Filler1\");\n list.addToBack(\"Filler2\");\n list.addToBack(\"Filler3\");\n list.addToFront(\"Filler0\");\n list.addAtIndex(0, \"Filler#\");\n list.addAtIndex(2, \"Filler!\");\n list.addAtIndex(6, \"Filler$\");\n list.removeFromFront();\n list.removeFromBack();\n list.removeAtIndex(4);\n list.removeAtIndex(0);\n list.removeAtIndex(2);\n\n int actualCapacity = ((Object[]) (list.getBackingArray())).length;\n for (int i = 0; i < list.size(); i++) {\n Assert.assertNotNull(((Object[]) (list.getBackingArray()))[i]);\n }\n for (int i = list.size(); i < actualCapacity; i++) {\n Assert.assertNull(((Object[]) (list.getBackingArray()))[i]);\n }\n }", "void testListMethods(Tester t) {\n IList<Integer> mt = new Empty<Integer>();\n IList<Integer> l1 = new Cons<Integer>(1,\n new Cons<Integer>(2, new Cons<Integer>(3, \n new Cons<Integer>(4, mt))));\n\n t.checkExpect(mt.len(), 0);\n t.checkExpect(l1.len(), 4);\n\n t.checkExpect(mt.append(l1), l1);\n t.checkExpect(l1.append(mt), l1);\n\n t.checkExpect(mt.getData(), null);\n t.checkExpect(l1.getData(), 1);\n\n t.checkExpect(l1.getNext(), new Cons<Integer>(2 , new Cons<Integer>(3 , \n new Cons<Integer>(4 , mt))));\n }", "public int size(){\n\n \treturn list.size();\n\n }", "@Override\n boolean shouldFlush(TYPE item) {\n // increment the current item count, and get the modulus of size\n currentItem = ++currentItem % size;\n // if the modulus is 0, we've hit our max, and we flush the list\n return currentItem == 0;\n }", "public boolean add(ElementType element){\n if(this.contains(element)){\n return false;\n }\n else{\n if(size==capacity){\n reallocate();\n }\n elements[size]=element;\n size++;\n }\n return true;\n }", "@Override\n public boolean add(final T element) {\n if (this.size > this.data.length - 1) {\n this.doubleArraySizeBy(2);\n }\n\n this.data[this.size++] = element;\n return true;\n }", "@Test(timeout = TIMEOUT)\n public void testIsEmptyAndClear() {\n assertTrue(list.isEmpty());\n\n // Should not be empty after adding elements\n list.addAtIndex(0, \"0a\"); // 0a\n list.addAtIndex(1, \"1a\"); // 0a, 1a\n list.addAtIndex(2, \"2a\"); // 0a, 1a, 2a\n list.addAtIndex(3, \"3a\"); // 0a, 1a, 2a, 3a\n list.addAtIndex(4, \"4a\"); // 0a, 1a, 2a, 3a, 4a\n assertFalse(list.isEmpty());\n\n // Clearing the list should empty the array and reset size\n list.clear();\n assertTrue(list.isEmpty());\n assertEquals(0, list.size());\n assertArrayEquals(new Object[ArrayList.INITIAL_CAPACITY],\n list.getBackingArray());\n }", "private boolean updateBufferList() {\n while(!data.isEmpty() && availableFirst() == 0) {\n popBuffer();\n }\n return !data.isEmpty();\n }", "@Test\n public void testContinguosStorageOriginalSize() {\n list.addToFront(\"Filler1\");\n list.addToBack(\"Filler2\");\n list.addToBack(\"Filler3\");\n list.addToFront(\"Filler0\");\n list.addAtIndex(0, \"Filler#\");\n list.addAtIndex(2, \"Filler!\");\n list.addAtIndex(6, \"Filler$\");\n list.removeFromFront();\n list.removeFromBack();\n list.removeAtIndex(4);\n list.removeAtIndex(0);\n list.removeAtIndex(2);\n\n int actualCapacity = ((Object[]) (list.getBackingArray())).length;\n for (int i = 0; i < list.size(); i++) {\n Assert.assertNotNull(((Object[]) (list.getBackingArray()))[i]);\n }\n for (int i = list.size(); i < actualCapacity; i++) {\n Assert.assertNull(((Object[]) (list.getBackingArray()))[i]);\n }\n }", "private static boolean isSame(List<PokerLabel> list, int size) {\n PokerLabel firstPokerLabel = list.get(0);\n int num = firstPokerLabel.getNum();\n for (PokerLabel p: list) {\n if (num != p.getNum()) {\n return false;\n }\n }\n return true;\n }", "private void testAdd(){\n System.out.println(\"------ TESTING: add(int element) -----\");\n try{\n // add values to list, the sequence is 0,1,....,iSize-1\n for(int i = 0; i < iSize; i++) {\n // if the add method returns false the program did not work correctly\n if (!iTestList.add(i))\n throw new RuntimeException(\"FAILED -> failed to add value to list\");\n }\n }catch(RuntimeException e){\n System.out.print(e.getMessage());\n }\n }", "@Test\n public void testRetainAll_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n\n Collection c = Arrays.asList(3, 2, 3, 2, 3, 1, 2);\n instance.addAll(c);\n\n c = Arrays.asList(2, 3);\n instance.retainAll(c);\n\n int expectedResult = 6;\n assertEquals(expectedResult, instance.size());\n\n }", "public boolean isFull() {\n return (this.count == this.capacity);\n }", "@Test\n public void isEmpty() {\n assertTrue(myList.isEmpty());\n\n //given\n myList.add(0);\n\n //then\n assertFalse(myList.isEmpty());\n }", "@Override\n public boolean add(T item) {\n // if the last spot in the array is unoccupied, item is simply added to the first empty spot\n if (arr[arr.length-1]!=null) {\n arr[size + 1] = item;\n size++;\n }\n // if array is full, number of spots is doubled and item is added\n if (arr[arr.length-1]== null){\n grow();\n arr[size+1] = item;\n size++;\n }\n return true;\n }", "@Test\n public void addToNonEmptyList() {\n OurLinkedListHW list = new OurLinkedListHW();\n list.add(\"A\");\n list.add(\"C\");\n list.add(\"D\");\n list.add(\"E\");\n list.add(\"F\");\n list.add(\"G\");\n assertEquals(\"[A,C,D,E,F,G,]\", list.toString());\n assertEquals(6, list.size());\n //add to a specific index\n list.add(1, \"B\");\n list.add(5, \"B\");\n assertEquals(\"[A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(8, list.size());\n //add to the first index\n list.add(0, \"B\");\n assertEquals(\"[B,A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(9, list.size());\n //remove if at first index\n list.remove(\"B\");\n assertEquals(\"[A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(8, list.size());\n //remove if at last index\n list.remove(\"G\");\n assertEquals(\"[A,B,C,D,E,B,F,]\", list.toString());\n assertEquals(7, list.size());\n //remove if elsewhere\n list.remove(\"C\");\n assertEquals(\"[A,B,D,E,B,F,]\", list.toString());\n assertEquals(6, list.size());\n }", "public int size() {\n\t return list.size();\n }", "@Test\n public void cantAddMoreThanCapacity(){\n for (int i = 0; i<12; i++){\n library.addBook(book);\n }\n assertEquals(10, library.bookCount());\n }", "private boolean isFull() {\n\t\treturn (size == bq.length);\n\t}", "public boolean insert(int val) {\n if (!map.containsKey(val)) {\n map.put(val, new HashSet<>());\n }\n map.get(val).add(size);\n list.add(val);\n size++;\n return map.get(val).size() == 1;\n }", "public boolean hasNext() {\n\t if(nextCount>=size) {\n\t \treturn false;\n\t }\n\t return true;\n\t }", "public boolean hasNext() {\n\t if(nextCount>=size) {\n\t \treturn false;\n\t }\n\t return true;\n\t }", "public void offer(int num){\n if(tail == fixedSize - 1) {\n List<Object> newList = new ArrayList<>();\n newList.add(num);\n //save next new list at tail\n tailList.add(newList);\n tailList = (List<Object>) tailList.get(tail);\n tail = 0;\n }else{ //not in last index,then directly add it;\n tailList.add(num);\n }\n count++;\n tail++;\n }", "@Override\n public boolean isEmpty()\n {\n return list.size()<1;\n }", "public boolean hasMoreItems();", "public boolean isFull() {\n if((this.tail+1)%this.size==this.head)\n return true;\n return false;\n }", "public int size(){\n\t\treturn list.size();\n\t}", "public int size(){\n\t\treturn list.size();\n\t}", "@Override\n public int size() {\n return count;\n }", "@Override\n public int size() {\n return count;\n }", "public boolean isFull(){\n return size == arrayQueue.length;\n }", "boolean isFull() {return pointer==size;}", "@Override\n public boolean isFull() {\n return this.count() == 5;\n }", "@Override\n protected int update(byte[] array, int off, int count) throws IOException {\n int mark = (int)limit;\n \n if(count >= limit) {\n append(array, off, mark);\n finished = true;\n limit = 0;\n return count - mark;\n } \n if(count > 0) {\n append(array, off, count);\n limit -= count; \n }\n return 0;\n }", "public boolean isFull() {\n return size == k;\n}", "public boolean isFull()\r\n\t{\r\n\t\treturn numItems > MAXSIZE;\r\n\t}", "@Test\n public void addToList(){\n List<Float> list = new ArrayList<>();\n list.add(1f);\n list.add(2f);\n list.add(3f);\n list.add(4f);\n\n assertEquals(4,list.size());\n\n list.add(5f);\n\n assertEquals(5,list.size());\n }" ]
[ "0.6335923", "0.63120025", "0.6295299", "0.62900764", "0.6219732", "0.6166748", "0.6154142", "0.6124717", "0.61097795", "0.610819", "0.60875183", "0.60357314", "0.599029", "0.59835297", "0.59268516", "0.58613485", "0.58293736", "0.580926", "0.57509506", "0.57471174", "0.5741197", "0.5728833", "0.57216954", "0.57166535", "0.56971955", "0.5693946", "0.5675636", "0.5672644", "0.5660699", "0.56601727", "0.5639711", "0.56030136", "0.55987173", "0.5585507", "0.55703264", "0.55252254", "0.55218935", "0.54819125", "0.5454453", "0.5448544", "0.5447198", "0.5429607", "0.5414396", "0.54095006", "0.54064536", "0.54056793", "0.5401388", "0.5399731", "0.5396766", "0.5396744", "0.53858995", "0.5384096", "0.5371599", "0.5363753", "0.53612906", "0.53606486", "0.5356593", "0.5355589", "0.53510374", "0.53488314", "0.5340411", "0.53391355", "0.53384334", "0.5331225", "0.5322195", "0.5314989", "0.5314614", "0.53004164", "0.5298766", "0.5297071", "0.52954423", "0.5291689", "0.5288637", "0.52880514", "0.5280062", "0.52777153", "0.5276911", "0.527442", "0.52693105", "0.5269027", "0.52659583", "0.52650213", "0.5263391", "0.52628666", "0.52490056", "0.52490056", "0.5247858", "0.52434087", "0.5241861", "0.52393174", "0.5237265", "0.5237265", "0.5233905", "0.5233905", "0.5233625", "0.5232328", "0.5230613", "0.5226252", "0.5215969", "0.52143687", "0.5212535" ]
0.0
-1
Tests first to see if the first element is correctly returned.
@Test void testFirst() { SimpleList test = new SimpleList(); test.add(3); test.add(7); test.add(10); int output = test.first(); assertEquals(10, output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean first() {\n initialize();\n return next();\n }", "public Object firstElement();", "public boolean isFirst() {\n\t\treturn first;\n\t}", "public E getFirst() {\r\n\t\t// element checks to see if the list is empty\r\n\t\treturn element();\r\n\t}", "public Object getFirst()\n {\n if (first == null)\n {\n throw new NoSuchElementException();\n }\n else\n return first.getValue();\n }", "public Object getFirst()\n {\n if(first == null){\n throw new NoSuchElementException();}\n \n \n \n return first.data;\n }", "private boolean isEmpty() {return first == null;}", "public boolean isFirst() throws SQLException {\n/* 208 */ return (this.currentPositionInEntireResult == 0);\n/* */ }", "@Override\r\n\tpublic Object first(){\r\n\t\tcheck();\r\n\t\treturn head.value;\r\n\t}", "public Item getFirst();", "public T first() throws EmptyCollectionException;", "public T first() throws EmptyCollectionException;", "public boolean isFirst() {\n return !hasPrevious();\n }", "public Object getFirst() {\r\n if (size == 0)\r\n throw new NoSuchElementException();\r\n\r\n return header.next.element;\r\n }", "boolean isEntriesFirst();", "public T getFirst();", "public T getFirst();", "@Test\r\n\tvoid testFirst2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\tint output = test.first();\r\n\t\tassertEquals(-1, output);\r\n\t}", "public E first() \n throws NoSuchElementException {\n if (entries != null && \n size > 0 ) {\n position = 0;\n E element = entries[position]; \n position++;\n return element;\n } else {\n throw new NoSuchElementException();\n }\n }", "public boolean first(String key) {\n initialize();\n return next(key);\n }", "public boolean isFirst() {\n\t\treturn (prev == null);\n\t}", "public A getFirst() { return first; }", "public T getFirst( ){\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t//first node\r\n\t\tArrayNode<T> first = beginMarker.next;\r\n\t\ttry{\r\n\t\t\t//first elem\r\n\t\t\treturn first.getFirst();\r\n\t\t}catch( IndexOutOfBoundsException e){\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t}\r\n\t\t\r\n\t}", "public T1 getFirst() {\n\t\treturn first;\n\t}", "public E getFirst();", "public T getFirst() {\n return this.getHelper(this.indexCorrespondingToTheFirstElement).data;\n }", "@Override\r\n\t\tpublic T getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "T first();", "@Override\r\n\t\tpublic final E getFirst() {\n\t\t\treturn null;\r\n\t\t}", "public A first() {\n return first;\n }", "public E first() {\n if (isEmpty()) return null;\n return first.item;\n }", "public Unit first()\n\t{\n\t\tif (size() == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn iterator().next();\n\t}", "public Object getFirst() throws ListException {\r\n\t\tif (size() >= 1) {\r\n\t\t\treturn get(1);\r\n\t\t} else {\r\n\t\t\tthrow new ListException(\"getFirst on an empty list\");\r\n\t\t}\r\n\t}", "public E getFirst() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}", "public SeleniumQueryObject first() {\n\t\treturn FirstFunction.first(this, this.elements);\n\t}", "@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }", "Node getFirst() {\n return this.first;\n }", "public JspElement getFirst() {\r\n\treturn _first;\r\n}", "public Optional<T> getFirstItem() {\n return getData().stream().findFirst();\n }", "public T first(int x)throws EmptyCollectionException, \n InvalidArgumentException;", "public E getFirst() {\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\t\treturn mHead.next.data;\n\t}", "public T first() throws EmptyCollectionException{\n if (front == null){\n throw new EmptyCollectionException(\"list\");\n }\n return front.getElement();\n }", "@Override\r\n\tpublic E getFirst() {\n\t\treturn null;\r\n\t}", "public E getFirst() {\n return peek();\n }", "public E first() {\n if(isEmpty()){\n return null;\n }else{\n return header.getNext().getElement();\n }\n }", "public Object getFirst() {\n\t\tcurrent = start;\n\t\treturn start == null ? null : start.item;\n\t}", "public U getFirst(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls get\r\n\t \treturn get(0);\r\n\t }", "public E first() {\n\r\n if (head == null) {\r\n return null;\r\n } else {\r\n return head.getItem();\r\n }\r\n\r\n }", "public node getFirst() {\n\t\treturn head;\n\t\t//OR\n\t\t//getAt(0);\n\t}", "public boolean isSetFirstRow()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FIRSTROW$22) != 0;\n }\n }", "public boolean offerFirst(E item);", "@Override\r\n\tprotected void doFirst() {\n\t\t\r\n\t}", "public O first()\r\n {\r\n if (isEmpty()) return null; \r\n return first.getObject();\r\n }", "@Override\r\n\tpublic T first() {\n\t\treturn head.content;\r\n\t}", "public K getFirst() {\r\n\t\treturn first;\r\n\t}", "public Optional<E> first() {\n return Optional.ofNullable(queryFirst());\n }", "public VectorItem<O> firstVectorItem()\r\n {\r\n if (isEmpty()) return null; \r\n return first;\r\n }", "@Override\r\n\t\tpublic T getFirst() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.getFirst();\r\n\t\t\t}\r\n\t\t}", "@Override\n public E getFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n return dequeue[head];\n }", "@Override\n public boolean isEmpty() {\n if(first == null){ //if first element does not exist, the whole is empty\n return true;\n }\n else{\n return false; //if first element exist, list is not empty\n }\n }", "public Object getFirst() {\n if (first == null)\n return null;\n return first.getInfo();\n }", "public int getFirst();", "public boolean first() throws SQLException {\n\n try {\n debugCodeCall(\"first\");\n checkClosed();\n if (result.getRowId() < 0) { return nextRow(); }\n resetResult();\n return nextRow();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "@Nullable\n public T firstOrNull() {\n return Query.firstOrNull(iterable);\n }", "public static <T> T getFirstElement(final Iterable<T> elements) {\n\t\treturn elements.iterator().next();\n\t}", "@Override\r\n\tpublic E peekFirst() {\n\t\treturn peek();\r\n\t}", "public E first() {\n if (this.isEmpty()) return null;\r\n return this.head.getElement();\r\n }", "public boolean moveFirst(\n )\n {moveStart(); return moveNext();}", "boolean hasFirstField();", "@Override\n public int element() {\n isEmptyList();\n return first.value;\n }", "@NotNull\n public F getFirst() {\n return first;\n }", "public boolean isEmpty(){\n return first == null;\n }", "public static IDescribable getFirst( Collection<? extends IDescribable> results )\r\n\t{\r\n\t if(( results == null ) || ( results.size() == 0 ))\r\n\t return null;\r\n\t return results.iterator().next();\r\n\t}", "public int getFirst() {\n\t\treturn first;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn first == null;\n\t}", "public boolean isEmpty(){\n\t\treturn first==null;\r\n\t}", "public java.lang.Integer getFirstResult()\r\n {\r\n return this.firstResult;\r\n }", "public F first() {\n return this.first;\n }", "public E first() { // returns (but does not remove) the first element\n // TODO\n if (isEmpty()) return null;\n return tail.getNext().getElement();\n }", "public Node getFirst()\n {\n return this.first;\n }", "public abstract PaginatedResult<T> first() throws AblyException;", "public boolean isEmpty() {\n return first == null;\n }", "@Override\n public boolean isEmpty(){\n return this.first == null;\n }", "public Node<T> getFirst() {\r\n\t\treturn first;\r\n\t}", "public int getFirst() {\n return first;\n }", "public int getFirst() {\n if (size > 0)\n return 0;\n else\n return NO_ELEMENT;\n }", "public int getFirstElement() {\n\t\tif( head == null) {\n\t\t\tSystem.out.println(\"List is empty\");\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\telse {\n\t\t\treturn head.data;\n\t\t}\n\t}", "public void firstElement() {\r\n \t\tcurrentObject = 0;\r\n \t}", "public Element first() {\n if(isEmpty()) return null;\n else return header.getNextNode().getContent();\n }", "public boolean isEmpty() {\n\t return first == null;\n }", "public Object getFirstObject()\n {\n \tcurrentObject = firstObject;\n\n if (firstObject == null)\n \treturn null;\n else\n \treturn AL.get(0);\n }", "public boolean isBeforeFirst() throws SQLException {\n/* 151 */ return (this.currentPositionInEntireResult < 0);\n/* */ }", "public E peekFirst();", "@Override\n public Tile getFirst() {\n return tiles.iterator().next();\n }", "public boolean isEmpty() {\n return first == null;\n\n }", "public boolean isFirst() throws SQLException {\n\n try {\n debugCodeCall(\"isFirst\");\n checkClosed();\n int row = result.getRowId();\n return row == 0 && row < result.getRowCount();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public E pollFirst();", "@Override\n\tpublic E first() {\n\t\treturn queue[pos];\n\t}" ]
[ "0.7642023", "0.7308109", "0.71965134", "0.7031944", "0.6944708", "0.69238484", "0.6898601", "0.6864166", "0.6832858", "0.6800249", "0.6767116", "0.6767116", "0.67530864", "0.66948265", "0.66714746", "0.66691256", "0.66691256", "0.66641194", "0.66494596", "0.6640277", "0.6627351", "0.66136944", "0.66105884", "0.6601261", "0.65991575", "0.65926945", "0.65831673", "0.65821785", "0.65729356", "0.6569993", "0.6563867", "0.65362436", "0.65120596", "0.6509096", "0.6507182", "0.64995694", "0.64995694", "0.6499046", "0.64949954", "0.6487614", "0.64607537", "0.6444101", "0.64353305", "0.6433882", "0.642467", "0.64118725", "0.6399818", "0.6394476", "0.63872683", "0.6384982", "0.63835555", "0.63810235", "0.63756573", "0.6352633", "0.6351424", "0.634661", "0.63312465", "0.6313242", "0.6295099", "0.62886786", "0.628203", "0.62743443", "0.6272501", "0.626678", "0.62543964", "0.62498504", "0.6239335", "0.6233728", "0.623267", "0.6226022", "0.62256527", "0.6221504", "0.62186545", "0.6215937", "0.62064534", "0.6205476", "0.6205288", "0.6204578", "0.62005055", "0.6199359", "0.61971813", "0.6185765", "0.61726874", "0.61718446", "0.6169177", "0.6159878", "0.61568195", "0.6156339", "0.6154636", "0.61399704", "0.6127904", "0.61211705", "0.61195827", "0.61031884", "0.61025923", "0.61005175", "0.6099047", "0.609424", "0.6091001", "0.6087829" ]
0.73220295
1
Tests first to see if 1 is returned when there is no elements in the list.
@Test void testFirst2() { SimpleList test = new SimpleList(); int output = test.first(); assertEquals(-1, output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int checkEmpty() {\n\t\treturn (slist.checkEmpty());\n\n\t}", "@Override\n public boolean isEmpty()\n {\n return list.size()<1;\n }", "@Override\n public boolean isEmpty() {\n if(first == null){ //if first element does not exist, the whole is empty\n return true;\n }\n else{\n return false; //if first element exist, list is not empty\n }\n }", "private boolean isEmpty() {return first == null;}", "public int antalNuller(ArrayList<Integer> list) {\r\n int nuller = 0;\r\n for (int i : list) {\r\n if (i == 0) {\r\n nuller++;\r\n }\r\n }\r\n return nuller;\r\n }", "boolean isListRemainingEmpty();", "boolean isEmpty(int list) {\n\t\treturn m_lists.getField(list, 0) == -1;\n\t}", "@Override\r\n\tpublic boolean isempty() {\n\t\treturn count<=0;\r\n\t\t\r\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn first == null;\n\t}", "public boolean isEmpty(){\n\t\treturn first==null;\r\n\t}", "public boolean isEmpty(){\n\n \treturn list.size() == 0;\n\n }", "public boolean isEmpty() // true if list is empty\r\n\t{\r\n\t\treturn (first == null);\r\n\t}", "public boolean isEmpty()\n {\n return first == null;\n }", "public /*@ pure @*/ boolean isEmpty() {\n return the_list == null;\n }", "public boolean isEmpty() {\n return first == null;\n }", "public boolean isEmpty() {\n\t return first == null;\n }", "public boolean isEmpty() {\n\t\treturn first == null;\n\t}", "public boolean isEmpty() {\n\t\treturn first == null;\n\t}", "int isEmpty(){\n if(values[0]==(-1)){\n return 1;\n }\n return (-1);\n }", "public boolean isEmpty(){\n return first == null;\n }", "public boolean isEmpty() {\n return first==null;\n }", "public boolean isEmpty(){\n\t\treturn firstNode == null; //return true if List is empty\n\t}", "public boolean isEmpty() {\n return first == null;\n\n }", "public boolean isEmpty() {\r\n return first == null;\r\n }", "public boolean isEmpty(){\n\t\treturn (howMany==0);\n\t}", "@Override\n public boolean isEmpty(){\n return this.first == null;\n }", "public boolean isEmpty() {\n return first == null;\n }", "public boolean isEmpty() {\n return first == null;\n }", "public boolean isEmpty() {\n return first == null;\n }", "public boolean isEmpty() {\n return first == null;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "public boolean isEmpty() { return count == 0; }", "public boolean isEmpty()\n\t{\n\t\treturn list.isEmpty();\n\t}", "public boolean isEmpty(){\n return (count == 0);\n }", "public boolean isEmpty() {\r\n\t\t\treturn (First==null); }", "boolean isEntriesFirst();", "@Override\n\tpublic boolean isEmpty() {\n\t\tboolean respuesta = true;\n\t\tif(N > 0)\n\t\t{\n\t\t\trespuesta = false;\n\t\t}\n\t\treturn respuesta;\n\t}", "public boolean isEmpty()\n\t{ \n\t\treturn (front==-1);\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn (t==1);\r\n\t}", "public boolean first() {\n initialize();\n return next();\n }", "public boolean containsAtMostOneItem() {\n boolean contains;\n if (start==null | start.next==null) {\n contains = true;\n }\n return contains;\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn count == 0;\r\n\t}", "@Override\n\tpublic boolean isEmpty()\n\t{\n if (list.isEmpty())\n {\n return true;\n } \n else\n {\n return false;\n }\n\t}", "@Override\n public boolean isEmpty(){\n return (count == 0);\n }", "public boolean isEmpty() {\n return this.first == null;\n }", "public boolean isEmpty()\r\n { return N == 0; }", "public boolean isEmpty() {\n\t\treturn elements == 0;\n\t}", "public boolean isEmpty() {\n return (first == null);\n }", "public boolean isEmpty() {\n return (first == null);\n }", "public boolean empty() {\n\t\treturn list.size() == 0;\n\t}", "public boolean isEmpty(){\n return (numItems==0);\n }", "public boolean isEmpty()\r\n\t{\r\n\t\treturn (count == 0);\r\n\t}", "public boolean isEmpty()\r\n\t{\r\n\t\treturn count == 0;\r\n\t}", "public boolean isEmpty(){\n return this.listSize == 0;\n }", "public boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "public boolean isEmpty(){return count==0;}", "public boolean isEmpty() {\n\t\tif (first == null) \n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}", "public boolean isEmpty() {\n return elements == 0;\n }", "public synchronized boolean isEmpty(){\n return list.isEmpty();\n }", "public boolean isEmpty()\r\n {\r\n if (count > 0) return false;\r\n else return true;\r\n }", "public boolean isEmpty() {\n\t\treturn (index == 0);\n\t}", "public boolean isEmpty() {\n return dataList.size() <= 0 || (dataList.size() == 1 && dataList.get(0).isEmpty());\n }", "public boolean isEmpty() {\r\n\t\treturn al.listSize == 0;\r\n\t}", "public static boolean isEmpty() \r\n\t{\r\n\t\treturn m_count == 0;\r\n }", "public boolean isEmpty(){\n return(numItems == 0);\n }", "public static void main(String... args) {\n\n List<String> list = new ArrayList<>();\n if( list != null && !list.isEmpty()) {\n System.out.println(\"1\");\n } else {\n System.out.println(\"2\");\n }\n\n }", "public boolean isEmpty() {\n\t\treturn numElements == 0; // Dummy return\n\t}", "public boolean isFirst() throws SQLException {\n/* 208 */ return (this.currentPositionInEntireResult == 0);\n/* */ }", "public boolean isEmpty() {\n\t\treturn firstNode == null; // return true if List is empty\n\t}", "@Override\n public int element() {\n isEmptyList();\n return first.value;\n }", "boolean isEmpty()\n\t{\n\t\treturn front==-1;\n\t}", "public boolean isEmpty() {\n\t\treturn count == 0? true : false;\r\n\t}", "public boolean isEmpty() {\n\t\treturn (N == 0);\t\n\t}", "public boolean isEmpty()\n {\n return count==0;\n }", "public boolean isEmpty(){\n\t\tif(list.isEmpty()){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isEmpty(){\n return itemCount == 0;\n }", "public boolean isEmpty() {\n\t\treturn count==0;\n\t}", "public boolean isEmpty()\r\n\t{\r\n\t\treturn numItems == 0 ;\r\n\t}", "public boolean isEmpty() {\r\n\t\treturn cur_index==0;\r\n\t}", "private boolean isEmpty() {\n\t\treturn size() == 0;\n\t}", "public boolean isEmpty(){\n\t\tif(first == null){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isEmpty()\n {\n //this method is used to check length\n //replacing head == null so I don't have to maintain a head\n //also error checks for null lists\n return (entryList == null || (entryList.size() == 0));\n //just doing .size() == 0 will raise a null pointer exception on occasion\n }", "private boolean checkEmpty() {\n\t\treturn this.array[0] == null;\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn topIndex < 0;\r\n\t}", "public boolean isEmpty() {\n return list.isEmpty();\n }", "public boolean isEmpty ()\n {\n return lastIndex == -1;\n }", "@Override\n public boolean isEmpty(){\n return itemCount == 0;\n }", "private void testIsEmpty() {\n init();\n assertTrue(\"empty\", FListInteger.isEmpty(l0));\n assertFalse(\"nonempty\", FListInteger.isEmpty(l1));\n }", "public boolean isEmpty() {\n return cnt == 0;\n }", "public boolean isEmpty() {\n return (count == 0);\n }", "public boolean isEmpty() {\n\t\treturn N == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn N == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn N == 0;\n\t}", "public static boolean empty() {\n\n if (list.size() != 0){\n return false;\n }\n return true;\n }", "public boolean isEmpty(){\n \treturn top==-1;\n\t}", "public boolean isEmpty() { \r\n \treturn n == 0;\r\n }", "public synchronized boolean isEmpty () {\n return list.isEmpty();\n }", "boolean isEmpty ()\n {\n return (front == -1);\n }", "public boolean empty() {\n if (list.size() == 0) {\n return true;\n }\n else {\n return false;\n }\n }", "public boolean isEmpty() {\n if (first == null) {\n return true;\n } else {\n return false;\n }\n }" ]
[ "0.69617265", "0.6857921", "0.6699414", "0.66934705", "0.66031116", "0.6579737", "0.6549082", "0.6515224", "0.650307", "0.64405894", "0.6429577", "0.6370263", "0.63539064", "0.6335651", "0.6334737", "0.6320314", "0.63189924", "0.63189924", "0.6307634", "0.63033426", "0.6299331", "0.62880665", "0.6279435", "0.62755597", "0.62545264", "0.62471133", "0.6245559", "0.6245559", "0.6245559", "0.6245559", "0.62441456", "0.62441456", "0.62371993", "0.6208156", "0.6205393", "0.618483", "0.6176874", "0.6171169", "0.61641186", "0.6162315", "0.61538357", "0.61482716", "0.6136645", "0.6133645", "0.612439", "0.6118454", "0.6116726", "0.61146426", "0.61050963", "0.61050963", "0.60925144", "0.60871613", "0.6085181", "0.60718507", "0.60652876", "0.6059554", "0.6056789", "0.6055581", "0.60545236", "0.60541856", "0.60442066", "0.60430044", "0.60396564", "0.6031596", "0.60267025", "0.6020558", "0.60025924", "0.6001202", "0.5999432", "0.59911567", "0.59850806", "0.5979754", "0.59773195", "0.5974868", "0.5971864", "0.59710246", "0.59593", "0.59552133", "0.5953509", "0.59527284", "0.5946603", "0.5942046", "0.5941266", "0.593526", "0.5934416", "0.5925067", "0.592223", "0.591461", "0.59014755", "0.58992046", "0.5898442", "0.58963805", "0.58963805", "0.58963805", "0.58957005", "0.5895684", "0.58955747", "0.5894937", "0.5894557", "0.5881191", "0.5879438" ]
0.0
-1
Tests last to see if the last element is correctly returned.
@Test void testLast() { SimpleList test = new SimpleList(); test.add(3); test.add(7); test.add(10); int output = test.last(); assertEquals(3, output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isLast() {\n return !hasNext();\n }", "@Test\r\n\tvoid testLast2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\tint output = test.last();\r\n\t\tassertEquals(-1, output);\r\n\t}", "public boolean isLast() {\n\t\treturn last;\n\t}", "public boolean last() {\n boolean result = false;\n while(iterator.hasNext()) {\n result = true;\n next();\n }\n\n return result;\n }", "E last() throws NoSuchElementException;", "public boolean isLast() {\n\t\treturn (next == null);\n\t}", "public boolean isAfterLast() {\n/* 125 */ return (this.lastRowFetched && this.currentPositionInFetchedRows > this.fetchedRows.size());\n/* */ }", "@Test\r\n\tpublic void testGetLast() {\n\t}", "public boolean isLast() throws SQLException {\n/* 219 */ return (this.lastRowFetched && this.currentPositionInFetchedRows == this.fetchedRows.size() - 1);\n/* */ }", "public Object lastElement();", "public boolean moveLast(\n )\n {\n int lastIndex = objects.size()-1;\n while(index < lastIndex)\n {moveNext();}\n\n return getCurrent() != null;\n }", "public boolean isLastPosition() {\n return this.value == LAST_VALUE;\n }", "public Object last()throws ListExeption;", "@Override\n public boolean isAfterLast() {\n boolean result = true;\n if (mCalllogDatas != null) {\n result = (mIndex >= mCalllogDatas.size()) ? true : false;\n }\n\n MyLogger.logD(CLASS_TAG, \"isAfterLast():\" + result);\n return result;\n }", "@Test\r\n\tpublic void testLastIndexOf() {\r\n\t\tAssert.assertTrue(list.lastIndexOf(null) == -1);\r\n\t\tAssert.assertEquals(2, list.lastIndexOf(new Munitions(2, 3, \"iron\")));\r\n\t\tlist.add(new Munitions(2, 3, \"iron\"));\r\n\t\tAssert.assertEquals(15, list.lastIndexOf(new Munitions(2, 3, \"iron\")));\r\n\t}", "@Override\r\n\tpublic Object last(){\r\n\t\tcheck();\r\n\t\treturn tail.value;\r\n\t}", "private int lastNotNull() {\n\t\treturn (!this.checkEmpty()) ? findLast() : 0;\n\t}", "public T last() throws EmptyCollectionException;", "public boolean getIsLastInSubList() {\n\t\treturn isLastInSubList();\n\t}", "public boolean isLastList() {\r\n return lastList;\r\n }", "public boolean last(String key) {\n last();\n previous(key);\n return next();\n }", "@Override\n\tpublic boolean isLast(Position P) throws InvalidPositionException {\n\t\treturn false;\n\t}", "public boolean isLastInSubList() {\n\t\tif (parent == null || parent.getSubList() == null || parent.getSubList().size() == 0) {\n\t\t\treturn false;\n\t\t}\n\t\treturn (parent.getSubList().indexOf(this) == parent.getSubList().size() - 1);\n\t}", "void isLastPosition(boolean isLastPosition);", "public boolean isLast() throws SQLException {\n\n try {\n debugCodeCall(\"isLast\");\n checkClosed();\n int row = result.getRowId();\n return row >= 0 && row == result.getRowCount() - 1;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public E last() { // returns (but does not remove) the last element\n // TODO\n\n if ( isEmpty()) return null ;\n return tail.getElement();\n }", "public T last() throws EmptyCollectionException{\n if (rear == null){\n throw new EmptyCollectionException(\"list\");\n }\n return rear.getElement();\n }", "public boolean offerLast(E item);", "public E last() {\n if (next == null) {\n return head();\n } else {\n JMLListEqualsNode<E> ptr = this;\n //@ maintaining ptr != null;\n while (ptr.next != null) {\n ptr = ptr.next;\n }\n //@ assert ptr.next == null;\n //@ assume ptr.val != null ==> \\typeof(ptr.val) <: \\type(Object);\n E ret = (ptr.val == null\n ? null\n : (ptr.val) );\n //@ assume ret != null ==> \\typeof(ret) <: elementType;\n //@ assume !containsNull ==> ret != null;\n return ret;\n }\n }", "@Override\n public E getLast() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n return dequeue[tail];\n }", "public Object last() {\r\n\t\treturn elements.get(size() - 1);\r\n\t}", "private boolean removeLastElement() {\n if (--size == 0) {\n clear();\n return true;\n }\n return false;\n }", "T last();", "public T getLast( ){\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t//last node\r\n\t\tArrayNode<T> last = endMarker.prev;\r\n\t\ttry{\r\n\t\t\t//last elem\r\n\t\t\treturn last.getLast();\r\n\t\t}catch( IndexOutOfBoundsException e){\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t}\r\n\t}", "public Object getLast() throws ListException {\r\n\t\tif (size() >= 1) {\r\n\t\t\tDoublyNode lastNode = head.getPrev();\r\n\t\t\treturn lastNode.getItem();\r\n\t\t} else {\r\n\t\t\tthrow new ListException(\"getLast on an empty list\");\r\n\t\t}\r\n\t}", "public boolean isLast() throws SQLException\n {\n return m_rs.isLast();\n }", "public boolean isAfterLast() throws SQLException {\n\n try {\n debugCodeCall(\"isAfterLast\");\n checkClosed();\n int row = result.getRowId();\n int count = result.getRowCount();\n return row >= count || count == 0;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public E peekLast();", "@Override\n public boolean callCheck() {\n return last == null;\n }", "public T getLast()\n\t//POST: FCTVAL == last element of the list\n\t{\n\t\tNode<T> tmp = start;\n\t\twhile(tmp.next != start) //traverse the list to end\n\t\t{\n\t\t\ttmp = tmp.next;\n\t\t}\n\t\treturn tmp.value;\t//return end element\n\t}", "public int getLast() {\n\t\treturn last;\n\t}", "public E last() {\n if (this.isEmpty()) return null;\r\n return this.tail.getElement();\r\n }", "public T getLast();", "public T getLast();", "public U getLast(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls get\r\n\t \treturn get(numElems-1);\r\n\t }", "public E getLast() {\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\n\t\tNode p = mHead.next;\n\t\twhile (p.next != mTail) {\n\t\t\tp = p.next;\n\t\t}\n\n\t\treturn p.data;\n\t}", "@Test\n public void getLast() {\n //getFirst and getLast are also relied on for the majority of this Junit.\n //if these are broken you can probably figure that out elsewhere\n String[] expect = new String[ArrayDeque.INITIAL_CAPACITY];\n //check first addFirst. should go to last index in arr\n expect[0] = \"a\";\n expect[1] = \"b\";\n expect[2] = \"c\";\n expect[3] = \"d\";\n expect[4] = \"e\";\n ard.addLast(\"a\");\n ard.addLast(\"b\");\n ard.addLast(\"c\");\n ard.addLast(\"d\");\n ard.addLast(\"e\");\n\n //getFirst and getLast are also relied on for the majority of this Junit.\n //if these are broken you can probably figure that out elsewhere\n assertEquals(\"e\", ard.getLast());\n assertEquals(Arrays.toString(expect), Arrays.toString(ard.getBackingArray()));\n ard.removeLast();\n expect[4] = null;\n assertEquals(\"d\", ard.getLast());\n assertEquals(Arrays.toString(expect), Arrays.toString(ard.getBackingArray()));\n ard.addFirst(\"before\");\n expect[10] = \"before\";\n assertEquals(Arrays.toString(expect), Arrays.toString(ard.getBackingArray()));\n for (int i = 0; i < 5; i++) {\n ard.addFirst(\"more before\");\n expect[9 - i] = \"more before\";\n }\n assertEquals(\"d\", ard.getLast());\n assertEquals(Arrays.toString(expect), Arrays.toString(ard.getBackingArray()));\n }", "private void setLast() { this._last = true; }", "@Override\r\n\tpublic E getLast() {\n\t\treturn null;\r\n\t}", "public Item getLast();", "public TypeHere getLast() {\n return items[size - 1];\n }", "Position<T> last();", "public E getLast() {\r\n\t\tif (tail == null) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t} else {\r\n\t\t\treturn indices.get(size - 1).data;\t\r\n\t\t}\r\n\t}", "@Override\n\tpublic Position last() throws EmptyContainerException {\n\t\treturn null;\n\t}", "public E getLast();", "public Node<T> getLast() \r\n {\r\n if (isEmpty()) return sentinel;\r\n return sentinel.prev;\r\n }", "public boolean isLastPage();", "@Override\r\n\tpublic boolean offerLast(E e) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic T last() {\n\t\treturn tail.content;\r\n\t}", "public Item getLast() {\n return items[size - 1];\n }", "public int lastElement() {\r\n\r\n\t\treturn (usedSize - 1);\r\n\r\n\t}", "public boolean isAfterLast() throws SQLException\n {\n return m_rs.isAfterLast();\n }", "public int getLast() {\n\treturn _last;\n }", "@java.lang.Override\n public boolean hasLastLocation() {\n return lastLocation_ != null;\n }", "T butLast();", "public boolean isLastBatch() {\r\n\t\treturn (getTotalMatches() == getEndRange());\r\n\t}", "public E last() {\n\r\n if(tail == null) {\r\n return null;\r\n } else {\r\n return tail.getItem();\r\n\r\n }\r\n }", "@Test\n\tpublic void last() {\n\t\tDoublyLinkedList.main(new String[0]);\n\t}", "@Override\r\n public boolean setLast(L last) {\r\n throw new UnsupportedOperationException(UNSUPPORTED);\r\n }", "public boolean isSetLastRow()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(LASTROW$16) != 0;\n }\n }", "void checkLastItem() {\n if (!mItems.isEmpty() && !mItems.get(mItems.size() - 1).equals(ADD_NEW_ENTRY)) {\n // add last item again if missing\n mItems.add(ADD_NEW_ENTRY);\n // need to manually call, since this item is not in Db and hence ignored by DiffUtil\n notifyItemInserted(mItems.size() - 1);\n }\n }", "private boolean chkCurRulIsLast(){\n\tfor(int i=0; i<ConditionTree.length;i++){\n\t\tif(currentRule.equals(ConditionTree[i][0]) && ConditionTree[i][5].equals(\"Y\")){\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\t\n}", "public E pollLast() {\r\n\t\tif (isEmpty()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tE ret = (E) data.get(data.size() - 1);\r\n\t\tdata.remove(data.size() - 1);\r\n\t\treturn ret;\r\n\t}", "public node getLast() {\n\t\tif(head == null) {\n\t\t\treturn null;\n\t\t}\n\t\tnode tmp = head;\n\t\twhile(tmp.next !=null) {\n\t\t\ttmp = tmp.next;\n\t\t}\n\t\treturn tmp;\n\n\t\t//OR\n\t\t//getAt(size()-1);\n\t}", "public Object getLast() {\r\n if (size == 0)\r\n throw new NoSuchElementException();\r\n\r\n return header.previous.element;\r\n }", "public Node<T> getLast() {\r\n\t\treturn last;\r\n\t}", "public E getLast() {\r\n\r\n\t\treturn (E) data.get(data.size() - 1);\r\n\t}", "boolean isFinished() {\n return includedInLastStep() && (end == elementList.size() - 1);\n }", "public int last() throws XPathException {\n if (last == -1) {\n if (base instanceof LastPositionFinder) {\n last = ((LastPositionFinder)base).getLastPosition();\n }\n if (last == -1) {\n last = Count.count(base.getAnother());\n }\n }\n return last;\n }", "public E last() {\n if(isEmpty()){\n return null;\n }else{\n return trailer.getPrev().getElement();\n }\n }", "private static <T> T lastItemOfList(List<T> list) {\n if (list == null || list.size() == 0) {\n return null;\n }\n return list.get(list.size() - 1);\n }", "public boolean last() throws SQLException\n {\n return m_rs.last();\n }", "public E pollLast();", "public JspElement getLast() {\r\n\treturn _last;\r\n}", "@Test\n void givenLastElementWhenDeletedShouldPassLinkedListResult() {\n MyNode<Integer> myFirstNode = new MyNode<>(56);\n MyNode<Integer> mySecondNode = new MyNode<>(30);\n MyNode<Integer> myThirdNode = new MyNode<>(70);\n MyLinkedList myLinkedList = new MyLinkedList();\n myLinkedList.append(myFirstNode);\n myLinkedList.append(mySecondNode);\n myLinkedList.append(myThirdNode);\n myLinkedList.printMyNodes();\n myLinkedList.popLast();\n myLinkedList.printMyNodes();\n boolean result = myLinkedList.head.equals(myFirstNode) &&\n myLinkedList.head.getNext().equals(mySecondNode) &&\n myLinkedList.tail.equals(mySecondNode);\n Assertions.assertTrue(result);\n }", "public boolean last() throws SQLException {\n\n try {\n debugCodeCall(\"last\");\n checkClosed();\n return absolute(-1);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public E getLast()// you finish (part of HW#4)\n\t{\n\t\t// If the tree is empty, return null\n\t\t// FIND THE RIGHT-MOST RIGHT CHILD\n\t\t// WHEN you can't go RIGHT anymore, return the node's data to last Item\n\t\tif (root == null)\n\t\t\treturn null;\n\t\tBinaryNode<E> iteratorNode = root;\n\t\twhile (iteratorNode.hasRightChild())\n\t\t\titeratorNode = iteratorNode.getRightChild();\n\t\treturn iteratorNode.getData();\n\t}", "boolean hasIsLastBatch();", "@Test\n public void testLastIndexOf() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n Integer arg = 7;\n\n int result = instance.lastIndexOf(arg);\n int expResult = 3;\n\n assertEquals(expResult, result);\n\n }", "public boolean isLastNode() \n\t{\n\t // Checks if I am pointing to null*.\n\t\t// If so, then I know I am the last node.\n\t\t// *Note: From the perspective of this instance of Node.\n\t if (this.next == null)\n\t {\n\t return true;\n\t }\n\t \n\t // Otherwise, I know I am not last,\n\t // because there is a next node after me.\n\t return false;\n\t}", "public int getLast() {\n if (size == 0)\n return NO_ELEMENT;\n else\n return endOfBlock[numberOfBlocks - 1] - 1;\n }", "public Node getLast()\n {\n return this.last;\n }", "public boolean offerLast(E x) {\n\t\taddLast(x);\n\t\treturn true;\n\t}", "public String getLast()\n {\n return lastItem;\n }", "public Item getLast() {\n Node nextToLast = findNode(size-1);\n Node removed = nextToLast.next;\n nextToLast.next = head;\n removed.next = null;\n size--;\n return removed.item;\n }", "public RTWElementRef lastAsElement();", "@Override\r\n\tprotected void doLast() {\n\t\t\r\n\t}", "public boolean hasLastLocation() {\n return lastLocationBuilder_ != null || lastLocation_ != null;\n }", "public boolean deleteLast() {\n if (isEmpty()) {\n return false;\n } else {\n elements[front++] = -1;\n return true;\n }\n }", "private boolean isNodeLast(TreeNode node)\n\t{\n\t\tTreeNode parent = node.getParent();\n\t\tif (parent == null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn parent.getChildAt(parent.getChildCount() - 1).equals(node);\n\t\t}\n\t}" ]
[ "0.77328736", "0.7697624", "0.76199436", "0.7568739", "0.75422436", "0.7532612", "0.73994344", "0.7357941", "0.7256227", "0.7053312", "0.7009564", "0.69809914", "0.69528913", "0.6908101", "0.68972456", "0.68753695", "0.6853155", "0.6846034", "0.6774811", "0.6773778", "0.6769794", "0.6758549", "0.6698867", "0.6688829", "0.66831374", "0.6666001", "0.663926", "0.66187936", "0.6614389", "0.6606212", "0.6598338", "0.65923715", "0.6583929", "0.6573023", "0.6568902", "0.6560086", "0.65255755", "0.6524627", "0.6503226", "0.64948183", "0.64786094", "0.6470474", "0.6462595", "0.6462595", "0.64547145", "0.64542156", "0.6453607", "0.6432791", "0.64267683", "0.642028", "0.6418869", "0.6413937", "0.640732", "0.6402323", "0.6398709", "0.63879836", "0.6382877", "0.63733184", "0.63718444", "0.6365713", "0.63654417", "0.63628155", "0.63614833", "0.6356729", "0.63542277", "0.6344694", "0.6339758", "0.6336619", "0.63338137", "0.63306504", "0.6322683", "0.6314734", "0.6300803", "0.6299458", "0.6297527", "0.6280423", "0.6278148", "0.6274457", "0.6273309", "0.6266159", "0.6265119", "0.6258957", "0.62428343", "0.6234293", "0.6222505", "0.6215658", "0.62127763", "0.6209506", "0.6205088", "0.6200167", "0.6197608", "0.619099", "0.6182531", "0.61774457", "0.61482334", "0.6139102", "0.61340857", "0.6131345", "0.61247206", "0.6123993" ]
0.7901449
0
Tests last to see if 1 is returned when there is no elements in the list.
@Test void testLast2() { SimpleList test = new SimpleList(); int output = test.last(); assertEquals(-1, output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int lastNotNull() {\n\t\treturn (!this.checkEmpty()) ? findLast() : 0;\n\t}", "boolean isListRemainingEmpty();", "public boolean isLast() {\n\t\treturn (next == null);\n\t}", "boolean isLast() {\n return !hasNext();\n }", "@Override\n public boolean isEmpty()\n {\n return list.size()<1;\n }", "public int checkEmpty() {\n\t\treturn (slist.checkEmpty());\n\n\t}", "@Override\n public boolean callCheck() {\n return last == null;\n }", "public boolean last() {\n boolean result = false;\n while(iterator.hasNext()) {\n result = true;\n next();\n }\n\n return result;\n }", "public boolean isEmpty ()\n {\n return lastIndex == -1;\n }", "@Test\r\n\tvoid testLast() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(3);\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\tint output = test.last();\r\n\t\tassertEquals(3, output);\r\n\t}", "E last() throws NoSuchElementException;", "private boolean isEmpty() {return first == null;}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn first == null;\n\t}", "@Override\n public boolean isEmpty() {\n if(first == null){ //if first element does not exist, the whole is empty\n return true;\n }\n else{\n return false; //if first element exist, list is not empty\n }\n }", "public boolean isLast() {\n\t\treturn last;\n\t}", "public boolean isFull()\n\t{\n\t\tif (counter == list.length)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isEmpty() {\n return front == last ? true : false;\n }", "public boolean isEmpty(){\n\t\treturn tail <= 0;\n\t}", "public boolean isEmpty(){\n\n \treturn list.size() == 0;\n\n }", "public boolean isEmpty(){\n\t\treturn first==null;\r\n\t}", "public boolean hasMore(){\r\n return curr != null;\r\n }", "@Override\r\n\tpublic boolean isempty() {\n\t\treturn count<=0;\r\n\t\t\r\n\t}", "public boolean isEmpty() // true if list is empty\r\n\t{\r\n\t\treturn (first == null);\r\n\t}", "public boolean containsAtMostOneItem() {\n boolean contains;\n if (start==null | start.next==null) {\n contains = true;\n }\n return contains;\n }", "public boolean empty() {\n\t\treturn list.size() == 0;\n\t}", "private boolean removeLastElement() {\n if (--size == 0) {\n clear();\n return true;\n }\n return false;\n }", "public boolean isAfterLast() {\n/* 125 */ return (this.lastRowFetched && this.currentPositionInFetchedRows > this.fetchedRows.size());\n/* */ }", "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn _current < (_items.length -1);\n\t\t}", "@Override\n public boolean isEmpty(){\n return this.first == null;\n }", "public boolean isEmpty()\n\t{ \n\t\treturn (front==-1);\n\t}", "public boolean isEmpty()\n {\n return first == null;\n }", "boolean isEmpty(){\n return tail==0;\n }", "public boolean isEmpty() {\n return first == null;\n }", "public boolean isEmpty() {\n\t\treturn first == null;\n\t}", "public boolean isEmpty() {\n\t\treturn first == null;\n\t}", "boolean isEmpty(int list) {\n\t\treturn m_lists.getField(list, 0) == -1;\n\t}", "public boolean isEmpty() {\n\t return first == null;\n }", "public boolean isEmpty(){\n return first == null;\n }", "public boolean isEmpty() {\r\n return first == null;\r\n }", "public boolean isEmpty() {\n return first==null;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "private boolean checkFull() {\n\t\treturn this.array.length - 1 == this.lastNotNull();\n\t}", "public boolean isEmpty() {\n return first == null;\n\n }", "@Override\n public boolean isAfterLast() {\n boolean result = true;\n if (mCalllogDatas != null) {\n result = (mIndex >= mCalllogDatas.size()) ? true : false;\n }\n\n MyLogger.logD(CLASS_TAG, \"isAfterLast():\" + result);\n return result;\n }", "@Test\r\n public void test_nonEmptyList_endOfExistingListNotNull()\r\n {\r\n System.out.println(\"> Test4 - test_nonEmptyList_endOfExistingListNotNull(): end of existing-list should no longer point to null\");\r\n int obj = 7;\r\n System.out.print(\"creating a non-empty list with an arbitrary number of nodes...\");\r\n int[] a = {0, 0, 0, 0, 0};\r\n LinkedList instance = new LinkedList(a);\r\n // get to and mark end of list\r\n ListNode current = instance.getHead();\r\n int nodesInList = a.length;\r\n for (int i = 1; i < nodesInList; i++)\r\n current = current.getLink();\r\n System.out.println(\"inserting a new node at end of non-empty list...\");\r\n instance.addLast(obj);\r\n // test node insertion\r\n assertNotNull(\"end of existing-list points to null\", current.getLink());\r\n System.out.println(\"As expected, the end of the existing list no longer points to null\");\r\n }", "public int lastNonZero() {\n\t\tint i;\n\t\tfor(i=pointList.size()-1; i>=0; i--) {\n\t\t\tif (pointList.get(i).getY() > 0)\n\t\t\t\treturn i;\n\t\t}\n\t\treturn 0;\n\t}", "public boolean isEmpty() {\n return first == null;\n }", "public boolean isEmpty() {\n return first == null;\n }", "public boolean isEmpty() {\n return first == null;\n }", "public boolean isEmpty() {\n return first == null;\n }", "public boolean isFull()\n { \n return count == elements.length; \n }", "public boolean isEmpty(){\n \treturn top==-1;\n\t}", "public boolean isEmpty() {\r\n\t\treturn cur_index==0;\r\n\t}", "boolean isEmpty()\n\t{\n\t\treturn front==-1;\n\t}", "public int antalNuller(ArrayList<Integer> list) {\r\n int nuller = 0;\r\n for (int i : list) {\r\n if (i == 0) {\r\n nuller++;\r\n }\r\n }\r\n return nuller;\r\n }", "public boolean isEmpty(){\n\t\treturn firstNode == null; //return true if List is empty\n\t}", "public boolean isLast() throws SQLException {\n/* 219 */ return (this.lastRowFetched && this.currentPositionInFetchedRows == this.fetchedRows.size() - 1);\n/* */ }", "public boolean isLastInSubList() {\n\t\tif (parent == null || parent.getSubList() == null || parent.getSubList().size() == 0) {\n\t\t\treturn false;\n\t\t}\n\t\treturn (parent.getSubList().indexOf(this) == parent.getSubList().size() - 1);\n\t}", "public boolean isLastList() {\r\n return lastList;\r\n }", "public boolean empty()\n {\n\treturn null == head;\n }", "private static void checkPerticularElementExitInLinkedList() {\n\t\tLinkedList<Integer> list = new LinkedList<Integer>();\n\t\tlist.add(10);\n\t\tlist.add(20);\n\t\tlist.add(30);\n\t\tlist.add(40);\n\t\tlist.add(50);\n\t\tSystem.out.println(\"LinkedList is : \" + list);\n\t\tString result = \"\";\n\t\tfor(Integer i:list) {\n\t\t\tresult = (list.contains(60))?\"true\":\"false\";\n\t\t}\n\t\tSystem.out.println(result);\n\t}", "public boolean isEmpty()\n\t{\n\t\treturn list.isEmpty();\n\t}", "public boolean isLastPosition() {\n return this.value == LAST_VALUE;\n }", "public boolean isEmpty() {\n if(tail==-1)\n return true;\n return false;\n }", "private static <T> T lastItemOfList(List<T> list) {\n if (list == null || list.size() == 0) {\n return null;\n }\n return list.get(list.size() - 1);\n }", "public Object last()throws ListExeption;", "public /*@ pure @*/ boolean isEmpty() {\n return the_list == null;\n }", "public boolean isEmpty() {\n return this.first == null;\n }", "public boolean deleteLast() {\n if (isEmpty()) {\n return false;\n } else {\n elements[front++] = -1;\n return true;\n }\n }", "@Override\r\n\tpublic boolean isEmtpy() {\r\n\t\tif (this.front == -1) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean moveLast(\n )\n {\n int lastIndex = objects.size()-1;\n while(index < lastIndex)\n {moveNext();}\n\n return getCurrent() != null;\n }", "public boolean isEmpty() {\r\n\t\t\treturn (First==null); }", "public boolean isEmpty(){\n return this.listSize == 0;\n }", "@Override\n\tpublic boolean isEmpty()\n\t{\n if (list.isEmpty())\n {\n return true;\n } \n else\n {\n return false;\n }\n\t}", "public boolean getIsLastInSubList() {\n\t\treturn isLastInSubList();\n\t}", "public boolean isEmpty() { return count == 0; }", "@Override\n public boolean isEmpty(){\n return (count == 0);\n }", "private boolean hasNext(){\n return current !=null;\n\n }", "boolean isEmpty ()\n {\n return (front == -1);\n }", "public boolean isEmpty() {\n return (head == -1) || (head > tail);\n }", "private boolean ifFull() {\n return items.length == size;\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn (t==1);\r\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn count == 0;\r\n\t}", "public boolean isEmpty(){\n return this.head==null;\n }", "public boolean isEmpty(){\n return (count == 0);\n }", "public static boolean empty() {\n\n if (list.size() != 0){\n return false;\n }\n return true;\n }", "public boolean isEmpty() {\r\n\t\treturn al.listSize == 0;\r\n\t}", "boolean isFinished() {\n return includedInLastStep() && (end == elementList.size() - 1);\n }", "public T last() throws EmptyCollectionException;", "public boolean empty() {\n if (list.size() == 0) {\n return true;\n }\n else {\n return false;\n }\n }", "public synchronized boolean isEmpty(){\n return list.isEmpty();\n }", "public boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "public boolean isEmpty() {\n return dataList.size() <= 0 || (dataList.size() == 1 && dataList.get(0).isEmpty());\n }", "public boolean isEmpty() {\n return top==-1;\n }", "public boolean isEmpty() {\n return (first == null);\n }", "public boolean isEmpty() {\n return (first == null);\n }", "public boolean isEmpty() {\n\t\tif (l.getHead() == null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public E last() {\n if (next == null) {\n return head();\n } else {\n JMLListEqualsNode<E> ptr = this;\n //@ maintaining ptr != null;\n while (ptr.next != null) {\n ptr = ptr.next;\n }\n //@ assert ptr.next == null;\n //@ assume ptr.val != null ==> \\typeof(ptr.val) <: \\type(Object);\n E ret = (ptr.val == null\n ? null\n : (ptr.val) );\n //@ assume ret != null ==> \\typeof(ret) <: elementType;\n //@ assume !containsNull ==> ret != null;\n return ret;\n }\n }", "public boolean isEmpty()\r\n\t{\r\n\t\treturn top<=0;\r\n\t}" ]
[ "0.7066071", "0.6884396", "0.6833435", "0.67863864", "0.6767931", "0.67395765", "0.6697079", "0.6658391", "0.6574124", "0.6523229", "0.6469002", "0.6446688", "0.6364103", "0.63366854", "0.6332677", "0.62949723", "0.624956", "0.6241375", "0.623158", "0.6224903", "0.6213674", "0.620514", "0.61933285", "0.618849", "0.6184497", "0.6180663", "0.6172045", "0.616702", "0.61657256", "0.6163981", "0.6162586", "0.6158884", "0.6134136", "0.61328274", "0.61328274", "0.61162674", "0.61143714", "0.61118746", "0.6102729", "0.609973", "0.60987246", "0.60987246", "0.6097862", "0.6094072", "0.6090405", "0.6083936", "0.6072644", "0.6071818", "0.6071818", "0.6071818", "0.6071818", "0.60625696", "0.6062255", "0.60613894", "0.6056026", "0.6053189", "0.6043065", "0.6041554", "0.6039673", "0.60348946", "0.603364", "0.60141623", "0.60095954", "0.60077506", "0.60042715", "0.597948", "0.5978906", "0.5974314", "0.5972462", "0.5970968", "0.59673816", "0.596692", "0.59595233", "0.5958165", "0.59474045", "0.59473747", "0.59467834", "0.5945492", "0.5941474", "0.59347373", "0.59326816", "0.59313416", "0.5927639", "0.5925581", "0.59125036", "0.591016", "0.59093", "0.59004325", "0.5898261", "0.5895923", "0.58907574", "0.58882356", "0.58874476", "0.5882913", "0.58815795", "0.58768326", "0.58768326", "0.5875828", "0.5869723", "0.5860021" ]
0.6459407
11
Tests size to see if the length of the list is correctly returned.
@Test void testSize() { SimpleList test = new SimpleList(); int output = test.size(); assertEquals(10, output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSize() {\r\n\t\tAssert.assertEquals(15, list.size());\r\n\t}", "private void testSize() {\n init();\n assertTrue(\"FListInteger.size(l0)\", FListInteger.size(l0) == 0);\n assertTrue(\"FListInteger.size(l1)\", FListInteger.size(l1) == 1);\n assertTrue(\"FListInteger.size(l2)\", FListInteger.size(l2) == 2);\n assertTrue(\"FListInteger.size(l3)\", FListInteger.size(l3) == 3);\n }", "private void arraySize(MyArrayList list, Results results) {\r\n int size = -123;\r\n size = list.size();\r\n if(size != -123) {\r\n results.storeNewResult(\"ArraySize test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArraySize test case: FAILED\");\r\n }\r\n }", "private void testSize() {\n System.out.println(\"------ TESTING: size() ----- \");\n System.out.println(\"Expected: \" +iSize);\n System.out.print(\"Returned: \");\n try{\n if(iTestList.size() != iSize)\n throw new RuntimeException(\"FAILED -> test size not matching\");\n else\n System.out.print(iTestList.size());\n }catch(RuntimeException e){\n System.out.print(e.getMessage());\n }\n System.out.print(\"\\n\");\n }", "@Test\r\n\tvoid testSize2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.append(1);\r\n\t\ttest.append(2);\r\n\t\ttest.append(3);\r\n\t\ttest.append(4);\r\n\t\ttest.append(5);\r\n\t\ttest.append(6);\r\n\t\ttest.append(7);\r\n\t\ttest.append(8);\r\n\t\ttest.append(9);\r\n\t\ttest.append(10);\r\n\t\ttest.append(11);\r\n\t\tint output = test.size();\r\n\t\tassertEquals(15, output);\r\n\t}", "@Test\n public void getSizeOfList() {\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n list.add(3);\n list.add(4);\n\n assertEquals(4, list.size());\n }", "@Test\r\n\tpublic void testSize() {\r\n\t\ttestArray = new ArrayBasedList<String>();\r\n\t\tassertEquals(0, testArray.size());\r\n\t\ttestArray.add(\"hi\");\r\n\t\ttestArray.add(\"hey\");\r\n\t\ttestArray.add(\"hello\");\r\n\t\tassertEquals(3, testArray.size());\r\n\t}", "public int size()\n\t{\n\t\treturn listSize;\n\t}", "@Test\n public void testSize() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n int expResult = 4;\n\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n\n long result = instance.size();\n assertEquals(expResult, result);\n }", "@Test\n public void testSize() {\n testAdd();\n assertEquals(9, list1.size());\n }", "public boolean isListLengthFixed();", "private boolean ifFull() {\n return items.length == size;\n }", "@Test\n public void testSize_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n int expResult = 6;\n\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n long result = instance.size();\n assertEquals(expResult, result);\n\n }", "@Override\n public int size() {\n return list.size();\n }", "@Override\n\tpublic int getSize()\n\t{\n\t\treturn list.size();\n\t}", "@Override\n\tpublic int size() {\n\t\t\n\t\treturn list.size();\n\t}", "boolean hasSize();", "boolean hasSize();", "boolean hasSize();", "boolean hasSize();", "public int getSize(){\n\t\tint size = list.size();\n\t\treturn size;\n\n\t}", "public int getSize() \r\n {\r\n return list.size();\r\n }", "public int size() {\n\t return list.size();\n }", "@Test\r\n\tvoid testSize3() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\tint output = test.size();\r\n\t\tassertEquals(8, output);\r\n\t}", "public int size()\n\t{\n\t\treturn list.size();\n\t}", "public int size()\n\t{\n\t\treturn list.size();\n\t}", "public int size(){\n return list.size();\n }", "public int size() { return size; }", "public int size() { return size; }", "private int sizeOfList(Student [] list) {\r\n\t\t\r\n\t\tint size = 0;\r\n\t\tStudent sizechecker;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\twhile (true) {\r\n\t\t\t\t\r\n\t\t\t\tsizechecker = list[size];\r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) { \r\n\t\t \r\n\t\t}\r\n\t\t\r\n\t\treturn size;\r\n\t}", "public int getSize() {\n return list.size();\n }", "public int size(){\n\t\treturn list.size();\n\t}", "public int size(){\n\t\treturn list.size();\n\t}", "public static Matcher<View> withListSize (final int size) {\n return new TypeSafeMatcher<View>() {\n @Override public boolean matchesSafely (final View view) {\n return ((RecyclerView) view).getAdapter().getItemCount() == size;\n }\n\n @Override public void describeTo (final Description description) {\n description.appendText (\"List should have \" + size + \" items\");\n }\n };\n }", "public int getListSize() {\n return listSize;\n }", "public int size(){\n\n \treturn list.size();\n\n }", "public int getSize () {\n return this.list.size();\n }", "@Test\n public void testSize() {\n System.out.println(\"size\");\n al.add(1);\n assertEquals(1, al.size());\n }", "public final void hasSize(int expectedSize) {\n checkArgument(expectedSize >= 0, \"expectedSize(%s) must be >= 0\", expectedSize);\n int actualSize = Iterables.size(getSubject());\n if (actualSize != expectedSize) {\n failWithBadResults(\"has a size of\", expectedSize, \"is\", actualSize);\n }\n }", "public int size() {\n\t\treturn list.size();\n\t}", "public int size()\n {\n return list.size();\n }", "public int getSize()\n {\n return pList.size();\n }", "public int size()\n {\n if(_list!=null)\n return _list.size();\n return 0;\n }", "public int get_size();", "public int get_size();", "int length() {\n return this.myArrayList.size();\n }", "public int size() {\n\t\tint numElements = 0;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tif (list[i] != null) {\n\t\t\t\tnumElements++;\n\t\t\t}\n\t\t}\n\t\treturn numElements;\n\t}", "@Override\r\n \tpublic int size() {\r\n \t\t// TODO\r\n \t\treturn size;\r\n \t}", "@Test\r\n public void teamListSizeTest(){\r\n int listSize = 5;\r\n \r\n\r\n assertEquals(\"expected results = \" + listSize, listSize, extractor.extractXDriversOrTeams(listSize, \"table.msr_season_team_results\", \"td.msr_team\").size());\r\n }", "@Override\n int size();", "public int size() {\n return list.size();\n }", "public void testSize() {\n assertEquals(this.stack.size(), 10, 0.01);\n assertEquals(this.empty.size(), 0, 0.01);\n }", "abstract int size();", "abstract int size();", "public int getSize() {\n\t\t\treturn lists.size();\r\n\t\t}", "@Test\n public void sizeTest() {\n assertThat(4, is(this.queue.size()));\n }", "private void checkIfArrayFull() {\n\n if(this.arrayList.length == this.elementsInArray) {\n size *= 2;\n arrayList = Arrays.copyOf(arrayList, size);\n }\n }", "@Test\n\tpublic void sizeOfList() {\n\t\tWebElement dropDown = driver.findElement(By.id(\"dropdown\"));\n\t\tSelect options = new Select(dropDown);\n\t\tint numOfEl = options.getOptions().size();\n\t\tAssert.assertEquals(\"There are not 4 elements\",4, numOfEl);\n\t}", "@Override\n public boolean isFull(){\n return (count == size);\n \n }", "@Override\n public int size() { return size; }", "public int size() {\n//\t\tint rtn = 0;\n//\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n//\t\t\trtn++;\t\n//\t\t}\n//\t\treturn rtn;\n\t\treturn mySize;\n\t}", "public synchronized int size(){\n return list.size();\n }", "public int size() {\n return lists.getSize();\n }", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();", "public int size();" ]
[ "0.7928932", "0.78463054", "0.7753675", "0.77002096", "0.7637176", "0.75081104", "0.72380775", "0.7116827", "0.70826614", "0.708259", "0.7041849", "0.7008428", "0.69534326", "0.6922657", "0.69147307", "0.6895915", "0.6863628", "0.6863628", "0.6863628", "0.6863628", "0.6852285", "0.68348914", "0.6833633", "0.6808835", "0.6768468", "0.6768468", "0.6756224", "0.67526233", "0.67526233", "0.6729324", "0.67284745", "0.6699849", "0.6699849", "0.66916174", "0.66856384", "0.66746897", "0.6671458", "0.66702956", "0.66697013", "0.6656303", "0.6655717", "0.66531485", "0.6647503", "0.6640391", "0.6640391", "0.66124916", "0.6597273", "0.6596686", "0.6594934", "0.658114", "0.6570264", "0.6567609", "0.6566296", "0.6566296", "0.6566276", "0.6562537", "0.6552357", "0.6552035", "0.6550354", "0.6549278", "0.65488964", "0.65482885", "0.6544976", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578", "0.6536578" ]
0.7649702
4
Tests size to see if the length of the list after it is increased by 50% is correctly returned.
@Test void testSize2() { SimpleList test = new SimpleList(); test.append(1); test.append(2); test.append(3); test.append(4); test.append(5); test.append(6); test.append(7); test.append(8); test.append(9); test.append(10); test.append(11); int output = test.size(); assertEquals(15, output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSize() {\r\n\t\tAssert.assertEquals(15, list.size());\r\n\t}", "private void testSize() {\n System.out.println(\"------ TESTING: size() ----- \");\n System.out.println(\"Expected: \" +iSize);\n System.out.print(\"Returned: \");\n try{\n if(iTestList.size() != iSize)\n throw new RuntimeException(\"FAILED -> test size not matching\");\n else\n System.out.print(iTestList.size());\n }catch(RuntimeException e){\n System.out.print(e.getMessage());\n }\n System.out.print(\"\\n\");\n }", "@Test\r\n\tvoid testSize() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\tint output = test.size();\r\n\t\tassertEquals(10, output);\r\n\t}", "private void testSize() {\n init();\n assertTrue(\"FListInteger.size(l0)\", FListInteger.size(l0) == 0);\n assertTrue(\"FListInteger.size(l1)\", FListInteger.size(l1) == 1);\n assertTrue(\"FListInteger.size(l2)\", FListInteger.size(l2) == 2);\n assertTrue(\"FListInteger.size(l3)\", FListInteger.size(l3) == 3);\n }", "private void arraySize(MyArrayList list, Results results) {\r\n int size = -123;\r\n size = list.size();\r\n if(size != -123) {\r\n results.storeNewResult(\"ArraySize test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArraySize test case: FAILED\");\r\n }\r\n }", "private boolean ifFull() {\n return items.length == size;\n }", "private boolean ifTooEmpty() {\n if (items.length <= 8) {\n return false;\n }\n float efficiency = (float) size / (float) items.length;\n return efficiency < 0.25;\n }", "@Test\n public void getSizeOfList() {\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n list.add(3);\n list.add(4);\n\n assertEquals(4, list.size());\n }", "@Test\n public void testSize() {\n testAdd();\n assertEquals(9, list1.size());\n }", "@Test\n public void testSize() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n int expResult = 4;\n\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n\n long result = instance.size();\n assertEquals(expResult, result);\n }", "@Test\n public void testSize_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n int expResult = 6;\n\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n long result = instance.size();\n assertEquals(expResult, result);\n\n }", "@Test\r\n\tvoid testSize3() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\tint output = test.size();\r\n\t\tassertEquals(8, output);\r\n\t}", "@Override\n public boolean isFull(){\n return (count == size);\n \n }", "private int sizeOfList(Student [] list) {\r\n\t\t\r\n\t\tint size = 0;\r\n\t\tStudent sizechecker;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\twhile (true) {\r\n\t\t\t\t\r\n\t\t\t\tsizechecker = list[size];\r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) { \r\n\t\t \r\n\t\t}\r\n\t\t\r\n\t\treturn size;\r\n\t}", "public abstract long getCompleteListSize();", "public boolean isListLengthFixed();", "public boolean isFull() {\n return size == k;\n}", "public boolean isFull()\n { \n return count == elements.length; \n }", "protected abstract boolean reachedContractLimit(int size);", "public void testSize() {\n assertEquals(this.stack.size(), 10, 0.01);\n assertEquals(this.empty.size(), 0, 0.01);\n }", "public boolean isFull()\r\n\t{\r\n\t\treturn numItems > MAXSIZE;\r\n\t}", "@Test\r\n\tpublic void testSize() {\r\n\t\ttestArray = new ArrayBasedList<String>();\r\n\t\tassertEquals(0, testArray.size());\r\n\t\ttestArray.add(\"hi\");\r\n\t\ttestArray.add(\"hey\");\r\n\t\ttestArray.add(\"hello\");\r\n\t\tassertEquals(3, testArray.size());\r\n\t}", "public boolean isFull()\n\t{\n\t\tif (counter == list.length)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "@Test\n public void testSize() {\n System.out.println(\"size\");\n al.add(1);\n assertEquals(1, al.size());\n }", "boolean hasSize();", "boolean hasSize();", "boolean hasSize();", "boolean hasSize();", "private void checkIfArrayFull() {\n\n if(this.arrayList.length == this.elementsInArray) {\n size *= 2;\n arrayList = Arrays.copyOf(arrayList, size);\n }\n }", "public int size()\n\t{\n\t\treturn listSize;\n\t}", "private boolean isFull() {\n\t\treturn (size == bq.length);\n\t}", "boolean hasTotalSize();", "public boolean isFull() {\n return size == cnt;\n }", "public int listSize(){\r\n return counter;\r\n }", "public int getCompleteListSize() { return size; }", "private void arrayIncreaaseSize(MyArrayList myArrayList, Results results) {\r\n int old_size = myArrayList.length();\r\n int value;\r\n Random rand = new Random();\r\n \r\n for(int i=0; i<50; i++) {\r\n value = rand.nextInt(10000);\r\n if(value < 0) {\r\n value = value * -1;\r\n }\r\n myArrayList.insertSorted(value);\r\n }\r\n if(myArrayList.length() == old_size + 25) {\r\n results.storeNewResult(\"ArrayIncrease test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayIncrease test case: FAILED\");\r\n }\r\n }", "void assertSizeEquals(int expected);", "private void assertEqual(long count, long size) {\n\t\t\n\t}", "@Test\r\n public void teamListSizeTest(){\r\n int listSize = 5;\r\n \r\n\r\n assertEquals(\"expected results = \" + listSize, listSize, extractor.extractXDriversOrTeams(listSize, \"table.msr_season_team_results\", \"td.msr_team\").size());\r\n }", "public int getSize(){\n\t\tint size = list.size();\n\t\treturn size;\n\n\t}", "boolean isFull() {return pointer==size;}", "public int getSize() \r\n {\r\n return list.size();\r\n }", "@Test\n public void sizeTest() {\n assertThat(4, is(this.queue.size()));\n }", "@Override\n public synchronized int size() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.size();\n }", "@Test\n public void testSize(){\n assertEquals(25, largeMaze.size());\n }", "public int get_size();", "public int get_size();", "public static Matcher<View> withListSize (final int size) {\n return new TypeSafeMatcher<View>() {\n @Override public boolean matchesSafely (final View view) {\n return ((RecyclerView) view).getAdapter().getItemCount() == size;\n }\n\n @Override public void describeTo (final Description description) {\n description.appendText (\"List should have \" + size + \" items\");\n }\n };\n }", "@Override\n public boolean isFull() {\n return this.count() == 5;\n }", "@Test\r\n public void driverListSizeTest(){\r\n int listSize = 22;\r\n \r\n\r\n assertEquals(\"expected results = \" + listSize, listSize, extractor.extractXDriversOrTeams(listSize, \"table.msr_season_driver_results\", \"td.msr_driver\").size());\r\n\r\n }", "public final void hasSize(int expectedSize) {\n checkArgument(expectedSize >= 0, \"expectedSize(%s) must be >= 0\", expectedSize);\n int actualSize = Iterables.size(getSubject());\n if (actualSize != expectedSize) {\n failWithBadResults(\"has a size of\", expectedSize, \"is\", actualSize);\n }\n }", "public int size(){\n return list.size();\n }", "public int size() {\n//\t\tint rtn = 0;\n//\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n//\t\t\trtn++;\t\n//\t\t}\n//\t\treturn rtn;\n\t\treturn mySize;\n\t}", "@Override\r\n\tpublic boolean isfull() {\n\t\t\r\n\t\treturn count == size ;\r\n\t}", "public int getSize() {\n return list.size();\n }", "public int getSize () {\n return this.list.size();\n }", "public int getSize() {\r\n return list.getItemCount();\r\n }", "public boolean isFull(){\r\n return currentSize == maxSize;\r\n }", "@Override\n public int size() {\n return list.size();\n }", "@Override\n\tpublic int getSize()\n\t{\n\t\treturn list.size();\n\t}", "public synchronized int size(){\n return list.size();\n }", "@Test\n public void testLargeSize(){\n assertEquals(25, largeMaze.size());\n }", "@Override\n\tpublic int size() {\n\t\t\n\t\treturn list.size();\n\t}", "public double isFull(double size){;\n\t\tif (unitSpaceAvailable > 0 && unitSpaceAvailable <= MAX_QUEUE){\n\t\t\tif(size < unitSpaceAvailable){\n\t\t\treturn unitSpaceAvailable - size;\n\t\t\t}\n\t\t}\n\t\treturn 0.0;\n\t}", "@Test\n public void testGetSizeOfCheckoutList() {\n }", "public boolean isFull(){\n \treturn count==capacity;\n }", "@Test\n public void lastSize() throws Exception{\n rf.insert(maxBlocks-1, testBlock);\n Assert.assertEquals(1, rf.size());\n }", "long size();", "long size();", "long size();", "long size();", "@Test\n public void testAdd_Size() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.add(9);\n int expResult = 5;\n\n assertEquals(expResult, baseList.size());\n }", "public int size() { return size; }", "public int size() { return size; }", "public int size() {\n\t return list.size();\n }", "public int size(){\n\n \treturn list.size();\n\n }", "public int getListSize() {\n return listSize;\n }", "void size() {\n assertEquals(words.size(), trie.size());\n }", "private void checkAndModifySize() {\r\n if (size == data.length * LOAD_FACTOR) {\r\n resizeAndTransfer();\r\n }\r\n }", "boolean isListRemainingEmpty();", "public int getSize()\n {\n return pList.size();\n }", "@Test\n public void is_totalPrice_Is_displayed_properly_Added_To_The_Menu_Success_Senario(){\n int isTotalPriceDisplayed = restaurant.getTotalPrice().size();\n restaurant.getTotalPrice(\"Correct Amount Displayed\", isTotalPriceDisplayed);\n assertEquals(isTotalPriceDisplayed,restaurant.getTotalPrice().size());\n\n\n }", "public void testSize() {\n assertEquals(10, maze1.size());\n }", "public int getSnakeSize()\n {\n return list.size();\n }", "public int size(){\n\t\treturn list.size();\n\t}", "public int size(){\n\t\treturn list.size();\n\t}", "public boolean isFull() {\n int size = 0;\n for (int i = 0; i < items.length; i++) {\n if (items[i] != null) {\n size++;\n }\n }\n return size == items.length;\n }", "@Test\n public void Rightsize() {\n assertEquals(7, Otava2.getStars().size());\n }", "@Test\n public void testContinguosStorageOriginalSize() {\n list.addToFront(\"Filler1\");\n list.addToBack(\"Filler2\");\n list.addToBack(\"Filler3\");\n list.addToFront(\"Filler0\");\n list.addAtIndex(0, \"Filler#\");\n list.addAtIndex(2, \"Filler!\");\n list.addAtIndex(6, \"Filler$\");\n list.removeFromFront();\n list.removeFromBack();\n list.removeAtIndex(4);\n list.removeAtIndex(0);\n list.removeAtIndex(2);\n\n int actualCapacity = ((Object[]) (list.getBackingArray())).length;\n for (int i = 0; i < list.size(); i++) {\n Assert.assertNotNull(((Object[]) (list.getBackingArray()))[i]);\n }\n for (int i = list.size(); i < actualCapacity; i++) {\n Assert.assertNull(((Object[]) (list.getBackingArray()))[i]);\n }\n }", "public static boolean enoughSpaceOnPhone(long updateSize) {\n return getRealSizeOnPhone() > updateSize;\n }", "@Test\r\n public void teamListTooLargeTest(){\r\n int tooBigListSize = 15;\r\n\r\n int expectedResult = extractor.extractXDriversOrTeams(tooBigListSize, \"table.msr_season_team_results\", \"td.msr_team\").size();\r\n\r\n assertEquals(\"expected results = \" + expectedResult, expectedResult, extractor.extractXDriversOrTeams(tooBigListSize, \"table.msr_season_team_results\", \"td.msr_team\").size());\r\n System.out.println(\"\");\r\n }", "public boolean test() {\r\n\t\treturn (hit() == size);\r\n\t}", "public boolean isFull()\r\n\t\t{\r\n\t\t\tint count = 0;\r\n\t\t\tData currentData = head;\r\n\t\t\twhile (currentData != null)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tcurrentData = currentData.nextData();\r\n\t\t\t}\r\n\t\t\treturn (count > 2); //if the count is > 2 then it is full\r\n\t\t}", "public int size()\n\t{\n\t\treturn list.size();\n\t}", "public int size()\n\t{\n\t\treturn list.size();\n\t}", "@Test\r\n public void testGetSize() {\r\n System.out.println(\"getSize\");\r\n ModeloListaOrganizadores instance = new ModeloListaOrganizadores(e.getListaOrganizadores());\r\n instance.addElement(new Organizador(new Utilizador(\"teste\", \"[email protected]\", \"teste\", \"teste\", true, 5)));\r\n int expResult = 1;\r\n int result = instance.getSize();\r\n assertEquals(expResult, result);\r\n\r\n }", "public static long test1(long size) {\r\n IList<Long> list = AnalysisUtils.makeList(0L, size, 1L);\r\n // Note: we're measuring memory usage, which is deterministic\r\n // (assuming we constructed our DoubleLinkedList correctly) - that is,\r\n // two DLLs with the same number of elements will always use the same\r\n // amount of memory. So, there's no need to conduct trials, as they\r\n // would end up being exactly the same.\r\n //\r\n // AnalysisUtils has a method that will tell us how much memory is being\r\n // so we can compare the DLL to a similarly sized ArrayDictionary.\r\n return AnalysisUtils.getApproximateMemoryUsed(list);\r\n }", "public boolean checkFull() {\n\t\tif (studlist.size() == maxstudents) {\n\t\t\tfull = true;\n\t\t}\n\t\treturn full;\n\t}", "int getTotalSize();", "public static boolean checkSize(int expected, int actual) {\n if (expected != actual) {\n System.out.println(\"size() returned \" + actual + \", but expected: \" + expected);\n return false;\n }\n return true;\n }" ]
[ "0.7502945", "0.7226264", "0.7081427", "0.69897044", "0.69475406", "0.6829275", "0.6735386", "0.67234325", "0.6650208", "0.6586059", "0.6511371", "0.6492583", "0.6473572", "0.644614", "0.6432428", "0.6428231", "0.63805866", "0.6360411", "0.63599527", "0.6331197", "0.63272375", "0.63248986", "0.6315815", "0.62784624", "0.62188095", "0.62188095", "0.62188095", "0.62188095", "0.62122476", "0.61878425", "0.6184359", "0.6181959", "0.617426", "0.6161806", "0.615344", "0.6119927", "0.6115138", "0.6099162", "0.6093874", "0.6091079", "0.60893863", "0.60892576", "0.6080709", "0.6070447", "0.606642", "0.6061509", "0.6061509", "0.6057659", "0.60430527", "0.6038606", "0.60167295", "0.6009637", "0.60092044", "0.60018426", "0.60011053", "0.59963894", "0.59947807", "0.5977934", "0.59609056", "0.5950793", "0.5949813", "0.5943767", "0.59315544", "0.5913641", "0.59127325", "0.5906717", "0.59024614", "0.5887878", "0.5887878", "0.5887878", "0.5887878", "0.58876896", "0.5882934", "0.5882934", "0.5882143", "0.5880537", "0.5880035", "0.58791625", "0.58669376", "0.5866645", "0.58624136", "0.58602154", "0.58493143", "0.5843894", "0.5835974", "0.5835974", "0.5831298", "0.58280575", "0.5827835", "0.582646", "0.58247584", "0.5816392", "0.58150923", "0.58120453", "0.58120453", "0.5809624", "0.58066994", "0.5801293", "0.5793656", "0.57866585" ]
0.7214631
2
Tests size to see if the length of the list after it is decreased by 25% is correctly returned.
@Test void testSize3() { SimpleList test = new SimpleList(); test.add(1); test.remove(1); int output = test.size(); assertEquals(8, output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSize() {\r\n\t\tAssert.assertEquals(15, list.size());\r\n\t}", "private boolean ifTooEmpty() {\n if (items.length <= 8) {\n return false;\n }\n float efficiency = (float) size / (float) items.length;\n return efficiency < 0.25;\n }", "@Test\r\n\tvoid testSize2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.append(1);\r\n\t\ttest.append(2);\r\n\t\ttest.append(3);\r\n\t\ttest.append(4);\r\n\t\ttest.append(5);\r\n\t\ttest.append(6);\r\n\t\ttest.append(7);\r\n\t\ttest.append(8);\r\n\t\ttest.append(9);\r\n\t\ttest.append(10);\r\n\t\ttest.append(11);\r\n\t\tint output = test.size();\r\n\t\tassertEquals(15, output);\r\n\t}", "private void arraySize(MyArrayList list, Results results) {\r\n int size = -123;\r\n size = list.size();\r\n if(size != -123) {\r\n results.storeNewResult(\"ArraySize test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArraySize test case: FAILED\");\r\n }\r\n }", "private void testSize() {\n System.out.println(\"------ TESTING: size() ----- \");\n System.out.println(\"Expected: \" +iSize);\n System.out.print(\"Returned: \");\n try{\n if(iTestList.size() != iSize)\n throw new RuntimeException(\"FAILED -> test size not matching\");\n else\n System.out.print(iTestList.size());\n }catch(RuntimeException e){\n System.out.print(e.getMessage());\n }\n System.out.print(\"\\n\");\n }", "@Test\n public void testSize_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n int expResult = 6;\n\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n long result = instance.size();\n assertEquals(expResult, result);\n\n }", "@Test\r\n\tvoid testSize() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\tint output = test.size();\r\n\t\tassertEquals(10, output);\r\n\t}", "public boolean isListLengthFixed();", "private void testSize() {\n init();\n assertTrue(\"FListInteger.size(l0)\", FListInteger.size(l0) == 0);\n assertTrue(\"FListInteger.size(l1)\", FListInteger.size(l1) == 1);\n assertTrue(\"FListInteger.size(l2)\", FListInteger.size(l2) == 2);\n assertTrue(\"FListInteger.size(l3)\", FListInteger.size(l3) == 3);\n }", "@Test\n public void getSizeOfList() {\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n list.add(3);\n list.add(4);\n\n assertEquals(4, list.size());\n }", "private boolean ifFull() {\n return items.length == size;\n }", "protected abstract boolean reachedContractLimit(int size);", "private void checkIfArrayFull() {\n\n if(this.arrayList.length == this.elementsInArray) {\n size *= 2;\n arrayList = Arrays.copyOf(arrayList, size);\n }\n }", "@Test\n public void testSize() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n int expResult = 4;\n\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n\n long result = instance.size();\n assertEquals(expResult, result);\n }", "private void arrayIncreaaseSize(MyArrayList myArrayList, Results results) {\r\n int old_size = myArrayList.length();\r\n int value;\r\n Random rand = new Random();\r\n \r\n for(int i=0; i<50; i++) {\r\n value = rand.nextInt(10000);\r\n if(value < 0) {\r\n value = value * -1;\r\n }\r\n myArrayList.insertSorted(value);\r\n }\r\n if(myArrayList.length() == old_size + 25) {\r\n results.storeNewResult(\"ArrayIncrease test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayIncrease test case: FAILED\");\r\n }\r\n }", "private int sizeOfList(Student [] list) {\r\n\t\t\r\n\t\tint size = 0;\r\n\t\tStudent sizechecker;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\twhile (true) {\r\n\t\t\t\t\r\n\t\t\t\tsizechecker = list[size];\r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) { \r\n\t\t \r\n\t\t}\r\n\t\t\r\n\t\treturn size;\r\n\t}", "@Test\n public void testRemove_Contains_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n instance.remove(new Integer(1));\n\n int expResult = 5;\n int result = instance.size();\n assertEquals(expResult, result);\n }", "@Test\n public void testContinguosStorageOriginalSize() {\n list.addToFront(\"Filler1\");\n list.addToBack(\"Filler2\");\n list.addToBack(\"Filler3\");\n list.addToFront(\"Filler0\");\n list.addAtIndex(0, \"Filler#\");\n list.addAtIndex(2, \"Filler!\");\n list.addAtIndex(6, \"Filler$\");\n list.removeFromFront();\n list.removeFromBack();\n list.removeAtIndex(4);\n list.removeAtIndex(0);\n list.removeAtIndex(2);\n\n int actualCapacity = ((Object[]) (list.getBackingArray())).length;\n for (int i = 0; i < list.size(); i++) {\n Assert.assertNotNull(((Object[]) (list.getBackingArray()))[i]);\n }\n for (int i = list.size(); i < actualCapacity; i++) {\n Assert.assertNull(((Object[]) (list.getBackingArray()))[i]);\n }\n }", "private int getVisibleSize(List<T> chips, int maxSize) {\n int length = maxSize < 0 ? chips.size() : maxSize;\n return chips.size() < length ? chips.size() : length;\n }", "@Test\n public void testSize() {\n testAdd();\n assertEquals(9, list1.size());\n }", "public int listSize(){\r\n return counter;\r\n }", "public abstract long getCompleteListSize();", "public boolean isFull() {\n return size == k;\n}", "public int getMaxListLength();", "public void testSize() {\n assertEquals(this.stack.size(), 10, 0.01);\n assertEquals(this.empty.size(), 0, 0.01);\n }", "@Test\n public void testSize(){\n assertEquals(25, largeMaze.size());\n }", "boolean isListRemainingEmpty();", "@Test\r\n public void teamListTooLargeTest(){\r\n int tooBigListSize = 15;\r\n\r\n int expectedResult = extractor.extractXDriversOrTeams(tooBigListSize, \"table.msr_season_team_results\", \"td.msr_team\").size();\r\n\r\n assertEquals(\"expected results = \" + expectedResult, expectedResult, extractor.extractXDriversOrTeams(tooBigListSize, \"table.msr_season_team_results\", \"td.msr_team\").size());\r\n System.out.println(\"\");\r\n }", "@Override\n public boolean isFull(){\n return (count == size);\n \n }", "public boolean isFull()\n { \n return count == elements.length; \n }", "public boolean isFull()\n\t{\n\t\tif (counter == list.length)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public int getSnakeSize()\n {\n return list.size();\n }", "public boolean isFull()\r\n\t{\r\n\t\treturn numItems > MAXSIZE;\r\n\t}", "@Test\n public void testLargeSize(){\n assertEquals(25, largeMaze.size());\n }", "@Test\r\n public void driverListSizeTest(){\r\n int listSize = 22;\r\n \r\n\r\n assertEquals(\"expected results = \" + listSize, listSize, extractor.extractXDriversOrTeams(listSize, \"table.msr_season_driver_results\", \"td.msr_driver\").size());\r\n\r\n }", "@Test\r\n public void teamListSizeTest(){\r\n int listSize = 5;\r\n \r\n\r\n assertEquals(\"expected results = \" + listSize, listSize, extractor.extractXDriversOrTeams(listSize, \"table.msr_season_team_results\", \"td.msr_team\").size());\r\n }", "@Test\r\n\tpublic void testSize() {\r\n\t\ttestArray = new ArrayBasedList<String>();\r\n\t\tassertEquals(0, testArray.size());\r\n\t\ttestArray.add(\"hi\");\r\n\t\ttestArray.add(\"hey\");\r\n\t\ttestArray.add(\"hello\");\r\n\t\tassertEquals(3, testArray.size());\r\n\t}", "private void computeRemainingLength() {\n remainingLength = totalLength - nextStepLength;\n // Save the current location in the element list\n int oldIndex = knuthIter.nextIndex();\n KnuthElement el;\n while (knuthIter.hasNext() && !(el = (KnuthElement) knuthIter.next()).isBox()) {\n if (el.isGlue()) {\n remainingLength -= el.getW();\n }\n }\n // Reset the iterator to the current location\n while (knuthIter.nextIndex() > oldIndex) {\n knuthIter.previous();\n }\n }", "public static boolean enoughSpaceOnPhone(long updateSize) {\n return getRealSizeOnPhone() > updateSize;\n }", "public static Matcher<View> withListSize (final int size) {\n return new TypeSafeMatcher<View>() {\n @Override public boolean matchesSafely (final View view) {\n return ((RecyclerView) view).getAdapter().getItemCount() == size;\n }\n\n @Override public void describeTo (final Description description) {\n description.appendText (\"List should have \" + size + \" items\");\n }\n };\n }", "public double isFull(double size){;\n\t\tif (unitSpaceAvailable > 0 && unitSpaceAvailable <= MAX_QUEUE){\n\t\t\tif(size < unitSpaceAvailable){\n\t\t\treturn unitSpaceAvailable - size;\n\t\t\t}\n\t\t}\n\t\treturn 0.0;\n\t}", "@Test\n public void testRemove_int_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n Integer expResult = 6;\n Integer result = instance.size();\n\n assertEquals(expResult, result);\n\n }", "protected void testLessThanMaxLots () throws OutsideMaxLotsException\n {\n if (lots.size() >= MAX_LOTS)\n throw new OutsideMaxLotsException();\n }", "@Override\n public boolean isFull() {\n return this.count() == 5;\n }", "@Test\n public void testContinguosStorageReSize() {\n for (int i = 9; i >= 0; i--) {\n String input = String.format(\"b0%d\", i);\n list.addToFront(input);\n }\n\n list.addToFront(\"Filler1\");\n list.addToBack(\"Filler2\");\n list.addToBack(\"Filler3\");\n list.addToFront(\"Filler0\");\n list.addAtIndex(0, \"Filler#\");\n list.addAtIndex(2, \"Filler!\");\n list.addAtIndex(6, \"Filler$\");\n list.removeFromFront();\n list.removeFromBack();\n list.removeAtIndex(4);\n list.removeAtIndex(0);\n list.removeAtIndex(2);\n\n int actualCapacity = ((Object[]) (list.getBackingArray())).length;\n for (int i = 0; i < list.size(); i++) {\n Assert.assertNotNull(((Object[]) (list.getBackingArray()))[i]);\n }\n for (int i = list.size(); i < actualCapacity; i++) {\n Assert.assertNull(((Object[]) (list.getBackingArray()))[i]);\n }\n }", "@Test\n public void testRemove_Contains_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(1);\n instance.add(2);\n instance.add(1);\n\n instance.remove(new Integer(1));\n\n int expResult = 3;\n int result = instance.size();\n assertEquals(expResult, result);\n }", "public boolean e()\r\n/* 50: */ {\r\n/* 51:102 */ return this.a.size() > 45;\r\n/* 52: */ }", "boolean hasSize();", "boolean hasSize();", "boolean hasSize();", "boolean hasSize();", "private void checkAndModifySize() {\r\n if (size == data.length * LOAD_FACTOR) {\r\n resizeAndTransfer();\r\n }\r\n }", "private boolean isFull() {\n\t\treturn (size == bq.length);\n\t}", "public boolean isFull(){\r\n return currentSize == maxSize;\r\n }", "protected void checkSize()\n {\n // check if pruning is required\n if (m_cCurUnits > m_cMaxUnits)\n {\n synchronized (this)\n {\n // recheck so that only one thread prunes\n if (m_cCurUnits > m_cMaxUnits)\n {\n prune();\n }\n }\n }\n }", "@Test\n\tpublic void when_provided_maximum_size_list_with_all_elements_that_can_be_added_then_return_sum_in_allowable_amount_of_time() {\n\t\tfinal int[] elements = Fixture.initializeRandomList(MAX_NUM_ELEMENTS, MIN_ELEMENT_SIZE, 5);\n\t\tfinal int elementSum = IntStream.of(elements).sum();\n\t\tfinal long startTime = System.currentTimeMillis();\n\n\t\tfinal int result = Knapsack.getOptimalWeight(elementSum, elements);\n\n\t\tassertThat(result, is(elementSum));\n\t\tassertThat(System.currentTimeMillis() - startTime < Fixture.MAX_ALLOWABLE_CALCULATION_TIME, is(true));\n\t}", "private void assertEqual(long count, long size) {\n\t\t\n\t}", "void assertSizeEquals(int expected);", "@Override\n public synchronized int size() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.size();\n }", "public int size()\n\t{\n\t\treturn listSize;\n\t}", "@Test\n public void Rightsize() {\n assertEquals(7, Otava2.getStars().size());\n }", "public int getSize(){\n\t\tint size = list.size();\n\t\treturn size;\n\n\t}", "@Test\n public void lastSize() throws Exception{\n rf.insert(maxBlocks-1, testBlock);\n Assert.assertEquals(1, rf.size());\n }", "public void checkCapacity(String target, long size) throws Exception;", "public boolean isFull() {\n return size == cnt;\n }", "public boolean trimToSize() {\n if(data.length > size) {\n Arrays.copyOf(data, size);\n return true;\n }\n return false;\n }", "@Override\n boolean shouldFlush(TYPE item) {\n // increment the current item count, and get the modulus of size\n currentItem = ++currentItem % size;\n // if the modulus is 0, we've hit our max, and we flush the list\n return currentItem == 0;\n }", "@Test\r\n public void driverListTooLargeTest(){\r\n int tooBigListSize = 26;\r\n extractor.setElement(\"table.msr_season_driver_results\");\r\n int expectedListSize = extractor.getElement().select(\"td.msr_driver\").size();\r\n \r\n\r\n assertEquals(\"should default to the size of table\", expectedListSize, extractor.extractXDriversOrTeams(tooBigListSize, \"table.msr_season_driver_results\", \"td.msr_driver\" ).size());\r\n\r\n }", "private boolean isExplodedGraphTooBig(ProgramState programState) {\n return steps + workList.size() > MAX_STEPS / 2 && programState.constraintsSize() > 75;\n }", "protected void checkSize(){\n if (size == data.length){\n resize( 2 * data.length);\n }\n }", "boolean isFull() {return pointer==size;}", "public int getCompleteListSize() { return size; }", "public int getSize() {\r\n return list.getItemCount();\r\n }", "public void setListSize(int value) {\n this.listSize = value;\n }", "@Test\n public void testSize() {\n System.out.println(\"size\");\n al.add(1);\n assertEquals(1, al.size());\n }", "static int noValueSize() {\r\n return itemSize(false) * 2;\r\n }", "public boolean isFull(){\n \treturn count==capacity;\n }", "@Test\n public void sizeTest() {\n assertThat(4, is(this.queue.size()));\n }", "public int get_size();", "public int get_size();", "boolean hasTotalSize();", "public int size(){\n return list.size();\n }", "public int getSize() \r\n {\r\n return list.size();\r\n }", "public void testSize() {\n assertEquals(10, maze1.size());\n }", "boolean isFull()\n\t{\n\t\treturn rear==size-1;\n\t}", "@SuppressWarnings(\"unchecked\")\n\t private boolean grow() {\n\n\t /* \n\t * Add code here \n\t * Expand capacity (double it) and copy old array contents to the\n\t * new one. \n\t */\n\t\t \n\t\t capacity = (capacity*2);\n\t\t E[] new_elements = elements;\n\t\t elements = (E[])new Object[capacity];\n\t\t for(int i=0; i<new_elements.length;i++){\n\t\t\t elements[i] = new_elements[i];\n\t\t }\n\t System.out.println(\"Capacity reached. Increasing storage...\");\n\t System.out.println(\"New capacity is \" + capacity + \" elements\");\n\n\t return true;\n\t }", "@Test\n public void addPastInitialCapacity() {\n for (int iteration = 0; iteration < 20; iteration++) {\n testList.add(42);\n }\n assertEquals(20, testList.count());\n }", "public int size() {\n//\t\tint rtn = 0;\n//\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n//\t\t\trtn++;\t\n//\t\t}\n//\t\treturn rtn;\n\t\treturn mySize;\n\t}", "public int getSize () {\n return this.list.size();\n }", "public int getListSize() {\n return listSize;\n }", "@Test\n public void testRemove_int_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n Integer expResult = 6;\n Integer result = instance.size();\n\n assertEquals(expResult, result);\n\n }", "public static long test1(long size) {\r\n IList<Long> list = AnalysisUtils.makeList(0L, size, 1L);\r\n // Note: we're measuring memory usage, which is deterministic\r\n // (assuming we constructed our DoubleLinkedList correctly) - that is,\r\n // two DLLs with the same number of elements will always use the same\r\n // amount of memory. So, there's no need to conduct trials, as they\r\n // would end up being exactly the same.\r\n //\r\n // AnalysisUtils has a method that will tell us how much memory is being\r\n // so we can compare the DLL to a similarly sized ArrayDictionary.\r\n return AnalysisUtils.getApproximateMemoryUsed(list);\r\n }", "@Test\n public void testRemoveAtIndexNoResize() {\n //No Resize\n for (int i = 0; i < 9; i++) {\n String input = String.format(\"b0%d\", i);\n list.addToBack(input);\n }\n list.removeAtIndex(4);\n int actualCapacity = ((Object[]) (list.getBackingArray())).length;\n Assert.assertEquals(\"The list resized when removing an element from a list while at capacity\",\n ArrayList.INITIAL_CAPACITY, actualCapacity);\n\n //With Resize\n list.addToBack(\"Filler1\");\n list.addToBack(\"Filler2\");\n list.addToBack(\"Filler3\");\n list.removeAtIndex(0);\n list.removeAtIndex(3);\n list.removeAtIndex(8);\n int newActualCapacity = ((Object[]) (list.getBackingArray())).length;\n Assert.assertEquals(\"The list resized when moving from above to below initial capacity.\",\n ArrayList.INITIAL_CAPACITY * 2, newActualCapacity);\n }", "public static boolean enoughSpaceOnSdCard(long updateSize) {\n String status = Environment.getExternalStorageState();\n if (!status.equals(Environment.MEDIA_MOUNTED))\n return false;\n return (updateSize < getRealSizeOnSdcard());\n }", "@Test\n public void testBiggerStack() {\n\n System.out.println(\"isEmpty\");\n\n int sizeTest = 5000;\n\n List<String> elementList = new ArrayList();\n String tempString = \"\";\n\n for (int i = 0; i < sizeTest; i++) {\n\n tempString = tempString + \"z\";\n elementList.add(tempString);\n\n }\n\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n for (String string : elementList) {\n instance.push(string);\n }\n\n int fourSize = instance.size();\n assertEquals(fourSize, sizeTest);\n assertEquals(instance.isEmpty(), false);\n\n for (int i = sizeTest; i > 0; i--) {\n\n String result = instance.pop();\n\n String expected = elementList.get(i - 1);\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 }", "private static boolean checkForUpdateListSize(MethodDeclaration user, MethodDeclaration recursive, Pair<ForStmt, ForStmt> pair) {\n NodeList<Expression> userList = retrieveForUpdate(pair.getKey());\n NodeList<Expression> recursiveList = retrieveForUpdate(pair.getValue());\n\n if (!checkEqualSizeLists(userList, recursiveList)) {\n return true;\n }\n return checkForUpdateElement(user, recursive, userList, recursiveList);\n }", "static int getCapacity(List al) throws Exception {\n Field field = ArrayList.class.getDeclaredField(\"elementData\");\n field.setAccessible(true);\n return ((Object[]) field.get(al)).length;\n }", "public boolean isFull() {\r\n\t\treturn (rear+1)%maxSize==front;\r\n\t}", "public final int size()\r\n/* 41: */ {\r\n/* 42:215 */ long after = lvConsumerIndex();\r\n/* 43: */ for (;;)\r\n/* 44: */ {\r\n/* 45:219 */ long before = after;\r\n/* 46:220 */ long currentProducerIndex = lvProducerIndex();\r\n/* 47:221 */ after = lvConsumerIndex();\r\n/* 48:222 */ if (before == after)\r\n/* 49: */ {\r\n/* 50:224 */ long size = currentProducerIndex - after >> 1;\r\n/* 51:225 */ break;\r\n/* 52: */ }\r\n/* 53: */ }\r\n/* 54: */ long size;\r\n/* 55:230 */ if (size > 2147483647L) {\r\n/* 56:232 */ return 2147483647;\r\n/* 57: */ }\r\n/* 58:236 */ return (int)size;\r\n/* 59: */ }", "public synchronized int size(){\n return list.size();\n }" ]
[ "0.68958807", "0.67249763", "0.67153615", "0.6612745", "0.65531665", "0.64263994", "0.6276606", "0.62584734", "0.62083364", "0.61766267", "0.61755943", "0.6088385", "0.6047234", "0.6038163", "0.6016266", "0.6001924", "0.59643257", "0.5947777", "0.5925063", "0.5893522", "0.5870713", "0.5856693", "0.5842974", "0.58284694", "0.5782089", "0.5781832", "0.5781783", "0.5756633", "0.5749243", "0.57439005", "0.5739331", "0.5738565", "0.5737372", "0.57370555", "0.57255995", "0.5713529", "0.571184", "0.5702885", "0.5698989", "0.56830883", "0.56783885", "0.5671998", "0.56673515", "0.5663723", "0.5653704", "0.564488", "0.5635819", "0.56309855", "0.56309855", "0.56309855", "0.56309855", "0.5629428", "0.56195915", "0.5617554", "0.5616139", "0.5593696", "0.55924577", "0.5587198", "0.5586614", "0.55865", "0.5578371", "0.5536478", "0.55349445", "0.5522964", "0.55133796", "0.550433", "0.54983836", "0.54959404", "0.54928863", "0.5487974", "0.548301", "0.54739106", "0.5468286", "0.5463606", "0.5462712", "0.54610693", "0.54592294", "0.5454721", "0.5450383", "0.5450383", "0.5449462", "0.5437643", "0.5423699", "0.5403919", "0.53935474", "0.53905606", "0.53866094", "0.5382812", "0.5373409", "0.5367519", "0.5366051", "0.5361956", "0.5360804", "0.53599775", "0.5359615", "0.5356103", "0.53477365", "0.53443694", "0.5344237", "0.5343746" ]
0.63045
6
These are variables, they are a place to store data. Syntax with assigned value: type identifier = value; Syntax without assigned value: type identifier1, identifier2, variableN. Identifiers are case sensitive, and they cannot be be keywords or reserved words.
public static void main(String args[]) { int eggs = 6; int baskets = 10; System.out.println("If you have \n" + eggs + " eggs per basket and \n" + baskets + " baskets, then \n" + "the total number of eggs " + eggs * baskets); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Variables createVariables();", "public void store(final String text, final String variableName);", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "Variable(String _var) {\n this._var = _var;\n }", "public Variable(String name){\n this.name = name;\n }", "public void setVarName(String text) {\n\t\tvarName=text;\r\n\t}", "@Override String opStr() { return \"var\"; }", "String getVariableDefinition();", "public Var(String var) {\r\n this.variable = var;\r\n }", "public String getVariable();", "Variable createVariable();", "Variable createVariable();", "public void storeTitle(final String variableName);", "public static void main(String[] args) {\n int static2 = 22;\n int _static = 22;\n int $tatic = 45;\n int staticVar = 23;\n\n int salary$ = 55;\n // int 1stMonthSalary = 55; --- ERROR, cannot start with number\n int $ = 10;\n int _ = 3;\n System.out.println(\"salary $ = \" + $); // these variable work....but not recommended\n System.out.println(\"weekly _ = \" + _);// these variable work....but not recommended\n // int number-of-friends = 400; --- cannot use dashes ----> ERROR\n\n //int number_of_friends = 500; ---- NOT CONVENTION\n int numberOfFriends = 500; // use this camel case\n\n\n\n\n\n\n\n\n\n }", "public interface TeaVariable extends TeaNamedElement {\n boolean hasInitializer();\n TeaExpression getInitializer();\n void setInitializer(TeaExpression expr) throws IncorrectOperationException;\n TeaType getType();\n// boolean isConst();\n ASTNode findNameIdentifier();\n\n TeaReferenceExpression findNameExpression();\n}", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "private Stmt varDeclaration() {\n Token name = consume(IDENTIFIER, \"Expect variable name.\");\n Expr initializer = null;\n // Parse the initializer if an '=' is present. This branching allows initialization without declaration.\n if(match(EQUAL)) {\n initializer = expression();\n }\n\n consumeSemi(\"Expect ';' after variable declaration.\");\n return new Stmt.Var(name, initializer);\n }", "public static void main(String args[]) {\n int variableEntera = 10;\n System.out.println(variableEntera);\n //Cambio de valor de una Variable\n variableEntera = 5;\n System.out.println(variableEntera);\n \n String variableCadena = \"Saludos\";\n System.out.println(variableCadena);\n \n variableCadena = \"Adios\";\n System.out.println(variableCadena);\n \n //var hace inferencias de tipos en Java\n \n var variableEntera2 = 15;\n System.out.println(variableEntera2);\n \n var variableCadena2 = \"Nueva Cadena\";\n System.out.println(\"miVariableCadena2 = \" + variableCadena2);\n \n }", "public static void main(String[] args) \r\n\t{\r\n\t\tVariable_Types obj=new Variable_Types();\r\n\t\tString tname=obj.toolname;\r\n\t\tSystem.out.println(\"Instant Variable name is => \"+tname);\r\n\r\n\t\t\r\n\t\t/*\r\n\t\t * Calling Class variables [Variable with static specifier]\r\n\t\t * \t\t\r\n\t\t */\r\n\t\tString mail=email;\r\n\t\tSystem.out.println(\"static variable value is => \"+mail);\r\n\t}", "String getVariable();", "public VariableNode(String name) {\n\t\tthis.name = name;\n\t}", "Variable(Object names[]) {\n _vname = makeName(names).intern();\n _names = names;\n \n }", "String getVarDeclare();", "final public void define() throws ParseException {\n String name=\"\";\n Long value;\n jj_consume_token(DEFINE);\n jj_consume_token(VARIABLE);\n name = token.image;\n jj_consume_token(NUMERO);\n try {\n value = Long.parseLong(token.image);\n }\n catch(Exception e) {\n {if (true) throw new ParseException(\"Una variable solo puede guardar numeros\");}\n }\n userVals.put(name, value);\n }", "VariableExp createVariableExp();", "VarAssignment createVarAssignment();", "public static void main(String args[]) {\r\n\t VariableTypeA obj1=new VariableTypeA();\r\n\t VariableTypeA obj2=new VariableTypeA();\r\n\t VariableTypeA obj3=new VariableTypeA();\r\n\t \r\n\t//All three will display \"class or static variable\"\r\n\t System.out.println(obj1.myClassvar);\r\n\t System.out.println(obj2.myClassvar);\r\n\t System.out.println(obj3.myClassvar);\r\n\t \r\n\t obj2.myClassvar=\"changed text\";\r\n\t \r\n\t//All three will display \"Changed Text\"\r\n System.out.println(obj1.myClassvar);\r\n System.out.println(obj2.myClassvar);\r\n System.out.println(obj3.myClassvar);\r\n\t \r\n }", "public String getVariableName() {\n return _vname;\n }", "public void assign(String varName, String varData) {\n vars.put(varName, varData);\n }", "@Test\n public void variableNaming(){\n String $aString=\"bob\";\n float $owed=10f;\n int aMount=4;\n long Amount=5;\n String A0123456789bCd$f=\"ugh\";\n\n\n assertEquals(4,aMount);\n assertEquals(5,Amount);\n assertEquals(10.0F,$owed,0);\n assertEquals(\"bob\",$aString);\n assertEquals(\"ugh\",A0123456789bCd$f);\n }", "public Variable(String variableName) {\n super(null);\n this.variableName = variableName;\n }", "public final void setVarName(String varName){\n\t\tthis.varName = varName;\t\n\t}", "public VariableNode(String attr)\n {\n this.name = attr;\n }", "public String variable()\n\t{\n\t\treturn _var;\n\t}", "public void setVariable(String strVariable)\n {\n this.strVariable = strVariable;\n }", "@Override\n\tprotected String getVariableClassName() {\n\t\treturn \"variable\";\n\t}", "@Override\n public Void visitVariableAntecedent(GraafvisParser.VariableAntecedentContext ctx) {\n variables.add(ctx.HID().getText());\n return null;\n }", "public void setVariable(Name variable) {\n this.variable = variable;\n }", "public Variable getVariable(String name);", "Node getVariable();", "public void setVar(String var)\n {\n this.var = var;\n }", "public static void main(String[] args) {\n\t\tbyte variable=127;\n\t\tshort variable1=32767;\n\t\tint var3=100000; // most popular datatype to represent whole numbers\n\t\tlong var4=10000000;\n\t\t\n\t\t//storing numbers with decimals\n\t\tfloat myFloat =10.99f;\n\t\tdouble myDouble=100.99; //most useful\n\t\t\n\t\t//storing single character\n\t\tchar singleLetter='J';\n\t\tchar specialCharacter='%';\n\t\t\n\t\t//store boolean values: yes or no\n\t\tboolean myBoo=true;\n\t\tboolean myBoo2=false;\n\t\t\n\t\tSystem.out.println(variable);\n\t\tSystem.out.println(\"variable\");\n\t\t\n\t\tSystem.out.println(myBoo2);\n\t\t\n\n\t}", "public void declareVariable(String name, String value) {\n checkNotNull(name);\n checkNotNull(value);\n addLine(VARIABLE_MODIFIER + ' ' + name + \" = \" + value + ';');\n }", "VariableDeclaration createVariableDeclaration();", "public Variable(){\n name = \"\";\n initialValue = 0;\n }", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "private void extractVariables(String codeString) {\n // Remove array initializations\n codeString = arrayInitializer.matcher(codeString).replaceAll(\"\");\n \n // Merge multi declarations and instantiations\n codeString = codeString.replace(\" = \", \"=\").replace(\" , \", \",\");\n \n // Keep only declaration and initialization part\n String[] tmp = codeString.split(\" \");\n if (tmp.length > 1) {\n codeString = tmp[tmp.length - 2];\n \n // Split per declaration\n String[] declarations = codeString.split(\",\");\n for (String declaration : declarations) {\n int endIndex = declaration.indexOf('=');\n if (endIndex != -1) {\n declaration = declaration.substring(0, endIndex);\n }\n declaration = declaration.trim();\n \n // Check that we did not accidentally extracted a keyword, parenthesis or other language elements.\n if (!KEYWORDS.contains(declaration)) {\n addResult(new GlobalVariable(currentFile, declaration));\n }\n }\n }\n }", "public ElementVariable(String name) {\r\n\t\tsuper();\r\n\t\tthis.name = name;\r\n\t}", "public ExprVar(FEContext context, String name)\n {\n super(context);\n this.name = name;\n }", "public static Variable variable( String name )\n {\n NullArgumentException.validateNotNull( \"Variable name\", name );\n return new Variable( name );\n }", "public String visit(VarDeclaration n, String ourclass) {\n String type, name;\n type = n.f0.accept(this, null);\n name = n.f1.accept(this, null);\n if(!ourclass.contains(\" \")){ //class members variables\n vcounter ++;\n integer++;\n variable x = new variable(type, name, vcounter, integer);\n ClassMembers cm = st.cmgetST(ourclass);\n if(cm.checkSameVar(x)){\n System.out.println(\"Variable already exists\");\n return null;\n }\n cm.var.add(x);\n st.cmputST(ourclass, cm);\n }\n else{ //method's variables\n integer++;\n variable x = new variable(type, name, integer);\n String[] parts = ourclass.split(\" \");\n String classname = parts[0]; \n String methodname = parts[1];\n ClassMembers cm=st.cmgetST(classname);\n Method m=cm.meth.get(methodname);\n m.localvars.add(x);\n cm.meth.put(methodname, m);\n st.cmputST(classname, cm);\n }\n return null; \n }", "public static void store(String varName) {\n emit(newVariable(varName).getStore());\n }", "public String getVariable() {\n return variable;\n }", "public IString getVariableIdentifier() {\n\treturn VARIABLE_IDENTIFIER.get(getNd(), this.address);\n }", "public static void main (String[]args) {\n\t\tdouble money = 10.35;\r\n\t//Define a variable type with value of 5*/\t\r\n\t\tbyte number = 5;\r\n\t//Define a variable type with a value of 3*/\t\r\n\t\tint age = 3; \r\n\t\t//Declare 3 String variables\r\n\t\r\n\tString greeting;\r\n\tString goodbye;\r\n\tString saying; \r\n\t//Assign values to those previously created variables\r\n\tgreeting = \"Hi\";\r\n\tgoodbye = \"Take care\";\r\n\tsaying = \"To each their own\";\r\n\tSystem.out.println(greeting);\r\n\tSystem.out.println(greeting+saying);//Expected : HiTo each their own\r\n\t}", "public static void main(String[] args)\n {\n int varInt1 = 10;\n int varInt2 = 20;\n int varInt3;\n\n varInt3 = 30;\n\n System.out.println(\"varInt1=\" + varInt1);\n System.out.println();\n System.out.println(\"varInt2=\" + varInt2);\n System.out.println();\n System.out.println(\"varInt3=\" + varInt3);\n\n varInt1 = 5;\n varInt2 = 55;\n varInt3 = 555;\n\n System.out.println(\"varInt1=\" + varInt1);\n System.out.println();\n System.out.println(\"varInt2=\" + varInt2);\n System.out.println();\n System.out.println(\"varInt3=\" + varInt3);\n\n {\n double varDouble1;\n varDouble1 = 10.5;\n double varDouble2;\n varDouble2 = 21.5;\n System.out.println(\"varInt1=\" + varInt1);\n System.out.println();\n System.out.println(\"varInt2=\" + varInt2);\n System.out.println();\n System.out.println(\"varInt3=\" + varInt3);\n System.out.println();\n System.out.println(\"varDouble1=\" + varDouble1);\n System.out.println();\n System.out.println(\"varDouble2=\" + varDouble2);\n System.out.println();\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tint num1=123;\n\t\tint num2=6767;\n\t\tint num3= 786876;\n\t\tchar num4='A';\n\t\t\n\t\t// 2. declare variable first and then assign value\n\t\tint n1;\n\t\tint n2;\n\t\tint n3;\n\t\t\n\t\tn1= 56;\n\t\tn2=7676;\n\t\tn3=767;\n\t\t// 3. declare all variables together and then assign value\n\t\tint number1, number2, number3;\n\t\t\n\t\tnumber1=12;\n\t\tnumber2=15;\n\t\tnumber3=676;\n\t\t\n\t\tnumber3= 1000;\n\t\t\n\t\tchar myVariable;\n\t\tmyVariable='*';\n\t\t\n\t\tnumber2=number1;\n\t\tSystem.out.println(number2);// it will run 12\n\t\t\n\t\t// number2=false; it will show compiler error and will ask for change the data type for variable2\n\t\t\n\t\tboolean isRain=false;\n\t\t\n\t}", "private ELOperandToken readVarToken() {\r\n \t\tfState = STATE_VAR;\r\n \t\tint endOfToken = index;\r\n \t\tint ch;\r\n \t\tint type = ELOperandToken.EL_PROPERTY_NAME_TOKEN;\r\n \t\twhile((ch = readCharBackward()) != -1) {\r\n \t\t\tif (!Character.isJavaIdentifierPart(ch)) {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\treturn (endOfToken - index > 0 ? new ELOperandToken(index, endOfToken - index, getCharSequence(index, endOfToken - index), type) : ELOperandToken.EOF);\r\n \t\t\t}\r\n \t\t}\r\n \t\treleaseChar();\r\n \t\treturn (endOfToken - index > 0 ? new ELOperandToken(index, endOfToken - index, getCharSequence(index, endOfToken - index), type) : ELOperandToken.EOF);\r\n \t}", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "@Override\n \tpublic void logVarCreated(String name, String type) {\n \t\tSystem.out.println(\"\\tVariable created: [\" + type + \"] \" + name );\n \t}", "public interface IVariable<A extends AbstractDomain<?>> extends IReferenceHolder<A>, ITerm {\n\n\t@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic default Set<IVariable<?>> getVariables() {\n\t\tSet<IVariable<?>> values = new HashSet<>();\n\t\tvalues.add((IVariable<AbstractDomain<?>>) this);\n\t\treturn values;\n\t}\n\n\t/**\n\t * Lets the visitor visit the variable.\n\t * \n\t * @param IVariableVisitor\n\t * The visitor.\n\t */\n\tpublic void processWith(IVariableVisitor iVariableVisitor);\n\n\t/**\n\t * Returns whether it is a constant.\n\t * \n\t * @return Whether it is a constant.\n\t */\n\tpublic boolean isConstant();\n}", "public void setVariable(Variable variable) {\n this.variable = variable;\n }", "public VariableToken(String text) {\n super(text);\n }", "public Name getVariable() {\n return variable;\n }", "public Variable(String s, String in, String nom, int a, int b) {\n ident=new String(s);\n internal=new String(in);\n if (nom!=null) {name=new String(nom);} else {name=\"(Variable interne)\";}\n lowbound=a;\n highbound=b;\n noccur=0;\n \n \n }", "public Map<String, Object> getVariables();", "private Constants$CounterNames() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.mName = var3_1;\n }", "private Symbol.VariableSymbol varSymFromString(String name, String type) {\n Symbol.TypeSymbol typeSymbol = TypeUtils.typeFromStr(type);\n return new Symbol.VariableSymbol(name, typeSymbol);\n }", "public String variableValues() {\n\t\tif (name.values().size()==0)\n\t\t\treturn \"Symbol table is empty\";\n\t\tString s = \"Variable values\\n\";\n\t\tfor (NameSSA n : name.values()) {\n\t\t\tVariable v = var.get(n.current());\n\t\t\tif (v.isConstant())\n\t\t\t\ts += n.current() + \":\" + v.constantNumber();\n\t\t\telse \n\t\t\t\ts += n.current() + \":\" + \" unknown\";\n\t\t\ts+=\" \";\n\t\t}\n\t\treturn s;\n\t}", "static public <T1> Set<Variable> newVariables(\n String name1, T1 value1, Class<? extends T1> type1\n ) {\n return newVariables(\n newVariable(name1, value1, type1)\n );\n }", "private boolean isVariable(String refWord){\n\t\tif(refWord.charAt(0) == 'i' && Character.isDigit(refWord.charAt(1)))\n\t\t\treturn true;\n\t\treturn false;\n\t}", "final public Token IdentifierOrReserved() throws ParseException {\n /*@bgen(jjtree) IdentifierOrReserved */\n SimpleNode jjtn000 = new SimpleNode(JJTIDENTIFIERORRESERVED);\n boolean jjtc000 = true;\n jjtree.openNodeScope(jjtn000);Token t1;\n log.trace(\"Entering IdentifierOrReserved\");\n try {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case DEFINE:\n t1 = jj_consume_token(DEFINE);\n break;\n case LOAD:\n t1 = jj_consume_token(LOAD);\n break;\n case FILTER:\n t1 = jj_consume_token(FILTER);\n break;\n case FOREACH:\n t1 = jj_consume_token(FOREACH);\n break;\n case MATCHES:\n t1 = jj_consume_token(MATCHES);\n break;\n case ORDER:\n t1 = jj_consume_token(ORDER);\n break;\n case ARRANGE:\n t1 = jj_consume_token(ARRANGE);\n break;\n case DISTINCT:\n t1 = jj_consume_token(DISTINCT);\n break;\n case COGROUP:\n t1 = jj_consume_token(COGROUP);\n break;\n case JOIN:\n t1 = jj_consume_token(JOIN);\n break;\n case CROSS:\n t1 = jj_consume_token(CROSS);\n break;\n case UNION:\n t1 = jj_consume_token(UNION);\n break;\n case SPLIT:\n t1 = jj_consume_token(SPLIT);\n break;\n case INTO:\n t1 = jj_consume_token(INTO);\n break;\n case IF:\n t1 = jj_consume_token(IF);\n break;\n case ALL:\n t1 = jj_consume_token(ALL);\n break;\n case ANY:\n t1 = jj_consume_token(ANY);\n break;\n case AS:\n t1 = jj_consume_token(AS);\n break;\n case BY:\n t1 = jj_consume_token(BY);\n break;\n case USING:\n t1 = jj_consume_token(USING);\n break;\n case INNER:\n t1 = jj_consume_token(INNER);\n break;\n case OUTER:\n t1 = jj_consume_token(OUTER);\n break;\n case PARALLEL:\n t1 = jj_consume_token(PARALLEL);\n break;\n case GROUP:\n t1 = jj_consume_token(GROUP);\n break;\n case AND:\n t1 = jj_consume_token(AND);\n break;\n case OR:\n t1 = jj_consume_token(OR);\n break;\n case NOT:\n t1 = jj_consume_token(NOT);\n break;\n case GENERATE:\n t1 = jj_consume_token(GENERATE);\n break;\n case FLATTEN:\n t1 = jj_consume_token(FLATTEN);\n break;\n case EVAL:\n t1 = jj_consume_token(EVAL);\n break;\n case ASC:\n t1 = jj_consume_token(ASC);\n break;\n case DESC:\n t1 = jj_consume_token(DESC);\n break;\n case INT:\n t1 = jj_consume_token(INT);\n break;\n case LONG:\n t1 = jj_consume_token(LONG);\n break;\n case FLOAT:\n t1 = jj_consume_token(FLOAT);\n break;\n case DOUBLE:\n t1 = jj_consume_token(DOUBLE);\n break;\n case CHARARRAY:\n t1 = jj_consume_token(CHARARRAY);\n break;\n case BYTEARRAY:\n t1 = jj_consume_token(BYTEARRAY);\n break;\n case BAG:\n t1 = jj_consume_token(BAG);\n break;\n case TUPLE:\n t1 = jj_consume_token(TUPLE);\n break;\n case MAP:\n t1 = jj_consume_token(MAP);\n break;\n case IS:\n t1 = jj_consume_token(IS);\n break;\n case NULL:\n t1 = jj_consume_token(NULL);\n break;\n case STREAM:\n t1 = jj_consume_token(STREAM);\n break;\n case THROUGH:\n t1 = jj_consume_token(THROUGH);\n break;\n case STORE:\n t1 = jj_consume_token(STORE);\n break;\n case SHIP:\n t1 = jj_consume_token(SHIP);\n break;\n case CACHE:\n t1 = jj_consume_token(CACHE);\n break;\n case INPUT:\n t1 = jj_consume_token(INPUT);\n break;\n case OUTPUT:\n t1 = jj_consume_token(OUTPUT);\n break;\n case ERROR:\n t1 = jj_consume_token(ERROR);\n break;\n case STDIN:\n t1 = jj_consume_token(STDIN);\n break;\n case STDOUT:\n t1 = jj_consume_token(STDOUT);\n break;\n case LIMIT:\n t1 = jj_consume_token(LIMIT);\n break;\n case SAMPLE:\n t1 = jj_consume_token(SAMPLE);\n break;\n case IDENTIFIER:\n t1 = jj_consume_token(IDENTIFIER);\n break;\n default:\n jj_la1[7] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n jjtree.closeNodeScope(jjtn000, true);\n jjtc000 = false;\n {if (true) return t1;}\n } finally {\n if (jjtc000) {\n jjtree.closeNodeScope(jjtn000, true);\n }\n }\n throw new Error(\"Missing return statement in function\");\n }", "public static void main(String[] args) {\n\t\tdouble num1= 10.35;\r\n\t\t// byte with value 5\r\n\t\tbyte num2=5;\r\n\t\t//int with value 3\r\n\t\tint num3=3;\r\n\t\t\r\n\t\t//Declare 3 string variables\r\n\t\t String name1;\r\n\t\t String name2;\r\n\t\t String name3;\r\n\t\t\r\n\t\t//Assign values to the previously created variables\r\n\t\tname1= \"John\";\r\n\t\tname2= \"Mary\";\r\n\t\tname3= \"Dog\";\r\n\t\tSystem.out.println(name1);\r\n\t\tSystem.out.println(name1+ name2);\r\n\t\t\r\n\t\t\r\n\t\r\n\t}", "public String getVariable()\n {\n return this.strVariable;\n }", "public void setVar(String var) {\n\t\tthis._var = var;\n\t}", "public boolean isVariable() {\n return false;\n }", "public void setVar(String var) {\n\t\tthis.var = var;\n\t}", "public static boolean variableDeclaration(FileInputStream f) {\n CToken t = new CToken();\n if(observer != null){\n observer.parser.setCurrentRule(\"variableDeclaration\",true);\n }\n \n if (!declarationType(f)) {\n return false;\n }\n if(observer != null){\n observer.parser.setCurrentRule(\"mainDeclaration\",true);\n }\n \n t = CScanner.getNextToken(f);\n if(observer != null){\n observer.parser.setCurrentToken(t);\n }\n \n if (t.token.equals(\"=\")) {\n t = CScanner.peekNextToken(f);\n if(observer != null){\n observer.parser.setCurrentToken(t);\n }\n if (!constant(f)) {\n System.err.format(\"Syntax Error: In rule VariableDeclaration unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0);\n }\n if(observer != null){\n observer.parser.setCurrentRule(\"variableDeclaration\",true);\n }\n t = CScanner.getNextToken(f);\n if(observer != null){\n observer.parser.setCurrentToken(t);\n }\n\n if (!t.token.equals(\";\")) {\n System.err.format(\"Syntax Error: In rule VariableDeclaration unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0);\n } //if not semi colon\n if(observer != null){\n observer.parser.setCurrentRule(\"variableDeclaration\",true);\n }\n } //must follow with constant\n else if (!t.token.equals(\";\")) {\n System.err.format(\"Syntax Error: In rule VariableDeclaration unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0);\n } //if not semicolon nor equals\n if(observer != null){\n observer.parser.setCurrentRule(\"variableDeclaration\", false);\n }\n return true;\n }", "public VariableMeta getMeta();", "public static void main(String[] args) {\n\t\tshort b = 200; // create a variable and assign value\n\t\t\t\t\t\t// declare a variable and initialized\n\n\t\t// 2nd way to create a variable\n\t\tint sum; // declaration happens ONLY ONCE.......ask for a box\n\t\tsum = 20; // initialized the variable\n\n\t\tsum = 30; // reassign the value\n\n\t\t/*\n\t\t * int x; int y; int z;\n\t\t */\n\t\tint x, y, z;\n\n\t\tx = 10;\n\t\ty = 20;\n\t\t// z=30.9; Error: Type Mismatch, since variable can store only int type of\n\t\t// value, not float\n\n\t\t// I would like to change the value of x\n\t\tx = 70;\n\n\t\tSystem.out.println(x);\n\t\tSystem.out.println(y);\n\t\tSystem.out.println(sum);\n\t\tSystem.out.println(b);\n\n\t\tint num = 33;\n\t\t// we are using value of different variable to initialize the value of a new\n\t\t// variable\n\n\t\tint num2=num; // 33\n\t\tSystem.out.println(num2);\n\t\t\n\t\tint age=50;\n\t\tint iq=age;\n\t\t\n\t\tSystem.out.println(iq+\"\"+age);\n\t\t\n\t}", "public Variable(String name) {\r\n\t\tName = name;\r\n\t\tValues = new ArrayList<>();\r\n\t\tParents = new ArrayList<>();\r\n\t\tCPT = new TreeMap<>();\r\n\t}", "public void declareVariable (String variableName,boolean isFinal,boolean isArgument,String type,\r\n\t\t\t\t\t\t\t\t\tString value)throws IllegalDeclarationException,\r\n\t\t\t\t\t\t\t\t\tTypeNotSupportedException,IncompatibleTypeException{\r\n\t\t//if there's already such var in this scope\\we're trying to make an uninitialised final declaration\r\n\t\tif((isFinal&&value==null)||this.contains(variableName)){\r\n\t\t\tthrow new IllegalDeclarationException();\r\n\t\t}else {\r\n\t\t\t\tVariable newVar = vFactory.createVariable(false, isFinal, isArgument,type,parent==null);\r\n\t\t\t\tif(value==null) {//if we're trying to declare an uninitialised variable legally:\r\n\t\t\t\t\tscopeVariables.put(variableName, newVar);//we'll declare a new uninitialised variable\r\n\t\t\t\t} else if (newVar.isArgument()||(newVar.compatibleWith(value))) {\r\n\t\t\t\t\t//if value's type's compatible with the var's type/we're declaring a method's argument as\r\n\t\t\t\t\t// an argument inside it's own scope(so we'll want to treat it as initialised):\r\n\t\t\t\t\tnewVar.initialize();\r\n\t\t\t\t\tscopeVariables.put(variableName, newVar);//we'll declare a new initialised variable\r\n\t\t\t\t\t} else {//if it's not compatible, we'll check if value is a reference to another variable:\r\n\t\t\t\t\t\tdeclareWithReference(newVar,variableName,isFinal,isArgument,value);\r\n\t\t\t\t\t}\r\n\t\t}\r\n\t}", "public void declare (String name, Value value){\n if (contains(name)){\n throw new VariableAlreadyDefined();\n }\n this.values.put(name, value);\n }", "private void putVariable(String memVar, int value){\n\t\tram[Integer.parseInt(\n\t\t\t\tCharacter.toString(memVar.charAt(1)))]\n\t\t\t\t= value;\n\t}", "public interface AssignmentNode extends StackOperationNode {\n\n TemporaryVariableName getValueName();\n\n}", "public AssrtIntVarNameNode(int ttype, Token t)\n\t{\n\t\tsuper(t);\n\t}", "public Value( String inName, Variable inVar, int inIndex )\n {\n _var = inVar;\n _name = inName;\n _index = inIndex;\n }", "@Override\n public void enterVariableAssignmentStatement(MiniJavaParser.VariableAssignmentStatementContext ctx) {\n Symbol variable = currentScope.lookup(ctx.Identifier().getText());\n if (variable.isField()) {\n mg.loadThis();\n }\n }", "private static void displayVariables() {\n Iterator i = dvm.getVariableNames().iterator();\n Object temp;\n while(i.hasNext()){\n temp = i.next();\n System.out.print(temp + \": \" + dvm.getValue(temp.toString()) + \"\\n\");\n }\n }", "public static void main(String[] args) {\n\t\t\n\n\tchar singleLetter='c';\n\t\n\t//boolean new=true; do not use keyword to name your variables \n\t\n\t//int 1num=100; //error\n\t int num1=100;\n\t \n\t boolean boo_=true;\n\t double $price=2.99;\n\t //byte <b=1; --> error\n\t \n\t //Preferences\n\t /*\n\t * Follow camel casing\n\t * Java Classes should start with upper case and follow camel casing\n\t * Variables and methods in Java should start with lowercase and follow camel casing \n\t */\n\t \n\t short ThisIsMyShortNumber=10;\n\t System.out.println(ThisIsMyShortNumber);\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t}", "public void setVar72(java.lang.CharSequence value) {\n this.var72 = value;\n }", "public String getVar () {\n\t\treturn var;\n\t}", "final public void varcall() throws ParseException {\n jj_consume_token(VARIABLE);\n if(userVals.get(token.image)==null) {\n {if (true) throw new ParseException(\"La variable no ha sido definida.\");}\n }\n }", "public void setVar42(java.lang.Integer value) {\n this.var42 = value;\n }", "public Variable(String name, int initialValue){\n this.name = name;\n this.initialValue = initialValue;\n }", "public static void main(String[] args) {\n\t\tInstanceVariable h1=new InstanceVariable();\n\t\th1.name=\"zeynep\";\n\t\th1.lastName=\"celik\";\n\t\tSystem.out.println(InstanceVariable.brain);//first way\n\t\tSystem.out.println(h1.brain);//second way\n\t\tSystem.out.println(brain);//third way\n\t\tSystem.out.println(h1.eyes+\" \"+nose+\" \"+brain);\n\t\t\n\t\t\n\t\tInstanceVariable h2=new InstanceVariable();\n\t\th2.name=\"hasan\";\n\t\th2.lastName=\"celik\";\n\t\tSystem.out.println(h2.eyes+\" \"+nose+\" \"+brain);\n\t\tInstanceVariable h3=new InstanceVariable();\n\t\th3.name=\"nili\";\n\t\th3.lastName=\"celik\";\n\t\tSystem.out.println(h3.name+h3.lastName);\n\t\tSystem.out.println(h3.eyes+\" \"+nose+\" \"+brain);\n\t\t\n\t}", "public void setVar234(java.lang.CharSequence value) {\n this.var234 = value;\n }", "public static void main(String[] args) {\n\t\tString name = \"Jane Doe\";\r\n\t\t int $age = 24;\r\n\t\t Double _height = 123.5;\r\n\t\t double temp = 37.5;\r\n\r\n\r\n\t}", "public void setVar35(java.lang.CharSequence value) {\n this.var35 = value;\n }", "DynamicVariable createDynamicVariable();", "public Variables() {\n this.numCliente = 0;\n this.tiempoSalida = 999;\n }" ]
[ "0.66503733", "0.6584756", "0.65541726", "0.6538863", "0.6517357", "0.64144355", "0.63622063", "0.63242406", "0.62777346", "0.6269578", "0.6219821", "0.6219821", "0.62090856", "0.6181094", "0.6173467", "0.6168726", "0.6147826", "0.6135802", "0.6086995", "0.6081228", "0.6074383", "0.606294", "0.6062643", "0.60562146", "0.605559", "0.60409415", "0.6031403", "0.6030233", "0.60248446", "0.6024383", "0.60129863", "0.599702", "0.59890026", "0.59717494", "0.59128356", "0.5891201", "0.58805066", "0.5869569", "0.58186775", "0.5818142", "0.5812474", "0.5795286", "0.57949597", "0.5788368", "0.578497", "0.57800436", "0.5778596", "0.5774394", "0.5752722", "0.57401395", "0.5740045", "0.5728718", "0.5696194", "0.56869996", "0.5674801", "0.56716174", "0.56704986", "0.567043", "0.5664072", "0.5658991", "0.5658789", "0.56530076", "0.5652005", "0.56410664", "0.56398845", "0.5639465", "0.55853355", "0.55842847", "0.5580756", "0.55721277", "0.55714774", "0.55664104", "0.5561339", "0.55606645", "0.5543307", "0.55362916", "0.5532911", "0.5527347", "0.55158716", "0.5515473", "0.55079067", "0.54998875", "0.54949296", "0.5478002", "0.54759914", "0.54732984", "0.54621017", "0.5457053", "0.5454161", "0.54476506", "0.5430778", "0.54266584", "0.5414476", "0.540537", "0.54043716", "0.5401566", "0.5394689", "0.53925115", "0.53915703", "0.5389141", "0.53887385" ]
0.0
-1
returns the ngram features of a given sentence
public ClassicCounter<String> getFeatures(String sentence, ClassicCounter<String> counter, int nMin, int nMax) { sentence = sentence.toLowerCase().replaceAll(" ", "_"); sentence = "_" + sentence + "_"; for (int j = nMin - 1; j < nMax; j++) { for (int i = 0; i < sentence.length() - j; i++) { if (j == 0 && sentence.substring(i, i + j + 1).equals("_")) continue; counter.incrementCount(sentence.substring(i, i + j + 1), 1); } } return counter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<String> nGramGenerator(String sentence, int minGram, int maxGram, boolean unigrams) {\n Set<String> out = new HashSet();\n try {\n StringReader reader = new StringReader(sentence);\n StandardTokenizer source = new StandardTokenizer(LUCENE_VERSION, reader);\n TokenStream tokenStream = new StandardFilter(LUCENE_VERSION, source);\n try (ShingleFilter sf = new ShingleFilter(tokenStream, minGram, maxGram)) {\n sf.setOutputUnigrams(unigrams);\n\n CharTermAttribute charTermAttribute = sf.addAttribute(CharTermAttribute.class);\n sf.reset();\n\n while (sf.incrementToken()) {\n out.add(charTermAttribute.toString());\n }\n\n sf.end();\n }\n\n } catch (IOException ex) {\n logger.log(Level.SEVERE, null, ex);\n }\n\n return out;\n }", "public static List<NGram> getNGramsFromSentence(String sentence, int n){\n List<NGram> nGrams = new ArrayList<>();\n String[] words = sentence.split(\"\\\\s+\");\n\n if (n == 1){\n for (String word : words) {\n if (word.equalsIgnoreCase(PHI))\n continue;\n\n String[] unigram = new String[1];\n unigram[0] = word;\n nGrams.add(new NGram(unigram));\n }\n } else if (n == 2) {\n for (int i = 0; i < words.length; i++) {\n if (words[i].equals(PHI))\n continue;\n\n String[] bigram = new String[2];\n\n if (i == 0)\n bigram[0] = PHI;\n else\n bigram[0] = words[i - 1];\n\n bigram[1] = words[i];\n\n nGrams.add(new NGram(bigram));\n }\n } else\n throw new RuntimeException(\"3+ grams have not been implemented!\");\n\n return nGrams;\n }", "public ArrayList<Ngram> getNgramsFromFileWithStopwordsListOnly(String content) {\n HashMap<String, Integer> ngramsTable = new HashMap<>();\n InputStream modelIn = null; //rules_POS = null;\n if (content != null) {\n try {\n\n modelIn = new FileInputStream(\"resources/en-token.bin\");\n TokenizerModel model = new TokenizerModel(modelIn);\n Tokenizer tokenizer = new TokenizerME(model);\n String paras[] = tokenizer.tokenize(content);\n\n //create the first ngram\n String[] ngram = new String[nrGrams];\n int i = 0, count = 0;\n while (count < nrGrams && i < paras.length) {\n if (paras[i].trim().length() > 0 && !paras[i].matches(\"[\\\\p{Punct}\\\\p{Digit}]+|'s\")) {\n String word = paras[i].toLowerCase();\n if (word.trim().length() > 0) {\n ngram[count] = word;\n count++;\n }\n }\n i++;\n }\n\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < ngram.length - 1; j++) {\n sb.append(ngram[j]).append(\"<>\");\n }\n sb.append(ngram[ngram.length - 1]);\n\n //adding to the frequencies table\n ngramsTable.put(sb.toString(), 1);\n\n //creating the remaining ngrams\n String word;\n while (i < paras.length) {\n if (paras[i].trim().length() > 0 && !paras[i].matches(\"[\\\\p{Punct}\\\\p{Digit}']+|'s\")) {\n word = paras[i].toLowerCase();\n\n if (word.trim().length() > 0) {\n String ng = addNextWord(ngram, word);\n\n //verify if the ngram already exist on the document\n if (ngramsTable.containsKey(ng)) {\n ngramsTable.put(ng, ngramsTable.get(ng) + 1);\n } else {\n ngramsTable.put(ng, 1);\n }\n }\n }\n i++;\n }\n } catch (IOException e) {\n Logger.getLogger(AbstractDatabaseImporter.class.getName()).log(Level.SEVERE, null, e);\n } finally {\n if (modelIn != null) {\n try {\n modelIn.close();\n } catch (IOException e) {\n }\n }\n }\n }\n\n\n\n\n ArrayList<Ngram> ngrams = new ArrayList<>();\n for (Entry<String, Integer> entry : ngramsTable.entrySet()) {\n ngrams.add(new Ngram(entry.getKey(), entry.getValue()));\n }\n Collections.sort(ngrams);\n return ngrams;\n }", "private ArrayList<Ngram> getNgramsFromFile(String content) {\n if (this.removeStopwordsByTagging) {\n return this.getNgramsFromFileRemovingStopwordsByTagging(content);\n } else {\n return this.getNgramsFromFileWithStopwordsListOnly(content);\n }\n }", "public List<List<TaggedWord>> getsTaggedSentences(String input) {\n List<List<HasWord>> sentences = MaxentTagger.tokenizeText(new StringReader(input));\n return mxntg.process(sentences);\n }", "@Override\n protected List<Term> segSentence(char[] sentence)\n {\n WordNet wordNetAll = new WordNet(sentence);\n ////////////////生成词网////////////////////\n generateWordNet(wordNetAll);\n ///////////////生成词图////////////////////\n// System.out.println(\"构图:\" + (System.currentTimeMillis() - start));\n if (HanLP.Config.DEBUG)\n {\n System.out.printf(\"粗分词网:\\n%s\\n\", wordNetAll);\n }\n// start = System.currentTimeMillis();\n List<Vertex> vertexList = viterbi(wordNetAll);\n// System.out.println(\"最短路:\" + (System.currentTimeMillis() - start));\n\n if (config.useCustomDictionary)\n {\n if (config.indexMode > 0)\n combineByCustomDictionary(vertexList, this.dat, wordNetAll);\n else combineByCustomDictionary(vertexList, this.dat);\n }\n\n if (HanLP.Config.DEBUG)\n {\n System.out.println(\"粗分结果\" + convert(vertexList, false));\n }\n\n // 数字识别\n if (config.numberQuantifierRecognize)\n {\n mergeNumberQuantifier(vertexList, wordNetAll, config);\n }\n\n // 实体命名识别\n if (config.ner)\n {\n WordNet wordNetOptimum = new WordNet(sentence, vertexList);\n int preSize = wordNetOptimum.size();\n if (config.nameRecognize)\n {\n PersonRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.translatedNameRecognize)\n {\n TranslatedPersonRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.japaneseNameRecognize)\n {\n JapanesePersonRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.placeRecognize)\n {\n PlaceRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.organizationRecognize)\n {\n // 层叠隐马模型——生成输出作为下一级隐马输入\n wordNetOptimum.clean();\n vertexList = viterbi(wordNetOptimum);\n wordNetOptimum.clear();\n wordNetOptimum.addAll(vertexList);\n preSize = wordNetOptimum.size();\n OrganizationRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (wordNetOptimum.size() != preSize)\n {\n vertexList = viterbi(wordNetOptimum);\n if (HanLP.Config.DEBUG)\n {\n System.out.printf(\"细分词网:\\n%s\\n\", wordNetOptimum);\n }\n }\n }\n\n // 如果是索引模式则全切分\n if (config.indexMode > 0)\n {\n return decorateResultForIndexMode(vertexList, wordNetAll);\n }\n\n // 是否标注词性\n if (config.speechTagging)\n {\n speechTagging(vertexList);\n }\n\n return convert(vertexList, config.offset);\n }", "SwiftScoredSet getTfIdf(String text,ASTNode n,boolean kgram)\n{\n Map<String,Integer> words = null;\n Map<String,Integer> totals = null;\n double tot = 0;\n if (kgram){\n words = buildKgramCounts(text,n);\n totals = kgram_counts;\n tot = total_kdocuments;\n } \n else {\n words = handleDocumentText(text);\n totals = document_counts;\n tot = total_documents;\n }\n double termtot = 1;\n \n for (Integer iv : words.values()) {\n termtot += iv;\n }\n \n SwiftScoredSet rslt = new SwiftScoredSet();\n for (Map.Entry<String,Integer> ent : words.entrySet()) {\n String wd = ent.getKey();\n double ct = ent.getValue();\n Integer docs = totals.get(wd);\n double docct = 0;\n if (docs != null) docct = docs;\n double idf = Math.log(tot/(1+docct));\n double tf = ct/termtot;\n double tfidf = tf*idf;\n rslt.add(wd,tfidf);\n }\n rslt.normalize();\n \n return rslt;\n}", "private Double getSentenceTfIdf(String sentence, Article article) {\n Double sentenceTfIdf = 0.0;\n PriorityQueue<Double> topFiveWords = new PriorityQueue<>(Collections.reverseOrder());\n Set<String> alreadyConsideredWords = new HashSet<>();\n\n // Split the words in a sentence\n String[] sentenceTerms = sentence.split(\"\\\\s+\");\n\n for (String term: sentenceTerms) {\n // format the raw term to remove non-alphanumeric characters\n term = term.replaceAll(\"[^a-zA-Z\\\\d]\", \"\").toLowerCase().trim();\n\n if (!term.isEmpty()) {\n // lookup term in unigrams map to get its TF.IDF score\n Unigram correspondingUnigram = article.unigrams.get(term);\n\n if (correspondingUnigram != null && !alreadyConsideredWords.contains(term)) {\n topFiveWords.add(correspondingUnigram.getTf_idf());\n alreadyConsideredWords.add(term);\n }\n }\n }\n\n int limit = Math.min(5, topFiveWords.size());\n for (int i = 0; i < limit; i++) {\n sentenceTfIdf += topFiveWords.poll();\n }\n\n return sentenceTfIdf;\n }", "public String[] prepareText(String text) {\n\n Properties props = new Properties();\n\n props.put(\"annotators\", \"tokenize, ssplit, pos, lemma, ner\");\n StanfordCoreNLP pipeline = new StanfordCoreNLP(props);\n\n //apply\n Annotation document = new Annotation(text);\n pipeline.annotate(document);\n\n List<CoreMap> sentences = document.get(CoreAnnotations.SentencesAnnotation.class);\n\n ArrayList<String> result = new ArrayList<>();\n\n for (CoreMap sentence : sentences) {\n\n for (CoreLabel token : sentence.get(CoreAnnotations.TokensAnnotation.class)) {\n // this is the text of the token\n String word = token.get(CoreAnnotations.LemmaAnnotation.class);\n // this is the POS tag of the token\n String pos = token.get(PartOfSpeechAnnotation.class);\n // this is the NER label of the token\n String ne = token.get(CoreAnnotations.NamedEntityTagAnnotation.class);\n\n if (!StringUtils.isStopWord(word)) {\n result.add(word);\n }\n\n }\n\n }\n String[] result_ar = new String[result.size()];\n\n return result.toArray(result_ar);\n }", "public Ngram_Type(JCas jcas, Type casType) {\n super(jcas, casType);\n casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());\n\n \n casFeat_n = jcas.getRequiredFeatureDE(casType, \"n\", \"uima.cas.Integer\", featOkTst);\n casFeatCode_n = (null == casFeat_n) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_n).getCode();\n\n \n casFeat_tokens = jcas.getRequiredFeatureDE(casType, \"tokens\", \"uima.cas.FSList\", featOkTst);\n casFeatCode_tokens = (null == casFeat_tokens) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_tokens).getCode();\n\n \n casFeat_rawText = jcas.getRequiredFeatureDE(casType, \"rawText\", \"uima.cas.String\", featOkTst);\n casFeatCode_rawText = (null == casFeat_rawText) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_rawText).getCode();\n\n \n casFeat_sentimentScore = jcas.getRequiredFeatureDE(casType, \"sentimentScore\", \"uima.cas.FloatList\", featOkTst);\n casFeatCode_sentimentScore = (null == casFeat_sentimentScore) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_sentimentScore).getCode();\n\n \n casFeat_negationScore = jcas.getRequiredFeatureDE(casType, \"negationScore\", \"uima.cas.FloatList\", featOkTst);\n casFeatCode_negationScore = (null == casFeat_negationScore) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_negationScore).getCode();\n\n \n casFeat_amplificationScore = jcas.getRequiredFeatureDE(casType, \"amplificationScore\", \"uima.cas.FloatList\", featOkTst);\n casFeatCode_amplificationScore = (null == casFeat_amplificationScore) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_amplificationScore).getCode();\n\n }", "public List<String> getAllSentences(String input) {\n List<String> output = new ArrayList();\n // create an empty Annotation just with the given text\n document = new Annotation(input);\n // run all Annotators on this text\n pipeline.annotate(document);\n // All the sentences in this document\n List<CoreMap> docSentences = document.get(CoreAnnotations.SentencesAnnotation.class);\n for (CoreMap sentence : docSentences) {\n // traverse words in the current sentence\n output.add(sentence.toString());\n }\n\n return output;\n }", "public List<Tokens> populateParserInfo(String inputSentence) {\n\t\t\n\t\t//Properties props = new Properties();\n\t\t// props.setProperty(\"annotators\", \"tokenize, ssplit, pos, lemma, ner, parse, dcoref\");\n\t\t//props.setProperty(\"annotators\", \"tokenize, ssplit, pos, lemma, ner, parse\");\n\t\t//StanfordCoreNLP pipeline = new StanfordCoreNLP(props);\n\t\tPipeline pipe = new Pipeline(true);\n\t\t//Annotation annotation;\n\t\t//annotation = new Annotation(inputSentence);\n\n\t\tAnnotation annotation = pipe.annotate(inputSentence);\n\t\tList<CoreMap> sentences = annotation.get(CoreAnnotations.SentencesAnnotation.class);\n\t\tint sentenceCount = 0;\n\t\tList<Tokens> tokenList = new ArrayList<Tokens>();\n\t\tfor (CoreMap sentence: sentences) {\n populateParserInfo(sentence, tokenList);\n\t\t}\n\t\treturn tokenList;\n\t}", "public Set<String> getSentences(String input) {\n Set<String> output = new HashSet();\n // create an empty Annotation just with the given text\n document = new Annotation(input);\n // run all Annotators on this text\n pipeline.annotate(document);\n // All the sentences in this document\n List<CoreMap> docSentences = document.get(CoreAnnotations.SentencesAnnotation.class);\n for (CoreMap sentence : docSentences) {\n // traverse words in the current sentence\n output.add(sentence.toString());\n }\n\n return output;\n }", "public float[] textVector(String s) {\n Vector vec = new Vector(args_.dim);\n IntVector line = new IntVector();\n dict_.getLine(s, line, model_.getRng());\n dict_.addWordNgramHashes(line, args_.wordNgrams);\n if (line.size() == 0) {\n return vec.getData();\n }\n for (int i : line.copyOf()) {\n vec.addRow(model_.wi_, i);\n }\n vec.mul((float) (1.0 / line.size()));\n return vec.getData();\n }", "public Map<String, String> partsOfSpeech(String input) {\n Map<String, String> output = new HashMap();\n // create an empty Annotation just with the given text\n document = new Annotation(input);\n // run all Annotators on this text\n pipeline.annotate(document);\n // traverse words in the document\n document.get(CoreAnnotations.TokensAnnotation.class).stream().forEach((token) -> {\n // this is the text of the token\n String word = token.get(CoreAnnotations.TextAnnotation.class);\n // this is the POS tag of the token\n String pos = token.get(CoreAnnotations.PartOfSpeechAnnotation.class);\n output.put(word, pos);\n });\n\n return output;\n }", "public static List<Sentence> setUpSentences(String textStr) {\n\t\tList<Sentence> sentences= new ArrayList<Sentence>();\n\t\tint tokenBegin= 0;\n\t\tint sentBegin= 0;\n\t\tint charIndex=0;\n\t\tint sentCount= 0;\n\t\tint tokenCount;\n\t\tint textLen= textStr.length();\n\t\twhile(charIndex<textLen){\n\t\t\tList<Token> tokens= new ArrayList<Token>();\n\t\t\ttokenCount=0;\n\t\t\twhile(charIndex<textLen&& textStr.charAt(charIndex)!= '.'){\n\t\t\t\tif(textStr.charAt(charIndex)== ' '){\n\t\t\t\t\tif(textStr.charAt(charIndex-1)!= '.'){\n\t\t\t\t\t\taddToken(textStr, tokenBegin, charIndex, tokenCount,\n\t\t\t\t\t\t\t\ttokens);\n\t\t\t\t\t\ttokenBegin= charIndex+1;\n\t\t\t\t\t\ttokenCount++;\n\t\t\t\t\t}else\n\t\t\t\t\t\ttokenBegin++;\n\t\t\t\t}\n\t\t\t\tcharIndex++;\n\t\t\t}\n\t\t\t//add last token\n\t\t\tint end= Math.min(charIndex+1, textLen);\n\t\t\taddToken(textStr, tokenBegin, end, tokenCount, tokens);\n\t\t\ttokenBegin=charIndex+1;\n\t\t\t//add sentence \n\t\t\taddSentence(textStr, sentences, sentBegin, sentCount, tokens, end);\n\t\t\t\n\t\t\tsentCount++;\n\t\t\tsentBegin= charIndex+2;\n\t\t\tcharIndex++;\n\t\t}\n\t\t\n\t\treturn sentences;\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 }", "java.lang.String getFeatures(int index);", "List<String> tokenize2(String doc) {\n String stemmed = StanfordLemmatizer.stemText(doc);\n List<String> res = new ArrayList<String>();\n\n for (String s : stemmed.split(\"[\\\\p{Punct}\\\\s]+\"))\n res.add(s);\n return res;\n }", "public double getWordProbability(List<String> sentence, int index) {\n\t\n\treturn (Weights[0] * Trigram.getWordProbability(sentence, index) +\n\t\tWeights[1] * Bigram.getWordProbability(sentence, index) +\n\t\tWeights[2] * Unigram.getWordProbability(sentence, index));\n }", "public static List<Word> getSentenceWords(CoreMap sentenceAnnotation, int sentOffset) {\n\tList<Word> words = new ArrayList<>();\n\tList<CoreLabel> tokenAnns = sentenceAnnotation.get(TokensAnnotation.class);\n\tif (tokenAnns == null || tokenAnns.size() == 0) {\n\t log.warning(\"No token annotations were generated for the sentence. Skipping coreNLP..\");\n\t return words;\n\t}\n\tint wi = 0;\n\tfor (CoreLabel token : sentenceAnnotation.get(TokensAnnotation.class)) {\n\t String str = token.get(OriginalTextAnnotation.class);\n\t String pos = token.get(PartOfSpeechAnnotation.class);\n\t String lemma = token.get(LemmaAnnotation.class);\n\t if (StringUtils.isPunct(str) && lemma.startsWith(\"-\") && lemma.endsWith(\"-\"))\n\t\tlemma = str.toLowerCase();\n\t WordLexeme lex = new WordLexeme(lemma, pos);\n\t Word w = new Word(str, pos, lex, ++wi);\n\t int begin = token.get(CharacterOffsetBeginAnnotation.class);\n\t int end = token.get(CharacterOffsetEndAnnotation.class);\n\t w.setSpan(new SpanList(begin + sentOffset, end + sentOffset));\n\t words.add(w);\n\t}\n\treturn words;\n }", "public static ArrayList<String> wordTokenizer(String sentence){\n \n ArrayList<String> words = new ArrayList<String>();\n String[] wordsArr = sentence.replaceAll(\"\\n\", \" \").toLowerCase().split(\" \");\n \n for(String s : wordsArr){\n \n if(s.trim().compareTo(\"\") != 0)\n words.add(s.trim());\n \n }\n \n return words;\n \n }", "Stream<CharSequence> toWords(CharSequence sentence);", "int getGrammarMatchCount();", "public String[] detectPOSTags(String[] tokens) throws IOException {\n\t\ttry (InputStream modelIn = new FileInputStream(\"en-pos-maxent.bin\")) {\r\n\r\n\t\t\t// Initialize POS tagger tool\r\n\t\t\tPOSTaggerME myCategorizer = new POSTaggerME(new POSModel(modelIn));\r\n\r\n\t\t\t// Tag sentence.\r\n\t\t\tString[] posTokens = myCategorizer.tag(tokens);\r\n\t\t\tSystem.out.println(\"POS Tags : \" + Arrays.stream(posTokens).collect(Collectors.joining(\" | \")));\r\n\r\n\t\t\treturn posTokens;\r\n\r\n\t\t}\r\n\t}", "public void buildMultigramModel(String fileName, int n) throws IOException {\n\t\tBufferedReader reader = new BufferedReader(new FileReader(fileName));\n\t\tString line = null;\n\t\tStringBuilder sb = null;\n\t\tMap<String, Integer> count = new HashMap<>();\n\t\tint totalCount = 0;\n\t\twhile ((line = reader.readLine()) != null) {\n\t\t\tsb = new StringBuilder();\n//\t\t\tsb.append(terminal); // no \"$\" at the beginning\n\t\t\tfor (char c : line.toCharArray()) {\n\t\t\t\tif (Character.isLetter(c) || c == ' ' || c == ',' || c == '.' || c == '\\'') {\n\t\t\t\t\tif (Character.isLowerCase(c)) {\n\t\t\t\t\t\tc = (char) (c + 'A' - 'a');\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(terminal);\n\t\t\t// sb is established and preprocessed: \"hello, this is a sentence.$\"\n\t\t\t\n\t\t\twhile (sb.length() >= n) { // n == 2 if it is a bigram model\n\t\t\t\tString crt = sb.substring(0, n); // the first n characters\n\t\t\t\tif (count.containsKey(crt)) {\n\t\t\t\t\tcount.put(crt, count.get(crt) + 1);\n\t\t\t\t\ttotalCount++;\n\t\t\t\t}else {\n\t\t\t\t\tcount.put(crt, 1);\n\t\t\t\t}\n\t\t\t\tsb.deleteCharAt(0);\n\t\t\t}\n\t\t}\n\t\tif (n == 2) {\n\t\t\tbi = new HashMap<>(count);\n\t\t\tlm.putAll(bi);\n\t\t\tthis.sizeOfBiword = totalCount;\n\t\t} else if (n == 3) {\n\t\t\ttri = new HashMap<>(count);\n\t\t\tlm.putAll(tri);\n\t\t\tthis.sizeOfTriword = totalCount;\n\t\t}\n//\t\tSystem.out.println(\"File \" + fileName + \"\\'s \" + n + \"-gram model is ready.\");\n\t\treader.close();\n\t}", "String[] splitSentenceWords() {\n\t\t\tint i=0;\n\t\t\tint j=0;\n\t\t\tArrayList<String> words = new ArrayList<String>();\n\t\t\t\n\t\t\t\tString[] allWords = wordPattern.split(purePattern.matcher(sentence).replaceAll(\" \"));//.split(\"(?=\\\\p{Lu})|(\\\\_|\\\\,|\\\\.|\\\\s|\\\\n|\\\\#|\\\\\\\"|\\\\{|\\\\}|\\\\@|\\\\(|\\\\)|\\\\;|\\\\-|\\\\:|\\\\*|\\\\\\\\|\\\\/)+\");\n\t\t\tfor(String word : allWords) {\n\t\t\t\tif(word.length()>2) {\n\t\t\t\t\twords.add(word.toLowerCase());\n\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\treturn (String[])words.toArray(new String[words.size()]);\n\t\t\n\t\t}", "public int getNgramFrequency(String ngram) {\n //TODO replace this line with your code\n return -1;\n }", "private boolean lookupSentiments(Sentence sent) {\n if (selectCovered(NGram.class, sent).size() > 0)\n return true;\n return false;\n }", "private void initializeSentimentFeaturesCount() {\n\t\tint count = 0;\n\n\t\t// Number of positive words\n\t\tif (Features.isNumberOfPositiveWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of negative words\n\t\tif (Features.isNumberOfNegativeWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of highly emotional positive words\n\t\tif (Features.isNumberOfHighlyEmoPositiveWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of highly emotional negative words\n\t\tif (Features.isNumberOfHighlyEmoNegativeWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of Capitalized positive words\n\t\tif (Features.isNumberOfCapitalizedPositiveWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of Capitalized Negative Words\n\t\tif (Features.isNumberOfCapitalizedNegativeWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Ratio of Emotional Words\n\t\tif (Features.isRatioOfEmotionalWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of Positive Emoticons\n\t\tif (Features.isNumberOfPositiveEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of Negative Emoticons\n\t\tif (Features.isNumberOfNegativeEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of \"Neutral\" Emoticons\n\t\tif (Features.isNumberOfNeutralEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of \"Joking\" Emoticons\n\t\tif (Features.isNumberOfJokingEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number Of Positive Slangs\n\t\tif (Features.isNumberOfPositiveSlangs()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of Negative Slangs\n\t\tif (Features.isNumberOfNegativeSlangs()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number Of Positive Hashtags\n\t\tif (Features.isNumberOfPositiveHashtags()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number Of Negative Hashtags\n\t\tif (Features.isNumberOfNegativeHashtags()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Contrast Words Vs Words\n\t\tif (Features.isContrastWordsVsWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Contrast Words Vs Hashtags\n\t\tif (Features.isContrastWordsVsHashtags()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Contrast Words Vs Emoticons\n\t\tif (Features.isContrastWordsVsEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Contrast Hashtags Vs Hashtags\n\t\tif (Features.isContrastHashtagsVsHashtags()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Contrast Hashtags Vs Emoticons\n\t\tif (Features.isContrastHashtagsVsEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\tSelectBasicFeaturesWindow.setNumberOfSentimentRelatedFeatures(count);\n\t\tSelectBasicFeaturesWindow.countOfSentimentRelatedFeatures.set(count);\n\t}", "public static int getNforNgram(){\r\n\t\tString path = \"conf/ngram.txt\"; \r\n\t\tint res = 0;\r\n\t\tArrayList<String> words = TextFile.getLines(path);\r\n\t\tString s = words.get(0);\r\n\t\tres = Integer.valueOf(s);\r\n\t\treturn res;\r\n\t}", "public NgramAnalyser(int n, String inp) \n { \n //TODO replace this line with your code\n }", "List<String> getFeatures();", "int countTypedFeatures();", "public static List<String> sentenceToList(String sentence){\n\t\treturn Arrays.asList(sentence.split(\"\\\\s+\"));\n\t}", "public interface TextFeature extends Closeable {\n\n /**\n * Get an ID for the feature extractor\n * @return The ID\n */\n String id();\n \n /**\n * Extract features from a feature extractor\n * @param facet The facet to extract features for\n * @return The set of features\n */\n default Feature[] extractFeatures(LensResult facet) {\n return extractFeatures(facet, NaiscListener.DEFAULT);\n }\n \n /**\n * Extract features from a feature extractor\n * @param facet The facet to extract features for\n * @param log The listener\n * @return The set of features\n */\n Feature[] extractFeatures(LensResult facet, NaiscListener log);\n\n /**\n * Get the tags that this feature extractor accepts or null for all\n * @return The set of features accepted or null for all\n */\n Set<String> tags();\n}", "public static String preprocessStemAndTokenizeAddBigramsInString(String data) {\n\t\t//System.out.println(\"Preprocess data, remove stop words, stem, tokenize and get bi-grams ..\");\n\n\t\tSet<String> transformedSet = new LinkedHashSet<String>();\n\t\tList<String> stemmedList = new ArrayList<String>();\n\n\t\tTokenizer analyzer = new Tokenizer(Version.LUCENE_30);\n\t\tTokenStream tokenStream = analyzer.tokenStream(\"\", new StringReader(data));\n\t\tTermAttribute termAttribute;\n\t\tString term;\n\t\ttry {\n\t\t\twhile (tokenStream.incrementToken()) {\n\t\t\t\ttermAttribute = tokenStream.getAttribute(TermAttribute.class);\n\t\t\t\tterm = termAttribute.term();\n\t\t\t\tif (digitPattern.matcher(term).find()) //ignore digits\n\t\t\t\t\tcontinue;\n\t\t\t\tif (stopwords.contains(term)) //ignore stopwords\n\t\t\t\t\tcontinue;\n\t\t\t\tif (term.length() <= 1) //ignore stopwords\n\t\t\t\t\tcontinue;\n\t\t\t\tstemmer.setCurrent(term);\n\t\t\t\tstemmer.stem();\n\t\t\t\tstemmedList.add(stemmer.getCurrent());\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString[] ds = stemmedList.toArray(new String[0]);\n\n\t\t/*for(int i=0; i<stemmedList.size(); i++)\n\t\t\tSystem.out.print(ds[i]+\"\\t\");*/\n\n\t\t//add bi-grams\n\t\tfinal int size = 2;\n\t\tfor (int i = 0; i < ds.length; i++) {\n\t\t\ttransformedSet.add(ds[i]); //add single words\n\t\t\tif (i + size <= ds.length) {\n\t\t\t\tString t = \"\";\n\t\t\t\tfor (int j = i; j < i + size; j++) {\n\t\t\t\t\tt += \" \" + ds[j];\n\t\t\t\t}\n\t\t\t\tt = t.trim().replaceAll(\"\\\\s+\", \"_\");\n\t\t\t\ttransformedSet.add(t); //add bi-gram combined with \"_\"\n\t\t\t}\n\t\t}\n\t\t//System.out.println(transformedSet.toArray(new String[transformedSet.size()]).toString());\n\t\treturn StringUtils.join( transformedSet.toArray(new String[transformedSet.size()]), \" \");\n\t\t\n\t}", "public KeyWordList extractKeyWords(String input);", "public String extractRelevantSentences(String paragraph, Collection<String> terms, boolean lemmatised, int maxSentenceLength) {\n String result = \"\";\n boolean checkSentenceLength = (maxSentenceLength != -1);\n\n // Create an empty Annotation just with the given text\n document = new Annotation(paragraph);\n // Run Annotators on this text\n pipeline.annotate(document);\n\n // Use map to track sentences so that a sentence is not returned twice\n sentences = new HashMap();\n int key = 0;\n for (CoreMap coreMap : document.get(CoreAnnotations.SentencesAnnotation.class)) {\n String string = coreMap.toString();\n if (checkSentenceLength)// if checking sentences, skip is sentence is long\n if (StringOps.getWordLength(string) > maxSentenceLength)\n continue;\n sentences.put(key, coreMap.toString());\n key++;\n }\n\n Set keySet = sentences.keySet();\n Set<Integer> returnedSet = new HashSet();\n Iterator keyIterator = keySet.iterator();\n // These are all the sentences in this document\n while (keyIterator.hasNext()) {\n int id = (int) keyIterator.next();\n String content = sentences.get(id);\n // This is the current sentence\n String thisSentence = content;\n // Select sentence if it contains any of the terms and is not already returned\n for (String t : terms) {\n if (!returnedSet.contains(id)) { // ensure sentence not already used\n String label = StringOps.stemSentence(t, true);\n if (StringUtils.contains(StringOps.stemSentence(thisSentence, false), label)\n || StringUtils.contains(StringOps.stemSentence(StringOps.stripAllParentheses(thisSentence), false), label)) { // lookup stemmed strings\n result = result + \" \" + thisSentence.trim(); // Concatenate new sentence\n returnedSet.add(id);\n }\n }\n }\n }\n\n if (lemmatised && null != result) {\n result = lemmatise(result);\n }\n\n return result;\n }", "Feature[] extractFeatures(LensResult facet, NaiscListener log);", "public IDataSet extractFeatures(String featureType);", "public void analyzeDocumentDemo(JSONObject json) {\n\t\ttry {\n\t\t\tJSONArray jarray = json.getJSONArray(\"Reviews\");\n\t\t\tfor (int i = 0; i < jarray.length(); i++) {\n\t\t\t\tPost review = new Post(jarray.getJSONObject(i));\n\t\t\t\tString content = review.getContent();\n\n\n\t\t\t\tHashSet<String> uniminiset = new HashSet<String>();\n\t\t\t\tHashSet<String> biminiset = new HashSet<String>();\n\n\t\t\t\tString[] unigram = tokenizer.tokenize(content);\n\n\t\t\t\tfor (String token : unigram) {\n\t\t\t\t\ttoken = PorterStemmingDemo(SnowballStemmingDemo(NormalizationDemo(token)));\n\n\t\t\t\t\tuniminiset.add(token);\n\t\t\t\t}\n\n\t\t\t\t// count word frequency for unigram\n\t\t\t\tfor (String token2 : uniminiset) {\n\t\t\t\t\tif (m_stopwords.contains(token2))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse {\n\t\t\t\t\t\ttoken2 = PorterStemmingDemo(SnowballStemmingDemo(NormalizationDemo(token2)));\n\t\t\t\t\t\tif (m_stats.containsKey(token2)) {\n\t\t\t\t\t\t\tm_stats.put(token2, m_stats.get(token2) + 1);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tm_stats.put(token2, 1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tArrayList<String> N_gram = new ArrayList<String>();\n\n\t\t\t\tfor (String token : tokenizer.tokenize(content)) {\n\n\t\t\t\t\ttoken = PorterStemmingDemo(SnowballStemmingDemo(NormalizationDemo(token)));\n\t\t\t\t\tif (token.isEmpty()) {\n\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tN_gram.add(token);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tString[] fine = new String[N_gram.size()];\n // In bigram, neither two words should occur in the stopwords\n\t\t\t\tfor (int p = 0; p < N_gram.size() - 1; p++) {\n\t\t\t\t\tif (m_stopwords.contains(N_gram.get(p)))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tif (m_stopwords.contains(N_gram.get(p + 1)))\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tfine[p] = N_gram.get(p) + \"-\" + N_gram.get(p + 1);\n\n\t\t\t\t}\n\n\t\t\t\tfor (String str : fine) {\n\n\t\t\t\t\tbiminiset.add(str);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// count word frequency for unigram\n\t\t\t\tfor (String str2 : biminiset) {\n\n\t\t\t\t\tif (m_stats.containsKey(str2)) {\n\t\t\t\t\t\tm_stats.put(str2, m_stats.get(str2) + 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tm_stats.put(str2, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n \n\t\t\t\t// store review content on m_reviews so later on when want to use it \n\t\t\t\t// we do not have to reread it from file\n\t\t\t\tm_reviews.add(review);\n \n\t\t\t\t//monitor the process of the program\n\t\t\t\tSystem.out.println(\"level\" + m_reviews.size());\n\n\t\t\t}\n\t\t}\n\n\t\tcatch (JSONException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void getWordCounts() {\n Map<String, List<String>> uniqueWordsInClass = new HashMap<>();\n List<String> uniqueWords = new ArrayList<>();\n\n for (ClassificationClass classificationClass : classificationClasses) {\n uniqueWordsInClass.put(classificationClass.getName(), new ArrayList<>());\n }\n\n for (Document document : documents) {\n String[] terms = document.getContent().split(\" \");\n\n for (String term : terms) {\n if (term.isEmpty()) {\n continue;\n }\n if (!uniqueWords.contains(term)) {\n uniqueWords.add(term);\n }\n\n for (ClassificationClass docClass : document.getClassificationClasses()) {\n if (!uniqueWordsInClass.get(docClass.getName()).contains(term)) {\n uniqueWordsInClass.get(docClass.getName()).add(term);\n }\n if (totalWordsInClass.containsKey(docClass.getName())) {\n this.totalWordsInClass.put(docClass.getName(), this.totalWordsInClass.get(docClass.getName()) + document.getFeatures().get(term));\n } else {\n this.totalWordsInClass.put(docClass.getName(), document.getFeatures().get(term));\n }\n }\n }\n }\n\n this.totalUniqueWords = uniqueWords.size();\n }", "static Set<NLMeaning> extractMeanings(NLText nlText) {\n\t\tSet<NLMeaning> meanings = new HashSet();\n\t\t\n\t\tList<NLSentence> sentences = nlText.getSentences();\n\t\tNLSentence firstSentence = sentences.iterator().next();\n\t\tList<NLToken> tokens = firstSentence.getTokens();\n\t\tList<NLMultiWord> multiWords = firstSentence.getMultiWords();\n\t\tList<NLNamedEntity> namedEntities = firstSentence.getNamedEntities();\n\t\t\n\t\t// Add meanings of all tokens that are not part of multiwords or NEs\n\t\tIterator<NLToken> itToken = tokens.iterator();\n\t\twhile (itToken.hasNext()) {\n\t\t\tSet<NLMeaning> tokenMeanings = getTokenMeanings(itToken.next());\n\t\t\tif (tokenMeanings != null) {\n\t\t\t\tmeanings.addAll(tokenMeanings);\t\t\t\n\t\t\t}\n//\t\t\tNLToken token = itToken.next();\n//\t\t\tboolean hasMultiWords = token.getMultiWords() != null && !token.getMultiWords().isEmpty();\n//\t\t\tboolean hasNamedEntities = token.getNamedEntities() != null && !token.getNamedEntities().isEmpty();\n//\t\t\tif (!hasMultiWords && !hasNamedEntities) {\n//\t\t\t\tif (token.getMeanings() == null || token.getMeanings().isEmpty()) {\n//\t\t\t\t\t// This is a hack to handle a bug where the set of meanings\n//\t\t\t\t\t// is empty but there is a selected meaning.\n//\t\t\t\t\t\n//\t\t\t\t\tNLMeaning selectedMeaning = token.getSelectedMeaning();\n//\t\t\t\t\tif (selectedMeaning != null) {\n//\t\t\t\t\t\tmeanings.add(selectedMeaning);\n//\t\t\t\t\t}\n//\t\t\t\t} else {\n//\t\t\t\t\tmeanings.addAll(token.getMeanings());\n//\t\t\t\t}\n//\t\t\t}\n\t\t}\n\t\t\n\t\t// Add meanings of multiwords and NEs\n\t\tIterator<NLMultiWord> itMultiWord = multiWords.iterator();\n\t\twhile (itMultiWord.hasNext()) {\n\t\t\tNLMultiWord multiWord = itMultiWord.next();\n\t\t\tmeanings.addAll(multiWord.getMeanings());\n\t\t}\n\t\tIterator<NLNamedEntity> itNamedEntity = namedEntities.iterator();\n\t\twhile (itNamedEntity.hasNext()) {\n\t\t\tNLNamedEntity namedEntity = itNamedEntity.next();\n\t\t\tmeanings.addAll(namedEntity.getMeanings());\n\t\t}\n\t\t\n\t\treturn meanings;\n\t}", "public String words(String sentence) {\n String[] stringSentence = sentence.trim().split(\" \");\n for (int i = 0; i < stringSentence.length; i++) {\n if (stringSentence[i].length() >= LENGTH) {\n stringSentence[i] = new StringBuilder(stringSentence[i]).reverse().toString();\n }\n }\n return String.join(\" \", stringSentence);\n }", "public String getGrammarText();", "public List<String> predict(String term) {\n\t\tList<String> results = new ArrayList<String>();\n\t\tif (term == null) {\n\t\t\treturn results;\n\t\t}\n\t\tString formattedTerm = term.strip().toLowerCase();\n\t\tif (formattedTerm.length() < this.minimumNumberOfCharacters) {\n\t\t\treturn results;\n\t\t}\n\t\t\n\t\tQueue<Character> characters = this.toCharacterQueue(formattedTerm);\n\t\tNode lastCharacterNode = this.getLastCharacterNode(this.root, characters);\n\t\tif (lastCharacterNode != null) {\n\t\t\tList<String> fragments = this.getChildrenFragments(lastCharacterNode);\n\t\t\tfor (String fragment : fragments) {\n\t\t\t\tresults.add(formattedTerm.substring(0, formattedTerm.length() - 1) + fragment);\n\t\t\t}\n\t\t}\n\t\treturn results;\n\t}", "public ArrayList getAttributeList() {\n nounList = new ArrayList();\n attributeLists = new ArrayList();\n ArrayList adjAtt = new ArrayList();\n int separator = 0;\n List<Tree> leaves;\n String phraseNotation = \"NP([<NNS|NN|NNP]![<JJ|VBG])!$VP\";// !<VBG\";//@\" + phrase + \"! << @\" + phrase;\n\n TregexPattern VBpattern = TregexPattern.compile(phraseNotation);\n TregexMatcher matcher = VBpattern.matcher(sTree);\n\n while (matcher.findNextMatchingNode()) {\n Tree match = matcher.getMatch();\n Tree[] innerChild = match.children();\n int adjectiveExist = 0;\n String adj = \"\";\n String attribute = \"\";\n String b = \"\";\n\n if (innerChild.length > 1) {\n int count = 1;\n\n for (Tree inChild : innerChild) {\n if (inChild.value().equals(\"CC\") || inChild.value().equals(\",\")) {\n separator = 1;\n }\n if ((inChild.value().equals(\"JJ\")) || (inChild.value().equals(\"VBG\"))) {\n adjectiveExist++;\n leaves = inChild.getLeaves();\n adj = leaves.get(0).toString();\n if (designEleList.contains(adj)) {\n adj = \"\";\n }\n }\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\")) || (inChild.value().equals(\"NNP\"))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n if (count == 1) {\n if (adjectiveExist == 1) {\n attribute = adj + \" \" + leaves.get(0).yieldWords().get(0).word();\n } else {\n attribute = leaves.get(0).yieldWords().get(0).word();\n }\n if (!designEleList.contains(attribute)) {\n String identifiedWord = attribute;\n if (!identifiedWord.contains(\"_\")) {\n attributeLists.add(morphology.stem(identifiedWord));\n } else {\n attributeLists.add(identifiedWord);\n }\n }\n\n } else if (count >= 2 && separator == 0) {\n if (!attribute.contains(\"_\")) {\n\n attributeLists.remove(morphology.stem(attribute));\n attributeLists.remove(attribute);\n } else {\n attributeLists.remove(attribute);\n }\n\n attribute += \" \" + (leaves.get(0).yieldWords()).get(0).word();\n attributeLists.add(attribute);\n } else if (count >= 2 && separator == 1) {\n attribute = (leaves.get(0).yieldWords()).get(0).word();\n if (!attribute.contains(\"_\")) {\n attributeLists.add(morphology.stem(attribute));\n } else {\n attributeLists.add(attribute);\n }\n separator = 0;\n }\n count++;\n }\n }\n } else {\n for (Tree inChild : innerChild) {\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\"))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n if (!identifiedWord.contains(\"_\")) {\n attributeLists.add(morphology.stem(identifiedWord));\n } else {\n attributeLists.add(identifiedWord);\n }\n }\n }\n }\n }\n adjAtt = getAdjectiveAttribute();\n if (!adjAtt.isEmpty()) {\n String att = \"\";\n for (int i = 0; i < adjAtt.size(); i++) {\n att = adjAtt.get(i).toString();\n if (!att.isEmpty() || !att.equals(\"\") || !(att.equals(\" \"))) {\n attributeLists.add(att.trim());\n }\n }\n }\n\n System.out.println(\"ATTRIBUTE LIST :\" + attributeLists);\n return attributeLists;\n\n }", "public void createFeatures(List<String> features, String[] tokens, int index, String[] previousOutcomes) {\n if (currentSentence != tokens) {\n currentSentence = tokens;\n if (isBilou) {\n currentEntities = dictionary.getBilouDictionaryMatch(tokens);\n } else {\n currentEntities = dictionary.getBioDictionaryMatch(tokens);\n }\n }\n \n String currentEntity = currentEntities.get(index);\n \n features.add(attributes.get(\"dict\") + \"=\" + currentEntity);\n features.add(attributes.get(\"dict\") + \",\" + \"w=\" + currentEntity + \",\" + tokens[index]);\n features.add(attributes.get(\"dict\") + \",w=dict\");\n if (Flags.DEBUG) {\n System.err.println(\"-> \" + tokens[index] + \": \" + attributes.get(\"dict\") + \",\" + \"w=\" + currentEntity + \",\" + tokens[index]);\n }\n }", "public String getSentencesWithTerms(String paragraph, Collection<String> terms, boolean lemmatised) {\n String result = \"\";\n\n // Create an empty Annotation just with the given text\n document = new Annotation(paragraph);\n // Run Annotators on this text\n pipeline.annotate(document);\n\n // Use map to track sentences so that a sentence is not returned twice\n sentences = new HashMap();\n int key = 0;\n for (CoreMap coreMap : document.get(CoreAnnotations.SentencesAnnotation.class)) {\n sentences.put(key, coreMap.toString());\n key++;\n }\n\n Set keySet = sentences.keySet();\n Set<Integer> returnedSet = new HashSet();\n Iterator keyIterator = keySet.iterator();\n // These are all the sentences in this document\n while (keyIterator.hasNext()) {\n int id = (int) keyIterator.next();\n String content = sentences.get(id);\n // This is the current sentence\n String thisSentence = content;\n // Select sentence if it contains any of the terms and is not already returned\n for (String t : terms) {\n if (!returnedSet.contains(id)) { // ensure sentence not already used\n String label = lemmatise(t.toLowerCase().replaceAll(\"\\\\s+\", \" \").trim());\n if (StringUtils.contains(lemmatise(thisSentence.toLowerCase()).replaceAll(\"\\\\s+\", \" \"), label)\n || StringUtils.contains(lemmatise(StringOps.stripAllParentheses(thisSentence.toLowerCase())).replaceAll(\"\\\\s+\", \" \"), label)) { // lookup lemmatised strings\n result = result + \" \" + thisSentence.trim(); // Concatenate new sentence\n returnedSet.add(id);\n }\n }\n }\n }\n\n if (null != result && lemmatised) {\n result = lemmatise(result);\n }\n\n return result;\n }", "static ArrayList<String> split_sentences(String inputText){\n ArrayList<String> sentences = new ArrayList<>();\n Pattern p = Pattern.compile(\"[^.!?\\\\s][^.!?]*(?:[.!?](?!['\\\"]?\\\\s|$)[^.!?]*)*[.!?]?['\\\"]?(?=\\\\s|$)\", Pattern.MULTILINE | Pattern.COMMENTS);\n Matcher match = p.matcher(inputText);\n while (match.find()) {\n sentences.add(match.group());\n }\n return sentences;\n }", "public static void main(String[] args) throws Exception {\n\t\tint i;\r\n\t\tint [][]preci_recall = new int [5][6]; \r\n\r\n\t\tNGRAM ngram = new NGRAM();\r\n\t\t\r\n\t\tfor(i=0; i<5; i++) {\r\n\t\t\t\r\n\t\t\tSystem.out.println((i+1) + \" th FOLD IS A TEST SET\");\r\n\t\t\t\r\n\t\t\tdouble[][] test_ngram_features = ngram.feature(i,1);\r\n\t\t\tdouble[][] train_ngram_features = ngram.feature(i,0);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"NGRAM FEATURES...OK\");\r\n\t\r\n//\t\t\t\r\n//\t\t\tLIWC liwc = new LIWC();\r\n//\t\t\t\r\n//\t\t\tdouble[][] test_liwc_features = liwc.feature(i,1,test_ngram_features.length);\r\n//\t\t\tdouble[][] train_liwc_features = liwc.feature(i,0,train_ngram_features.length);\r\n//\r\n//\t\t\tSystem.out.println(\"LIWC FEATURES..OK\");\r\n//\t\t\t\r\n//\t\t\tCOMBINE combine = new COMBINE();\r\n//\t\t\tdouble[][] train_features = combine.sum(train_liwc_features,train_ngram_features);\r\n//\t\t\tdouble[][] test_features = combine.sum(test_liwc_features,test_ngram_features);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"COMBINE...OK\");\r\n\t\t\r\n\t\t\tSVMLIGHT svmlight = new SVMLIGHT();\r\n\t\t\tpreci_recall[i]=svmlight.calcc(train_ngram_features, test_ngram_features);\r\n\r\n\t\t}\r\n\t\t\r\n//\t 0 : truthful TP\r\n//\t 1 : truthful TP+FP\r\n//\t 2 : truthful TP+FN\r\n//\t 3 : deceptive TP\r\n//\t 4 : deceptive TP+FP\r\n//\t 5 : deceptive TP+FN\r\n\t\t\r\n\t\tint truthful_TP_sum=0,truthful_TPFP_sum=0,truthful_TPFN_sum=0;\r\n\t\tint deceptive_TP_sum=0,deceptive_TPFP_sum=0,deceptive_TPFN_sum=0;\r\n\t\t\r\n\t\tfor(i=0;i<5;i++) {\r\n\t\t\ttruthful_TP_sum+=preci_recall[i][0];\r\n\t\t\ttruthful_TPFP_sum+=preci_recall[i][1];\r\n\t\t\ttruthful_TPFN_sum+=preci_recall[i][2];\r\n\t\t\t\r\n\t\t\tdeceptive_TP_sum+=preci_recall[i][3];\r\n\t\t\tdeceptive_TPFP_sum+=preci_recall[i][4];\r\n\t\t\tdeceptive_TPFN_sum+=preci_recall[i][5];\r\n\t\t}\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"\\n\\nTRUTHFUL_TP_SUM : \" + truthful_TP_sum);\r\n\t\tSystem.out.println(\"TRUTHFUL_TPFP_SUM : \" + truthful_TPFP_sum);\r\n\t\tSystem.out.println(\"TRUTHFUL_TPFN_SUM : \" + truthful_TPFN_sum);\r\n\t\t\r\n\t\tSystem.out.println(\"DECEPTIVE_TP_SUM : \" + deceptive_TP_sum);\r\n\t\tSystem.out.println(\"DECEPTIVE_TPFP_SUM : \" + deceptive_TPFP_sum);\r\n\t\tSystem.out.println(\"DECEPTIVE_TPFN_SUM : \" + deceptive_TPFN_sum);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nTRUTHFUL PRECISION : \" + (double)(truthful_TP_sum)/(double)(truthful_TPFP_sum));\r\n\t\tSystem.out.println(\"TRUTHFUL RECALL : \" + (double)(truthful_TP_sum)/(double)(truthful_TPFN_sum));\r\n\t\t\r\n\t\tSystem.out.println(\"DECEPTIVE PRECISION : \" + (double)(deceptive_TP_sum)/(double)(deceptive_TPFP_sum));\r\n\t\tSystem.out.println(\"DECEPTIVE RECALL : \" + (double)(deceptive_TP_sum)/(double)(deceptive_TPFN_sum));\r\n\t\t\r\n\r\n\t}", "public String getSentence(){\r\n\t\t return sentence;\r\n\t }", "List<String> tokenize0(String doc) {\r\n List<String> res = new ArrayList<String>();\r\n\r\n for (String s : doc.split(\"\\\\s+\")) {\r\n // implement stemming algorithm if ToStem == true\r\n if (ToStem == true) {\r\n Stemmer st = new Stemmer();\r\n st.add(s.toCharArray(), s.length());\r\n st.stem();\r\n s = st.toString();\r\n }\r\n res.add(s);\r\n }\r\n return res;\r\n }", "java.util.List<java.lang.String> getFeaturesList();", "@Override\n\tpublic void setTraining(String text) {\n\t\tmyWords = text.split(\"\\\\s+\");\n\t\tmyMap = new HashMap<String , ArrayList<String>>();\n\t\t\n\t\tfor (int i = 0; i <= myWords.length-myOrder; i++)\n\t\t{\n\t\t\tWordGram key = new WordGram(myWords, i, myOrder);\n\t\t\tif (!myMap.containsKey(key))\n\t\t\t{\n\t\t\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\t\tif (i+myOrder != myWords.length)\n\t\t\t\t{\n\t\t\t\t\tlist.add(myWords[i+myOrder]);\n\t\t\t\t\tmyMap.put(key, list);\n\t\t\t\t} else {\n\t\t\t\t\tlist.add(PSEUDO_EOS);\n\t\t\t\t\tmyMap.put(key, list);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (i+myOrder != myWords.length)\n\t\t\t\t{\n\t\t\t\t\t((ArrayList<String>) myMap.get(key)).add(myWords[i+myOrder]);\n\t\t\t\t} else {\n\t\t\t\t\t((ArrayList<String>) myMap.get(key)).add(PSEUDO_EOS);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public double getSentenceProbability(List<String> sentence) {\n\tList<String> stoppedSentence = new ArrayList<String>(sentence);\n\tstoppedSentence.add(0, START);\n\tstoppedSentence.add(0, START);\n\tstoppedSentence.add(STOP);\n\tdouble probability = 1.0;\n\tfor (int index = 2; index < stoppedSentence.size(); index++) {\n\t probability *= getWordProbability(stoppedSentence, index);\n\t}\n\treturn probability;\n }", "public ArrayList<Sentence> sentenceDetector(BreakIterator bi,\r\n\t\t\tString text) {\r\n\t\tArrayList<Sentence> sentences = new ArrayList<Sentence>();\r\n\t\tbi.setText(text);\r\n\r\n\t\tint lastIndex = bi.first();\r\n\t\twhile (lastIndex != BreakIterator.DONE) {\r\n\t\t\tint firstIndex = lastIndex;\r\n\t\t\tlastIndex = bi.next();\r\n\r\n\t\t\tif (lastIndex != BreakIterator.DONE) {\r\n\t\t\t\tSentence s = new Sentence(text.substring(firstIndex, lastIndex));\r\n\t\t\t\ts.tokenizeSentence();\r\n\t\t\t\tsentences.add(s);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sentences;\r\n\t}", "public List<ExplanationFeature> getTopNFeatures() {\n\t\tList<ExplanationFeature> ret = Lists.newArrayList(this.entries);\n\t\tCollections.sort(ret);\n\t\treturn ret;\n\t}", "public List<? extends HasWord> defaultTestSentence()\n/* */ {\n/* 472 */ return Sentence.toSentence(new String[] { \"w\", \"lm\", \"tfd\", \"mElwmAt\", \"En\", \"ADrAr\", \"Aw\", \"DHAyA\", \"HtY\", \"AlAn\", \".\" });\n/* */ }", "public static List<String> getNWords(String text, int n) {\n\t\treturn splitNChar(text, ' ', n);\n\t}", "public static String split(String sentence) {\n StringBuilder result = new StringBuilder();\n int i = 0; // use for create lines <= 4 words\n for (String word : sentence.split(\" \")) {\n result.append(word).append(\" \");\n ++i;\n if (i == 4) {\n result.append(\"\\n\");\n i = 0;\n }\n }\n return result.toString();\n }", "public static List<List<TaggedWord>> getSentenceStructList(Reader reader){\n\t\tif(tagger == null)\n\t\t\tInitTagger();\n\t\tList<List<HasWord>> sentences = MaxentTagger.tokenizeText(reader);\n\t\tList<List<TaggedWord>> list = new ArrayList<List<TaggedWord>>();\n\t\tfor (List<HasWord> sentence : sentences) {\n\t\t\tList<TaggedWord> tSentence = tagger.tagSentence(sentence);\n\t\t\tlist.add(tSentence);\n\t\t}\n\t\treturn list;\n\t}", "public List<String> GetSentenceFocusWords() {\r\n\t\tList<String> indxList = new ArrayList<String>();\r\n\t\t\r\n\t\tfor(int i = 0; i < m_questPos.size(); i++) {\r\n\t\t\tif(m_questPos.get(i).contains(\"NN\")){\r\n\t\t\t\tindxList.add(this.m_questWords.get(i));\r\n\t\t\t}\t\r\n\t\t\telse if(m_questPos.get(i).contains(\"JJ\")){\r\n\t\t\t\tindxList.add(this.m_questWords.get(i));\r\n\t\t\t}\r\n\t\t\telse if(m_questPos.get(i).contains(\"VB\")) {\r\n\t\t\t\tindxList.add(this.m_questWords.get(i));\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t//System.out.println(m_questPos.get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn indxList;\r\n\t}", "private static ArrayList<String> ReadTrigramsChar(String corpusPath, String ngramPath) {\n Hashtable<String, Integer> oNgrams = new Hashtable<>();\n ArrayList<String> aNgrams = new ArrayList<>();\n\n if (new File(ngramPath).exists()) {\n FileReader fr = null;\n BufferedReader bf = null;\n\n try {\n fr = new FileReader(ngramPath);\n bf = new BufferedReader(fr);\n String sCadena = \"\";\n\n while ((sCadena = bf.readLine())!=null)\n {\n String []data = sCadena.split(\":::\");\n if (data.length==2) {\n String sTerm = data[0];\n aNgrams.add(sTerm);\n }\n }\n } catch (Exception ex) {\n System.out.println(ex.toString());\n } finally {\n if (bf!=null) { try { bf.close(); } catch (Exception k) {} }\n if (fr!=null) { try { fr.close(); } catch (Exception k) {} }\n }\n } else {\n ArrayList<File> files = getFilesFromSubfolders(corpusPath, new ArrayList<File>());\n //File directory = new File(corpusPath);\n //File []files = directory.listFiles();\n\n int countFiles = 0;\n for (File file : files) {\n System.out.println(\"--> Preprocessing \" + (++countFiles) + \"/\" + files.size());\n\n try {\n Scanner scn = new Scanner(file, \"UTF-8\");\n\n //Reading and Parsing Strings to Json\n while(scn.hasNext()){\n JSONObject tweet= (JSONObject) new JSONParser().parse(scn.nextLine());\n\n String textTweet = (String) tweet.get(\"text\");\n\n StringReader reader = new StringReader(textTweet);\n\n NGramTokenizer gramTokenizer = new NGramTokenizer(reader, MINSIZENGRAM, MAXSIZENGRAM);\n CharTermAttribute charTermAttribute = gramTokenizer.addAttribute(CharTermAttribute.class);\n gramTokenizer.reset();\n\n while (gramTokenizer.incrementToken()){\n String sTerm = charTermAttribute.toString();\n if (sTerm.endsWith(\":\")){\n sTerm = sTerm.substring(0, sTerm.length()-1);\n }\n int iFreq = 0;\n if (oNgrams.containsKey(sTerm)) {\n iFreq = oNgrams.get(sTerm);\n }\n oNgrams.put(sTerm, ++iFreq);\n //System.out.println(charTermAttribute.toString());\n }\n\n gramTokenizer.end();\n gramTokenizer.close();\n }\n } catch (Exception ex) {\n System.out.println(\"Error reading JSON file\");\n }\n }\n\n //Se ordena por frecuencia\n ValueComparator bvc = new ValueComparator(oNgrams);\n TreeMap<String,Integer> sorted_map = new TreeMap<>(bvc);\n sorted_map.putAll(oNgrams);\n\n //Se guarda en disco\n FileWriter fw = null;\n try {\n fw = new FileWriter(ngramPath);\n for( Iterator it = sorted_map.keySet().iterator(); it.hasNext();) {\n String sTerm = (String)it.next();\n int iFreq = oNgrams.get(sTerm);\n\n aNgrams.add(sTerm);\n fw.write(sTerm + \":::\" + iFreq + \"\\n\");\n fw.flush();\n }\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n } finally {\n if (fw!=null) { try {fw.close();} catch(Exception k) {} }\n }\n }\n\n return aNgrams;\n }", "public ArrayList<String> predict(String sentence){\r\n\t\t//Splits the String and creates the necessary maps\r\n\t\tString words[] = sentence.split(\" \");\r\n\t\tSystem.out.println(\"SENTENCE \" + sentence + \" LENGTH \" + words.length);\r\n\t\tTreeMap<String, Float> prevscores = new TreeMap<String, Float>();\r\n\t\tArrayList<TreeMap<String, String>> backtrack = new ArrayList<TreeMap<String, String>>(); \r\n\t\tFloat zero = new Float(0);\r\n\t\tprevscores.put(\"start\", zero);\r\n\t\t//Looping over every word in the String\r\n\t\tfor (int i = 0; i < words.length; i++){\r\n\t\t\tTreeMap<String, Float> scores = new TreeMap<String, Float>();\r\n\t\t\tSet<String> keys = prevscores.keySet();\r\n\t\t\tbacktrack.add(new TreeMap<String, String>());\r\n\t\t\t//Looping over all the previous states\r\n\t\t\tfor(String state : keys){\r\n\t\t\t\tSet<String> tagKeys = this.transMap.get(state).keySet();\r\n\t\t\t\t//Looping over all the possible states\r\n\t\t\t\tfor(String tagKey : tagKeys){\r\n\t\t\t\t\r\n\t\t\t\t\tfloat nextscore = (prevscores.get(state) + this.transMap.get(state).get(tagKey));\r\n\t\t\t\t\tif(this.emissionMap.containsKey(tagKey) && this.emissionMap.get(tagKey).containsKey(words[i])){\r\n\t\t\t\t\t\tnextscore += this.emissionMap.get(tagKey).get(words[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse nextscore += -200;\r\n\t\t\t\t\tif(!scores.containsKey(tagKey) || nextscore > scores.get(tagKey)){\r\n\t\t\t\t\t\tscores.put(tagKey, nextscore);\r\n\t\t\t\t\t\tbacktrack.get(i).put(tagKey, state);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tprevscores = scores;\r\n\r\n\t\t}\r\n\t\tString finalState = \"\";\r\n\t\tSet<String> prevKeys = prevscores.keySet();\r\n\t\tfloat max = -100000;\r\n\t\tfor(String key : prevKeys){\r\n\t\t\tfloat num = prevscores.get(key);\r\n\t\t\tif(num > max) {\r\n\t\t\t\tmax = num;\r\n\t\t\t\tfinalState = key;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString[] end_states = new String[sentence.split(\" \").length];\r\n\t\tend_states[backtrack.size() - 1] = finalState;\r\n\r\n\t\tString state = finalState;\r\n\t\tfor(int i = backtrack.size() - 1; i>=1; i-- ) {\r\n\t\t\tstate = backtrack.get(i).get(state);\r\n\t\t\tend_states[i - 1] = state;\r\n\t\t}\r\n\t\t\r\n\t\tArrayList<String> sequence = new ArrayList<String>();\r\n\t\tfor(int i = 0; i < end_states.length; i++) {\r\n\t\t\tsequence.add(end_states[i]);\r\n\t\t}\r\n\t\treturn sequence;\r\n\t}", "Stream<List<Term>> toSentences(List<Integer> intText, List<Term> termText);", "public static void selectFeature() throws IOException {\n\t\tString trainPath = \"./corpus/trainData\";\n\t\tString stopPath = \"./corpus/english.stop\";\n\t\tString outPath = \"./corpus/features\";\n\t\tFileWriter fw = new FileWriter(outPath);\n\t\tFileReader fr = new FileReader(trainPath);\n\t\tFileReader fr2 = new FileReader(stopPath);\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\tBufferedReader br = new BufferedReader(fr);\n\t\tBufferedReader br2 = new BufferedReader(fr2);\n\t\tString oneline;\n\n\t\tArrayList<String> as = new ArrayList<String>();\n\t\twhile ((oneline = br2.readLine()) != null) {\n\t\t\tas.add(oneline);\n\t\t}\n\t\tString[] stopWords = new String[as.size()];\n\t\tas.toArray(stopWords);\n\n\t\tHashtable<String, Integer> hs = new Hashtable<String, Integer>();\n\n\t\tAnalyzer analyzer = new SnowballAnalyzer(\"English\", stopWords);\n\n\t\ttry {\n\t\t\twhile ((oneline = br.readLine()) != null) {\n\t\t\t\tint pos = oneline.indexOf(\"\\t\");\n\t\t\t\tString topic = oneline.substring(0, pos);\n\t\t\t\tString content = oneline.substring(pos + 1);\n\t\t\t\t// StringTokenizer st=new StringTokenizer(content,\" \");\n\n\t\t\t\tTokenStream stream = analyzer.tokenStream(\"contents\",\n\t\t\t\t\t\tnew StringReader(content));\n\n\t\t\t\twhile (true) {\n\t\t\t\t\tToken token = stream.next();\n\t\t\t\t\tif (token == null)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tString tmp = token.termText();\n\t\t\t\t\tif (!hs.containsKey(tmp)) {\n\t\t\t\t\t\ths.put(tmp, new Integer(1));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tInteger num = hs.get(tmp);\n\t\t\t\t\t\ths.put(tmp, num + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\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\n\t\tList<Map.Entry> list = new ArrayList<Map.Entry>(hs.entrySet());\n\t\tCollections.sort(list, new Comparator<Map.Entry>() {\n\t\t\tpublic int compare(Map.Entry e1, Map.Entry e2) {\n\t\t\t\tInteger i1 = (Integer) e1.getValue();\n\t\t\t\tInteger i2 = (Integer) e2.getValue();\n\t\t\t\treturn i2.compareTo(i1);\n\t\t\t}\n\t\t});\n\t\tint count = 0;\n\t\tSystem.out.println(\"word - freq\");\n\t\tSystem.out.println(\"-------------\");\n\t\tfor (Map.Entry e : list) {\n\t\t\tInteger num = (Integer) e.getValue();\n\t\t\tString term = (String) e.getKey();\n\t\t\tif (count++ < 2000) {\n\t\t\t\tbw.write(term);\n\t\t\t\tbw.newLine();\n\t\t\t}\n\n\t\t}\n\n\t\tbw.close();\n\n\t\tSystem.out.println(hs.keySet().size());\n\t\tSystem.out.println(count);\n\n\t}", "public String getTapOccurrenceFeatures() {\n double[] linAccMeans = getMean(linAccSample);\n double[] linAccStdDevs = getStdDev(linAccSample);\n double[] linAccSkewness = getSkewness(linAccSample);\n double[] linAccKurtosis = getKurtosis(linAccSample);\n\n double linAcc1Norm = getL1Norm(linAccMatrix);\n double linAccInfNorm = getInfNorm(linAccMatrix);\n double linAccFroNorm = getFroNorm(linAccMatrix);\n double[] linAccNorms = new double[]{linAcc1Norm, linAccInfNorm, linAccFroNorm};\n\n // 15 gyroscope features\n double[] gyroMeans = getMean(gyroSample);\n double[] gyroStdDevs = getStdDev(gyroSample);\n double[] gyroSkewness = getSkewness(gyroSample);\n double[] gyroKurtosis = getKurtosis(gyroSample);\n\n double gyro1Norm = getL1Norm(gyroMatrix);\n double gyroInfNorm = getInfNorm(gyroMatrix);\n double gyroFroNorm = getFroNorm(gyroMatrix);\n double[] gyroNorms = new double[] {gyro1Norm, gyroInfNorm, gyroFroNorm};\n\n // 9 pearson features\n double[] pearsonCoeffs = getPearsonCoeff(linAccSample, gyroSample);\n\n double[] featureArray = merge(\n linAccMeans, linAccStdDevs, linAccSkewness, linAccKurtosis, linAccNorms,\n gyroMeans, gyroStdDevs, gyroSkewness, gyroKurtosis, gyroNorms,\n pearsonCoeffs);\n\n StringBuilder featureString = new StringBuilder();\n for (int i = 0; i < featureArray.length; i++) {\n featureString.append(i+1);\n featureString.append(':');\n featureString.append(featureArray[i]);\n featureString.append(' ');\n }\n return featureString.toString();\n }", "int getSentenceSegmentCount();", "public static List<String> devideSentenceIntoWords(String sentence) {\n\n String[] wordArray = sentence.toLowerCase().split(\" \");\n return Arrays.stream(wordArray)\n .map(String::trim)\n .filter(w -> !w.replace(CharacterUtils.WORD_DEVIDER, \"\").trim().isEmpty())\n .collect(Collectors.toList());\n }", "public void train(Collection<List<String>> sentences) {\n\tUnigram.train(sentences);\n\tBigram.train(sentences);\n\tTrigram.train(sentences);\n\t\n\tdouble[] newW = {0.0, 0.0, 0.0};\n\tdouble PMax = 0.0;\n\tfor(double i = 0.05; i < 0.95; i+=0.05){\n\t for(double j = 0.05; j < 0.95; j+=0.05){\n\t\tdouble k = 1 - i - j;\n\t\tif(k > 0){\n\t\t Weights[0] = i;\n\t\t Weights[1] = j;\n\t\t Weights[2] = k;\n\t\t double P = 0.0;\n\t\t for(List<String> sentence : sentences){\n\t\t\tP+= getSentenceProbability(sentence);\n\t\t }\n\t\t if(P > PMax){\n\t\t\tSystem.out.println(\"New: \"+i+\",\"+j+\",\"+k+\" = \" + P);\n\t\t\tnewW[0] = i;\n\t\t\tnewW[1] = j;\n\t\t\tnewW[2] = k;\n\t\t\tPMax = P;\n\t\t }\n\t\t}\n\t }\n\t}\n\tSystem.out.println(\"New WIGHTS: \"+newW[0]+\",\"+newW[1]+\",\"+newW[2]);\n\tWeights = newW;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tString[] testSentence = new String[]{\r\n\t\t\t\t\"西三旗硅谷先锋小区半地下室出租,便宜可合租硅谷工信处女干事每月经过下属科室都要亲口交代24口交换机等技术性器件的安装工作\",\r\n\t\t\t\t\"这是一个伸手不见五指的黑夜。我叫孙悟空,我爱北京,我爱Python和C++。\",\r\n\t\t\t \"我不喜欢日本和服。\",\r\n\t\t\t \"雷猴回归人间。\",\r\n\t\t\t \"工信处女干事每月经过下属科室都要亲口交代24口交换机等技术性器件的安装工作\",\r\n\t\t\t \"我需要廉租房\",\r\n\t\t\t \"永和服装饰品有限公司\",\r\n\t\t\t \"我爱北京天安门\",\r\n\t\t\t \"abc\",\r\n\t\t\t \"隐马尔可夫\",\r\n\t\t\t \"雷猴是个好网站\",\r\n\t\t\t \"“Microsoft”一词由“MICROcomputer(微型计算机)”和“SOFTware(软件)”两部分组成\",\r\n\t\t\t \"草泥马和欺实马是今年的流行词汇\",\r\n\t\t\t \"伊藤洋华堂总府店\",\r\n\t\t\t \"中国科学院计算技术研究所\",\r\n\t\t\t \"罗密欧与朱丽叶\",\r\n\t\t\t \"我购买了道具和服装\",\r\n\t\t\t \"PS: 我觉得开源有一个好处,就是能够敦促自己不断改进,避免敞帚自珍\",\r\n\t\t\t \"湖北省石首市\",\r\n\t\t\t \"湖北省十堰市\",\r\n\t\t\t \"总经理完成了这件事情\",\r\n\t\t\t \"电脑修好了\",\r\n\t\t\t \"做好了这件事情就一了百了了\",\r\n\t\t\t \"人们审美的观点是不同的\",\r\n\t\t\t \"我们买了一个美的空调\",\r\n\t\t\t \"线程初始化时我们要注意\",\r\n\t\t\t \"一个分子是由好多原子组织成的\",\r\n\t\t\t \"祝你马到功成\",\r\n\t\t\t \"他掉进了无底洞里\",\r\n\t\t\t \"中国的首都是北京\",\r\n\t\t\t \"孙君意\",\r\n\t\t\t \"外交部发言人马朝旭\",\r\n\t\t\t \"领导人会议和第四届东亚峰会\",\r\n\t\t\t \"在过去的这五年\",\r\n\t\t\t \"还需要很长的路要走\",\r\n\t\t\t \"60周年首都阅兵\",\r\n\t\t\t \"你好人们审美的观点是不同的\",\r\n\t\t\t \"买水果然后去世博园\",\r\n\t\t\t \"但是后来我才知道你是对的\",\r\n\t\t\t \"存在即合理\",\r\n\t\t\t \"的的的的的在的的的的就以和和和\",\r\n\t\t\t \"I love你,不以为耻,反以为rong\",\r\n\t\t\t \"hello你好人们审美的观点是不同的\",\r\n\t\t\t \"很好但主要是基于网页形式\",\r\n\t\t\t \"hello你好人们审美的观点是不同的\",\r\n\t\t\t \"为什么我不能拥有想要的生活\",\r\n\t\t\t \"后来我才\",\r\n\t\t\t \"此次来中国是为了\",\r\n\t\t\t \"使用了它就可以解决一些问题\",\r\n\t\t\t \",使用了它就可以解决一些问题\",\r\n\t\t\t \"其实使用了它就可以解决一些问题\",\r\n\t\t\t \"好人使用了它就可以解决一些问题\",\r\n\t\t\t \"是因为和国家\",\r\n\t\t\t \"老年搜索还支持\",\r\n\t\t\t \"干脆就把那部蒙人的闲法给废了拉倒!RT @laoshipukong : 27日,全国人大常委会第三次审议侵权责任法草案,删除了有关医疗损害责任“举证倒置”的规定。在医患纠纷中本已处于弱势地位的消费者由此将陷入万劫不复的境地。 \",\r\n\t\t\t \"他说的确实在理\",\r\n\t\t\t \"长春市长春节讲话\",\r\n\t\t\t \"结婚的和尚未结婚的\",\r\n\t\t\t \"结合成分子时\",\r\n\t\t\t \"旅游和服务是最好的\",\r\n\t\t\t \"这件事情的确是我的错\",\r\n\t\t\t \"供大家参考指正\",\r\n\t\t\t \"哈尔滨政府公布塌桥原因\",\r\n\t\t\t \"我在机场入口处\",\r\n\t\t\t \"邢永臣摄影报道\",\r\n\t\t\t \"BP神经网络如何训练才能在分类时增加区分度?\",\r\n\t\t\t \"南京市长江大桥\",\r\n\t\t\t \"应一些使用者的建议,也为了便于利用NiuTrans用于SMT研究\",\r\n\t\t\t \"长春市长春药店\",\r\n\t\t\t \"邓颖超生前最喜欢的衣服\",\r\n\t\t\t \"胡锦涛是热爱世界和平的政治局常委\",\r\n\t\t\t \"程序员祝海林和朱会震是在孙健的左面和右面, 范凯在最右面.再往左是李松洪\",\r\n\t\t\t \"一次性交多少钱\",\r\n\t\t\t \"两块五一套,三块八一斤,四块七一本,五块六一条\",\r\n\t\t\t \"小和尚留了一个像大和尚一样的和尚头\",\r\n\t\t\t \"我是中华人民共和国公民;我爸爸是共和党党员; 地铁和平门站\",\r\n\t\t\t \"张晓梅去人民医院做了个B超然后去买了件T恤\",\r\n\t\t\t \"AT&T是一件不错的公司,给你发offer了吗?\",\r\n\t\t\t \"C++和c#是什么关系?11+122=133,是吗?PI=3.14159\",\r\n\t\t\t \"你认识那个和主席握手的的哥吗?他开一辆黑色的士。\",\r\n\t\t\t \"枪杆子中出政权\",\r\n\t\t\t \"张三风同学走上了不归路\",\r\n\t\t\t \"阿Q腰间挂着BB机手里拿着大哥大,说:我一般吃饭不AA制的。\",\r\n\t\t\t \"在1号店能买到小S和大S八卦的书,还有3D电视。\"\r\n\r\n\t\t};\r\n\t\t\r\n\t\tSegment app = new Segment();\r\n\t\t\r\n\t\tfor(String sentence : testSentence)\r\n\t\t\tSystem.out.println(app.cut(sentence));\r\n\t}", "public void Tokenizer(String s) throws FileNotFoundException\r\n {\nInputStream modelIn = new FileInputStream(\"C:/OpenNLP_models/en-token.bin\"); \r\n\t \r\n // InputStream modelIn=getClass().getResourceAsStream(\"en-token.bin\");\r\n try {\r\n TokenizerModel model = new TokenizerModel(modelIn);\r\n TokenizerME tokenizer = new TokenizerME(model);\r\n String tokens[] = tokenizer.tokenize(s);\r\n \r\n for(int i=0; i<tokens.length;i++)\r\n {\r\n System.out.println(tokens[i]);\r\n }\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n finally {\r\n if (modelIn != null) {\r\n try {\r\n modelIn.close();\r\n }\r\n catch (IOException e) {\r\n }\r\n } \r\n } \r\n }", "private void createTermFreqVector(JCas jcas, Document doc) {\n\n String docText = doc.getText().toLowerCase();\n\n // TODO: construct a vector of tokens and update the tokenList in CAS\n\n String[] wordList = docText.split(\" \");\n HashMap<String, Integer> tokenCount = new HashMap<String, Integer>();\n for (String word : wordList) {\n String newWord = word;\n if(word.charAt(word.length()-1)<'a' || word.charAt(word.length()-1)>'z'){\n newWord = word.substring(0, word.length()-1);\n }\n //if(Utils.GetStopWordFilter().isStopword(newWord))continue;\n if (!tokenCount.containsKey(newWord)) {\n tokenCount.put(newWord, 1);\n } else {\n tokenCount.put(newWord, tokenCount.get(newWord) + 1);\n }\n }\n\n ArrayList<Token> tokenList = new ArrayList<Token>();\n for (String word : tokenCount.keySet()) {\n Token token = new Token(jcas);\n token.setText(word);\n token.setFrequency(tokenCount.get(word));\n tokenList.add(token);\n }\n FSList tokenFSList = Utils.fromCollectionToFSList(jcas, tokenList);\n doc.setTokenList(tokenFSList);\n }", "public ArrayList<GrammarMatch> extract(String text) {\n text = text.replaceAll(\"\\\\s+\", \" \");\n\n ArrayList<GrammarMatch> bigResult = new ArrayList();\n\n List<ParserToken> stream = this.tokenizer.transform(text);\n\n /**\n * Get morfological data for whole list of tokens\n */\n // TODO make this flexible \n // provide tagger as a parameter to parser\n // add posibility to skip tagging to boost performance\n List<AnalyzedTokenReadings> tags = null;\n\n try {\n UkrainianTagger ut = new UkrainianTagger();\n List<String> sentence = new ArrayList();\n\n stream.forEach(t -> {\n sentence.add(t.value);\n });\n\n tags = ut.tag(sentence);\n\n } catch (IOException ex) {\n Logger.getLogger(GrammarMatch.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n // merge pos tags with ParserTokens\n int currentIndex = 0;\n for (ParserToken token : stream) {\n AnalyzedTokenReadings forms = tags.get(currentIndex);\n\n if (forms != null) {\n token.setRawForms(forms);\n }\n currentIndex++;\n }\n\n // preprocess tokens\n for (ParserTokenPreprocessor preprocessor : this.preprocessors) {\n stream = preprocessor.proceed(stream);\n }\n\n // match with grammars\n// int tokenIndex = 0;\n// int lastInsertTokenIndex = 0;\n this.currentTokens = stream;\n\n for (ParserToken token : stream) {\n for (GrammarRuleI grule : this.grammars) {\n\n // TODO get rid of this. use based on interface implementation\n ParserGrammar grammar = (ParserGrammar) grule;\n\n boolean recheck = grammar.shift(token);\n // TODO substitute ParserMatch with parserToken\n ArrayList<ParserMatch> match = grammar.reduce();\n\n if (match.size() > 0) {\n bigResult.add(new GrammarMatch(grammar, match));\n }\n\n if (recheck) {\n grammar.shift(token);\n match = grammar.reduce();\n\n if (match.size() > 0) {\n bigResult.add(new GrammarMatch(grammar, match));\n }\n\n }\n\n }\n\n }\n\n // shift repeatable rules to the terminal symbol if any\n// for (GrammarRuleI gr : this.grammars) {\n//\n// visitAllRules(null,gr, (rule,parent) -> {\n// if (!rule.isSimple()) {\n//\n// ParserGrammar pg = (ParserGrammar) rule;\n// System.out.print(\" %%% -> [\"+parent+\"]\" + ((ParserGrammar) rule).getName());\n// if (pg.isRepeatable()) {\n// System.out.print(\" repeatable\");\n// if (pg.isInserted()) {\n// System.out.print(\" is_inserted\");\n// } else {\n// System.out.print(\" not_inserted\");\n//\n// if (!pg.isFirstRun() && pg.getCurrentIndex() == 0) {\n// System.out.print(\" dirty\");\n// \n// pg.setCurrentIndex(pg.rulesCount());\n// \n// if (parent != null) {\n// ParserGrammar pgp = (ParserGrammar) parent;\n// \n// \n// pgp.setCurrentIndex(pgp.getCurrentIndex()+1);\n// System.out.print(\" shift_head[\"+pgp.getCurrentIndex()+\"->\"+(pgp.getCurrentIndex()+1)+\"]\");\n// }\n// \n// \n// }\n// \n// }\n//\n// }\n// System.out.println(\"\");\n//\n// } else {\n//// System.out.println(\" [%%%] -> \");\n// }\n// });\n// }\n\n for (GrammarRuleI grule : this.grammars) {\n\n ParserGrammar grammar = (ParserGrammar) grule;\n\n ArrayList<ParserMatch> match = grammar.reduce(true, false);\n\n if (match.size() > 0) {\n bigResult.add(new GrammarMatch(grammar, match));\n\n }\n grammar.reset();\n }\n\n return bigResult;\n }", "public List<Word> getTextWords(String text) {\n\n List<Word> words = new ArrayList<Word>();\n\n for (Word word : new SentenceParser().getSentenceWords(text)) {\n Collections.addAll(words, word);\n }\n return words;\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner (System.in);\n System.out.println(\"Please enter a sentence:\");\n String sentence = sc.nextLine();\n System.out.println(numberOfWords(sentence));\n\n\n }", "public List<String> predict(List<String> sentences) {\n List<String> predictions = new ArrayList<>();\r\n for (String sentence : sentences) {\r\n predictions.add(predict(sentence));\r\n }\r\n return predictions;\r\n }", "public void analyzeDocument(String text) {\n\t\tString[] tokens = m_tokenizer.tokenize(text.toLowerCase());\n\t\tfor (int j = 0; j < tokens.length; j++)\n\t\t\ttokens[j] = SnowballStemmingDemo(NormalizationDemo(tokens[j]));\n\t\tHashMap<String, Integer> document_tf = new HashMap<String, Integer>();\n\t\tfor (String token : tokens) {\n\t\t\tif (!document_tf.containsKey(token))\n\t\t\t\tdocument_tf.put(token, 1);\n\t\t\telse\n\t\t\t\tdocument_tf.put(token, document_tf.get(token) + 1);\n\t\t\tif (!df.containsKey(token))\n\t\t\t\tdf.put(token, 1);\n\t\t\telse\n\t\t\t\tdf.put(token, df.get(token) + 1);\n\t\t}\n\t\ttf.add(document_tf);\n\t\t/*\n\t\t * for(String token : document_tf.keySet()) { if(!df.containsKey(token))\n\t\t * df.put(token, 1); else df.put(token, df.get(token) + 1); if(!) }\n\t\t */\n\t\tm_reviews.add(text);\n\t}", "public ArrayList<String> makeSentences(String text) {\n \t\t/*\n \t\t * Quick check so we're not trying to split up an empty\n \t\t * String. This only happens right before the user types\n \t\t * at the end of a document and we don't have anything to\n \t\t * split, so return.\n \t\t */\n \t\tif (text.equals(\"\")) {\n \t\t\tArrayList<String> sents = new ArrayList<String>();\n \t\t\tsents.add(\"\");\n \t\t\treturn sents;\n \t\t}\n \t\t\n \t\t/**\n \t\t * Because the eosTracker isn't initialized until the TaggedDocument is,\n \t\t * it won't be ready until near the end of DocumentProcessor, in which\n \t\t * case we want to set it to the correct\n \t\t */\n \t\tthis.eosTracker = main.editorDriver.taggedDoc.eosTracker;\n \t\tthis.editorDriver = main.editorDriver;\n \t\t\n \t\tArrayList<String> sents = new ArrayList<String>(ANONConstants.EXPECTED_NUM_OF_SENTENCES);\n \t\tArrayList<String> finalSents = new ArrayList<String>(ANONConstants.EXPECTED_NUM_OF_SENTENCES);\n \t\tboolean mergeNext = false;\n \t\tboolean mergeWithLast = false;\n \t\tboolean forceNoMerge = false;\n \t\tint currentStart = 1;\n \t\tint currentStop = 0;\n \t\tString temp;\n \n \t\t/**\n \t\t * replace unicode format characters that will ruin the regular\n \t\t * expressions (because non-printable characters in the document still\n \t\t * take up indices, but you won't know they're there untill you\n \t\t * \"arrow\" though the document and have to hit the same arrow twice to\n \t\t * move past a certain point. Note that we must use \"Cf\" rather than\n \t\t * \"C\". If we use \"C\" or \"Cc\" (which includes control characters), we\n \t\t * remove our newline characters and this screws up the document. \"Cf\"\n \t\t * is \"other, format\". \"Cc\" is \"other, control\". Using \"C\" will match\n \t\t * both of them.\n \t\t */\n \t\ttext = text.replaceAll(\"\\u201C\",\"\\\"\");\n \t\ttext = text.replaceAll(\"\\u201D\",\"\\\"\");\n \t\ttext = text.replaceAll(\"\\\\p{Cf}\",\"\");\n \n \t\tint lenText = text.length();\n \t\tint index = 0;\n \t\tint buffer = editorDriver.sentIndices[0];\n \t\tString safeString = \"\";\n \t\tMatcher abbreviationFinder = ABBREVIATIONS_PATTERN.matcher(text);\n \t\t\n \t\t//================ SEARCHING FOR ABBREVIATIONS ================\n \t\twhile (index < lenText-1 && abbreviationFinder.find(index)) {\n \t\t\tindex = abbreviationFinder.start();\n \t\t\t\n \t\t\ttry {\n \t\t\t\tint abbrevLength = index;\n \t\t\t\twhile (text.charAt(abbrevLength) != ' ') {\n \t\t\t\t\tabbrevLength--;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif (ABBREVIATIONS.contains(text.substring(abbrevLength+1, index+1))) {\n \t\t\t\t\teosTracker.setIgnore(index+buffer, true);\n \t\t\t\t}\n \t\t\t} catch (Exception e) {}\n \t\t\t\n \t\t\tindex++;\n \t\t}\t\t\n \t\t\n \t\tMatcher sent = EOS_chars.matcher(text);\n \t\tboolean foundEOS = sent.find(currentStart); // xxx TODO xxx take this EOS character, and if not in quotes, swap it for a permanent replacement, and create and add an EOS to the calling TaggedDocument's eosTracker.\n \t\t\n \t\t/*\n \t\t * We want to check and make sure that the EOS character (if one was found) is not supposed to be ignored. If it is, we will act like we did not\n \t\t * find it. If there are multiple sentences with multiple EOS characters passed it will go through each to check, foundEOS will only be true if\n \t\t * an EOS exists in \"text\" that would normally be an EOS character and is not set to be ignored.\n \t\t */\n \t\t\n \t\tindex = 0;\n \t\tif (foundEOS) {\t\n \t\t\ttry {\n \t\t\t\twhile (index < lenText-1 && sent.find(index)) {\n \t\t\t\t\tindex = sent.start();\n \t\t\t\t\tif (!eosTracker.sentenceEndAtIndex(index+buffer)) {\n \t\t\t\t\t\tfoundEOS = false;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tfoundEOS = true;\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\tindex++;\n \t\t\t\t}\n \t\t\t} catch (IllegalStateException e) {}\n \t\t}\n \t\t//We need to reset the Matcher for the code below\n \t\tsent = EOS_chars.matcher(text);\n \t\tsent.find(currentStart);\n \t\t\n \t\tMatcher sentEnd;\n \t\tMatcher citationFinder;\n \t\tboolean hasCitation = false;\n \t\tint charNum = 0;\n \t\tint lenTemp = 0;\n \t\tint lastQuoteAt = 0;\n \t\tint lastParenAt = 0;\n \t\tboolean foundQuote = false;\n \t\tboolean foundParentheses = false;\n \t\tboolean isSentence;\n \t\tboolean foundAtLeastOneEOS = foundEOS;\n \t\t\n \t\t/**\n \t\t * Needed otherwise when the user has text like below:\n \t\t * \t\tThis is my sentence one. This is \"My sentence?\" two. This is the last sentence.\n \t\t * and they begin to delete the EOS character as such:\n \t\t * \t\tThis is my sentence one. This is \"My sentence?\" two This is the last sentence.\n \t\t * Everything gets screwed up. This is because the operations below operate as expected only when there actually is an EOS character\n \t\t * at the end of the text, it expects it there in order to function properly. Now usually if there is no EOS character at the end it wouldn't\n \t\t * matter since the while loop and !foundAtLeastOneEOS conditional are executed properly, BUT as you can see the quotes, or more notably the EOS character inside\n \t\t * the quotes, triggers this initial test and thus the operation breaks. This is here just to make sure that does not happen.\n \t\t */\n \t\tString trimmedText = text.trim();\n \t\tint trimmedTextLength = trimmedText.length();\n \n \t\t//We want to make sure that if there is an EOS character at the end that it is not supposed to be ignored\n \t\tboolean EOSAtSentenceEnd = true;\n \t\tif (trimmedTextLength != 0) {\n \t\t\tEOSAtSentenceEnd = EOS.contains(trimmedText.substring(trimmedTextLength-1, trimmedTextLength)) && eosTracker.sentenceEndAtIndex(editorDriver.sentIndices[1]-1);\n \t\t} else {\n \t\t\tEOSAtSentenceEnd = false;\n \t\t}\n \t\t\n \t\t//Needed so that if we are deleting abbreviations like \"Ph.D.\" this is not triggered.\n \t\tif (!EOSAtSentenceEnd && (editorDriver.taggedDoc.watchForEOS == -1))\n \t\t\tEOSAtSentenceEnd = true;\n \n \t\twhile (foundEOS == true) {\n \t\t\tcurrentStop = sent.end();\n \t\t\t\n \t\t\t//We want to make sure currentStop skips over ignored EOS characters and stops only when we hit a true EOS character\n \t\t\ttry {\n \t\t\t\twhile (!eosTracker.sentenceEndAtIndex(currentStop+buffer-1) && currentStop != lenText) {\n \t\t\t\t\tsent.find(currentStop+1);\n \t\t\t\t\tcurrentStop = sent.end();\n \t\t\t\t}\n \t\t\t} catch (Exception e) {}\n \n \t\t\ttemp = text.substring(currentStart-1,currentStop);\n \t\t\tlenTemp = temp.length();\n \t\t\tlastQuoteAt = 0;\n \t\t\tlastParenAt = 0;\n \t\t\tfoundQuote = false;\n \t\t\tfoundParentheses = false;\n \t\t\t\n \t\t\tfor(charNum = 0; charNum < lenTemp; charNum++){\n \t\t\t\tif (temp.charAt(charNum) == '\\\"') {\n \t\t\t\t\tlastQuoteAt = charNum;\n \t\t\t\t\t\n \t\t\t\t\tif (foundQuote == true)\n \t\t\t\t\t\tfoundQuote = false;\n \t\t\t\t\telse\n \t\t\t\t\t\tfoundQuote = true;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif (temp.charAt(charNum) == '(') {\n \t\t\t\t\tlastParenAt = charNum;\n \t\t\t\t\t\n \t\t\t\t\tif (foundParentheses)\n \t\t\t\t\t\tfoundParentheses = false;\n \t\t\t\t\telse\n \t\t\t\t\t\tfoundParentheses = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (foundQuote == true && ((temp.indexOf(\"\\\"\",lastQuoteAt+1)) == -1)) { // then we found an EOS character that shouldn't split a sentence because it's within an open quote.\n \t\t\t\tif ((currentStop = text.indexOf(\"\\\"\",currentStart +lastQuoteAt+1)) == -1) {\n \t\t\t\t\tcurrentStop = text.length(); // if we can't find a closing quote in the rest of the input text, then we assume the author forgot to put a closing quote, and act like it's at the end of the input text.\n \t\t\t\t}\n \t\t\t\telse{\n \t\t\t\t\tcurrentStop +=1;\n \t\t\t\t\tmergeNext=true;// the EOS character we are looking for is not in this section of text (section being defined as a substring of 'text' between two EOS characters.)\n \t\t\t\t}\n \t\t\t}\n \t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \t\t\t\n \t\t\tif (foundParentheses && ((temp.indexOf(\")\", lastParenAt+1)) == -1)) {\n \t\t\t\tif ((currentStop = text.indexOf(\")\", currentStart + lastParenAt + 1)) == -1)\n \t\t\t\t\tcurrentStop = text.length();\n \t\t\t\telse {\n \t\t\t\t\tcurrentStop += 1;\n \t\t\t\t\tmergeNext = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \n \t\t\tif (foundQuote) {\n \t\t\t\tsentEnd = SENTENCE_QUOTE.matcher(text);\t\n \t\t\t\tisSentence = sentEnd.find(currentStop-2); // -2 so that we match the EOS character before the quotes (not -1 because currentStop is one greater than the last index of the string -- due to the way substring works, which is includes the first index, and excludes the end index: [start,end).)\n \n \t\t\t\tif (isSentence == true) { // If it seems that the text looks like this: He said, \"Hello.\" Then she said, \"Hi.\" \n \t\t\t\t\t// Then we want to split this up into two sentences (it's possible to have a sentence like this: He said, \"Hello.\")\n \t\t\t\t\tcurrentStop = text.indexOf(\"\\\"\",sentEnd.start())+1;\n \t\t\t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \t\t\t\t\tforceNoMerge = true;\n \t\t\t\t\tmergeNext = false;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (foundParentheses) {\n \t\t\t\tsentEnd = SENTENCE_PARENTHESES.matcher(text);\n \t\t\t\tisSentence = sentEnd.find(currentStop-2);\n \t\t\t\t\n \t\t\t\tif (isSentence == true) {\n \t\t\t\t\tcurrentStop = text.indexOf(\")\", sentEnd.start()) + 1;\n \t\t\t\t\tsafeString = text.substring(currentStart-1, currentStop);\n \t\t\t\t\tforceNoMerge = true;\n \t\t\t\t\tmergeNext = false;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t// now check to see if there is a CITATION after the sentence (doesn't just apply to quotes due to paraphrasing)\n \t\t\t// The rule -- at least as of now -- is if after the EOS mark there is a set of parenthesis containing either one word (name) or a name and numbers (name 123) || (123 name) || (123-456 name) || (name 123-456) || etc..\n \t\t\tcitationFinder = CITATION.matcher(text.substring(currentStop));\t\n \t\t\thasCitation = citationFinder.find(); // -2 so that we match the EOS character before the quotes (not -1 because currentStop is one greater than the last index of the string -- due to the way substring works, which is includes the first index, and excludes the end index: [start,end).)\n \t\t\t\n \t\t\tif (hasCitation == true) { // If it seems that the text looks like this: He said, \"Hello.\" Then she said, \"Hi.\" \n \t\t\t\t// Then we want to split this up into two sentences (it's possible to have a sentence like this: He said, \"Hello.\")\n \t\t\t\tcurrentStop = text.indexOf(\")\",citationFinder.start()+currentStop)+1;\n \t\t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \t\t\t\tmergeNext = false;\n \t\t\t}\t\n \t\t\t\n \t\t\tif (mergeWithLast) {\n \t\t\t\tmergeWithLast=false;\n \t\t\t\tString prev=sents.remove(sents.size()-1);\n \t\t\t\tsafeString=prev+safeString;\n \t\t\t}\n \t\t\t\n \t\t\tif (mergeNext && !forceNoMerge) {//makes the merge happen on the next pass through\n \t\t\t\tmergeNext=false;\n \t\t\t\tmergeWithLast=true;\n \t\t\t} else {\n \t\t\t\tforceNoMerge = false;\n \t\t\t\tfinalSents.add(safeString);\n \t\t\t}\n \t\t\n \t\t\tsents.add(safeString);\n \t\t\t\n \t\t\t//// xxx xxx xxx return the safeString_subbedEOS too!!!!\n \t\t\tif (currentStart < 0 || currentStop < 0) {\n \t\t\t\tLogger.logln(NAME+\"Something went really wrong making sentence tokens.\", LogOut.STDERR);\n \t\t\t\tErrorHandler.fatalProcessingError(null);\n \t\t\t}\n \n \t\t\tcurrentStart = currentStop+1;\n \t\t\tif (currentStart >= lenText) {\n \t\t\t\tfoundEOS = false;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tfoundEOS = sent.find(currentStart);\n \t\t}\n \n \t\tif (!foundAtLeastOneEOS || !EOSAtSentenceEnd) {\n \t\t\tArrayList<String> wrapper = new ArrayList<String>(1);\n \t\t\twrapper.add(text);\n \t\t\treturn wrapper;\n \t\t}\n \t\t\n \t\treturn finalSents;\n \t}", "public static void coreNLP(Sentence sent) {\n\tif (sent.getText().trim().equals(\"\")) {\n\t return;\n\t}\n\tAnnotation annotation = new Annotation(sent.getText());\n\tpipeline.annotate(annotation);\n\tList<CoreMap> sentenceAnns = annotation.get(SentencesAnnotation.class);\n\tif (sentenceAnns == null || sentenceAnns.size() == 0) {\n\t log.warning(\"No sentence annotations were generated. Skipping coreNLP..\");\n\t return;\n\t}\n\tList<Word> words = new ArrayList<>();\n\tList<SynDependency> depList = new ArrayList<>();\n\tif (sentenceAnns.size() == 1) {\n\t CoreMap sentAnn = sentenceAnns.get(0);\n\t words = getSentenceWords(sentAnn, sent.getSpan().getBegin());\n\t sent.setWords(words);\n\t for (Word w : words)\n\t\tw.setSentence(sent);\n\t sent.setTree(getSentenceTree(sentAnn));\n\t depList = getSentenceDependencies(sentAnn, words);\n\t sent.setDependencyList(depList);\n\t sent.setSurfaceElements(new ArrayList<SurfaceElement>(words));\n\t sent.setEmbeddings(new ArrayList<>(depList));\n\t}\n }", "public int getFeaturesCount();", "private static String getCorrespondingNEPosSegment(String textConcept, CustomXMLRepresentation nePosText, boolean isConcept) {\n\n\t\tString output = \"\";\n\n\t\t//textConcept = textConcept.replaceAll(\"\\\\p{Punct} \",\" $0 \");\n\t\t/*textConcept = textConcept.replaceAll(\"[.]\",\". \").replaceAll(\"[,]\",\", \").replaceAll(\"[']\",\"' \")\n\t\t\t\t.replaceAll(\"[\\\\[]\",\" [ \" ).replaceAll(\"[\\\\]]\",\" ] \").replaceAll(\"[(]\", \" ( \").replaceAll(\"[)]\",\" ) \")\n\t\t\t\t.replaceAll(\"[<]\", \" < \").replaceAll(\"[>]\", \" > \");*/\n\t\t//textConcept = textConcept.replaceAll(\"[\\\\.,']\",\"$0 \").replaceAll(\"[\\\\[\\\\](){}!@#$%^&*+=]\",\" $0 \");\n\t\ttextConcept = textConcept.replaceAll(\"[']\",\"$0 \").replaceAll(\"[\\\\[\\\\](){}!@#$%^&*+=]\",\" $0 \");\n\t\tString[] lemmas = textConcept.split(\" \");\n\t\tArrayList<String> wordList = new ArrayList(Arrays.asList(lemmas));\n\n\t\tnePosText.escapeXMLCharacters();\n\n\t\tboolean goOn = true;\n\t\t//while wordList is not empty, repeat\n\t\twhile(wordList.size()>0 && goOn){\n\n\t\t\tDocument docNePos = null;\n\t\t\ttry {\n\t\t\t\tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\t\t\tDocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\n\t\t\t\tInputStream streamNePos = new ByteArrayInputStream(nePosText.getXml().getBytes(StandardCharsets.UTF_8));\n\t\t\t\tdocNePos = docBuilder.parse(streamNePos);\n\t\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\t\tSystem.err.print(\"KIndex :: Pipeline.getCorrespondingNEPosSegment() Could not create a document text.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tNodeList npSegments = docNePos.getElementsByTagName(\"content\").item(0).getChildNodes(); // concept or text segments (children of content)\n\n\t\t\tfor (int i = 0; i < npSegments.getLength(); i++) {\n\t\t\t\tNode n = npSegments.item(i);\n\t\t\t\tif (n.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\tElement segment = (Element) n;\n\t\t\t\t\tString tag = segment.getNodeName();\n\t\t\t\t\tString stLemma = (segment.hasAttribute(\"lemma\")) ? segment.getAttribute(\"lemma\") : \"\";\n\t\t\t\t\tString lemma = segment.getTextContent();\n\n\t\t\t\t\t//Debug\n\t\t\t\t\t//if (wordList.get(0).equals(\"take\")){\n\t\t\t\t\t//\tSystem.out.println(\"take!\");\n\t\t\t\t\t//}\n\n\t\t\t\t\tif ((wordList.size() == 0) && (tag.equals(\"Punctuation\"))){\n\t\t\t\t\t\toutput += lemma + \" \" ;\n\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tint initSize = wordList.size();\n\t\t\t\t\tint initXMLSize = nePosText.getXml().length();\n\t\t\t\t\tif (wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").equals(\"\")){\n\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (tag.equals(\"ne\")){\n\t\t\t\t\t\tString NEtype = segment.getAttribute(\"type\");\n\t\t\t\t\t\tNodeList NEchildren = segment.getChildNodes();\n\t\t\t\t\t\t//if this text segment is concept, do not add the NamedEntity tag.\n\t\t\t\t\t\tString NEstring = (isConcept) ? \"\" : \"<ne type=\\\"\" + NEtype + \"\\\">\";\n\t\t\t\t\t\tfor (int c = 0; c < NEchildren.getLength(); c++) {\n\t\t\t\t\t\t\tNode child = NEchildren.item(c);\n\t\t\t\t\t\t\tif (child.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\t\t\tElement Echild = (Element) child;\n\t\t\t\t\t\t\t\tString Ctag = Echild.getNodeName();\n\t\t\t\t\t\t\t\tString OrigLemma = Echild.getAttribute(\"lemma\");\n\t\t\t\t\t\t\t\tString Clemma = Echild.getTextContent();\n\t\t\t\t\t\t\t\tif (wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase().equals(Clemma.replaceAll(\"[^a-zA-Z0-9 ]\", \"\").replaceAll(\" \",\"\").toLowerCase())) {\n\t\t\t\t\t\t\t\t\tNEstring += \"<\" + Ctag + \" lemma=\\\"\"+OrigLemma+\"\\\">\" + Clemma + \"</\" + Ctag + \"> \";\n\t\t\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (!Clemma.equals(\"\")){\n\t\t\t\t\t\t\t\t\tNEstring += \"<\" + Ctag + \" lemma=\\\"\"+OrigLemma+\"\\\">\" + Clemma + \"</\" + Ctag + \"> \";\n\t\t\t\t\t\t\t\t\tif (wordList.get(0).contains(Clemma)){\n\t\t\t\t\t\t\t\t\t\twordList.set(0,wordList.get(0).replace(Clemma,\"\"));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (Clemma.contains(wordList.get(0))){\n\t\t\t\t\t\t\t\t\t\tString ClemmaRemaining = Clemma.replaceAll(\"[^\\\\x00-\\\\x7F]\", \"\"); //replace all non-ascii characters\n\t\t\t\t\t\t\t\t\t\twhile (Clemma.contains(wordList.get(0))){\n\t\t\t\t\t\t\t\t\t\t\tClemmaRemaining = ClemmaRemaining.replace(wordList.get(0),\" \");\n\t\t\t\t\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\t\t\t\t\tif (Clemma.endsWith(wordList.get(0))){\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tClemmaRemaining = (ClemmaRemaining.startsWith(\" \")) ? ClemmaRemaining.replace(\" \",\"\") : ClemmaRemaining;\n\t\t\t\t\t\t\t\t\t\tif ((!ClemmaRemaining.equals(\"\")) && wordList.get(0).startsWith(ClemmaRemaining)){\n\t\t\t\t\t\t\t\t\t\t\twordList.set(0, wordList.get(0).replace(ClemmaRemaining,\"\"));\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/*else if (Clemma.contains(wordList.get(0))){\n\t\t\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\t\t\tif (Clemma.endsWith(wordList.get(0))) {\n\t\t\t\t\t\t\t\t\t\tNEstring += \"<\" + Ctag + \" lemma=\\\"\" + OrigLemma + \"\\\">\" + Clemma + \"</\" + Ctag + \"> \";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\t/*else if ((!Clemma.replaceAll(\"[^a-zA-Z0-9 ]\", \"\").replaceAll(\" \",\"\").toLowerCase().equals(\"\")) &&\n\t\t\t\t\t\t\t\t\t\twordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase().contains(Clemma.replaceAll(\"[^a-zA-Z0-9 ]\", \"\").replaceAll(\" \",\"\").toLowerCase())){\n\t\t\t\t\t\t\t\t\tNEstring += \"<\" + Ctag + \" lemma=\\\"\"+OrigLemma+\"\\\">\" + Clemma + \"</\" + Ctag + \"> \";\n\t\t\t\t\t\t\t\t\twordList.set(0,wordList.get(0).replace(OrigLemma,\"\"));\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\tNEstring += (isConcept) ? \"\" : \"</ne>\";\n\t\t\t\t\t\toutput += NEstring;\n\t\t\t\t\t\tNEstring = (isConcept) ? \"<ne type=\\\"\" + NEtype + \"\\\">\" + NEstring + \"</ne>\" : NEstring;\n\t\t\t\t\t\tnePosText.removeElement(NEstring);\n\n\t\t\t\t\t\t//avoid infinite loop\n\t\t\t\t\t\tif (wordList.size() == initSize && NEstring.length() == initXMLSize){\n\t\t\t\t\t\t\treturn \"--ERROR-- \\r\\n Error: 1200 \\r\\n In word:\" + wordList.get(0) + \", lemma:\"+lemma;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if(tag.equals(\"NoPOS\") || tag.equals(\"Punctuation\")){\n\t\t\t\t\t\t//output += \"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \"> \";\n\t\t\t\t\t\toutput += lemma + \" \" ;\n\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\tif (wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase().equals(lemma.toLowerCase())){\n\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//avoid infinite loop\n\t\t\t\t\t\telse if (nePosText.getXml().length() == initXMLSize){\n\t\t\t\t\t\t\treturn \"--ERROR-- \\r\\n Error: 1201 \\r\\n In word:\" + wordList.get(0) + \", lemma:\"+lemma +\"\\r\\n nePosText: \"+ nePosText.getXml();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if (wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase().equals(lemma.replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase())) {\n\t\t\t\t\t\toutput += \"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \"> \";\n\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t//we have the example of \"Cannot\" -> <MD>Can</MD><RB>not</RB>\n\t\t\t\t\t//in that case, in the first loop the first lemma will be added\n\t\t\t\t\t//in second loop the lemma will be added and wordList.get(0) will be removed\n\t\t\t\t\telse if (wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase().contains(lemma.replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase())){\n\t\t\t\t\t\tif (wordList.get(0).startsWith(lemma)){\n\t\t\t\t\t\t\toutput += \"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \"> \";\n\t\t\t\t\t\t\twordList.set(0,wordList.get(0).replaceFirst(Pattern.quote(lemma),\"\"));\n\t\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase().startsWith(lemma.replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase())){\n\t\t\t\t\t\t\toutput += \"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \"> \";\n\t\t\t\t\t\t\twordList.set(0,wordList.get(0).replaceFirst(lemma.replaceAll(\"[^a-zA-Z0-9 ]\", \"\"),\"\"));\n\t\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (wordList.get(0).endsWith(lemma)){\n\t\t\t\t\t\t\toutput += \"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \"> \";\n\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase().endsWith(lemma.replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase())){\n\t\t\t\t\t\t\toutput += \"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \"> \";\n\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\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\telse if (lemma.contains(wordList.get(0))){\n\t\t\t\t\t\twhile(lemma.contains(wordList.get(0))){\n\t\t\t\t\t\t\tif (lemma.endsWith(wordList.get(0))) {\n\t\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput += \"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \"> \";\n\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\tif (wordList.size() == 0){\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\telse if (lemma.contains(wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\"))){\n\t\t\t\t\t\twhile(lemma.contains(wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\"))){\n\t\t\t\t\t\t\tif (lemma.endsWith(wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\"))) {\n\t\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput += \"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \"> \";\n\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\tif (wordList.size() == 0){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t//avoid infinite loop\n\t\t\t\t\tif (wordList.size() == initSize){\n\t\t\t\t\t\treturn \"--ERROR-- \\r\\n Error: 1202 \\r\\n In word:\" + wordList.get(0) + \", lemma:\"+lemma;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{ //if n.getNodeType() != Node.ELEMENT_NODE\n\t\t\t\t\tif (npSegments.getLength() == 1){\n\t\t\t\t\t\tgoOn = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (wordList.size()>0 && wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").equals(\"\")){\n\t\t\t\twordList.remove(0);\n\t\t\t}\n\n\t\t\tif(npSegments.getLength() == 0 && wordList.size() == 1){\n\t\t\t\twordList.remove(0);\n\t\t\t}\n\t\t}\n\n\t\t//in case wordList is empty but the next element in nePosText is punctuation, this element has to be added in output\n\t\tDocument docNePos = null;\n\t\ttry {\n\t\t\tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\n\t\t\tInputStream streamNePos = new ByteArrayInputStream(nePosText.getXml().getBytes(StandardCharsets.UTF_8));\n\t\t\tdocNePos = docBuilder.parse(streamNePos);\n\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\tSystem.err.print(\"KIndex :: Pipeline.getCorrespondingNEPosSegment() Could not create a document text.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tNodeList npSegments = docNePos.getElementsByTagName(\"content\").item(0).getChildNodes(); // concept or text segments (children of content)\n\t\tfor (int i = 0; i < npSegments.getLength(); i++) {\n\t\t\tNode n = npSegments.item(i);\n\t\t\tif (n.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\tElement segment = (Element) n;\n\t\t\t\tString tag = segment.getNodeName();\n\t\t\t\tString lemma = segment.getTextContent();\n\t\t\t\tif (tag.equals(\"Punctuation\")){\n\t\t\t\t\toutput += lemma + \" \";\n\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+lemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t}\n\t\t\t\tbreak; // it will break after the first time an element will be checked\n\t\t\t}\n\t\t}\n\n\n\n\t\treturn output;\n\t}", "public Set<String> getFeatures();", "int countFeatures();", "int countFeatures();", "public int[] getnGramNumbers(){\r\n\t\treturn nGramPerLen;\r\n\t}", "List<String> tokenize1(String doc) {\n List<String> res = new ArrayList<String>();\n\n for (String s : doc.split(\"[\\\\p{Punct}\\\\s]+\"))\n res.add(s);\n return res;\n }", "public static List<Sentence> parseDesc(String desc){\n\t\ttry{\n\t\t\tif(sentenceDetector == null)\n\t\t\t\tsentenceDetector = new SentenceDetectorME(new SentenceModel(new FileInputStream(\"en-sent.bin\")));\n\t\t\tif(tokenizer == null)\n\t\t\t\ttokenizer = new TokenizerME(new TokenizerModel(new FileInputStream(\"en-token.bin\")));\n\t\t\tif(tagger == null)\n\t\t\t\ttagger = new POSTaggerME(new POSModel(new FileInputStream(\"en-pos-maxent.bin\")));\n\t\t\tif(chunker == null)\n\t\t\t\tchunker = new ChunkerME(new ChunkerModel(new FileInputStream(\"en-chunker.bin\")));\n\t\t} catch(InvalidFormatException ex) {\n\t\t\tex.printStackTrace();\n\t\t} catch(FileNotFoundException ex){\n\t\t\tex.printStackTrace();\n\t\t} catch(IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tList<Sentence> sentenceList = new LinkedList();\n\t\tString[] sentences = sentenceDetector.sentDetect(desc);\t\t\n\t\tfor(String s : sentences) {\n\t\t\tString[] tokens = tokenizer.tokenize(s);\n\t\t\tString[] posTags = tagger.tag(tokens);\n\t\t\tString[] chunks = chunker.chunk(tokens, posTags);\n\t\t\tList<String> ner = new LinkedList();\n\t\t\tList<String> lemma = new ArrayList();\n\t\t\tfor(String str : tokens) {\n\t\t\t\tlemma.add(str.toLowerCase());\n\t\t\t\tner.add(\"O\"); //assume everything is an object\n\t\t\t}\n\t\t\t\n\t\t\tSentence sentence = new Sentence (Arrays.asList(tokens), lemma, Arrays.asList(posTags), Arrays.asList(chunks), ner, s);\n\t\t\tsentenceList.add(sentence);\n\t\t}\n\t\t\n\t\treturn sentenceList;\n\t}", "@Override\n public double makePrediction(ParsedText text) {\n double pr = 0.0;\n\n /* FILL IN HERE */\n double productSpam = 0;\n double productNoSpam = 0;\n \n int i, tempSpam,tempNoSpam;\n int minSpam, minNoSpam ;\n \n \n for (String ng: text.ngrams) {\n \tminSpam = Integer.MAX_VALUE;\n \tminNoSpam = Integer.MAX_VALUE;\n \n\n \tfor (int h = 0;h < nbOfHashes; h++) {\n \t\ti = hash(ng,h);\n\n \t\ttempSpam = counts[1][h][i];\n \t\ttempNoSpam = counts[0][h][i];\n \t\t\n \t\t//System.out.print(tempSpam + \" \");\n\n \t\tminSpam = minSpam<tempSpam?minSpam:tempSpam; \n \t\tminNoSpam = minNoSpam<tempNoSpam?minNoSpam:tempNoSpam; \n \t\t\n \t}\n\n \t//System.out.println(minSpam + \"\\n\");\n \tproductSpam += Math.log(minSpam);\n \tproductNoSpam += Math.log(minNoSpam);\n }\n \n // size of set minus 1\n int lm1 = text.ngrams.size() - 1;\n \n //System.out.println((productNoSpam - productSpam ));\n //System.out.println((lm1*Math.log(this.classCounts[1]) - lm1*Math.log(this.classCounts[0])));\n\n //\n pr = 1 + Math.exp(productNoSpam - productSpam + lm1*(Math.log(classCounts[1]) - Math.log(classCounts[0])));\n // System.out.print(1.0/pr + \"\\n\");\n \n return 1.0 / pr;\n\n }", "speech.multilang.Params.MultiRecognizerGrammarMatchList getGrammarList();", "public String phraseWords(String input) {\n document = new Annotation(input);\n // run all Annotators on this text\n pipeline.annotate(document);\n String pos = document.get(CoreAnnotations.PhraseWordsTagAnnotation.class);\n\n return pos;\n }", "public ArrayList getClassList() {\n nounList = new ArrayList();\n attributeLists = new ArrayList();\n int adjectiveExist = 0;\n int adjectiveNoun = 0;\n String adj = \"\";\n String storingClass = \"\";\n HashSet classWithAttr = new HashSet();\n storingClassWithAttr = new HashMap<String, HashSet>();\n\n List<Tree> leaves;\n String phraseNotation = \"(NP([<NNS|NN|NNP]$VP))\";//@\" + phrase + \"! << @\" + phrase;\n\n /*For the single Tree */\n TregexPattern VBpattern = TregexPattern.compile(phraseNotation);\n TregexMatcher matcher = VBpattern.matcher(sTree);\n String tempClass = \"\";\n\n while (matcher.findNextMatchingNode()) {\n Tree match = matcher.getMatch();\n Tree[] innerChild = match.children();\n adjectiveExist = 0;\n adjectiveNoun = 0;\n int separator = 0;\n\n if (innerChild.length > 1) {\n int count = 1;\n int loopCount = 1;\n for (Tree inChild : innerChild) {\n if (inChild.value().equals(\"CC\")) {\n separator = 1;\n }\n if ((inChild.value().equals(\"JJ\")) || (inChild.value().equals(\"VBG\"))) {\n adjectiveExist++;\n leaves = inChild.getLeaves();\n adj = leaves.get(0).yieldWords().get(0).word();\n if (dictionaryForClassList.contains(adj)) {\n adj = \"\";\n }\n }\n //if adjective exist store the classes and attributes separately\n if (adjectiveExist == 1) {\n storeClassesAndAttributesWhenAdjectiveExistToIdentifyClasses(inChild, adjectiveNoun, adj);\n } else {\n //storeClassesAndAttributesWhenAdjectiveNotExistToIdentifyClasses(inChild, loopCount, innerChild, separator, tempClass, count);\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\") || (inChild.value().equals(\"NNP\")))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n if (separator == 0) {\n if (loopCount == innerChild.length) {\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n String word = \"\";\n word = stemmingForAWord(identifiedWord);\n if (!dictionaryForClassList.contains(word)) {\n nounList.remove(tempClass);\n nounList.add(word);\n attributeLists.add(tempClass);\n \n }\n\n } else if (count == 1) {\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n /*if the identified word is having underscore skips the stemming part . ex: user_id*/\n String word = stemmingForAWord(identifiedWord);\n nounList.add(word);\n tempClass = word;\n storingClass = word;\n\n } else {\n /*if the identified word is having underscore skips the stemming part . ex: user_id*/\n if (tempClass.contains(\"_\")) {\n nounList.remove(tempClass);\n } else {\n nounList.remove(morphology.stem(tempClass));\n nounList.remove(tempClass);\n }\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n\n tempClass += \" \" + identifiedWord;\n nounList.add(tempClass);\n storingClass = tempClass;\n }\n\n count++;\n } else {\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n /*if the identified word is having underscore skips the stemming part . ex: user_id*/\n String word = stemmingForAWord(identifiedWord);\n nounList.add(word);\n tempClass = word;\n storingClass = word;\n }\n }\n\n }\n loopCount++;\n }\n } else {\n for (Tree inChild : innerChild) {\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\")) || (inChild.value().equals(\"NNP\"))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n if (!identifiedWord.contains(\"_\")) {\n nounList.add(morphology.stem(identifiedWord));\n } else {\n nounList.add(identifiedWord);\n }\n }\n if (inChild.value().equals(\"JJ\")) {\n //leaves correspond to the tokens\n leaves = inChild.getLeaves();\n nounList.add(((leaves.get(0).yieldWords()).get(0).word()));\n }\n }\n }\n }\n System.out.println(\"NOUN LIST :\" + nounList);\n return nounList;\n }", "org.tensorflow.example.VarLenFeatureProto getVarLenFeature();", "@Override\n public List<Prediction> predictWord(final String string) {\n Trace.beginSection(\"predictWord\");\n\n Trace.beginSection(\"preprocessText\");\n Log.e(TAG, \"inut_string: \" + string);\n //TODO\n\n String[] input_words = string.split(\" \");\n data_len[0] = input_words.length;\n Log.e(TAG, \"data_len: \" + data_len[0]);\n //intValues = new int[input_words.length];\n if (input_words.length < input_max_Size) {\n for (int i = 0; i < input_words.length; ++i) {\n Log.e(TAG, \"input_word: \" + input_words[i]);\n if (word_to_id.containsKey(input_words[i])) intValues[i] = word_to_id.get(input_words[i]);\n else intValues[i] = 6; //rare words, <unk> in the vocab\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n for (int i = input_words.length; i < input_max_Size; ++i) {\n intValues[i] = 0; //padding using <eos>\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n }\n else {\n Log.e(TAG, \"input out of max Size allowed!\");\n return null;\n }\n Trace.endSection();\n // Copy the input data into TensorFlow.\n Trace.beginSection(\"fillNodeFloat\");\n // TODO\n inferenceInterface.fillNodeInt(inputName, new int[] {1, input_max_Size}, intValues);\n Log.e(TAG, \"fillNodeInt success!\");\n inferenceInterface.fillNodeInt(inputName2, new int[] {1}, data_len);\n Log.e(TAG, \"fillDATA_LEN success!\");\n Trace.endSection();\n\n // Run the inference call.\n Trace.beginSection(\"runInference\");\n inferenceInterface.runInference(outputNames);\n Log.e(TAG, \"runInference success!\");\n Trace.endSection();\n\n // Copy the output Tensor back into the output array.\n Trace.beginSection(\"readNodeFloat\");\n inferenceInterface.readNodeFloat(outputName, outputs);\n Log.e(TAG, \"readNodeFloat success!\");\n Trace.endSection();\n\n // Find the best predictions.\n PriorityQueue<Prediction> pq = new PriorityQueue<Prediction>(3,\n new Comparator<Prediction>() {\n @Override\n public int compare(Prediction lhs, Prediction rhs) {\n // Intentionally reversed to put high confidence at the head of the queue.\n return Float.compare(rhs.getConfidence(), lhs.getConfidence());\n }\n });\n for (int i = 0; i < outputs.length; ++i) { //don't show i = 0 <unk>; i = 1<eos>\n if (outputs[i] > THRESHOLD) {\n pq.add(new Prediction(\"\" + i, id_to_word.get(i), outputs[i]));\n }\n }\n final ArrayList<Prediction> predictions = new ArrayList<Prediction>();\n for (int i = 0; i < Math.min(pq.size(), MAX_RESULTS); ++i) {\n predictions.add(pq.poll());\n }\n for (int i = 0; i < predictions.size(); ++i) {\n Log.e(TAG, predictions.get(i).toString());\n }\n Trace.endSection(); // \"predict word\"\n return predictions;\n }", "public Tag firstSentenceTags()[] { return firstSentenceTags; }", "public synchronized void process() \n\t{\n\t\t// for each word in a line, tally-up its frequency.\n\t\t// do sentence-segmentation first.\n\t\tCopyOnWriteArrayList<String> result = textProcessor.sentenceSegmementation(content.get());\n\t\t\n\t\t// then do tokenize each word and count the terms.\n\t\ttextProcessor.tokenizeAndCount(result);\n\t}", "public abstract String[][] getTopWords();", "org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();" ]
[ "0.6197381", "0.61388236", "0.5928616", "0.5713736", "0.5660161", "0.55787206", "0.5472417", "0.54303986", "0.5297187", "0.5271043", "0.5182939", "0.5170664", "0.51495504", "0.51093656", "0.5064755", "0.50534904", "0.5047576", "0.50445753", "0.503821", "0.50209934", "0.49879345", "0.4983238", "0.49800512", "0.49704352", "0.4926737", "0.49175802", "0.49150494", "0.4902514", "0.489814", "0.4882677", "0.48820186", "0.48625582", "0.483985", "0.48104376", "0.47787333", "0.47771865", "0.47686446", "0.4759744", "0.47545195", "0.47229508", "0.47164658", "0.47043535", "0.47033978", "0.47015142", "0.47002327", "0.46982658", "0.46977434", "0.46920744", "0.46837977", "0.46776283", "0.46703023", "0.46671224", "0.46579567", "0.46440867", "0.46396998", "0.4630643", "0.46304944", "0.46272093", "0.46242845", "0.46180412", "0.46130055", "0.4600344", "0.45995387", "0.45958692", "0.45903346", "0.4588799", "0.45874166", "0.45868245", "0.45863152", "0.45792168", "0.45775858", "0.4565048", "0.4560875", "0.45580766", "0.4554363", "0.45524973", "0.45492682", "0.45491442", "0.45488077", "0.45485878", "0.45417476", "0.45414886", "0.45222875", "0.4521292", "0.45189354", "0.45134562", "0.45134562", "0.45128426", "0.45006102", "0.4493806", "0.44937736", "0.44871065", "0.44754145", "0.44734967", "0.44715875", "0.44681478", "0.44677377", "0.44661808", "0.44654992", "0.4463222" ]
0.56718206
4
Creates an InputStream object wrapped around a DataFile object. This is a simple wrapper around a DataFile object. Any access on the underlying DataFile object while the input stream is in use will lead to undefined behaviour. Note that this is only intended as a short lived object for reading information from a DataFile.
public static InputStream asInputStream(DataFile df) { return new DFInputStream(df); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataInputStream openDataInputStream() throws IOException {\n return new DataInputStream(openInputStream());\n }", "public static DataInputStream asDataInputStream(DataFile df) {\n return new DataInputStream(asInputStream(df));\n }", "public InputStream asInputStream() {\n return new ByteArrayInputStream(data);\n }", "public COSInputStream createInputStream() throws IOException\n {\n return stream.createInputStream();\n }", "public static DataInputStream getData(InputStream in) {\n return new DataInputStream(get(in));\n }", "public static\n InputStream inputStream() {\n return Input.wrappedInputStream;\n }", "InputStream getDataStream();", "public static DataInputStream getDataInput(File file) throws IOException {\n return getDataInput(file.toPath());\n }", "public OnDemandInputStream(File file) {\n super();\n\n this.file = file;\n }", "public final SMBInputStream asInputStream()\n\t\tthrows SMBException {\n\n\t\t// Check if the file is a directory\n\n\t\tif ( isDirectory())\n\t\t\tthrow new SMBException(SMBStatus.DOSInvalidFunc, SMBStatus.ErrDos);\n\n\t\t// Create the input stream\n\n\t\treturn new SMBInputStream(this);\n\t}", "Stream<In> getInputStream();", "public DataInputStream openDataInputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }", "@Override\n public InputStream openStream() throws IOException\n {\n return new FileInputStream(temp);\n }", "public COSInputStream createInputStream() throws IOException {\n/* 236 */ return this.stream.createInputStream();\n/* */ }", "@Override\n public InputStream getContentInputStream()\n {\n final class LockingFileInputStream extends FileInputStream\n {\n /** The lock to lock while reading the file. */\n private Lock lock;\n\n /**\n * The Constructor.\n *\n * @param toRead the file for this stream to read.\n * @param lock the lock to lock on creation of the stream and unlock when it is closed.\n * @throws IOException if the extended FileInputStream throws one.\n */\n public LockingFileInputStream(final File toRead, final Lock lock) throws IOException\n {\n super(toRead);\n this.lock = lock;\n lock.lock();\n }\n\n /** {@inheritDoc} */\n public void close() throws IOException\n {\n // Make sure this only happens once.\n if (this.lock != null) {\n super.close();\n this.lock.unlock();\n this.lock = null;\n }\n }\n }\n\n try {\n return new AutoCloseInputStream(\n new LockingFileInputStream(this.storageFile, this.lock.readLock()));\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to get InputStream\", e);\n }\n }", "@NotNull InputStream openInputStream() throws IOException;", "protected InputStream getInputStream() throws IOException\n\t {\n\t FileInputStream fin = new FileInputStream(fFilename);\n\t BufferedInputStream bin = new BufferedInputStream(fin);\n\t return bin;\n\t }", "InputStream openStream() throws IOException;", "public InputStream getInputStream() throws IOException {\n return new FileInputStream(_file);\n }", "protected abstract InputStream getInStreamImpl(String filename) throws IOException;", "public InputStream inputWrap(InputStream is) \n throws IOException {\n logger.fine(Thread.currentThread().getName() + \" wrapping input\");\n \n // discard any state from previously-recorded input\n this.characterEncoding = null;\n this.inputIsChunked = false;\n this.contentEncoding = null; \n \n this.ris.open(is);\n return this.ris;\n }", "public InputStream openInputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }", "private FileInputStream getDataInputStream(File f, long seekOffset)\n throws IOException {\n FileInputStream fis;\n final FileIoProvider fileIoProvider = getFileIoProvider();\n if (NativeIO.isAvailable()) {\n fis = fileIoProvider.getShareDeleteFileInputStream(\n getVolume(), f, seekOffset);\n } else {\n try {\n fis = fileIoProvider.openAndSeek(getVolume(), f, seekOffset);\n } catch (FileNotFoundException fnfe) {\n throw new IOException(\"Expected block file at \" + f +\n \" does not exist.\");\n }\n }\n return fis;\n }", "public abstract InputStream getInputStream();", "public abstract InputStream getInputStream();", "@Override\n public InputStream openInternalInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }", "public BufferedDataInputStream(InputStream o) {\n\t\tsuper(o, 32768);\n\t}", "public InputStream getInputStream();", "public InputStream getInputStream();", "public InputStream asByteStream() {\n return new ByteArrayInputStream(rawBytes);\n }", "public InputStream getStream();", "public InputStream getInputStream() throws IOException;", "public InputStream getInputStream() throws IOException;", "@Override\n public InputStream openInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }", "public LoggedDataInputStream getInputStream() {\n return inputStream;\n }", "public InputStream getStream() {\n\t\treturn new ByteArrayInputStream(os.toByteArray());\n\t}", "public static DataInputStream getDataInput(String fileName) throws IOException {\n return getDataInput(getPath(fileName));\n }", "public MyInputStream(InputStream in) {\n super(in);\n this.in = in;\n }", "private InputStream getInstream() {\r\n\t\tif (instream == null) try {\r\n\t\t\tinstream = new FileInputStream(file);\r\n\t\t} catch(IOException ioe) {\r\n\t\t\tthrow new RuntimeException(\"Couldn't create instream for test\", ioe);\r\n\t\t}\r\n\t\treturn instream;\r\n\t}", "private ObjectInputStream getInputStream() {\n\t\t// retornamos el stream de entrada\n\t\treturn this.inputStream;\n\t}", "private IntStream createStream() {\n DataInputStream dataInputStream = null;\n try {\n dataInputStream = new DataInputStream(new BufferedInputStream(new FileInputStream(fileName)));\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found\");\n }\n DataInputStream finalDin = dataInputStream;\n return IntStream.generate(() -> {\n try {\n assert finalDin != null;\n return finalDin.readInt();\n } catch (IOException e) {\n System.out.println(\"Stream problem\");\n }\n return 0;\n })\n .limit(20);\n }", "DataStreams createDataStreams();", "InputStream getInputStream() throws FileSystemException;", "InputStream getInputStream() throws IOException;", "InputStream getInputStream() throws IOException;", "InputStream getInputStream() throws IOException;", "public void readData(InputStream inStream);", "private static InputStream createStream(final TachyonFile file, final ReadType readType)\n throws IOException {\n return RemoteBlockInStreams.create(file, readType, 0);\n }", "public abstract InputStream getInputStream() throws AccessException;", "public InputStream openInputStream() throws IOException {\n // TODO: this mode is not set yet.\n // if ((parent.mode & Connector.READ) == 0)\n // throw new IOException(\"write-only connection\");\n\n ensureOpen();\n\n if (inputStreamOpened)\n throw new IOException(\"no more input streams available\");\n if (isGet) {\n // send the GET request here\n validateConnection();\n isValidateConnected = true;\n } else {\n if (privateInput == null) {\n privateInput = new PrivateInputStream(this);\n }\n }\n\n inputStreamOpened = true;\n\n return privateInput;\n }", "public InputStream getInputStream() throws IOException {\r\n if (!connected)\r\n connect();\r\n\r\n return zipFile.getInputStream(zipEntry);\r\n }", "public TarInputStream(Stream inputStream)\n\t{\n\t\tthis(inputStream, TarBuffer.DefaultBlockFactor);\n\t}", "public InputStream open(File file) {\n return new FileInputStream(file);\n }", "public static InputStream nullInput() {\n if(nullIn == null) {\n nullIn = new NullInputStream();\n }\n return nullIn;\n }", "public ECFileCacheInputStream(FileCacheKey cacheKey, Map<Long, Integer> chunkPosAndSize, RedisAccessBase redisAccess,\n List<Integer> redisIds, InputStream stream) {\n this.key = cacheKey.getUuid();\n this.fileSize = (int) cacheKey.getFileSize();\n this.chunkPosAndSize = chunkPosAndSize;\n this.redisAccess = redisAccess;\n this.redisIds = redisIds;\n this.endChunkStream = stream;\n }", "public InputStream getInputStream(long position);", "public interface DataObject {\n\n /**\n * Returns the length of the contained resource.\n *\n * @return resource length of the resource.\n * @throws IOException when an error occurs while reading the length.\n */\n long getContentLength() throws IOException;\n\n /**\n * Returns an {@link InputStream} representing the contents of the resource.\n *\n * @return contents of the resource as stream.\n * @throws IOException when an error occurs while reading the resource.\n */\n InputStream getInputStream() throws IOException;\n\n /**\n * Returns {@link DataObject} containing the resource. The contents are ranged\n * from the start to the end indexes.\n *\n * @param start index at which data will be read from.\n * @param end index at which dat will be read to.\n * @return ranged resource object.\n * @throws IOException when an error occurs while reading the resource.\n */\n DataObject withRange(int start, int end) throws IOException;\n}", "public InputStreamHolder (InputStream the_stream) {\n\t\t\tstream = the_stream;\n\t\t\tis_closed = false;\n\t\t}", "public InputStream getInputStream() throws IOException {\r\n return mFile.getInputStream();\r\n }", "public static DataInputStream getDataInput(Path path) throws IOException {\n return getData(Files.newInputStream(path));\n }", "public Stream stream() {\n Preconditions.checkState(prepared);\n Preconditions.checkState(!closed);\n return new Stream();\n }", "protected InputStream getInputStream() throws IOException\n {\n if (fd == null) {\n throw new IOException(\"socket not created\");\n }\n\n synchronized (this) {\n if (fis == null) {\n fis = new SocketInputStream();\n }\n\n return fis;\n }\n }", "public GridFSInputFile createFile(InputStream in) {\n\treturn createFile(in, null);\n }", "public static InputStream asStream(String name) throws IOException {\n ClassLoader classLoader = Reflection.getCallerClass(3).getClassLoader();\n return asStream(name, classLoader);\n }", "public InputStream getInputStream() {\n if (fTDeviceInputStream == null) {\n fTDeviceInputStream = new FTDeviceInputStream(this);\n }\n return fTDeviceInputStream;\n }", "public ResourceInputStream(File file) throws IOException {\n\t\t\tthis(new FileInputStream(file), file.lastModified());\n\t\t}", "public MonitorableInputStream(InputStream aIn) throws IOException {\n this(aIn, false);\n }", "public InputStream getStream() {\n final CircularByteBuffer cbb = new CircularByteBuffer(1024);\n new Thread(\n new Runnable(){\n public void run(){\n ZipOutputStream zos = new ZipOutputStream(cbb.getOutputStream());\n Utils.zipDir(getVolume(), requestedDirectory.getPath(), zos);\n\n try {\n if (zos != null) {\n zos.flush();\n zos.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n ).start();\n\n return cbb.getInputStream();\n }", "public InputStream getInputStream( DirectoryEntry directoryEntry) {\n\n\t// If the file has a 0 size, just return null for now.\n\tif( directoryEntry.getFileSizeAsBytes() == 0) {\n\t return null;\n\t}\n\n\t// A pointer to the current sector.\n\tD64Sector sectorBuffer;\n\n\t// Create a byte buffer for the file content.\n\tbyte [] fileContent = new byte[ directoryEntry.getFileSizeAsBytes()];\n\n\t// Get the first sector of the file and add it to the result.\n\tSystem.arraycopy( ( sectorBuffer = (D64Sector)getSector( ((D64DirectoryEntry)directoryEntry).getStartTrack()\n\t\t\t\t\t\t , ((D64DirectoryEntry)directoryEntry).getStartSector())).getDataBytes()\n\t\t\t , 2\n\t\t\t , fileContent\n\t\t\t , 0\n\t\t\t , getUnitSize());\n\n\t// Loop over the sectors of the file and add them to the buffer.\n\tint currentFileContentIndex = getUnitSize();\n\tfor( int currentSectorIndex = 1; currentSectorIndex < directoryEntry.getFileSizeAsUnits(); ++currentSectorIndex) {\n\t \n\t // Get the next track and sector from the current sector.\n\t int nextTrack = sectorBuffer.getNextTrack();\n\t int nextSector = sectorBuffer.getNextSector();\n\n\t // Add the next sector to the result.\n\t System.arraycopy( ( sectorBuffer = (D64Sector)getSector( nextTrack, nextSector)).getDataBytes()\n\t\t\t , 2\n\t\t\t , fileContent\n\t\t\t , currentFileContentIndex\n\t\t\t , getUnitSize());\n\n\t // Point to the next block in the result buffer.\n\t currentFileContentIndex += getUnitSize();\n\t}\n\n\t// Now create an input stream from the file content.\n\treturn new ByteArrayInputStream( fileContent);\n }", "public InputStream getData() throws java.io.IOException {\n \t\tInputStream is;\n \t\tis = new BufferedInputStream(new GZIPInputStream(new FileInputStream(\n \t\t\t\tdataFile)));\n \t\tis.skip(this.dataOffset);\n \n \t\treturn is;\n \t}", "public InputStream getAsInputStream () {\r\n\r\n\t //code description\r\n\t \r\n\t if (this.document == null) return null;\r\n\t return new ByteArrayInputStream(this.getAsBytes());\r\n\t \r\n }", "protected final InputStream getStream() { return _inputSource; }", "public BufferedDataInputStream(InputStream o, int bufLength) {\n\t\tsuper(o, bufLength);\n\t}", "public ResourceInputStream(InputStream in) {\n\t\t\tthis(in, System.currentTimeMillis());\n\t\t}", "@Override\n public InputStream getInputStream() throws IOException\n {\n/**/\n/**/\n/**/\n if (Files.isDirectory(path))\n throw new IOException(path + \" is a directory\");\n\n return Files.newInputStream(path,StandardOpenOption.READ);\n }", "public interface InputStreamProvider {\n\n InputStream open() throws IOException;\n\n String getPath();\n}", "public GridFSInputFile createFile(InputStream in, String filename,\n\t boolean closeStreamOnPersist) {\n\treturn new GridFSInputFile(this, in, filename, closeStreamOnPersist);\n }", "public PDStream(PDDocument doc, InputStream input) throws IOException\n {\n this(doc, input, (COSBase)null);\n }", "ObjectInputStream newObjectInputStream(InputStream in) throws Exception;", "public MSDataReader(File in) throws IOException\n\t{\n\t\tif (in == null)\n\t\t\tthrow new NullPointerException(\"传入MSDataReader的输入流为null\");\n\t\t\n\t\tthis.file = in;\n\t\tthis.reader = new BufferedReader(new FileReader(in));\n\t\t\n\t\tinit();\n\t}", "@Override\n\tprotected InputStream getData(GFile file, TaskMonitor monitor)\n\t\t\tthrows IOException, CancelledException, CryptoException {\n\n\t\tISO9660Directory dir = fileToDirectoryMap.get(file);\n\t\tInputStream inputStream = dir.getDataBytes(provider, logicalBlockSize);\n\n\t\treturn inputStream;\n\t}", "public InputStream openInputStream() throws IOException {\n return super.openInputStream();\n //StringBuilder sb = getCharContent(true);\n //ByteArrayOutputStream baos = new ByteArrayOutputStream();\n //( charset ==null ? new OutputStreamWriter(baos) : new OutputStreamWriter(baos,charset) )\n // .write(sb.toString()); // ouch!\n //return new ByteArrayInputStream(baos.toByteArray()); // another ouch!\n }", "public abstract InputStream openStream(String str);", "public InputStream getInputStream() {\n return inputStream;\n }", "public InputStream getInputStream() {\n return inputStream;\n }", "public InputStream newInputStream(int index) throws IOException {\n\t\t\tsynchronized (DiskLruCache.this) {\n\t\t\t\tif (entry.currentEditor != this) {\n\t\t\t\t\tthrow new IllegalStateException();\n\t\t\t\t}\n\t\t\t\tif (!entry.readable) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\treturn new FileInputStream(entry.getCleanFile(index));\n\t\t\t}\n\t\t}", "public static InputStream getInputStreamFromFile(File file)\n\t\t\tthrows IOException {\n\t\treturn new FileInputStream(file);\n\t}", "public final InputStream returnStream()\n\t{\n\t\treturn stream;\n\t}", "public static InputStream getStream(String fileOrResourceName) {\n\t\t/*\n\t\t * in production, it is a resource, and hence we try that first\n\t\t */\n\t\tInputStream stream = IoUtil.class.getClassLoader().getResourceAsStream(fileOrResourceName);\n\t\tif (stream != null) {\n\t\t\treturn stream;\n\t\t}\n\t\tFile file = new File(fileOrResourceName);\n\t\tif (file.exists()) {\n\t\t\ttry {\n\t\t\t\treturn new FileInputStream(file);\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.error(\n\t\t\t\t\t\t\"Resource {} is intepreted as a file that was located on the file system, but error while creating stream from that file. Error: {}\",\n\t\t\t\t\t\tfileOrResourceName, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public void setIn(InputStream in);", "@Override\r\n\tpublic InputStream getInputStream() throws IOException {\r\n\t\tInputStream stream = null;\r\n\t\ttry {\r\n\t\t\tif (bytes != null) {\r\n\t\t\t\tstream = new ByteArrayInputStream(bytes);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new AppRuntimeException(ErrorCode.DATASOURCE_EMPTY_ERROR,\r\n\t\t\t\t\tErrorCode.DATASOURCE_EMPTY_ERROR.getCodeDescription());\r\n\t\t}\r\n\t\treturn stream;\r\n\t}", "public static InputStream createInputStream(String filename) throws FileReadingException {\n File file = new File(filename);\n if (!file.exists()) {\n throw new FileReadingException(\"File Not Found: \" + filename + \"\\n\");\n }\n if (!file.isFile()) {\n throw new FileReadingException(filename + \" is not a file.\\n\");\n }\n if (!file.canRead()) {\n throw new FileReadingException(\"Reading file \" + filename + \" is not permitted.\\n\");\n }\n\n try {\n return new FileInputStream(file);\n } catch (FileNotFoundException e) {\n throw new FileReadingException(\"File Not Found: \" + filename + \"\\n\");\n }\n }", "DataStreamApi getDataStreamApi();", "@Test\r\n public void test_getInputStream_Accuracy() throws Exception {\r\n assertNull(\"incorrect default value\", instance.getInputStream());\r\n FileInputStream stream = null;\r\n try {\r\n stream = new FileInputStream(new File(\"test_files/test.txt\"));\r\n instance.setInputStream(stream);\r\n assertEquals(\"incorrect value after setting\", stream, instance.getInputStream());\r\n } finally {\r\n IOUtils.closeQuietly(stream);\r\n }\r\n }", "TclInputStream(InputStream inInput) {\n input = inInput;\n }", "public InputStream getStream() {\n\t\treturn this.in;\n\t}", "@Override\n public StorageInputStream open(File file) throws FileNotFoundException {\n\treturn null;\n }", "public StatDataFileReader createReaderInstance() throws IOException{\n return createReaderInstance(null);\n }", "public GridFSInputFile createFile(InputStream in, String filename) {\n\treturn new GridFSInputFile(this, in, filename);\n }", "public static InputFactory createFactory( DataSource datsrc,\n long offset, long leng )\n throws IOException {\n boolean isFile = datsrc instanceof FileDataSource;\n if ( isFile && datsrc.getCompression() == Compression.NONE ) {\n File uncompressedFile = ((FileDataSource) datsrc).getFile();\n return createFileFactory( uncompressedFile, offset, leng );\n }\n else {\n if ( isFile ) {\n logger_.warning( \"Can't map compressed file \" + datsrc.getName()\n + \" - uncompressing may improve performance\" );\n }\n else {\n logger_.info( \"Will read stream (not random-access): \"\n + datsrc );\n }\n return createSequentialFactory( datsrc, offset, leng );\n }\n }" ]
[ "0.6752073", "0.66671735", "0.65760267", "0.6481602", "0.64626336", "0.6447974", "0.6376468", "0.63401717", "0.6292125", "0.6269906", "0.625968", "0.6222981", "0.61958325", "0.6121683", "0.6100092", "0.6090618", "0.60679084", "0.60665464", "0.60557884", "0.6051543", "0.59973466", "0.5982961", "0.59766424", "0.5970976", "0.5970976", "0.5922954", "0.59000367", "0.58925897", "0.58925897", "0.58350545", "0.58340085", "0.5824951", "0.5824951", "0.5794198", "0.5760573", "0.5750022", "0.57387394", "0.5714037", "0.5713721", "0.56922084", "0.5659949", "0.56536156", "0.5652228", "0.5643399", "0.5643399", "0.5643399", "0.5634408", "0.5631006", "0.5605835", "0.56037927", "0.5601857", "0.55989623", "0.5595801", "0.5588917", "0.5572192", "0.5568125", "0.5566421", "0.55633324", "0.55583555", "0.55508614", "0.5545131", "0.55436426", "0.5505893", "0.54958826", "0.54606", "0.545553", "0.5437723", "0.54277813", "0.5420994", "0.54160637", "0.5391375", "0.53895766", "0.538833", "0.53858066", "0.538513", "0.53830725", "0.53671086", "0.5363662", "0.5363373", "0.53620803", "0.53560024", "0.5351646", "0.53487724", "0.5338819", "0.5338819", "0.5319868", "0.53156674", "0.53118765", "0.531027", "0.53087896", "0.5307667", "0.5305737", "0.5300076", "0.52991724", "0.52988636", "0.52946395", "0.5283553", "0.52702326", "0.5269127", "0.5259277" ]
0.7237065
0
Creates an OutputStream object wrapped around a DataFile object. This is a simple wrapper around a DataFile object. Any access on the underlying DataFile object while the output stream is in use will lead to undefined behaviour. This object overwrites any information stored in the data file past the current position. Note that this is only intended as a short lived object for writing data to a DataFile.
public static OutputStream asOutputStream(DataFile df) { return new DFOutputStream(df); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataOutputStream openDataOutputStream() throws IOException {\n return new DataOutputStream(openOutputStream());\n }", "public OutputStream openOutputStream() throws IOException {\n return new FileOutputStream(this);\n }", "public static DataOutputStream asDataOutputStream(DataFile df) {\n return new DataOutputStream(asOutputStream(df));\n }", "SDDFOutputStream(DataFile df) {\n this.df = df;\n }", "public OutputStreamWrapper\r\n (File file)\r\n throws FileNotFoundException\r\n {\r\n mStream=new FileOutputStream(file);\r\n }", "public abstract void writeToStream(DataOutputStream dataOutputStream);", "public DataOutputStream openDataOutputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }", "public OutputStream getOutputStream() throws java.io.IOException, SecurityException {\n return new FileOutputStream(_file);\n }", "public abstract void writeToStream(java.io.DataOutputStream output) throws java.io.IOException;", "@NotNull OutputStream openOutputStream() throws IOException;", "public OutputStream createOutputStream() throws IOException\n {\n return stream.createOutputStream();\n }", "public abstract void write (DataOutputStream outStream)\r\n throws IOException;", "protected OutputStream _createDataOutputWrapper(DataOutput out)\n/* */ {\n/* 1520 */ return new DataOutputAsStream(out);\n/* */ }", "public abstract void writeData(DataOutput dout) throws IOException;", "public OutputStream openOutputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }", "public InstrumentedFileOutputStream(FileDescriptor fdObj) {\r\n super(fdObj);\r\n }", "@Override\n public FSDataOutputStream create(Path f) throws IOException {\n return super.create(f);\n }", "public interface ObjectOutput extends DataOutput, AutoCloseable {\n /**\n * Write an object to the underlying storage or stream. The class that implements this interface\n * defines how the object is written.\n *\n * @param obj the object to be written\n * @exception IOException Any of the usual Input/Output related exceptions.\n */\n public void writeObject(Object obj) throws IOException;\n\n /**\n * Writes a byte. This method will block until the byte is actually written.\n * \n * @param b the byte\n * @exception IOException If an I/O error has occurred.\n */\n public void write(int b) throws IOException;\n\n /**\n * Writes an array of bytes. This method will block until the bytes are actually written.\n * \n * @param b the data to be written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[]) throws IOException;\n\n /**\n * Writes a sub array of bytes.\n * \n * @param b the data to be written\n * @param off the start offset in the data\n * @param len the number of bytes that are written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[], int off, int len) throws IOException;\n\n /**\n * Flushes the stream. This will write any buffered output bytes.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void flush() throws IOException;\n\n /**\n * Closes the stream. This method must be called to release any resources associated with the\n * stream.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void close() throws IOException;\n}", "public void write(DataOutput dataOutput) throws IOException {\n }", "public final SMBOutputStream asOutputStream()\n\t\tthrows SMBException {\n\n\t\t// Check if the file is a directory\n\n\t\tif ( isDirectory())\n\t\t\tthrow new SMBException(SMBStatus.DOSInvalidFunc, SMBStatus.ErrDos);\n\n\t\t// Create the output stream\n\n\t\treturn new SMBOutputStream(this);\n\t}", "public OutputStream createOutputStream() throws IOException {\n/* 213 */ return this.stream.createOutputStream();\n/* */ }", "public void write(BufferedDataOutputStream o) throws FitsException {\n\n this.writeTrueData(o);\n byte[] padding = new byte[getPadding()];\n try {\n o.writePrimitiveArray(padding);\n } catch (IOException e) {\n throw new FitsException (\"Error writing padding: \"+e);\n }\n\n }", "@Override\n public OutputStream openInternalOutputFile(String pathname) throws IOException {\n return new FileOutputStream(pathname);\n }", "@Override\n\tpublic void write(DataOutputStream dataOutStream) throws IOException {\n\t\tdataOutStream.writeLong(id);\n\t\tsuper.write(dataOutStream);\n\t}", "public LoggedDataOutputStream getOutputStream() {\n return outputStream;\n }", "public static DataOutputStream getDataOutput(File file) throws IOException {\n return getDataOutput(file.toPath());\n }", "public void write(DataOutputStream out) throws IOException;", "public ExtendedDataOutputStream(OutputStream out) {\n super(out);\n }", "public void save(DataOutput stream)\n throws IOException\n {\n stream.write(getBytes());\n }", "public File write(File destination) throws IOException {\n if (data != null) {\n FileUtil.writeBytes(destination, data);\n } else if (tempFile != null) {\n FileUtil.move(tempFile, destination);\n }\n return destination;\n }", "@Override\n public void writeTo(DataOutput dout) throws IOException {\n\n if (!isHeadless()) {\n dout.writeShort(getTransactionID());\n dout.writeShort(getProtocolID());\n dout.writeShort(getDataLength());\n }\n dout.writeByte(getUnitID());\n dout.writeByte(getFunctionCode());\n writeData(dout);\n }", "OutputStream getOutputStream() throws FileSystemException;", "public synchronized int store(FileOutputStream outputStream) throws IOException {\n WritableByteChannel channel = Channels.newChannel(outputStream);\n backingData.position(origo);\n channel.write(backingData); // TODO: Only write bytecount bytes\n return byteCount;\n }", "public OutputStream getOutputStream();", "@Override\n public OutputStream openOutputFile(String pathname) throws IOException {\n return new FileOutputStream(pathname);\n }", "public OutputStream getOutputStream() throws IOException;", "public abstract void write(DataOutput out) throws IOException;", "public OutputStream openOutputStream() throws IOException {\n // TODO: this mode is not set yet.\n // \tif ((parent.mode & Connector.WRITE) == 0)\n // \t\tthrow new IOException(\"read-only connection\");\n ensureOpen();\n ensureNotDone();\n\n if (outputStreamOpened)\n throw new IOException(\"no more output streams available\");\n\n if (privateOutput == null) {\n // there are 3 bytes operation headers and 3 bytes body headers //\n privateOutput = new PrivateOutputStream(this, maxPacketSize - 6);\n }\n\n outputStreamOpened = true;\n\n return privateOutput;\n }", "public OutputStream getOutputStream( DirectoryEntry directoryEntry) {\n\n\t// Check, if this directory entry is a directory itself.\n\tif( directoryEntry.isDirectory()) {\n\n\t return null; // Cannot create subdirectories yet.\n\t}\n\n\t// Start with a check, if there are still free directory entries to store a new file.\n\tif( getDirectory().getDirectoryEntries().size() >= 144) {\n\n\t return null; // No free directory entries, it seems.\n\t}\n\n\t// Now try get free filespace for the new file.\n\tint neededSectors = directoryEntry.getFileSizeAsBytes() / getUnitSize();\n\tif( ( neededSectors * getUnitSize()) < directoryEntry.getFileSizeAsBytes()) { // If there are some bytes left for another sector.\n\n\t ++neededSectors; // Add them to another sector (plus some empty bytes for padding.\n\t}\n\n\t// Now try to allocate enough free sectors for the file.\n\tList<Sector> availableSectors = getFreeSectors( neededSectors);\n\n\tif( availableSectors == null) { // Sectors cannot be allocated?\n\n\t return null; // => Cannot write file.\n\t}\n\n\t// Create directory entry for the file and the sectors to allocate.\n\tcreateD64DirectoryEntry( directoryEntry, availableSectors);\n\n\t// Link all the sectors of this file.\n\tSector lastSector = null;\n\tfor( Sector currentSector : availableSectors) {\n\t \n\t if( lastSector != null) { // If this is not the first sector.\n\n\t\t// Set the pointer of the last sector to this sector.\n\t\tlastSector.setDataByte( 0, (byte)( currentSector.getTrackIndex()));\n\t\tlastSector.setDataByte( 1, (byte)( currentSector.getSectorIndex()));\n\t }\n\n\t // Set this sector as the new last sector.\n\t lastSector = currentSector;\n\t}\n\t// Set the pointer of the last file sector to 0. Shouldn't be necessary, but anyway.\n\tlastSector.setDataByte( 0, (byte)0);\n\tlastSector.setDataByte( 1, (byte)0);\n\t\n\t// Set the image to modified.\n\tsetModified( true);\n\t\n\t// Return OutputStream for file to write.\n\treturn new D64FileOutputStream( availableSectors, directoryEntry, this);\n }", "public abstract void serialize(DataOutputStream dataOutputStream) throws IOException;", "public DataOutputStream dos() {\n return dos;\n }", "public OutputStream getOutputStream() {\n return new BufferedOutputStream(new OutputStream() {\n public void write(int b) throws IOException {\n _combinedOutputStream.write(b);\n }\n public void flush() throws IOException {\n _combinedOutputStream.flush();\n }\n public void close() throws IOException {\n _combinedOutputStream.close();\n }\n });\n }", "public void writeTo(OutputStream arg0) throws IOException {\n\t\t\r\n\t}", "public void write(WriteOnly data) {\n\t\tdata.writeData(\"new data\"); // Ok\n\t}", "protected void initDataFile(File outFile) throws IOException,\n FileNotFoundException {\n String directory = PropiedadesAplicacion.getProperty(\"DataFile.dir\",\n System.getProperty(\"user.dir\"));\n this.outputFile = new File(directory, outFile.getName());\n if (this.outputFile.exists()) {\n if (!this.outputFile.delete()) {\n throw new IOException(\"NO SE PUDO BORRAR ARCHIVO: \"\n + outFile.getAbsolutePath());\n }\n if (!this.outputFile.createNewFile()) {\n throw new IOException(\"NO SE PUDO CREAR ARCHIVO: \"\n + outFile.getAbsolutePath());\n }\n }\n this.foStream = new FileOutputStream(this.outputFile);\n this.dataSize = 1;\n this.item = 0;\n if (logger.isInfoEnabled()) {\n logger.info(\"ASIGNADO WRITER A: \"\n + this.outputFile.getAbsolutePath());\n }\n }", "public interface IMemoriaFile {\r\n \r\n public void append(byte[] data);\r\n \r\n /**\r\n * Releases the write-lock\r\n */\r\n public void close();\r\n \r\n /**\r\n * Returns a stream starting at position 0.\r\n * \r\n * Attention: The stream must be closed!\r\n * \r\n * @return Stream for reading the whole content of the file.\r\n */\r\n public InputStream getInputStream();\r\n \r\n /**\r\n * Returns a stream starting at the given <tt>position</tt>.\r\n * \r\n * Attention: The stream must be closed!\r\n * \r\n * @param position\r\n * @return Stream for reading the whole content of the file.\r\n */\r\n public InputStream getInputStream(long position);\r\n \r\n public long getSize();\r\n\r\n public boolean isEmpty();\r\n\r\n \r\n public void sync();\r\n\r\n /**\r\n * The given offset plus the size of the given byte-array must not exceed the file-site.\r\n * @param data\r\n * @param offset\r\n */\r\n public void write(byte[] data, long offset);\r\n}", "public StorageOutputStream(OutputStream o) throws Exception {\r\n\tout = o;\r\n}", "protected final void setOutputStream(LoggedDataOutputStream outputStream) {\n if (this.outputStream == outputStream) return ;\n if (this.outputStream != null) {\n try {\n this.outputStream.close();\n } catch (IOException ioex) {/*Ignore*/}\n }\n this.outputStream = outputStream;\n }", "void writeTo(DataOutputStream dout) throws IOException {\r\n throw new Error(\"Method no longer available\");\r\n// dout.writeInt(commit_id);\r\n// dout.writeInt(table_id);\r\n// dout.writeInt(journal_entries);\r\n// dout.write(command_journal, 0, journal_entries);\r\n// int size = command_parameters.size();\r\n// dout.writeInt(size);\r\n// for (int i = 0; i < size; ++i) {\r\n// dout.writeInt(command_parameters.intAt(i));\r\n// }\r\n }", "public OutputStream getOutputStream(IArtifactDescriptor descriptor) {\n \t\tif (contains(descriptor))\n \t\t\treturn null;\n \n \t\t// Determine writing location\n \t\tString location = computeLocation(descriptor.getArtifactKey());\n \t\tif (location == null)\n \t\t\t// TODO: Log an error, or throw an exception?\n \t\t\treturn null;\n \n \t\tString file = null;\n \t\ttry {\n \t\t\tfile = new URL(location).getFile();\n \t\t} catch (MalformedURLException e1) {\n \t\t\t// This should not happen\n \t\t}\n \n \t\tFile outputFile = new File(file);\n \t\tif (outputFile.exists())\n \t\t\tSystem.err.println(\"Artifact repository out of synch. Overwriting \" + outputFile.getAbsoluteFile());\n \n \t\tif (!outputFile.getParentFile().exists() && !outputFile.getParentFile().mkdirs())\n \t\t\t// TODO: Log an error, or throw an exception?\n \t\t\treturn null;\n \n \t\ttry {\n \t\t\treturn new ArtifactOutputStream(new BufferedOutputStream(new FileOutputStream(file)), descriptor);\n \t\t} catch (FileNotFoundException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\treturn null;\n \t}", "@Override\n\tprotected void setData(DataStream dataStream) throws IOException {\n\t\t\n\t}", "@Override\n public StorageOutputStream create(File file) throws IOException {\n\treturn null;\n }", "public RandomAccessOutputStream(String file) throws IOException {\n raos = new ome.scifio.io.RandomAccessOutputStream(file);\n }", "private void writeObject(ObjectOutputStream _stream)\n/* 428: */ throws IOException\n/* 429: */ {\n/* 430:503 */ _stream.defaultWriteObject();\n/* 431:504 */ writeCustomData(_stream);\n/* 432: */ }", "protected abstract OutputStream getStream() throws IOException;", "OutputStream getOutputStream() throws IOException;", "private void writeObject(final ObjectOutputStream out) throws IOException\n\t{\n\t\t// Read the data\n\t\tif (dfos.isInMemory())\n\t\t{\n\t\t\tcachedContent = get();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcachedContent = null;\n\t\t\tdfosFile = dfos.getFile();\n\t\t}\n\n\t\t// write out values\n\t\tout.defaultWriteObject();\n\t}", "public void write(OutputStream arg0) throws IOException {\n\n\t}", "protected abstract void _write(DataOutput output) throws IOException;", "private ObjectOutputStream getOutputStream() {\n\t\t// retornamos el stream de salida\n\t\treturn this.outputStream;\n\t}", "public OutputStream openOutputStream() throws IOException {\n return response.getOutputStream();\n }", "public final OutputStream getOutputStream() {\n return outputStream;\n }", "public OutputStream getOutputStream() {\n if (fTDeviceOutputStream == null) {\n fTDeviceOutputStream = new FTDeviceOutputStream(this);\n }\n return fTDeviceOutputStream;\n }", "public static DataOutputStream getData(OutputStream out) {\n return new DataOutputStream(get(out));\n }", "public void setOutputStream(DataOutputStream dos) {\n this.careuOutputStream= dos;\n }", "private DataOutputStream getDataStream(int keyLength)\n throws IOException {\n // Resize array if necessary\n if (dataStreams.length <= keyLength) {\n var copyOfDataStreams = Arrays.copyOf(dataStreams, keyLength + 1);\n Arrays.fill(dataStreams, null);\n dataStreams = null;\n dataStreams = copyOfDataStreams;\n dataFiles = Arrays.copyOf(dataFiles, keyLength + 1);\n }\n\n DataOutputStream dos = dataStreams[keyLength];\n if (dos == null) {\n File file = new File(tempFolder, \"data\" + keyLength + \".dat\");\n file.deleteOnExit();\n dataFiles[keyLength] = file;\n\n dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(file)));\n dataStreams[keyLength] = dos;\n\n // Write one byte so the zero offset is reserved\n dos.writeByte(0);\n }\n return dos;\n }", "public interface WritableObject {\n\n\t/** Write this object to the specified {@link DataTransferOutput} stream.\n\t * @param outputStream the data output stream to write the data to\n\t * @throws IOException if there is an error writing data to the output stream\n\t */\n\tpublic void writeData(DataTransferOutput outputStream) throws IOException;\n\n}", "public DefOutputStream(OutputStream out) throws IOException {\n\t\t\tthis(out, 512);\n\t\t}", "ObjectOutputStream newObjectOutputStream(OutputStream out) throws Exception;", "OutputStream getOutputStream();", "protected void writeTrueData(BufferedDataOutputStream o) throws FitsException {\n\n try {\n o.writePrimitiveArray(dataArray);\n } catch (IOException e) {\n throw new FitsException(\"FITS Output Error: \"+e);\n }\n }", "public ExternalStorageFileOutputStream(File file, boolean append) throws FileNotFoundException {\n super(file instanceof ExternalStorageFile ? ((ExternalStorageFile) file).getInternalFile() : file, append);\n if (mDoAccessDefalut) {\n refreshSDCardFSCache(file.getAbsolutePath());\n }\n }", "public OutputStream getStream()\r\n {\r\n return mStream;\r\n }", "public InstrumentedFileOutputStream(FileDescriptor fdObj, String recId) {\r\n super(fdObj);\r\n this.recId = recId;\r\n }", "public void write(DataOutputStream out) throws IOException\n {\n getImage().write(out);\n out.writeFloat(getX());\n out.writeFloat(getY());\n out.writeFloat(getRot());\n out.writeFloat(getSclx());\n out.writeFloat(getScly());\n }", "public abstract AbstractLineWriter newWriter(OutputStream datastream)\r\n\t\t\tthrows IOException;", "public MovWriter(File file) throws IOException {\n\t\tdest = file;\n\t\tFileUtils.createNewFile(file);\n\t\tout = new MeasuredOutputStream(new FileOutputStream(file));\n\n\t\tAtom.write32Int(out, 1); // an extended size field\n\t\tAtom.write32String(out, \"mdat\");\n\n\t\t// the extended size field: an 8-byte long that will eventually\n\t\t// reflect the size of the data atom. We don't know this in the\n\t\t// first pass, so write 8 zeroes, and we'll fill this gap in\n\t\t// when .close() is called:\n\t\tAtom.write32Int(out, 0);\n\t\tAtom.write32Int(out, 0);\n\t}", "private FSDataOutputStream createNewFile() throws Exception {\n\t\tlogger.traceEntry();\n\t\tPath newFile = new Path(rootDirectory, \"dim_\" + System.currentTimeMillis() + \".json\");\n\t\tlogger.debug(\"Creating file \" + newFile.getName());\n\t\tFSDataOutputStream dataOutputStream = null;\n\n\t\tif (!hadoopFileSystem.exists(newFile)) {\n\t\t\tdataOutputStream = hadoopFileSystem.create(newFile);\n\t\t} else {\n\t\t\tdataOutputStream = hadoopFileSystem.append(newFile);\n\t\t}\n\n\t\tdataOutputStreams.clear();\n\t\tdataOutputStreams.add(dataOutputStream);\n\t\tlogger.traceExit();\n\t\treturn dataOutputStream;\n\t}", "private void createFile(String outputData, File file) {\n try {\n FileWriter writer = new FileWriter(file);\n writer.write(outputData);\n writer.close();\n } catch (IOException e) {\n e.getSuppressed();\n }\n }", "public TarOutputStream( OutputStream os ) {\n\t\tthis( os, TarBuffer.DEFAULT_BLKSIZE, TarBuffer.DEFAULT_RCDSIZE );\n\t\t}", "@DSSink({DSSinkKind.IO})\n @DSSpec(DSCat.IO)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-03 14:59:52.266 -0400\", hash_original_method = \"6659C26B9D2F6D845755120D9E3C542C\", hash_generated_method = \"1D85046399E8D016E013E1B1E96055F2\")\n \n@Override\r\n public void write(byte[] bts, int st, int end) throws IOException {\r\n try {\r\n beforeWrite(end);\r\n out.write(bts, st, end);\r\n afterWrite(end);\r\n } catch (IOException e) {\r\n handleIOException(e);\r\n }\r\n }", "OutputStream getOutputStream()\n {\n return outputStream;\n }", "public FileCacheImageOutputStream(OutputStream stream, File cacheDir) throws IOException {\n if (stream == null) {\n throw new IllegalArgumentException(\"stream == null!\");\n }\n if ((cacheDir != null) && !(cacheDir.isDirectory())) {\n throw new IllegalArgumentException(\"Not a directory!\");\n }\n this.stream = stream;\n if (cacheDir == null)\n this.cacheFile = Files.createTempFile(\"imageio\", \".tmp\").toFile();\n else\n this.cacheFile = Files.createTempFile(cacheDir.toPath(), \"imageio\", \".tmp\").toFile();\n this.cache = new RandomAccessFile(cacheFile, \"rw\");\n\n this.closeAction = StreamCloser.createCloseAction(this);\n StreamCloser.addToQueue(closeAction);\n }", "public InstrumentedFileOutputStream(File file) \r\n throws FileNotFoundException {\r\n super(file);\r\n }", "Write createWrite();", "public Store(int pWriteBufferSize) throws IOException {\r\n\r\n // get temp file\r\n File fd = File.createTempFile(\"KETL.\", \".spool\");\r\n this.mTempFileName = fd.getAbsolutePath();\r\n this.mOutputStream = new FileOutputStream(fd);\r\n this.mFileChannel = this.mOutputStream.getChannel();\r\n this.mByteOutputStream = java.nio.channels.Channels.newOutputStream(this.mFileChannel);\r\n this.mBufferedOutputStream = new BufferedOutputStream(this.mByteOutputStream,pWriteBufferSize);\r\n this.mObjectOutputStream = new ObjectOutputStream(this.mBufferedOutputStream);\r\n }", "private final FileOutputStream zabz() {\n Serializable serializable = this.zalj;\n if (serializable == null) {\n serializable = new IllegalStateException(\"setTempDir() must be called before writing this object to a parcel\");\n throw serializable;\n }\n Object object = \"teleporter\";\n String string2 = \".tmp\";\n try {\n serializable = File.createTempFile((String)object, string2, (File)serializable);\n }\n catch (IOException iOException) {\n object = new IllegalStateException(\"Could not create temporary file\", iOException);\n throw object;\n }\n try {\n object = new FileOutputStream((File)serializable);\n int n10 = 0x10000000;\n string2 = ParcelFileDescriptor.open((File)serializable, (int)n10);\n this.zalg = string2;\n ((File)serializable).delete();\n return object;\n }\n catch (FileNotFoundException fileNotFoundException) {\n serializable = new IllegalStateException(\"Temporary file is somehow already deleted\");\n throw serializable;\n }\n }", "private void writeToFile(Contacts _data, String _filename) throws IOException {\n\n File mydir = this.getDir(\"mydir\", Context.MODE_PRIVATE); //Creating an internal dir;\n File fileWithinMyDir = new File(mydir, _filename); //Getting a file within the dir.\n FileOutputStream out = new FileOutputStream(fileWithinMyDir); //Use the stream as usual to write into the file.\n ObjectOutputStream oos = new ObjectOutputStream(out);\n\n if (mContacts == null){\n mContacts = new Contacts();\n }\n mContacts.setData(_data);\n oos.writeObject(mContacts);\n oos.close();\n\n }", "OutputStream createStream(String location);", "@Override\n\tpublic void write(final File file) throws IOException\n\t{\n\t\tif (isInMemory())\n\t\t{\n\t\t\tFileOutputStream fout = new FileOutputStream(file);\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfout.write(get());\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tfout.close();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFile outputFile = getStoreLocation();\n\t\t\tChecks.notNull(outputFile,\n\t\t\t\t\"for a non-memory upload the file location must not be empty\");\n\n\t\t\t// Save the length of the file\n\t\t\tsize = outputFile.length();\n\t\t\t/*\n\t\t\t * The uploaded file is being stored on disk in a temporary location so move it to the\n\t\t\t * desired file.\n\t\t\t */\n\t\t\tif (!outputFile.renameTo(file))\n\t\t\t{\n\t\t\t\tBufferedInputStream in = null;\n\t\t\t\tBufferedOutputStream out = null;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tin = new BufferedInputStream(new FileInputStream(outputFile));\n\t\t\t\t\tout = new BufferedOutputStream(new FileOutputStream(file));\n\t\t\t\t\tStreams.copy(in, out);\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tIOUtils.closeQuietly(in);\n\t\t\t\t\tIOUtils.closeQuietly(out);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public OutputStream writeFile( String filename, FileType type );", "public OutputStream getOutputStream() {\n return this.outputStream;\n }", "public void serialize() {\n FileOutputStream fileOutput = null;\n ObjectOutputStream outStream = null;\n // attempts to write the object to a file\n try {\n clearFile();\n fileOutput = new FileOutputStream(data);\n outStream = new ObjectOutputStream(fileOutput);\n outStream.writeObject(this);\n } catch (Exception e) {\n } finally {\n try {\n if (outStream != null)\n outStream.close();\n } catch (Exception e) {\n }\n }\n }", "protected void storeDataPath(FSDataOutputStream output, DataEntry storageEntry) throws IOException {\n OBJECT_MAPPER.writeValue(output, storageEntry);\n }", "@Override\n public int writeData(OutputStream out, T data) throws Exception\n {\n OutputStreamWriter w = new OutputStreamWriter(out, \"UTF-8\");\n w.write(_serializer.deepSerialize(data));\n w.close();\n return -1;\n }", "public OutputStream getOutputStream() {\n\t\treturn outputStream;\n\t}", "private void writeObject(\n ObjectOutputStream aOutputStream\n ) throws IOException {\n aOutputStream.defaultWriteObject();\n }", "public void writeFile(ByteBuffer buf, int len, int pos, long offset,\n\t\t\tboolean propigate) throws java.io.IOException, DataArchivedException {\n\n\t\tif (SDFSLogger.isDebug()) {\n\t\t\tSDFSLogger.getLog().debug(\n\t\t\t\t\t\"fc writing \" + df.getMetaFile().getPath() + \" at \"\n\t\t\t\t\t\t\t+ offset + \" \" + buf.capacity() + \" bytes len=\"\n\t\t\t\t\t\t\t+ len + \" pos=\" + pos);\n\t\t\tif (df.getMetaFile().getPath().endsWith(\".vmx\")\n\t\t\t\t\t|| df.getMetaFile().getPath().endsWith(\".vmx~\")) {\n\t\t\t\tbyte[] _zb = new byte[len];\n\t\t\t\tbuf.get(_zb);\n\n\t\t\t\tSDFSLogger.getLog().debug(\n\t\t\t\t\t\t\"###### In fc Text of VMX=\"\n\t\t\t\t\t\t\t\t+ df.getMetaFile().getPath() + \"=\"\n\t\t\t\t\t\t\t\t+ new String(_zb, \"UTF-8\"));\n\t\t\t}\n\t\t}\n\t\tLock l = df.getReadLock();\n\t\tl.lock();\n\t\ttry {\n\t\t\tbuf.position(pos);\n\t\t\tthis.writtenTo = true;\n\t\t\tlong _cp = offset;\n\t\t\t// ByteBuffer buf = ByteBuffer.wrap(bbuf, pos, len);\n\t\t\tint bytesLeft = len;\n\t\t\tint write = 0;\n\t\t\twhile (bytesLeft > 0) {\n\t\t\t\t// Check to see if we need a new Write buffer\n\t\t\t\t// WritableCacheBuffer writeBuffer = df.getWriteBuffer(_cp);\n\t\t\t\t// Find out where to write to in the buffer\n\t\t\t\tDedupChunkInterface writeBuffer = null;\n\t\t\t\tlong filePos = df.getChuckPosition(_cp);\n\t\t\t\tint startPos = (int) (_cp - filePos);\n\t\t\t\tif (startPos < 0)\n\t\t\t\t\tSDFSLogger.getLog().fatal(\"Error \" + _cp + \" \" + filePos);\n\t\t\t\t// Find out how many total bytes there are left to write in\n\t\t\t\t// this\n\t\t\t\t// loop\n\n\t\t\t\tint _len = Main.CHUNK_LENGTH - startPos;\n\t\t\t\tif (bytesLeft < _len)\n\t\t\t\t\t_len = bytesLeft;\n\t\t\t\t/*\n\t\t\t\t * if (_len == Main.CHUNK_LENGTH) newBuf = true;\n\t\t\t\t */\n\n\t\t\t\tbyte[] b = new byte[_len];\n\t\t\t\ttry {\n\t\t\t\t\tbuf.get(b);\n\t\t\t\t} catch (java.nio.BufferUnderflowException e) {\n\t\t\t\t\tbuf.get(b, 0, buf.capacity() - buf.position());\n\t\t\t\t\tSDFSLogger.getLog().error(\n\t\t\t\t\t\t\t\"buffer underflow getting \"\n\t\t\t\t\t\t\t\t\t+ (buf.capacity() - buf.position())\n\t\t\t\t\t\t\t\t\t+ \" instead of \" + _len);\n\t\t\t\t}\n\t\t\t\twhile (writeBuffer == null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriteBuffer = df.getWriteBuffer(filePos);\n\t\t\t\t\t\t\twriteBuffer.write(b, startPos);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (_len != Main.CHUNK_LENGTH && propigate\n\t\t\t\t\t\t\t\t&& df.getMetaFile().getDev() != null) {\n\t\t\t\t\t\t\teventBus.post(new BlockDeviceSmallWriteEvent(df\n\t\t\t\t\t\t\t\t\t.getMetaFile().getDev(),\n\t\t\t\t\t\t\t\t\tByteBuffer.wrap(b), filePos + startPos,\n\t\t\t\t\t\t\t\t\t_len));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (Main.volume.isClustered())\n\t\t\t\t\t\t\twriteBuffer.flush();\n\t\t\t\t\t} catch (BufferClosedException e) {\n\t\t\t\t\t\tif (SDFSLogger.isDebug())\n\t\t\t\t\t\t\tSDFSLogger.getLog().debug(\"trying to write again\");\n\t\t\t\t\t\twriteBuffer = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_cp = _cp + _len;\n\t\t\t\tbytesLeft = bytesLeft - _len;\n\t\t\t\twrite = write + _len;\n\t\t\t\tthis.currentPosition = _cp;\n\t\t\t\tif (_cp > df.getMetaFile().length()) {\n\t\t\t\t\tdf.getMetaFile().setLength(_cp, false);\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch(DataArchivedException e) {\n\t\t\tif(Main.checkArchiveOnRead) {\n\t\t\t\tSDFSLogger.getLog().warn(\"Archived data found in \"+ df.getMetaFile().getPath()+ \" at \" + pos + \". Recovering data from archive. This may take up to 4 hours\");\n\t\t\t\tthis.recoverArchives();\n\t\t\t\tthis.writeFile(buf, len, pos, offset, propigate);\n\t\t\t}\n\t\t\telse throw e;\n\t\t}catch (FileClosedException e) {\n\t\t\tSDFSLogger.getLog()\n\t\t\t\t\t.warn(df.getMetaFile().getPath()\n\t\t\t\t\t\t\t+ \" is closed but still writing\");\n\t\t\tthis.closeLock.lock();\n\t\t\ttry {\n\t\t\t\tdf.registerChannel(this);\n\t\t\t\tthis.closed = false;\n\t\t\t\tthis.writeFile(buf, len, pos, offset, propigate);\n\t\t\t} finally {\n\t\t\t\tthis.closeLock.unlock();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSDFSLogger.getLog().fatal(\n\t\t\t\t\t\"error while writing to \" + this.df.getMetaFile().getPath()\n\t\t\t\t\t\t\t+ \" \" + e.toString(), e);\n\t\t\tMain.volume.addWriteError();\n\t\t\tthrow new IOException(\"error while writing to \"\n\t\t\t\t\t+ this.df.getMetaFile().getPath() + \" \" + e.toString());\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tdf.getMetaFile().setLastModified(System.currentTimeMillis());\n\t\t\t} catch (Exception e) {\n\t\t\t}\n\t\t\tl.unlock();\n\t\t}\n\t}", "public static OutputStream nullOutput() {\n if(nullOut == null) {\n nullOut = new NullOutputStream();\n }\n return nullOut;\n }", "public FileWriter(FileDescriptor fd) {\n super(new FileOutputStream(fd));\n }" ]
[ "0.67336977", "0.66168714", "0.6555197", "0.6499058", "0.6365964", "0.63351464", "0.6244302", "0.61699706", "0.5995766", "0.5976442", "0.5937978", "0.59337145", "0.5914038", "0.59117717", "0.58770186", "0.5875458", "0.57954633", "0.5791758", "0.57866645", "0.57295215", "0.55945516", "0.55739486", "0.5558959", "0.5523854", "0.5499367", "0.5476976", "0.5419318", "0.5413387", "0.53715664", "0.5365913", "0.5349458", "0.53489023", "0.534867", "0.5326411", "0.53232807", "0.5319329", "0.53163683", "0.53048515", "0.52789444", "0.52725685", "0.5267244", "0.5238867", "0.52184814", "0.5183156", "0.5180429", "0.5177672", "0.5164453", "0.515376", "0.5144676", "0.51167536", "0.51134866", "0.5108627", "0.50959766", "0.50925606", "0.5090546", "0.50828654", "0.5082078", "0.50815976", "0.50733376", "0.5058154", "0.50555223", "0.5054603", "0.5051861", "0.5042753", "0.5040474", "0.50383013", "0.50307703", "0.50303555", "0.5016697", "0.5007683", "0.4994986", "0.49901307", "0.49893734", "0.4986578", "0.49681747", "0.49607784", "0.4959712", "0.49440846", "0.4937296", "0.49287885", "0.49146405", "0.49006754", "0.48963055", "0.48934582", "0.488839", "0.48869973", "0.48794746", "0.48682112", "0.48538148", "0.48535678", "0.48521262", "0.48500347", "0.48486635", "0.48425904", "0.48401147", "0.4839189", "0.48376784", "0.48323148", "0.4832044", "0.4826849" ]
0.68118966
0
Creates and returns a DataInputStream object wrapped around a DataFile object. Any access on the underlying DataFile object while the input stream is in use will lead to undefined behaviour. Note that this is only intended as a short lived object for reading information from a DataFile.
public static DataInputStream asDataInputStream(DataFile df) { return new DataInputStream(asInputStream(df)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataInputStream openDataInputStream() throws IOException {\n return new DataInputStream(openInputStream());\n }", "public static InputStream asInputStream(DataFile df) {\n return new DFInputStream(df);\n }", "public DataInputStream openDataInputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }", "public static DataInputStream getDataInput(File file) throws IOException {\n return getDataInput(file.toPath());\n }", "public static DataInputStream getData(InputStream in) {\n return new DataInputStream(get(in));\n }", "public COSInputStream createInputStream() throws IOException\n {\n return stream.createInputStream();\n }", "public COSInputStream createInputStream() throws IOException {\n/* 236 */ return this.stream.createInputStream();\n/* */ }", "private FileInputStream getDataInputStream(File f, long seekOffset)\n throws IOException {\n FileInputStream fis;\n final FileIoProvider fileIoProvider = getFileIoProvider();\n if (NativeIO.isAvailable()) {\n fis = fileIoProvider.getShareDeleteFileInputStream(\n getVolume(), f, seekOffset);\n } else {\n try {\n fis = fileIoProvider.openAndSeek(getVolume(), f, seekOffset);\n } catch (FileNotFoundException fnfe) {\n throw new IOException(\"Expected block file at \" + f +\n \" does not exist.\");\n }\n }\n return fis;\n }", "public static DataInputStream getDataInput(String fileName) throws IOException {\n return getDataInput(getPath(fileName));\n }", "InputStream getDataStream();", "DataStreams createDataStreams();", "public BufferedDataInputStream(InputStream o) {\n\t\tsuper(o, 32768);\n\t}", "public final SMBInputStream asInputStream()\n\t\tthrows SMBException {\n\n\t\t// Check if the file is a directory\n\n\t\tif ( isDirectory())\n\t\t\tthrow new SMBException(SMBStatus.DOSInvalidFunc, SMBStatus.ErrDos);\n\n\t\t// Create the input stream\n\n\t\treturn new SMBInputStream(this);\n\t}", "public InputStream asInputStream() {\n return new ByteArrayInputStream(data);\n }", "public OnDemandInputStream(File file) {\n super();\n\n this.file = file;\n }", "protected InputStream getInputStream() throws IOException\n\t {\n\t FileInputStream fin = new FileInputStream(fFilename);\n\t BufferedInputStream bin = new BufferedInputStream(fin);\n\t return bin;\n\t }", "public DataOutputStream openDataOutputStream() throws IOException {\n return new DataOutputStream(openOutputStream());\n }", "protected InputStream getInputStream() throws IOException\n {\n if (fd == null) {\n throw new IOException(\"socket not created\");\n }\n\n synchronized (this) {\n if (fis == null) {\n fis = new SocketInputStream();\n }\n\n return fis;\n }\n }", "public LoggedDataInputStream getInputStream() {\n return inputStream;\n }", "public InputStream getInputStream() throws IOException {\n return new FileInputStream(_file);\n }", "public InputStream getData() throws java.io.IOException {\n \t\tInputStream is;\n \t\tis = new BufferedInputStream(new GZIPInputStream(new FileInputStream(\n \t\t\t\tdataFile)));\n \t\tis.skip(this.dataOffset);\n \n \t\treturn is;\n \t}", "public StatDataFileReader createReaderInstance() throws IOException{\n return createReaderInstance(null);\n }", "@Override\n public InputStream openStream() throws IOException\n {\n return new FileInputStream(temp);\n }", "public static DataInputStream getDataInput(Path path) throws IOException {\n return getData(Files.newInputStream(path));\n }", "public BufferedDataInputStream(InputStream o, int bufLength) {\n\t\tsuper(o, bufLength);\n\t}", "@NotNull InputStream openInputStream() throws IOException;", "private IntStream createStream() {\n DataInputStream dataInputStream = null;\n try {\n dataInputStream = new DataInputStream(new BufferedInputStream(new FileInputStream(fileName)));\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found\");\n }\n DataInputStream finalDin = dataInputStream;\n return IntStream.generate(() -> {\n try {\n assert finalDin != null;\n return finalDin.readInt();\n } catch (IOException e) {\n System.out.println(\"Stream problem\");\n }\n return 0;\n })\n .limit(20);\n }", "InputStream openStream() throws IOException;", "public ByteArrayInputStream readByteArrayObject() throws IOException {\n int blockCount = raf.readInt();\n\n // Reserved\n raf.skipBytes(4);\n\n int chunkSize;\n\n // data was deleted\n if ((chunkSize=raf.readInt()) == 0)\n return null;\n\n // Reserved\n raf.skipBytes(4);\n\n // Reserved\n raf.skipBytes(16);\n\n byte[] buffer = new byte[chunkSize];\n\n // read chunk of data from file to buffer\n raf.read(buffer);\n\n // move across padded area\n raf.skipBytes(blockCount*blockSize - chunkSize);\n\n // convert into bis, and return the bis\n return new ByteArrayInputStream(buffer);\n }", "public void readData(InputStream inStream);", "public static\n InputStream inputStream() {\n return Input.wrappedInputStream;\n }", "public InputStream openInputStream() throws IOException {\n // TODO: this mode is not set yet.\n // if ((parent.mode & Connector.READ) == 0)\n // throw new IOException(\"write-only connection\");\n\n ensureOpen();\n\n if (inputStreamOpened)\n throw new IOException(\"no more input streams available\");\n if (isGet) {\n // send the GET request here\n validateConnection();\n isValidateConnected = true;\n } else {\n if (privateInput == null) {\n privateInput = new PrivateInputStream(this);\n }\n }\n\n inputStreamOpened = true;\n\n return privateInput;\n }", "public static InputFactory createFactory( DataSource datsrc,\n long offset, long leng )\n throws IOException {\n boolean isFile = datsrc instanceof FileDataSource;\n if ( isFile && datsrc.getCompression() == Compression.NONE ) {\n File uncompressedFile = ((FileDataSource) datsrc).getFile();\n return createFileFactory( uncompressedFile, offset, leng );\n }\n else {\n if ( isFile ) {\n logger_.warning( \"Can't map compressed file \" + datsrc.getName()\n + \" - uncompressing may improve performance\" );\n }\n else {\n logger_.info( \"Will read stream (not random-access): \"\n + datsrc );\n }\n return createSequentialFactory( datsrc, offset, leng );\n }\n }", "protected Stream<T> getDataStream() {\n if (nonNull(asyncData)) {\n if (ThreadLocalUtils.isEnableStreamLazy()) {\n return StreamSupport.stream(() ->\n Spliterators.spliterator(getAsyncData(), 0), 0, false);\n } else {\n return getAsyncData().stream();\n }\n }\n this.updateStream();\n return (isNull(dataStream) || streamClosed()) ? dataStreamSupplier.get() : dataStream;\n }", "public interface DataObject {\n\n /**\n * Returns the length of the contained resource.\n *\n * @return resource length of the resource.\n * @throws IOException when an error occurs while reading the length.\n */\n long getContentLength() throws IOException;\n\n /**\n * Returns an {@link InputStream} representing the contents of the resource.\n *\n * @return contents of the resource as stream.\n * @throws IOException when an error occurs while reading the resource.\n */\n InputStream getInputStream() throws IOException;\n\n /**\n * Returns {@link DataObject} containing the resource. The contents are ranged\n * from the start to the end indexes.\n *\n * @param start index at which data will be read from.\n * @param end index at which dat will be read to.\n * @return ranged resource object.\n * @throws IOException when an error occurs while reading the resource.\n */\n DataObject withRange(int start, int end) throws IOException;\n}", "@Override\n public InputStream getContentInputStream()\n {\n final class LockingFileInputStream extends FileInputStream\n {\n /** The lock to lock while reading the file. */\n private Lock lock;\n\n /**\n * The Constructor.\n *\n * @param toRead the file for this stream to read.\n * @param lock the lock to lock on creation of the stream and unlock when it is closed.\n * @throws IOException if the extended FileInputStream throws one.\n */\n public LockingFileInputStream(final File toRead, final Lock lock) throws IOException\n {\n super(toRead);\n this.lock = lock;\n lock.lock();\n }\n\n /** {@inheritDoc} */\n public void close() throws IOException\n {\n // Make sure this only happens once.\n if (this.lock != null) {\n super.close();\n this.lock.unlock();\n this.lock = null;\n }\n }\n }\n\n try {\n return new AutoCloseInputStream(\n new LockingFileInputStream(this.storageFile, this.lock.readLock()));\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to get InputStream\", e);\n }\n }", "public MSDataReader(File in) throws IOException\n\t{\n\t\tif (in == null)\n\t\t\tthrow new NullPointerException(\"传入MSDataReader的输入流为null\");\n\t\t\n\t\tthis.file = in;\n\t\tthis.reader = new BufferedReader(new FileReader(in));\n\t\t\n\t\tinit();\n\t}", "public DataOutputStream openDataOutputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }", "public Stream stream() {\n Preconditions.checkState(prepared);\n Preconditions.checkState(!closed);\n return new Stream();\n }", "@Override\n public InputStream openInternalInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }", "protected abstract InputStream getInStreamImpl(String filename) throws IOException;", "Stream<In> getInputStream();", "public InputStream openInputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }", "public InputStream asByteStream() {\n return new ByteArrayInputStream(rawBytes);\n }", "public abstract void readData(DataInput din) throws IOException;", "@Override\n\tprotected InputStream getData(GFile file, TaskMonitor monitor)\n\t\t\tthrows IOException, CancelledException, CryptoException {\n\n\t\tISO9660Directory dir = fileToDirectoryMap.get(file);\n\t\tInputStream inputStream = dir.getDataBytes(provider, logicalBlockSize);\n\n\t\treturn inputStream;\n\t}", "public static DataOutputStream asDataOutputStream(DataFile df) {\n return new DataOutputStream(asOutputStream(df));\n }", "DataStreamApi getDataStreamApi();", "public void read(DataInputStream in) throws IOException;", "InputStream getInputStream() throws FileSystemException;", "public InputStream getInputStream() {\n if (fTDeviceInputStream == null) {\n fTDeviceInputStream = new FTDeviceInputStream(this);\n }\n return fTDeviceInputStream;\n }", "public FileDicomInner(final String fName, final String fDir) throws IOException {\r\n fileName = fName;\r\n fileDir = fDir;\r\n\r\n try {\r\n fileHeader = new File(fileDir + fileName);\r\n\r\n if (fileHeader == null) {\r\n throw new FileNotFoundException();\r\n }\r\n\r\n if (raFile != null) {\r\n\r\n try {\r\n raFile.close();\r\n } catch (final IOException ex) {}\r\n }\r\n\r\n try {\r\n raFile = new RandomAccessFile(fileHeader, \"rw\");\r\n } catch (final IOException e) {\r\n raFile = new RandomAccessFile(fileHeader, \"r\");\r\n }\r\n\r\n fileInfo = new FileInfoDicom(fileName, fileDir, FileUtility.DICOM);\r\n fileInfo.setEndianess(FileDicomBaseInner.LITTLE_ENDIAN);\r\n rawFile = new FileRaw(fileInfo.getFileName(), fileInfo.getFileDirectory(), fileInfo, FileBase.READ);\r\n } catch (final NullPointerException npe) {\r\n npe.printStackTrace();\r\n } catch (final OutOfMemoryError e) {\r\n MipavUtil.displayError(\"Out of memory in FileDicom constructor.\");\r\n throw new IOException();\r\n }\r\n }", "@Override\n\tprotected void readDataStream(DataInputStream dataInStream) throws IOException {\n\t\tid = dataInStream.readLong();\n\t\tsuper.read(dataInStream);\n\t}", "public InputStream getInputStream() throws IOException {\r\n return mFile.getInputStream();\r\n }", "public InputStream getInputStream() throws IOException;", "public InputStream getInputStream() throws IOException;", "@Override\n public InputStream openInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }", "public abstract InputStream getInputStream();", "public abstract InputStream getInputStream();", "public static DataOutputStream getData(OutputStream out) {\n return new DataOutputStream(get(out));\n }", "public InputStream getStream() {\n final CircularByteBuffer cbb = new CircularByteBuffer(1024);\n new Thread(\n new Runnable(){\n public void run(){\n ZipOutputStream zos = new ZipOutputStream(cbb.getOutputStream());\n Utils.zipDir(getVolume(), requestedDirectory.getPath(), zos);\n\n try {\n if (zos != null) {\n zos.flush();\n zos.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n ).start();\n\n return cbb.getInputStream();\n }", "public abstract InputStream getInputStream() throws AccessException;", "public void setInputStream(DataInputStream x) throws IOException {\n\t\tin = x;\n\t\tin.readFully(scratch, 0, 32);\n\t\tversion = scratch[0];\n\t\tyear = scratch[1] + 1900;\n\t\tmonth = scratch[2];\n\t\tday = scratch[3];\n\t\tnumRecords = ShapefileBundle.bytesToIntLE(scratch, 4);\n\t\tnumHeaderBytes = ShapefileBundle.bytesToUShortLE(scratch, 8);\n\t\tnumRecordBytes = ShapefileBundle.bytesToUShortLE(scratch, 10);\n\t\tincomplete = scratch[14];\n\t\tencrypted = scratch[15];\n\t\tmdx = scratch[28];\n\t\tlanguage = scratch[29];\n\t\tint readPartTwoLen = 31;\n\t\tif ((version & 0x07) == 4) {\n\t\t\tin.readFully(scratch, 0, 32);\n\t\t\tdriverName = new String(scratch, 0, 32);\n\t\t\tin.skipBytes(4);\n\t\t\treadPartTwoLen = 47;\n\t\t} else {\n\t\t\tassert((version & 0x07) == 3);\n\t\t}\n\t\tscratch[0] = in.readByte();\n\t\tint startpos = 0;\n\t\twhile (scratch[0] != (byte)0x0d) {\n\t\t\tin.readFully(scratch, 1, readPartTwoLen);\n\t\t\tDBaseFieldDescriptor nh = new DBaseFieldDescriptor(scratch, 0, 1+readPartTwoLen);\n\t\t\tnh.startpos = startpos;\n\t\t\tstartpos += nh.length;\n\t\t\tfields.add(nh);\n\t\t\tscratch[0] = in.readByte();\n\t\t}\n\t\trecordLength = startpos;\n\t\tscratch = new byte[recordLength];\n\t}", "InputStream getInputStream() throws IOException;", "InputStream getInputStream() throws IOException;", "InputStream getInputStream() throws IOException;", "private DataOutputStream getDataStream(int keyLength)\n throws IOException {\n // Resize array if necessary\n if (dataStreams.length <= keyLength) {\n var copyOfDataStreams = Arrays.copyOf(dataStreams, keyLength + 1);\n Arrays.fill(dataStreams, null);\n dataStreams = null;\n dataStreams = copyOfDataStreams;\n dataFiles = Arrays.copyOf(dataFiles, keyLength + 1);\n }\n\n DataOutputStream dos = dataStreams[keyLength];\n if (dos == null) {\n File file = new File(tempFolder, \"data\" + keyLength + \".dat\");\n file.deleteOnExit();\n dataFiles[keyLength] = file;\n\n dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(file)));\n dataStreams[keyLength] = dos;\n\n // Write one byte so the zero offset is reserved\n dos.writeByte(0);\n }\n return dos;\n }", "public InputStream inputWrap(InputStream is) \n throws IOException {\n logger.fine(Thread.currentThread().getName() + \" wrapping input\");\n \n // discard any state from previously-recorded input\n this.characterEncoding = null;\n this.inputIsChunked = false;\n this.contentEncoding = null; \n \n this.ris.open(is);\n return this.ris;\n }", "private Data readFromFileData() {//Context context) {\n try {\n FileInputStream fileInputStream = openFileInput(fileNameData);\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\n Data.userData = (Data) objectInputStream.readObject();\n objectInputStream.close();\n fileInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return Data.userData;\n }", "private NetFlowReader(\n DataInputStream inputStream,\n int buffer,\n boolean ignoreCorruptFile) throws IOException {\n in = inputStream;\n bufferLength = buffer;\n ignoreCorrupt = ignoreCorruptFile;\n byte[] metadata = null;\n WrappedByteBuf buf = null;\n\n try {\n metadata = new byte[METADATA_LENGTH];\n in.read(metadata, 0, METADATA_LENGTH);\n\n // Parse metadata, byte order does not really matter, so we go for big endian. Metadata contains\n // magic numbers to verify consistency of the NetFlow file, byte order encoded as either 1 or 2,\n // and stream version which affects header parsing (currently only 1 and 3 are supported).\n buf = WrappedByteBuf.init(metadata, ByteOrder.BIG_ENDIAN);\n short magic1 = buf.getUnsignedByte(0);\n short magic2 = buf.getUnsignedByte(1);\n short order = buf.getUnsignedByte(2);\n short stream = buf.getUnsignedByte(3);\n\n // Verify consistency of NetFlow file, also this ensures that we are at the beginning of the\n // input stream\n if (magic1 != HEADER_MAGIC1 || magic2 != HEADER_MAGIC2) {\n throw new IOException(\"Corrupt NetFlow file. Wrong magic number\");\n }\n\n // Resolve byte order, last case corresponds to incorrect reading from buffer\n if (order == HEADER_BIG_ENDIAN) {\n byteOrder = ByteOrder.BIG_ENDIAN;\n } else if (order == HEADER_LITTLE_ENDIAN) {\n byteOrder = ByteOrder.LITTLE_ENDIAN;\n } else {\n throw new IOException(\"Could not recognize byte order \" + order);\n }\n\n streamVersion = stream;\n\n // Check stream version\n ensureStreamVersion();\n\n // Read header\n header = getHeader();\n } catch (IOException err) {\n if (ignoreCorrupt) {\n // we subsume exception and log warning. Set header to null\n log.warn(\"Failed to initialize reader, ignoreCorruptFile=\" + ignoreCorrupt +\n \", error=\" + err);\n header = new CorruptNetFlowHeader();\n } else {\n throw err;\n }\n } finally {\n metadata = null;\n buf = null;\n }\n }", "public GridFSInputFile createFile(InputStream in) {\n\treturn createFile(in, null);\n }", "public static ResourceData create(\n final InputStream stream,\n final Dictionary<String, Object> props)\n throws IOException {\n if ( stream == null ) {\n final Dictionary<String, Object> result = new Hashtable<String, Object>();\n final Enumeration<String> e = props.keys();\n while (e.hasMoreElements()) {\n final String key = e.nextElement();\n result.put(key, props.get(key));\n }\n return new ResourceData(result, null);\n\n }\n final File dataFile = FileDataStore.SHARED.createNewDataFile(stream,\n null, null, null);\n return new ResourceData(null, dataFile);\n }", "public InputStream getInputStream() throws IOException {\r\n if (!connected)\r\n connect();\r\n\r\n return zipFile.getInputStream(zipEntry);\r\n }", "private ObjectInputStream getInputStream() {\n\t\t// retornamos el stream de entrada\n\t\treturn this.inputStream;\n\t}", "public ECFileCacheInputStream(FileCacheKey cacheKey, Map<Long, Integer> chunkPosAndSize, RedisAccessBase redisAccess,\n List<Integer> redisIds, InputStream stream) {\n this.key = cacheKey.getUuid();\n this.fileSize = (int) cacheKey.getFileSize();\n this.chunkPosAndSize = chunkPosAndSize;\n this.redisAccess = redisAccess;\n this.redisIds = redisIds;\n this.endChunkStream = stream;\n }", "public InputStream getStream() {\n\t\treturn new ByteArrayInputStream(os.toByteArray());\n\t}", "public ResourceInputStream(File file) throws IOException {\n\t\t\tthis(new FileInputStream(file), file.lastModified());\n\t\t}", "public GridFSInputFile createFile(InputStream in, String filename,\n\t boolean closeStreamOnPersist) {\n\treturn new GridFSInputFile(this, in, filename, closeStreamOnPersist);\n }", "private static InputStream createStream(final TachyonFile file, final ReadType readType)\n throws IOException {\n return RemoteBlockInStreams.create(file, readType, 0);\n }", "public ClassFile(DataInput stream)\n throws IOException\n {\n load(stream);\n }", "ObjectInputStream newObjectInputStream(InputStream in) throws Exception;", "public GridFSInputFile createFile(InputStream in, String filename) {\n\treturn new GridFSInputFile(this, in, filename);\n }", "Datastream asDatastream(Node node) throws ResourceTypeException;", "public static DataOutputStream getDataOutput(File file) throws IOException {\n return getDataOutput(file.toPath());\n }", "public TarInputStream(Stream inputStream)\n\t{\n\t\tthis(inputStream, TarBuffer.DefaultBlockFactor);\n\t}", "public InputStream newInputStream(int index) throws IOException {\n\t\t\tsynchronized (DiskLruCache.this) {\n\t\t\t\tif (entry.currentEditor != this) {\n\t\t\t\t\tthrow new IllegalStateException();\n\t\t\t\t}\n\t\t\t\tif (!entry.readable) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\treturn new FileInputStream(entry.getCleanFile(index));\n\t\t\t}\n\t\t}", "public InputStream getInputStream();", "public InputStream getInputStream();", "XMLStreamReader createXMLStreamReader(DataObject sdo);", "public static InputStream getStream(String fileOrResourceName) {\n\t\t/*\n\t\t * in production, it is a resource, and hence we try that first\n\t\t */\n\t\tInputStream stream = IoUtil.class.getClassLoader().getResourceAsStream(fileOrResourceName);\n\t\tif (stream != null) {\n\t\t\treturn stream;\n\t\t}\n\t\tFile file = new File(fileOrResourceName);\n\t\tif (file.exists()) {\n\t\t\ttry {\n\t\t\t\treturn new FileInputStream(file);\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.error(\n\t\t\t\t\t\t\"Resource {} is intepreted as a file that was located on the file system, but error while creating stream from that file. Error: {}\",\n\t\t\t\t\t\tfileOrResourceName, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public InputStream getInputStream( DirectoryEntry directoryEntry) {\n\n\t// If the file has a 0 size, just return null for now.\n\tif( directoryEntry.getFileSizeAsBytes() == 0) {\n\t return null;\n\t}\n\n\t// A pointer to the current sector.\n\tD64Sector sectorBuffer;\n\n\t// Create a byte buffer for the file content.\n\tbyte [] fileContent = new byte[ directoryEntry.getFileSizeAsBytes()];\n\n\t// Get the first sector of the file and add it to the result.\n\tSystem.arraycopy( ( sectorBuffer = (D64Sector)getSector( ((D64DirectoryEntry)directoryEntry).getStartTrack()\n\t\t\t\t\t\t , ((D64DirectoryEntry)directoryEntry).getStartSector())).getDataBytes()\n\t\t\t , 2\n\t\t\t , fileContent\n\t\t\t , 0\n\t\t\t , getUnitSize());\n\n\t// Loop over the sectors of the file and add them to the buffer.\n\tint currentFileContentIndex = getUnitSize();\n\tfor( int currentSectorIndex = 1; currentSectorIndex < directoryEntry.getFileSizeAsUnits(); ++currentSectorIndex) {\n\t \n\t // Get the next track and sector from the current sector.\n\t int nextTrack = sectorBuffer.getNextTrack();\n\t int nextSector = sectorBuffer.getNextSector();\n\n\t // Add the next sector to the result.\n\t System.arraycopy( ( sectorBuffer = (D64Sector)getSector( nextTrack, nextSector)).getDataBytes()\n\t\t\t , 2\n\t\t\t , fileContent\n\t\t\t , currentFileContentIndex\n\t\t\t , getUnitSize());\n\n\t // Point to the next block in the result buffer.\n\t currentFileContentIndex += getUnitSize();\n\t}\n\n\t// Now create an input stream from the file content.\n\treturn new ByteArrayInputStream( fileContent);\n }", "public ClassParser(final InputStream inputStream, final String file_name) {\n this.file_name = file_name;\n fileOwned = false;\n\n if (inputStream instanceof DataInputStream) {\n this.dataInputStream = (DataInputStream) inputStream;\n } else {\n this.dataInputStream = new DataInputStream(new BufferedInputStream(inputStream, BUF_SIZE));\n }\n }", "@Override\n public StorageInputStream open(File file) throws FileNotFoundException {\n\treturn null;\n }", "private InputStream getInstream() {\r\n\t\tif (instream == null) try {\r\n\t\t\tinstream = new FileInputStream(file);\r\n\t\t} catch(IOException ioe) {\r\n\t\t\tthrow new RuntimeException(\"Couldn't create instream for test\", ioe);\r\n\t\t}\r\n\t\treturn instream;\r\n\t}", "public InputStream open(File file) {\n return new FileInputStream(file);\n }", "protected PicoFile(RandomAccessFile backing) throws PicoException, IOException {\n assert backing != null : \"Backing is null.\";\n _backing = backing;\n _open = true;\n _resetDigest();\n _readHeader();\n mode = \"r\";\n position(0L);\n }", "public ByteBuffer getFileData() {\n\t\treturn fileData;\n\t}", "@Override\n\tprotected void setData(DataStream dataStream) throws IOException {\n\t\t\n\t}", "@Override\n\tpublic void readData(DataInputStream input) throws IOException {\n\t\t\n\t}", "public BaseServerInputStream() {\n data = new ArrayDeque<IoBuffer>();\n marked = false;\n resetCache = null;\n }" ]
[ "0.72932583", "0.660055", "0.65285605", "0.64551795", "0.62848985", "0.61324817", "0.58884794", "0.58843344", "0.58286834", "0.58056974", "0.57712877", "0.5702827", "0.5635048", "0.5616626", "0.5575468", "0.5550842", "0.55350316", "0.5468091", "0.54581046", "0.54401606", "0.54350466", "0.54120535", "0.5399455", "0.5376464", "0.5348315", "0.5299127", "0.52985317", "0.528652", "0.5284287", "0.5270504", "0.52654386", "0.52384156", "0.52301365", "0.52189696", "0.5208723", "0.51696277", "0.51499355", "0.51406854", "0.51348853", "0.51277775", "0.5106895", "0.5105976", "0.508346", "0.5069636", "0.5068549", "0.50643516", "0.5044409", "0.50382197", "0.5012926", "0.50024194", "0.4998483", "0.49910206", "0.49729246", "0.49704105", "0.4922999", "0.4922999", "0.49227595", "0.4919347", "0.4919347", "0.49135274", "0.49047172", "0.48987558", "0.4893808", "0.48784965", "0.48784965", "0.48784965", "0.487659", "0.48677155", "0.4861099", "0.48566398", "0.485043", "0.48494112", "0.4842503", "0.48098814", "0.48070428", "0.4803761", "0.4802342", "0.48014697", "0.47918928", "0.47813433", "0.4765675", "0.47547686", "0.4738802", "0.47362244", "0.47259197", "0.47157076", "0.4714987", "0.4714987", "0.47056073", "0.46976888", "0.4697415", "0.4694437", "0.4694224", "0.4687945", "0.46764484", "0.46749696", "0.46673134", "0.46650237", "0.4655931", "0.46528935" ]
0.70902854
1
Creates and returns a DataOutputStream object wrapped around a DataFile object. Any access on the underlying DataFile object while the output stream is in use will lead to undefined behaviour. This object overwrites any information stored in the data file past the current position. Note that this is only intended as a short lived object for writing data to a DataFile.
public static DataOutputStream asDataOutputStream(DataFile df) { return new DataOutputStream(asOutputStream(df)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataOutputStream openDataOutputStream() throws IOException {\n return new DataOutputStream(openOutputStream());\n }", "public DataOutputStream openDataOutputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }", "public static OutputStream asOutputStream(DataFile df) {\n return new DFOutputStream(df);\n }", "public abstract void writeToStream(DataOutputStream dataOutputStream);", "SDDFOutputStream(DataFile df) {\n this.df = df;\n }", "public OutputStream openOutputStream() throws IOException {\n return new FileOutputStream(this);\n }", "@Override\n public FSDataOutputStream create(Path f) throws IOException {\n return super.create(f);\n }", "public abstract void write (DataOutputStream outStream)\r\n throws IOException;", "public abstract void writeData(DataOutput dout) throws IOException;", "public OutputStream getOutputStream() throws java.io.IOException, SecurityException {\n return new FileOutputStream(_file);\n }", "public static DataOutputStream getDataOutput(File file) throws IOException {\n return getDataOutput(file.toPath());\n }", "public OutputStreamWrapper\r\n (File file)\r\n throws FileNotFoundException\r\n {\r\n mStream=new FileOutputStream(file);\r\n }", "public abstract void writeToStream(java.io.DataOutputStream output) throws java.io.IOException;", "public void write(DataOutput dataOutput) throws IOException {\n }", "public abstract void serialize(DataOutputStream dataOutputStream) throws IOException;", "@Override\n\tpublic void write(DataOutputStream dataOutStream) throws IOException {\n\t\tdataOutStream.writeLong(id);\n\t\tsuper.write(dataOutStream);\n\t}", "public DataOutputStream dos() {\n return dos;\n }", "public void write(BufferedDataOutputStream o) throws FitsException {\n\n this.writeTrueData(o);\n byte[] padding = new byte[getPadding()];\n try {\n o.writePrimitiveArray(padding);\n } catch (IOException e) {\n throw new FitsException (\"Error writing padding: \"+e);\n }\n\n }", "public File write(File destination) throws IOException {\n if (data != null) {\n FileUtil.writeBytes(destination, data);\n } else if (tempFile != null) {\n FileUtil.move(tempFile, destination);\n }\n return destination;\n }", "public OutputStream createOutputStream() throws IOException\n {\n return stream.createOutputStream();\n }", "private DataOutputStream getDataStream(int keyLength)\n throws IOException {\n // Resize array if necessary\n if (dataStreams.length <= keyLength) {\n var copyOfDataStreams = Arrays.copyOf(dataStreams, keyLength + 1);\n Arrays.fill(dataStreams, null);\n dataStreams = null;\n dataStreams = copyOfDataStreams;\n dataFiles = Arrays.copyOf(dataFiles, keyLength + 1);\n }\n\n DataOutputStream dos = dataStreams[keyLength];\n if (dos == null) {\n File file = new File(tempFolder, \"data\" + keyLength + \".dat\");\n file.deleteOnExit();\n dataFiles[keyLength] = file;\n\n dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(file)));\n dataStreams[keyLength] = dos;\n\n // Write one byte so the zero offset is reserved\n dos.writeByte(0);\n }\n return dos;\n }", "private FSDataOutputStream createNewFile() throws Exception {\n\t\tlogger.traceEntry();\n\t\tPath newFile = new Path(rootDirectory, \"dim_\" + System.currentTimeMillis() + \".json\");\n\t\tlogger.debug(\"Creating file \" + newFile.getName());\n\t\tFSDataOutputStream dataOutputStream = null;\n\n\t\tif (!hadoopFileSystem.exists(newFile)) {\n\t\t\tdataOutputStream = hadoopFileSystem.create(newFile);\n\t\t} else {\n\t\t\tdataOutputStream = hadoopFileSystem.append(newFile);\n\t\t}\n\n\t\tdataOutputStreams.clear();\n\t\tdataOutputStreams.add(dataOutputStream);\n\t\tlogger.traceExit();\n\t\treturn dataOutputStream;\n\t}", "protected void initDataFile(File outFile) throws IOException,\n FileNotFoundException {\n String directory = PropiedadesAplicacion.getProperty(\"DataFile.dir\",\n System.getProperty(\"user.dir\"));\n this.outputFile = new File(directory, outFile.getName());\n if (this.outputFile.exists()) {\n if (!this.outputFile.delete()) {\n throw new IOException(\"NO SE PUDO BORRAR ARCHIVO: \"\n + outFile.getAbsolutePath());\n }\n if (!this.outputFile.createNewFile()) {\n throw new IOException(\"NO SE PUDO CREAR ARCHIVO: \"\n + outFile.getAbsolutePath());\n }\n }\n this.foStream = new FileOutputStream(this.outputFile);\n this.dataSize = 1;\n this.item = 0;\n if (logger.isInfoEnabled()) {\n logger.info(\"ASIGNADO WRITER A: \"\n + this.outputFile.getAbsolutePath());\n }\n }", "public InstrumentedFileOutputStream(FileDescriptor fdObj) {\r\n super(fdObj);\r\n }", "public void write(DataOutputStream out) throws IOException;", "public final SMBOutputStream asOutputStream()\n\t\tthrows SMBException {\n\n\t\t// Check if the file is a directory\n\n\t\tif ( isDirectory())\n\t\t\tthrow new SMBException(SMBStatus.DOSInvalidFunc, SMBStatus.ErrDos);\n\n\t\t// Create the output stream\n\n\t\treturn new SMBOutputStream(this);\n\t}", "protected OutputStream _createDataOutputWrapper(DataOutput out)\n/* */ {\n/* 1520 */ return new DataOutputAsStream(out);\n/* */ }", "@NotNull OutputStream openOutputStream() throws IOException;", "public LoggedDataOutputStream getOutputStream() {\n return outputStream;\n }", "@Override\n public void writeTo(DataOutput dout) throws IOException {\n\n if (!isHeadless()) {\n dout.writeShort(getTransactionID());\n dout.writeShort(getProtocolID());\n dout.writeShort(getDataLength());\n }\n dout.writeByte(getUnitID());\n dout.writeByte(getFunctionCode());\n writeData(dout);\n }", "public OutputStream getOutputStream( DirectoryEntry directoryEntry) {\n\n\t// Check, if this directory entry is a directory itself.\n\tif( directoryEntry.isDirectory()) {\n\n\t return null; // Cannot create subdirectories yet.\n\t}\n\n\t// Start with a check, if there are still free directory entries to store a new file.\n\tif( getDirectory().getDirectoryEntries().size() >= 144) {\n\n\t return null; // No free directory entries, it seems.\n\t}\n\n\t// Now try get free filespace for the new file.\n\tint neededSectors = directoryEntry.getFileSizeAsBytes() / getUnitSize();\n\tif( ( neededSectors * getUnitSize()) < directoryEntry.getFileSizeAsBytes()) { // If there are some bytes left for another sector.\n\n\t ++neededSectors; // Add them to another sector (plus some empty bytes for padding.\n\t}\n\n\t// Now try to allocate enough free sectors for the file.\n\tList<Sector> availableSectors = getFreeSectors( neededSectors);\n\n\tif( availableSectors == null) { // Sectors cannot be allocated?\n\n\t return null; // => Cannot write file.\n\t}\n\n\t// Create directory entry for the file and the sectors to allocate.\n\tcreateD64DirectoryEntry( directoryEntry, availableSectors);\n\n\t// Link all the sectors of this file.\n\tSector lastSector = null;\n\tfor( Sector currentSector : availableSectors) {\n\t \n\t if( lastSector != null) { // If this is not the first sector.\n\n\t\t// Set the pointer of the last sector to this sector.\n\t\tlastSector.setDataByte( 0, (byte)( currentSector.getTrackIndex()));\n\t\tlastSector.setDataByte( 1, (byte)( currentSector.getSectorIndex()));\n\t }\n\n\t // Set this sector as the new last sector.\n\t lastSector = currentSector;\n\t}\n\t// Set the pointer of the last file sector to 0. Shouldn't be necessary, but anyway.\n\tlastSector.setDataByte( 0, (byte)0);\n\tlastSector.setDataByte( 1, (byte)0);\n\t\n\t// Set the image to modified.\n\tsetModified( true);\n\t\n\t// Return OutputStream for file to write.\n\treturn new D64FileOutputStream( availableSectors, directoryEntry, this);\n }", "public DataInputStream openDataInputStream() throws IOException {\n return new DataInputStream(openInputStream());\n }", "@Override\n\tprotected void setData(DataStream dataStream) throws IOException {\n\t\t\n\t}", "public OutputStream createOutputStream() throws IOException {\n/* 213 */ return this.stream.createOutputStream();\n/* */ }", "public OutputStream openOutputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }", "public void save(DataOutput stream)\n throws IOException\n {\n stream.write(getBytes());\n }", "public static DataOutputStream getDataOutput(String fileName) throws IOException {\n return getDataOutput(getPath(fileName));\n }", "@Override\n public StorageOutputStream create(File file) throws IOException {\n\treturn null;\n }", "public void serialize() {\n FileOutputStream fileOutput = null;\n ObjectOutputStream outStream = null;\n // attempts to write the object to a file\n try {\n clearFile();\n fileOutput = new FileOutputStream(data);\n outStream = new ObjectOutputStream(fileOutput);\n outStream.writeObject(this);\n } catch (Exception e) {\n } finally {\n try {\n if (outStream != null)\n outStream.close();\n } catch (Exception e) {\n }\n }\n }", "public void write(WriteOnly data) {\n\t\tdata.writeData(\"new data\"); // Ok\n\t}", "public void writePacket(DataOutputStream dataOutputStream) throws IOException;", "public ExtendedDataOutputStream(OutputStream out) {\n super(out);\n }", "public interface IMemoriaFile {\r\n \r\n public void append(byte[] data);\r\n \r\n /**\r\n * Releases the write-lock\r\n */\r\n public void close();\r\n \r\n /**\r\n * Returns a stream starting at position 0.\r\n * \r\n * Attention: The stream must be closed!\r\n * \r\n * @return Stream for reading the whole content of the file.\r\n */\r\n public InputStream getInputStream();\r\n \r\n /**\r\n * Returns a stream starting at the given <tt>position</tt>.\r\n * \r\n * Attention: The stream must be closed!\r\n * \r\n * @param position\r\n * @return Stream for reading the whole content of the file.\r\n */\r\n public InputStream getInputStream(long position);\r\n \r\n public long getSize();\r\n\r\n public boolean isEmpty();\r\n\r\n \r\n public void sync();\r\n\r\n /**\r\n * The given offset plus the size of the given byte-array must not exceed the file-site.\r\n * @param data\r\n * @param offset\r\n */\r\n public void write(byte[] data, long offset);\r\n}", "public static DataOutputStream getData(OutputStream out) {\n return new DataOutputStream(get(out));\n }", "public abstract void write(DataOutput out) throws IOException;", "public interface ObjectOutput extends DataOutput, AutoCloseable {\n /**\n * Write an object to the underlying storage or stream. The class that implements this interface\n * defines how the object is written.\n *\n * @param obj the object to be written\n * @exception IOException Any of the usual Input/Output related exceptions.\n */\n public void writeObject(Object obj) throws IOException;\n\n /**\n * Writes a byte. This method will block until the byte is actually written.\n * \n * @param b the byte\n * @exception IOException If an I/O error has occurred.\n */\n public void write(int b) throws IOException;\n\n /**\n * Writes an array of bytes. This method will block until the bytes are actually written.\n * \n * @param b the data to be written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[]) throws IOException;\n\n /**\n * Writes a sub array of bytes.\n * \n * @param b the data to be written\n * @param off the start offset in the data\n * @param len the number of bytes that are written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[], int off, int len) throws IOException;\n\n /**\n * Flushes the stream. This will write any buffered output bytes.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void flush() throws IOException;\n\n /**\n * Closes the stream. This method must be called to release any resources associated with the\n * stream.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void close() throws IOException;\n}", "public synchronized int store(FileOutputStream outputStream) throws IOException {\n WritableByteChannel channel = Channels.newChannel(outputStream);\n backingData.position(origo);\n channel.write(backingData); // TODO: Only write bytecount bytes\n return byteCount;\n }", "public OutputStream openOutputStream() throws IOException {\n // TODO: this mode is not set yet.\n // \tif ((parent.mode & Connector.WRITE) == 0)\n // \t\tthrow new IOException(\"read-only connection\");\n ensureOpen();\n ensureNotDone();\n\n if (outputStreamOpened)\n throw new IOException(\"no more output streams available\");\n\n if (privateOutput == null) {\n // there are 3 bytes operation headers and 3 bytes body headers //\n privateOutput = new PrivateOutputStream(this, maxPacketSize - 6);\n }\n\n outputStreamOpened = true;\n\n return privateOutput;\n }", "private void writeToFile(Contacts _data, String _filename) throws IOException {\n\n File mydir = this.getDir(\"mydir\", Context.MODE_PRIVATE); //Creating an internal dir;\n File fileWithinMyDir = new File(mydir, _filename); //Getting a file within the dir.\n FileOutputStream out = new FileOutputStream(fileWithinMyDir); //Use the stream as usual to write into the file.\n ObjectOutputStream oos = new ObjectOutputStream(out);\n\n if (mContacts == null){\n mContacts = new Contacts();\n }\n mContacts.setData(_data);\n oos.writeObject(mContacts);\n oos.close();\n\n }", "DataStreams createDataStreams();", "@Override\n public OutputStream openInternalOutputFile(String pathname) throws IOException {\n return new FileOutputStream(pathname);\n }", "public static RestorableTsFileIOWriter getWriterForAppendingDataOnCompletedTsFile(File file)\n throws IOException {\n long position = file.length();\n\n try (TsFileSequenceReader reader = new TsFileSequenceReader(file.getAbsolutePath(), false)) {\n // this tsfile is complete\n if (reader.isComplete()) {\n reader.loadMetadataSize();\n position = reader.getFileMetadataPos();\n }\n }\n\n if (position != file.length()) {\n // if the file is complete, we will remove all file metadatas\n try (FileChannel channel =\n FileChannel.open(Paths.get(file.getAbsolutePath()), StandardOpenOption.WRITE)) {\n channel.truncate(position - 1); // remove the last marker.\n }\n }\n return new RestorableTsFileIOWriter(file);\n }", "public MovWriter(File file) throws IOException {\n\t\tdest = file;\n\t\tFileUtils.createNewFile(file);\n\t\tout = new MeasuredOutputStream(new FileOutputStream(file));\n\n\t\tAtom.write32Int(out, 1); // an extended size field\n\t\tAtom.write32String(out, \"mdat\");\n\n\t\t// the extended size field: an 8-byte long that will eventually\n\t\t// reflect the size of the data atom. We don't know this in the\n\t\t// first pass, so write 8 zeroes, and we'll fill this gap in\n\t\t// when .close() is called:\n\t\tAtom.write32Int(out, 0);\n\t\tAtom.write32Int(out, 0);\n\t}", "OutputStream getOutputStream() throws FileSystemException;", "public void addToBuffer(String filename, SensorData sensorData){\n ObjectOutputStream outstream;\n try {\n File bufferFile = new File(filename);\n //Checks to see if the buffer file already exists. \n if(bufferFile.exists())\n {\n //Create an AppendableObjectOutputStream to add the the end of the buffer file as opposed to over writeing it. \n outstream = new AppendableObjectOutputStream(new FileOutputStream (filename, true));\n } else {\n //Create an ObjectOutputStream to create a new Buffer file. \n outstream = new ObjectOutputStream(new FileOutputStream (filename)); \n }\n //Adds the SensorData to the end of the buffer file.\n outstream.writeObject(sensorData);\n outstream.close();\n } catch(IOException io) {\n System.out.println(io);\n }\n }", "public void writeFile(ByteBuffer buf, int len, int pos, long offset,\n\t\t\tboolean propigate) throws java.io.IOException, DataArchivedException {\n\n\t\tif (SDFSLogger.isDebug()) {\n\t\t\tSDFSLogger.getLog().debug(\n\t\t\t\t\t\"fc writing \" + df.getMetaFile().getPath() + \" at \"\n\t\t\t\t\t\t\t+ offset + \" \" + buf.capacity() + \" bytes len=\"\n\t\t\t\t\t\t\t+ len + \" pos=\" + pos);\n\t\t\tif (df.getMetaFile().getPath().endsWith(\".vmx\")\n\t\t\t\t\t|| df.getMetaFile().getPath().endsWith(\".vmx~\")) {\n\t\t\t\tbyte[] _zb = new byte[len];\n\t\t\t\tbuf.get(_zb);\n\n\t\t\t\tSDFSLogger.getLog().debug(\n\t\t\t\t\t\t\"###### In fc Text of VMX=\"\n\t\t\t\t\t\t\t\t+ df.getMetaFile().getPath() + \"=\"\n\t\t\t\t\t\t\t\t+ new String(_zb, \"UTF-8\"));\n\t\t\t}\n\t\t}\n\t\tLock l = df.getReadLock();\n\t\tl.lock();\n\t\ttry {\n\t\t\tbuf.position(pos);\n\t\t\tthis.writtenTo = true;\n\t\t\tlong _cp = offset;\n\t\t\t// ByteBuffer buf = ByteBuffer.wrap(bbuf, pos, len);\n\t\t\tint bytesLeft = len;\n\t\t\tint write = 0;\n\t\t\twhile (bytesLeft > 0) {\n\t\t\t\t// Check to see if we need a new Write buffer\n\t\t\t\t// WritableCacheBuffer writeBuffer = df.getWriteBuffer(_cp);\n\t\t\t\t// Find out where to write to in the buffer\n\t\t\t\tDedupChunkInterface writeBuffer = null;\n\t\t\t\tlong filePos = df.getChuckPosition(_cp);\n\t\t\t\tint startPos = (int) (_cp - filePos);\n\t\t\t\tif (startPos < 0)\n\t\t\t\t\tSDFSLogger.getLog().fatal(\"Error \" + _cp + \" \" + filePos);\n\t\t\t\t// Find out how many total bytes there are left to write in\n\t\t\t\t// this\n\t\t\t\t// loop\n\n\t\t\t\tint _len = Main.CHUNK_LENGTH - startPos;\n\t\t\t\tif (bytesLeft < _len)\n\t\t\t\t\t_len = bytesLeft;\n\t\t\t\t/*\n\t\t\t\t * if (_len == Main.CHUNK_LENGTH) newBuf = true;\n\t\t\t\t */\n\n\t\t\t\tbyte[] b = new byte[_len];\n\t\t\t\ttry {\n\t\t\t\t\tbuf.get(b);\n\t\t\t\t} catch (java.nio.BufferUnderflowException e) {\n\t\t\t\t\tbuf.get(b, 0, buf.capacity() - buf.position());\n\t\t\t\t\tSDFSLogger.getLog().error(\n\t\t\t\t\t\t\t\"buffer underflow getting \"\n\t\t\t\t\t\t\t\t\t+ (buf.capacity() - buf.position())\n\t\t\t\t\t\t\t\t\t+ \" instead of \" + _len);\n\t\t\t\t}\n\t\t\t\twhile (writeBuffer == null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriteBuffer = df.getWriteBuffer(filePos);\n\t\t\t\t\t\t\twriteBuffer.write(b, startPos);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (_len != Main.CHUNK_LENGTH && propigate\n\t\t\t\t\t\t\t\t&& df.getMetaFile().getDev() != null) {\n\t\t\t\t\t\t\teventBus.post(new BlockDeviceSmallWriteEvent(df\n\t\t\t\t\t\t\t\t\t.getMetaFile().getDev(),\n\t\t\t\t\t\t\t\t\tByteBuffer.wrap(b), filePos + startPos,\n\t\t\t\t\t\t\t\t\t_len));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (Main.volume.isClustered())\n\t\t\t\t\t\t\twriteBuffer.flush();\n\t\t\t\t\t} catch (BufferClosedException e) {\n\t\t\t\t\t\tif (SDFSLogger.isDebug())\n\t\t\t\t\t\t\tSDFSLogger.getLog().debug(\"trying to write again\");\n\t\t\t\t\t\twriteBuffer = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_cp = _cp + _len;\n\t\t\t\tbytesLeft = bytesLeft - _len;\n\t\t\t\twrite = write + _len;\n\t\t\t\tthis.currentPosition = _cp;\n\t\t\t\tif (_cp > df.getMetaFile().length()) {\n\t\t\t\t\tdf.getMetaFile().setLength(_cp, false);\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch(DataArchivedException e) {\n\t\t\tif(Main.checkArchiveOnRead) {\n\t\t\t\tSDFSLogger.getLog().warn(\"Archived data found in \"+ df.getMetaFile().getPath()+ \" at \" + pos + \". Recovering data from archive. This may take up to 4 hours\");\n\t\t\t\tthis.recoverArchives();\n\t\t\t\tthis.writeFile(buf, len, pos, offset, propigate);\n\t\t\t}\n\t\t\telse throw e;\n\t\t}catch (FileClosedException e) {\n\t\t\tSDFSLogger.getLog()\n\t\t\t\t\t.warn(df.getMetaFile().getPath()\n\t\t\t\t\t\t\t+ \" is closed but still writing\");\n\t\t\tthis.closeLock.lock();\n\t\t\ttry {\n\t\t\t\tdf.registerChannel(this);\n\t\t\t\tthis.closed = false;\n\t\t\t\tthis.writeFile(buf, len, pos, offset, propigate);\n\t\t\t} finally {\n\t\t\t\tthis.closeLock.unlock();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSDFSLogger.getLog().fatal(\n\t\t\t\t\t\"error while writing to \" + this.df.getMetaFile().getPath()\n\t\t\t\t\t\t\t+ \" \" + e.toString(), e);\n\t\t\tMain.volume.addWriteError();\n\t\t\tthrow new IOException(\"error while writing to \"\n\t\t\t\t\t+ this.df.getMetaFile().getPath() + \" \" + e.toString());\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tdf.getMetaFile().setLastModified(System.currentTimeMillis());\n\t\t\t} catch (Exception e) {\n\t\t\t}\n\t\t\tl.unlock();\n\t\t}\n\t}", "public abstract AbstractLineWriter newWriter(OutputStream datastream)\r\n\t\t\tthrows IOException;", "Write createWrite();", "protected void writeTrueData(BufferedDataOutputStream o) throws FitsException {\n\n try {\n o.writePrimitiveArray(dataArray);\n } catch (IOException e) {\n throw new FitsException(\"FITS Output Error: \"+e);\n }\n }", "public static boolean writeData(File actualFile, Vector<MyData> data) {\n\t\ttry {\n\t\t\tObjectOutputStream out = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(actualFile)));\n\t\t\tout.writeObject(data);\n\t\t\tout.close();\n\t\t\treturn true;\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\treturn false;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "private void createFile(String outputData, File file) {\n try {\n FileWriter writer = new FileWriter(file);\n writer.write(outputData);\n writer.close();\n } catch (IOException e) {\n e.getSuppressed();\n }\n }", "public RandomAccessOutputStream(String file) throws IOException {\n raos = new ome.scifio.io.RandomAccessOutputStream(file);\n }", "public Store(int pWriteBufferSize) throws IOException {\r\n\r\n // get temp file\r\n File fd = File.createTempFile(\"KETL.\", \".spool\");\r\n this.mTempFileName = fd.getAbsolutePath();\r\n this.mOutputStream = new FileOutputStream(fd);\r\n this.mFileChannel = this.mOutputStream.getChannel();\r\n this.mByteOutputStream = java.nio.channels.Channels.newOutputStream(this.mFileChannel);\r\n this.mBufferedOutputStream = new BufferedOutputStream(this.mByteOutputStream,pWriteBufferSize);\r\n this.mObjectOutputStream = new ObjectOutputStream(this.mBufferedOutputStream);\r\n }", "public ByteBuffer getFileData() {\n\t\treturn fileData;\n\t}", "public static AddressableDataFile getEmptyImmutableDataFile() {\n return new EmptyDataFile();\n }", "public ExternalStorageFileOutputStream(File file, boolean append) throws FileNotFoundException {\n super(file instanceof ExternalStorageFile ? ((ExternalStorageFile) file).getInternalFile() : file, append);\n if (mDoAccessDefalut) {\n refreshSDCardFSCache(file.getAbsolutePath());\n }\n }", "public final void dump(DataOutputStream file) throws IOException {\n super.dump(file);\n if (isInPackedState) {\n file.write(data);\n } else {\n file.writeShort(line_number_table_length);\n for (int i = 0; i < line_number_table_length; i++) line_number_table[i].dump(file);\n }\n }", "public File() {\n\t\tthis.name = \"\";\n\t\tthis.data = \"\";\n\t\tthis.creationTime = 0;\n\t}", "public static DataOutputStream getDataOutput(Path path) throws IOException {\n return getData(Files.newOutputStream(path));\n }", "void writeTo(DataOutputStream dout) throws IOException {\r\n throw new Error(\"Method no longer available\");\r\n// dout.writeInt(commit_id);\r\n// dout.writeInt(table_id);\r\n// dout.writeInt(journal_entries);\r\n// dout.write(command_journal, 0, journal_entries);\r\n// int size = command_parameters.size();\r\n// dout.writeInt(size);\r\n// for (int i = 0; i < size; ++i) {\r\n// dout.writeInt(command_parameters.intAt(i));\r\n// }\r\n }", "@DSSink({DSSinkKind.IO})\n @DSSpec(DSCat.IO)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-03 14:59:52.266 -0400\", hash_original_method = \"6659C26B9D2F6D845755120D9E3C542C\", hash_generated_method = \"1D85046399E8D016E013E1B1E96055F2\")\n \n@Override\r\n public void write(byte[] bts, int st, int end) throws IOException {\r\n try {\r\n beforeWrite(end);\r\n out.write(bts, st, end);\r\n afterWrite(end);\r\n } catch (IOException e) {\r\n handleIOException(e);\r\n }\r\n }", "public void writeData(DataOutputStream dataOutputStream) throws IOException {\n dataOutputStream.writeUTF(subChannel);\n }", "public void saveAsSerialization() {\n try(ObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(new File(\"saves/data.dat\")))){\n os.writeObject(this);\n } catch (FileNotFoundException e){\n System.out.println(\"Could not create file: \" + e.getMessage());\n } catch (IOException e){\n System.out.println(\"IO exception occurred: \" + e.getMessage());\n }\n\n }", "protected OutputStream getOutputStream() throws IOException\n { \n if (fd == null) {\n throw new IOException(\"socket not created\");\n }\n\n synchronized (this) {\n if (fos == null) {\n fos = new SocketOutputStream();\n }\n\n return fos;\n }\n }", "protected abstract void _write(DataOutput output) throws IOException;", "@Override\n\tpublic void write(final File file) throws IOException\n\t{\n\t\tif (isInMemory())\n\t\t{\n\t\t\tFileOutputStream fout = new FileOutputStream(file);\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfout.write(get());\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tfout.close();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFile outputFile = getStoreLocation();\n\t\t\tChecks.notNull(outputFile,\n\t\t\t\t\"for a non-memory upload the file location must not be empty\");\n\n\t\t\t// Save the length of the file\n\t\t\tsize = outputFile.length();\n\t\t\t/*\n\t\t\t * The uploaded file is being stored on disk in a temporary location so move it to the\n\t\t\t * desired file.\n\t\t\t */\n\t\t\tif (!outputFile.renameTo(file))\n\t\t\t{\n\t\t\t\tBufferedInputStream in = null;\n\t\t\t\tBufferedOutputStream out = null;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tin = new BufferedInputStream(new FileInputStream(outputFile));\n\t\t\t\t\tout = new BufferedOutputStream(new FileOutputStream(file));\n\t\t\t\t\tStreams.copy(in, out);\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tIOUtils.closeQuietly(in);\n\t\t\t\t\tIOUtils.closeQuietly(out);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public OutputStream getOutputStream() {\n return new BufferedOutputStream(new OutputStream() {\n public void write(int b) throws IOException {\n _combinedOutputStream.write(b);\n }\n public void flush() throws IOException {\n _combinedOutputStream.flush();\n }\n public void close() throws IOException {\n _combinedOutputStream.close();\n }\n });\n }", "public DataBlock() {\n headerPointer = 0;\n datasPointer = size - 1;\n serialize = new byte[size];\n }", "private final FileOutputStream zabz() {\n Serializable serializable = this.zalj;\n if (serializable == null) {\n serializable = new IllegalStateException(\"setTempDir() must be called before writing this object to a parcel\");\n throw serializable;\n }\n Object object = \"teleporter\";\n String string2 = \".tmp\";\n try {\n serializable = File.createTempFile((String)object, string2, (File)serializable);\n }\n catch (IOException iOException) {\n object = new IllegalStateException(\"Could not create temporary file\", iOException);\n throw object;\n }\n try {\n object = new FileOutputStream((File)serializable);\n int n10 = 0x10000000;\n string2 = ParcelFileDescriptor.open((File)serializable, (int)n10);\n this.zalg = string2;\n ((File)serializable).delete();\n return object;\n }\n catch (FileNotFoundException fileNotFoundException) {\n serializable = new IllegalStateException(\"Temporary file is somehow already deleted\");\n throw serializable;\n }\n }", "public static void write(byte[] data, File file) throws IOException {\n write(data, file, false);\n }", "private void saveToFileData() {//Context context) {\n try {\n FileOutputStream fileOutputStream = openFileOutput(fileNameData, Context.MODE_PRIVATE);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(Data.userData);\n objectOutputStream.close();\n fileOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void setOutputStream(DataOutputStream dos) {\n this.careuOutputStream= dos;\n }", "private void writeObject(ObjectOutputStream _stream)\n/* 428: */ throws IOException\n/* 429: */ {\n/* 430:503 */ _stream.defaultWriteObject();\n/* 431:504 */ writeCustomData(_stream);\n/* 432: */ }", "public boolean writeDataFile();", "public OutputStream getOutputStream() throws IOException;", "public void write(DataOutputStream out) throws IOException\n {\n getImage().write(out);\n out.writeFloat(getX());\n out.writeFloat(getY());\n out.writeFloat(getRot());\n out.writeFloat(getSclx());\n out.writeFloat(getScly());\n }", "@Override\n public OutputStream openOutputFile(String pathname) throws IOException {\n return new FileOutputStream(pathname);\n }", "public void close() throws IOException {\n if (dataFile != null)\n dataFile.close();\n dataFile = null;\n super.close();\n }", "private ObjectOutputStream getOutputStream() {\n\t\t// retornamos el stream de salida\n\t\treturn this.outputStream;\n\t}", "public OutputStream getOutputStream() {\n if (fTDeviceOutputStream == null) {\n fTDeviceOutputStream = new FTDeviceOutputStream(this);\n }\n return fTDeviceOutputStream;\n }", "public void setDataWriter(DataWriter dataWriter);", "public FileWriter(FileDescriptor fd) {\n super(new FileOutputStream(fd));\n }", "public static DataInputStream asDataInputStream(DataFile df) {\n return new DataInputStream(asInputStream(df));\n }", "public void persist(DataOutputStream dos) throws Exception;", "@Override\n \tpublic void writeSpawnData(ByteArrayDataOutput data) {\n \t\tdata.writeUTF(type.shortName);\n \t\tdata.writeInt(direction);\n \t\tdata.writeInt(blockX);\n \t\tdata.writeInt(blockY);\n \t\tdata.writeInt(blockZ);\n \t}", "private void buildPart(DataOutputStream dataOutputStream, byte[] fileData, String fileName) throws IOException {\n dataOutputStream.writeBytes(twoHyphens + boundary + lineEnd);\n dataOutputStream.writeBytes(\"Content-Disposition: form-data; name=\\\"image\\\"; filename=\\\"\" + fileName + \"\\\"\" + lineEnd);\n // dataOutputStream.writeBytes(\"Content-Type: image/jpeg\" + lineEnd);\n dataOutputStream.writeBytes(lineEnd);\n\n ByteArrayInputStream fileInputStream = new ByteArrayInputStream(fileData);\n int bytesAvailable = fileInputStream.available();\n\n int maxBufferSize = 1024 * 1024;\n int bufferSize = Math.min(bytesAvailable, maxBufferSize);\n byte[] buffer = new byte[bufferSize];\n\n // read file and write it into form...\n int bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n\n while (bytesRead > 0) {\n dataOutputStream.write(buffer, 0, bufferSize);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n }\n dataOutputStream.writeBytes(lineEnd);\n }", "public void write(byte[] data, long offset);", "public void write(int location, ByteBuffer data)\n throws DataOrderingException;", "protected final void setOutputStream(LoggedDataOutputStream outputStream) {\n if (this.outputStream == outputStream) return ;\n if (this.outputStream != null) {\n try {\n this.outputStream.close();\n } catch (IOException ioex) {/*Ignore*/}\n }\n this.outputStream = outputStream;\n }", "public InstrumentedFileOutputStream(File file) \r\n throws FileNotFoundException {\r\n super(file);\r\n }" ]
[ "0.6999709", "0.6419771", "0.6325597", "0.62163496", "0.6139638", "0.59966844", "0.587339", "0.580876", "0.57892305", "0.5700104", "0.5683359", "0.5617777", "0.54965794", "0.5435493", "0.5425667", "0.541762", "0.5384565", "0.53655136", "0.5327232", "0.5325291", "0.5322838", "0.52777594", "0.52316", "0.52315897", "0.5227163", "0.5224534", "0.52224666", "0.51751125", "0.5154815", "0.5140933", "0.5096713", "0.5090743", "0.50761133", "0.5060223", "0.5059494", "0.504552", "0.5026093", "0.4997374", "0.4986055", "0.49726596", "0.49582422", "0.49478117", "0.4936158", "0.49265745", "0.4922955", "0.48825228", "0.48606336", "0.48308575", "0.48229936", "0.48033294", "0.47992557", "0.4756928", "0.47400713", "0.47355843", "0.47352564", "0.47267482", "0.47173902", "0.47135305", "0.4700735", "0.4697754", "0.46781728", "0.46753243", "0.46739098", "0.46706876", "0.46679145", "0.46660316", "0.46596965", "0.46530312", "0.46451312", "0.4641819", "0.46341553", "0.4632228", "0.46304727", "0.46237665", "0.46119004", "0.46015573", "0.45970762", "0.45894456", "0.4584154", "0.45781055", "0.45616475", "0.45595956", "0.45512667", "0.45511156", "0.45434254", "0.4537879", "0.4533576", "0.45322514", "0.45307964", "0.45288223", "0.4527126", "0.45207334", "0.45147145", "0.45139402", "0.4507396", "0.45051575", "0.4501179", "0.45005158", "0.44982356", "0.4498016" ]
0.67462236
1
Returns an empty immutable DataFile implementation.
public static AddressableDataFile getEmptyImmutableDataFile() { return new EmptyDataFile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File() {\n\t\tthis.name = \"\";\n\t\tthis.data = \"\";\n\t\tthis.creationTime = 0;\n\t}", "public static FileData createEntity() {\n FileData fileData = Reflections.createObj(FileData.class, Lists.newArrayList(\n\t\t FileData.F_NAME\n\t\t,FileData.F_PATH\n\t\t,FileData.F_SIZE\n\t\t,FileData.F_TYPE\n\t\t,FileData.F_DESCRIPTION\n ),\n\n\t\t DEFAULT_NAME\n\n\t\t,DEFAULT_PATH\n\n\t\t,DEFAULT_SIZE\n\n\t\t,DEFAULT_TYPE\n\n\n\n\n\n\n\t\t,DEFAULT_DESCRIPTION\n\n\t);\n return fileData;\n }", "public Dataset getEmptyDataset() {\r\n\t\treturn InitialData.emptyClone();\r\n\t}", "public static FilePath empty() {\n return EMPTY;\n }", "public Data() {}", "public File getDataFile(String filename) {\n throw new UnsupportedOperationException();\n }", "public WorkDataFile()\n\t{\n\t\tsuper();\n\t}", "public File getDataFile();", "public DataIO() throws IOException {\n if (!QuizFile.isFile())\n QuizFile.createNewFile();\n }", "public File() {\n }", "public FileObject() {\n\t}", "protected FileDescriptor getFileDescriptor() {\n return new FileDescriptor(); // constructor creates invalid fd\n }", "public Builder clearFile() {\n\n file_ = getDefaultInstance().getFile();\n onChanged();\n return this;\n }", "private FileEntry() {\n // intentionally empty\n }", "@Override\n\tpublic DataConfig createDefaultConfig() {\n\t\treturn new DataConfig();\n\t}", "public Builder clearData() {\n bitField0_ = (bitField0_ & ~0x00000010);\n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }", "public Data() {\n }", "public Data() {\n }", "public FileOpModel()\n\t{ \n\t\tthis(new ArrayList<>());\n\t}", "public Builder clearData() {\n bitField0_ = (bitField0_ & ~0x00000002);\n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }", "public Builder clearData() {\n bitField0_ = (bitField0_ & ~0x00000002);\n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }", "public Builder clearData() {\n bitField0_ = (bitField0_ & ~0x00000001);\n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }", "protected abstract D createData();", "Data() throws IOException {\n // Initialise new default path from scratch\n path = Path.of(\"src/main/data/duke.txt\");\n new File(\"src/main/data\").mkdirs();\n new File(path.toString()).createNewFile();\n }", "public FileSet() {\n super();\n }", "public Object clone() {\n\t\treturn(new FileSystem(_device, _mount, _type));\n\t}", "static <R,C> DataFrame<R,C> empty() {\n return DataFrame.factory().empty();\n }", "FData createFData();", "public Builder clearData() {\n data_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public Builder clearData() {\n data_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public Builder clearData() {\n data_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public Data() {\n \n }", "public File generateFile()\r\n {\r\n return generateFile(null);\r\n }", "@Override\n public StorageOutputStream create(File file) throws IOException {\n\treturn null;\n }", "public FileNode() {\n\t}", "public Builder clearData() {\n if (dataBuilder_ == null) {\n data_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n dataBuilder_.clear();\n }\n return this;\n }", "public DataFactoryImpl() {\n\t\tsuper();\n\t}", "public Builder clearData() {\n if (dataBuilder_ == null) {\n data_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n dataBuilder_.clear();\n }\n return this;\n }", "public static File mock() {\n\n\t\treturn mock(true);\n\t}", "DatasetFile getDatasetFile();", "@Override\n public FSDataOutputStream create(Path f) throws IOException {\n return super.create(f);\n }", "public Builder clearObjectFile() {\n\n objectFile_ = getDefaultInstance().getObjectFile();\n onChanged();\n return this;\n }", "public Builder clearFileHash() {\n\n fileHash_ = getDefaultInstance().getFileHash();\n onChanged();\n return this;\n }", "public Builder clearFileHash() {\n\n fileHash_ = getDefaultInstance().getFileHash();\n onChanged();\n return this;\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 }", "static public FileFilter nullFilter() {\n return new FileFilter();\n }", "public FileName() {\n setFile(null);\n }", "public Storage() {\n this(null, DEFAULT_MAX, DEFAULT_MAX_SIZE);\n }", "public Builder clearFileLoc() {\n bitField0_ = (bitField0_ & ~0x00000002);\n fileLoc_ = getDefaultInstance().getFileLoc();\n onChanged();\n return this;\n }", "protected FileDepositorImpl() {\n\t}", "public Builder clearData() {\n \n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }", "public Builder clearData() {\n \n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }", "public Builder clearData() {\n \n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }", "public Builder clearData() {\n \n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }", "public Builder clearData() {\n \n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }", "public Builder clearData() {\n \n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }", "public Builder clearData() {\n \n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }", "private FileManager() {}", "@VisibleForTesting\n public File getBlockFile() {\n return new File(getDir(), getBlockName());\n }", "private FSDataOutputStream createNewFile() throws Exception {\n\t\tlogger.traceEntry();\n\t\tPath newFile = new Path(rootDirectory, \"dim_\" + System.currentTimeMillis() + \".json\");\n\t\tlogger.debug(\"Creating file \" + newFile.getName());\n\t\tFSDataOutputStream dataOutputStream = null;\n\n\t\tif (!hadoopFileSystem.exists(newFile)) {\n\t\t\tdataOutputStream = hadoopFileSystem.create(newFile);\n\t\t} else {\n\t\t\tdataOutputStream = hadoopFileSystem.append(newFile);\n\t\t}\n\n\t\tdataOutputStreams.clear();\n\t\tdataOutputStreams.add(dataOutputStream);\n\t\tlogger.traceExit();\n\t\treturn dataOutputStream;\n\t}", "@Override\n\tpublic DataType copy() throws BugTrap {\n\t\tInputFile file = new InputFile(this.pathName);\n\t\tfile.value = this.value;\n\t\treturn file;\n\t}", "public InternalData createInternalData2() {\r\n return new InternalData(); // returns data which is not exported from Module modb\r\n }", "@Override\n protected File getDataFile(String relFilePath) {\n return new File(getDataDir(), relFilePath);\n }", "public Builder clearFilename() {\n\n filename_ = getDefaultInstance().getFilename();\n onChanged();\n return this;\n }", "public Builder clearFilename() {\n\n filename_ = getDefaultInstance().getFilename();\n onChanged();\n return this;\n }", "FileContent createFileContent();", "public DataBlock() {\n headerPointer = 0;\n datasPointer = size - 1;\n serialize = new byte[size];\n }", "public File getDataSaveFile() {\n return dataSaveFile;\n }", "public FileObjectFactory() {\n }", "public Builder clearInodeFile() {\n if (inodeFileBuilder_ == null) {\n inodeFile_ = alluxio.proto.journal.File.InodeFileEntry.getDefaultInstance();\n onChanged();\n } else {\n inodeFileBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00010000);\n return this;\n }", "public Builder clearData() {\n\n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }", "public Builder clearData() {\n\n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }", "public Builder clearData() {\n\n data_ = getDefaultInstance().getData();\n onChanged();\n return this;\n }", "private FileUtility() {\r\n\t}", "public Builder clearFileName() {\n bitField0_ = (bitField0_ & ~0x00000004);\n fileName_ = getDefaultInstance().getFileName();\n onChanged();\n return this;\n }", "public FileStorage(File path) {\n dataFolder = path;\n }", "public SimpleFileFilter() {\n\n this(null, false);\n }", "private FileUtil() {\n \t\tsuper();\n \t}", "public DataRepository() throws IOException {\n\t\tthis.init();\n\t}", "public Data(String path) throws IOException {\n this.path = Paths.get(\"src/main/data/duke.txt\").toAbsolutePath();\n if (Files.notExists(this.path)) {\n new File(String.valueOf(path)).createNewFile();\n }\n }", "RandomAccessData(File f,String mode) throws FileNotFoundException {\n super(f,mode);\n }", "public Builder clearFileName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n fileName_ = getDefaultInstance().getFileName();\n onChanged();\n return this;\n }", "public ByteArray()\n\t{\n\t\t// initialize the byte array\n\t\tbytes = new byte[0];\n\t}", "public static FileData CreateFromFile(String pathWithFileName) throws Exception\n {\n FileData fileData = new FileData();\n fileData.ReadFrom(pathWithFileName);\n return fileData;\n }", "public Builder clearFileInfo() {\n if (fileInfoBuilder_ == null) {\n fileInfo_ = null;\n onChanged();\n } else {\n fileInfo_ = null;\n fileInfoBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearFileInfo() {\n if (fileInfoBuilder_ == null) {\n fileInfo_ = null;\n onChanged();\n } else {\n fileInfo_ = null;\n fileInfoBuilder_ = null;\n }\n\n return this;\n }", "public FileBean() {}", "@Nonnull\r\n @Override\r\n public FileSystem produce() throws IOException {\r\n return newInstance();\r\n }", "public FileManager() {\n\t\t\n\t}", "public DataRecord() {\n super(DataTable.DATA);\n }", "@Override\n\tpublic Instances dataset() {\n\t\treturn null;\n\t}", "public FileDicomBaseInner() {}", "private FileUtil() {}", "private RandomAccessFile getDataFile(int eIndex, int tIndex) throws IOException {\n\n String dataFilePath = gradsDDF.getFileName(eIndex, tIndex);\n if (!gradsDDF.isTemplate()) { // we only have one file\n if (dataFile != null) {\n return dataFile;\n }\n }\n if (dataFile != null) {\n String path = dataFile.getLocation();\n if (path.equals(dataFilePath)) {\n return dataFile;\n } else {\n dataFile.close();\n }\n }\n dataFile = RandomAccessFile.acquire(dataFilePath);\n dataFile.order(getByteOrder());\n return dataFile;\n }", "public mainData() {\n }", "public static MyFileContext create() {\n\t\treturn new MyContextImpl();\n\t}", "@Test\n public void testEmptyHFile() throws IOException {\n Path f = new Path(TestHFile.ROOT_DIR, testName.getMethodName());\n HFileContext context = new HFileContextBuilder().withIncludesTags(false).build();\n Writer w = HFile.getWriterFactory(TestHFile.conf, TestHFile.cacheConf).withPath(TestHFile.fs, f).withFileContext(context).create();\n w.close();\n Reader r = HFile.createReader(TestHFile.fs, f, TestHFile.cacheConf, true, TestHFile.conf);\n r.loadFileInfo();\n Assert.assertFalse(r.getFirstKey().isPresent());\n Assert.assertFalse(r.getLastKey().isPresent());\n }", "DataPackage createDataPackage();", "public FilePlugin()\n {\n super();\n \n //create the data directory if it doesn't exist\n File dataDir = new File(FilenameUtils.dataDir);\n if(!dataDir.exists()) FilePersistenceUtils.makeDirs(dataDir);\n }", "public FileUtility()\n {\n }" ]
[ "0.67119277", "0.6257378", "0.6226163", "0.61326146", "0.6088047", "0.5942714", "0.5907928", "0.58554", "0.58357525", "0.571842", "0.5705113", "0.56867945", "0.56835663", "0.5675929", "0.5632647", "0.5607571", "0.5592334", "0.5592334", "0.5587823", "0.55870897", "0.55865794", "0.55602604", "0.55498505", "0.55351377", "0.5519957", "0.55183834", "0.54610735", "0.54384655", "0.54356194", "0.54356194", "0.5432981", "0.5405872", "0.54004174", "0.5396856", "0.53936464", "0.53785396", "0.53696644", "0.535877", "0.53393465", "0.53360146", "0.532487", "0.5313113", "0.5307937", "0.5307937", "0.5300279", "0.52894354", "0.5265734", "0.5256774", "0.5247291", "0.5246871", "0.5246788", "0.5246788", "0.5246788", "0.5246788", "0.5246788", "0.5246788", "0.5246788", "0.5241485", "0.5239743", "0.52389365", "0.5234934", "0.5231593", "0.5229621", "0.5225247", "0.522317", "0.52183723", "0.52164495", "0.51982576", "0.5195986", "0.51808715", "0.51796955", "0.5177945", "0.5177945", "0.5172896", "0.5171338", "0.5165192", "0.51644754", "0.5152607", "0.51510715", "0.5144382", "0.514303", "0.5140336", "0.51354194", "0.51316684", "0.51221377", "0.51221377", "0.5115351", "0.5110015", "0.5105532", "0.5100488", "0.5093775", "0.5078037", "0.50759435", "0.5074634", "0.5072682", "0.50710297", "0.5070782", "0.5068636", "0.50554794", "0.50522226" ]
0.85509324
0
private long change_count = 0;
SDDFOutputStream(DataFile df) { this.df = df; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long count() {\n/* 154 */ return this.count;\n/* */ }", "long getLastChanged();", "@Override\n public int getNbChanges()\n {\n return nbChanges;\n }", "long getChangeset();", "public Long getChangeNum() {\n return changeNum;\n }", "@Override\n\tpublic int update() {\n\t\treturn 0;\n\t}", "private synchronized void updateLogCount() {\n this.logCount++;\n }", "long getStateChange();", "long getUpdateCount();", "@Override\n\tpublic void count() {\n\t\t\n\t}", "public abstract long getNumUpdate();", "public long count() { return count.get(); }", "void upCount(){\n count++;\n }", "public void increaseCount(){\n myCount++;\n }", "long getUpdated();", "private synchronized static void upCount() {\r\n\t\t++count;\r\n\t}", "public int getUpdateCount();", "public long getStateChange() {\n return stateChange_;\n }", "@Override\npublic long count() {\n\treturn super.count();\n}", "public void incrementCount(){\n count+=1;\n }", "void incrementAddedCount() {\n addedCount.incrementAndGet();\n }", "public void setUpdateOften(int i){\n countNum = i;\n }", "@Override\r\n\tpublic int update() throws Exception {\n\t\treturn 0;\r\n\t}", "private synchronized void incrementCount()\n\t{\n\t\tcount++;\n\t}", "public long getStateChange() {\n return stateChange_;\n }", "public void incCount() { }", "public int getPauseAfterChangePatch()\n {\n return 0;\n }", "public long getTimeOfLastValuesChanged();", "public int currentCount () {\n return count;\n }", "@Override\r\n\tpublic long count() {\n\t\treturn 0;\r\n\t}", "public int getCounter() {\nreturn this.counter;\n}", "public int check(){\r\n\r\n\treturn count ++;\r\n\t\r\n}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long procount() {\n\t\treturn 0;\n\t}", "void incCount() {\n ++refCount;\n }", "public long count() ;", "private static void setCounter() {++counter;}", "public void incrementRefusals() {\n\t}", "@Override\r\n\tpublic int increase() throws Exception {\n\t\treturn 0;\r\n\t}", "public void incCounter(){\n counter++;\n }", "void recount();", "private static void add() {\n\tcount.incrementAndGet();\n}", "public int getCounter(){\n return counter;\n }", "public void changeCount(final int c) {\n\t\tcount += c;\n\t}", "public void incrementCount() {\n count++;\n }", "public void defaultUpdateCount(AcProperty e)\n {\n }", "public void reset() {\n/* 54 */ this.count = 0;\n/* 55 */ this.totalTime = 0L;\n/* */ }", "void updateFrequencyCount() {\n //Always increments by 1 so there is no need for a parameter to specify a number\n this.count++;\n }", "private void updateNumberOfConnections(int delta)\n\t{\n\t\tint count = numberOfConnections.addAndGet(delta);\t\t\n\t\tLOG.debug(\"Active connections count = {}\", count);\n\t}", "public int getLiveCount() {\n return liveCount;\n }", "int getUpdateCountsCount();", "public long count() {\n\t\treturn 0;\n\t}", "public long count() {\n\t\treturn 0;\n\t}", "public synchronized int getCount(){\n return count;\n }", "long getTsUpdate();", "public final int getRefCount() { return refCount.get(); }", "public ConnectionCount(int counter) {\nthis.counter = counter;\n}", "void incrementCount();", "public int counter (){\n return currentID;\n }", "long recalculateRevision();", "public void addCount()\n {\n \tcount++;\n }", "public int count() {\n\treturn 1;\n}", "public int getCountRequests() {\n/* 415 */ return this.countRequests;\n/* */ }", "private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}", "protected int incModCount() {\n\n if (LOG.isDebugEnabled()) {\n\n Throwable trace = new Throwable(\"Stack Trace\");\n StackTraceElement elements[] = trace.getStackTrace();\n\n Logging.logCheckedDebug(LOG,\"Modification #\" + (getModCount() + 1) + \" to PeerAdv@\" + Integer.toHexString(System.identityHashCode(this))\n + \" caused by : \" + \"\\n\\t\" + elements[1] + \"\\n\\t\" + elements[2]);\n\n }\n\n return modCount.incrementAndGet();\n }", "long lastAutomaticRefresh();", "public long getUpdate();", "public void setCount(long val)\n\t{\n\t\tcount = val;\n\t}", "public void incrementCount() {\n\t\tcount++;\n\t}", "@Override\n public synchronized void increment() {\n count++;\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "public static int getCounter() {return counter;}", "public void incCounter()\n {\n counter++;\n }", "private void incrementUsageCount() {\n usageCount++;\n }", "public void setCounter(Short __newValue)\n {\n counter = __newValue;\n }", "@Override\r\n public void update(long timePassed) {\n\r\n }", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n reqCount = (int) dataSnapshot.getChildrenCount();\n reqCount++;\n newcount+=reqCount;\n Log.d(\"REQUEST COUNT\", \"\"+reqCount);\n\n }", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "@Override\n public void forceIncrementModificationCounter(LineEntity entity) {\n\n }", "public void synchronize(int change);", "public void setOneNewWanted () {\r\n numWanted ++;\r\n }", "int getMockUpdatesCount();", "public void setChangeNum(Long changeNum) {\n this.changeNum = changeNum;\n }", "public static void resetCount() {\n count = 1;\n }", "public long getCount() {\n return count.get();\n }", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}" ]
[ "0.6859699", "0.66274583", "0.65787584", "0.65706575", "0.65205544", "0.65196025", "0.6491113", "0.64526165", "0.6414023", "0.63794476", "0.6362809", "0.63626343", "0.636229", "0.63499254", "0.6339035", "0.633786", "0.6311713", "0.62907964", "0.62622595", "0.6257404", "0.6221796", "0.6186457", "0.61850184", "0.6142256", "0.614084", "0.6139566", "0.6133598", "0.61320084", "0.6122874", "0.6112945", "0.6112052", "0.61031723", "0.60907173", "0.60907173", "0.60907173", "0.60907173", "0.60907173", "0.60907173", "0.60907173", "0.60907173", "0.60613036", "0.6049179", "0.60423166", "0.6022771", "0.59827065", "0.5979125", "0.59763503", "0.5953049", "0.59519887", "0.5942242", "0.59376323", "0.59316474", "0.59276575", "0.5920798", "0.5917896", "0.59156543", "0.5895786", "0.5889164", "0.5882749", "0.5882749", "0.5879227", "0.58779895", "0.58772075", "0.58712375", "0.58640856", "0.5860908", "0.5854869", "0.5850917", "0.58099717", "0.5804034", "0.5797799", "0.5789243", "0.5783081", "0.57818943", "0.57796645", "0.57758605", "0.5775609", "0.5763874", "0.5763874", "0.5761445", "0.57592756", "0.5750439", "0.5749703", "0.57456535", "0.57424337", "0.57418025", "0.57418025", "0.57418025", "0.57418025", "0.57418025", "0.57418025", "0.57418025", "0.57405424", "0.57378745", "0.5734156", "0.57188046", "0.5710609", "0.57003784", "0.56908935", "0.5689707", "0.5689707" ]
0.0
-1
Only write if either the position is at the end or the current value is different.
@Override public void write(int b) throws IOException { byte ib = (byte) b; long p = df.position(); // If not at the end yet, if (p < df.size()) { // Get the current value, byte cur_b = df.get(); // If the value we are inserting is different, if (cur_b != ib) { // Reposition and put the new value, df.position(p); df.put(ib); // ++change_count; } } // At the end so write the byte, else { df.put(ib); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkNoDataAfterEnd(long pos) {\n if (!bytes.inside(pos, 4L))\n return true;\n if (pos <= bytes.writeLimit() - 4) {\n final int value = bytes.bytesStore().readVolatileInt(pos);\n if (value != 0) {\n String text;\n long pos0 = bytes.readPosition();\n try {\n bytes.readPosition(pos);\n text = bytes.toDebugString();\n } finally {\n bytes.readPosition(pos0);\n }\n throw new IllegalStateException(\"Data was written after the end of the message, zero out data before rewinding \" + text);\n }\n }\n return true;\n }", "public boolean isLastPosition() {\n return this.value == LAST_VALUE;\n }", "public void testMoveToEnd() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n test1.moveToEnd();\n test1.prev();\n assertTrue(test1.getValue().inRange(9));\n }", "void seekToLast();", "@Override\n public boolean add(T value) {\n if (!this.validate(this.cursor)) {\n this.ensureCapacity();\n }\n this.values[this.cursor++] = value;\n return this.values[this.cursor - 1].equals(value);\n }", "@Override\n\tpublic boolean isLast(Position P) throws InvalidPositionException {\n\t\treturn false;\n\t}", "void writeCurrentTrackData(int position, int value) {\n currentTrackData[position].write(position, value);\n }", "protected abstract void writeInternal(int index, int value);", "@Test\n public void endOffsetTest() throws IOException {\n String segmentName = \"log_current\";\n LogSegment segment = getSegment(segmentName, LogSegmentTest.STANDARD_SEGMENT_SIZE, true);\n try {\n long writeStartOffset = segment.getStartOffset();\n int segmentSize = 500;\n appendRandomData(segment, segmentSize);\n Assert.assertEquals(\"End offset is not as expected\", (writeStartOffset + segmentSize), segment.getEndOffset());\n // should be able to set end offset to something >= initial offset and <= file size\n int[] offsetsToSet = new int[]{ ((int) (writeStartOffset)), segmentSize / 2, segmentSize };\n for (int offset : offsetsToSet) {\n segment.setEndOffset(offset);\n Assert.assertEquals(\"End offset is not equal to what was set\", offset, segment.getEndOffset());\n Assert.assertEquals(\"File channel positioning is incorrect\", offset, segment.getView().getSecond().position());\n }\n // cannot set end offset to illegal values (< initial offset or > file size)\n int[] invalidOffsets = new int[]{ ((int) (writeStartOffset - 1)), ((int) ((segment.sizeInBytes()) + 1)) };\n for (int offset : invalidOffsets) {\n try {\n segment.setEndOffset(offset);\n Assert.fail(((\"Setting log end offset an invalid offset [\" + offset) + \"] should have failed\"));\n } catch (IllegalArgumentException e) {\n // expected. Nothing to do.\n }\n }\n } finally {\n closeSegmentAndDeleteFile(segment);\n }\n }", "void isLastPosition(boolean isLastPosition);", "public boolean insert(int val) {\n if (val2Index.containsKey(val)) return false;\n // 新元素插入到最后\n data.add(val);\n val2Index.put(val, data.size() - 1);\n return true;\n }", "default void assertAppendPermittedUnsafe(long address, LogData newEntry) throws DataOutrankedException, ValueAdoptedException {\n LogData oldEntry = read(address);\n if (oldEntry.getType()==DataType.EMPTY) {\n return;\n }\n if (newEntry.getRank().getRank()==0) {\n // data consistency in danger\n throw new OverwriteException();\n }\n int compare = newEntry.getRank().compareTo(oldEntry.getRank());\n if (compare<0) {\n throw new DataOutrankedException();\n }\n if (compare>0) {\n if (newEntry.getType()==DataType.RANK_ONLY && oldEntry.getType() != DataType.RANK_ONLY) {\n // the new data is a proposal, the other data is not, so the old value should be adopted\n ReadResponse resp = new ReadResponse();\n resp.put(address, oldEntry);\n throw new ValueAdoptedException(resp);\n } else {\n return;\n }\n }\n }", "@Test\n public void testEqualsReturnsFalseOnDifferentEndVal() throws Exception {\n setRecordFieldValue(otherRecord, \"end\", null);\n boolean equals = record.equals(otherRecord);\n\n assertThat(equals, is(false));\n\n equals = otherRecord.equals(record);\n\n assertThat(equals, is(false));\n }", "void flushBefore(long pos) throws IOException;", "public boolean insertLast(int value) {\n if (isFull()) {\n return false;\n }\n arr[tail] = value;\n tail = (tail + 1) % k;\n return true;\n\n }", "public synchronized void append(K key, V val) throws IOException {\n\n\t\t\tlong pos = data.sync();\n\t\t\t// Only write an index if we've changed positions. In a block compressed\n\t\t\t// file, this means we write an entry at the start of each block\n\t\t\t// position.set(pos); // point to current eof\n\t\t\tindex.append(new Pair<K, Long>(key, keySchema, pos, Schema\n\t\t\t\t\t.create(Type.LONG)));\n\n\t\t\tdata.append(new Pair<K, V>(key, keySchema, val, valueSchema)); // append\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\t\t\t\t\t\t\t\t\t\t\t// key/value\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\t\t\t\t\t\t\t\t\t\t\t// to data\n\t\t\tsize++;\n\t\t}", "@Override\n protected boolean shouldSwitchWriterInCurrentLocation(DecoratedKey key)\n {\n final long uncompressedBytesWritten = sstableWriter.currentWriter().getFilePointer();\n if (boundaries.advanceTo(key.getToken()) && uncompressedBytesWritten > 0)\n {\n logger.debug(\"Switching writer at boundary {}/{} index {}, with uncompressed size {} for {}.{}\",\n key.getToken(), boundaries.shardStart(),\n boundaries.shardIndex(),\n FBUtilities.prettyPrintMemory(uncompressedBytesWritten),\n cfs.getKeyspaceName(), cfs.getTableName());\n return true;\n }\n\n return false;\n }", "public synchronized boolean write(byte[] src, int offset, int bytesToWrite) {\n if (bytesToWrite > capacity) {\n return false;\n }\n if (bytesToWrite == 0) {\n return true;\n }\n if (writeHead + bytesToWrite <= capacity) {\n System.arraycopy(src, offset, buffer, writeHead, bytesToWrite);\n } else { // Data wraps around buffer edge.\n int entriesBeforeWrap = capacity - writeHead;\n System.arraycopy(src, offset, buffer, writeHead, entriesBeforeWrap);\n System.arraycopy(\n src, offset + entriesBeforeWrap, buffer, 0, bytesToWrite - entriesBeforeWrap);\n }\n writeHead = (writeHead + bytesToWrite) % capacity;\n cumulativeWritten += bytesToWrite;\n return true;\n }", "public void write(int datum) throws IOException {\n if (!_open)\n return;\n datum &= 0xff;\n long _here = position();\n\n // Are we synced up?\n if (_here == _digestvalidto) {\n\n // Yes, digest the byte and move the valid to pointer.\n _digest.update((byte) datum);\n _digestvalidto++; // JMC: Was missing.\n\n } // Otherwise, advancing of the position will destroy the digest sync.\n\n datum = _head.crypt((byte) datum, _here);\n _backing.write(datum);\n }", "private void invalidPosition(long position) {\n IllegalStateException ex = new IllegalStateException(\"Attempt to write to position=\" + position);\n Slf4jExceptionHandler.WARN.on(getClass(), \"Attempt to update header at position=\" + position, ex);\n throw ex;\n }", "public void write(WriteOnly data) {\n\t\tdata.writeData(\"new data\"); // Ok\n\t}", "public boolean insertLast(int value) {\n if (head == tail && size == capacity)\n return false;\n else {\n elementData[tail] = value;//由于tail初始时为0,在最左侧,即为双端队列\n //最左侧头端点:tail的位置;将value值插入进来后。\n tail = (tail + 1 + capacity) % capacity;//更新尾指针的指向指向前一个位置\n size++;\n return true;\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 }", "public static void endWrite()\r\n\t{\r\n\t\r\n\t}", "public boolean supportsWriteLockValuesComparison() {\r\n return true;\r\n }", "T set(Position<T> p, T data) throws IllegalStateException;", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "public boolean insertLast(int value) {\n if (isFull()) {\n return false;\n } else if (front == 0 && !isEmpty()) {\n int[] newElements = new int[capacitySize];\n System.arraycopy(elements, 0, newElements, 1, last);\n elements = newElements;\n front = 0;\n last++;\n elements[0] = value;\n } else if (front == 0 && isEmpty()) {\n elements[0] = value;\n last++;\n } else {\n elements[--front] = value;\n }\n return true;\n }", "private void flushWrite() throws IOException, BadDescriptorException {\n if (reading || !modes.isWritable() || buffer.position() == 0) return; // Don't bother\n \n int len = buffer.position();\n buffer.flip();\n int n = descriptor.write(buffer);\n \n if(n != len) {\n // TODO: check the return value here\n }\n buffer.clear();\n }", "public int syncWrite(byte[] data, int length)\n {\n return syncWrite(-1, data, length);\n }", "private void ensureWrite() throws IOException {\n if (!reading) return;\n resetForWrite();\n }", "<T> boolean shouldWriteValue(T value);", "protected void tryEnq(T x) {\n int tail2 = (tail + 1) % data.length; // 1, 3\n if (tail2 == head) // 1\n throw new BufferOverflowException(); // 1\n data[tail] = x; // 2\n tail = tail2; // 3\n }", "Position<T> addAfter(Position<T> p, T data) throws IllegalStateException;", "public boolean hasEndPosition() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "private static boolean isDirty(ArrayList<Integer> dirty, int position) {\n //if (dirty.size() % 2 == 0) //Extra failsafe. Shouldn't be necessary.\n for (int k = 0; k < dirty.size(); k+=2) \n if (position > dirty.get(k) && position < dirty.get(k+1)) \n return true;\n return false;\n }", "public boolean insertLast(int value) {\n if (isFull()) {\n return false;\n }\n queue[tail] = value;\n tail = moveRight(tail);\n return true;\n }", "protected boolean processSeekAdded(SeekInfoStruct seekInfo){return false;}", "boolean hasEndPosition();", "boolean hasEndPosition();", "public boolean hasEndPosition() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "boolean isSetEndPosition();", "@Test(expected = IllegalArgumentException.class)\n\tpublic void endGreaterException() {\n\n\t\tset.endAt(set.size() + 1);\n\t}", "void seek(long pos) throws IOException;", "protected abstract void forceEndValues();", "private void setLast() { this._last = true; }", "protected final void seek(final int value) {\r\n bPtr = value;\r\n }", "protected boolean continueOnWriteError() {\n/* 348 */ return true;\n/* */ }", "public boolean insert(T value) {\n if (value == null)\n return false;\n\n int prevSize = size;//record starting size\n\n root = insert( value, root );//helper method called\n\n return prevSize != size;//return true if size changed\n }", "@Override\r\n public boolean setLast(L last) {\r\n throw new UnsupportedOperationException(UNSUPPORTED);\r\n }", "boolean updateValue() {\n boolean ret;\n\n if (Math.abs(curUtilityValue - nextUtilityValue) < Math.abs(curUtilityValue) * MAX_ERR_PERCENT / 100)\n ret = true;\n else {\n ret = false;\n // System.out.println(\" no match cell: x: \"+x+\" y: \"+y);\n }\n curUtilityValue = nextUtilityValue;\n return ret;\n\n }", "void setLastChunk(Boolean aIsLastChunk);", "@Override\n protected boolean continueOnWriteError() {\n return true;\n }", "private void updateIfNeeded(int i, int j, int newVal) {\n\t\tint value = buffer.get(i, j);\n\t\tif (newVal < value) {\n\t\t\tbuffer.set(i, j, newVal);\n\t\t}\n\t}", "private static synchronized void writeTransaction( StmTransaction transaction ) {\n\n // Check for conflicts.\n for ( AbstractVersionedItem versionedItem : transaction.versionedItemsRead ) {\n versionedItem.ensureNotWrittenByOtherTransaction();\n }\n\n // Set the revision number to a committed value.\n transaction.targetRevisionNumber.set( lastCommittedRevisionNumber.incrementAndGet() );\n\n }", "public boolean moveLast(\n )\n {\n int lastIndex = objects.size()-1;\n while(index < lastIndex)\n {moveNext();}\n\n return getCurrent() != null;\n }", "public static boolean wrPos(short xx, short yy) {\n\t\tif (cu < 1009) {\n\t\t\tstore.pos[cu] = (byte) (xx);\n\t\t\txx >>= 8;\n\t\t\tstore.pos[cu + 1] = (byte) (xx);\n//--------------------------------------------\n\t\t\tstore.pos[cu + 2] = (byte) (yy);\n\t\t\tyy >>= 8;\n\t\t\tstore.pos[cu + 3] = (byte) (yy);\n\t\t\tover = false;\n\t\t\tcu = cu + 4;\n\t\t} else {\n\t\t\tover = true;\n\n\t\t}\n\t\treturn !over;\n\t}", "@Override\n public boolean add(E value) {\n if (this.values.length == this.index) {\n this.grow();\n }\n this.modCount++;\n this.values[index++] = value;\n return true;\n }", "public boolean update(int pos, T data) {\n if (pos > nrOfElements) {\n throw new IllegalArgumentException(\"Position out of range\");\n }\n\n // If element is the first\n if (pos == 1 || pos == 0) {\n this.first.setData(data);\n }\n\n Node walker = this.first;\n for (int i = 0; i < pos - 1; i++) {\n walker = walker.next;\n }\n\n // Update data\n walker.setData(data);\n\n return true;\n }", "public boolean moveToFirst() {\r\n\t\t\tpointer = 0;\r\n\t\t\treturn !pointerOut();\r\n\t\t}", "public void testCurrPos() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n for (int i = 0; i < 10; i++) {\n test1.next();\n }\n assertEquals(10, test1.currPos());\n }", "void seek(long position) throws IOException;", "private boolean reachedEnd() {\n return current >= source.length();\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void endLesserException() {\n\n\t\tset.beginAt(2);\n\t\tset.endAt(1);\n\t}", "public void testIsAtEnd() {\n assertTrue(test1.isAtEnd());\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n assertFalse(test1.isAtEnd());\n for (int i = 0; i < 10; i++) {\n test1.next();\n }\n assertTrue(test1.isAtEnd());\n }", "boolean hasFinalData()\r\n/* 297: */ {\r\n/* 298:322 */ return this.tail.readIndex != this.tail.get();\r\n/* 299: */ }", "public boolean insert(int val) {\n if(!valueIndex.containsKey(val)){\n valueIndex.put(val,data.size());\n data.add(val);\n return true;\n }\n return false;\n }", "protected void insertEnd(T value) {\r\n\t\tSNode<T> iterator = head;\r\n\t\twhile (iterator.getPrev() != this.tail) {\r\n\t\t\titerator = iterator.getPrev();\r\n\t\t}\r\n\t\titerator.setPrev(new SNode<T>(value, this.tail));\r\n\t\tsize++;\r\n\t}", "public void addWritten(byte[] value) {\n\n writeSetLock.lock();\n writeSet.add(new TimestampValuePair(ets, value));\n writeSetLock.unlock();\n }", "@Override\r\n\tpublic boolean canSeekBackward() {\n\t\treturn true;\r\n\t}", "public boolean set(int index, E value){\n if (index > maxIndex || index < 0){\n System.out.println(\"Error while replacing value. Your index \" + index + \" is out of bound of array\");\n return false;\n }\n\n array[index] = value;\n return true;\n }", "@Override\r\n\tpublic boolean savePosition(Position post) throws Exception {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean incrementToken() throws IOException {\n\t\treturn false;\r\n\t}", "@Override\n public boolean hasNext() {\n return this.position != values.length && values[this.position] != null;\n }", "@Override\n public <V> long writtenLength(V value, ValueAccessor<V> accessor)\n {\n validate(value, accessor);\n return 0;\n }", "public void write(long timeStampFirst, long timestampLast);", "@Override\n\tpublic boolean getCanSeek()\n\t{\n\t\treturn false;\n\t}", "@Override\n public boolean write() throws Exception {\n if (count >= size) return true;\n if (dest == null) dest = new ChannelOutputDestination(channel);\n while (count < size) {\n final int n = location.transferTo(dest, false);\n if (n <= 0) break;\n count += n;\n channelCount = count;\n if (debugEnabled) log.debug(\"read {} bytes for {}\", n, this);\n }\n return count >= size;\n }", "@Override\n\tpublic void setNext(ByteBuffer buff, Integer position) {\n\t\tbyte[] tmp = new byte[3];\n\t\tbuff.get(tmp);\n\t\tbuff.position(position);\n\t\tif (new String(tmp) == \"GSO\") this.hasNext = true;\n\t\telse this.hasNext = false;\n\t}", "public void checkWriteLock() {\n checkNotDeleted();\n super.checkWriteLock();\n }", "public boolean HasOneValueInTheSpace()\n {\n return _valuesToPut.size() == 1;\n }", "public void removeWritten(byte[] value) {\n\n writeSetLock.lock();\n \n Set<TimestampValuePair> temp = (HashSet<TimestampValuePair>) writeSet.clone();\n \n for (TimestampValuePair rv : temp) {\n\n if (Arrays.equals(rv.getValue(), value)) writeSet.remove(rv);\n }\n writeSetLock.unlock();\n\n }", "public boolean save() {\n\t\t\tif (mmaped) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tfinal boolean ret = storage.set(index, buf);\n\t\t\tstorage.release(buf);\n\t\t\tbuf = null;\n\t\t\treturn ret;\n\t\t}", "public final long getWritePosition() {\n\t\treturn m_txpos;\n\t}", "private boolean UpdateToken()\n\t{\n\t\ttry\n\t\t{\n\t\t\tToken tempToken = scanner.GetNextToken();\n\t\t\tif(tempToken.GetTokenType() == TokenType.ERROR)\n\t\t\t{\n\t\t\t\tcurrentToken = tempToken;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(tempToken.GetTokenType() == TokenType.META)\n\t\t\t{\n\t\t\t\tnewFile.write(tempToken.GetTokenName() + \"\\n\");\n\t\t\t\treturn UpdateToken();\n\t\t\t}\n\t\t\tcurrentToken = tempToken;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t\treturn true;\n\t}", "Position<T> addLast(T data);", "@Override public boolean set_impl(int idx, long l) { return false; }", "public void set (Object element)\n {\n if(!isAfterNext){\n throw new IllegalStateException(); \n }\n position.data = element;\n \n \n }", "public boolean insert(int val) {\n if (valueToIndex.containsKey(val)) return false;\n //将元素放入arraylist,并将val和index的映射放入map\n values.add(val);\n valueToIndex.put(val, values.size() - 1);\n return true;\n }", "protected abstract void write (Object val);", "synchronized boolean resetWasUsed() {\n\n boolean result = lastValue != currValue;\n\n lastValue = currValue;\n\n return result;\n }", "public DocumentMutation append(String path, byte[] value, int offset, int len);", "@Override\n public void setPosition(int position) throws IOException\n {\n if (position < 0)\n {\n throw new IOException(\"position is negative\");\n }\n if (position >= randomAccessRead.length())\n {\n throw new IOException(\"New position is out of range \" + position + \" >= \"\n + randomAccessRead.length());\n }\n randomAccessRead.seek(position);\n }", "boolean isUsedForWriting();", "@Override\n public boolean insert(T val) {\n List<Node> path = new ArrayList<>();\n boolean[] wasInserted = new boolean[1];\n root = insertRec(val, root, path, wasInserted);\n splay(path.get(0), path.subList(1, path.size()));\n\n if (wasInserted[0]) {\n ++this.size;\n return true;\n }\n return false;\n }", "public abstract void writeRange(int startElement, int count,\r\n ByteBuffer src, int offsetBytes, boolean bForward);", "@Override\r\n public boolean appendEnd(final Appendable out , final Object... OtherData) {\r\n return false;\r\n }", "public boolean insert(int val) {\n if (location.containsKey(val)) {\n return false;\n }\n\n nums.add(val);\n location.put(val, nums.size() - 1);\n return true;\n }", "boolean write(byte[] data, int offset, int length, long time);" ]
[ "0.5915142", "0.5702846", "0.55076647", "0.54362667", "0.5390217", "0.53525", "0.53426206", "0.5334821", "0.5320361", "0.5314965", "0.5267663", "0.5228525", "0.52086735", "0.52055156", "0.5182384", "0.5159957", "0.51531225", "0.5148683", "0.5145509", "0.51446974", "0.5127417", "0.51256686", "0.5119169", "0.5081852", "0.50729996", "0.50580657", "0.50566226", "0.50566226", "0.5036312", "0.5024206", "0.5017711", "0.50106573", "0.5008845", "0.50036025", "0.4996215", "0.49903798", "0.49880734", "0.4980125", "0.49735552", "0.49717128", "0.49717128", "0.49675095", "0.49193442", "0.49192527", "0.4914372", "0.49136892", "0.49124885", "0.49101555", "0.49049813", "0.490112", "0.48981208", "0.4894874", "0.48900756", "0.4881188", "0.48663944", "0.48603803", "0.48595476", "0.48553053", "0.48538426", "0.48480794", "0.4840325", "0.4810924", "0.4805387", "0.47902954", "0.47894573", "0.47858706", "0.4781965", "0.47728783", "0.47680143", "0.476799", "0.47670716", "0.4759515", "0.47434357", "0.47364658", "0.4725295", "0.47240898", "0.47135296", "0.470494", "0.47036693", "0.4699372", "0.46988326", "0.46964994", "0.4692708", "0.4689229", "0.4683689", "0.46825165", "0.4680169", "0.46707645", "0.46685964", "0.46666315", "0.4665853", "0.46655503", "0.46648532", "0.4660564", "0.46601945", "0.46553355", "0.46485835", "0.46441308", "0.46429384", "0.46411344" ]
0.5692517
2
If the size being copied is not zero, generate error
@Override public void copyFrom(DataFile from, long size) { if (size > 0) { throw emptyDataFileException(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void checkSize(){\n if (size == data.length){\n resize( 2 * data.length);\n }\n }", "private void checkAndModifySize() {\r\n if (size == data.length * LOAD_FACTOR) {\r\n resizeAndTransfer();\r\n }\r\n }", "protected void _checkInvalidCopy(Class<?> exp)\n/* */ {\n/* 335 */ if (getClass() != exp) {\n/* 336 */ throw new IllegalStateException(\"Failed copy(): \" + getClass().getName() + \" (version: \" + version() + \") does not override copy(); it has to\");\n/* */ }\n/* */ }", "@Override\r\npublic int getNumcopy() {\n\treturn super.getNumcopy();\r\n}", "@Test(timeout = 4000)\n public void test55() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n String string0 = \"not\";\n jSTerm0.add((Object) \"not\");\n // Undeclared exception!\n try { \n jSTerm0.clonePF();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1 >= 1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "void copy(int offset, int size);", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n PhdBuilder phdBuilder0 = null;\n try {\n phdBuilder0 = new PhdBuilder((Phd) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // phd to copy can not be null\n //\n verifyException(\"org.jcvi.jillion.assembly.consed.phd.PhdBuilder\", e);\n }\n }", "private void ensureCapacity() {\n if(size() >= (0.75 * data.length)) // size() == curSize\n resize(2 * size());\n }", "@SuppressWarnings(\"unchecked\")\n /* #end */\n public void trimToSize()\n {\n\t\tthrow new UnsupportedOperationException(lengthChangeError);\n }", "@Override\n protected long transfer0(@NonNull DataOut dst, @Positive long count) throws NoMoreSpaceException, IOException {\n count = min(count, this.delegate.remaining());\n int oldLimit = this.delegate.limit();\n this.delegate.limit(this.delegate.position() + (int) count);\n int read = dst.write(this.delegate);\n checkState(read == count, \"only transferred %s/%s bytes?!?\", read, count);\n this.delegate.limit(oldLimit);\n return count;\n }", "@Override\n public int getSize() throws Exception {\n return 0;\n }", "Prototype makeCopy();", "public Size(Size toDuplicate)\r\n {\r\n assert(true);\r\n \tamount = toDuplicate.amount;\r\n type = toDuplicate.type;\r\n }", "public boolean hasUnderflow() {\r\n\t\t\treturn (data.size() <= 0);\r\n\t\t}", "@Override\n public Operator visitCopy(Copy operator)\n {\n throw new AssertionError();\n }", "public void outOfBoundsError() {\r\n\t\tSystem.out.println(\"\\nYou moved out of bounds, choose again.\");\r\n\t}", "public ByteBuf copy(int index, int length)\r\n/* 524: */ {\r\n/* 525:538 */ checkIndex(index, length);\r\n/* 526:539 */ byte[] copiedArray = new byte[length];\r\n/* 527:540 */ System.arraycopy(this.array, index, copiedArray, 0, length);\r\n/* 528:541 */ return new UnpooledHeapByteBuf(alloc(), copiedArray, maxCapacity());\r\n/* 529: */ }", "private boolean isEmpty() { return getSize() == 0; }", "public void testSun13AccuracyNull_Shallow() throws Exception {\n assertEquals(\"null memory size not correct\", 4,\n test.getShallowMemoryUsage(null).getUsedMemory());\n }", "@Test\r\n public void NegativeTestSize1() {\r\n Assert.assertNotEquals(1, set1.size());\r\n }", "private void checkSize(int desiredSize)\n {\n if (desiredSize > MAX_SIZE)\n throw new IllegalStateException(\"Attempt to create a hash table \" +\n \"array whose size exceeds \" +\n \"allowed maximum.\");\n }", "public static int size_dest() {\n return (8 / 8);\n }", "@Override\n public long size() {\n return 0;\n }", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(2962);\n FieldWriter fieldWriter0 = new FieldWriter(classWriter0, (-6), \"|72q2<&vyM/Gk\", \"|72q2<&vyM/Gk\", \"|72q2<&vyM/Gk\", \"|72q2<&vyM/Gk\");\n ByteVector byteVector0 = classWriter0.pool;\n byteVector0.length = 1835;\n // Undeclared exception!\n try { \n fieldWriter0.getSize();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n }\n }", "public void testToByteArrayDestOffset()\n {\n // constant value for use in this test\n final int EXTRA_DATA_LENGTH = 9;\n \n // lets test some error cases\n // first, passing null and 0\n try\n {\n EthernetAddress ethernet_address = new EthernetAddress(0L);\n ethernet_address.toByteArray((byte[])null, 0);\n // if we reached here we failed because we didn't get an exception\n fail(\"Expected exception not caught\");\n }\n catch (NullPointerException ex)\n {\n // this is the success case so do nothing\n }\n catch (Exception ex)\n {\n fail(\"Caught unexpected exception: \" + ex);\n }\n \n // now an array that is too small\n try\n {\n EthernetAddress ethernet_address = new EthernetAddress(0L);\n byte[] ethernet_address_byte_array =\n new byte[ETHERNET_ADDRESS_ARRAY_LENGTH - 1];\n ethernet_address.toByteArray(ethernet_address_byte_array, 0);\n // if we reached here we failed because we didn't get an exception\n fail(\"Expected exception not caught\");\n } catch (IllegalArgumentException ex) {\n // this is the success case so do nothing\n } catch (Exception ex) {\n fail(\"Caught unexpected exception: \" + ex);\n }\n\n // now an index that is negative\n try {\n EthernetAddress ethernet_address = new EthernetAddress(0L);\n byte[] ethernet_address_byte_array =\n new byte[ETHERNET_ADDRESS_ARRAY_LENGTH];\n ethernet_address.toByteArray(ethernet_address_byte_array, -1);\n // if we reached here we failed because we didn't get an exception\n fail(\"Expected exception not caught\");\n } catch (IllegalArgumentException ex) {\n // this is the success case so do nothing\n } catch (Exception ex) {\n fail(\"Caught unexpected exception: \" + ex);\n }\n \n // now an index that is too big\n try\n {\n EthernetAddress ethernet_address = new EthernetAddress(0L);\n byte[] ethernet_address_byte_array =\n new byte[ETHERNET_ADDRESS_ARRAY_LENGTH];\n ethernet_address.toByteArray(\n ethernet_address_byte_array, ETHERNET_ADDRESS_ARRAY_LENGTH);\n // if we reached here we failed because we didn't get an exception\n fail(\"Expected exception not caught\");\n } catch (IllegalArgumentException ex) {\n // this is the success case so do nothing\n } catch (Exception ex) {\n fail(\"Caught unexpected exception: \" + ex);\n }\n \n // now an index that is in the array,\n // but without enough bytes to read ETHERNET_ADDRESS_ARRAY_LENGTH\n try {\n EthernetAddress ethernet_address = new EthernetAddress(0L);\n byte[] ethernet_address_byte_array =\n new byte[ETHERNET_ADDRESS_ARRAY_LENGTH];\n ethernet_address.toByteArray(ethernet_address_byte_array, 1);\n // if we reached here we failed because we didn't get an exception\n fail(\"Expected exception not caught\");\n } catch (IllegalArgumentException ex) {\n // this is the success case so do nothing\n } catch (Exception ex) {\n fail(\"Caught unexpected exception: \" + ex);\n }\n \n // we'll test making a couple EthernetAddresss and then check\n // that toByteArray\n // returns the same value in byte form as used to create it\n \n // here we'll test the null EthernetAddress at offset 0\n EthernetAddress ethernet_address = new EthernetAddress(0L);\n byte[] test_array = new byte[ETHERNET_ADDRESS_ARRAY_LENGTH];\n Arrays.fill(test_array, (byte)'x');\n ethernet_address.toByteArray(test_array, 0);\n assertEthernetAddressArraysAreEqual(\n NULL_ETHERNET_ADDRESS_BYTE_ARRAY, 0, test_array, 0);\n \n // now test a non-null EthernetAddress\n ethernet_address =\n new EthernetAddress(MIXED_CASE_VALID_ETHERNET_ADDRESS_STRING);\n Arrays.fill(test_array, (byte)'x');\n ethernet_address.toByteArray(test_array);\n assertEthernetAddressArraysAreEqual(\n VALID_ETHERNET_ADDRESS_BYTE_ARRAY, 0, test_array, 0);\n \n // now test a null EthernetAddress case with extra data in the array\n ethernet_address = new EthernetAddress(0L);\n test_array =\n new byte[ETHERNET_ADDRESS_ARRAY_LENGTH + EXTRA_DATA_LENGTH];\n Arrays.fill(test_array, (byte)'x');\n ethernet_address.toByteArray(test_array, 0);\n assertEthernetAddressArraysAreEqual(\n NULL_ETHERNET_ADDRESS_BYTE_ARRAY, 0, test_array, 0);\n for (int i = 0; i < EXTRA_DATA_LENGTH; i++) {\n assertEquals(\"Expected array fill value changed\",\n (byte)'x',\n test_array[i + ETHERNET_ADDRESS_ARRAY_LENGTH]);\n }\n \n // now test a null EthernetAddress case with extra data in the array\n ethernet_address = new EthernetAddress(0L);\n test_array = new byte[ETHERNET_ADDRESS_ARRAY_LENGTH + EXTRA_DATA_LENGTH];\n Arrays.fill(test_array, (byte)'x');\n ethernet_address.toByteArray(test_array, EXTRA_DATA_LENGTH/2);\n assertEthernetAddressArraysAreEqual(\n NULL_ETHERNET_ADDRESS_BYTE_ARRAY, 0,\n test_array, EXTRA_DATA_LENGTH/2);\n for (int i = 0; i < EXTRA_DATA_LENGTH/2; i++)\n {\n assertEquals(\"Expected array fill value changed\",\n (byte)'x',\n test_array[i]);\n assertEquals(\"Expected array fill value changed\",\n (byte)'x',\n test_array[i + ETHERNET_ADDRESS_ARRAY_LENGTH +\n EXTRA_DATA_LENGTH/2]);\n }\n \n // now test a good EthernetAddress case with extra data in the array\n ethernet_address =\n new EthernetAddress(MIXED_CASE_VALID_ETHERNET_ADDRESS_STRING);\n test_array =\n new byte[ETHERNET_ADDRESS_ARRAY_LENGTH + EXTRA_DATA_LENGTH];\n Arrays.fill(test_array, (byte)'x');\n ethernet_address.toByteArray(test_array, 0);\n assertEthernetAddressArraysAreEqual(\n VALID_ETHERNET_ADDRESS_BYTE_ARRAY, 0, test_array, 0);\n for (int i = 0; i < EXTRA_DATA_LENGTH; i++)\n {\n assertEquals(\"Expected array fill value changed\",\n (byte)'x',\n test_array[i + ETHERNET_ADDRESS_ARRAY_LENGTH]);\n }\n\n // now test a good EthernetAddress case with extra data in the array\n ethernet_address =\n new EthernetAddress(MIXED_CASE_VALID_ETHERNET_ADDRESS_STRING);\n test_array =\n new byte[ETHERNET_ADDRESS_ARRAY_LENGTH + EXTRA_DATA_LENGTH];\n Arrays.fill(test_array, (byte)'x');\n ethernet_address.toByteArray(test_array, EXTRA_DATA_LENGTH/2);\n assertEthernetAddressArraysAreEqual(\n VALID_ETHERNET_ADDRESS_BYTE_ARRAY, 0,\n test_array, EXTRA_DATA_LENGTH/2);\n for (int i = 0; i < EXTRA_DATA_LENGTH/2; i++)\n {\n assertEquals(\"Expected array fill value changed\",\n (byte)'x',\n test_array[i]);\n assertEquals(\"Expected array fill value changed\",\n (byte)'x',\n test_array[i + ETHERNET_ADDRESS_ARRAY_LENGTH +\n EXTRA_DATA_LENGTH/2]);\n }\n }", "@Override\n public int size() {\n return 0;\n }", "private void ensureCapacity() {\n int newLength = (this.values.length * 3) / 2 + 1;\n Object[] newValues = new Object[newLength];\n System.arraycopy(this.values, 0, newValues, 0, this.values.length);\n this.values = newValues;\n }", "@Override\n public int size() { return size; }", "public static void arrayNegativeSizeException() {\n int[] a = new int[-1]; // Exception in thread \"main\" java.lang.NegativeArraySizeException\n System.out.println(a.length);\n\n }", "@Override\n public void replicateFrom(DataFile from) {\n if (from.size() > 0) {\n throw emptyDataFileException();\n }\n }", "@Override\n public boolean isFull(){\n return (count == size);\n \n }", "public NotEmptyException() {\n \tsuper(\"Object was occupied.\");\n }", "public int handleCopyError(String source, String target, int errCode, String errMsg);", "@Override\r\n\tpublic Buffer copy() {\n\t\t\r\n\t\treturn null;\r\n\t}", "public ByteBuf copy(int index, int length)\r\n/* 691: */ {\r\n/* 692:700 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 693:701 */ return super.copy(index, length);\r\n/* 694: */ }", "public boolean checkSize(int size) {\r\n\t\tboolean sizeEmpty = size == 0;\r\n\t\treturn sizeEmpty;\r\n\t}", "protected void ensureBufferSpace(int expectedAdditions)\n {\n\t\tthrow new UnsupportedOperationException(lengthChangeError);\n }", "private static void assumeCanAllocateBufferSize(final int size) {\n byte[] bytes = null;\n try {\n bytes = new byte[size];\n } catch (final OutOfMemoryError ignore) {\n // ignore\n }\n assumeTrue(bytes != null, \"Cannot allocate array of size: \" + size);\n }", "private final int copyBufferedBytes(ByteList dst, int len) {\n int bytesCopied = 0;\n \n dst.ensure(Math.min(len, bufferedInputBytesRemaining()));\n \n if (bytesCopied < len && ungotc != -1) {\n ++bytesCopied;\n dst.append((byte) ungotc);\n ungotc = -1;\n }\n \n //\n // Copy out any buffered bytes\n //\n if (bytesCopied < len && buffer.hasRemaining()) {\n int n = Math.min(buffer.remaining(), len - bytesCopied);\n dst.append(buffer, n);\n bytesCopied += n;\n }\n \n return bytesCopied;\n }", "@Override\n public long getExactSizeIfKnown() {\n return -1;\n }", "public void sizeHasBeenSet() {\n isSizeSet = true;\n }", "int getLostedSize();", "@Test\n\tpublic void testCopy2() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tSLLSet copied = listObj2.copy();\n\t\tcopied.add(-1);\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tString expectedCopied = \"-1, 1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\t\tint expectedCopiedSize = 6;\n\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t\tassertEquals(expectedCopiedSize, copied.getSize());\n\t\tassertEquals(expectedCopied, copied.toString());\n\n\t}", "private void ensureCapacity()\n\t{\n\t\tif (elements.length == size)\n\t\t\telements = Arrays.copyOf(elements, 2 * size + 1);\n\t}", "@java.lang.Override\n public boolean hasSize() {\n return size_ != null;\n }", "@java.lang.Override\n public boolean hasSize() {\n return size_ != null;\n }", "@Override\r\n public boolean isEmpty() {\n return size == 0;\r\n }", "public boolean isEmtpyBySize(){\n\t\treturn size == 0;\n\t}", "private boolean outOfBounds(long n) {\n return n < 0 || n >= getSize();\n }", "@SuppressWarnings(\"unchecked\") // this will stop Java complaining about the cast\n private void ensureCapacity() {\n if (count == data.length) { //if count is equal to the length of data a new array is made doubling the initial size, it then makes the data collection == to the temp collection\n E[] temp = (E[]) new String[data.length * 2]; //effectivly increasing the size of the array\n for (int i = 0; i < data.length; i++) {\n temp[i] = data[i];\n }\n data = temp;\n }\n }", "@Override\n public int getBufferSize() {\n return 0;\n }", "public void testCtorWithWrongTransferable() {\n try {\n new PasteAssociationAction(new ClassElementsTransfer(new DependencyImpl()), namespace);\n fail(\"InvalidDataContentException is expected.\");\n } catch (InvalidDataContentException idce) {\n // pass\n }\n }", "private void checkIfArrayFull() {\n\n if(this.arrayList.length == this.elementsInArray) {\n size *= 2;\n arrayList = Arrays.copyOf(arrayList, size);\n }\n }", "public void copy() {\n\n\t}", "private void detectExcessSize() {\n final String overflow = getElement().getStyle().getProperty(\n \"overflow\");\n getElement().getStyle().setProperty(\"overflow\", \"hidden\");\n if (BrowserInfo.get().isIE()\n && getElement().getPropertyInt(\"clientWidth\") == 0) {\n // can't detect possibly themed border/padding width in some\n // situations (with some layout configurations), use empty div\n // to measure width properly\n DivElement div = Document.get().createDivElement();\n div.setInnerHTML(\"&nbsp;\");\n div.getStyle().setProperty(\"overflow\", \"hidden\");\n div.getStyle().setProperty(\"height\", \"1px\");\n getElement().appendChild(div);\n excessWidth = getElement().getOffsetWidth()\n - div.getOffsetWidth();\n getElement().removeChild(div);\n } else {\n excessWidth = getElement().getOffsetWidth()\n - getElement().getPropertyInt(\"clientWidth\");\n }\n excessHeight = getElement().getOffsetHeight()\n - getElement().getPropertyInt(\"clientHeight\");\n \n getElement().getStyle().setProperty(\"overflow\", overflow);\n }", "private void checkCopy(IAstNode node, IAstNode copy) {\n \t\tassertEquals(node.getClass(), copy.getClass());\n \t\tassertFalse(node.toString(), node == copy);\n \t\tif (node.getParent() != null)\n \t\t\tassertFalse(node.toString(), node.getParent() == copy.getParent());\n \t\tIAstNode[] kids = node.getChildren();\n \t\tIAstNode[] copyKids = copy.getChildren();\n \t\tassertEquals(node.toString() + \": children count differ\", kids.length, copyKids.length);\n \t\tif (node instanceof IAstTypedNode)\n \t\t\tassertEquals(node.toString() + \": types differ\", ((IAstTypedNode) node).getType(), ((IAstTypedNode) copy).getType());\n \t\t\n \t\tif (node instanceof IAstScope) {\n \t\t\tIScope scope = ((IAstScope) node).getScope();\n \t\t\tIScope copyScope = ((IAstScope) copy).getScope();\n \t\t\tassertFalse(node.toString(), scope == copyScope);\n \t\t\tassertEquals(node.toString() + \": scope count\", scope.getSymbols().length, copyScope.getSymbols().length);\n \t\t\t\n \t\t\tfor (ISymbol symbol : scope) {\n \t\t\t\tISymbol copySym = copyScope.get(symbol.getUniqueName());\n \t\t\t\tassertSame(copyScope, copySym.getScope());\n \t\t\t\tassertEquals(symbol+\"\", symbol, copySym);\n \t\t\t\t// a symbol may refer to dead code\n \t\t\t\tif (symbol.getDefinition() == null || symbol.getDefinition().getParent() != null)\n \t\t\t\t\tassertEquals(symbol+\"\", symbol.getDefinition(), copySym.getDefinition());\n \t\t\t\tassertFalse(symbol+\"\", symbol == copySym);\n \t\t\t\tassertFalse(symbol+\"\", symbol.getDefinition() != null && symbol.getDefinition() == copySym.getDefinition());\n \t\t\t\tif (symbol.getDefinition() != null) {\n \t\t\t\t\tassertFalse(symbol+\"\", symbol.getDefinition() == copySym.getDefinition());\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tassertEquals(node.toString() + \": scopes differ\", scope, copyScope);\n \t\t}\n \t\t\n \t\tfor (int i = 0; i < kids.length; i++) {\n \t\t\tassertSame(copy+\"\", copy, copyKids[i].getParent());\n \t\t\t// look out for dead definitions\n \t\t\tif (kids[i].getParent() == copy)\n \t\t\t\tcheckCopy(kids[i], copyKids[i]);\n \t\t}\n \t\t\n \t\t// now that a rough scan worked, check harder\n \t\tassertEquals(node.toString() + \": #equals()\", node, copy);\n \t\t\n \t\tassertEquals(node.toString() + \": #hashCode()\", node.hashCode(), copy.hashCode());\n \t}", "public int getProcessedDataLength() { return destPos; }", "private CoderResult _malformed (final ByteBuffer in)\r\n {\r\n in.position (in.position () - 1);\r\n return CoderResult.malformedForLength (1);\r\n }", "private void ensureCapacity() {\n\t\n\t\tif (elements.length == size) {\n\t\t\tT[] oldElements = elements;\n\t\t\t\n\t\t\telements = (T[]) new Object[2 * elements.length + 1];\n\t\t\t\n\t\t\tSystem.arraycopy(oldElements, 0, elements, 0, size);\n\t\t\n\t\t}\n\t\n\t}", "@Override\r\npublic void setNumcopy(int numcopy) {\n\tsuper.setNumcopy(numcopy);\r\n}", "@Override\n public void ensureCapacity(int index) {\n\n }", "private boolean isEmpty() {\n return dataSize == 0;\n }", "@Override\r\n\tpublic int size() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int size() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int size() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int size() {\n\t\treturn 0;\r\n\t}", "public ByteArray copy(int length)\n\t{\n\t\t// holds the byte array to return\n\t\tbyte[] byteReturn = new byte[length];\n\t\t\n\t\t// fill the array with byte 0\n\t\tArrays.fill(byteReturn, (byte) 0);\n\t\t\n\t\t// determine the smaller number\n\t\tint smallerLength = (bytes.length < length ? bytes.length : length);\n\t\t\n\t\t// loop until the smaller length\n\t\tfor (int i = 0; i < smallerLength; i++)\n\t\t{\n\t\t\tbyteReturn[i] = bytes[i];\n\t\t}\n\t\t\n\t\treturn new ByteArray(byteReturn);\n\t}", "@Override\npublic int getTotalSize() {\n\treturn 0;\n}", "private final int copyBufferedBytes(byte[] dst, int off, int len) {\n int bytesCopied = 0;\n \n if (ungotc != -1 && len > 0) {\n dst[off++] = (byte) ungotc;\n ungotc = -1;\n ++bytesCopied;\n }\n \n final int n = Math.min(len - bytesCopied, buffer.remaining());\n buffer.get(dst, off, n);\n bytesCopied += n;\n \n return bytesCopied;\n }", "@Override\n public int getSize() {return 0;}", "private String outOfBoundsMsg(final long index) {\r\n\t\treturn \"Index: \" + index + \", Size: \" + size;\r\n\t}", "@Override\r\n\t\t\tpublic long size() {\n\t\t\t\treturn 0;\r\n\t\t\t}", "@LargeTest\n public void testCopy() {\n TestAction ta = new TestAction(TestName.COPY);\n runTest(ta, TestName.COPY.name());\n }", "@Override\n public int size() {\n return size;\n }", "@Override\n public int size() {\n return size;\n }", "@Override\n public int deepCopy(AbstractRecord other)\n {\n return 0;\n }", "Buffer copy();", "boolean isFull() {return pointer==size;}", "public int size() { return 0; }", "@Override\n public int getSize() {\n return 0;\n }", "static void setNotCopying(){isCopying=false;}", "@Override\n\tpublic int size() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int size() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int size() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int size() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int size() {\n\t\treturn 0;\n\t}", "@Test\r\n\tpublic void testCopy() {\r\n\t\tCMLLattice lattice = (CMLLattice) lattice1.copy();\r\n\t\tAssert.assertEquals(\"copy\", 3, lattice.getLatticeVectorElements()\r\n\t\t\t\t.size());\r\n\t\tCMLLatticeVectorTest.assertEquals(\"copy\", new double[] { 10., 6., 4. },\r\n\t\t\t\tlattice.getLatticeVectorElements().get(0), EPS);\r\n\t}", "@Override\r\n \tpublic int size() {\r\n \t\t// TODO\r\n \t\treturn size;\r\n \t}", "@Override\n public int getSize() {\n\treturn 0;\n }", "@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}", "public ByteBuf writeZero(int length)\r\n/* 631: */ {\r\n/* 632:640 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 633:641 */ return super.writeZero(length);\r\n/* 634: */ }", "public boolean isEmpty(){\r\n return currentSize == 0;\r\n }", "public LinkedListIsEmptyException(String error){\n super(error);\n }", "static protected void copyMemory(int source[],int soffset,int dest[],int doffset,int size)\n\t{\n\t\tSystem.arraycopy(source,soffset,dest,doffset,size);\n\t}", "@Override\n\t\t\tpublic int size() {\n\t\t\t\treturn 0;\n\t\t\t}", "@Override\n\tpublic int remainingCapacity() {\n\t\treturn 0;\n\t}", "@Override\n public int size(){\n return size;\n }", "@Override\n\t\tpublic int size() {\n\t\t\treturn 0;\n\t\t}", "@Test\n public void zeroSize(){\n Assert.assertEquals(0, rf.size());\n }", "private void checkRange(int index) {\n if ((index < 0 || index >= curSize))\n throw new IndexOutOfBoundsException(\"Index: \" + index + \" is out of bounds. Size = \" + size());\n }" ]
[ "0.63696986", "0.6155006", "0.5942964", "0.5916741", "0.5714102", "0.56868005", "0.5685506", "0.5614333", "0.56131077", "0.55167246", "0.54334867", "0.5422505", "0.5421179", "0.540624", "0.5397402", "0.53929806", "0.53893894", "0.5383991", "0.537804", "0.5370513", "0.5367696", "0.53603774", "0.5351181", "0.53436106", "0.5340033", "0.5334357", "0.53251505", "0.5305362", "0.5303669", "0.5303437", "0.52987736", "0.52963936", "0.5294615", "0.5281117", "0.52748275", "0.52745384", "0.5269412", "0.52559006", "0.5254094", "0.52459335", "0.5245773", "0.5245514", "0.5243269", "0.5234781", "0.5226921", "0.5226921", "0.52263373", "0.5216205", "0.5211551", "0.5208637", "0.5207777", "0.5206069", "0.52012354", "0.5196222", "0.5187329", "0.51831365", "0.51822513", "0.51755935", "0.5160146", "0.51538515", "0.51493055", "0.5144161", "0.51351565", "0.51351565", "0.51351565", "0.51351565", "0.5133638", "0.5131967", "0.512891", "0.5128836", "0.51258165", "0.5124291", "0.51197714", "0.5118795", "0.5118795", "0.511493", "0.5114094", "0.5112572", "0.5110517", "0.51063854", "0.5101348", "0.5100261", "0.5100261", "0.5100261", "0.5100261", "0.5100261", "0.5098205", "0.50951153", "0.50917566", "0.5090577", "0.50866026", "0.50831294", "0.5074145", "0.5073189", "0.5067677", "0.50656515", "0.5064419", "0.50612676", "0.5059273", "0.5057198" ]
0.65112716
0
If from is not empty, generate an error
@Override public void replicateFrom(DataFile from) { if (from.size() > 0) { throw emptyDataFileException(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void doInputValidation(String from, String subject, String content) {\n if (from == null) {\n throw new IllegalArgumentException(ERR_MSG_FROM_IS_NULL);\n } else if (\"\".equalsIgnoreCase(from.trim())) {\n throw new IllegalArgumentException(ERR_MSG_FROM_IS_EMPTY);\n } else if (subject == null) {\n throw new IllegalArgumentException(ERR_MSG_SUBJECT_IS_NULL);\n } else if (\"\".equalsIgnoreCase(subject.trim())) {\n throw new IllegalArgumentException(ERR_MSG_SUBJECT_IS_EMPTY);\n } else if (content == null) {\n throw new IllegalArgumentException(ERR_MSG_CONTENT_IS_NULL);\n } else if (\"\".equalsIgnoreCase(content.trim())) {\n throw new IllegalArgumentException(ERR_MSG_CONTENT_IS_EMPTY);\n }\n String tokens[] = subject.trim().split(\" \");\n if (tokens.length != 2) {\n throw new IllegalArgumentException(ERR_MSG_SUBJECT_MUST_HAVE_TWO_ARGUMENTS);\n }\n }", "public LinkedListIsEmptyException(String error){\n super(error);\n }", "private void checkEmptyLanguage(String errorHint) {\n if (model.isEmpty()) {\n throw new IllegalStateException(\n \"DFA intersection generated the empty language\"\n + (errorHint == null ? \"\" : \": \" + errorHint));\n }\n }", "private void checkForEmptyFields() throws EmptyTextFieldException {\n\n if (date == null || title.equals(\"\") || function.equals(\"\") || protagonist.equals(\"\")\n || source.equals(\"\") || references.equals(\"\") || description.equals(\"\")) {\n throw new EmptyTextFieldException();\n }\n }", "private void checkSendOption(SendOptions options) {\n if(options.getFrom() == null || !Utils.isAddress(options.getFrom())) {\n throw new IllegalArgumentException(\"Invalid 'from' parameter : \" + options.getFrom());\n }\n\n if(options.getGas() == null || !Utils.isNumber(options.getGas())) {\n throw new IllegalArgumentException(\"Invalid 'gas' parameter : \" + options.getGas());\n }\n\n if(options.getValue() == null || !Utils.isNumber(options.getValue())) {\n throw new IllegalArgumentException(\"Invalid 'value' parameter : \" + options.getValue());\n }\n }", "public boolean verify(){\n return from != null && to != null && !to.isEmpty();\n }", "private void checkForEmptyLine() throws OutmatchingParametersToMethodCall {\n if (this.params.isEmpty() && method.getParamAmount() != 0) {\n throw new OutmatchingParametersToMethodCall();\n } else if (method.getParamAmount() == 0 && !this.params.isEmpty()) {\n throw new OutmatchingParametersToMethodCall();\n }\n }", "@Override\n public void copyFrom(DataFile from, long size) {\n if (size > 0) {\n throw emptyDataFileException();\n }\n }", "public void setFrom(String from) {\n this.from = from;\n }", "public void InvalidFormat();", "private void validateEmptyElements()\n {\n // Check if something is missing\n if (_dietTreatment.getName().length() < 1)\n {\n getErrors().add(\"Kein Name angegeben.\");\n }\n\n // TODO: check that at least one user is TREATING!\n if (_dietTreatment.getSystemUsers().isEmpty())\n {\n getErrors().add(\"Kein verantwortlicher User angegeben.\");\n }\n\n if (_dietTreatment.getPatientStates().isEmpty())\n {\n getErrors().add(\"Keine Zuweisungsdiagnose angegeben.\");\n }\n }", "private void checkStartLimit(int start, int limit) {\r\n if (start > limit) {\r\n throw new IllegalArgumentException(\r\n \"Start is greater than limit. start:\" + start + \"; limit:\" + limit);\r\n }\r\n if (start < 0) {\r\n throw new IllegalArgumentException(\"Start is negative. start:\" + start);\r\n }\r\n if (limit > length()) {\r\n throw new IllegalArgumentException(\"Limit is greater than length. limit:\" + limit);\r\n }\r\n }", "@Test\n public void testCheckValidity_InvalidFields() throws Exception {\n expectCheckValidityFailure(msg -> msg.setSource(null));\n \n // null protocol\n expectCheckValidityFailure(msg -> msg.setProtocol(null));\n \n // null or empty topic\n expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setTopic(value));\n \n // null payload\n expectCheckValidityFailure(msg -> msg.setPayload(null));\n \n // empty payload should NOT throw an exception\n Forward forward = makeValidMessage();\n forward.setPayload(\"\");\n forward.checkValidity();\n \n // null or empty requestId\n expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setRequestId(value));\n \n // invalid hop count\n expectCheckValidityFailure(msg -> msg.setNumHops(-1));\n }", "public void setFrom(String from) {\r\n\t\tthis.from= from;\r\n\t}", "private void checkEmpty() throws NoSuchElementException\n\t{\n\t\tif (isEmpty())\n\t\t{\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t}", "boolean hasFrom();", "public void testCannotBeEmpty()\n {\n form.setVerificationCode(\"\");\n validator.validate(form, errors);\n assertTrue(errors.hasErrors());\n }", "private void check(List<K> key) {\n if (key == null || key.isEmpty()) {\n throw new IllegalArgumentException(\"key must be a list of size >= 1\");\n }\n }", "@Test\n void exceptionThrown() {\n Flux<Integer> source = Flux.range(1, 50).concatWith(\n Mono.error(new IllegalArgumentException())\n );\n\n // FIXME: Verify Flux source using StepVerifier\n }", "private void validateData() {\n }", "@Test\n public void constructorThrowsOnEmptySelection() {\n assertThrows(IllegalArgumentException.class, () -> {\n // arrange\n // act\n new QuerySpecificationBuilder(\"\", QuerySpecificationBuilder.FromType.ENROLLMENTS);\n\n // assert\n });\n }", "public static void printEmptyTodoError() {\n botSpeak(Message.EMPTY_TODO_ERROR);\n }", "boolean hasErrormessage();", "@Override\n\tprotected void checkNumberOfInputs(int length) {\n\n\t}", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify at least one component\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }", "@Test\n public void whenLinkIsNull() {\n try {\n link.iterator().hasNext();\n } catch (NullPointerException npe) {\n assertThat(npe.getMessage(), is(\"It is empty container\"));\n }\n }", "public NotEmptyException() {\n \tsuper(\"Object was occupied.\");\n }", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "private void validateInputParameters(){\n\n }", "boolean hasErrors();", "@Override public boolean isValidated()\n{\n if (location_set.size() == 0 || !have_join) return false;\n\n return true;\n}", "protected void validateEdge(int from, int to) {\n try {\n validateVertex(from);\n validateVertex(to);\n }\n catch (IllegalArgumentException e) {\n throw new IllegalArgumentException(INVALID_EDGE);\n }\n }", "public ERRORDto validateBus();", "@Override\n public boolean continuePastError() {\n return false;\n }", "public boolean hasErrors();", "protected void validateParameter(String... param) throws NavigationException {\r\n\t\tif (param.length > 0){\r\n\t\t\tfor(int i = 0; i < param.length; i++){\r\n\t\t\t\tif (param[i] != null && param[i].isEmpty()) {\r\n\t\t\t\t\tthrow new NavigationException(\"parametro no enviado\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean hasError();", "public EmptyCommandException() {\n super(\"Input is empty! Please enter something into the chat\");\n }", "public static void notValidNumberErr(){\n printLine();\n System.out.println(\" Oops! Please enter a valid task number\");\n printLine();\n }", "private void validateLine1304(Errors errors) {\n }", "public NotEmptyException(String msg) {\n super(msg);\n }", "void displayNoItemsSelectedErrorMessage();", "public void isEmpty() {\n if (!Iterables.isEmpty(getSubject())) {\n fail(\"is empty\");\n }\n }", "private void checkNameValidation(String name) throws noStudentNameException{\n\t\tif (name.isEmpty()){\n\t\t\tthrow new noStudentNameException(\"Student Name Cannot be Empty!\");\n\t\t}\n\t}", "@Override\n\tpublic boolean isMalformed() {\n\t\treturn malformed;\n\t}", "@Test\r\n\tpublic void testSenderAccountNumberEmpty() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(\"\");\r\n\t\taccountTransferRequest.setReceiverAccount(VALID_RECEIVER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setTransferAmount(400.0);\t\t\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"Sender_Account_Cannot_Be_Null_Or_Empty\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "public static void printEmptyEventDateError() {\n botSpeak(Message.EMPTY_EVENT_DATE_ERROR);\n }", "public String checkEmpty(String msg) {\n while (true) {\n String input = scanner.nextLine();\n // If input is empty and then print out error\n if (input.isEmpty()) {\n System.out.println(\"ERROR: \" + msg + \" can't be empty!\");\n System.out.print(\"Enter \" + msg + \" again: \");\n } else {\n // therwise return input\n return input;\n }\n }\n }", "private void checkMandatoryArgs(UserResource target, Errors errors) {\n final String proc = PACKAGE_NAME + \".checkMandatoryArgs.\";\n final String email = target.getEmail();\n final String password = target.getPassword();\n final String lastName = target.getLastName();\n\n logger.debug(\"Entering: \" + proc + \"10\");\n\n if (TestUtils.isEmptyOrWhitespace(email)) {\n errors.rejectValue(\"email\", \"user.email.required\");\n }\n logger.debug(proc + \"20\");\n\n if (TestUtils.isEmptyOrWhitespace(password)) {\n errors.rejectValue(\"password\", \"user.password.required\");\n }\n logger.debug(proc + \"30\");\n\n if (TestUtils.isEmptyOrWhitespace(lastName)) {\n errors.rejectValue(\"lastName\", \"userLastName.required\");\n }\n logger.debug(\"Leaving: \" + proc + \"40\");\n }", "public void correctErrors();", "private static void checkListSize(List<Map<String, Object>> dataFromDaoList) {\r\n\t\tif (dataFromDaoList == null || dataFromDaoList.size() == 0) {\r\n\t\t\tthrow new ZeroRecordsFoundException(\r\n\t\t\t\t\tReportsConstantsAndUtilityMethods.RECORDS_NOT_FOUND_FOR_YOUR_SEARCH_FILTERS);\r\n\t\t}\r\n\t}", "@Test\n public void parse_invalidValueFollowedByValidValue_success() {\n Index targetIndex = INDEX_FIRST;\n String userInput = targetIndex.getOneBased() + INVALID_PHONE_DESC + PHONE_DESC_BOB;\n ClientDescriptor descriptor = new ClientDescriptorBuilder().withPhone(VALID_PHONE_BOB).build();\n EditClientCommand expectedCommand = new EditClientCommand(targetIndex, descriptor);\n assertParseSuccess(parser, userInput, expectedCommand);\n\n // other valid values specified\n userInput = targetIndex.getOneBased() + EMAIL_DESC_BOB + INVALID_PHONE_DESC + ADDRESS_DESC_BOB\n + PHONE_DESC_BOB;\n descriptor = new ClientDescriptorBuilder().withPhone(VALID_PHONE_BOB).withEmail(VALID_EMAIL_BOB)\n .withAddress(VALID_ADDRESS_BOB).build();\n expectedCommand = new EditClientCommand(targetIndex, descriptor);\n assertParseSuccess(parser, userInput, expectedCommand);\n }", "private void checkInput(String input)throws Exception{\n\n if (input.getBytes(\"UTF-8\").length > 255){\n throw new IOException(\"Message too long\");\n\n }\n try {\n if (Integer.parseInt(input) < 0 || Integer.parseInt(input) > 65535) {\n throw new IOException(\"Port not valid\");\n }\n }catch (NumberFormatException e){\n //nothing should happen\n }\n }", "public boolean hasMoreErrors() {\n return false;\n }", "boolean hadErrors();", "public static void error()\r\n {\r\n valid=false;\r\n\r\n }", "private void errorCheck(String nonterminal, int number) {\r\n if (nonterminal == null || !isNonTerminal(nonterminal) || number < 0) {\r\n throw new IllegalArgumentException();\r\n }\r\n }", "public void missingInput() throws BadDescriptionException {\n //check 1\n if (!current_state.containsAll(next_state)) {\n throw new BadDescriptionException();\n }\n }", "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 }", "private CoderResult _malformed (final ByteBuffer in)\r\n {\r\n in.position (in.position () - 1);\r\n return CoderResult.malformedForLength (1);\r\n }", "public void set_from(String from2) {\n\t\tthis.from=from2;\n\t}", "@Override\r\n\tpublic boolean hasError() {\n\t\treturn false;\r\n\t}", "private static void throwExceptionForRequire() {\n LOG.debug(\"Field 'require' must not be empty\");\n throw new ParametersException(\"Field 'require' must not be empty\");\n }", "@Test(timeout = 4000)\n public void test004() throws Throwable {\n Range range0 = Range.ofLength(9223372032559808565L);\n String string0 = \"]?&0A@\";\n range0.getLength();\n // Undeclared exception!\n try { \n Range.ofLength((-2524L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // must be >=0\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "boolean hasError();", "boolean hasError();", "boolean hasError();", "@Override\n protected void checkValidity() throws DukeException {\n\n if (this.descriptionOfTask.isEmpty()) {\n throw new DukeException(\" ☹ OOPS!!! The description of a done cannot be empty.\");\n }\n\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n // Undeclared exception!\n try { \n Range.of(3253L, 1198L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test\n public void parse_invalidValueFollowedByValidValue_success() {\n Index targetIndex = INDEX_FIRST;\n String userInput = targetIndex.getOneBased() + INVALID_PHONE_DESC + PHONE_DESC_BOB;\n OrderDescriptor descriptor = new OrderDescriptorBuilder().withClientPhone(VALID_PHONE_BOB).build();\n EditOrderCommand expectedCommand = new EditOrderCommand(targetIndex, descriptor);\n assertParseSuccess(parser, userInput, expectedCommand);\n\n // other valid values specified\n userInput = targetIndex.getOneBased() + RECIPE_NAME_DESC_LAKSA + INVALID_PHONE_DESC + ADDRESS_DESC_BOB\n + PHONE_DESC_BOB;\n descriptor = new OrderDescriptorBuilder().withClientPhone(VALID_PHONE_BOB)\n .withClientAddress(VALID_ADDRESS_BOB).withRecipeName(VALID_RECIPE_NAME_LAKSA).build();\n expectedCommand = new EditOrderCommand(targetIndex, descriptor);\n assertParseSuccess(parser, userInput, expectedCommand);\n }", "private void checkMandatoryArguments() throws ArgBoxException {\n\t\tfinal List<String> errors = registeredArguments.stream()\n\t\t\t\t.filter(arg -> arg.isMandatory())\n\t\t\t\t.filter(arg -> !parsedArguments.containsKey(arg))\n\t\t\t\t.map(arg -> String.format(\"The argument %1s is required !\", arg.getLongCall()))\n\t\t\t\t.collect(Collectors.toList());\n\t\tthrowException(() -> !errors.isEmpty(), getArgBoxExceptionSupplier(\"Some arguments are missing !\", errors));\n\t}", "private void checkRange(int index) {\n if ((index < 0 || index >= curSize))\n throw new IndexOutOfBoundsException(\"Index: \" + index + \" is out of bounds. Size = \" + size());\n }", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (query != null) {\n query.validate();\n }\n }", "static Optional<String> validate(Errors errors) {\n if (errors.hasErrors()) {\n return Optional.of(errors.getAllErrors()\n .stream()\n .map(DefaultMessageSourceResolvable::getDefaultMessage)\n .collect(Collectors.joining(\",\")));\n }\n\n return Optional.empty();\n }", "private boolean isFormEmpty(){\n if(pickupLocationInput.getText().toString().length() != 0){\n return false;\n }\n\n if(destinationInput.getText().toString().length() != 0){\n return false;\n }\n\n if(notesInput.getText().toString().length() != 0){\n return false;\n }\n\n return true;\n }", "private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}", "private void checkValidDFA() throws IllegalArgumentException {\n for (State s : states) {\n Set<Character> transLabels = new HashSet<>();\n for (Transition t : getTransitionsFromState(s)) {\n if (!transLabels.add(t.getLabel())) {\n throw new IllegalArgumentException(\"State \" + s + \" has more than one transition for label \" + t.getLabel());\n }\n }\n if (!transLabels.containsAll(alphabet)) {\n Set<Character> missingSet = new HashSet<>(alphabet);\n missingSet.removeAll(transLabels);\n throw new IllegalArgumentException(\"State \" + s + \" is missing a transition for label(s): \" + missingSet);\n }\n }\n }", "private void assertValidity() {\n if (latitudes.size() != longitudes.size()) {\n throw new IllegalStateException(\"GIS location needs equal number of lat/lon points.\");\n }\n if (!(latitudes.size() == 1 || latitudes.size() >= 3)) {\n throw new IllegalStateException(\"GIS location needs either one point or more than two.\");\n }\n }", "@Test(priority=1)\n\tpublic void testWhenFieldsAreEmpty() {\n\t\tsignup.clearAllFields();\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\n\t\t// when all fields are empty errors list is greater than 2\n\t\t// the best way to do it is to have a list of all expected values and compare it with the actual received strings\n\t\tAssert.assertTrue(3<errors.size());\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (simpleSearchQuery != null) {\r\n simpleSearchQuery.validate();\r\n }\r\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please type in the License Server\");\n else {\n \t//TODO add more checks\n \tok();\n }\n }", "public static final void m978checkUIntRangeBoundsJ1ME1BU(int from, int until) {\n if (!(UnsignedKt.uintCompare(until, from) > 0)) {\n throw new IllegalArgumentException(RandomKt.boundsErrorMessage(UInt.m190boximpl(from), UInt.m190boximpl(until)).toString());\n }\n }", "protected void validate()\r\n\t{\r\n\t\tif( this.mapper==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the Mapper of this dataset.\");\r\n\t\tif( this.input_format==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the InputFormat of this dataset.\");\r\n\t\tif( this.inputs==null || this.inputs.size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the input path(s) of this dataset\");\r\n\t\tif ( this.getSchema()==null || this.getSchema().size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the schema of this dataset first\");\r\n\t}", "private void validate(int v, int V) {\n\t if (v < 0 || v >= V)\n\t throw new IndexOutOfBoundsException(\"vertex \" + v + \" is not between 0 and \" + (V-1));\n\t }", "@Test\r\n\tpublic void testReceiverAccountNumberEmpty() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(VALID_SENDER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setReceiverAccount(\"\");\r\n\t\taccountTransferRequest.setTransferAmount(400.0);\t\t\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"Receiver_Account_Cannot_Be_Null_Or_Empty\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "private boolean isInputValid() {\n return true;\n }", "@SuppressWarnings(\"unchecked\")\n @Test\n void shouldThrowExceptionWhenGivenEntriesIsEmpty() {\n DefaultValidator<Target> validator = new DefaultValidator<>(Target.class);\n assertThrows(IllegalArgumentException.class, () -> validator.ruleForMap(Target::getMap).doesNotContain(new MapEntry[0]));\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_destApp()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destApp' is unset! Struct:\" + toString());\n }\n\n if (!is_set_destPellet()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destPellet' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "private void validate(int v) {\r\n if (v < 0 || v >= V)\r\n throw new IllegalArgumentException(\r\n \"vertex \" + v + \" is not between 0 and \" + (V - 1));\r\n }", "boolean isError() {\n if (firstChar == '5' || firstChar == '4') {\n return true;\n }\n\n return false;\n }", "private void validArguments(Graph graph){\n\t\tif(graph.getEdge(0).isDirected()){\n\t\t\tthrow new IllegalDirectedGraph(\"Error: MinimalSpanningTree calculation only for undirected Graph\");\n\t\t}\n\t\t\n\t\t// Prüfen auf gewichtete Graphen -> Muss gesetzt sein und darf nich kleiner als 1 sein\n\t\tfor(Edge edge : graph.getEdgeSet()){\n\t\t\tif(edge.getAttribute(\"weight\") == null){\n\t\t\t\tthrow new IllegalWeightedGraph(\"Jede Kante muss gewichtet sein\");\n\t\t\t}\n\t\t\tif((int)edge.getAttribute(\"weight\") < 1){\n\t\t\t\tthrow new IllegalWeightedGraph(\"Gewichtung darf nicht 0 oder negativ sein\");\n\t\t\t}\n\t\t}\n\t}", "private void validateInitialParams() throws IllegalArgumentException {\n if (StringUtils.isBlank(this.apiKey)) {\n throw new IllegalArgumentException(\"API key is not specified!\");\n }\n if (StringUtils.isBlank(this.baseUrl)) {\n throw new IllegalArgumentException(\"The Comet base URL is not specified!\");\n }\n }", "void checkValid();", "@Test\n public void testValidateEmptyInputSource()\n {\n TableMetadata table = TableBuilder.external(\"foo\")\n .inputSource(ImmutableMap.of(\"type\", S3StorageDruidModule.SCHEME))\n .inputFormat(CSV_FORMAT)\n .column(\"x\", Columns.VARCHAR)\n .build();\n ResolvedTable resolved = registry.resolve(table.spec());\n assertThrows(IAE.class, () -> resolved.validate());\n }", "@Test\n public void when_SourceHasInvalidFormat_Then_ThrowException() {\n //then\n assertThrows(IllegalArgumentException.class, () -> {\n //when\n underTest.read(\"FhFXVE,,,\");\n });\n }", "private void validateVertex(int v) {\r\n\t if (v < 0 || v >= V)\r\n\t throw new IndexOutOfBoundsException(\"vertex \" + v + \" is not between 0 and \" + (V-1));\r\n\t }", "List<R> errors(int start, int end);", "@Override\r\n\tpublic boolean checkValidity() {\n\t\treturn false;\r\n\t}", "private void validateSource(SourcePointer.FileSource src) {\n File f = src.path.toFile();\n if (!f.exists() || !f.canRead()) {\n throw new SolrException(\n ErrorCode.BAD_REQUEST,\n String.format(\n Locale.US, \"File at %s either does not exist or cannot be read.\", src.path));\n }\n }" ]
[ "0.58353806", "0.5613243", "0.55871385", "0.5486649", "0.5450926", "0.544806", "0.5309608", "0.5302514", "0.52804554", "0.5220108", "0.5210273", "0.519508", "0.5178799", "0.51774794", "0.5168221", "0.5166063", "0.5116574", "0.5098849", "0.50940293", "0.5067004", "0.5066865", "0.5055343", "0.5048485", "0.5044603", "0.50413066", "0.5040422", "0.50307757", "0.50161946", "0.5015278", "0.5014416", "0.5010745", "0.4996045", "0.49923462", "0.49901462", "0.49885672", "0.49790597", "0.49769333", "0.49725795", "0.4968949", "0.49645776", "0.49636036", "0.49629223", "0.494237", "0.49336004", "0.4932228", "0.49241862", "0.49238163", "0.49171558", "0.49098924", "0.49084234", "0.4904286", "0.4897446", "0.48958024", "0.4891847", "0.48897904", "0.4883743", "0.48834893", "0.4871526", "0.48689747", "0.48645958", "0.4861462", "0.48558152", "0.48521364", "0.48483545", "0.48443204", "0.48443204", "0.48443204", "0.48364177", "0.48350883", "0.482911", "0.4824815", "0.4821838", "0.48206025", "0.48187688", "0.4818684", "0.4809348", "0.48020566", "0.4800988", "0.47994187", "0.4798879", "0.47945547", "0.47901782", "0.47892258", "0.47890723", "0.47810084", "0.47808045", "0.4773462", "0.47726333", "0.4770142", "0.47697753", "0.47691202", "0.47664034", "0.47635356", "0.47611463", "0.47586405", "0.47567996", "0.47552592", "0.4754845", "0.47537625", "0.47448567" ]
0.5868215
0
TODO Autogenerated method stub
public static void main(String[] args) { java.util.HashMap<Integer,String> h=new java.util.HashMap<Integer,String>(); //Keys,values h.put(1,"alla"); h.put(2, "gopal"); h.put(3, "Barathi"); h.put(4, "thirupathi"); h.put(5,""); h.put(6,""); h.put( null, "hello"); h.put( null, "hi"); //It will take only one null key and number null values h.replace(1, "alla","yeshwanth"); System.out.println(h); System.out.println(h.get(3)); System.out.println(h.replace(2, "gopal", "Gopalreddy")); Set s=h.entrySet(); Iterator i=s.iterator(); while(i.hasNext()) { Map.Entry m=(Map.Entry)i.next(); System.out.println(m.getKey()); //if you want seperately print keys System.out.println(m.getValue()); //If you want seperately print values } }
{ "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
The correct usage of the WebClient to automatically report metrics, so dont't construct the client manually like the following: WebClient client = WebClient.builder().build(); Even though this works fine for making HTTP calls, it won't get metrics from such instances outofthebox. Instead of creating WebClient instances from scratch (like above), inject an instance of WebClient.Builder and start from there. This builder instance is already configured to automatically report metrics. By the way, the same works for the RestTemplate, just use RestTemplateBuilder then. Given this preconfigured builder, it should be defined a WebClient bean for the whole application to add general timeouts. This is optional, and it is also possible to use WebClient.Builder directly within in classes.
@Bean // Inject this bean -> -at Qualifier("webClient") public WebClient webClient() { final TcpClient tcpClient = TcpClient.create() .option(ChannelOption.CONNECT_TIMEOUT_MILLIS, TIMEOUT) .doOnConnected(conn -> conn.addHandlerLast(new ReadTimeoutHandler(TIMEOUT)).addHandlerLast(new WriteTimeoutHandler(TIMEOUT))) .wiretap(true); // Helps logging, each request and response will be logged in full detail. @SuppressWarnings("deprecation") final ClientHttpConnector clientHttpConnector = new ReactorClientHttpConnector( HttpClient.from(tcpClient).keepAlive(true)); return webClientBuilder .baseUrl(this.consumerBaseUrl) .codecs(clientCodecConfigure -> clientCodecConfigure.defaultCodecs().enableLoggingRequestDetails(true)) .clientConnector(clientHttpConnector) // .codecs(clientConfigurer -> clientConfigurer.defaultCodecs().maxInMemorySize(TRANFER_SIZE * 1024 * 1024)) // is set in application.properties -> spring.codec.max-in-memory-size .defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE) .defaultHeader(HttpHeaders.USER_AGENT, USER_AGENT) .filters(exchangeFilterFunctions -> { exchangeFilterFunctions.add(logRequest()); // exchangeFilterFunctions.add(logResponse()); }) .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private OkHttpClient createClient(){\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n return new OkHttpClient.Builder()\n .addInterceptor(logging)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS)\n .build();\n }", "public void instantiation() {\n TokenCredential tokenCredential = new DefaultAzureCredentialBuilder().build();\n\n // BEGIN: com.azure.monitor.query.MetricsQueryClient.instantiation\n MetricsQueryClient metricsQueryClient = new MetricsQueryClientBuilder()\n .credential(tokenCredential)\n .buildClient();\n // END: com.azure.monitor.query.MetricsQueryClient.instantiation\n\n // BEGIN: com.azure.monitor.query.MetricsQueryAsyncClient.instantiation\n MetricsQueryAsyncClient metricsQueryAsyncClient = new MetricsQueryClientBuilder()\n .credential(tokenCredential)\n .buildAsyncClient();\n // END: com.azure.monitor.query.MetricsQueryAsyncClient.instantiation\n }", "ClientMetrics getOrCreateMetricsClient(String hostName);", "@BeforeClass\n public static void createClient() {\n client = HttpClients.createDefault();\n }", "interface ClientMetrics {\n void incrementReadRequest();\n\n void incrementWriteRequest();\n\n String getHostName();\n\n long getReadRequestsCount();\n\n long getWriteRequestsCount();\n\n void incrementFilteredReadRequests();\n\n long getFilteredReadRequests();\n }", "Map<String, ClientMetrics> getClientMetrics();", "public static void setCustomWebClient(WebClient webClient) {\n CUSTOM_HTTP_CLIENT = new ApolloWebClientHttpClient(webClient);\n }", "public static Retrofit getClient() {\n if (retrofit==null) {\n Gson gson = new GsonBuilder()\n .setLenient()\n .create();\n\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n // set your desired log level\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n final OkHttpClient okHttpClient = new OkHttpClient.Builder()\n .readTimeout(120, TimeUnit.SECONDS)\n .connectTimeout(120, TimeUnit.SECONDS)\n .addInterceptor(logging)\n .build();\n\n HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();\n interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n OkHttpClient client = new OkHttpClient.Builder().addInterceptor(interceptor).build();\n\n retrofit = new Retrofit.Builder()\n .client(client)\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .build();\n }\n return retrofit;\n }", "@Override\n @Bean\n public RestTemplate restTemplate(RestTemplateBuilder builder) {\n return builder.build();\n }", "HealthApisImpl(AzureWebPubSubServiceRestAPIImpl client) {\n this.service =\n RestProxy.create(HealthApisService.class, client.getHttpPipeline(), client.getSerializerAdapter());\n this.client = client;\n }", "public interface MetricsClient {\n /**\n * **Lists the metric values for a resource**.\n *\n * @param resourceUri The identifier of the resource.\n * @param timespan The timespan of the query. It is a string with the following format\n * 'startDateTime_ISO/endDateTime_ISO'.\n * @param interval The interval (i.e. timegrain) of the query.\n * @param metricnames The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself\n * has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**.\n * @param aggregation The list of aggregation types (comma separated) to retrieve.\n * @param top The maximum number of records to retrieve. Valid only if $filter is specified. Defaults to 10.\n * @param orderBy The aggregation to use for sorting results and the direction of the sort. Only one order can be\n * specified. Examples: sum asc.\n * @param filter The **$filter** is used to reduce the set of metric data returned. Example: Metric contains\n * metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A eq 'a1' and B eq\n * 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B eq 'b1' and C eq '*' or B =\n * 'b2'** This is invalid because the logical or operator cannot separate two different metadata names. - Return\n * all time series where A = a1, B = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return\n * all time series where A = a1 **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension\n * name or dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of using\n * $filter= \"dim (test) 1 eq '*' \" use **$filter= \"dim %2528test%2529 1 eq '*' \"** When dimension name is **dim\n * (test) 3** and dimension value is **dim3 (test) val** Instead of using $filter= \"dim (test) 3 eq 'dim3 (test)\n * val' \" use **$filter= \"dim %2528test%2529 3 eq 'dim3 %2528test%2529 val' \"**.\n * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the\n * operation's description for details.\n * @param metricnamespace Metric namespace to query metric definitions for.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the response to a metrics query along with {@link Response} on successful completion of {@link Mono}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Mono<Response<ResponseInner>> listWithResponseAsync(\n String resourceUri,\n String timespan,\n Duration interval,\n String metricnames,\n String aggregation,\n Integer top,\n String orderBy,\n String filter,\n ResultType resultType,\n String metricnamespace);\n\n /**\n * **Lists the metric values for a resource**.\n *\n * @param resourceUri The identifier of the resource.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the response to a metrics query on successful completion of {@link Mono}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Mono<ResponseInner> listAsync(String resourceUri);\n\n /**\n * **Lists the metric values for a resource**.\n *\n * @param resourceUri The identifier of the resource.\n * @param timespan The timespan of the query. It is a string with the following format\n * 'startDateTime_ISO/endDateTime_ISO'.\n * @param interval The interval (i.e. timegrain) of the query.\n * @param metricnames The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself\n * has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**.\n * @param aggregation The list of aggregation types (comma separated) to retrieve.\n * @param top The maximum number of records to retrieve. Valid only if $filter is specified. Defaults to 10.\n * @param orderBy The aggregation to use for sorting results and the direction of the sort. Only one order can be\n * specified. Examples: sum asc.\n * @param filter The **$filter** is used to reduce the set of metric data returned. Example: Metric contains\n * metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A eq 'a1' and B eq\n * 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B eq 'b1' and C eq '*' or B =\n * 'b2'** This is invalid because the logical or operator cannot separate two different metadata names. - Return\n * all time series where A = a1, B = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return\n * all time series where A = a1 **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension\n * name or dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of using\n * $filter= \"dim (test) 1 eq '*' \" use **$filter= \"dim %2528test%2529 1 eq '*' \"** When dimension name is **dim\n * (test) 3** and dimension value is **dim3 (test) val** Instead of using $filter= \"dim (test) 3 eq 'dim3 (test)\n * val' \" use **$filter= \"dim %2528test%2529 3 eq 'dim3 %2528test%2529 val' \"**.\n * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the\n * operation's description for details.\n * @param metricnamespace Metric namespace to query metric definitions for.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the response to a metrics query along with {@link Response}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Response<ResponseInner> listWithResponse(\n String resourceUri,\n String timespan,\n Duration interval,\n String metricnames,\n String aggregation,\n Integer top,\n String orderBy,\n String filter,\n ResultType resultType,\n String metricnamespace,\n Context context);\n\n /**\n * **Lists the metric values for a resource**.\n *\n * @param resourceUri The identifier of the resource.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the response to a metrics query.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n ResponseInner list(String resourceUri);\n}", "public WebClient getWebClient() {\n if (this.webClient == null) {\n this.webClient = WebClient.builder().baseUrl(getServiceEndpoint()).build();\n }\n\n return this.webClient;\n }", "@Test\n void callWithWebClient() {\n StepVerifier\n .create(newWebClient().get().uri(UriBuilder::build).retrieve().bodyToMono(String.class))\n .assertNext(response -> assertEquals(OK_RESPONSE, response))\n .expectNextCount(0)\n .verifyComplete();\n }", "public void process()\n {\n ClientRequest clientRequest = threadPool.remove();\n\n if (clientRequest == null)\n {\n return;\n }\n\n\n // Do the work\n // Create new Client\n ServiceLogger.LOGGER.info(\"Building client...\");\n Client client = ClientBuilder.newClient();\n client.register(JacksonFeature.class);\n\n // Get uri\n ServiceLogger.LOGGER.info(\"Getting URI...\");\n String URI = clientRequest.getURI();\n\n ServiceLogger.LOGGER.info(\"Getting endpoint...\");\n String endpointPath = clientRequest.getEndpoint();\n\n // Create WebTarget\n ServiceLogger.LOGGER.info(\"Building WebTarget...\");\n WebTarget webTarget = client.target(URI).path(endpointPath);\n\n // Send the request and save it to a Response\n ServiceLogger.LOGGER.info(\"Sending request...\");\n Response response = null;\n if (clientRequest.getHttpMethodType() == Constants.getRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n String pathParam = clientRequest.getPathParam();\n\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a GET request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .get();\n }\n else if (clientRequest.getHttpMethodType() == Constants.postRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n ServiceLogger.LOGGER.info(\"Got a POST request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .post(Entity.entity(clientRequest.getRequest(), MediaType.APPLICATION_JSON));\n }\n else if (clientRequest.getHttpMethodType() == Constants.deleteRequest)\n {\n String pathParam = clientRequest.getPathParam();\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a DELETE request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .delete();\n }\n else\n {\n ServiceLogger.LOGGER.warning(ANSI_YELLOW + \"Request was not sent successfully\");\n }\n ServiceLogger.LOGGER.info(ANSI_GREEN + \"Sent!\" + ANSI_RESET);\n\n // Check status code of request\n String jsonText = \"\";\n int httpstatus = response.getStatus();\n\n jsonText = response.readEntity(String.class);\n\n // Add response to database\n String email = clientRequest.getEmail();\n String sessionID = clientRequest.getSessionID();\n ResponseDatabase.insertResponseIntoDB(clientRequest.getTransactionID(), jsonText, email, sessionID, httpstatus);\n\n }", "static Http1Client create(Http1ClientConfig clientConfig) {\n return new Http1ClientImpl(WebClient.create(it -> it.from(clientConfig)), clientConfig);\n }", "@Bean\n public RestTemplate restTemplate(RestTemplateBuilder builder) throws Exception {\n\n HttpClient client = HttpClients.custom().setSSLContext(sslContext).build();\n\n RestTemplate restTemplate = builder\n .requestFactory(() -> new HttpComponentsClientHttpRequestFactory(client))\n .build();\n\n restTemplate.getInterceptors().add(restTemplateInterceptor);\n\n return restTemplate;\n }", "@Test\n public void testClient() {\n try {\n MockWebServer server = new MockWebServer();\n server.enqueue(new MockResponse().setBody(\"hello, world!\"));\n server.start();\n HttpUrl baseUrl = server.url(\"\");\n ConnectionOptions opt = new ConnectionOptions(\"apikey\");\n opt.setHost(baseUrl.toString());\n ApiClientWrapper clientWrapper = new ApiClientWrapper(opt);\n TestApiService testService = clientWrapper.createService(TestApiService.class);\n assertTrue(testService.getEndpointValue().execute().isSuccessful());\n RecordedRequest request = server.takeRequest();\n assertEquals(\"/\" + AN_ENDPOINT_PATH, request.getPath());\n assertNotNull(request.getHeader(\"Authorization\"));\n assertTrue(request.getHeader(\"Authorization\").contains(\"Bearer\"));\n assertNotNull(request.getHeader(\"User-Agent\"));\n assertTrue(request.getHeader(\"User-Agent\").contains(ApiClientWrapper.UserAgent.MBED_CLOUD_SDK_IDENTIFIER));\n server.shutdown();\n } catch (IOException | InterruptedException e) {\n fail(e.getMessage());\n }\n }", "@LoadBalanced\n\t @Bean\n\t public RestTemplate makeTemp(RestTemplateBuilder builder) {\n\t\t\n\t\t return builder.build();\n\t\t \n\t }", "@Bean\r\n public RestTemplate restTemplate(RestTemplateBuilder builder) {\r\n return builder.build();\r\n }", "@Bean\n\tpublic RestTemplate restTemplate(RestTemplateBuilder builder) {\n\t\treturn builder.build();\n\t}", "@Bean\n\tpublic RestTemplate restTemplate(RestTemplateBuilder builder) {\n\t\treturn builder.build();\n\t}", "public BeerServiceClient(RestTemplateBuilder restTemplateBuilder) {\n this.restTemplate = restTemplateBuilder.build();\n }", "private WebClient getWebClient() {\n if (webClient == null) {\n webClient = new WebClient();\n webClient.getOptions().setUseInsecureSSL(true);\n webClient.getOptions().setThrowExceptionOnScriptError(false);\n webClient.getOptions().setCssEnabled(false);\n\n silenceWebClient(webClient);\n }\n\n return webClient;\n }", "@Bean(destroyMethod = \"close\", name = \"restClient\")\n public RestHighLevelClient initRestClient() {\n List<HttpHost> hosts = new ArrayList<>();\n String[] hostArrays = host.split(\",\");\n for (String host : hostArrays) {\n if (StringUtils.isNotEmpty(host)) {\n hosts.add(new HttpHost(host.trim(), port, \"http\"));\n }\n }\n\n RestClientBuilder restClientBuilder = RestClient.builder(hosts.toArray(new HttpHost[0]));\n\n // configurable auth\n if (authEnable) {\n final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();\n credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(username, password));\n restClientBuilder.setHttpClientConfigCallback(httpAsyncClientBuilder -> httpAsyncClientBuilder\n .setDefaultCredentialsProvider(credentialsProvider));\n }\n\n restClientBuilder.setRequestConfigCallback(requestConfigBuilder -> requestConfigBuilder\n .setConnectTimeout(connTimeout).setSocketTimeout(socketTimeout)\n .setConnectionRequestTimeout(connectionRequestTimeout));\n\n return new RestHighLevelClient(restClientBuilder);\n }", "public Builder() {\r\n // setting default values\r\n configurationBuilder.httpStatusCodesToRetry(Stream.of(408, 413, 429, 500, 502, 503, 504,\r\n 521, 522, 524).collect(Collectors.toSet()));\r\n configurationBuilder.httpMethodsToRetry(Stream.of(Method.GET,\r\n Method.PUT).collect(Collectors.toSet()));\r\n }", "private OkHttpClient Create() {\n final OkHttpClient.Builder baseClient = new OkHttpClient().newBuilder()\n .connectTimeout(CONNECTION_TIMEOUT, TimeUnit.SECONDS)\n .writeTimeout(WRITE_TIMEOUT, TimeUnit.SECONDS)\n .readTimeout(READ_TIMEOUT, TimeUnit.SECONDS);\n\n // If there's no proxy just create a normal client\n if (appProps.getProxyHost().isEmpty()) {\n return baseClient.build();\n }\n\n final OkHttpClient.Builder proxyClient = baseClient\n .proxy(new java.net.Proxy(java.net.Proxy.Type.HTTP, new InetSocketAddress(appProps.getProxyHost(), Integer.parseInt(appProps.getProxyPort()))));\n\n if (!appProps.getProxyUsername().isEmpty() && !appProps.getProxyPassword().isEmpty()) {\n\n Authenticator proxyAuthenticator;\n String credentials;\n\n credentials = Credentials.basic(appProps.getProxyUsername(), appProps.getProxyPassword());\n\n // authenticate the proxy\n proxyAuthenticator = (route, response) -> response.request().newBuilder()\n .header(\"Proxy-Authorization\", credentials)\n .build();\n proxyClient.proxyAuthenticator(proxyAuthenticator);\n }\n return proxyClient.build();\n\n }", "public TestWebClient() {\n\t\tresources = new LinkedList<Resource>();\n\t}", "@SuppressWarnings(\"unchecked\")\n @Test\n public void testGetThermostats() {\n final String accessTokenString = String.format(\"/accessToken:%s\", UUID.randomUUID());\n final AccessToken accessToken = mock(AccessToken.class);\n when(accessToken.getToken()).thenReturn(accessTokenString);\n when(accessTokenProvider.getAccessToken()).thenReturn(accessToken);\n \n final Invocation.Builder headerBuilder = mock(Invocation.Builder.class);\n when(headerBuilder.get(any(Class.class))).then((InvocationOnMock o) -> {\n final Class<?> targetClass = o.getArgument(0);\n final ObjectReader objectReader = new ObjectMapper().readerFor(targetClass);\n try (final InputStream jsonStream = RestClientTest.class.getResourceAsStream(\"RestClientTest.sampleNestResponse.json\")) {\n return objectReader.readValue(jsonStream);\n }\n });\n final Invocation.Builder acceptBuilder = mock(Invocation.Builder.class);\n when(acceptBuilder.header(\"Authorization\", \"Bearer \" + accessTokenString)).thenReturn(headerBuilder);\n final WebTarget target = mock(WebTarget.class);\n when(target.request(MediaType.APPLICATION_JSON_TYPE)).thenReturn(acceptBuilder);\n\n final String nestApiUrl = String.format(\"/nestApiUrl:%s\", UUID.randomUUID());\n when(nestUrls.getApiUrl()).thenReturn(nestApiUrl);\n when(client.target(nestApiUrl)).thenReturn(target);\n\n final List<? extends Thermostat> thermostats = restClient.getThermostats();\n assertThat(thermostats).hasSize(1);\n\n final Thermostat thermostat = thermostats.get(0);\n assertThat(thermostat.getDeviceId()).isEqualTo(\"peyiJNo0IldT2YlIVtYaGQ\");\n\n final Thermostat.Temperatures celsiusTemperatures = thermostat.getTemperatureInformation(TemperatureUnit.CELSIUS);\n assertThat(celsiusTemperatures.getTemperatureUnit()).isEqualTo(TemperatureUnit.CELSIUS);\n assertThat(celsiusTemperatures.getAmbientTemperature()).isEqualTo(21.5f);\n\n final Thermostat.Temperatures farenheitTemperatures = thermostat.getTemperatureInformation(TemperatureUnit.FARENHEIT);\n assertThat(farenheitTemperatures.getTemperatureUnit()).isEqualTo(TemperatureUnit.FARENHEIT);\n assertThat(farenheitTemperatures.getAmbientTemperature()).isEqualTo(72.0f);\n }", "private static HttpClient createClient() {\n return HttpClients.createMinimal();\n }", "static Http1ClientConfig.Builder builder() {\n return Http1ClientConfig.builder();\n }", "BaseGenieClient(\n @NotEmpty final String url,\n @Nullable final List<Interceptor> interceptors,\n @Nullable final GenieNetworkConfiguration genieNetworkConfiguration\n ) throws GenieClientException {\n\n if (StringUtils.isBlank(url)) {\n throw new GenieClientException(\"Service URL cannot be empty or null\");\n }\n\n final OkHttpClient.Builder builder = new OkHttpClient.Builder();\n\n if (genieNetworkConfiguration != null) {\n this.addConfigParamsFromConfig(builder, genieNetworkConfiguration);\n }\n\n // Add the interceptor to map the retrofit response code to corresponding Genie Exceptions in case of\n // 4xx and 5xx errors.\n builder.addInterceptor(new ResponseMappingInterceptor());\n if (interceptors != null) {\n interceptors.forEach(builder::addInterceptor);\n }\n final OkHttpClient client = builder.build();\n\n this.retrofit = new Retrofit.Builder()\n .baseUrl(url)\n .addConverterFactory(JacksonConverterFactory.create(GenieObjectMapper.getMapper()))\n .client(client)\n .build();\n }", "static Http1Client create() {\n return create(Http1ClientConfig.create());\n }", "@Override\n public OkHttpClient customMake() {\n // just for OkHttpClient customize.\n final OkHttpClient.Builder builder = new OkHttpClient.Builder();\n // you can set the connection timeout.\n builder.connectTimeout(15_000, TimeUnit.MILLISECONDS);\n // you can set the HTTP proxy.\n builder.proxy(Proxy.NO_PROXY);\n // etc.\n return builder.build();\n }", "private static WebClient getClient(final Context context) {\n if (sInstance == null) {\n sInstance = new WebClient(context);\n }\n return sInstance;\n }", "RestClientBuilder(){\n\n }", "private static OkHttpClient getOkHttpClient() {\n OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient.Builder()\n .addInterceptor(new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request original = chain.request();\n\n Request.Builder requestBuilder = original.newBuilder()\n .method(original.method(), original.body());\n\n addAdditionalHttpHeaders(requestBuilder);\n addParleyHttpHeaders(requestBuilder);\n\n Request request = requestBuilder.build();\n return chain.proceed(request);\n }\n })\n .connectTimeout(30, TimeUnit.SECONDS)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS);\n\n applySslPinning(okHttpClientBuilder);\n\n return okHttpClientBuilder.build();\n }", "public RestClientResponseBean consumeRestApi(String requestObj, String apiUrl, HttpMethod requestType, String authToken, Optional<Map> queryParameters, Optional<Integer> customReadTimeout, Optional<Map> headerInformation) throws Exception {\n RestTemplate restTemplate = new RestTemplate();\n HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory();\n if(null != customReadTimeout && customReadTimeout.isPresent())\n requestFactory.setReadTimeout(customReadTimeout.get().intValue());\n else\n requestFactory.setReadTimeout(MasterDataBean.getInstance().getRestReadTimeout());\n\n requestFactory.setConnectTimeout(MasterDataBean.getInstance().getRestConnectionTimeout());\n\n restTemplate.setRequestFactory(requestFactory);\n\n log.info(\"Rest client Connection timeout value : {}ms, and read time out value : {}ms.\",MasterDataBean.getInstance().getRestConnectionTimeout(),\n ((null != customReadTimeout && customReadTimeout.isPresent())?customReadTimeout.get():MasterDataBean.getInstance().getRestReadTimeout()));\n //log.info(\"Request object sent: \" + requestObj);\n\n HttpEntity<String> entity;\n if (null != requestObj)\n entity = new HttpEntity<String>(requestObj, getHttpHeader(authToken, true, headerInformation, false));\n else\n entity = new HttpEntity<String>(getHttpHeader(authToken, false, headerInformation, false));\n try {\n long startTime = System.currentTimeMillis();\n UriComponentsBuilder uriBuilder = UriComponentsBuilder.fromUriString(apiUrl);\n\n if(null != queryParameters && queryParameters.isPresent()) {\n Map queryParametersToSet = queryParameters.get();\n queryParametersToSet.forEach((k,v) ->{\n uriBuilder.queryParam(k.toString(),v.toString());\n });\n\n }\n\n ResponseEntity<String> response = restTemplate.exchange(uriBuilder.toUriString(), requestType, entity, String.class);\n log.info(\"Time taken to retrieve response from REST api: \" + (System.currentTimeMillis() - startTime) + \"ms.\");\n log.info(\"Rest client response code: {}\", response.getStatusCodeValue());\n return new RestClientResponseBean(response.getStatusCodeValue(),response.getBody());\n } catch(HttpStatusCodeException e ) {\n List<String> customHeader = e.getResponseHeaders().get(\"x-app-err-id\");\n String svcErrorMessageID = \"\";\n if (customHeader != null) {\n svcErrorMessageID = customHeader.get(0);\n }\n log.error(\"Error response from REST call: \" + svcErrorMessageID + \" :: \" + e.getResponseBodyAsString());\n return new RestClientResponseBean(e.getRawStatusCode(), e.getResponseBodyAsString());\n //throw e;\n } catch (Exception e) {\n e.printStackTrace();\n log.error(\"Exception while making a REST call: \" + e.getMessage());\n throw e;\n }\n\n }", "@Bean // Inject this bean -> -at Qualifier(\"githubWebClient\")\n\tpublic WebClient githubWebClient() {\n\n\t\tfinal DefaultUriBuilderFactory defaultUriBuilderFactory = new DefaultUriBuilderFactory(this.githubBaseUrl);\n\t\tdefaultUriBuilderFactory.setEncodingMode(DefaultUriBuilderFactory.EncodingMode.NONE);\n\t\t\n\t\tfinal TcpClient tcpClient = TcpClient.create()\n\t\t\t\t.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, TIMEOUT)\n\t\t\t\t.doOnConnected(conn -> conn.addHandlerLast(new ReadTimeoutHandler(TIMEOUT)).addHandlerLast(new WriteTimeoutHandler(TIMEOUT)))\n\t\t\t\t.wiretap(true); // Helps logging, each request and response will be logged in full detail.\n\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tfinal ClientHttpConnector clientHttpConnector = new ReactorClientHttpConnector(\n\t\t\t\tHttpClient.from(tcpClient).keepAlive(true));\n\n\t\treturn webClientBuilder\n\t\t\t\t.uriBuilderFactory(defaultUriBuilderFactory)\n\t\t\t\t.baseUrl(this.githubBaseUrl)\n\t\t\t\t.codecs(clientCodecConfigure -> clientCodecConfigure.defaultCodecs().enableLoggingRequestDetails(true))\n\t\t\t\t.clientConnector(clientHttpConnector).codecs(clientConfigurer -> clientConfigurer.defaultCodecs().maxInMemorySize(TRANFER_SIZE * 1024 * 1024))\n\t\t\t\t.defaultHeader(HttpHeaders.CONTENT_TYPE, GITHUB_V3_MIME_TYPE)\n\t\t\t\t.defaultHeader(HttpHeaders.USER_AGENT, USER_AGENT)\n .filter(ExchangeFilterFunctions\n .basicAuthentication(/*appProperties.getGithub().getUsername(),\n appProperties.getGithub().getToken())*/\"username\", \"password\"))\n\t\t\t\t.filters(exchangeFilterFunctions -> {\n\t\t\t\t\texchangeFilterFunctions.add(logRequest());\n//\t\t\t\t\texchangeFilterFunctions.add(logResponse());\n\t\t\t\t})\n\t\t\t\t.build();\n\t}", "@Test\n void callWithWebTestClient() {\n webClient.get().uri(\"/\").exchange().expectStatus().isOk().expectBody(String.class)\n .isEqualTo(OK_RESPONSE);\n }", "public interface HealthServiceClient extends ClientProxy {\n\n /**\n * Register a service with the health system\n *\n * @param name name of the service\n * @param ttl ttl on how long before the service timeout.\n * @param timeUnit time unit for the ttl.\n */\n default void register(String name, long ttl, TimeUnit timeUnit) {\n }\n\n\n /**\n * Check in the service so it passes it TTL\n *\n * @param name name of service.\n */\n default void checkInOk(String name) {\n }\n\n /**\n * Check in with a certain TTL.\n *\n * @param name name of service (PASS, WARN, FAIL, UNKNOWN)\n * @param status status\n */\n default void checkIn(String name, HealthStatus status) {\n }\n\n\n /**\n * Checks to see if all services registered with the health system are ok.\n *\n * @return ok\n */\n default Promise<Boolean> ok() {\n final Promise<Boolean> promise = Promises.promise();\n promise.resolve(true);\n return promise;\n }\n\n /**\n * Returns list of healthy nodes.\n *\n * @return promise\n */\n default Promise<List<String>> findHealthyNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }\n\n /**\n * Find all nodes\n *\n * @return promise\n */\n default Promise<List<String>> findAllNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }\n\n /**\n * Find all nodes with a certain status.\n *\n * @param queryStatus status you are looking for.\n * @return promise\n */\n default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }\n\n /**\n * Find all healthy nodes\n *\n * @return promise\n */\n default Promise<List<String>> findNotHealthyNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }\n\n\n /**\n * Load all nodes no matter the status.\n *\n * @return promise\n */\n default Promise<List<NodeHealthStat>> loadNodes() {\n final Promise<List<NodeHealthStat>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }\n\n /**\n * Unregister the service\n *\n * @param serviceName name of service\n */\n default void unregister(String serviceName) {\n }\n\n /**\n * Fail with a particular reason.\n *\n * @param name name\n * @param reason reason\n */\n default void failWithReason(final String name, final HealthFailReason reason) {\n }\n\n\n /**\n * Fail with error\n *\n * @param name name\n * @param error error\n */\n default void failWithError(final String name, final Throwable error) {\n }\n\n /**\n * warn with reason\n *\n * @param name name\n * @param reason reason\n */\n default void warnWithReason(final String name, final HealthFailReason reason) {\n }\n\n\n /**\n * warn with error\n *\n * @param name name\n * @param error error\n */\n default void warnWithError(final String name, final Throwable error) {\n }\n\n\n /**\n * Register a service but don't specify a check in TTL.\n *\n * @param name name\n */\n default void registerNoTtl(String name) {\n }\n\n}", "private WebClient getWebClient() {\n\t\treturn ClientSecurityUtils.applySecurityToRest(\n\t\t\t\tWebClient.fromClient(customerRestWebClient, true),\n\t\t\t\tpropertyManager.getRemoteUsername(),\n\t\t\t\tpropertyManager.getRemotePassword());\n\t}", "public TPSControlWebServiceClient() {\n controlExecutor = newControlExecutor();\n controlExecutor.setControlUnit(TimeUnit.SECONDS);\n Executor executor = new RetryExecutor();\n ((RetryExecutor)executor).setExecutor(controlExecutor);\n this.setExecutor(executor);\n }", "@BeforeClass\n\tpublic static void setUpClient() {\n\t\t_client = ClientBuilder.newClient();\n\t}", "@RepeatedTest(value = Integer.MAX_VALUE)\n @Disabled\n void test() {\n\n long start = System.currentTimeMillis();\n\n SimpleClientImpl client = new SimpleClientImpl(Config.HOST, Config.PORT);\n\n assertNotNull(client);\n\n logger.info(\"Request Success : \" + counter.incrementAndGet() + \" \"\n + (System.currentTimeMillis() - start));\n\n }", "@Test\n void getMetricsAndExpectUnauthorized() {\n webTestClient\n .get()\n .uri(\"/actuator/metrics\")\n .accept(MediaType.ALL)\n .exchange()\n .expectStatus().isUnauthorized();\n }", "private void configure(ClientBuilder builder) {\n\n final ClientBuilderHolder<?> holder = new ClientBuilderHolder<>(builder);\n final ClientBuilderConfigurer configurer = new ClientBuilderConfigurer(holder);\n\n // configures the builder\n configureClientBuilder(configurer);\n\n // registers the providers\n registerProviders(holder.getClientBuilder(), getProviders());\n }", "public IntegrationHealthCheck(Client client, String url) {\r\n this.webTarget = client.target(url);\r\n }", "@Before\n public void init(){\n mockClient = MockWebServiceClient.createClient(applicationContext);\n }", "@Before\n public void init(){\n mockClient = MockWebServiceClient.createClient(applicationContext);\n }", "public void createClient() {\n FarmersBaseClient client = new FarmBeatsClientBuilder()\n .endpoint(\"https://<farmbeats resource name>.farmbeats-dogfood.azure.net\")\n .credential(new DefaultAzureCredentialBuilder().build())\n .buildFarmersBaseClient();\n }", "@Bean\n @ConditionalOnMissingBean\n public RestTemplate restTemplate() {\n return new RestTemplate();\n }", "@Bean(destroyMethod = \"close\")\n public RestHighLevelClient client() {\n final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();\n credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(esUser, esPassword));\n\n RestClientBuilder builder = RestClient.builder(new HttpHost(esHost, esPort, \"https\"))\n .setHttpClientConfigCallback(httpClientBuilder -> httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider));\n\n return new RestHighLevelClient(builder);\n }", "public static ClientBuilder configure(ClientBuilder clientBuilder) {\n for (ClientTracingRegistrarProvider registrar : ServiceLoader.load(ClientTracingRegistrarProvider.class)) {\n return registrar.configure(clientBuilder);\n }\n return clientBuilder;\n }", "OkHttpClient getClient(CertificateBlacklist certificateBlacklist, int eventCount) {\n Interceptor[] interceptors = {\n new GzipRequestInterceptor() };\n // TODO: add network interceptors in the following order\n // new NetworkUsageInterceptor(new NetworkUsageMetricsCollector(context, metrics)),\n // new NetworkErrorInterceptor(metrics, eventCount) };\n return configureHttpClient(certificateBlacklist, interceptors);\n }", "public static Client createClient() {\n JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();\n provider.setAnnotationsToUse(new Annotations[]{Annotations.JACKSON});\n\n ClientConfig config = new ClientConfig(provider);\n //Allow delete request with entity\n config.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);\n //It helps to handle cookies\n config.property(ClientProperties.FOLLOW_REDIRECTS, Boolean.FALSE);\n //Allow PATCH\n config.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);\n\n Logger logger = Logger.getLogger(\"Client\");\n Feature feature = new LoggingFeature(logger, Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY,\n null);\n\n //Allow self trusted certificates\n SSLContext sslcontext;\n try {\n sslcontext = SSLContext.getInstance(\"TLS\");\n sslcontext.init(null, new TrustManager[]{new X509TrustManager() {\n public void checkClientTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public void checkServerTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[0];\n }\n }}, new java.security.SecureRandom());\n } catch (KeyManagementException | NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n\n return ClientBuilder\n .newBuilder()\n .withConfig(config)\n .sslContext(sslcontext)\n .build()\n .register(feature)\n .register(MultiPartFeature.class);\n }", "@Override\n\tpublic synchronized void initialize(OperatorContext context) throws Exception {\n\t\tsuper.initialize(context);\n\n // Construct a new Jest client according to configuration via factory\n JestClientFactory factory = new JestClientFactory();\n factory.setHttpClientConfig(new HttpClientConfig\n .Builder(hostName + \":\" + hostPort)\n .multiThreaded(true)\n .build());\n \n client = factory.getObject();\n\t}", "@Builder\npublic interface WebClientServiceResponse {\n\n /**\n * Received response headers.\n *\n * @return immutable response headers\n */\n ClientResponseHeaders headers();\n\n /**\n * Status of the response.\n *\n * @return response status\n */\n Http.Status status();\n\n /**\n * Data reader to obtain response bytes.\n *\n * @return data reader\n */\n DataReader reader();\n\n /**\n * Client connection that was used to handle this request.\n * This connection will be closed/released once the entity is fully read, depending on keep alive configuration.\n *\n * @return connection\n */\n ClientConnection connection();\n\n /**\n * Completable future to be completed by the client response when the entity is fully read.\n *\n * @return completable future to be finished by the client response\n */\n CompletableFuture<WebClientServiceResponse> whenComplete();\n\n /**\n * The service request used to invoke the final call.\n *\n * @return service request\n */\n WebClientServiceRequest serviceRequest();\n}", "public Builder(HttpClientConfiguration clientConfiguration) {\n this.clientConfiguration = clientConfiguration;\n }", "public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }", "public RestTemplate getRestTemplate();", "@Test\n public void clientRequest() {\n List<Thread> threadList = new LinkedList<>(); \n\tfor (int i = 0; i < clientNumber; i ++){\n\t SimpleClient clientx = new SimpleClient(i+1);\n\t threadList.add(clientx);\n\t clientx.start();\n\t}\n\tfor (Thread thread : threadList){\n\t try {\n\t\tthread.join();\n\t } catch (InterruptedException ex) {\n\t\tLogger.getLogger(ServiceProfileClientTest.class.getName()).log(Level.SEVERE, null, ex);\n\t }\n\t}\n\t\n\n\t\n\t\n\tSystem.out.println(\"SetReq = \" + setReq);\n\tSystem.out.println(\"TotalTimeSet = \" + totalSetTime);\n\tSystem.out.println(\"LastProcTime = \" + lastSetTime);\n\tSystem.out.println(\"AverageProcRate = \" + setReq.get()*1000000/(totalSetTime.get()));\n\t\n\tSystem.out.println(\"GetReq = \" + getReq);\n\tSystem.out.println(\"TotalTimeGet = \" + totalGetTime);\n\tSystem.out.println(\"LastProcTime = \" + lastGetTime);\n\tSystem.out.println(\"AverageProcRate = \" + getReq.get()*1000000/(totalGetTime.get()));\n\t\n\tSystem.out.println(\"RemvReq = \" + removeReq);\n\tSystem.out.println(\"TotalTimeRemove = \" + totalRemoveTime);\n\tSystem.out.println(\"LastProcTime = \" + lastRemoveTime);\n\tSystem.out.println(\"AverageTimeProcRate = \" + removeReq.get()*1000000/(totalRemoveTime.get()));\n }", "public ReportiumClient createLoggerClient() {\n return new LoggerReportiumClient();\n }", "@Bean\n public RestTemplate restTemplate(){\n return new RestTemplate();\n }", "@Bean\n\tpublic RestTemplate restTemplate() {\n\t\treturn new RestTemplate();\n\t}", "protected AbstractClient(ClientContext context, Supplier<RetryPolicy> retryPolicySupplier) {\n mContext = Preconditions.checkNotNull(context, \"context\");\n mRetryPolicySupplier = retryPolicySupplier;\n mServiceVersion = Constants.UNKNOWN_SERVICE_VERSION;\n mRpcThreshold = mContext.getClusterConf().getMs(PropertyKey.USER_LOGGING_THRESHOLD);\n }", "static Http2ClientBuilder builder() {\n return new Http2ClientBuilder();\n }", "public interface WebClient {\n\n public Response doGet(String targetUrl, Map<String, String> params);\n\n public Response doPost(String targetUrl, Map<String, String> data);\n\n}", "public static Client getClient(){\n // Create a new client if it hasn't been created yet\n if(client == null) client = new Client(60000,60000);\n return client;\n }", "@Override\n public HelixZkClient buildZkClient(HelixZkClient.ZkConnectionConfig connectionConfig,\n HelixZkClient.ZkClientConfig clientConfig) {\n return new ZkClient(createZkConnection(connectionConfig),\n (int) clientConfig.getConnectInitTimeout(), clientConfig.getOperationRetryTimeout(),\n clientConfig.getZkSerializer(), clientConfig.getMonitorType(), clientConfig.getMonitorKey(),\n clientConfig.getMonitorInstanceName(), clientConfig.isMonitorRootPathOnly());\n }", "@Bean\n RestTemplate restTemplate(){\n return new RestTemplate();\n }", "public CachetClient(String url) {\n baseUrl = url;\n client = ClientBuilder.newClient();\n target = client.target(baseUrl);\n }", "public TicketClient(@Value(\"${app.ticket-catalog.url}\") String serverUrl) {\n this.serverUrl = serverUrl;\n this.restTemplate = new RestTemplate();\n var requestFactory = new SimpleClientHttpRequestFactory();\n this.restTemplate.setRequestFactory(requestFactory);\n }", "@Bean\n\tRestTemplate getRestTemplate() {\n\t\treturn new RestTemplate();\n\t}", "public LogInfluxClient build() {\n LogInfluxClient logStatsdClient = new LogInfluxClient();\n logStatsdClient.setSendSink(sendSink);\n logStatsdClient.setCommonTags(commonTags);\n return logStatsdClient;\n }", "public static Client create() {\n ClientConfig clientConfig = new ClientConfig(JacksonFeature.class,\n JacksonJaxbJsonProvider.class,\n JacksonJsonProvider.class);\n return ClientBuilder.newClient(clientConfig);\n }", "public WebResource.Builder getClientBuilder(String uri) {\n Client client = Client.create();\n client.addFilter(new HTTPBasicAuthFilter(AUTH_USER, AUTH_PASS));\n WebResource resource = client.resource(baseUrl() + uri);\n log.info(\"XOS REST CALL>> {}\", resource);\n return resource.accept(UTF_8).type(UTF_8);\n }", "private static void runClient() {\n long clientStartTime = System.currentTimeMillis();\n \n // Pick a random entry point\n int entryPointId = random.nextInt(entryPointAddresses.size());\n String[] ep = entryPointAddresses.get(entryPointId);\n String entryPointCode = ep[0];\n String entryPointAddress = ep[1];\n \n // User number and id\n int userCount = COUNT.incrementAndGet();\n String userToken = (clientLocation + userCount + \"-\" + Math.abs(random.nextInt(1000)));\n User u = USER_RESOLVER.resolve(userToken);\n \n // Point the client to the entry point\n WebTarget webTarget = entryPointTarget(entryPointAddress, userToken);\n EntryPointResponse response = new EntryPointResponse(null, null);\n try {\n String responseJson = webTarget.request(MediaType.APPLICATION_JSON).get(String.class);\n response = Jsons.fromJson(responseJson, EntryPointResponse.class);\n } catch (Exception e) {\n LOG.log(Level.SEVERE, String.format(\"Could not load responses from entry point %s: %s\", ep[0], ep[1]));\n LOG.log(Level.SEVERE, \"Attempted to connect with: \" + webTarget.getUri().toString());\n }\n \n // current time after the response\n long clientEndTime = System.currentTimeMillis(); \n \n Double latency = null;\n if (response.getRedirectAddress() != null) {\n latency = latencies.get(response.getRedirectAddress());\n }\n \n writer.writeCsv(LOG_LENS, \n sdf.format(new Date()),\n clientStartTime - Main.clientStartTime,\n userCount,\n Main.clientLocation,\n entryPointCode,\n response.getSelectedCloudSiteCode(),\n clientEndTime - clientStartTime,\n latency == null ? \"null\" : String.format(\"%.2f\", latency),\n userToken,\n Arrays.toString(u.getCitizenships().toArray()),\n Arrays.toString(u.getTags().toArray()),\n response.getDefinition() == null ? \"null\" : response.getDefinition().getProviderCode(),\n response.getDefinition() == null ? \"null\" : response.getDefinition().getLocationCode(),\n response.getDefinition() == null ? \"null\" : Arrays.toString(response.getDefinition().getTags().toArray()),\n response.getDefinition() == null ? \"null\" : response.getDefinition().getCost()\n );\n //writer.flush();\n }", "protected HttpJsonHealthChecksStub(\n HealthChecksStubSettings settings,\n ClientContext clientContext,\n HttpJsonStubCallableFactory callableFactory)\n throws IOException {\n this.callableFactory = callableFactory;\n this.httpJsonOperationsStub =\n HttpJsonGlobalOperationsStub.create(clientContext, callableFactory);\n\n HttpJsonCallSettings<AggregatedListHealthChecksRequest, HealthChecksAggregatedList>\n aggregatedListTransportSettings =\n HttpJsonCallSettings\n .<AggregatedListHealthChecksRequest, HealthChecksAggregatedList>newBuilder()\n .setMethodDescriptor(aggregatedListMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"project\", String.valueOf(request.getProject()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<DeleteHealthCheckRequest, Operation> deleteTransportSettings =\n HttpJsonCallSettings.<DeleteHealthCheckRequest, Operation>newBuilder()\n .setMethodDescriptor(deleteMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"health_check\", String.valueOf(request.getHealthCheck()));\n builder.add(\"project\", String.valueOf(request.getProject()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetHealthCheckRequest, HealthCheck> getTransportSettings =\n HttpJsonCallSettings.<GetHealthCheckRequest, HealthCheck>newBuilder()\n .setMethodDescriptor(getMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"health_check\", String.valueOf(request.getHealthCheck()));\n builder.add(\"project\", String.valueOf(request.getProject()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<InsertHealthCheckRequest, Operation> insertTransportSettings =\n HttpJsonCallSettings.<InsertHealthCheckRequest, Operation>newBuilder()\n .setMethodDescriptor(insertMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"project\", String.valueOf(request.getProject()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ListHealthChecksRequest, HealthCheckList> listTransportSettings =\n HttpJsonCallSettings.<ListHealthChecksRequest, HealthCheckList>newBuilder()\n .setMethodDescriptor(listMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"project\", String.valueOf(request.getProject()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<PatchHealthCheckRequest, Operation> patchTransportSettings =\n HttpJsonCallSettings.<PatchHealthCheckRequest, Operation>newBuilder()\n .setMethodDescriptor(patchMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"health_check\", String.valueOf(request.getHealthCheck()));\n builder.add(\"project\", String.valueOf(request.getProject()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<UpdateHealthCheckRequest, Operation> updateTransportSettings =\n HttpJsonCallSettings.<UpdateHealthCheckRequest, Operation>newBuilder()\n .setMethodDescriptor(updateMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"health_check\", String.valueOf(request.getHealthCheck()));\n builder.add(\"project\", String.valueOf(request.getProject()));\n return builder.build();\n })\n .build();\n\n this.aggregatedListCallable =\n callableFactory.createUnaryCallable(\n aggregatedListTransportSettings, settings.aggregatedListSettings(), clientContext);\n this.aggregatedListPagedCallable =\n callableFactory.createPagedCallable(\n aggregatedListTransportSettings, settings.aggregatedListSettings(), clientContext);\n this.deleteCallable =\n callableFactory.createUnaryCallable(\n deleteTransportSettings, settings.deleteSettings(), clientContext);\n this.deleteOperationCallable =\n callableFactory.createOperationCallable(\n deleteTransportSettings,\n settings.deleteOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.getCallable =\n callableFactory.createUnaryCallable(\n getTransportSettings, settings.getSettings(), clientContext);\n this.insertCallable =\n callableFactory.createUnaryCallable(\n insertTransportSettings, settings.insertSettings(), clientContext);\n this.insertOperationCallable =\n callableFactory.createOperationCallable(\n insertTransportSettings,\n settings.insertOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.listCallable =\n callableFactory.createUnaryCallable(\n listTransportSettings, settings.listSettings(), clientContext);\n this.listPagedCallable =\n callableFactory.createPagedCallable(\n listTransportSettings, settings.listSettings(), clientContext);\n this.patchCallable =\n callableFactory.createUnaryCallable(\n patchTransportSettings, settings.patchSettings(), clientContext);\n this.patchOperationCallable =\n callableFactory.createOperationCallable(\n patchTransportSettings,\n settings.patchOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.updateCallable =\n callableFactory.createUnaryCallable(\n updateTransportSettings, settings.updateSettings(), clientContext);\n this.updateOperationCallable =\n callableFactory.createOperationCallable(\n updateTransportSettings,\n settings.updateOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n\n this.backgroundResources =\n new BackgroundResourceAggregation(clientContext.getBackgroundResources());\n }", "public static Retrofit getClient(final Context context) {\n //setup cache\n OkHttpClient okHttpClient = createCachedClient(context);\n retrofit = new Retrofit.Builder()\n .client(okHttpClient)\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n return retrofit;\n }", "@Bean\n public CloseableHttpClient closeableHttpClient(HttpClientBuilder builder) {\n builder.useSystemProperties();\n return builder.build();\n }", "public SpigetClient(String userAgent) {\n\t\tthis.userAgent = userAgent;\n\t}", "private void createClient() {\n tc = new TestClient();\n }", "static Retrofit getClient(String baseUrl) {\n if (retrofit == null) {\n retrofit = new Retrofit.Builder()\n .baseUrl(baseUrl)\n .addCallAdapterFactory(RxJava2CallAdapterFactory.create())\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n }\n return retrofit;\n }", "public WebResource.Builder getClientBuilder() {\n return getClientBuilder(\"\");\n }", "@Provides\n @Singleton\n Client provideHttpClient(Environment environment, PermissionsAppConfig config) {\n HttpClientConfiguration httpClientConfiguration = new HttpClientConfiguration();\n httpClientConfiguration.setTimeout(Duration.milliseconds(7000));\n\n HttpClientBuilder clientBuilder = new HttpClientBuilder(environment);\n clientBuilder.using(httpClientConfiguration);\n\n JerseyClientBuilder builder = new JerseyClientBuilder(environment);\n builder.setApacheHttpClientBuilder(clientBuilder);\n\n Client client = builder.build(\"jerseyClient\");\n client.register(ClientCorrelationIdFilter.class, 1);\n client.register(JerseyLoggingFilter.class, 2);\n return client;\n }", "public HIBPClient(String userAgentStub) {\n \t\n \tsetMaxWait(2);\n \tsetNumRetries(2);\n \tsetExposeVersion(false);\n \tsetUserAgentStub(userAgentStub);\n }", "@Override\n @Bean\n public CommandLineRunner run(RestTemplate restTemplate) throws Exception {\n HttpHeaders headers = new HttpHeaders();\n headers.set(\"Accept\", \"application/json\");\n return args -> {\n result = restTemplate.exchange(GlobalCovidRestData.URL, HttpMethod.GET,\n new HttpEntity<String>(headers), String.class);\n log.info(result.toString());\n };\n\n }", "public static void main(String[] args) {\n\n Client client = ClientBuilder.newClient();\n WebTarget target = client.target(\"http\");\n\n }", "public static void main(String[] args) throws NoSuchAlgorithmException {\n SSLContext sslcontext = SSLContext.getDefault();\n Client client = ClientBuilder.newBuilder().property(\"Connection Success\", 100).sslContext(sslcontext)\n .register(JacksonJsonProvider.class).build(); // This is the client Instances as we can set in the next lines of the code\n WebTarget target = client.target(\"https://Knotify.io\");\n Customer customer = target.request().accept(\"application/json\").get(Customer.class);\n List<Customer> customers = target.request().accept(\"application/json\").get(new GenericType<List<Customer>>() {\n });\n // Here we can call the Output lines of the code as we can set in the next lines of the code\n System.out.println(Arrays.toString(customers.toArray()));\n System.out.print(customer.toString());\n //So here we can construct the response as we can see in the next lines\n //The next lines is to construct the lines of the next code as we can set\n try (Response response = target.request().accept(\"application/json\")\n .get()) {\n if (response.getStatus() == 200) {\n response.bufferEntity();\n Customer customer1 = response.readEntity(Customer.class); // This is for read instance //\n Map raw_json = response.readEntity(Map.class);\n System.out.println(customer1.toString());\n System.out.println(raw_json);\n }\n\n\n }// here response.close() is implicit\n Customer customer2 = new Customer();\n Response response = target.request().post(Entity.xml(customer2));\n response.close();//call close for Security reasons //\n\n // Here we can call the put method as we can see in the next lines of the code\n Response response1 = target.request().put(Entity.xml(customer));\n response1.close(); //Always call the close for the Source Reasons;\n // Here we can define the invocations as we can see in the next lines of the code\n\n Invocation customer_get = target.request().accept(\"Application/xml\").buildGet();\n //while invocation\n\n while (true){\n Response res = customer_get.invoke();\n try {\n Customer customer_do = res.readEntity(Customer.class);\n Thread.sleep(555);\n }catch (Exception e){\n System.out.println(\"Dont use the infinite loop\");\n }\n }\n // Here we can inherite the main example as we can see in the do-while example as we can see\n Customer new_customer= null;\n boolean redirected = false;\n do{\n try {\n new_customer= target.request().accept(\"application/json\").get(Customer.class);\n }catch (RedirectionException redirect){\n if(redirected) throw redirect;{\n redirected = true;\n target = client.target(redirect.getLocation());\n }\n }\n } while (new_customer == null);\n }", "@Provides\n OkHttpClient.Builder providesOkHttpClientBuilder(){\n return new OkHttpClient.Builder()\n .connectTimeout(10, TimeUnit.SECONDS)\n .writeTimeout(20,TimeUnit.SECONDS)\n .readTimeout(20,TimeUnit.SECONDS);\n //.addInterceptor(new MyInterceptor());\n }", "protected HttpJsonHealthChecksStub(HealthChecksStubSettings settings, ClientContext clientContext)\n throws IOException {\n this(settings, clientContext, new HttpJsonHealthChecksCallableFactory());\n }", "public static ClientBuilder configure(ClientBuilder clientBuilder, ExecutorService executorService) {\n for (ClientTracingRegistrarProvider registrar : ServiceLoader.load(ClientTracingRegistrarProvider.class)) {\n return registrar.configure(clientBuilder, executorService);\n }\n return clientBuilder;\n }", "@VisibleForTesting\n OssindexClient createClient(final ComponentReportRequest request) {\n UserAgentSupplier userAgent = new UserAgentSupplier(new VersionSupplier().get())\n {\n /**\n * Customize with details from request if present.\n */\n @Override\n protected void customize(final UserAgentBuilder builder) {\n List<Product> products = request.getProducts();\n if (products != null) {\n for (Product product : products) {\n builder.product(product);\n }\n }\n }\n };\n Transport transport = new HttpClientTransport(userAgent);\n Marshaller marshaller = new GsonMarshaller();\n\n OssindexClientConfiguration config = request.getClientConfiguration();\n\n // maybe disable persistent cache\n boolean cacheDisabled = PropertyHelper.getBoolean(request.getProperties(), \"ossindex.cache.disable\", false);\n if (cacheDisabled) {\n // null will default to memory cache\n config.setCacheConfiguration(null);\n }\n else if (config.getCacheConfiguration() == null) {\n // if cache not otherwise configured, then prepare directory cache\n DirectoryCache.Configuration cacheConfig = new DirectoryCache.Configuration();\n\n // allow user to change the default location of the cache\n File cacheDir = PropertyHelper.getFile(request.getProperties(), \"ossindex.cache.directory\");\n if (cacheDir != null) {\n cacheConfig.setBaseDir(cacheDir.toPath());\n }\n\n // allow user to change the default cache expiration\n Duration expiration = PropertyHelper.getDuration(request.getProperties(), \"ossindex.cache.expiration\");\n if (expiration != null) {\n cacheConfig.setExpireAfter(expiration);\n }\n\n config.setCacheConfiguration(cacheConfig);\n }\n\n return new OssindexClientImpl(config, transport, marshaller);\n }", "public static ElasticsearchClient getRESTClient() {\n\t\tif (restClient != null) {\n\t\t\treturn restClient;\n\t\t}\n\t\tString esScheme = Para.getConfig().elasticsearchRestClientScheme();\n\t\tString esHost = Para.getConfig().elasticsearchRestClientHost();\n\t\tint esPort = Para.getConfig().elasticsearchRestClientPort();\n\t\tboolean signRequests = Para.getConfig().elasticsearchSignRequestsForAwsEnabled();\n\n\t\tHttpHost host = new HttpHost(esHost, esPort, esScheme);\n\t\tRestClientBuilder clientBuilder = RestClient.builder(host);\n\n\t\tString esPrefix = Para.getConfig().elasticsearchRestClientContextPath();\n\t\tif (StringUtils.isNotEmpty(esPrefix)) {\n\t\t\tclientBuilder.setPathPrefix(esPrefix);\n\t\t}\n\n\t\tList<RestClientBuilder.HttpClientConfigCallback> configurationCallbacks = new ArrayList<>();\n\n\t\tif (signRequests) {\n\t\t\tconfigurationCallbacks.add(getAWSRequestSigningInterceptor(host.getSchemeName() + \"://\" + host.getHostName()));\n\t\t}\n\t\tconfigurationCallbacks.add(getAuthenticationCallback());\n\n\t\t// register all customizations\n\t\tclientBuilder.setHttpClientConfigCallback(httpClientBuilder -> {\n\t\t\tconfigurationCallbacks.forEach(c -> c.customizeHttpClient(httpClientBuilder));\n\t\t\tif (esHost.startsWith(\"localhost\") || !Para.getConfig().inProduction()) {\n\t\t\t\thttpClientBuilder.setSSLHostnameVerifier((hostname, session) -> true);\n//\t\t\t\thttpClientBuilder.setSSLContext(SSLContextBuilder.create().);\n\n\t\t\t}\n\t\t\treturn httpClientBuilder;\n\t\t});\n\n\t\t// Create the transport with a Jackson mapper\n\t\tRestClientTransport transport = new RestClientTransport(clientBuilder.build(), new JacksonJsonpMapper());\n\t\trestClient = new ElasticsearchClient(transport);\n\t\trestClientAsync = new ElasticsearchAsyncClient(transport);\n\n\t\tPara.addDestroyListener(new DestroyListener() {\n\t\t\tpublic void onDestroy() {\n\t\t\t\tshutdownClient();\n\t\t\t}\n\t\t});\n\t\tif (!existsIndex(Para.getConfig().getRootAppIdentifier())) {\n\t\t\tcreateIndex(Para.getConfig().getRootAppIdentifier());\n\t\t}\n\t\treturn restClient;\n\t}", "private static void createCouchbaseClient() {\n LOGGER.debug(\"Creating Couchbase Client\");\n String bucket = CONFIG.getString(\"couchbase.bucket\");\n String[] hosts = CONFIG.getString(\"couchbase.host\").split(\";\");\n String port = CONFIG.getString(\"couchbase.port\");\n String base = CONFIG.getString(\"couchbase.base\");\n\n List<URI> uris = new ArrayList<>();\n for (final String host : hosts) {\n uris.add(URI.create(\"http://\" + host + \":\" + port + \"/\" + base));\n }\n try {\n tapClient = new TapClient(uris, bucket, \"\");\n } catch (Exception ex) {\n LOGGER.error(\"Caught exception trying to connect to Couchbase\", ex);\n }\n }", "public static WebResource getJerseyClient(String url){\n\t\tif(url == null || url.isEmpty()){\n\t\t\treturn null;\n\t\t}\n\t\tClient client = null;\n\n\t\tClientConfig clientConfigRegisterUser = new DefaultClientConfig();\n\t\tclientConfigRegisterUser.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING,Boolean.TRUE);\n\n\t\tclient = Client.create(clientConfigRegisterUser);\n\n\t\treturn client.resource(url);\n\t}", "static Http1Client create(Consumer<Http1ClientConfig.Builder> consumer) {\n return Http1ClientConfig.builder()\n .update(consumer)\n .build();\n }", "protected HeavyClient getClient() {\n\t\treturn client;\n\t}", "public TestServiceClient(final ApiClient apiClient) {\n super(apiClient);\n }", "private RestRequest createRestRequest(final Client jerseyClient) {\n String uri = getServiceEndpointAddress();\n WebResource webResource = buildWebResource(jerseyClient, uri);\n return new RestRequest(webResource);\n }" ]
[ "0.60076505", "0.5916625", "0.5844144", "0.5821863", "0.5816768", "0.5793351", "0.5688163", "0.56714976", "0.5608044", "0.55744797", "0.5560273", "0.55537426", "0.55385524", "0.55184877", "0.55173105", "0.5511929", "0.5509845", "0.5509152", "0.5502445", "0.54600537", "0.54600537", "0.5441622", "0.5441042", "0.5423551", "0.54201293", "0.53719044", "0.53361607", "0.5297677", "0.5297354", "0.5271216", "0.52698594", "0.5267078", "0.5252247", "0.5226415", "0.5210161", "0.5197547", "0.5193805", "0.5175749", "0.51704204", "0.51450694", "0.513978", "0.5131053", "0.512004", "0.50998473", "0.50796646", "0.5078478", "0.50643003", "0.5061819", "0.5061819", "0.5061046", "0.5060054", "0.50588137", "0.5051858", "0.5050119", "0.5048119", "0.5044545", "0.5038593", "0.50285417", "0.5023648", "0.5022443", "0.5022207", "0.5020462", "0.502001", "0.5013634", "0.50104636", "0.500861", "0.5004351", "0.5002731", "0.49995407", "0.4998073", "0.49876198", "0.49770248", "0.49596134", "0.49415964", "0.49389142", "0.4929892", "0.49124798", "0.48999715", "0.48967633", "0.48890197", "0.48878172", "0.48837855", "0.48814386", "0.48803148", "0.48792925", "0.48743412", "0.4868206", "0.48659", "0.48568842", "0.48522475", "0.4846811", "0.48439038", "0.48409113", "0.4838028", "0.48327005", "0.48189405", "0.48179165", "0.48156035", "0.48118913", "0.4808644" ]
0.6563719
0
This bean configures the webclient for github access. NOTE: There two different webClient configurations in this class to differeniate
@Bean // Inject this bean -> -at Qualifier("githubWebClient") public WebClient githubWebClient() { final DefaultUriBuilderFactory defaultUriBuilderFactory = new DefaultUriBuilderFactory(this.githubBaseUrl); defaultUriBuilderFactory.setEncodingMode(DefaultUriBuilderFactory.EncodingMode.NONE); final TcpClient tcpClient = TcpClient.create() .option(ChannelOption.CONNECT_TIMEOUT_MILLIS, TIMEOUT) .doOnConnected(conn -> conn.addHandlerLast(new ReadTimeoutHandler(TIMEOUT)).addHandlerLast(new WriteTimeoutHandler(TIMEOUT))) .wiretap(true); // Helps logging, each request and response will be logged in full detail. @SuppressWarnings("deprecation") final ClientHttpConnector clientHttpConnector = new ReactorClientHttpConnector( HttpClient.from(tcpClient).keepAlive(true)); return webClientBuilder .uriBuilderFactory(defaultUriBuilderFactory) .baseUrl(this.githubBaseUrl) .codecs(clientCodecConfigure -> clientCodecConfigure.defaultCodecs().enableLoggingRequestDetails(true)) .clientConnector(clientHttpConnector).codecs(clientConfigurer -> clientConfigurer.defaultCodecs().maxInMemorySize(TRANFER_SIZE * 1024 * 1024)) .defaultHeader(HttpHeaders.CONTENT_TYPE, GITHUB_V3_MIME_TYPE) .defaultHeader(HttpHeaders.USER_AGENT, USER_AGENT) .filter(ExchangeFilterFunctions .basicAuthentication(/*appProperties.getGithub().getUsername(), appProperties.getGithub().getToken())*/"username", "password")) .filters(exchangeFilterFunctions -> { exchangeFilterFunctions.add(logRequest()); // exchangeFilterFunctions.add(logResponse()); }) .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GithubClient() {\n// client = ClientBuilder.newClient();\n// userTarget = client.target(\"https://api.github.com/users/{username}\");\n// userRepoTarget = client.target(\"https://api.github.com/users/{username}/repos\");\n// releaseCountTarget = client.target(\"https://api.github.com/repos/{owner}/{repo}/releases\");\n }", "public static void setCustomWebClient(WebClient webClient) {\n CUSTOM_HTTP_CLIENT = new ApolloWebClientHttpClient(webClient);\n }", "@Test\n public void testWebConfiguration() throws Exception {\n WebClient wc = j.createWebClient();\n {\n FreeStyleProject p = j.createFreeStyleProject();\n p.getBuildersList().add(CopyArtifactUtil.createCopyArtifact(\n \"${upstream}\",\n \"\",\n new TriggeredBuildSelector(true, TriggeredBuildSelector.UpstreamFilterStrategy.UseOldest, false),\n \"\",\n \"\",\n false,\n false, \n false\n ));\n p.save();\n \n j.submit(wc.getPage(p, \"configure\").getFormByName(\"config\"));\n \n p = j.jenkins.getItemByFullName(p.getFullName(), FreeStyleProject.class);\n assertNotNull(p);\n \n CopyArtifact copyArtifact = p.getBuildersList().get(CopyArtifact.class);\n assertNotNull(p);\n \n assertNotNull(copyArtifact.getBuildSelector());\n assertEquals(TriggeredBuildSelector.class, copyArtifact.getBuildSelector().getClass());\n \n TriggeredBuildSelector selector = (TriggeredBuildSelector)copyArtifact.getBuildSelector();\n \n assertTrue(selector.isFallbackToLastSuccessful());\n assertEquals(TriggeredBuildSelector.UpstreamFilterStrategy.UseOldest, selector.getUpstreamFilterStrategy());\n }\n \n {\n FreeStyleProject p = j.createFreeStyleProject();\n p.getBuildersList().add(CopyArtifactUtil.createCopyArtifact(\n \"${upstream}\",\n \"\",\n new TriggeredBuildSelector(false, TriggeredBuildSelector.UpstreamFilterStrategy.UseNewest, false),\n \"\",\n \"\",\n false,\n false, \n false\n ));\n p.save();\n \n j.submit(wc.getPage(p, \"configure\").getFormByName(\"config\"));\n \n p = j.jenkins.getItemByFullName(p.getFullName(), FreeStyleProject.class);\n assertNotNull(p);\n \n CopyArtifact copyArtifact = p.getBuildersList().get(CopyArtifact.class);\n assertNotNull(p);\n \n assertNotNull(copyArtifact.getBuildSelector());\n assertEquals(TriggeredBuildSelector.class, copyArtifact.getBuildSelector().getClass());\n \n TriggeredBuildSelector selector = (TriggeredBuildSelector)copyArtifact.getBuildSelector();\n \n assertFalse(selector.isFallbackToLastSuccessful());\n assertEquals(TriggeredBuildSelector.UpstreamFilterStrategy.UseNewest, selector.getUpstreamFilterStrategy());\n }\n \n {\n FreeStyleProject p = j.createFreeStyleProject();\n p.getBuildersList().add(CopyArtifactUtil.createCopyArtifact(\n \"${upstream}\",\n \"\",\n new TriggeredBuildSelector(true, TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting, false),\n \"\",\n \"\",\n false,\n false, \n false\n ));\n p.save();\n \n j.submit(wc.getPage(p, \"configure\").getFormByName(\"config\"));\n \n p = j.jenkins.getItemByFullName(p.getFullName(), FreeStyleProject.class);\n assertNotNull(p);\n \n CopyArtifact copyArtifact = p.getBuildersList().get(CopyArtifact.class);\n assertNotNull(p);\n \n assertNotNull(copyArtifact.getBuildSelector());\n assertEquals(TriggeredBuildSelector.class, copyArtifact.getBuildSelector().getClass());\n \n TriggeredBuildSelector selector = (TriggeredBuildSelector)copyArtifact.getBuildSelector();\n \n assertTrue(selector.isFallbackToLastSuccessful());\n assertEquals(TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting, selector.getUpstreamFilterStrategy());\n }\n }", "protected void configureClient() {\n\t\tswitch (getVariant(ClientRegistration.class)) {\n\t\tcase STATIC_CLIENT:\n\t\t\tcallAndStopOnFailure(GetStaticClientConfiguration.class);\n\t\t\tconfigureStaticClient();\n\t\t\tbreak;\n\t\tcase DYNAMIC_CLIENT:\n\t\t\tcallAndStopOnFailure(StoreOriginalClientConfiguration.class);\n\t\t\tcallAndStopOnFailure(ExtractClientNameFromStoredConfig.class);\n\t\t\tconfigureDynamicClient();\n\t\t\tbreak;\n\t\t}\n\n\t\texposeEnvString(\"client_id\");\n\n\t\tcompleteClientConfiguration();\n\t}", "@Bean // Inject this bean -> -at Qualifier(\"webClient\")\n\tpublic WebClient webClient() {\n\n\t\tfinal TcpClient tcpClient = TcpClient.create()\n\t\t\t\t.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, TIMEOUT)\n\t\t\t\t.doOnConnected(conn -> conn.addHandlerLast(new ReadTimeoutHandler(TIMEOUT)).addHandlerLast(new WriteTimeoutHandler(TIMEOUT)))\n\t\t\t\t.wiretap(true); // Helps logging, each request and response will be logged in full detail.\n\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tfinal ClientHttpConnector clientHttpConnector = new ReactorClientHttpConnector(\n\t\t\t\tHttpClient.from(tcpClient).keepAlive(true));\n\n\t\treturn webClientBuilder\n\t\t\t\t.baseUrl(this.consumerBaseUrl)\n\t\t\t\t.codecs(clientCodecConfigure -> clientCodecConfigure.defaultCodecs().enableLoggingRequestDetails(true))\n\t\t\t\t.clientConnector(clientHttpConnector)\n//\t\t\t\t.codecs(clientConfigurer -> clientConfigurer.defaultCodecs().maxInMemorySize(TRANFER_SIZE * 1024 * 1024)) // is set in application.properties -> spring.codec.max-in-memory-size\n\t\t\t\t.defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)\n\t\t\t\t.defaultHeader(HttpHeaders.USER_AGENT, USER_AGENT)\n\t\t\t\t.filters(exchangeFilterFunctions -> {\n\t\t\t\t\texchangeFilterFunctions.add(logRequest());\n//\t\t\t\t\texchangeFilterFunctions.add(logResponse());\n\t\t\t\t})\n\t\t\t\t.build();\n\t}", "public void configure() throws IOException {\n\n\n mWebClient = new WebClient(BrowserVersion.getDefault());\n\n // 1 启动JS\n mWebClient.getOptions().setJavaScriptEnabled(true);\n // 2 禁用Css,可避免自动二次请求CSS进行渲染\n mWebClient.setCssErrorHandler(new SilentCssErrorHandler());\n mWebClient.setAjaxController(new NicelyResynchronizingAjaxController());\n mWebClient.getOptions().setCssEnabled(true);\n // 3 启动客户端重定向\n mWebClient.getOptions().setRedirectEnabled(true);\n\n mWebClient.getOptions().setAppletEnabled(false);\n\n mWebClient.getOptions().setPopupBlockerEnabled(true);\n\n // 4 js运行错误时,是否抛出异常\n //mWebClient.getOptions().setThrowExceptionOnScriptError(false);\n // 5 设置超时\n mWebClient.getOptions().setTimeout(20000);\n\n //HtmlPage htmlPage = mWebClient.getPage();\n // 等待JS驱动dom完成获得还原后的网页\n mWebClient.waitForBackgroundJavaScript(50000);\n\n }", "private void configureClient(String username, String password)\r\n {\n client.getState().setCredentials(new AuthScope(\"twitter.com\", 80),\r\n new UsernamePasswordCredentials(username, password));\r\n }", "private WebClient getWebClient() {\n\t\treturn ClientSecurityUtils.applySecurityToRest(\n\t\t\t\tWebClient.fromClient(customerRestWebClient, true),\n\t\t\t\tpropertyManager.getRemoteUsername(),\n\t\t\t\tpropertyManager.getRemotePassword());\n\t}", "interface WithRepoUrl {\n /**\n * Specifies the repoUrl property: The repo url of the source control..\n *\n * @param repoUrl The repo url of the source control.\n * @return the next definition stage.\n */\n WithCreate withRepoUrl(String repoUrl);\n }", "private void configure(ClientBuilder builder) {\n\n final ClientBuilderHolder<?> holder = new ClientBuilderHolder<>(builder);\n final ClientBuilderConfigurer configurer = new ClientBuilderConfigurer(holder);\n\n // configures the builder\n configureClientBuilder(configurer);\n\n // registers the providers\n registerProviders(holder.getClientBuilder(), getProviders());\n }", "@Before\n public void buildClient() {\n BasicCookieStore cookieStore = new BasicCookieStore();\n\n // Build Apache Http Client to execute requests\n this.httpClient = HttpClientBuilder.create()\n .setDefaultCookieStore(cookieStore)\n .setRedirectStrategy(new LaxRedirectStrategy())\n .build();\n }", "@PostConstruct\n public void init() {\n ApiClient client = Config.fromToken(url, token, validateSSL);\n io.kubernetes.client.Configuration.setDefaultApiClient(client);\n }", "@Autowired\r\n protected WebClientController(WapServerConfig wapServerConfig) {\r\n super(wapServerConfig.getBaseUrl() + PATH, wapServerConfig.getWebClientFolder());\r\n }", "public WebClient getWebClient() {\n if (this.webClient == null) {\n this.webClient = WebClient.builder().baseUrl(getServiceEndpoint()).build();\n }\n\n return this.webClient;\n }", "@Override\n public void configure(ClientDetailsServiceConfigurer clients) throws Exception {\n clients.inMemory() // overriding configure method to specify who are the clients & applications that can use the responsibility of our authorization server\n .withClient(\"clientId\") // clientId is the userName of client...we gain clientId when we registered our application with git hub in order to attempt to use the users of github in sso application\n .secret(\"abcde\")\n .authorizedGrantTypes(\"password\", \"refresh_token\", \"authorization_token\") // to be allowed to generate & refresh the tokens\n .scopes(\"write\"); // authorities....need to mention at least one scope requested by an application\n }", "public AppClientProjectWebServicesClientSupport(AppClientProject project, AntProjectHelper helper, ReferenceHelper referenceHelper) {\n this.project = project;\n this.helper = helper;\n this.referenceHelper = referenceHelper;\n }", "@Bean\n\tpublic ApiClient apiClient() {\n\t\tApiClient apiClient = new ApiClient(grantType, clientId, clientSecret, accessTokenUri, code);\n\n\t\treturn apiClient;\n\t}", "protected void configureBrowserWithSelenIde(String baseUrl, String proxyHost, String proxyPort) \n {\n Configuration.timeout = 10000;\n Configuration.baseUrl = baseUrl;\n Configuration.startMaximized = false;\n Configuration.browser = WEB_DRIVER_PROVIDER;\n Configuration.browserPosition = \"200x20\";\n Configuration.browserSize = \"1440x1024\";\n Configuration.reportsFolder = \"target/reports/\";\n Configuration.reportsUrl = \"file:///root/dhbwtest_selenide/target/reports/\";\n Configuration.proxyEnabled = (proxyHost != null && proxyPort != null);\n if (proxyHost != null && proxyPort != null)\n {\n Configuration.proxyHost = proxyHost;\n Configuration.proxyPort = Integer.parseInt(proxyPort);\n Configuration.fileDownload = FileDownloadMode.PROXY;\n }\n else\n {\n Configuration.fileDownload = FileDownloadMode.FOLDER;\n }\n addListener(new Highlighter());\n }", "public TestWebClient() {\n\t\tresources = new LinkedList<Resource>();\n\t}", "void startClient(String name, Config.ClientConfig config);", "@Override\n\t\tpublic void configure(ClientDetailsServiceConfigurer clients) throws Exception {\n\t\t\tclients.inMemory()\n\t\t\t\t\t.withClient(\"browser\")\n\t\t\t\t\t.authorizedGrantTypes(\"refresh_token\", \"password\")\n\t\t\t\t\t.scopes(\"ui\")\n\t\t\t.and()\n\t\t\t\t\t.withClient(\"hello-service\")\n\t\t\t\t\t.secret(\"secret\")\n\t\t\t\t\t.authorizedGrantTypes(\"client_credentials\", \"refresh_token\")\n\t\t\t\t\t.scopes(\"server\");\n\t\t}", "@Bean(destroyMethod = \"close\", name = \"restClient\")\n public RestHighLevelClient initRestClient() {\n List<HttpHost> hosts = new ArrayList<>();\n String[] hostArrays = host.split(\",\");\n for (String host : hostArrays) {\n if (StringUtils.isNotEmpty(host)) {\n hosts.add(new HttpHost(host.trim(), port, \"http\"));\n }\n }\n\n RestClientBuilder restClientBuilder = RestClient.builder(hosts.toArray(new HttpHost[0]));\n\n // configurable auth\n if (authEnable) {\n final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();\n credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(username, password));\n restClientBuilder.setHttpClientConfigCallback(httpAsyncClientBuilder -> httpAsyncClientBuilder\n .setDefaultCredentialsProvider(credentialsProvider));\n }\n\n restClientBuilder.setRequestConfigCallback(requestConfigBuilder -> requestConfigBuilder\n .setConnectTimeout(connTimeout).setSocketTimeout(socketTimeout)\n .setConnectionRequestTimeout(connectionRequestTimeout));\n\n return new RestHighLevelClient(restClientBuilder);\n }", "static Http1Client create(Http1ClientConfig clientConfig) {\n return new Http1ClientImpl(WebClient.create(it -> it.from(clientConfig)), clientConfig);\n }", "void setSourceRepoUrl(String sourceRepoUrl);", "private WebClient getWebClient() {\n if (webClient == null) {\n webClient = new WebClient();\n webClient.getOptions().setUseInsecureSSL(true);\n webClient.getOptions().setThrowExceptionOnScriptError(false);\n webClient.getOptions().setCssEnabled(false);\n\n silenceWebClient(webClient);\n }\n\n return webClient;\n }", "@Override\n public void setWeb(String web) {\n this.web = web;\n }", "private static TypedProperties getClientConfig() throws Exception {\n final Map<String, Object> bindings = new HashMap<>();\n bindings.put(\"$nbDrivers\", nbDrivers);\n bindings.put(\"$nbNodes\", nbNodes);\n return ConfigurationHelper.createConfigFromTemplate(BaseSetup.DEFAULT_CONFIG.clientConfig, bindings);\n }", "@PostConstruct\n\tpublic void config() {\n\t\tthis.configureSwaggerV1();\n\t}", "@JacksonInject\n public void setClient(HttpClient client) {\n this.client = client;\n }", "public void setRepoURL(String repoURL) {\n this.repoURL = repoURL;\n }", "public void setClientRepository(String clientRepository) {\r\n this.clientRepository = clientRepository;\r\n }", "@Override\n\tpublic void configure(ClientDetailsServiceConfigurer clients) throws Exception {\n\t\t// @formatter:off\n\t\tclients\n\t\t\t.inMemory()\n\t\t\t\t.withClient(\"zoo\")\n\t\t\t\t.secret(\"zoo\")\n\t\t\t\t.authorizedGrantTypes(\"implicit\", \"authorization_code\", \"refresh_token\", \"password\", \"client_credentials\")\n\t\t\t\t.scopes(\"read\", \"write\")\t\t\t\t\n\t\t\t\t.autoApprove(true);\t\t\t\n\t\t// @formatter:on\n\t}", "public void setWeb(String web) {\n\t\tthis.web = web;\n\t}", "AWSCodeCommitClient(AwsSyncClientParams clientParams) {\n super(clientParams);\n this.awsCredentialsProvider = clientParams.getCredentialsProvider();\n init();\n }", "private static WebClient getClient(final Context context) {\n if (sInstance == null) {\n sInstance = new WebClient(context);\n }\n return sInstance;\n }", "@Override\n\tpublic void configure(ClientDetailsServiceConfigurer clients) throws Exception {\n\t\tclients.inMemory().withClient(\"client\").secret(\"secret\").scopes(\"read\", \"write\")\n\t\t\t\t.authorizedGrantTypes(\"password\", \"refresh_token\").and().withClient(\"client1\").secret(\"secret1\")\n\t\t\t\t.scopes(\"read\", \"write\").authorizedGrantTypes(\"authorization_code\", \"refresh_token\")\n\t\t\t\t.redirectUris(\"http://localhost:9090\").and().withClient(\"client2\").secret(\"secret2\")\n\t\t\t\t.scopes(\"read\", \"write\").authorizedGrantTypes(\"client_credentials\", \"refresh_token\");\n\t}", "BuildClient createBuildClient();", "@Before\n\tpublic void setup() {\n\n\t\tclient = ClientBuilder.newClient();\n\n\t}", "@Override\n public void configure(ClientDetailsServiceConfigurer clients) throws Exception {\n\n clients.inMemory()\n .withClient(\"clientapp\")\n .secret(\"{noop}123456\")\n .authorizedGrantTypes(\"authorization_code\")\n .scopes(\"user_info\")\n .autoApprove(true)\n .redirectUris(\"http://localhost:8082/user/oauth2/code/\");\n\n }", "@Override\n public void startNewSession(final IBrowser.BrowserType aBrowserType) {\n endSession();\n\n final WetatorConfiguration tmpConfiguration = wetatorEngine.getConfiguration();\n\n // reset the bookmarks\n bookmarks = new HashMap<>();\n\n final BrowserVersion tmpBrowserVersion = determineBrowserVersionFor(aBrowserType);\n\n DefaultCredentialsProvider tmpCredentialProvider = null;\n\n final String tmpHost = tmpConfiguration.getProxyHost();\n if (StringUtils.isNotEmpty(tmpHost)) {\n LOG.info(\"Proxy configured\");\n LOG.info(\"Proxy Host: '\" + tmpHost + \"'\");\n final int tmpPort = tmpConfiguration.getProxyPort();\n LOG.info(\"Proxy Port: '\" + tmpPort + \"'\");\n\n webClient = new WebClient(tmpBrowserVersion, tmpHost, tmpPort);\n\n final SecretString tmpProxyUser = tmpConfiguration.getProxyUser();\n if (null != tmpProxyUser && !tmpProxyUser.isEmpty()) {\n final String tmpUser = tmpProxyUser.getValue();\n LOG.info(\"Proxy User: '\" + tmpUser + \"'\");\n final String tmpPassword = tmpConfiguration.getProxyPassword().getValue();\n tmpCredentialProvider = new DefaultCredentialsProvider();\n webClient.setCredentialsProvider(tmpCredentialProvider);\n\n tmpCredentialProvider.addCredentials(tmpUser, tmpPassword, tmpHost, tmpPort, null);\n } else {\n LOG.info(\"Proxy no user defined\");\n }\n\n final Set<String> tmpNonProxyHosts = tmpConfiguration.getProxyHostsToBypass();\n\n for (final String tmpString : tmpNonProxyHosts) {\n String tmpHostsToProxyBypass = tmpString.trim();\n tmpHostsToProxyBypass = tmpHostsToProxyBypass.replaceAll(\"\\\\.\", \"\\\\\\\\.\");\n tmpHostsToProxyBypass = tmpHostsToProxyBypass.replaceAll(\"^\\\\*\", \".*\");\n\n webClient.getOptions().getProxyConfig().addHostsToProxyBypass(tmpHostsToProxyBypass);\n LOG.info(\"Proxy HostsToProxyBypass: '\" + tmpHostsToProxyBypass + \"'\");\n }\n } else {\n webClient = new WebClient(tmpBrowserVersion);\n }\n\n final SecretString tmpBasicAuthUser = tmpConfiguration.getBasicAuthUser();\n if (null != tmpBasicAuthUser && !tmpBasicAuthUser.isEmpty()) {\n final String tmpUser = tmpBasicAuthUser.getValue();\n final String tmpPassword = tmpConfiguration.getBasicAuthPassword().getValue();\n\n if (null == tmpCredentialProvider) {\n tmpCredentialProvider = new DefaultCredentialsProvider();\n webClient.setCredentialsProvider(tmpCredentialProvider);\n }\n\n tmpCredentialProvider.addCredentials(tmpUser, tmpPassword);\n webClient.setCredentialsProvider(tmpCredentialProvider);\n\n LOG.info(\"BasicAuth enabled user '\" + tmpUser + \"'.\");\n }\n\n final SecretString tmpNtlmUser = tmpConfiguration.getNtlmUser();\n if (null != tmpNtlmUser && !tmpNtlmUser.isEmpty()) {\n final String tmpUser = tmpNtlmUser.getValue();\n final String tmpPassword = tmpConfiguration.getNtlmPassword().getValue();\n final String tmpWorkstation = tmpConfiguration.getNtlmWorkstation().getValue();\n final String tmpDomain = tmpConfiguration.getNtlmDomain().getValue();\n\n if (null == tmpCredentialProvider) {\n tmpCredentialProvider = new DefaultCredentialsProvider();\n webClient.setCredentialsProvider(tmpCredentialProvider);\n }\n\n tmpCredentialProvider.addNTLMCredentials(tmpUser, tmpPassword, null, -1, tmpWorkstation, tmpDomain);\n\n LOG.info(\"NTLM enabled user '\" + tmpUser + \"' workstation '\" + tmpWorkstation + \"' domain '\" + tmpDomain + \"'.\");\n }\n\n // setup our listener\n webClient.addWebWindowListener(new WebWindowListener(this));\n webClient.setAttachmentHandler(new AttachmentHandler());\n webClient.setAlertHandler(new AlertHandler(wetatorEngine));\n webClient.getWebConsole().setLogger(new WebConsoleLogger(wetatorEngine));\n webClient.setIncorrectnessListener(new IncorrectnessListener(wetatorEngine));\n webClient.setConfirmHandler(new ConfirmHandler(wetatorEngine));\n\n // refresh handler - behave like the browser does\n webClient.setRefreshHandler(new WaitingRefreshHandler());\n\n // javascript\n webClient.getOptions().setJavaScriptEnabled(true);\n webClient.getOptions().setThrowExceptionOnScriptError(false);\n webClient.setJavaScriptErrorListener(new JavaScriptErrorListener(this));\n\n // webClient.getOptions().setThrowExceptionOnFailingStatusCode(false);\n // webClient.getOptions().setUseInsecureSSL(true);\n\n final Set<SearchPattern> tmpFilters = tmpConfiguration.getJsJobFilterPatterns();\n if (tmpFilters.isEmpty()) {\n jobFilter = null;\n } else {\n jobFilter = new JavaScriptJobFilter();\n for (final SearchPattern tmpSearchPattern : tmpFilters) {\n jobFilter.addPattern(tmpSearchPattern);\n }\n }\n\n // register activeX control mocker\n // should we do something like this?\n // webClient.getOptions().setActiveXNative(false);\n webClient.setActiveXObjectMap(tmpConfiguration.getBrowserActiveXObjects());\n\n // set Accept-Language header\n webClient.addRequestHeader(\"Accept-Language\", tmpConfiguration.getAcceptLanaguage());\n\n // trust all SSL-certificates\n webClient.getOptions().setUseInsecureSSL(true);\n\n // use client certificate key store\n final String tmpClientCertKeyStoreUrl = tmpConfiguration.getClientCertificateKeyStoreUrl();\n if (StringUtils.isNotEmpty(tmpClientCertKeyStoreUrl)) {\n final String tmpClientCertKeyStoreType = tmpConfiguration.getClientCertificateKeyStoreType();\n final SecretString tmpClientCertKeyStorePassword = tmpConfiguration.getClientCertificateKeyStorePassword();\n\n LOG.info(\"ClientCertificateKeyStore configured\");\n LOG.info(\" URL: \" + tmpClientCertKeyStoreUrl);\n LOG.info(\" Type: \" + tmpClientCertKeyStoreType);\n LOG.info(\" Password: \" + tmpClientCertKeyStorePassword);\n\n try {\n final URL tmpKeyStoreURL = new URL(tmpClientCertKeyStoreUrl);\n webClient.getOptions().setSSLClientCertificate(tmpKeyStoreURL, tmpClientCertKeyStorePassword.getValue(),\n tmpClientCertKeyStoreType);\n } catch (final Exception e) {\n LOG.error(\"Failed to use configured ClientCertificateKeyStore.\", e.getCause());\n }\n }\n\n // set the timeout\n webClient.getOptions().setTimeout(tmpConfiguration.getHttpTimeoutInSeconds() * 1000);\n\n // debug stuff\n if (tmpConfiguration.isDebugLoggingEnabled()) {\n final HtmlUnitContextFactory tmpContextFactory = ((JavaScriptEngine) webClient.getJavaScriptEngine())\n .getContextFactory();\n tmpContextFactory.setDebugger(new DebuggerImpl());\n }\n // webClient.setAjaxController(new NicelyResynchronizingAjaxController());\n if (tmpConfiguration.startJsDebugger()) {\n WebClientUtils.attachVisualDebugger(webClient);\n }\n }", "@Override\r\n\tpublic void configure(ClientDetailsServiceConfigurer clients) throws Exception {\n\r\n\t\tclients.inMemory().withClient(\"acme\").secret(\"acmesecret\")\r\n\t\t\t\t.authorizedGrantTypes(\"client-credentials\", \"authorization_code\", \"refresh_token\", \"password\")\r\n\t\t\t\t.scopes(SCOPES_GRANTED).autoApprove(SCOPES_AUTO_APPROVED) ;\r\n\r\n\t}", "@Bean(name = \"stormpathClient\")\n @Autowired\n public Client getStormpathClient(BridgeConfig bridgeConfig) {\n ApiKey apiKey = ApiKeys.builder()\n .setId(bridgeConfig.getStormpathId().trim())\n .setSecret(bridgeConfig.getStormpathSecret().trim()).build();\n \n ClientBuilder clientBuilder = Clients.builder().setApiKey(apiKey);\n ((DefaultClientBuilder)clientBuilder).setBaseUrl(bridgeConfig.getStormpathBaseUrl());\n return clientBuilder.build(); \n }", "WithCreate withRepoUrl(String repoUrl);", "public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }", "@Override\n public void configure(ClientDetailsServiceConfigurer clients) throws Exception {\n clients.inMemory()\n .withClient(adminUsername)\n .secret(adminPassword)\n .resourceIds(Constants.RESOURCE_ID)\n .authorizedGrantTypes(\"client_credentials\",\"refresh_token\")\n .authorities(\"ROLE_CLIENT\", \"ROLE_TRUSTED_CLIENT\", \"ROLE_ADMIN\")\n .scopes(\"read\", \"write\", \"trust\")\n .accessTokenValiditySeconds(Constants.ACCESS_SECONDS)\n .refreshTokenValiditySeconds(Constants.THIRTY_DAYS)\n .and()\n .withClient(userUserName)\n .secret(userPassword)\n .resourceIds(Constants.RESOURCE_ID)\n .authorizedGrantTypes(\"client_credentials\",\"refresh_token\")\n .authorities(\"ROLE_CLIENT\", \"ROLE_TRUSTED_CLIENT\", \"ROLE_USER\")\n .scopes(\"read\", \"write\", \"trust\")\n .accessTokenValiditySeconds(Constants.ACCESS_SECONDS)\n .refreshTokenValiditySeconds(Constants.THIRTY_DAYS);\n }", "@Before\n public void setUp() {\n restClient = new RestClient(client, accessTokenProvider, nestUrls);\n }", "private void configureGoogleClient() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n // for the requestIdToken, this is in the values.xml file that\n // is generated from your google-services.json\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n // Build a GoogleSignInClient with the options specified by gso.\n googleSignInClient = GoogleSignIn.getClient(this, gso);\n // Initialize Firebase Auth\n firebaseAuth = FirebaseAuth.getInstance();\n }", "RestClientBuilder(){\n\n }", "public CachetClient(String url) {\n baseUrl = url;\n client = ClientBuilder.newClient();\n target = client.target(baseUrl);\n }", "public void setBaseUrl(String baseUrl) {\n this.baseUrl = baseUrl;\n }", "private ClientBootstrap() {\r\n init();\r\n }", "@Test(dependsOnMethods = \"testEnableAuth\", groups = \"authEnable\", priority = 1)\n public void setupAuthClient() {\n this.userClient = Client.builder()\n .endpoints(endpoints)\n .user(user)\n .password(userNewPass).build();\n this.rootClient = Client.builder()\n .endpoints(endpoints)\n .user(root)\n .password(rootPass).build();\n }", "public static void main(String... args) throws Exception {\n String token = args.length > 0 ? args[0] : \"\";\n String url = args.length > 1 ? args[1] : \"https://github.com/FasterXML/jackson-databind\";\n GitHubProject project = GitHubProject.parse(url);\n GitHub github = new GitHubBuilder().withOAuthToken(token).build();\n NumberOfDependentProjectOnGitHub provider\n = new NumberOfDependentProjectOnGitHub(new GitHubDataFetcher(github, token));\n System.out.println(provider.fetchValueFor(project));\n }", "@Bean(destroyMethod = \"close\")\n public RestHighLevelClient client() {\n final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();\n credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(esUser, esPassword));\n\n RestClientBuilder builder = RestClient.builder(new HttpHost(esHost, esPort, \"https\"))\n .setHttpClientConfigCallback(httpClientBuilder -> httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider));\n\n return new RestHighLevelClient(builder);\n }", "public BitbucketServiceFactory() {\n this.httpClient = HttpClient::create;\n }", "@Override\n\tpublic void initWebViewClient(BBWebViewClient webViewClient) {\n\t\ttry {\n\t\t\tthis._webView.setWebViewClient(webViewClient);\n\t\t} catch (Exception ex) {\n\t\t\t\n\t\t}\n\t}", "public void createClientFromCredential() {\n WebPubSubServiceAsyncClient serverClient = new WebPubSubServiceClientBuilder()\n .connectionString(\"<connection-string>\")\n .hub(\"<hub>>\")\n .buildAsyncClient();\n\n // wrap WebPubSubServiceAsyncClient.getClientAccessToken as WebPubSubClientCredential\n WebPubSubClientCredential clientCredential = new WebPubSubClientCredential(Mono.defer(() ->\n serverClient.getClientAccessToken(new GetClientAccessTokenOptions()\n .setUserId(\"<user-name>\")\n .addRole(\"webpubsub.joinLeaveGroup\")\n .addRole(\"webpubsub.sendToGroup\"))\n .map(WebPubSubClientAccessToken::getUrl)));\n\n // create WebPubSub client\n WebPubSubClient client = new WebPubSubClientBuilder()\n .credential(clientCredential)\n .buildClient();\n // END: readme-sample-createClientFromCredential\n }", "public Configuration.Builder getClientIdAndClientSecretBuilder() {\n String clientId = \"0993a005480472a69fab10c2f9b8ad0d6bee7acf\";//getString(R.string.client_id);\n String clientSecret=\"oVsWjoQ2RHeHvZ8xK3yrtdHrG7YiN+rnHh4qqBfmscDbCwplTFzytAoVIVrXMnAQShuBYuA6fZftYL+AIvX5zRP8JXOs06dQcej1yeL/ACJSGuiKoQJbqdC6CELuP+Pl\";\n\n String codeGrantRedirectUri = \"deva://robokart\";\n Configuration.Builder configBuilder =\n new Configuration.Builder(clientId, clientSecret, SCOPE, null,\n null);\n configBuilder.setCacheDirectory(this.getCacheDir())\n .setUserAgentString(getUserAgentString(this))\n // Used for oauth flow\n .setCodeGrantRedirectUri(codeGrantRedirectUri);\n\n return configBuilder;\n }", "@ZAttr(id=506)\n public void setWebClientLoginURL(String zimbraWebClientLoginURL) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraWebClientLoginURL, zimbraWebClientLoginURL);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public Builder(HttpClientConfiguration clientConfiguration) {\n this.clientConfiguration = clientConfiguration;\n }", "public static void main(String[] args) {\n\n Client client = ClientBuilder.newClient();\n WebTarget target = client.target(\"http\");\n\n }", "@Override\n Builder overrideConfiguration(ClientOverrideConfiguration clientOverrideConfiguration);", "public ProxyConfig createProxyConfig();", "public void setBaseUrl(final String baseUrl) {\n this.baseUrl = baseUrl;\n }", "@Override\n\tprotected HttpRequest createHttpRequest() {\n HttpGet httpGet = new HttpGet(getHost() + \"/repos/\" + owner + \"/\" + repo + \"/pulls?state=\" + state);\n httpGet.setHeader(\"Accept\", GITHUB_ACCEPT_HEADER);\n if (username != null && password != null) {\n \thttpGet.setHeader(\"Authentication\", AuthenticationUtils.getBasicAuthentication(username, password));\n }\n return httpGet;\n }", "@Override\n public void configure(ClientDetailsServiceConfigurer clients) throws Exception {\n clients.jdbc(dataSource)\n .withClient(\"acme\")\n .secret(\"acmesecret\")\n .authorizedGrantTypes(\"authorization_code\", \"refresh_token\")\n .accessTokenValiditySeconds(10) \n .refreshTokenValiditySeconds(-1)\n .scopes(\"read,write\")\n .autoApprove(true)\n .and()\n .withClient(\"acme2\")\n .secret(\"acmesecret2\")\n .authorizedGrantTypes(\"authorization_code\", \"refresh_token\")\n .accessTokenValiditySeconds(10) \n .refreshTokenValiditySeconds(-1)\n .scopes(\"read,write\")\n .autoApprove(true);\n }", "String repoUrl();", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\n\t\tWebServiceFactory.setEndpointAddress(endpointUrl);\n\t\trepositoryService = WebServiceFactory.getRepositoryService();\n\t\t\n\t}", "static Http1ClientConfig.Builder builder() {\n return Http1ClientConfig.builder();\n }", "@Override\n\tpublic void configure(ClientDetailsServiceConfigurer clients)\n\t\t\tthrows Exception {\n\t\n\t\tclients.jdbc(dataSource)\n\t\t\t\t.passwordEncoder(passwordEncoder)\n\t\t\t\t.withClient(\"client\")\n\t\t\t\t.authorizedGrantTypes(\"authorization_code\", \"client_credentials\", \n\t\t\t\t\t\t\"refresh_token\",\"password\", \"implicit\")\n\t\t\t\t.authorities(\"ROLE_CLIENT\")\n\t\t\t\t.resourceIds(\"apis\")\n\t\t\t\t.scopes(\"read\")\n\t\t\t\t.secret(\"secret\")\n\t\t\t\t.accessTokenValiditySeconds(300);\n\t\n\t}", "public TicketClient(@Value(\"${app.ticket-catalog.url}\") String serverUrl) {\n this.serverUrl = serverUrl;\n this.restTemplate = new RestTemplate();\n var requestFactory = new SimpleClientHttpRequestFactory();\n this.restTemplate.setRequestFactory(requestFactory);\n }", "public void setClient(Client client) {\r\n\t\tthis.client = client;\r\n\t}", "protected void setClient(Client _client) {\n\t\tclient = _client;\n\t}", "protected HttpJsonEventarcStub(EventarcStubSettings settings, ClientContext clientContext)\n throws IOException {\n this(settings, clientContext, new HttpJsonEventarcCallableFactory());\n }", "public IntegrationHealthCheck(Client client, String url) {\r\n this.webTarget = client.target(url);\r\n }", "protected HttpJsonEdgeContainerStub(\n EdgeContainerStubSettings settings, ClientContext clientContext) throws IOException {\n this(settings, clientContext, new HttpJsonEdgeContainerCallableFactory());\n }", "public ClientRepositoryFactory() {\n this(new ClientAdapterFactory());\n }", "public String getRepoURL() {\n return repoURL;\n }", "public static void configure (Configuration config, String browser) {\n CONFIG = config;\n DRIVER = config.getDriver(browser); \n }", "public ClientConfiguration getClientConfiguration(TargetModuleID id);", "public static void main(String[] args) {\n SpringApplication.run(WebclientApplication.class, args);\n }", "@Override\n public void onConfigChange(IntegrationSettings settings) {\n String user = settings.getType();\n\n for (GithubParser parser : getBeans()) {\n parser.setIntegrationUser(user);\n }\n }", "public ClientConfiguration() {\n serverIp = DEFAULT_SERVER_IP;\n serverPort = DEFAULT_SERVER_PORT;\n }", "public GetRepositoryConfigurationMethod( String url, ProgressMonitor progressMonitor ) {\r\n super( url, progressMonitor );\r\n }", "@Bean\n\tpublic HttpClient httpClient() {\n\t\treturn new HttpClient(this.multiThreadedHttpConnectionManager);\n\t}", "@Override\n public void configure() throws Exception {\n restConfiguration()\n .component(\"netty-http\")\n .host(\"0.0.0.0\")\n .port(8099);\n\n rest()\n .post(\"/webhook\")\n .route()\n .setBody(constant(\"{\\\"ok\\\": true}\"))\n .endRest()\n .post(\"/slack/api/conversations.list\")\n .route()\n .setBody(constant(\n \"{\\\"ok\\\":true,\\\"channels\\\":[{\\\"id\\\":\\\"ABC12345\\\",\\\"name\\\":\\\"general\\\",\\\"is_channel\\\":true,\\\"created\\\":1571904169}]}\"))\n .endRest()\n .post(\"/slack/api/conversations.history\")\n .route()\n .setBody(constant(\n \"{\\\"ok\\\":true,\\\"messages\\\":[{\\\"type\\\":\\\"message\\\",\\\"subtype\\\":\\\"bot_message\\\",\\\"text\\\":\\\"Hello Camel Quarkus Slack\\\"\"\n + \",\\\"ts\\\":\\\"1571912155.001300\\\",\\\"bot_id\\\":\\\"ABC12345C\\\"}],\\\"has_more\\\":true\"\n + \",\\\"channel_actions_ts\\\":null,\\\"channel_actions_count\\\":0}\"));\n }", "void configure (CallbackUtilities cus) throws RootException;", "public static Client createClient() {\n JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();\n provider.setAnnotationsToUse(new Annotations[]{Annotations.JACKSON});\n\n ClientConfig config = new ClientConfig(provider);\n //Allow delete request with entity\n config.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);\n //It helps to handle cookies\n config.property(ClientProperties.FOLLOW_REDIRECTS, Boolean.FALSE);\n //Allow PATCH\n config.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);\n\n Logger logger = Logger.getLogger(\"Client\");\n Feature feature = new LoggingFeature(logger, Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY,\n null);\n\n //Allow self trusted certificates\n SSLContext sslcontext;\n try {\n sslcontext = SSLContext.getInstance(\"TLS\");\n sslcontext.init(null, new TrustManager[]{new X509TrustManager() {\n public void checkClientTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public void checkServerTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[0];\n }\n }}, new java.security.SecureRandom());\n } catch (KeyManagementException | NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n\n return ClientBuilder\n .newBuilder()\n .withConfig(config)\n .sslContext(sslcontext)\n .build()\n .register(feature)\n .register(MultiPartFeature.class);\n }", "@BeforeClass\n public static void setUp() throws Exception\n {\n Assume.assumeTrue(InetAddress.getByName(\"api.github.com\").isReachable(1000));\n Assume.assumeNotNull(System.getProperty(\"github.username\"), \n System.getProperty(\"github.password\"));\n\n }", "@Before\n public void init(){\n mockClient = MockWebServiceClient.createClient(applicationContext);\n }", "@Before\n public void init(){\n mockClient = MockWebServiceClient.createClient(applicationContext);\n }", "public interface GitHubApi {\n\nString CALL_BACK = \"gitdroid\";\n // GitHub开发者,申请就行\n String CLIENT_ID = \"42da7ad27e1072117a76\";\n String CLIENT_SECRET = \"0d6c0947115aa6ec24498e96fa912ca02fc0457a\";\n\n // 授权时申请的可访问域\n String INITIAL_SCOPE = \"user,public_repo,repo\";\n\n // WebView来加载此URL,用来显示GitHub的登陆页面\n String AUTH_URL =\n \"https://github.com/login/oauth/authorize?client_id=\" +\n CLIENT_ID + \"&\" + \"scope=\" + INITIAL_SCOPE;\n /**\n * 获取访问令牌API\n * @Filed 代表的是表格中的字段名 @FiledMap(Map集合)(调用时传入一个map集合就可以)\n * @Headers 代表请求头 请求token的方法(call模型)\n */\n @Headers(\"Accept: application/json\")\n @FormUrlEncoded\n @POST(\"https://github.com/login/oauth/access_token\")\n Call<AccessResultToken> getOAuthToken(\n @Field(\"client_id\") String client,\n @Field(\"client_secret\") String clientSecret,\n @Field(\"code\") String code);\n //请求用户信息:\n @GET(\"user\")\n Call<User> getUserInfo();\n //搜索热门仓库的api\n //search/repositories?q={query}{&page,per_page,sort,order}\n //http://api.github.com/search/repositories?q=java&page=1\n @GET(\"search/repositories\")\n Call<RepoResult> getRepoSearch(@Query(\"q\")String language, @Query(\"page\")int pageId);\n // https://api.github.com/repos/square/okhttp/readme\n /**\n * @param owner 仓库的拥有者\n * @param repo 仓库的名称\n * @return 仓库的Readme页面的内容,{@link RepoContentResult#content}将是Markdown格式。\n */\n @GET(\"repos/{owner}/{repo}/readme\")\n Call<RepoContentResult> getReadme(@Path(\"owner\") String owner, @Path(\"repo\") String repo);\n\n /**\n * 获取一个Markdown内容对应的HTMl页面\n * @param body 请求体,内容来自{@link RepoContentResult#content}\n * @return Call对象\n */\n @Headers({\n \"Content-Type:text/plain\"\n })\n @POST(\"/markdown/raw\")\n Call<ResponseBody> markdown(@Body RequestBody body);\n}", "@ApiModelProperty(value = \"The Software Statement RFC-3986-compliant client URI\")\n\n@Size(max=256) \n public String getClientUri() {\n return clientUri;\n }", "public boolean shouldOverrideHttpClientConfigurations() {\r\n return configuration.shouldOverrideHttpClientConfigurations();\r\n }", "@Override\n public HelixZkClient buildZkClient(HelixZkClient.ZkConnectionConfig connectionConfig,\n HelixZkClient.ZkClientConfig clientConfig) {\n return new ZkClient(createZkConnection(connectionConfig),\n (int) clientConfig.getConnectInitTimeout(), clientConfig.getOperationRetryTimeout(),\n clientConfig.getZkSerializer(), clientConfig.getMonitorType(), clientConfig.getMonitorKey(),\n clientConfig.getMonitorInstanceName(), clientConfig.isMonitorRootPathOnly());\n }", "private void generate15Client(boolean isJsr109Platform, ProgressHandle handle) throws IOException {\n JAXWSClientSupport jaxWsClientSupport=null;\n if(project != null) {\n jaxWsClientSupport = JAXWSClientSupport.getJaxWsClientSupport(project.getProjectDirectory());\n }\n if(jaxWsClientSupport == null) {\n // notify no client support\n//\t\t\tString mes = MessageFormat.format (\n//\t\t\t\tNbBundle.getMessage (WebServiceClientWizardIterator.class, \"ERR_WebServiceClientSupportNotFound\"),\n//\t\t\t\tnew Object [] {\"Servlet Listener\"}); //NOI18N\n String mes = NbBundle.getMessage(WebServiceClientWizardIterator.class, \"ERR_NoWebServiceClientSupport\"); // NOI18N\n NotifyDescriptor desc = new NotifyDescriptor.Message(mes, NotifyDescriptor.Message.ERROR_MESSAGE);\n DialogDisplayer.getDefault().notify(desc);\n handle.finish();\n return;\n }\n \n String wsdlUrl = (String)wiz.getProperty(ClientWizardProperties.WSDL_DOWNLOAD_URL);\n String filePath = (String)wiz.getProperty(ClientWizardProperties.WSDL_FILE_PATH);\n Boolean useDispatch = (Boolean) wiz.getProperty(ClientWizardProperties.USEDISPATCH);\n //if (wsdlUrl==null) wsdlUrl = \"file:\"+(filePath.startsWith(\"/\")?filePath:\"/\"+filePath); //NOI18N\n if(wsdlUrl == null){\n wsdlUrl = FileUtil.toFileObject(FileUtil.normalizeFile(new File(filePath))).toURL().toExternalForm();\n }\n String packageName = (String)wiz.getProperty(ClientWizardProperties.WSDL_PACKAGE_NAME);\n if (packageName!=null && packageName.length()==0) packageName=null;\n String clientName = jaxWsClientSupport.addServiceClient(getWsdlName(wsdlUrl),wsdlUrl,packageName, isJsr109Platform); \n if (useDispatch) {\n List clients = jaxWsClientSupport.getServiceClients();\n for (Object c : clients) {\n if (((Client)c).getName().equals(clientName)) {\n ((Client)c).setUseDispatch(useDispatch);\n }\n }\n JaxWsModel jaxWsModel = (JaxWsModel) project.getLookup().lookup(JaxWsModel.class);\n jaxWsModel.write();\n }\n handle.finish();\n }", "@Override\r\n\tpublic void configure(ClientDetailsServiceConfigurer clients) throws Exception {\n\t\tclients.inMemory().withClient(\"AsisgeApp\").secret(passwordEncoder.encode(\"clave123\"))\r\n\t\t\t\t.scopes(\"read\", \"write\")\r\n\t\t\t\t.authorizedGrantTypes(\"password\", \"refresh_token\")\r\n\t\t\t\t.accessTokenValiditySeconds(3600)\r\n\t\t\t\t.refreshTokenValiditySeconds(3600);\r\n\t}", "public void setClient(Client client) {\n\t\tthis.client = client;\n\t}", "@BeforeClass\n public static void createClient() {\n client = HttpClients.createDefault();\n }", "String getSourceRepoUrl();" ]
[ "0.66716146", "0.62694657", "0.5855533", "0.5711169", "0.56443983", "0.5637216", "0.560258", "0.55931246", "0.55533326", "0.5307424", "0.52497923", "0.5203868", "0.5186141", "0.5179543", "0.51784724", "0.51605976", "0.51025915", "0.5099808", "0.5085769", "0.505818", "0.49997163", "0.4995558", "0.4964454", "0.49363238", "0.49355757", "0.4927668", "0.4898028", "0.48897246", "0.48871294", "0.48761532", "0.48527625", "0.4839642", "0.48378974", "0.48354304", "0.48325646", "0.4822225", "0.4816957", "0.48118433", "0.48041752", "0.4794806", "0.47808433", "0.4777939", "0.4775842", "0.4771944", "0.475909", "0.4753458", "0.47524595", "0.47500232", "0.47491926", "0.47299415", "0.47044244", "0.47029164", "0.46994445", "0.4697007", "0.46956304", "0.4694028", "0.46896666", "0.4687176", "0.46867585", "0.46809453", "0.4679729", "0.4675392", "0.4672802", "0.46675432", "0.46574986", "0.4656891", "0.4655346", "0.46461225", "0.46439728", "0.46394023", "0.46382767", "0.46368575", "0.4636394", "0.46275672", "0.4617436", "0.46157467", "0.4612589", "0.46119404", "0.46110466", "0.46048427", "0.46033725", "0.4603013", "0.46018967", "0.46014076", "0.4599562", "0.45978355", "0.45963854", "0.4588479", "0.45867", "0.4585489", "0.4585489", "0.45852244", "0.4575484", "0.45705476", "0.4566288", "0.45632878", "0.4557995", "0.45551628", "0.45533702", "0.45530084" ]
0.7953814
0
Test case for widgets sorted by color
@Test public void testShipment_Sorted_By_Color() { List<Widget> widgets = shipment.getWidgetsSortedByColor(); assertNotNull(widgets); assertTrue(widgets.size() == 10); Widget widget1 = (Widget) widgets.get(0); Widget widget2 = (Widget) widgets.get(1); assertTrue(widget1.getColor().compareTo(widget2.getColor()) <= 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void refreshColorPanel() {\n if (quickPaintAnnotationButton != null) {\r\n quickPaintAnnotationButton.refreshColorPanel();\r\n }\r\n\r\n colorFilterMenuItem.removeAll();\r\n // build colour submenu based on colour labels\r\n ButtonGroup filterColorMenuGroup = new ButtonGroup();\r\n JCheckBoxMenuItem filterColorAllMenuItem = new JCheckBoxMenuItem();\r\n filterColorAllMenuItem.setAction(new FilterColorAction(\r\n messageBundle.getString(\"viewer.utilityPane.markupAnnotation.toolbar.filter.option.byColor.all.label\"),\r\n null));\r\n colorFilterMenuItem.add(filterColorAllMenuItem);\r\n filterColorMenuGroup.add(filterColorAllMenuItem);\r\n ArrayList<DragDropColorList.ColorLabel> colorLabels = DragDropColorList.retrieveColorLabels();\r\n int defaultColor = preferences.getInt(ViewerPropertiesManager.PROPERTY_ANNOTATION_FILTER_COLOR_COLUMN, -1);\r\n JCheckBoxMenuItem filterColorMenuItem;\r\n if (colorLabels.size() > 0) {\r\n for (DragDropColorList.ColorLabel colorLabel : colorLabels) {\r\n filterColorMenuItem = new JCheckBoxMenuItem();\r\n FilterColorAction sortAction = new FilterColorAction(\r\n colorLabel.getLabel(),\r\n colorLabel.getColor());\r\n filterColorMenuItem.setAction(sortAction);\r\n colorFilterMenuItem.add(filterColorMenuItem);\r\n filterColorMenuGroup.add(filterColorMenuItem);\r\n if (defaultColor != -1 && defaultColor == sortAction.getColorRGB()) {\r\n filterColorMenuItem.setSelected(true);\r\n filterColorAction = sortAction;\r\n }\r\n }\r\n }\r\n if (defaultColor == -1) {\r\n filterColorAllMenuItem.setSelected(true);\r\n filterColorAction = filterColorAllMenuItem.getAction();\r\n }\r\n }", "@Test\n public void testShipment_Sorted_By_Date() {\n List<Widget> widgets = shipment.getWidgetsSortedByDate();\n assertNotNull(widgets);\n assertTrue(widgets.size() == 10);\n Widget widget1 = (Widget) widgets.get(0);\n Widget widget2 = (Widget) widgets.get(1);\n assertTrue(widget1.getColor().compareTo(widget2.getColor()) <= 0);\n }", "public interface WidgetColors {\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_ENCLOSURE_BG = new Color(40, 40, 40);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_BG = new Color(60, 60, 60);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_FG = new Color(180, 180, 180);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_SELECTION_BG = new Color(80, 0, 0);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_SELECTION_FG = new Color(240, 240, 240);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_NON_FOCUS = new Color(70, 70, 70);\n\t/**\n\t * \n\t */\n\tpublic static final Color HEADER_COLOR = new Color(20, 20, 20, 230);\n\t/**\n\t * \n\t */\n\tpublic static final Color PROPERTIES_BACKGROUND = Color.LIGHT_GRAY;\n\t/**\n\t * \n\t */\n\tpublic static final Color TEXT_COLOR = new Color(210, 210, 210);\n\n}", "private void sortByAmount(){\n int stopPos = 0;\n while(colours.size()-stopPos > 0){\n int inARow = 1;\n for(int i = colours.size() - 1; i > stopPos; i--){\n if(colours.get(i-1).getAmount() < colours.get(i).getAmount()){\n rgb temp = new rgb(colours.get(i-1));\n colours.set(i-1, colours.get(i));\n colours.set(i, temp);\n }else{\n inARow++;\n }\n }\n stopPos++;\n if(inARow == colours.size()){\n break;\n }\n }\n }", "private void sortByColor(String color) {\n printedTasks = new ArrayList<>(this.tasks);\n if (color != null) {\n ArrayList<Task> tmp = new ArrayList<>(printedTasks);\n for (Task task : tmp) {\n System.out.println(\"color : \" + Color.parseColor(color) + \"|\" + task.getColor());\n if (task.getColor() != Color.parseColor(color)) {\n printedTasks.remove(task);\n }\n }\n }\n this.mAdapter = new AdapterList(printedTasks, this);\n this.recyclerView.setAdapter(mAdapter);\n }", "private static void setButtonsColor(){\r\n for(MyButton b: mylist.getAllButtons()){\r\n if(!b.isChosen()){\r\n b.resetColor();\r\n }\r\n }\r\n \r\n for (MyButton b1: mylist.getAllButtons()){\r\n if(b1.isChosen()){\r\n for(MyButton b2 : mylist.getAllButtons()){\r\n if(!b1.equals(b2)){ \r\n if (b2.block.isSameType(b1.block)){ \r\n b2.setCannotBeChosen();\r\n }\r\n else if (!b2.isChosen() && b2.block.isAtSameTime(b1.block)){\r\n b2.setCannotBeChosen();\r\n }\r\n }\r\n }\r\n }\r\n } \r\n }", "void testColorChecker(Tester t) {\r\n initData();\r\n Cell topLeft = (Cell) this.game7.indexHelp(0, 0);\r\n Cell topRight = (Cell) this.game7.indexHelp(1, 0);\r\n Cell botLeft = (Cell) this.game7.indexHelp(0, 1);\r\n Cell botRight = (Cell) this.game7.indexHelp(1, 1);\r\n t.checkExpect(topLeft.flooded, true);\r\n t.checkExpect(topRight.flooded, false);\r\n t.checkExpect(botLeft.flooded, false);\r\n t.checkExpect(botRight.flooded, false);\r\n\r\n topRight.colorChecker(topLeft.color);\r\n t.checkExpect(topRight.flooded, true);\r\n t.checkExpect(botRight.flooded, true);\r\n t.checkExpect(botLeft.flooded, false);\r\n t.checkExpect(topLeft.flooded, true);\r\n }", "@Override\n public int compare(Color color1, Color color2)\n {\n return ( color1.getRGB() > color2.getRGB() ) ? 1 : ( ( color1.getRGB() < color2.getRGB() ) ? -1 : 0 );\n }", "private void createRgbHsbButtons() {\n \t\n Composite comp1 = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(3, false);\n gl.horizontalSpacing = 10;\n comp1.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n comp1.setLayoutData(gd);\n\n // Create a group to contain the RGB and HSB radio buttons.\n Group colorGroup = new Group(comp1, SWT.NONE);\n colorGroup.setText(\" Use color model: \");\n\n RowLayout groupRowLayout = new RowLayout();\n groupRowLayout.marginLeft = 10;\n groupRowLayout.marginRight = 10;\n groupRowLayout.spacing = 10;\n colorGroup.setLayout(groupRowLayout);\n\n // Create the RGB radio button. When the radio button is selected\n // update the upper and lower color wheel objects to display the RGB\n // sliders.\n rgbRdo = new Button(colorGroup, SWT.RADIO);\n rgbRdo.setText(\"RGB\");\n rgbRdo.setSelection(true);\n rgbRdo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n changeColorWheels();\n }\n });\n\n // Create the HSB radio button. When the radio button is selected\n // update the upper and lower color wheel objects to display the HSB\n // sliders.\n hsbRdo = new Button(colorGroup, SWT.RADIO);\n hsbRdo.setText(\"HSB\");\n hsbRdo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n changeColorWheels();\n }\n });\n \n Composite catComp = new Composite(comp1, SWT.NONE);\n gl = new GridLayout(1, false);\n gl.horizontalSpacing = 20;\n catComp.setLayout(gl);\n gd = new GridData(GridData.CENTER);\n gd.horizontalAlignment = SWT.CENTER;\n \n catComp.setLayoutData(gd);\n\n Label selCatLbl = new Label( catComp, SWT.None );\n selCatLbl.setText(\"Category\");\n \n final Combo selCmapCatCombo = new Combo( catComp, SWT.DROP_DOWN | SWT.READ_ONLY );\n selCmapCatCombo.setItems( availColorMapCats );\n selCmapCatCombo.select(0);\n \n selCmapCatCombo.addSelectionListener( new SelectionAdapter() {\n \tpublic void widgetSelected(SelectionEvent event) {\n \t\tString seldCat = selCmapCatCombo.getText();\n \t\tif( seldCat.equals( seldCmapCat ) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tseldCmapCat = seldCat;\n \t\tseldCmapName = null;\n \t\tavailColorMaps.clear();\n \t\t\n for( String cmap : ColorMapUtil.listColorMaps(seldCmapCat) ) {\n \tif( seldCmapName == null ) {\n \t\tseldCmapName = cmap;\n \t\tif( !initColorMap() ) {\n \t\tseldCmapName = null;\n \t\t\tcontinue; // don't add to the list\n \t\t}\n \t}\n \tavailColorMaps.add(cmap);\n }\n \t\n createSliderData();\n selCmapCombo.setItems( availColorMaps.toArray(new String[0] ) );\n selCmapCombo.select(0);\n colorBar.setNewColorMap(sliderText, colorArray);\n \t}\n });\n \n Composite cmapComp = new Composite(comp1, SWT.NONE);\n gl = new GridLayout(1, false);\n gl.horizontalSpacing = 10;\n cmapComp.setLayout(gl);\n gd = new GridData(GridData.FILL_HORIZONTAL);\n cmapComp.setLayoutData(gd);\n\n Label selCmapLbl = new Label( cmapComp, SWT.None );\n selCmapLbl.setText(\"Colormap\");\n \n selCmapCombo = new Combo( cmapComp, SWT.DROP_DOWN );\n selCmapCombo.setItems( availColorMaps.toArray(new String[0] ) );\n selCmapCombo.select(0);\n \n selCmapCombo.addSelectionListener( new SelectionAdapter() {\n \tpublic void widgetSelected(SelectionEvent event) {\n \t\tString seldCmap = selCmapCombo.getText();\n \t\tif( seldCmap.equals( seldCmapName ) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tseldCmapName = seldCmap;\n\n \t\tif( initColorMap() ) {\n createSliderData();\n \t\t}\n colorBar.setNewColorMap(sliderText, colorArray);\n \t}\n });\n \n// selCmapCombo.addModifyListener( new ModifyListener() {\n//\t\t\t@Override\n//\t\t\tpublic void modifyText(ModifyEvent e) { \n//\t\t\t\tseldCmapName = selCmapCombo.getText();\n//\t\t\t}\n// });\n }", "@Test @IdeGuiTest\n public void testColorPickerAlpha() throws IOException {\n myProjectFrame = importSimpleApplication();\n ThemeEditorFixture themeEditor = ThemeEditorTestUtils.openThemeEditor(myProjectFrame);\n ThemeEditorTableFixture themeEditorTable = themeEditor.getPropertiesTable();\n\n TableCell cell = row(1).column(0);\n\n JTableCellFixture colorCell = themeEditorTable.cell(cell);\n ResourceComponentFixture resourceComponent = new ResourceComponentFixture(myRobot, (ResourceComponent)colorCell.editor());\n colorCell.startEditing();\n resourceComponent.getSwatchButton().click();\n\n ChooseResourceDialogFixture dialog = ChooseResourceDialogFixture.find(myRobot);\n ColorPickerFixture colorPicker = dialog.getColorPicker();\n Color color = new Color(200, 0, 0, 200);\n colorPicker.setFormat(\"ARGB\");\n colorPicker.setColorWithIntegers(color);\n JTextComponentFixture alphaLabel = colorPicker.getLabel(\"A:\");\n SlideFixture alphaSlide = colorPicker.getAlphaSlide();\n alphaLabel.requireVisible();\n alphaSlide.requireVisible();\n colorPicker.setFormat(\"RGB\");\n alphaLabel.requireNotVisible();\n alphaSlide.requireNotVisible();\n colorPicker.setFormat(\"HSB\");\n alphaLabel.requireNotVisible();\n alphaSlide.requireNotVisible();\n\n dialog.clickOK();\n colorCell.stopEditing();\n }", "private void createBottomButtons() {\n // Create a composite that will contain the control buttons.\n Composite bottonBtnComposite = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(3, true);\n gl.horizontalSpacing = 10;\n bottonBtnComposite.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n bottonBtnComposite.setLayoutData(gd);\n\n // Create the Interpolate button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n interpolateBtn = new Button(bottonBtnComposite, SWT.PUSH);\n interpolateBtn.setText(\"Interpolate\");\n interpolateBtn.setLayoutData(gd);\n interpolateBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n ColorData upperColorData = upperColorWheel.getColorData();\n ColorData lowerColorData = lowerColorWheel.getColorData();\n\n colorBar.interpolate(upperColorData, lowerColorData, rgbRdo\n .getSelection());\n undoBtn.setEnabled(true);\n updateColorMap();\n }\n });\n\n // Create the Undo button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n undoBtn = new Button(bottonBtnComposite, SWT.PUSH);\n undoBtn.setText(\"Undo\");\n undoBtn.setEnabled(false);\n undoBtn.setLayoutData(gd);\n undoBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n undoBtn.setEnabled(colorBar.undoColorBar());\n updateColorMap();\n redoBtn.setEnabled(true);\n }\n });\n\n // Create the Redo button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n redoBtn = new Button(bottonBtnComposite, SWT.PUSH);\n redoBtn.setText(\"Redo\");\n redoBtn.setEnabled(false);\n redoBtn.setLayoutData(gd);\n redoBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n redoBtn.setEnabled(colorBar.redoColorBar());\n updateColorMap();\n undoBtn.setEnabled(true);\n }\n });\n\n // Create the Revert button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n revertBtn = new Button(bottonBtnComposite, SWT.PUSH);\n revertBtn.setText(\"Revert\");\n revertBtn.setLayoutData(gd);\n revertBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n colorBar.revertColorBar();\n updateColorMap();\n undoBtn.setEnabled(false);\n redoBtn.setEnabled(false);\n }\n });\n\n // Create the Save button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n saveBtn = new Button(bottonBtnComposite, SWT.PUSH);\n saveBtn.setText(\"Save\");\n saveBtn.setLayoutData(gd);\n if( seldCmapName == null ) {\n saveBtn.setEnabled(false);\n }\n \n saveBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n ColorMap cm = (ColorMap) cmapParams.getColorMap();\n seldCmapName = selCmapCombo.getText();\n \n// int sepIndx = seldCmapName.indexOf(File.separator);\n// String cmapCat = seldCmapName.substring(0,seldCmapName.indexOf(File.separator));\n// String cmapName = seldCmapName.substring( seldCmapName.indexOf(File.separator));\n if (lockedCmaps != null && lockedCmaps.isLocked(seldCmapName)) {\n \tMessageDialog confirmDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Save Colormap\", null, \n \t\t\t\"Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\" already exists and is locked.\\n\\n\" +\n \t\t\t\"You cannot overwrite it.\",\n \t\t\tMessageDialog.INFORMATION, new String[]{\"OK\"}, 0);\n \tconfirmDlg.open();\n \tcolorBar.undoColorBar();\n updateColorMap();\n \treturn;\n } \n else if( ColorMapUtil.colorMapExists( seldCmapCat, seldCmapName ) ) {\n \tMessageDialog confirmDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Save Colormap\", null, \n \t\t\t\"Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\" already exists.\\n\\n\" +\n \t\t\t\"Do you want to overwrite it?\",\n \t\t\tMessageDialog.QUESTION, new String[]{\"Yes\", \"No\"}, 0);\n \tconfirmDlg.open();\n\n \tif( confirmDlg.getReturnCode() == MessageDialog.CANCEL ) {\n \t\treturn;\n \t}\n }\n\n try {\n ColorMapUtil.saveColorMap( cm, seldCmapCat, seldCmapName );\n \n MessageDialog msgDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Colormap Saved\", null, \n \t\t\t\"Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\" Saved.\",\n \t\t\tMessageDialog.INFORMATION, new String[]{\"OK\"}, 0);\n \tmsgDlg.open();\n } catch (VizException e) {\n MessageDialog msgDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Error\", null, \n \t\t\t\"Error Saving Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\"\\n\"+e.getMessage(),\n \t\t\tMessageDialog.ERROR, new String[]{\"OK\"}, 0);\n \tmsgDlg.open();\n }\n\n completeSave();\n }\n });\n\n\n // \n // Create the Delete button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n gd.grabExcessHorizontalSpace = false;\n deleteBtn = new Button(bottonBtnComposite, SWT.PUSH);\n deleteBtn.setText(\"Delete\");\n deleteBtn.setLayoutData(gd);\n deleteBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n \tdeleteColormap();\n }\n });\n Label sep = new Label(shell, SWT.SEPARATOR|SWT.HORIZONTAL);\n gd = new GridData(GridData.FILL_HORIZONTAL);\n sep.setLayoutData(gd);\n\n // \n // Create the Delete button.\n gd = new GridData(GridData.HORIZONTAL_ALIGN_END);\n Button closeBtn = new Button(shell, SWT.PUSH);\n closeBtn.setText(\" Close \");\n closeBtn.setLayoutData(gd);\n closeBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n \tshell.dispose();\n }\n });\n }", "int compareTo(ITheme theme);", "void sortUI();", "private static void createContents() {\r\n\t\t\r\n\t\tcolorPreview = new Composite(colorUI, SWT.BORDER);\r\n\t\tcolorPreview.setBounds(10, 23, 85, 226);\r\n\t\t\r\n\t\tscRed = new Scale(colorUI, SWT.NONE);\r\n\t\tscRed.setMaximum(255);\r\n\t\tscRed.setMinimum(0);\r\n\t\tscRed.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tscRed.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tscRed.setBounds(244, 34, 324, 42);\r\n\t\tscRed.setIncrement(1);\r\n\t\tscRed.setPageIncrement(10);\r\n\t\tscRed.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tR = scRed.getSelection();\r\n\t\t\t\tmRed.setText(Integer.toString(scRed.getSelection()));\r\n\t\t\t\tcolorPreview.setBackground(SWTResourceManager.getColor(R, G, B));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmRed = new Label(colorUI, SWT.NONE);\r\n\t\tmRed.setAlignment(SWT.RIGHT);\r\n\t\tmRed.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tmRed.setBounds(180, 47, 55, 15);\r\n\t\tmRed.setText(\"0\");\r\n\r\n\t\tscGreen = new Scale(colorUI, SWT.NONE);\r\n\t\tscGreen.setMaximum(255);\r\n\t\tscGreen.setMinimum(0);\r\n\t\tscGreen.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tscGreen.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tscGreen.setBounds(244, 84, 324, 42);\r\n\t\tscGreen.setIncrement(1);\r\n\t\tscGreen.setPageIncrement(10);\r\n\t\tscGreen.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tG = scGreen.getSelection();\r\n\t\t\t\tmGreen.setText(Integer.toString(scGreen.getSelection()));\r\n\t\t\t\tcolorPreview.setBackground(SWTResourceManager.getColor(R, G, B));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmGreen = new Label(colorUI, SWT.NONE);\r\n\t\tmGreen.setAlignment(SWT.RIGHT);\r\n\t\tmGreen.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tmGreen.setText(\"0\");\r\n\t\tmGreen.setBounds(180, 97, 55, 15);\r\n\t\t\r\n\t\tscBlue = new Scale(colorUI, SWT.NONE);\r\n\t\tscBlue.setMaximum(255);\r\n\t\tscBlue.setMinimum(0);\r\n\t\tscBlue.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tscBlue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tscBlue.setBounds(244, 138, 324, 42);\r\n\t\tscBlue.setIncrement(1);\r\n\t\tscBlue.setPageIncrement(10);\r\n\t\tscBlue.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tB = scBlue.getSelection();\r\n\t\t\t\tmBlue.setText(Integer.toString(scBlue.getSelection()));\r\n\t\t\t\tcolorPreview.setBackground(SWTResourceManager.getColor(R, G, B));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmBlue = new Label(colorUI, SWT.NONE);\r\n\t\tmBlue.setAlignment(SWT.RIGHT);\r\n\t\tmBlue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tmBlue.setText(\"0\");\r\n\t\tmBlue.setBounds(180, 151, 55, 15);\r\n\t\t\r\n\t\tscAlpha = new Scale(colorUI, SWT.NONE);\r\n\t\tscAlpha.setMaximum(255);\r\n\t\tscAlpha.setMinimum(0);\r\n\t\tscAlpha.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tscAlpha.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tscAlpha.setBounds(244, 192, 324, 42);\r\n\t\tscAlpha.setIncrement(1);\r\n\t\tscAlpha.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tA = scAlpha.getSelection();\r\n\t\t\t\tmAlpha.setText(Integer.toString(scAlpha.getSelection()));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnOkay = new Button(colorUI, SWT.NONE);\r\n\t\tbtnOkay.setBounds(300, 261, 80, 30);\r\n\t\tbtnOkay.setText(\"Okay\");\r\n\t\tbtnOkay.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tOptions.cr.ColorR = R;\r\n\t\t\t\tOptions.cr.ColorG = G;\r\n\t\t\t\tOptions.cr.ColorB = B;\r\n\t\t\t\tOptions.cr.ColorA = A;\r\n\t\t\t\tOptions.colorPreview.setBackground(SWTResourceManager.getColor(R, G, B));\r\n\t\t\t\tcolorUI.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnCancel = new Button(colorUI, SWT.NONE);\r\n\t\tbtnCancel.setText(\"Cancel\");\r\n\t\tbtnCancel.setBounds(195, 261, 80, 30);\r\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tOptions.colorPreview.setBackground(SWTResourceManager.getColor(Options.cr.ColorR, Options.cr.ColorG, Options.cr.ColorB));\r\n\t\t\t\tR = Options.cr.ColorR;\r\n\t\t\t\tG = Options.cr.ColorG;\r\n\t\t\t\tB = Options.cr.ColorB;\r\n\t\t\t\tA = Options.cr.ColorA;\r\n\t\t\t\tcolorUI.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmAlpha = new Label(colorUI, SWT.NONE);\r\n\t\tmAlpha.setAlignment(SWT.RIGHT);\r\n\t\tmAlpha.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tmAlpha.setText(\"0\");\r\n\t\tmAlpha.setBounds(180, 206, 55, 15);\r\n\t\t\r\n\t\tLabel lblRed = new Label(colorUI, SWT.NONE);\r\n\t\tlblRed.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\r\n\t\tlblRed.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlblRed.setBounds(123, 47, 55, 15);\r\n\t\tlblRed.setText(\"Red\");\r\n\t\t\r\n\t\tLabel lblGreen = new Label(colorUI, SWT.NONE);\r\n\t\tlblGreen.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\r\n\t\tlblGreen.setText(\"Green\");\r\n\t\tlblGreen.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlblGreen.setBounds(123, 97, 55, 15);\r\n\t\t\r\n\t\tLabel lblBlue = new Label(colorUI, SWT.NONE);\r\n\t\tlblBlue.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\r\n\t\tlblBlue.setText(\"Blue\");\r\n\t\tlblBlue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlblBlue.setBounds(123, 151, 55, 15);\r\n\t\t\r\n\t\tLabel lblAlpha = new Label(colorUI, SWT.NONE);\r\n\t\tlblAlpha.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\r\n\t\tlblAlpha.setText(\"Alpha\");\r\n\t\tlblAlpha.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlblAlpha.setBounds(123, 206, 55, 15);\r\n\t\t\r\n\t\t\r\n\t}", "protected void attemptGridPaintSelection() {\n/* 314 */ Color c = JColorChooser.showDialog(this, localizationResources.getString(\"Grid_Color\"), Color.blue);\n/* */ \n/* 316 */ if (c != null) {\n/* 317 */ this.gridPaintSample.setPaint(c);\n/* */ }\n/* */ }", "void createDialogComponents(Color color) {\r\n GridBagConstraints constr = new GridBagConstraints();\r\n constr.gridwidth = 1;\r\n constr.gridheight = 4;\r\n constr.insets = new Insets(0, 0, 0, 10);\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n\r\n constr.gridx = 0;\r\n constr.gridy = 0;\r\n\r\n // Create color wheel canvas\r\n colorCanvas = new ColorCanvas(50, color);\r\n add(colorCanvas, constr);\r\n\r\n // Create input boxes to enter values\r\n Font font = new Font(\"DialogInput\", Font.PLAIN, 10);\r\n redInput = new TextField(3);\r\n redInput.addFocusListener(this);\r\n redInput.setFont(font);\r\n greenInput = new TextField(3);\r\n greenInput.addFocusListener(this);\r\n greenInput.setFont(font);\r\n blueInput = new TextField(3);\r\n blueInput.addFocusListener(this);\r\n blueInput.setFont(font);\r\n\r\n // Add the input boxes and labels to the component\r\n Label label;\r\n constr.gridheight = 1;\r\n constr.fill = GridBagConstraints.HORIZONTAL;\r\n constr.anchor = GridBagConstraints.SOUTH;\r\n constr.insets = new Insets(0, 0, 0, 0);\r\n constr.gridx = 1;\r\n constr.gridy = 0;\r\n label = new Label(\"Red:\", Label.RIGHT);\r\n add(label, constr);\r\n constr.gridy = 1;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n label = new Label(\"Green:\", Label.RIGHT);\r\n add(label, constr);\r\n constr.gridy = 2;\r\n constr.anchor = GridBagConstraints.NORTH;\r\n label = new Label(\"Blue:\", Label.RIGHT);\r\n add(label, constr);\r\n\r\n constr.gridheight = 1;\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.SOUTHWEST;\r\n constr.insets = new Insets(0, 0, 0, 10);\r\n constr.gridx = 2;\r\n constr.gridy = 0;\r\n add(redInput, constr);\r\n constr.gridy = 1;\r\n constr.anchor = GridBagConstraints.WEST;\r\n add(greenInput, constr);\r\n constr.gridy = 2;\r\n constr.anchor = GridBagConstraints.NORTHWEST;\r\n add(blueInput, constr);\r\n\r\n // Add color swatches\r\n Panel panel = new Panel();\r\n panel.setLayout(new GridLayout(1, 2, 4, 4));\r\n oldSwatch = new ColorSwatch(false);\r\n oldSwatch.setForeground(color);\r\n panel.add(oldSwatch);\r\n newSwatch = new ColorSwatch(false);\r\n newSwatch.setForeground(color);\r\n panel.add(newSwatch);\r\n\r\n constr.fill = GridBagConstraints.HORIZONTAL;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n constr.gridx = 1;\r\n constr.gridy = 3;\r\n constr.gridwidth = 2;\r\n add(panel, constr);\r\n\r\n // Add buttons\r\n panel = new Panel();\r\n panel.setLayout(new GridLayout(1, 2, 10, 2));\r\n Font buttonFont = new Font(\"SansSerif\", Font.BOLD, 12);\r\n okButton = new Button(\"Ok\");\r\n okButton.setFont(buttonFont);\r\n okButton.addActionListener(this);\r\n cancelButton = new Button(\"Cancel\");\r\n cancelButton.addActionListener(this);\r\n cancelButton.setFont(buttonFont);\r\n panel.add(okButton);\r\n panel.add(cancelButton);\r\n\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n constr.gridx = 0;\r\n constr.gridy = 4;\r\n constr.gridwidth = 3;\r\n add(panel, constr);\r\n }", "@Then(\"^Pobranie koloru$\")\n public void Pobranie_koloru() throws Throwable {\n\n WebDriverWait wait = new WebDriverWait(driver, 15);\n WebElement c9 = wait.until(ExpectedConditions.elementToBeClickable(By.xpath(\"//*[@id=\\\"30373\\\"]/div/div/div/div/div/div/div/p[3]/a\")));\n\n String color = driver.findElement(By.xpath(\"/html/body/div[1]/div[3]/div/div[6]/div/div/div[1]/div/ul/li\")).getCssValue(\"color\");\n String[] hexValue = color.replace(\"rgba(\", \"\").replace(\")\", \"\").split(\",\");\n\n int hexValue1=Integer.parseInt(hexValue[0]);\n hexValue[1] = hexValue[1].trim();\n int hexValue2=Integer.parseInt(hexValue[1]);\n hexValue[2] = hexValue[2].trim();\n int hexValue3=Integer.parseInt(hexValue[2]);\n String kolorZeStrony = String.format(\"#%02x%02x%02x\", hexValue1, hexValue2, hexValue3);\n\n Assert.assertEquals(\"#333333\", kolorZeStrony);\n\n }", "private void buildNamedColors(JPanel panel, ResourceBundle messageBundle) {\n dragDropColorList = new DragDropColorList(swingController, preferences);\r\n\r\n // create current list of colours\r\n JScrollPane scrollPane = new JScrollPane(dragDropColorList);\r\n addGB(panel, scrollPane, 0, 0, 5, 1);\r\n\r\n dragDropColorList.addListSelectionListener(this);\r\n\r\n // build out the CRUD GUI.\r\n addNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.add.label\"));\r\n addNamedColorButton.addActionListener(this);\r\n addNamedColorButton.setEnabled(true);\r\n\r\n removeNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.remove.label\"));\r\n removeNamedColorButton.addActionListener(this);\r\n removeNamedColorButton.setEnabled(false);\r\n\r\n updateNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.edit.label\"));\r\n updateNamedColorButton.addActionListener(this);\r\n updateNamedColorButton.setEnabled(false);\r\n\r\n colorButton = new ColorChooserButton(Color.DARK_GRAY);\r\n colorButton.setEnabled(true);\r\n colorLabelTextField = new JTextField(\"\");\r\n colorLabelTextField.setEnabled(true);\r\n\r\n // add, edit remove controls.\r\n constraints.insets = new Insets(5, 5, 5, 1);\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.weightx = 0.01;\r\n constraints.weighty = 1.0;\r\n addGB(panel, colorButton, 0, 1, 1, 1);\r\n\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.insets = new Insets(5, 1, 5, 1);\r\n constraints.weightx = 1.0;\r\n constraints.fill = GridBagConstraints.BOTH;\r\n addGB(panel, colorLabelTextField, 1, 1, 1, 1);\r\n\r\n constraints.weightx = 0.01;\r\n constraints.fill = GridBagConstraints.NONE;\r\n addGB(panel, addNamedColorButton, 2, 1, 1, 1);\r\n addGB(panel, updateNamedColorButton, 3, 1, 1, 1);\r\n\r\n constraints.insets = new Insets(5, 0, 5, 5);\r\n addGB(panel, removeNamedColorButton, 4, 1, 1, 1);\r\n }", "boolean similarColorTo(Card c);", "void testRandColor(Tester t) {\r\n initData();\r\n t.checkExpect(this.game2.randColor(), Color.ORANGE);\r\n t.checkExpect(this.game3.randColor(), Color.RED);\r\n t.checkExpect(this.game5.randColor(), Color.PINK);\r\n }", "private HBox createSortingDisplay() {\n HBox sortingDisplay = new HBox();\n sortingDisplay.setPadding(new Insets(0, 0, 50, 0));\n sortingDisplay.setSpacing(2);\n sortingDisplay.setMaxHeight(MAX_HEIGHT);\n sortingDisplay.setAlignment(Pos.BASELINE_CENTER);\n\n for(int i = 0; i < arrSize; i++) {\n Rectangle rec = new Rectangle(width, heights[i], DEFAULT_COLOR);\n sortingDisplay.getChildren().add(rec);\n }\n\n return sortingDisplay;\n }", "public void testColorSensing()\n {\n // SmartDashboard.putData(\"Color Wheel Spinning\", new ControlPanelSpinFour());\n }", "public static void sortColors(int[] A) {\n int redPos=0,bluePos = A.length-1;\n int i=0;\n while(i<bluePos+1){\n \tswitch (A[i]) {\n\t\t\tcase 0:\n\t\t\t\tswap(A,i,redPos);\n\t\t\t\tredPos++;\n\t\t\t\ti++;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tswap(A, i, bluePos);\n\t\t\t\tbluePos--;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\ti++;\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n }\n }", "@Test\r\n public void testPlayer_selectNewColor_dumb() {\r\n player2 = new Player(\"\", true);\r\n player2.setStrategy(Player.STRATEGY_DUMB);\r\n player2.setHand(strategyHand.getAllCards());\r\n player2.setLastPlayedCard(wild);\r\n String firstRandomColor = player2.selectNewColor();\r\n boolean differentColorFound = false;\r\n for(int i = 0; i < 25; i++) {\r\n String nextRandomColor = player2.selectNewColor();\r\n if(!nextRandomColor.equalsIgnoreCase(firstRandomColor)) {\r\n differentColorFound = true;\r\n }\r\n }\r\n assertTrue(differentColorFound);\r\n }", "private void initTickTextsColor(StateElement colorStateList, Color defaultColor) {\n LogUtil.info(TAG, \"initTickTextsColor() begin - \" + colorStateList);\n if (colorStateList == null) {\n mUnselectedTextsColor = defaultColor;\n mSelectedTextsColor = mUnselectedTextsColor;\n mHoveredTextColor = mUnselectedTextsColor;\n return;\n }\n int stateCount = colorStateList.getStateCount();\n if (stateCount == 0) {\n mUnselectedTextsColor = defaultColor;\n mSelectedTextsColor = mUnselectedTextsColor;\n mHoveredTextColor = mUnselectedTextsColor;\n return;\n }\n if (stateCount == 1) {\n mUnselectedTextsColor = new Color(getContext().getColor(ResourceTable.Color_color_gray));\n mSelectedTextsColor = mUnselectedTextsColor;\n mHoveredTextColor = mUnselectedTextsColor;\n } else if (stateCount == 2) {\n mUnselectedTextsColor = new Color(getContext().getColor(ResourceTable.Color_color_gray));\n for (int i = 0; i < stateCount; i++) {\n int[] stateSet = colorStateList.getStateSet(i);\n if (stateSet.length > 0 && stateSet[0] == COMPONENT_STATE_SELECTED){\n mSelectedTextsColor = new Color(getContext().getColor(ResourceTable.Color_colorAccent));\n mUnselectedTextsColor = new Color(getContext().getColor(ResourceTable.Color_color_gray));\n mHoveredTextColor = new Color(getContext().getColor(ResourceTable.Color_color_blue));\n } else if (stateSet.length > 1 && stateSet[1] == COMPONENT_STATE_HOVERED) {\n mSelectedTextsColor = new Color(getContext().getColor(ResourceTable.Color_colorAccent));\n mHoveredTextColor = new Color(getContext().getColor(ResourceTable.Color_color_blue));\n } else {\n mUnselectedTextsColor = new Color(getContext().getColor(ResourceTable.Color_color_gray));\n mSelectedTextsColor = mUnselectedTextsColor;\n mHoveredTextColor = mUnselectedTextsColor;\n }\n }\n } else {\n LogUtil.info(TAG, \"color state not matched\");\n }\n LogUtil.info(TAG, \"initTickTextsColor() end\");\n }", "@Override\n\t\tpublic int compareTo(SizeColorQuantity another) {\n\t\t\treturn this.size.compareTo(another.size);\n\t\t}", "public static void sortColors(int[] A) {\n int start = 0, end = A.length -1;\n while (start < end) {\n \t// System.out.println(\"start: \" + start + \" end: \" + end);\n \t\n while (start < end && A[start] == 0) start++;\n // 1 switch with 0\n if (A[start] == 1) {\n \tint temp_end = end;\n \twhile (start < temp_end && A[temp_end] != 0) temp_end--;\n \tif (start >= temp_end) start++;\n \telse {\n \t\tswap(A, start, temp_end);\n \t\tstart++;\n \t}\n }\n // 2 switch with 0 or 1\n else {\n \tint temp_end = end;\n \twhile (start < temp_end && A[temp_end] == 2) temp_end--;\n \tif (start >= temp_end) break; // This means all the numbers after start are two\n \telse {\n \t\tswap(A, start, temp_end);\n \t\tend--; // Skip the blue color at the end of the array we already knew.\n \t\tif (A[start] == 0) start++; // If 2 switch with 0, then we advance start\n \t\t// If 2 switch with 1, then we do nothing\n \t}\n }\n }\n }", "@Test\n public void testGetColor() {\n assertEquals(r1.getColor(), new Color(255, 0, 0));\n assertEquals(r2.getColor(), new Color(255, 255, 255));\n assertEquals(r3.getColor(), new Color(255, 255, 0));\n assertEquals(r4.getColor(), new Color(200, 150, 133));\n }", "private void refreshButtons() {\n flowPane.getChildren().clear();\n\n for(String testName : Files.listTests()) {\n TestJson info;\n try {\n info = TestParser.read(testName);\n } catch(FileNotFoundException e) {\n continue; /* Skip */\n }\n\n JFXButton button = new JFXButton(testName);\n button.pseudoClassStateChanged(PseudoClass.getPseudoClass(\"select-button\"), true);\n\n button.setOnAction(e -> buttonPressed(info));\n\n if(!filter(info, button))\n continue;\n\n // If this model asked to be put in a specific place, put it there\n if(!info.custom && info.order >= 0)\n flowPane.getChildren().add(Math.min(info.order, flowPane.getChildren().size()), button);\n else\n flowPane.getChildren().add(button);\n }\n }", "@Test\n public void testVictoryBlue(){\n for (Cell c: modelTest.grid) {\n if (c.getY() == 5)\n c.setColor(Color.BLUE);\n }\n\n modelTest.researchVictory(0,1);\n Color winnerTest = modelTest.getWinner();\n\n Assert.assertEquals(winnerTest,Color.BLUE);\n }", "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 }", "private void collectColorData(BufferedImage img) {\n int limit = img.getWidth() * img.getHeight() / 10;\n int i;\n\n for (i=0; i<limit; i++) {\n int y = (int)(Math.random() * img.getHeight());\n int x = (int)(Math.random() * img.getWidth());\n int rgb = img.getRGB(x, y) & 0xffffff;\n\n Integer count = colorMap.get(rgb);\n\n if (count == null) {\n colorMap.put(rgb, 0);\n count = colorMap.get(rgb);\n }\n\n int newCount = count.intValue() + 1;\n colorMap.put(rgb, newCount);\n\n CountData cd = topList.get(2);\n\n if (newCount > cd.count) {\n int j = 0;\n\n for (; j<topList.size(); j++) {\n CountData tcd = topList.get(j);\n\n if (tcd.rgb == rgb) {\n tcd.count++;\n break;\n }\n }\n\n if (j == topList.size()) {\n topList.add(new CountData(newCount, rgb));\n }\n\n Collections.sort(topList);\n\n while (topList.size() > TOP_LIST_COUNT) {\n topList.remove(topList.size() - 1);\n }\n }\n }\n }", "@Test\n public void testIsTop() {\n for (final Border border : Border.values()) {\n if (border.toString().contains(\"TOP\") || border.toString().contains(\"ALL\")) {\n Assert.assertTrue(border.isTop());\n } else {\n Assert.assertFalse(border.isTop());\n }\n }\n }", "public void randomizeColor() {\r\n\t\tArrayList<Integer> possibleColors = new ArrayList<Integer>();\r\n\t\tfor(int i = 1; i<=4; i++) {\r\n\t\t\tif(i!=colorType) { \r\n\t\t\t\tpossibleColors.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcolorType = possibleColors.get((int) (Math.random()*3));\r\n\t\t\r\n\t}", "private void updateColorComboBoxes() {\n for(int i = 0; i < colorScheme.length; i++) {\n final int j = i;\n SwingUtilities.invokeLater(new Runnable() {public void run() {temp[j].setSelectedIndex(indexOf(colorScheme[j]));}});\n }\n }", "private void checkBackgroundColor() {\n\n String color = \"\";\n Connection conn = null;\n try {\n conn = (new Sqlite().connect());\n\n String SQL = \"Select * from options WHERE user_id =\" + newUser.getId();\n try (ResultSet rs = conn.createStatement().executeQuery(SQL)) {\n while (rs.next()) {\n color = rs.getString(3);\n }\n conn.close();\n }\n\n } catch (ClassNotFoundException | SQLException ex) {\n Logger.getLogger(FirstPage.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n switch (color) {\n case \"Blue\":\n jPanel1.setBackground(new Color(90, 166, 190));\n break;\n case \"Grey\":\n jPanel1.setBackground(Color.gray);\n break;\n case \"Red\":\n jPanel1.setBackground(Color.red);\n break;\n default:\n jPanel1.setBackground(new Color(90, 166, 190));\n break;\n }\n }", "public void nodeColorTreeMapLayout() {\n // Get a valid render context\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) (getRTComponent().getRTRenderContext()); if (myrc == null) return;\n\n // Check for a valid color setting\n NodeColor node_color = getNodeColor();\n if (node_color == NodeColor.VARY || node_color == NodeColor.LABEL) {\n myrc.nodeColorTreeMapLayout(node_color);\n } else System.err.println(\"RTGraphPanel.nodeColorTreeMapLayout() - Only works with VARY or LABEL\");\n }", "SimpleColorChooser(Color[] colors) {\n double sqr = Math.sqrt((double) colors.length);\n int rows = (int) Math.ceil(sqr);\n int columns = (int) Math.rint(sqr);\n setLayout(new GridLayout(rows, columns, 2, 2));\n Font font2 = new Font(Font.SERIF, Font.PLAIN, 26);\n ButtonGroup bg = new ButtonGroup();\n char boxChar = (char) 9608;\n String boxString = new String(new char[]{boxChar, boxChar});\n for (Color c : colors) {\n JRadioButton rb = new JRadioButton(boxString);\n rb.setFont(font2);\n rb.setForeground(c);\n bg.add(rb);\n add(rb);\n }\n ((JRadioButton) getComponent(selected)).setSelected(true);\n }", "@Test(priority=5)\r\n\tpublic void displayGroupByListBox() {\r\n\t\t\r\n\t\tboolean expected=true;\r\n\t\tboolean actual=filterReturnsList.displayGroupByListboxOptions();\r\n\t\tassertEquals(actual, expected);\r\n\t}", "public static void main(String[] args) {\n\t\tThreeColor sort = new ThreeColor();\r\n\t\tint[] A = {0,1,1,0,2,2};\r\n\t\tint[] B = sort.sortThreeColor(A, 6);\r\n\t\tfor(int b : B){\r\n\t\t\tSystem.out.println(b);\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\n public void panelButtonsShuffleTest() {\n expandPanel();\n\n onView(withId(R.id.shuffle)).perform(click());\n\n onView(isRoot()).perform(ViewActions.waitForView(R.id.shuffle, new ViewActions.CheckStatus() {\n @Override\n public boolean check(View v) {\n return ((HighlightButton) v).isHighlighted();\n }\n }, 10000));\n }", "private boolean colorIsTooltip(final Color c)\n {\n return c.getRed() > 200 && c.getGreen() > 200 && c.getBlue() < 50;\n }", "private void initializeColorPanels() {\n\t\tupperColorPanel = new JPanel();\n\t\tlowerColorPanel = new JPanel();\n\t\t\n\t\tupperColorPanel.setSize(300, 60);\n\t\tlowerColorPanel.setSize(300, 60);\n\t\t\n\t\tupperColorPanel.setLocation(200, 100);\n\t\tlowerColorPanel.setLocation(200, 160);\n\t\t\n\t\tupperColorPanel.setLayout(new GridLayout(2,5));\n\t\tlowerColorPanel.setLayout(new GridLayout(2,5));\n\t\t\n\t\tfor (int i = 0; i < Q.colors.length; i++) {\n\t\t\tJTextField color = new JTextField();\n\t\t\tcolor.setName(COLOR_TEXT_FIELD_TITLES[i]);\n\t\t\tcolor.setText(\"P\" + (i + 1));\n\t\t\tcolor.setBackground(Q.colors[i]);\n\t\t\tcolor.setEnabled(false);\n\t\t\t\n\t\t\tJTextField red = new JTextField(\"\" + Q.colors[i].getRed());\n\t\t\tred.setName(RED_TEXT_FIELD_TITLES[i]);\n\t\t\tJTextField green = new JTextField(\"\" + Q.colors[i].getGreen());\n\t\t\tgreen.setName(GREEN_TEXT_FIELD_TITLES[i]);\n\t\t\tJTextField blue = new JTextField(\"\" + Q.colors[i].getBlue());\n\t\t\tblue.setName(BLUE_TEXT_FIELD_TITLES[i]);\n\t\t\t\n\t\t\t\n\t\t\tred.addActionListener(this);\n\t\t\tgreen.addActionListener(this);\n\t\t\tblue.addActionListener(this);\n\t\t\t\n\t\t\tJComboBox box = new JComboBox(playerTypeNames);\n\t\t\tbox.setName(COMBO_BOX_TITLES[i]);\n\t\t\tbox.setSelectedIndex(Q.playerTypes[i]);\n\t\t\tbox.addItemListener(this);\n\t\t\t\n\t\t\treds.add(red);\n\t\t\tgreens.add(green);\n\t\t\tblues.add(blue);\n\t\t\tshowColor.add(color);\n\t\t\tboxes.add(box);\n\t\t\t\n\t\t\tJPanel playerPanel = new JPanel();\n\t\t\tplayerPanel.setLayout(new GridLayout(1,2));\n\t\t\tJPanel rgbPanel = new JPanel();\n\t\t\trgbPanel.setLayout(new GridLayout(1,3));\n\t\t\t\n\t\t\tif (i < 2) {\n\t\t\t\tplayerPanel.add(color);\n\t\t\t\tplayerPanel.add(box);\n\t\t\t\trgbPanel.add(red);\n\t\t\t\trgbPanel.add(green);\n\t\t\t\trgbPanel.add(blue);\n\t\t\t\tupperColorPanel.add(playerPanel);\n\t\t\t\tupperColorPanel.add(rgbPanel);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tplayerPanel.add(color);\n\t\t\t\tplayerPanel.add(box);\n\t\t\t\trgbPanel.add(red);\n\t\t\t\trgbPanel.add(green);\n\t\t\t\trgbPanel.add(blue);\n\t\t\t\tlowerColorPanel.add(playerPanel);\n\t\t\t\tlowerColorPanel.add(rgbPanel);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tadd(upperColorPanel);\n\t\tif (Q.players == 4) {\n\t\t\tadd(lowerColorPanel);\n\t\t}\n\t\n\t}", "@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tupdateSortingProperty(property);\n\t\t\t\t}", "@Test\n @CoversAttributes(\"orderable\")\n public void testOrderable() {\n pickListAttributes.set(PickListAttributes.orderable, Boolean.FALSE);\n assertNotPresent(pickList.advanced().getBottomButtonElement(), \"Button should not be present\");\n assertNotPresent(pickList.advanced().getDownButtonElement(), \"Button should not be present\");\n assertNotPresent(pickList.advanced().getTopButtonElement(), \"Button should not be present\");\n assertNotPresent(pickList.advanced().getUpButtonElement(), \"Button should not be present\");\n // then make sure that controls appear near pickList when allow ordering behavior\n pickListAttributes.set(PickListAttributes.orderable, Boolean.TRUE);\n assertVisible(pickList.advanced().getBottomButtonElement(), \"Button should be visible\");\n assertVisible(pickList.advanced().getDownButtonElement(), \"Button should be visible\");\n assertVisible(pickList.advanced().getTopButtonElement(), \"Button should be visible\");\n assertVisible(pickList.advanced().getUpButtonElement(), \"Button should be visible\");\n // then add some items to target list\n pickList.addMultiple(ChoicePickerHelper.byIndex().index(0).index(1).index(2));\n // all items should remain selected and in this case ordering controls should be disabled\n assertEquals(pickList.advanced().getTargetList().getItems().size(), 3);\n for (ListItem item : pickList.advanced().getTargetList().getItems()) {\n assertTrue(item.getRootElement().getAttribute(\"class\").contains(\"rf-pick-sel\"));\n }\n // so check ordering controls if they are disabled\n assertButtonDisabled(pickList.advanced().getBottomButtonElement());\n assertButtonDisabled(pickList.advanced().getDownButtonElement());\n assertButtonDisabled(pickList.advanced().getTopButtonElement());\n assertButtonDisabled(pickList.advanced().getUpButtonElement());\n // now is time to select one item. This should cause ordering controls enable\n pickList.advanced().getTargetList().getItem(0).select(true);\n // since it was first item, \"Down\" and \"Last\" buttons should be enabled\n assertButtonEnabled(pickList.advanced().getBottomButtonElement());\n assertButtonEnabled(pickList.advanced().getDownButtonElement());\n assertButtonDisabled(pickList.advanced().getTopButtonElement());\n assertButtonDisabled(pickList.advanced().getUpButtonElement());\n // move first item to last\n OrderingList orderingTargetList = pickList.advanced().getOrderTargetList();\n List<? extends ListItem> items = pickList.advanced().getTargetList().getItems();\n List<String> targetStrings = Lists.newArrayList(items.get(0).getText(), items.get(1).getText(), items.get(2)\n .getText());\n\n orderingTargetList.select(0).putItAfter(2);\n // verify that previously first item is now the last item (select 3rd item, and verify text)\n items = pickList.advanced().getTargetList().getItems();\n List<String> targetStringsAfter = Lists.newArrayList(items.get(0).getText(), items.get(1).getText(),\n items.get(2).getText());\n targetStrings.add(targetStrings.remove(0));\n assertEquals(targetStringsAfter, targetStrings);\n // then move this item one step \"up\"\n orderingTargetList.select(2).putItBefore(1);\n // and then verify if all items are submitted in user defined order as well\n submitAjax();\n items = pickList.advanced().getTargetList().getItems();\n targetStrings = Lists.newArrayList(items.get(0).getText(), items.get(1).getText(), items.get(2).getText());\n assertEquals(output.getText(), targetStrings.toString());\n }", "Color userColorChoose();", "public void sortColors(int[] nums) {\n int n = nums.length;\n int red = 0, blue = n-1;\n for(int i = 0; i <= blue; ) {\n if(nums[i] == 0) {\n int tmp = nums[red];\n nums[red++] = nums[i];\n nums[i] = tmp;\n i++;\n }\n else if(nums[i] == 2) {\n int tmp = nums[blue];\n nums[blue--] = nums[i];\n nums[i] = tmp;\n }\n else i++;\n }\n }", "public LayoutDemo() {\n initComponents();\n Random ra = new Random();\n int i=0;\n do{\n int r = ra.nextInt(10);\n if(Arrays.binarySearch(mine, r)<0){\n mine[i++]=r;\n }\n }while (i<mine.length);\n Arrays.sort(mine);\n\n for (int j : mine) {\n System.out.printf(\"%d \",j);\n }\n \n }", "public abstract void colorChecker(Color c);", "public void testSelectItemCustomRenderer() {\n \n box.setRenderer(new ListCellRenderer() {\n\n @Override\n public Component getListCellRendererComponent(JList list, final Object value, int index, boolean isSelected,\n boolean cellHasFocus) {\n \n JPanel p = new JPanel()\n {\n public String getText() {\n return value!=null ? value.toString() : \"[Null]\";\n }\n };\n p.setBackground(index % 2 == 0 ? Color.RED : Color.BLUE);\n return p;\n }\n });\n \n showFrame(box);\n for (int i=0;i < MAX_ENTRIES;i += MAX_ENTRIES / 10) {\n selectedItem = null;\n String item = \"item \" + i;\n tester.actionSelectItem(box, item);\n assertEquals(\"Wrong item selected\", item, selectedItem);\n }\n }", "@Test\n public void getColorTest() {\n assertTrue(red_piece.getColor() == Piece.Color.RED);\n assertTrue(white_piece.getColor() == Piece.Color.WHITE);\n }", "@Test\r\n public void testGetShapesSortedByArea() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(regularPolygon);\r\n expectedOutput.add(triangle);\r\n expectedOutput.add(rectangle);\r\n expectedOutput.add(square);\r\n expectedOutput.add(circle);\r\n List<Shape> actualOutput = screen.sortShape(SortType.AREA); \r\n assertEquals(expectedOutput, actualOutput);\r\n }", "private void changeColorWheels() {\n if (rgbRdo.getSelection() == true) {\n upperColorWheel.showRgbSliders(true);\n lowerColorWheel.showRgbSliders(true);\n } else {\n upperColorWheel.showRgbSliders(false);\n lowerColorWheel.showRgbSliders(false);\n }\n }", "@Test\n public void testColorStaticMethods() {\n assertEquals(1, Color.RED.r(), 0.0);\n assertEquals(0, Color.RED.g(), 0.0);\n assertEquals(0, Color.RED.b(), 0.0);\n //Test Green r, g et b\n assertEquals(0, Color.GREEN.r(), 0.0);\n assertEquals(1, Color.GREEN.g(), 0.0);\n assertEquals(0, Color.GREEN.b(), 0.0);\n //Test BLUE r, g et b\n assertEquals(0, Color.BLUE.r(), 0.0);\n assertEquals(0, Color.BLUE.g(), 0.0);\n assertEquals(1, Color.BLUE.b(), 0.0);\n //Test BLACK r, g et b\n assertEquals(0, Color.BLACK.r(), 0.0);\n assertEquals(0, Color.BLACK.g(), 0.0);\n assertEquals(0, Color.BLACK.b(), 0.0);\n //Test WHITE r, g et b\n assertEquals(1, Color.WHITE.r(), 0.0);\n assertEquals(1, Color.WHITE.g(), 0.0);\n assertEquals(1, Color.WHITE.b(), 0.0);\n }", "@Override\n\tpublic void widgetSelected(SelectionEvent event) {\n\t\tif (event.widget instanceof TreeColumn) {\n\t\t\tint columnIndex = this.tree.indexOf((TreeColumn) event.widget);\n\t\t\tthis.sort(columnIndex);\n\t\t}\n\t}", "public static void addColor(){ \r\n \r\n welcome.add(black);\r\n black.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n black.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n \r\n welcome.add(red);\r\n red.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n red.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); //adding some buttons, formatting them, and aligning them\r\n \r\n welcome.add(yellow);\r\n yellow.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n yellow.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n \r\n welcome.add(green);\r\n green.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n green.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n }", "public PJam_ColorGame() {\n initComponents();\n //Basic window formatting\n setLayout(null);\n setTitle(\"Color Game\");\n setPreferredSize(new Dimension(600, 400));\n setLocationRelativeTo(null);\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n setResizable(false);\n \n //Label is given random color and random string\n buttonColor = colorArr[(int) (Math.random() * 5)];\n currentText = colorTxtArr[(int) (Math.random() * 5)];\n colorText.setForeground(buttonColor);\n colorText.setText(currentText);\n \n //Set highscore and rounds remaining label to base values\n highscoreLabel.setText(\"Highscore = \" + highscore);\n roundsLabel.setText(\"Rounds Remaining: \" + roundsRemaining);\n \n //Set up buttons to be at random locations\n //BLUE BUTTON location\n int blueLocationX = randomXLocations[(int) (Math.random() * xSize)];\n int blueLocationY = randomYLocations[(int) (Math.random() * ySize)];\n System.out.println(\"Blue X = \" + blueLocationX + \", Blue Y = \" + blueLocationY);\n chosenXLocations.add(blueLocationX);\n \n buttonBlue.setLocation(blueLocationX, blueLocationY);\n boolean added = false;\n //RED BUTTON location\n int redLocationX = randomXLocations[(int) (Math.random() * xSize)];\n \n //used to prevent overlap of other buttons\n while(!added) {\n if (chosenXLocations.contains(redLocationX)) {\n redLocationX = randomXLocations[(int) (Math.random() * xSize)];\n }\n else {\n chosenXLocations.add(redLocationX);\n added = true;\n }\n }\n \n int redLocationY = randomYLocations[(int) (Math.random() * ySize)];\n System.out.println(\"Red X = \" + redLocationX + \", Red Y = \" + redLocationY);\n \n buttonRed.setLocation(redLocationX, redLocationY);\n \n //YELLOW BUTTON location\n added = false;\n int yellowLocationX = randomXLocations[(int) (Math.random() * xSize)];\n //used to prevent overlap of other buttons \n while(!added) {\n if (chosenXLocations.contains(yellowLocationX)) {\n yellowLocationX = randomXLocations[(int) (Math.random() * xSize)];\n }\n else {\n chosenXLocations.add(yellowLocationX);\n added = true;\n }\n }\n int yellowLocationY = randomYLocations[(int) (Math.random() * ySize)];\n System.out.println(\"Yellow X = \" + yellowLocationX + \", Yellow Y = \" + yellowLocationY);\n \n buttonYellow.setLocation(yellowLocationX, yellowLocationY);\n \n \n //GREEN BUTTON location\n added = false;\n int greenLocationX = randomXLocations[(int) (Math.random() * xSize)];\n //used to prevent overlap of other buttons\n while(!added) {\n if (chosenXLocations.contains(greenLocationX)) {\n greenLocationX = randomXLocations[(int) (Math.random() * xSize)];\n }\n else {\n chosenXLocations.add(greenLocationX);\n added = true;\n }\n }\n int greenLocationY = randomYLocations[(int) (Math.random() * ySize)];\n System.out.println(\"Green X = \" + greenLocationX + \", Green Y = \" + greenLocationY);\n \n buttonGreen.setLocation(greenLocationX, greenLocationY);\n \n //PURPLE BUTTON location\n added = false;\n int purpleLocationX = randomXLocations[(int) (Math.random() * xSize)];\n //used to prevent overlap of other buttons\n while(!added) {\n if (chosenXLocations.contains(purpleLocationX)) {\n purpleLocationX = randomXLocations[(int) (Math.random() * xSize)];\n }\n else {\n chosenXLocations.add(purpleLocationX);\n added = true;\n }\n }\n int purpleLocationY = randomYLocations[(int) (Math.random() * ySize)];\n System.out.println(\"Purple X = \" + purpleLocationX + \", Purple Y = \" + purpleLocationY);\n \n buttonPurple.setLocation(purpleLocationX, purpleLocationY);\n //add to frame\n this.pack();\n startClock();\n }", "@Test\n public void test56() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n Color color0 = (Color)combinedRangeCategoryPlot0.getRangeGridlinePaint();\n }", "private void colorPickerHander() {\n\t\tboolean validvalues = true;\n\t\tHBox n0000 = (HBox) uicontrols.getChildren().get(5);\n\t\tTextField t0000 = (TextField) n0000.getChildren().get(1);\n\t\tLabel l0000 = (Label) n0000.getChildren().get(3);\n\t\tString txt = t0000.getText();\n\t\tString[] nums = txt.split(\",\");\n\t\tif (nums.length != 4) {\n\t\t\tvalidvalues = false;\n\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\tGUIerrorout.showAndWait();\n\t\t}\n\t\tif (validvalues) {\n\t\t\tint[] colorvalues = new int[3];\n\t\t\tdouble alphavalue = 1.0;\n\t\t\ttry {\n\t\t\t\tfor(int x = 0; x < 3; x++) {\n\t\t\t\t\tcolorvalues[x] = Integer.parseInt(nums[x]);\n\t\t\t\t}\n\t\t\t\talphavalue = Double.parseDouble(nums[3]);\n\t\t\t} catch(Exception e) {\n\t\t\t\tvalidvalues = false;\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t\tif (alphavalue <= 1.0 && alphavalue >= 0.0 && colorvalues[0] >= 0 && colorvalues[0] < 256 && colorvalues[1] >= 0 && colorvalues[1] < 256 && colorvalues[2] >= 0 && colorvalues[2] < 256){\n\t\t\t\tif (validvalues) {\n\t\t\t\t\tl0000.setTextFill(Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue));\n\t\t\t\t\tusercolors[colorSetterId] = Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testGetColorModel(){\n IndexColorModel indexColorModel = imageData.getColorModel();\n Assert.assertNotNull(indexColorModel );\n Assert.assertEquals(ColorTable.getColorModel(0), indexColorModel);\n }", "@Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n Graphics2D g2d = (Graphics2D)g;\n\n if (shapeList != null) {\n shapeList.sort(Comparator.comparing(Shape::getLayer));\n for (Shape shape : shapeList) {\n if (shape.getType() == ShapeType.RECTANGLE) {\n g2d.setColor(new Color(shape.getR(), shape.getG(), shape.getB()));\n g2d.fillRect(shape.getX(), shape.getY(), shape.getWidth(), shape.getHeight());\n }\n else if (shape.getType() == ShapeType.ELLIPSE) {\n g2d.setColor(new Color(shape.getR(), shape.getG(), shape.getB()));\n g2d.fillOval(shape.getX(), shape.getY(), shape.getWidth(), shape.getHeight());\n }\n }\n }\n }", "public int compareTo(BoxBackground bg)\n {\n if(bg == null)\n return 1;\n\n if(bg == this)\n return 0;\n\n int res = compareColor4(color, bg.color);\n if(res != 0)\n return res;\n\n for(int i = 0; i < 6; i++)\n {\n if(texture[i] != bg.texture[i])\n {\n if(texture[i] == null)\n return -1;\n else if(bg.texture[i] == null)\n return 1;\n\n if(texture[i] != bg.texture[i])\n return texture[i].hashCode() < bg.texture[i].hashCode() ? -1 : 1;\n }\n }\n\n return 0;\n }", "private void createRedButtons() {\r\n\t\tint y = 40;\r\n\t\tfor (int i = 60; i < 65; i++) {\r\n\t\t\tarray[i] = createRedButton(y);\r\n\t\t\ty += 40;\r\n\t\t}\r\n\t}", "int getNumColors();", "public static void main(String[] args) {\n\t\tShirt r = new Shirt(\"Red\", 10);\r\n\t\tShirt b = new Shirt(\"Blue\", 465);\r\n\t\tShirt g = new Shirt(\"Green\", 3213456);\r\n\t\t// Creates some custom comparator object.\r\n\t\tSizeComp s = new SizeComp();\r\n\t\tColorComp c = new ColorComp();\r\n\t\t// Creates some tree sets using custom comparator. \r\n\t\tTreeSet<Shirt> mySizeSet = new TreeSet<>(s);\r\n\t\tmySizeSet.add(r);\r\n\t\tmySizeSet.add(g);\r\n\t\tmySizeSet.add(b);\r\n\t\tout.println(\"Sort by Size\");\r\n\t\tout.println(mySizeSet);\r\n\t\t\r\n\t\tTreeSet<Shirt> myCompSet = new TreeSet<>(c);\r\n\t\tmyCompSet.add(r);\r\n\t\tmyCompSet.add(g);\r\n\t\tmyCompSet.add(b);\r\n\t\tout.println(\"Sort by Color\");\r\n\t\tout.println(myCompSet);\r\n\t}", "void selectColorFrom(Set<GameColor> colors, String title, Consumer<GameColor> callback);", "private void InitColorTable(){\n\n }", "public void deleteColors();", "private void updateMainColors () {\n int mainColor = getCurrentMainColor();\n int index = 0;\n int[] topColors = new int[256];\n for ( int y = 0; y < 256; y++ ) {\n for ( int x = 0; x < 256; x++ ) {\n if ( y == 0 ) {\n mMainColors[index] = Color.rgb( 255 - ( 255 - Color.red( mainColor ) ) * x / 255, 255 - ( 255 - Color.green( mainColor ) ) * x / 255, 255 - ( 255 - Color.blue( mainColor ) ) * x / 255 );\n topColors[x] = mMainColors[index];\n } else\n mMainColors[index] = Color.rgb( ( 255 - y ) * Color.red( topColors[x] ) / 255, ( 255 - y ) * Color.green( topColors[x] ) / 255, ( 255 - y ) * Color.blue( topColors[x] ) / 255 );\n index++;\n }\n }\n }", "@Override\n public int getCount() {\n return(this.colors.length);\n }", "ColorSelectionDialog() {\n initComponents();\n }", "@Override\n public void update(Integer pushValue) {\n List cells = gridPane.getChildren();\n if (orientation.equals(\"HORIZONTAL\")){\n Button button = (Button) cells.get(10*row + column + pushValue);\n button.setStyle(\"-fx-background-color: #ff0000\");\n System.out.println(\"HIT\");\n }\n if (orientation.equals(\"VERTICAL\")){\n Button button = (Button) cells.get(10*(row + pushValue) + column);\n button.setStyle(\"-fx-background-color: #ff0000\");\n System.out.println(\"HIT\");\n }\n }", "private void handleColors(int newElement) \n { \n // flip the colors of the node \n current.color = RED; //make current node RED \n current.leftChild.color = BLACK; //make leftChild BLACK \n current.rightChild.color = BLACK; //make rightChild BLACK \n \n //check the color of the parent node \n if (parent.color == RED) \n { \n // perform rotation in case when the color of parent node is RED \n grand.color = RED; \n \n if (newElement < grand.element && grand.element != newElement && newElement < parent.element) \n parent = performRotation( newElement, grand ); // Start dbl rotate \n current = performRotation(newElement, great ); \n current.color = BLACK; \n } \n \n // change the color of the root node with BLACK \n header.rightChild.color = BLACK; \n }", "@Test @IdeGuiTest\n public void testStateListPicker() throws IOException {\n myProjectFrame = importSimpleApplication();\n ThemeEditorFixture themeEditor = ThemeEditorTestUtils.openThemeEditor(myProjectFrame);\n ThemeEditorTableFixture themeEditorTable = themeEditor.getPropertiesTable();\n\n TableCell parentCell = row(0).column(0);\n JTableCellFixture parentCellFixture = themeEditorTable.cell(parentCell);\n\n // Selects AppCompat as parent\n Component parentEditor = parentCellFixture.editor();\n parentCellFixture.startEditing();\n assertTrue(parentEditor instanceof JComponent);\n JComboBoxFixture parentComboBox = new JComboBoxFixture(myRobot, myRobot.finder().findByType((JComponent)parentEditor, JComboBox.class));\n parentComboBox.selectItem(\"Theme.AppCompat.NoActionBar\");\n parentCellFixture.stopEditing();\n\n TableCell cell = row(8).column(0);\n\n FontFixture cellFont = themeEditorTable.fontAt(cell);\n cellFont.requireNotBold();\n assertEquals(\"android:textColorPrimary\", themeEditorTable.attributeNameAt(cell));\n assertEquals(\"@android:color/primary_text_material_dark\", themeEditorTable.valueAt(cell));\n\n JTableCellFixture stateListCell = themeEditorTable.cell(cell);\n ResourceComponentFixture resourceComponent = new ResourceComponentFixture(myRobot, (ResourceComponent)stateListCell.editor());\n stateListCell.startEditing();\n resourceComponent.getSwatchButton().click();\n\n final ChooseResourceDialogFixture dialog = ChooseResourceDialogFixture.find(myRobot);\n StateListPickerFixture stateListPicker = dialog.getStateListPicker();\n List<StateListComponentFixture> states = stateListPicker.getStateComponents();\n assertThat(states).hasSize(2);\n\n final StateListComponentFixture state0 = states.get(0);\n assertEquals(\"Not enabled\", state0.getStateName());\n assertEquals(\"@android:color/primary_text_default_material_dark\", state0.getValue());\n assertTrue(state0.isAlphaVisible());\n assertEquals(\"@android:dimen/disabled_alpha_material_dark\", state0.getAlphaValue());\n\n final StateListComponentFixture state1 = states.get(1);\n assertEquals(\"Default\", state1.getStateName());\n assertEquals(\"@android:color/primary_text_default_material_dark\", state1.getValue());\n assertFalse(state1.isAlphaVisible());\n\n dialog.focus();\n state0.getValueComponent().getSwatchButton().click();\n ChooseResourceDialogFixture secondDialog = ChooseResourceDialogFixture.find(myRobot, new GenericTypeMatcher<JDialog>(JDialog.class) {\n @Override\n protected boolean isMatching(@NotNull JDialog component) {\n return (component.isShowing() && !component.equals(dialog.target()));\n }\n });\n secondDialog.getColorPicker().setColorWithIntegers(new Color(200, 0, 0, 200));\n secondDialog.clickOK();\n pause(new Condition(\"Waiting for component update\") {\n @Override\n public boolean test() {\n return \"@color/primary_text_default_material_dark\".equals(state0.getValue());\n }\n });\n\n dialog.focus();\n state0.getAlphaComponent().getSwatchButton().click();\n secondDialog = ChooseResourceDialogFixture.find(myRobot, new GenericTypeMatcher<JDialog>(JDialog.class) {\n @Override\n protected boolean isMatching(@NotNull JDialog component) {\n return (component.isShowing() && !component.equals(dialog.target()));\n }\n });\n secondDialog.getResourceTree().clickPath(\"Dimension/abc_disabled_alpha_material_dark\");\n secondDialog.focus();\n secondDialog.clickOK();\n pause(new Condition(\"Waiting for component update\") {\n @Override\n public boolean test() {\n return \"@dimen/abc_disabled_alpha_material_dark\".equals(state0.getAlphaValue());\n }\n });\n\n dialog.focus();\n state1.getValueComponent().getSwatchButton().click();\n secondDialog = ChooseResourceDialogFixture.find(myRobot, new GenericTypeMatcher<JDialog>(JDialog.class) {\n @Override\n protected boolean isMatching(@NotNull JDialog component) {\n return (component.isShowing() && !component.equals(dialog.target()));\n }\n });\n secondDialog.getColorPicker().setColorWithIntegers(new Color(0, 200, 0, 255));\n secondDialog.clickOK();\n pause(new Condition(\"Waiting for component update\") {\n @Override\n public boolean test() {\n return \"@color/primary_text_default_material_dark\".equals(state1.getValue());\n }\n });\n\n dialog.focus();\n dialog.clickOK();\n stateListCell.stopEditing();\n\n cellFont = themeEditorTable.fontAt(cell);\n cellFont.requireBold();\n assertEquals(\"android:textColorPrimary\", themeEditorTable.attributeNameAt(cell));\n assertEquals(\"@color/primary_text_material_dark\", themeEditorTable.valueAt(cell));\n }", "@Override\n public void onChooseColor(int position, int color) {\n int red = Color.red(color);\n int green = Color.green(color);\n int blue = Color.blue(color);\n Log.e(\"rgb\", \"\" + red + \" \" + green + \" \" + blue);\n }", "public static void main(String[] args) {\n\t\tint[] nums = {1, 0, 1};\r\n\t\tsortColors(nums);\r\n\t\tfor ( int i : nums) {\r\n\t\t\tSystem.out.print(i + \" \");\r\n\t\t}\r\n\t}", "public void resetSelections()\n {\n for(Node child: gridpane.getChildren())\n {\n Button randButton = (Button) child;\n\n // set all buttons to have default background\n randButton.setStyle(null);\n }\n }", "private void resetColors(JFXButton clickedRecentColorButton) {\n int indexOfChosenColor = recentColorsButtons.indexOf(clickedRecentColorButton) + 1;\n Color newMainColor = colorsQueue.get(indexOfChosenColor);\n colorsQueue.remove(indexOfChosenColor);\n colorsQueue.push(newMainColor);\n revalidateColorPanel();\n }", "public boolean equals(Object other) {\n int otherColor = ((Item) other).getColor();\n int distance = this.getColor() - otherColor;\n if (distance < 0)\n distance *= -1;\n return distance < 20;\n }", "public static void main(String[] args) {\n SortColorsProblem s = new SortColorsProblem();\n int[] colorsArray1 = {2,0,1,0,1,0,2};\n int[] colorsArray2 = {1,0,2,1,0,2};\n int[] colorsArray3 = {0,1,2,0,1,2};\n\n printArr(s.sortColors(colorsArray1));\n printArr(s.sortColors(colorsArray2));\n printArr(s.sortColors(colorsArray3));\n }", "@Test\n public void testVictoryRed(){\n for (Cell c: modelTest.grid) {\n if (c.getX() == 6)\n c.setColor(Color.RED);\n }\n\n modelTest.researchVictory(1,0);\n Color winnerTest = modelTest.getWinner();\n\n Assert.assertEquals(winnerTest,Color.RED);\n }", "void setColorSelection() {\r\n for (int i = 0; i < chooser.length; i++) {\r\n\r\n if (mainclass.getGraphTyp()\r\n == AbstractGraph.GRAPHTYP_RESIDUAL) {\r\n\r\n switch (i) {\r\n case COLOR_EDGE_ONE:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_FLOW]);\r\n break;\r\n case COLOR_EDGE_TWO:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_CAP]);\r\n break;\r\n case COLOR_EDGE_TOP:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_RTOP]);\r\n break;\r\n default:\r\n chooser[i].setColorSelected(colors[i]);\r\n }\r\n } else {\r\n chooser[i].setColorSelected(colors[i]);\r\n }\r\n }\r\n }", "public ColorChooserPanel(ActionListener l) {\n lastRow = -1;\n \n JButton okButton = new JButton( Messages.message(\"ok\") );\n JButton cancelButton = new JButton( Messages.message(\"cancel\") );\n \n setLayout(new HIGLayout(new int[] {220, 10, 220}, new int[] {350, 10, 0}));\n \n add(colorChooser, higConst.rcwh(1, 1, 3, 1));\n add(okButton, higConst.rc(3, 1));\n add(cancelButton, higConst.rc(3, 3));\n \n okButton.setActionCommand(OK);\n cancelButton.setActionCommand(CANCEL);\n \n okButton.addActionListener(l);\n cancelButton.addActionListener(l);\n \n setOpaque(true);\n setSize(getPreferredSize());\n }", "public void initColors() {\n\n int i;\n float j;\n\n int start;\n int numShades = 5;\n float shadeInc = 1 / (float) numShades;\n\n\n aColors = new Color[glb.MAXCOLORS]; /* set array size */\n\n\n /* White to Black */\n start = 0;\n for (i = start, j = 1; i < start + 6; j -= shadeInc, i++) {\n aColors[i] = new Color(j, j, j);\n }\n\n start = 6;\n /* Red to almost Magenta */\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 1, (float) 0, j);\n }\n\n\n /* Magenta to almost Blue */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color(j, (float) 0, (float) 1);\n }\n\n\n /* Blue to almost Cyan */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 0, j, (float) 1);\n }\n\n /* Cyan to almost Green */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 0, (float) 1, j);\n }\n\n\n\n /* Green to almost Yellow */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color(j, (float) 1, (float) 0);\n }\n\n /* Yellow to almost Red */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 1, j, (float) 0);\n }\n\n }", "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreNotYetImplemented.class)\r\n public void testSelectedIndicesAfterSort() {\r\n int first = 0;\r\n int last = items.size() -1;\r\n getSelectionModel().select(first);\r\n Comparator comparator = new TreeItemComparator();\r\n FXCollections.sort(items, comparator);\r\n assertEquals(1, getSelectedIndices().size());\r\n assertEquals(last, getSelectedIndices().get(0).intValue());\r\n }", "private void checkColors(){\r\n\t\tpaintCorner(RED);\r\n\t\tif(leftIsClear()){\r\n\t\t\tturnLeft();\r\n\t\t\tmove();\r\n\t\t\tif(cornerColorIs(null)){\r\n\t\t\t\tmoveBack();\r\n\t\t\t\tturnLeft();\r\n\t\t\t\tpaintCorner(GREEN);\r\n\t\t\t}else{\r\n\t\t\t\tmoveBack();\r\n\t\t\t\tturnLeft();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(rightIsClear()){\r\n\t\t\tturnRight();\r\n\t\t\tmove();\r\n\t\t\tif(cornerColorIs(null)){\r\n\t\t\t\tmoveBack();\r\n\t\t\t\tturnRight();\r\n\t\t\t\tpaintCorner(GREEN);\r\n\t\t\t}else{\r\n\t\t\t\tmoveBack();\r\n\t\t\t\tturnRight();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(frontIsClear()){\r\n\t\t\tmove();\r\n\t\t\tif(cornerColorIs(null)) {\r\n\t\t\t\tmoveBack();\r\n\t\t\t\tpaintCorner(GREEN);\r\n\t\t\t\tturnAround();\r\n\t\t\t}else{\r\n\t\t\t\tmoveBack();\r\n\t\t\t\tturnAround();\r\n\t\t\t}\r\n\t\t}\r\n\t\tmakeMove();\r\n\t}", "@Test\n public void f13OrderRULTest() {\n clickOn(\"#thumbnailTab\").moveBy(90, 200);\n scroll(50, VerticalDirection.UP).sleep(1000);\n\n scroll(50, VerticalDirection.DOWN).sleep(1000);\n clickOn(\"#sortAsset\").type(KeyCode.DOWN).type(KeyCode.ENTER);\n\n sleep(1000).moveBy(-90, 200).scroll(50, VerticalDirection.UP).sleep(1000);\n\n boolean isOrdered = true;\n double[] ruls = getRuls();\n\n //Check if the ascending ruls are ordered\n for (int i = 0; i < ruls.length - 1; i++) {\n if (ruls[i] > ruls[i + 1]) {\n isOrdered = false;\n break;\n }\n }\n\n sleep(1000).scroll(50, VerticalDirection.DOWN).sleep(1000);\n assertTrue(\"All RULs after sorting by ascending are ordered from smallest to largest.\", isOrdered);\n }", "private static void testColorFunction(MousePicker picker, FontType font){\r\n\t\t\r\n\t\tString strText = \"Entities enabled: \";\r\n\t\t\r\n\t\tfor(Entity str : MousePicker.getUnits_selected()){\r\n\t\t\tstrText += (str.getName() + \", \");\r\n\t\t}\r\n\t\tGUIText text = new GUIText(strText, 2, font,\r\n\t\t\t\tnew Vector2f(0,0), 1.0f, true);\r\n\t\ttext.setRender(true);\r\n\t}", "public void colorButtonClicked(String tag){\n color.set(tag);\n }", "@Test\n public void metalAndColorsTest() {\n JdiSite.homePage.openNewPageByHeaderMenu(HeaderMenuItem.METALS_AND_COLORS);\n JdiSite.metalAndColorsPage.checkOpened();\n // !TODO - I decided to remove the method from MetalAndColorsForm and make it easier\n JdiSite.metalAndColorsPage.fillAndSubmitMetalAndColorsForm(DefaultsData.DEFAULT_DATA);\n JdiSite.metalAndColorsPage.checkResults(DefaultsData.DEFAULT_DATA);\n }", "private void buildColorSelector(JPanel panel) {\n colorChooserButton = new JLabel();\n colorChooserButton.setPreferredSize(new Dimension(16, 16));\n colorChooserButton.setVerticalAlignment(JLabel.CENTER);\n colorChooserButton.setBackground(Color.WHITE);\n colorChooserButton.setOpaque(true);\n colorChooserButton.setBorder(BorderFactory.createLineBorder(Color.black));\n colorChooserButton.addMouseListener(ApplicationFactory.INSTANCE\n .getNewColorChooserListener(this));\n panel.add(colorChooserButton, \"wrap\");\n }", "private void selectNovelColors(IMapColor mapColor, Histogram hist, int interestingColors,\n \t\t\tint usedColors, int[] paletteSelections) {\n \t\t\n \t\tInteger[] indices = (Integer[]) hist.getColorIndices().toArray(new Integer[hist.getColorIndices().size()]);\n \t\tSet<Integer> visited = new HashSet<Integer>();\n \t\t\n \t\tbyte[] rgb = { 0, 0, 0 };\n \t\tfloat[] hsv = { 0, 0, 0 };\n \t\t\n \t\tfloat[] lastHSV = { 0, 0, 0 };\n \t\tint[] lastRGB = { 0, 0, 0 };\n \t\tint lastPixel = Integer.MIN_VALUE;\n \t\t\n \t\tint directMap = usedColors / 3;\n \t\tint distance = interestingColors / 3;\n \t\t\n \t\tfor (int i = 0; i < usedColors; i++) {\n \t\t\tfloat maxDiff = -Float.MAX_VALUE;\n \t\t\tint farthestIndex = 0;\n \t\t\tint farthestPixel = 0;\n \t\t\t\n \t\t\tint searchDist = Math.max(1, Math.min(indices.length, (distance * (i + 1) / usedColors)));\n \t\t\tfor (int j = 0; j < searchDist && j < indices.length; j++) {\n \t\t\t\tif (visited.contains(j)) {\n \t\t\t\t\tsearchDist++;\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tint idx = indices[j];\n \t\t\t\tint pixel = mapColor.getPalettePixel(idx);\n \t\t\t\tpixelToRGB(pixel, rgb);\n \t\t\t\trgbToHsv(rgb[0] & 0xff, rgb[1] & 0xff, rgb[2] & 0xff, hsv);\n \t\t\t\t\n \t\t\t\t\n \t\t\t\tfloat diff = //(hsv[0] - lastHSV[0]) * (hsv[0] - lastHSV[0])\n \t\t\t\t\t//+ ((hsv[1] - lastHSV[1]) * (hsv[1] - lastHSV[1])) * 100000\n \t\t\t\t\t+ (hsv[2] - lastHSV[2]) * (hsv[2] - lastHSV[2])\n \t\t\t\t;\n \t\t\t\t\n \t\t\t\t//float diff = getRGBDistance(rgb, lastRGB);\n \t\t\t\tif (diff >= maxDiff) {\n \t\t\t\t\tmaxDiff = diff;\n \t\t\t\t\tfarthestPixel = pixel;\n \t\t\t\t\tfarthestIndex = j;\n \t\t\t\t\tif (i < directMap) {\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t} \n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t// winner!\n \t\t\tpaletteSelections[i] = farthestIndex;\n \t\t\tvisited.add(farthestIndex);\n \t\t\t\n \t\t\tlastPixel = farthestPixel;\n \t\t\tpixelToRGB(lastPixel, lastRGB);\n \t\t\trgbToHsv(lastRGB[0] & 0xff, lastRGB[1] & 0xff, lastRGB[2] & 0xff, lastHSV);\n \t\t}\n \t}", "public boolean verifyProductByColorFilter(WebDriver driver,int rowId) {\n\n\t\tString colorName = xlsReader.getCellDataByColumnName(\"testdata1\", \"FIlterByColor\", rowId);\n\t\tSystem.out.println(\"read color filter \"+colorName);\n\t\tshoppage.selectColorOfProduct(driver, colorName);\n\t\treturn shoppage.isProductNameDispaly(driver);\n\n\t}", "public String linkColor() { return findSelected(link_colors); }", "private void addNewColorToPanel() {\n if (!colorPickerCurrent.getValue().equals(colorsQueue.getFirst())) {\n colorsQueue.push(colorPickerCurrent.getValue());\n revalidateColorPanel();\n }\n }", "@Test\r\n public void testGetShapesSortedByTimestamp() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(circle);\r\n expectedOutput.add(square);\r\n expectedOutput.add(rectangle);\r\n expectedOutput.add(triangle);\r\n expectedOutput.add(regularPolygon);\r\n List<Shape> actualOutput = screen.sortShape(SortType.TIMESTAMP);\r\n assertEquals(expectedOutput, actualOutput);\r\n }", "public void widgetSelected(SelectionEvent arg0) {\n\t\t ColorDialog dlg = new ColorDialog(shell);\r\n\r\n\t\t // Set the selected color in the dialog from\r\n\t\t // user's selected color\r\n\t\t Color shpColor = viewer.getShpReader().getForeColor();\r\n\t\t dlg.setRGB(shpColor.getRGB());\r\n\r\n\t\t // Change the title bar text\r\n\t\t dlg.setText(Messages.getMessage(\"SHPLayersScreen_ColorDialog\"));\r\n\r\n\t\t // Open the dialog and retrieve the selected color\r\n\t\t RGB rgb = dlg.open();\r\n\t\t if (rgb != null && !rgb.equals(shpColor.getRGB())) {\r\n\t\t // Dispose the old color, create the\r\n\t\t // new one, and set into the label\r\n\t\t \tnewColor = new Color(shell.getDisplay(), rgb);\r\n\t\t\t\t\tlabelColor.setBackground(newColor);\r\n\t\t }\r\n\t\t\t}", "private void revalidateColorPanel() {\n colorPickerCurrent.setValue(colorsQueue.getFirst());\n buttonRecentFirst.setBackground(new Background(new BackgroundFill(colorsQueue.get(1), null, null)));\n buttonRecentSecond.setBackground(new Background(new BackgroundFill(colorsQueue.get(2), null, null)));\n buttonRecentThird.setBackground(new Background(new BackgroundFill(colorsQueue.get(3), null, null)));\n buttonRecentFourth.setBackground(new Background(new BackgroundFill(colorsQueue.get(4), null, null)));\n buttonRecentFifth.setBackground(new Background(new BackgroundFill(colorsQueue.get(5), null, null)));\n }", "@Test(priority = 6)\n public void elementsOnDifferentElementsPageTest() {\n List<WebElement> checkboxesList = driver.findElements(By.className(\"label-checkbox\"));\n assertEquals(checkboxesList.size(), 4);\n List<WebElement> radioList = driver.findElements(By.className(\"label-radio\"));\n assertEquals(radioList.size(), 4);\n assertTrue(driver.findElement(By.className(\"colors\")).isDisplayed());\n assertTrue(driver.findElement(By.cssSelector(\"button[name='Default Button']\"))\n .isDisplayed());\n assertTrue(driver.findElement(By.cssSelector(\"input[value='Button']\"))\n .isDisplayed());\n }", "@Override\n public boolean isFinished() {\n return m_desiredColor == ColorWheel.UNKNOWN || \n m_desiredColor == m_colorSpinner.checkColor();\n }" ]
[ "0.59774685", "0.5946509", "0.5927032", "0.5873774", "0.5743092", "0.56488186", "0.5572051", "0.5493277", "0.5464067", "0.54624546", "0.5436536", "0.5429687", "0.5412256", "0.5365714", "0.53438336", "0.5328156", "0.53171545", "0.52887666", "0.5253024", "0.5240315", "0.5201591", "0.5160145", "0.5146338", "0.5137558", "0.51342976", "0.51325196", "0.51167244", "0.5105625", "0.509263", "0.50786155", "0.50670785", "0.50572336", "0.50545216", "0.5027434", "0.502298", "0.50165707", "0.5014265", "0.50139976", "0.50019616", "0.4999429", "0.49907786", "0.49891412", "0.4985997", "0.49738535", "0.4971783", "0.49684668", "0.4955396", "0.49515304", "0.49493048", "0.49215612", "0.49064237", "0.49058422", "0.49038604", "0.4889492", "0.4887606", "0.4884832", "0.48825005", "0.48807126", "0.48800188", "0.4866882", "0.48587394", "0.4858599", "0.48454803", "0.48438957", "0.48433134", "0.48422682", "0.48313367", "0.4827624", "0.48213586", "0.48171332", "0.4807802", "0.4802592", "0.47888654", "0.4780912", "0.47806224", "0.47780237", "0.47766778", "0.47752464", "0.47749478", "0.4773494", "0.4770156", "0.476742", "0.47657293", "0.4757468", "0.47538066", "0.475358", "0.4749827", "0.47439903", "0.47235844", "0.47219515", "0.47207108", "0.4708821", "0.4706652", "0.4703194", "0.470232", "0.47019386", "0.47011977", "0.46948525", "0.46896163", "0.4686874" ]
0.7906374
0
Test case for widgets sorted by date
@Test public void testShipment_Sorted_By_Date() { List<Widget> widgets = shipment.getWidgetsSortedByDate(); assertNotNull(widgets); assertTrue(widgets.size() == 10); Widget widget1 = (Widget) widgets.get(0); Widget widget2 = (Widget) widgets.get(1); assertTrue(widget1.getColor().compareTo(widget2.getColor()) <= 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(priority = 7)\n\tpublic void validateSortingByDate() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.selectSortingDropdown(0, locator);\n\t\theroImg.validateDate(1, locator, validate);\n\t\tHeroImageProductPageFlow.selectSortingDropdown(1, locator);\n\t\theroImg.validateDate(2, locator, validate);\n\t\tlog.info(\"sorting is correct\");\n\t}", "@Test\n void sortByDate() {\n }", "public void sortByDate(){\n output.setText(manager.display(true, \"date\"));\n }", "@Test\n public void testShipment_Sorted_By_Color() {\n List<Widget> widgets = shipment.getWidgetsSortedByColor();\n assertNotNull(widgets);\n assertTrue(widgets.size() == 10);\n Widget widget1 = (Widget) widgets.get(0);\n Widget widget2 = (Widget) widgets.get(1);\n assertTrue(widget1.getColor().compareTo(widget2.getColor()) <= 0);\n }", "@Test(dependsOnMethods = \"verifyInvoiceSortTest\")\r\n\tpublic void verifySchedDateSortTest() throws InterruptedException {\n\t\tcarrierschedulepayment.clickschdateColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tfirstRowData = carrierschedulepayment.getFirstRowData();\r\n\t\tAssert.assertTrue(firstRowData.size() > 0, \"No data rows found when sorting by date\");\r\n\t\t// click LoadID Column to change sort from ascending to descending\r\n\t\tcarrierschedulepayment.clickschdateColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tlastRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// compare to the database when sorted by given column-Descending\r\n\t\t// if (carrierschedulepayment.getRowCount() > 1)\r\n\t\t// Assert.assertNotEquals(firstRowData, lastRowData,\r\n\t\t// \"First Row Data: \\n\" + firstRowData + \"\\nLast Row Data: \\n\" + lastRowData);\r\n\t}", "@FXML\n private void updateDateOrder(ActionEvent event) {\n\n if (sortOrder == Order.DATE_ASC) {\n\n sortOrder = Order.DATE_DESC;\n\n } else if (sortOrder == Order.DATE_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.DATE_ASC;\n\n }\n\n updateOrderButtons();\n\n }", "@Test\n public void sortByCreationDateASC_ReturnTrue() {\n // Set SharedPreferences (Sort by Creation Date, ASC)\n mSharedPreferences.edit()\n .putInt(Constants.SORT_TYPE_KEY, Constants.SORT_TYPE_CREATION_DATE)\n .putBoolean(Constants.SORT_FAVORITES_ON_TOP_KEY, false)\n .putInt(Constants.SORT_DIRECTION_KEY, Constants.SORT_DIRECTION_ASC)\n .commit();\n\n // Click first position in RecyclerView\n onView(withId(R.id.fragment_notelist_recyclerview))\n .perform(RecyclerViewActions.actionOnItemAtPosition(0, click()));\n\n // Check that clicked Note matches Note (3) title/text\n onView(withId(R.id.fragment_note_title_edittext))\n .check(matches(withText(is(StringUtil.setFirstCharUpperCase(TestHelper.NOTE_3_TITLE)))));\n// onView(withId(R.id.fragment_note_text_textview))\n// .check(matches(withText(is(StringUtil.setFirstCharUpperCase(TestHelper.NOTE_3_TEXT)))));\n }", "@Then(\"the results should be sorted by most recent date\")\n public void the_results_should_be_sorted_by_most_recent_date() {\n int value= (new AccountActivityPage().dates.get(new AccountActivityPage().dates.size() - 1)).getText().compareTo((new AccountActivityPage().dates.get(0)).getText());\n\n Assert.assertTrue(value<0);\n\n }", "private void sortViewEntries() {\n runOnUiThread(new Runnable() {\n public void run() {\n try {\n Collections.sort(viewEntries, new DateComparator());\n } catch (final Exception ex) {\n // Log.i(\"sortViewEntries\", \"Exception in thread\");\n }\n }\n });\n }", "@Override\n public void onSortByDate() {\n mSorter.sortLocationsByDate(mListLocations);\n mAdapter.notifyDataSetChanged();\n }", "boolean hasOrderByDay();", "@Test(dependsOnMethods = \"verifyScheduledPaymentsTabTest\")\r\n\tpublic void verifyDaysSortTest() throws InterruptedException {\n\t\tcarrierschedulepayment.clickDaysColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tfirstRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// click Status Column to change sort from ascending to descending\r\n\t\tcarrierschedulepayment.clickDaysColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tlastRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// verify there is at least one row of data\r\n\t\tAssert.assertTrue(carrierschedulepayment.getRowCount() > 0);\r\n\t}", "private void sortByDateOpen() {\n //selection sort\n for (int i = 0; i < size - 1; i++) {\n int earliestDateIndex = i;\n for (int j = i + 1; j < size; j++)\n if (accounts[j].getDateOpen().compareTo(accounts[earliestDateIndex].getDateOpen()) < 0) {\n earliestDateIndex = j;\n }\n Account acc = accounts[earliestDateIndex];\n accounts[earliestDateIndex] = accounts[i];\n accounts[i] = acc;\n }\n }", "void sortUI();", "@Test(dependsOnMethods = \"verifyDaysSortTest\")\r\n\tpublic void verifyAmountSortTest() throws InterruptedException {\n\t\tcarrierschedulepayment.clickAmountColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tfirstRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// click Amount Column to change sort from ascending to descending\r\n\t\tcarrierschedulepayment.clickAmountColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tlastRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// compare to the database when sorted by given column-Descending (EXISTING BUG\r\n\t\t// BACKLOGGED)\r\n\t\t// if (carrierschedulepayment.getRowCount() > 1)\r\n\t\t// Assert.assertNotEquals(firstRowData, lastRowData,\r\n\t\t// \"First Row Data: \\n\" + firstRowData + \"\\nLast Row Data: \\n\" + lastRowData);\r\n\t}", "@Test\r\n\tvoid testYearSort() {\r\n\t\tSortedList list = new SortedList(\"List\");\r\n\t\tToDoItem newItem1 = new ToDoItem(\"Item 1\", \"2/6/20\", 1, \"Body text 1\");\r\n\t\tToDoItem newItem2 = new ToDoItem(\"Item 2\", \"2/6/21\", 1, \"Body text 2\");\r\n\t\tToDoItem newItem3 = new ToDoItem(\"Item 3\", \"1/26/21\", 1, \"Body text 3\");\r\n\t\tlist.insert(newItem1);\r\n\t\tlist.insert(newItem2);\r\n\t\tlist.insert(newItem3);\r\n\r\n\t\tif (!list.getHead().getName().equals(\"Item 1\")) {\r\n\t\t\tfail(\"Year\");\r\n\t\t}\r\n\t\tif (!list.getHead().getNext().getName().equals(\"Item 3\")) {\r\n\t\t\tfail(\"Year\");\r\n\t\t}\r\n\t\tif (!list.getTail().getName().equals(\"Item 2\")) {\r\n\t\t\tfail(\"Year\");\r\n\t\t}\r\n\t}", "private void sortDate()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getReleaseDate().compareTo(b.getReleaseDate());\n if( result < 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n else if(result == 0)\n {\n result = a.getTitle().compareTo(b.getTitle());\n if(result > 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n }\n }\n }\n }", "private void btnSortArrivalDateActionPerformed(java.awt.event.ActionEvent evt) {\n Arbol miArbol = new Arbol();\n root = null;\n txaMostrar.setText(\"\");\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date llegada = null;\n \n for (int i = 0; i < princ.getsArreglo().length; i++) {\n System.out.println(\"i = \" + i);\n if (princ.getsArreglo()[i][6] != null) {\n try {\n llegada = sdf.parse(princ.getsArreglo()[i][6] + \"03-00-00\");\n } catch (ParseException ex) {\n Logger.getLogger(FrmDetalles.class.getName()).log(Level.SEVERE, null, ex);\n }\n agregarNodo(new NodoArbol(llegada));\n }\n }\n imprimeInOrder();\n \n \n }", "@Override\n public int compareTo(Date ARG) {\n if (year < ARG.year)\n {\n \treturn -1;\n }\n else if( year > ARG.year)\n {\n \treturn 1;\n }\n \n else{\n \tif (dayOfMonth < ARG.dayOfMonth)\n \t{\n \t\treturn -1; \n \t\t\n \t}\n \telse if (dayOfMonth > ARG.dayOfMonth)\n \t{\n \t\treturn 1; \n \t}\n \telse\n \t{\n \t\tif (dayOfMonth < ARG.dayOfMonth)\n \t\t{\n \t\t\treturn -1;\n \t\t}\n \t\telse if(dayOfMonth > ARG.dayOfMonth)\n \t\t{\n \t\t\treturn 1;\n \t\t}\n \t\telse\n \t\t{\n \t\t\treturn 0; \n \t\t}\n \t}\n \t\n } \t\n }", "@Test\r\n public void testGetShapesSortedByTimestamp() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(circle);\r\n expectedOutput.add(square);\r\n expectedOutput.add(rectangle);\r\n expectedOutput.add(triangle);\r\n expectedOutput.add(regularPolygon);\r\n List<Shape> actualOutput = screen.sortShape(SortType.TIMESTAMP);\r\n assertEquals(expectedOutput, actualOutput);\r\n }", "public void sortBasedYearService();", "private void sortByDateOpen() {\r\n\t\tfor ( int i = 0; i < size-1; i++ ) {\r\n\t\t\tint minIndex = i; \r\n\t\t\tfor ( int j = i + 1; j < size; j++) { \r\n\t\t\t\t//returns -1 if the date is less than\r\n\t\t\t\tif ( accounts[j].getDateOpen().compareTo(accounts[minIndex].getDateOpen()) == -1 ) {\r\n\t\t\t\t\tminIndex = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tAccount temp = accounts[minIndex];\r\n\t\t\taccounts[minIndex] = accounts[i];\r\n\t\t\taccounts[i] = temp;\r\n\t\t}\r\n\t\treturn;\r\n\t}", "@Test\n\tpublic void shouldReturnOnlyFirstPageSortedByDueDateAsc()\n\t{\n\t\tfinal SearchPageData<B2BDocumentModel> result = pagedB2BDocumentDao.getAllPagedDocuments(\n\t\t\t\tcreatePageableData(0, 2, \"byDueDateAsc\"), Collections.singletonList(AccountSummaryAddonUtils\n\t\t\t\t\t\t.createFilterByCriteriaObject(StringUtils.EMPTY, StringUtils.EMPTY)));\n\n\t\tTestCase.assertEquals(2, result.getResults().size());\n\n\t\tfinal B2BDocumentModel b2bDocumentModel1 = result.getResults().get(0);\n\t\tfinal B2BDocumentModel b2bDocumentModel2 = result.getResults().get(1);\n\t\tTestCase.assertEquals(DOCUMENT_NUMBER_CRN_005, b2bDocumentModel1.getDocumentNumber());\n\t\tTestCase.assertEquals(DOCUMENT_NUMBER_CRN_006, b2bDocumentModel2.getDocumentNumber());\n\n\t\tTestCase.assertEquals(\"2013-07-07\", sdf.format(b2bDocumentModel1.getDueDate()));\n\t\tTestCase.assertEquals(\"2013-07-08\", sdf.format(b2bDocumentModel2.getDueDate()));\n\t}", "@Override\n public int compareTo(SmartDate o) {\n return this.date.compareTo(o.date);\n }", "private void sortByDate(List<Entry> entries) {\n\t\t\n\t\tCollections.sort(entries, new Comparator<Entry>() {\n\t\t\tpublic int compare(Entry o1, Entry o2) {\n\t\t\t if (o1.getTimestamp() == null || o2.getTimestamp() == null)\n\t\t\t return 0;\n\t\t\t return o1.getTimestamp().compareTo(o2.getTimestamp());\n\t\t\t }\n\t\t\t});\n\t}", "@Override\n\t\t\t\tpublic int compare(StatisticsItemData o1, StatisticsItemData o2) {\n\t\t\t\t\treturn o2.getDate().compareTo(o1.getDate());\n\t\t\t\t}", "private void sortByDateOpen() { // sort in ascending order\n\t\tint numAccounts = size;\n\t\tDate firstDateOpen;\n\t\tDate secondDateOpen;\n\t\t\n\t\tfor (int i = 0; i < numAccounts-1; i++) {\n\t\t\t\n\t\t\t\n\t\t\tint min_idx = i;\n\t\t\t\n\t\t\t\n\t\t\tfor (int j = i+1; j < numAccounts; j++) {\n\t\t\t\t\n\t\t\t\t// Retrieve last name of two that you are comparing\n\t\t\t\tfirstDateOpen = accounts[j].getDateOpen();\n\t\t\t\tsecondDateOpen = accounts[min_idx].getDateOpen();\n\t\t\t\t\n\t\t\t\tif (firstDateOpen.compareTo(secondDateOpen) < 0) {\n\t\t\t\t\tmin_idx = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tAccount temp = accounts[min_idx];\n\t\t\taccounts[min_idx] = accounts[i];\n\t\t\taccounts[i] = temp;\n\t\t}\n\t\t\n\t}", "@Test\n public void compareTo() {\n assertTrue(DATE_A.compareTo(DATE_A) == 0);\n\n // testing recess week and reading week.\n assertTrue(DATE_READING.compareTo(DATE_AFTER_READING) == -1);\n assertTrue(DATE_RECESS.compareTo(DATE_AFTER_RECESS) == -1);\n }", "@Test\n public void testSort() {\n topScreenModel.setSortFieldAndFields(Field.LOCALITY, fields);\n\n FieldValue previous = null;\n\n // Test for ascending sort\n topScreenModel.refreshMetricsData();\n\n for (Record record : topScreenModel.getRecords()) {\n FieldValue current = record.get(Field.LOCALITY);\n if (previous != null) {\n assertTrue(current.compareTo(previous) < 0);\n }\n previous = current;\n }\n\n // Test for descending sort\n topScreenModel.switchSortOrder();\n topScreenModel.refreshMetricsData();\n\n previous = null;\n for (Record record : topScreenModel.getRecords()) {\n FieldValue current = record.get(Field.LOCALITY);\n if (previous != null) {\n assertTrue(current.compareTo(previous) > 0);\n }\n previous = current;\n }\n }", "void setOrderwithdate() {\r\n\r\n\t\tOrderAbyDate oad = new OrderAbyDate();\r\n\r\n\t\tMap<Integer, Map<Integer, Integer>> data = oad.getOrderByDate();\r\n\r\n\t\tjava.util.List<Integer> ls = new ArrayList<>(data.keySet());\r\n\r\n\t\tfor (int i = 0; i < ls.size(); i++) {\r\n\r\n\t\t\tdropyear1.getItems().add(\"\" + ls.get(i));\r\n\r\n\t\t}\r\n\r\n\t\tif (ls.size() > 0) {\r\n\r\n\t\t\tdropyear1.getSelectionModel().selectedItemProperty()\r\n\t\t\t\t\t.addListener(new ChangeListener<String>() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void changed(\r\n\t\t\t\t\t\t\t\tObservableValue<? extends String> observable,\r\n\t\t\t\t\t\t\t\tString oldValue, String newValue) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\tsetBarchartorder(\r\n\t\t\t\t\t\t\t\t\tdata.get(Integer.parseInt(newValue)),\r\n\t\t\t\t\t\t\t\t\tnewValue);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\tdropyear1.getSelectionModel().select(0);\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tupdateSortingProperty(property);\n\t\t\t\t}", "public void actualDateSwitchAction() {\n\t\tdateToDisplay = Utils.removeTime(Calendar.getInstance().getTime());\n\t\tshowAnimalList(dateToDisplay);\n\t\tanimalsListPanel.switchToToday();\n\t}", "@SuppressWarnings(\"unchecked\")\n\t\t@Override\n\t\tprotected void publishResults(CharSequence constraint,\n\t\t\t\tFilterResults results) {\n\t\t\tfilteredList = (ArrayList<RowItem>) results.values;\n\t\t\tCollections.sort(filteredList, convertStringToDateAndCompare);\n\t\t\tnotifyDataSetChanged();\n\t\t}", "public String verifyDateInAscendingWithOutPagination(String object, String data) {\n\t\ttry {\n\n\t\t\tlogger.debug(\"Entered into verifyDateInAscendingWithOutPagination()\");\n\t\t\tList<String> actual = new ArrayList<String>();\n\t\t\tList<String> real = new ArrayList<String>();\n\t\t\t\n\t\t\t\tList<WebElement> expected = explictWaitForElementList(object);\n\t\t\t\t\n\t\t\t\t\texpected = explictWaitForElementList(object);\n\t\t\t\t\tfor (int i = 0; i < expected.size(); i++) {\n\t\t\t\t\t\tif (expected.get(i).getText().trim().length() != 0) {\n\t\t\t\t\t\t\tactual.add(expected.get(i).getText().trim());\n\t\t\t\t\t\t\treal.add(expected.get(i).getText().trim());\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tfinal DateFormat df = new SimpleDateFormat(data.trim());\n\t\t\tCollections.sort(actual, new Comparator<String>() {\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treturn df.parse(o1).compareTo(df.parse(o2));\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tthrow new IllegalArgumentException(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tlogger.debug(\"actual is as follows-- \" + actual);\n\t\t\tlogger.debug(\"real is as follows-- \" + real);\n\t\t\tif (real.equals(actual)) {\n\t\t\t\treturn Constants.KEYWORD_PASS + \" -- Dates are sorted\";\n\t\t\t} else\n\t\t\t\treturn Constants.KEYWORD_FAIL + \" -- Dates are not sorted\";\n\t\t} \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + e.getMessage();\n\t\t}\n\t}", "public ArrayList<Question> getQuestionsSortedByDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new DateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "@Test(dependsOnMethods = \"verifyAmountSortTest\")\r\n\tpublic void verifyPayerSortTest() throws InterruptedException {\n\t\tcarrierschedulepayment.clickPayerColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tfirstRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// click Payer Column to change sort from ascending to descending\r\n\t\tcarrierschedulepayment.clickPayerColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tlastRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// verify row data exists\r\n\t\tAssert.assertNotNull(firstRowData, \"First Row Data: \\n\" + firstRowData);\r\n\t\tAssert.assertNotNull(lastRowData, \"\\nLast Row Data: \\n\" + lastRowData);\r\n\t}", "@Test\n public void todoItemsOrderByDeadlineTest() throws InterruptedException {\n onView(withId(R.id.fabList)).perform(click());\n onView(withId(R.id.editTextName)).perform(click(), replaceText(\"To-Do List 1\"), closeSoftKeyboard());\n onView(withId(R.id.btnCreateList)).perform(click());\n onView(withId(R.id.recyclerView)).perform(RecyclerViewActions.actionOnItemAtPosition(TestUtils.getCountFromRecyclerView(R.id.recyclerView) - 1, new ClickOnRelativeList()));\n\n List<String> deadlineList = TestUtils.getDateList();\n for (int i = 0; i < deadlineList.size(); i++) {\n onView(withId(R.id.fabInner)).perform(click());\n onView(withId(R.id.editTextName)).perform(replaceText(i + \"_Name\"));\n onView(withId(R.id.editTextDescription)).perform(replaceText(i + \"_Description\"));\n onView(withId(R.id.editTextDeadline)).perform(replaceText(deadlineList.get(i)));\n onView(withId(R.id.btnCreateItem)).perform(click());\n }\n // Click deadline item from menu on Toolbar\n onView(withId(R.id.menu_order_by)).perform(click());\n onView(withText(R.string.deadline)).perform(click());\n // Make thread sleep for 2 seconds so we could check whether it's true or not\n Thread.sleep(2000);\n\n // Go back to FragmentTodoList\n Espresso.pressBack();\n\n // Delete To-Do list\n onView(withId(R.id.recyclerView)).perform(RecyclerViewActions.actionOnItemAtPosition(TestUtils.getCountFromRecyclerView(R.id.recyclerView) - 1, new ClickOnImageDeleteList()));\n onView(withId(R.id.btnYes)).perform(click());\n\n Thread.sleep(2000);\n\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n JDayChooser jDayChooser0 = new JDayChooser(false);\n Date date0 = jDayChooser0.defaultMinSelectableDate;\n JDayChooser.DecoratorButton jDayChooser_DecoratorButton0 = jDayChooser0.new DecoratorButton();\n JDayChooser jDayChooser1 = new JDayChooser(false);\n Date date1 = jDayChooser1.setMaxSelectableDate(date0);\n assertSame(date1, date0);\n \n JDayChooser jDayChooser2 = new JDayChooser(false);\n JDayChooser.DecoratorButton jDayChooser_DecoratorButton1 = jDayChooser1.new DecoratorButton();\n JDayChooser.DecoratorButton jDayChooser_DecoratorButton2 = jDayChooser1.new DecoratorButton();\n assertFalse(jDayChooser1.isDecorationBordersVisible());\n assertTrue(jDayChooser1.isDecorationBackgroundVisible());\n assertEquals(14, jDayChooser1.getDay());\n }", "public void testYearSort() {\n sorter.inssortYear();\n list = sorter.getLibrary();\n assertEquals(list.get(0).getYear(), 2000);\n assertEquals(list.get(1).getYear(), 2011);\n assertEquals(list.get(2).getYear(), 2019);\n }", "@Override\n\tpublic void widgetSelected(SelectionEvent event) {\n\t\tif (event.widget instanceof TreeColumn) {\n\t\t\tint columnIndex = this.tree.indexOf((TreeColumn) event.widget);\n\t\t\tthis.sort(columnIndex);\n\t\t}\n\t}", "private void updateOrderButtons() {\n\n // Reset button names.\n nameButton.setText(\"Name\");\n organButton.setText(\"Organ\");\n regionButton.setText(\"Region\");\n dateButton.setText(\"Date Added\");\n\n if (sortOrder == Order.NAME_ASC) {\n\n nameButton.setText(nameButton.getText() + ascText);\n sortedRecords.setComparator(new RecNameAlphabeticalComparator());\n\n } else if (sortOrder == Order.NAME_DESC) {\n\n nameButton.setText(nameButton.getText() + descText);\n sortedRecords.setComparator(new RecNameAlphabeticalComparator().reversed());\n\n } else if (sortOrder == Order.ORGAN_ASC) {\n\n organButton.setText(organButton.getText() + ascText);\n sortedRecords.setComparator(new RecOrganComparator());\n\n } else if (sortOrder == Order.ORGAN_DESC) {\n\n organButton.setText(organButton.getText() + descText);\n sortedRecords.setComparator(new RecOrganComparator().reversed());\n\n } else if (sortOrder == Order.DATE_ASC) {\n\n dateButton.setText(dateButton.getText() + ascText);\n sortedRecords.setComparator(new RecDateComparator());\n\n } else if (sortOrder == Order.DATE_DESC) {\n\n dateButton.setText(dateButton.getText() + descText);\n sortedRecords.setComparator(new RecDateComparator().reversed());\n\n } else if (sortOrder == Order.REGION_ASC) {\n\n regionButton.setText(regionButton.getText() + ascText);\n sortedRecords.setComparator(new RegionComparatorRec());\n\n } else if (sortOrder == Order.REGION_DESC) {\n\n regionButton.setText(regionButton.getText() + descText);\n sortedRecords.setComparator(new RegionComparatorRec().reversed());\n\n } else if (sortOrder == Order.DEFAULT) {\n\n // Revert to default order based on name.\n sortedRecords.setComparator(new RecNameAlphabeticalComparator());\n\n }\n\n updatePageCount();\n updateTableView();\n\n }", "io.dstore.values.BooleanValue getOrderByDay();", "public void printByDate() {\n for (int i = 0; i < numBooks; i++)\n {\n for (int j = i + 1; j < numBooks; j++) {\n if (books[i].getDatePublished().compareTo(books[j].getDatePublished()) > 0)\n {\n Book temp = books[i];\n books[i] = books[j];\n books[j] = temp;\n }\n }\n }\n System.out.println(\"**List of books by the dates published.\");\n for (Book b : books){\n if(b != null) {\n System.out.println(b);\n }\n }\n System.out.println(\"**End of list\");\n }", "@Test\n public void wam_005_testDatePicker() {\n wam.verifyDateInDatePicker();\n // test behaviour of selecting a date\n String date = \"June 1, 2019\";\n wam.typeDateInDatePicker(date);\n wam.verifyDateInDatePicker(date);\n wam.verifyWamIndexIsNotEmpty();\n }", "private void checkSortedAmount() {\n\n\t\tList<String> actualAmountList = new ArrayList<String>();\n\t\tList<WebElement> elementList = util.findElementsByXpath(\"//td[5]/span\");\n\t\tfor (WebElement we : elementList) {\n\t\t\tactualAmountList.add(we.getText());\n\t\t}\n\n\t\tassertEquals(actualAmountList, dataService.getAscendingAmounts());\n\t\tdriver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n\t}", "@Override\n public int compareTo(Booking other) {\n // Push new on top\n other.updateNewQuestion(); // update NEW button\n this.updateNewQuestion();\n\n\n String[] arr1 = other.time.split(\":\");\n String[] arr2 = this.time.split(\":\");\n// Date thisDate = new Date(this.getCalendarYear(), this.getCalendarMonth(), this.getCalendarDay(), Integer.getInteger(arr2[0]), Integer.getInteger(arr2[1]));\n// if (this.newQuestion != other.newQuestion) {\n// return this.newQuestion ? 1 : -1; // this is the winner\n// }\n\n\n if (this.calendarYear == other.calendarYear) {\n if (this.calendarMonth == other.calendarMonth) {\n if (this.calendarDay == other.calendarDay) {\n if (Integer.parseInt(arr2[0]) == Integer.parseInt(arr1[0])) { // hour\n if (Integer.parseInt(arr2[1]) == Integer.parseInt(arr1[1])) { // minute\n return 0;\n } else {\n return Integer.parseInt(arr1[1]) > Integer.parseInt(arr2[1]) ? -1 : 1;\n }\n } else {\n return Integer.parseInt(arr1[0]) > Integer.parseInt(arr2[0]) ? -1 : 1;\n }\n }\n else\n return other.calendarDay > this.calendarDay ? -1 : 1;\n }\n else\n return other.calendarMonth > this.calendarMonth ? -1 : 1;\n }\n else\n return other.calendarYear > this.calendarYear ? -1 : 1;\n\n\n// if (this.echo == other.echo) {\n// if (other.calendarMonth == this.calendarMonth) {\n// return 0;\n// }\n// return other.calendarMonth > this.calendarMonth ? -1 : 1;\n// }\n// return this.echo - other.echo;\n }", "public void sortByTime(View view){\n // Only allow client to book a itinerary\n if (!userInfo[0].substring(0,5).equals(\"ADMIN\")) {\n Button button = (Button) findViewById(R.id.bookButton);\n button.setEnabled(true);\n }\n EditText dateEditText = (EditText) findViewById(R.id.dateEditText);\n EditText originEditText = (EditText) findViewById(R.id.originEditText);\n EditText destinationEditText = (EditText) findViewById(R.id.destinationEditText);\n // Take search input from the user\n String date = dateEditText.getText().toString();\n String origin = originEditText.getText().toString();\n String destination = destinationEditText.getText().toString();\n\n try {\n // Display stored itineraries to the user\n ArrayList<Itinerary> itineraries;\n itineraries = system.getItineraries(date, origin, destination);\n itineraries = system.sortByTime(itineraries);\n\n String displayString = \"\";\n int counter = 0;\n for (Itinerary itin : itineraries) {\n displayString += String.valueOf(counter) + \": \" + itin.toString();\n counter++;\n }\n\n selectionItinerary = itineraries;\n\n TextView displayText = (TextView) findViewById(R.id.displayText);\n if (displayString.equals(\"\")){\n displayString = \"No itineraries found\";\n }\n displayText.setText(displayString);\n }catch (Exception e){\n // Let user know if no itineraries were found based on input\n TextView displayText = (TextView) findViewById(R.id.displayText);\n displayText.setText(\"No itineraries found\");\n Button button = (Button) findViewById(R.id.bookButton);\n button.setEnabled(false);\n }\n }", "public static void printAllEventListInSortedOrder(){\n sortEvents();\n for(int i=0;i<events.size();i++){\n System.out.println((events.get(i).getMonth()+1)+\"/\"+events.get(i).getDate()+\"/\"+events.get(i).getYear()+\" \"+events.get(i).getStringStartandFinish()+\" \"+events.get(i).getEventTitle());\n }\n }", "@Test\n public void f13OrderRULTest() {\n clickOn(\"#thumbnailTab\").moveBy(90, 200);\n scroll(50, VerticalDirection.UP).sleep(1000);\n\n scroll(50, VerticalDirection.DOWN).sleep(1000);\n clickOn(\"#sortAsset\").type(KeyCode.DOWN).type(KeyCode.ENTER);\n\n sleep(1000).moveBy(-90, 200).scroll(50, VerticalDirection.UP).sleep(1000);\n\n boolean isOrdered = true;\n double[] ruls = getRuls();\n\n //Check if the ascending ruls are ordered\n for (int i = 0; i < ruls.length - 1; i++) {\n if (ruls[i] > ruls[i + 1]) {\n isOrdered = false;\n break;\n }\n }\n\n sleep(1000).scroll(50, VerticalDirection.DOWN).sleep(1000);\n assertTrue(\"All RULs after sorting by ascending are ordered from smallest to largest.\", isOrdered);\n }", "void onClickDateRange();", "@Test\n public void compareToWithMainDateInThePast(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.compareTo(new Date(31,Month.december,1970)),-1);\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int sortingBy) {\n if(sortingBy == 2){\n dialogInterface.cancel();\n Collections.sort(mReviews);\n mReviewsListAdapter.notifyDataSetChanged();\n }\n }", "boolean hasOrderByDataItem();", "@Test(priority = 6)\n\tpublic void validateSortingFunctionality() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.clickCustomerReviews(locator);\n\t\tlog.info(\"Content is present\");\n\t\tlog.info(\"Starting Sorting functionality testing\");\n\t}", "@Test\n public void parseBirthday_returnsSortCommand() {\n assertParseSuccess(PARAM_BIRTHDAY);\n }", "@Override\n public int compareTo(MetalNode arg0) {\n\n int iResult=0;\n\n if (this.getDate()==arg0.getDate())\n {\n iResult=0;\n }\n else if (this.getDate()>arg0.getDate())\n {\n iResult=1;\n }\n else if (this.getDate()<arg0.getDate())\n {\n iResult=-1;\n }\n\n\n return iResult;\n }", "@Test\r\n\tpublic void albumsListIsSorted() {\r\n\t\tListView listView = main.getActivity().getAlbumsListView();\r\n\t\t\r\n\t\tAlbumClass a1 = (AlbumClass) listView.getItemAtPosition(0);\r\n\t\tAlbumClass a2 = (AlbumClass) listView.getItemAtPosition(1);\r\n\t\tAlbumClass a3 = (AlbumClass) listView.getItemAtPosition(2);\r\n\t\tassertTrue(a1.getTitle().compareToIgnoreCase(a2.getTitle()) < 0);\r\n\t\tassertTrue(a2.getTitle().compareToIgnoreCase(a3.getTitle()) < 0);\r\n\t}", "@Test\r\n public void testCompareTo3() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"3/1/2013\");\r\n assertTrue(d1.compareTo(d2) == 0);\r\n }", "@Test (priority = 1)\n public void sortAlphabetical(){\n\n for (int i = 0; i < allDepartments.getOptions().size()-1; i++) {\n String current = allDepartments.getOptions().get(i).getText();\n String next = allDepartments.getOptions().get(i+1).getText();\n\n System.out.println(\"comparing: \" + current + \" with \"+ next);\n\n Assert.assertTrue(current.compareTo(next)<=0);\n\n }\n }", "protected void sortCheck() {\n if (m_instances == null) {\n return;\n }\n \n if (m_simpleConfigPanel.isUsingANativeTimeStamp()) {\n String timeStampF = m_simpleConfigPanel.getSelectedTimeStampField();\n Attribute timeStampAtt = m_instances.attribute(timeStampF); \n if (timeStampAtt != null) {\n \n double lastNonMissing = Utils.missingValue();\n boolean ok = true;\n boolean hasMissing = false;\n for (int i = 0; i < m_instances.numInstances(); i++) {\n Instance current = m_instances.instance(i);\n \n if (Utils.isMissingValue(lastNonMissing)) {\n if (!current.isMissing(timeStampAtt)) {\n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n } else {\n if (!current.isMissing(timeStampAtt)) {\n if (current.value(timeStampAtt) - lastNonMissing < 0) {\n ok = false;\n break;\n }\n \n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n }\n }\n \n if (!ok && !hasMissing) {\n // ask if we should sort\n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". Do you want to sort the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Sorting data...\");\n }\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n \n if (!ok && hasMissing) {\n // we can't really proceed in this situation. We can't sort by the timestamp\n // because instances with missing values will be put at the end of the data.\n // The only thing we can do is to remove the instances with missing time\n // stamps but this is likely to screw up the periodicity and majorly impact\n // on results.\n \n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". \\nFurthermore, there are rows with\\n\" +\n \t\t\"missing timestamp values. We can remove these\\n\" +\n \t\t\"rows and then sort the data but this is likely to\\n\" +\n \t\t\"result in degraded performance. It is strongly\\n\" +\n \t\t\"recommended that you fix these issues in the data\\n\" +\n \t\t\"before continuing. Do you want the system to proceed\\n\" +\n \t\t\"anyway by removing rows with missing timestamps and\\n\" +\n \t\t\"then sorting the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Removing rows with missing time stamps and sorting data...\");\n }\n m_instances.deleteWithMissing(timeStampAtt);\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n }\n }\n }", "private void clickAndCheckDateButton ( final String viewDate ) {\n final List<WebElement> radioList = driver.findElements( By.name( \"date\" ) );\n\n for ( final WebElement element : radioList ) {\n final String v = element.getAttribute( \"value\" );\n final ZonedDateTime datetimeLabor = ZonedDateTime.parse( v );\n String g = \"\";\n if ( datetimeLabor.getMonthValue() < 10 ) {\n g += \"0\" + datetimeLabor.getMonthValue() + \"/\";\n }\n else {\n g += datetimeLabor.getMonthValue() + \"/\";\n }\n if ( datetimeLabor.getDayOfMonth() < 10 ) {\n g += \"0\" + datetimeLabor.getDayOfMonth() + \"/\";\n }\n else {\n g += datetimeLabor.getDayOfMonth() + \"/\";\n }\n g += datetimeLabor.getYear();\n if ( g.equals( viewDate ) ) {\n element.click();\n // assertTextPresent( \"Labor and Delivery Reports for: \" +\n // viewDate );\n return;\n }\n }\n\n fail( \"The date isn't in the radio list.\" );\n }", "public void sort() {\n\t\tArrayList<Medication> dayList = new ArrayList<Medication>();\n\t\tupcomingMedsLabel.setText(\"\");\n\t\tDate dt = new Date();\n\t\tDateFormat df = new SimpleDateFormat(\"EEEE\");\n\t\tString currentDay = df.format(dt);\n\t\t\n\t\t//Runs through all elements in the array\n\t\tfor(int i = 0; i < medList.size(); i++) {\n\t\t\t//Checks to see if the medication needs to be taken today\n\t\t\tif(medList.get(i).getMedDateTime().contains(currentDay)) {\n\t\t\t\tboolean added = false;\n\t\t\t\t//If no other element has been added, added the element\n\t\t\t\tif(dayList.size() == 0) {\n\t\t\t\t\tdayList.add(medList.get(i));\n\t\t\t\t} else {\n\t\t\t\t\t//Checks all other medications in the dayList to order them chronologicaly\n\t\t\t\t\tfor(int j = 0; j < dayList.size(); j++) {\n\t\t\t\t\t\t//Get the hour of element at j and compare it again element at i of medList\n\t\t\t\t\t\tint hour = Integer.parseInt(dayList.get(j).getHour());\n\t\t\t\t\t\t//If < add at j, if equal check minutes else add later\n\t\t\t\t\t\tif(Integer.parseInt(medList.get(i).getHour()) < hour) {\n\t\t\t\t\t\t\tdayList.add(j, medList.get(i));\n\t\t\t\t\t\t\tadded = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if (Integer.parseInt(medList.get(i).getHour()) == hour) {\n\t\t\t\t\t\t\tadded = true;\n\t\t\t\t\t\t\t//Checks against minutes\n\t\t\t\t\t\t\tint minute = Integer.parseInt(dayList.get(j).getMinute());\n\t\t\t\t\t\t\tif(Integer.parseInt(medList.get(i).getMinute()) < minute) {\n\t\t\t\t\t\t\t\tdayList.add(j, medList.get(i));\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif(dayList.size() > (j + 1)) {\n\t\t\t\t\t\t\t\t\tdayList.add(j+1, medList.get(i));\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tdayList.add(medList.get(i));\n\t\t\t\t\t\t\t\t\tbreak;\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\t\t\t\t\tif(added == false) {\n\t\t\t\t\t\tdayList.add(medList.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Update the upcomingMedsLabel\n\t\tfor(int i = 0; i < dayList.size(); i++) {\n\t\t\tupcomingMedsLabel.setText(upcomingMedsLabel.getText() + \"\\n\\n\" + dayList.get(i));\n\t\t}\n\t}", "@Override\n\tprotected String getDefaultOrderBy() {\n\t\treturn \"date asc\";\n\t}", "public OrdersByOrderDate() {\n this.title = \"*** View Orders by order date ***\";\n }", "@Test\n public void booksArrangedInAscendingOrderAtoZ() throws InterruptedException {\n\n //WebElement Books Link\n clickOnElement(By.xpath(\"//ul[@class='top-menu notmobile']//li[5]/a\"));\n\n //WebElement Position dropdown box\n selectByIndexFromDropDown(By.cssSelector(\"select#products-orderby\"),1);\n sleepMethod(2000);\n\n //Scroll down page\n windowScrollUpOrDown(0,500);\n sleepMethod(2000);\n\n arrayListForEachLoopAssertEqualsForString(By.xpath(\"//div[@class='product-grid']//h2/a\"));\n\n }", "@Override\n public int compareTo(Date date) {\n if (this.year > date.year) {\n return 1;\n } else if (this.year < date.year) {\n return -1;\n } else if (this.year == date.year) {\n if (this.month > date.month) {\n return 1;\n } else if (this.month < date.month) {\n return -1;\n } else if (this.month == date.month) {\n if (this.day > date.day) {\n return 1;\n } else if (this.day < date.day) {\n return -1;\n } else if (this.day == date.day) {\n return 0;\n }\n }\n }\n return 0;\n }", "@Test\r\n public void testCompareTo1() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertTrue(d1.compareTo(d2) > 0);\r\n }", "private void sortAndNotify() {\n Collections.sort(todoDBList, listComparator);\n adapter.notifyDataSetChanged();\n }", "@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}", "double getSortTime();", "public void testCancelSchEdition() {\r\n TAG = \"testCancelSchEdition\";\r\n // Picker picker = new Picker(solo);\r\n setupDelOccFromOps();\r\n solo.clickOnActionBarItem(R.id.go_to_sch_op);\r\n solo.waitForActivity(ScheduledOpListActivity.class);\r\n solo.waitForView(ListView.class);\r\n tools.printCurrentTextViews();\r\n final CharSequence date = solo.getCurrentViews(TextView.class).get(2).getText();\r\n solo.clickInList(0);\r\n solo.clickOnImageButton(tools.findIndexOfImageButton(R.id.edit_op));\r\n solo.waitForActivity(ScheduledOperationEditor.class);\r\n solo.waitForDialogToClose(WAIT_DIALOG_TIME);\r\n GregorianCalendar today = Tools.createClearedCalendar();\r\n today.add(Calendar.MONTH, -2);\r\n // picker.clickOnDatePicker(today.get(Calendar.MONTH) + 1,\r\n // today.get(Calendar.DAY_OF_MONTH), today.get(Calendar.YEAR));\r\n solo.setDatePicker(0, today.get(Calendar.YEAR),\r\n today.get(Calendar.MONTH), today.get(Calendar.DAY_OF_MONTH));\r\n solo.clickOnActionBarItem(R.id.confirm);\r\n solo.clickOnButton(solo.getString(R.string.cancel));\r\n solo.clickOnActionBarItem(R.id.cancel);\r\n solo.waitForActivity(ScheduledOpListActivity.class);\r\n solo.waitForView(ListView.class);\r\n tools.printCurrentTextViews();\r\n Log.d(TAG, \"before date : \" + date);\r\n assertEquals(date, solo.getCurrentViews(TextView.class).get(2).getText());\r\n }", "public void hoverDateItemInDatePicker(boolean isNewToDoPage) {\n try {\n // If isNewToDoPage = true :verify in add new to-do page | isNewToDoPage = false, verify in to-do list page\n if (isNewToDoPage) {\n waitForClickableOfElement(eleIdDueDate, \"Due date text box\");\n eleIdDueDate.click();\n } else {\n waitForClickableOfElement(eleToDoNewRowDueDateText.get(0), \"Select due date text box\");\n eleToDoNewRowDueDateText.get(0).click();\n }\n waitForClickableOfElement(eleXpathChooseDate, \"Date picker\");\n hoverElement(eleXpathChooseDate, \"Date picker\");\n NXGReports.addStep(\"Verify hover select date in date picker\", LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"TestScript Failed: Verify hover select date in date pickerd\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }", "boolean getOrderByDayNull();", "public DateGUI(Date212 [] input, Date212 [] sortInput)\n {\n\t\tsuper(\"Dates \");\n\t\t\n\t\t//Configure main JFrame\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //taken from the JFrame class, allows us to close the window\n\t\tthis.setSize(100, 100);// (width, height);\n this.setLocation(200, 200);// x, y);\n\t\tthis.setLayout(new GridLayout(1, 2)); //sets the GUI to be 1 row 2 columns \n\t\t\n\t\t//Initializes the JTextArea with the dates of BOTH Date212 objects.\n\t\tthis.leftTextArea = new JTextArea(\"Unsorted Dates: \\n\");\n\t\tthis.rightTextArea = new JTextArea(\"Sorted Dates: \\n\");\n\n\t\t//Adds in the unsorted and sorted dates. \n\t\tfor(int i = 0; i < input.length; i++) {\n\t\t\t//Potential null values within array. As long as it's not null, continue the for loop.\n\t\t\tif(input[i] != null) {\n\t\t\t\tthis.leftTextArea.append(input[i].toString() + \"\\n\");\n\t\t\t\tthis.rightTextArea.append(sortInput[i].toString() + \"\\n\");\n\t\t\t}\n\t\t\telse \n\t\t\t\tbreak;\n\t\t}\n\n\t\t//Adds the information we put into the text area to the GUI.\n\t\tthis.getContentPane().add(this.leftTextArea);\n\t\tthis.getContentPane().add(this.rightTextArea);\n }", "@Test\n public void testGetOrdersByDate() {\n\n LocalDate ld = LocalDate.parse(\"2017-06-23\");\n List<Order> orderListByDate = service.getOrdersByDate(ld);\n List<Order> filteredList = new ArrayList<>();\n\n for (Order currentOrder : orderListByDate) {\n if (currentOrder.getOrderDate().contains(\"06232017\")) {\n filteredList.add(currentOrder);\n }\n }\n\n assertEquals(2, filteredList.size());\n }", "private void sort()\n {\n pd = new ProgressDialog(this);\n pd.setMessage(\"Sorting movies...\");\n pd.setCancelable(false);\n pd.show();\n\n movieList.clear();\n if(show.equals(\"notWatched\"))\n watched(false);\n else if(show.equals(\"watched\"))\n watched(true);\n else movieList.addAll(baseMovieList);\n\n if(orderBy.equals(\"alphabet\"))\n sortAlphabet();\n else if(orderBy.equals(\"date\"))\n sortDate();\n else sortRating();\n\n if(orderType)\n Collections.reverse(movieList);\n\n recyclerView.setAdapter(movieAdapter);\n pd.dismiss();\n }", "private void updateUI() {\n mUser.weight.sortListByDate();\n mUser.bloodPressure.sortListsByDate();\n updateText();\n updateChart();\n }", "public ArrayList<Event> sortByDate() {\n\t\tArrayList<Event>calendarSortedByDate = new ArrayList();\n\t\tfor(int j = 0; j<calendar.size(); j++) {\n\t\t\tcalendarSortedByDate.add(calendar.get(j));\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < calendarSortedByDate.size() - 1; i++) {\n\t\t // Find the minimum in the list[i..list.size-1]\n\t\t Event currentMin = calendarSortedByDate.get(i);\n\t\t int currentMinIndex = i;\n\n\t\t for (int j = i + 1; j < calendarSortedByDate.size(); j++) {\n\t\t if (currentMin.compareDate​(calendarSortedByDate.get(j)) > 0) {\n\t\t currentMin = calendarSortedByDate.get(j);\n\t\t currentMinIndex = j;\n\t\t }\n\t\t }\n\n\t\t // Swap list[i] with list[currentMinIndex] if necessary;\n\t\t if (currentMinIndex != i) {\n\t\t \t calendarSortedByDate.set(currentMinIndex, calendarSortedByDate.get(i));\n\t\t \t calendarSortedByDate.set(i, currentMin);\n\t\t }\n\t\t }\n\t\treturn calendarSortedByDate;\n\t}", "public boolean hasOrderByDay() {\n return orderByDayBuilder_ != null || orderByDay_ != null;\n }", "@Override\n public void replaceDate(String oldDate, String newDate){\n \n //Replace and refresh\n HostCheckInListModel theModel = (HostCheckInListModel) checkInTimeList.getModel();\n theModel.removeElement(oldDate);\n \n //Add the new one and sort it\n theModel.addElement(newDate);\n Collections.sort( Collections.list( theModel.elements()));\n \n }", "private void updateHeader() {\n Log.d(TAG, \"#updateHeader(); widgetId: \" + mWidgetId);\n\n // Get the widget layout\n RemoteViews views =\n new RemoteViews(mContext.getPackageName(), R.layout.widget_2x2);\n\n // Set up the list with an adapter\n Intent intent = new Intent(mContext, CurriculumWidgetProviderV11.WidgetService.class);\n intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mWidgetId);\n intent.setData(Uri.parse(intent.toUri(Intent.URI_INTENT_SCHEME)));\n views.setRemoteAdapter(R.id.task_list, intent);\n\n setupWeekDay(views);\n\n mWidgetManager.updateAppWidget(mWidgetId, views);\n }", "@Test(groups = {\"Sorting_002\"})\n @Execute(asUser = User.ANONYMOUS)\n @InBrowser(browserSize = DESKTOP_RESOLUTION)\n public void anonUserOnDesktopCanSortPostList() {\n userCanSwitchBetweenLatestAndTrendingTab();\n }", "public boolean hasOrderByDay() {\n return orderByDay_ != null;\n }", "@FXML\n private void updateNameOrder(ActionEvent event) {\n\n if (sortOrder == Order.NAME_ASC) {\n\n sortOrder = Order.NAME_DESC;\n\n } else if (sortOrder == Order.NAME_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.NAME_ASC;\n\n }\n\n updateOrderButtons();\n\n }", "private void initDate(){\n\n owa = findViewById(R.id.OWA);\n sda = findViewById(R.id.SWA);\n fida = findViewById(R.id.FIDA);\n fda = findViewById(R.id.FDA);\n trda = findViewById(R.id.TRDA);\n tda = findViewById(R.id.TDA);\n hier = findViewById(R.id.HIER);\n\n dateList.add(hier);\n dateList.add(tda);\n dateList.add(trda);\n dateList.add(fda);\n dateList.add(fida);\n dateList.add(sda);\n dateList.add(owa);\n\n }", "boolean isFilterByDate();", "@Override\n public int compare(Date date1, Date date2) {\n if (date1.getDay() < date2.getDay() || date1.getMonth() < date2.getMonth() || date1.getYear() < date2.getYear())\n return -1;\n\n else if (date1.getDay() > date2.getDay() || date1.getMonth() > date2.getMonth() || date1.getYear() > date2.getYear())\n return 1;\n\n return 0;\n\n //Finally sort wins according to the -1, 0, 1 ascending order\n }", "@Test\r\n public void testCompareTo2() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertFalse(d1.compareTo(d2) < 0);\r\n }", "@Test\n public void testBeastTicker() throws Exception {\n\tList<RssCategory> rssCategories = new ArrayList<RssCategory>();\n\tRssCategory displayedRssCategory = RssCategoryFactory.create();\n\tList<RssItem> rssItems = new ArrayList<RssItem>();\n\tRssItem displayedRssItem1 = RssItemFactory.create(\"Some RSS Item Text\");\n\trssItems.add(displayedRssItem1);\n\tRssItem displayedRssItem2 = RssItemFactory.create(\"Some more RSS Item Text\");\n\trssItems.add(displayedRssItem2);\n\tdisplayedRssCategory.setRssItemList(rssItems);\n\trssCategories.add(displayedRssCategory);\n\trssCategories.add(RssCategoryFactory.createWithNullTitle());\n\tEasyMock.expect(rssFeedService.getBeastNewsRssFeed()).andReturn(rssCategories);\n\tEasyMock.replay(rssFeedService);\n\n\tHomePage page = (HomePage) tester.startPage(HomePage.class, new PageParameters());\n\n\tassertNotNull(page.getNewsCategories());\n\tassertEquals(\"Only one category should be displayed\", 1, page.getNewsCategories().size());\n\tassertSame(\"Incorrect category displayed\", displayedRssCategory, page.getNewsCategories().get(0));\n\n\ttester.assertListView(\"newsCategoryListView\", page.getNewsCategories());\n\ttester.assertComponent(\"newsCategoryListView:0:title\", Label.class);\n\ttester.assertLabel(\"newsCategoryListView:0:title\", displayedRssCategory.getTitle());\n\ttester.assertComponent(\"newsCategoryListView:0:date\", Label.class);\n\ttester.assertLabel(\"newsCategoryListView:0:date\", \"Last updated on \"\n\t\t+ displayedRssCategory.getLastUpdatedDate());\n\ttester.assertComponent(\"newsCategoryListView:0:news\", Label.class);\n\ttester.assertLabel(\"newsCategoryListView:0:news\", displayedRssItem1.getFullText() + \" \"\n\t\t+ displayedRssItem2.getFullText());\n }", "@Test\n public void virtualTSOfDateSeparatorShouldHaveProperValue() throws Exception {\n adapter.onUpdate(testPosts);\n View view = adapter.getView(NEW_DATE_SEPARATOR, null, null);\n OnItemLongClickListener listener = adapter.new ItemLongClickListener();\n listener.onItemLongClick(null, view, NEW_DATE_SEPARATOR, adapter.getItemId(NEW_DATE_SEPARATOR));\n\n assertThat(adapter.getCount(), equalTo(NUM_CELLS));\n View postView = adapter.getView(NEW_DATE_SEPARATOR + 1, null, null);\n assertThat(postView.findViewById(R.id.postButton), notNullValue());\n postView.findViewById(R.id.postButton).performClick();\n\n ShadowActivity shadowActivity = shadowOf(activity);\n Intent startedIntent = shadowActivity.getNextStartedActivity();\n assertThat(startedIntent, notNullValue());\n ShadowIntent shadowIntent = shadowOf(startedIntent);\n\n // The date separator's virtual timestamp is calculated based on the following post.\n Calendar cal = Calendar.getInstance();\n cal.setTime(Post.virtualTimestampToDate(testPost.getVirtualTimestamp()));\n cal.set(Calendar.HOUR_OF_DAY, 0);\n cal.set(Calendar.MINUTE, 0);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n long prevVirtualTS = shadowIntent.getLongExtra(PostTimelineActivity.PREV_VIRTUAL_TS, 100);\n assertThat(prevVirtualTS, equalTo(Post.dateToVirtualTimestamp(cal.getTime())));\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n JDayChooser jDayChooser0 = new JDayChooser(true);\n AncestorListener ancestorListener0 = mock(AncestorListener.class, new ViolatedAssumptionAnswer());\n JYearChooser jYearChooser0 = new JYearChooser();\n jDayChooser0.removeFocusListener(jYearChooser0);\n jDayChooser0.addAncestorListener(ancestorListener0);\n jDayChooser0.setMinimumSize((Dimension) null);\n jDayChooser0.firePropertyChange(\"*KXp-u4Rvh9-U\", 0.212F, 0.212F);\n jDayChooser0.getMinSelectableDate();\n jDayChooser0.drawDays();\n assertTrue(jDayChooser0.isDayBordersVisible());\n assertFalse(jDayChooser0.isDecorationBordersVisible());\n assertEquals(14, jDayChooser0.getDay());\n }", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);", "@Test public void Ago()\t\t\t\t\t\t\t\t\t\t{tst_date_(\"1 month ago\"\t\t\t, \"2012-01-27\");}", "@Override\n public int compare(final Availability o1, final Availability o2) {\n DateFormat f = new SimpleDateFormat(\"dd-MM-yyyy\");\n try {\n return f.parse(o1.getDate()).compareTo(f.parse(o2.getDate()));\n } catch (ParseException e) {\n throw new IllegalArgumentException(e);\n }\n }", "public static List<FlickrFeedResponse.Item> sortByDateTaken(List<FlickrFeedResponse.Item> list){\n\n Collections.sort(list, new FlickrFeedResponse.Item.DateTakenComparator());\n\n return list;\n }", "@FXML\n private void updateOrganOrder(ActionEvent event) {\n\n if (sortOrder == Order.ORGAN_ASC) {\n\n sortOrder = Order.ORGAN_DESC;\n\n } else if (sortOrder == Order.ORGAN_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.ORGAN_ASC;\n\n }\n\n updateOrderButtons();\n\n }", "private void sortDateList(List<Date> dateList) {\n Collections.sort(dateList);\n }", "public static void main(String[] args) {\n List l = new ArrayList();\r\n\tl.add(Month.SEP);\r\n\tl.add(Month.MAR);\r\n\tl.add(Month.JUN);\r\n\tSystem.out.println(\"\\nList before sort : \\n\" + l);\r\n\tCollections.sort(l);\r\n\tSystem.out.println(\"\\nList after sort : \\n\" + l);\r\n }", "@Override\r\n\t\tpublic int compareTo(Event compareEvent){\r\n\t\t\t\r\n\t\t\tint compareQuantity = ((Event)compareEvent).date;\r\n\t\t\t//ascending order\r\n\t\t\treturn this.date-compareQuantity;\r\n\t\t\t//descending order\r\n\t\t\t//return compareQuantity -this.quantity;\r\n\t\t}", "private GeofenceInfoContent[] sortByDate(GeofenceInfoContent[] geofenceInfoContents){\n GeofenceInfoContent infoContent = null;\n for(int j = 0; j < geofenceInfoContents.length; j++) {\n for (int i = 0; i < geofenceInfoContents.length; i++) {\n infoContent = geofenceInfoContents[i];\n if (i < geofenceInfoContents.length - 1) {\n String year1 = infoContent.getYear();\n String year2 = geofenceInfoContents[i + 1].getYear();\n int year1Int = Integer.parseInt(year1);\n int year2Int = Integer.parseInt(year2);\n if (year1Int < year2Int) {\n geofenceInfoContents[i] = geofenceInfoContents[i + 1];\n geofenceInfoContents[i + 1] = infoContent;\n }\n }\n }\n }\n return geofenceInfoContents;\n }" ]
[ "0.6846948", "0.6818551", "0.6798172", "0.6554841", "0.6516355", "0.64637035", "0.64198697", "0.62813157", "0.6252382", "0.6018829", "0.592178", "0.5904388", "0.5850065", "0.5772264", "0.57528174", "0.56819624", "0.56682837", "0.56550425", "0.5643247", "0.5622375", "0.5607528", "0.5603495", "0.5598931", "0.5576006", "0.5550662", "0.5524666", "0.5518447", "0.55001557", "0.54917395", "0.5456908", "0.54485846", "0.5443016", "0.543927", "0.54328877", "0.54191643", "0.54122925", "0.5403721", "0.53471017", "0.53457755", "0.5339986", "0.53302944", "0.53280073", "0.5322921", "0.53105515", "0.53058445", "0.52890515", "0.5268208", "0.5261857", "0.5248324", "0.52368486", "0.52307343", "0.5229234", "0.52170694", "0.521052", "0.5207649", "0.51954454", "0.5190234", "0.5184453", "0.516944", "0.51565593", "0.5150087", "0.5142753", "0.5122535", "0.5117816", "0.5116145", "0.5115816", "0.51120025", "0.5111518", "0.510985", "0.5091457", "0.5090704", "0.50809735", "0.5077525", "0.5077321", "0.5057134", "0.5054864", "0.5053627", "0.5048255", "0.50439095", "0.5042922", "0.5037817", "0.50304395", "0.5016768", "0.50108546", "0.500388", "0.50036556", "0.50022346", "0.49998373", "0.49990013", "0.4995717", "0.499494", "0.49897832", "0.49866992", "0.49822578", "0.49743196", "0.49707004", "0.49671927", "0.49671724", "0.49557593", "0.49557027" ]
0.8155366
0
/ renamed from: a
private void m6903a() { SharedPreferences sharedPreferences = getSharedPreferences(C1848b.a().getClass().getName(), 0); this.f5647p = (double) Float.parseFloat(sharedPreferences.getString("beast.location.manager.lat", "0")); this.f5648q = (double) Float.parseFloat(sharedPreferences.getString("beast.location.manager.lon", "0")); if (this.f5647p == 0.0d && this.f5648q == 0.0d) { this.f5645n.a(getResources().getString(C1373R.string.str_locating_failed)); return; } this.f5646o = new C2219a(this); this.f5640i.clear(); m6904a(this.f5648q, this.f5647p, 300.0f, this.f5650s, this.f5651t, this.f5652u, this.f5653v, ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
public void m6914a(Location location) { if (location != null) { if (this.f5630B != null) { this.f5630B.cancel(); } this.f5638g.setEnabled(true); this.f5651t = "0,100"; this.f5656y.a(location); m6903a(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: b
private void m6906b() { LocationClientOption locationClientOption = new LocationClientOption(); locationClientOption.setOpenGps(true); locationClientOption.setPriority(1); locationClientOption.setCoorType("bd09ll"); locationClientOption.setScanSpan(5000); locationClientOption.setAddrType("all"); this.f5657z = new LocationClient(this); this.f5657z.registerLocationListener(this); this.f5657z.setLocOption(locationClientOption); this.f5657z.start(); this.f5657z.requestLocation(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "@Override\n\tpublic void b() {\n\n\t}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public bb b() {\n return a(this.a);\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract void b(StringBuilder sb);", "public void b() {\n }", "public void b() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void b() {\n ((a) this.a).b();\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public t b() {\n return a(this.a);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract T zzm(B b);", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "public abstract void zzc(B b, int i, int i2);", "public interface b {\n}", "public interface b {\n}", "private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }", "BSubstitution createBSubstitution();", "public void b(ahd paramahd) {}", "void b();", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "B database(S database);", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public abstract C0631bt mo9227aB();", "public an b() {\n return a(this.a);\n }", "protected abstract void a(bru parambru);", "static void go(Base b) {\n\t\tb.add(8);\n\t}", "void mo46242a(bmc bmc);", "public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public abstract BoundType b();", "public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }", "b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }", "private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }", "public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public abstract void zzb(B b, int i, long j);", "public abstract void zza(B b, int i, zzeh zzeh);", "int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }", "public abstract void a(StringBuilder sb);", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public abstract void zzf(Object obj, B b);", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }", "void mo83703a(C32456b<T> bVar);", "public void a(String str) {\n ((b.b) this.b).d(str);\n }", "public void selectB() { }", "BOperation createBOperation();", "void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}", "private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }", "public void b(String str) {\n ((b.b) this.b).e(str);\n }", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "public abstract void zza(B b, int i, T t);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public abstract void zza(B b, int i, long j);", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public abstract void mo9798a(byte b);", "public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }", "private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }", "public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.5886636", "0.58828026", "0.5855491", "0.584618", "0.5842517", "0.5824137", "0.5824071", "0.58097327", "0.5802052", "0.58012927", "0.579443", "0.5792392", "0.57902914", "0.5785124", "0.57718205", "0.57589084", "0.5735892", "0.5735892", "0.5734873", "0.5727929", "0.5720821", "0.5712531", "0.5706813", "0.56896514", "0.56543154", "0.5651059", "0.5649904", "0.56496733", "0.5647035", "0.5640965", "0.5640109", "0.563993", "0.5631903", "0.5597427", "0.55843794", "0.5583287", "0.557783", "0.55734867", "0.55733293", "0.5572254", "0.55683887", "0.55624336", "0.55540246", "0.5553985", "0.55480546", "0.554261", "0.5535739", "0.5529958", "0.5519634", "0.5517503", "0.55160624", "0.5511545", "0.5505353", "0.5500533", "0.5491741", "0.5486198", "0.5481978", "0.547701", "0.54725856", "0.5471632", "0.5463497", "0.5460805", "0.5454913", "0.5454885", "0.54519916", "0.5441594", "0.5436747", "0.5432453", "0.5425923", "0.5424724", "0.54189867", "0.54162544", "0.54051477", "0.53998184", "0.53945845", "0.53887725", "0.5388146", "0.5387678", "0.53858143", "0.53850687", "0.5384439" ]
0.0
-1
/ renamed from: a
private void m6904a(double d, double d2, float f, String str, String str2, String str3, String str4, String str5) { getAsyncTaskQueue().a(new CompetitionSectionActivity$5(this, d, d2, f, str, str2, str3, str4, str5), new Void[0]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
public void m6913a(int i) { FragmentTransaction beginTransaction = this.f5639h.beginTransaction(); switch (i) { case 1: this.f5637f.setImageResource(C1373R.drawable.ic_section_location); if (this.f5645n != null) { beginTransaction.show(this.f5645n); } else { this.f5645n = new SectionListFragment(); beginTransaction.add((int) C1373R.id.activity_competition_section_content, this.f5645n); } this.f5654w.setVisibility(8); break; case 2: this.f5637f.setImageResource(C1373R.drawable.ic_section_search_list); this.f5654w.setVisibility(0); if (this.f5645n != null) { beginTransaction.hide(this.f5645n); break; } break; } beginTransaction.setTransition(8194).commitAllowingStateLoss(); this.f5637f.setEnabled(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
Este metodo trata el mensaje que le llega.
public void onMessage(Message message) throws RuntimeException { try { if (logger.isDebugEnabled()) logger.debug("Begin:onMessage"); // Implementation if (message instanceof ObjectMessage) { if (logger.isDebugEnabled()) logger.debug("Transformo el mensaje"); ObjectMessage obj = (ObjectMessage) message; OdeVO ode = (OdeVO)obj.getObject(); if (logger.isDebugEnabled()) logger.debug("El ode es id ["+ode.getIdentificadorMEC()+"] MainFile ["+ode.getMainFile()+"]"); //Si todo ha ido bien hago la petición RMI pasando el Objeto if (logger.isDebugEnabled()) logger.debug("Solicitud RMI"); this.generateImage4Id(ode); if (logger.isDebugEnabled()) logger.debug("Fin Solicitud RMI"); } else { if (logger.isDebugEnabled()) logger.debug("No hay más mensajes que tratar"); } //session.close(); if (logger.isDebugEnabled()) logger.debug("End:onMessage"); } catch (Exception ex) { if (message != null) { logger.error("Se ha producido un error al leer el mensaje ["+message+"]", ex); } throw new RuntimeException(ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void getMessage() {\n\t\tSystem.out.println(\"getMessage() 출력...\");\r\n\t}", "public void getMessage() {\n\r\n\t}", "public void showMessage(){\n\t jsfMessageHelper.addInfo(\"Mesaj:\", (messageTxt==null?\"?\":messageTxt));\r\n\t}", "private void exibe_mensagem(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }", "public void getMessage() {\r\n // use JOptionPane to have a pop up box informing user of the invalid token\r\n JOptionPane.showMessageDialog(null, \"Invalid Token \" + invalidToken);\r\n }", "public void afficherMessage();", "public void mensagemErroCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro!\\nVerifique se todos os campos estão preenchidos.\"\n\t\t\t\t+ \"\\nVerifique se os dados em formato numérico são números.\"\n\t\t\t\t+ \"\\nVerifique se as datas foram inseridas corretamente.\" + \"\\nNão use vírgulas ','. Use pontos!\", null,\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t}", "@Override\n\tpublic void msgAtFrige() {\n\t\t\n\t}", "@Then(\"^Mostrara mensaje de error$\")\n\tpublic void Mostrara_mensaje_de_error() throws Throwable {\n\t System.out.println(\"El email o la contrase�a es erronea\");\n\t assert(true);\n\t}", "public void exibirMsgs() {\n StringBuilder s = new StringBuilder();\n for (MensagemSistema msgSis : mensagens) {\n switch (msgSis.getTipo()) {\n case ConstantsControl.MSG_ALERT:\n s.append(\"[Alerta]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n break;\n case ConstantsControl.MSG_INFO:\n s.append(\"[Informação]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n break;\n case ConstantsControl.MSG_ERRO:\n s.append(\"[Erro]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n break;\n case ConstantsControl.MSG_SUCESSO:\n s.append(\"[Sucesso]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n break;\n }\n\n }\n JMessageUtil.showMensagensSistema(new javax.swing.JFrame(), s.toString());\n mensagens.clear();\n }", "public String getMessage()\n {\n return super.getMessage()+promo_error+\"not found\";\n }", "@Override\n public String getMessage(){\n \n }", "@Override\n public String getMessage() {\n return \" ** I'm a friendly ENEMY! **\";\n }", "public void exibeMensagem(String mensagem) {\n JOptionPane.showMessageDialog(null, mensagem);\n }", "@Override\n public void recibirMensaje(Mensaje mensaje) {\n mensajes.append(mensaje);\n }", "@Override\n\tpublic String printMes() throws RemoteException{\n\t\tString mes=\"welcome you!\";\n\t\treturn mes;\n\t}", "public void messageToUser() {\n // show a message dialog - the message is an error message.\n JOptionPane.showMessageDialog(new JFrame(),\n \"You are missing some parameters in the level definitions, Please check it\", \"Error!\",\n JOptionPane.ERROR_MESSAGE);\n // exit the program\n System.exit(0);\n }", "@Override\n public String getMessage()\n {\n return message;\n }", "public void loadLossMessage() {\n\n\t\tmessageToDisplay.add(ArtemisCalendar.getMonthName(ArtemisCalendar.getCalendar().get(2)) + \", \"\n\t\t\t\t+ ArtemisCalendar.getCalendar().get(1) + \".\");\n\t\tmessageToDisplay.add(String.format(\"On %s The Artemis Project has failed at %.1f%s completion.\\n\\nMission Debrief:\\n\",\n\t\t\t\tArtemisCalendar.getCalendar().getTime(), GameStatistics.missionProgress(GameLauncher.board), \"%\"));\n\t\tmessageToDisplay.add(systemCompletion(SystemType.ORION));\n\t\tmessageToDisplay.add(systemCompletion(SystemType.SLS));\n\t\tmessageToDisplay.add(systemCompletion(SystemType.EGS));\n\t\tmessageToDisplay.add(systemCompletion(SystemType.GATEWAY));\n\t\tGameLauncher.displayMessage();\n\t}", "public void sucessoMsg(String msg) {\n mensagens.add(new MensagemSistema(ConstantsControl.MSG_SUCESSO, msg));\n }", "private void success() {\n showMessage(\"Congratulations!\", \"success\");\n }", "private void mensajeGrow(String mensaje, EntidadDTO entidadDTO) {\r\n\t\tFacesMessage msg = new FacesMessage(mensaje, entidadDTO.getNit() + \" \" + entidadDTO.getNombre());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\r\n\t}", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "@Override\r\n\tpublic String getMessage() {\n\t\treturn \"홀수입력 !!\";\r\n\t}", "public static void mensagemErroCadastrar() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro ao cadastrar. Revise os dados inseridos.\", \"Erro\", JOptionPane.ERROR_MESSAGE, new ImageIcon(Toolkit.getDefaultToolkit().getImage(CadastroQuartos.class.getResource(\"/Imagens/Erro32.png\"))));\n\t}", "private void mensajeErrorSinDatos() {\r\n\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\tbuilder.setMessage(R.string.txtErrorSinDatos).setCancelable(false)\r\n\t\t.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n\t\t public void onClick(DialogInterface dialog, int id) {\r\n\t\t\tListaRutasActivity.this.finish();\r\n\t\t }\r\n\t\t});\r\n\tAlertDialog alert = builder.create();\r\n\talert.show();\r\n }", "public static void message() {\r\n\t\t\r\n\t\tJOptionPane.showMessageDialog(null, \"Thanks for your participation\" + \"\\nHave a great day!\");\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public String getMessage() {\n return MESSAGE;\n }", "@Override\n public void escreverMensagem(String mensagem) {\n chat.appendText(mensagem);\n }", "public void mensagemErro(String m) {\r\n Alert alerta = new Alert(Alert.AlertType.ERROR);\r\n alerta.setTitle(\"ERRO!\");\r\n alerta.setHeaderText(null);\r\n alerta.setContentText(m);\r\n alerta.showAndWait();\r\n }", "String getMessage();", "String getMessage();", "String getMessage();", "protected abstract String getMessage();", "public void msgErreur(){\n \n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Entrée invalide\");\n alert.setHeaderText(\"Corriger les entrées invalides.\");\n alert.setContentText(\"Les informations entrées sont erronnées\");\n\n alert.showAndWait();\n \n\n}", "public void addMessage(String mensaje) {\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, mensaje, null);\n FacesContext.getCurrentInstance().addMessage(null, message);\n }", "@Override\r\n\tpublic String getMessage() {\r\n\t\treturn \"Veuillez entrer un nombre positif\";\r\n\t}", "public void bienvenida(){\n System.out.println(\"Bienvenid@ a nuestro programa de administracion de parqueos\");\n }", "@Override\r\n\tpublic void falar(String mensagem) {\r\n\t\tSystem.out.println(\"[ \"+getNome()+\" ] \"+mensagem);\r\n\t}", "public String getMessage()\n {\n return super.getMessage()+promo_error.getCode()+\"already exists\";\n }", "public static void updateMessageBox() {\n\t}", "@Override\n\tpublic String getMessage() {\n\t\treturn \"ATTENZIONE: nel progetto Eccezioni Java si è verificato un errore!\";\n\t}", "public static void displayMsg() {\n\t}", "public void message() {\n JOptionPane.showMessageDialog(null,\n \"Task was deleted successfully.\",\n \"Message\", JOptionPane.INFORMATION_MESSAGE);\n }", "public void mensajeInformacion(String mensaje){\n\t\tAlertDialog.Builder builder =\n new AlertDialog.Builder(Postre.this);\n \n builder.setMessage(mensaje)\n .setTitle(\"Información\")\n .setPositiveButton(\"Aceptar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\t\n builder.show();\n\t}", "public void showUnsolvableMessage() {\n\t\tJOptionPane.showMessageDialog(frame, \"Det angivna sudokut är olösbart\");\n\t}", "@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }", "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "@Override\n\t\t\t\tpublic void displayWarning(LinphoneCore lc, String message) {\n\t\t\t\t\t\n\t\t\t\t}", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "@Override\n public String getMessage()\n {\n return message;\n }", "public void assertMsgCheck() {\r\n\t\tassertEquals(successMsg.getText().substring(0,36), \"Success: You have modified products!\");\r\n\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ successMsg.getText().substring(0,36));\r\n\t}", "private void mostrarMensagemDeErro(String informacao) {\n\t\tJOptionPane.showMessageDialog(null, informacao, \"Aten��o\",\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t}", "@Override\n public String getMessage() {\n return message;\n }", "public String getMessage() {\n\t\treturn \" whose content is a\";\n\t}", "public void showLoseMessage(String info) {\n\t\tAlert al = new Alert(AlertType.WARNING);\n\t\tal.setTitle(\"Se termino el juego\");\n\t\tal.setHeaderText(\"Perdiste\");\n\t\tal.setContentText(info);\n\t\tal.showAndWait();\n\t}", "public void parler(String message) {\n if (!this.estHorsLigne() && !this.estLibre()) {//tel allumé et en appel, on parle\n System.out.println(message);\n }\n }", "@Override\n public String getMessage() {\n return message;\n }", "public void enviarMensagem(String mensagem) {\n //Painel.COMPUTADOR_TRANSMISSOR.limparTextoCamadas();//Limpando texto do Computador Transmissor\n //Painel.COMPUTADOR_RECEPTOR.limparTextoCamadas();//Limpando texto do Computador Receptor\n\n //Painel.COMPUTADOR_TRANSMISSOR.limparTela();//Limpando texto da Tela\n //Painel.COMPUTADOR_RECEPTOR.limparTela();//Limpando texto da Tela\n\n //this.id_temporizador = 1;\n //this.idQuadroEsperado = 1;\n //MeioDeComunicacao.inicarTransmissao();\n\n adicionarMensagem(\"Msg Enviada: \" + mensagem);//Adiciona a mensagem enviada no Computador Transmissor\n\n aplicacaoTransmissora.aplicacaoTransmissora(mensagem);//Enviando a mensagem para aplicacao transmissora\n }", "void prosegui(String messaggio);", "void errorMsg(String msg) {\n Alert errorAlert = new Alert(\"error\", msg, null, AlertType.ERROR);\n errorAlert.setCommandListener(this);\n errorAlert.setTimeout(Alert.FOREVER);\n Display.getDisplay(this).setCurrent(errorAlert);\n }", "public abstract String getMessage();", "protected abstract String persistFailedMessage();", "private static void imprimirMensajeEnPantalla() {\n\tSystem.out.println(\"########### JUEGO EL AHORCADO ###########\");\n\timprimirAhorcado(intentosRestantes);\n\tSystem.out.println(\"\\nPALABRA ACTUAL: \" + getPalabraActualGuionBajo());\n\tSystem.out.println(\"INTENTOS RESTANTES: \" + intentosRestantes);\n\t}", "@Override\n public void displayMessage(int status, String msg) {\n if (status == Constants.STATUS_OK) {\n dispose();\n } else {\n JOptionPane.showMessageDialog(null, msg, \"Lỗi\", JOptionPane.ERROR_MESSAGE);\n }\n }", "@Override\n public void displayMessage(int status, String msg) {\n if (status == Constants.STATUS_OK) {\n dispose();\n } else {\n JOptionPane.showMessageDialog(null, msg, \"Lỗi\", JOptionPane.ERROR_MESSAGE);\n }\n }", "private void msgNoServidorConfigurado() {\r\n\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\tbuilder.setMessage(R.string.txtSinServidor).setCancelable(false)\r\n\t\t.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n\t\t public void onClick(DialogInterface dialog, int id) {\r\n\t\t\tListaRutasActivity.this.finish();\r\n\t\t }\r\n\t\t});\r\n\tAlertDialog alert = builder.create();\r\n\talert.show();\r\n }", "@Override\n\tpublic void displayWarning(LinphoneCore lc, String message) {\n\t\t\n\t}", "@Override\n public void errorLogin(String msg) {\n JOptionPane.showMessageDialog(this, msg);\n }", "private void mostrarMensajeError() {\n this.mBinding.rvPeliculas.setVisibility(View.GONE);\n /* Then, show the error */\n this.mBinding.tvMostrarError.setVisibility(View.VISIBLE);\n }", "@Override\n\tpublic void msgGotHungry() {\n\t\t\n\t}", "public void sendError()\n {\n \tString resultText = Integer.toString(stdID);\n \tresultText += \": \";\n\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t{\n\t\t\tresultText += registeredCourses.get(i);\n\t\t\tresultText += \" \";\n\t\t}\n\t\tresultText += \"--\";\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(semesterNum);\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(0); \n\t\tresultText += \" \";\n\t\tprintResults.writeResult(resultText);\n \tSystem.exit(1);\n }", "public static void mensagemRealizarCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Favor clique em atualizar para re-listar e selecionar o novo item recem cadastrado.\", \"Informação\", JOptionPane.INFORMATION_MESSAGE, new ImageIcon(Toolkit.getDefaultToolkit().getImage(CadastroQuartos.class.getResource(\"/Imagens/Informacao32.png\"))));\n\t}", "@Override\n public void setFailed(String msg) {\n Platform.runLater(() -> {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Errore di input\");\n alert.setHeaderText(msg);\n alert.showAndWait();\n });\n if (firstAction) {\n inTurno = false;\n }\n\n }", "public void afficherMessage () {\r\n System.out.println(\"(\"+valeur+\", \"+type+\")\"); \r\n }", "@Override\n public String getMessage() {\n return super.getMessage() + bonus_error + \"Not Found\";\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n fenetre.getClient().envoyerMessage(getMessage(), optionEnvoi); // Envoie du message\n saisieMessage.setText(\"\"); // On supprime le texte de la saisie message\n }", "@Override\r\n\tpublic void 태생() {\n\t\tSystem.out.println(\"새끼를 낳는다.\");\r\n\t}", "public void receberMensagem(String msg);" ]
[ "0.68608916", "0.67257094", "0.66484857", "0.6617045", "0.6610327", "0.6541074", "0.65245765", "0.65101796", "0.6487141", "0.6434629", "0.6425706", "0.6417327", "0.6406147", "0.6397313", "0.6396743", "0.63957816", "0.63908195", "0.6376677", "0.6363846", "0.63559055", "0.6328091", "0.6307332", "0.62800646", "0.62800646", "0.62800646", "0.62800646", "0.62800646", "0.62800646", "0.62800646", "0.62800646", "0.62800646", "0.62800646", "0.62800646", "0.62800646", "0.62800646", "0.62800646", "0.62800646", "0.62800646", "0.62800646", "0.6272753", "0.62686545", "0.6261273", "0.62533", "0.625228", "0.62358737", "0.6221535", "0.62194574", "0.62194574", "0.62194574", "0.62178373", "0.62143576", "0.6212192", "0.62046033", "0.6193288", "0.6191523", "0.6182293", "0.6180088", "0.61705846", "0.61691904", "0.61658204", "0.61573213", "0.6146573", "0.614041", "0.6131332", "0.6124699", "0.6117642", "0.6117642", "0.6117642", "0.6117642", "0.6117642", "0.6117642", "0.6117642", "0.611419", "0.6111691", "0.61064357", "0.6106242", "0.61059254", "0.61058235", "0.6098141", "0.6093952", "0.60897654", "0.60783887", "0.60782516", "0.6073734", "0.60679597", "0.60495925", "0.60482496", "0.60482496", "0.60429084", "0.6041452", "0.60408723", "0.6038619", "0.6024695", "0.6022394", "0.60158265", "0.60155994", "0.6004007", "0.6000086", "0.59932643", "0.59791994", "0.59782344" ]
0.0
-1
Este metodo genera la imagen
public void generateImage4Id(OdeVO ode) { try { if (logger.isDebugEnabled()) logger.debug("Begin:generateImage4Id"); if (logger.isDebugEnabled()) logger.debug("El ode es id ["+ode.getIdentificadorMEC()+"] MainFile ["+ode.getMainFile()+"] y el servidor es ["+ode.getServerOn()+"]"); //Si todo ha ido bien hago la petición RMI pasando el Objeto if (logger.isDebugEnabled()) logger.debug("Solicitud RMI"); this.getImgServer().getImageUrlForId(ode.getIdentificadorMEC(), ode.getMainFile(), ode.getServerOn()); if (logger.isDebugEnabled()) logger.debug("End:generateImage4Id"); } catch (Exception ex) { logger.error("Se ha producido un error al SOLICITAR rmi ["+ode.getIdentificadorMEC()+"]", ex); throw new CreateImageException("Se ha producido un error al SOLICITAR rmi ["+ode.getIdentificadorMEC()+"]",ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Image gen();", "public void crearImagenes() {\n try {\n fondoJuego1 = new Imagenes(\"/fondoJuego1.png\",39,-150,-151);\n fondoJuego2 = new Imagenes(\"/fondoJuego2.png\",40,150,149);\n regresar = new Imagenes(\"/regresar.png\",43,90,80);\n highLight = new Imagenes(\"/cursorSubmenus.png\",43,90,80);\n juegoNuevo = new Imagenes(\"/juegoNuevo.png\",44,90,80);\n continuar = new Imagenes(\"/continuar.png\",45,90,80);\n tituloJuegoNuevo = new Imagenes(\"/tituloJuegoNuevo.png\",200,100,165);\n tituloContinuar = new Imagenes(\"/tituloContinuar.png\",201,100,40);\n tituloRegresar = new Imagenes(\"/tituloRegresar.png\",202,20,100);\n\t} catch(IOException e){\n e.printStackTrace();\n }\n }", "IMG createIMG();", "Image createImage();", "public ImagenLogica(){\n this.objImagen=new Imagen();\n //Creacion de rutas\n this.creaRutaImgPerfil();\n this.crearRutaImgPublicacion();\n \n }", "@Override\n\tpublic void carregar() {\n\t\tSystem.out.println(\"carregar imagem png\");\n\t\t\n\t}", "public Coloca_imagen(){\n \n \n }", "public void rellenaImagen()\n {\n rellenaDatos(\"1\",\"Samsung\", \"cv3\", \"blanco\" , \"50\", 1200,2);\n rellenaDatos(\"2\",\"Samsung\", \"cv5\", \"negro\" , \"30\", 600,5);\n }", "private void createImage()\n {\n GreenfootImage image = new GreenfootImage(width, height);\n setImage(\"Player.png\");\n }", "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}", "String getImage();", "Imagem getImagem();", "public void createImage() {\n\t\tBufferedImage crab1ststep = null;\n\t\tBufferedImage crab2ndstep = null;\n\t\tBufferedImage crabhalf = null;\n\t\tBufferedImage crabfull = null;\n\t\tBufferedImage eye6 = null;\n\t\tBufferedImage eye5 = null;\n\t\tBufferedImage eye4 = null;\n\t\tBufferedImage eye3 = null;\n\t\tBufferedImage eye2 = null;\n\t\tBufferedImage eye1 = null;\n\t\tBufferedImage eyeClosed = null;\n\t\ttry {\n\t\t crabImage = ImageIO.read(new File(\"src/images/crab.png\"));\n\t\t crab1ststep = ImageIO.read(new File(\"src/images/crab1ststep.png\"));\n\t\t crab2ndstep = ImageIO.read(new File(\"src/images/crab2ndstep.png\"));\n\t\t crabhalf = ImageIO.read(new File(\"src/images/crabhalf.png\"));\n\t\t crabfull = ImageIO.read(new File(\"src/images/crabfull.png\"));\n\t\t crabWin = ImageIO.read(new File(\"src/images/crabwin.png\"));\n\t\t crabLose = ImageIO.read(new File(\"src/images/crablose.png\"));\n\t\t eye6 = ImageIO.read(new File(\"src/images/crab_eye6.png\"));\n\t\t eye5 = ImageIO.read(new File(\"src/images/crab_eye5.png\"));\n\t\t eye4 = ImageIO.read(new File(\"src/images/crab_eye4.png\"));\n\t\t eye3 = ImageIO.read(new File(\"src/images/crab_eye3.png\"));\n\t\t eye2 = ImageIO.read(new File(\"src/images/crab_eye2.png\"));\n\t\t eye1 = ImageIO.read(new File(\"src/images/crab_eye1.png\"));\n\t\t eyeClosed = ImageIO.read(new File(\"src/images/eyes_closed.png\"));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"bad\");\n\t\t}\n//\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n//\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n//\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n//\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\t\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\t\n\t\tblink.add(eye6);\n\t\tblink.add(eye6);\n//\t\tblink.add(eye5);\n//\t\tblink.add(eye5);\n\t\tblink.add(eye4);\n\t\tblink.add(eye4);\n//\t\tblink.add(eye3);\n//\t\tblink.add(eye3);\n\t\tblink.add(eye2);\n\t\tblink.add(eye2);\n//\t\tblink.add(eye1);\n//\t\tblink.add(eye1);\n\t\tblink.add(eyeClosed);\n\t\tblink.add(eyeClosed);\n\t\tblink.add(eyeClosed);\n\t\tblink.add(eyeClosed);\n//\t\tblink.add(eye1);\n//\t\tblink.add(eye1);\n\t\tblink.add(eye2);\n\t\tblink.add(eye2);\n//\t\tblink.add(eye3);\n//\t\tblink.add(eye3);\n\t\tblink.add(eye4);\n\t\tblink.add(eye4);\n//\t\tblink.add(eye5);\n//\t\tblink.add(eye5);\n\t\tblink.add(eye6);\n\t\tblink.add(eye6);\n\t}", "WorldImage getImage();", "java.lang.String getImage();", "public Image creerImage() {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n\t\ttry {\r\n\t\t\t// Transfert de l image dans le buffer de bytes\r\n\t\t\tImageIO.write(monImage.getImage(), \"png\", baos);\r\n\t\t\t\r\n\t\t\t// Creation d une instance d Image iText\r\n\t\t\tImage image = Image.getInstance(baos.toByteArray());\r\n\t\t\treturn image;\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (BadElementException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Imagen(){\n \n }", "Image createImage(List<List<Pixel>> pixelArray);", "public Image getImagen() {\n\t\tRectangle rootFigureBounds = this.getBounds();\n\t\tGC figureCanvasGC = new GC(this.canvas);\n\n\t\tImage image = new Image(this.canvas.getDisplay(), rootFigureBounds.width,\n\t\t\t\trootFigureBounds.height);\n\t\tGC imageGC = new GC(image);\n\n\t\timageGC.setBackground(figureCanvasGC.getBackground());\n\t\timageGC.setForeground(figureCanvasGC.getForeground());\n\t\timageGC.setFont(figureCanvasGC.getFont());\n\t\timageGC.setLineStyle(figureCanvasGC.getLineStyle());\n\t\timageGC.setLineWidth(figureCanvasGC.getLineWidth());\n\t\t// imageGC.setXORMode(figureCanvasGC.getXORMode());\n\n\t\tGraphics imgGraphics = new SWTGraphics(imageGC);\n\t\tthis.paint(imgGraphics);\n\n\t\treturn image;\n\t}", "public void prepareObjetivos(){\n\t\tfor( int x= 0 ; x < game.getAmountObjetivos();x++){\n\t\t\tObjetivo o = game.getObjetivo(x);\n\t\t\timage = o.getImage();\n\t\t\ttemporal = image.getImage().getScaledInstance(o.getAncho(), o.getAlto(), Image.SCALE_SMOOTH);\n\t\t\to.setImage(new ImageIcon(temporal));\n\t\t}\n\t\t\n\t}", "public Image meurt() {\n\t\t\tString str;//va contenir le nom de l'image\n\t\t\tImageIcon ico;//nom de la nouvelle instance de la methode ImageIcon\n\t\t\tImage img;//va etre egale a ico, et va retourner l'image voulu\n\t\t\t\n\t\t\tstr = \"/images/bouleDeFeu.png\";\n\t\t\tthis.compteurMort++;//on incremente un compteur\n\t\t\tif(this.compteurMort > 100) {//si le compteur arrive jusqu'a 100, mario meurt, \n\t\t\t\tstr = \"/images/mortDEMario.png\";//donc on change d'image\n\t\t\t\tthis.setY(this.getY() - 1);//fait monter l'image de la mort de mario vers le ciel\n\t\t\t}\n\t\t\tico = new ImageIcon(getClass().getResource(str));\n\t\t\timg = ico.getImage();\n\t\t\treturn img;\n\t\t}", "public void cambiarEstadoImagen(){\n ImageIcon respuesta=new ImageIcon();\n if(oportunidades==0){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado7.jpg\"));\n }\n if(oportunidades==1){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado6.jpg\"));\n }\n if(oportunidades==2){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado5.jpg\"));\n }\n if(oportunidades==3){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado4.jpg\"));\n }\n if(oportunidades==4){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado3.jpg\"));\n }\n if(oportunidades==5){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado2.jpg\"));\n }\n if(oportunidades==6){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado1.jpg\"));\n }\n if(oportunidades==7){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado0.jpg\"));\n }\n this.imgAhorcado=respuesta; \n }", "public abstract BufferedImage transform();", "public Mesita()\r\n {\r\n super(\"mesa.png\"); \r\n }", "public static void createImages()\n {\n //Do if not done before\n if(!createdImages)\n {\n createdImages = true;\n for(int i=0; i<rightMvt.length; i++)\n {\n rightMvt[i] = new GreenfootImage(\"sniperEnemyRight\"+i+\".png\");\n leftMvt[i] = new GreenfootImage(\"sniperEnemyRight\"+i+\".png\");\n rightMvt[i].scale(rightMvt[i].getWidth()*170/100, rightMvt[i].getHeight()*170/100);\n leftMvt[i].scale(leftMvt[i].getWidth()*170/100, leftMvt[i].getHeight()*170/100);\n }\n for(int i=0; i<leftMvt.length; i++)\n {\n leftMvt[i].mirrorHorizontally();\n }\n for(int i=0; i<upMvt.length; i++)\n {\n upMvt[i] = new GreenfootImage(\"sniperEnemyUp\"+i+\".png\");\n downMvt[i] = new GreenfootImage(\"sniperEnemyDown\"+i+\".png\");\n upMvt[i].scale(upMvt[i].getWidth()*170/100, upMvt[i].getHeight()*170/100);\n downMvt[i].scale(downMvt[i].getWidth()*170/100, downMvt[i].getHeight()*170/100);\n }\n }\n }", "private Images() {}", "public boolean generateImageFromText();", "private void generate() {\n preGenerate();\n\n SpriteGrid grid = new SpriteGrid(specState);\n IOHelper.pixelsToBitmap(grid.draw(), sprite);\n\n }", "public PixImage toPixImage() {\n // Replace the following line with your solution.\n\t PixImage image=new PixImage(getWidth(),getHeight());\n\t \n\t DList<int[]> runs_new=new DList<int[]>();\n\t\t\t for(RunIterator i=this.iterator();i.hasNext();) {\n\t\t\t int[] run = i.next();\n\t\t\t for (int t= 0; t < run[0]; t++) {\n\t\t\t \t runs_new.addLast(run);\n\t\t\t System.out.print(\"(\" + run[1]+\" \"+ run[2]+\" \"+run[3]+\")\");\n\t\t } \n\t }\t\n int position=1;\n for(int j=0;j<height;j++) {\n\t for(int i=0;i<width;i++) {\n\t\t\n\t\t DListNode<int[]> run_new=runs_new.nth(position);\n\t\t position++;\n\t\t \n\t\t image.setPixel(i, j, (short) run_new.item[1], (short) run_new.item[2], (short) run_new.item[3]);\n\t }\n }\n\t\t \n\t\t \n\t return image;\n }", "@Nonnull\n private BufferedImage createImage() {\n return new BufferedImage(getWidth(), getHeight(), getImageType().getType());\n }", "public BufferedImage toImage(){\n // turn it into a png\n int scale = 8;\n int w = 16;\n int h = 16;\n BufferedImage image = new BufferedImage(w * scale, h * scale, BufferedImage.TYPE_INT_ARGB);\n Color background = new Color(240, 240, 240);\n java.awt.Graphics gr = image.getGraphics();\n gr.setColor(background);\n gr.fillRect(0, 0, w * scale, h * scale);\n\n // so each 3 bytes describes 1 color?\n for(int i = 0; i < 256; ++i){\n\n // int r = palette.get(i * 3);\n // int g = palette.get(i * 3 + 1);\n // int b = palette.get(i * 3 + 2);\n\n // the Color() constructor that takes ints does values 0..255\n // but it has a float constructor, so why not divide\n //Color awtColor = new Color(r/64.0f, g/64.0f, b/64.0f);\n Color awtColor = getAwtColor(i);\n\n int row = i / 16;\n int col = i % 16;\n int y = row * scale;\n int x = col * scale;\n gr.setColor(awtColor);\n gr.fillRect(x, y, x + scale, y + scale);\n }\n\n return image;\n }", "public int getImage();", "public PgmImage() {\r\n int[][] defaultPixels = {{0, 1, 2, 3}, {4, 5, 6, 7}, {8, 9, 10, 11}};\r\n pixels = new int[defaultPixels.length][defaultPixels[0].length];\r\n for (int row = 0; row < pixels.length; ++row) {\r\n for (int col = 0; col < pixels[0].length; ++col) {\r\n pixels[row][col] = (int) (defaultPixels[row][col] * 255.0 / 12);\r\n }\r\n }\r\n pix2img();\r\n }", "BufferedImage outputImage();", "public void openImage() {\n InputStream f = Controller.class.getResourceAsStream(\"route.png\");\n img = new Image(f, mapImage.getFitWidth(), mapImage.getFitHeight(), false, true);\n h = (int) img.getHeight();\n w = (int) img.getWidth();\n pathNodes = new GraphNodeAL[h * w];\n mapImage.setImage(img);\n //makeGrayscale();\n }", "public Bitmap getFinalShapesImage();", "public interface Graphics {\n public static enum ImageFormat {\n ARGB8888, ARGB4444, RGB565\n }\n\n public Bitmap newImage(String fileName, ImageFormat format);\n\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 }", "private void generarPNG(String nombre, String entrada) {\n try {\n String ruta = this.pathGuardado + \"/\" + nombre + \".dot\";\n File file = new File(ruta);\n // Si el archivo no existe es creado\n if (!file.exists()) {\n file.createNewFile();\n }\n FileWriter fw = new FileWriter(file);\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(entrada);\n bw.close();\n// //Generar Imagen creada por .dot\n ControlTerminal controlTer = new ControlTerminal(ruta, this.pathGuardado + \"/\" + nombre + \".png\");\n controlTer.generarImagen();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public ArrayList setImageTemplate() {\n imageTemplate = new ArrayList();\n imageTemplate.add(0,\"template\");//Integer : จำนวนเทมเพลต\n imageTemplate.add(1,\"marge_one_stroke\");//Float : marge one stroke in purcent\n imageTemplate.add(2,\"marge_one_color\");//String : color in hex\n imageTemplate.add(3,\"marge_two_stroke\");//Float : marge two stroke in purcent\n imageTemplate.add(4,\"marge_two_color\");//String : color in hex\n imageTemplate.add(5,\"top_value\");//Float : position of value top for the line\n imageTemplate.add(6,\"bottom_value\");//Float : position of value bottom for the line\n imageTemplate.add(7,\"right_value\");//Float : position of value right for the line\n imageTemplate.add(8,\"left_value\");//Float : position of value left for the line\n imageTemplate.add(9,\"center_x\");//Float : position of value x for the line\n imageTemplate.add(10,\"center_y\");//Float : position of value y for the line\n return (imageTemplate);\n }", "private void drawImages() {\n\t\t\r\n\t}", "public String getStaticPicture();", "public void genPNGSoloUsuarios() {\n String entrada = genStrSoloUsuarios();\n generarPNG(\"usuarios\", entrada);\n }", "public Image generate() {\n generateStripes(rainbow, 7, vertical);\n return new ImageRGB(data);\n }", "private BufferedImage createPlotImage() {\r\n final BufferedImage img = new BufferedImage(getWidth(), getHeight(), \r\n Transparency.BITMASK);\r\n final Graphics g = img.getGraphics();\r\n ((Graphics2D) g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, \r\n RenderingHints.VALUE_ANTIALIAS_ON);\r\n \r\n g.setColor(GUIConstants.color6);\r\n for(int i = 0; i < scatterData.size; i++) {\r\n drawItem(g, scatterData.xAxis.co[i], \r\n scatterData.yAxis.co[i], false, false);\r\n }\r\n return img;\r\n }", "public void cambiarImagenGrande(ImagenTemp it) {\n\t\t\n\t\t//TODO automatizar haciendo que el método directamente coloque la imagen escalada en el panel?\n\t\tImage imgtemp = VistaPrincipal.ponerImagenEscalada(it.getbImagen(), panelImagenGrande);\n\t\tlabelImagenGrande.setIcon(new ImageIcon(imgtemp));\n\t\tlabelImagenGrande.setBounds((int)(((float)panelImagenGrande.getWidth()/2) - ((float)imgtemp.getWidth(null))/((float)2)), (int)(((float)panelImagenGrande.getHeight()/2) - ((float)imgtemp.getHeight(null))/((float)2)),imgtemp.getWidth(null), imgtemp.getHeight(null));\n\t\t\n\t\t\n\t\t//Se rellenan los datos de la imagen seleccionada\n\t\tlabelNombre.setText(it.getNombre()+it.getExtension());\n\t\t\n\t\tLocalDate localDate = LocalDate.ofEpochDay(it.getFecha()/(1000*60*60*24));//TODO llevar esto a un método estático de VistaPrincipal si se repite\n\t\tlabelFecha.setText(localDate.getDayOfMonth() + \"/\" + localDate.getMonthValue() + \"/\" + localDate.getYear());\n\t\t\n\t\tlabelResolucion.setText(it.getbImagen().getWidth() + \" x \" + it.getbImagen().getHeight());\n\t\t\n\t\tString peso = it.getImagen().length()/1024 < 1000 ? (float)(it.getImagen().length()/1024) + \" kB\" : (int)(it.getImagen().length()/(1024*1024)) + \" MB\";\n\t\tlabelPeso.setText(peso);\n\t\t\n\t\t\n\t\t//Se rellenan las etiquetas\n\t\tpanelImagenEtiquetas.removeAll();\n\t\tfor(Etiquetas e : it.getArrayEtiquetas()) panelImagenEtiquetas.add(e);\n\t\tresultadosEste.revalidate();\n\t\tresultadosEste.repaint();\n\t\t\n\t}", "public Image getFlat();", "public void createImageSet() {\n\t\t\n\t\t\n\t\tString image_folder = getLevelImagePatternFolder();\n \n String resource = \"0.png\";\n ImageIcon ii = new ImageIcon(this.getClass().getResource(image_folder + resource));\n images.put(\"navigable\", ii.getImage());\n\n\t}", "public void getPictures(){\n\t\t\ttry{\n\t\t\t\timg = ImageIO.read(new File(\"background.jpg\"));\n\t\t\t\ttank = ImageIO.read(new File(\"Tank.png\"));\n\t\t\t\tbackground2 = ImageIO.read(new File(\"background2.png\"));\n\t\t\t\t\n\t\t\t\trtank = ImageIO.read(new File(\"RTank.png\"));\n\t\t\t\tboom = ImageIO.read(new File(\"Boom.png\"));\n\t\t\t\tboom2 = ImageIO.read(new File(\"Boom2.png\"));\n\t\t\t\tinstructions = ImageIO.read(new File(\"Instructions.png\"));\n\t\t\t\tshotman = ImageIO.read(new File(\"ShotMan.png\"));\n\t\t\t\tlshotman = ImageIO.read(newFile(\"LShotMan.png\"));\n\t\t\t\tboomshotman = ImageIO.read(new File(\"AfterShotMan\"));\n\t\t\t\tlboomshotman = ImageIO.read(new File(\"LAfterShotMan\"));\n\t\t\t\t\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.err.println(\"d\");\n\t\t\t}\n\t\t}", "private static ArrayImg< UnsignedByteType, ByteArray > createLargeRectangularImage() {\n\t\tArrayImg< UnsignedByteType, ByteArray > img = ArrayImgs.unsignedBytes( 1024, 512 );\n\t\tfor ( int i = 0; i < 3; i++ ) {\n\t\t\tlong[] xmin = new long[] { 199 + i * 200, 0 };\n\t\t\tlong[] xmax = new long[] { 299 + i * 200, 511 };\n\t\t\tIntervalView< UnsignedByteType > iview = Views.interval( img, xmin, xmax );\n\t\t\tiview.forEach( pixel -> pixel.set( ( byte ) 255 ) );\n\t\t}\n\t\treturn img;\n\t}", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();", "public ImagePanel() {\n\t\ttry {\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigorest.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigono.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigolow.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigohigh.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigocondensation.png\").getPath())));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void createImages(){\r\n\t\ttry {\r\n\t\t\timg_bg = Image.createImage(GAME_BG);\r\n\t\t\timg_backBtn = Image.createImage(BACK_BTN);\r\n\t\t\timg_muteBtn = Image.createImage(MUTE_BTN);\r\n\t\t\timg_resetBtn = Image.createImage(RESET_BTN);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void enhanceImage(){\n }", "public interface Image {\n public String getPath();\n\n public String getFormat();\n\n public String getWidth();\n\n public String getHeight();\n\n}", "public void InitParam(Bitmap[] bm, int vitesse, int intru, int laserColor) {\n screenSizeX = getResources().getDisplayMetrics().widthPixels;\n screenSizeY = getResources().getDisplayMetrics().heightPixels;\n\n //On recupere toutes nos images\n this.bm = bm;\n\n //On recupere la couleur du laser\n this.laserColor = laserColor;\n\n //Et celui qui est l'intru\n this.intru = intru;\n\n //On creer nos tableau avec comme longueur notre nombre d'images\n pathMeasure = new PathMeasure[this.bm.length];\n pathLength = new float[this.bm.length];\n pos = new float[this.bm.length][2]; // ici 2 positions, x et y\n animPath = new Path[this.bm.length];\n distance = new float[this.bm.length];\n resultBitmap = new Bitmap[this.bm.length];\n\n //On boucle pour instancier chaque objets de nos tableaux\n for(int j=0;j<this.bm.length;j++){\n\n animPath[j]= getRandomPath();\n pathMeasure[j] = new PathMeasure(animPath[j],false);\n pathLength[j] = pathMeasure[j].getLength();\n\n resultBitmap[j] = Bitmap.createBitmap(bm[j], 0, 0,\n bm[j].getWidth() - 1, bm[j].getHeight() - 1);\n }\n\n //On definit le pas\n step = vitesse;\n\n // On creer la matrice\n matrix = new Matrix();\n\n //Parametre dans le cas ou l'ecran est touché / pour les laser\n fired=false;\n touchedPosition = new float[2];\n distGaucheRest = new float[2];\n distGaucheRest[0]=0;\n distGaucheRest[1]=screenSizeY;\n fireGauchePas = new float[2];\n fireGauchePas[0]=0;\n fireGauchePas[1]=0;\n\n distDroitRest = new float[2];\n distDroitRest[0]=screenSizeX;\n distDroitRest[1]=screenSizeY;\n fireDroitPas = new float[2];\n fireDroitPas[0]=0;\n fireDroitPas[1]=0;\n\n //Au cas ou le vaiseau explose\n xplosed=false;\n countBeforeXplose=0;\n\n }", "Picture binaryComponentImage() throws Exception;", "public void crearRutaImgPublicacion(){\n \n servletContext=(ServletContext) contexto.getExternalContext().getContext();\n String ruta=\"\";\n //Ruta real hasta la carpeta uploads\n ruta=servletContext.getRealPath(\"/upload/\");\n //Obtener el codigo del usuario de la sesion actual\n //este es utilizado para ubicar la carpeta que le eprtenece\n String codUsuario=String.valueOf(new SessionLogica().obtenerUsuarioSession().getCodUsuario());\n //Concatenamiento de directorios internos\n ruta+=File.separatorChar+\"img\"+File.separatorChar+\"post\"+File.separatorChar+codUsuario+File.separatorChar+\"all\"+File.separatorChar;\n //Asignacion de la ruta creada\n this.rutaImgPublicacion=ruta;\n }", "public static BufferedImage[] cutMapaImage(String name, int X, int Y) {\n BufferedImage[] sprites = null;\n try {\n BufferedImage imagen = ImageIO.read(new File(CanvasMap.class.getClassLoader().getResource(name).getFile()));\n final int filas = imagen.getHeight() / X;\n final int columnas = imagen.getWidth() / Y;\n sprites = new BufferedImage[filas * columnas];\n\n for (int i = 0; i < filas; i++) {\n for (int j = 0; j < columnas; j++) {\n sprites[(i * columnas) + j] = imagen.getSubimage(j * X, i * Y, X, Y);\n Image img = sprites[(i * columnas) + j].getScaledInstance(tamX, tamY, BufferedImage.SCALE_DEFAULT);\n sprites[(i * columnas) + j] = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_ARGB);\n Graphics2D g = (Graphics2D) sprites[(i * columnas) + j].getGraphics();\n g.drawImage(img, 0, 0, null);\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(CanvasMap.class.getName()).log(Level.SEVERE, null, ex);\n }\n return sprites;\n }", "BufferedImage getImage();", "BufferedImage getImage();", "BufferedImage getImage();", "private void cargarBitmaps(TipoMunicion tipo) {\n switch (tipo){\n case RIFLE:\n bala = utils.getBitmapFromAssets(\"balas/bullet1.png\");\n break;\n case PISTOLA:\n bala = utils.getBitmapFromAssets(\"balas/bullet3.png\");\n break;\n case BIGPISTOLA:\n bala = utils.getBitmapFromAssets(\"balas/bullet2.png\");\n break;\n }\n\n Matrix matrix = new Matrix();\n switch (direccion) {\n case NORTE:\n matrix.postRotate(-90);\n break;\n case SUR:\n matrix.postRotate(90);\n break;\n case ESTE:\n matrix.postRotate(0);\n break;\n case OESTE:\n matrix.postRotate(180);\n break;\n }\n bala = Bitmap.createBitmap(bala, 0, 0, bala.getWidth(), bala.getHeight(), matrix, true);\n bala = Bitmap.createScaledBitmap(bala, altoPantalla * 1/80, altoPantalla * 1/80, false);\n }", "ElementImage createElementImage();", "private void pruebaGuardado() {\n try {\n BufferedImage img = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g2d = img.createGraphics();\n g2d.setColor(Color.RED);\n g2d.fillRect(25, 25, 50, 50);\n g2d.dispose();\n ImageIO.write(img, \"JPEG\", new File(\"D:\\\\LeapMotion\\\\foo.jpg\"));\n } catch (IOException ex) {\n Logger.getLogger(Nodo.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private Bitmap setPic() {\n int targetH = 0; //mImageView.getHeight();\n int targetW = 0; //mImageView.getWidth();\n\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n if( photoH > photoW ){\n /*Se definen las dimensiones de la imagen que se desea generar*/\n targetH = Const.MedidasReduccionImagen.PEQUENA_PORTRAIT.heigh; // 640;\n targetW = Const.MedidasReduccionImagen.PEQUENA_PORTRAIT.width; //480;\n }else{\n targetH = Const.MedidasReduccionImagen.PEQUENA_LANDSCAPE.heigh; //480;\n targetW = Const.MedidasReduccionImagen.PEQUENA_LANDSCAPE.width; //640;\n }\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 0;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n return bitmap;\n }", "public HSIImage()\r\n {\r\n }", "public String getImagen() {\n return imagen;\n }", "@Override\n\tpublic boolean baseToImg() {\n\t\tList<Image> imgList = imageRepository.findAll();\n\t\tfor (Image img : imgList) {\n\t\t\tString base = img.getSource();\n\t\t\tFiles file = new Files(img.getSaegimId(), \"jpg\");\n\t\t\tfile = fileRepository.save(file);\n\t\t\tLong fileId = file.getId();\n\t\t\t\n\t\t\tBase64ToImgDecoder.decoder(base, dir + fileId + '.' + \"jpg\");\n\t\t}\n\t\treturn true;\n\t}", "protected void setPic() {\n }", "public Bitmap getShapesImage();", "private void galleryAddPic() {\n\t}", "public Image frogImg(int num){\n\t\tfrog = new Image[8];\n\t\tfrog[0] = new Image(\"file:src/main/resources/Img/froggerUp.png\", FrogImgSize, FrogImgSize, true, true);\n\t\tfrog[1] = new Image(\"file:src/main/resources/Img/froggerLeft.png\", FrogImgSize, FrogImgSize, true, true);\n\t\tfrog[2] = new Image(\"file:src/main/resources/Img/froggerDown.png\", FrogImgSize, FrogImgSize, true, true);\n\t\tfrog[3] = new Image(\"file:src/main/resources/Img/froggerRight.png\", FrogImgSize, FrogImgSize, true, true);\n\t\tfrog[4] = new Image(\"file:src/main/resources/Img/froggerUpJump.png\", FrogImgSize, FrogImgSize, true, true);\n\t\tfrog[5] = new Image(\"file:src/main/resources/Img/froggerLeftJump.png\", FrogImgSize, FrogImgSize, true, true);\n\t\tfrog[6] = new Image(\"file:src/main/resources/Img/froggerDownJump.png\", FrogImgSize, FrogImgSize, true, true);\n\t\tfrog[7] = new Image(\"file:src/main/resources/Img/froggerRightJump.png\", FrogImgSize, FrogImgSize, true, true);\n\t\treturn frog[num];\n\t}", "public imageAlphaClass()\n {\n array_lineas = new ArrayList<>();\n array_modelos = new ArrayList<>();\n array_productos = new ArrayList<>();\n }", "public int[] genImage(File f, String ext, int width, int height) {\n RenderedImage rendImage = createChartImage(width, height);\r\n // Write generated image to a file\r\n try {\r\n OutputStream os = new FileOutputStream(f);\r\n ImageIO.write(rendImage, ext, os);\r\n os.flush();\r\n os.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n// return new int[] { this.getWidth(), this.getHeight() };\r\n// return new int[] { w, h };\r\n return new int[]{width, height};\r\n }", "private static RenderedImage createImage(RegionReport rr) {\n BufferedImage bufferedImage = new BufferedImage(MAP_SIZE, MAP_SIZE,\n BufferedImage.TYPE_INT_RGB) ;\n // Create a graphics contents on the buffered image\n Graphics2D g2d = bufferedImage.createGraphics() ;\n g2d.setColor(Color.black);\n //TODO need to set default overflow to something other than black,\n // or set this default background to something else. colors colors colors.\n g2d.fillRect(0, 0, MAP_SIZE, MAP_SIZE);\n\n // SL coordinates work like math x/y graph\n // Java coordinates start at top left. Rotate 90 degrees\n // counterclockwise to compensate.\n AffineTransform at = new AffineTransform();\n at.concatenate(AffineTransform.getRotateInstance(CCW_90, MAP_SIZE/2.0, MAP_SIZE/2.0));\n at.scale(SCALE, SCALE);\n g2d.transform(at) ;\n \n String s = rr.getSubParcels() ;\n\n// \tGerstle\n// s = \"192,1,16,2,16,3,16,4,14,5,2,1,16,2,16,3,16,4,14,5,2,1,16,2,16,3,16,4,14,5,2,1,16,2,16,3,16,4,14,5,2,1,16,2,16,3,16,4,14,5,2,1,16,2,16,3,16,4,14,5,2,1,16,2,16,3,16,4,14,5,2,1,16,2,16,3,16,4,14,5,2,1,16,2,16,3,16,4,14,5,2,1,16,2,16,3,16,4,14,5,2,1,16,2,16,3,16,4,14,5,2,1,16,2,16,3,16,4,14,5,2,1,16,2,16,3,16,4,14,5,2,1,16,2,16,3,16,1,14,5,2,1,16,2,16,3,16,1,14,5,2,1,16,2,16,3,4,6,4,7,4,8,4,9,14,5,2,1,16,2,16,10,4,6,4,7,4,8,4,9,14,5,2,1,16,2,16,10,4,6,4,7,4,8,4,9,14,5,2,1,16,2,16,10,4,6,4,7,4,8,4,9,14,5,2,1,16,2,16,10,4,6,4,7,4,8,4,9,14,5,2,1,16,2,16,10,4,6,4,7,4,8,4,9,14,5,2,1,16,2,16,10,4,6,4,7,4,8,4,9,14,5,2,1,16,2,16,10,4,6,4,7,4,8,4,9,14,7,2,1,16,2,16,10,16,1,14,7,2,1,16,2,16,10,16,1,14,7,2,1,16,2,16,10,16,1,14,7,2,1,16,2,16,10,8,7,4,11,4,12,14,7,2,1,16,2,16,10,8,7,4,11,4,12,14,7,2,1,16,2,16,10,8,7,4,11,4,12,14,7,2,1,16,13,16,10,8,7,4,11,4,12,14,7,2,1,16,13,16,10,8,7,4,11,4,12,14,7,2,1,16,13,24,7,4,11,4,12,14,7,2,1,16,13,24,7,4,11,4,12,14,7,2,1,16,13,24,7,4,11,4,12,14,7,2,1,16,13,16,7,16,1,14,7,2,1,16,13,16,7,16,1,14,7,2,1,16,13,16,7,16,1,14,7,2,1,23,13,1,14,38,7,2,1,24,13,38,7,2,1,24,13,38,7,2,1,24,13,38,7,2,1,24,13,38,7,2,1,24,13,38,7,2,1,24,13,38,7,2,1,21,15,3,13,38,7,2,1,21,15,6,13,5,7,16,1,14,7,2,1,21,15,6,13,5,7,16,1,14,7,2,1,21,15,6,13,5,7,16,1,14,7,2,1,21,15,6,13,35,7,2,1,21,15,7,13,34,7,2,1,21,15,7,13,34,7,2,1,21,15,9,13,32,7,2,1,21,15,9,13,32,7,2,1,21,15,11,13,30,7,2,1,21,15,11,13,30,7,2,1,21,15,11,13,30,7,2,1,21,15,11,13,16,1,14,7,2,1,21,15,11,13,16,1,14,7,2,1,21,15,11,13,16,1,14,7,2,1,21,15,11,13,16,1,14,7,2,1,21,15,11,13,16,1,14,7,2,1,\" ;\n// // Palomarian\n// String s = \"8,1,4,2,4,3,11,4,20,5,17,4,8,1,4,2,4,3,12,4,19,5,17,4,8,1,4,2,4,3,13,4,18,5,17,4,8,1,4,2,4,3,14,4,17,5,17,4,8,1,4,2,4,3,14,4,17,5,17,4,8,1,4,2,4,3,15,4,16,5,17,4,8,1,4,2,4,3,16,4,15,5,11,4,2,6,4,4,8,1,4,2,4,3,16,4,15,5,11,4,2,6,4,4,4,5,4,7,8,8,17,4,16,5,9,4,2,6,4,4,4,5,4,7,8,8,18,4,16,5,8,4,2,6,4,4,4,5,4,7,8,8,22,4,14,5,6,4,2,6,4,4,4,5,4,7,8,8,25,4,12,5,5,4,2,6,4,4,4,5,4,7,8,8,30,4,9,5,3,9,2,6,4,4,4,5,4,7,8,8,31,4,9,5,2,9,2,6,8,5,4,7,8,8,32,4,9,5,1,9,2,6,8,5,4,7,8,8,34,4,8,5,2,6,4,5,17,8,35,4,12,5,17,8,35,4,12,5,17,8,37,4,10,5,17,8,37,4,10,5,17,8,37,4,10,5,17,8,38,4,9,5,17,8,38,4,9,5,18,8,36,4,10,5,18,8,35,4,11,5,18,8,34,4,12,5,18,8,33,4,13,5,18,8,32,4,14,5,18,8,32,4,8,5,6,4,18,8,30,4,9,5,7,4,18,8,30,4,8,5,8,4,18,8,30,4,7,5,9,4,12,5,36,4,7,5,9,4,12,5,36,4,6,5,10,4,12,5,35,4,6,5,11,4,12,5,35,4,5,5,12,4,12,5,34,4,5,5,13,4,14,5,31,4,6,5,13,4,6,10,9,5,30,4,5,5,14,4,6,10,11,5,27,4,5,5,15,4,6,10,4,4,8,5,25,4,5,5,16,4,6,10,6,4,8,5,2,4,1,5,20,4,5,5,16,4,6,10,8,4,12,5,16,4,6,5,16,4,6,10,8,4,12,5,15,4,7,5,16,4,6,10,8,4,15,5,12,4,7,5,16,4,6,10,10,4,16,5,8,4,8,5,16,11,6,10,10,4,18,5,5,4,9,5,16,11,6,10,10,4,32,5,16,11,8,12,8,4,32,5,16,11,8,12,8,4,32,5,16,11,8,12,8,4,32,5,16,11,8,12,8,4,32,5,16,11,8,12,8,4,16,5,1,11,15,5,16,11,8,12,8,4,16,5,3,11,13,5,16,11,8,12,8,4,16,5,6,11,10,5,16,11,8,12,8,4,16,5,7,11,9,5,16,11,8,12,8,13,4,14,4,15,8,4,9,11,7,5,16,11,8,12,8,13,4,14,4,15,8,4,10,11,6,5,16,11,8,12,8,13,4,14,4,15,8,4,11,11,6,5,15,11,8,12,8,13,4,14,4,15,8,4,12,11,5,5,15,11,8,12,8,4,4,14,4,15,8,4,13,11,5,5,14,11,8,12,8,4,4,14,4,15,8,4,14,11,5,5,13,11,8,12,8,4,4,14,4,15,8,4,14,11,6,5,12,11,8,12,8,4,4,14,4,15,8,4,15,11,6,5,11,11,\" ;\n// Clementina\n// String s = \"23,1,41,2,23,1,41,2,23,1,41,2,23,1,20,2,16,1,5,2,25,1,14,2,9,1,4,3,7,1,5,2,48,1,4,3,7,1,5,2,48,1,4,3,7,1,5,2,7,1,8,4,33,1,4,3,7,1,5,2,3,5,4,1,7,5,1,4,33,1,4,3,7,1,5,2,3,5,4,1,8,5,33,1,4,3,7,1,5,2,15,5,15,1,5,2,24,1,5,2,15,5,15,1,5,2,24,1,5,2,15,5,15,1,5,2,24,1,5,2,15,5,15,1,12,6,1,7,16,1,2,7,3,2,15,5,14,1,13,6,13,7,4,1,2,7,3,2,15,5,3,1,24,6,19,7,3,2,15,5,3,1,24,6,19,7,3,2,15,5,3,1,24,6,19,7,3,2,15,5,3,1,10,6,3,4,10,6,20,7,3,2,7,5,8,8,7,9,6,6,4,4,9,6,20,7,3,2,7,5,8,8,7,9,6,6,4,4,9,6,20,7,3,2,7,5,8,8,7,9,6,6,3,4,1,10,9,6,20,7,3,2,1,11,6,5,8,8,7,9,6,6,4,4,9,6,20,7,3,2,7,11,8,8,7,9,6,6,9,4,24,7,3,2,7,11,8,8,7,1,6,6,10,4,23,7,3,2,7,11,12,8,3,1,6,6,5,12,5,4,22,7,3,2,1,1,7,11,16,8,5,6,5,12,4,4,7,13,15,7,4,2,1,1,7,11,8,8,6,5,1,14,6,6,3,12,6,4,7,13,14,7,5,2,1,1,1,11,5,9,1,11,8,8,2,5,5,14,6,6,3,12,6,4,7,13,14,7,5,2,1,1,1,11,6,9,8,8,2,5,5,14,6,6,3,12,6,4,7,13,13,7,1,1,5,2,1,1,1,11,7,9,7,8,7,5,6,6,4,1,5,4,18,15,3,7,5,2,1,1,1,11,7,9,7,8,7,5,6,6,27,15,3,7,5,2,1,1,8,9,7,8,7,5,6,6,27,15,3,7,3,2,3,1,9,9,6,8,7,5,6,6,27,15,3,7,3,2,3,1,9,9,6,8,7,5,6,6,27,15,3,7,2,2,1,16,2,17,1,1,9,9,5,8,8,5,4,6,2,4,13,15,7,7,7,15,3,7,2,2,3,17,1,1,9,9,5,8,8,5,4,6,2,4,13,15,17,7,2,2,4,1,11,9,3,8,8,5,6,2,13,15,17,7,2,2,3,15,1,1,11,9,3,8,1,5,22,8,2,15,2,2,17,7,2,2,3,15,1,1,11,9,3,8,1,5,22,8,2,15,2,2,17,7,2,2,3,15,1,1,11,9,26,8,2,15,2,2,17,7,2,2,3,15,1,1,11,9,26,8,2,2,16,18,3,7,2,2,4,1,11,9,26,8,2,2,16,18,3,7,3,2,3,1,11,9,26,8,2,2,16,18,3,7,3,2,3,1,11,9,26,8,2,2,16,18,3,7,3,2,3,1,15,9,22,8,2,2,16,18,3,7,3,2,3,1,15,9,22,8,5,2,13,18,3,7,3,2,3,1,15,9,22,8,9,2,12,18,3,2,3,1,15,9,22,8,9,2,12,18,3,2,16,1,2,9,22,8,9,2,12,18,3,2,16,1,2,9,22,8,9,2,12,18,5,2,16,1,22,8,5,2,5,19,11,18,5,2,16,1,22,8,5,2,14,19,1,1,6,2,16,1,22,8,5,2,13,19,2,1,6,2,14,1,8,20,15,8,6,2,12,19,3,1,6,2,12,1,10,20,4,21,5,19,7,22,3,19,8,2,6,19,1,1,8,2,11,1,11,20,4,21,5,19,7,22,3,19,8,2,5,19,2,1,8,2,11,1,11,20,4,21,5,19,7,22,3,19,8,2,5,19,2,1,8,2,11,1,11,20,4,21,15,19,8,2,6,19,9,2,1,23,10,1,11,20,4,21,15,19,8,2,5,19,11,2,10,1,11,20,4,21,4,19,17,2,7,19,11,2,10,1,11,20,2,21,41,2,11,1,11,20,1,21,41,2,11,1,12,21,41,2,\" ;\n// Teal 8/08\n// String s = \"19,1,42,2,3,3,19,1,42,2,3,3,31,1,33,3,31,1,33,3,31,1,33,3,31,1,33,3,31,1,33,3,26,1,5,4,33,3,26,1,5,4,23,3,4,5,6,3,26,1,5,4,19,3,8,5,6,3,26,1,5,4,19,3,8,5,6,3,18,1,4,2,4,1,5,4,21,3,12,5,18,1,4,2,4,1,5,4,22,3,11,5,18,1,4,2,4,1,5,4,22,3,11,5,14,3,7,2,17,3,8,2,7,3,11,5,14,3,7,2,17,3,8,2,7,3,11,5,14,3,7,2,17,3,8,2,7,3,11,5,14,3,7,2,17,3,8,2,7,3,11,5,14,3,4,2,20,3,8,2,7,3,11,5,13,3,1,6,4,2,20,3,8,2,7,3,11,5,12,3,6,2,22,3,12,2,12,5,12,3,6,2,22,3,12,2,12,5,12,3,5,2,23,3,12,2,12,5,12,3,5,2,10,3,3,2,10,3,12,2,12,5,12,3,5,2,10,3,3,2,10,3,12,2,1,3,11,7,12,3,5,2,10,3,3,2,10,3,12,2,1,3,11,7,12,3,5,2,10,3,3,2,10,3,12,2,12,7,9,3,8,2,10,3,3,2,13,3,9,2,12,7,9,3,8,2,10,3,3,2,13,3,9,2,12,7,9,3,3,2,15,3,3,2,13,3,9,2,12,7,9,3,3,2,15,3,3,2,13,3,9,2,12,7,9,3,3,2,15,3,3,2,13,3,9,2,12,7,10,2,13,3,5,2,15,3,9,2,3,7,2,8,7,5,10,2,13,3,5,2,15,3,9,2,3,7,2,8,7,5,10,2,13,3,5,2,14,3,1,6,9,2,12,5,10,2,13,3,5,2,13,3,2,6,9,2,12,5,10,2,13,3,5,2,13,3,2,6,9,2,12,5,10,2,13,3,5,2,13,3,2,6,9,2,12,5,10,2,13,3,5,2,10,3,14,2,12,5,10,2,12,3,5,2,11,3,14,2,12,5,22,3,5,2,11,3,14,2,12,5,22,3,5,2,11,3,14,2,12,5,22,3,5,2,11,3,5,2,7,6,14,5,22,3,5,2,4,3,12,2,7,6,14,5,22,3,5,2,4,3,12,2,7,6,14,5,22,3,21,2,7,6,14,5,22,3,21,2,7,6,14,5,22,3,18,2,11,6,13,5,22,3,18,2,15,6,9,5,22,3,16,2,17,6,9,5,22,3,16,2,17,6,9,5,22,3,16,2,17,6,9,5,22,3,16,2,17,6,9,5,22,3,17,2,16,6,9,5,22,3,17,2,16,6,9,5,22,3,17,2,16,6,9,5,22,3,17,2,16,6,9,5,22,3,17,2,16,6,9,5,22,3,17,2,16,6,9,5,22,3,17,2,6,9,8,3,11,5,22,3,17,2,6,9,8,3,11,5,22,3,17,2,6,9,9,3,10,5,22,3,17,2,7,9,8,3,10,5,22,3,17,2,7,9,8,3,10,5,\" ;\n// Sage\n// String s = \"2,1,19,2,16,3,27,4,2,1,19,2,16,3,27,4,21,2,16,3,27,4,21,2,16,3,27,4,21,2,16,3,27,4,21,2,16,3,27,4,21,2,43,4,1,1,20,2,43,4,21,2,43,4,21,2,43,4,21,2,43,4,21,2,43,4,1,2,11,5,9,2,43,4,1,2,11,5,9,2,43,4,12,5,9,2,40,4,3,6,12,5,9,2,40,4,3,6,12,5,3,2,46,4,3,6,61,4,3,6,61,4,3,6,61,4,3,6,61,4,3,6,61,4,3,6,53,4,11,6,53,4,11,6,6,7,22,4,8,8,17,4,11,6,6,7,22,4,8,8,17,4,11,6,6,7,22,4,8,8,17,4,11,6,6,7,22,4,8,8,17,4,11,6,6,7,47,4,11,6,6,7,47,4,11,6,6,7,47,4,11,6,6,7,47,4,11,6,6,7,47,4,11,6,1,4,5,7,47,4,11,6,1,4,5,7,47,4,11,6,53,4,11,6,53,4,11,6,53,4,11,6,53,4,11,6,53,4,11,6,53,4,11,6,1,9,1,4,12,10,39,4,11,6,2,9,12,10,39,4,11,6,2,9,13,10,38,4,11,6,2,9,13,10,29,4,9,9,1,3,10,6,2,9,13,10,29,4,9,9,1,3,10,6,2,9,13,10,29,4,9,9,1,3,10,6,2,9,13,10,27,4,1,11,1,4,9,9,1,3,10,6,2,9,13,10,38,9,1,3,10,6,2,9,13,10,38,9,1,3,10,6,2,9,13,10,38,9,1,3,10,6,53,9,1,3,10,6,53,9,1,3,10,6,55,9,9,12,55,9,9,12,55,9,9,12,55,9,9,12,55,9,9,12,55,9,9,12,55,9,9,12,55,9,9,12,55,9,9,12,55,9,9,12,55,9,9,12,\" ;\n \n java.util.StringTokenizer st = new java.util.StringTokenizer(s, \",\\r\\n \") ;\n\n int xx = 0 ;\n int yy = 0 ;\n while (st.hasMoreTokens()) {\n int count = Integer.parseInt(st.nextToken()) ;\n //BUG: should really do something more about missing element.\n if (!st.hasMoreTokens()) continue ;\n int ownerNum = Integer.parseInt(st.nextToken()) ;\n Owner owner = rr.getOwner(ownerNum) ;\n Color cc ;\n if (owner.isLinden()) {\n cc = new Color(100,100,100) ;\n }\n else {\n cc = OwnerColors.getOwnerColor(ownerNum) ; \n }\n g2d.setColor(cc) ;\n\n while (xx + count >= ROW_SIZE) {\n int finishRow = ROW_SIZE - xx ;\n \n g2d.fillRect(xx, yy, finishRow, 1) ;\n \n // trial of svg\n // <rect x=\"0\" y=\"8\" width=\"512\" height=\"8\"\n // style=\"fill:rgb(255,255,255)\"/>\n// char q = '\"' ;\n// System.out.println(\n// \"<rect x=\" + q + xx + q + \" y=\" + q + yy + q +\n// \" width=\" + q + finishRow + q + \" height=\" + q + \"1\" + q +\n// \" style=\" + q + \"fill:rgb(\" + \n// cc.getRed() + \",\" + cc.getGreen() + \",\" + cc.getBlue() \n// + \")\" + q + \"/>\") ;\n \n count -= finishRow ;\n yy++ ;\n xx = 0 ;\n }\n if (count > 0) { \n g2d.fillRect(xx, yy, count, 1) ;\n \n// char q = '\"' ;\n// System.out.println(\n// \"<rect x=\" + q + xx + q + \" y=\" + q + yy + q +\n// \" width=\" + q + count + q + \" height=\" + q + \"1\" + q +\n// \" style=\" + q + \"fill:rgb(\" + \n// cc.getRed() + \",\" + cc.getGreen() + \",\" + cc.getBlue() \n// + \")\" + q + \"/>\") ;\n\n \n xx += count ;\n }\n\n } // while more tokens \n \n // Graphics context no longer needed so dispose it\n g2d.dispose() ;\n\n return bufferedImage ;\n }", "public void Encode_Image1() {\n\n for (String s : Arraylist_image_encode) {\n listString += s + \"IMAGE:\";\n }\n\n }", "public void makeImage(String path, int width, int height, int pt, int pb, int pl, int pr) {\n //BufferedImage \n img2 = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g2 = img2.createGraphics();\n //int newWidth = bufImg(path).getWidth() - (pl - pr);\n //int newHeight = bufImg(path).getHeight() - (pt - pb);\n // bufImg(path).getScaledInstance(newWidth, newHeight, Image.SCALE_SMOOTH);\n //(img,0,0,width,height,sx1,sy1,sx2,sy2,null);\n //g2.drawImage(bufImg(path), pl, pt, pr, pb, 0, 0, newWidth,newHeight, null);\n saveImage(img2, path);\n }", "protected abstract Image generateImage(Graphics g, String text, Dimension d);", "private void createUIComponents() {\n Fond = new JLabel(new ImageIcon(\"maxresdefault.jpg\"));\r\n Fond.setIcon(new ImageIcon(\"maxresdefault.jpg\"));\r\n }", "public void writeImage() {\n // Write generated image to a file\n try {\n // Save as JPEG\n File file = new File(\"Images/\" + name + \"INS\" + System.currentTimeMillis() + \".jpg\");\n ImageIO.write(bufferedImage, \"jpg\", file);\n\t\t\t\t\n\n } catch (IOException e) {\n }\n }", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "private void createImageFiles() {\n\t\tswitchIconClosed = Icon.createImageIcon(\"/images/events/switchImageClosed.png\");\n\t\tswitchIconOpen = Icon.createImageIcon(\"/images/events/switchImageOpen.png\");\n\t\tswitchIconEmpty = Icon.createImageIcon(\"/images/events/switchImageEmpty.png\");\n\t\tswitchIconOff = Icon.createImageIcon(\"/images/events/switchImageOff.png\");\n\t\tswitchIconOn = Icon.createImageIcon(\"/images/events/switchImageOn.png\");\n\t\tleverIconClean = Icon.createImageIcon(\"/images/events/leverImageClean.png\");\n\t\tleverIconRusty = Icon.createImageIcon(\"/images/events/leverImageRusty.png\");\n\t\tleverIconOn = Icon.createImageIcon(\"/images/events/leverImageOn.png\");\n\t}", "public Enemie(){\r\n \r\n r=new Random();\r\n try{\r\n \r\n //cargamos imagenes del barco, ambos helicopteros y damos valores\r\n imgHeli=ImageIO.read(new File(\"src/Images/1.png\"));\r\n imgHeli2=ImageIO.read(new File(\"src/Images/2.png\"));\r\n imgShip=ImageIO.read(new File(\"src/Images/barquito.png\"));\r\n imgBarril=ImageIO.read(new File(\"src/Images/barril.png\"));\r\n \r\n }catch(IOException ex){\r\n System.out.println(\"Imagen no encontrada.\");\r\n }\r\n //Generamos posiciones aleatorias\r\n Bx=(r.nextInt(260)+140);\r\n By=1;\r\n \r\n Bx2=(r.nextInt(260)+140);\r\n By2=1;\r\n \r\n Hx=(r.nextInt(260)+140);\r\n Hy=1;\r\n \r\n Hx2=(r.nextInt(260)+140);\r\n Hy2=1;\r\n //Cargamos altos y anchos para todas las imagenes\r\n Bwidth=imgShip.getWidth(null);\r\n Bheight=imgShip.getHeight(null);\r\n \r\n Bwidth2=imgBarril.getWidth(null);\r\n Bheight2=imgBarril.getHeight(null);\r\n \r\n Hwidth=imgHeli.getWidth(null);\r\n Hheight=imgHeli.getHeight(null);\r\n \r\n Hwidth2=imgHeli2.getWidth(null);\r\n Hheight2=imgHeli2.getHeight(null);\r\n \r\n }", "String getImaginary_lit();", "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 }", "static String getImage() {\n int rand = (int) (Math.random() * 13);\n return \"file:src/images/spaceships/\" + rand + \".png\";\n }", "@Override\r\n\tpublic void init() {\n\t\timg = new ImageClass();\r\n\t\timg.Init(imgPath);\r\n\t}", "private static BufferedImage getMap(int art, GameModel gameModel, Color mapC, Color skyC){\n\n BufferedImage image = new BufferedImage(2800,1800,BufferedImage.TYPE_4BYTE_ABGR);\n\n int genauigkeit = 400;\n\n int[] mapX = new int[genauigkeit + 2];\n int[] mapY = new int[genauigkeit + 2];\n\n mapX[genauigkeit + 1] = 0;\n mapX[genauigkeit] = GameLoop.imgW;\n\n mapY[genauigkeit + 1] = GameLoop.imgH;\n mapY[genauigkeit] = GameLoop.imgH;\n\n double[] rnd = new double[8];\n\n for(int i = 0;i < 4;i++){\n rnd[i] = Math.random() * 0.1;\n rnd[i+4] = Math.random();\n }\n\n for(int i = 0;i < genauigkeit;i++){\n mapX[i] = (int) (GameLoop.imgW/(double)genauigkeit * (i));\n\n switch(art){\n case 1:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.sin(i * 0.1) * gameModel.getHeight()/8);\n break;\n case 2:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.sin(i * 0.01) * gameModel.getHeight()/8);\n break;\n case 3:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.sin(i * 0.1) * gameModel.getHeight()/12 + i);\n break;\n case 4:\n mapY[i] = (int) (gameModel.getHeight()*0.8 - 1/(2000 + Math.pow(i - (genauigkeit - 2)/2.0,2)) * 1500000);\n break;\n case 5:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.pow(Math.sin(i * 0.03),3) * gameModel.getHeight()/4);\n break;\n case 6:\n mapY[i] = (int) (gameModel.getHeight()/2.0);\n mapY[i] += Math.sin(i * (rnd[0])) * rnd[4] * gameModel.getHeight()*0.1;\n mapY[i] += Math.sin(i * (rnd[1])) * rnd[5] * gameModel.getHeight()*0.1;\n mapY[i] += Math.sin(i * (rnd[2])) * rnd[6] * gameModel.getHeight()*0.1;\n mapY[i] += Math.sin(i * (rnd[3])) * rnd[7] * gameModel.getHeight()*0.1;\n\n\n\n\n\n }\n\n }\n\n Polygon map = new Polygon(mapX,mapY,genauigkeit+2);\n\n Graphics2D g2d = image.createGraphics();\n\n g2d.setColor(skyC);\n\n g2d.fillRect(0,0,2800,1800);\n\n g2d.setColor(mapC);\n\n g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION,RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n\n g2d.fillPolygon(map);\n\n return image;\n }", "public abstract Image getImage();", "public abstract Image getImage();", "private File crearAchivoDeImagen() throws IOException {\n String fecha = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String nombreImagen = \"respaldo_\" + fecha + \"_\";\n File directorio = getActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File imagen = File.createTempFile(nombreImagen, \".jpg\", directorio);\n\n imagePath = imagen.getAbsolutePath();\n Log.d(\"Retrofit\",imagePath);\n return imagen;\n }", "ImageImpl (byte [] bytes) {\n\tint cnt = bytes.length / 2;\n\tint size = (bytes.length + 1) / 2;\n\tdata = new short [size];\n\tint bi = 0;\n\t\n\tfor (int i = 0; i < cnt; i++) {\n\t data [i] = (short) (((((int) bytes [bi]) & 0x0ff) << 8)\n\t\t\t\t | (((int) bytes [bi+1]) & 0x0ff));\n\t bi += 2;\n\t}\n\t\n\tif (size > cnt)\n\t data [cnt] = (short) ((((int) bytes [bi]) & 0x0ff) << 8);\n\n\tbitmap = new Bitmap (data);\n }", "public void makeImage() {\n image = new GreenfootImage(\"highscoreb.png\");\n \n image.setFont(new Font(\"Arial\", false, false, 50));\n image.setColor(Color.WHITE);\n image.setFont(new Font(\"Arial\", false, false, 25));\n renderer.drawShadowString(image, name, 25, getHeight() - 50);\n setBackground(image);\n }", "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}", "public double getImag() {return this.imag;}", "private ImageUtils() {}", "public IImage createImage(IImage image, int x, int y, int width, int height, int transform) {\n return null;\r\n }", "private void botonImagen() {\n ImageIcon guardar = new ImageIcon(getClass().getResource(\"/Img/saveIcon.png\"));\n btnGuardar.setIcon(new ImageIcon(guardar.getImage().getScaledInstance(btnGuardar.getWidth(), btnGuardar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon eliminar = new ImageIcon(\"src/Img/Delete.png\");\n ImageIcon eliminar = new ImageIcon(getClass().getResource(\"/Img/Delete.png\"));\n btnEliminar.setIcon(new ImageIcon(eliminar.getImage().getScaledInstance(btnEliminar.getWidth(), btnEliminar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon regresar = new ImageIcon(\"src/Img/arrow.png\");\n ImageIcon regresar = new ImageIcon(getClass().getResource(\"/Img/arrow.png\"));\n btnRegresar.setIcon(new ImageIcon(regresar.getImage().getScaledInstance(btnRegresar.getWidth(), btnRegresar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon cancelar = new ImageIcon(\"src/Img/deleteIcon.png\");\n ImageIcon cancelar = new ImageIcon(getClass().getResource(\"/Img/deleteIcon.png\"));\n btnCancelar.setIcon(new ImageIcon(cancelar.getImage().getScaledInstance(btnCancelar.getWidth(), btnCancelar.getHeight(), Image.SCALE_SMOOTH)));\n\n }", "String getImagePath();", "String getImagePath();" ]
[ "0.7259481", "0.71274865", "0.68804866", "0.66702604", "0.65377086", "0.6488649", "0.64772546", "0.64402163", "0.6404241", "0.63580686", "0.6321347", "0.6283118", "0.6234735", "0.6195433", "0.61686593", "0.6119808", "0.611583", "0.61042535", "0.6077249", "0.6059996", "0.60422647", "0.6027072", "0.6016449", "0.5993878", "0.5991531", "0.59772456", "0.595738", "0.59341425", "0.59322506", "0.5911081", "0.5906933", "0.58986974", "0.5886812", "0.5874577", "0.5865258", "0.58580095", "0.5848413", "0.5842509", "0.5836627", "0.5836088", "0.58357424", "0.5835368", "0.5795074", "0.5785914", "0.57810646", "0.5780232", "0.57634485", "0.5757032", "0.5752504", "0.57501197", "0.574998", "0.5749709", "0.5749671", "0.5734137", "0.57311237", "0.57290703", "0.5713093", "0.5712305", "0.5710685", "0.57073146", "0.57073146", "0.57073146", "0.57008725", "0.5699415", "0.5683798", "0.5682752", "0.56728965", "0.5670778", "0.56640315", "0.565959", "0.56586635", "0.5657854", "0.56507623", "0.5650025", "0.56437755", "0.56323236", "0.5622259", "0.5620654", "0.5619004", "0.5606056", "0.5605385", "0.5594448", "0.55883896", "0.5587083", "0.5586836", "0.55626744", "0.55522835", "0.5535123", "0.5529125", "0.55275947", "0.55275947", "0.55271584", "0.5521269", "0.552075", "0.5514189", "0.5510697", "0.5508366", "0.5505191", "0.55031306", "0.55014825", "0.55014825" ]
0.0
-1
Este metodo hace la llamada al servicio de publicacion
public void setSrvPublicacionService(es.pode.publicacion.negocio.servicios.SrvPublicacionService srvPublicacionService) { this.srvPublicacionService = srvPublicacionService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.soa.SolicitarServicioDocument.SolicitarServicio getSolicitarServicio();", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}", "private WebServicesFabrica(){}", "public interface GPAdimWS {\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.provincia\")\n Call<List<Provincia>> listProvincia();\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.especialidad\")\n Call<List<Especialidad>> listEspecialidad();\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.cobertura\")\n Call<List<Cobertura>> listCobertura();\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.medico/byCoberturaProvinciaEspecialidad/{cobertura}/{provincia}/{especialidad}\")\n Call<List<Medico>> listMedico(@Path(\"cobertura\") String cobertura, @Path(\"provincia\") Long provincia, @Path(\"especialidad\") Long especialidad);\n @POST(\"webresources/com.gylgroup.gp.turno\")\n Call<Turno> createTurno(@Body Turno turno);\n}", "private RepositorioOrdemServicoHBM() {\n\n\t}", "public interface MovilizerDistributionService {\n\n // ---------------------------------------------------------------------- Webservice interaction\n\n /**\n * Set systemd Id and password for the request and erases the replies from next response.\n *\n * @param systemId the system id to be set in the request.\n * @param password the password to be set in the request.\n * @param request request to be modified for upload.\n * @return the same request entered in the method parameters but with the credentials and number\n * of replies changed.\n * @since 12.11.1.0\n */\n MovilizerRequest prepareUploadRequest(Long systemId, String password, MovilizerRequest request);\n\n /**\n * Set systemd Id and password for the request and set the number of replies replies from next\n * response.\n *\n * @param systemId the system id to be set in the request.\n * @param password the password to be set in the request.\n * @param numResponses the number of responses to receive in the response.\n * @param request request to be modified for upload.\n * @return the same request entered in the method parameters but with the credentials and number\n * of replies changed.\n * @since 12.11.1.0\n */\n MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);\n\n /**\n * Perform a synchronous request the Movilizer cloud.\n *\n * @param request request to be used in the call.\n * @return the response coming from the cloud with the corresponding acknowledgements, errors,\n * replies and datacontainers.\n * @throws MovilizerWebServiceException when there's connection problems.\n * @since 12.11.1.0\n */\n MovilizerResponse getReplyFromCloudSync(MovilizerRequest request);\n\n /**\n * Perform a synchronous request the Movilizer cloud.\n *\n * @param request request to be used in the call.\n * @param connectionTimeoutInMillis connection timeout to be used in the call.\n * @param receiveTimeoutInMillis receive timeout to be used in the call.\n * @return the response coming from the cloud with the corresponding acknowledgements, errors,\n * replies and datacontainers.\n * @throws MovilizerWebServiceException when there's connection problems.\n * @since 12.11.1.0\n */\n MovilizerResponse getReplyFromCloudSync(MovilizerRequest request,\n Integer connectionTimeoutInMillis,\n Integer receiveTimeoutInMillis);\n\n /**\n * Perform an asynchronous request the Movilizer cloud.\n *\n * @param request request to be used in the call.\n * @return A completable future with the response.\n * @throws MovilizerWebServiceException when there's connection problems.\n * @see CompletableFuture\n * @since 15.11.2.2\n */\n CompletableFuture<MovilizerResponse> getReplyFromCloud(MovilizerRequest request);\n\n /**\n * Perform an asynchronous request the Movilizer cloud.\n *\n * @param request request to be used in the call.\n * @param connectionTimeoutInMillis connection timeout to be used in the call.\n * @param receiveTimeoutInMillis receive timeout to be used in the call.\n * @return A completable future with the response.\n * @throws MovilizerWebServiceException when there's connection problems.\n * @see CompletableFuture\n * @since 12.11.2.2\n */\n CompletableFuture<MovilizerResponse> getReplyFromCloud(MovilizerRequest request,\n Integer connectionTimeoutInMillis,\n Integer receiveTimeoutInMillis);\n\n /**\n * Indicate if the response java instance has errors.\n *\n * @param response the response to be analyzed.\n * @return true in case response has errors else false.\n * @since 12.11.1.3\n */\n Boolean responseHasErrors(MovilizerResponse response);\n\n /**\n * Generate a string with errors.\n *\n * @param response the response that contains the errors.\n * @return string represantion of the errors to use in messages.\n * @since 12.11.1.3\n */\n String responseErrorsToString(MovilizerResponse response);\n\n /**\n * Send all files that has .mxml extension in a folder and subfolders collecting all cloud\n * responses.\n *\n * @param folder to walk for the request files.\n * @return a list with all the cloud responses.\n * @since 15.11.1.5\n */\n List<MovilizerResponse> batchUploadFolderSync(Path folder);\n\n // ----------------------------------------------------------------------------- Document upload\n\n /**\n * Perform a synchronous blob upload to the Movilizer Cloud given the input stream.\n *\n * @param documentInputStream the input stream containing the blob/document to upload.\n * @param filename the name of the file for the document.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @return the upload response with the results of the upload\n * @throws MovilizerWebServiceException when there's connection problems.\n * @see UploadResponse\n * @since 12.11.1.0\n */\n UploadResponse uploadDocumentSync(InputStream documentInputStream, String filename,\n long systemId, String password, String documentPool,\n String documentKey, String language, String ackKey);\n\n /**\n * Perform a synchronous blob upload to the Movilizer Cloud given the path to a file.\n *\n * @param documentFilePath the path to the document file to upload.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @return the upload response with the results of the upload\n * @throws MovilizerWebServiceException when there's connection or file access problems.\n * @see UploadResponse\n * @since 12.11.1.0\n */\n UploadResponse uploadDocumentSync(Path documentFilePath, long systemId, String password,\n String documentPool, String documentKey, String language,\n String ackKey);\n\n /**\n * Perform a synchronous blob upload to the Movilizer Cloud given the input stream.\n *\n * @param documentInputStream the input stream containing the blob/document to upload.\n * @param filename the name of the file for the document.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @param connectionTimeoutInMillis timeout of the request.\n * @return the upload response with the results of the upload\n * @throws MovilizerWebServiceException when there's connection problems.\n * @see UploadResponse\n * @since 12.11.1.2\n */\n UploadResponse uploadDocumentSync(InputStream documentInputStream, String filename,\n long systemId, String password, String documentPool,\n String documentKey, String language, String ackKey,\n Integer connectionTimeoutInMillis);\n\n /**\n * Perform a synchronous blob upload to the Movilizer Cloud given the path to a file.\n *\n * @param documentFilePath the path to the document file to upload.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @param connectionTimeoutInMillis timeout of the request.\n * @return the upload response with the results of the upload\n * @throws MovilizerWebServiceException when there's connection or file access problems.\n * @see UploadResponse\n * @since 12.11.1.2\n */\n UploadResponse uploadDocumentSync(Path documentFilePath, long systemId, String password,\n String documentPool, String documentKey, String language,\n String ackKey, Integer connectionTimeoutInMillis);\n\n /**\n * Perform an asynchronous blob upload to the Movilizer Cloud given the input stream.\n *\n * @param documentInputStream the input stream containing the blob/document to upload.\n * @param filename the name of the file for the document.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @return a future with the upload response.\n * @throws MovilizerWebServiceException when there's connection problems.\n * @see CompletableFuture\n * @see UploadResponse\n * @since 15.11.2.2\n */\n CompletableFuture<UploadResponse> uploadDocument(InputStream documentInputStream,\n String filename, long systemId,\n String password, String documentPool,\n String documentKey, String language,\n String ackKey);\n\n /**\n * Perform an asynchronous blob upload to the Movilizer Cloud given the path to a file.\n *\n * @param documentFilePath the path to the document file to upload.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @return a future with the upload response.\n * @throws MovilizerWebServiceException when there's connection or file access problems.\n * @see CompletableFuture\n * @see UploadResponse\n * @since 15.11.2.2\n */\n CompletableFuture<UploadResponse> uploadDocument(Path documentFilePath, long systemId,\n String password, String documentPool,\n String documentKey, String language,\n String ackKey);\n\n /**\n * Perform an asynchronous blob upload to the Movilizer Cloud given the input stream.\n *\n * @param documentInputStream the input stream containing the blob/document to upload.\n * @param filename the name of the file for the document.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @param connectionTimeoutInMillis timeout of the request.\n * @return a future with the upload response.\n * @throws MovilizerWebServiceException when there's connection problems.\n *\n * @see CompletableFuture\n * @see UploadResponse\n * @since 15.11.2.2\n */\n CompletableFuture<UploadResponse> uploadDocument(InputStream documentInputStream,\n String filename, long systemId,\n String password, String documentPool,\n String documentKey, String language,\n String ackKey,\n Integer connectionTimeoutInMillis);\n\n /**\n * Perform an asynchronous blob upload to the Movilizer Cloud given the path to a file.\n *\n * @param documentFilePath the path to the document file to upload.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @param connectionTimeoutInMillis timeout of the request.\n * @return a future with the upload response.\n * @throws MovilizerWebServiceException when there's connection or file access problems.\n *\n * @see CompletableFuture\n * @see UploadResponse\n * @since 15.11.2.2\n */\n CompletableFuture<UploadResponse> uploadDocument(Path documentFilePath, long systemId,\n String password, String documentPool,\n String documentKey, String language,\n String ackKey,\n Integer connectionTimeoutInMillis);\n\n // ----------------------------------------------------------------------------------- XML utils\n\n /**\n * Read a Movilizer element from the webservice name space (MovilizerMovelet, MovilizerReply,\n * etc...) and creates a java object instance of the class indicated.\n *\n * @param elementString string value of the serialization of the object.\n * @param movilizerElementClass class of the Movilizer object to create from the string.\n * @param <T> Movilizer object class\n * @return the java instance parsed from the string.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there are parsing\n * problems.\n * @since 12.11.1.3\n */\n <T> T getElementFromString(final String elementString, final Class<T> movilizerElementClass);\n\n /**\n * Print a Movilizer element from the webservice name space (MovilizerMovelet, MovilizerReply,\n * etc...) to string.\n *\n * @param movilizerElement java instance of the Movilizer element.\n * @param movilizerElementClass class of the Movilizer element to use.\n * @param <T> Movilizer object class\n * @return XML string representation for the Movilizer element given.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there are parsing\n * problems.\n * @since 12.11.1.3\n */\n <T> String printMovilizerElementToString(final T movilizerElement,\n final Class<T> movilizerElementClass);\n\n // ------------------------------------------------------------------------------ File XML utils\n\n /**\n * Read and parses a Movilizer Request file (.mxml) from the file system.\n *\n * @param filePath path to the request file.\n * @return the java instance parsed from the file.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there's parsing or\n * file access problems.\n * @since 12.11.1.0\n */\n MovilizerRequest getRequestFromFile(Path filePath);\n\n /**\n * Read and parses a Movilizer Request from the given String.\n *\n * @param requestString non null string with a valid xml request.\n * @return the java instance parsed from the file.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there's parsing or\n * string problems.\n * @since 12.11.1.1\n */\n MovilizerRequest getRequestFromString(String requestString);\n\n /**\n * Persist a request java instance to a file.\n *\n * @param request the request to be persisted.\n * @param filePath the path to the file.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there's parsing or\n * file access problems.\n * @since 12.11.1.0\n */\n void saveRequestToFile(MovilizerRequest request, Path filePath);\n\n /**\n * Generate a string from a request java instance.\n *\n * @param request the request to be transformed into string.\n * @return the string representation of the request.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException if there's parsing\n * problems.\n * @since 12.11.1.0\n */\n String requestToString(MovilizerRequest request);\n\n /**\n * Generate a string from a response java instance.\n *\n * @param response the response to be transformed into string.\n * @return the string representation of the response.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException if there's parsing\n * problems.\n * @since 12.11.1.0\n */\n String responseToString(MovilizerResponse response);\n\n // ------------------------------------------------------------------------------ MAF Management\n\n /**\n * Read a file into an MAF source file for latter source uploading.\n *\n * @param sourceFile file to read\n * @return MafSource with the source and the metadata\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerMAFManagementException when having\n * troubles reading the file.\n * @see com.movilizer.mds.webservice.models.maf.MafEventScript\n * @see com.movilizer.mds.webservice.models.maf.MafLibraryScript\n * @see com.movilizer.mds.webservice.models.maf.MafGenericScript\n * @since 15.11.2.1\n */\n MafSource readSource(File sourceFile);\n\n /**\n * Deploy a MAF source to the cloud.\n *\n * @param systemId where to deploy the file\n * @param password for the system id given\n * @param token for MAF access\n * @param source file to upload\n * @return MafResponse with the result of the operation\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerMAFManagementException when having\n * troubles uploading the file.\n * @see com.movilizer.mds.webservice.models.maf.communications.MafEventResponse\n * @see com.movilizer.mds.webservice.models.maf.communications.MafLibraryResponse\n * @see com.movilizer.mds.webservice.models.maf.communications.MafGenericResponse\n * @since 15.11.2.1\n */\n MafResponse deploySourceSync(long systemId, String password, String token, MafSource source);\n\n /**\n * Deploy a MAF source to the cloud.\n *\n * @param systemId where to deploy the file\n * @param password for the system id given\n * @param token for MAF access\n * @param sourceFile file to upload\n * @return MafResponse with the result of the operation\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerMAFManagementException when having\n * troubles uploading the file.\n * @see com.movilizer.mds.webservice.models.maf.communications.MafEventResponse\n * @see com.movilizer.mds.webservice.models.maf.communications.MafLibraryResponse\n * @see com.movilizer.mds.webservice.models.maf.communications.MafGenericResponse\n * @since 15.11.2.1\n */\n MafResponse deploySourceSync(long systemId, String password, String token, File sourceFile);\n}", "public CalificacionREST() {\r\n\r\n gson = new Gson();\r\n sdao = new SolicitudDAO();\r\n /**\r\n * Creates a new instance of SolicitudREST\r\n */\r\n }", "public interface ProcesoVENService extends Service {\n\n\t/**\n\t * Ejecuta procedimiento generico\n\t * @param nombreExecute\n\t * @param criteria\n\t */\n\tpublic void executeGenerico(String nombreExecute, Map criteria) ;\n\t\n\t/**Actualiza calensarios\n\t * @param calendario\n\t * @param usuario\n\t */\n\tpublic void updateCalendario(Calendario calendario, Usuario usuario);\n\t\n\t/**devuelve lista de calendarios\n\t * @param criteria\n\t * @return\n\t */\n\tpublic List getCalendarios(Map criteria);\n\t\n\t/**\n\t * devuelve el calendario\n\t * @param criteria\n\t * @return\n\t */\n\tpublic Calendario getCalendario(Map criteria);\n\t\n /**\n * devuelve los feriados d euna zona\n * @param criteria\n * @return\n */\n public List getFeriadoZona(Map criteria);\n\t\n\t/**\n\t * Actualiza feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void updateFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * Inserta los feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * elimina los feriados d euna zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void deleteFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\n\t/**\n\t * Metodo que trae las zonas de una region\n\t * @param feriadoRegion\n\t * @return\n\t */\n\tpublic List getZonasRegion(String feriadoRegion);\n\n\t/**\n\t * Retorna el indicador de habilitacion RUV\n\t * @param criteria\n\t * @return\n\t */\n\tpublic String getIndicadorHabilitacionRuv(Map criteria);\n\n\t/**\n\t * Genera la informacion para el reporte RUV\n\t * @param map\n\t */\n\tpublic void executeGeneracionReporteRUV(Map map);\n\t\n\t/**\n\t * Genera los archivos de libro de ventas - detalles SII\n\t * @param map\n\t */\n\tpublic void executeGenerarArchivosLibroVentasDetalleSII(Map map);\n\t\n}", "public interface PortadorService {\n\n @POST(\"api/portador/login/auth\")\n Call<FazerLoginPortadorResponse> login(@Body FazerLoginPortador fazerLoginPortador);\n\n @POST(\"api/portador/login\")\n Call<CriarLoginResponse> criarLogin(@Body PortadorLogin portadorLogin);\n\n @GET(\"api/portador/credencial/{documento}/pessoa/{tipoPessoa}/processadora/{idProcessadora}/instituicao/{idInstituicao}\")\n Call<GetCredenciaisResponse> listaCredenciais(\n @Path(\"documento\") String documento,\n @Path(\"tipoPessoa\") long tipoPessoa,\n @Path(\"idProcessadora\") long idProcessadora,\n @Path(\"idInstituicao\") long idInstituicao,\n @Header(\"AuthorizationPortador\") String token\n );\n\n @GET(\"api/portador/credencial/{idCredencial}/detalhes\")\n Call<Credencial> credencialDetalhes(\n @Path(\"idCredencial\") long idCredencial,\n @Header(\"AuthorizationPortador\") String token\n );\n\n @GET(\"api/portador/login/logout\")\n Call<ResponseBody> logout();\n\n @PUT(\"api/portador/login/trocar-email\")\n Call<ItsPayResponse> trocarEmail(@Body TrocarEmail trocarEmail, @Header(\"AuthorizationPortador\") String token);\n\n @PUT(\"api/portador/login/trocar-senha\")\n Call<ItsPayResponse> trocarSenha(@Body TrocarSenhaPortador trocarSenhaPortador, @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/login/{idProcessadora}/{idInstituicao}/buscar-email/{documento}\")\n Call<BuscarEmailResponse> buscarEmail(@Path(\"idProcessadora\") long idProcessadora,\n @Path(\"idInstituicao\") long idInstituicao,\n @Path(\"documento\") String documento,\n @Header(\"AuthorizationPortador\") String token);\n\n //{periodo} - Valores aceitos 15, 30 ou 45.\n @GET(\"api/portador/credencial/{idCredencial}/extrato/data_inicial/{dataInicial}/data_final/{dataFinal}\")\n Call<LinhaExtratoCredencial[]> extratoPeriodo(@Path(\"idCredencial\") long idCredencial,\n @Path(\"dataInicial\") String dataInicial,\n @Path(\"dataFinal\") String dataFinal,\n @Header(\"AuthorizationPortador\") String token);\n\n //{periodo} - Valores aceitos 15, 30 ou 45.\n @GET(\"api/portador/credencial/{idCredencial}/extrato/periodo/{periodo}\")\n Call<LinhaExtratoCredencial[]> extratoCredencial(@Path(\"idCredencial\") long idCredencial,\n @Path(\"periodo\") String periodo,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/plastico/abrir/mobile/{idPlastico}\")\n Call<ResponseBody> abrirPlastico(@Path(\"idPlastico\") long idPlastico,\n @Header(\"AuthorizationPortador\") String token);\n\n /**\n * @param portadorCredencialRequest a credencial deve ser criptografada com SHA512\n * @param token\n * @return\n */\n @POST(\"api/portador/credencial/info-portador\")\n Call<PortadorCredencial> getPortadorCredencial(@Body GetInfoPortadorCredencialRequest portadorCredencialRequest,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/conta/transferencia\")\n Call<ResponseBody> transferenciaOutroCartao(@Body TransferenciaMesmaInstituicao request,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/conta/transferencia/conta/corrente\")\n Call<ResponseBody> transferenciaContaCorrente(@Body TransferenciaContaCorrente request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/banco\")\n Call<Banco[]> listaBancos(@Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/boleto/carga/gerar-linha-digitavel\")\n Call<BoletoCarga> gerarLinhaDigitavel(@Body GerarBoletoCarga request,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/boleto/carga/enviar-boleto-email\")\n Call<ResponseBody> enviarBoletoEmail(@Body GerarBoletoCarga request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/credencial/virtual/conta/{idConta}\")\n Call<GetCredenciaisResponse> listaCartoesVirtuais(@Path(\"idConta\") long idConta,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/gerador/credencial\")\n Call<CredencialGerada> novoCartaoVirtual(@Body GerarCredencialRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/credencial/status-habilitacao/{idCredencial}\")\n Call<CredencialStatus> listaStatusHabilitacao(@Path(\"idCredencial\") long idCredencial,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/credencial/trocar-estado\")\n Call<ResponseBody> trocarEstado(@Body TrocarEstadoCredencialRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n\n @POST(\"api/portador/credencial/avisar-perda\")\n Call<ResponseBody> avisarPerda(@Body AvisarPerdaOuRouboRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/credencial/avisar-roubo\")\n Call<ResponseBody> avisarRoubo(@Body AvisarPerdaOuRouboRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/credencial/trocar-pin\")\n Call<Boolean> trocarSenhaCartao(@Body TrocarPinRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/conta/buscar-tarifas/conta/{idConta}\")\n Call<GetPerfilTarifarioResponse> listaTarifas(@Path(\"idConta\") long idConta,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/credencial/{documento}/pessoa/{tipoPessoa}/processadora/{idProc}/instituicao/{idInst}/desbloqueadas\")\n Call<GetCredenciaisResponse> listaCredenciaisLoja(\n @Path(\"documento\") String documento,\n @Path(\"tipoPessoa\") long tipoPessoa,\n @Path(\"idProc\") long idProcessadora,\n @Path(\"idInst\") long idInstituicao,\n @Header(\"AuthorizationPortador\") String token\n );\n\n @GET(\"api/mktplace/portador/pedido/pessoa/{documento}/processadora/{idProcessadora}/instituicao/{idInstituicao}\")\n Call<Pedido[]> buscarPedidos(@Path(\"documento\") String documento,\n @Path(\"idProcessadora\") long idProcessadora,\n @Path(\"idInstituicao\") long idInstituicao,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/portador/pedido/{idPedido}\")\n Call<PedidoDetalhe> buscarPedidoDetalhe(\n @Path(\"idPedido\") long idPedido,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/portador/parceiro-produto/{idProcessadora}/{idInstituicao}/\")\n Call<ArrayList<ParceiroResponse>> getParceiros(@Path(\"idProcessadora\") long idProcessadora,\n @Path(\"idInstituicao\") long idInstituicao,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/administrativo/imagem/sku/{idImagem}\")\n Call<ResponseBody> abrirImagemProduto(@Path(\"idImagem\") long idImagem,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/portador/formas-envio/{idParceiro}/endereco/{idEndereco}\")\n Call<GetFormasEnvioResponse[]> getFormasEnvio(@Path(\"idParceiro\") long idParceiro,\n @Path(\"idEndereco\") long idEndereco,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/endereco/{documento}/pessoa/{tipoPessoa}/processadora/{idProc}/instituicao/{idInst}/status/{status}/\")\n Call<EnderecoPessoa[]> getEnderecoPortador(@Path(\"documento\") String documento,\n @Path(\"tipoPessoa\") long tipoPessoa,\n @Path(\"idProc\") long idProc,\n @Path(\"idInst\") long idInst,\n @Path(\"status\") long status,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/mktplace/portador/pedido\")\n Call<Integer> efetuarPedido(@Body FazerPedidoMKTPlace request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/portador/parcelas/{idParceiro}/valor/{valorCarrinho}\")\n Call<ParcelasResponse> getParcelamento(@Path(\"idParceiro\") long idParceiro,\n @Path(\"valorCarrinho\") double valorCarrinho,\n @Header(\"AuthorizationPortador\") String token);\n}", "public WebService_Detalle_alquiler_factura() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public ControladorCatalogoServicios() {\r\n }", "public interface PIService {\n @POST(\"learningrace1/rest/participante\")\n Call<List<Participante>> getParticipante(@Body Participante participante);\n\n @GET(\"learningrace1/rest/evento/{identificador}\")\n Call<List<Evento>> getEvento(@Path(\"identificador\") String identificador);\n\n}", "protected void agregarUbicacion(){\n\n\n\n }", "@WebService(name = \"publish_portype\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n bc.intra.middleware.api.schema.fault.ObjectFactory.class,\n bc.intra.middleware.api.schema.pubsub.ObjectFactory.class,\n bc.intra.middleware.api.services.pubsub.push.ObjectFactory.class\n})\npublic interface PublishPortype {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns bc.intra.middleware.api.services.pubsub.push.PublishResponseType\n * @throws PublishFaultMessage\n */\n @WebMethod(operationName = \"Publish\", action = \"http://www.proximus.com/middleware/services/pubsub/Publish\")\n @WebResult(name = \"PublishResponse\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\", partName = \"parameters\")\n public PublishResponseType publish(\n @WebParam(name = \"PublishRequest\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\", partName = \"parameters\")\n PublishRequestType parameters)\n throws PublishFaultMessage\n ;\n\n}", "public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }", "public void initPublicEndpoint() {\n \t//TODO: Register the new Public End Point with in the Content Repository Node\n \tString uniqueId = UUID.randomUUID().toString();\n \t\n \tpublicEndPoint = new JMSEndpoint();\n \tpublicEndPoint.setAddress(uniqueId + \"/public\");\n \t\n \tpublicEndPoint.setProperties(configuration.getBrokerPool().getBroker().getConnections(\"topic\").getParameters());\n \n // save the public endpoint from the registry\n registry.createPublicEndpoint();\n \n publicSender = initPublicSender(new JMSSenderFactory().create(publicEndPoint));\n \t\n \tisPublicEndPointInit = true;\n }", "public interface MovimientoService {\n public static final String PROPERTY_ID = \"id\";\n public static final String PROPERTY_PARTIDO_ID = \"partidoId\";\n public static final String PROPERTY_TIEMPO_DES = \"tiempoDes\";\n public static final String PROPERTY_MINUTO = \"minuto\";\n public static final String PROPERTY_SEGUNDO = \"segundo\";\n public static final String PROPERTY_TIPO = \"tipo\";\n public static final String PROPERTY_ORIGEN = \"origen\";\n public static final String PROPERTY_ENTRA_ID = \"entraId\";\n public static final String PROPERTY_ENTRA_NOMBRE = \"entraNombre\";\n public static final String PROPERTY_SALE_ID = \"saleId\";\n public static final String PROPERTY_SALE_NOMBRE = \"saleNombre\";\n\n Map<String,Object> createMovimiento(Map<String, String> movimiento);\n\n void deleteMovimiento(Long idMovimiento);\n\n List<Map<String,Object>> movimientosByPartido(Long idPartido);\n}", "private FournisseurArboTraficService() {\r\n\t\tsuper();\r\n\t}", "public interface PrecosService {\n\n @GET(\"/combustivelbarato/precos/master/precos.json\")\n List<Preco> getPrecos();\n}", "void publishMe();", "@O2Client(permitPrivate = false)\n @POST\n @Path(\"/client/public\")\n public Response authorizedPublicPOST(@Context final SecurityContext c) {\n return Response.ok().build();\n }", "public abstract String tiposervicio();", "private RecipleazBackendService() {\n }", "public SolicitudREST() {\n gson = new Gson();\n sdao= new SolicitudDAO();\n }", "public ClienteServicio() {\n }", "public interface APIService {\n\n @POST(\"login.php\")\n Call<ResponseLogin> iniciosesion(@Body Cuenta cuenta);\n\n @POST(\"registrarEmpresa.php\")\n Call<PostResponse> registerEmpresa(@Body Cuenta cuenta);\n\n @GET(\"mostrarProyecto.php\")\n Call<ResponseProyecto> getProyectos(@Query(\"id_empresa\") String id);\n\n @GET(\"InfoEmpresa.php\")\n Call<ResponseEmpresa> getEmpresa(@Query(\"id_empresa\") String id);\n\n @POST(\"registrarProyecto.php\")\n Call<ResponseRegistrarProyecto> registerProyecto(@Body Proyecto proyecto);\n\n @POST(\"registrarDocumento.php\")\n Call<ResponseEntregable> registerEntregable(@Body EntregableP entregableP);\n\n @GET(\"mostrarDoc.php\")\n Call<ResponseMostrarEntregable> getEntregables(@Query(\"id_proyecto\") int id);\n\n @POST(\"registrarPersonal.php\")\n Call<PostResponse> registerPersonal(@Body Personal personal);\n\n @GET(\"mostrarPersonal.php\")\n Call<ResponsePersonal> getPersonal(@Query(\"id_empresa\") String id);\n\n @POST(\"registrarHistorial.php\")\n Call<PostResponse> registerHistorial(@Body Historial historial);\n\n @GET(\"mostrarHistorial.php\")\n Call<ResponseHistorial> getHistorial(@Query(\"id_proyecto\") int id);\n\n @GET(\"mostrarPerLibres.php\")\n Call<ResponsePersonalFree> getPersonalFree(@Query(\"id_empresa\") String id);\n\n @POST(\"registrarEquipoP.php\")\n Call<PostResponse> registerEquipo(@Body RegisterEquipo equipo);\n\n @GET(\"mostrarEquipoP.php\")\n Call<ResponseMostrarEquipo> getEquipo(@Query(\"id_proyecto\") int id);\n\n @GET(\"{entregable}\")\n @Streaming\n Call<ResponseBody> downloadFile(@Path(\"entregable\")String entregable);\n\n @POST(\"asignarJefe.php\")\n Call<PostResponse> asignarJefe(@Body Jefe jefe);\n\n @POST(\"proyectoEndFake.php\")\n Call<PostResponse> finishProyecto(@Body Proyecto proyecto);\n\n @POST(\"ModidTipo.php\")\n Call<PostResponse> updateTipo(@Body Jefe jefe);\n\n @GET(\"reporteJson.php\")\n Call<ResponseReportes> getReportes(@Query(\"idEmpresa\") String id);\n\n @POST(\"LoginEmJefe.php\")\n Call<ResponseUser> signIn(@Body Cuenta cuenta);\n\n @GET(\"ProyectoMostrarID.php\")\n Call<ResponseProyecto> getProject(@Query(\"idProyecto\") String id);\n\n\n}", "protected es.pode.publicacion.negocio.servicios.SrvPublicacionService getSrvPublicacionService()\n {\n return this.srvPublicacionService;\n }", "public interface NhanVienService {\n @GET(\"api/User\")\n Call<List<NhanVien>> getAll(@Query(\"authentication\") String authentication);\n\n @GET(\"api/User\")\n Call<NhanVien> chiTiet(@Query(\"id\") int id, @Query(\"authentication\") String authentication);\n\n @POST(\"api/User\")\n Call<NhanVien> them(@Body NhanVienRequest nhanVienRequest);\n\n @DELETE(\"api/User\")\n Call<Object> xoa(@Query(\"id\") int id, @Query(\"authentication\") String authentication);\n\n @PUT(\"api/User\")\n Call<Object> sua(@Body NhanVienRequest nhanVienRequest);\n}", "private void limpiarDatos() {\n\t\t\n\t}", "InstancePublishInfo getInstancePublishInfo(Service service);", "API createAPI();", "public interface RuntService {\n @Headers({\n \"Accept: application/json\"\n })\n @GET(\"runt/co.com.runt.local.domain.persona/{id}/{placa}\")\n Call<List<RuntVO>> consultaRunt(@Path(\"id\") Integer numeroCedula, @Path(\"placa\") String placa);\n}", "public DoctoresResource() {\n servDoctores = new ServicioDoctores();\n }", "public interface IWebScheduleService {\r\n public ScheduleResponse getScheduleShowByTeamId(String teamId, Long scheduleDetaildId,Long scheduleId, Long descId);\r\n\r\n //获取页面所有链接的签名map\r\n public ScheduleResponse getScheduleSigns(ScheduleShowRequest showRequest, ScheduleResponse response, SignVo signVo);\r\n\r\n //获取行程中所有导游\r\n public List<LeaderEntity> getScheduleGuides(String teamId);\r\n\r\n // 获取游客列表\r\n public List<MemberEntity> getTouristList(Long scheduleId);\r\n\r\n}", "public interface ApiInterface {\n\n\n @Headers({\"Content-Type: application/json\",})\n @POST(\"transport/public/registrations\")\n Call<Void> Register(@Body User user);\n\n\n //loginProcess\n @GET(\"user\")\n @Headers({\"Content-Type: application/json\"})\n Call<cUser> postWithFormParams();\n\n\n //userMe\n @GET(\"transport/user/me\")\n @Headers({\"Content-Type: application/json\"})\n Call<JsonObject> UserMe();\n\n\n\n //drivers\n @GET(\"transport/drivers\")\n @Headers({\"Content-Type: application/json\"})\n Call<JsonObject> drivers(\n @Query(\"latitud\") double latitud,\n @Query(\"longitud\") double longitud);\n\n\n}", "public interface CompraService {\n\n @POST(\"inicializar\")\n Call<StatusResponse> inicializar(@Body Credencial credencial);\n\n @POST(\"consultarProduto\")\n Call<StatusResponse> consultarProduto(@Body ConsultaProduto consultaProduto);\n\n @POST(\"consultarFormaPagamento\")\n Call<StatusResponse> consultarFormaPagamento(@Body ConsultaFormaPagamento consultaFormaPagamento);\n\n @POST(\"pedido\")\n Call<StatusResponse> pedido(@Body Compra compra);\n}", "public interface IServicoPrivadoClienteSemPropostaAPI {\n\n public static final String PATH = \"ServicoPrivadoClienteSemProposta/\";\n\n\n @GET(PATH)\n Call<List<ServicoOfertaPrivada>> getAll(\n @Query(\"idUsuarioCliente\") String idUsuarioCliente\n );\n}", "public void service() {\n\t}", "public Servicio(String servicio){\n nombreServicio = servicio;\n }", "PubService getService() {\n return PubService.this;\n }", "public interface JanDanApiService {\n\n\n}", "public interface API {\n\n //Penyakit\n @GET(\"penyakitall/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @GET(\"penyakit/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseListByLokasi(@Path(\"page\") String page, @Path(\"count_page\") String count_page, @Query(\"id_desa\") String id_desa);\n\n @POST(\"penyakit\")\n Call<DiseasePostResponse>\n postDisease(@Body DiseaseBody diseaseBody);\n @DELETE(\"penyakit\")\n Call<DeletePenyakitResponse> deletePenyakit(@Query(\"Id_penyakit\") String id_penyakit);\n\n @PUT(\"penyakit\")\n Call<PutPenyakitResponse> editPenyakit(@Query(\"Id_penyakit\") String id_penyakit,\n @Body PutPenyakitBody putPenyakitBody);\n\n @GET(\"tipepenyakit/{page}/{count_page}\")\n Call<TipePenyakitResponse>\n getTipePenyakitList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @POST(\"multimedia\")\n Call<MultimediaPostResponse>\n postMultimedia(@Body MultimediaBody multimediaBody);\n}", "public interface RESTService {\n\n /**\n * Check Voter Services\n **/\n\n //TODO to check this is work or not\n //@GET(Config.REGISTER) Call<User> registerUser(@Header(\"uuid\") String uuid,\n // @QueryMap Map<String, String> body);\n\n @GET(Config.REGISTER) Call<User> registerUser(@QueryMap Map<String, String> body);\n\n /**\n * Maepaysoh services\n **/\n\n //candidate\n @GET(Config.CANDIDATE_LIST_URL) Call<CandidateListReturnObject> getCandidateList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.CANDIDATE_URL + \"/{id}\") Call<JsonObject> getCandidate(@Path(\"id\") String id,\n @QueryMap Map<String, String> optionalQueries);\n\n //geo location\n @GET(Config.GEO_LOCATION_URL) Call<GeoReturnObject> getLocationList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.GEO_LOCATION_SEARCH) Call<JsonObject> searchLocation(\n @QueryMap Map<String, String> optionalQueries);\n\n //party\n @GET(Config.PARTY_LIST_URL) Call<PartyReturnObject> getPartyList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.PARTY_LIST_URL + \"/{id}\") Call<JsonObject> getPartyDetail(@Path(\"id\") String id);\n\n //OMI service\n @GET(Config.MOTION_DETAIL_URL) Call<JsonObject> getMotionDetail(@Query(\"mpid\") String mpId);\n\n @GET(Config.MOTION_COUNT) Call<JsonObject> getMotionCount(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_DETAIL_URL) Call<JsonObject> getQuestionDetail(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_COUNT) Call<JsonObject> getQuestionCount(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_MOTION) Call<JsonObject> getQuestionAndMotion(@Query(\"mpid\") String mpId);\n\n @GET(Config.COMPARE_QUESTION) Call<JsonElement> getCompareQuestion(\n @Query(\"first\") String first_candidate_id, @Query(\"second\") String second_candidate_id);\n\n @GET(Config.CANDIDTE_AUTO_SEARCH) Call<ArrayList<CandidateSearchResult>> searchCandidate(\n @Query(\"q\") String keyWord, @QueryMap Map<String, Integer> options);\n\n @GET(Config.CANDIDATE_COUNT) Call<JsonObject> getCandidateCount(@Query(\"party\") String party_id);\n\n @GET(Config.CURRENT_COUNT) Call<JsonObject> getCurrentCount();\n\n @GET(Config.FAQ_LIST_URL) Call<FAQListReturnObject> listFaqs(\n @QueryMap Map<String, String> options);\n\n @GET(Config.FAQ_SEARCH) Call<FAQListReturnObject> searchFaq(@Query(\"q\") String keyWord,\n @QueryMap Map<String, String> options);\n\n @GET(\"/faq/{faq_id}\") Call<FAQDetailReturnObject> searchFaqById(@Path(\"faq_id\") String faqId,\n @QueryMap Map<String, String> options);\n\n @GET(Config.APP_VERSIONS) Call<JsonObject> checkUpdate();\n}", "public void service(){\n Serv_ID = 0;\n Serv_Emp_ID = 0;\n Serv_Event_ID = 0;\n Serv_Grant_ID = 0;\n Serv_Proj_ID = 0;//add project creation\n Serv_Date = \"currrent_date\";\n Serv_Type = \"\";\n Serv_Desc = \"\";\n Serv_Mon_Val = 0.00;\n Serv_Hours = 0;\n }", "private static void startService() {\n //noinspection deprecation\n setPort(configuration.getPort());\n get(\":version/route/:user\", (request, response) -> {\n try {\n String apiVersion = request.params(\":version\");\n String user = request.params(\":user\");\n String version = request.headers(\"version\"); \n if (!isValidApiVersion(apiVersion)) {\n response.status(400);\n return new RouteResponse(\"Wrong API version\", \"400\", \"\");\n }\n return new RouteResponse(splitter.getGroupForUser(user)); // no overhead measured compared to using string concat or StringBuilder\n } catch (Exception e) {\n logger.error(\"Problem serving the request.\", e);\n response.status(500);\n return new RouteResponse(e.getMessage(), \"500\", \"\");\n }\n }, new JsonTransformer());\n }", "@Local\npublic interface CobranzaServiceLocal {\n\n ResumenInicialVO getCarteraPorTramos(List<Object[]> resultList);\n\n Response obtenerDocumentosSAP(Request request);\n\n Response getCargosSAP(Request request);\n}", "public ServicioUjaPack() {\n }", "@Override\n public Call<PrivacidadResponse> devuelveAviso(ServerRequest request) {\n SecurityItems securityItems=getInstanceToken();\n request.setIdNumEmpleado(securityItems.getIdEmployEncrypt());\n request.setToken(securityItems.getTokenEncrypt());\n return serviceInterface.devuelveAviso(request);\n }", "@Override\n public void run(PuntiSpesaConfig c, Environment e) throws Exception {\n final PuntiSpesa ps = new PuntiSpesa(c.getSaldoIniziale());\n \n // Registrazione della risorsa \"ps\" sul server di esecuzione\n e.jersey().register(ps);\n \n }", "public interface SuperviseMatterService extends Serializable, Tools {\n\n /**\n * 同意督办回复\n *\n * @param token\n * @param superviseMatterId\n * @return\n */\n Object approvalSuperviseMatter(String token, String superviseMatterId);\n\n /**\n * 回复督办事项\n *\n * @param token\n * @param variables\n * @return\n */\n Object replySuperviseMatter(String token, Map variables);\n\n /**\n * 选择反馈方式\n *\n * @param feedbackMode\n * @param token\n * @return\n */\n Object choiceFeedbackMode(String superviseMatterId, Integer feedbackMode, String token);\n\n /**\n * 确认督办\n *\n * @param token\n * @param variables\n * @return\n */\n Object confirm(String token, Map variables);\n\n /**\n * 获取督办事项详情\n *\n * @param token\n * @param superviseMatterId\n * @return\n */\n Object getSuperviseMatter(String token, String superviseMatterId);\n\n /**\n * 督办事项列表\n *\n * @param token\n * @param page\n * @param number\n * @return\n */\n Object listSuperviseMatter(String token, String action, Boolean value, int page, int number);\n\n /**\n * 获取督办事件 表单\n *\n * @param token\n * @return\n */\n Object getSuperviseMatterFromData(String token);\n\n /**\n * 上报督办事件\n *\n * @param token\n * @param taskForm\n * @return\n */\n Object saveSuperviseMatter(String token, Map taskForm);\n\n /**\n * 读取文件信息\n *\n * @param file\n * @return\n */\n default StringBuffer getFormData(File file) {\n BufferedReader bufferedReader = null;\n StringBuffer stringBuffer = new StringBuffer();\n try {\n bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(file), \"utf-8\"));\n String line = null;\n while (null != (line = bufferedReader.readLine())) {\n stringBuffer.append(line);\n }\n } catch (Exception exception) {\n exception.printStackTrace();\n } finally {\n if (null != bufferedReader) {\n try {\n bufferedReader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return stringBuffer;\n }\n }\n}", "public void registrarPreguntaRespuesta() throws SolrServerException, IOException{\n \tregistrarBaseDatosRedis(); //Registra en la base de datos.\n \tregistrarEnWatson(); // Entrena el servicio de watson.\n }", "void publish();", "private static interface Service {}", "public interface LogisticsDataApi {\n\n\n /**\n * 用户类型:-1用户, 0-咨询会员,1-交易会员,2-商家会员\n * 会员认证 状态: 0 -未认证, 1 -已认证\n * 会员锁定 状态: 0 -正常, 1 -锁定, 2 -注销\n * /member/query_type_new?token GET 用户类型\n */\n @GET(\"member/query_type_new\")\n Observable<UserTypeData> getUserType(@Query(\"token\") String token);\n\n /**\n * 发布求购 publish\n *\n * 收货信息 member/get_member_delivery_address?token 取默认地址 / 没有默认取第一条\n *\n * 原料品名 baseData/query_breed?keyword\n * 原料牌号 baseData/query_spec?keyword & code // code 为 breed code\n * 生产厂家 baseData/query_brand?keyword\n *\n * 提交 求购数据 member/publish_buy - post reference: class: MemberPurchaseDTOs\n */\n\n\n // 收货地址\n @GET(\"member/get_member_delivery_address\")\n Observable<PublishData.AddressData> getAddressData(@Query(\"token\") String token);\n\n // breed\n @GET(\"baseData/query_breed\")\n Observable<PublishData> getBreedData(@Query(\"keyword\") String keyword);\n // spec\n @GET(\"baseData/query_spec\")\n Observable<PublishData> getSpecData(@Query(\"keyword\") String keyword,\n @Query(\"code\") String breedCode);\n // brand\n @GET(\"baseData/query_brand\")\n Observable<PublishData.PublishBrandData> getBrandData(@Query(\"keyword\") String keyword);\n\n\n\n // 提交 求购数据 post Content-Type为application/json todo\n @POST(\"member/publish_buy\")\n Observable<VerifyData> postPurchaseData(@Body RequestBody requestBody);\n\n\n /**\n * 发布求购 publish - 收货地址 新增/编辑 get\n @\"/member/save_member_delivery_address\" // 新增收货信息\n @\"/member/update_member_delivery_address\" // 编辑收货信息\n */\n // 新增收货信息\n @GET(\"member/save_member_delivery_address\")\n Observable<VerifyData> getSaveAddressData(\n @Query(\"token\") String token,\n @Query(\"address\") String address,\n @Query(\"contactName\") String contactName,\n @Query(\"mobile\") String mobile,\n @Query(\"isDefault\") String isDefault,\n @Query(\"provinceCode\") String provinceCode,\n @Query(\"provinceName\") String provinceName,\n @Query(\"cityCode\") String cityCode,\n @Query(\"cityName\") String cityName,\n @Query(\"districtCode\") String districtCode,\n @Query(\"districtName\") String districtName\n );\n\n // 修改收货信息 (memberDeliveryAddressId 新增地址没有此参数)\n @GET(\"member/update_member_delivery_address\")\n Observable<VerifyData> getUpdateAddressData(\n @Query(\"token\") String token,\n @Query(\"address\") String address,\n @Query(\"contactName\") String contactName,\n @Query(\"mobile\") String mobile,\n @Query(\"isDefault\") int isDefault,\n @Query(\"provinceCode\") String provinceCode,\n @Query(\"provinceName\") String provinceName,\n @Query(\"cityCode\") String cityCode,\n @Query(\"cityName\") String cityName,\n @Query(\"districtCode\") String districtCode,\n @Query(\"districtName\") String districtName,\n @Query(\"memberDeliveryAddressId\") String memberDeliveryAddressId\n );\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n /**\n * purchase\n * member/purchase_pool?token 求购池数据\n * member/my_purchase_list?token 我的求购\n * shop/my_quote_list?token 我的报价\n */\n @GET(\"member/purchase_pool\")\n Observable<PurchaseData> getPurchasePoolData(@Query(\"token\") String token,\n @Query(\"pageNum\") int pageNum,\n @Query(\"pageSize\") int pageSize);\n\n\n @GET(\"member/my_purchase_list\")\n Observable<PurchaseData> getMyPurchaseData(@Query(\"token\") String token,\n @Query(\"pageNum\") int pageNum,\n @Query(\"pageSize\") int pageSize);\n\n @GET(\"shop/my_quote_list\")\n Observable<PurchaseData> getMyQuoteData(@Query(\"token\") String token,\n @Query(\"pageNum\") int pageNum,\n @Query(\"pageSize\") int pageSize);\n\n /**\n * member/purchase_quote_list?token&memberPurchaseId 求购报价详情\n * shop/my_quote_detail?quoteId&token 报价详情\n */\n\n @GET(\"member/purchase_quote_list\")\n Observable<PurchaseQuoteData> getMyPurchaseDetailData(@Query(\"token\") String token,\n @Query(\"memberPurchaseId\") String memberPurchaseId);\n\n @GET(\"shop/my_quote_detail\")\n Observable<QuoteDetailData> getMyQuoteDetailData(@Query(\"token\") String token,\n @Query(\"quoteId\") String quoteId);\n\n\n /**\n * member/member_review_quote ?token&sellMemberQuoteId& reviewNote 买家复议\n * shop/sell_review_quote ? token& quoteId& price 卖家复议\n */\n\n @GET(\"member/member_review_quote\")\n Observable<VerifyData> getPurchaseReviewData(@Query(\"token\") String token,\n @Query(\"sellMemberQuoteId\") String sellMemberQuoteId,\n @Query(\"reviewNote\") String reviewNote);\n\n @GET(\"shop/sell_review_quote\")\n Observable<VerifyData> getQuoteReviewData(@Query(\"token\") String token,\n @Query(\"quoteId\") String quoteId,\n @Query(\"price\") String price);\n\n\n /** 商家报价\n * baseData/query_like_warehouse?companyShortName 模糊搜索仓库\n * baseData/query_warehouse?companyShortName 精准搜索仓库 1.创建新仓库校验 2.选择历史\n * shop/sell_price 报价 - 提交报价数据 post\n */\n\n @GET(\"baseData/query_like_warehouse\")\n Observable<WarehouseData> getFuzzyWarehouseData(@Query(\"companyShortName\") String companyShortName);\n\n @GET(\"baseData/query_warehouse\")\n Observable<WarehouseData.WarehouseCheckData> getWarehouseData(@Query(\"companyShortName\") String companyShortName);\n\n\n // 提交报价数据 post todo\n @FormUrlEncoded\n @POST(\"shop/sell_price\")\n Observable<VerifyData> postQuoteData(\n @Field(\"token\") String token,\n @Field(\"memberPurchaseId\") long memberPurchaseId,\n @Field(\"price\") double price,\n @Field(\"isSupplierDistribution\") int isSupplierDistribution, // 0 - no ; 1 - yes;\n @Field(\"deliveryDate\") String deliveryDate,\n @Field(\"warehouse\") String warehouse // warehouse json\n );\n\n\n\n\n\n\n /**\n * logistics\n * /app/logistics/from_address 出发地\n * /app/logistics/to_address?provFrom&cityFrom&distinctFrom 目的地\n * /app/logistics/query_price?provFrom&cityFrom&distinctFrom&provTo&cityTo&distinctTo&amount 价格\n * @return\n */\n\n // 出发地\n @GET(\"logistics/from_address\")\n Observable<LogisticsCityData> getFromData();\n\n // 目的地\n @GET(\"logistics/to_address\")\n Observable<LogisticsCityData> getDestinationData(@Query(\"provFrom\") String provFrom,\n @Query(\"cityFrom\") String cityFrom,\n @Query(\"distinctFrom\") String distinctFrom\n );\n\n // 价格\n @GET(\"logistics/query_price\")\n Observable<LogisticsResultData> getPriceData(@Query(\"provFrom\") String provFrom,\n @Query(\"cityFrom\") String cityFrom,\n @Query(\"distinctFrom\") String distinctFrom,\n @Query(\"provTo\") String provTo,\n @Query(\"cityTo\") String cityTo,\n @Query(\"distinctTo\") String distinctTo,\n @Query(\"amount\") int amount\n );\n\n\n /**\n * 一键下单页面计算:\n 采购单价:求购报价的价格;\n 运费单价:求购报价的运费单价;(非供配情况下,选择自提,重置为0)\n 资金服务费利率:未认证会员为0;\n 账期:使用授信(部分授信,或全部授信)默认为最大账期天数;款到发货,账期为0;\n\n 选择账期后计算-----------------------------------------------------\n\n 1.资金服务费 =(采购单价+运费单价)*数量*资金服务费利率*账期\n\n * 全部授信- 资金服务费 =(采购单价+运费单价)*数量*资金服务费利率*账期\n * 部分授信- 资金服务费 = 授信额度(自填)*资金服务费利率*账期\n\n\n 2.销售总货款 =(采购单价+运费单价)*数量 + 资金服务费\n\n 3.采购总货款 = 采购单价*数量\n\n 4.物流总货款 = 运费单价*数量\n\n 5.销售单价 = 销售总货款/数量\n\n\n 6.使用授信(授信金额)\n 全部授信-使用授信 =(采购单价+运费单价)* 数量 + 资金服务费\n 部分授信-使用授信 = 授信额度(自填);\n 款到发货-使用授信 = 0;\n\n 7.手续费 = 销售总货款*0.3%\n *\n * /member/purchase_check_create_order?token \t\t\t\t 检验能否一键下单\n * /member/query_purchase_create_order_details?token&quoteId 确认订单\n */\n\n // 检验能否一键下单\n @GET(\"member/purchase_check_create_order\")\n Observable<VerifyData> getOrderCheckData(@Query(\"token\") String token);\n\n // 确认订单\n @GET(\"member/query_purchase_create_order_details\")\n Observable<OrderConfirmData> getOrderConfirmData(@Query(\"token\") String token,\n @Query(\"quoteId\") String quoteId);\n\n /**\n * 保证金\n * order/check_deposit?token & receivableWay\n */\n @GET(\"order/check_deposit\")\n Observable<VerifyData> getCheckDepositData(@Query(\"token\") String token,\n @Query(\"receivableWay\") String receivableWay);\n\n /**\n * private Long memberPurchaseId = 0L;\t\t\t\t\t\t// 会员求购单Id\n private Long sellMemberQuoteId = 0L;\t\t\t\t\t // 报价单Id\n\n private Double saleSumQty = 0D;\t\t\t\t\t\t\t// 销售总重量\n private Double saleSumAmt = 0D;\t\t\t\t\t\t\t// 销售总金额\n private Double purchaseSumQty = 0D;\t\t\t\t\t\t// 采购总重量\n private Double purchaseSumAmt = 0D;\t\t\t\t\t\t// 采购总金额\n private Double logisticsSumCost = 0D;\t\t\t\t\t // 物流总货款\n private Double salePrice = 0D;\t\t\t\t\t\t\t // 销售单价\n\n private Integer distributionWay = 0;\t\t\t\t\t// 配送方式 0-供方配送 1-自提 2-平台配送\n private String deliveryDate = \"\";\t\t\t\t\t\t// 交货日期\n private Integer receivableWay = 0;\t\t\t\t\t\t// 结算方式 0-全额授信 1-部分授信 2-款到发货\n private Double creditAmount = 0D;\t\t\t\t\t\t// 授信金额\n private Integer receivableDay = 0;\t\t\t\t\t\t// 货到收款天数- 账期\n\n private String packagSpec = \"\";\t\t\t\t\t\t// 包装规格\n\n private Double memberMoneyRate = 0D;\t\t\t\t\t// 服务费利率\n private\tDouble serviceAmt = 0D;\t\t\t\t\t\t// 服务费\n */\n /**\n * /order/purchase_save_sale_order // 一键下单 todo\n */\n @FormUrlEncoded\n @POST(\"order/purchase_save_sale_order\")\n Observable<VerifyData> postOrderData(@Field(\"token\") String token,\n @Field(\"memberPurchaseId\") Long memberPurchaseId,\n @Field(\"sellMemberQuoteId\") Long sellMemberQuoteId,\n @Field(\"saleSumQty\") Double saleSumQty,\n @Field(\"saleSumAmt\") Double saleSumAmt,\n @Field(\"purchaseSumQty\") Double purchaseSumQty,\n @Field(\"purchaseSumAmt\") Double purchaseSumAmt,\n @Field(\"logisticsSumCost\") Double logisticsSumCost,\n @Field(\"salePrice\") Double salePrice,\n @Field(\"distributionWay\") int distributionWay,\n @Field(\"deliveryDate\") String deliveryDate,\n @Field(\"receivableWay\") int receivableWay,\n @Field(\"creditAmount\") Double creditAmount,\n @Field(\"receivableDay\") int receivableDay,\n @Field(\"packagSpec\") String packagSpec,\n @Field(\"memberMoneyRate\") Double memberMoneyRate,\n @Field(\"serviceAmt\") Double serviceAmt);\n\n\n\n\n\n /**\n * OrderFragment 订单列表\n * @param token\n * @param subStatus\n * 10-待审核 12-待支付手续费 11-待上传采购合同\n * 20-待收款 30-待付款 40-待发货 50-待确认收货\n * 90-交易失败 100-待开票? 101-待开票审核? 102-交易成功\n */\n @GET(\"order/query_order_list\")\n Observable<OrdersData> getOrderData(@Query(\"token\") String token,\n @Query(\"subStatus\") String subStatus,\n @Query(\"pageNum\") int pageNum,\n @Query(\"pageSize\") int pageSize);\n\n /**\n * 订单详情\n * order/query_order_detail?token&orderId\n */\n @GET(\"order/query_order_detail\")\n Observable<OrderDetailData> getOrderDetailData(@Query(\"token\") String token,\n @Query(\"orderId\") String orderId);\n\n /**\n * 支付手续费\n * order/member_purchase_alipay_create?token&orderSn&goodsAmount 支付宝 todo\n * order/member_purchase_wx_create?token&orderSn&goodsAmount 微信 todo\n * private String operateStatus;\t// 操作状态 null没有; A0-支付手续费; A1-开票申请; A2-申请展期\n */\n\n // 支付宝支付\n @FormUrlEncoded\n @POST(\"order/member_purchase_alipay_create\")\n Observable<OrderData> postAliPayData(@Field(\"token\") String token,\n @Query(\"orderId\") String orderId,\n @Field(\"orderSn\") String orderSn,\n @Field(\"goodsAmount\") String goodsAmount);\n\n\n\n // 微信支付\n @FormUrlEncoded\n @POST(\"order/member_purchase_wx_create\")\n Observable<OrderPayData> postWeChatPayData(@Field(\"token\") String token,\n @Query(\"orderId\") String orderId,\n @Field(\"orderSn\") String orderSn,\n @Field(\"goodsAmount\") String goodsAmount);\n\n /**\n * rder/query_extends_days_detail?orderId&token 展期详情\n * order/save_extends_days 申请展期\n */\n @GET(\"order/query_extends_days_detail\")\n Observable<ExtensionData> getExtensionData(@Query(\"token\") String token,\n @Query(\"orderId\") String orderId);\n\n /**\n * order/save_extends_days 申请展期\n * private String token ;\n private Long orderId = 0L; // 订单Id\n private String contractCode = \"\"; // 关联合同号\n private Double amount = 0D; // 金额\n private Integer days = 0; // 天数\n private String note = \"\"; // 备注\n */\n\n @FormUrlEncoded\n @POST(\"order/save_extends_days\")\n Observable<VerifyData> postExtensionData(@Field(\"token\") String token,\n @Query(\"orderId\") long orderId,\n @Field(\"contractCode\") String contractCode,\n @Field(\"amount\") double amount,\n @Field(\"days\") int days,\n @Field(\"note\") String note);\n\n}", "public interface SaludaService{\n public String saluda(String nombre);\n}", "private void reposicionarPersonajes() {\n // TODO implement here\n }", "@GET\n\t@Produces({ MediaType.APPLICATION_JSON })\n\tpublic Response getServiciosDeAlojamiento() {\n\n\t\ttry {\n\t\t\tAlohAndesTransactionManager tm = new AlohAndesTransactionManager(getPath());\n\n\t\t\tList<ServicioDeAlojamiento> serviciosDeAlojamiento;\n\t\t\tserviciosDeAlojamiento = tm.getAllServiciosDeAlojamiento();\n\t\t\treturn Response.status(200).entity(serviciosDeAlojamiento).build();\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\treturn Response.status(500).entity(doErrorMessage(e)).build();\n\t\t}\n\t}", "Fog_Services createFog_Services();", "public interface TravelApiService {\n @GET(\"api/users/{userCode}/travels\")\n Call<List<Travel>> getTravel(@Path(value = \"userCode\") String userCode);\n\n @POST(\"api/users/{userCode}/travels\")\n Call<PostTravelGsonResponce> postTravel(@Path(value = \"userCode\") String userCode, @Field(\"travel_date\") String travelDate, @Field(\"latitude\") Double latitude, @Field(\"longitude\") Double longitude, @Field(\"area_name\") String areaName, @Field(\"contry_name\") String countryName, @Field(\"token\") String token);\n}", "public interface TransacaoService {\n\n List<TransacaoDTO> getAll();\n List<TransacaoDTO> getByCliente(String cpf);\n TransacaoDTO salvarTransacao(CreateTransacaoDTO createTransacaoDTO);\n TransacaoDTO atualizarTransacao(Integer id, TransacaoDTO transacaoDTO);\n void deletarTransacao( Integer id);\n InputStreamResource getExtrato(String cpf) throws IOException;\n InputStreamResource getExtratoByCartao(Integer id) throws IOException;\n}", "public static void initService() {\n Retrofit retrofit = new Retrofit.Builder().baseUrl(\"http://166.111.68.66:2042/news/\")\n .addConverterFactory(new Converter.Factory() {\n Gson gson = new Gson();\n\n @Override\n public Converter<ResponseBody, ?> responseBodyConverter(final Type type, final Annotation[] annotations, Retrofit retrofit) {\n return new Converter<ResponseBody, Object>() {\n @Override\n public Object convert(ResponseBody value) throws IOException {\n try {\n return gson.getAdapter(TypeToken.get(type)).fromJson(value.charStream());\n } finally {\n value.close();\n }\n }\n };\n }\n }).build();\n newsdetailHttpService = retrofit.create(GetNewsDetailService.NewsDetailHttpService.class);\n }", "public interface IServicio {\n\n\tpublic String operacion();\n}", "public interface PacienteService {\n @GET(\"/paciente\")\n void getAllPatients(Callback<List<Paciente>> cb);\n\n @GET(\"/paciente/{pacienteIdTel}/\")\n void getPatientId(@Path(\"pacienteIdTel\") String id, Callback<Paciente> cb);\n\n @GET(\"/paciente/tutor/{tutorId}/\")\n void getPatientByTutor(@Path(\"tutorId\") int id, @Header(\"ACCESS_TOKEN\") String token, Callback<List<Paciente>> cb);\n}", "public interface NewsService {\n @GET(\"v1/sources?language=en\")\n Call<WebSite> getSources();\n}", "public List<GrupoLocalResponse> buscarTodos();", "public interface IProInventoryLogService {\r\n\r\n PageResponse<List<TWmsProInventoryLogEntity>> getProInventoryList(TWmsProInventoryLogDTO proInventoryLogDTO, DbShardVO dbShardVO);\r\n\r\n MessageResult createProInventoryLog(TWmsProInventoryLogEntity proInventoryLogEntity,DbShardVO dbShardVO);\r\n}", "public interface ApiInterface {\n\n @GET(\"{poblacion}.xml\")\n Call<Escrutinio_sitio> getPoblacionData(@Path(\"poblacion\") String poblacion);\n\n }", "String serviceEndpoint();", "public interface PlatformAdvertisingService{\r\n\r\n /**\r\n * 查询广告位\r\n * @param query\r\n * @return\r\n */\r\n public List<AdvertisingPosition> getAdList (PlatformAdvertisingServiceQuery query) throws Exception;\r\n\r\n /**\r\n * 启用、禁用 广告位\r\n * @param query\r\n */\r\n public void enabledAd (PlatformAdvertisingServiceQuery query) throws Exception;\r\n\r\n /**\r\n * 获取广告位\r\n * @param query\r\n * @return\r\n */\r\n public AdvertisingPosition getAdInfo (PlatformAdvertisingServiceQuery query) throws Exception;\r\n\r\n /**\r\n * 保存广告位\r\n * @param query\r\n */\r\n public void saveAdInfo (PlatformAdvertisingServiceQuery query) throws Exception;\r\n\r\n /**\r\n * 编辑广告位\r\n * @param query\r\n */\r\n public void editAdInfo (PlatformAdvertisingServiceQuery query) throws Exception;\r\n\r\n /**\r\n * 排序广告位\r\n */\r\n public void sortAd (PlatformAdvertisingServiceQuery query) throws Exception;\r\n}", "public ServicePatente() {\n this.success = false;\n // instanciando dao\n this.daoPatente = \n new br.com.ifba.scop.patente.dao.DAOPatente();\n }", "public interface WikiAPIService {\n\n // Set a constant of links limits.\n int titleLimits = 200;\n\n /**\n * GET HTTP function to return Wiki extracts from url. Query parameter for the title of\n * the article is added to the function via the @Query annotation. The rest of query\n * parameters are hard-coded since they are always needed.\n *\n * The query parameter 'titles' are added in a {Title1}|{Title2}|...etc. format.\n */\n @GET(\"w/api.php?action=query\" +\n // Retrieve extracts and thumbnail image associated with article\n \"&prop=extracts|pageimages\" +\n \"&redirects\" +\n // Return extract in plain text (Boolean)\n \"&explaintext=1\" +\n // Return only the intro section (Boolean)\n \"&exintro=1\" +\n // Return the page ids as a list\n \"&indexpageids\" +\n // The max width of the thumbnail.\n \"&pithumbsize=1080\" +\n // Return in a JSON format.\n \"&format=json\" +\n // Return new json format with proper page array.\n \"&formatversion=2\")\n Call<WikiExtractsJSONResponse> requestExtracts(@Query(\"titles\") String titles);\n\n /**\n * GET HTTP function to return a number of featured Wikipedia link titles. These\n * link titles will be chosen at random to then be inserted into the requestExtracts()\n * function that will bring the extracts of these titles.\n */\n @GET(\"w/api.php?action=query\" +\n // Retrieve title links\n \"&prop=links\" +\n // Retrieve links in the main page\n \"&titles=メインページ\" +\n // Only return articles (Not users or meta pages)\n \"&plnamespace=0\" +\n // Return a limit number defined in companion object\n \"&pllimit=\" + titleLimits +\n // Return in json format\n \"&format=json\" +\n // Return new json format\n \"&formatversion=2\")\n Call<WikiTitlesJSONResponse> requestDailyTitles();\n}", "public interface Client {\n \n /**\n * Get the unique id of current client.\n *\n * @return id of client\n */\n String getClientId();\n \n /**\n * Whether is ephemeral of current client.\n *\n * @return true if client is ephemeral, otherwise false\n */\n boolean isEphemeral();\n \n /**\n * Set the last time for updating current client as current time.\n */\n void setLastUpdatedTime();\n \n /**\n * Get the last time for updating current client.\n *\n * @return last time for updating\n */\n long getLastUpdatedTime();\n \n /**\n * Add a new instance for service for current client.\n *\n * @param service publish service\n * @param instancePublishInfo instance\n * @return true if add successfully, otherwise false\n */\n boolean addServiceInstance(Service service, InstancePublishInfo instancePublishInfo);\n \n /**\n * Remove service instance from client.\n *\n * @param service service of instance\n * @return instance info if exist, otherwise {@code null}\n */\n InstancePublishInfo removeServiceInstance(Service service);\n \n /**\n * Get instance info of service from client.\n *\n * @param service service of instance\n * @return instance info\n */\n InstancePublishInfo getInstancePublishInfo(Service service);\n \n /**\n * Get all published service of current client.\n *\n * @return published services\n */\n Collection<Service> getAllPublishedService();\n \n /**\n * Add a new subscriber for target service.\n *\n * @param service subscribe service\n * @param subscriber subscriber\n * @return true if add successfully, otherwise false\n */\n boolean addServiceSubscriber(Service service, Subscriber subscriber);\n \n /**\n * Remove subscriber for service.\n *\n * @param service service of subscriber\n * @return true if remove successfully, otherwise false\n */\n boolean removeServiceSubscriber(Service service);\n \n /**\n * Get subscriber of service from client.\n *\n * @param service service of subscriber\n * @return subscriber\n */\n Subscriber getSubscriber(Service service);\n \n /**\n * Get all subscribe service of current client.\n *\n * @return subscribe services\n */\n Collection<Service> getAllSubscribeService();\n \n /**\n * Generate sync data.\n *\n * @return sync data\n */\n ClientSyncData generateSyncData();\n \n /**\n * Whether current client is expired.\n *\n * @param currentTime unified current timestamp\n * @return true if client has expired, otherwise false\n */\n boolean isExpire(long currentTime);\n \n /**\n * Release current client and release resources if neccessary.\n */\n void release();\n \n /**\n * Recalculate client revision and get its value.\n * @return recalculated revision value\n */\n long recalculateRevision();\n \n /**\n * Get client revision.\n * @return current revision without recalculation\n */\n long getRevision();\n \n /**\n * Set client revision.\n * @param revision revision of this client to update\n */\n void setRevision(long revision);\n \n}", "public interface IPaymentService {\r\n\r\n\r\n\r\n\t/**\r\n\t * Metodo que permite hacer le pago por PSE\r\n\t * @return factura de la factura generada\r\n\t */\r\n\tpublic FacturaCompra pagoPSE(String userName,TipoMoneda tipoMoneda);\r\n\t\r\n\t\r\n\t/**\r\n\t * Metodo que permite hacer le pago por PSE\r\n\t * @return factura de la factura generada\r\n\t */\r\n\tpublic FacturaCompra pagoCreditCard(String userName,TipoMoneda tipoMoneda);\r\n\t\r\n\t/**\r\n\t * Metodo que permite realizar el pago \r\n\t * mediante efectivo en un punto de pago\r\n\t * @return\r\n\t */\r\n\tpublic FacturaCompra cashOnDelivery(String userName,TipoMoneda tipoMoneda);\r\n\t\r\n}", "public MercadoPagoAPI() {\n\t\tsuper();\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(HEADER_AUTHORIZATION, authorizationToken);\n\t\theaders.set(HEADER_CONTENT_TYPE, JSON_CONTENT_TYPE);\n\t\tHEADER = new HttpEntity<Object>(headers);\n\t}", "public AjusteSaldoAFavorRespuesta() {\n\t}", "private void ConsumirWS() {\n String url = \"https://pixabay.com/api/?key=12544769-ce772d6f6df4078b74b23c3cf&q=yellow+flowers&image_type=photo\";\n //Instanciar el objeto request para que sea agregado\n // a la cola de requests.\n JsonObjectRequest request = new JsonObjectRequest(\n Request.Method.GET, url, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n JSONArray jsonArray =\n response.getJSONArray(\"hits\");\n for(int i = 0; i < jsonArray.length(); i++){\n JSONObject objImagen\n = jsonArray.getJSONObject(i);\n vDatos.add(new Animales(objImagen.getString(\"user\"),\n objImagen.getString(\"webformatURL\")));\n\n }\n adapter.agregarElemento(vDatos);\n\n }catch (JSONException ex){\n ex.printStackTrace();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n\n }\n }\n );\n mQueue.add(request);\n }", "public interface ConsultarExpedienteService {\n \n DyctContribuyenteDTO buscarNumcontrol(String numControl); \n \n DeclaracionConsultarExpedienteVO buscarOrigenSaldo(String numControl); \n \n ExpedienteDTO buscarExpedienteNumControl(String noControl);\n \n TramiteCortoDTO buscaNumeroControl(String noControl, String rfc);\n \n TramiteCortoDTO buscaNumeroControl(String noControl);\n \n List<DocumentoReqDTO> buscaDocumentoRequerido (String numControl);\n \n List<SolicitudAdministrarSolVO> selecXNumControlEstAprobado(String numControl);\n\n void actualizarFolioNYVFechaNoti(String numControlDoc, String numControl, String folio, String fecha) throws SIATException;\n \n}", "@Override\n protected ProdutoServicoImpl getservice() {\n return produtoService;\n }", "public interface IEtapaService {\n Etapa save(Etapa etapa);\n\n List<EtapaARealizar> tareasProximas();\n}", "public interface APIService {\n\n\t@POST(Configs.ApiConfig.VIDEO_LINK)\n\tObservable<BaseResponse> getAllVedioBy(@Body boolean once_no);\n}", "@Remote\npublic interface IRClienteWSAXIS {\n\n /**\n * Realiza la invocacion con el WebService para realizar la registrar la financiacion y obtener el id del convenio\n * \n * @param financiacion\n * datos de la financiacion\n * @return Financiacion con el Numero de axis para Wla financiacion\n * @author julio.pinzon(2016-08-12)\n * @throws CirculemosNegocioException\n */\n public FinanciacionDTO registrarFinanciacion(FinanciacionDTO financiacion) throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para anular la financiacion\n * \n * @param numeroFinanciacion\n * numero del convenio\n * @author julio.pinzon(2016-08-17)\n * @throws CirculemosNegocioException\n */\n public void anularFinanciacion(String numeroFinanciacion) throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para realizar la impugnacion de un comparendo\n * \n * @param comparendo\n * datos del comparendo\n * @param impugnacion\n * datos de la impugnacion\n * @author julio.pinzon(2016-08-17)\n * @throws CirculemosNegocioException\n */\n public void impugnarComparendo(ComparendoDTO comparendo, ProcesoDTO impugnacion) throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para realizar el registro del fallo sobre la impugnacion previa\n * \n * @param fallo\n * datos del fallo\n * @return Nuevo numero de factura\n * @author julio.pinzon(2016-08-17)\n * @param idProceso\n * @param comparendoDTO\n * @throws CirculemosNegocioException\n */\n public Long registrarFalloImpugnacion(FalloImpugnacionDTO fallo, ComparendoDTO comparendoDTO, Long idProceso)\n throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para realizar el registro del numero de coactivo de axis\n * \n * @param coactivoDTO\n * @return CoactivoDTO\n * @throws CirculemosNegocioException\n * @author Jeison.Rodriguez (2016-09-21)\n */\n public CoactivoDTO registarCoactivo(CoactivoDTO coactivoDTO) throws CirculemosNegocioException;\n}", "Collection<Service> getAllPublishedService();", "public interface WebService {\n public void authenticate(User u) throws BaseException;\n\n public Institute getInstituteById(Long id) throws BaseException;\n public List<Institute> getInstitutes() throws BaseException;\n public void addInstitute(Institute i) throws BaseException;\n\n public User register(User u) throws BaseException;\n public User getUserByName(String name);\n public String getNameById(long id) throws BaseException;\n public long getIdByName(User u) throws BaseException;\n public long getInstituteIdByName(User u) throws BaseException;\n\n public List<Subject> getSubjectsByInstitute(Institute i) throws BaseException;\n public Subject getSubjectByName(String name) throws BaseException;\n public void addSubject(Subject s) throws BaseException;\n\n public List<Comment> getCommentsBySubject(Subject s) throws BaseException;\n public void addComment(Comment c) throws BaseException;\n\n\n}", "public interface GerenciaService {\n\n @GET(Constantes.URL_CAPTURA_GERENCIA_LIST)\n Observable<GerenciaResponse> getGerencias (@Query(Constantes.PARAN_DB) String db,\n @Query(Constantes.PARAN_USER) String user,\n @Query(Constantes.PARAN_PASS)String pass,\n @Query(Constantes.PARAN_OPERATION)String operation);\n}", "public interface NewsWebService {\n\n\n @GET(\"v1/banner/2\")\n Call<ResponseBody> getBanner();\n\n @POST(\"v1/news/all\")\n Call<ResponseBody> getNews(@Body RequestBody body);\n\n @GET(\"v1/news/{newsId}\")\n Call<ResponseBody> getNewsDetail(@Path(\"newsId\") Long newsId);\n\n}", "public interface TuduListsWebService {\r\n\r\n /**\r\n * Find all the todo lists for the current user.\r\n */\r\n WsTodoList[] getAllTodoLists();\r\n \r\n /**\r\n * Find all todos from a todo list.\r\n */\r\n WsTodo[] getTodosByTodoList(String listId);\r\n \r\n}", "public interface TipoVehiculoService {\n\n @Headers(\"Cache-Control: max-age=1\") //eso es para limpiar la cache\n @POST(\"tipoVeh\")\n Call<TipoVehiculo> getTiposVeh();\n}", "private ServiceDomains() {\n }", "public interface DatosAPI\n{\n @GET(\"kspt-6t6c.json\")\n Call<List<CentrosAyuda>> obtenerLista();\n}", "public interface ApiService {\n public static final String Base_URL = \"http://ip.taobao.com/\";\n /**\n *普通写法\n */\n @GET(\"service/getIpInfo.php/\")\n Observable<ResponseBody> getData(@Query(\"ip\") String ip);\n\n\n @GET(\"{url}\")\n Observable<ResponseBody> executeGet(\n @Path(\"url\") String url,\n @QueryMap Map<String, String> maps);\n\n\n @POST(\"{url}\")\n Observable<ResponseBody> executePost(\n @Path(\"url\") String url,\n @FieldMap Map<String, String> maps);\n\n /* @Multipart\n @POST(\"{url}\")\n Observable<ResponseBody> upLoadFile(\n @Path(\"url\") String url,\n @Part(\"image\\\\\"; filename=\\\\\"image.jpg\") RequestBody avatar);\n\n @POST(\"{url}\")\n Call<ResponseBody> uploadFiles(\n @Url(\"url\") String url,\n @Part(\"filename\") String description,\n @PartMap() Map<String, RequestBody> maps);*/\n\n}", "private ServicioProductoSingleton() {\n this.listaProductos = new ArrayList<>();\n }", "@Service\r\npublic interface ResearchService {\r\n\r\n public Page<product_research> getResearchPage(Map<String,Object> params);\r\n public Page<product_research> researchProductPageList(Map<String,Object> params);\r\n public List<product_research> getResearchforbaobiao(Map<String,Object> params);\r\n public int research_add(Map<String,Object> params);\r\n public void research_in(Map<String,Object> params);\r\n public void putuAdd(Map<String,Object> params);\r\n public void researchDel(Map<String,Object> params);\r\n public List<Product_sale_detail> venditionSelect(Map<String,Object> params);\r\n public product_research researchSelect(Map<String,Object> params);\r\n public void researchStatusUp(Map<String,Object> params);\r\n\r\n void research_mod(Map<String, Object> params);\r\n /*public List<pss_research_doc> research_putu(Map<String, Object> params);*/\r\n //public void research_putu(Map<String,Object> params);\r\n}", "public interface GoogleApi {\n\n @Headers(\"Content-Type: application/json\")\n @POST(VISION_CLOUD)\n Call<VisionRespose> processImage64(@Header(\"Content-Length\") String bodyLength, @Query(\"key\") String apiKey, @Body VisionRequest visionRequest);\n\n @Headers(\"Content-Type: application/json\")\n @POST(VISION_CLOUD)\n Call<LogoResponse> processLogoImage64(@Header(\"Content-Length\") String bodyLength, @Query(\"key\") String apiKey, @Body VisionRequest visionRequest);\n\n @Headers(\"Content-Type: application/json\")\n @GET(TRANSLATION_CLOUD)\n Call<TranslationResponse> translateQuery(@Query(\"key\") String apiKey, @Query(\"source\") String source, @Query(\"target\") String target, @Query(\"q\") List<String> queries);\n}", "private DemoProcessStartEmailForWebservice() {\n\n }", "public interface SinaApiService {\n\n @GET(\"cgi-bin/pitu_open_access_for_youtu.fcg\")\n Observable<MoveListBean> faceMerge(@Header(\"Authorization\") String appSign,\n @Body RequestBody body);\n}", "private APIClient() {\n }", "@Override\n public void onSuccess(DocumentReference documentReference) {\n Toast.makeText(getApplicationContext(), \"Servicio agregado correctamente\",Toast.LENGTH_SHORT).show();\n\n }", "@WebService(name = \"UtenteServant\", targetNamespace = \"http://utente.servant.car2go.it/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface UtenteServant {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"verificaPresenzaUsername\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.VerificaPresenzaUsername\")\n @ResponseWrapper(localName = \"verificaPresenzaUsernameResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.VerificaPresenzaUsernameResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/verificaPresenzaUsernameRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/verificaPresenzaUsernameResponse\")\n public boolean verificaPresenzaUsername(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"salvaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.SalvaUtente\")\n @ResponseWrapper(localName = \"salvaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.SalvaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/salvaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/salvaUtenteResponse\")\n public void salvaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Utente arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteByUsernamePassword\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernamePassword\")\n @ResponseWrapper(localName = \"getUtenteByUsernamePasswordResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernamePasswordResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernamePasswordRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernamePasswordResponse\")\n public Utente getUtenteByUsernamePassword(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteByUsername\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsername\")\n @ResponseWrapper(localName = \"getUtenteByUsernameResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernameResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernameRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernameResponse\")\n public Utente getUtenteByUsername(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Ruolo\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRuoloUtenteById\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetRuoloUtenteById\")\n @ResponseWrapper(localName = \"getRuoloUtenteByIdResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetRuoloUtenteByIdResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getRuoloUtenteByIdRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getRuoloUtenteByIdResponse\")\n public Ruolo getRuoloUtenteById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"cancellaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.CancellaUtente\")\n @ResponseWrapper(localName = \"cancellaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.CancellaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/cancellaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/cancellaUtenteResponse\")\n public void cancellaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<it.car2go.servant.utente.Utente>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenti\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenti\")\n @ResponseWrapper(localName = \"getUtentiResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtentiResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtentiRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtentiResponse\")\n public List<Utente> getUtenti();\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteById\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteById\")\n @ResponseWrapper(localName = \"getUtenteByIdResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByIdResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByIdRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByIdResponse\")\n public Utente getUtenteById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<it.car2go.servant.utente.Utente>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"elencoUtentiSemplici\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.ElencoUtentiSemplici\")\n @ResponseWrapper(localName = \"elencoUtentiSempliciResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.ElencoUtentiSempliciResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/elencoUtentiSempliciRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/elencoUtentiSempliciResponse\")\n public List<Utente> elencoUtentiSemplici(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"aggiornaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.AggiornaUtente\")\n @ResponseWrapper(localName = \"aggiornaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.AggiornaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/aggiornaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/aggiornaUtenteResponse\")\n public void aggiornaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Utente arg0);\n\n}" ]
[ "0.6505587", "0.63309026", "0.617812", "0.61716366", "0.60808754", "0.6029637", "0.601492", "0.60091007", "0.59587646", "0.5927493", "0.5894175", "0.58763987", "0.5853098", "0.5845525", "0.58277494", "0.5765692", "0.57619023", "0.57615405", "0.57590187", "0.5757114", "0.5744021", "0.57344556", "0.57046205", "0.5704366", "0.56927854", "0.5692642", "0.56885195", "0.56862015", "0.5678795", "0.5665093", "0.5660004", "0.56491154", "0.56475604", "0.5640398", "0.5615519", "0.56063306", "0.5588908", "0.558283", "0.5575863", "0.5568594", "0.5553794", "0.5539915", "0.5532823", "0.55278224", "0.552161", "0.55213094", "0.5519644", "0.5495453", "0.54930663", "0.54903954", "0.54749787", "0.5470072", "0.5468614", "0.54432887", "0.54426533", "0.5440229", "0.5438066", "0.54320794", "0.54297864", "0.54213375", "0.5417447", "0.54154706", "0.54104996", "0.5409499", "0.5404348", "0.5394729", "0.53932095", "0.5388643", "0.5386136", "0.53857756", "0.53847593", "0.5380912", "0.53777707", "0.5373505", "0.537062", "0.5362821", "0.53625214", "0.53619075", "0.53613865", "0.5359856", "0.53556204", "0.53556055", "0.53534496", "0.5353022", "0.534627", "0.5340963", "0.53389424", "0.5338798", "0.5337923", "0.5333389", "0.53324646", "0.5331272", "0.53269935", "0.532664", "0.5321377", "0.5320717", "0.53189284", "0.53173196", "0.5316204", "0.5315906" ]
0.5544569
41
Este metodo hace la llamada al servicio de publicacion
protected es.pode.publicacion.negocio.servicios.SrvPublicacionService getSrvPublicacionService() { return this.srvPublicacionService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.soa.SolicitarServicioDocument.SolicitarServicio getSolicitarServicio();", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}", "private WebServicesFabrica(){}", "public interface GPAdimWS {\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.provincia\")\n Call<List<Provincia>> listProvincia();\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.especialidad\")\n Call<List<Especialidad>> listEspecialidad();\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.cobertura\")\n Call<List<Cobertura>> listCobertura();\n @Headers({\"Accept: application/json\"})\n @GET(\"webresources/com.gylgroup.gp.medico/byCoberturaProvinciaEspecialidad/{cobertura}/{provincia}/{especialidad}\")\n Call<List<Medico>> listMedico(@Path(\"cobertura\") String cobertura, @Path(\"provincia\") Long provincia, @Path(\"especialidad\") Long especialidad);\n @POST(\"webresources/com.gylgroup.gp.turno\")\n Call<Turno> createTurno(@Body Turno turno);\n}", "private RepositorioOrdemServicoHBM() {\n\n\t}", "public interface MovilizerDistributionService {\n\n // ---------------------------------------------------------------------- Webservice interaction\n\n /**\n * Set systemd Id and password for the request and erases the replies from next response.\n *\n * @param systemId the system id to be set in the request.\n * @param password the password to be set in the request.\n * @param request request to be modified for upload.\n * @return the same request entered in the method parameters but with the credentials and number\n * of replies changed.\n * @since 12.11.1.0\n */\n MovilizerRequest prepareUploadRequest(Long systemId, String password, MovilizerRequest request);\n\n /**\n * Set systemd Id and password for the request and set the number of replies replies from next\n * response.\n *\n * @param systemId the system id to be set in the request.\n * @param password the password to be set in the request.\n * @param numResponses the number of responses to receive in the response.\n * @param request request to be modified for upload.\n * @return the same request entered in the method parameters but with the credentials and number\n * of replies changed.\n * @since 12.11.1.0\n */\n MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);\n\n /**\n * Perform a synchronous request the Movilizer cloud.\n *\n * @param request request to be used in the call.\n * @return the response coming from the cloud with the corresponding acknowledgements, errors,\n * replies and datacontainers.\n * @throws MovilizerWebServiceException when there's connection problems.\n * @since 12.11.1.0\n */\n MovilizerResponse getReplyFromCloudSync(MovilizerRequest request);\n\n /**\n * Perform a synchronous request the Movilizer cloud.\n *\n * @param request request to be used in the call.\n * @param connectionTimeoutInMillis connection timeout to be used in the call.\n * @param receiveTimeoutInMillis receive timeout to be used in the call.\n * @return the response coming from the cloud with the corresponding acknowledgements, errors,\n * replies and datacontainers.\n * @throws MovilizerWebServiceException when there's connection problems.\n * @since 12.11.1.0\n */\n MovilizerResponse getReplyFromCloudSync(MovilizerRequest request,\n Integer connectionTimeoutInMillis,\n Integer receiveTimeoutInMillis);\n\n /**\n * Perform an asynchronous request the Movilizer cloud.\n *\n * @param request request to be used in the call.\n * @return A completable future with the response.\n * @throws MovilizerWebServiceException when there's connection problems.\n * @see CompletableFuture\n * @since 15.11.2.2\n */\n CompletableFuture<MovilizerResponse> getReplyFromCloud(MovilizerRequest request);\n\n /**\n * Perform an asynchronous request the Movilizer cloud.\n *\n * @param request request to be used in the call.\n * @param connectionTimeoutInMillis connection timeout to be used in the call.\n * @param receiveTimeoutInMillis receive timeout to be used in the call.\n * @return A completable future with the response.\n * @throws MovilizerWebServiceException when there's connection problems.\n * @see CompletableFuture\n * @since 12.11.2.2\n */\n CompletableFuture<MovilizerResponse> getReplyFromCloud(MovilizerRequest request,\n Integer connectionTimeoutInMillis,\n Integer receiveTimeoutInMillis);\n\n /**\n * Indicate if the response java instance has errors.\n *\n * @param response the response to be analyzed.\n * @return true in case response has errors else false.\n * @since 12.11.1.3\n */\n Boolean responseHasErrors(MovilizerResponse response);\n\n /**\n * Generate a string with errors.\n *\n * @param response the response that contains the errors.\n * @return string represantion of the errors to use in messages.\n * @since 12.11.1.3\n */\n String responseErrorsToString(MovilizerResponse response);\n\n /**\n * Send all files that has .mxml extension in a folder and subfolders collecting all cloud\n * responses.\n *\n * @param folder to walk for the request files.\n * @return a list with all the cloud responses.\n * @since 15.11.1.5\n */\n List<MovilizerResponse> batchUploadFolderSync(Path folder);\n\n // ----------------------------------------------------------------------------- Document upload\n\n /**\n * Perform a synchronous blob upload to the Movilizer Cloud given the input stream.\n *\n * @param documentInputStream the input stream containing the blob/document to upload.\n * @param filename the name of the file for the document.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @return the upload response with the results of the upload\n * @throws MovilizerWebServiceException when there's connection problems.\n * @see UploadResponse\n * @since 12.11.1.0\n */\n UploadResponse uploadDocumentSync(InputStream documentInputStream, String filename,\n long systemId, String password, String documentPool,\n String documentKey, String language, String ackKey);\n\n /**\n * Perform a synchronous blob upload to the Movilizer Cloud given the path to a file.\n *\n * @param documentFilePath the path to the document file to upload.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @return the upload response with the results of the upload\n * @throws MovilizerWebServiceException when there's connection or file access problems.\n * @see UploadResponse\n * @since 12.11.1.0\n */\n UploadResponse uploadDocumentSync(Path documentFilePath, long systemId, String password,\n String documentPool, String documentKey, String language,\n String ackKey);\n\n /**\n * Perform a synchronous blob upload to the Movilizer Cloud given the input stream.\n *\n * @param documentInputStream the input stream containing the blob/document to upload.\n * @param filename the name of the file for the document.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @param connectionTimeoutInMillis timeout of the request.\n * @return the upload response with the results of the upload\n * @throws MovilizerWebServiceException when there's connection problems.\n * @see UploadResponse\n * @since 12.11.1.2\n */\n UploadResponse uploadDocumentSync(InputStream documentInputStream, String filename,\n long systemId, String password, String documentPool,\n String documentKey, String language, String ackKey,\n Integer connectionTimeoutInMillis);\n\n /**\n * Perform a synchronous blob upload to the Movilizer Cloud given the path to a file.\n *\n * @param documentFilePath the path to the document file to upload.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @param connectionTimeoutInMillis timeout of the request.\n * @return the upload response with the results of the upload\n * @throws MovilizerWebServiceException when there's connection or file access problems.\n * @see UploadResponse\n * @since 12.11.1.2\n */\n UploadResponse uploadDocumentSync(Path documentFilePath, long systemId, String password,\n String documentPool, String documentKey, String language,\n String ackKey, Integer connectionTimeoutInMillis);\n\n /**\n * Perform an asynchronous blob upload to the Movilizer Cloud given the input stream.\n *\n * @param documentInputStream the input stream containing the blob/document to upload.\n * @param filename the name of the file for the document.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @return a future with the upload response.\n * @throws MovilizerWebServiceException when there's connection problems.\n * @see CompletableFuture\n * @see UploadResponse\n * @since 15.11.2.2\n */\n CompletableFuture<UploadResponse> uploadDocument(InputStream documentInputStream,\n String filename, long systemId,\n String password, String documentPool,\n String documentKey, String language,\n String ackKey);\n\n /**\n * Perform an asynchronous blob upload to the Movilizer Cloud given the path to a file.\n *\n * @param documentFilePath the path to the document file to upload.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @return a future with the upload response.\n * @throws MovilizerWebServiceException when there's connection or file access problems.\n * @see CompletableFuture\n * @see UploadResponse\n * @since 15.11.2.2\n */\n CompletableFuture<UploadResponse> uploadDocument(Path documentFilePath, long systemId,\n String password, String documentPool,\n String documentKey, String language,\n String ackKey);\n\n /**\n * Perform an asynchronous blob upload to the Movilizer Cloud given the input stream.\n *\n * @param documentInputStream the input stream containing the blob/document to upload.\n * @param filename the name of the file for the document.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @param connectionTimeoutInMillis timeout of the request.\n * @return a future with the upload response.\n * @throws MovilizerWebServiceException when there's connection problems.\n *\n * @see CompletableFuture\n * @see UploadResponse\n * @since 15.11.2.2\n */\n CompletableFuture<UploadResponse> uploadDocument(InputStream documentInputStream,\n String filename, long systemId,\n String password, String documentPool,\n String documentKey, String language,\n String ackKey,\n Integer connectionTimeoutInMillis);\n\n /**\n * Perform an asynchronous blob upload to the Movilizer Cloud given the path to a file.\n *\n * @param documentFilePath the path to the document file to upload.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @param connectionTimeoutInMillis timeout of the request.\n * @return a future with the upload response.\n * @throws MovilizerWebServiceException when there's connection or file access problems.\n *\n * @see CompletableFuture\n * @see UploadResponse\n * @since 15.11.2.2\n */\n CompletableFuture<UploadResponse> uploadDocument(Path documentFilePath, long systemId,\n String password, String documentPool,\n String documentKey, String language,\n String ackKey,\n Integer connectionTimeoutInMillis);\n\n // ----------------------------------------------------------------------------------- XML utils\n\n /**\n * Read a Movilizer element from the webservice name space (MovilizerMovelet, MovilizerReply,\n * etc...) and creates a java object instance of the class indicated.\n *\n * @param elementString string value of the serialization of the object.\n * @param movilizerElementClass class of the Movilizer object to create from the string.\n * @param <T> Movilizer object class\n * @return the java instance parsed from the string.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there are parsing\n * problems.\n * @since 12.11.1.3\n */\n <T> T getElementFromString(final String elementString, final Class<T> movilizerElementClass);\n\n /**\n * Print a Movilizer element from the webservice name space (MovilizerMovelet, MovilizerReply,\n * etc...) to string.\n *\n * @param movilizerElement java instance of the Movilizer element.\n * @param movilizerElementClass class of the Movilizer element to use.\n * @param <T> Movilizer object class\n * @return XML string representation for the Movilizer element given.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there are parsing\n * problems.\n * @since 12.11.1.3\n */\n <T> String printMovilizerElementToString(final T movilizerElement,\n final Class<T> movilizerElementClass);\n\n // ------------------------------------------------------------------------------ File XML utils\n\n /**\n * Read and parses a Movilizer Request file (.mxml) from the file system.\n *\n * @param filePath path to the request file.\n * @return the java instance parsed from the file.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there's parsing or\n * file access problems.\n * @since 12.11.1.0\n */\n MovilizerRequest getRequestFromFile(Path filePath);\n\n /**\n * Read and parses a Movilizer Request from the given String.\n *\n * @param requestString non null string with a valid xml request.\n * @return the java instance parsed from the file.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there's parsing or\n * string problems.\n * @since 12.11.1.1\n */\n MovilizerRequest getRequestFromString(String requestString);\n\n /**\n * Persist a request java instance to a file.\n *\n * @param request the request to be persisted.\n * @param filePath the path to the file.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there's parsing or\n * file access problems.\n * @since 12.11.1.0\n */\n void saveRequestToFile(MovilizerRequest request, Path filePath);\n\n /**\n * Generate a string from a request java instance.\n *\n * @param request the request to be transformed into string.\n * @return the string representation of the request.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException if there's parsing\n * problems.\n * @since 12.11.1.0\n */\n String requestToString(MovilizerRequest request);\n\n /**\n * Generate a string from a response java instance.\n *\n * @param response the response to be transformed into string.\n * @return the string representation of the response.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException if there's parsing\n * problems.\n * @since 12.11.1.0\n */\n String responseToString(MovilizerResponse response);\n\n // ------------------------------------------------------------------------------ MAF Management\n\n /**\n * Read a file into an MAF source file for latter source uploading.\n *\n * @param sourceFile file to read\n * @return MafSource with the source and the metadata\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerMAFManagementException when having\n * troubles reading the file.\n * @see com.movilizer.mds.webservice.models.maf.MafEventScript\n * @see com.movilizer.mds.webservice.models.maf.MafLibraryScript\n * @see com.movilizer.mds.webservice.models.maf.MafGenericScript\n * @since 15.11.2.1\n */\n MafSource readSource(File sourceFile);\n\n /**\n * Deploy a MAF source to the cloud.\n *\n * @param systemId where to deploy the file\n * @param password for the system id given\n * @param token for MAF access\n * @param source file to upload\n * @return MafResponse with the result of the operation\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerMAFManagementException when having\n * troubles uploading the file.\n * @see com.movilizer.mds.webservice.models.maf.communications.MafEventResponse\n * @see com.movilizer.mds.webservice.models.maf.communications.MafLibraryResponse\n * @see com.movilizer.mds.webservice.models.maf.communications.MafGenericResponse\n * @since 15.11.2.1\n */\n MafResponse deploySourceSync(long systemId, String password, String token, MafSource source);\n\n /**\n * Deploy a MAF source to the cloud.\n *\n * @param systemId where to deploy the file\n * @param password for the system id given\n * @param token for MAF access\n * @param sourceFile file to upload\n * @return MafResponse with the result of the operation\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerMAFManagementException when having\n * troubles uploading the file.\n * @see com.movilizer.mds.webservice.models.maf.communications.MafEventResponse\n * @see com.movilizer.mds.webservice.models.maf.communications.MafLibraryResponse\n * @see com.movilizer.mds.webservice.models.maf.communications.MafGenericResponse\n * @since 15.11.2.1\n */\n MafResponse deploySourceSync(long systemId, String password, String token, File sourceFile);\n}", "public CalificacionREST() {\r\n\r\n gson = new Gson();\r\n sdao = new SolicitudDAO();\r\n /**\r\n * Creates a new instance of SolicitudREST\r\n */\r\n }", "public interface ProcesoVENService extends Service {\n\n\t/**\n\t * Ejecuta procedimiento generico\n\t * @param nombreExecute\n\t * @param criteria\n\t */\n\tpublic void executeGenerico(String nombreExecute, Map criteria) ;\n\t\n\t/**Actualiza calensarios\n\t * @param calendario\n\t * @param usuario\n\t */\n\tpublic void updateCalendario(Calendario calendario, Usuario usuario);\n\t\n\t/**devuelve lista de calendarios\n\t * @param criteria\n\t * @return\n\t */\n\tpublic List getCalendarios(Map criteria);\n\t\n\t/**\n\t * devuelve el calendario\n\t * @param criteria\n\t * @return\n\t */\n\tpublic Calendario getCalendario(Map criteria);\n\t\n /**\n * devuelve los feriados d euna zona\n * @param criteria\n * @return\n */\n public List getFeriadoZona(Map criteria);\n\t\n\t/**\n\t * Actualiza feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void updateFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * Inserta los feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * elimina los feriados d euna zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void deleteFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\n\t/**\n\t * Metodo que trae las zonas de una region\n\t * @param feriadoRegion\n\t * @return\n\t */\n\tpublic List getZonasRegion(String feriadoRegion);\n\n\t/**\n\t * Retorna el indicador de habilitacion RUV\n\t * @param criteria\n\t * @return\n\t */\n\tpublic String getIndicadorHabilitacionRuv(Map criteria);\n\n\t/**\n\t * Genera la informacion para el reporte RUV\n\t * @param map\n\t */\n\tpublic void executeGeneracionReporteRUV(Map map);\n\t\n\t/**\n\t * Genera los archivos de libro de ventas - detalles SII\n\t * @param map\n\t */\n\tpublic void executeGenerarArchivosLibroVentasDetalleSII(Map map);\n\t\n}", "public interface PortadorService {\n\n @POST(\"api/portador/login/auth\")\n Call<FazerLoginPortadorResponse> login(@Body FazerLoginPortador fazerLoginPortador);\n\n @POST(\"api/portador/login\")\n Call<CriarLoginResponse> criarLogin(@Body PortadorLogin portadorLogin);\n\n @GET(\"api/portador/credencial/{documento}/pessoa/{tipoPessoa}/processadora/{idProcessadora}/instituicao/{idInstituicao}\")\n Call<GetCredenciaisResponse> listaCredenciais(\n @Path(\"documento\") String documento,\n @Path(\"tipoPessoa\") long tipoPessoa,\n @Path(\"idProcessadora\") long idProcessadora,\n @Path(\"idInstituicao\") long idInstituicao,\n @Header(\"AuthorizationPortador\") String token\n );\n\n @GET(\"api/portador/credencial/{idCredencial}/detalhes\")\n Call<Credencial> credencialDetalhes(\n @Path(\"idCredencial\") long idCredencial,\n @Header(\"AuthorizationPortador\") String token\n );\n\n @GET(\"api/portador/login/logout\")\n Call<ResponseBody> logout();\n\n @PUT(\"api/portador/login/trocar-email\")\n Call<ItsPayResponse> trocarEmail(@Body TrocarEmail trocarEmail, @Header(\"AuthorizationPortador\") String token);\n\n @PUT(\"api/portador/login/trocar-senha\")\n Call<ItsPayResponse> trocarSenha(@Body TrocarSenhaPortador trocarSenhaPortador, @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/login/{idProcessadora}/{idInstituicao}/buscar-email/{documento}\")\n Call<BuscarEmailResponse> buscarEmail(@Path(\"idProcessadora\") long idProcessadora,\n @Path(\"idInstituicao\") long idInstituicao,\n @Path(\"documento\") String documento,\n @Header(\"AuthorizationPortador\") String token);\n\n //{periodo} - Valores aceitos 15, 30 ou 45.\n @GET(\"api/portador/credencial/{idCredencial}/extrato/data_inicial/{dataInicial}/data_final/{dataFinal}\")\n Call<LinhaExtratoCredencial[]> extratoPeriodo(@Path(\"idCredencial\") long idCredencial,\n @Path(\"dataInicial\") String dataInicial,\n @Path(\"dataFinal\") String dataFinal,\n @Header(\"AuthorizationPortador\") String token);\n\n //{periodo} - Valores aceitos 15, 30 ou 45.\n @GET(\"api/portador/credencial/{idCredencial}/extrato/periodo/{periodo}\")\n Call<LinhaExtratoCredencial[]> extratoCredencial(@Path(\"idCredencial\") long idCredencial,\n @Path(\"periodo\") String periodo,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/plastico/abrir/mobile/{idPlastico}\")\n Call<ResponseBody> abrirPlastico(@Path(\"idPlastico\") long idPlastico,\n @Header(\"AuthorizationPortador\") String token);\n\n /**\n * @param portadorCredencialRequest a credencial deve ser criptografada com SHA512\n * @param token\n * @return\n */\n @POST(\"api/portador/credencial/info-portador\")\n Call<PortadorCredencial> getPortadorCredencial(@Body GetInfoPortadorCredencialRequest portadorCredencialRequest,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/conta/transferencia\")\n Call<ResponseBody> transferenciaOutroCartao(@Body TransferenciaMesmaInstituicao request,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/conta/transferencia/conta/corrente\")\n Call<ResponseBody> transferenciaContaCorrente(@Body TransferenciaContaCorrente request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/banco\")\n Call<Banco[]> listaBancos(@Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/boleto/carga/gerar-linha-digitavel\")\n Call<BoletoCarga> gerarLinhaDigitavel(@Body GerarBoletoCarga request,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/boleto/carga/enviar-boleto-email\")\n Call<ResponseBody> enviarBoletoEmail(@Body GerarBoletoCarga request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/credencial/virtual/conta/{idConta}\")\n Call<GetCredenciaisResponse> listaCartoesVirtuais(@Path(\"idConta\") long idConta,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/gerador/credencial\")\n Call<CredencialGerada> novoCartaoVirtual(@Body GerarCredencialRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/credencial/status-habilitacao/{idCredencial}\")\n Call<CredencialStatus> listaStatusHabilitacao(@Path(\"idCredencial\") long idCredencial,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/credencial/trocar-estado\")\n Call<ResponseBody> trocarEstado(@Body TrocarEstadoCredencialRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n\n @POST(\"api/portador/credencial/avisar-perda\")\n Call<ResponseBody> avisarPerda(@Body AvisarPerdaOuRouboRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/credencial/avisar-roubo\")\n Call<ResponseBody> avisarRoubo(@Body AvisarPerdaOuRouboRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/credencial/trocar-pin\")\n Call<Boolean> trocarSenhaCartao(@Body TrocarPinRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/conta/buscar-tarifas/conta/{idConta}\")\n Call<GetPerfilTarifarioResponse> listaTarifas(@Path(\"idConta\") long idConta,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/credencial/{documento}/pessoa/{tipoPessoa}/processadora/{idProc}/instituicao/{idInst}/desbloqueadas\")\n Call<GetCredenciaisResponse> listaCredenciaisLoja(\n @Path(\"documento\") String documento,\n @Path(\"tipoPessoa\") long tipoPessoa,\n @Path(\"idProc\") long idProcessadora,\n @Path(\"idInst\") long idInstituicao,\n @Header(\"AuthorizationPortador\") String token\n );\n\n @GET(\"api/mktplace/portador/pedido/pessoa/{documento}/processadora/{idProcessadora}/instituicao/{idInstituicao}\")\n Call<Pedido[]> buscarPedidos(@Path(\"documento\") String documento,\n @Path(\"idProcessadora\") long idProcessadora,\n @Path(\"idInstituicao\") long idInstituicao,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/portador/pedido/{idPedido}\")\n Call<PedidoDetalhe> buscarPedidoDetalhe(\n @Path(\"idPedido\") long idPedido,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/portador/parceiro-produto/{idProcessadora}/{idInstituicao}/\")\n Call<ArrayList<ParceiroResponse>> getParceiros(@Path(\"idProcessadora\") long idProcessadora,\n @Path(\"idInstituicao\") long idInstituicao,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/administrativo/imagem/sku/{idImagem}\")\n Call<ResponseBody> abrirImagemProduto(@Path(\"idImagem\") long idImagem,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/portador/formas-envio/{idParceiro}/endereco/{idEndereco}\")\n Call<GetFormasEnvioResponse[]> getFormasEnvio(@Path(\"idParceiro\") long idParceiro,\n @Path(\"idEndereco\") long idEndereco,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/endereco/{documento}/pessoa/{tipoPessoa}/processadora/{idProc}/instituicao/{idInst}/status/{status}/\")\n Call<EnderecoPessoa[]> getEnderecoPortador(@Path(\"documento\") String documento,\n @Path(\"tipoPessoa\") long tipoPessoa,\n @Path(\"idProc\") long idProc,\n @Path(\"idInst\") long idInst,\n @Path(\"status\") long status,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/mktplace/portador/pedido\")\n Call<Integer> efetuarPedido(@Body FazerPedidoMKTPlace request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/portador/parcelas/{idParceiro}/valor/{valorCarrinho}\")\n Call<ParcelasResponse> getParcelamento(@Path(\"idParceiro\") long idParceiro,\n @Path(\"valorCarrinho\") double valorCarrinho,\n @Header(\"AuthorizationPortador\") String token);\n}", "public WebService_Detalle_alquiler_factura() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public ControladorCatalogoServicios() {\r\n }", "public interface PIService {\n @POST(\"learningrace1/rest/participante\")\n Call<List<Participante>> getParticipante(@Body Participante participante);\n\n @GET(\"learningrace1/rest/evento/{identificador}\")\n Call<List<Evento>> getEvento(@Path(\"identificador\") String identificador);\n\n}", "protected void agregarUbicacion(){\n\n\n\n }", "@WebService(name = \"publish_portype\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n bc.intra.middleware.api.schema.fault.ObjectFactory.class,\n bc.intra.middleware.api.schema.pubsub.ObjectFactory.class,\n bc.intra.middleware.api.services.pubsub.push.ObjectFactory.class\n})\npublic interface PublishPortype {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns bc.intra.middleware.api.services.pubsub.push.PublishResponseType\n * @throws PublishFaultMessage\n */\n @WebMethod(operationName = \"Publish\", action = \"http://www.proximus.com/middleware/services/pubsub/Publish\")\n @WebResult(name = \"PublishResponse\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\", partName = \"parameters\")\n public PublishResponseType publish(\n @WebParam(name = \"PublishRequest\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\", partName = \"parameters\")\n PublishRequestType parameters)\n throws PublishFaultMessage\n ;\n\n}", "public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }", "public void initPublicEndpoint() {\n \t//TODO: Register the new Public End Point with in the Content Repository Node\n \tString uniqueId = UUID.randomUUID().toString();\n \t\n \tpublicEndPoint = new JMSEndpoint();\n \tpublicEndPoint.setAddress(uniqueId + \"/public\");\n \t\n \tpublicEndPoint.setProperties(configuration.getBrokerPool().getBroker().getConnections(\"topic\").getParameters());\n \n // save the public endpoint from the registry\n registry.createPublicEndpoint();\n \n publicSender = initPublicSender(new JMSSenderFactory().create(publicEndPoint));\n \t\n \tisPublicEndPointInit = true;\n }", "public interface MovimientoService {\n public static final String PROPERTY_ID = \"id\";\n public static final String PROPERTY_PARTIDO_ID = \"partidoId\";\n public static final String PROPERTY_TIEMPO_DES = \"tiempoDes\";\n public static final String PROPERTY_MINUTO = \"minuto\";\n public static final String PROPERTY_SEGUNDO = \"segundo\";\n public static final String PROPERTY_TIPO = \"tipo\";\n public static final String PROPERTY_ORIGEN = \"origen\";\n public static final String PROPERTY_ENTRA_ID = \"entraId\";\n public static final String PROPERTY_ENTRA_NOMBRE = \"entraNombre\";\n public static final String PROPERTY_SALE_ID = \"saleId\";\n public static final String PROPERTY_SALE_NOMBRE = \"saleNombre\";\n\n Map<String,Object> createMovimiento(Map<String, String> movimiento);\n\n void deleteMovimiento(Long idMovimiento);\n\n List<Map<String,Object>> movimientosByPartido(Long idPartido);\n}", "private FournisseurArboTraficService() {\r\n\t\tsuper();\r\n\t}", "public interface PrecosService {\n\n @GET(\"/combustivelbarato/precos/master/precos.json\")\n List<Preco> getPrecos();\n}", "void publishMe();", "@O2Client(permitPrivate = false)\n @POST\n @Path(\"/client/public\")\n public Response authorizedPublicPOST(@Context final SecurityContext c) {\n return Response.ok().build();\n }", "public abstract String tiposervicio();", "private RecipleazBackendService() {\n }", "public SolicitudREST() {\n gson = new Gson();\n sdao= new SolicitudDAO();\n }", "public ClienteServicio() {\n }", "public interface APIService {\n\n @POST(\"login.php\")\n Call<ResponseLogin> iniciosesion(@Body Cuenta cuenta);\n\n @POST(\"registrarEmpresa.php\")\n Call<PostResponse> registerEmpresa(@Body Cuenta cuenta);\n\n @GET(\"mostrarProyecto.php\")\n Call<ResponseProyecto> getProyectos(@Query(\"id_empresa\") String id);\n\n @GET(\"InfoEmpresa.php\")\n Call<ResponseEmpresa> getEmpresa(@Query(\"id_empresa\") String id);\n\n @POST(\"registrarProyecto.php\")\n Call<ResponseRegistrarProyecto> registerProyecto(@Body Proyecto proyecto);\n\n @POST(\"registrarDocumento.php\")\n Call<ResponseEntregable> registerEntregable(@Body EntregableP entregableP);\n\n @GET(\"mostrarDoc.php\")\n Call<ResponseMostrarEntregable> getEntregables(@Query(\"id_proyecto\") int id);\n\n @POST(\"registrarPersonal.php\")\n Call<PostResponse> registerPersonal(@Body Personal personal);\n\n @GET(\"mostrarPersonal.php\")\n Call<ResponsePersonal> getPersonal(@Query(\"id_empresa\") String id);\n\n @POST(\"registrarHistorial.php\")\n Call<PostResponse> registerHistorial(@Body Historial historial);\n\n @GET(\"mostrarHistorial.php\")\n Call<ResponseHistorial> getHistorial(@Query(\"id_proyecto\") int id);\n\n @GET(\"mostrarPerLibres.php\")\n Call<ResponsePersonalFree> getPersonalFree(@Query(\"id_empresa\") String id);\n\n @POST(\"registrarEquipoP.php\")\n Call<PostResponse> registerEquipo(@Body RegisterEquipo equipo);\n\n @GET(\"mostrarEquipoP.php\")\n Call<ResponseMostrarEquipo> getEquipo(@Query(\"id_proyecto\") int id);\n\n @GET(\"{entregable}\")\n @Streaming\n Call<ResponseBody> downloadFile(@Path(\"entregable\")String entregable);\n\n @POST(\"asignarJefe.php\")\n Call<PostResponse> asignarJefe(@Body Jefe jefe);\n\n @POST(\"proyectoEndFake.php\")\n Call<PostResponse> finishProyecto(@Body Proyecto proyecto);\n\n @POST(\"ModidTipo.php\")\n Call<PostResponse> updateTipo(@Body Jefe jefe);\n\n @GET(\"reporteJson.php\")\n Call<ResponseReportes> getReportes(@Query(\"idEmpresa\") String id);\n\n @POST(\"LoginEmJefe.php\")\n Call<ResponseUser> signIn(@Body Cuenta cuenta);\n\n @GET(\"ProyectoMostrarID.php\")\n Call<ResponseProyecto> getProject(@Query(\"idProyecto\") String id);\n\n\n}", "public interface NhanVienService {\n @GET(\"api/User\")\n Call<List<NhanVien>> getAll(@Query(\"authentication\") String authentication);\n\n @GET(\"api/User\")\n Call<NhanVien> chiTiet(@Query(\"id\") int id, @Query(\"authentication\") String authentication);\n\n @POST(\"api/User\")\n Call<NhanVien> them(@Body NhanVienRequest nhanVienRequest);\n\n @DELETE(\"api/User\")\n Call<Object> xoa(@Query(\"id\") int id, @Query(\"authentication\") String authentication);\n\n @PUT(\"api/User\")\n Call<Object> sua(@Body NhanVienRequest nhanVienRequest);\n}", "private void limpiarDatos() {\n\t\t\n\t}", "InstancePublishInfo getInstancePublishInfo(Service service);", "API createAPI();", "public interface RuntService {\n @Headers({\n \"Accept: application/json\"\n })\n @GET(\"runt/co.com.runt.local.domain.persona/{id}/{placa}\")\n Call<List<RuntVO>> consultaRunt(@Path(\"id\") Integer numeroCedula, @Path(\"placa\") String placa);\n}", "public DoctoresResource() {\n servDoctores = new ServicioDoctores();\n }", "public interface IWebScheduleService {\r\n public ScheduleResponse getScheduleShowByTeamId(String teamId, Long scheduleDetaildId,Long scheduleId, Long descId);\r\n\r\n //获取页面所有链接的签名map\r\n public ScheduleResponse getScheduleSigns(ScheduleShowRequest showRequest, ScheduleResponse response, SignVo signVo);\r\n\r\n //获取行程中所有导游\r\n public List<LeaderEntity> getScheduleGuides(String teamId);\r\n\r\n // 获取游客列表\r\n public List<MemberEntity> getTouristList(Long scheduleId);\r\n\r\n}", "public interface ApiInterface {\n\n\n @Headers({\"Content-Type: application/json\",})\n @POST(\"transport/public/registrations\")\n Call<Void> Register(@Body User user);\n\n\n //loginProcess\n @GET(\"user\")\n @Headers({\"Content-Type: application/json\"})\n Call<cUser> postWithFormParams();\n\n\n //userMe\n @GET(\"transport/user/me\")\n @Headers({\"Content-Type: application/json\"})\n Call<JsonObject> UserMe();\n\n\n\n //drivers\n @GET(\"transport/drivers\")\n @Headers({\"Content-Type: application/json\"})\n Call<JsonObject> drivers(\n @Query(\"latitud\") double latitud,\n @Query(\"longitud\") double longitud);\n\n\n}", "public interface CompraService {\n\n @POST(\"inicializar\")\n Call<StatusResponse> inicializar(@Body Credencial credencial);\n\n @POST(\"consultarProduto\")\n Call<StatusResponse> consultarProduto(@Body ConsultaProduto consultaProduto);\n\n @POST(\"consultarFormaPagamento\")\n Call<StatusResponse> consultarFormaPagamento(@Body ConsultaFormaPagamento consultaFormaPagamento);\n\n @POST(\"pedido\")\n Call<StatusResponse> pedido(@Body Compra compra);\n}", "public interface IServicoPrivadoClienteSemPropostaAPI {\n\n public static final String PATH = \"ServicoPrivadoClienteSemProposta/\";\n\n\n @GET(PATH)\n Call<List<ServicoOfertaPrivada>> getAll(\n @Query(\"idUsuarioCliente\") String idUsuarioCliente\n );\n}", "public void service() {\n\t}", "public Servicio(String servicio){\n nombreServicio = servicio;\n }", "public void setSrvPublicacionService(es.pode.publicacion.negocio.servicios.SrvPublicacionService srvPublicacionService)\n {\n this.srvPublicacionService = srvPublicacionService;\n }", "PubService getService() {\n return PubService.this;\n }", "public interface JanDanApiService {\n\n\n}", "public interface API {\n\n //Penyakit\n @GET(\"penyakitall/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @GET(\"penyakit/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseListByLokasi(@Path(\"page\") String page, @Path(\"count_page\") String count_page, @Query(\"id_desa\") String id_desa);\n\n @POST(\"penyakit\")\n Call<DiseasePostResponse>\n postDisease(@Body DiseaseBody diseaseBody);\n @DELETE(\"penyakit\")\n Call<DeletePenyakitResponse> deletePenyakit(@Query(\"Id_penyakit\") String id_penyakit);\n\n @PUT(\"penyakit\")\n Call<PutPenyakitResponse> editPenyakit(@Query(\"Id_penyakit\") String id_penyakit,\n @Body PutPenyakitBody putPenyakitBody);\n\n @GET(\"tipepenyakit/{page}/{count_page}\")\n Call<TipePenyakitResponse>\n getTipePenyakitList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @POST(\"multimedia\")\n Call<MultimediaPostResponse>\n postMultimedia(@Body MultimediaBody multimediaBody);\n}", "public interface RESTService {\n\n /**\n * Check Voter Services\n **/\n\n //TODO to check this is work or not\n //@GET(Config.REGISTER) Call<User> registerUser(@Header(\"uuid\") String uuid,\n // @QueryMap Map<String, String> body);\n\n @GET(Config.REGISTER) Call<User> registerUser(@QueryMap Map<String, String> body);\n\n /**\n * Maepaysoh services\n **/\n\n //candidate\n @GET(Config.CANDIDATE_LIST_URL) Call<CandidateListReturnObject> getCandidateList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.CANDIDATE_URL + \"/{id}\") Call<JsonObject> getCandidate(@Path(\"id\") String id,\n @QueryMap Map<String, String> optionalQueries);\n\n //geo location\n @GET(Config.GEO_LOCATION_URL) Call<GeoReturnObject> getLocationList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.GEO_LOCATION_SEARCH) Call<JsonObject> searchLocation(\n @QueryMap Map<String, String> optionalQueries);\n\n //party\n @GET(Config.PARTY_LIST_URL) Call<PartyReturnObject> getPartyList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.PARTY_LIST_URL + \"/{id}\") Call<JsonObject> getPartyDetail(@Path(\"id\") String id);\n\n //OMI service\n @GET(Config.MOTION_DETAIL_URL) Call<JsonObject> getMotionDetail(@Query(\"mpid\") String mpId);\n\n @GET(Config.MOTION_COUNT) Call<JsonObject> getMotionCount(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_DETAIL_URL) Call<JsonObject> getQuestionDetail(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_COUNT) Call<JsonObject> getQuestionCount(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_MOTION) Call<JsonObject> getQuestionAndMotion(@Query(\"mpid\") String mpId);\n\n @GET(Config.COMPARE_QUESTION) Call<JsonElement> getCompareQuestion(\n @Query(\"first\") String first_candidate_id, @Query(\"second\") String second_candidate_id);\n\n @GET(Config.CANDIDTE_AUTO_SEARCH) Call<ArrayList<CandidateSearchResult>> searchCandidate(\n @Query(\"q\") String keyWord, @QueryMap Map<String, Integer> options);\n\n @GET(Config.CANDIDATE_COUNT) Call<JsonObject> getCandidateCount(@Query(\"party\") String party_id);\n\n @GET(Config.CURRENT_COUNT) Call<JsonObject> getCurrentCount();\n\n @GET(Config.FAQ_LIST_URL) Call<FAQListReturnObject> listFaqs(\n @QueryMap Map<String, String> options);\n\n @GET(Config.FAQ_SEARCH) Call<FAQListReturnObject> searchFaq(@Query(\"q\") String keyWord,\n @QueryMap Map<String, String> options);\n\n @GET(\"/faq/{faq_id}\") Call<FAQDetailReturnObject> searchFaqById(@Path(\"faq_id\") String faqId,\n @QueryMap Map<String, String> options);\n\n @GET(Config.APP_VERSIONS) Call<JsonObject> checkUpdate();\n}", "public void service(){\n Serv_ID = 0;\n Serv_Emp_ID = 0;\n Serv_Event_ID = 0;\n Serv_Grant_ID = 0;\n Serv_Proj_ID = 0;//add project creation\n Serv_Date = \"currrent_date\";\n Serv_Type = \"\";\n Serv_Desc = \"\";\n Serv_Mon_Val = 0.00;\n Serv_Hours = 0;\n }", "private static void startService() {\n //noinspection deprecation\n setPort(configuration.getPort());\n get(\":version/route/:user\", (request, response) -> {\n try {\n String apiVersion = request.params(\":version\");\n String user = request.params(\":user\");\n String version = request.headers(\"version\"); \n if (!isValidApiVersion(apiVersion)) {\n response.status(400);\n return new RouteResponse(\"Wrong API version\", \"400\", \"\");\n }\n return new RouteResponse(splitter.getGroupForUser(user)); // no overhead measured compared to using string concat or StringBuilder\n } catch (Exception e) {\n logger.error(\"Problem serving the request.\", e);\n response.status(500);\n return new RouteResponse(e.getMessage(), \"500\", \"\");\n }\n }, new JsonTransformer());\n }", "@Local\npublic interface CobranzaServiceLocal {\n\n ResumenInicialVO getCarteraPorTramos(List<Object[]> resultList);\n\n Response obtenerDocumentosSAP(Request request);\n\n Response getCargosSAP(Request request);\n}", "public ServicioUjaPack() {\n }", "@Override\n public Call<PrivacidadResponse> devuelveAviso(ServerRequest request) {\n SecurityItems securityItems=getInstanceToken();\n request.setIdNumEmpleado(securityItems.getIdEmployEncrypt());\n request.setToken(securityItems.getTokenEncrypt());\n return serviceInterface.devuelveAviso(request);\n }", "@Override\n public void run(PuntiSpesaConfig c, Environment e) throws Exception {\n final PuntiSpesa ps = new PuntiSpesa(c.getSaldoIniziale());\n \n // Registrazione della risorsa \"ps\" sul server di esecuzione\n e.jersey().register(ps);\n \n }", "public interface SuperviseMatterService extends Serializable, Tools {\n\n /**\n * 同意督办回复\n *\n * @param token\n * @param superviseMatterId\n * @return\n */\n Object approvalSuperviseMatter(String token, String superviseMatterId);\n\n /**\n * 回复督办事项\n *\n * @param token\n * @param variables\n * @return\n */\n Object replySuperviseMatter(String token, Map variables);\n\n /**\n * 选择反馈方式\n *\n * @param feedbackMode\n * @param token\n * @return\n */\n Object choiceFeedbackMode(String superviseMatterId, Integer feedbackMode, String token);\n\n /**\n * 确认督办\n *\n * @param token\n * @param variables\n * @return\n */\n Object confirm(String token, Map variables);\n\n /**\n * 获取督办事项详情\n *\n * @param token\n * @param superviseMatterId\n * @return\n */\n Object getSuperviseMatter(String token, String superviseMatterId);\n\n /**\n * 督办事项列表\n *\n * @param token\n * @param page\n * @param number\n * @return\n */\n Object listSuperviseMatter(String token, String action, Boolean value, int page, int number);\n\n /**\n * 获取督办事件 表单\n *\n * @param token\n * @return\n */\n Object getSuperviseMatterFromData(String token);\n\n /**\n * 上报督办事件\n *\n * @param token\n * @param taskForm\n * @return\n */\n Object saveSuperviseMatter(String token, Map taskForm);\n\n /**\n * 读取文件信息\n *\n * @param file\n * @return\n */\n default StringBuffer getFormData(File file) {\n BufferedReader bufferedReader = null;\n StringBuffer stringBuffer = new StringBuffer();\n try {\n bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(file), \"utf-8\"));\n String line = null;\n while (null != (line = bufferedReader.readLine())) {\n stringBuffer.append(line);\n }\n } catch (Exception exception) {\n exception.printStackTrace();\n } finally {\n if (null != bufferedReader) {\n try {\n bufferedReader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return stringBuffer;\n }\n }\n}", "public void registrarPreguntaRespuesta() throws SolrServerException, IOException{\n \tregistrarBaseDatosRedis(); //Registra en la base de datos.\n \tregistrarEnWatson(); // Entrena el servicio de watson.\n }", "void publish();", "private static interface Service {}", "public interface LogisticsDataApi {\n\n\n /**\n * 用户类型:-1用户, 0-咨询会员,1-交易会员,2-商家会员\n * 会员认证 状态: 0 -未认证, 1 -已认证\n * 会员锁定 状态: 0 -正常, 1 -锁定, 2 -注销\n * /member/query_type_new?token GET 用户类型\n */\n @GET(\"member/query_type_new\")\n Observable<UserTypeData> getUserType(@Query(\"token\") String token);\n\n /**\n * 发布求购 publish\n *\n * 收货信息 member/get_member_delivery_address?token 取默认地址 / 没有默认取第一条\n *\n * 原料品名 baseData/query_breed?keyword\n * 原料牌号 baseData/query_spec?keyword & code // code 为 breed code\n * 生产厂家 baseData/query_brand?keyword\n *\n * 提交 求购数据 member/publish_buy - post reference: class: MemberPurchaseDTOs\n */\n\n\n // 收货地址\n @GET(\"member/get_member_delivery_address\")\n Observable<PublishData.AddressData> getAddressData(@Query(\"token\") String token);\n\n // breed\n @GET(\"baseData/query_breed\")\n Observable<PublishData> getBreedData(@Query(\"keyword\") String keyword);\n // spec\n @GET(\"baseData/query_spec\")\n Observable<PublishData> getSpecData(@Query(\"keyword\") String keyword,\n @Query(\"code\") String breedCode);\n // brand\n @GET(\"baseData/query_brand\")\n Observable<PublishData.PublishBrandData> getBrandData(@Query(\"keyword\") String keyword);\n\n\n\n // 提交 求购数据 post Content-Type为application/json todo\n @POST(\"member/publish_buy\")\n Observable<VerifyData> postPurchaseData(@Body RequestBody requestBody);\n\n\n /**\n * 发布求购 publish - 收货地址 新增/编辑 get\n @\"/member/save_member_delivery_address\" // 新增收货信息\n @\"/member/update_member_delivery_address\" // 编辑收货信息\n */\n // 新增收货信息\n @GET(\"member/save_member_delivery_address\")\n Observable<VerifyData> getSaveAddressData(\n @Query(\"token\") String token,\n @Query(\"address\") String address,\n @Query(\"contactName\") String contactName,\n @Query(\"mobile\") String mobile,\n @Query(\"isDefault\") String isDefault,\n @Query(\"provinceCode\") String provinceCode,\n @Query(\"provinceName\") String provinceName,\n @Query(\"cityCode\") String cityCode,\n @Query(\"cityName\") String cityName,\n @Query(\"districtCode\") String districtCode,\n @Query(\"districtName\") String districtName\n );\n\n // 修改收货信息 (memberDeliveryAddressId 新增地址没有此参数)\n @GET(\"member/update_member_delivery_address\")\n Observable<VerifyData> getUpdateAddressData(\n @Query(\"token\") String token,\n @Query(\"address\") String address,\n @Query(\"contactName\") String contactName,\n @Query(\"mobile\") String mobile,\n @Query(\"isDefault\") int isDefault,\n @Query(\"provinceCode\") String provinceCode,\n @Query(\"provinceName\") String provinceName,\n @Query(\"cityCode\") String cityCode,\n @Query(\"cityName\") String cityName,\n @Query(\"districtCode\") String districtCode,\n @Query(\"districtName\") String districtName,\n @Query(\"memberDeliveryAddressId\") String memberDeliveryAddressId\n );\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n /**\n * purchase\n * member/purchase_pool?token 求购池数据\n * member/my_purchase_list?token 我的求购\n * shop/my_quote_list?token 我的报价\n */\n @GET(\"member/purchase_pool\")\n Observable<PurchaseData> getPurchasePoolData(@Query(\"token\") String token,\n @Query(\"pageNum\") int pageNum,\n @Query(\"pageSize\") int pageSize);\n\n\n @GET(\"member/my_purchase_list\")\n Observable<PurchaseData> getMyPurchaseData(@Query(\"token\") String token,\n @Query(\"pageNum\") int pageNum,\n @Query(\"pageSize\") int pageSize);\n\n @GET(\"shop/my_quote_list\")\n Observable<PurchaseData> getMyQuoteData(@Query(\"token\") String token,\n @Query(\"pageNum\") int pageNum,\n @Query(\"pageSize\") int pageSize);\n\n /**\n * member/purchase_quote_list?token&memberPurchaseId 求购报价详情\n * shop/my_quote_detail?quoteId&token 报价详情\n */\n\n @GET(\"member/purchase_quote_list\")\n Observable<PurchaseQuoteData> getMyPurchaseDetailData(@Query(\"token\") String token,\n @Query(\"memberPurchaseId\") String memberPurchaseId);\n\n @GET(\"shop/my_quote_detail\")\n Observable<QuoteDetailData> getMyQuoteDetailData(@Query(\"token\") String token,\n @Query(\"quoteId\") String quoteId);\n\n\n /**\n * member/member_review_quote ?token&sellMemberQuoteId& reviewNote 买家复议\n * shop/sell_review_quote ? token& quoteId& price 卖家复议\n */\n\n @GET(\"member/member_review_quote\")\n Observable<VerifyData> getPurchaseReviewData(@Query(\"token\") String token,\n @Query(\"sellMemberQuoteId\") String sellMemberQuoteId,\n @Query(\"reviewNote\") String reviewNote);\n\n @GET(\"shop/sell_review_quote\")\n Observable<VerifyData> getQuoteReviewData(@Query(\"token\") String token,\n @Query(\"quoteId\") String quoteId,\n @Query(\"price\") String price);\n\n\n /** 商家报价\n * baseData/query_like_warehouse?companyShortName 模糊搜索仓库\n * baseData/query_warehouse?companyShortName 精准搜索仓库 1.创建新仓库校验 2.选择历史\n * shop/sell_price 报价 - 提交报价数据 post\n */\n\n @GET(\"baseData/query_like_warehouse\")\n Observable<WarehouseData> getFuzzyWarehouseData(@Query(\"companyShortName\") String companyShortName);\n\n @GET(\"baseData/query_warehouse\")\n Observable<WarehouseData.WarehouseCheckData> getWarehouseData(@Query(\"companyShortName\") String companyShortName);\n\n\n // 提交报价数据 post todo\n @FormUrlEncoded\n @POST(\"shop/sell_price\")\n Observable<VerifyData> postQuoteData(\n @Field(\"token\") String token,\n @Field(\"memberPurchaseId\") long memberPurchaseId,\n @Field(\"price\") double price,\n @Field(\"isSupplierDistribution\") int isSupplierDistribution, // 0 - no ; 1 - yes;\n @Field(\"deliveryDate\") String deliveryDate,\n @Field(\"warehouse\") String warehouse // warehouse json\n );\n\n\n\n\n\n\n /**\n * logistics\n * /app/logistics/from_address 出发地\n * /app/logistics/to_address?provFrom&cityFrom&distinctFrom 目的地\n * /app/logistics/query_price?provFrom&cityFrom&distinctFrom&provTo&cityTo&distinctTo&amount 价格\n * @return\n */\n\n // 出发地\n @GET(\"logistics/from_address\")\n Observable<LogisticsCityData> getFromData();\n\n // 目的地\n @GET(\"logistics/to_address\")\n Observable<LogisticsCityData> getDestinationData(@Query(\"provFrom\") String provFrom,\n @Query(\"cityFrom\") String cityFrom,\n @Query(\"distinctFrom\") String distinctFrom\n );\n\n // 价格\n @GET(\"logistics/query_price\")\n Observable<LogisticsResultData> getPriceData(@Query(\"provFrom\") String provFrom,\n @Query(\"cityFrom\") String cityFrom,\n @Query(\"distinctFrom\") String distinctFrom,\n @Query(\"provTo\") String provTo,\n @Query(\"cityTo\") String cityTo,\n @Query(\"distinctTo\") String distinctTo,\n @Query(\"amount\") int amount\n );\n\n\n /**\n * 一键下单页面计算:\n 采购单价:求购报价的价格;\n 运费单价:求购报价的运费单价;(非供配情况下,选择自提,重置为0)\n 资金服务费利率:未认证会员为0;\n 账期:使用授信(部分授信,或全部授信)默认为最大账期天数;款到发货,账期为0;\n\n 选择账期后计算-----------------------------------------------------\n\n 1.资金服务费 =(采购单价+运费单价)*数量*资金服务费利率*账期\n\n * 全部授信- 资金服务费 =(采购单价+运费单价)*数量*资金服务费利率*账期\n * 部分授信- 资金服务费 = 授信额度(自填)*资金服务费利率*账期\n\n\n 2.销售总货款 =(采购单价+运费单价)*数量 + 资金服务费\n\n 3.采购总货款 = 采购单价*数量\n\n 4.物流总货款 = 运费单价*数量\n\n 5.销售单价 = 销售总货款/数量\n\n\n 6.使用授信(授信金额)\n 全部授信-使用授信 =(采购单价+运费单价)* 数量 + 资金服务费\n 部分授信-使用授信 = 授信额度(自填);\n 款到发货-使用授信 = 0;\n\n 7.手续费 = 销售总货款*0.3%\n *\n * /member/purchase_check_create_order?token \t\t\t\t 检验能否一键下单\n * /member/query_purchase_create_order_details?token&quoteId 确认订单\n */\n\n // 检验能否一键下单\n @GET(\"member/purchase_check_create_order\")\n Observable<VerifyData> getOrderCheckData(@Query(\"token\") String token);\n\n // 确认订单\n @GET(\"member/query_purchase_create_order_details\")\n Observable<OrderConfirmData> getOrderConfirmData(@Query(\"token\") String token,\n @Query(\"quoteId\") String quoteId);\n\n /**\n * 保证金\n * order/check_deposit?token & receivableWay\n */\n @GET(\"order/check_deposit\")\n Observable<VerifyData> getCheckDepositData(@Query(\"token\") String token,\n @Query(\"receivableWay\") String receivableWay);\n\n /**\n * private Long memberPurchaseId = 0L;\t\t\t\t\t\t// 会员求购单Id\n private Long sellMemberQuoteId = 0L;\t\t\t\t\t // 报价单Id\n\n private Double saleSumQty = 0D;\t\t\t\t\t\t\t// 销售总重量\n private Double saleSumAmt = 0D;\t\t\t\t\t\t\t// 销售总金额\n private Double purchaseSumQty = 0D;\t\t\t\t\t\t// 采购总重量\n private Double purchaseSumAmt = 0D;\t\t\t\t\t\t// 采购总金额\n private Double logisticsSumCost = 0D;\t\t\t\t\t // 物流总货款\n private Double salePrice = 0D;\t\t\t\t\t\t\t // 销售单价\n\n private Integer distributionWay = 0;\t\t\t\t\t// 配送方式 0-供方配送 1-自提 2-平台配送\n private String deliveryDate = \"\";\t\t\t\t\t\t// 交货日期\n private Integer receivableWay = 0;\t\t\t\t\t\t// 结算方式 0-全额授信 1-部分授信 2-款到发货\n private Double creditAmount = 0D;\t\t\t\t\t\t// 授信金额\n private Integer receivableDay = 0;\t\t\t\t\t\t// 货到收款天数- 账期\n\n private String packagSpec = \"\";\t\t\t\t\t\t// 包装规格\n\n private Double memberMoneyRate = 0D;\t\t\t\t\t// 服务费利率\n private\tDouble serviceAmt = 0D;\t\t\t\t\t\t// 服务费\n */\n /**\n * /order/purchase_save_sale_order // 一键下单 todo\n */\n @FormUrlEncoded\n @POST(\"order/purchase_save_sale_order\")\n Observable<VerifyData> postOrderData(@Field(\"token\") String token,\n @Field(\"memberPurchaseId\") Long memberPurchaseId,\n @Field(\"sellMemberQuoteId\") Long sellMemberQuoteId,\n @Field(\"saleSumQty\") Double saleSumQty,\n @Field(\"saleSumAmt\") Double saleSumAmt,\n @Field(\"purchaseSumQty\") Double purchaseSumQty,\n @Field(\"purchaseSumAmt\") Double purchaseSumAmt,\n @Field(\"logisticsSumCost\") Double logisticsSumCost,\n @Field(\"salePrice\") Double salePrice,\n @Field(\"distributionWay\") int distributionWay,\n @Field(\"deliveryDate\") String deliveryDate,\n @Field(\"receivableWay\") int receivableWay,\n @Field(\"creditAmount\") Double creditAmount,\n @Field(\"receivableDay\") int receivableDay,\n @Field(\"packagSpec\") String packagSpec,\n @Field(\"memberMoneyRate\") Double memberMoneyRate,\n @Field(\"serviceAmt\") Double serviceAmt);\n\n\n\n\n\n /**\n * OrderFragment 订单列表\n * @param token\n * @param subStatus\n * 10-待审核 12-待支付手续费 11-待上传采购合同\n * 20-待收款 30-待付款 40-待发货 50-待确认收货\n * 90-交易失败 100-待开票? 101-待开票审核? 102-交易成功\n */\n @GET(\"order/query_order_list\")\n Observable<OrdersData> getOrderData(@Query(\"token\") String token,\n @Query(\"subStatus\") String subStatus,\n @Query(\"pageNum\") int pageNum,\n @Query(\"pageSize\") int pageSize);\n\n /**\n * 订单详情\n * order/query_order_detail?token&orderId\n */\n @GET(\"order/query_order_detail\")\n Observable<OrderDetailData> getOrderDetailData(@Query(\"token\") String token,\n @Query(\"orderId\") String orderId);\n\n /**\n * 支付手续费\n * order/member_purchase_alipay_create?token&orderSn&goodsAmount 支付宝 todo\n * order/member_purchase_wx_create?token&orderSn&goodsAmount 微信 todo\n * private String operateStatus;\t// 操作状态 null没有; A0-支付手续费; A1-开票申请; A2-申请展期\n */\n\n // 支付宝支付\n @FormUrlEncoded\n @POST(\"order/member_purchase_alipay_create\")\n Observable<OrderData> postAliPayData(@Field(\"token\") String token,\n @Query(\"orderId\") String orderId,\n @Field(\"orderSn\") String orderSn,\n @Field(\"goodsAmount\") String goodsAmount);\n\n\n\n // 微信支付\n @FormUrlEncoded\n @POST(\"order/member_purchase_wx_create\")\n Observable<OrderPayData> postWeChatPayData(@Field(\"token\") String token,\n @Query(\"orderId\") String orderId,\n @Field(\"orderSn\") String orderSn,\n @Field(\"goodsAmount\") String goodsAmount);\n\n /**\n * rder/query_extends_days_detail?orderId&token 展期详情\n * order/save_extends_days 申请展期\n */\n @GET(\"order/query_extends_days_detail\")\n Observable<ExtensionData> getExtensionData(@Query(\"token\") String token,\n @Query(\"orderId\") String orderId);\n\n /**\n * order/save_extends_days 申请展期\n * private String token ;\n private Long orderId = 0L; // 订单Id\n private String contractCode = \"\"; // 关联合同号\n private Double amount = 0D; // 金额\n private Integer days = 0; // 天数\n private String note = \"\"; // 备注\n */\n\n @FormUrlEncoded\n @POST(\"order/save_extends_days\")\n Observable<VerifyData> postExtensionData(@Field(\"token\") String token,\n @Query(\"orderId\") long orderId,\n @Field(\"contractCode\") String contractCode,\n @Field(\"amount\") double amount,\n @Field(\"days\") int days,\n @Field(\"note\") String note);\n\n}", "public interface SaludaService{\n public String saluda(String nombre);\n}", "private void reposicionarPersonajes() {\n // TODO implement here\n }", "@GET\n\t@Produces({ MediaType.APPLICATION_JSON })\n\tpublic Response getServiciosDeAlojamiento() {\n\n\t\ttry {\n\t\t\tAlohAndesTransactionManager tm = new AlohAndesTransactionManager(getPath());\n\n\t\t\tList<ServicioDeAlojamiento> serviciosDeAlojamiento;\n\t\t\tserviciosDeAlojamiento = tm.getAllServiciosDeAlojamiento();\n\t\t\treturn Response.status(200).entity(serviciosDeAlojamiento).build();\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\treturn Response.status(500).entity(doErrorMessage(e)).build();\n\t\t}\n\t}", "Fog_Services createFog_Services();", "public interface TravelApiService {\n @GET(\"api/users/{userCode}/travels\")\n Call<List<Travel>> getTravel(@Path(value = \"userCode\") String userCode);\n\n @POST(\"api/users/{userCode}/travels\")\n Call<PostTravelGsonResponce> postTravel(@Path(value = \"userCode\") String userCode, @Field(\"travel_date\") String travelDate, @Field(\"latitude\") Double latitude, @Field(\"longitude\") Double longitude, @Field(\"area_name\") String areaName, @Field(\"contry_name\") String countryName, @Field(\"token\") String token);\n}", "public interface TransacaoService {\n\n List<TransacaoDTO> getAll();\n List<TransacaoDTO> getByCliente(String cpf);\n TransacaoDTO salvarTransacao(CreateTransacaoDTO createTransacaoDTO);\n TransacaoDTO atualizarTransacao(Integer id, TransacaoDTO transacaoDTO);\n void deletarTransacao( Integer id);\n InputStreamResource getExtrato(String cpf) throws IOException;\n InputStreamResource getExtratoByCartao(Integer id) throws IOException;\n}", "public static void initService() {\n Retrofit retrofit = new Retrofit.Builder().baseUrl(\"http://166.111.68.66:2042/news/\")\n .addConverterFactory(new Converter.Factory() {\n Gson gson = new Gson();\n\n @Override\n public Converter<ResponseBody, ?> responseBodyConverter(final Type type, final Annotation[] annotations, Retrofit retrofit) {\n return new Converter<ResponseBody, Object>() {\n @Override\n public Object convert(ResponseBody value) throws IOException {\n try {\n return gson.getAdapter(TypeToken.get(type)).fromJson(value.charStream());\n } finally {\n value.close();\n }\n }\n };\n }\n }).build();\n newsdetailHttpService = retrofit.create(GetNewsDetailService.NewsDetailHttpService.class);\n }", "public interface IServicio {\n\n\tpublic String operacion();\n}", "public interface PacienteService {\n @GET(\"/paciente\")\n void getAllPatients(Callback<List<Paciente>> cb);\n\n @GET(\"/paciente/{pacienteIdTel}/\")\n void getPatientId(@Path(\"pacienteIdTel\") String id, Callback<Paciente> cb);\n\n @GET(\"/paciente/tutor/{tutorId}/\")\n void getPatientByTutor(@Path(\"tutorId\") int id, @Header(\"ACCESS_TOKEN\") String token, Callback<List<Paciente>> cb);\n}", "public interface NewsService {\n @GET(\"v1/sources?language=en\")\n Call<WebSite> getSources();\n}", "public List<GrupoLocalResponse> buscarTodos();", "public interface IProInventoryLogService {\r\n\r\n PageResponse<List<TWmsProInventoryLogEntity>> getProInventoryList(TWmsProInventoryLogDTO proInventoryLogDTO, DbShardVO dbShardVO);\r\n\r\n MessageResult createProInventoryLog(TWmsProInventoryLogEntity proInventoryLogEntity,DbShardVO dbShardVO);\r\n}", "public interface ApiInterface {\n\n @GET(\"{poblacion}.xml\")\n Call<Escrutinio_sitio> getPoblacionData(@Path(\"poblacion\") String poblacion);\n\n }", "String serviceEndpoint();", "public interface PlatformAdvertisingService{\r\n\r\n /**\r\n * 查询广告位\r\n * @param query\r\n * @return\r\n */\r\n public List<AdvertisingPosition> getAdList (PlatformAdvertisingServiceQuery query) throws Exception;\r\n\r\n /**\r\n * 启用、禁用 广告位\r\n * @param query\r\n */\r\n public void enabledAd (PlatformAdvertisingServiceQuery query) throws Exception;\r\n\r\n /**\r\n * 获取广告位\r\n * @param query\r\n * @return\r\n */\r\n public AdvertisingPosition getAdInfo (PlatformAdvertisingServiceQuery query) throws Exception;\r\n\r\n /**\r\n * 保存广告位\r\n * @param query\r\n */\r\n public void saveAdInfo (PlatformAdvertisingServiceQuery query) throws Exception;\r\n\r\n /**\r\n * 编辑广告位\r\n * @param query\r\n */\r\n public void editAdInfo (PlatformAdvertisingServiceQuery query) throws Exception;\r\n\r\n /**\r\n * 排序广告位\r\n */\r\n public void sortAd (PlatformAdvertisingServiceQuery query) throws Exception;\r\n}", "public ServicePatente() {\n this.success = false;\n // instanciando dao\n this.daoPatente = \n new br.com.ifba.scop.patente.dao.DAOPatente();\n }", "public interface WikiAPIService {\n\n // Set a constant of links limits.\n int titleLimits = 200;\n\n /**\n * GET HTTP function to return Wiki extracts from url. Query parameter for the title of\n * the article is added to the function via the @Query annotation. The rest of query\n * parameters are hard-coded since they are always needed.\n *\n * The query parameter 'titles' are added in a {Title1}|{Title2}|...etc. format.\n */\n @GET(\"w/api.php?action=query\" +\n // Retrieve extracts and thumbnail image associated with article\n \"&prop=extracts|pageimages\" +\n \"&redirects\" +\n // Return extract in plain text (Boolean)\n \"&explaintext=1\" +\n // Return only the intro section (Boolean)\n \"&exintro=1\" +\n // Return the page ids as a list\n \"&indexpageids\" +\n // The max width of the thumbnail.\n \"&pithumbsize=1080\" +\n // Return in a JSON format.\n \"&format=json\" +\n // Return new json format with proper page array.\n \"&formatversion=2\")\n Call<WikiExtractsJSONResponse> requestExtracts(@Query(\"titles\") String titles);\n\n /**\n * GET HTTP function to return a number of featured Wikipedia link titles. These\n * link titles will be chosen at random to then be inserted into the requestExtracts()\n * function that will bring the extracts of these titles.\n */\n @GET(\"w/api.php?action=query\" +\n // Retrieve title links\n \"&prop=links\" +\n // Retrieve links in the main page\n \"&titles=メインページ\" +\n // Only return articles (Not users or meta pages)\n \"&plnamespace=0\" +\n // Return a limit number defined in companion object\n \"&pllimit=\" + titleLimits +\n // Return in json format\n \"&format=json\" +\n // Return new json format\n \"&formatversion=2\")\n Call<WikiTitlesJSONResponse> requestDailyTitles();\n}", "public interface Client {\n \n /**\n * Get the unique id of current client.\n *\n * @return id of client\n */\n String getClientId();\n \n /**\n * Whether is ephemeral of current client.\n *\n * @return true if client is ephemeral, otherwise false\n */\n boolean isEphemeral();\n \n /**\n * Set the last time for updating current client as current time.\n */\n void setLastUpdatedTime();\n \n /**\n * Get the last time for updating current client.\n *\n * @return last time for updating\n */\n long getLastUpdatedTime();\n \n /**\n * Add a new instance for service for current client.\n *\n * @param service publish service\n * @param instancePublishInfo instance\n * @return true if add successfully, otherwise false\n */\n boolean addServiceInstance(Service service, InstancePublishInfo instancePublishInfo);\n \n /**\n * Remove service instance from client.\n *\n * @param service service of instance\n * @return instance info if exist, otherwise {@code null}\n */\n InstancePublishInfo removeServiceInstance(Service service);\n \n /**\n * Get instance info of service from client.\n *\n * @param service service of instance\n * @return instance info\n */\n InstancePublishInfo getInstancePublishInfo(Service service);\n \n /**\n * Get all published service of current client.\n *\n * @return published services\n */\n Collection<Service> getAllPublishedService();\n \n /**\n * Add a new subscriber for target service.\n *\n * @param service subscribe service\n * @param subscriber subscriber\n * @return true if add successfully, otherwise false\n */\n boolean addServiceSubscriber(Service service, Subscriber subscriber);\n \n /**\n * Remove subscriber for service.\n *\n * @param service service of subscriber\n * @return true if remove successfully, otherwise false\n */\n boolean removeServiceSubscriber(Service service);\n \n /**\n * Get subscriber of service from client.\n *\n * @param service service of subscriber\n * @return subscriber\n */\n Subscriber getSubscriber(Service service);\n \n /**\n * Get all subscribe service of current client.\n *\n * @return subscribe services\n */\n Collection<Service> getAllSubscribeService();\n \n /**\n * Generate sync data.\n *\n * @return sync data\n */\n ClientSyncData generateSyncData();\n \n /**\n * Whether current client is expired.\n *\n * @param currentTime unified current timestamp\n * @return true if client has expired, otherwise false\n */\n boolean isExpire(long currentTime);\n \n /**\n * Release current client and release resources if neccessary.\n */\n void release();\n \n /**\n * Recalculate client revision and get its value.\n * @return recalculated revision value\n */\n long recalculateRevision();\n \n /**\n * Get client revision.\n * @return current revision without recalculation\n */\n long getRevision();\n \n /**\n * Set client revision.\n * @param revision revision of this client to update\n */\n void setRevision(long revision);\n \n}", "public interface IPaymentService {\r\n\r\n\r\n\r\n\t/**\r\n\t * Metodo que permite hacer le pago por PSE\r\n\t * @return factura de la factura generada\r\n\t */\r\n\tpublic FacturaCompra pagoPSE(String userName,TipoMoneda tipoMoneda);\r\n\t\r\n\t\r\n\t/**\r\n\t * Metodo que permite hacer le pago por PSE\r\n\t * @return factura de la factura generada\r\n\t */\r\n\tpublic FacturaCompra pagoCreditCard(String userName,TipoMoneda tipoMoneda);\r\n\t\r\n\t/**\r\n\t * Metodo que permite realizar el pago \r\n\t * mediante efectivo en un punto de pago\r\n\t * @return\r\n\t */\r\n\tpublic FacturaCompra cashOnDelivery(String userName,TipoMoneda tipoMoneda);\r\n\t\r\n}", "public MercadoPagoAPI() {\n\t\tsuper();\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(HEADER_AUTHORIZATION, authorizationToken);\n\t\theaders.set(HEADER_CONTENT_TYPE, JSON_CONTENT_TYPE);\n\t\tHEADER = new HttpEntity<Object>(headers);\n\t}", "public AjusteSaldoAFavorRespuesta() {\n\t}", "private void ConsumirWS() {\n String url = \"https://pixabay.com/api/?key=12544769-ce772d6f6df4078b74b23c3cf&q=yellow+flowers&image_type=photo\";\n //Instanciar el objeto request para que sea agregado\n // a la cola de requests.\n JsonObjectRequest request = new JsonObjectRequest(\n Request.Method.GET, url, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n JSONArray jsonArray =\n response.getJSONArray(\"hits\");\n for(int i = 0; i < jsonArray.length(); i++){\n JSONObject objImagen\n = jsonArray.getJSONObject(i);\n vDatos.add(new Animales(objImagen.getString(\"user\"),\n objImagen.getString(\"webformatURL\")));\n\n }\n adapter.agregarElemento(vDatos);\n\n }catch (JSONException ex){\n ex.printStackTrace();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n\n }\n }\n );\n mQueue.add(request);\n }", "public interface ConsultarExpedienteService {\n \n DyctContribuyenteDTO buscarNumcontrol(String numControl); \n \n DeclaracionConsultarExpedienteVO buscarOrigenSaldo(String numControl); \n \n ExpedienteDTO buscarExpedienteNumControl(String noControl);\n \n TramiteCortoDTO buscaNumeroControl(String noControl, String rfc);\n \n TramiteCortoDTO buscaNumeroControl(String noControl);\n \n List<DocumentoReqDTO> buscaDocumentoRequerido (String numControl);\n \n List<SolicitudAdministrarSolVO> selecXNumControlEstAprobado(String numControl);\n\n void actualizarFolioNYVFechaNoti(String numControlDoc, String numControl, String folio, String fecha) throws SIATException;\n \n}", "@Override\n protected ProdutoServicoImpl getservice() {\n return produtoService;\n }", "public interface IEtapaService {\n Etapa save(Etapa etapa);\n\n List<EtapaARealizar> tareasProximas();\n}", "public interface APIService {\n\n\t@POST(Configs.ApiConfig.VIDEO_LINK)\n\tObservable<BaseResponse> getAllVedioBy(@Body boolean once_no);\n}", "@Remote\npublic interface IRClienteWSAXIS {\n\n /**\n * Realiza la invocacion con el WebService para realizar la registrar la financiacion y obtener el id del convenio\n * \n * @param financiacion\n * datos de la financiacion\n * @return Financiacion con el Numero de axis para Wla financiacion\n * @author julio.pinzon(2016-08-12)\n * @throws CirculemosNegocioException\n */\n public FinanciacionDTO registrarFinanciacion(FinanciacionDTO financiacion) throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para anular la financiacion\n * \n * @param numeroFinanciacion\n * numero del convenio\n * @author julio.pinzon(2016-08-17)\n * @throws CirculemosNegocioException\n */\n public void anularFinanciacion(String numeroFinanciacion) throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para realizar la impugnacion de un comparendo\n * \n * @param comparendo\n * datos del comparendo\n * @param impugnacion\n * datos de la impugnacion\n * @author julio.pinzon(2016-08-17)\n * @throws CirculemosNegocioException\n */\n public void impugnarComparendo(ComparendoDTO comparendo, ProcesoDTO impugnacion) throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para realizar el registro del fallo sobre la impugnacion previa\n * \n * @param fallo\n * datos del fallo\n * @return Nuevo numero de factura\n * @author julio.pinzon(2016-08-17)\n * @param idProceso\n * @param comparendoDTO\n * @throws CirculemosNegocioException\n */\n public Long registrarFalloImpugnacion(FalloImpugnacionDTO fallo, ComparendoDTO comparendoDTO, Long idProceso)\n throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para realizar el registro del numero de coactivo de axis\n * \n * @param coactivoDTO\n * @return CoactivoDTO\n * @throws CirculemosNegocioException\n * @author Jeison.Rodriguez (2016-09-21)\n */\n public CoactivoDTO registarCoactivo(CoactivoDTO coactivoDTO) throws CirculemosNegocioException;\n}", "Collection<Service> getAllPublishedService();", "public interface WebService {\n public void authenticate(User u) throws BaseException;\n\n public Institute getInstituteById(Long id) throws BaseException;\n public List<Institute> getInstitutes() throws BaseException;\n public void addInstitute(Institute i) throws BaseException;\n\n public User register(User u) throws BaseException;\n public User getUserByName(String name);\n public String getNameById(long id) throws BaseException;\n public long getIdByName(User u) throws BaseException;\n public long getInstituteIdByName(User u) throws BaseException;\n\n public List<Subject> getSubjectsByInstitute(Institute i) throws BaseException;\n public Subject getSubjectByName(String name) throws BaseException;\n public void addSubject(Subject s) throws BaseException;\n\n public List<Comment> getCommentsBySubject(Subject s) throws BaseException;\n public void addComment(Comment c) throws BaseException;\n\n\n}", "public interface GerenciaService {\n\n @GET(Constantes.URL_CAPTURA_GERENCIA_LIST)\n Observable<GerenciaResponse> getGerencias (@Query(Constantes.PARAN_DB) String db,\n @Query(Constantes.PARAN_USER) String user,\n @Query(Constantes.PARAN_PASS)String pass,\n @Query(Constantes.PARAN_OPERATION)String operation);\n}", "public interface NewsWebService {\n\n\n @GET(\"v1/banner/2\")\n Call<ResponseBody> getBanner();\n\n @POST(\"v1/news/all\")\n Call<ResponseBody> getNews(@Body RequestBody body);\n\n @GET(\"v1/news/{newsId}\")\n Call<ResponseBody> getNewsDetail(@Path(\"newsId\") Long newsId);\n\n}", "public interface TuduListsWebService {\r\n\r\n /**\r\n * Find all the todo lists for the current user.\r\n */\r\n WsTodoList[] getAllTodoLists();\r\n \r\n /**\r\n * Find all todos from a todo list.\r\n */\r\n WsTodo[] getTodosByTodoList(String listId);\r\n \r\n}", "public interface TipoVehiculoService {\n\n @Headers(\"Cache-Control: max-age=1\") //eso es para limpiar la cache\n @POST(\"tipoVeh\")\n Call<TipoVehiculo> getTiposVeh();\n}", "private ServiceDomains() {\n }", "public interface DatosAPI\n{\n @GET(\"kspt-6t6c.json\")\n Call<List<CentrosAyuda>> obtenerLista();\n}", "public interface ApiService {\n public static final String Base_URL = \"http://ip.taobao.com/\";\n /**\n *普通写法\n */\n @GET(\"service/getIpInfo.php/\")\n Observable<ResponseBody> getData(@Query(\"ip\") String ip);\n\n\n @GET(\"{url}\")\n Observable<ResponseBody> executeGet(\n @Path(\"url\") String url,\n @QueryMap Map<String, String> maps);\n\n\n @POST(\"{url}\")\n Observable<ResponseBody> executePost(\n @Path(\"url\") String url,\n @FieldMap Map<String, String> maps);\n\n /* @Multipart\n @POST(\"{url}\")\n Observable<ResponseBody> upLoadFile(\n @Path(\"url\") String url,\n @Part(\"image\\\\\"; filename=\\\\\"image.jpg\") RequestBody avatar);\n\n @POST(\"{url}\")\n Call<ResponseBody> uploadFiles(\n @Url(\"url\") String url,\n @Part(\"filename\") String description,\n @PartMap() Map<String, RequestBody> maps);*/\n\n}", "private ServicioProductoSingleton() {\n this.listaProductos = new ArrayList<>();\n }", "@Service\r\npublic interface ResearchService {\r\n\r\n public Page<product_research> getResearchPage(Map<String,Object> params);\r\n public Page<product_research> researchProductPageList(Map<String,Object> params);\r\n public List<product_research> getResearchforbaobiao(Map<String,Object> params);\r\n public int research_add(Map<String,Object> params);\r\n public void research_in(Map<String,Object> params);\r\n public void putuAdd(Map<String,Object> params);\r\n public void researchDel(Map<String,Object> params);\r\n public List<Product_sale_detail> venditionSelect(Map<String,Object> params);\r\n public product_research researchSelect(Map<String,Object> params);\r\n public void researchStatusUp(Map<String,Object> params);\r\n\r\n void research_mod(Map<String, Object> params);\r\n /*public List<pss_research_doc> research_putu(Map<String, Object> params);*/\r\n //public void research_putu(Map<String,Object> params);\r\n}", "public interface GoogleApi {\n\n @Headers(\"Content-Type: application/json\")\n @POST(VISION_CLOUD)\n Call<VisionRespose> processImage64(@Header(\"Content-Length\") String bodyLength, @Query(\"key\") String apiKey, @Body VisionRequest visionRequest);\n\n @Headers(\"Content-Type: application/json\")\n @POST(VISION_CLOUD)\n Call<LogoResponse> processLogoImage64(@Header(\"Content-Length\") String bodyLength, @Query(\"key\") String apiKey, @Body VisionRequest visionRequest);\n\n @Headers(\"Content-Type: application/json\")\n @GET(TRANSLATION_CLOUD)\n Call<TranslationResponse> translateQuery(@Query(\"key\") String apiKey, @Query(\"source\") String source, @Query(\"target\") String target, @Query(\"q\") List<String> queries);\n}", "private DemoProcessStartEmailForWebservice() {\n\n }", "public interface SinaApiService {\n\n @GET(\"cgi-bin/pitu_open_access_for_youtu.fcg\")\n Observable<MoveListBean> faceMerge(@Header(\"Authorization\") String appSign,\n @Body RequestBody body);\n}", "private APIClient() {\n }", "@Override\n public void onSuccess(DocumentReference documentReference) {\n Toast.makeText(getApplicationContext(), \"Servicio agregado correctamente\",Toast.LENGTH_SHORT).show();\n\n }", "@WebService(name = \"UtenteServant\", targetNamespace = \"http://utente.servant.car2go.it/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface UtenteServant {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"verificaPresenzaUsername\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.VerificaPresenzaUsername\")\n @ResponseWrapper(localName = \"verificaPresenzaUsernameResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.VerificaPresenzaUsernameResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/verificaPresenzaUsernameRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/verificaPresenzaUsernameResponse\")\n public boolean verificaPresenzaUsername(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"salvaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.SalvaUtente\")\n @ResponseWrapper(localName = \"salvaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.SalvaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/salvaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/salvaUtenteResponse\")\n public void salvaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Utente arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteByUsernamePassword\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernamePassword\")\n @ResponseWrapper(localName = \"getUtenteByUsernamePasswordResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernamePasswordResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernamePasswordRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernamePasswordResponse\")\n public Utente getUtenteByUsernamePassword(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteByUsername\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsername\")\n @ResponseWrapper(localName = \"getUtenteByUsernameResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernameResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernameRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernameResponse\")\n public Utente getUtenteByUsername(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Ruolo\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRuoloUtenteById\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetRuoloUtenteById\")\n @ResponseWrapper(localName = \"getRuoloUtenteByIdResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetRuoloUtenteByIdResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getRuoloUtenteByIdRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getRuoloUtenteByIdResponse\")\n public Ruolo getRuoloUtenteById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"cancellaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.CancellaUtente\")\n @ResponseWrapper(localName = \"cancellaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.CancellaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/cancellaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/cancellaUtenteResponse\")\n public void cancellaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<it.car2go.servant.utente.Utente>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenti\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenti\")\n @ResponseWrapper(localName = \"getUtentiResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtentiResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtentiRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtentiResponse\")\n public List<Utente> getUtenti();\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteById\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteById\")\n @ResponseWrapper(localName = \"getUtenteByIdResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByIdResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByIdRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByIdResponse\")\n public Utente getUtenteById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<it.car2go.servant.utente.Utente>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"elencoUtentiSemplici\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.ElencoUtentiSemplici\")\n @ResponseWrapper(localName = \"elencoUtentiSempliciResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.ElencoUtentiSempliciResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/elencoUtentiSempliciRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/elencoUtentiSempliciResponse\")\n public List<Utente> elencoUtentiSemplici(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"aggiornaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.AggiornaUtente\")\n @ResponseWrapper(localName = \"aggiornaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.AggiornaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/aggiornaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/aggiornaUtenteResponse\")\n public void aggiornaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Utente arg0);\n\n}" ]
[ "0.6505587", "0.63309026", "0.617812", "0.61716366", "0.60808754", "0.6029637", "0.601492", "0.60091007", "0.59587646", "0.5927493", "0.5894175", "0.58763987", "0.5853098", "0.5845525", "0.58277494", "0.5765692", "0.57619023", "0.57615405", "0.57590187", "0.5757114", "0.5744021", "0.57344556", "0.57046205", "0.5704366", "0.56927854", "0.5692642", "0.56885195", "0.56862015", "0.5665093", "0.5660004", "0.56491154", "0.56475604", "0.5640398", "0.5615519", "0.56063306", "0.5588908", "0.558283", "0.5575863", "0.5568594", "0.5553794", "0.5544569", "0.5539915", "0.5532823", "0.55278224", "0.552161", "0.55213094", "0.5519644", "0.5495453", "0.54930663", "0.54903954", "0.54749787", "0.5470072", "0.5468614", "0.54432887", "0.54426533", "0.5440229", "0.5438066", "0.54320794", "0.54297864", "0.54213375", "0.5417447", "0.54154706", "0.54104996", "0.5409499", "0.5404348", "0.5394729", "0.53932095", "0.5388643", "0.5386136", "0.53857756", "0.53847593", "0.5380912", "0.53777707", "0.5373505", "0.537062", "0.5362821", "0.53625214", "0.53619075", "0.53613865", "0.5359856", "0.53556204", "0.53556055", "0.53534496", "0.5353022", "0.534627", "0.5340963", "0.53389424", "0.5338798", "0.5337923", "0.5333389", "0.53324646", "0.5331272", "0.53269935", "0.532664", "0.5321377", "0.5320717", "0.53189284", "0.53173196", "0.5316204", "0.5315906" ]
0.5678795
28
strange behavior in java you can have a method with the same name at the class name and looks like a constructor but it isn't, just good to know
public Product Product() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "public Method(String name, String desc) {\n/* 82 */ this.name = name;\n/* 83 */ this.desc = desc;\n/* */ }", "private void __sep__Constructors__() {}", "public Methods() {\n // what is this doing? -PMC\n }", "public Fun_yet_extremely_useless()\n {\n\n }", "public Calculator() {\r\n\t\t/*\r\n\t\t * Constructor - Method name which has the same class name is called a Consatructor\r\n\t\t */\r\n\t\tSystem.out.println(\"Calling constructor\");\r\n\t}", "void DefaultConstructor(){}", "public Method() {\n }", "TypesOfConstructor(){\n System.out.println(\"This is default constructor\");\n }", "private void translateConstructor( ) {\n \n Set<MethodInfoFlags> flags = EnumSet.noneOf( MethodInfoFlags.class );\n \n AVM2Method method = new AVM2Method( null, flags );\n avm2Class.avm2Class.constructor = method;\n \n AVM2MethodBody body = method.methodBody;\n body.maxStack = 1;\n body.maxRegisters = 1;\n body.maxScope = 11;\n body.scopeDepth = 10;\n \n InstructionList il = body.instructions;\n \n// il.append( OP_getlocal0 );\n// il.append( OP_pushscope );\n il.append( OP_getlocal0 );\n il.append( OP_constructsuper, 0 );\n \n// il.append( OP_findpropstrict, new AVM2QName( PUBLIC_NAMESPACE, \"drawTest\" ));\n il.append( OP_getlocal0 );\n \n il.append( OP_callpropvoid, new AVM2QName( EmptyPackage.namespace, \"drawTest\" ), 0 );\n\n il.append( OP_returnvoid );\n }", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "private MethodType(String name) {\n super(name);\n }", "Reproducible newInstance();", "protected MethodNameRecord(){}", "defaultConstructor(){}", "public OOP_207(){\n\n }", "public Sad() {\n }", "public void firstClass(){\n }", "private String replaceFullNameWithConstructor(String typeName) {\r\n\t\tint pos = typeName.lastIndexOf('.');\r\n\t\treturn JavascriptKeywords.CONSTRUCTOR + typeName.substring(pos);\r\n\t}", "public abstract Object mo26777y();", "private CommonMethods() {\n }", "private ChainingMethods() {\n // private constructor\n\n }", "public static void main(String[] args) {\n\t\tthisconstructor rv = new thisconstructor();\n\t\n\t\n\t}", "public MethodEx2() {\n \n }", "abc createabc();", "Method createMethod();", "Method createMethod();", "public static void copyConstructor(){\n\t}", "private boolean isConstructor() {\n \tif (line.contains(\"new \")) {\n \t\treturn false;\n \t}\n int bracket = line.indexOf(\"(\");\n if(bracket==-1) {\n return false;\n }\n String declaration = line.substring(0,bracket);\n String[] words = declaration.split(\"\\\\s+\");\n return words[words.length-1].equals(className);\n }", "private DarthSidious(){\n }", "public Employee()\n\t{\n\t\tthis(\"(2)Invoke Employee's overload constructor\");\n\t\tSystem.out.println(\"(3)Employee's no-arg constructor is invoked\");\n\t}", "public Constructor(){\n\t\t\n\t}", "ConstuctorOverloading(int num){\n\t\tSystem.out.println(\"I am contructor with 1 parameter\");\n\t}", "private A(){\n System.out.println(\"Instance created\");\n }", "private Solution() {\n /**.\n * { constructor }\n */\n }", "public abstract Member mo23408O();", "public Call_simple() {\n }", "SomeClass someClass();", "public boolean isConstructor();", "public Methods() { // ini adalah sebuah construktor kosong tidak ada parameternya\n System.out.println(\"Ini adalah Sebuah construktor \");\n }", "private MethodClass() {\r\n super(IMethodClass.TYPE_ID);\r\n }", "@Override\n public String visit(ExplicitConstructorInvocationStmt n, Object arg) {\n return null;\n }", "public void foo() {\r\n\t}", "protected MethodCallPrinter()\n {\n }", "public abstract C mo29734a();", "public lo() {}", "private void addConstructors() {\n\t\tthis.rootBindingClass.getConstructor().body.line(\"super({}.class);\\n\", this.name.getTypeWithoutGenerics());\n\t\tGMethod constructor = this.rootBindingClass.getConstructor(this.name.get() + \" value\");\n\t\tconstructor.body.line(\"super({}.class);\", this.name.getTypeWithoutGenerics());\n\t\tconstructor.body.line(\"this.set(value);\");\n\t}", "public Self__1() {\n }", "NewClass1 createNewClass1();", "void updateConstructorsNames(Identifier name) throws SourceException {\n }", "private Instantiation(){}", "@Override\n\tpublic void randomMethod(String name) {\n\t\t\n\t}", "public static MethodBuilder constructor(String name) {\n\t\treturn new MethodBuilder().returnType(\"\").name(name);\n\t}", "public Function()\n {}", "public static void main(String[] args) {\n for(int i=0; i<10; i++){\n Constructor c=new Constructor (i);\n c.Constructor(\"Who\");\n \n } \n }", "private UsineJoueur() {}", "MethodStart createMethodStart();", "public void testCtorAccuracy() {\r\n assertNotNull(\"Should create the instance successfully.\", log);\r\n assertEquals(NAME, log.getName());\r\n }", "public static void main(String[] args) {\nconstructorDemo obj=new constructorDemo();\nconstructorDemo obj1=new constructorDemo(\"My Parameter\");\nconstructorDemo obj2=new constructorDemo(123);\nconstructorDemo obj3=new constructorDemo(123,6);\nSystem.out.println(\"code after creating object\");\nobj.hello();\nobj.hello(\"hi\");\n\t}", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "Constructor(int i,String n ,int x){ //taking three parameters which shows that it is constructor overloaded\r\n\t\t id = i; \r\n\t\t name = n; \r\n\t\t marks =x; \r\n\t\t }", "DefaultConstructor(int a){}", "List constructors();", "public static void main(String[] args) {\n My obj2=new My(9);//--->called overloaded Constructor\n }", "public void mo21877s() {\n }", "public abstract Object mo1771a();", "public static NewExpression new_(Constructor constructor) { throw Extensions.todo(); }", "public void a() {\n }", "public void a() {\n }", "student(){\r\n \r\n //constructor\r\n //always same as class name\r\n //we can also have code here\r\n //this will be the first method to be intialised\r\n //can never return a value\r\n number++;// default initialisation\r\n }", "public void a() {\r\n }", "public MyClass1(String name) {\n\t\tsuper();\n\t\tthis.name = name;\n\t}", "private Rekenhulp()\n\t{\n\t}", "private Add() {}", "private Add() {}", "public f206(String name) {\n super(name);\n }", "private static boolean namedConstructorDeclaration_7_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"namedConstructorDeclaration_7_0\")) return false;\n boolean r;\n r = consumeToken(b, SEMICOLON);\n if (!r) r = functionBodyOrNative(b, l + 1);\n if (!r) r = redirection(b, l + 1);\n return r;\n }", "public _355() {\n\n }", "private Help() {\n // hidden constructor\n }", "static Identifier makeClassMethod(final QualifiedName name) {\r\n if (name == null) {\r\n return null;\r\n } else {\r\n return new Identifier(Category.CLASS_METHOD, name);\r\n }\r\n }", "public aed(World paramaqu)\r\n/* 9: */ {\r\n/* 10: 24 */ super(paramaqu);\r\n/* 11: */ }", "private E() {}", "private NameUtil() {\n }", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "public interface IConstructorFunctionSymbol {\n\n public IConstructorInfo getConstructorInfo();\n \n}", "@Override\n\tpublic void name1() {\n\t\t\n\t}", "public static aa a() {\n }", "public static a c() {\n }", "public Funcionaria(){\n\n }", "public MockClass(String arg) {\n\t}", "public Name() {\n\n }", "Makhluk() { // kosong\n\n }", "private TMCourse() {\n\t}", "public static void log(String str) {\n System.out.println(\"static void constructor method\" + \" => \" + str);\n }", "private stendhal() {\n\t}", "public abstract String mo13682d();", "public Method(String name, Type returnType, Type[] argumentTypes) {\n/* 98 */ this(name, Type.getMethodDescriptor(returnType, argumentTypes));\n/* */ }", "Constructor<T> newConstructor();", "private String processConstructor() {\n int firstBracket = line.indexOf('(');\n //The substring of line after the bracket (inclusive)\n String parameters = line.substring(firstBracket);\n return \"A constructor \"+className+parameters+\" is created.\";\n }", "private Foo() {\n\t\tSystem.out.println(\"Private Constructor.\");\n\t}", "@Test\n public void testIsNotConstructorInvocation() {\n MethodInvokation init = new MethodInvokation(null,\"<init>\",null,null,null,null);\n assertFalse(\"Standard constructor\", init.isNotConstructorInvocation() );\n\n MethodInvokation clinit = new MethodInvokation(null,\"<clinit>\",null,null,null,null);\n assertFalse(\"Static constructor\", clinit.isNotConstructorInvocation() );\n\n MethodInvokation ordinaryMethod = new MethodInvokation(null,\"ordinary\",null,null,null,null);\n assertTrue(\"Ordinary method\", ordinaryMethod.isNotConstructorInvocation() );\n\n }" ]
[ "0.7197139", "0.71602535", "0.7136738", "0.67031765", "0.6678143", "0.66612333", "0.6627675", "0.6581048", "0.64778775", "0.646625", "0.6446327", "0.63952863", "0.63817984", "0.63364416", "0.6271771", "0.6254073", "0.62288916", "0.6207343", "0.6194696", "0.6180944", "0.6157127", "0.6147471", "0.61337304", "0.6126421", "0.6057107", "0.6052862", "0.6052862", "0.60520124", "0.6043977", "0.60375094", "0.6022624", "0.6008548", "0.59961325", "0.5979569", "0.59645474", "0.5962711", "0.59553766", "0.5954996", "0.59535956", "0.5952721", "0.5945627", "0.59338737", "0.59329665", "0.5924175", "0.5923333", "0.58985317", "0.5893265", "0.58909136", "0.58872145", "0.5878249", "0.5875364", "0.5871323", "0.58711106", "0.5868495", "0.5856577", "0.58536804", "0.5847759", "0.58440965", "0.58239967", "0.5823786", "0.58195555", "0.5812173", "0.5805756", "0.5804591", "0.5800487", "0.57991236", "0.5798177", "0.5789906", "0.5789906", "0.57864326", "0.57764226", "0.57683223", "0.5767022", "0.57484305", "0.57484305", "0.57387686", "0.5738336", "0.57373357", "0.57346237", "0.57319266", "0.57305723", "0.57301545", "0.57290316", "0.57265484", "0.57260054", "0.5721971", "0.5721501", "0.5719852", "0.57197756", "0.5717347", "0.57123435", "0.57099366", "0.5706164", "0.5703439", "0.57004404", "0.5698776", "0.56799585", "0.5675582", "0.56715524", "0.56705236", "0.56650996" ]
0.0
-1
change also the returned object, now it isn't needed the cast in class Main fix clone for category, I miss that at class
@Override public Product clone() throws CloneNotSupportedException { Product newObject = (Product)super.clone(); if(this.category != null) { try { newObject.category = ((Category) this.category.clone()); } catch (CloneNotSupportedException exc) { exc.printStackTrace(); } } if(this.price != null) { try { newObject.price = (this.price.clone()); } catch (CloneNotSupportedException exc) { exc.printStackTrace(); } } return newObject; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object caseCategory(Category object) {\n\t\treturn null;\n\t}", "void restoreCategory(Category category);", "private Object getAnomizedCategory() {\r\n\tString categorie = (String) record.get(\"categorie\");\r\n\tif (categorie != null) {\r\n\t switch (categorie) {\r\n\t case \"AD\":\r\n\t case \"CO\":\r\n\t case \"FI\":\r\n\t case \"IBL\":\r\n\t case \"KI\":\r\n\t case \"KL\":\r\n\t case \"VO\":\r\n\t\tbreak;\r\n\t default:\r\n\t\tcategorie = null;\r\n\t\tbreak;\r\n\t }\r\n\t}\r\n\r\n\treturn categorie;\r\n }", "private CategoriesResponseDto.Categorie mapper(CategoriesApiResponse.SubCategorie target) {\n return CategoriesResponseDto.Categorie.builder()\n .id(target.getId())\n .name(target.getName())\n .relevance(target.getRelevance())\n .iconImageUrl(target.getIconImageUrl())\n .subcategories(target.getSubcategories())\n .build();\n }", "public Object caseCategoryPackage(CategoryPackage object) {\n\t\treturn null;\n\t}", "public Category getCategory();", "void updateCategory(Category category);", "void updateCategory(Category category);", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "public Category convertResultSetToCategory(ResultSet rs)\n {\n if (rs != null)\n {\n try\n {\n int pCategoryID = rs.getInt(\"CategoryID\");\n String pCategoryName = rs.getString(\"CategoryName\");\n String pDescription = rs.getString(\"Description\");\n String pCreationDate = rs.getString(\"CreationDate\");\n \n return new Category(pCategoryID, pCategoryName, pDescription, pCreationDate);\n }\n catch (Exception e)\n {\n // TODO: Handle\n }\n }\n \n return null;\n }", "private CategoryDTO getCategoryDto(){\n\t\tCategoryDTO category = new CategoryDTO(Long.valueOf(1L), \"categoryName\", \"categoryDesc\");\n\t\treturn category;\n\t}", "protected Category convertToEntity(CategoryDto categoryDto) {\n if (categoryDto == null) {\n return null;\n }\n return modelMapper.map(categoryDto, Category.class);\n }", "public LocalSessionCategory convertToLocal() {\n\n return category;\n }", "public CCGCategory apply(CCGCategory cat) {\n return null;\n }", "@Override\n\tpublic List<CategoryVO> mainCategory() {\n\t\treturn mapper.mainCategory();\n\t}", "public final Class<? extends Attribute> getCategory() {\n/* 219 */ return (Class)SheetCollate.class;\n/* */ }", "public abstract String getCategory();", "public abstract String getCategory();", "@Override\r\n\tpublic void setSelectedItem(Object anItem) {\n c=(Category) anItem;\r\n\t}", "public Category getCategory() {\n return category;\n }", "public Object caste(Object item, CastTo ct){\n Object result = new Object();\n switch(ct){\n case date:result = DateParser.parse((String)item, OutFormat.date);\n break;\n case datetime:result = DateParser.parse((String)item, OutFormat.datetime);\n break;\n case datetime2:result = DateParser.parse((String)item, OutFormat.datetime2);\n break;\n case smalldatetime:result = DateParser.parse((String)item, OutFormat.smalldatetime);\n break;\n case time:result = DateParser.parse((String)item, OutFormat.time);\n break;\n case CHAR:result = CharCatster(item);\n //return result.toString();\n break;\n case UNSIGNED:result = UnSigndCatster(item);\n break;\n case SIGNED:result = SigndCatster(item);\n break;\n case BINARY:result = BinaryCaster(item);\n break;\n }\n return result;\n }", "public RoomCategory getRoomCategory(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.roomcategory.v1.RoomCategory res){\n\t\tRoomCategory roomCategory = new RoomCategory();\n\t\t\n\t\troomCategory.setRoomTypeCode( res.getRoomTypeCode() );\n\t\troomCategory.setRoomTypeDescription( res.getRoomTypeDescription() );\n\t\t\n//\t\tCode to set the room description in UI\n\t\tString roomDescription = res.getRoomTypeDescription();\n\t\tif (roomDescription!=null && roomDescription.contains(\":\")) {\n\t\t\tint firstColonIndex=roomDescription.indexOf(\":\");\n\t\t\tint lastCOlonIndex= roomDescription.lastIndexOf(\":\");\n\t\t\tString removedString = (roomDescription.substring(firstColonIndex,lastCOlonIndex+1));\n\t\t\tString roomTypeToBediplayedonUI = roomDescription.replace(removedString, \"\");\n\t\t\t\n\t\t\troomCategory.setRoomTypeCode( res.getRoomTypeCode() + \"-RD-\" + roomDescription);\n\t\t\troomCategory.setRoomTypeDescription(roomTypeToBediplayedonUI);\n\t\t}\n\t\telse{\n\t\t\t//Start the fix of HBSI 52 - Phase 1 // Setting the default roomTypeCode and Description\n\t\t\troomCategory.setRoomTypeCode( res.getRoomTypeCode());\n\t\t\troomCategory.setRoomTypeDescription(res.getRoomTypeDescription());\n\t\t}\n\t\t //End the fix of HBSI 52 -Phase 1 \n\t\troomCategory.setRatePlanId( res.getRatePlanId() );\n\t\troomCategory.setRatePlanCode( res.getRatePlanCode() );\n\t\troomCategory.setRatePlanDescription( res.getRatePlanDescription() );\n\t\tif( res.getRateIndicator() != null ){\n\t\t\troomCategory.setRateIndicator( res.getRateIndicator() );\n\t\t}\n\t\telse{\n\t\t\troomCategory.setRateIndicator( \"\" );\n\t\t}\n\t\tif( res.getCorporateId() != null ){\n\t\t\troomCategory.setCorporateId( res.getCorporateId() );\n\t\t}\n\t\telse{\n\t\t\troomCategory.setCorporateId( \"\" );\n\t\t}\n\t\tif( res.getGuaranteeType() != null ){\n\t\troomCategory.setGuaranteeType( res.getGuaranteeType() );\n\t\t}\n\t\telse{\n\t\t\troomCategory.setGuaranteeType( \"\" );\n\t\t}\n\t\tif( res.getGuaranteeMethod() != null ){\n\t\troomCategory.setGuaranteeMethod( res.getGuaranteeMethod() );\n\t\t}\n\t\telse{\n\t\t\troomCategory.setGuaranteeMethod( \"\" );\n\t\t}\n\t\tif( res.getGuaranteeRequired() != null ){\n\t\troomCategory.setGuaranteeRequired( res.getGuaranteeRequired() );\n\t\t}\n\t\telse{\n\t\t\troomCategory.setGuaranteeRequired( \"\" );\n\t\t}\n\t\troomCategory.setRatePlanCategory( res.getRatePlanCategory() );\n\t\troomCategory.setStatus( res.getStatus() );\n\t\tif( res.getCurrency() != null ){\n\t\t\troomCategory.setCurrency( res.getCurrency() );\n\t\t}\n\t\telse{\n\t\t\troomCategory.setCurrency( \"\" );\n\t\t}\n\t\troomCategory.setPosnr( res.getPosnr() );\n\t\troomCategory.setOldPosnr( res.getOldPosnr() );\n\t\troomCategory.setMealplanDesc( res.getMealplanDesc() );\n\t\tif( res.getHotelId() != null ){\n\t\t\troomCategory.setHotelId( res.getHotelId().intValue() );\n\t\t}\n\t\tif( res.getRoomCategoryId() != null ){\n\t\t\troomCategory.setRoomCategoryId( res.getRoomCategoryId().intValue() );\n\t\t}\n\t\tif( res.getNoOfRoomsAvailable() != null ){\n\t\t\troomCategory.setNoOfRoomsAvailable( res.getNoOfRoomsAvailable().intValue() );\n\t\t}\n\t\tif( res.isRiskRoomCategory() != null ){\n\t\t\troomCategory.setRiskRoomCategory( res.isRiskRoomCategory().booleanValue() );\n\t\t}\n\t\tif( res.isAppleChoice() != null ){\n\t\t\troomCategory.setAppleChoice( res.isAppleChoice().booleanValue() );\n\t\t}\n\t\tif( res.getGuaranteeAmount() != null ){\n\t\t\troomCategory.setGuaranteeAmount( res.getGuaranteeAmount() );\n\t\t}\n\t\tif( res.getDisplayRoomPrice() != null ){\n\t\t\troomCategory.setDisplayRoomPrice( this.getRoomPrice( res.getDisplayRoomPrice() ) );\n\t\t}\n\t\tif( (res.getMealPlanType() != null) && (res.getMealPlanType().getCode() != null) ){\n\t\t\troomCategory.setMealPlanType( this.getMealPlanType( res.getMealPlanType() ) );\n\t\t}\n\t\tif( (res.getRoomPrices() != null) && (res.getRoomPrices().size() > 0) ){\n\t\t\tList<RoomPrice> roomPrices = new ArrayList<RoomPrice>();\n\t\t\tfor(int i=0; i < res.getRoomPrices().size(); i++){\n\t\t\t\tif( res.getRoomPrices().get(i) != null )\n\t\t\t\troomPrices.add( this.getRoomPrice( res.getRoomPrices().get(i) ) );\n\t\t\t}\n\t\t\troomCategory.setRoomPrices( roomPrices );\n\t\t}\n\t\tif( (res.getAmenities() != null) && (res.getAmenities().size() > 0) ){\n\t\t\tList<Amenity> amenities = new ArrayList<Amenity>(res.getAmenities().size());\n\t\t\tfor(int i=0; i < res.getAmenities().size(); i++){\n\t\t\t\tif( res.getAmenities().get(i) != null )\n\t\t\t\tamenities.add( this.getAmenity( res.getAmenities().get(i) ) );\n\t\t\t}\n\t\t\troomCategory.setAmenities( amenities );\n\t\t}\n\t\t\n\t\tif(res!=null && res.getHbsiRates()!=null && res.getHbsiRates().size()>0){\n\t\t\tList<HBSiRates> hbsiRates = new ArrayList<HBSiRates>(res.getHbsiRates().size());\n\t\t\tfor(int hbsiRate=0;hbsiRate<res.getHbsiRates().size();hbsiRate++)\n\t\t\t{\n\t\t\t\tif(res.getHbsiRates().get(hbsiRate)!=null)\n\t\t\t\t{\n\t\t\t\t\thbsiRates.add(this.getHBSiRate(res.getHbsiRates().get(hbsiRate)));\n\t\t\t\t\t//roomCategory.getHbsiRates().add(hbsiRate, getHBSiRate(res.getHbsiRates().get(hbsiRate)));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\troomCategory.setHbsiRates(hbsiRates);\n\t\t}\n\t\t\n\t\t//set Cancel Policy for room category\n\t\tif(res!=null && res.getCancelPolicy()!=null && res.getCancelPolicy().size()>0)\n\t\t{\n\t\t\tList<com.kcdata.abe.data.dto.CancelPolicy> canccelPolicies = new ArrayList<com.kcdata.abe.data.dto.CancelPolicy>(res.getCancelPolicy().size());\n\t\t\tfor(int cancelPolicy=0;cancelPolicy<res.getCancelPolicy().size();cancelPolicy++)\n\t\t\t{\n\t\t\t\tif(res.getCancelPolicy().get(cancelPolicy)!=null)\n\t\t\t\t{\n\t\t\t\t\tcanccelPolicies.add(this.getCancelPolicy(res.getCancelPolicy().get(cancelPolicy)));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\troomCategory.setCancelPolicy(canccelPolicies);\n\t\t}\n\t\treturn roomCategory;\n\t}", "public Category getCategoryById()\r\n {\r\n return cdb.getCategoryById();\r\n }", "@SuppressWarnings(\"unchecked\")\n public static Observable.Transformer<SetList, List<Category>> mapSetToCategory() {\n return categoryTransformer;\n }", "public void setSelectedItem(Object anItem)\n/* */ {\n/* 49 */ this.c = ((Category)anItem);\n/* */ }", "@Override\n\tpublic void update(Category entity) {\n\n\t}", "protected abstract Object transform(Object o);", "Category selectCategory(long id);", "private MorphCategory get(String name)\n {\n MorphCategory cat = this.categoryMap.get(name);\n\n if (cat == null)\n {\n this.categoryMap.put(name, cat = new MorphCategory(this, name));\n }\n\n return cat;\n }", "private static productCategory extractProductCategoryFromResultSet(ResultSet myRs) throws SQLException\n {\n productCategory productCategory = new productCategory();\n\n productCategory.categoryName.setValue(myRs.getString(2));\n productCategory.productName.setValue(myRs.getString(3));\n getAttributes(productCategory);\n\n\n return productCategory;\n }", "public interface CMObject extends Cloneable, Comparable<CMObject>\r\n{\r\n\t/**\r\n\t * The CoffeeMud Java Class ID shared by all instances of\r\n\t * this object. Unlike the Java Class name, this method\r\n\t * does not include package information. However, it must\r\n\t * return a String value unique to its class category in\r\n\t * the ClassLoader. Class categories include Libraries, Common,\r\n\t * Areas, Abilities, Behaviors, CharClasses, Commands, Exits\r\n\t * Locales, MOBS, Races, WebMacros, Basic Items, Armor,\r\n\t * Weapons, ClanItems, Tech. The name is typically identical\r\n\t * to the class name.\r\n\t * @return the name of this class\r\n\t */\r\n\tpublic String ID();\r\n\t/**\r\n\t * The displayable name of this object. May be modified by phyStats() object. Is\r\n\t * derived from the Name().\r\n\t * @see Environmental#Name()\r\n\t * @return the modified final name of this object on the map.\r\n\t */\r\n\tpublic String name();\r\n\t/**\r\n\t * Returns a new instance of this class.\r\n\t * @return a new instance of this class\r\n\t */\r\n\tpublic CMObject newInstance();\r\n\t/**\r\n\t * Similar to Cloneable.clone(), but does its best to make sure that\r\n\t * any internal objects to this class are also copyOfed.\r\n\t * @return a clone of this object\r\n\t */\r\n\tpublic CMObject copyOf();\r\n\r\n\t/**\r\n\t * Called ONCE after all objects are loaded, but before the map is read in\r\n\t * during initialization.\r\n\t */\r\n\tpublic void initializeClass();\r\n\r\n\t/**\r\n\t * A helpful converter for extracting the ID from a CMOBject\r\n\t */\r\n\tpublic final static Converter<? extends CMObject,String> idConverter = new Converter<CMObject,String>()\r\n\t{\r\n\t\t@Override\r\n\t\tpublic String convert(final CMObject obj)\r\n\t\t{\r\n\t\t\treturn obj.ID();\r\n\t\t}\r\n\t};\r\n}", "public Category getCategory() {\r\n return category;\r\n }", "public Category() {}", "@Override\r\n\tpublic void cast() {\n\r\n\t}", "protected CategoryDto convertToDto(Category category) {\n if (category == null) {\n return null;\n }\n return modelMapper.map(category, CategoryDto.class);\n }", "public Kategorie unwrapKategorieFX(KategorieFX kategorieFX);", "public @NotNull Category newCategory();", "private void updateCategoryTree() {\n categoryTree.removeAll();\r\n fillTree(categoryTree);\r\n\r\n }", "public Category getCategory() {\n return category;\n }", "public Category getCategory() {\n return category;\n }", "public Category getCategory() {\n return category;\n }", "public Category getCategory() {\n return category;\n }", "public Category getCategory() {\n return category;\n }", "public ItemCategory getCategory();", "public KategorieFX wrapKategorie(Kategorie kategorie);", "public interface Category {\n\t\n\tpublic Integer getId();\n\t\n\tpublic void setId(Integer id);\n\t\n\tpublic String getName();\n\t\n\tpublic void setName(String name);\n\t\n\tpublic Category getParentCategory();\n\t\n\tpublic void setParentCategory(Category parentCategory);\n\t\n\n}", "JAVATYPE convert(JAVATYPE oldValue, final METATYPE meta);", "public category() {\r\n }", "public void changeCategory(Category newCategory) {\n this.category = newCategory;\n }", "public RowCategory getTheObject(){\n return this;\n }", "public void setCategory(String newCategory) {\n category = newCategory;\n }", "public void newCategory() {\n btNewCategory().push();\n }", "CategoryType createCategoryType();", "public Category() {\n }", "private RunnerInfo.Category stringToCat(String catStr) {\n if (catStr.contains(\"Femme\")) {\n return RunnerInfo.Category.WOMEN;\n } else {\n return RunnerInfo.Category.MEN;\n }\n }", "void updateCategory(String category){}", "@SuppressWarnings(\"unchecked\")\n \tprivate <T extends Entity<T>> T _clone(Entity<T> obj) throws RaplaException {\n \t\tEntity<T> deepClone = ((Mementable<T>) obj).deepClone();\n \t\tT clone = deepClone.cast();\n \n \t\tRaplaType raplaType = clone.getRaplaType();\n \t\tif (raplaType == Appointment.TYPE) {\n \t\t\t// Hack for 1.6 compiler compatibility\n \t\t\tObject temp = clone;\n \t\t\t((AppointmentImpl) temp).removeParent();\n \t\t}\n \t\tif (raplaType == Category.TYPE) {\n \t\t\t// Hack for 1.6 compiler compatibility\n \t\t\tObject temp = clone;\n \t\t\t((CategoryImpl) temp).removeParent();\n \t\t}\n \n \t\tsetNew((RefEntity<T>) clone, this.workingUser);\n \t\treturn clone;\n \t}", "public static void main(String[] args) {\n\n A ab = new B();\n A ac = new C();\n C c = new C();\n C2 c2 = new C2();\n// ab = (C) ab;\n// ac = (B) ac;\n\n }", "@Override\n\tpublic List<CategoryVO> subCategory(Integer cate_code_pk) {\n\t\treturn mapper.subCategory(cate_code_pk);\n\t}", "@Override\n public C convert(Object key, Object previousValue, Metadata previousMetadata, Object value, Metadata metadata, EventType eventType) {\n return (C) GODZILLA;\n }", "private CIECADocument updateCoverageCategory(final CIECADocument inDoc, final java.util.logging.Logger mLogger) {\n\t\t\n\t\tif (inDoc != null && inDoc.getCIECA() != null && inDoc.getCIECA().getAssignmentAddRq() != null) {\n\t\t\t\n\t\t\t//\n\t\t\t// <ClaimInfo>/<PolicyInfo>/<CoverageInfo>/<Coverage>/<CoverageCategory>\n\t\t\t//\n\t\t\tfinal ClaimInfoType claimInfo = inDoc.getCIECA().getAssignmentAddRq().getClaimInfo();\n\t\t\tif (claimInfo != null) {\n\t\t\t\tif (claimInfo.isSetPolicyInfo()) {\n\t\t\t\t\tfinal PolicyInfoType policyInfo = claimInfo.getPolicyInfo();\n\t\t\t\t\tif (policyInfo != null) {\n\t\t\t\t\t\tif (policyInfo.isSetCoverageInfo()) {\n\t\t\t\t\t\t\tfinal CoverageInfoType coverageInfo = policyInfo.getCoverageInfo();\n\t\t\t\t\t\t\tif (coverageInfo != null && coverageInfo.sizeOfCoverageArray() > 0) {\n\t\t\t\t\t\t\t\tfinal Coverage coverage = coverageInfo.getCoverageArray(0);\n\t\t\t\t\t\t\t\tif (coverage != null) {\n\t\t\t\t\t\t\t\t\tif (coverage.isSetCoverageCategory()) {\n\t\t\t\t\t\t\t\t if (mLogger.isLoggable(Level.FINE)) {\n\t\t\t\t\t\t\t\t \tmLogger.fine(\"********* BEFORE updateCoverageCategory:: coverage.getCoverageCategory(): [ \" + coverage.getCoverageCategory() + \" ] *********\");\n\t\t\t\t\t\t\t\t }\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t// TypeOfLoss - C maps to G, P maps to A, M maps to D, \n\t\t\t\t\t\t\t\t\t\t// A (Animal) maps to 0 Else no mapping \n\t\t\t\t\t\t\t\t\t\tif (coverage.getCoverageCategory() != null) {\n\t\t\t\t\t\t\t\t\t\t\tfinal String inCoverageCategory = coverage.getCoverageCategory();\n\t\t\t\t\t\t\t\t\t\t\tif (inCoverageCategory.equalsIgnoreCase(\"C\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tcoverage.setCoverageCategory(\"G\");\n\t\t\t\t\t\t\t\t\t\t\t} else if (inCoverageCategory.equalsIgnoreCase(\"P\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tcoverage.setCoverageCategory(\"A\");\n\t\t\t\t\t\t\t\t\t\t\t} else if (inCoverageCategory.equalsIgnoreCase(\"M\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tcoverage.setCoverageCategory(\"D\");\n\t\t\t\t\t\t\t\t\t\t\t} else if (inCoverageCategory.equalsIgnoreCase(\"A\")) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Map A (Animal) to O (Other) - preventing collision with A (Property)\n\t\t\t\t\t\t\t\t\t\t\t\tcoverage.setCoverageCategory(\"0\");\n\t\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t\t// else NO MAPPING of remaining LossTypes\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t if (mLogger.isLoggable(Level.FINE)) {\n\t\t\t\t\t\t\t\t \tmLogger.fine(\"********* AFTER updateCoverageCategory:: coverage.getCoverageCategory(): [ \" + coverage.getCoverageCategory() + \" ] *********\");\n\t\t\t\t\t\t\t\t }\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t}\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\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn inDoc;\n\t}", "public static Categorias obtenerCategoria(int id){\n Categorias categoria = new Categorias();\n \n Categorias c = new Categorias();\n \n c.conectar();\n \n c.crearQuery(\"select * from categoria_libro where id = ?\");\n \n c.agregarParametro(1, id);\n \n ResultSet informacion = c.getResultSet();\n \n try {\n if (informacion.next())\n categoria = new Categorias(informacion);\n } catch (Exception error) {}\n \n c.desconectar();\n \n return categoria;\n }", "@Test\n public void test59() throws Throwable {\n DefaultKeyedValues2DDataset defaultKeyedValues2DDataset0 = new DefaultKeyedValues2DDataset();\n NumberAxis numberAxis0 = new NumberAxis(\"w9!(d\");\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\"w9!(d\");\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultKeyedValues2DDataset0, (CategoryAxis) extendedCategoryAxis0, (ValueAxis) numberAxis0, (CategoryItemRenderer) null);\n CategoryPlot categoryPlot1 = (CategoryPlot)categoryPlot0.clone();\n }", "@Override\n\tpublic Category getById(long id) {\n\t\treturn getById(id);\n\t}", "private Category identifyCategory(Integer hcat) {\n\t\tCategory c = null;\n\t\t\n\t\tif (hcat != null) {\n\t\t\tc = this.categoryMap.get(Long.valueOf(hcat));\n\t\t\tif (c == null) {\n\t\t\t\tc = this.noCategory;\n\t\t\t}\n\t\t\treturn c;\n\t\t}\n\t\telse {\n\t\t\treturn this.noCategory;\n\t\t}\n\t}", "public Category getCategory() {\n return (category == null) ? new Category() : category;\n }", "public String getCategory_name(){return category_name;}", "public CategoryTO(String categoryID, String name, String parentID,\n boolean leaf, Long questionID) {\n this.categoryID = categoryID;\n this.name = name;\n this.parentID = parentID;\n this.leaf = leaf;\n this.questionID = questionID;\n }", "public void setId(Category category) {\n\t\r\n}", "private void populaObjetivoCat()\n {\n objetivoCatDAO.insert(new ObjetivoCat(\"Hipertrofia\", \"weight\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Saude\", \"apple\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Emagrecer\", \"gloves\"));\n }", "Category getCategoryById(int id);", "public Object convert(Object fromValue) {\n RawObject oldDataRawObject = (RawObject) fromValue;\n Object[] oldElements = oldDataRawObject.getElements();\n Map<String, Object> integerClassValues = \n new HashMap<String, Object>();\n integerClassValues.put(\"data\", oldElements[0]);\n RawObject integerClassObject = \n new RawObject(integerClassType, integerClassValues, null);\n RawObject[] newElements = new RawObject[1];\n newElements[0] = integerClassObject;\n RawObject newDataRawObject = \n new RawObject(newDataType, newElements);\n return newDataRawObject;\n }", "private ZCategory stringToCategory(String categoryData) {\r\n\t\tZCategory category = new ZCategory();\r\n\t\tString[] tmp = categoryData.split(Commons.SPLITTER_LEVEL1);\r\n\t\ttry {\r\n\t\t\tcategory.setCatId(Integer.parseInt(tmp[0]));\r\n\t\t\tcategory.setCatName(tmp[1]);\r\n\r\n\t\t\tif (tmp.length > 2) { // add childs\r\n\t\t\t\tString[] childTmp = tmp[2].split(Commons.SPLITTER_LEVEL2);\r\n\t\t\t\tfor (String str : childTmp) {\r\n\t\t\t\t\tcategory.addCatChild(this.selectCategory(Integer.parseInt(str)));\r\n\t\t\t\t}\r\n\t\t\t} // end of if\r\n\t\t} catch (Exception ex) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\treturn category;\r\n\t}", "public Category() {\n categoryName = null;\n }", "public objData getAnswerCategory(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT AC_REFID, AC_CATEGORY FROM ANS_CATEGORY WHERE AC_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "public void librosPorCategorian() {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tCategoriaDAO OwlDAO = new CategoriaDAO();\n\t\t\tList<LibroVO> resultado = new ArrayList();\n\t\t\tOwlDAO.actualizarCategorian(mysql);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}", "public Category() {\n super();\n }", "public void saveLzzCategory(Object obj) {\n\t\tloadLzzCategorys();\n\t\tsession = LzzFactory.currentSession();\n\t\tdao.setSession(session);\n\t\tdao.save(obj);\n\t\tLzzCategory obj2 = (LzzCategory)obj;\n\t\tmLzzCategorys.add(obj2);\n\t\tmLzzCategoryHash.put(obj2.getId(), obj2);\n\t}", "private Category getCategory()\n\t{\n\t\tSystem.out.println(\"------------------------------------------------------------\");\n\t\tSystem.out.println(\"Choose category:\");\n\t\tint i = 1;\n\t\tfor(Category category : Category.values())\n\t\t{\n\t\t\tSystem.out.println(i + \": \"+category.getCategoryDescription());\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println(\"------------------------------------------------------------\");\n\t\tString userChoiceStr = scanner.nextLine();\n\t\tint userChoice;\n\t\ttry\n\t\t{\n\t\t\tuserChoice = Integer.parseInt(userChoiceStr);\n\t\t}\n\t\tcatch(NumberFormatException e)\n\t\t{\n\t\t\tSystem.out.println(\"Invalid input\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tif(userChoice<1 || userChoice>25)\n\t\t{\n//\t\t\tSystem.out.println(\"Invalid category code\");\n\t\t\treturn null;\n\t\t}\n\t\tCategory category;\n\t\tswitch (userChoice) \n\t\t{\n\t\t\tcase 1: category = Category.ARTS; break;\n\t\t\tcase 2: category = Category.AUTOMOTIVE; break;\n\t\t\tcase 3: category = Category.BABY; break;\n\t\t\tcase 4: category = Category.BEAUTY; break;\n\t\t\tcase 5: category = Category.BOOKS; break;\n\t\t\tcase 6: category = Category.COMPUTERS; break;\n\t\t\tcase 7: category = Category.CLOTHING;break;\n\t\t\tcase 8: category = Category.ELECTRONICS; break;\n\t\t\tcase 9: category = Category.FASHION; break;\n\t\t\tcase 10: category = Category.FINANCE; break;\n\t\t\tcase 11: category = Category.FOOD; break;\n\t\t\tcase 12: category = Category.HEALTH; break;\n\t\t\tcase 13: category = Category.HOME; break;\n\t\t\tcase 14: category = Category.LIFESTYLE; break;\n\t\t\tcase 15: category = Category.MOVIES; break;\n\t\t\tcase 16: category = Category.MUSIC; break;\n\t\t\tcase 17: category = Category.OUTDOORS; break;\n\t\t\tcase 18: category = Category.PETS; break;\n\t\t\tcase 19: category = Category.RESTAURANTS; break;\n\t\t\tcase 20: category = Category.SHOES; break;\n\t\t\tcase 21: category = Category.SOFTWARE; break;\n\t\t\tcase 22: category = Category.SPORTS; break;\n\t\t\tcase 23: category = Category.TOOLS; break;\n\t\t\tcase 24: category = Category.TRAVEL; break;\n\t\t\tcase 25: category = Category.VIDEOGAMES; break;\n\t\t\tdefault: category = null;System.out.println(\"No such category\"); break;\n\t\t}\n\t\treturn category;\n\t}", "public Category getCategory() {\n return this.category;\n }", "public Category getCategory() {\n return this.category;\n }", "public Category getCategory() {\n return this.category;\n }", "@Override\n public String getCategory() {\n return category;\n }", "@Override\n// @CachePut(cacheNames = \"category\",key=\"#name\")\n public CMSCategory getOrCreateOneByName(String name){\n CMSCategory category = findCMSCategoryByName(name);\n if (category==null) {\n category = new CMSCategory();\n category.setDisabled(false);\n category.setEnglishName(name);\n category.setName(name);\n cmsCategoryRepository.save(category);\n }\n return category;\n }", "public Category loadCategoryTree() {\n Category categoryTree = null;\n try {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n categoryTree = dbb.loadCategoryTree();\n dbb.commit();\n dbb.closeConnection();\n } catch (Exception ex) {\n Logger.getLogger(GameDBLogic.class.getName()).log(Level.SEVERE, null, ex);\n }\n return categoryTree;\n }", "@Override\n\tpublic Categoria editarCategoria(Categoria categoria) {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Category> findcategory() {\n\t\t\n\t\tConnection conn=null;\n\t\tPreparedStatement pst=null;\n\t\tResultSet rs=null;\n\t\t\n\t\tList<Category> list=new ArrayList<Category>();\n\t\ttry {\n\t\t\tconn=DBUtils.getConnection();\n\t\t\tpst=conn.prepareStatement(\"select id,parent_id,name,status,sort_order,create_time,update_time from category\");\n\t\t\t\n\t\t\trs=pst.executeQuery();\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\tCategory category=new Category(rs.getInt(\"id\"),rs.getInt(\"parent_id\"),rs.getString(\"name\"),rs.getInt(\"status\"),rs.getInt(\"sort_order\"),rs.getDate(\"create_time\"),rs.getDate(\"update_time\"));\n\t\t\t\tlist.add(category);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\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\ttry {\n\t\t\t\tDBUtils.Close(conn, pst, rs);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t\t\n\t\t\n\n\t}", "public Datum cast(int newType, String newMask) {\n \t\t\n \t\tif (this.type == newType && this.mask == newMask) {\n \t\t\treturn this;\n \t\t}\n \t\t\n \t\tDatum datum = null;\n \t\tString useMask = ((newMask == null || newMask.trim().length() == 0) ? getDefaultMask(newType) : newMask);\n \t\t\n \t\t\n \t\tif (this.type == newType) {\n \t\t\tdatum = new Datum(this);\n \t\t\tdatum.mask = useMask;\n \t\t\treturn datum;\n \t\t}\n \t\t\n \t\tswitch(this.type) {\n \t\t\tcase TIME:\n \t\t\tcase MONTH:\n \t\t\tcase DATE:\n \t\t\tcase YEAR:\n \t\t\tcase DAY:\n \t\t\tcase WEEKDAY:\n \t\t\tcase HOUR:\n \t\t\tcase MINUTE:\n \t\t\tcase SECOND:\n \t\t\tcase MONTH_NUM:\n \t\t\tcase DAY_NUM:\n \t\t\t\tif (isDate(newType)) {\n \t\t\t\t\tdatum = new Datum(this);\n \t\t\t\t\tdatum.type = newType;\n \t\t\t\t\tdatum.mask = useMask;\n \t\t\t\t}\n \t\t\t\telse if (newType == STRING) {\n \t\t\t\t\treturn datum;\t// don't cast to STRING\n //\t\t\t\t\tdatum = new Datum(triceps,this.stringVal(),STRING);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tdatum = new Datum(triceps,INVALID);\n \t\t\t\t}\t\n \t\t\t\tbreak;\n \t\t\tcase NUMBER:\n \t\t\t\tif (isDate(newType)) {\n \t\t\t\t\tif (newType == TIME || newType == DATE) {\n \t\t\t\t\t\tdatum = new Datum(triceps,INVALID);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tdatum = new Datum(this);\n \t\t\t\t\t\tdatum.date = DatumMath.createDate((int) this.doubleVal(), newType);\n \t\t\t\t\t\tdatum.sVal = null;\n \t\t\t\t\t\tdatum.dVal = Double.NaN;\n \t\t\t\t\t\tdatum.type = newType;\n \t\t\t\t\t\tdatum.mask = useMask;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse if (newType == STRING) {\n \t\t\t\t\treturn datum;\n //\t\t\t\t\tdatum = new Datum(triceps,this.stringVal(),STRING);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tdatum = new Datum(triceps,INVALID);\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase STRING:\n \t\t\t\t/* try to parse the string using a new format */\n \t\t\t\tdatum = new Datum(triceps,this.stringVal(),newType,useMask);\n \t\t\t\tbreak;\n \t\t\tdefault:\n \t\t\tcase INVALID:\n \t\t\tcase NA:\n \t\t\tcase UNKNOWN:\n \t\t\tcase REFUSED:\n \t\t\tcase UNASKED:\n \t\t\tcase NOT_UNDERSTOOD:\n \t\t\t\t/* can't cast any of these to a new type */\n \t\t\t\tdatum = new Datum(triceps,this.type);\n \t\t}\t\n \t\treturn datum;\t\t\n \t}", "@Override\n\tpublic Category updateCategory(HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\treturn null;\n\t}", "public Categorie updateCategorie(Categorie c);", "public void changeCategory(int index){\n if(user[index].getAmountCategory()>=3 && user[index].getAmountCategory()<=10){\n user[index].setCategoryUser(user[index].newCategory(\"littleContributor\"));\n }\n else if(user[index].getAmountCategory()>10 && user[index].getAmountCategory()<30){\n user[index].setCategoryUser(user[index].newCategory(\"mildContributor\"));\n }\n else if(user[index].getAmountCategory() == 30){\n user[index].setCategoryUser(user[index].newCategory(\"starContributor\"));\n }\n }", "public EntityCategory getCategory ( ) {\n\t\treturn extract ( handle -> handle.getCategory ( ) );\n\t}", "public Object convert(Object fromValue) {\n RawObject oldDataRawObject = (RawObject) fromValue;\n RawObject oldKeyRawObject = (RawObject)oldDataRawObject.\n getSuper().getValues().get(\"keys\");\n Object[] oldDataKeyValue = \n (Object[])oldKeyRawObject.getElements();\n RawObject oldValueRawObject = (RawObject)oldDataRawObject.\n getSuper().getValues().get(\"values\");\n \n ArrayList<RawObject> newDataKeyValue = \n new ArrayList<RawObject>();\n RawObject myEnumRawObject = new RawObject(myEnumType, \"DATA\");\n newDataKeyValue.add(myEnumRawObject);\n \n RawObject newKeyRawObject = new RawObject\n (oldKeyRawObject.getType(), newDataKeyValue.toArray());\n Map<String, Object> \n newDataSuperValue = new HashMap<String, Object>();\n newDataSuperValue.put(\"keys\", newKeyRawObject);\n newDataSuperValue.put(\"values\", oldValueRawObject);\n RawObject newDataSuperRawObject = \n new RawObject(newDataSuperType, newDataSuperValue, null);\n Map<String, Object> newDataValue = \n new HashMap<String, Object>();\n RawObject newDataRawObject = \n new RawObject(newDataType, newDataValue, \n newDataSuperRawObject);\n return newDataRawObject;\n }", "Category getCategoryByName(String categoryName);", "Category getCategoryById(int categoryId);", "public Object clone() throws CloneNotSupportedException {\n/* 354 */ SlidingCategoryDataset clone = (SlidingCategoryDataset)super.clone();\n/* 355 */ if (this.underlying instanceof PublicCloneable) {\n/* 356 */ PublicCloneable pc = (PublicCloneable)this.underlying;\n/* 357 */ clone.underlying = (CategoryDataset)pc.clone();\n/* */ } \n/* 359 */ return clone;\n/* */ }", "CategoryJsonWriterImpl() {\r\n\t\tsuper();\r\n\t}", "CategoriesType createCategoriesType();" ]
[ "0.6046383", "0.5905387", "0.58876586", "0.5859505", "0.5703781", "0.56605136", "0.56101316", "0.56101316", "0.55655146", "0.55655146", "0.55655146", "0.5556593", "0.55067", "0.55061185", "0.55027866", "0.5483487", "0.54829", "0.54796207", "0.54603386", "0.54603386", "0.54521775", "0.5450473", "0.5433692", "0.54232585", "0.540831", "0.5404761", "0.5383312", "0.53819495", "0.53715366", "0.5363431", "0.53538775", "0.5320373", "0.53089535", "0.53025526", "0.5295059", "0.528975", "0.528663", "0.5273673", "0.5258118", "0.5255398", "0.52545255", "0.52545255", "0.52545255", "0.52545255", "0.52545255", "0.52402735", "0.52357984", "0.5235257", "0.52261853", "0.5219037", "0.5211098", "0.52101463", "0.52049804", "0.51999336", "0.51985884", "0.5177855", "0.51768315", "0.517682", "0.51679343", "0.5163708", "0.5157614", "0.5152545", "0.5146177", "0.5121339", "0.5106457", "0.51060873", "0.5104965", "0.51028746", "0.51023227", "0.51016504", "0.5101164", "0.50933695", "0.5091873", "0.50911415", "0.5074397", "0.5073074", "0.50718415", "0.5067757", "0.50646335", "0.5061833", "0.50515383", "0.5046413", "0.5046413", "0.5046413", "0.5045748", "0.5043423", "0.5032914", "0.5019491", "0.50188863", "0.5001687", "0.499649", "0.499507", "0.4993912", "0.49923033", "0.49893034", "0.49884513", "0.49860543", "0.49830797", "0.49730572", "0.49696147" ]
0.51263374
63
Sets a custom layout for the message GUI.
private void setCustomLayout(JScrollPane pane) { this.getContentPane().add(panel); GridBagConstraints messageConstraints = new GridBagConstraints(); messageConstraints.gridx = 0; messageConstraints.gridy = 0; messageConstraints.weightx = 1; messageConstraints.weighty = 1; messageConstraints.gridwidth = 3; messageConstraints.gridheight = 2; messageConstraints.insets = new Insets(10, 10, 10, 10); messageConstraints.fill = GridBagConstraints.BOTH; messageConstraints.anchor = GridBagConstraints.CENTER; panel.add(pane, messageConstraints); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setUpLayout() {\n\n this.setLayout(new GridLayout(7, 1, 40, 37));\n this.setBackground(new Color(72, 0, 0));\n this.setBorder(BorderFactory.createEmptyBorder(8, 150, 8, 150));\n }", "private void setViewLayout() {\n\t\tthis.setBorder(new EmptyBorder(15, 15, 15, 15));\n\t\tthis.setLayout(new GridLayout(2, 2, 15, 15));\n\t}", "private void setLayout() {\n\t\ttxtNickname.setId(\"txtNickname\");\n\t\ttxtPort.setId(\"txtPort\");\n\t\ttxtAdress.setId(\"txtAdress\");\n\t\tlblNickTaken.setId(\"lblNickTaken\");\n\n\t\tgrid.setPrefSize(516, 200);\n\t\tbtnLogin.setDisable(true);\n\t\ttxtNickname.setPrefSize(200, 25);\n\t\tlblNickTaken.setPrefSize(250, 10);\n\t\tlblNickTaken.setText(null);\n\t\tlblNickTaken.setTextFill(Color.RED);\n\t\tlblNick.setPrefSize(120, 50);\n\t\ttxtAdress.setText(\"localhost\");\n\t\ttxtPort.setText(\"4455\");\n\t\tlblCardDesign.setPrefSize(175, 25);\n\t\tcomboBoxCardDesign.getSelectionModel().select(0);\n\t\tbtnLogin.setGraphic(imvStart);\n\t}", "public void setupLayout() {\n // left empty for subclass to override\n }", "@Override\n public void setLayout(Layout layout) {\n checkWidget();\n return;\n }", "private void setupLayout()\n {\n Container contentPane;\n\n setSize(300, 300); \n\n contentPane = getContentPane();\n\n // Layout this PINPadWindow\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(2, 2, new Insets(30, 30, 30, 30), -1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n mainPanel.add(scrollPane1, new GridConstraints(0, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n chatPane = new JTextPane();\n chatPane.setText(\"\");\n scrollPane1.setViewportView(chatPane);\n chatField = new JTextField();\n mainPanel.add(chatField, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n sendButton = new JButton();\n sendButton.setText(\"Send\");\n mainPanel.add(sendButton, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void setLayout() {\n\tHorizontalLayout main = new HorizontalLayout();\n\tmain.setMargin(true);\n\tmain.setSpacing(true);\n\n\t// vertically divide the right area\n\tVerticalLayout left = new VerticalLayout();\n\tleft.setSpacing(true);\n\tmain.addComponent(left);\n\n\tleft.addComponent(openProdManager);\n\topenProdManager.addListener(new Button.ClickListener() {\n\t public void buttonClick(ClickEvent event) {\n\t\tCustomerWindow productManagerWin = new CustomerWindow(CollectorManagerApplication.this);\n\t\tproductManagerWin.addListener(new Window.CloseListener() {\n\t\t public void windowClose(CloseEvent e) {\n\t\t\topenProdManager.setEnabled(true);\n\t\t }\n\t\t});\n\n\t\tCollectorManagerApplication.this.getMainWindow().addWindow(productManagerWin);\n\t\topenProdManager.setEnabled(false);\n\t }\n\t});\n\n\t\n\tsetMainWindow(new Window(\"Sistema de Cobranzas\", main));\n\n }", "@Override\n public void layout() {\n // TODO: not implemented\n }", "public MailLayout()\n\t{\n\t\tframe = new JFrame (\"New Message\");\n\t\tframe.setLayout( new BorderLayout( 10, 10 ));\n Font f = new Font (\"Helvetica\", Font.BOLD, 24);\n\n // labels\n JLabel to = new JLabel (\"To:\", SwingConstants.RIGHT);\n JLabel cc = new JLabel (\"Cc:\", SwingConstants.RIGHT);\n JLabel bcc = new JLabel (\"Bcc:\", SwingConstants.RIGHT);\n JLabel subject = new JLabel (\"Subject:\", SwingConstants.RIGHT);\n JLabel from = new JLabel (\"From:\", SwingConstants.RIGHT);\n \n to.setFont (f);\n cc.setFont (f);\n bcc.setFont (f);\n subject.setFont (f);\n from.setFont (f);\n\n \t// text fields\n toField = new JTextField();\n ccField = new JTextField();\n bccField = new JTextField();\n subjectField = new JTextField();\n subjectField.addFocusListener(this);\n\n // JComboBox\n String[] fromAddr = { \"Anna Ntenta <[email protected]>\", \n \t\t\t\t\t \"Anna Ntenta <[email protected]>\", \n \t\t\t\t\t \"Anna McKelvey <[email protected]>\" };\n fromField = new JComboBox<>(fromAddr);\n\n // \"send\" button\n sendButton = new JButton (\"Send\");\n sendButton.addActionListener(this);\n sendButton.setFont (f);\n\n // message area\n message = new JTextArea();\n message.setBorder (BorderFactory.createTitledBorder(\"Message\"));\n \n \t\t// top contains the labels and the \"to\", \"cc\" etc text fields\n JPanel top = new JPanel( new BorderLayout()); \n\n // labels in a grid layout\n JPanel labels = new JPanel( new GridLayout(6, 0, 4, 4));\n\n // text fields in a grid layout\n JPanel textFields = new JPanel( new GridLayout(6, 0, 4, 4));\n\n // add label grid and text field grid to top area\n top.add (labels, BorderLayout.WEST);\n top.add (textFields, BorderLayout.CENTER);\n\n // add labels to label grid\n labels.add (to);\n labels.add (cc);\n labels.add (bcc);\n labels.add (subject);\n labels.add (from);\n labels.add (sendButton);\n\n // add text fields and JComboBox to grid\n textFields.add(toField);\n textFields.add(ccField);\n textFields.add(bccField);\n textFields.add(subjectField);\n textFields.add(fromField);\n\n // add top and message area to frame\n frame.add (top, BorderLayout.NORTH);\n frame.add (message, BorderLayout.CENTER);\n\n frame.setSize (600, 600);\n frame.setVisible (true);\n frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);\n\t}", "@Override\n\tpublic void setLayout(java.lang.String layout) {\n\t\t_scienceApp.setLayout(layout);\n\t}", "public BattleMatLayout() {\n\t\tcreateConent();\n\t\tinitWidget(dockPanel);\n\t\t// ensure this widget takes up as much space as possible\n\t\tthis.setSize(\"100%\", \"100%\");\n\t\tsetupEventHandler();\n\t}", "private JPanel messageArea() {\n JPanel message = new JPanel();\n message.setLayout(new GridLayout(0,2,5,5));\n JPanel changePanel = new JPanel();\n changePanel.setBorder(BorderFactory.createEmptyBorder(10,10,25,5));\n changePanel.setLayout(new GridLayout(0,2));\n changeLabel = new JLabel(\"<html><b>Change</b><br>$0.00</html>\");\n changePanel.add(changeLabel);\n prodBoughtLabel = new JLabel(\"<html><b>Product Bought:</b><br>N/A</html>\");\n changePanel.add(prodBoughtLabel);\n message.add(changePanel);\n messageLabel = new JLabel(\"Insert Coins to Purchase Product\",SwingConstants.CENTER);\n messageLabel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createRaisedBevelBorder(),BorderFactory.createLoweredBevelBorder()));\n message.add(messageLabel);\n return message;\n }", "public void setLayout() {\n\t\tpersonenListe.getItems().addAll(deck.getPersonenOrdered());\n\t\tpersonenListe.setValue(\"Täter\");\n\t\twaffenListe.getItems().addAll(deck.getWaffenOrdered());\n\t\twaffenListe.setValue(\"Waffe\");\n\t\t// zimmerListe.getItems().addAll(deck.getZimmerOrdered());\n\t\tzimmerListe.setValue(\"Raum\");\n\n\t\tanklage.setMinSize(80, 120);\n\t\tanklage.setMaxSize(80, 120);\n\t\tanklage.setTextFill(Color.BLACK);\n\t\tanklage.setStyle(\"-fx-background-color: #787878;\");\n\n\t\twurfel.setMinSize(80, 120);\n\t\twurfel.setMaxSize(80, 120);\n\t\twurfel.setTextFill(Color.BLACK);\n\t\twurfel.setStyle(\"-fx-background-color: #787878;\");\n\n\t\tgang.setMinSize(80, 120);\n\t\tgang.setMaxSize(80, 120);\n\t\tgang.setTextFill(Color.BLACK);\n\t\tgang.setStyle(\"-fx-background-color: #787878;\");\n\n\t\ttop = new HBox();\n\t\ttop.setSpacing(1);\n\t\ttop.setAlignment(Pos.CENTER);\n\n\t\tbuttons = new HBox();\n\t\tbuttons.setSpacing(20);\n\t\tbuttons.setAlignment(Pos.CENTER);\n\t\tbuttons.getChildren().addAll(anklage, wurfel, gang);\n\n\t\tbottom = new HBox();\n\t\tbottom.setSpacing(150);\n\t\tbottom.setAlignment(Pos.CENTER);\n\t\tbottom.getChildren().addAll(close);\n\n\t\tfenster = new BorderPane();\n\t\tfenster.setStyle(\"-fx-background-image: url('media/ZugFensterResized.png');\");\n\t\tfenster.setTop(top);\n\t\tfenster.setCenter(buttons);\n\t\tfenster.setBottom(bottom);\n\t}", "protected void createLayout() {\n\t\tthis.layout = new GridLayout();\n\t\tthis.layout.numColumns = 2;\n\t\tthis.layout.marginWidth = 2;\n\t\tthis.setLayout(this.layout);\n\t}", "private void setupMessagePanel() {\n\t\tJPanel messagePanel = new JPanel();\n\t\tthis.message = new JTextArea();\n\t\tthis.message.setText(\"Registration Phase Completed. \\n\\nClick on the Log Off button below to \\nreturn to the main menu\");\n\t\tthis.message.setEditable(false);\n\t\tthis.message.setColumns(20);\n\t\tthis.message.setLineWrap(true);\n\t\tmessagePanel.add(message);\n\t\tthis.add(messagePanel, BorderLayout.CENTER);\n\t}", "private void setupLayout() {\r\n\t\tgetContentPane().add(panel);\r\n\t}", "private void setupPopupLayout() {\n mainBox.getChildren().addAll(errorLabel, buttonBox);\n buttonBox.setAlignment(Pos.CENTER);\n }", "private void setupLayout() {\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tanimeLabel = new JLabel();\r\n\t\tanimeLabel.setSize(m.getWidth(), m.getHeight());\r\n\t\tanimeLabel.setBounds(0, 0, m.getWidth(), m.getHeight());\r\n\t\tthis.add(animeLabel, BorderLayout.CENTER);\r\n\t}", "public void initLayouts() {\n\t\tJPanel p_header = (JPanel) getComponentByName(\"p_header\");\n\t\tJPanel p_container = (JPanel) getComponentByName(\"p_container\");\n\t\tJPanel p_tree = (JPanel) getComponentByName(\"p_tree\");\n\t\tJPanel p_commands = (JPanel) getComponentByName(\"p_commands\");\n\t\tJPanel p_execute = (JPanel) getComponentByName(\"p_execute\");\n\t\tJPanel p_buttons = (JPanel) getComponentByName(\"p_buttons\");\n\t\tJPanel p_view = (JPanel) getComponentByName(\"p_view\");\n\t\tJPanel p_info = (JPanel) getComponentByName(\"p_info\");\n\t\tJPanel p_chooseFile = (JPanel) getComponentByName(\"p_chooseFile\");\n\t\tJButton bt_apply = (JButton) getComponentByName(\"bt_apply\");\n\t\tJButton bt_revert = (JButton) getComponentByName(\"bt_revert\");\n\t\tJTextArea ta_header = (JTextArea) getComponentByName(\"ta_header\");\n\t\tJLabel lb_icon = (JLabel) getComponentByName(\"lb_icon\");\n\t\tJLabel lb_name = (JLabel) getComponentByName(\"lb_name\");\n\t\tJTextField tf_name = (JTextField) getComponentByName(\"tf_name\");\n\n\t\tBorder etched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);\n\n\t\tp_header.setBorder(etched);\n\t\tp_container.setBorder(etched);\n\t\tp_commands.setBorder(etched);\n\t\t// p_execute.setBorder(etched);\n\t\t// p_view.setBorder(etched);\n\t\t// p_buttons.setBorder(etched);\n\n\t\tp_buttons.setLayout(new FlowLayout(FlowLayout.LEFT, 25, 2));\n\t\tp_chooseFile.setLayout(new FlowLayout(FlowLayout.LEFT, 6, 1));\n\t\tp_view.setLayout(new BorderLayout(0, 0));\n\t\tp_info.setLayout(null);\n\n\t\t// GroupLayout for main JFrame\n\t\t// If you want to change this, use something like netbeans or read more\n\t\t// into group layouts\n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\n\t\tgroupLayout\n\t\t\t\t.setHorizontalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t225,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_execute,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t957,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t957,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_header,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1188,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgroupLayout\n\t\t\t\t.setVerticalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_header,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, 57,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t603,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t549,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_execute,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t48,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\n\t\tGroupLayout gl_p_container = new GroupLayout(p_container);\n\t\tgl_p_container\n\t\t\t\t.setHorizontalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_view,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t955,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_apply)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_revert))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlb_name)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttf_name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t893,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_p_container\n\t\t\t\t.setVerticalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttf_name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lb_name))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_view,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t466, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_revert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_apply))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)));\n\t\tp_container.setLayout(gl_p_container);\n\n\t\t// GroupLayout for p_header\n\n\t\tGroupLayout gl_p_header = new GroupLayout(p_header);\n\t\tgl_p_header.setHorizontalGroup(gl_p_header.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tAlignment.TRAILING,\n\t\t\t\tgl_p_header\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(ta_header, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t1069, Short.MAX_VALUE).addGap(18)\n\t\t\t\t\t\t.addComponent(lb_icon).addGap(4)));\n\t\tgl_p_header\n\t\t\t\t.setVerticalGroup(gl_p_header\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGap(6)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tta_header,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t44,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lb_icon))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tp_header.setLayout(gl_p_header);\n\n\t\tGroupLayout gl_p_commands = new GroupLayout(p_commands);\n\t\tgl_p_commands\n\t\t\t\t.setHorizontalGroup(gl_p_commands\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_tree,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t211,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_buttons,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_p_commands.setVerticalGroup(gl_p_commands.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_p_commands\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(p_buttons, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(p_tree, GroupLayout.DEFAULT_SIZE, 558,\n\t\t\t\t\t\t\t\tShort.MAX_VALUE).addContainerGap()));\n\t\tp_commands.setLayout(gl_p_commands);\n\n\t\tgetContentPane().setLayout(groupLayout);\n\t}", "private void initLayout(){\r\n\t\t\r\n\t\tlabelSalvar.setLayoutX(((pane.getWidth() - labelSalvar.getWidth()) / 2) - 332);\r\n\t\tlabelSalvar.setLayoutY(60);\r\n\t\ttxSalvar.setLayoutX(((pane.getWidth() - txSalvar.getWidth()) / 2) - 100);\r\n\t\ttxSalvar.setPrefWidth(500);\r\n\t\ttxSalvar.setLayoutY(60);\r\n\t\t\r\n\t\tlabelArquivoRTF.setLayoutX(((pane.getWidth() - labelArquivoRTF.getWidth()) / 2) - 325);\r\n\t\tlabelArquivoRTF.setLayoutY(100);\r\n\t\ttxArquivoRTF.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 100);\r\n\t\ttxArquivoRTF.setPrefWidth(500);\r\n\t\ttxArquivoRTF.setLayoutY(100);\r\n\t\t\r\n\t\tlabelLinhaInicio.setLayoutX(((pane.getWidth() - labelLinhaInicio.getWidth()) / 2) - 145);\r\n\t\tlabelLinhaInicio.setLayoutY(140);\r\n\t\ttxLinhaInicio.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 10);\r\n\t\ttxLinhaInicio.setPrefWidth(50);\r\n\t\ttxLinhaInicio.setLayoutY(140);\r\n\t\t\r\n\t\tlabelLinhaFim.setLayoutX(((pane.getWidth() - labelLinhaFim.getWidth()) / 2) + 220);\r\n\t\tlabelLinhaFim.setLayoutY(140);\r\n\t\ttxLinhaFinal.setLayoutX(((pane.getWidth() - txLinhaFinal.getWidth()) / 2) + 350);\r\n\t\ttxLinhaFinal.setPrefWidth(50);\r\n\t\ttxLinhaFinal.setLayoutY(140);\r\n\t\t\r\n\t\tbtnExecutar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 80);\r\n\t\tbtnExecutar.setLayoutY(210);\r\n\t\t\r\n\t\tprogressBar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 260);\r\n\t\tprogressBar.setLayoutY(280);\r\n\t\t\r\n\t\tlabelBy.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) - 350);\r\n\t\tlabelBy.setScaleY(0.5);\r\n\t\tlabelBy.setScaleX(0.5);\r\n\t\tlabelBy.setLayoutY(280);\r\n\t\t\r\n\t}", "private void geometry()\n\t\t{\n\t\tjLabelNickName = new JLabel(\"Pseudo: \");\n\t\tjLabelPort = new JLabel(\"Port: \");\n\t\tjNickname = new JTextField();\n\t\tjIPLabel = new JIPLabel();\n\t\tjIP = new JTextField();\n\t\tjPort = new JSpinner();\n\t\tjButtonConnection = new JButton(\"Connexion\");\n\n\t\tthis.setLayout(new GridLayout(-1, 1));\n\n\t\tthis.add(jLabelNickName);\n\t\tthis.add(jNickname);\n\t\tthis.add(jIPLabel);\n\t\tthis.add(jIP);\n\t\tthis.add(jLabelPort);\n\t\tthis.add(jPort);\n\t\tthis.add(Box.createVerticalStrut(SPACE));\n\t\tthis.add(jButtonConnection);\n\t\tthis.add(Box.createVerticalGlue());\n\t\t}", "private void setLayout(BorderLayout borderLayout) {\n\t\t\n\t}", "private void layout() {\n\n\n _abortButton= makeAbortButton();\n _abortButton.addStyleName(\"download-group-abort\");\n _content.addStyleName(\"download-group-content\");\n _detailUI= new DetailUIInfo[getPartCount(_monItem)];\n layoutDetails();\n }", "private void setLayoutManager() {\r\n this.setLayout(new BorderLayout());\r\n }", "private void initGUI() {\n\t JPanel optionsPane = initOptionsPane();\n\n\t // Set up the chat pane\n\t JPanel chatPane = new JPanel(new BorderLayout());\n\t chatText = new JTextPane();\n\t chatText.setEditable(false);\n\t chatText.setBorder(BorderFactory.createLineBorder(Color.DARK_GRAY));\n\t chatText.setMargin(new Insets(5, 5, 5, 5));\n\t JScrollPane jsp = new JScrollPane(chatText);\n\t \n\t chatLine = new JTextField();\n\t chatLine.setEnabled(false);\n\t chatLine.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t String s = chatLine.getText();\n\t chatLine.setText(\"\");\n\t MessageColor c = (MessageColor)colorCombo.getSelectedItem();\n\t support.firePropertyChange(\"UI\", \"message\", new Message(username, MessageType.MESSAGE, c, s));\n\t }\n\t });\n\t chatPane.add(chatLine, BorderLayout.SOUTH);\n\t chatPane.add(jsp, BorderLayout.CENTER);\n\n\t colorCombo = new JComboBox<MessageColor>(MessageColor.values());\n\t chatPane.add(colorCombo, BorderLayout.NORTH);\n\t \n\t chatPane.setPreferredSize(new Dimension(500, 200));\n\n\t // Set up the main pane\n\t JPanel mainPane = new JPanel(new BorderLayout());\n\t mainPane.add(optionsPane, BorderLayout.WEST);\n\t mainPane.add(chatPane, BorderLayout.CENTER);\n\n\t // Set up the main frame\n\t mainFrame = new JFrame(\"SPL Chat\");\n\t mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t mainFrame.setContentPane(mainPane);\n\t mainFrame.setSize(mainFrame.getPreferredSize());\n\t mainFrame.setLocation(200, 200);\n\t mainFrame.pack();\n\t mainFrame.setVisible(true);\n\t }", "private void geometry()\n\t\t{\n\t\t// JComponent : Instanciation\n\t\tjTextFieldIp = new JTextField(ChatPreferences.getIp());\n\t\tjTextFieldPort = new JTextField(ChatPreferences.getPort());\n\t\t// Layout : Specification\n\t\t\t{\n\t\t\tFlowLayout flowlayout = new FlowLayout(FlowLayout.CENTER);\n\t\t\tsetLayout(flowlayout);\n\n\t\t\t// flowlayout.setHgap(20);\n\t\t\t// flowlayout.setVgap(20);\n\t\t\t}\n\n\t\t// JComponent : add\n\n\t\t}", "protected void CreateWindow(){\n\t\tdouble[] colWeight = {1,1,1,1,1,1};\n\t\tdouble[] rowWeight = {5,1,1,1,1};\n\t\tint[] colWidth = {1,1,1,1,1,1};\n\t\tint[] rowHeight = {5,1,1,1,1};\n\t\t\n\t\t//creates new GridBagLayout and the Constraints for it\n\t\tGridBagLayout normal = new GridBagLayout();\n\t\t\n\t\tGridBagConstraints constrain = new GridBagConstraints();\n\t\t\n\t\tnormal.rowHeights = rowHeight;\n\t\tnormal.columnWidths = colWidth;\n\t\tnormal.columnWeights = colWeight;\n\t\tnormal.rowWeights = rowWeight;\n\t\t\n\t\tsetBounds(100,100,400,600);\n\t\tsetLayout(normal);\n\t\t\n\t\t//create messagefield. set the Grid Layout for it.\n\t\tchatDisplay.messageField.setSize(300, 500);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 5;\n\t\tconstrain.gridheight = 18;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 0;\n\t\tconstrain.gridy = 0;\n\t\tnormal.setConstraints(chatDisplay.messageField, constrain);\n\t\t\n\t\t//create input. set the Grid Layout for it.\n\t\tthis.input.setSize(450, 20);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 4;\n\t\tconstrain.gridheight = 2;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 0;\n\t\tconstrain.gridy = 18;\n\t\tnormal.setConstraints(this.input, constrain);\n\t\t\n\t\t//create send button. set the Grid Layout for it.\n\t\tthis.send.setSize(50, 5);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 1;\n\t\tconstrain.gridheight = 1;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 4;\n\t\tconstrain.gridy = 18;\n\t\tnormal.setConstraints(this.send, constrain);\n\t\t\n\t\tthis.quit.setSize(50, 5);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 1;\n\t\tconstrain.gridheight = 1;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 4;\n\t\tconstrain.gridy = 19;\n\t\tnormal.setConstraints(this.quit, constrain);\n\t\t\n\t\tthis.server.setSize(50, 5);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 1;\n\t\tconstrain.gridheight = 1;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 4;\n\t\tconstrain.gridy = 20;\n\t\tnormal.setConstraints(this.server, constrain);\n\t\t\n\t\tthis.client.setSize(50, 5);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 1;\n\t\tconstrain.gridheight = 1;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 4;\n\t\tconstrain.gridy = 21;\n\t\tnormal.setConstraints(this.client, constrain);\n\t\t\n\t\t//add the fields...\n\t\tadd(this.input);\n\t\tadd(chatDisplay.messageField);\n\t\tadd(this.send);\n\t\tadd(this.quit);\n\t\tadd(this.server);\n\t\tadd(this.client);\n\t\t\n\t\t//set windowlistener and set the window resizability to true\n\t\taddWindowListener(this);\n\t\tsetResizable(true);\n\t\t\n\t\t//adds action listeners for use later on.\n\t\tinput.addActionListener(this);\n\t\tsend.addActionListener(this);\n\t\tquit.addActionListener(this);\n\t\tserver.addActionListener(this);\n\t\tclient.addActionListener(this);\n\t\t\n\t\tthis.setVisible(true);\n\t\t\n\t\trun();\n\t}", "public void makeLayout() {\n\t\tgl_layout.setHorizontalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(150)\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 400, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 98, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 106, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t)\n\t\t);\n\t\tgl_layout.setVerticalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\t\t\t\t\t\t\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t);\n\t\tthis.setLayout(gl_layout);\t\t\n\t}", "private void doTheLayout(){\n\n\t JPanel top = new JPanel();\n\t JPanel center = new JPanel();\n\t JPanel bottom = new JPanel();\n\n\t top.setLayout( new FlowLayout());\n\t top.add(label1);\n\t top.add(field1);\n\n\t center.setLayout( new FlowLayout());\n\t center.add(label2);\n\t center.add(field2);\n\n\t bottom.setLayout( new FlowLayout());\n\t bottom.add(SortButton);\n\t bottom.add(CloseButton);\n\n\t setLayout( new BorderLayout());\n\t add(top, \"North\");\n\t add(center, \"Center\");\n\t add(bottom, \"South\");\n\n\t }", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n materialFirstWordLabel = new JLabel();\n materialFirstWordLabel.setText(\"нет данных\");\n contentPane.add(materialFirstWordLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(10, -1), null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n materialMarkLabel = new JLabel();\n materialMarkLabel.setText(\" \");\n materialMarkLabel.setVerticalTextPosition(1);\n panel1.add(materialMarkLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialProfileLabel = new JLabel();\n materialProfileLabel.setText(\" \");\n materialProfileLabel.setVerticalTextPosition(3);\n panel1.add(materialProfileLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialSeparator = new JSeparator();\n panel1.add(materialSeparator, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n contentPane.add(spacer1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "private void layoutComponents() {\n setLayout(new MigLayout(\"fill, wrap 1, hidemode 3, \"\n + (padding ? \"ins rel\" : \"ins 0\")));\n\n add(infoLabel, \"growx\");\n add(scrollPane, \"grow, pushy\");\n add(addOptionPanel, \"growx\");\n }", "public void setLayout( final Layout layout ) {\n checkWidget();\n // ignore - CTabFolder manages its own layout\n }", "public void setLayout(FrameLayout layout) {\r\n mLayout = layout;\r\n }", "private void setupMessage() {\n \tmessage = new GLabel(\"\");\n \tmessage.setFont(\"SansSerif-12\");\n }", "@Override\n public final void setLayout(JQLayout layout)\n {\n this.layout = layout;\n }", "@Override\n\t protected Control createDialogArea(Composite parent) {\n\t container = (Composite) super.createDialogArea(parent);\n\t container.setLayout(new GridLayout(2, false));\n\t new Label(container, SWT.NONE);\n\t \n\t Label lblTo = new Label(container, SWT.NONE);\n\t lblTo.setText(\"Recipient:\");\n\t new Label(container, SWT.NONE);\n\t \n\t tfRecipient = new Text(container, SWT.BORDER);\n\t tfRecipient.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t new Label(container, SWT.NONE);\n\t \n\t Label lblSubject = new Label(container, SWT.NONE);\n\t lblSubject.setText(\"Subject:\");\n\t new Label(container, SWT.NONE);\n\t \n\t tfSubject = new Text(container, SWT.BORDER);\n\t tfSubject.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t new Label(container, SWT.NONE);\n\t \n\t lblMessage = new Label(container, SWT.NONE);\n\t lblMessage.setText(\"Message:\");\n\t new Label(container, SWT.NONE);\n\t \n\t tfMessage = new Text(container, SWT.BORDER | SWT.WRAP | SWT.MULTI);\n\t GridData gd_text_2 = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\n\t gd_text_2.heightHint = 292;\n\t tfMessage.setLayoutData(gd_text_2);\n\t getShell().setText(\"Write new Message\");\n\t return container;\n\t }", "public NewBoardGUI(JLabel boardMsg, JLabel nameMsg, JTextField nameTxt, JLabel widthMsg,\n JSpinner widthSpnr, JLabel heightMsg, JSpinner heightSpnr, JButton okBtn) {\n this.boardMsg = boardMsg;\n this.nameMsg = nameMsg;\n this.nameTxt = nameTxt;\n this.widthMsg = widthMsg;\n this.widthSpnr = widthSpnr;\n this.widthSpnr.setValue(640);\n this.heightMsg = heightMsg;\n this.heightSpnr = heightSpnr;\n this.heightSpnr.setValue(480);\n this.okBtn = okBtn;\n\n GroupLayout layout = new GroupLayout(this.getContentPane());\n this.getContentPane().setLayout(layout);\n \n layout.setHorizontalGroup(layout.createParallelGroup()\n .addComponent(this.boardMsg, GroupLayout.Alignment.CENTER)\n .addGroup(layout.createSequentialGroup()\n .addComponent(this.nameMsg)\n .addComponent(this.nameTxt))\n .addGroup(layout.createSequentialGroup()\n .addComponent(this.widthMsg)\n .addComponent(this.widthSpnr))\n .addGroup(layout.createSequentialGroup()\n .addComponent(this.heightMsg)\n .addComponent(this.heightSpnr))\n .addComponent(okBtn,GroupLayout.Alignment.CENTER));\n \n layout.setVerticalGroup(layout.createSequentialGroup()\n .addComponent(this.boardMsg)\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)\n .addComponent(this.nameMsg)\n .addComponent(this.nameTxt))\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)\n .addComponent(this.widthMsg)\n .addComponent(this.widthSpnr))\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)\n .addComponent(this.heightMsg)\n .addComponent(this.heightSpnr))\n .addComponent(okBtn));\n \n layout.setAutoCreateGaps(true);\n layout.setAutoCreateContainerGaps(true);\n this.pack();\n this.setLocationRelativeTo(null);\n this.setTitle(\"New\");\n }", "@Override\n public int getLayoutRes() {\n return R.layout.message_item;\n }", "private void $$$setupUI$$$() {\n statusPanel = new JPanel();\n statusPanel.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\n statusLabel = new JLabel();\n statusLabel.setText(\"Status Label\");\n statusPanel.add(statusLabel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JSeparator separator1 = new JSeparator();\n statusPanel.add(separator1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }", "private void createLayout() {\n\t\t\n\t\tmenu = new JMenuBar();\n\t\tfile = new JMenu(\"Arquivo\");\n\t\tedit = new JMenu(\"Editar\");\n\t\tmenu.add(file);\n\t\tmenu.add(edit);\n\n\t\tnewfile = new JMenuItem(\"Novo\");\n\t\tnewfile.addActionListener(new NewFileListener());\n\t\tfile.add(newfile);\n\t\t\n\t\tcopy = new JMenuItem(\"Copiar\");\n\t\tcopy.addActionListener(new CopyListener());\n\t\tedit.add(copy);\n\t\t\n\t\tcut = new JMenuItem(\"Cortar\");\n\t\tcut.addActionListener(new CutListener());\n\t\tedit.add(cut);\n\t\t\n\t\tpaste = new JMenuItem(\"Colar\");\n\t\tpaste.addActionListener(new PasteListener());\n\t\tedit.add(paste);\n\n \n edit.add(undoAction);\n edit.add(redoAction);\n \n \t\topen = new JMenuItem(\"Abrir\");\n\t\topen.addActionListener(new OpenFileListener());\n\t\tfile.add(open);\n\n\t\texit = new JMenuItem(\"Sair\");\n\t\texit.addActionListener(new ExitFileListener());\n\t\tfile.add(exit);\n\t\tframe.setJMenuBar(menu);\n\t\t\n\t\tcaret = new DefaultCaret();\n\t\tarea = new JTextArea(25, 65);\n\t\tarea.setLineWrap(true);\n\t\tarea.setText(documentText);\n\t\tarea.setWrapStyleWord(true);\n\t\t\n\t\t\n\t\tarea.setCaret(caret);\n\t\tdocumentListener = new TextDocumentListener();\n\t\tarea.getDocument().addDocumentListener(documentListener); \n\t\t\n area.getDocument().addUndoableEditListener(new UndoListener());\n \n\t\tscrollpane = new JScrollPane(area);\n\t\tscrollpane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\n\t\tGroupLayout layout = new GroupLayout(this);\n\t\tsetLayout(layout);\n\t\tlayout.setAutoCreateGaps(true);\n\t\tlayout.setAutoCreateContainerGaps(true);\n\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup()\n\t\t\t\t.addComponent(documentNameLabel)\n\t\t\t\t.addComponent(scrollpane));\n\t\tlayout.setVerticalGroup(layout.createSequentialGroup()\n\t\t\t\t.addComponent(documentNameLabel)\n\t\t\t\t.addComponent(scrollpane));\n\t}", "private void setupLayout() {\n this.setLayout(new BorderLayout());\n\t\tthis.setupConstraints();\n\n\t\tJPanel titleAuthorFields = new JPanel(new GridBagLayout());\n\t\ttitleAuthorFields.add(Pirex.inputField(titleLabel, titleTextField, null), cTitleField);\n\t\ttitleAuthorFields.add(Pirex.inputField(authorLabel, authorTextField, null), cAuthorField);\n\n\t\tJPanel inputFields = new JPanel(new GridLayout(3, 0));\n\t\tinputFields.add(Pirex.inputField(fileLabel, fileTextField, fileBrowseButton));\n\t\tinputFields.add(Pirex.inputField(fileTypeLabel, fileTypeComboBox, null));\n\t\tinputFields.add(titleAuthorFields);\n\t\tinputFields = Pirex.borderLayoutWrap(null, null, inputFields, null, separator);\n\n\t\tJPanel leftAlignedProcessButton = Pirex.leftAlign(processButton);\n\t\tJPanel processPanel = Pirex.borderLayoutWrap(leftAlignedProcessButton, null, summaryScrollPanel, null, null);\n\t\tJPanel loadTabPanel = Pirex.borderLayoutWrap(inputFields, null, processPanel, null, null);\n\n\t\tthis.add(Pirex.withBorder(loadTabPanel), BorderLayout.CENTER);\n\n }", "private void controllersUI() {\n\t\tc.setLayout(null);\n\t\tc.setBackground(whiteColor);\n\t\t\n\t\tlbPullTitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlbPullTitle.setOpaque(true);\n\t\tlbPullTitle.setFont(new Font(\"Helvetica Neue\", Font.PLAIN, 18));\n\t\tlbPullTitle.setBounds(0, 0, 320, 52);\n\t\t\n\t\ttxtPulls.setFont(new Font(\"Helvetica Neue\", Font.PLAIN, 12));\n\t\ttxtPulls.setBounds(0, 52, 320, 420);\n\t\t\n\t\ttxtMsg.setBounds(10, 480, 230, 35);\n\t\tbtnMsg.setBounds(250, 476, 60, 40);\n\t\t\n\t\tc.add(txtPulls);\n\t\tc.add(lbPullTitle);\n\t\tc.add(btnMsg);\n\t\tc.add(txtMsg);\n\t\t\n\t\tbtnMsg.addActionListener(this);\n\t}", "protected abstract void iniciarLayout();", "public MessagePanel() {\n initComponents();\n HTMLEditorKit editKit = new HTMLEditorKit();\n msgEP.setEditorKit((EditorKit)editKit);\n }", "private void $$$setupUI$$$ ()\n {\n contentPane = new JPanel();\n contentPane.setLayout(new BorderLayout(0, 0));\n contentPane.setBackground(new Color(-16777216));\n contentPane.setPreferredSize(new Dimension(300, 100));\n contentPane.setRequestFocusEnabled(false);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n panel1.setBackground(new Color(-16777216));\n panel1.setPreferredSize(new Dimension(200, 50));\n contentPane.add(panel1, BorderLayout.SOUTH);\n buttonOK = new JButton();\n buttonOK.setPreferredSize(new Dimension(100, 31));\n buttonOK.setText(\"OK\");\n panel1.add(buttonOK);\n final JLabel label1 = new JLabel();\n label1.setPreferredSize(new Dimension(30, 10));\n label1.setText(\"\");\n panel1.add(label1);\n buttonCancel = new JButton();\n buttonCancel.setPreferredSize(new Dimension(100, 31));\n buttonCancel.setText(\"Cancel\");\n panel1.add(buttonCancel);\n textField1 = new JTextField();\n textField1.setBackground(new Color(-15987184));\n Font textField1Font = Tools.getFont(\"Arial\", -1, 20, textField1.getFont());\n if (textField1Font != null)\n {\n textField1.setFont(textField1Font);\n }\n textField1.setForeground(new Color(-1));\n textField1.setHorizontalAlignment(0);\n textField1.setOpaque(false);\n textField1.setPreferredSize(new Dimension(300, 50));\n contentPane.add(textField1, BorderLayout.CENTER);\n final JLabel label2 = new JLabel();\n label2.setPreferredSize(new Dimension(11, 11));\n label2.setText(\" \");\n contentPane.add(label2, BorderLayout.WEST);\n final JLabel label3 = new JLabel();\n label3.setPreferredSize(new Dimension(11, 11));\n label3.setText(\" \");\n contentPane.add(label3, BorderLayout.EAST);\n final JLabel label4 = new JLabel();\n label4.setPreferredSize(new Dimension(11, 11));\n label4.setText(\"\");\n contentPane.add(label4, BorderLayout.NORTH);\n }", "public void initGui()\n {\n this.buttonList.clear();\n this.multilineMessage = this.fontRendererObj.listFormattedStringToWidth(this.message.getFormattedText(), this.width - 50);\n this.field_175353_i = this.multilineMessage.size() * this.fontRendererObj.FONT_HEIGHT;\n this.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 2 + this.field_175353_i / 2 + this.fontRendererObj.FONT_HEIGHT, I18n.format(\"gui.toMenu\", new Object[0])));\n if(!TabGUI.openTabGUI) return;\n this.buttonList.add(new GuiButton(1, this.width / 2 - 100, this.height / 2 + 20 + this.field_175353_i / 2 + this.fontRendererObj.FONT_HEIGHT, 100, 20, \"Reconnect\"));\n this.buttonList.add(new GuiButton(2, this.width / 2, this.height / 2 + 20 + this.field_175353_i / 2 + this.fontRendererObj.FONT_HEIGHT, 100, 20, \"Random Alt\"));\n }", "private void initGui()\n {\n setBorder(BorderFactory.createMatteBorder(0, 1, 0, 0, Color.WHITE));\n\n setLayout(new GridBagLayout());\n\n GridBagConstraints gbc = new GridBagConstraints();\n\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.anchor = GridBagConstraints.WEST;\n\n this.add(lblHint, gbc);\n }", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "private void setupLayout()\n\t{\n\t\tbaseLayout.putConstraint(SpringLayout.NORTH, queryButton, 70, SpringLayout.NORTH, this);\n\t\tbaseLayout.putConstraint(SpringLayout.WEST, queryButton, 49, SpringLayout.WEST, this);\n\t}", "private void designComponents() \n\t{\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\tsetBorder(BorderFactory.createLineBorder(Color.gray));\n\t}", "void buildLayout(){\n\t\tsetText(\"Score: \" + GameModel.instance().getPoints());\n\t\tsetX(10);\n\t\tsetY(10);\n\t\tsetFont(Font.font(\"verdana\", FontWeight.BOLD, FontPosture.REGULAR, 20));\n\t\t\n\t}", "private void setupLayout()\n\t{\n\t\tbaseLayout.putConstraint(SpringLayout.WEST,firstButton,107,SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstButton, -32, SpringLayout.SOUTH, this);\n\t\tbaseLayout.putConstraint(SpringLayout.WEST, firstField, 37, SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstField, -24, SpringLayout.SOUTH, this);\n\t}", "private void setUpGUI() {\r\n\r\n\t\t// All the components to the panel\r\n\t\tuserName = new JTextField();\r\n\t\tpassword = new JPasswordField();\r\n\t\tuserNameLabel = new JLabel(\"UserName\");\r\n\t\tpasswordLabel = new JLabel(\"Password\");\r\n\t\tloginButton = new JButton(\"Login\");\r\n\t\tregisterButton = new JButton(\"Register\");\r\n\r\n\t\t// Null layout for custom layout\r\n\t\tthis.setLayout(null);\r\n\r\n\t\t// Sets the size and location of all the labels, fields, and buttons\r\n\t\tuserNameLabel.setLocation(labelXLocation, labelYLocation);\r\n\t\tuserNameLabel.setSize(labelXSize, labelYSize);\r\n\r\n\t\tuserName.setLocation(labelXLocation + xFieldOffset, labelYLocation);\r\n\t\tuserName.setSize(textFieldXSize, textFieldYSize);\r\n\r\n\t\tpasswordLabel.setLocation(labelXLocation, labelYLocation + labelYSize\r\n\t\t\t\t+ buffer);\r\n\t\tpasswordLabel.setSize(labelXSize, labelYSize);\r\n\r\n\t\tpassword.setLocation(labelXLocation + xFieldOffset, labelYLocation\r\n\t\t\t\t+ yFieldOffset);\r\n\t\tpassword.setSize(textFieldXSize, textFieldYSize);\r\n\r\n\t\tloginButton.setLocation(labelXLocation, labelYLocation + labelYSize\r\n\t\t\t\t+ textFieldYSize + buffer * 3);\r\n\t\tloginButton.setSize(xButtonSize, yButtonSize);\r\n\r\n\t\tregisterButton.setLocation(labelXLocation + xFieldOffset + buffer\r\n\t\t\t\t+ buffer, labelYLocation + labelYSize + textFieldYSize + buffer\r\n\t\t\t\t* 3);\r\n\t\tregisterButton.setSize(xButtonSize, yButtonSize);\r\n\r\n\t\t\r\n\t\t// Adds everything to the panel\r\n\t\tthis.add(userNameLabel);\r\n\t\tthis.add(userName);\r\n\t\tthis.add(passwordLabel);\r\n\t\tthis.add(password);\r\n\t\tthis.add(loginButton);\r\n\t\tthis.add(registerButton);\r\n\t\tthis.repaint();\r\n\t}", "private void createAndLayoutComponents(){\n\t\tsetLayout(null); //absolute layout\n\n\t\t// avatar\n\t\tavatar = new JLabel(\"\\r\\n\");\n\t\tavatar.setIcon(new ImageIcon(\"img/LongAvatar.png\"));\n\t\tavatar.setBounds(19, 36, 182, 286);\n\t\tadd(avatar);\n\n\t\t// \"Please spell word ? of ?\" label\n\t\tspellQuery = new JLabel(\"Please spell word\\r\\n\");\n\t\tspellQuery.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tspellQuery.setFont(new Font(\"Arial\", Font.PLAIN, 24));\n\t\tspellQuery.setBounds(213, 29, 380, 45);\n\t\tadd(spellQuery);\n\n\t\t// \"Definition:\" label\n\t\tlblNewLabel = new JLabel(\"Definition:\");\n\t\tlblNewLabel.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblNewLabel.setBounds(213, 75, 86, 14);\n\t\tadd(lblNewLabel);\n\n\t\t// text area displaying the definition of the word\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(213, 98, 286, 64);\n\t\tadd(scrollPane);\n\t\tdefinitionArea = new JTextArea();\n\t\tdefinitionArea.setForeground(new Color(0, 0, 0));\n\t\tdefinitionArea.setWrapStyleWord(true);\n\t\tdefinitionArea.setLineWrap(true);\n\t\tdefinitionArea.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tdefinitionArea.setEditable(false);\n\t\tscrollPane.setViewportView(definitionArea);\n\t\tdefinitionArea.setBackground(new Color(250,250,250));\n\n\t\t// user input field\n\t\tuserInput = new JTextField();\n\t\tuserInput.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tuserInput.setBounds(213, 173, 286, 30);\n\t\tadd(userInput);\n\t\tuserInput.setColumns(10);\n\n\t\t// listen again button\n\t\tbtnListenAgain = new JButton(\"Listen again\");\n\t\tbtnListenAgain.setToolTipText(\"Listen to word again\");\n\t\tbtnListenAgain.setFont(new Font(\"Arial\", Font.BOLD, 14));\n\t\tbtnListenAgain.addActionListener(this);\n\t\tbtnListenAgain.addKeyListener(this);\n\t\tbtnListenAgain.setBounds(213, 214, 144, 31);\n\t\tadd(btnListenAgain);\n\n\t\t// confirm button or next question button\n\t\tbtnConfirmOrNext = new JButton(\"Confirm\");\n\t\tbtnConfirmOrNext.setToolTipText(\"\");\n\t\tbtnConfirmOrNext.setFont(new Font(\"Arial\", Font.BOLD, 14));\n\t\tbtnConfirmOrNext.addActionListener(this);\n\t\tbtnConfirmOrNext.addKeyListener(this);\n\t\tbtnConfirmOrNext.setBounds(365, 214, 134, 31);\n\t\tadd(btnConfirmOrNext);\n\n\t\t// \"You only have 2 attempts\" label\n\t\tlblYouOnlyHave = new JLabel(\"You have only 2 attempts\");\n\t\tlblYouOnlyHave.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblYouOnlyHave.setBounds(213, 256, 258, 20);\n\t\tadd(lblYouOnlyHave);\n\n\t\t// \"1st attempt\" label\n\t\tlblstAttempt = new JLabel(\"1st attempt\");\n\t\tlblstAttempt.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblstAttempt.setBounds(213, 281, 86, 20);\n\t\tadd(lblstAttempt);\n\n\t\t// \"2nd attempt\" label\n\t\tlblndAttempt = new JLabel(\"2nd attempt\");\n\t\tlblndAttempt.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblndAttempt.setBounds(213, 302, 86, 20);\n\t\tadd(lblndAttempt);\n\n\t\t// shows the user's first attempt\n\t\tfirstAttempt = new JLabel(\": \");\n\t\tfirstAttempt.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tfirstAttempt.setBounds(309, 281, 134, 20);\n\t\tadd(firstAttempt);\n\n\t\t// shows the user's second attempt\n\t\tsecondAttempt = new JLabel(\": \");\n\t\tsecondAttempt.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tsecondAttempt.setBounds(309, 302, 134, 20);\n\t\tadd(secondAttempt);\n\t\t\n\t\t// shows how many letters off is the user's answer\n\t\tfirstAttemptResult = new JLabel(\"\");\n\t\tfirstAttemptResult.setFont(new Font(\"Arial\", Font.BOLD, 14));\n\t\tfirstAttemptResult.setBounds(453, 281, 215, 20);\n\t\tadd(firstAttemptResult);\n\t\tsecondAttemptResult = new JLabel(\"\");\n\t\tsecondAttemptResult.setFont(new Font(\"Arial\", Font.BOLD, 14));\n\t\tsecondAttemptResult.setBounds(453, 302, 215, 20);\n\t\tadd(secondAttemptResult);\n\n\t\t// stop quiz button\n\t\tbtnStop = new JButton(\"Stop\\r\\n Quiz\");\n\t\tbtnStop.setFont(new Font(\"Arial\", Font.BOLD, 14));\n\t\tbtnStop.setToolTipText(\"Only available during answring phase.\");\n\t\tbtnStop.addActionListener(this);\n\t\tbtnStop.addKeyListener(this);\n\t\tbtnStop.setBounds(554, 214, 114, 31);\n\t\tadd(btnStop);\n\n\t\t// show current quiz\n\t\tlblCurrentQuiz = new JLabel(\"Current Quiz \");\n\t\tlblCurrentQuiz.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblCurrentQuiz.setBounds(523, 75, 108, 14);\n\t\tadd(lblCurrentQuiz);\n\t\tcurrentQuiz = new JLabel(\": \");\n\t\tcurrentQuiz.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tcurrentQuiz.setBounds(653, 77, 127, 14);\n\t\tadd(currentQuiz);\n\t\t\n\t\t// show current streak\n\t\tlblCurrentStreak = new JLabel(\"Current Streak\");\n\t\tlblCurrentStreak.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblCurrentStreak.setBounds(523, 100, 118, 14);\n\t\tadd(lblCurrentStreak);\n\t\tcurrentStreak = new JLabel(\": \");\n\t\tcurrentStreak.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tcurrentStreak.setBounds(653, 102, 127, 14);\n\t\tadd(currentStreak);\n\t\t\n\t\t// show longest streak\n\t\tlblLongeststreak = new JLabel(\"Longest Streak\\r\\n\");\n\t\tlblLongeststreak.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblLongeststreak.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblLongeststreak.setBounds(523, 124, 96, 20);\n\t\tadd(lblLongeststreak);\n\t\tlongestStreak = new JLabel(\": \");\n\t\tlongestStreak.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlongestStreak.setBounds(653, 126, 127, 14);\n\t\tadd(longestStreak);\n\t\t\n\t\t// show words spelled correctly\n\t\tlblSpelledCorrectly = new JLabel(\"Spelled Correctly\");\n\t\tlblSpelledCorrectly.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblSpelledCorrectly.setBounds(523, 149, 118, 14);\n\t\tadd(lblSpelledCorrectly);\n\t\tnoOfCorrectSpellings = new JLabel(\": \");\n\t\tnoOfCorrectSpellings.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tnoOfCorrectSpellings.setBounds(653, 151, 127, 14);\n\t\tadd(noOfCorrectSpellings);\n\t\t\n\t\t// show quiz accuracy\n\t\tlblQuizAccuracy = new JLabel(\"Quiz Accuracy\\r\\n\");\n\t\tlblQuizAccuracy.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblQuizAccuracy.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblQuizAccuracy.setBounds(523, 174, 108, 20);\n\t\tadd(lblQuizAccuracy);\n\t\tquizAccuracy = new JLabel(\": \");\n\t\tquizAccuracy.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tquizAccuracy.setBounds(653, 176, 127, 14);\n\t\tadd(quizAccuracy);\n\n\t}", "public WorkFlowLayout() {\r\n WorkFlowLayout.this.setWidth(100, Unit.PERCENTAGE);\r\n WorkFlowLayout.this.setHeight(100, Unit.PERCENTAGE);\r\n\r\n VerticalLayout content = new VerticalLayout();\r\n content.setHeightUndefined();\r\n content.setWidth(100, Unit.PERCENTAGE);\r\n WorkFlowLayout.this.setContent(content);\r\n WorkFlowLayout.this.setStyleName(\"subframe\");\r\n\r\n content.setSpacing(true);\r\n\r\n Label titleLabel = new Label(\"SearchGUI-PeptideShaker-WorkFlow\");\r\n titleLabel.setStyleName(\"frametitle\");\r\n content.addComponent(titleLabel);\r\n\r\n searchSettingsFileList = new DropDownList(\"Search Settings (Select or Enter New Name)\");\r\n content.addComponent(searchSettingsFileList);\r\n searchSettingsFileList.setFocous();\r\n\r\n HorizontalLayout btnsFrame = new HorizontalLayout();\r\n btnsFrame.setWidthUndefined();\r\n btnsFrame.setSpacing(true);\r\n btnsFrame.setStyleName(\"bottomformlayout\");\r\n content.addComponent(btnsFrame);\r\n\r\n Label addNewSearchSettings = new Label(\"Add\");\r\n addNewSearchSettings.addStyleName(\"windowtitle\");\r\n btnsFrame.addLayoutClickListener(new LayoutEvents.LayoutClickListener() {\r\n @Override\r\n public void layoutClick(LayoutEvents.LayoutClickEvent event) {\r\n Component c = event.getClickedComponent();\r\n if (c != null && c instanceof Label && ((Label) c).getValue().equalsIgnoreCase(\"Add\")) {\r\n String basepath = VaadinService.getCurrent().getBaseDirectory().getAbsolutePath();\r\n File file = new File(basepath + \"/VAADIN/default_searching.par\");\r\n SearchParameters searchParameters;\r\n try {\r\n searchParameters = SearchParameters.getIdentificationParameters(file);\r\n searchParameters.setFastaFile(null);\r\n } catch (IOException | ClassNotFoundException ex) {\r\n\r\n ex.printStackTrace();\r\n return;\r\n }\r\n searchParameters.setDefaultAdvancedSettings();\r\n searchSettingsLayout.updateForms(searchParameters, null);\r\n editSearchOption.setPopupVisible(true);\r\n } else if (c != null && c instanceof Label && ((Label) c).getValue().equalsIgnoreCase(\"Edit\")) {\r\n\r\n try {\r\n File file = searchSettingsMap.get(searchSettingsFileList.getSelectedValue()).getFile();\r\n searchParameters = SearchParameters.getIdentificationParameters(file);\r\n } catch (IOException | ClassNotFoundException ex) {\r\n ex.printStackTrace();\r\n return;\r\n }\r\n searchSettingsLayout.updateForms(searchParameters, searchSettingsFileList.getSelectedValue());\r\n editSearchOption.setPopupVisible(true);\r\n\r\n }\r\n }\r\n });\r\n btnsFrame.addComponent(addNewSearchSettings);\r\n Label editSearchSettings = new Label(\"Edit\");\r\n editSearchSettings.addStyleName(\"windowtitle\");\r\n btnsFrame.addComponent(editSearchSettings);\r\n searchSettingsLayout = new SearchSettingsLayout() {\r\n @Override\r\n public void saveSearchingFile(SearchParameters searchParameters, boolean editMode) {\r\n checkAndSaveSearchSettingsFile(searchParameters, editMode);\r\n editSearchOption.setPopupVisible(false);\r\n }\r\n\r\n @Override\r\n public void cancel() {\r\n editSearchOption.setPopupVisible(false);\r\n }\r\n\r\n };\r\n editSearchOption = new PopupWindow(\"Edit\");\r\n editSearchOption.setContent(searchSettingsLayout);\r\n editSearchOption.setSizeFull();\r\n editSearchOption.addStyleName(\"centerwindow\");\r\n\r\n Label searchSettingInfo = new Label();\r\n searchSettingInfo.setWidth(400, Unit.PIXELS);\r\n searchSettingInfo.setHeight(90, Unit.PIXELS);\r\n searchSettingInfo.setStyleName(\"subpanelframe\");\r\n searchSettingInfo.addStyleName(\"bottomformlayout\");\r\n searchSettingInfo.addStyleName(\"smallfontlongtext\");\r\n content.addComponent(searchSettingInfo);\r\n\r\n mgfFileList = new MultiSelectOptionGroup(\"Spectrum File(s)\", false);\r\n content.addComponent(mgfFileList);\r\n mgfFileList.setRequired(true, \"Select at least 1 MGF file\");\r\n mgfFileList.setViewList(true);\r\n\r\n MultiSelectOptionGroup searchEngines = new MultiSelectOptionGroup(\"Search Engines\", false);\r\n content.addComponent(searchEngines);\r\n searchEngines.setRequired(true, \"Select at least 1 search engine\");\r\n searchEngines.setViewList(true);\r\n\r\n Map<String, String> searchEngienList = new LinkedHashMap<>();\r\n searchEngienList.put(\"X!Tandem\", \"X!Tandem\");\r\n searchEngienList.put(\"MS-GF+\", \"MS-GF+\");\r\n searchEngienList.put(\"OMSSA\", \"OMSSA\");\r\n searchEngienList.put(\"Comet\", \"Comet\");\r\n searchEngienList.put(\"Tide\", \"Tide\");\r\n searchEngienList.put(\"MyriMatch\", \"MyriMatch\");\r\n searchEngienList.put(\"MS_Amanda\", \"MS_Amanda\");\r\n searchEngienList.put(\"DirecTag\", \"DirecTag\");\r\n searchEngienList.put(\"Novor (Select for non-commercial use only)\", \"Novor (Select for non-commercial use only)\");\r\n searchEngines.updateList(searchEngienList);\r\n searchEngines.setSelectedValue(\"X!Tandem\");\r\n searchEngines.setSelectedValue(\"MS-GF+\");\r\n searchEngines.setSelectedValue(\"OMSSA\");\r\n HorizontalLayout bottomLayout = new HorizontalLayout();\r\n bottomLayout.setStyleName(\"bottomformlayout\");\r\n bottomLayout.setWidth(400, Unit.PIXELS);\r\n bottomLayout.setSpacing(true);\r\n content.addComponent(bottomLayout);\r\n\r\n projectNameField = new HorizontalLabelTextField(\"<b>Project Name</b>\", \"New Project Name\", null);\r\n projectNameField.setWidth(100, Unit.PERCENTAGE);\r\n projectNameField.setRequired(true);\r\n bottomLayout.addComponent(projectNameField);\r\n bottomLayout.setExpandRatio(projectNameField, 70);\r\n\r\n Button executeWorkFlow = new Button(\"Execute\");\r\n executeWorkFlow.setStyleName(ValoTheme.BUTTON_SMALL);\r\n executeWorkFlow.addStyleName(ValoTheme.BUTTON_TINY);\r\n bottomLayout.addComponent(executeWorkFlow);\r\n bottomLayout.setComponentAlignment(executeWorkFlow, Alignment.TOP_RIGHT);\r\n bottomLayout.setExpandRatio(executeWorkFlow, 30);\r\n\r\n executeWorkFlow.addClickListener((Button.ClickEvent event) -> {\r\n String fastFileId = searchSettingsLayout.getFastaFileId();\r\n Set<String> spectrumIds = mgfFileList.getSelectedValue();\r\n Set<String> searchEnginesIds = searchEngines.getSelectedValue();\r\n String projectName = projectNameField.getSelectedValue().replace(\" \", \"_\").replace(\"-\", \"_\");\r\n if (!projectNameField.isValid() || fastFileId == null || spectrumIds == null || searchEnginesIds == null) {\r\n return;\r\n }\r\n Map<String, Boolean> selectedSearchEngines = new HashMap<>();\r\n searchEngienList.keySet().forEach((paramId) -> {\r\n selectedSearchEngines.put(paramId, searchEngines.getSelectedValue().contains(paramId));\r\n });\r\n executeWorkFlow(projectName, fastFileId, spectrumIds, searchEnginesIds, searchSettingsLayout.getSearchParameters(), selectedSearchEngines);\r\n });\r\n mgfFileList.setEnabled(false);\r\n searchEngines.setEnabled(false);\r\n projectNameField.setEnabled(false);\r\n editSearchSettings.setEnabled(false);\r\n executeWorkFlow.setEnabled(false);\r\n searchSettingsFileList.addValueChangeListener((Property.ValueChangeEvent event) -> {\r\n if (searchSettingsFileList.getSelectedValue() != null) {\r\n mgfFileList.setEnabled(true);\r\n searchEngines.setEnabled(true);\r\n projectNameField.setEnabled(true);\r\n editSearchSettings.setEnabled(true);\r\n executeWorkFlow.setEnabled(true); \r\n try { \r\n File file = searchSettingsMap.get(searchSettingsFileList.getSelectedValue()).getFile(); \r\n searchParameters = SearchParameters.getIdentificationParameters(file);\r\n String descrip = searchParameters.getShortDescription();\r\n descrip = descrip.replace(searchParameters.getFastaFile().getName(), searchSettingsLayout.getFastaFileName(searchParameters.getFastaFile().getName().split(\"__\")[0]));\r\n searchSettingInfo.setValue(descrip);\r\n } catch (IOException | ClassNotFoundException ex) {\r\n ex.printStackTrace();\r\n return;\r\n }\r\n searchSettingsLayout.updateForms(searchParameters, searchSettingsFileList.getSelectedValue());\r\n\r\n }\r\n });\r\n }", "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 abstract void doLayout();", "public void setLayoutNeeded() {\n if (WindowManagerDebugConfig.DEBUG_LAYOUT) {\n Slog.w(TAG, \"setLayoutNeeded: callers=\" + Debug.getCallers(3));\n }\n this.mLayoutNeeded = true;\n }", "private void setUpGui(){\n window = new JFrame(\"Error\");\n window.add(new JPanel().add(new JLabel(\"<html><div \" +\n \"style=\\\"margin:10px\\\"><h1 style=\\\"color:red; \" +\n \"text-align:center\\\">An error occurred!</h1> <p \" +\n \"style=\\\"font-size:18\\\">press \" +\n \"Error message to view the message or press default to use \" +\n \"the games default maps</p></div></html>\")));\n JPanel bottom = new JPanel();\n bottom.add(defaultMap(),BorderLayout.SOUTH);\n bottom.add(messageButton(), BorderLayout.SOUTH);\n bottom.add(quit(),BorderLayout.SOUTH);\n window.add(bottom,BorderLayout.SOUTH);\n }", "private void $$$setupUI$$$() {\r\n final JPanel panel1 = new JPanel();\r\n panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel = new JPanel();\r\n mMainPanel.setLayout(new GridLayoutManager(15, 3, new Insets(0, 0, 0, 0), -1, -1));\r\n panel1.add(mMainPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n label = new JLabel();\r\n Font labelFont = this.$$$getFont$$$(null, -1, 28, label.getFont());\r\n if (labelFont != null) label.setFont(labelFont);\r\n label.setText(\"CodeRecommender\");\r\n mMainPanel.add(label, new GridConstraints(0, 0, 2, 1, GridConstraints.ANCHOR_NORTHWEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer1 = new Spacer();\r\n mMainPanel.add(spacer1, new GridConstraints(5, 2, 1, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_NONE, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final JPanel panel2 = new JPanel();\r\n panel2.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel.add(panel2, new GridConstraints(4, 0, 6, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel3 = new JPanel();\r\n panel3.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel2.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n statement = new JTextArea();\r\n statement.setBackground(new Color(-12434103));\r\n statement.setColumns(0);\r\n statement.setEditable(false);\r\n statement.setEnabled(true);\r\n Font statementFont = this.$$$getFont$$$(\"Arial\", Font.PLAIN, 15, statement.getFont());\r\n if (statementFont != null) statement.setFont(statementFont);\r\n statement.setText(\" In the current ai craze, we want to use neural network-related technology to grab a large amount of source code from the open source community to achieve the recommendation of the N+1 line of code from the known N lines of code, and package this function into a practical plug-in on the IDE.\");\r\n panel3.add(statement, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, 70), null, 1, false));\r\n final JPanel panel4 = new JPanel();\r\n panel4.setLayout(new GridLayoutManager(12, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.setBackground(new Color(-12828863));\r\n panel3.add(panel4, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n Download = new JButton();\r\n Font DownloadFont = this.$$$getFont$$$(null, -1, 12, Download.getFont());\r\n if (DownloadFont != null) Download.setFont(DownloadFont);\r\n Download.setText(\"Find\");\r\n panel4.add(Download, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel5 = new JPanel();\r\n panel5.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel5, new GridConstraints(11, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JLabel label1 = new JLabel();\r\n label1.setText(\"See the guide on the https://github.com/huangjihui511/java-code-recommand-IDEA-plugin \");\r\n panel5.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer2 = new Spacer();\r\n panel5.add(spacer2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n pathTextField = new JTextField();\r\n pathTextField.setEditable(false);\r\n Font pathTextFieldFont = this.$$$getFont$$$(\"Arial\", Font.PLAIN, 12, pathTextField.getFont());\r\n if (pathTextFieldFont != null) pathTextField.setFont(pathTextFieldFont);\r\n pathTextField.setText(\"/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 \");\r\n panel4.add(pathTextField, new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n SetPath = new JButton();\r\n Font SetPathFont = this.$$$getFont$$$(null, -1, 12, SetPath.getFont());\r\n if (SetPathFont != null) SetPath.setFont(SetPathFont);\r\n SetPath.setText(\"Set\");\r\n panel4.add(SetPath, new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n Help = new JButton();\r\n Help.setText(\"Help\");\r\n panel4.add(Help, new GridConstraints(11, 1, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel6 = new JPanel();\r\n panel6.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel6.setFocusTraversalPolicyProvider(false);\r\n panel6.setFocusable(false);\r\n panel4.add(panel6, new GridConstraints(10, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel7 = new JPanel();\r\n panel7.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel7, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JLabel label2 = new JLabel();\r\n label2.setIcon(new ImageIcon(getClass().getResource(\"/timg (1) - 副本.jpg\")));\r\n label2.setText(\"\");\r\n panel7.add(label2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label3 = new JLabel();\r\n label3.setIcon(new ImageIcon(getClass().getResource(\"/微信图片_20190328224952 (2) - 副本.jpg\")));\r\n label3.setText(\"\");\r\n panel7.add(label3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel8 = new JPanel();\r\n panel8.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel7.add(panel8, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel9 = new JPanel();\r\n panel9.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel9, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n webaddressTextField = new JTextField();\r\n webaddressTextField.setEditable(false);\r\n Font webaddressTextFieldFont = this.$$$getFont$$$(\"Arial\", Font.PLAIN, 12, webaddressTextField.getFont());\r\n if (webaddressTextFieldFont != null) webaddressTextField.setFont(webaddressTextFieldFont);\r\n webaddressTextField.setText(\"/Volumes/PythonSupporting\");\r\n panel4.add(webaddressTextField, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n final JPanel panel10 = new JPanel();\r\n panel10.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel10, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JLabel label4 = new JLabel();\r\n Font label4Font = this.$$$getFont$$$(\"Consolas\", Font.BOLD, 14, label4.getFont());\r\n if (label4Font != null) label4.setFont(label4Font);\r\n label4.setText(\"Find the package\");\r\n panel10.add(label4, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer3 = new Spacer();\r\n panel10.add(spacer3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n final JPanel panel11 = new JPanel();\r\n panel11.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel11.setToolTipText(\"\");\r\n panel4.add(panel11, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JLabel label5 = new JLabel();\r\n Font label5Font = this.$$$getFont$$$(\"Consolas\", Font.BOLD, 14, label5.getFont());\r\n if (label5Font != null) label5.setFont(label5Font);\r\n label5.setText(\"Set the path\");\r\n panel11.add(label5, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer4 = new Spacer();\r\n panel11.add(spacer4, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n final JPanel panel12 = new JPanel();\r\n panel12.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel12, new GridConstraints(9, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel13 = new JPanel();\r\n panel13.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel13, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel14 = new JPanel();\r\n panel14.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel14, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel15 = new JPanel();\r\n panel15.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel15, new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n pic = new JPanel();\r\n pic.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n pic.putClientProperty(\"html.disable\", Boolean.FALSE);\r\n panel3.add(pic, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n a = new JLabel();\r\n a.setText(\"\");\r\n pic.add(a, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel16 = new JPanel();\r\n panel16.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n pic.add(panel16, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel17 = new JPanel();\r\n panel17.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n pic.add(panel17, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel18 = new JPanel();\r\n panel18.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel2.add(panel18, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final Spacer spacer5 = new Spacer();\r\n mMainPanel.add(spacer5, new GridConstraints(5, 1, 10, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_NONE, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final JPanel panel19 = new JPanel();\r\n panel19.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel.add(panel19, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel20 = new JPanel();\r\n panel20.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel.add(panel20, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final Spacer spacer6 = new Spacer();\r\n panel1.add(spacer6, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final Spacer spacer7 = new Spacer();\r\n panel1.add(spacer7, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final Spacer spacer8 = new Spacer();\r\n panel1.add(spacer8, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1));\n toolBarPanel = new JPanel();\n toolBarPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(toolBarPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n containerPanel = new JPanel();\n containerPanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(containerPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n errorPanel = new JPanel();\n errorPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(errorPanel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n valuePanel = new JPanel();\n valuePanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(valuePanel, new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"view as\");\n mainPanel.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n comboBox1 = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"UTF-8String\");\n comboBox1.setModel(defaultComboBoxModel1);\n mainPanel.add(comboBox1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n this.$$$loadButtonText$$$(buttonCancel, ResourceBundle.getBundle(\"strings\").getString(\"cancel\"));\n panel2.add(buttonCancel, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n this.$$$loadLabelText$$$(label1, ResourceBundle.getBundle(\"strings\").getString(\"resource-name\"));\n panel3.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n nameField = new JTextField();\n panel3.add(nameField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label2 = new JLabel();\n this.$$$loadLabelText$$$(label2, ResourceBundle.getBundle(\"strings\").getString(\"resource-availability\"));\n panel3.add(label2, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel3.add(scrollPane1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n scrollPane1.setViewportView(availabilitiesList);\n label1.setLabelFor(nameField);\n }", "private void $$$setupUI$$$() {\n container = new JPanel();\n container.setLayout(new FormLayout(\"fill:335px:noGrow,left:4dlu:noGrow,fill:334px:noGrow\", \"center:d:grow\"));\n container.setBorder(BorderFactory.createTitledBorder(null, \"港机数据采集服务配置\", TitledBorder.CENTER, TitledBorder.DEFAULT_POSITION, new Font(container.getFont().getName(), container.getFont().getStyle(), container.getFont().getSize()), new Color(-16777216)));\n serverContainer = new JPanel();\n serverContainer.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5));\n CellConstraints cc = new CellConstraints();\n container.add(serverContainer, cc.xy(1, 1, CellConstraints.FILL, CellConstraints.FILL));\n serverContainer.setBorder(BorderFactory.createTitledBorder(\"服务器配置\"));\n serverConfigPanel = new JPanel();\n serverConfigPanel.setLayout(new FormLayout(\"fill:80px:noGrow,left:4dlu:noGrow,fill:225px:grow\", \"center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow\"));\n serverContainer.add(serverConfigPanel);\n serverIpLabel = new JLabel();\n serverIpLabel.setText(\"IP地址\");\n serverConfigPanel.add(serverIpLabel, cc.xy(1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\n serverIpTxt = new JTextField();\n serverConfigPanel.add(serverIpTxt, cc.xy(3, 1, CellConstraints.FILL, CellConstraints.DEFAULT));\n serverPortLabel = new JLabel();\n serverPortLabel.setText(\"端口\");\n serverConfigPanel.add(serverPortLabel, cc.xy(1, 3, CellConstraints.CENTER, CellConstraints.DEFAULT));\n serverPortTxt = new JTextField();\n serverConfigPanel.add(serverPortTxt, cc.xy(3, 3, CellConstraints.FILL, CellConstraints.DEFAULT));\n serverIntervalLabel = new JLabel();\n serverIntervalLabel.setText(\"监听间隔\");\n serverConfigPanel.add(serverIntervalLabel, cc.xy(1, 5, CellConstraints.CENTER, CellConstraints.DEFAULT));\n serverIntervalTxt = new JTextField();\n serverConfigPanel.add(serverIntervalTxt, cc.xy(3, 5, CellConstraints.FILL, CellConstraints.DEFAULT));\n serverFileLabel = new JLabel();\n serverFileLabel.setText(\"配置文件路径\");\n serverConfigPanel.add(serverFileLabel, cc.xy(1, 7, CellConstraints.CENTER, CellConstraints.DEFAULT));\n serverFileTxt = new JTextField();\n serverConfigPanel.add(serverFileTxt, cc.xy(3, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\n serverControlPanel = new JPanel();\n serverControlPanel.setLayout(new FormLayout(\"fill:d:grow,left:4dlu:noGrow,fill:150px:noGrow,left:4dlu:noGrow,fill:150px:grow\", \"center:d:grow,top:4dlu:noGrow,center:42px:grow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\n serverContainer.add(serverControlPanel);\n serverSaveBtn = new JButton();\n serverSaveBtn.setText(\"保存\");\n serverControlPanel.add(serverSaveBtn, cc.xy(5, 3));\n serverFileOpener = new JButton();\n serverFileOpener.setText(\"打开\");\n serverControlPanel.add(serverFileOpener, cc.xy(3, 3));\n serverStartBtn = new JButton();\n serverStartBtn.setText(\"启动服务器\");\n serverControlPanel.add(serverStartBtn, cc.xy(3, 5));\n serverStopBtn = new JButton();\n serverStopBtn.setText(\"停止服务器\");\n serverControlPanel.add(serverStopBtn, cc.xy(5, 5));\n redisContainer = new JPanel();\n redisContainer.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n container.add(redisContainer, cc.xy(3, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\n redisContainer.setBorder(BorderFactory.createTitledBorder(\"Redis配置\"));\n redisConfigPanel = new JPanel();\n redisConfigPanel.setLayout(new FormLayout(\"fill:83px:noGrow,left:4dlu:noGrow,fill:221px:grow\", \"center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow\"));\n redisContainer.add(redisConfigPanel);\n redisIpLabel = new JLabel();\n redisIpLabel.setText(\"IP地址\");\n redisConfigPanel.add(redisIpLabel, cc.xy(1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\n redisIpTxt = new JTextField();\n redisConfigPanel.add(redisIpTxt, cc.xy(3, 1, CellConstraints.FILL, CellConstraints.DEFAULT));\n redisPortLabel = new JLabel();\n redisPortLabel.setText(\"端口\");\n redisConfigPanel.add(redisPortLabel, cc.xy(1, 3, CellConstraints.CENTER, CellConstraints.DEFAULT));\n redisPortTxt = new JTextField();\n redisConfigPanel.add(redisPortTxt, cc.xy(3, 3, CellConstraints.FILL, CellConstraints.DEFAULT));\n redisExpireLabel = new JLabel();\n redisExpireLabel.setText(\"过期时间\");\n redisConfigPanel.add(redisExpireLabel, cc.xy(1, 5, CellConstraints.CENTER, CellConstraints.DEFAULT));\n redisExpireTxt = new JTextField();\n redisConfigPanel.add(redisExpireTxt, cc.xy(3, 5, CellConstraints.FILL, CellConstraints.DEFAULT));\n redisFileLabel = new JLabel();\n redisFileLabel.setText(\"配置文件路径\");\n redisConfigPanel.add(redisFileLabel, cc.xy(1, 7, CellConstraints.CENTER, CellConstraints.DEFAULT));\n redisFileTxt = new JTextField();\n redisConfigPanel.add(redisFileTxt, cc.xy(3, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\n redisControlPanel = new JPanel();\n redisControlPanel.setLayout(new FormLayout(\"fill:d:grow,left:4dlu:noGrow,fill:150px:noGrow,left:4dlu:noGrow,fill:150px:grow\", \"center:d:grow,top:4dlu:noGrow,center:42px:grow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\n redisContainer.add(redisControlPanel);\n redisSaveBtn = new JButton();\n redisSaveBtn.setText(\"保存\");\n redisControlPanel.add(redisSaveBtn, cc.xy(5, 3));\n redisFileOpener = new JButton();\n redisFileOpener.setText(\"打开\");\n redisControlPanel.add(redisFileOpener, cc.xy(3, 3));\n redisStartBtn = new JButton();\n redisStartBtn.setText(\"启动服务器\");\n redisControlPanel.add(redisStartBtn, cc.xy(3, 5));\n redisStopBtn = new JButton();\n redisStopBtn.setText(\"停止服务器\");\n redisControlPanel.add(redisStopBtn, cc.xy(5, 5));\n }", "public Dialog setLayout(int layout) {\n this.setContentView(layout);\n txtclose = (TextView) this.findViewById(R.id.dialog_close);\n txtclose.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dismiss();\n }\n });\n\n this.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n getOwnerActivity().finish();\n }\n });\n\n this.setCanceledOnTouchOutside(false);\n this.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n\n return this;\n }", "private void createGUI()\n {\n JPanel contentPane = new JPanel(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n int numColumns = 3;\n\n JLabel l1 = new JLabel(\"Received Messages:\", SwingConstants.CENTER);\n c.gridx = 0;\n c.gridy = 0;\n c.anchor = GridBagConstraints.SOUTH;\n c.gridwidth = numColumns;\n contentPane.add(l1, c);\n\n display = new JTextArea(5, 20);\n JScrollPane scrollPane = new JScrollPane(display);\n display.setEditable(false);\n display.setForeground(Color.gray);\n c.gridy = 1;\n c.gridwidth = numColumns;\n c.anchor = GridBagConstraints.CENTER;\n c.weighty = 1.0;\n c.fill = GridBagConstraints.BOTH;\n contentPane.add(scrollPane, c);\n\n sendButton = new JButton(\"Send\");\n c.gridy = 2;\n c.gridwidth = 1;\n c.anchor = GridBagConstraints.SOUTH;\n c.weighty = 0.0;\n c.fill = GridBagConstraints.NONE;\n contentPane.add(sendButton, c);\n\n sendButton.addActionListener(this);\n\n JButton clearButton = new JButton(\"Clear\");\n c.gridx = 2;\n c.weightx = 0.0;\n c.anchor = GridBagConstraints.SOUTHEAST;\n c.fill = GridBagConstraints.NONE;\n contentPane.add(clearButton, c);\n\n clearButton.addActionListener(new ActionListener()\n {\n public void actionPerformed(final ActionEvent e)\n {\n display.setText(\"\");\n }\n });\n\n // Finish setting up the content pane and its border.\n contentPane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createLineBorder(Color.black),\n BorderFactory.createEmptyBorder(5, 20, 5, 10)));\n setContentPane(contentPane);\n }", "private void createMessageWindow() {\n\t\tmessageBG = Icon.createImageIcon(\"/images/UI/messageWindow.png\");\n\t\tmessageWindow = new JLabel(messageBG);\n\t\t\n\t\tmessageWindow = new JLabel(\"\");\n\t\tmessageWindow.setFont(new Font(\"Courier\", Font.PLAIN, 20));\n\t\tmessageWindow.setIcon(messageBG);\n\t\tmessageWindow.setIconTextGap(-messageBG.getIconWidth()+10);\n\t\tmessageWindow.setHorizontalTextPosition(0);\n\t\tmessageWindow.setOpaque(false);\n\t\t\t\t\n\t\tmessagePanel.add(messageWindow, BorderLayout.CENTER);\n\t\tmessagePanel.setOpaque(false);\n\t}", "public Connect4Final() { //building the GUI\r\n \r\n setTitle(\"Connect 4\"); //title\r\n setSize(1366, 700); //size of frame\r\n setResizable(false); //setting this to false because if resizeable, the board may become unproportional\r\n \r\n GridLayout layout2 = new GridLayout(7, 9); //layouts\r\n BoxLayout layout3 = new BoxLayout(welcome, BoxLayout.Y_AXIS);\r\n \r\n setLayout(new GridBagLayout()); //setting the Layout of the entire frame to a gridBagLayout\r\n board.setLayout(layout2); //setting layouts of the 2 panels\r\n welcome.setLayout(layout3);\r\n \r\n welcome.setBorder(BorderFactory.createEmptyBorder(20,20,20,20)); //setting border around the panel\r\n \r\n winCounter.setFont(small);\r\n welcome.add(winCounter);\r\n winCounter.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n winCounter.add(Box.createRigidArea(new Dimension(0,75)));\r\n \r\n welcomelabel.setFont(f); //setting fonts\r\n welcome.add(welcomelabel);\r\n welcomelabel.setAlignmentX(Component.CENTER_ALIGNMENT); //adding the labels one by one and modifying them -- alignment, extra spacing, size etc.\r\n welcome.add(Box.createRigidArea(new Dimension(0,75)));\r\n \r\n instructions.setFont(f); //setting fonts\r\n welcome.add(instructions);\r\n instructions.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n welcome.add(Box.createRigidArea(new Dimension(0,75))); //creates extra space after each label\r\n \r\n welcome.add(input); \r\n welcome.add(Box.createRigidArea(new Dimension(0,75)));\r\n input.setMaximumSize(new Dimension(200, 25)); //sets the maximum size of textfield\r\n \r\n welcome.add(okButton);\r\n welcome.add(Box.createRigidArea(new Dimension(0,75)));\r\n okButton.setAlignmentX(Component.CENTER_ALIGNMENT); //aligns all the components by their center on the x axis of the panel\r\n \r\n for(int i = 0; i<7; i++){\r\n columnarray[i] = new JButton(\" \"+Integer.toString(i+1)); //adding the column numbers as buttons to the board panel and formatting them preoperly\r\n columnarray[i].setHorizontalAlignment(SwingConstants.LEFT);\r\n columnarray[i].addActionListener(this);\r\n columnarray[i].setBackground(rgb); \r\n columnarray[i].setBorderPainted(false);\r\n board.add(columnarray[i]);\r\n }\r\n \r\n for(int i = 0; i<ROW; i++){\r\n for(int j = 0; j<COL; j++){\r\n arrayCircles[i][j] = new DrawCircle(); //adding the circles to the board panel\r\n board.add(arrayCircles[i][j]);\r\n }\r\n }\r\n \r\n okButton.addActionListener(this); //adding all the actionlisteners\r\n pvp.addActionListener(this);\r\n pvai.addActionListener(this);\r\n black.addActionListener(this);\r\n red.addActionListener(this);\r\n yellow.addActionListener(this);\r\n green.addActionListener(this);\r\n okayButton.addActionListener(this);\r\n easyAI.addActionListener(this);\r\n hardAI.addActionListener(this);\r\n again.addActionListener(this);\r\n notAgain.addActionListener(this);\r\n \r\n add(welcome, makeConstraints(0,0,3,20)); //adding the panels to the frame with specified parameters on where they go\r\n add(board, makeConstraints(3,0,10,20));\r\n \r\n welcome.setPreferredSize(new Dimension(3, 30)); //setting the preferred size of the welcome panel\r\n \r\n board.setBackground(rgb); //setting the background of the board to be a specific customizable colour\r\n \r\n setVisible(true); //setting the frame to be visible\r\n }", "public UI() {\r\n\t\tsetPreferredSize(new Dimension(1100, 720));\r\n\t\tsetLayout(new BorderLayout());\r\n\t\tadd(chatPanel(), BorderLayout.CENTER);\r\n\t\tadd(serverPanel(), BorderLayout.EAST);\r\n\t\taddListeners();\r\n\t}", "protected void setupUI() {\r\n this.setLayout(new GridLayout((this.needDefaultValue) ? 3 : 2, 2));\r\n\r\n this.nameLabel = new JLabel(this.nameLabelText);\r\n this.add(this.nameLabel);\r\n this.add(this.nameTextField);\r\n\r\n this.typeLabel = new JLabel(this.typeLabelText);\r\n this.add(this.typeLabel);\r\n this.add(this.typeDropDown);\r\n\r\n if (this.needDefaultValue) {\r\n this.defValLabel = new JLabel(this.defValLabelText);\r\n this.add(this.defValLabel);\r\n this.add(this.defValueTextField);\r\n }\r\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new BorderLayout(0, 0));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:grow,top:3dlu:noGrow,center:max(d;4px):noGrow\"));\n mainPanel.add(panel2, BorderLayout.SOUTH);\n postButton = new JButton();\n postButton.setText(\"Post\");\n CellConstraints cc = new CellConstraints();\n panel2.add(postButton, cc.xy(1, 3));\n final JSplitPane splitPane1 = new JSplitPane();\n splitPane1.setResizeWeight(0.5);\n mainPanel.add(splitPane1, BorderLayout.CENTER);\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:noGrow,top:3dlu:noGrow,center:d:grow\"));\n splitPane1.setRightComponent(panel3);\n final JLabel label1 = new JLabel();\n label1.setText(\"Query Result\");\n panel3.add(label1, cc.xy(1, 1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel3.add(scrollPane1, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.FILL));\n queryResult = new JTextArea();\n scrollPane1.setViewportView(queryResult);\n final JPanel panel4 = new JPanel();\n panel4.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:noGrow,top:3dlu:noGrow,center:d:grow\"));\n splitPane1.setLeftComponent(panel4);\n final JLabel label2 = new JLabel();\n label2.setText(\"Cypher Query\");\n panel4.add(label2, cc.xy(1, 1));\n final JScrollPane scrollPane2 = new JScrollPane();\n panel4.add(scrollPane2, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.FILL));\n queryEditor = new JTextArea();\n scrollPane2.setViewportView(queryEditor);\n }", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n }", "@Override\n public void layoutControls() {\n labelArea.setPrefHeight(100);\n labelArea.setMinHeight(70);\n labelArea.setVgrow(nameLabel, Priority.ALWAYS);\n labelArea.setVgrow(powerLabel, Priority.ALWAYS);\n labelArea.setVgrow(titleLabel, Priority.ALWAYS);\n labelArea.setVgrow(startOfOperationFirstLabel, Priority.ALWAYS);\n\n labelArea.getChildren().addAll(titleLabel, nameLabel, powerLabel, startOfOperationFirstLabel);\n HBox.setHgrow(spacer, Priority.ALWAYS);\n\n\n getChildren().addAll(labelArea, spacer, waterControl);\n\n }", "@Override\r\n\tprotected void initializeLayout() {\r\n\t\tlayout = GraphLayoutFactory.createLayout(layoutType, graph, 250, 250, properties, AttributeMapSet.PROCEDURES);\r\n\t}", "private void initialiseUI()\n { \n // The actual data go in this component.\n String defaultRootElement = \"icr:regionSetData\";\n JPanel contentPanel = initialiseContentPanel(defaultRootElement);\n pane = new JScrollPane(contentPanel);\n \n panelLayout = new GroupLayout(this);\n\t\tthis.setLayout(panelLayout);\n\t\tthis.setBackground(DAOConstants.BG_COLOUR);\n\n\t\tpanelLayout.setAutoCreateContainerGaps(true);\n\n panelLayout.setHorizontalGroup(\n\t\t\tpanelLayout.createParallelGroup()\n\t\t\t.addComponent(pane, 10, 520, 540)\n );\n\n panelLayout.setVerticalGroup(\n\t\t\tpanelLayout.createSequentialGroup()\n .addComponent(pane, 10, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)\n );\n }", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tmainLayout.setWidth(\"100.0%\");\r\n\t\tmainLayout.setHeight(\"100.0%\");\r\n\t\t\r\n\t\t// label\r\n\t\tlabel = new Label();\r\n\t\tlabel.setImmediate(false);\r\n\t\tlabel.setWidth(\"-1px\");\r\n\t\tlabel.setHeight(\"-1px\");\r\n\t\tlabel.setValue(\"Stellvertreter ernennen\");\r\n\t\tlabel.setStyleName(Runo.LABEL_H1);\r\n\t\tmainLayout.addComponent(label, \"top:25.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// benutzer\r\n\t\tbenutzer = new ListSelect();\r\n\t\tbenutzer.setImmediate(false);\r\n\t\tbenutzer.setWidth(\"46.0%\");\r\n\t\tbenutzer.setHeight(\"70.0%\");\r\n\t\tmainLayout.addComponent(benutzer, \"top:35.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// ok\r\n\t\tok = new Button();\r\n\t\tok.setCaption(\"Stellvertreter ernennen\");\r\n\t\tok.setImmediate(false);\r\n\t\tok.setWidth(\"25%\");\r\n\t\tok.setHeight(\"-1px\");\r\n\t\tok.addListener(this);\r\n\t\tmainLayout.addComponent(ok, \"top:83.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// delete\r\n\t\tdelete = new Button();\r\n\t\tdelete.setCaption(\"Stellvertreter löschen\");\r\n\t\tdelete.setImmediate(false);\r\n\t\tdelete.setWidth(\"25%\");\r\n\t\tdelete.setHeight(\"-1px\");\r\n\t\tdelete.addListener(this);\r\n\t\tmainLayout.addComponent(delete, \"top:88.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// logout\r\n\t\tlogout = new Button();\r\n\t\tlogout.setCaption(\"logout\");\r\n\t\tlogout.setImmediate(false);\r\n\t\tlogout.setWidth(\"-1px\");\r\n\t\tlogout.setHeight(\"-1px\");\r\n\t\tlogout.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tlogout.addListener(this);\r\n\t\tmainLayout.addComponent(logout, \"top:97.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// back\r\n\t\tback = new Button();\r\n\t\tback.setCaption(\"Startseite\");\r\n\t\tback.setImmediate(true);\r\n\t\tback.setWidth(\"-1px\");\r\n\t\tback.setHeight(\"-1px\");\r\n\t\tback.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tback.addListener(this);\r\n\t\tmainLayout.addComponent(back, \"top:94.0%;left:35.0%;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "private void manageLayout()\r\n {\r\n // gridBaglayout \r\n setLayout(new GridBagLayout());\r\n GridBagConstraints gbc = new GridBagConstraints();\r\n\r\n // intro string\r\n gbc.weighty = 0;\r\n gbc.weightx = 0;\r\n gbc.insets = new Insets(1, 1, 1, 1);\r\n gbc.anchor = GridBagConstraints.CENTER;\r\n add(stringLabel, gbc);\r\n\r\n // State / options list\r\n JPanel panel = new JPanel();\r\n panel.setLayout(new FlowLayout(FlowLayout.CENTER));\r\n panel.add(stateLabel);\r\n panel.add(optionsList);\r\n panel.add(finalStateLabel);\r\n //gbc.insets = new Insets(2,2,2,2);\r\n gbc.weightx = .33;\r\n gbc.weighty = 0;\r\n gbc.gridy = 1;\r\n gbc.fill = 1;\r\n add(panel, gbc);\r\n\r\n // RadioButtons / Reset Button\r\n radioLabel = new JLabel();\r\n radioLabel.setLayout(new GridLayout(5, 1, 0, 0));\r\n radioLabel.setBorder(new TitledBorder(\"Search Types\"));\r\n radioLabel.setPreferredSize(new Dimension(180, 120));\r\n // reset button\r\n gbc.fill = 0;\r\n gbc.gridx = 1;\r\n gbc.weightx = 0;\r\n gbc.gridy = 0;\r\n gbc.weighty = 1;\r\n //radioLabel.add(depthFirstButton);\r\n //radioLabel.add(breadthFirstButton);\r\n radioLabel.add(AStarButton);\r\n radioLabel.add(enhancedAStarButton);\r\n radioLabel.add(solveButton);\r\n radioLabel.add(showNxtMvBtn);\r\n radioLabel.add(showAllMoves);\r\n add(radioLabel, gbc);\r\n gbc.gridy = 1;\r\n add(solutionLabel, gbc);\r\n gbc.gridx = 0;\r\n gbc.gridy = 3;\r\n add(resetButton, gbc);\r\n }", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(5, 5, new Insets(5, 5, 5, 5), -1, -1));\n final JLabel label1 = new JLabel();\n label1.setText(\"Client\");\n panel1.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Server\");\n panel1.add(label2, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel1.add(scrollPane1, new GridConstraints(1, 0, 1, 5, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n textArea1 = new JTextArea();\n textArea1.setText(\"\");\n scrollPane1.setViewportView(textArea1);\n final JScrollPane scrollPane2 = new JScrollPane();\n panel1.add(scrollPane2, new GridConstraints(3, 0, 1, 5, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n textArea2 = new JTextArea();\n scrollPane2.setViewportView(textArea2);\n closeButton = new JButton();\n closeButton.setText(\"Close\");\n panel1.add(closeButton, new GridConstraints(4, 4, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "@Override\r\n\tprotected int layoutId() {\n\t\treturn R.layout.mine_new_huankuan;\r\n\t}", "private void setLayout() {\n if (!mImageFragment.isAdded()) {\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(\n MATCH_PARENT, MATCH_PARENT));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT));\n } else {\n if (getResources().getConfiguration().orientation\n == Configuration.ORIENTATION_LANDSCAPE){\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n\n else {\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT,\n MATCH_PARENT));\n }\n }\n }", "private void setUp() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tsetupMessagePanel();\n\t\tsetupHomeButtonPanel();\n\t}", "private void init() {\n\n\t\tthis.setResizable(false);\n\t\tthis.setSize(575, 155);\n\t\tthis.setLocationRelativeTo(null);\n\t\tthis.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n\n\t\tJPanel panNom = addPannelName();\n\t\tJPanel panPass = addPannelPassword();\n\t\tJPanel panTopic = addPannelTopic();\n\n\t\tJPanel content = new JPanel();\n\t\tcontent.add(panNom);\n\t\tcontent.add(panPass);\n\t\tcontent.add(panTopic);\n\n\t\tJPanel control = new JPanel();\n\n\t\tJButton okButton = addOKButtonTopic();\n\t\tJButton cancelButton = addCancelButton();\n\n\t\tcontrol.add(okButton);\n\t\tcontrol.add(cancelButton);\n\n\t\tthis.getContentPane().add(content, BorderLayout.NORTH);\n\t\tthis.getContentPane().add(control, BorderLayout.SOUTH);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n splitPane = new javax.swing.JSplitPane();\n outlineViewPanel = new org.sleuthkit.autopsy.communications.relationships.OutlineViewPanel();\n messageContentViewer = new MessageDataContent();\n\n setLayout(new java.awt.BorderLayout());\n\n splitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);\n splitPane.setLeftComponent(outlineViewPanel);\n splitPane.setRightComponent(messageContentViewer);\n\n add(splitPane, java.awt.BorderLayout.CENTER);\n }", "private void initializeGUI()\r\n\t{\r\n\t\t//Setup the GUI layout manager for the content pane\r\n\t\tthis.getContentPane().setLayout(new GridLayout(1, 2, 0, 0));\r\n\r\n\t\t//Initialize the left side\r\n\t\tthis.lblLogo = new JLabel(Application.LOGO);\r\n\t\tthis.lblLogo.setHorizontalAlignment(JLabel.CENTER);\r\n\r\n\t\tthis.add(lblLogo);\r\n\r\n\t\t//Initialize the right side\r\n\t\tSpringLayout rightSideLayout = new SpringLayout();\r\n\t\tJPanel rightSidePanel = new JPanel(rightSideLayout);\r\n\t\trightSidePanel.setBorder(BorderFactory.createEmptyBorder(20, 10, 10, 20));\r\n\r\n\t\tJPanel loginPanel = new JPanel(new GridLayout(5, 1, 5, 5));\r\n\r\n\t\tthis.txtUsername = new JTextField();\r\n\t\tthis.txtUsername.addActionListener(this);\r\n\r\n\t\tthis.txtPassword = new JPasswordField();\r\n\t\tthis.txtPassword.addActionListener(this);\r\n\r\n\t\tthis.cmdLogin = new JButton(\"Login\");\r\n\t\tthis.cmdLogin.addActionListener(this);\r\n\r\n\t\tloginPanel.add(new JLabel(\"Username\"));\r\n\t\tloginPanel.add(this.txtUsername);\r\n\t\tloginPanel.add(new JLabel(\"Password\"));\r\n\t\tloginPanel.add(this.txtPassword);\r\n\r\n\t\tJPanel buttonPanel = new JPanel(new GridLayout(1, 3));\r\n\t\tbuttonPanel.add(new JLabel());\r\n\t\tbuttonPanel.add(new JLabel());\r\n\t\tbuttonPanel.add(this.cmdLogin);\r\n\r\n\t\tloginPanel.add(buttonPanel);\r\n\r\n\t\t//Position the elements\r\n\t\trightSideLayout.putConstraint(SpringLayout.VERTICAL_CENTER, loginPanel, 0, SpringLayout.VERTICAL_CENTER, rightSidePanel);\r\n\t\t//rightSideLayout.putConstraint(SpringLayout.SOUTH, loginPanel, 0, SpringLayout.SOUTH, rightSidePanel);\r\n\t\trightSideLayout.putConstraint(SpringLayout.WEST, loginPanel, 0, SpringLayout.WEST, rightSidePanel);\r\n\t\trightSideLayout.putConstraint(SpringLayout.EAST, loginPanel, 0, SpringLayout.EAST, rightSidePanel);\r\n\r\n\r\n\t\trightSidePanel.add(loginPanel);\r\n\r\n\t\tthis.add(rightSidePanel);\r\n\t}", "public void setLayout(Layout loadedLayout) {\n\t\tlayout.setText(loadedLayout.getLayoutString());\n\t}", "public final void initUI() {\n\t\tsetLayout(new BoxLayout(this, BoxLayout.X_AXIS));\n\t\tadd(new Box.Filler(minSize, prefSize, null));\n\t\t\n\t\tJPanel nameChoicePanel = new JPanel();\n\t\tnameChoicePanel.setLayout(new BoxLayout(nameChoicePanel, BoxLayout.Y_AXIS));\n\t\tnameChoicePanel.setName(\"Panel\");\n\t\t\n\t\t// Add instructions for what to do:\n\t\tinstructionLabel = new JLabel(\"Enter your name here:\", JLabel.CENTER);\n\t\tinstructionLabel.setMinimumSize(new Dimension(0, 40));\n\t\tinstructionLabel.setPreferredSize(new Dimension(instructionLabel.getPreferredSize().width, 40));\n\t\tinstructionLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tnameChoicePanel.add(instructionLabel);\n\t\t\n\t\t// Add textfield for user's name\n\t\tnameField = new JTextField(10);\n\t\tnameField.setName(\"textField\");\n\t\tnameField.getDocument().addDocumentListener(this);\n\t\tnameField.setMinimumSize(new Dimension(nameField.getWidth(), 41));\n\t\tnameField.setMaximumSize(new Dimension(250, 41));\n\t\t\n\t\tnameChoicePanel.add(nameField);\n\t\t\n\t\t// Add button\n\t\ttimeToPick = new JButton(\"Pick your team\");\n\t\ttimeToPick.setName(\"Test\");\n\t\ttimeToPick.addActionListener(nameChoiceListener);\n\t\ttimeToPick.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\t\n\t\ttimeToPick.setEnabled(false);\n\t\tnameChoicePanel.add(timeToPick);\n\t\t\n\t\t// Add name choice panel dimensions\n\t\tadd(nameChoicePanel);\n\t\tadd(new Box.Filler(minSize, prefSize, null));\n\t\tnameChoicePanel.setMinimumSize(new Dimension(400,240));\n\t\tnameChoicePanel.setPreferredSize(new Dimension(400,240));\n\t}", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(10, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel1.setBackground(new Color(-5461075));\n buttonBack = new JButton();\n buttonBack.setText(\"Cancel\");\n panel1.add(buttonBack, new GridConstraints(8, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n labelTitle = new JLabel();\n Font labelTitleFont = this.$$$getFont$$$(\"Droid Sans Mono\", Font.BOLD, 18, labelTitle.getFont());\n if (labelTitleFont != null) labelTitle.setFont(labelTitleFont);\n labelTitle.setForeground(new Color(-12828863));\n labelTitle.setText(\"Rename Billboard\");\n panel1.add(labelTitle, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCreate = new JButton();\n buttonCreate.setText(\"Rename\");\n panel1.add(buttonCreate, new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n fieldName = new JTextField();\n panel1.add(fieldName, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n labelName = new JLabel();\n labelName.setForeground(new Color(-11578538));\n labelName.setHorizontalAlignment(0);\n labelName.setHorizontalTextPosition(0);\n labelName.setText(\"New Billboard Name\");\n panel1.add(labelName, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(85, 30), null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n panel1.add(spacer2, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(18, 18), null, null, 0, false));\n final Spacer spacer3 = new Spacer();\n panel1.add(spacer3, new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(10, 10), null, null, 0, false));\n final Spacer spacer4 = new Spacer();\n panel1.add(spacer4, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(15, 15), null, null, 0, false));\n final Spacer spacer5 = new Spacer();\n panel1.add(spacer5, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(15, 15), null, null, 0, false));\n final Spacer spacer6 = new Spacer();\n panel1.add(spacer6, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(300, 0), null, null, 0, false));\n final Spacer spacer7 = new Spacer();\n panel1.add(spacer7, new GridConstraints(9, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(-1, 10), null, null, 0, false));\n }", "private void layoutBar() {\n this.setVisible(false);\n final SpringLayout layout = (SpringLayout) this.getLayout();\n final int numComponents = this.getComponentCount() - 1;\n \n SpringLayout.Constraints constraints;\n \n layout.putConstraint(SpringLayout.WEST, getComponent(0),\n Spring.constant(0), SpringLayout.WEST, this);\n layout.putConstraint(SpringLayout.EAST, getComponent(0),\n Spring.constant(-SMALL_BORDER), SpringLayout.WEST, getComponent(1));\n constraints = layout.getConstraints(getComponent(0));\n constraints.setHeight(Spring.constant(20));\n \n for (int i = 1; i < numComponents; i++) {\n layout.putConstraint(SpringLayout.EAST, getComponent(i),\n Spring.constant(-SMALL_BORDER), SpringLayout.WEST,\n getComponent(i + 1));\n constraints = layout.getConstraints(getComponent(i));\n constraints.setHeight(Spring.constant(20));\n constraints.setWidth(constraints.getWidth());\n }\n \n layout.putConstraint(SpringLayout.EAST, getComponent(numComponents),\n Spring.constant(0), SpringLayout.EAST, this);\n constraints = layout.getConstraints(getComponent(numComponents));\n constraints.setHeight(Spring.constant(20));\n constraints.setWidth(constraints.getWidth());\n this.setVisible(true);\n }", "private void defineLayout(IPageLayout layout) {\n String editorArea = layout.getEditorArea();\r\n\r\n IFolderLayout folder;\r\n\r\n // Place remote system view to left of editor area.\r\n folder = layout.createFolder(NAV_FOLDER_ID, IPageLayout.LEFT, 0.2F, editorArea);\r\n folder.addView(getRemoveSystemsViewID());\r\n\r\n // Place properties view below remote system view.\r\n folder = layout.createFolder(PROPS_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, NAV_FOLDER_ID);\r\n folder.addView(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n\r\n // Place job log explorer view below editor area.\r\n folder = layout.createFolder(JOB_LOG_EXPLORER_FOLDER_ID, IPageLayout.BOTTOM, 0.0F, editorArea);\r\n folder.addView(JobLogExplorerView.ID);\r\n\r\n // Place command log view below editor area.\r\n folder = layout.createFolder(CMDLOG_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, JobLogExplorerView.ID);\r\n folder.addView(getCommandLogViewID());\r\n\r\n layout.addShowViewShortcut(getRemoveSystemsViewID());\r\n layout.addShowViewShortcut(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n layout.addShowViewShortcut(getCommandLogViewID());\r\n\r\n layout.addPerspectiveShortcut(ID);\r\n\r\n layout.setEditorAreaVisible(false);\r\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 459, 602);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBounds(0, 0, 432, 38);\n\t\tpanel.add(panel_1);\n\t\tpanel_1.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n\t\t\n\t\tJLabel lblServerAddress = new JLabel(\"Server Address\");\n\t\tpanel_1.add(lblServerAddress);\n\t\t\n\t\tserverAddressTextField = new JTextField(this.address);\n\t\tserverAddressTextField.setEditable(false);\n\t\tpanel_1.add(serverAddressTextField);\n\t\tserverAddressTextField.setColumns(10);\n\t\t\n\t\tJLabel lblPort = new JLabel(\"Port\");\n\t\tpanel_1.add(lblPort);\n\t\t\n\t\tserverPortTextField = new JTextField(Integer.toString(this.port));\n\t\tserverPortTextField.setEditable(false);\n\t\tpanel_1.add(serverPortTextField);\n\t\tserverPortTextField.setColumns(10);\n\t\t\n\t\tJLabel lblEnterYourMessage = new JLabel(\"Enter Your Message Here\");\n\t\tlblEnterYourMessage.setBounds(10, 40, 410, 16);\n\t\tpanel.add(lblEnterYourMessage);\n\t\t\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setBounds(20, 69, 400, 38);\n\t\tpanel.add(panel_2);\n\t\tpanel_2.setLayout(null);\n\t\t\n\t\tmessageTextField = new JTextField();\n\t\tmessageTextField.setBounds(0, 0, 400, 38);\n\t\tpanel_2.add(messageTextField);\n\t\tmessageTextField.setColumns(10);\n\t\t\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setBounds(10, 125, 422, 348);\n\t\tpanel.add(panel_3);\n\t\tpanel_3.setLayout(null);\n\t\t\n\t\tmessageTextArea = new JTextArea();\n\t\tmessageTextArea.setBounds(0, 0, 422, 348);\n\t\tpanel_3.add(messageTextArea);\n\t\t\n\t\tJPanel panel_4 = new JPanel();\n\t\tpanel_4.setBounds(10, 486, 422, 56);\n\t\tpanel.add(panel_4);\n\t\tpanel_4.setLayout(null);\n\t\t\n\t\tJButton btnWhoIsIn = new JButton(\"Who is in\");\n\t\tbtnWhoIsIn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttheClient.sendMessage(\"WHOISIN\");\n\t\t\t}\n\t\t});\n\t\tbtnWhoIsIn.setBounds(295, 13, 85, 25);\n\t\tpanel_4.add(btnWhoIsIn);\n\t\t\n\t\tJButton btnLogout = new JButton(\"Logout\");\n\t\tbtnLogout.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttheClient.sendMessage(\"LOGOUT\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tbtnLogout.setBounds(148, 13, 97, 25);\n\t\tpanel_4.add(btnLogout);\n\t\t\n\t\tJButton btnSend = new JButton(\"Send\");\n\t\tbtnSend.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tString messageUser=messageTextField.getText();\n\t\t\t\tif(messageUser.equals(\"\")) \n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Please Enter Something\");\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\ttheClient.sendMessage(messageUser);\n\t\t\t\t\tmessageTextField.setText(\"\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnSend.setBounds(27, 13, 97, 25);\n\t\tpanel_4.add(btnSend);\n\t\t\n\t\tJLabel usernameLabel = new JLabel(this.username);\n\t\tusernameLabel.setBounds(285, 40, 147, 16);\n\t\tpanel.add(usernameLabel);\n\t\t\n\t\tJPanel panel_5 = new JPanel();\n\t\tpanel_5.setBounds(20, 604, 412, 231);\n\t\tpanel.add(panel_5);\n\t\tpanel_5.setLayout(null);\n\t\t\n\t\teventTextArea = new JTextArea();\n\t\teventTextArea.setBounds(0, 0, 412, 231);\n\t\tpanel_5.add(eventTextArea);\n\t\t\n\t\tJLabel eventlabel = new JLabel(\"Events\");\n\t\teventlabel.setBounds(82, 575, 271, 16);\n\t\tpanel.add(eventlabel);\n\t\t\n\t\tframe.setVisible(true);\n\t\tframe.setSize(467, 895);\n\t}", "private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel1.add(panel2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel2.add(buttonCancel, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n pan1 = new JPanel();\n pan1.setLayout(new GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(pan1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Название номера\");\n pan1.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Дата регистрации\");\n pan1.add(label2, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Дата истечения\");\n pan1.add(label3, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_VERTICAL, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n pan1.add(spacer2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(0, 25), new Dimension(0, 25), new Dimension(0, 25), 0, false));\n number = new JTextField();\n pan1.add(number, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n pan1.add(creationDatePanel, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n pan1.add(expirationDatePanel, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n }", "private void customize() {\r\n panel.setSize(new Dimension(width, height));\r\n panel.setLayout(new BorderLayout());\r\n }", "public ToolBarLayout()\n {\n this(LEFT, 5, 5);\n }", "private void $$$setupUI$$$() {\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel1.setBackground(new Color(-1184275));\n panel1.setForeground(new Color(-4473925));\n mainPanel.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setBackground(new Color(-12828863));\n Font label1Font = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 16, label1.getFont());\n if (label1Font != null) label1.setFont(label1Font);\n label1.setForeground(new Color(-12828863));\n label1.setText(\"Scheduler\");\n panel1.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 2, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n Font label2Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label2.getFont());\n if (label2Font != null) label2.setFont(label2Font);\n label2.setText(\"Select the Type of Scheduler \");\n panel1.add(label2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n dropDown = new JComboBox();\n Font dropDownFont = this.$$$getFont$$$(\"Georgia\", -1, 14, dropDown.getFont());\n if (dropDownFont != null) dropDown.setFont(dropDownFont);\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"Shortest Remaining Process Time\");\n defaultComboBoxModel1.addElement(\"Earliest Deadline First\");\n defaultComboBoxModel1.addElement(\"Deadline Monotonic\");\n dropDown.setModel(defaultComboBoxModel1);\n panel1.add(dropDown, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n Font label3Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label3.getFont());\n if (label3Font != null) label3.setFont(label3Font);\n label3.setText(\"Current Task\");\n panel1.add(label3, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n currentField = new JTextField();\n currentField.setBackground(new Color(-3873281));\n currentField.setEditable(false);\n Font currentFieldFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, currentField.getFont());\n if (currentFieldFont != null) currentField.setFont(currentFieldFont);\n panel1.add(currentField, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel2, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n Font label4Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label4.getFont());\n if (label4Font != null) label4.setFont(label4Font);\n label4.setText(\"Current Task Progress \");\n panel2.add(label4, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n progressBar1 = new JProgressBar();\n panel2.add(progressBar1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n taskList = new JList();\n taskList.setBackground(new Color(-5186305));\n Font taskListFont = this.$$$getFont$$$(\"Georgia\", -1, 14, taskList.getFont());\n if (taskListFont != null) taskList.setFont(taskListFont);\n final DefaultListModel defaultListModel1 = new DefaultListModel();\n taskList.setModel(defaultListModel1);\n taskList.setSelectionBackground(new Color(-13220097));\n taskList.setSelectionForeground(new Color(-1));\n taskList.setSelectionMode(0);\n panel2.add(taskList, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n tickButton = new JButton();\n Font tickButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, tickButton.getFont());\n if (tickButtonFont != null) tickButton.setFont(tickButtonFont);\n tickButton.setText(\"Tick\");\n panel2.add(tickButton, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n switchButton = new JButton();\n Font switchButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, switchButton.getFont());\n if (switchButtonFont != null) switchButton.setFont(switchButtonFont);\n switchButton.setText(\"Switch\");\n panel2.add(switchButton, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n delButton = new JButton();\n Font delButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, delButton.getFont());\n if (delButtonFont != null) delButton.setFont(delButtonFont);\n delButton.setText(\"Delete\");\n panel2.add(delButton, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(8, 2, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel3, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n Font label5Font = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, label5.getFont());\n if (label5Font != null) label5.setFont(label5Font);\n label5.setText(\"Add New Tasks\");\n panel3.add(label5, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n Font label6Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label6.getFont());\n if (label6Font != null) label6.setFont(label6Font);\n label6.setText(\"Task\");\n panel3.add(label6, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n taskName = new JTextField();\n Font taskNameFont = this.$$$getFont$$$(\"Georgia\", -1, 14, taskName.getFont());\n if (taskNameFont != null) taskName.setFont(taskNameFont);\n panel3.add(taskName, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label7 = new JLabel();\n Font label7Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label7.getFont());\n if (label7Font != null) label7.setFont(label7Font);\n label7.setText(\"Estimated Completion Time (hours) \");\n panel3.add(label7, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n RemTime = new JTextField();\n Font RemTimeFont = this.$$$getFont$$$(\"Georgia\", -1, 14, RemTime.getFont());\n if (RemTimeFont != null) RemTime.setFont(RemTimeFont);\n panel3.add(RemTime, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label8 = new JLabel();\n Font label8Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label8.getFont());\n if (label8Font != null) label8.setFont(label8Font);\n label8.setText(\"Time Till Task is Due (hours)\");\n panel3.add(label8, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n relDeadline = new JTextField();\n Font relDeadlineFont = this.$$$getFont$$$(\"Georgia\", -1, 14, relDeadline.getFont());\n if (relDeadlineFont != null) relDeadline.setFont(relDeadlineFont);\n panel3.add(relDeadline, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n saveNewButton = new JButton();\n Font saveNewButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, saveNewButton.getFont());\n if (saveNewButtonFont != null) saveNewButton.setFont(saveNewButtonFont);\n saveNewButton.setText(\"Save New\");\n panel3.add(saveNewButton, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n saveExistingButton = new JButton();\n Font saveExistingButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, saveExistingButton.getFont());\n if (saveExistingButtonFont != null) saveExistingButton.setFont(saveExistingButtonFont);\n saveExistingButton.setText(\"Save Existing\");\n panel3.add(saveExistingButton, new com.intellij.uiDesigner.core.GridConstraints(7, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n clearButton = new JButton();\n Font clearButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, clearButton.getFont());\n if (clearButtonFont != null) clearButton.setFont(clearButtonFont);\n clearButton.setText(\"Clear Form\");\n panel3.add(clearButton, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void setErrorUI() {\n err = new JLabel(\" \");\n err.setBorder(BorderFactory.createMatteBorder(0, 15, 0, 15, new Color(248, 248, 251)));\n err.setFont(new Font(\"Nunito\", Font.PLAIN, 12));\n err.setForeground(new Color(247, 37, 133));\n err.setAlignmentX(Component.CENTER_ALIGNMENT);\n }", "private void $$$setupUI$$$() {\n topPanel = new JPanel();\n topPanel.setLayout(new GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1));\n headerLabel = new JLabel();\n headerLabel.setText(\"Header\");\n topPanel.add(headerLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPanel = new JPanel();\n contentPanel.setLayout(new BorderLayout(0, 0));\n topPanel.add(contentPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n buttonBack = new JButton();\n buttonBack.setText(\"Back\");\n panel1.add(buttonBack, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonNext = new JButton();\n buttonNext.setText(\"Next\");\n panel1.add(buttonNext, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel1.add(buttonCancel, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n statusLabel = new JLabel();\n statusLabel.setText(\"Status\");\n panel2.add(statusLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void setContentPanelComponents(){\n\t\tcontentPanel = new JPanel();\n\t\tcontentPanel.setLayout(new BorderLayout());\n\t\tcontentPanel.setBackground(Constant.DIALOG_BOX_COLOR_BG);\n\t\tgetContentPane().add(contentPanel, BorderLayout.NORTH);\n\t\t\n\t\t//--------------------------\n\t\tJPanel payrollDatePanel= new JPanel();\n\t\tpayrollDatePanel.setLayout(new GridLayout(0,2,5,5));\n\t\tpayrollDatePanel.setPreferredSize(new Dimension(0,20));\n\t\tpayrollDatePanel.setOpaque(false);\n\t\t\n\t\tlblPayrollDate = new JLabel(\"Payroll Date: \");\n\t\tlblPayrollDate.setForeground(Color.WHITE);\n\t\tlblPayrollDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpayrollDatePanel.add(lblPayrollDate);\n\t\t\n\t\t\n\t\tpayrollDateComboBox = new JComboBox<String>();\n\t\tpayrollDatePanel.add(payrollDateComboBox);\n\t\n\t\t\n\t\tcontentPanel.add(payrollDatePanel,BorderLayout.NORTH);\n\t\t//--------------------------\n\t\t\n\t\n\t\tJPanel textAreaPanel= new JPanel();\n\t\ttextAreaPanel.setPreferredSize(new Dimension(0, 95));\n\t\ttextAreaPanel.setLayout(null);\n\t\ttextAreaPanel.setOpaque(false);\n\t\t\n\t\t\n\t\tcontentPanel.add(textAreaPanel,BorderLayout.CENTER);\n\t\t\n\t\tJLabel lblComments = new JLabel(\"Comments:\");\n\t\tlblComments.setForeground(Color.WHITE);\n\t\tlblComments.setBounds(10, 11, 75, 14);\n\t\ttextAreaPanel.add(lblComments);\n\t\t\n\t\tcommentTextArea = new JTextArea();\n\t\tcommentTextArea.setBounds(87, 14, 100, 75);\n\t\ttextAreaPanel.add(commentTextArea);\n\t}", "private void layoutControls()\n {\n getChildren().addAll(\n new Label(\"Abfahrt\"),\n departureTimeField,\n new Label(\"Bahnhof\"),\n destinationField\n );\n }", "@Override\n\tpublic void doLayout() {\n\t\tthis.transitionsPanel.setBounds(0, 0, this.getWidth(), this.getHeight());\n\t\t//this.timersButton.setBounds(this.getWidth()-2*50, 0, 50, 50);\n\t\t//this.countersButton.setBounds(this.getWidth()-50, 0, 50, 50);\n\t\t//this.salirButton.setBounds(this.getWidth()-40,0,40, 40);\n\t\tsuper.doLayout();\n\t}" ]
[ "0.64957404", "0.649132", "0.64834034", "0.6294394", "0.62584704", "0.6107777", "0.60382855", "0.60034287", "0.5978452", "0.59781486", "0.5933648", "0.5867234", "0.5866872", "0.5852404", "0.583612", "0.5818025", "0.58163744", "0.5801203", "0.5759831", "0.5752373", "0.57490855", "0.5710626", "0.5704147", "0.5672571", "0.56519413", "0.5650799", "0.56404275", "0.562911", "0.5617481", "0.5613306", "0.5611053", "0.56109875", "0.56052667", "0.56029886", "0.55903363", "0.554582", "0.5509853", "0.5501183", "0.5498491", "0.5484619", "0.5467431", "0.5463934", "0.54590917", "0.5458932", "0.54580754", "0.545067", "0.5444291", "0.54375744", "0.54373956", "0.54362035", "0.5429807", "0.5419121", "0.5414057", "0.538092", "0.53711855", "0.53456724", "0.5342797", "0.53408235", "0.5336406", "0.5328461", "0.532576", "0.53200406", "0.5319045", "0.5312119", "0.5311044", "0.530768", "0.5305919", "0.53035223", "0.5295765", "0.5292353", "0.528823", "0.52845275", "0.52807", "0.52802634", "0.5275558", "0.52615654", "0.5256483", "0.52544993", "0.52537227", "0.5251955", "0.5249791", "0.5248097", "0.52475184", "0.52460015", "0.5244665", "0.52437305", "0.5243694", "0.5235213", "0.52348655", "0.5234694", "0.5229689", "0.5228296", "0.5226538", "0.5223446", "0.521904", "0.52186424", "0.52113384", "0.52098167", "0.52086496", "0.520861" ]
0.6781361
0
Returns a closing action.
public static Action getCloseAction(AbstractMessage message) { return new AbstractAction() { @Override public void actionPerformed(ActionEvent actionEvent) { message.close(); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onCloseAction() {\n\n\t}", "CancelAction getCancelAction();", "public JButtonOperator btClose() {\n if (_btClose==null) {\n _btClose = new JButtonOperator(this, \"Close\"); // NOI18N\n }\n return _btClose;\n }", "private JButton createCloseButton() {\r\n\r\n\t\tJButton button = new JButton(BundleUtil.getString(BundleUtil.Command_Close));\r\n\t\tbutton.addActionListener(new ActionListener() {\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn button;\r\n\t}", "private void exitAction() {\n\t}", "MenuItem getMenuItemClose();", "void onClose();", "public Button getCloseButton() {\n\t\treturn closeButton;\n\t}", "public void handleActionClose() {\n\t\tsuper.handleActionClose();\n\t\tthis.getDocumentView().close();\n\t}", "public void onClose() {\n }", "@Override\n public Consumer<InventoryClickEvent> getCancelAction() {\n return event -> {\n event.setCancelled(true);\n\n this.getPlayer().closeInventory();\n };\n }", "public JButton getCloseProgram() {\n\t\treturn closeProgram;\n\t}", "protected abstract void onClose();", "public ItemActionExit() {\n }", "public String getEndAction() { return _endAction; }", "public Import onDestroy(Consumer<ReactionMenu> action) {\n closeEvents.add(action);\n return this;\n }", "private JButton closeButton() {\r\n\t\t\r\n\t\tJButton close = new JButton(\"Close\");\r\n\t\tclose.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tclose.setVerticalAlignment(SwingConstants.BOTTOM);\r\n\t\tclose.setFont(new Font(\"DejaVu Sans\", Font.PLAIN, 15));\r\n\t\tclose.setForeground(Color.WHITE);\r\n\t\tclose.setBackground(Color.GRAY);\r\n\t\tclose.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent click) {\r\n\t\t\t\t// close panel\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\treturn close;\r\n\t\t\r\n\t}", "void close_actionPerformed(ActionEvent e){\n\t System.exit(0);\n\t }", "abstract void onClose();", "public void close() {}", "public void exitActionMode() {\n if (isInActionMode()) {\n actionMode.finish();\n }\n }", "public ActionListener exitSelected() {\n return new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n System.exit(0);\n }\n };\n }", "protected abstract String endActionString();", "public Builder onDestroy(Consumer<ReactionMenu> action) {\n closeEvents.add(action);\n return this;\n }", "StopAction createStopAction();", "public void close() {\n // should i do something ?\n }", "public void close() {\n getCloseButton().click();\n }", "public void closed();", "public MethodExitRequest methodExit(Consumer<MethodExitEvent> action) {\n\t\tMethodExitRequest request = vm.eventRequestManager().createMethodExitRequest();\n\t\tmethodExits.add(action);\n\t\treturn request;\n\t}", "public ExitAction() {\n super(tr(\"Exit\"), \"exit\", tr(\"Exit the application.\"),\n Shortcut.registerShortcut(\"system:menuexit\", tr(\"Exit\"), KeyEvent.VK_Q, Shortcut.GROUP_MENU), true);\n putValue(\"help\", ht(\"/Action/Exit\"));\n }", "@Action\n public void Close() {\n // just close the Frame\n // This will cause setVisible() in the constructor to return\n setVisible(false);\n \n // show reminder to reference my paper\n String str = \"If you like this program, please cite:\\n\"\n + \"K. P. Pernstich\\n\"\n + \"Instrument Control (iC) – An Open-Source Software to Automate Test Equipment\\n\"\n + \"Journal of Research of the National Institute of Standards and Technology\\n\"\n + \"Volume 117 (2012) http://dx.doi.org/10.6028/jres.117.010\";\n \n JOptionPane.showMessageDialog(null, str,\n \"Humble request\", JOptionPane.INFORMATION_MESSAGE, m_iC_Properties.getLogoSmall());\n }", "public HasClickHandlers getCloseButton() {\n\t\treturn null;\r\n\t}", "private void onClose() {\n dispose();\n }", "public Chip onClose(Callback callback) {\n this.callback = callback;\n return this;\n }", "@Override\r\n\t\t\t\t\tpublic void onClose() {\n\t\t\t\t\t}", "@Override\r\n\tpublic void onClose() {\n\t}", "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();", "public void close(){\n \n }", "public Action getAction() {\n return action;\n }", "public void actionPerformed(ActionEvent e) {\r\n if(ACTION_CLOSE.equals(e.getActionCommand())) {\r\n setVisible(false);\r\n dispose();\r\n }\r\n }", "public final void close() throws RecognitionException {\r\n Token a=null;\r\n\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:197:7: ( (a= CLOSE ) )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:197:8: (a= CLOSE )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:197:8: (a= CLOSE )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:197:9: a= CLOSE\r\n {\r\n a=(Token)match(input,CLOSE,FOLLOW_CLOSE_in_close1200); \r\n out(\")\");\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public abstract void close();", "public abstract void close();", "public abstract void close();", "public abstract void close();", "public abstract void close();", "public void close()\n\n {\n}", "default void close() {\n }", "default void close() {\n }", "public void closeApp(ActionEvent actionEvent) {\n System.exit(0);\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tConnectionDB.connectionClose(myFrame, Crawler.CON);\n\t}", "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\tclose();\n\t\t\t}", "public void actionPerformed(ActionEvent evt) {\r \tperformAction(ACTION_CLOSE, evt);\r\t\tgetFrame().dispose();\r\t\tSystem.exit(0);\r\t}", "public void close() {\n\n }", "public void close()\r\n {\r\n }", "public int getAction() {\n return action;\n }", "public ExitCommand(Action action) {\n super(action, true);\n }", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "public void\n close();", "@Override\n public void endActionMode() {\n if (mActionMode != null) {\n mActionMode.finish();\n }\n }", "@Override\n public void afterActionPerformed(AnAction anAction, DataContext dataContext, AnActionEvent anActionEvent) {\n closeContentsCanceled = false;\n }", "void close(Order order);", "public String getAction() {\n\t\treturn action.get();\n\t}", "public void close() {\t\t\n\t}", "public long getAutoClose();", "public int getAction() {\n return action_;\n }", "ActionBlock createActionBlock();", "public Action getAction() {\n\treturn action;\n }", "public void exit(ActionEvent actionEvent) {\r\n //Closes hibernate and then the program.\r\n controller.exit();\r\n System.exit(0);\r\n }", "@NonNull\n public Action getAction() {\n return this.action;\n }", "public boolean getClose()\n\t{\n\t\treturn getBooleanIOValue(\"Close\", true);\n\t}", "public int getAction() {\n return action_;\n }", "public int getAction() {\n\t\treturn action;\n\t}", "public void close() {\n\n\t}", "public void close() {\n\n\t}", "public String getAction() {\n return action;\n }", "Action createAction();", "Action createAction();", "Action createAction();", "@Override\n\t\tpublic void actionPerformed(final ActionEvent e) {\n\t\t\ttry {\n//\t\t\t\tJMenuItem itm = (JMenuItem)e.getSource();\n\t\t\t} catch (Exception e2) {\n\t\t\t\tSystem.out.println(\"Button error\");\n\t\t\t} finally {\n//\t\t\t\tSystem.out.println(e.);\n\t\t\t\tSystem.out.println(e.getSource());\n\t\t\t\tif (e.getActionCommand().compareTo(\"Close\") == 0) {\n\t\t\t\t\tSystem.out.println(\"Close operation\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void close() {\r\n\t}" ]
[ "0.68388486", "0.6192441", "0.6104223", "0.6023181", "0.6015623", "0.59704536", "0.5961634", "0.5959496", "0.59420145", "0.5935243", "0.5906872", "0.58040404", "0.5783911", "0.5739256", "0.5736996", "0.5717957", "0.57017624", "0.56849605", "0.56731176", "0.5672739", "0.5671314", "0.56309897", "0.5629314", "0.5628975", "0.5619966", "0.561249", "0.559787", "0.5592462", "0.5584084", "0.5565829", "0.5565752", "0.5561751", "0.55473477", "0.5544697", "0.5516943", "0.55068207", "0.55027777", "0.55027777", "0.55027777", "0.55027777", "0.55027777", "0.55027777", "0.55027777", "0.55027777", "0.55027777", "0.55027777", "0.55027777", "0.55027777", "0.55027777", "0.55027777", "0.55027777", "0.5498618", "0.5474867", "0.54721403", "0.54578805", "0.54385173", "0.54385173", "0.54385173", "0.54385173", "0.54385173", "0.54319596", "0.5422819", "0.5422819", "0.54167813", "0.5409817", "0.5409563", "0.54091716", "0.5396868", "0.5393167", "0.5387769", "0.5384562", "0.53758234", "0.53758234", "0.53758234", "0.5368386", "0.5368386", "0.5368386", "0.5364017", "0.5362057", "0.5361738", "0.5361578", "0.5359165", "0.53524286", "0.5341595", "0.5338525", "0.53361595", "0.5329629", "0.53270715", "0.5325513", "0.53232324", "0.53203773", "0.5320117", "0.5317125", "0.5317125", "0.530417", "0.52946764", "0.52946764", "0.52946764", "0.5292496", "0.5289841" ]
0.665759
1
Initialises and shows the Message GUI JFrame
public void createAndShowGUI() { setTitle(title); // Sets what to do when frame closes setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); setIconImage(new ImageIcon(ClassLoader.getSystemResource(ICON_PATH)).getImage()); //shows the frame pack(); setLocationRelativeTo(null); //centers frame setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showMessage(){\r\n if(message == null) return;\r\n JOptionPane.showMessageDialog(new JFrame(), message);\r\n }", "public MainWindow() {\n initComponents();\n display.setText(starting_message);\n }", "private void initialize() {\n\t\tFrame = new JFrame();\n\t\tFrame.setTitle(\"Chatter Box\");\n\t\tFrame.setBounds(100, 100, 550, 290);\n\t\tFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tFrame.getContentPane().setLayout(new BorderLayout(0, 0));\n\t\t\n\t\t\n\t\ttextArea.setEditable(false);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane(textArea);\n\t\tFrame.getContentPane().add(scrollPane);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBackground(Color.GRAY);\n\t\tFrame.getContentPane().add(panel, BorderLayout.SOUTH);\n\t\tpanel.setLayout(new FlowLayout(FlowLayout.CENTER,5,5));\n\t\t\n\t\tmessageField = new JTextField();\n\t\tpanel.add(messageField);\n\t\tmessageField.setColumns(30);\n\t\t\n\t\tJButton btnSend = new JButton(\"Send\");\n\t\t\n\t\tbtnSend.addActionListener(e -> {\n\t\t\tif (!messageField.getText().equals(\"\")) {\n\t\t\t\tclient.send(messageField.getText());\n\t\t\t\tmessageField.setText(\"\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tpanel.add(btnSend);\n\t\t\n\t\t\n\t\tFrame.setLocationRelativeTo(null);\n\t\t\n\t}", "private void popUpMessage(String message){\n\t\tJFrame frame = new JFrame();\n\t\tJLabel mText = new JLabel(message);\n\t\t\n\t\tframe.add(mText);\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.pack();\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t\t\n\t}", "@Override\n\t\tpublic void addMessage() {\n\t\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t //Setting visible to false in order to show only the JPtioinPane, not the Frame\n\t this.setVisible(false);\n\t this.setSize(300,300);\n\t \n\t JOptionPane.showMessageDialog(this, \"Operation made successfully!\");\n\t \n\t this.validate();\n\t this.repaint();\n\t\t}", "private void setupMessagePanel() {\n\t\tJPanel messagePanel = new JPanel();\n\t\tthis.message = new JTextArea();\n\t\tthis.message.setText(\"Registration Phase Completed. \\n\\nClick on the Log Off button below to \\nreturn to the main menu\");\n\t\tthis.message.setEditable(false);\n\t\tthis.message.setColumns(20);\n\t\tthis.message.setLineWrap(true);\n\t\tmessagePanel.add(message);\n\t\tthis.add(messagePanel, BorderLayout.CENTER);\n\t}", "public ChatFrame() {\n initComponents();\n }", "public FinestraMessaggio(String msg) {\r\n\t\tsuper();\r\n\t\tsetLayout(new GridLayout(2,1));\r\n\t\tadd(new JLabel(msg));\r\n\t\t\r\n\t\tJPanel pannello = new JPanel();\r\n\t\tJButton bottoneOk = new JButton(\"Ok\");\r\n\t\tbottoneOk.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdispose();\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tpannello.add(bottoneOk);\r\n\t\tadd(pannello);\r\n\t\tsetVisible(true);\r\n\t\tthis.setSize(LUNG, ALT);\r\n\t\tsetAlwaysOnTop(true);\r\n\t}", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void setupMessage() {\n \tmessage = new GLabel(\"\");\n \tmessage.setFont(\"SansSerif-12\");\n }", "public MessagePanel() {\n initComponents();\n HTMLEditorKit editKit = new HTMLEditorKit();\n msgEP.setEditorKit((EditorKit)editKit);\n }", "static void showSuccessMessage(String message) {\n\t JFrame frame =new JFrame(); \n\t JOptionPane.showMessageDialog(frame ,message); \n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJPanel chatInfoSec = new JPanel();\n\t\tchatInfoSec.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, new Color(0, 0, 0), null),\n\t\t\t\t\"CHAT INFO \", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\tchatInfoSec.setBounds(20, 23, 347, 100);\n\t\tframe.getContentPane().add(chatInfoSec);\n\t\tchatInfoSec.setLayout(null);\n\n\t\tJLabel ipLabel = new JLabel(\"IP\");\n\t\tipLabel.setFont(new Font(\"굴림\", Font.BOLD, 12));\n\t\tipLabel.setBounds(39, 30, 32, 15);\n\t\tchatInfoSec.add(ipLabel);\n\n\t\tipText = new JTextField();\n\t\tipText.setBounds(114, 26, 179, 21);\n\t\tipText.setBorder(null);\n\t\tchatInfoSec.add(ipText);\n\n\t\tJLabel portLabel = new JLabel(\"Port\");\n\t\tportLabel.setFont(new Font(\"굴림\", Font.BOLD, 12));\n\t\tportLabel.setBounds(39, 65, 32, 15);\n\t\tchatInfoSec.add(portLabel);\n\n\t\tportText = new JTextField();\n\t\tportText.setBounds(114, 61, 179, 21);\n\t\tportText.setBorder(null);\n\t\tchatInfoSec.add(portText);\n\n\t\tRoundedButton1 inBtn = new RoundedButton1(\"IN\");\n\t\tinBtn.setBounds(398, 30, 75, 90);\n\t\tRoundedButton1 outBtn = new RoundedButton1(\"OUT\");\n\t\toutBtn.setBounds(505, 30, 75, 90);\n\t\tframe.getContentPane().add(inBtn);\n\t\tframe.getContentPane().add(outBtn);\n\n\t\tinBtn.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tClientThread clientThread = new ClientThread();\n\t\t\t\tclientThread.setDaemon(true);\n\t\t\t\tclientThread.start();\n\t\t\t}\n\t\t});\n\t\toutBtn.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry {\n\t\t\t\t\tif(socket != null) {\n\t\t\t\t\t\tsocket.close();\n\t\t\t\t\t}else {\n\t\t\t\t\t\tchatSec.append(\"채팅방에 접속을 하지 않았습니다\\n\");\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tJPanel mySec = new JPanel();\n\t\tmySec.setLayout(null);\n\t\tmySec.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, new Color(0, 0, 0), null), \" MY \",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\tmySec.setBounds(20, 133, 563, 100);\n\t\tframe.getContentPane().add(mySec);\n\n\t\tJLabel myIpLabel = new JLabel(\"IP\");\n\t\tmyIpLabel.setFont(new Font(\"굴림\", Font.BOLD, 12));\n\t\tmyIpLabel.setBounds(39, 30, 32, 15);\n\t\tmySec.add(myIpLabel);\n\n\t\tJTextField myIpText = new JTextField();\n\t\tmyIpText.setBackground(UIManager.getColor(\"Button.background\"));\n\t\tmyIpText.setEditable(false);\n\t\tmyIpText.setBounds(114, 26, 437, 21);\n\t\tmyIpText.setBorder(new LineBorder(Color.LIGHT_GRAY));\n\t\tmyIpText.setText(common.myIp());\n\t\tmySec.add(myIpText);\n\n\t\tJLabel nameLabel = new JLabel(\"Name\");\n\t\tnameLabel.setFont(new Font(\"굴림\", Font.BOLD, 12));\n\t\tnameLabel.setBounds(39, 65, 47, 15);\n\t\tmySec.add(nameLabel);\n\n\t\tnameText = new JTextField();\n\t\tnameText.setBounds(114, 61, 323, 21);\n\t\tnameText.setBorder(null);\n\t\tnameText.setText(myName);\n\t\tmySec.add(nameText);\n\n\t\tRoundedButton2 changeBtn = new RoundedButton2(\"CHANGE\");\n\t\tchangeBtn.setBounds(463, 60, 88, 23);\n\t\tmySec.add(changeBtn);\n\t\tchangeBtn.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangeName(myName);\n\t\t\t}\n\t\t});\n\n\t\tchatSec = new JTextArea();\n\t\tchatSec.setEditable(false);\n\t\tJScrollPane scrollPane = new JScrollPane(chatSec);\n\t\tscrollPane.setBounds(22, 255, 560, 235);\n\t\tframe.getContentPane().add(scrollPane);\n\n\t\tchatText = new JTextField();\n\t\tchatText.setBounds(22, 500, 458, 21);\n\t\tchatText.setBorder(null);\n\t\tchatText.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tsuper.keyPressed(e);\n\n\t\t\t\t// 입력받은 키가 엔터인지\n\t\t\t\tint keyCode = e.getKeyCode();\n\t\t\t\tswitch (keyCode) {\t\n\t\t\t\t\tcase KeyEvent.VK_ENTER:\n\t\t\t\t\t\tsendMessage();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(chatText);\n\n\t\twindowbuilder.RoundedButton2 sendBtn = new windowbuilder.RoundedButton2(\"SEND\");\n\t\tsendBtn.setBounds(492, 499, 88, 23);\n\t\tframe.getContentPane().add(sendBtn);\n\t\tsendBtn.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsendMessage();\n\t\t\t}\n\t\t});\n\n\t\tframe.setTitle(\"\\uCC44\\uD305\\uCC38\\uC5EC\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setBackground(Color.WHITE);\n\t\tframe.setBounds(720, 120, 609, 573);\n\t}", "public void display() {\n Stage messageStage = new Stage();\n messageStage.initModality(Modality.APPLICATION_MODAL);\n messageStage.setTitle(title);\n messageStage.setMinWidth(350);\n messageStage.setMinHeight(200);\n\n Label messageLabel = new Label();\n messageLabel.setText(message);\n Button closeButton = new Button(\"OK\");\n closeButton.setOnAction(e -> messageStage.close());\n\n VBox vBox = new VBox(10);\n vBox.getChildren().addAll(messageLabel, closeButton);\n vBox.setAlignment(Pos.CENTER);\n\n Scene scene = new Scene(vBox);\n messageStage.setScene(scene);\n messageStage.showAndWait();\n }", "private void initGUI() {\n\t JPanel optionsPane = initOptionsPane();\n\n\t // Set up the chat pane\n\t JPanel chatPane = new JPanel(new BorderLayout());\n\t chatText = new JTextPane();\n\t chatText.setEditable(false);\n\t chatText.setBorder(BorderFactory.createLineBorder(Color.DARK_GRAY));\n\t chatText.setMargin(new Insets(5, 5, 5, 5));\n\t JScrollPane jsp = new JScrollPane(chatText);\n\t \n\t chatLine = new JTextField();\n\t chatLine.setEnabled(false);\n\t chatLine.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t String s = chatLine.getText();\n\t chatLine.setText(\"\");\n\t MessageColor c = (MessageColor)colorCombo.getSelectedItem();\n\t support.firePropertyChange(\"UI\", \"message\", new Message(username, MessageType.MESSAGE, c, s));\n\t }\n\t });\n\t chatPane.add(chatLine, BorderLayout.SOUTH);\n\t chatPane.add(jsp, BorderLayout.CENTER);\n\n\t colorCombo = new JComboBox<MessageColor>(MessageColor.values());\n\t chatPane.add(colorCombo, BorderLayout.NORTH);\n\t \n\t chatPane.setPreferredSize(new Dimension(500, 200));\n\n\t // Set up the main pane\n\t JPanel mainPane = new JPanel(new BorderLayout());\n\t mainPane.add(optionsPane, BorderLayout.WEST);\n\t mainPane.add(chatPane, BorderLayout.CENTER);\n\n\t // Set up the main frame\n\t mainFrame = new JFrame(\"SPL Chat\");\n\t mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t mainFrame.setContentPane(mainPane);\n\t mainFrame.setSize(mainFrame.getPreferredSize());\n\t mainFrame.setLocation(200, 200);\n\t mainFrame.pack();\n\t mainFrame.setVisible(true);\n\t }", "private void initialize() {\n\t\tfrmMireilleBetancourt = new JFrame();\n\t\tfrmMireilleBetancourt.setFont(new Font(\"Verdana\", Font.ITALIC, 15));\n\t\tfrmMireilleBetancourt.setTitle(\"Mireille Betancourt\");\n\t\tfrmMireilleBetancourt.setBounds(100, 100, 450, 300);\n\t\tfrmMireilleBetancourt.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\ttextMensaje = new JTextField();\n\t\ttextMensaje.setForeground(Color.BLACK);\n\t\ttextMensaje.setBackground(Color.WHITE);\n\t\ttextMensaje.setFont(new Font(\"Verdana\", Font.PLAIN, 13));\n\t\ttextMensaje.setToolTipText(\"Escriba el mensaje al sevidor\\r\\n\");\n\t\tfrmMireilleBetancourt.getContentPane().add(textMensaje, BorderLayout.NORTH);\n\t\ttextMensaje.setColumns(10);\n\t\t\n\t\tbtnEnviar = new JButton(\"Enviar\");\n\t\tbtnEnviar.setBackground(Color.WHITE);\n\t\tbtnEnviar.setForeground(Color.BLACK);\n\t\tbtnEnviar.setFont(new Font(\"Verdana\", Font.PLAIN, 13));\n\t\t\n\t\tbtnEnviar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString mensaje = textMensaje.getText();\n\t\t\t\tSystem.out.println(\"Mensaje para el servidor \" + mensaje);\n\t\t\t\t\n\t\t\t\tString respuesta = echoClient.sendMessage(mensaje);\n\t\t\t\tSystem.out.println(\"Respuesta : \" + respuesta);\n\t\t\t\tString historialRespuesta = agregarTextoRespuesta(respuesta);\n\t\t\t\ttextRespuesta.setText(historialRespuesta);\n\t\t\t\t\n\t\t\t\tif(respuesta.equals(\"good bye\")) {\n\t\t\t\t\tSystem.out.println(\"Conecion finalizada\");\n\t\t\t\t\ttextRespuesta.setText(\"Coneción finalizada..... \\n \" \n\t\t\t\t\t\t\t+ \"Reinicie el programa\");\n\t\t\t\t\techoClient.stopConnection();\n\t\t\t\t\tbtnEnviar.setEnabled(false);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tfrmMireilleBetancourt.getContentPane().add(btnEnviar, BorderLayout.EAST);\n\t\t\n\t\tJTextPane textPane = new JTextPane();\n\t\ttextPane.setForeground(Color.BLACK);\n\t\ttextPane.setFont(new Font(\"Verdana\", Font.PLAIN, 13));\n\t\ttextPane.setBackground(Color.WHITE);\n\t\tfrmMireilleBetancourt.getContentPane().add(textPane, BorderLayout.CENTER);\n\t}", "private void setUpGui(){\n window = new JFrame(\"Error\");\n window.add(new JPanel().add(new JLabel(\"<html><div \" +\n \"style=\\\"margin:10px\\\"><h1 style=\\\"color:red; \" +\n \"text-align:center\\\">An error occurred!</h1> <p \" +\n \"style=\\\"font-size:18\\\">press \" +\n \"Error message to view the message or press default to use \" +\n \"the games default maps</p></div></html>\")));\n JPanel bottom = new JPanel();\n bottom.add(defaultMap(),BorderLayout.SOUTH);\n bottom.add(messageButton(), BorderLayout.SOUTH);\n bottom.add(quit(),BorderLayout.SOUTH);\n window.add(bottom,BorderLayout.SOUTH);\n }", "private static void createAndShowGUI() {\n\n frame = new JFrame(messages.getString(\"towers.of.hanoi\"));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n addComponentsToPane(frame.getContentPane());\n frame.pack();\n frame.setSize(800, 600);\n frame.setVisible(true);\n }", "public FrmMain() {\n initComponents();\n setLocationRelativeTo(this);\n setExtendedState(JFrame.MAXIMIZED_BOTH);\n try {\n Communication.getInstance();\n lblKonekcija.setText(\"Uspesno ste povezani na server!\");\n } catch (Exception ex) {\n ex.printStackTrace();\n lblKonekcija.setText(\"Niste povezani na server. Doslo je do greske. \"+ex.getMessage());\n }\n }", "public void init() {\r\n window = new Frame(title);\r\n window.setLayout(new BorderLayout());\r\n chat = new TextArea();\r\n chat.setEditable(false);\r\n chat.setFont(new Font(police, Font.PLAIN, size));\r\n message = \"Chat room opened !\";\r\n window.add(BorderLayout.NORTH, chat);\r\n pan.add(logInButton = new Button(\"Enter\"));\r\n logInButton.setEnabled(true);\r\n logInButton.requestFocus();\r\n logInButton.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n login();\r\n logInButton.setEnabled(false);\r\n logOutButton.setEnabled(true);\r\n myText.requestFocus();\r\n }\r\n });\r\n pan.add(logOutButton = new Button(\"Exit\"));\r\n logOutButton.setEnabled(false);\r\n logOutButton.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n logout();\r\n logInButton.setEnabled(true);\r\n logOutButton.setEnabled(false);\r\n logInButton.requestFocus();\r\n }\r\n });\r\n pan.add(new Label(\"Your message:\"));\r\n myText = new TextField(myTextDimension);\r\n myText.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n if (connected) {\r\n writer.println(myText.getText());\r\n myText.setText(\"\");\r\n }\r\n }\r\n });\r\n pan.add(myText);\r\n window.add(BorderLayout.SOUTH, pan);\r\n window.addWindowListener(new WindowAdapter() {\r\n public void windowClosing(WindowEvent e) {\r\n ForumClient.this.window.setVisible(false);\r\n ForumClient.this.window.dispose();\r\n logout();\r\n }\r\n });\r\n window.pack();\t\t\t\t\t\t\t\t\t// Causes window to be sized to fit\r\n // the preferred size and layouts of its subcomponents\r\n\r\n // Let's place the chatting framework at the center of the screen\r\n screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n frameSize = window.getSize();\r\n int X = (screenSize.width - frameSize.width) / 2;\r\n int Y = (screenSize.height - frameSize.height) / 2;\r\n window.setLocation(X, Y);\r\n\r\n window.setVisible(true);\r\n repaint();\r\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"FEEx v. \"+VERSION);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n Main p = new Main();\n p.addComponentToPane(frame.getContentPane());\n\n frame.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n \tstopPolling();\n \tstopMPP();\n p.port.close();\n Utils.storeSizeAndPosition(frame);\n }\n });\n \n //Display the window.\n frame.pack();\n Utils.restoreSizeAndPosition(frame);\n frame.setVisible(true);\n }", "private SimpleChatUI() {\n initComponents();\n convo = null;\n setConnStatus(false);\n jMessageEntry.addActionListener(new java.awt.event.ActionListener() {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jSendButtonActionPerformed(evt);\n }\n });\n }", "private void displayMessage(String str) {\r\n JFrame window = new JFrame(\"Message\");\r\n window.setPreferredSize(new Dimension(1000, 500));\r\n window.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n window.setLayout(new BorderLayout(5, 5));\r\n\r\n JLabel msg = new JLabel(\"<html>\" + str + \"</html>\", SwingConstants.CENTER);\r\n msg.setPreferredSize(new Dimension(750, 250));\r\n msg.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n window.add(msg, BorderLayout.CENTER);\r\n window.pack();\r\n window.setVisible(true);\r\n window.setLocationRelativeTo(null);\r\n }", "private void showMessage(String msg)\n\t{\n\t\tJOptionPane.showMessageDialog(frame,\n\t\t\t\tmsg,\n\t\t\t\t\"\",\n\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t}", "private void displayMessage(String message){\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n windowForCommunication.append(message);\n }\n });\n }", "public void run(){\n\t\t\t\tsetIconImage(new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB));\n\t\t\t\tsetTitle(msg);\n\t\t\t\t\n\t\t\t\t//createGUI\n\t\t\t\tloadBar = new JProgressBar();\n\t\t\t\tadd(BorderLayout.CENTER, loadBar);\n\t\t\t\tmessageLabel.setText(msg + \"...\");\n\t\t\t\tadd(BorderLayout.NORTH, messageLabel);\n\t\t\t\tsetDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\t\t\tsetSize(300, 75);\n\t\t\t\tsetPreferredSize(getSize());\n\t\t\t\tsetPercentage(0);\n\t\t\t\tsetResizable(false);\n\t\t\t\tsetLocationRelativeTo(null);\n\t\t\t\tsetVisible(true);\n\t\t\t}", "public GUI() {\n initComponents();\n this.setVisible(true);\n }", "private void createGUI() {\r\n\t\t// Create the frame for client window.\r\n\t\tJFrame frame = new JFrame(\"Client\");\r\n\t\t/*\r\n\t\t * Set the layout as null as using setbounds to set complonents set size\r\n\t\t * and close the frame when clicked on exit\r\n\t\t */\r\n\t\tframe.setLayout(null);\r\n\t\t// exit chat rrom system if clicks on close icon\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tJLabel userlabel = new JLabel(\"Enter Username\");// label for username\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// input\r\n\t\tJLabel inputlabel = new JLabel(\"Enter Message\");// label for message\r\n\t\t/*\r\n\t\t * Create the buttons Send button to send messegs connect to connect to\r\n\t\t * chat room disconnect to logout from the chat room\r\n\t\t */\r\n\t\tJButton send = new JButton(\"Send\");\r\n\t\tJButton connect = new JButton(\"Connect\");\r\n\t\tJButton disconnect = new JButton(\"Disconnect\");\r\n\t\t// usertext is to input username from user and inputfield is to input\r\n\t\t// messages\r\n\t\tJTextField usertext = new JTextField();\r\n\t\t// set textfield as editable\r\n\t\tusertext.setEditable(true);\r\n\t\tJTextField inputfield = new JTextField();\r\n\t\t// set textfield as editable\r\n\t\tinputfield.setEditable(true);\r\n\t\tuserlabel.setBounds(10, 40, 100, 20);\r\n\t\tusertext.setBounds(120, 40, 120, 30);\r\n\t\tinputlabel.setBounds(10, 70, 150, 20);\r\n\t\tinputfield.setBounds(120, 70, 120, 30);\r\n\t\ttextarea.setBounds(10, 110, 500, 300);\r\n\t\t// https://www.youtube.com/watch?v=Uo5DY546rKY\r\n\t\tsend.setBounds(10, 430, 150, 30);\r\n\t\tconnect.setBounds(180, 430, 150, 30);\r\n\t\tdisconnect.setBounds(350, 430, 150, 30);\r\n\t\t// provide scrolling capability to textarea\r\n\t\tJScrollPane scrollPane = new JScrollPane(textarea);\r\n\t\t// set textarea as not editable\r\n\t\ttextarea.setEditable(false);\r\n\t\t// Create textfield to write message\r\n\t\t// http://cs.lmu.edu/~ray/notes/javanetexamples/\r\n\t\t// exit on close\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// put created components in the frame.\r\n\t\tframe.add(userlabel);// add userlabel to the frame\r\n\t\tframe.add(usertext);// add usertext to the frame\r\n\t\tframe.add(inputlabel);// add inputlabel to the frame\r\n\t\tframe.add(inputfield);// add inputfield to the frame\r\n\t\tframe.add(textarea);// add textarea to the frame\r\n\t\tscrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\tframe.add(send);// add send button to the frame\r\n\t\tframe.add(connect);// add connect button to the frame\r\n\t\tframe.add(disconnect);// add disconnect button to the frame\r\n\t\t/*\r\n\t\t * add listeners set action to start button\r\n\t\t * https://docs.oracle.com/javase/tutorial/uiswing/components/button.\r\n\t\t * html#abstractbutton When user clicks on send button after adding\r\n\t\t * message then client converts that message to HTTP format\r\n\t\t */\r\n\t\tsend.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent action) {\r\n\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * user-agent displays name of the browsers,this list shows\r\n\t\t\t\t\t * this application is independent of a browser. display the\r\n\t\t\t\t\t * host name in this case host is \"localhost\"\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString useragent = \" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36\";\r\n\t\t\t\t\tString host = \" Host:\" + socket.getInetAddress().getHostName();// get\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// host\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// name\r\n\r\n\t\t\t\t\t/* get length of the original messsage */\r\n\t\t\t\t\tString ContentLength = \" Content-length:\" + inputfield.getText().length();\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * htm as this is simple chat room system,independent of the\r\n\t\t\t\t\t * browser the content type is text/plain\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString contentType = \" Conent-Type:text/plain\";\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * To print current date in the HTTP date format explicitly\r\n\t\t\t\t\t * adding the time zone to the formatter\r\n\t\t\t\t\t */\r\n\t\t\t\t\tInstant i = Instant.now();\r\n\t\t\t\t\tString dateFormatted = DateTimeFormatter.RFC_1123_DATE_TIME.withZone(ZoneOffset.UTC).format(i);\r\n\t\t\t\t\tString currentDate = \"Date:\" + dateFormatted;\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * To get time difference between to messages and converting\r\n\t\t\t\t\t * it to the string format\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString time2 = dispTime.format(System.currentTimeMillis());\r\n\t\t\t\t\tdate2 = dispTime.parse(time2);\r\n\t\t\t\t\t// get difference between previous message and recent\r\n\t\t\t\t\t// message\r\n\t\t\t\t\tdifference = date2.getTime() - date1.getTime();\r\n\t\t\t\t\tint min = (int) ((difference / (1000 * 60)) % 60);// calculate\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// minute\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// difference\r\n\t\t\t\t\tint sec = (int) ((difference / 1000) % 60);//// calculate\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//// seconds\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//// difference\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * the format of the time is two digit numbers so concevert\r\n\t\t\t\t\t * minutes and seconds to 2 digits\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString m = String.format(\"%02d\", min);\r\n\t\t\t\t\tString s = String.format(\"%02d\", sec);\r\n\t\t\t\t\tString time = \"(\" + m + \".\" + s + \") - \";\r\n\t\t\t\t\t// minutes and seconds\r\n\t\t\t\t\tdate1 = date2;\r\n\t\t\t\t\t// append useragent,host,ContentLength,contentType to a\r\n\t\t\t\t\tString httpmsg = useragent + host + ContentLength + contentType + currentDate;\r\n\t\t\t\t\t// append timedifference to the username\r\n\t\t\t\t\tString timetrack = username + time;\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * append all the strings\r\n\t\t\t\t\t * useragent,host,ContentLength,contentType, timedifference\r\n\t\t\t\t\t * to the username for HTTP format in the main message\r\n\t\t\t\t\t * entered server reads this whole message\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString wholeMsg = \"POST:\" + timetrack + \":\" + inputfield.getText() + \":\" + httpmsg + \":Chat\";\r\n\t\t\t\t\tout.println(wholeMsg);// send whole message in HTTP format\r\n\t\t\t\t\t\t\t\t\t\t\t// to output stream\r\n\t\t\t\t\tout.flush(); // flushes the buffer\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t/*\r\n\t\t\t\t * After sending message to output stream clear the textfield\r\n\t\t\t\t * and set focus to inputfield to take messages input\r\n\t\t\t\t */\r\n\t\t\t\tinputfield.setText(\"\");\r\n\t\t\t\tinputfield.requestFocus();\r\n\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t\t/*\r\n\t\t * add listner to connect button after entering username if user clicks\r\n\t\t * on connect button then it checks if the username is valid(ie.only\r\n\t\t * charachters) then its creates a new thread with setting username in\r\n\t\t * title\r\n\t\t */\r\n\t\tconnect.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent action) {\r\n\t\t\t\tif (isConnected == false) {\r\n\t\t\t\t\t// take username\r\n\t\t\t\t\tusername = usertext.getText();\r\n\r\n\t\t\t\t\t// check if the user name is valid that is contains only\r\n\t\t\t\t\t// letters\r\n\t\t\t\t\tif (username.matches(\"[a-zA-Z]*\")) {\r\n\t\t\t\t\t\tusertext.setEditable(false);\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t// server is at localhost and port 7879 so use same\r\n\t\t\t\t\t\t\t// port number here\r\n\t\t\t\t\t\t\tsocket = new Socket(\"localhost\", 7879);\r\n\t\t\t\t\t\t\t// create inputstream and outputstream\r\n\t\t\t\t\t\t\tInputStreamReader streamreader = new InputStreamReader(socket.getInputStream());\r\n\t\t\t\t\t\t\tin = new BufferedReader(streamreader);\r\n\t\t\t\t\t\t\tout = new PrintWriter(socket.getOutputStream());\r\n\t\t\t\t\t\t\tout.println(\"POST:\" + username + \":(00.00) has connected.:Connect\");\r\n\t\t\t\t\t\t\tout.flush();\r\n\t\t\t\t\t\t\tisConnected = true; // connection is established so\r\n\t\t\t\t\t\t\t\t\t\t\t\t// this value is true\r\n\t\t\t\t\t\t\tconnect.setEnabled(false);// disable the connect\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// button\r\n\t\t\t\t\t\t\tframe.setTitle(\"Thread \" + username);\r\n\t\t\t\t\t\t} // try\r\n\t\t\t\t\t\tcatch (Exception e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// create and start a new thread\r\n\t\t\t\t\t\tThread thread = new Thread(new ListenServer());\r\n\t\t\t\t\t\tthread.start();\r\n\t\t\t\t\t} // if\r\n\t\t\t\t\t\t// if user enters invalid username then give message to\r\n\t\t\t\t\t\t// enter valid user name\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\ttextarea.append(\"Username is not valid.\");\r\n\t\t\t\t\t\ttextarea.append(\"\\nPlease enter only Charachters.\");\r\n\t\t\t\t\t\ttextarea.append(\"\");\r\n\r\n\t\t\t\t\t} // else\r\n\r\n\t\t\t\t} // if\r\n\t\t\t}\r\n\t\t});\r\n\t\t/*\r\n\t\t * add listner to disconnect button this button logs off the user from\r\n\t\t * chat room\r\n\t\t */\r\n\t\tdisconnect.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent action) {\r\n\t\t\t\tString dc = (\"POST:\" + username + \": has disconnected.:Disconnect\");\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * set output stream disable disconnect and send buttons\r\n\t\t\t\t\t */\r\n\t\t\t\t\tout.println(dc);\r\n\t\t\t\t\tout.flush();\r\n\t\t\t\t\tdisconnect.setEnabled(false);\r\n\t\t\t\t\tsend.setEnabled(false);\r\n\t\t\t\t\t// socket.close();\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tisConnected = false;\r\n\t\t\t}\r\n\t\t});\r\n\t\t// setting frame as visible\r\n\t\tframe.setVisible(true);\r\n\t\tframe.setSize(520, 500);\r\n\t\tframe.setResizable(false);\r\n\r\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 854, 527);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tlblOutput = new JLabel(\"안녕하세요...\");\r\n\t\tlblOutput.setFont(new Font(\"굴림\", Font.BOLD | Font.ITALIC, 48));\r\n\t\tlblOutput.setBounds(12, 10, 814, 100);\r\n\t\tframe.getContentPane().add(lblOutput);\r\n\t\t\r\n\t\ttextInput = new JTextField();\r\n\t\ttextInput.setFont(new Font(\"굴림\", Font.PLAIN, 48));\r\n\t\ttextInput.setBounds(12, 120, 814, 100);\r\n\t\tframe.getContentPane().add(textInput);\r\n\t\ttextInput.setColumns(10);\r\n\t\t\r\n\t\tJButton btnInput = new JButton(\"입력\");\r\n\t\tbtnInput.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t// 버튼을 클릭했을 때 해야 할 기능 구현\r\n\t\t\t\t// JTextField에 입력된 내용을 읽어서 JLabel에 씀\r\n\t\t\t\tString msg = textInput.getText();\r\n\t\t\t\tlblOutput.setText(msg);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnInput.setFont(new Font(\"굴림\", Font.PLAIN, 48));\r\n\t\tbtnInput.setBounds(12, 230, 814, 100);\r\n\t\tframe.getContentPane().add(btnInput);\r\n\t}", "private void createMessageWindow() {\n\t\tmessageBG = Icon.createImageIcon(\"/images/UI/messageWindow.png\");\n\t\tmessageWindow = new JLabel(messageBG);\n\t\t\n\t\tmessageWindow = new JLabel(\"\");\n\t\tmessageWindow.setFont(new Font(\"Courier\", Font.PLAIN, 20));\n\t\tmessageWindow.setIcon(messageBG);\n\t\tmessageWindow.setIconTextGap(-messageBG.getIconWidth()+10);\n\t\tmessageWindow.setHorizontalTextPosition(0);\n\t\tmessageWindow.setOpaque(false);\n\t\t\t\t\n\t\tmessagePanel.add(messageWindow, BorderLayout.CENTER);\n\t\tmessagePanel.setOpaque(false);\n\t}", "public void launchFrame() {\n\t\tf.getContentPane().add(sbrText);\n\t\tf.getContentPane().add(btnQuit);\n\n\t\t// Close when the close button is clicked\n\t\tf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t// Display Frame\n\t\tf.pack(); // Adjusts frame to size of components\n\t\tf.setVisible(true);\n\t}", "public ReaderGui() {\r\n locker = new ReaderLocker();\r\n reader = new ACRReader();\r\n initComponents();\r\n reader.openReader();\r\n statusText.setText(reader.getMessage());\r\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setBounds(100, 100, 600, 600);\n\t\tframe.setTitle(\"WSChat Client\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tJPanel mainPanel = new JPanel();\n\t\tframe.getContentPane().add(mainPanel);\n\t\tmainPanel.setLayout(null);\n\n\t\tJLabel setNameLabel = new JLabel();\n\t\tsetNameLabel.setText(\"Nickname: \");\n\t\tmainPanel.add(setNameLabel);\n\t\tsetNameLabel.setBounds(168, 10, 80, 30);\n\t\tnameField = new JTextField();\n\t\tnameField.setBounds(247, 10, 100, 30);\n\t\tsendName = new JButton(\"Set Name\");\n\t\tsendName.setBounds(359, 11, 120, 30);\n\t\tnameField.setColumns(10);\n\t\tmainPanel.add(nameField);\n\t\tmainPanel.add(sendName);\n\t\tsendName.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tWSChatApplication.this.send(\"/nick \" + nameField.getText());\n\t\t\t}\n\t\t});\n\n\t\tJScrollPane msg_pane = new JScrollPane();\n\t\tmsg_area = new JTextArea();\n\t\tmsg_area.setEditable(false);\n\t\tmsg_area.setLineWrap(true);\n\t\tmsg_area.setWrapStyleWord(true);\n\t\tmsg_pane.setViewportView(msg_area);\n\t\tmsg_pane.setBounds(10, 45, 450, 450);\n\t\tmainPanel.add(msg_pane);\n\n\t\tJScrollPane list_pane = new JScrollPane();\n\t\tlist = new JList<String>(listModel);\n\t\tlist.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tcurrentTarget = list.getSelectedValue();\n\t\t\t}\n\t\t});\n\n\t\tJTextPane textPane = new JTextPane();\n\t\ttextPane.setBounds(0, 0, 1, 16);\n\t\tmainPanel.add(textPane);\n\t\tlist_pane.setViewportView(list);\n\t\tlist_pane.setBounds(470, 45, 120, 450);\n\t\tmainPanel.add(list_pane);\n\n\t\tJScrollPane in_pane = new JScrollPane();\n\t\tfinal JTextArea in_area = new JTextArea();\n\t\tin_area.setLineWrap(true);\n\t\tin_area.setWrapStyleWord(true);\n\t\tin_pane.setViewportView(in_area);\n\t\tJButton sendBut = new JButton(\"Send\");\n\t\tsendBut.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (list.getSelectedIndex() == 0)\n\t\t\t\t\tWSChatApplication.this.send(in_area.getText());\n\t\t\t\telse\n\t\t\t\t\tWSChatApplication.this.send(\"/to \" + currentTarget + \" \"\n\t\t\t\t\t\t\t+ in_area.getText());\n\t\t\t\tin_area.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tmainPanel.add(sendBut);\n\t\tsendBut.setBounds(470, 500, 120, 70);\n\t\tmainPanel.add(in_pane);\n\t\tin_pane.setBounds(10, 500, 450, 70);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jButton_Reset = new javax.swing.JButton();\n jButton_Send = new javax.swing.JButton();\n jButton_Upload = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jText_AreaMessage = new javax.swing.JTextArea();\n jLabel_minimize = new javax.swing.JLabel();\n jLabel_close = new javax.swing.JLabel();\n jTextField_Message = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setUndecorated(true);\n addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n formMouseDragged(evt);\n }\n });\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n formMousePressed(evt);\n }\n });\n\n jLabel1.setText(\"Enter Message\");\n\n jButton_Reset.setText(\"Reset Chat\");\n jButton_Reset.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n jButton_Reset.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton_ResetActionPerformed(evt);\n }\n });\n\n jButton_Send.setText(\"Send\");\n jButton_Send.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n jButton_Send.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton_SendActionPerformed(evt);\n }\n });\n\n jButton_Upload.setText(\"Upload\");\n jButton_Upload.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n jButton_Upload.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton_UploadActionPerformed(evt);\n }\n });\n\n jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n jScrollPane1.setFocusable(false);\n\n jText_AreaMessage.setColumns(2);\n jText_AreaMessage.setLineWrap(true);\n jText_AreaMessage.setRows(5);\n jText_AreaMessage.setFocusable(false);\n jScrollPane1.setViewportView(jText_AreaMessage);\n\n jLabel_minimize.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel_minimize.setText(\" -\");\n jLabel_minimize.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel_minimizeMouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jLabel_minimizeMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jLabel_minimizeMouseExited(evt);\n }\n });\n\n jLabel_close.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel_close.setText(\" X\");\n jLabel_close.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel_closeMouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jLabel_closeMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jLabel_closeMouseExited(evt);\n }\n });\n\n jTextField_Message.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField_MessageActionPerformed(evt);\n }\n });\n jTextField_Message.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jTextField_MessageKeyPressed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel_minimize, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel_close, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton_Send)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton_Upload)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton_Reset))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(9, 9, 9)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField_Message, javax.swing.GroupLayout.PREFERRED_SIZE, 886, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(20, Short.MAX_VALUE))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel_minimize)\n .addComponent(jLabel_close)\n .addComponent(jLabel2))\n .addGap(13, 13, 13)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 315, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(35, 35, 35)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextField_Message, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 41, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton_Upload)\n .addComponent(jButton_Send)\n .addComponent(jButton_Reset))))\n .addContainerGap())\n );\n\n pack();\n setLocationRelativeTo(null);\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.DISPOSE_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setLocationRelativeTo(frame);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBackground(Color.LIGHT_GRAY);\r\n\t\tpanel.setBounds(10, 11, 414, 239);\r\n\t\tframe.getContentPane().add(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\t/**\r\n\t\t * Name Label\r\n\t\t */\r\n\t\tJLabel lblNewLabel = new JLabel(\"Name:\");\r\n\t\tlblNewLabel.setForeground(SystemColor.window);\r\n\t\tlblNewLabel.setFont(new Font(\"Malgun Gothic\", Font.PLAIN, 16));\r\n\t\tlblNewLabel.setBounds(20, 69, 63, 14);\r\n\t\tpanel.add(lblNewLabel);\r\n\t\t\r\n\t\t/**\r\n\t\t * Email Label\r\n\t\t */\r\n\t\tJLabel lblEmail = new JLabel(\"Email:\");\r\n\t\tlblEmail.setForeground(SystemColor.window);\r\n\t\tlblEmail.setFont(new Font(\"Malgun Gothic\", Font.PLAIN, 16));\r\n\t\tlblEmail.setBounds(20, 122, 63, 14);\r\n\t\tpanel.add(lblEmail);\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(83, 69, 263, 20);\r\n\t\tpanel.add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setColumns(10);\r\n\t\ttextField_1.setBounds(83, 122, 263, 20);\r\n\t\tpanel.add(textField_1);\r\n\t\t\r\n\t\t/**\r\n\t\t * SUBMIT BUTTON\r\n\t\t */\r\n\t\tJButton btnNewButton = new JButton(\"Submit\");\r\n\t\tbtnNewButton.setBounds(49, 178, 89, 23);\r\n\t\tpanel.add(btnNewButton);\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tString email = textField_1.getText(); \r\n\t\t\t\tString name = textField.getText();\r\n\t\t\t\t\r\n\t\t\t\tif(email.contains(\"email\") || name.contains(\"name\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tJOptionPane.showMessageDialog( btnNewButton, \"Added User To Chat\");\r\n\t\t\t\t\r\n\t\t\t\t\tJButton chat = new JButton( name.substring(0,1));\r\n\t\t\t\t\tchat.setBackground(Color.LIGHT_GRAY);\r\n\t\t\t\t\tchat.setFont(new Font(\"Malgun Gothic\", Font.PLAIN, 12));\r\n\t\t\t\t\tchat.setBounds(0, 0, 70, 60); //initialize in corner with size\r\n\t\t\t\t\tchat.setLocation(15,35+(80*mw.getNumUsers()) + userBufferSpacing); //move to position\r\n\t\t\t\t\t\r\n\t\t\t\t\tchat.addActionListener(new ActionListener() {\r\n\t\t\t\t\t public void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\t \tChat nw = new Chat();\r\n\t\t\t\t\t\t\tnw.frame.setVisible(true);\r\n\t\t\t\t\t } \r\n\t\t\t\t\t});\r\n\t\t\t\t\tframe.dispose();\r\n\t\t\t\t\tmw.frame.getContentPane().add(chat);\r\n\t\t\t\t\tmw.incUsers();\r\n\t\t\t\t\tmw.frame.setVisible(true);\t\r\n\t\t\t }\r\n\t\t\t\telse {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid User Details\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\ttextField_1.setText(null);\r\n\t\t\t\t\ttextField.setText(null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t/**\r\n\t\t * Add User to Group Label\r\n\t\t */\r\n\t\tJLabel lblAddUserTo = new JLabel(\"Add User to Group\");\r\n\t\tlblAddUserTo.setForeground(SystemColor.infoText);\r\n\t\tlblAddUserTo.setFont(new Font(\"Malgun Gothic\", Font.PLAIN, 17));\r\n\t\tlblAddUserTo.setBounds(126, 11, 162, 33);\r\n\t\tpanel.add(lblAddUserTo);\r\n\t\t\r\n\t\t/**\r\n\t\t * CANCEL BUTTON\r\n\t\t */\r\n\t\tJButton btnCancel = new JButton(\"Cancel\");\r\n\t\tbtnCancel.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tframe.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCancel.setBounds(247, 178, 89, 23);\r\n\t\tpanel.add(btnCancel);\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}", "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 }", "protected void initialize() {\r\n\t\tthis.frame.setBounds(0, -30, 325, 275);\r\n\t\tthis.frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.frame.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tthis.sendAlertButton.setForeground(Color.BLACK);\r\n\t\tthis.sendAlertButton.setBackground(Color.RED);\r\n\t\tthis.sendAlertButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 50));\r\n\t\tthis.sendAlertButton.setBounds(0,0, 325, 125);\r\n\t\tthis.frame.getContentPane().add(sendAlertButton);\r\n\t\t\r\n\t\tthis.backButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 50));\r\n\t\tthis.backButton.setBounds(0, 125, 325, 110);\r\n\t\tthis.frame.getContentPane().add(backButton);\r\n\t}", "public void showWinMessage() {\n\n\t}", "private void showMessage(final String text){\n\t\t\n\t\tSwingUtilities.invokeLater(\n\n\t\t\t\tnew Runnable () {\n\t\t\t\t\t//This is a thread to update the GUI.\n\t\t\t\t\t\n\t\t\tpublic void run () {\n\t\t\t\t//This is the method that gets called everytime the GUI needs to be updated.\n\t\t\t\t\n\t\t\t\tchatWindow.append(text);\n\t\t\t\t\n\t\t\t\t\n\t\t\t} \t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t);\n\t\t\n\t\t\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 }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\"Crew Members Setup Window\");\n\t\tframe.setBounds(100, 100, 695, 452);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setLocationRelativeTo(null);\n\n\t\t\n\t\tJLabel lblAddMember = new JLabel(\"ADD YOUR CREW MEMBERS\");\n\t\tlblAddMember.setForeground(new Color(255, 255, 255));\n\t\tlblAddMember.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblAddMember.setFont(new Font(\"Phosphate\", Font.PLAIN, 26));\n\t\tlblAddMember.setBounds(6, 16, 683, 33);\n\t\tframe.getContentPane().add(lblAddMember);\n\t\t\n\t\tJLabel lblCrewCount = new JLabel(\"Crew Count: \" + game.getCrewCount());\n\t\tlblCrewCount.setForeground(new Color(245, 222, 179));\n\t\tlblCrewCount.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblCrewCount.setFont(new Font(\"Futura\", Font.PLAIN, 18));\n\t\tlblCrewCount.setBounds(194, 100, 148, 36);\n\t\tframe.getContentPane().add(lblCrewCount);\n\t\t\n\t\tJLabel lblName = new JLabel(\"Name:\");\n\t\tlblName.setForeground(new Color(245, 222, 179));\n\t\tlblName.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblName.setFont(new Font(\"Futura\", Font.PLAIN, 18));\n\t\tlblName.setBounds(16, 61, 64, 36);\n\t\tframe.getContentPane().add(lblName);\n\t\t\n\t\tJLabel lblType = new JLabel(\"Type:\");\n\t\tlblType.setForeground(new Color(245, 222, 179));\n\t\tlblType.setFont(new Font(\"Futura\", Font.PLAIN, 18));\n\t\tlblType.setBounds(32, 100, 48, 36);\n\t\tframe.getContentPane().add(lblType);\n\t\t\n\t\ttextName = new JTextField();\n\t\ttextName.setForeground(new Color(245, 222, 179));\n\t\ttextName.setBackground(new Color(204, 102, 102));\n\t\ttextName.setFont(new Font(\"Futura\", Font.PLAIN, 18));\n\t\ttextName.setBounds(92, 61, 261, 40);\n\t\tframe.getContentPane().add(textName);\n\t\ttextName.setColumns(10);\n\n\t\t\t\t\n\t\tJLabel lblTypeName = new JLabel(\"Superhuman\");\n\t\tlblTypeName.setForeground(new Color(245, 222, 179));\n\t\tlblTypeName.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblTypeName.setFont(new Font(\"Futura\", Font.PLAIN, 18));\n\t\tlblTypeName.setBounds(26, 295, 311, 36);\n\t\tframe.getContentPane().add(lblTypeName);\n\t\t\n\t\tJLabel lblTypeDescription = new JLabel(\"<html><div style='text-align: center;'>\"\n\t\t\t\t\t\t\t\t\t+ \"An increased maximum health of 120%.</div></html>\", SwingConstants.CENTER);\n\t\tlblTypeDescription.setForeground(new Color(245, 222, 179));\n\t\tlblTypeDescription.setFont(new Font(\"Futura\", Font.PLAIN, 13));\n\t\tlblTypeDescription.setBounds(28, 332, 311, 69);\n\t\tframe.getContentPane().add(lblTypeDescription);\n\t\t\n\t\t\n\t\tJButton btnTypeSuper = new JButton(\"Superhuman\");\n\t\tbtnTypeSuper.setFont(new Font(\"URW Gothic L\", Font.BOLD, 12));\n\t\tbtnTypeSuper.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlblTypeName.setText(\"Superhuman\");\n\t\t\t\tlblTypeDescription.setText(\"<html><div style='text-align: center;'>\"\n\t\t\t\t\t\t\t\t\t+ \"An increased maximum health of 120%.\"\n\t\t\t\t\t\t\t\t\t+ \"Default is obviously 100%.</div></html>\");\n\t\t\t}\n\t\t});\n\t\tbtnTypeSuper.setBounds(16, 140, 110, 69);\n\t\tframe.getContentPane().add(btnTypeSuper);\n\t\t\n\t\tJButton btnTypeHunger = new JButton(\"Hunger Buster\");\n\t\tbtnTypeHunger.setFont(new Font(\"URW Gothic L\", Font.BOLD, 12));\n\t\tbtnTypeHunger.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlblTypeName.setText(\"Hunger Buster\");\n\t\t\t\tlblTypeDescription.setText(\"<html><div style='text-align: center;'>\"\n\t\t\t\t\t\t\t\t\t+ \"Hunger increases by 5% per day.\"\n\t\t\t\t\t\t\t\t\t+ \"Default is 8%</div></html>\");\n\t\t\t}\n\t\t});\n\t\tbtnTypeHunger.setBounds(127, 140, 114, 69);\n\t\tframe.getContentPane().add(btnTypeHunger);\n\t\t\n\t\tJButton btnTypeFresher = new JButton(\"Fresher\");\n\t\tbtnTypeFresher.setFont(new Font(\"URW Gothic L\", Font.BOLD, 12));\n\t\tbtnTypeFresher.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlblTypeName.setText(\"Fresher\");\n\t\t\t\tlblTypeDescription.setText(\"<html><div style='text-align: center;'>\"\n\t\t\t\t\t\t\t\t\t+ \"Tiredness increases by 5% per day.\"\n\t\t\t\t\t\t\t\t\t+ \"Default is 8%.</div></html>\");\n\t\t\t}\n\t\t});\n\t\tbtnTypeFresher.setBounds(242, 140, 110, 69);\n\t\tframe.getContentPane().add(btnTypeFresher);\n\n\t\tJButton btnTypeBuilder = new JButton(\"Builder\");\n\t\tbtnTypeBuilder.setFont(new Font(\"URW Gothic L\", Font.BOLD, 12));\n\t\tbtnTypeBuilder.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlblTypeName.setText(\"Builder\");\n\t\t\t\tlblTypeDescription.setText(\"<html><div style='text-align: center;'>\"\n\t\t\t\t\t\t\t\t\t+ \"Repairing spaceship shield rate is 15%. \"\n\t\t\t\t\t\t\t\t\t+ \"<br>Default is 5%.</div></html>\");\n\t\t\t}\n\t\t});\n\t\tbtnTypeBuilder.setBounds(16, 210, 110, 69);\n\t\tframe.getContentPane().add(btnTypeBuilder);\n\t\t\n\t\tJButton btnTypeImmune = new JButton(\"Immune\");\n\t\tbtnTypeImmune.setFont(new Font(\"URW Gothic L\", Font.BOLD, 12));\n\t\tbtnTypeImmune.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlblTypeName.setText(\"Immune\");\n\t\t\t\tlblTypeDescription.setText(\"<html><div style='text-align: center;'>\"\n\t\t\t\t\t\t\t\t\t+ \"Immunity from the space plague. Don't want to get got by those viruses!</div></html>\");\n\t\t\t}\n\t\t});\n\t\tbtnTypeImmune.setBounds(127, 210, 114, 69);\n\t\tframe.getContentPane().add(btnTypeImmune);\n\t\t\n\t\tJButton btnTypeKiller = new JButton(\"Terminator\");\n\t\tbtnTypeKiller.setFont(new Font(\"URW Gothic L\", Font.BOLD, 12));\n\t\tbtnTypeKiller.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlblTypeName.setText(\"Terminator\");\n\t\t\t\tlblTypeDescription.setText(\"<html><div style='text-align: center;'>\"\n\t\t\t\t\t\t\t\t\t+ \"Ability to kill and prevent those rat bastards from stealing your items.\" +\n\t\t\t\t\t\t\t\t\t\" Killing aliens is a lot of work so it decreases health by 10%.</div></html>\");\n\t\t\t}\n\t\t});\n\t\tbtnTypeKiller.setBounds(242, 210, 110, 69);\n\t\tframe.getContentPane().add(btnTypeKiller);\n\t\t\n\t\tJLabel lblMember0 = new JLabel();\n\t\tlblMember0.setForeground(new Color(255, 222, 173));\n\t\tlblMember0.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblMember0.setBounds(385, 105, 127, 145);\n\t\tframe.getContentPane().add(lblMember0);\n\t\tlblMember0.setFont(new Font(\"Futura\", Font.PLAIN, 13));\n\t\tlblMember0.setVerticalAlignment(SwingConstants.TOP);\n\t\t\t\t\n\t\tJLabel lblMember1 = new JLabel();\n\t\tlblMember1.setForeground(new Color(255, 222, 173));\n\t\tlblMember1.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblMember1.setBounds(526, 105, 127, 145);\n\t\tframe.getContentPane().add(lblMember1);\n\t\tlblMember1.setFont(new Font(\"Futura\", Font.PLAIN, 13));\n\t\tlblMember1.setVerticalAlignment(SwingConstants.TOP);\n\t\t\n\t\tJLabel lblMember2 = new JLabel();\n\t\tlblMember2.setForeground(new Color(255, 222, 173));\n\t\tlblMember2.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblMember2.setBounds(385, 224, 127, 145);\n\t\tframe.getContentPane().add(lblMember2);\n\t\tlblMember2.setFont(new Font(\"Futura\", Font.PLAIN, 13));\n\t\tlblMember2.setVerticalAlignment(SwingConstants.TOP);\n\t\t\n\t\tJLabel lblMember3 = new JLabel();\n\t\tlblMember3.setForeground(new Color(255, 222, 173));\n\t\tlblMember3.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblMember3.setBounds(526, 224, 127, 145);\n\t\tframe.getContentPane().add(lblMember3);\n\t\tlblMember3.setFont(new Font(\"Futura\", Font.PLAIN, 13));\n\t\tlblMember3.setVerticalAlignment(SwingConstants.TOP);\n\t\n\t\t\n\t\tJButton btnAdd = new JButton(\"Add Member\");\n\t\tbtnAdd.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (crewCount < game.getCrewCount()) {\n\t\t\t\t\tif (lblTypeName.getText() != \"Choose a type\") {\n\t\t\t\t\t\tgame.addCrewMember(textName.getText(), lblTypeName.getText());\n\t\t\t\t\t\tCrewMember crewMember = game.getCrewMembers().get(crewCount);\n\t\t\t\t\t\tswitch(crewCount) {\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\tlblMember0.setText(\"<html><div style='text-align: center;'>\" + crewMember.getName()\n\t\t\t\t\t\t\t\t+ \"<br>The \" + crewMember.getType()\n\t\t\t\t\t\t\t\t+ \"<br>Health: \" + crewMember.getHealth() + \"%\"\n\t\t\t\t\t\t\t\t+ \"<br>Health Rate: \" + crewMember.getHealthRate() + \"%\"\n\t\t\t\t\t\t\t\t+ \"<br>Hunger Rate: \" + crewMember.getHungerRate() + \"%\"\n\t\t\t\t\t\t\t\t+ \"<br>Tiredness Rate: \" + crewMember.getTirednessRate() + \"%</div></html>\");\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tlblMember1.setText(\"<html><div style='text-align: center;'>\" + crewMember.getName()\n\t\t\t\t\t\t\t\t+ \"<br>The \" + crewMember.getType()\n\t\t\t\t\t\t\t\t+ \"<br>Health: \" + crewMember.getHealth() + \"%\"\n\t\t\t\t\t\t\t\t+ \"<br>Health Rate: \" + crewMember.getHealthRate() + \"%\"\n\t\t\t\t\t\t\t\t+ \"<br>Hunger Rate: \" + crewMember.getHungerRate() + \"%\"\n\t\t\t\t\t\t\t\t+ \"<br>Tiredness Rate: \" + crewMember.getTirednessRate() + \"%</div></html>\");\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tlblMember2.setText(\"<html><div style='text-align: center;'>\" + crewMember.getName()\n\t\t\t\t\t\t\t\t+ \"<br>The \" + crewMember.getType()\n\t\t\t\t\t\t\t\t+ \"<br>Health: \" + crewMember.getHealth() + \"%\"\n\t\t\t\t\t\t\t\t+ \"<br>Health Rate: \" + crewMember.getHealthRate() + \"%\"\n\t\t\t\t\t\t\t\t+ \"<br>Hunger Rate: \" + crewMember.getHungerRate() + \"%\"\n\t\t\t\t\t\t\t\t+ \"<br>Tiredness Rate: \" + crewMember.getTirednessRate() + \"%</div></html>\");\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\tlblMember3.setText(\"<html><div style='text-align: center;'>\" + crewMember.getName()\n\t\t\t\t\t\t\t\t+ \"<br>The \" + crewMember.getType()\n\t\t\t\t\t\t\t\t+ \"<br>Health: \" + crewMember.getHealth() + \"%\"\n\t\t\t\t\t\t\t\t+ \"<br>Health Rate: \" + crewMember.getHealthRate() + \"%\"\n\t\t\t\t\t\t\t\t+ \"<br>Hunger Rate: \" + crewMember.getHungerRate() + \"%\"\n\t\t\t\t\t\t\t\t+ \"<br>Tiredness Rate: \" + crewMember.getTirednessRate() + \"%</div></html>\");\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcrewCount += 1;\t\n\t\t\t\t\t\ttextName.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnAdd.setBounds(365, 360, 151, 55);\n\t\tframe.getContentPane().add(btnAdd);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\n\t\tJButton btnContinue = new JButton(\"Continue\");\n\t\tbtnContinue.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (crewCount == game.getCrewCount()) {\n\t\t\t\t\tfinishedWindow();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnContinue.setBounds(524, 360, 151, 55);\n\t\tframe.getContentPane().add(btnContinue);\n\t\t\n\t\tJLabel lblCrewMembers = new JLabel(\"CREW MEMBERS\", SwingConstants.CENTER);\n\t\tlblCrewMembers.setForeground(new Color(255, 222, 173));\n\t\tlblCrewMembers.setBounds(385, 68, 272, 30);\n\t\tframe.getContentPane().add(lblCrewMembers);\n\t\tlblCrewMembers.setFont(new Font(\"Futura\", Font.BOLD, 18));\n\t\t\n\t\t\n\t\n\t\t\n\t\n\t\tJPanel panelCrewMembers = new JPanel();\n\t\tpanelCrewMembers.setBackground(new Color(205, 92, 92, 150));\n\t\tpanelCrewMembers.setBounds(365, 61, 310, 291);\n\t\tframe.getContentPane().add(panelCrewMembers);\n\t\tpanelCrewMembers.setLayout(null);\n\t\t\n\t\tJPanel panelType = new JPanel();\n\t\tpanelType.setBackground(new Color(205, 92, 92, 150));\n\t\tpanelType.setBounds(16, 288, 337, 124);\n\t\tframe.getContentPane().add(panelType);\n\t\tpanelType.setLayout(null);\n\t\t\n\t\tJLabel lblImg = new JLabel(\"\");\n\t\tlblImg.setIcon(new ImageIcon(SetupCrewMembersScreen.class.getResource(\"/img/rsz_e9jetnrbece6cht9ga6ni.jpg\")));\n\t\tlblImg.setBounds(0, 0, 695, 430);\n\t\tframe.getContentPane().add(lblImg);\n\t\n\t\t\n//\t\t\n\t\t\n\n\t\t\n\t\t\n\t}", "public void run() {\r\n\t\t\t\tServerChatUI serverChatUI = new ServerChatUI(s);\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tserverChatUI.setMinimumSize(new Dimension(588, 500));\r\n\t\t\t\tserverChatUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\t\tserverChatUI.setLocation(dim.width/2-serverChatUI.getSize().width/2, dim.height/2-serverChatUI.getSize().height/2);\r\n \t\t\t\tserverChatUI.pack();\r\n\t\t\t\tserverChatUI.setVisible(true);\r\n\t\t\t\tserverChatUI. setResizable(false);\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t}", "@Override\n\tpublic void showContents() {\n\t\tprogram.add(returnToMain);\n\t\tprogram.add(congratMessage);\n\t\tprogram.setBackground(Color.DARK_GRAY);\n\t\t\n\t}", "private void initializeComponent() throws Exception {\n System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(FormAlertSimple.class);\n this.labelMsg = new System.Windows.Forms.Label();\n this.SuspendLayout();\n //\n // labelMsg\n //\n this.labelMsg.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));\n this.labelMsg.Location = new System.Drawing.Point(12, 9);\n this.labelMsg.Name = \"labelMsg\";\n this.labelMsg.Size = new System.Drawing.Size(276, 82);\n this.labelMsg.TabIndex = 0;\n this.labelMsg.Text = \"Message\";\n this.labelMsg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;\n //\n // FormAlertSimple\n //\n this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;\n this.ClientSize = new System.Drawing.Size(300, 100);\n this.Controls.Add(this.labelMsg);\n this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;\n this.Icon = ((System.Drawing.Icon)(resources.GetObject(\"$this.Icon\")));\n this.Name = \"FormAlertSimple\";\n this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\n this.ResumeLayout(false);\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 459, 602);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBounds(0, 0, 432, 38);\n\t\tpanel.add(panel_1);\n\t\tpanel_1.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n\t\t\n\t\tJLabel lblServerAddress = new JLabel(\"Server Address\");\n\t\tpanel_1.add(lblServerAddress);\n\t\t\n\t\tserverAddressTextField = new JTextField(this.address);\n\t\tserverAddressTextField.setEditable(false);\n\t\tpanel_1.add(serverAddressTextField);\n\t\tserverAddressTextField.setColumns(10);\n\t\t\n\t\tJLabel lblPort = new JLabel(\"Port\");\n\t\tpanel_1.add(lblPort);\n\t\t\n\t\tserverPortTextField = new JTextField(Integer.toString(this.port));\n\t\tserverPortTextField.setEditable(false);\n\t\tpanel_1.add(serverPortTextField);\n\t\tserverPortTextField.setColumns(10);\n\t\t\n\t\tJLabel lblEnterYourMessage = new JLabel(\"Enter Your Message Here\");\n\t\tlblEnterYourMessage.setBounds(10, 40, 410, 16);\n\t\tpanel.add(lblEnterYourMessage);\n\t\t\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setBounds(20, 69, 400, 38);\n\t\tpanel.add(panel_2);\n\t\tpanel_2.setLayout(null);\n\t\t\n\t\tmessageTextField = new JTextField();\n\t\tmessageTextField.setBounds(0, 0, 400, 38);\n\t\tpanel_2.add(messageTextField);\n\t\tmessageTextField.setColumns(10);\n\t\t\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setBounds(10, 125, 422, 348);\n\t\tpanel.add(panel_3);\n\t\tpanel_3.setLayout(null);\n\t\t\n\t\tmessageTextArea = new JTextArea();\n\t\tmessageTextArea.setBounds(0, 0, 422, 348);\n\t\tpanel_3.add(messageTextArea);\n\t\t\n\t\tJPanel panel_4 = new JPanel();\n\t\tpanel_4.setBounds(10, 486, 422, 56);\n\t\tpanel.add(panel_4);\n\t\tpanel_4.setLayout(null);\n\t\t\n\t\tJButton btnWhoIsIn = new JButton(\"Who is in\");\n\t\tbtnWhoIsIn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttheClient.sendMessage(\"WHOISIN\");\n\t\t\t}\n\t\t});\n\t\tbtnWhoIsIn.setBounds(295, 13, 85, 25);\n\t\tpanel_4.add(btnWhoIsIn);\n\t\t\n\t\tJButton btnLogout = new JButton(\"Logout\");\n\t\tbtnLogout.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttheClient.sendMessage(\"LOGOUT\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tbtnLogout.setBounds(148, 13, 97, 25);\n\t\tpanel_4.add(btnLogout);\n\t\t\n\t\tJButton btnSend = new JButton(\"Send\");\n\t\tbtnSend.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tString messageUser=messageTextField.getText();\n\t\t\t\tif(messageUser.equals(\"\")) \n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Please Enter Something\");\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\ttheClient.sendMessage(messageUser);\n\t\t\t\t\tmessageTextField.setText(\"\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnSend.setBounds(27, 13, 97, 25);\n\t\tpanel_4.add(btnSend);\n\t\t\n\t\tJLabel usernameLabel = new JLabel(this.username);\n\t\tusernameLabel.setBounds(285, 40, 147, 16);\n\t\tpanel.add(usernameLabel);\n\t\t\n\t\tJPanel panel_5 = new JPanel();\n\t\tpanel_5.setBounds(20, 604, 412, 231);\n\t\tpanel.add(panel_5);\n\t\tpanel_5.setLayout(null);\n\t\t\n\t\teventTextArea = new JTextArea();\n\t\teventTextArea.setBounds(0, 0, 412, 231);\n\t\tpanel_5.add(eventTextArea);\n\t\t\n\t\tJLabel eventlabel = new JLabel(\"Events\");\n\t\teventlabel.setBounds(82, 575, 271, 16);\n\t\tpanel.add(eventlabel);\n\t\t\n\t\tframe.setVisible(true);\n\t\tframe.setSize(467, 895);\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\t\n\t\tJLabel lblNewLabel = new JLabel(\"\\u5E78\\u8FD0\\u8F6C\\u76D8\");\n\t\tlblNewLabel.setBounds(131, 13, 208, 35);\n\t\tlblNewLabel.setIcon(new ImageIcon(RandomCall.class.getResource(\"/images/\\u968F\\u673A\\u7528\\u6237.png\")));\n\t\tlblNewLabel.setFont(new Font(\"宋体\", Font.BOLD, 30));\n\t\t\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\t/*\n\t\t *名字显示区域\n\t\t */\n\t\tlblNewLabel_1 = new JLabel(\"name\");\n\t\tlblNewLabel_1.setFont(new Font(\"宋体\", Font.ITALIC, 30));\n\t\tlblNewLabel_1.setBounds(178, 91, 113, 52);\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t\t\n\t\t/*\n\t\t * 开始按钮\n\t\t */\n\t\tstart = new JButton(\"\\u5F00\\u59CB\");\n\t\tstart.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstartAction(e); \n\t\t\t}\n\t\t});\n\t\tstart.setBounds(14, 198, 113, 27);\n\t\tframe.getContentPane().add(start);\n\t\t\n\t\t/*\n\t\t * 停止按钮\n\t\t */\n\t\tJButton stop = new JButton(\"\\u6682\\u505C\");\n\t\tstop.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstopAction(e); \n\t\t\t}\n\n\t\t\t\n\t\t});\n\t\tstop.setBounds(165, 198, 113, 27);\n\t\tframe.getContentPane().add(stop);\n\t\t\n\t\tJButton back = new JButton(\"\\u8FD4\\u56DE\\u4E3B\\u754C\\u9762\");\n\t\tback.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tIndex index = new Index(); \n\t\t\t\tindex.getFrame().setVisible(true);\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tback.setBounds(305, 198, 113, 27);\n\t\tframe.getContentPane().add(back);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "public ServerGUI() {\n initComponents();\n setVisible(true);\n user.append(\"Máy chủ đã được mở\\n\");\n }", "public LoaderPanel(final String msg){\n\t\tSwingUtilities.invokeLater(new Runnable(){\n\t\t\tpublic void run(){\n\t\t\t\t//set empty image as icon\n\t\t\t\tsetIconImage(new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB));\n\t\t\t\tsetTitle(msg);\n\t\t\t\t\n\t\t\t\t//createGUI\n\t\t\t\tloadBar = new JProgressBar();\n\t\t\t\tadd(BorderLayout.CENTER, loadBar);\n\t\t\t\tmessageLabel.setText(msg + \"...\");\n\t\t\t\tadd(BorderLayout.NORTH, messageLabel);\n\t\t\t\tsetDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\t\t\tsetSize(300, 75);\n\t\t\t\tsetPreferredSize(getSize());\n\t\t\t\tsetPercentage(0);\n\t\t\t\tsetResizable(false);\n\t\t\t\tsetLocationRelativeTo(null);\n\t\t\t\tsetVisible(true);\n\t\t\t}\n\t\t});\n\t}", "private void showMessage(String message) {\n JOptionPane jOptionPane = new JOptionPane(message, JOptionPane.PLAIN_MESSAGE);\n JDialog dialog = jOptionPane.createDialog(frame,\"Message\");\n\n //Must be this one for less bags\n dialog.setModalityType(Dialog.ModalityType.MODELESS);\n dialog.setVisible(true);\n// JOptionPane.showMessageDialog(\n// frame,\n// message,\n// \"Message\",\n// JOptionPane.PLAIN_MESSAGE\n// );\n }", "public JFrame_Banhang() {\n initComponents();\n }", "public FichaDeContactoJFrame() {\n initComponents();\n }", "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 lblNewLabel = new JLabel(\" VforU\");\n\t\tlblNewLabel.setFont(new Font(\"Lucida Grande\", Font.BOLD, 18));\n\t\tlblNewLabel.setBounds(180, 6, 117, 22);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Find the Best Volunteer for You\");\n\t\tlblNewLabel_1.setFont(new Font(\"Lucida Grande\", Font.BOLD | Font.ITALIC, 13));\n\t\tlblNewLabel_1.setBounds(130, 40, 229, 16);\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t\t\n\t\tJTextPane textPane = new JTextPane();\n\t\ttextPane.setBounds(18, 68, 411, 67);\n\t\tframe.getContentPane().add(textPane);\n\t\tString text=\"VforU matches you with volunteers who can help you when ever and where ever you are in need.\";\n\t\ttext=text+\" We assure you to provide your required assistance. Connect with our volunteers and get your job done\";\n\t\ttextPane.setText(text);\n\t\ttextPane.setEditable(false);\n\t\t\n\t\tloginbutton = new JButton(\"Login\");\n\t\t\n\t\tloginbutton.setBounds(86, 167, 117, 29);\n\t\tframe.getContentPane().add(loginbutton);\n\t\t\n\t\tsignupbutton = new JButton(\"Signup\");\n\t\t\n\t\tsignupbutton.setBounds(242, 167, 117, 29);\n\t\tframe.getContentPane().add(signupbutton);\n\t\t\n\t}", "public MainWindow() {\n initComponents();\n \n StationView = new SpaceStationView();\n EnemyView = new EnemyStarshipView();\n \n stationPanel.add(StationView);\n enemyPanel.add(EnemyView);\n \n message.setVisible(false);\n \n setTitle(appName);\n \n repaint();\n setLocationRelativeTo(null);\n \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\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnChay = new JButton(\"Server ch\\u1EA1y ngay \\u0111i\");\r\n\t\tbtnChay.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsocketReceive= new DatagramSocket(4359);\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Đã chạy Receiver\");\r\n\t\t\t\t\twhile(true) {\r\n\t\t\t\t\t\tint a=receiver_Num();\r\n\t\t\t\t\t\tint b=receiver_Num();\r\n\t\t\t\t\t\tif(a!=0 || b!=0) {\r\n\t\t\t\t\t\tguiKQ(a+b);\r\n\t\t\t\t\t\ttagui.append(String.valueOf(a+b+\"\\n\"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse break;\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t} catch (SocketException 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\tbtnChay.setBounds(10, 35, 416, 32);\r\n\t\tframe.getContentPane().add(btnChay);\r\n\t\t\r\n\t\tJLabel lblDLiuGi = new JLabel(\"D\\u1EEF li\\u1EC7u g\\u1EEDi \\u0111i\");\r\n\t\tlblDLiuGi.setBounds(10, 88, 85, 13);\r\n\t\tframe.getContentPane().add(lblDLiuGi);\r\n\t\t\r\n\t\ttagui = new JTextArea();\r\n\t\ttagui.setEditable(false);\r\n\t\ttagui.setBounds(85, 77, 341, 174);\r\n\t\tframe.getContentPane().add(tagui);\r\n\t\t\r\n\t\r\n\t\t\t\r\n\t\t}", "private void setupComponents() {\n\t\tframe.setLayout(null);\r\n\r\n\t\t\r\n\t\t\r\n\t\t// Add label for title ..\r\n\t\tJLabel titleField = new JLabel();\r\n\t\ttitleField.setBounds(50, 10, 300, 30);// x, y, width, height - (pixels)\r\n\t\ttitleField.setText(\"Simple Swing Application\");\r\n\t\ttitleField.setFont(new Font(\"Arial\", Font.BOLD, 24));\r\n\t\ttitleField.setForeground(Color.red);\r\n\t\ttitleField.setVisible(true);\r\n\t\tframe.add(titleField);\r\n\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// Add label for output message ..\r\n\t\tJLabel textField = new JLabel();\r\n\t\ttextField.setBounds(50, 200, 300, 30);\r\n\t\ttextField.setVisible(true);\r\n\t\tframe.add(textField);\r\n\r\n\t\t// Add a YES button ..\r\n\t\tJButton yesButton = new JButton(\"Yes\");\r\n\t\tyesButton.setBounds(50, 150, 90, 30);\r\n\t\tyesButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// When clicked, set lower label text ..\r\n\t\t\t\ttextField.setText(((JButton) e.getSource()).getText() + \" button was clicked.\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tframe.add(yesButton);\r\n\r\n\t\t// Add a NO button ..\r\n\t\tJButton noButton = new JButton(\"No\");\r\n\t\tnoButton.setBounds(150, 150, 90, 30);\r\n\t\tnoButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// When clicked, set lower label text ..\r\n\t\t\t\ttextField.setText(((JButton) e.getSource()).getText() + \" button was clicked.\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tframe.add(noButton);\r\n\t\t\r\n\t\t\r\n\r\n\t}", "private void initialize() {\n\t\tUtility.setLookAndFeel(Constant.WINDOW_LOOK_AND_FEEL);\n\n\t\tframe = new JFrame(\"List Of Offline Message Screen\");\n\t\tframe.setBounds(Constant.xOff, Constant.yOff, Constant.windowWidth,\n\t\t\t\tConstant.windowHeight);\n\t\tframe.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(new GridLayout(1, 0, 0, 0));\n\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tframe.getContentPane().add(scrollPane);\n\n\t\tsearchResultInnerPanel = new JPanel();\n\t\tscrollPane.setViewportView(searchResultInnerPanel);\n\t\tsearchResultInnerPanel.setLayout(new GridLayout(0, 3, 0, 0));\n\n\t\tUser u = RMIChatClient.getUser();\n\n\t\tif (u.hasOfflineMsg) {\n\t\t\t// boolean remove = false;\n\t\t\tArrayList<Message> allMsg = RMIChatClient\n\t\t\t\t\t.getAllOfflineMessage(u.userName);\n\t\t\tupdateMessageList(allMsg);\n\t\t} else {\n\t\t\tJButton btnNewButton = new JButton(\"No Offline Message!\");\n\t\t\tsearchResultInnerPanel.add(btnNewButton);\n\t\t\tbtnNewButton.setEnabled(false);\n\t\t}\n\t\tgoBackToHomePageButton();\n\t}", "public SMFrame() {\n initComponents();\n updateComponents();\n }", "public void run() {\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t\t\tframe.setJMenuBar((new MyJMenuBar(frame)).menuBar);\n\t\t\t\t\n\t\t\t\t//Display the window.\n\t\t\t\t//frame.pack();\n\n\t\t\t\t//Set up the content pane.\n\t\t\t\tframe.addLoadingMessage(frame.getContentPane());\n\t\t\t\tframe.pack();\n\t\t\t\tframe.setSize(new Dimension((int)(frame.getSize().getWidth()), 300));\n\t\t\t\tframe.setResizable(false);\n\t\t\t\tframe.setVisible(true);\n\t\t\t\tframe.update(frame.getGraphics());\n }", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public void createAndShowGUI() {\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n super.windowClosing(e);\n System.out.println(\"closing server...\");\n }\n });\n this.addComponentsToPane(this.getContentPane());\n this.pack();\n this.centreFrameInScreen();\n this.setVisible(true);\n }", "private static void JGUI() {\n\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\"Eggs are not supposed to be green.\");\n\t\t// custom title, warning icon\n\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\"Eggs are not supposed to be green.\",\n\t\t\t\t\"Inane warning\",\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t// custom title, error icon*/\n\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\"Eggs are not supposed to be green.\",\n\t\t\t\t\"Inane error\",\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t// custom title, no icon\n\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\"Eggs are not supposed to be green.\",\n\t\t\t\t\"A plain message\",\n\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t\tIcon icon = null;\n\t\t// custom title, custom icon\n\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\"Eggs are not supposed to be green.\",\n\t\t\t\t\"Inane custom dialog\",\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE,\n\t\t\ticon);\n\t}", "public void openMessage(int index) {\r\n\t\tJFrame frame = new JFrame(\"Meddelande\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tframe.add(messagePanel());\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t\tappend(\"Meddelande mottaget av server: \" + listMessages.getModel().getElementAt(index).getTimeRecievedServer()\r\n\t\t\t\t+ \"\\n\");\r\n\t\tappend(\"Meddelande mottaget av klient: \" + listMessages.getModel().getElementAt(index).getTimeReceivedClient()\r\n\t\t\t\t+ \"\\n\");\r\n\t\tappend(\"Från: \" + listMessages.getModel().getElementAt(index).getSender() + \"\\n\");\r\n\t\tappend(\"\\n\" + listMessages.getModel().getElementAt(index).getMessage() + \"\\n\");\r\n\t\tif (listMessages.getModel().getElementAt(index).getImageIcon() != null) {\r\n\t\t\tdisplayImage(listMessages.getModel().getElementAt(index).getImageIcon());\r\n\t\t}\r\n\t}", "public mainframe() {\n initComponents();\n }", "private void showMessageOnScreen(String message) {\n JOptionPane.showMessageDialog(this, message);\n }", "private void initialisationChampMessage() {\n messageArea = new JTextArea();\n messageArea.setLineWrap(true);\n messageArea.setWrapStyleWord(true);\n messageArea.setOpaque(false);\n messageArea.setBackground(COULEUR_VIDE);\n messageArea.setFont(FONT_TEXTE);\n messageArea.setBorder(BorderFactory.createEmptyBorder(GRANDEUR_BORDURE_VIDE, GRANDEUR_BORDURE_VIDE,\n GRANDEUR_BORDURE_VIDE, GRANDEUR_BORDURE_VIDE));\n dimTotal = calculerDimensionTotalMessage(this.message);\n messageArea.setSize((int) dimTotal.getWidth() + GRANDEUR_BORDURE_VIDE * 2,\n (int) dimTotal.getHeight() + GRANDEUR_BORDURE_VIDE * 2);\n messageArea.append(this.message);\n }", "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}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0,0,400,100);\n\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJButton Boton1 = new JButton(\"Boton1\");\n\t\tframe.getContentPane().add(Boton1, BorderLayout.NORTH);\n\t\t\n\t\tJLabel etiqueta = new JLabel();\n\t\tetiqueta.setText(\"Etiqueta\");\n\t\tframe.add(etiqueta);\n\t\t\n\t\tframe.setLayout(new FlowLayout());\n\t\t\n\t\t//frame.pack();\n\t\t\n\t\t/*class BotonListener implements ActionListener{\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tetiqueta.setText(\"Lo que sea\");\n\t\t\t\tframe.pack();\n\t\t\t}\n\t\t\t\n\t\t}*/\n\t\t/*Boton1.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tetiqueta.setText(\"Lo que sea\");\n\t\t\t\tframe.pack();\n\t\t\t}\n\t\t});*/\n\t\tBoton1.addActionListener(e -> {System.exit(0);});\n\t}", "public GUI() {\n\t\t// sets up file choosers\n\t\tsetFileChoosers();\n\t\t// initialises JFrame\n\t\tsetContent();\n\t\t// sets default window attributes\n\t\tthis.setDefaultAttributes();\n\t\t// instantiates controller object\n\t\tsetController();\n\t\t// sets toolbar to go over frame\n\t\tJPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\t\tToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);\n\t\t// sets antialiasing\n\t\t((Graphics2D) this.getGraphics()).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t}", "public JFrameMain() {\n initComponents();\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n mensagemBaixo = new javax.swing.JLabel();\n thisIsSparta = new javax.swing.JLabel();\n mensagemCima = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosed(java.awt.event.WindowEvent evt) {\n formWindowClosed(evt);\n }\n });\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n mensagemBaixo.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n mensagemBaixo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n mensagemBaixo.setText(\"OBRIGADO POR JOGAR :)\");\n getContentPane().add(mensagemBaixo, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 250, 440, 40));\n\n thisIsSparta.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/warproject/thisIsSparta.jpg\"))); // NOI18N\n getContentPane().add(thisIsSparta, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 60, -1, -1));\n\n mensagemCima.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n mensagemCima.setText(\"PARABÉNS JOGADOR VERMELHO, VOCÊ VENCEU!!\");\n getContentPane().add(mensagemCima, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 11, -1, 40));\n\n pack();\n }", "public MainFrame() {\n \n new DangNhapDialog(this, true).setVisible(true);\n initComponents();\n init();\n }", "public Mainframe() {\n initComponents();\n }", "private void initFrame()\r\n\t{\n\t\tthis.setLocationRelativeTo(null);\r\n\t\t\r\n\t\ttextArea.setText(\"Mit dem JTextArea-Steuerelement kann der Benutzer Text in einer Anwendung eingeben. \"\r\n\t\t\t\t+ \"Dieses Steuerelement bietet eine Funktionalität, die über das Standard-JTextField-Steuerelement von Java hinausgeht. \"\r\n\t\t\t\t+ \"Dazu gehören Mehrzeilenbearbeitung und Zeichenmaskierung für Kennwörter. \"\r\n\t\t\t\t+ \"Normalerweise wird ein JTextField-Steuerelement für die Anzeige oder Eingabe einer einzelnen Textzeile verwendet.\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "private static void initAndShowGUI() {\n }", "public JFrameMain() {\n initComponents();\n }", "private static void createAndShowGUI() {\n\t frame = new JFrame(\"SpringBagLayoutTextWindowDemo\");\n\t \n\t frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t \n\t //Set up the content pane.\n\t addComponentsToPane(frame.getContentPane());\n\t //frame.setSize();\n\t \n\t //Display the window.\n\t \n\t frame.pack();\n\t frame.setVisible(true);\n\t }", "public void showMessage(){\n\t jsfMessageHelper.addInfo(\"Mesaj:\", (messageTxt==null?\"?\":messageTxt));\r\n\t}", "public static void message() {\r\n\t\t\r\n\t\tJOptionPane.showMessageDialog(null, \"Thanks for your participation\" + \"\\nHave a great day!\");\r\n\t\t\r\n\t\t\r\n\t}", "private void initialize() {\r\n\t\tfrmChatApplicationClient = new JFrame();\r\n\t\tfrmChatApplicationClient.addWindowListener(new WindowAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosing(WindowEvent arg0) {\r\n\t\t\t\r\n\t\t\t\tif(connected){\r\n\t\t\t\tclient.sendMessage(\"clientclosed\");\r\n\t\t\t\tclient.close();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnRemove = new JButton(\"Remove!\");\r\n\t\tbtnRemove.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tString nick = nickname.getText();\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\tString user = LoginUsername.getText();\r\n\t\t\t\tif((!nick.equals(\"\")) && (!nick.equals(user))){\r\n\t\t\t\t\r\n\t\t\t\tclient.sendMessage(\"removeclient\");\r\n\t\t\t\tclient.sendMessage(nick);\r\n\t\t\t\t}\t\r\n\t\t\t\telse if(nick.equals(user)){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"You can remove yourself from system\", \"Error\",JOptionPane.ERROR_MESSAGE); // display error message\r\n\r\n\t\t\t\t}\r\n\t\t\t\tnickname.setText(\"\");\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\tRestart = new JButton(\"Restart\");\r\n\t\tRestart.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tclient.sendMessage(\"restart\");\r\n\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnSendPrivateMessage = new JButton(\"Send private message\");\r\n\t\tbtnSendPrivateMessage.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tString pmtext=pmtextfield.getText();\r\n\t\t\t\tString pmnick = pmnickname.getText();\r\n\t\t\t\t\t\r\n\t\t\t\tif (pmtext.equals(\"\") || pmnick.equals(\"\")){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"Make sure to enter message and receiver\", \"Private Message Error\",JOptionPane.ERROR_MESSAGE); // display error message\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(pmnick.equals(LoginUsername.getText())){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"You can send private message to your self\", \"Private Message Error\",JOptionPane.ERROR_MESSAGE); // display error message\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tString pmmsg = pmtextfield.getText();\r\n\t\t\t\t\tString receiver = pmnickname.getText();\r\n\t\t\t\t\tclient.sendMessage(\"pm\");\r\n\t\t\t\t\tclient.sendMessage(receiver);\r\n\t\t\t\t\tclient.sendMessage(pmmsg);\r\n\t\t\t\r\n\t\t\t\t\tpmnickname.setText(\"\");\r\n\t\t\t\t\tpmtextfield.setText(\"\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfrmChatApplicationClient.getContentPane().setBackground(Color.LIGHT_GRAY);\r\n\t\tfrmChatApplicationClient.setResizable(false);\r\n\t\tfrmChatApplicationClient.getContentPane().setForeground(Color.WHITE);\r\n\t\tfrmChatApplicationClient.setTitle(\"Chat Client\");\r\n\t\tfrmChatApplicationClient.setBounds(100, 100, 752, 645);\r\n\t\tfrmChatApplicationClient.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmChatApplicationClient.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJPanel RegisterPanel = new JPanel();\r\n\t\tRegisterPanel.setBorder(new LineBorder(Color.DARK_GRAY));\r\n\t\tRegisterPanel.setBounds(508, 11, 222, 176);\r\n\t\tfrmChatApplicationClient.getContentPane().add(RegisterPanel);\r\n\t\tRegisterPanel.setLayout(null);\r\n\t\t\t\r\n\t\tbtnRegister = new JButton(\"Register\");\r\n\r\n\t\tbtnRegister.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tbtnRegister.setBounds(10, 123, 202, 40);\r\n\t\tRegisterPanel.add(btnRegister);\r\n\t\t\r\n\t\tRegisterUsername = new JTextField();\r\n\t\tRegisterUsername.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tRegisterUsername.setBounds(126, 33, 86, 20);\r\n\t\tRegisterPanel.add(RegisterUsername);\r\n\t\tRegisterUsername.setColumns(10);\r\n\t\t\r\n\t\tRegisterPassword1 = new JPasswordField();\r\n\t\tRegisterPassword1.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tRegisterPassword1.setBounds(126, 64, 86, 20);\r\n\t\tRegisterPanel.add(RegisterPassword1);\r\n\t\t\r\n\t\tJLabel lblLogin = new JLabel(\"Username:\");\r\n\t\tlblLogin.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tlblLogin.setBounds(10, 36, 69, 14);\r\n\t\tRegisterPanel.add(lblLogin);\r\n\t\t\r\n\t\tJLabel lblPassword = new JLabel(\"Password:\");\r\n\t\tlblPassword.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tlblPassword.setBounds(10, 67, 69, 14);\r\n\t\tRegisterPanel.add(lblPassword);\r\n\t\t\r\n\t\tJLabel lblRegisterToUse = new JLabel(\"Create new Account\");\r\n\t\tlblRegisterToUse.setFont(new Font(\"Sitka Text\", Font.PLAIN, 15));\r\n\t\tlblRegisterToUse.setBounds(10, 11, 169, 14);\r\n\t\tRegisterPanel.add(lblRegisterToUse);\r\n\t\t\r\n\t\tRegisterPassword2 = new JPasswordField();\r\n\t\tRegisterPassword2.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tRegisterPassword2.setBounds(126, 95, 86, 20);\r\n\t\tRegisterPanel.add(RegisterPassword2);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Repeat Password:\");\r\n\t\tlblNewLabel.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tlblNewLabel.setBounds(10, 98, 106, 14);\r\n\t\tRegisterPanel.add(lblNewLabel);\r\n\t\t\r\n\t\tJPanel Loginpanel = new JPanel();\r\n\t\tLoginpanel.setBorder(new LineBorder(Color.DARK_GRAY));\r\n\t\tLoginpanel.setBounds(10, 11, 187, 134);\r\n\t\tfrmChatApplicationClient.getContentPane().add(Loginpanel);\r\n\t\tLoginpanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblLogin_1 = new JLabel(\"Login\");\r\n\t\tlblLogin_1.setFont(new Font(\"Sitka Text\", Font.PLAIN, 15));\r\n\t\tlblLogin_1.setBounds(10, 11, 46, 14);\r\n\t\tLoginpanel.add(lblLogin_1);\r\n\t\t\r\n\t\tJLabel lblUsername = new JLabel(\"Username:\");\r\n\t\tlblUsername.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tlblUsername.setBounds(10, 36, 79, 14);\r\n\t\tLoginpanel.add(lblUsername);\r\n\t\t\r\n\t\tJLabel lblPassword_1 = new JLabel(\"Password:\");\r\n\t\tlblPassword_1.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tlblPassword_1.setBounds(10, 65, 79, 14);\r\n\t\tLoginpanel.add(lblPassword_1);\r\n\t\t\r\n\t\tLoginUsername = new JTextField();\r\n\t\tLoginUsername.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tLoginUsername.setBounds(92, 33, 86, 20);\r\n\t\tLoginpanel.add(LoginUsername);\r\n\t\tLoginUsername.setColumns(10);\r\n\t\t\r\n\t\tLoginPassword = new JPasswordField();\r\n\t\tLoginPassword.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tLoginPassword.setBounds(92, 62, 86, 20);\r\n\t\tLoginpanel.add(LoginPassword);\r\n\t\t\r\n\t\tLoginbtn = new JButton(\"Login\");\r\n\t\t\t\r\n\t\tLoginbtn.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tLoginbtn.setBounds(10, 90, 168, 33);\r\n\t\tLoginpanel.add(Loginbtn);\r\n\t\t\r\n\t\t\r\n\t\tJPanel ServerInfopanel = new JPanel();\r\n\t\tServerInfopanel.setBorder(new LineBorder(Color.DARK_GRAY));\r\n\t\tServerInfopanel.setBounds(207, 11, 291, 134);\r\n\t\tfrmChatApplicationClient.getContentPane().add(ServerInfopanel);\r\n\t\tServerInfopanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblServerInfo = new JLabel(\"Server Info\");\r\n\t\tlblServerInfo.setFont(new Font(\"Sitka Text\", Font.PLAIN, 15));\r\n\t\tlblServerInfo.setBounds(10, 11, 139, 14);\r\n\t\tServerInfopanel.add(lblServerInfo);\r\n\t\t\r\n\t\tJLabel lblServer = new JLabel(\"Server Address:\");\r\n\t\tlblServer.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tlblServer.setBounds(10, 36, 92, 14);\r\n\t\tServerInfopanel.add(lblServer);\r\n\t\t\r\n\t\tJLabel lblServerPort = new JLabel(\"Server Port:\");\r\n\t\tlblServerPort.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tlblServerPort.setBounds(10, 61, 92, 14);\r\n\t\tServerInfopanel.add(lblServerPort);\r\n\t\t\r\n\t\tServerAddress = new JTextField();\r\n\t\tServerAddress.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tServerAddress.setText(\"127.0.0.1\");\r\n\t\tServerAddress.setColumns(10);\r\n\t\tServerAddress.setBounds(112, 33, 166, 20);\r\n\t\tServerInfopanel.add(ServerAddress);\r\n\t\t\r\n\t\tServerPort = new JTextField();\r\n\t\tServerPort.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tServerPort.setText(\"33333\");\r\n\t\tServerPort.setColumns(10);\r\n\t\tServerPort.setBounds(112, 58, 166, 20);\r\n\t\tServerInfopanel.add(ServerPort);\r\n\t\t\r\n\t\tChatpanel = new JPanel();\r\n\t\tChatpanel.setBorder(new LineBorder(Color.DARK_GRAY));\r\n\t\tChatpanel.setBounds(10, 156, 488, 449);\r\n\t\tfrmChatApplicationClient.getContentPane().add(Chatpanel);\r\n\t\tChatpanel.setLayout(null);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tJScrollPane scrollPane = new JScrollPane();\r\n\t\tscrollPane.setBounds(10, 11, 464, 325);\r\n\t\tChatpanel.add(scrollPane);\r\n\t\t\r\n\t\tChattextArea = new JTextArea();\r\n\t\tChattextArea.setFont(new Font(\"Sitka Text\", Font.PLAIN, 13));\r\n\t\tscrollPane.setViewportView(ChattextArea);\r\n\r\n\t\t\r\n\t\tJLabel lblTypeYourMessage = new JLabel(\"Type your message:\");\r\n\t\tlblTypeYourMessage.setFont(new Font(\"Sitka Text\", Font.PLAIN, 11));\r\n\t\tlblTypeYourMessage.setBounds(10, 347, 121, 21);\r\n\t\tChatpanel.add(lblTypeYourMessage);\r\n\t\t\r\n\t\tMessagetext = new JTextField();\r\n\t\tMessagetext.setFont(new Font(\"Sitka Text\", Font.PLAIN, 11));\r\n\t\tMessagetext.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tString msg = Messagetext.getText();\r\n\t\t\t\tif(msg.equals(\"\")){\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tclient.sendMessage(msg);\r\n\t\t\t\t\tMessagetext.setText(\"\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\tMessagetext.setBounds(133, 347, 341, 20);\r\n\t\tChatpanel.add(Messagetext);\r\n\t\tMessagetext.setColumns(10);\r\n\t\t\r\n\t\t\r\n\t\tJPanel Statuspanel = new JPanel();\r\n\t\tStatuspanel.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\tStatuspanel.setBounds(508, 198, 222, 227);\r\n\t\tfrmChatApplicationClient.getContentPane().add(Statuspanel);\r\n\t\tStatuspanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblStatus = new JLabel(\"Status\");\r\n\t\tlblStatus.setFont(new Font(\"Sitka Text\", Font.PLAIN, 15));\r\n\t\tlblStatus.setBounds(10, 11, 139, 14);\r\n\t\tStatuspanel.add(lblStatus);\r\n\t\t\r\n\t\tonlineradio = new JRadioButton(\"Online\");\r\n\t\tonlineradio.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonlineradio.setSelected(true);\r\n\t\t\t\tbusyradio.setSelected(false);\r\n\t\r\n\t\t\t\tclient.sendMessage(\"online\");\r\n\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\r\n\t\tonlineradio.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tonlineradio.setBounds(69, 8, 109, 23);\r\n\t\tStatuspanel.add(onlineradio);\r\n\t\t\r\n\t\tbusyradio = new JRadioButton(\"Busy\");\r\n\t\tbusyradio.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonlineradio.setSelected(false);\r\n\t\t\t\tbusyradio.setSelected(true);\r\n\t\t\t\tclient.sendMessage(\"busy\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbusyradio.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tbusyradio.setBounds(69, 32, 109, 23);\r\n\t\tStatuspanel.add(busyradio);\r\n\t\t\r\n\t\tbtnLogout = new JButton(\"Logout\");\r\n\t\tbtnLogout.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tServerAddress.setEditable(true);\r\n\t\t\t\tServerPort.setEditable(true);\r\n\t\t\t\tRegisterUsername.setEditable(true);\r\n\t\t\t\tRegisterPassword1.setEditable(true);\t\r\n\t\t\t\tRegisterPassword2.setEditable(true);\r\n\t\t\t\tbtnRegister.setEnabled(true);\r\n\t\t\t\tLoginbtn.setEnabled(true);\r\n\t\t\t\tLoginUsername.setEditable(true);\r\n\t\t\t\tLoginPassword.setEditable(true);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tMessagetext.setEditable(false);\r\n\t\t\t\tpmtextfield.setEditable(false);\r\n\t\t\t\tpmnickname.setEditable(false);\r\n\t\t\t\tbtnSendPrivateMessage.setEnabled(false);\r\n\t\t\t\tonlineradio.setEnabled(false);\r\n\t\t\t\tbusyradio.setEnabled(false);\r\n\t\t\t\tbtnLogout.setEnabled(false);\r\n\t\t\t\tbtnListOnlineUsers.setEnabled(false);\r\n\t\r\n\t\t\t\t\r\n\t\t\t\tLoginUsername.setText(\"\");\r\n\t\t\t\tLoginPassword.setText(\"\");\r\n\t\t\t\tChattextArea.setText(\"\");\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tonlineradio.setSelected(false);\r\n\t\t\t\tbusyradio.setSelected(false);\r\n\t\t\t\t\r\n\t\t\t\tif(Adminpanel.isVisible()){\r\n\t\t\t\t\tAdminpanel.setVisible(false);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tclient.sendMessage(\"logout\");\r\n\t\t\t\tclient.close();\r\n\t\t\t\tconnected = false;\r\n\t\t\t\t\r\n\t\t\t\tclient.clearPms();\r\n\t\t\t\t\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnLogout.setBounds(10, 156, 168, 33);\r\n\t\tStatuspanel.add(btnLogout);\r\n\t\tbtnLogout.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\t\r\n\t\tbtnListOnlineUsers = new JButton(\"List online users\");\r\n\t\tbtnListOnlineUsers.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tclient.sendMessage(\"listonlineusers\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnListOnlineUsers.setBounds(10, 83, 168, 33);\r\n\t\tStatuspanel.add(btnListOnlineUsers);\r\n\t\tbtnListOnlineUsers.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\t\r\n\t\tbtnRegister.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tserver = ServerAddress.getText();\r\n\t\t\t\tport = Integer.parseInt(ServerPort.getText());\r\n\t\t\t\t\r\n\t\t\t\tchar[] passwordchar1 = RegisterPassword1.getPassword();\r\n\t\t\t\tchar[] passwordchar2 = RegisterPassword2.getPassword();\r\n\t\t\t\t\r\n\t\t\t\tString username = RegisterUsername.getText();\r\n\t\t\t\tString password1 = String.valueOf(passwordchar1);\r\n\t\t\t\tString password2 = String.valueOf(passwordchar2);\r\n\t\t\t\t\r\n\t\t\r\n\t\t\t\tif (password1.equals(password2) && password1.length()>= 4){// if passwords are the same then...\r\n\t\t\t\t\tString registerd = client.register(server,port,username,password1);\r\n\t\t\t\t\tif(registerd.equals(\"registersuccess\")){\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"You have registered successfully\\n\" + \"Your nickname is: \" + username +\"\\n\" + \"Your password is: \" + password1, \"Register successful\",JOptionPane.INFORMATION_MESSAGE); \r\n\t\t\t\t\t\tRegisterUsername.setText(\"\");\r\n\t\t\t\t\t\tRegisterPassword1.setText(\"\");\r\n\t\t\t\t\t\tRegisterPassword2.setText(\"\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(registerd.equals(\"nicknameinuse\")){\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"Error, this nickname is already in use\", \"Register Error\",JOptionPane.ERROR_MESSAGE); // display error message\r\n\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}\r\n\t\t\t\telse{// if passwords are different then...\r\n\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"Register Error, Please re-enter passwords\", \"Register Error\",JOptionPane.ERROR_MESSAGE); // display error message\r\n\t\t\t\t\tRegisterPassword1.setText(\"\"); // clear textbox\r\n\t\t\t\t\tRegisterPassword2.setText(\"\"); // clear textbox\r\n\t\t\t\t}\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tLoginbtn.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tserver = ServerAddress.getText();\r\n\t\t\t\tport = Integer.parseInt(ServerPort.getText());\r\n\t\t\t\t\r\n\t\t\t\tString username = LoginUsername.getText();\t\r\n\t\t\t\t\r\n\t\t\t\tchar[] passwordchar = LoginPassword.getPassword();\r\n\t\t\t\tString password = String.valueOf(passwordchar);\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(!username.equals(\"\") && password.length() >= 4){ // if correct data is enterd then...\r\n\t\t\t\t\tChattextArea.setText(\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tString outcome = client.login(server,port,username,password);\r\n\t\t\t\t\tif(outcome.equals(\"loginsuccessfull\")){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tServerAddress.setEditable(false);\r\n\t\t\t\t\t\tServerPort.setEditable(false);\r\n\t\t\t\t\t\tRegisterUsername.setEditable(false);\r\n\t\t\t\t\t\tRegisterPassword1.setEditable(false);\t\r\n\t\t\t\t\t\tRegisterPassword2.setEditable(false);\r\n\t\t\t\t\t\tbtnRegister.setEnabled(false);\r\n\t\t\t\t\t\tLoginbtn.setEnabled(false);\r\n\t\t\t\t\t\tLoginUsername.setEditable(false);\r\n\t\t\t\t\t\tLoginPassword.setEditable(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\tMessagetext.setEditable(true);\r\n\t\t\t\t\t\tpmtextfield.setEditable(true);\r\n\t\t\t\t\t\tpmnickname.setEditable(true);\r\n\t\t\t\t\t\tbtnSendPrivateMessage.setEnabled(true);\r\n\t\t\t\t\t\tonlineradio.setEnabled(true);\r\n\t\t\t\t\t\tbusyradio.setEnabled(true);\r\n\t\t\t\t\t\tbtnLogout.setEnabled(true);\r\n\t\t\t\t\t\tbtnListOnlineUsers.setEnabled(true);\r\n\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tconnected = true;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tonlineradio.setSelected(true);\r\n\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\t\r\n\t\t\t\t\telse if(outcome.equals(\"adminloginsuccessfull\")){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tServerAddress.setEditable(false);\r\n\t\t\t\t\t\tServerPort.setEditable(false);\r\n\t\t\t\t\t\tRegisterUsername.setEditable(false);\r\n\t\t\t\t\t\tRegisterPassword1.setEditable(false);\t\r\n\t\t\t\t\t\tRegisterPassword2.setEditable(false);\r\n\t\t\t\t\t\tbtnRegister.setEnabled(false);\r\n\t\t\t\t\t\tLoginbtn.setEnabled(false);\r\n\t\t\t\t\t\tLoginUsername.setEditable(false);\r\n\t\t\t\t\t\tLoginPassword.setEditable(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tMessagetext.setEditable(true);\r\n\t\t\t\t\t\tpmtextfield.setEditable(true);\r\n\t\t\t\t\t\tpmnickname.setEditable(true);\r\n\t\t\t\t\t\tbtnSendPrivateMessage.setEnabled(true);\r\n\t\t\t\t\t\tonlineradio.setEnabled(true);\r\n\t\t\t\t\t\tbusyradio.setEnabled(true);\r\n\t\t\t\t\t\tbtnLogout.setEnabled(true);\r\n\t\t\t\t\t\tbtnListOnlineUsers.setEnabled(true);\r\n\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tAdminpanel.setVisible(true);\r\n\t\t\t\t\t\tonlineradio.setSelected(true);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tconnected = true;\r\n\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\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"Login Error, Wrong username or password\", \"Login Error\",JOptionPane.ERROR_MESSAGE); // display error message\r\n\r\n\t\t\t\t}\r\n\t\r\n\t\t\t}\r\n\t\t});\r\n\t\r\n\t\t\r\n\t}", "public MainFrame() {\n initComponents();\n \n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Gomaku - 5 In A Row\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(600, 600);\n\n //Add the ubiquitous \"Hello World\" label.\n JPanel board = new JPanel();\n board.setSize(400, 400);\n board.set\n frame.getContentPane().add(board);\n\n //Display the window.\n frame.setVisible(true);\n }", "public JFrame() {\n initComponents();\n }", "public MFrame() {\n this.setTitle(\"Sistema Punto de Venta\");\n this.setLocationRelativeTo(null);\n this.setSize(new Dimension(800,600));\n this.setResizable(true);\n this.setVisible(true);\n initComponents();\n this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n }", "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}", "private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \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 }" ]
[ "0.7470818", "0.7445639", "0.73425865", "0.72792226", "0.71570444", "0.7126538", "0.7083402", "0.7059509", "0.70467055", "0.7031341", "0.69990677", "0.69822735", "0.69767404", "0.6973358", "0.6970388", "0.69531614", "0.69133", "0.69060534", "0.6898173", "0.6887972", "0.68795633", "0.686624", "0.68641514", "0.6826697", "0.6821454", "0.6817318", "0.68025035", "0.6796103", "0.678749", "0.67849225", "0.67818624", "0.6775156", "0.6769341", "0.6765833", "0.6741952", "0.6741484", "0.6741417", "0.6724637", "0.67164564", "0.6713606", "0.6711075", "0.6705388", "0.6680774", "0.6676087", "0.66663677", "0.6662621", "0.66609085", "0.6660386", "0.66506714", "0.6649334", "0.664225", "0.66351694", "0.66296756", "0.6612433", "0.66090024", "0.6603721", "0.6600795", "0.65976447", "0.65954185", "0.6594844", "0.65943843", "0.658596", "0.6580059", "0.65736145", "0.65736073", "0.65703225", "0.6569621", "0.65681595", "0.6557571", "0.65575486", "0.65573007", "0.6554635", "0.6535791", "0.6529147", "0.65275824", "0.65225863", "0.651254", "0.6510467", "0.6508579", "0.65020895", "0.65005785", "0.6499222", "0.64970034", "0.6495674", "0.6495201", "0.64945215", "0.64795303", "0.647821", "0.64778155", "0.64778155", "0.64778155", "0.64778155", "0.64778155", "0.64778155", "0.64778155", "0.64778155", "0.64778155", "0.64778155", "0.64778155", "0.64778155" ]
0.65357685
73
Creates new form Login
public Login() { initComponents(); // Centra la ventana this.setLocationRelativeTo(null); // Cambia el ícono de la ventana de Login this.setIconImage(new ImageIcon(getClass().getResource("/imagenes/login.png")).getImage()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public loginForm() {\n initComponents();\n \n }", "public static Result login(){\n String username= Form.form().bindFromRequest().get(\"username\");\n String password= Form.form().bindFromRequest().get(\"password\");\n String new_user= Form.form().bindFromRequest().get(\"new_user\");\n if(new_user != null){\n return ok(login.render(username,password));\n } else {\n Skier s=Session.authenticate(username,password);\n if(s==null){\n return badRequest(index.render(\"Invalid Username or Password\"));\n } else {\n login(s);\n return redirect(\"/home\");\n }\n }\n }", "@GetMapping(\"/loginForm\")\n\t\tpublic String login() {\n\t\t\treturn\"user/loginForm\";\n\t\t}", "public login() {\n initComponents();\n \n \n }", "public Form getLoginForm() {\n if (LoginForm == null) {//GEN-END:|14-getter|0|14-preInit\n // write pre-init user code here\n LoginForm = new Form(\"Welcome\", new Item[]{getTextField()});//GEN-BEGIN:|14-getter|1|14-postInit\n LoginForm.addCommand(getExitCommand());\n LoginForm.addCommand(getOkCommand());\n LoginForm.setCommandListener(this);//GEN-END:|14-getter|1|14-postInit\n // write post-init user code here\n }//GEN-BEGIN:|14-getter|2|\n return LoginForm;\n }", "public login() {\n initComponents();\n }", "public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "public LoginForm() {\n initComponents();\n }", "public Login() \n {\n super();\n create();\n this.setVisible(true);\n initComponents();\n }", "public Login() {\n initComponents();\n \n }", "public LoginController(LoginForm form) {this.loginForm = form;}", "public Login() {\n initComponents();\n \n }", "private void genLoginGui(){\n loginFrame = new JFrame(\"Log in\");\n\n // login panel, inputs name\n loginPanel = new JPanel();\n loginPanel.setLayout(new FlowLayout());\n nameLabel = new JLabel(\"Name\");\n nameTextFiled = new JTextField();\n nameTextFiled.setPreferredSize(new Dimension(100, 20));\n nameTextFiled.addActionListener(clientAction);\n nameTextFiled.setActionCommand(\"ENTERROOM\");\n\n btnEnterRoom = new JButton(\"Enter Room\");\n btnEnterRoom.addActionListener(clientAction);\n btnEnterRoom.setActionCommand(\"ENTERROOM\");\n\n loginPanel.add(nameLabel);\n loginPanel.add(nameTextFiled);\n loginPanel.add(btnEnterRoom);\n\n loginFrame.add(loginPanel, BorderLayout.CENTER);\n\n loginFrame.setSize(700, 500);\n loginFrame.setLocation(0, 200);\n loginFrame.add(loginPanel);\n loginFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n loginFrame.setVisible(true);\n }", "public LOGINFORMF() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n inicializarUsuarios();\n }", "Login() { \n }", "public FormLogin() {\n initComponents();\n open_db();\n setLocationRelativeTo(this);\n }", "public Login() {\n initComponents();\n KiemTraKN();\n }", "public Login() {\n initComponents();\n this.setTitle(\"Login\");\n this.setLocationRelativeTo(null);\n this.pack();\n // Asignanado objecto\n adminUsers = new usuarioAdmin();\n \n // No hay inicializacion de usuarios\n sys.us[0] = new Usuario();\n sys.us[0].setId(\"admin\");\n sys.us[0].setNombre(\"admin\");\n sys.us[0].setApellido(\"admin\");\n sys.us[0].setUser(\"admin\");\n sys.us[0].setPassword(\"admin\");\n sys.us[0].setRol(\"admin\");\n }", "protected void login() {\n\t\t\r\n\t}", "public void loginBuilder(){\n loginFrame = new JFrame(\"Coronos Login\");\n loginFrame.setLayout(new GridLayout(3, 1));\n\n jpUserName = new JPanel(new FlowLayout());\n jtfUserNameField = new JTextField(10);\n userNameLabel = new JLabel(\"Username:\");\n userNameLabel.setLabelFor(jtfUserNameField);\n jpUserName.add(userNameLabel);\n jpUserName.add(jtfUserNameField);\n loginFrame.add(jpUserName);\n \n jpPassWord = new JPanel(new FlowLayout());\n passWordField = new JPasswordField(10);\n passWordLabel = new JLabel(\"Password:\");\n passWordField.addActionListener(this);\n passWordField.setActionCommand(\"Login\");\n passWordLabel.setLabelFor(passWordField);\n jpPassWord.add(passWordLabel);\n jpPassWord.add(passWordField);\n loginFrame.add(jpPassWord);\n \n jpOptions = new JPanel(new FlowLayout());\n loginButton = new JButton(\"Login\");\n loginButton.addActionListener(this);\n showPassword = new JButton(\"Reveal Password\");\n showPassword.addActionListener(this);\n jpOptions.add(loginButton);\n jpOptions.add(showPassword);\n loginFrame.add(jpOptions);\n \n loginFrame.setLocationRelativeTo(null);\n loginFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n loginFrame.setVisible(true);\n loginFrame.pack();\n }", "public login() {\r\n\t\tsuper();\r\n\t}", "@RequestMapping(\"/login\")\r\n\tpublic ModelAndView login(@Valid @ModelAttribute(\"loginForm\") final UserLoginForm form,\r\n\t\t\tfinal BindingResult errors) {\r\n\t\treturn new ModelAndView(\"users/login\");\r\n\t}", "void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }", "public Login() {\n initComponents();\n hideregister ();\n }", "public pageLogin() {\n initComponents();\n labelimage.setBorder(new EmptyBorder(0,0,0,0));\n enterButton.setBorder(null);\n enterButton.setContentAreaFilled(false);\n enterButton.setVisible(true);\n usernameTextField.setText(\"Username\");\n usernameTextField.setForeground(new Color(153,153,153));\n passwordTextField.setText(\"Password\");\n passwordTextField.setForeground(new Color(153,153,153));\n usernameAlert.setText(\" \");\n passwordAlert.setText(\" \");\n \n }", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "public Login() {\n\t\tsuper();\n\t}", "public Login() {\n\t\tinitComponents();\n\t\tthis.setTitle(\"学生成绩管理系统-登录\");\n\t\tthis.setResizable(false);\n\t\tthis.setLocationRelativeTo(null);\n\t}", "public Login(){\n\t\tthis.setTitle(\"DSI | Sokoban\");\n\t\tvalido = false;\n\t\tthis.getContentPane().setLayout(new FlowLayout());\n\t\tcrearLabels();\n\t\tcrearBotones();\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setPreferredSize(new Dimension(250, 200));\n\t\tthis.pack();\n\t\tthis.setResizable(false);\n\t\tthis.setVisible(true);\n\t\tthis.setLocationRelativeTo(null);\n\t}", "public LoginFormBean() {\r\n \r\n }", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "@RequestMapping(value = \"/user/loginForm\", method = RequestMethod.GET)\n\tpublic ModelAndView loginForm(HttpServletRequest request) {\n\t\tlog.debug(\"User login\");\n\t\tString communityId = \"-1\";\n\t\tModelAndView model=new ModelAndView(\"form/login\",\"command\",new User()); \n\t\tmodel.addObject(\"selectedCommunity\", communityId);\n\t\treturn model; \n\t}", "public LogarSistema(FormListaContatos form) {\n initComponents();\n this.formContatos = form;\n tfLogin.requestFocus();\n }", "public LoginFormView() {\n initComponents();\n }", "public void premutoLogin()\n\t{\n\t\tnew _FINITO_funzione_loginGUI();\n\t}", "private Component createLogin() {\n CustomLayout custom = new CustomLayout(\"../../sampler/layouts/examplecustomlayout\");\n\n // Create components and bind them to the location tags\n // in the custom layout.\n username = new TextField();\n custom.addComponent(username, \"username\");\n\n password = new PasswordField();\n custom.addComponent(password, \"password\");\n\n Button ok = new Button(\"Login\");\n custom.addComponent(ok, \"okbutton\");\n\n // Add login listener\n ok.addListener(this);\n\n return custom;\n\n }", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "public LoginFarmacia() {\n initComponents();\n }", "public TelaLogin() {\n initComponents();\n }", "public TelaLogin() {\n initComponents();\n }", "@Override\n\tpublic ActionResult login(PortalForm form, HttpServletRequest request) throws SQLException {\n\t\treturn null;\n\t}", "public JanelaLogin() {\n \t\n \tConexao c = new Conexao();\n \t\n \t\n initComponents();\n }", "public T01Login() {\n initComponents();\n btnMenu.setVisible(false);\n }", "protected Response login() {\n return login(\"\");\n }", "public Login() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public frm_LoginPage() {\n initComponents();\n setIcon();\n txt_userName.setText(\"\");\n txt_userName.requestFocus();\n password_password.setText(\"\");\n }", "public LoginProfesor() {\n initComponents();\n }", "public static void loginForm(final LinearLayout login_form, final Context context) {\n TextView registration_link = (TextView) login_form.findViewById(R.id.registration);\n registration_link.setPaintFlags(registration_link.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);\n registration_link.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(Config.context, CreateAccountActivity.class);\n Config.context.startActivity(intent);\n }\n });\n\n /* reset password link handler */\n TextView reset_link = (TextView) login_form.findViewById(R.id.reset_password);\n reset_link.setPaintFlags(reset_link.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);\n reset_link.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(Config.context, ResetPasswordActivity.class);\n Config.context.startActivity(intent);\n }\n });\n\n /* fix the password field font */\n final EditText password = (EditText) login_form.findViewById(R.id.password);\n password.setTypeface(Typeface.DEFAULT);\n\n if (Utils.getCacheConfig(\"account_login_mode\").equals(\"email\")) {\n EditText username = (EditText) login_form.findViewById(R.id.username);\n username.setHint(Lang.get(\"android_hint_email\"));\n }\n\n /* login button handler */\n Button login_button = (Button) login_form.findViewById(R.id.login);\n login_button.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n boolean error = false;\n\n /* validate fields */\n EditText username = (EditText) login_form.findViewById(R.id.username);\n if (username.getText().toString().isEmpty()) {\n username.setError(Lang.get(\"no_field_value\"));\n error = true;\n }\n\n if (password.getText().toString().isEmpty()) {\n password.setError(Lang.get(\"no_field_value\"));\n error = true;\n }\n\n if (!error) {\n final String passwordHash = password.getText().toString();\n\n /* show progressbar */\n final ProgressDialog login_progress = ProgressDialog.show(Config.context, null, Lang.get(\"loading\"));\n\n /* build request url */\n HashMap<String, String> params = new HashMap<String, String>();\n params.put(\"username\", username.getText().toString());\n params.put(\"password\", passwordHash);\n final String url = Utils.buildRequestUrl(\"loginAttempt\", params, null);\n\n /* do request */\n AsyncHttpClient client = new AsyncHttpClient();\n client.get(url, new AsyncHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] server_response) {\n // called when response HTTP status is \"200 OK\"\n try {\n String response = String.valueOf(new String(server_response, \"UTF-8\"));\n login_progress.dismiss();\n /* parse xml response */\n XMLParser parser = new XMLParser();\n Document doc = parser.getDomElement(response, url);\n\n if (doc == null) {\n Dialog.simpleWarning(Lang.get(\"returned_xml_failed\"), context);\n } else {\n NodeList accountNode = doc.getElementsByTagName(\"account\");\n Element element = (Element) accountNode.item(0);\n\n /* list of status to offer \"Contact Us\" page */\n String status = Utils.getNodeByName(element, \"status\");\n String[] tmp_status = {\"approval\", \"pending\", \"trash\"};\n List<String> contact_status = Utils.string2list(tmp_status);\n\n /* error */\n if (status.equals(\"error\")) {\n Dialog.simpleWarning(Lang.get(\"dialog_login_error\"), context);\n password.setText(\"\");\n } else if (status.equals(\"incomplete\")) {\n Dialog.simpleWarning(Lang.get(\"dialog_login_\" + status + \"_info\"), context);\n }\n /* status matched contact us message logic */\n else if (contact_status.indexOf(status) >= 0) {\n DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Config.context, SendFeedbackActivity.class);\n intent.putExtra(\"selection\", \"contact_us\");\n Config.context.startActivity(intent);\n }\n };\n\n Dialog.CustomDialog(Lang.get(\"dialog_login_\" + status), Lang.get(\"dialog_login_\" + status + \"_info\"), context, listener);\n }\n\n /* do login if account */\n if (!Utils.getNodeByName(element, \"id\").isEmpty()) {\n /* hide keyboard */\n Utils.hideKeyboard(login_form.findFocus());\n\n confirmLogin(accountNode);\n }\n }\n\n } catch (UnsupportedEncodingException e1) {\n\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n // called when response HTTP status is \"4XX\" (eg. 401, 403, 404)\n }\n });\n }\n }\n });\n\n /* fb button handler */\n String facebook_id = Config.context.getString(R.string.app_id);\n if (Utils.getCacheConfig(\"facebookConnect_plugin\").equals(\"1\") && !facebook_id.isEmpty()) {\n LoginButton fbLogin = (LoginButton) login_form.findViewById(R.id.fbLogin);\n fbLogin.setCompoundDrawablesWithIntrinsicBounds(null, null, null, null);\n\n /* set related items visible */\n fbLogin.setVisibility(View.VISIBLE);\n login_form.findViewWithTag(\"fbview\").setVisibility(View.VISIBLE);\n\n callbackManager = CallbackManager.Factory.create();\n\n fbLogin.setReadPermissions(Arrays.asList(\"public_profile\", \"email\"));\n fbLogin.registerCallback(callbackManager, new FacebookCallback<LoginResult>() {\n\n @Override\n public void onSuccess(LoginResult loginResult) {\n GraphRequest request = GraphRequest.newMeRequest(loginResult.getAccessToken(),\n new GraphRequest.GraphJSONObjectCallback() {\n\n @Override\n public void onCompleted(JSONObject object, GraphResponse response) {\n // Application code\n\t\t\t\t\t\t\t\t\t/*Boolean ver = Boolean.parseBoolean(object.optString(\"verified\"));\n\t\t\t\t\t\t\t\t\tif ( !ver ) {\n\t\t\t\t\t\t\t\t\t\tDialog.simpleWarning(Lang.get(\"facebook_not_verified\"), context);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse */\n if (object != null) {\n final HashMap<String, String> formData = new HashMap<String, String>();\n formData.put(\"username\", object.optString(\"name\"));\n formData.put(\"password\", \"will-be-generated\");\n formData.put(\"email\", object.optString(\"email\"));\n formData.put(\"account_type\", \"will-be-set\");\n formData.put(\"fb_id\", object.optString(\"id\"));\n formData.put(\"first_name\", object.optString(\"first_name\"));\n formData.put(\"last_name\", object.optString(\"last_name\"));\n\n /* show progressbar */\n final ProgressDialog progress = ProgressDialog.show(Config.context, null, Lang.get(\"loading\"));\n\n /* do request */\n AsyncHttpClient client = new AsyncHttpClient();\n client.setTimeout(30000); // set 30 seconds for this task\n\n final String url = Utils.buildRequestUrl(\"createAccount\");\n client.post(url, Utils.toParams(formData), new AsyncHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] server_response) {\n // called when response HTTP status is \"200 OK\"\n try {\n String response = String.valueOf(new String(server_response, \"UTF-8\"));\n /* hide progressbar */\n progress.dismiss();\n\n /* parse xml response */\n XMLParser parser = new XMLParser();\n Document doc = parser.getDomElement(response, url);\n\n if (doc == null) {\n Dialog.simpleWarning(Lang.get(\"returned_xml_failed\"), context);\n } else {\n NodeList errorsNode = doc.getElementsByTagName(\"errors\");\n\n /* handle errors */\n if (errorsNode.getLength() > 0) {\n Element element = (Element) errorsNode.item(0);\n NodeList errors = element.getChildNodes();\n\n if (errors.getLength() > 0) {\n Element error = (Element) errors.item(0);\n String key_error = error.getTextContent();\n if (key_error.equals(\"fb_email_exists\")) {\n checkFbPassword(formData, context);\n } else {\n Dialog.simpleWarning(Lang.get(key_error), context);\n }\n LoginManager.getInstance().logOut();\n }\n }\n /* process login */\n else {\n NodeList accountNode = doc.getElementsByTagName(\"account\");\n confirmLogin(accountNode);\n }\n }\n\n } catch (UnsupportedEncodingException e1) {\n\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n // called when response HTTP status is \"4XX\" (eg. 401, 403, 404)\n }\n });\n } else {\n Log.d(\"FD\", \"FB connect no user\");\n }\n }\n });\n Bundle parameters = new Bundle();\n parameters.putString(\"fields\", \"id,name,email,gender,first_name,last_name,verified,birthday\");\n request.setParameters(parameters);\n request.executeAsync();\n\n }\n\n @Override\n public void onCancel() {\n\n }\n\n @Override\n public void onError(FacebookException e) {\n\n }\n });\n }\n }", "public Page_Home doDefaultLogin() {\n\t\tLogStatus.info(\"Logging in with username :: \\'\" + TestUtils.getValue(\"username\") + \"\\' and password :: \\'\"\n\t\t\t\t+ TestUtils.getValue(\"password\") + \"\\'\");\n\t\tDriverManager.getDriver().findElement(By.name(\"username\")).sendKeys(TestUtils.getValue(\"username\"));\n\t\tDriverManager.getDriver().findElement(By.name(\"password\")).sendKeys(TestUtils.getValue(\"password\"));\n\t\tDriverManager.getDriver().findElement(By.id(\"Registration Desk\")).click();\n\t\tDriverManager.getDriver().findElement(By.id(\"loginButton\")).click();\n\n\t\treturn new Page_Home();\n\n\t}", "public Login() {\r\n\t\tinitialize();\r\n\t}", "public void LoginButton() {\n\t\t\r\n\t}", "public Login() {\n initComponents();\n lblstar.setVisible(false); // hide the red star that indicates that the user didnt fill in a form\n lblstar1.setVisible(false);\n }", "public Login() {\n }", "private void submitForm() {\n // Build list params\n List<NameValuePair> list = new ArrayList<>();\n list.add(new BasicNameValuePair(\"tag\", AppConfig.TAG_LOGIN));\n list.add(new BasicNameValuePair(\"username\", editTextLogin.getText().toString()));\n list.add(new BasicNameValuePair(\"password\", editTextPassword.getText().toString()));\n\n ConnectionTask connectionTask = new ConnectionTask(this, list);\n connectionTask.execute();\n }", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "public Accountant_login() {\n initComponents();\n }", "@RequestMapping(method = RequestMethod.GET)\n \tpublic String createForm(Model model, ForgotLoginForm form) {\n \t\tmodel.addAttribute(\"form\", form);\n \t\treturn \"forgotlogin/index\";\n \t}", "public Login() {\n\n }", "public static void main(String[] args) {\n\t\tLoginForm lform = new LoginForm();\r\n\t\t\r\n\t}", "public Login() {\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\tsetTitle(\"Login\");\r\n\t\tsetResizable(false);\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetSize(300,380);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\t\t\r\n\t\ttxtName = new JTextField();\r\n\t\ttxtName.setBounds(48, 66, 197, 20);\r\n\t\tcontentPane.add(txtName);\r\n\t\ttxtName.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Name\");\r\n\t\tlblNewLabel.setFont(new Font(\"Times New Roman\", Font.BOLD, 11));\r\n\t\tlblNewLabel.setBounds(124, 41, 46, 14);\r\n\t\tcontentPane.add(lblNewLabel);\r\n\t\t\r\n\t\ttxtIp = new JTextField();\r\n\t\ttxtIp.setBounds(48, 174, 197, 20);\r\n\t\tcontentPane.add(txtIp);\r\n\t\ttxtIp.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblIpAddress = new JLabel(\"IP Address\");\r\n\t\tlblIpAddress.setFont(new Font(\"Times New Roman\", Font.BOLD, 11));\r\n\t\tlblIpAddress.setBounds(102, 134, 74, 14);\r\n\t\tcontentPane.add(lblIpAddress);\r\n\t\t\r\n\t\tJButton btnLogin = new JButton(\"Login\");\r\n\t\tbtnLogin.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\t name = txtName.getText();\r\n\t\t\t\t ip=txtIp.getText();\r\n\t\t\t\t \r\n\t\t\t\t\r\n\t\t\t\tlogin();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnLogin.setBounds(102, 248, 89, 23);\r\n\t\tcontentPane.add(btnLogin);\r\n\t}", "public String login() {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n return \"/index?faces-redirect=true\";\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/pages/login.xhtml\";\n }", "public ControladorLogin() { }", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "public Login()\r\n\t{\r\n\t\tthis.name=name;\r\n\t\tthis.dob=dob;\r\n\t\tthis.nationality=nationality;\r\n\t\tthis.location=location;\r\n\t\tthis.phno=phno;\r\n\t\tthis.gender=gender;\r\n\t\tthis.jobtype=jobtype;\r\n\t\tthis.experience=experience;\r\n\t\tthis.salary=salary;\r\n\t\t\r\n\t\tthis.uname=uname;\r\n\t\tthis.password=password;\r\n\t\t\r\n\t\tthis.notification=notification;\r\n\t}", "public AdminLogin() {\n initComponents();\n }", "public Login() {\n initComponents();\n this.setTitle(\"Login\");\n setLocationRelativeTo(null);\n }", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "@AutoGenerated\r\n\tprivate Panel buildPnlLogin() {\n\t\tpnlLogin = new Panel();\r\n\t\tpnlLogin.setImmediate(false);\r\n\t\tpnlLogin.setWidth(\"-1px\");\r\n\t\tpnlLogin.setHeight(\"500px\");\r\n\t\t\r\n\t\t// layoutLogin\r\n\t\tlayoutLogin = buildLayoutLogin();\r\n\t\tpnlLogin.setContent(layoutLogin);\r\n\t\t\r\n\t\treturn pnlLogin;\r\n\t}", "public static void login() {\n\t\trender();\n\t}", "public login() {\n initComponents();\n setTitle(\"COLLAGE MANAGEMENT SYSTEM\");\n }", "void registerNewUser(String login, String name, String password, String matchingPassword,\n String email);", "private void makeLogin() {\n if (enableLoginActivity && mAuth.getCurrentUser() == null) {\n startActivity(new Intent(MainActivity.this, LoginActivity.class));\n finish();\n }\n else if (!enableLoginActivity) {\n user = new User(\"johnDoe\", \"[email protected]\", \"1234\");\n }\n }", "@RequestMapping(value = \"/login\", method = RequestMethod.GET)\n\tpublic String loginForm() {\n\t\treturn \"login\";\n\t}", "public SLogin() {\r\n initComponents();\r\n }", "@RequestMapping(value = \"\", method = RequestMethod.POST)\n public String login(@ModelAttribute @Valid LoginForm loginForm, Errors errors, HttpServletRequest request, Model model) {\n\n if (errors.hasErrors()) {\n model.addAttribute(\"title\", \"Login\");\n return \"login/index\";\n }\n\n User theUser = userDao.findByUsername(loginForm.getUsername());\n String password = loginForm.getPassword();\n\n if (theUser == null) {\n errors.rejectValue(\"username\", \"user.invalid\", \"The given username does not exist\");\n model.addAttribute(\"sessionActive\", isSessionActive(request.getSession()));\n model.addAttribute(\"title\", \"Login\");\n return \"login/index\";\n }\n\n if (!theUser.isMatchingPassword(password)) {\n errors.rejectValue(\"password\", \"password.invalid\", \"Invalid password\");\n model.addAttribute(\"sessionActive\", isSessionActive(request.getSession()));\n model.addAttribute(\"title\", \"Login\");\n return \"login/index\";\n }\n\n setUserInSession(request.getSession(), theUser);\n\n return \"redirect:/home\";\n }", "public MainPage submitForm() {\n LOGGER.info(\"Clicked the button 'LOGIN'\");\n clickOnElement(loginButtonLocator);\n return MainPage.Instance;\n }", "public LoginPage goToLoginPage() {\n loginButton.click();\n return new LoginPage();\n }", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "@GetMapping(\"login\")\n public String loginForm(Model model){\n model.addAttribute(\"user\", new User());\n return \"login_form\";\n }", "private LoginMenu() {\n\n\t\t\n\t\t/**\n\t\t * Fenêtre positionnée comme tableau de ligne/colonne avec un espace en hauteur\n\t\t * et largeur\n\t\t **/\n\n\t\tmenuLogin = new JPanel(new GridLayout(2, 1, 0, 0));\n\t\tmenuLogin.setBackground(new Color(200, 100, 100));\n\n\t\t/**\n\t\t * Ajout du login et mot de passe via un tableau\n\t\t **/\n\n\t\tmenuLogin.add(InitialisationDuMenu());\n\t\tmenuLogin.add(InitDesBouttons());\n\t}", "private void adminLogin() {\n\t\tdriver.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t}", "public Login() {\n initComponents();\n txtAccountStatus.setVisible(false); \n showDate(); // Class para sa Date\n showTime(); // Class para sa Time\n }", "private void login() {\r\n\r\n if (String.valueOf(login_usernameTextField.getText()).equals(\"\"))\r\n JOptionPane.showMessageDialog\r\n (null, \"Must Enter A Username\");\r\n\r\n else if (String.valueOf(login_passwordField.getPassword()).equals(\"\"))\r\n JOptionPane.showMessageDialog\r\n (null, \"Must Enter A Password\");\r\n\r\n else if (MainGUI.pimsSystem.staff_exists(login_usernameTextField.getText(), String.valueOf(login_passwordField.getPassword()))) {\r\n remove(loginPanel);\r\n add(tabbedPane);\r\n JOptionPane.showMessageDialog\r\n (null, \"Login Successful\");\r\n repaint();\r\n revalidate();\r\n\r\n // reset username and password fields\r\n login_usernameTextField.setText(\"\");\r\n login_passwordField.setText(\"\");\r\n\r\n } else\r\n JOptionPane.showMessageDialog\r\n (null, \"Invalid Password or Username\");\r\n }" ]
[ "0.7087889", "0.69521654", "0.68040574", "0.6786566", "0.6757266", "0.67409855", "0.6692699", "0.66887593", "0.66297597", "0.66144294", "0.6594864", "0.6585462", "0.6571206", "0.652989", "0.6512904", "0.6512904", "0.6512904", "0.6512904", "0.6512904", "0.6512904", "0.6512904", "0.6512904", "0.6512904", "0.6512904", "0.6512904", "0.6512904", "0.6512904", "0.6512904", "0.6512904", "0.6512904", "0.6511106", "0.6493877", "0.64888525", "0.6470119", "0.6451736", "0.64463544", "0.64460826", "0.643301", "0.6430326", "0.6427466", "0.6391508", "0.63852894", "0.63684475", "0.63573116", "0.6349549", "0.63357174", "0.6334666", "0.6316488", "0.6316122", "0.62930346", "0.62921256", "0.62838525", "0.62787145", "0.6275789", "0.6255799", "0.62498945", "0.6231828", "0.6231828", "0.6230601", "0.6228116", "0.62280226", "0.6227178", "0.62198436", "0.62123543", "0.6199966", "0.6195959", "0.6195013", "0.61878127", "0.6186794", "0.61863106", "0.6185669", "0.6184402", "0.61804533", "0.6172571", "0.6163104", "0.61630136", "0.6161118", "0.61541694", "0.61526215", "0.6127155", "0.61247045", "0.61190766", "0.6114593", "0.6114388", "0.61124504", "0.61084765", "0.61030304", "0.6093278", "0.60842264", "0.60815674", "0.6080996", "0.60735124", "0.6052404", "0.60505736", "0.6050076", "0.6048118", "0.6046352", "0.60428697", "0.60428697", "0.60423005", "0.6042082" ]
0.0
-1
Creates new form NewJFrame
public menu_utama() { initComponents(); this.setLocationRelativeTo(null); jPanel11.setVisible(false); jPanel11.setEnabled(false); getjam(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NewJFrame() {\n Connect();\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n \n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\r\n initComponents();\r\n }", "public NewJFrame()\r\n {\r\n initComponents();\r\n }", "public NewJFrame() {\n initComponents();\n\n }", "public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }", "public NewJFrame1() {\n initComponents();\n }", "public NewJFrame1(NewJFrame n) {\n main = n;\n initComponents();\n winOpen();\n setLocationFrame();\n this.setVisible(true);\n }", "public NewJFrame() {\n initComponents();\n // HidenLable.setVisible(false);\n }", "public void newWindow() {\n\t\tJMenuTest frame1 = new JMenuTest();\n\t\tframe1.setBounds(100, 100, 400, 400);\n\t\tframe1.setVisible(true);\n\t}", "public NewFrame() {\n initComponents();\n }", "public xinxiNewJFrame() {\n initComponents();\n }", "public NewJFrame1() {\n initComponents();\n\n dip();\n sh();\n }", "public NewJFrame17() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }", "public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "public NewJFrame() {\n \n this.setIconImage(img.getImage());\n initComponents();\n \n }", "private JFrame showNewFrame(String title) {\n\t\tJFrame f = new JFrame();\n\t\tf.setTitle(title);\n\t\tf.setSize(400, 500);\n\t\tf.setLocationRelativeTo(null);\n\t\tf.setVisible(true);\n\t\treturn f;\n\t}", "public NewJFrame() {\n initComponents();\n mcam.setLineWrap(true);\n\n }", "public void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n\tif(open==0)\n\t\tframe = new JFrame(\"Open a file\");\n\telse if(open ==1)\n\t\tframe = new JFrame(\"Save file as\");\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane =this ;\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n // frame.setSize(500,500);\n//\tvalidate();\n }", "public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(icon.getImage());\n\t\t\n\t\tGui gui = new Gui();\n\t\t\n\t\tgui.setOpaque(true);\n\t\tfoodFrame.setContentPane(gui);\n\t\t\n\t\tfoodFrame.setVisible(true);\n\t}", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n \n\n}\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new NewJFrame1().setVisible(true);\n }\n });\n }", "private void makeFrame(){\n frame = new JFrame(\"Rebellion\");\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setSize(800,800);\n\n makeContent(frame);\n\n frame.setBackground(Color.getHSBColor(10,99,35));\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }", "private JFrame getJFrame() {\n\t\tif (jFrame == null) {\n\t\t\tjFrame = new JFrame();\n\t\t\tjFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tjFrame.setJMenuBar(getJJMenuBar());\n\t\t\tjFrame.setSize(400, 200);\n\t\t\tjFrame.setContentPane(getJContentPane());\n\t\t\tjFrame.setTitle(\"Mancala\");\n\t\t}\n\t\treturn jFrame;\n\t}", "private static void createGUI(){\r\n\t\tframe = new JFrame(\"Untitled\");\r\n\r\n\t\tBibtexImport bib = new BibtexImport();\r\n\t\tbib.setOpaque(true);\r\n\r\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tframe.setContentPane(bib);\r\n\t\tframe.setJMenuBar(bib.menu);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \n }", "public abstract void newWindow(ReFrame newFrame);", "void doNew() {\r\n\t\t\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, true);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\tsetTitle(TITLE);\r\n\t\t\tcreatePlanetSurface(dlg.width, dlg.height);\r\n\t\t\trenderer.repaint();\r\n\t\t\tsaveSettings = null;\r\n\t\t\tundoManager.discardAllEdits();\r\n\t\t\tsetUndoRedoMenu();\r\n\t\t}\r\n\t}", "private static void createAndShowGUI() {\n\t\t/*\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorldSwing\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the ubiquitous \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World\");\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n */\n\t\tfinal AC_GUI currentGUI = new AC_GUI();\n\t\t//currentGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tcurrentGUI.setSize(900, 800);\n\t\t// make the frame full screen\n\t\t// currentGUI.setExtendedState(JFrame.MAXIMIZED_BOTH);\n }", "private static void createAndShowGUI()\r\n {\r\n JFrame frame = new JFrame(\"ChangingTitleFrame Application\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(new FramePanel(frame).getPanel());\r\n frame.pack();\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n }", "private JFrame createFrame() {\n\t\tJFrame frmProfessorgui = new JFrame();\n\t\tfrmProfessorgui.getContentPane().setBackground(new Color(153, 204, 204));\n\t\tfrmProfessorgui.getContentPane().setForeground(SystemColor.desktop);\n\t\tfrmProfessorgui.setTitle(\"ProfessorGUI\");\n\t\tfrmProfessorgui.setBounds(100, 100, 600, 475);\n\t\tfrmProfessorgui.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmProfessorgui.getContentPane().setLayout(null);\n\n\n\t\t//List, ScrollPane and Button Components\n\t\tmodel = new DefaultListModel();\n\t\tsetList();\n\t\tlist = new JList(model);\n\t\tlist.setBackground(new Color(255, 245, 238));\n\t\tJScrollPane scrollPane = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tscrollPane.setBounds(10, 46, 293, 365);\n\t\tfrmProfessorgui.getContentPane().add(scrollPane);\n\n\t\tlist.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tlist.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\n\t\tcourse = new JButton(\"View Course\");\n\t\tcourse.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcourse.addActionListener(new profMainListener());\n\n\t\tcourse.setBounds(390, 207, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(course);\n\n\t\tcreate = new JButton(\"Create Course\");\n\t\tcreate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcreate.setBounds(390, 250, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(create);\n\t\tcreate.addActionListener(new profMainListener());\n\n\t\tactivate = new JButton(\"Activate\");\n\t\tactivate.addActionListener(new profMainListener()); \n\t\tactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tactivate.setBounds(390, 296, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(activate);\n\n\t\tdeactivate = new JButton(\"Deactivate\");\n\t\tdeactivate.addActionListener(new profMainListener());\n\n\t\tdeactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tdeactivate.setBounds(390, 340, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(deactivate);\n\n\n\t\t//Aesthetic Pieces\n\t\tJLabel lblCourseList = new JLabel(\"Course List\");\n\t\tlblCourseList.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblCourseList.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblCourseList.setBounds(21, 11, 261, 24);\n\t\tfrmProfessorgui.getContentPane().add(lblCourseList);\n\n\t\tJLabel lblWelcome = new JLabel(\"Welcome\");\n\t\tlblWelcome.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblWelcome.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblWelcome.setBounds(357, 49, 191, 46);\n\t\tfrmProfessorgui.getContentPane().add(lblWelcome);\n\n\t\tJLabel lblNewLabel = new JLabel(prof.getFirstName() + \" \" + prof.getLastName());\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.ITALIC, 16));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(335, 82, 239, 40);\n\t\tfrmProfessorgui.getContentPane().add(lblNewLabel);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\t\tpanel.setBackground(new Color(204, 255, 255));\n\t\tpanel.setBounds(367, 178, 174, 213);\n\t\tfrmProfessorgui.getContentPane().add(panel);\n\n\t\treturn frmProfessorgui;\n\t}", "public static void showNew() {\n\t\tif (DIALOG == null) {\n\t\t\tDIALOG = new NewDialog();\n\t\t}\n\t\tDIALOG.setVisible(true);\n\t\tDIALOG.toFront();\n\t}", "private static void createAndShowGUI() {\n\n frame = new JFrame(messages.getString(\"towers.of.hanoi\"));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n addComponentsToPane(frame.getContentPane());\n frame.pack();\n frame.setSize(800, 600);\n frame.setVisible(true);\n }", "private void makeGUI()\n {\n mainFrame = new JFrame();\n mainFrame.setPreferredSize(new Dimension(750,400));\n aw = new AccountWindow();\n mainFrame.add(aw);\n mainFrame.setVisible(true);\n mainFrame.pack();\n }", "private static void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"WAR OF MINE\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new Gameframe();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.setSize(800,1000);\n frame.setVisible(true);\n }", "public NewJFrame() {\n initComponents();\n audioObject = new PlayAudio();\n setExtendedState(MAXIMIZED_BOTH);\n initTracks(); \n this.setVisible(true);\n jDialog1.setVisible(true);\n }", "private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame();\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(500, 500);\n\t\tframe.setLocationRelativeTo(null);\n\n\t\tResultLeftView view = new ResultLeftView();\n\t\tframe.setContentPane(view);\n\t\t//Display the window.\n\t\tframe.setVisible(true);\n\t}", "Frame createFrame();", "static public void make() {\n\t\tif (window != null)\n\t\t\treturn;\n\n\t\twindow = new JFrame();\n\t\twindow.setTitle(\"Finecraft\");\n\t\twindow.setMinimumSize(new Dimension(500, 300));\n\t\twindow.setSize(asInteger(WINDOW_WIDTH), asInteger(WINDOW_HEIGHT));\n\t\twindow.setResizable(asBoolean(WINDOW_RESIZE));\n\t\twindow.setLocationRelativeTo(null);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Gomaku - 5 In A Row\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(600, 600);\n\n //Add the ubiquitous \"Hello World\" label.\n JPanel board = new JPanel();\n board.setSize(400, 400);\n board.set\n frame.getContentPane().add(board);\n\n //Display the window.\n frame.setVisible(true);\n }", "protected void do_mntmStartNewForm_actionPerformed(ActionEvent arg0) {\n\t\tthis.dispose();\n\t\tmain(null);\n\t}", "static void abrir() {\n frame = new ModificarPesos();\n //Create and set up the window.\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n //Set up the content pane.\n frame.addComponentsToPane(frame.getContentPane());\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}", "public createNew(){\n\t\tsuper(\"Create\"); // title for the frame\n\t\t//layout as null\n\t\tgetContentPane().setLayout(null);\n\t\t//get the background image\n\t\ttry {\n\t\t\tbackground =\n\t\t\t\t\tnew ImageIcon (ImageIO.read(getClass().getResource(\"Wallpaper.jpg\")));\n\t\t}//Catch for file error\n\t\tcatch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t}\n\t\t//Initialize all of the compenents \n\t\tlblBackground = new JLabel (background);\n\t\tlblTitle = new JLabel (\"Create Menu\");\n\t\tlblTitle.setFont(new Font(\"ARIAL\",Font.ITALIC, 30));\n\t\tlblName = new JLabel(\"Please Enter Your First Name.\");\n\t\tlblLastName= new JLabel (\"Please Enter Your Last Name.\");\n\t\tlblPhoneNumber = new JLabel (\"Please Enter Your Phone Number.\");\n\t\tlblAddress = new JLabel (\"Please Enter Your Address.\");\n\t\tlblMiddle = new JLabel (\"Please Enter Your Middle Name (Optional).\");\n\t\tbtnCreate = new JButton (\"Create\");\n\t\tbtnBack = new JButton (\"Back\");\n\t\t//set the font\n\t\tlblName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblLastName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblPhoneNumber.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblAddress.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblMiddle.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\n\t\t//add action listener\n\t\tbtnCreate.addActionListener(this);\n\t\tbtnBack.addActionListener(this);\n\t\t//set bounds for all the components\n\t\tbtnCreate.setBounds(393, 594, 220, 36);\n\t\ttxtMiddle.setBounds(333, 249, 342, 36);\n\t\ttxtName.setBounds(333, 158, 342, 36);\n\t\ttxtLastName.setBounds(333, 339, 342, 36);\n\t\ttxtPhoneNumber.setBounds(333, 429, 342, 36);\n\t\ttxtAddress.setBounds(333, 511, 342, 36);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblMiddle.setBounds(333, 201, 342, 36);\n\t\tlblName.setBounds(387, 110, 239, 36);\n\t\tlblLastName.setBounds(387, 297, 239, 36);\n\t\tlblPhoneNumber.setBounds(369, 387, 269, 36);\n\t\tlblAddress.setBounds(393, 477, 215, 30);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblBackground.setBounds(0, 0, 1000, 1000);\n\t\t//add components to frame\n\t\tgetContentPane().add(btnCreate);\n\t\tgetContentPane().add(txtMiddle);\n\t\tgetContentPane().add(txtLastName);\n\t\tgetContentPane().add(txtAddress);\n\t\tgetContentPane().add(txtPhoneNumber);\n\t\tgetContentPane().add(txtName);\n\t\tgetContentPane().add(lblMiddle);\n\t\tgetContentPane().add(lblLastName);\n\t\tgetContentPane().add(lblAddress);\n\t\tgetContentPane().add(lblPhoneNumber);\n\t\tgetContentPane().add(lblName);\n\t\tgetContentPane().add(btnBack);\n\t\tgetContentPane().add(lblTitle);\n\t\tgetContentPane().add(lblBackground);\n\t\t//set size, visible and action for close\n\t\tsetSize(1000,1000);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t}", "private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new SplitPaneDemo2();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "public static JFrame makeFrame (String title)\n {\n\t// make the frame and put a new TextOutputPanel in it\n\tJFrame frame = new JFrame (title);\n\tfinal TextOutputPanel panel = new TextOutputPanel (frame);\n\tframe.setContentPane (panel);\n\tframe.setDefaultCloseOperation (frame.HIDE_ON_CLOSE);\n\n\t// make the menubar for the frame\n\tJMenuBar menuBar = new JMenuBar ();\n\tframe.setJMenuBar (menuBar);\n\n\tJMenu fileMenu = new JMenu (\"File\");\n\tmenuBar.add (fileMenu);\n\tfileMenu.add (new AbstractAction (\"Save As...\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.saveAs ();\n\t }\n\t});\n\n\tJMenu editMenu = new JMenu (\"Edit\");\n\tmenuBar.add (editMenu);\n\teditMenu.add (new AbstractAction (\"Copy\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.myDocumentPane.copy ();\n\t }\n\t});\n\teditMenu.add (new AbstractAction (\"Select All\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.myDocumentPane.selectAll ();\n\t }\n\t});\n\teditMenu.add (new AbstractAction (\"Clear\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.clear ();\n\t }\n\t});\n\n\tframe.pack ();\n\treturn frame;\n }", "public NewRoomFrame() {\n initComponents();\n }", "public JFrameConcatenar()\n {\n initComponents();\n }", "private static void createAndShowGUI() {\r\n //Disable boldface controls.\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Exertion Scripting\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n NetletEditor newContentPane = new NetletEditor(null);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private JFrame makeFrame(String title, int width, int height, int close) {\r\n JFrame frame = new JFrame();\r\n frame.setTitle(title);\r\n frame.setLocation(700, 150);\r\n frame.setMinimumSize(new Dimension(width, height));\r\n frame.setResizable(false);\r\n frame.setDefaultCloseOperation(close);\r\n frame.setLayout(new BorderLayout());\r\n return frame;\r\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 }", "public void makeNew() {\n\t\towner.switchMode(WindowMode.ITEMCREATE);\n\t}", "private static void createAndShowGUI() {\n frame = new JFrame(\"Shopping Cart\");\n frame.setLocation(600,300);\n frame.setPreferredSize(new Dimension(800,700));\n frame.setResizable(false);\n //frame.setLayout(new GridLayout(2,2,5,5));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new shoppingCartTableGui();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n //Display the window.\n frame.pack();\n \n // inserting the login dialogPane here\n loginPane newLoginPane = new loginPane(frame);\n clientID = newLoginPane.getClientID();\n }", "private void initialize() {\n\t\tfrmAddForm = new JFrame();\n\t\tfrmAddForm.setTitle(\"Add Form\");\n\t\tfrmAddForm.setBounds(100, 100, 450, 300);\n\t\tfrmAddForm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmAddForm.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel addFormTitle = new JLabel(\"Add Form\");\n\t\taddFormTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 19));\n\t\taddFormTitle.setBounds(174, 10, 108, 23);\n\t\tfrmAddForm.getContentPane().add(addFormTitle);\n\t\t\n\t\tJLabel firstNameLabel = new JLabel(\"First Name:\");\n\t\tfirstNameLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tfirstNameLabel.setBounds(10, 72, 76, 13);\n\t\tfrmAddForm.getContentPane().add(firstNameLabel);\n\t\t\n\t\tJLabel lastNameLabel = new JLabel(\"Last Name:\");\n\t\tlastNameLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlastNameLabel.setBounds(10, 120, 76, 13);\n\t\tfrmAddForm.getContentPane().add(lastNameLabel);\n\t\t\n\t\tJLabel ageLabel = new JLabel(\"Age:\");\n\t\tageLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tageLabel.setBounds(10, 165, 76, 13);\n\t\tfrmAddForm.getContentPane().add(ageLabel);\n\t\t\n\t\tfirstNameText = new JTextField();\n\t\tfirstNameText.setToolTipText(\"Enter first name.\");\n\t\tfirstNameText.setBounds(146, 70, 96, 19);\n\t\tfrmAddForm.getContentPane().add(firstNameText);\n\t\tfirstNameText.setColumns(10);\n\t\t\n\t\tlastNameText = new JTextField();\n\t\tlastNameText.setToolTipText(\"Enter last name.\");\n\t\tlastNameText.setColumns(10);\n\t\tlastNameText.setBounds(146, 118, 96, 19);\n\t\tfrmAddForm.getContentPane().add(lastNameText);\n\t\t\n\t\tageText = new JTextField();\n\t\tageText.setToolTipText(\"Enter age.\");\n\t\tageText.setColumns(10);\n\t\tageText.setBounds(146, 163, 96, 19);\n\t\tfrmAddForm.getContentPane().add(ageText);\n\t\t\n\t\tJLabel statusLabel = new JLabel(\"\");\n\t\tstatusLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tstatusLabel.setBounds(294, 121, 122, 23);\n\t\tfrmAddForm.getContentPane().add(statusLabel);\n\t\t\n\t\tJButton addButton = new JButton(\"Add\");\n\t\taddButton.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\taddButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t// holds the values from text fields later\n\t\t\t\t\tString firstName = \"\";\n\t\t\t\t\tString lastName = \"\";\n\t\t\t\t\tint age = 0;\n\t\t\t\t\t\n\t\t\t\t\tString user = \"root\";\n\t\t\t\t\tString password = \"\";\n\t\t\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/test\", user, password);\n\t\t\t\t\tStatement stmnt = con.createStatement();\n\t\t\t\t\t\n\t\t\t\t\t// get the values from text field\n\t\t\t\t\tfirstName = firstNameText.getText();\n\t\t\t\t\tlastName = lastNameText.getText();\n\t\t\t\t\tage = Integer.parseInt(ageText.getText());\n\t\t\t\t\t\n\t\t\t\t\tString sql = \"insert into test (firstName, lastName, age)\" + \n\t\t\t\t\t\"values (\" + \"'\" + firstName + \"',\" + \"'\" + lastName + \"',\" + \"'\" + age + \"')\"; \n\t\t\t\t\t\n\t\t\t\t\tif (stmnt.execute(sql) == false) {\n\t\t\t\t\t\t//System.out.println(\"Record added.\");\n\t\t\t\t\t\tString message = \"Record added.\";\n\t\t\t\t\t\tstatusLabel.setText(message);\n\t\t\t\t\t\tfirstNameText.setText(null);\n\t\t\t\t\t\tlastNameText.setText(null);\n\t\t\t\t\t\tageText.setText(null);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//System.out.println(\"Recorded failed to add.\");\n\t\t\t\t\t\tString message = \"Failed to add record.\";\n\t\t\t\t\t\tstatusLabel.setText(message);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception a) {\n\t\t\t\t\ta.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\taddButton.setToolTipText(\"Add record to database.\");\n\t\taddButton.setBounds(157, 211, 85, 42);\n\t\tfrmAddForm.getContentPane().add(addButton);\n\t\t\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmAddForm.setVisible(false);\n\t\t\t\tMenu menu = new Menu();\n\t\t\t\tmenu.run();\n\t\t\t}\n\t\t});\n\t\tbackButton.setBounds(0, 0, 85, 21);\n\t\tfrmAddForm.getContentPane().add(backButton);\n\t}", "public static void buildFrame() {\r\n\t\t// Make sure we have nice window decorations\r\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\t\r\n\t\t// Create and set up the window.\r\n\t\t//ParentFrame frame = new ParentFrame();\r\n\t\tMediator frame = new Mediator();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\t// Display the window\r\n\t\tframe.setVisible(true);\r\n\t}", "public static void createAndShowMatrix() {\n JFrame frame = new JFrame(\"Results Matrix\");\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n frame.getContentPane().add(new ResultsMatrix().getRootPanel());\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tframe = new JFrame(\"Captura 977R\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Set up the content pane.\r\n\t\taddComponentsToPane(frame.getContentPane());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tDimension windowSize = frame.getSize();\r\n\r\n\t\tint windowX = Math.max(0, (screenSize.width - windowSize.width) / 2);\r\n\t\tint windowY = Math.max(0, (screenSize.height - windowSize.height) / 2);\r\n\r\n\t\tframe.setLocation(windowX, windowY); // Don't use \"f.\" inside\r\n\t\t// constructor.\r\n\t\tframe.setVisible(true);\r\n\t}", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"FEEx v. \"+VERSION);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n Main p = new Main();\n p.addComponentToPane(frame.getContentPane());\n\n frame.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n \tstopPolling();\n \tstopMPP();\n p.port.close();\n Utils.storeSizeAndPosition(frame);\n }\n });\n \n //Display the window.\n frame.pack();\n Utils.restoreSizeAndPosition(frame);\n frame.setVisible(true);\n }", "protected void createInternalFrame() {\n\t\tJInternalFrame frame = new JInternalFrame();\n\t\tframe.setVisible(true);\n\t\tframe.setClosable(true);\n\t\tframe.setResizable(true);\n\t\tframe.setFocusable(true);\n\t\tframe.setSize(new Dimension(300, 200));\n\t\tframe.setLocation(100, 100);\n\t\tdesktop.add(frame);\n\t\ttry {\n\t\t\tframe.setSelected(true);\n\t\t} catch (java.beans.PropertyVetoException e) {\n\t\t}\n\t}", "public void createframe(String cid) {\n\t\tviewframe = new JFrame();\n\t\tviewconsumer(cid);\n\t\tviewframe.setTitle(\"Search result\");\n\t\tviewframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tviewframe.setLayout(new BorderLayout()); \n\t\tviewframe.add(viewpage);\n\t\tviewframe.setVisible(true); \n\t\tviewframe.setSize(500, 400);\n\t\tviewframe.setResizable(true);\n\t}", "public static void main(String args[]) throws IOException {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n /* Create and display the form */\n\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n /*NewJFrame*/ clientFrame = new NewJFrame();\n clientFrame.setLocationRelativeTo(null);\n clientFrame.setVisible(true);\n clientFrame.OutputLogArea.setText(\"Welcome to DDND!\\nPlease enter your username in the log area followed by a class:\\n- cleric\\n- barbarian\\n- mage\\n- rogue\");\n //try to login to server\n\n //socket.leaveGroup(address);\n //socket.close(); \n }\n });\n }", "private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"SplitPaneDemo\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n SplitPaneDemo splitPaneDemo = new SplitPaneDemo();\r\n frame.getContentPane().add(splitPaneDemo.getSplitPane());\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "public QLHocSinhJFrame() {\n initComponents();\n }", "public Hwk2JFrame() {\n initComponents();\n }", "public void createAndShowGUI() {\n JFrame frame = new JFrame();\n frame.setSize(500, 500);\n frame.setTitle(\"Face Viewer\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); \n FaceComponent component = new FaceComponent();\n frame.add(component);\n frame.setVisible(true);\n }", "private void createAndShowGUI()\r\n {\r\n //Create and set up the window.\r\n frame = new JFrame();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(this);\r\n frame.addKeyListener(this);\r\n\r\n //Display the window.\r\n this.setPreferredSize(new Dimension(\r\n BLOCKSIZE * ( board.getNumCols() + 3 + nextUp.getNumCols() ),\r\n BLOCKSIZE * ( board.getNumRows() + 2 )\r\n ));\r\n\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }", "private void initialize() {\r\n\r\n\t\tfrmHistoriasDeZagas = new JFrame();\r\n\t\tfrmHistoriasDeZagas.getContentPane().setBackground(Color.BLACK);\r\n\t\tfrmHistoriasDeZagas.setTitle(\"Historias de Zagas\");\r\n\t\tfrmHistoriasDeZagas.setBackground(Color.WHITE);\r\n\t\tfrmHistoriasDeZagas\r\n\t\t\t\t.setIconImage(Toolkit\r\n\t\t\t\t\t\t.getDefaultToolkit()\r\n\t\t\t\t\t\t.getImage(\r\n\t\t\t\t\t\t\t\tArmas.class\r\n\t\t\t\t\t\t\t\t\t\t.getResource(\"/images/Historias de Zagas, logo.png\")));\r\n\t\tfrmHistoriasDeZagas.setBounds(100, 100, 439, 462);\r\n\t\tfrmHistoriasDeZagas.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n\t\tfrmHistoriasDeZagas.getContentPane().setLayout(null);\r\n\t\tfrmHistoriasDeZagas.setLocationRelativeTo(null);\r\n\t\tfrmHistoriasDeZagas.setResizable(false);\r\n\r\n\t\tfinal JButton btnNewButton = new JButton(\"JUGAR\");\r\n\t\tif (Loader.usuario.equals(\"\")) {\r\n\t\t\tbtnNewButton.setEnabled(false);\r\n\r\n\t\t}\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tJugar window = new Jugar();\r\n\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbtnNewButton.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnNewButton.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\t\t\t\tnull, null));\r\n\t\tbtnNewButton.setForeground(Color.WHITE);\r\n\t\tbtnNewButton.setBackground(new Color(139, 69, 19));\r\n\t\tbtnNewButton.setFont(mf.MyFont(0, 17));\r\n\t\tbtnNewButton.setBounds(10, 51, 414, 34);\r\n\t\tbtnNewButton.setBorderPainted(false);\r\n\t\tbtnNewButton.setContentAreaFilled(false);\r\n\t\tbtnNewButton.setFocusPainted(false);\r\n\t\tbtnNewButton.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnNewButton);\r\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\t\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal JButton btnCreadorDeNpcs = new JButton(\"CREADOR DE NPCs\");\r\n\t\tbtnCreadorDeNpcs.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tStartNPC.atrpoints = new AtributePoints();\r\n\t\t\t\tStartNPC.skpoints = new SkillPoints();\r\n\t\t\t\tStartNPC.atributos = new Atributes(StartNPC.atrpoints);\r\n\t\t\t\tStartNPC.combatSkills = new CombatSkills(StartNPC.skpoints);\r\n\t\t\t\tStartNPC.knowledgeSkills = new KnowledgeSkills(\r\n\t\t\t\t\t\tStartNPC.skpoints);\r\n\t\t\t\tStartNPC.magicSkills = new MagicSkills(StartNPC.skpoints);\r\n\t\t\t\tStartNPC.knowhowSkills = new KnowHowSkills(StartNPC.skpoints);\r\n\t\t\t\tBlessing blessing = new Blessing(\"\");\r\n\t\t\t\tSetbacks setbacks = new Setbacks();\r\n\t\t\t\tPrivileges privileges = new Privileges();\r\n\t\t\t\tRace race = new Race(\"\");\r\n\t\t\t\tEquipment equipment = new Equipment();\r\n\t\t\t\tArrayList<String> posarm = new ArrayList<String>();\r\n\t\t\t\tPossesions posss = new Possesions(posarm);\r\n\t\t\t\tArmor armor = new Armor(\"\", \"\", false,false, posss);\r\n\t\t\t\tStartNPC.character = new Characters(null, race, \"\", 0, 2, 10,\r\n\t\t\t\t\t\t20, 20, StartNPC.atributos, StartNPC.combatSkills,\r\n\t\t\t\t\t\tStartNPC.knowledgeSkills, StartNPC.magicSkills,\r\n\t\t\t\t\t\tStartNPC.knowhowSkills, blessing, privileges, setbacks,\r\n\t\t\t\t\t\tfalse, armor, equipment,null,null,null,null,null,null,null,null,null,null,null,null, 0, 1,0,\"\",\"\",\"\");\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\tStartNPC window;\r\n\t\t\t\ttry {\r\n\t\t\t\t\twindow = new StartNPC();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDeNpcs.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDeNpcs.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\r\n\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreadorDeNpcs.setBorder(new BevelBorder(BevelBorder.RAISED, null,\r\n\t\t\t\tnull, null, null));\r\n\t\tbtnCreadorDeNpcs.setForeground(Color.WHITE);\r\n\t\tbtnCreadorDeNpcs.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreadorDeNpcs.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreadorDeNpcs.setBounds(10, 141, 414, 34);\r\n\t\tbtnCreadorDeNpcs.setBorderPainted(false);\r\n\t\tbtnCreadorDeNpcs.setContentAreaFilled(false);\r\n\t\tbtnCreadorDeNpcs.setFocusPainted(false);\r\n\t\tbtnCreadorDeNpcs.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreadorDeNpcs);\r\n\r\n\t\tfinal JButton btnCreadorDePersonajes = new JButton(\r\n\t\t\t\t\"CREADOR DE PERSONAJES\");\r\n\t\tbtnCreadorDePersonajes.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDePersonajes.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreadorDePersonajes.setBorder(new BevelBorder(BevelBorder.RAISED,\r\n\t\t\t\tnull, null, null, null));\r\n\t\tbtnCreadorDePersonajes.setForeground(Color.WHITE);\r\n\t\tbtnCreadorDePersonajes.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreadorDePersonajes.setBorderPainted(false);\r\n\t\tbtnCreadorDePersonajes.setContentAreaFilled(false);\r\n\t\tbtnCreadorDePersonajes.setFocusPainted(false);\r\n\t\tbtnCreadorDePersonajes.setOpaque(false);\r\n\t\tbtnCreadorDePersonajes.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tcrear = \"pj\";\r\n\t\t\t\tStart.atrpoints = new AtributePoints();\r\n\t\t\t\tStart.skpoints = new SkillPoints();\r\n\t\t\t\tStart.atributos = new Atributes(Start.atrpoints);\r\n\t\t\t\tStart.combatSkills = new CombatSkills(Start.skpoints);\r\n\t\t\t\tStart.knowledgeSkills = new KnowledgeSkills(Start.skpoints);\r\n\t\t\t\tStart.magicSkills = new MagicSkills(Start.skpoints);\r\n\t\t\t\tStart.knowhowSkills = new KnowHowSkills(Start.skpoints);\r\n\t\t\t\tBlessing blessing = new Blessing(\"\");\r\n\t\t\t\tSetbacks setbacks = new Setbacks();\r\n\t\t\t\tPrivileges privileges = new Privileges();\r\n\t\t\t\tRace race = new Race(\"\");\r\n\t\t\t\tEquipment equipment = new Equipment();\r\n\t\t\t\tArrayList<String> posarm = new ArrayList<String>();\r\n\t\t\t\tPossesions posss = new Possesions(posarm);\r\n\t\t\t\tArmor armor = new Armor(\"\", \"\", false,false, posss);\r\n\t\t\t\tStart.character = new Characters(null, race, \"\", 0, 2, 10, 20,\r\n\t\t\t\t\t\t20, Start.atributos, Start.combatSkills,\r\n\t\t\t\t\t\tStart.knowledgeSkills, Start.magicSkills,\r\n\t\t\t\t\t\tStart.knowhowSkills, blessing, privileges, setbacks,\r\n\t\t\t\t\t\tfalse, armor, equipment,null,null,null,null,null,null,null,null,null,null,null,null, 0, 1,0,\"\",\"\",\"\");\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\tStart window;\r\n\t\t\t\ttry {\r\n\t\t\t\t\twindow = new Start();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDePersonajes.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreadorDePersonajes.setBounds(10, 186, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreadorDePersonajes);\r\n\r\n\t\tfinal JButton btnCreditos = new JButton(\"CRÉDITOS\");\r\n\t\tbtnCreditos.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreditos.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreditos.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tCreditos window = new Creditos();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tfinal JButton btnHistoria = new JButton(\"GESTOR DE PARTIDAS\");\r\n\t\tbtnHistoria.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tGestorMain window = new GestorMain();\r\n\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\r\n\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnHistoria.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\r\n\t\t\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnHistoria.setOpaque(false);\r\n\t\tbtnHistoria.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnHistoria.setForeground(Color.WHITE);\r\n\t\tbtnHistoria.setFont(mf.MyFont(0, 17));\r\n\t\tbtnHistoria.setFocusPainted(false);\r\n\t\tbtnHistoria.setContentAreaFilled(false);\r\n\t\tbtnHistoria.setBorderPainted(false);\r\n\t\tbtnHistoria.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnHistoria.setBackground(new Color(139, 69, 19));\r\n\t\tbtnHistoria.setBounds(10, 96, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnHistoria);\r\n\t\tbtnCreditos.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\t\t\t\tnull, null));\r\n\t\tbtnCreditos.setForeground(Color.WHITE);\r\n\t\tbtnCreditos.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreditos.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreditos.setBounds(10, 321, 414, 34);\r\n\t\tbtnCreditos.setBorderPainted(false);\r\n\t\tbtnCreditos.setContentAreaFilled(false);\r\n\t\tbtnCreditos.setFocusPainted(false);\r\n\t\tbtnCreditos.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreditos);\r\n\r\n\t\tfinal JButton button = new JButton(\"SALIR\");\r\n\t\tbutton.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbutton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tint seleccion = JOptionPane.showOptionDialog(\r\n\t\t\t\t\t\tfrmHistoriasDeZagas,\r\n\t\t\t\t\t\t\"¿Estás seguro de querer cerrar el programa?.\",\r\n\t\t\t\t\t\t\"¡Atención!\", JOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, new Object[] { \"Si\",\r\n\t\t\t\t\t\t\t\t\"No\" }, // null para YES, NO y CANCEL\r\n\t\t\t\t\t\t\"opcion 1\");\r\n\t\t\t\tif (JOptionPane.YES_OPTION == seleccion) {\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\ttxtBienvenidoSeleccioneA = new JLabel();\r\n\t\ttxtBienvenidoSeleccioneA.setOpaque(false);\r\n\t\ttxtBienvenidoSeleccioneA.setForeground(Color.WHITE);\r\n\t\ttxtBienvenidoSeleccioneA.setBackground(new Color(205, 133, 63));\r\n\t\ttxtBienvenidoSeleccioneA.setBorder(null);\r\n\t\ttxtBienvenidoSeleccioneA.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttxtBienvenidoSeleccioneA.setFont(mf.MyFont(0, 13));\r\n\t\ttxtBienvenidoSeleccioneA\r\n\t\t\t\t.setText(\"Bienvenido, seleccione a qué servicio desea acceder.\");\r\n\t\ttxtBienvenidoSeleccioneA.setBounds(0, 0, 444, 40);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(txtBienvenidoSeleccioneA);\r\n\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbutton.setOpaque(false);\r\n\t\tbutton.setForeground(Color.WHITE);\r\n\t\tbutton.setFont(mf.MyFont(0, 17));\r\n\t\tbutton.setFocusPainted(false);\r\n\t\tbutton.setContentAreaFilled(false);\r\n\t\tbutton.setBorderPainted(false);\r\n\t\tbutton.setBorder(new BevelBorder(BevelBorder.RAISED, null, null, null,\r\n\t\t\t\tnull));\r\n\t\tbutton.setBackground(new Color(139, 69, 19));\r\n\t\tbutton.setBounds(10, 366, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(button);\r\n\r\n\t\tfinal JButton btnAyuda = new JButton(\"AYUDA\");\r\n\t\tbtnAyuda.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tAyudaPrincipal window = new AyudaPrincipal();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAyuda.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\r\n\t\t\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnAyuda.setOpaque(false);\r\n\t\tbtnAyuda.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnAyuda.setForeground(Color.WHITE);\r\n\t\tbtnAyuda.setFont(mf.MyFont(0, 17));\r\n\t\tbtnAyuda.setFocusPainted(false);\r\n\t\tbtnAyuda.setContentAreaFilled(false);\r\n\t\tbtnAyuda.setBorderPainted(false);\r\n\t\tbtnAyuda.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnAyuda.setBackground(new Color(139, 69, 19));\r\n\t\tbtnAyuda.setBounds(10, 276, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnAyuda);\r\n\r\n\t\tfinal JButton btnPerfil = new JButton(\"PERFIL\");\r\n\t\tif (Loader.usuario.equals(\"\")) {\r\n\t\t\tbtnPerfil.setEnabled(false);\r\n\r\n\t\t}\r\n\t\tbtnPerfil.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPerfil.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\tPerfil window = new Perfil();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (ClassNotFoundException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (InstantiationException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (IllegalAccessException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnPerfil.setOpaque(false);\r\n\t\tbtnPerfil.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnPerfil.setForeground(Color.WHITE);\r\n\t\tbtnPerfil.setFont(mf.MyFont(0, 17));\r\n\t\tbtnPerfil.setFocusPainted(false);\r\n\t\tbtnPerfil.setContentAreaFilled(false);\r\n\t\tbtnPerfil.setBorderPainted(false);\r\n\t\tbtnPerfil.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnPerfil.setBackground(new Color(139, 69, 19));\r\n\t\tbtnPerfil.setBounds(10, 231, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnPerfil);\r\n\r\n\t\tfinal JButton btnAdministracin = new JButton(\"ADMINISTRACI\\u00D3N\");\r\n\t\tbtnAdministracin.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tAdministracionPrinc window = new AdministracionPrinc();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAdministracin.setVisible(false);\r\n\t\tbtnAdministracin.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnAdministracin.setOpaque(false);\r\n\t\tbtnAdministracin.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnAdministracin.setForeground(Color.WHITE);\r\n\t\tbtnAdministracin.setFont(mf.MyFont(0, 17));\r\n\t\tbtnAdministracin.setFocusPainted(false);\r\n\t\tbtnAdministracin.setContentAreaFilled(false);\r\n\t\tbtnAdministracin.setBorderPainted(false);\r\n\t\tbtnAdministracin.setBorder(new BevelBorder(BevelBorder.RAISED, null,\r\n\t\t\t\tnull,\r\n\r\n\t\t\t\tnull, null));\r\n\t\tbtnAdministracin.setBackground(new Color(139, 69, 19));\r\n\t\tbtnAdministracin.setBounds(10, 321, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnAdministracin);\r\n\t\r\n\r\n\t\tfinal JButton btnNewButton_1 = new JButton(\"(Desconectar)\");\r\n\t\t\r\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\r\n\t\t\t\tint seleccion = JOptionPane.showOptionDialog(\r\n\t\t\t\t\t\tfrmHistoriasDeZagas,\r\n\t\t\t\t\t\t\"¿Estás seguro de querer desconectarte?.\",\r\n\t\t\t\t\t\t\"¡Atención!\", JOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, new Object[] { \"Si\",\r\n\t\t\t\t\t\t\t\t\"No\" }, // null para YES, NO y CANCEL\r\n\t\t\t\t\t\t\"opcion 1\");\r\n\t\t\t\tif (JOptionPane.YES_OPTION == seleccion) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif (Loader.usuario.length() == 0) {\r\n\t\t\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\t\t\tLoader window = new Loader();\r\n\t\t\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\r\n\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\tLoader.usuario = \"\";\r\n\t\t\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\t\t\tLoader window = new Loader();\r\n\t\t\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (InstantiationException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnNewButton_1.setForeground(Color.BLUE);\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnNewButton_1.setForeground(Color.WHITE);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.setFont(mf.MyFont(3, 11));\r\n\t\tbtnNewButton_1.setFocusPainted(false);\r\n\t\tbtnNewButton_1.setContentAreaFilled(false);\r\n\t\tbtnNewButton_1.setBorderPainted(false);\r\n\t\tbtnNewButton_1.setForeground(Color.WHITE);\r\n\t\tbtnNewButton_1.setBounds(-10, 416, 125, 17);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnNewButton_1);\r\n\r\n\t\tJLabel lblNewLabel_1 = new JLabel(Loader.usuario);\r\n\t\tlblNewLabel_1.setForeground(Color.WHITE);\r\n\t\tlblNewLabel_1.setFont(mf.MyFont(0, 11));\r\n\t\tlblNewLabel_1.setBounds(104, 416, 86, 17);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(lblNewLabel_1);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel(\"\");\r\n\t\tlblNewLabel.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/background-inicio.jpg\")));\r\n\t\tlblNewLabel.setBackground(Color.BLACK);\r\n\t\tlblNewLabel.setBounds(0, 0, 444, 472);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(lblNewLabel);\r\n\t\tif (Loader.admin==1) {\r\n\t\t\tfrmHistoriasDeZagas.setBounds(100, 100, 439, 500);\r\n\t\t\tfrmHistoriasDeZagas.setLocationRelativeTo(null);\r\n\t\t\tbtnCreditos.setBounds(10, 365, 414, 34);\r\n\t\t\tbutton.setBounds(10, 410, 414, 34);\r\n\t\t\tlblNewLabel_1.setBounds(104, 455, 86, 17);\r\n\t\t\tbtnNewButton_1.setBounds(-10, 455, 125, 17);\r\n\t\t\tbtnAdministracin.setVisible(true);\r\n\t\t}\r\n\t}", "private void initialize() {\r\n\t\tsetTitle(\"The Amazing Malaysia\");\r\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(MenuMWF.class.getResource(\"/A_3/icon.png\")));\r\n\t\tsetBounds(100, 100, 764, 636);\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tgetContentPane().setLayout(null);\r\n\t\t//frmTheAmazingMalaysia = new JFrame();\r\n\t\t//frmTheAmazingMalaysia.setTitle(\"The Amazing Malaysia\");\r\n\t\t//frmTheAmazingMalaysia.setIconImage(Toolkit.getDefaultToolkit().getImage(MenuMWF.class.getResource(\"/A_3/icon.png\")));\r\n\t\t//frmTheAmazingMalaysia.setBounds(100, 100, 764, 636);\r\n\t\t//frmTheAmazingMalaysia.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"The Amazing Malaysia\");\r\n\t\tlblNewLabel.setForeground(Color.WHITE);\r\n\t\tlblNewLabel.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 35));\r\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel.setBounds(68, 0, 587, 56);\r\n\t\tgetContentPane().add(lblNewLabel);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\r\n\t\tlblNewLabel_1.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/nl1.jpg\")));\r\n\t\tlblNewLabel_1.setBounds(36, 115, 179, 172);\r\n\t\tgetContentPane().add(lblNewLabel_1);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblNewLabel_1);\r\n\t\t\r\n\t\tJLabel label = new JLabel(\"New label\");\r\n\t\tlabel.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/r1.png\")));\r\n\t\tlabel.setBounds(290, 115, 179, 172);\r\n\t\tgetContentPane().add(label);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label);\r\n\t\t\r\n\t\tJLabel label_1 = new JLabel(\"New label\");\r\n\t\tlabel_1.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/rc1.jpg\")));\r\n\t\tlabel_1.setBounds(529, 115, 179, 172);\r\n\t\tgetContentPane().add(label_1);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label_1);\r\n\t\t\r\n\t\tJLabel label_2 = new JLabel(\"New label\");\r\n\t\tlabel_2.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/ll1.png\")));\r\n\t\tlabel_2.setBounds(290, 363, 179, 172);\r\n\t\tgetContentPane().add(label_2);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label_2);\r\n\t\t\r\n\t\tJLabel label_3 = new JLabel(\"New label\");\r\n\t\tlabel_3.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/s1.jpg\")));\r\n\t\tlabel_3.setBounds(36, 363, 179, 172);\r\n\t\tgetContentPane().add(label_3);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label_3);\r\n\t\t\r\n\t\tJLabel label_4 = new JLabel(\"New label\");\r\n\t\tlabel_4.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/ck1.png\")));\r\n\t\tlabel_4.setBounds(529, 363, 179, 172);\r\n\t\tgetContentPane().add(label_4);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label_4);\r\n\t\t\r\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Nasi Lemak\");\r\n\t\tlblNewLabel_2.setForeground(Color.WHITE);\r\n\t\tlblNewLabel_2.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblNewLabel_2.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_2.setBounds(36, 287, 179, 56);\r\n\t\tgetContentPane().add(lblNewLabel_2);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblNewLabel_2);\r\n\t\t\r\n\t\tJLabel lblRendang = new JLabel(\"Rendang\");\r\n\t\tlblRendang.setForeground(Color.WHITE);\r\n\t\tlblRendang.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblRendang.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblRendang.setBounds(290, 287, 179, 56);\r\n\t\tgetContentPane().add(lblRendang);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblRendang);\r\n\t\t\r\n\t\tJButton btnExit = new JButton(\"Exit\");\r\n\t\tbtnExit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnExit.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/e1.png\")));\r\n\t\tbtnExit.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tbtnExit.setForeground(Color.WHITE);\r\n\t\tbtnExit.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 15));\r\n\t\tbtnExit.setBackground(Color.BLACK);\r\n\t\tbtnExit.setBounds(608, 0, 138, 60);\r\n\t\tgetContentPane().add(btnExit);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(btnExit);\r\n\t\t\r\n\t\tJLabel lblRotiCanai = new JLabel(\"Roti Canai\");\r\n\t\tlblRotiCanai.setForeground(Color.WHITE);\r\n\t\tlblRotiCanai.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblRotiCanai.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblRotiCanai.setBounds(529, 287, 179, 56);\r\n\t\tgetContentPane().add(lblRotiCanai);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblRotiCanai);\r\n\t\t\r\n\t\tJLabel lblHighlightDishes = new JLabel(\"Highlight dishes: \");\r\n\t\tlblHighlightDishes.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblHighlightDishes.setForeground(Color.WHITE);\r\n\t\tlblHighlightDishes.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblHighlightDishes.setBounds(236, 46, 233, 56);\r\n\t\tgetContentPane().add(lblHighlightDishes);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblHighlightDishes);\r\n\t\t\r\n\t\tJLabel lblSatay = new JLabel(\"Satay\");\r\n\t\tlblSatay.setForeground(Color.WHITE);\r\n\t\tlblSatay.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblSatay.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblSatay.setBounds(36, 533, 179, 56);\r\n\t\tgetContentPane().add(lblSatay);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblSatay);\r\n\t\t\r\n\t\tJLabel lblCurryLaksa = new JLabel(\"Curry Laksa\");\r\n\t\tlblCurryLaksa.setForeground(Color.WHITE);\r\n\t\tlblCurryLaksa.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblCurryLaksa.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblCurryLaksa.setBounds(290, 533, 179, 56);\r\n\t\tgetContentPane().add(lblCurryLaksa);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblCurryLaksa);\r\n\t\t\r\n\t\tJLabel lblChar = new JLabel(\"Char Kuey Teow\");\r\n\t\tlblChar.setForeground(Color.WHITE);\r\n\t\tlblChar.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblChar.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 25));\r\n\t\tlblChar.setBounds(529, 533, 179, 56);\r\n\t\tgetContentPane().add(lblChar);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblChar);\r\n\t\t\r\n\t\tJLabel lblNewLabel_3 = new JLabel(\"New label\");\r\n\t\tlblNewLabel_3.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/m2.png\")));\r\n\t\tlblNewLabel_3.setBounds(0, 0, 746, 589);\r\n\t\tgetContentPane().add(lblNewLabel_3);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblNewLabel_3);\r\n\t}", "public static void createAndShowGUI() {\n windowContent.add(\"Center\",p1);\n\n //Create the frame and set its content pane\n JFrame frame = new JFrame(\"GridBagLayoutCalculator\");\n frame.setContentPane(windowContent);\n\n // Set the size of the window to be big enough to accommodate all controls\n frame.pack();\n\n // Display the window\n frame.setVisible(true);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "public NewConnectionFrame() {\n initComponents();\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Enter Character Name\");\r\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.addWindowListener(new WindowListener()\r\n\t\t {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosing(WindowEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowDeactivated(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowOpened(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t } ) ;\r\n\r\n //Set up the content pane.\r\n addComponentsToPane(frame.getContentPane());\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setSize(new Dimension(390,90)) ;\r\n frame.setVisible(true);\r\n frame.setResizable(false) ;\r\n }", "public JInternalFrame createAndShow() {\r\n /** Create and set up the window. */\r\n JInternalFrame frame = new JInternalFrame(\"About\");\r\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n \r\n frame.putClientProperty(\"JInternalFrame.isPallete\", Boolean.TRUE);\r\n\r\n /** Add content to the window. */\r\n frame.add(new About());\r\n \r\n frame.setClosable(true);\r\n\r\n /** Display the window. */\r\n frame.pack();\r\n frame.setVisible(true);\r\n \r\n return frame;\r\n }", "private void createWindow() {\r\n\t\t// Create the picture frame and initializes it.\r\n\t\tthis.createAndInitPictureFrame();\r\n\r\n\t\t// Set up the menu bar.\r\n\t\tthis.setUpMenuBar();\r\n\r\n\t\t// Create the information panel.\r\n\t\t//this.createInfoPanel();\r\n\r\n\t\t// Create the scrollpane for the picture.\r\n\t\tthis.createAndInitScrollingImage();\r\n\r\n\t\t// Show the picture in the frame at the size it needs to be.\r\n\t\tthis.pictureFrame.pack();\r\n\t\tthis.pictureFrame.setVisible(true);\r\n\t\tpictureFrame.setSize(728,560);\r\n\t}", "public MFrame() {\n this.setTitle(\"Sistema Punto de Venta\");\n this.setLocationRelativeTo(null);\n this.setSize(new Dimension(800,600));\n this.setResizable(true);\n this.setVisible(true);\n initComponents();\n this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n }", "public NewJFrame() {\n super(\"Users\");\n //int klj = Integer.parseInt(jLabel2.getText());\n //this.klj=Integer.parseInt(jLabel2.getText());\n initComponents();\n// ds();\n show_user();\n this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Identification-Badge-icon.png\")));\n jButton6.setVisible(false);\n //klj=Integer.parseInt(jTextField1.getText());\n //klj=model.getValueAt(selectedRowIndex, 0).toString();\n// public int ui;\n// ui=Integer.parseInt(jTextField1.getText());\n ////jLabel2.setText(String.valueOf(ui));\n }", "private static void createAndShowGUI() {\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLayout(new BorderLayout());\r\n\r\n JPanel parametersPanel = new JPanel();\r\n parametersPanel.setPreferredSize(new Dimension(preferredWidth, 50));\r\n \r\n addComponentsToPane(parametersPanel);\r\n \r\n frame.add(parametersPanel, BorderLayout.PAGE_START);\r\n \r\n schedulePanel.add(monLabel);\r\n schedulePanel.add(tueLabel);\r\n schedulePanel.add(wedLabel);\r\n schedulePanel.add(thuLabel);\r\n schedulePanel.add(friLabel);\r\n schedulePanel.setPreferredSize(new Dimension(preferredWidth, 500));\r\n JScrollPane scrollPane = new JScrollPane();\r\n scrollPane.setViewportView(schedulePanel);\r\n JPanel bigPanel = new JPanel(); \r\n bigPanel.setLayout(new BorderLayout());\r\n bigPanel.setPreferredSize(schedulePanel.getPreferredSize());\r\n bigPanel.add(scrollPane, BorderLayout.CENTER);\r\n frame.add(bigPanel, BorderLayout.CENTER);\r\n\r\n frame.setJMenuBar(createMenu());\r\n \r\n frame.pack();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n \r\n frame.setVisible(true);\r\n frame.setResizable(false);\r\n }", "public FichaDeContactoJFrame() {\n initComponents();\n }", "public ExampleJFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "private void buildFrame() {\n mainFrame = new JFrame();\n header = new JLabel(\"View Contact Information\");\n header.setHorizontalAlignment(JLabel.CENTER);\n header.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));\n \n infoTable.setFillsViewportHeight(true);\n infoTable.setShowGrid(true);\n infoTable.setVisible(true);\n scrollPane = new JScrollPane(infoTable);\n\n mainFrame.add(header, BorderLayout.NORTH);\n mainFrame.add(scrollPane, BorderLayout.CENTER);\n }", "public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"CsvPickerPane\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n CsvPickerPane demopane = new CsvPickerPane(frame);\n frame.getContentPane().add(demopane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tJFrame frame = new JFrame(\"MapReverse Data Collector\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Add content to the window.\r\n\t\tframe.add(new MapReverseDataCollector());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setVisible(true);\r\n\t}", "private void initialize() {\r\n\t\tfrmCadastro = new JFrame();\r\n\t\tfrmCadastro.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\r\n\t\tfrmCadastro.setTitle(\"Cadastro\");\r\n\t\tfrmCadastro.setBounds(100, 100, 410, 213);\r\n\t\tfrmCadastro.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmCadastro.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Aluno\");\r\n\t\tbtnNewButton.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(25, 65, 160, 74);\r\n\t\tfrmCadastro.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJButton btnNewButton_1 = new JButton(\"Funcionario\");\r\n\t\tbtnNewButton_1.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtnNewButton_1.setBounds(217, 65, 152, 74);\r\n\t\tfrmCadastro.getContentPane().add(btnNewButton_1);\r\n\t\t\r\n\t\tJLabel lblQualCadastroDeseja = new JLabel(\"Qual cadastro deseja realizar?\");\r\n\t\tlblQualCadastroDeseja.setFont(new Font(\"Nirmala UI\", Font.BOLD | Font.ITALIC, 20));\r\n\t\tlblQualCadastroDeseja.setBounds(49, 20, 305, 34);\r\n\t\tfrmCadastro.getContentPane().add(lblQualCadastroDeseja);\r\n\r\n\t\t\r\n\t}", "public NewJFrame(DonHang donHang) {\n initComponents();\n DhDieuKhien ddk = new DhDieuKhien(btnSubmit, jtfMaDon, jdcNgayLenDon, jtfTinhTrang, jtfNguoiMua, jtfMatHang, jpnSoLuong, jlbThanhTien,jtfGia);\n ddk.setView(donHang);\n ddk.setEvent();\n }", "private void makeContent(JFrame frame){\n Container content = frame.getContentPane();\n content.setSize(700,700);\n\n makeButtons();\n makeRooms();\n makeLabels();\n\n content.add(inputPanel,BorderLayout.SOUTH);\n content.add(roomPanel, BorderLayout.CENTER);\n content.add(infoPanel, BorderLayout.EAST);\n\n }", "private void setFrame()\r\n\t{\r\n\t\tthis.setName(\"Project 3\");\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.setSize(300, 300);\r\n\t\tthis.setLocation(650, 100);\r\n\t\tthis.setVisible(false);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.add(panel, BorderLayout.CENTER);\r\n\t}", "public void createAndShowGUI(){\r\n\t\t//You want the jframe to close everything when it is closed\r\n\t\tjframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tif(maximized){\r\n\t\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\tsWidth = (int)screenSize.getWidth();\r\n\t\t\tsHeight = (int)screenSize.getHeight();\r\n\t\t\tjframe.setSize(sWidth, sHeight);\r\n\t\t\tjframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\t\tjframe.setUndecorated(true);\r\n\t\t\tjframe.setResizable(true);\r\n\t\t\tjframe.setVisible(true);\r\n\t\t\tcWidth = sWidth;\r\n\t\t\tcHeight = sHeight;\r\n\t\t}else{\r\n\t\t\tjframe.setResizable(false);\r\n\t\t\t//Makes the jframe visible\r\n\t\t\tjframe.setVisible(true);\r\n\t\t\t//Sets the size of the jframe\r\n\t\t\tjframe.setSize(sWidth, sHeight);\r\n\t\t\t\r\n\t\t\t//I have no fucking idea why it needs this but it does\r\n\t\t\ttry{\r\n\t\t\t\tThread.sleep(100);\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Set the content width\r\n\t\t\tcWidth = jframe.getContentPane().getWidth();\r\n\t\t\t//Set the content height\r\n\t\t\tcHeight = jframe.getContentPane().getHeight();\r\n\t\t}\r\n\r\n\t\t//Set up the game menu\r\n\t\tGameMenu gmenu = new GameMenu((Graphics2D)(jframe.getContentPane().getGraphics()),cWidth,cHeight, new Input(jframe));\r\n\t\t//Draw the main menu\r\n\t\tgmenu.drawMainMenu();\r\n\t}", "private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"MRALD Color Chooser\");\n\n //Create and set up the content pane.\n JComponent newContentPane = new MraldColorChooser(coloringItems);\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowMainWindow() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorld - Swing\");\n frame.setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World!\");\n frame.getContentPane().setBackground(new Color(240, 240, 240));\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\n\t\tint width = 500, height = 300;\n\t\tJFrame frame = new JFrame(\"Text File Reader\");\n\t\tframe.setSize(new Dimension(width, height));\n\t\tframe.setContentPane(new MainExecutor(width, height)); /* Adds the panel to the frame */\n\n\t\t/* Centralizing the frame */\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint upperLeftCornerX = (screenSize.width - frame.getWidth()) / 2;\n\t\tint upperLeftCornerY = (screenSize.height - frame.getHeight()) / 2;\n\t\tframe.setLocation(upperLeftCornerX, upperLeftCornerY);\n\t\tframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\n\t\t/* Shows the GUI */\n\t\tframe.setVisible(true);\n\t}", "private void initialize(CurrentProfile newUser) {\n\t\tfrmSignUp = new JFrame();\n\t\tfrmSignUp.setResizable(false);\n\t\t//frmSignUp.setAlwaysOnTop(true);\n\t\tfrmSignUp.setTitle(\"SIGN UP (1/6)\");\n\t\tfrmSignUp.setBounds(100, 100, 557, 483);\n\t\tfrmSignUp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmSignUp.getContentPane().setLayout(null);\n\t\tfrmSignUp.setVisible(true);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(12, 12, 531, 432);\n\t\tfrmSignUp.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\t//allfield[0] = new JTextField();\n\t\t//allfield[0].setBounds(165, 60, 246, 20);\n\t\t//panel.add(allfield[0]);\n\t\t\n\t\tJLabel lblName = new JLabel(\"NAME\");\n\t\tlblName.setBounds(33, 67, 46, 14);\n\t\tpanel.add(lblName);\n\t\t\n\t\tJLabel lblDob = new JLabel(\"D.O.B\");\n\t\tlblDob.setBounds(33, 121, 46, 14);\n\t\tpanel.add(lblDob);\n\t\t\n\t\tJLabel lblFatherName = new JLabel(\"FATHER'S NAME\");\n\t\tlblFatherName.setBounds(33, 167, 109, 14);\n\t\tpanel.add(lblFatherName);\n\t\t\n\t\tJLabel lblEmail = new JLabel(\"EMAIL\");\n\t\tlblEmail.setBounds(33, 222, 46, 14);\n\t\tpanel.add(lblEmail);\n\t\t\n\t\tJLabel lblSex = new JLabel(\"SEX\");\n\t\tlblSex.setBounds(33, 271, 46, 14);\n\t\tpanel.add(lblSex);\n\t\t\n\t\tJLabel lblPicture = new JLabel(\"PICTURE\");\n\t\tlblPicture.setBounds(33, 332, 74, 14);\n\t\tpanel.add(lblPicture);\n\t\t\n\t\tJLabel lblUid = new JLabel(\"UID\");\n\t\tlblUid.setBounds(384, 22, 107, 16);\n\t\tlblUid.setText(Integer.toString(newUser.uid));\n\t\tpanel.add(lblUid);\n\t\t\n\t\ttxtName1 = new JTextField();\n\t\ttxtName1.setBounds(158, 64, 163, 20);\n\t\tpanel.add(txtName1);\n\t\ttxtName1.setColumns(10);\n\t\t\n\t\tJRadioButton rdbtnMale = new JRadioButton(\"Male\");\n\t\trdbtnMale.setBounds(153, 267, 109, 23);\n\t\tpanel.add(rdbtnMale);\n\t\t\n\t\tJRadioButton rdbtnFemale = new JRadioButton(\"Female\");\n\t\trdbtnFemale.setBounds(356, 267, 109, 23);\n\t\tpanel.add(rdbtnFemale);\n\t\t\n\t\tButtonGroup group = new ButtonGroup();\n\t\tgroup.add(rdbtnMale);\n\t\tgroup.add(rdbtnFemale);\n\t\t\n\t\ttxtDate = new JTextField();\n\t\ttxtDate.setText(\"DD-MM-YYYY\");\n\t\ttxtDate.setBounds(158, 118, 333, 20);\n\t\tpanel.add(txtDate);\n\t\ttxtDate.setColumns(10);\n\t\t\n\t\ttxtFather = new JTextField();\n\t\ttxtFather.setBounds(160, 164, 331, 20);\n\t\tpanel.add(txtFather);\n\t\ttxtFather.setColumns(10);\n\t\t\n\t\ttxtEmail = new JTextField();\n\t\ttxtEmail.setBounds(158, 216, 333, 20);\n\t\tpanel.add(txtEmail);\n\t\ttxtEmail.setColumns(10);\n\t\t\n\t\tJButton btnSelect = new JButton(\"SELECT IMAGE\");\n\t\tbtnSelect.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtPhoto.setText(\"\");\n\t\t\t\tJFileChooser filechooser = new JFileChooser();\n\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\n\t\t\t\t \"Images\", \"jpg\",\"JPG\",\"GIF\", \"gif\",\"JPEG\",\"png\",\"PNG\");\n\t\t\t\tfilechooser.setFileFilter(filter);\n\t\t\t\t//ThumbNailView thumbsView = new ThumbNailView();\n\t\t\t\t//filechooser.setAccessory(new ImagePreview(filechooser));\n\t\t\t\tint returnVal = filechooser.showDialog(null,\"select an image\");\n\t\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION){\n\t\t\t\t\tfile = filechooser.getSelectedFile();\n\t\t\t\t\ttxtPhoto.setText(file.getPath());\n\t\t\t\t\tnewUser.picLoc=file.getPath();\n\t\t\t\t//\tnewUser.picName=file.getName();\n\t\t\t\t\tnewUser.picLoc=newUser.picLoc.replace(\"\\\\\", \"\\\\\\\\\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSelect.setBounds(374, 326, 124, 26);\n\t\tpanel.add(btnSelect);\n\t\t\n\t\tJButton btnNext = new JButton(\">>\");\n\t\tbtnNext.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//String name,father,dob,email,photo;\n\t\t\t\t\n\t\t\t\tboolean f=false;\n\t\t\t\t\n\t\t\t\tdo{\n\t\t\t\t\tnewUser.nameFirst=txtName1.getText();\n\t\t\t\t\tnewUser.nameLast=txtName2.getText();\n\t\t\t\t\n\t\t\t\t\tnewUser.father=txtFather.getText();\n\t\t\t\t\tnewUser.dob=txtDate.getText();\n\t\t\t\t\tnewUser.email=txtEmail.getText();\n\t\t\t\t\tnewUser.picLoc=file.getPath();//.getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tif(rdbtnFemale.isSelected()){\n\t\t\t\t\t\tnewUser.sex='f';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rdbtnMale.isSelected()){\n\t\t\t\t\t\tnewUser.sex='m';\n\t\t\t\t\t}\n\t\t\t\t\tif(newUser.nameFirst.length()!=0&&newUser.father.length()!=0&&newUser.dob.length()!=0&&newUser.email.length()!=0&&newUser.picLoc.length()!=0&&newUser.sex!=0){\n\t\t\t\t\t\tf=true;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"enter every details!!!\");\n\t\t\t\t\t}\n\t\t\t\t}while(!f);\n\t\t\t\t/*try {\n\t\t\t\t\tf=newUser.l1Tableinsert();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"database connection error !!!\\t\"+e1);\n\t\t\t\t}\n\t\t\t\tif(!f)\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"database connection error !!!\\t\");\n\t\t\t\t*/\n\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tSignL2Panel window = new SignL2Panel(newUser);\n\t\t\t\t\t\t\twindow.frmSignUp2.setVisible(true);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tfrmSignUp.dispose();\n\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t});\n\t\tbtnNext.setBounds(433, 406, 98, 26);\n\t\tpanel.add(btnNext);\n\t\t\n\t\ttxtPhoto = new JTextField();\n\t\ttxtPhoto.setBounds(158, 329, 204, 20);\n\t\tpanel.add(txtPhoto);\n\t\ttxtPhoto.setColumns(10);\n\t\t\n\t\ttxtName2 = new JTextField();\n\t\ttxtName2.setBounds(333, 64, 158, 20);\n\t\tpanel.add(txtName2);\n\t\ttxtName2.setColumns(10);\n\t\t\n\t\t\n\t//\tpanel.setFocusTraversalPolicy(new FocusTraversalOnArray(new Component[]{textField, datePicker, lblName, lblDob, lblFatherName, lblEmail, lblSex, lblPicture, rdbtnMale, rdbtnFemale}));\n\t\t//allfield[0].setColumns(10);\n\t\t\n\t}" ]
[ "0.796484", "0.7945892", "0.7931828", "0.7931828", "0.7931828", "0.7931828", "0.7931828", "0.7931828", "0.7931828", "0.79161865", "0.78647804", "0.7763172", "0.76817715", "0.7648401", "0.75705475", "0.7474783", "0.7441117", "0.7441071", "0.7381736", "0.7241864", "0.7152069", "0.71234715", "0.7093774", "0.70620316", "0.7046038", "0.7001353", "0.6876144", "0.68730295", "0.6839108", "0.67915845", "0.668492", "0.6595544", "0.6589313", "0.65322", "0.65040064", "0.6491264", "0.64704055", "0.6437297", "0.64292765", "0.64054906", "0.64034057", "0.63977015", "0.63584495", "0.62989986", "0.62963825", "0.62949085", "0.62719226", "0.6254402", "0.6252156", "0.62513596", "0.62289715", "0.6227046", "0.62179726", "0.62157875", "0.62055755", "0.62044173", "0.6193791", "0.6193326", "0.6185335", "0.61759156", "0.61742026", "0.6166754", "0.6162535", "0.61582863", "0.6158079", "0.6154202", "0.6140779", "0.61397743", "0.6128629", "0.6123062", "0.61212313", "0.6102532", "0.60971355", "0.60969436", "0.6093347", "0.6092785", "0.6092317", "0.60912186", "0.6079369", "0.6076933", "0.6073533", "0.60734314", "0.6067038", "0.60622036", "0.6055792", "0.60554165", "0.6053233", "0.6052203", "0.60420203", "0.6040655", "0.60391635", "0.6037928", "0.6036092", "0.60289246", "0.60250616", "0.6014197", "0.60138345", "0.6013661", "0.60067236", "0.6000157", "0.5998613" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jDialog1 = new javax.swing.JDialog(); jColorChooser1 = new javax.swing.JColorChooser(); jPanel1 = new javax.swing.JPanel(); jPanel4 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jPanel5 = new javax.swing.JPanel(); jLabel3 = new javax.swing.JLabel(); jPanel6 = new javax.swing.JPanel(); jLabel5 = new javax.swing.JLabel(); jPanel7 = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); jPanel8 = new javax.swing.JPanel(); jLabel7 = new javax.swing.JLabel(); jPanel3 = new javax.swing.JPanel(); jLabel4 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); lbl_tgl = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); lbluser = new javax.swing.JLabel(); jPanel19 = new javax.swing.JPanel(); jPanel18 = new javax.swing.JPanel(); jLabel29 = new javax.swing.JLabel(); jLabel26 = new javax.swing.JLabel(); jPanel11 = new javax.swing.JPanel(); jPanel10 = new javax.swing.JPanel(); jLabel13 = new javax.swing.JLabel(); jLabel14 = new javax.swing.JLabel(); jPanel12 = new javax.swing.JPanel(); jLabel15 = new javax.swing.JLabel(); jLabel16 = new javax.swing.JLabel(); jPanel13 = new javax.swing.JPanel(); jLabel17 = new javax.swing.JLabel(); jLabel18 = new javax.swing.JLabel(); jPanel15 = new javax.swing.JPanel(); jLabel21 = new javax.swing.JLabel(); jLabel22 = new javax.swing.JLabel(); jPanel16 = new javax.swing.JPanel(); jLabel23 = new javax.swing.JLabel(); jLabel24 = new javax.swing.JLabel(); jPanel2 = new javax.swing.JPanel(); jPanel14 = new javax.swing.JPanel(); jLabel19 = new javax.swing.JLabel(); jLabel20 = new javax.swing.JLabel(); jPanel17 = new javax.swing.JPanel(); jLabel27 = new javax.swing.JLabel(); jLabel28 = new javax.swing.JLabel(); lbl_jam = new javax.swing.JLabel(); javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane()); jDialog1.getContentPane().setLayout(jDialog1Layout); jDialog1Layout.setHorizontalGroup( jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 400, Short.MAX_VALUE) .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jDialog1Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jColorChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE))) ); jDialog1Layout.setVerticalGroup( jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 300, Short.MAX_VALUE) .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jDialog1Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jColorChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE))) ); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel1.setBackground(new java.awt.Color(255, 255, 0)); jPanel1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jPanel1MouseEntered(evt); } }); jPanel4.setBackground(new java.awt.Color(255, 255, 0)); jPanel4.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel4.setForeground(new java.awt.Color(255, 255, 255)); jPanel4.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jPanel4MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jPanel4MouseExited(evt); } }); jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IconMenu/icons8-home-24.png"))); // NOI18N jLabel1.setText("Beranda"); jLabel2.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N jLabel2.setText("Beranda"); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel2) .addGap(7, 7, 7)) ); jPanel5.setBackground(new java.awt.Color(255, 255, 0)); jPanel5.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel5.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jPanel5MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jPanel5MouseExited(evt); } public void mousePressed(java.awt.event.MouseEvent evt) { jPanel5MousePressed(evt); } }); jLabel3.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IconMenu/icons8-user-24.png"))); // NOI18N jLabel3.setText("User"); javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout.setHorizontalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); jPanel5Layout.setVerticalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE) ); jPanel6.setBackground(new java.awt.Color(255, 255, 0)); jPanel6.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel6.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jPanel6MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jPanel6MouseExited(evt); } }); jLabel5.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IconMenu/icons8-ticket-24.png"))); // NOI18N jLabel5.setText("Data Tiket"); javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) ); jPanel6Layout.setVerticalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(jLabel5) .addGap(0, 6, Short.MAX_VALUE)) ); jPanel7.setBackground(new java.awt.Color(255, 255, 0)); jPanel7.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel7.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jPanel7MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jPanel7MouseExited(evt); } }); jLabel6.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IconMenu/icons8-money-24.png"))); // NOI18N jLabel6.setText("Transaksi"); javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7); jPanel7.setLayout(jPanel7Layout); jPanel7Layout.setHorizontalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel7Layout.createSequentialGroup() .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); jPanel7Layout.setVerticalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE) ); jPanel8.setBackground(new java.awt.Color(255, 255, 0)); jPanel8.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel8.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jPanel8MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jPanel8MouseExited(evt); } }); jLabel7.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IconMenu/icons8-business-report-24.png"))); // NOI18N jLabel7.setText("Laporan Tiket"); javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8); jPanel8.setLayout(jPanel8Layout); jPanel8Layout.setHorizontalGroup( jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel8Layout.createSequentialGroup() .addComponent(jLabel7) .addGap(0, 0, Short.MAX_VALUE)) ); jPanel8Layout.setVerticalGroup( jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel8Layout.createSequentialGroup() .addComponent(jLabel7) .addGap(0, 11, Short.MAX_VALUE)) ); jPanel3.setBackground(new java.awt.Color(255, 255, 0)); jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IconMenu/icons8-user-24.png"))); // NOI18N jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IconMenu/icons8-calendar-24.png"))); // NOI18N jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IconMenu/icons8-clock-24.png"))); // NOI18N lbl_tgl.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N lbl_tgl.setForeground(new java.awt.Color(255, 0, 0)); lbl_tgl.setText("Tanggal"); jLabel11.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N jLabel11.setForeground(new java.awt.Color(255, 0, 0)); jLabel11.setText("Jam"); lbluser.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N lbluser.setForeground(new java.awt.Color(255, 0, 0)); lbluser.setText("Sebagai"); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGap(19, 19, 19) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel4) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jLabel8) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(lbl_tgl)) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jLabel9) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel11)) .addGroup(jPanel3Layout.createSequentialGroup() .addGap(34, 34, 34) .addComponent(lbluser))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(lbluser)) .addGap(11, 11, 11) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(lbl_tgl, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel8)) .addGap(13, 13, 13) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel9) .addComponent(jLabel11))) ); jPanel19.setBackground(new java.awt.Color(255, 255, 0)); jPanel18.setBackground(new java.awt.Color(255, 0, 0)); jPanel18.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel18.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jLabel29.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IconMenu/icons8-menu-24.png"))); // NOI18N jLabel29.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jLabel29MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jLabel29MouseExited(evt); } public void mousePressed(java.awt.event.MouseEvent evt) { jLabel29MousePressed(evt); } }); jPanel18.add(jLabel29, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 50, 50)); jLabel26.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IconMenu/icons8-menu-24.png"))); // NOI18N jLabel26.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jLabel26MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jLabel26MouseExited(evt); } public void mousePressed(java.awt.event.MouseEvent evt) { jLabel26MousePressed(evt); } }); jPanel18.add(jLabel26, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 36, 35)); jPanel11.setBackground(new java.awt.Color(255, 255, 0)); jPanel11.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel10.setBackground(new java.awt.Color(255, 255, 0)); jPanel10.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel10.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jPanel10MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jPanel10MouseExited(evt); } public void mousePressed(java.awt.event.MouseEvent evt) { jPanel10MousePressed(evt); } }); jLabel13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IconMenu/icons8-photo-editor-24.png"))); // NOI18N jLabel14.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N jLabel14.setText("Background"); jLabel14.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jLabel14MouseEntered(evt); } }); javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10); jPanel10.setLayout(jPanel10Layout); jPanel10Layout.setHorizontalGroup( jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel10Layout.createSequentialGroup() .addComponent(jLabel13) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel14) .addGap(0, 62, Short.MAX_VALUE)) ); jPanel10Layout.setVerticalGroup( jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel14, javax.swing.GroupLayout.Alignment.TRAILING) ); jPanel11.add(jPanel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 170, -1)); jPanel12.setBackground(new java.awt.Color(255, 255, 0)); jPanel12.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel12.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jPanel12MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jPanel12MouseExited(evt); } }); jLabel15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IconMenu/icons8-about-24.png"))); // NOI18N jLabel16.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N jLabel16.setText("About"); javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12); jPanel12.setLayout(jPanel12Layout); jPanel12Layout.setHorizontalGroup( jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel12Layout.createSequentialGroup() .addComponent(jLabel15) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel16) .addGap(0, 99, Short.MAX_VALUE)) ); jPanel12Layout.setVerticalGroup( jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel15, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.TRAILING) ); jPanel11.add(jPanel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 30, 170, -1)); jPanel13.setBackground(new java.awt.Color(255, 255, 0)); jPanel13.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel13.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jPanel13MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jPanel13MouseExited(evt); } public void mousePressed(java.awt.event.MouseEvent evt) { jPanel13MousePressed(evt); } }); jLabel17.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IconMenu/icons8-logout-rounded-down-24.png"))); // NOI18N jLabel18.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N jLabel18.setText("Logout"); javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13); jPanel13.setLayout(jPanel13Layout); jPanel13Layout.setHorizontalGroup( jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel13Layout.createSequentialGroup() .addComponent(jLabel17) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel18) .addGap(0, 93, Short.MAX_VALUE)) ); jPanel13Layout.setVerticalGroup( jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING) ); jPanel11.add(jPanel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 60, 170, -1)); jPanel15.setBackground(new java.awt.Color(255, 255, 0)); jPanel15.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel15.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jPanel15MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jPanel15MouseExited(evt); } }); jLabel21.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IconMenu/icons8-business-report-24.png"))); // NOI18N jLabel22.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N jLabel22.setText("Backup and Restore"); javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15); jPanel15.setLayout(jPanel15Layout); jPanel15Layout.setHorizontalGroup( jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel15Layout.createSequentialGroup() .addComponent(jLabel21) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel22) .addGap(0, 12, Short.MAX_VALUE)) ); jPanel15Layout.setVerticalGroup( jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel21, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel22, javax.swing.GroupLayout.Alignment.TRAILING) ); jPanel11.add(jPanel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 90, 170, -1)); jPanel16.setBackground(new java.awt.Color(255, 255, 0)); jPanel16.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel16.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jPanel16MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jPanel16MouseExited(evt); } public void mousePressed(java.awt.event.MouseEvent evt) { jPanel16MousePressed(evt); } }); jLabel23.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IconMenu/icons8-exit-24.png"))); // NOI18N jLabel24.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N jLabel24.setText("Keluar"); javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16); jPanel16.setLayout(jPanel16Layout); jPanel16Layout.setHorizontalGroup( jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel16Layout.createSequentialGroup() .addComponent(jLabel23) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel24) .addGap(0, 94, Short.MAX_VALUE)) ); jPanel16Layout.setVerticalGroup( jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel23, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel24, javax.swing.GroupLayout.Alignment.TRAILING) ); jPanel11.add(jPanel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 120, 170, -1)); javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19); jPanel19.setLayout(jPanel19Layout); jPanel19Layout.setHorizontalGroup( jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel19Layout.createSequentialGroup() .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE)) ); jPanel19Layout.setVerticalGroup( jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel19Layout.createSequentialGroup() .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 32, Short.MAX_VALUE) .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)) ); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE) .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(64, 64, 64) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, 640)); jPanel2.setBackground(new java.awt.Color(255, 0, 0)); jPanel14.setBackground(new java.awt.Color(255, 0, 0)); jPanel14.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jLabel19.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IconMenu/icons8-photo-editor-24.png"))); // NOI18N jLabel20.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N jLabel20.setText("Background"); javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14); jPanel14.setLayout(jPanel14Layout); jPanel14Layout.setHorizontalGroup( jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel14Layout.createSequentialGroup() .addComponent(jLabel19) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel20) .addGap(0, 0, Short.MAX_VALUE)) ); jPanel14Layout.setVerticalGroup( jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel19, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel20, javax.swing.GroupLayout.Alignment.TRAILING) ); jPanel17.setBackground(new java.awt.Color(255, 255, 0)); jLabel27.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N jLabel27.setText("DFD TICKET"); javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17); jPanel17.setLayout(jPanel17Layout); jPanel17Layout.setHorizontalGroup( jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup() .addContainerGap(167, Short.MAX_VALUE) .addComponent(jLabel27) .addGap(171, 171, 171)) ); jPanel17Layout.setVerticalGroup( jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel17Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel27) .addGap(33, 33, 33)) ); jLabel28.setBackground(new java.awt.Color(255, 255, 255)); jLabel28.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N jLabel28.setForeground(new java.awt.Color(255, 255, 255)); jLabel28.setText("Jam"); lbl_jam.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N lbl_jam.setForeground(new java.awt.Color(255, 255, 255)); lbl_jam.setText("Jam"); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(461, 461, 461) .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(108, 108, 108)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addComponent(lbl_jam) .addGap(124, 124, 124)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel28)) .addGap(89, 89, 89)))) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(lbl_jam) .addGap(66, 66, 66) .addComponent(jLabel28) .addGap(151, 151, 151) .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 0, 610, 140)); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public Soru1() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public quotaGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "public sinavlar2() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\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.createParallelGroup(\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\t\tAlignment.LEADING)\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.addComponent(label22,\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\t\tGroupLayout.PREFERRED_SIZE,\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\t\tGroupLayout.DEFAULT_SIZE,\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\t\tGroupLayout.PREFERRED_SIZE)\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.addGroup(\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\t\tlayout.createSequentialGroup()\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\t\t\t\t.addGap(3)\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\t\t\t\t.addComponent(\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\t\t\t\t\t\tlabel23,\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\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\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\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\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\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7320782", "0.72918797", "0.72918797", "0.72918797", "0.728645", "0.72498447", "0.7214492", "0.720934", "0.7197145", "0.71912014", "0.71852076", "0.7160113", "0.71487373", "0.70943654", "0.70820624", "0.7058153", "0.69883204", "0.6978216", "0.69558746", "0.6955715", "0.69455403", "0.6944223", "0.6936588", "0.6933016", "0.6929512", "0.6925853", "0.6925524", "0.6912182", "0.6912122", "0.6895022", "0.6894088", "0.68921435", "0.68919635", "0.6889464", "0.6884104", "0.6883508", "0.6882322", "0.6879773", "0.6876671", "0.68755716", "0.6872437", "0.6860746", "0.68575454", "0.6857284", "0.68563104", "0.6854648", "0.68544936", "0.68532896", "0.68532896", "0.68444484", "0.68380433", "0.6837678", "0.68299913", "0.6828643", "0.6828147", "0.6825278", "0.6823024", "0.68182456", "0.68178964", "0.681216", "0.6809752", "0.6809671", "0.6809534", "0.6808423", "0.6803337", "0.6794699", "0.67944574", "0.6793996", "0.6792107", "0.67904186", "0.67898226", "0.67888504", "0.6782858", "0.67673683", "0.67670184", "0.6765726", "0.6757476", "0.67573047", "0.6753978", "0.6752576", "0.674217", "0.67403704", "0.6738196", "0.67374873", "0.67351323", "0.6728453", "0.67277855", "0.6722282", "0.6716617", "0.67165154", "0.67154175", "0.6709239", "0.67077744", "0.6703873", "0.67028135", "0.6702373", "0.6700207", "0.67000616", "0.6695769", "0.6691885", "0.6690232" ]
0.0
-1
abstract double executeOperation(int[] params);
@Override public double execute(Scanner scanner) { int[] params = new int[parameterCount]; for (int i = 0; i < parameterCount; i++) { System.out.println(operationName + " yapılacak " + i + ". değer : "); params[i] = scanner.nextInt(); } return op.exec(params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Operation {\n Double execute(Double[] numbers) throws InvalidCalcOpeartionException;\n}", "public abstract int execute();", "public abstract void runOperation();", "void execute(Integer num1, Integer num2);", "public abstract void operation();", "Double executeOperation(List<Double> operands);", "abstract public void execute(Parameters p);", "@Override\n\tpublic void execute(String[] params) {\n\n\t}", "public abstract void execute();", "public abstract void execute();", "public abstract void execute();", "abstract protected void execute();", "public abstract int calculate(int a, int b);", "public int executeOperation(){\n\t\tswitch (operation){\n\t\tcase 1: \n\t\t\treturn var1 + var2;\n\t\tcase 2: \n\t\t\treturn var1 - var2;\n\t\tcase 3: \n\t\t\treturn var1 * var2;\n\t\tcase 4: \n\t\t\treturn var1 / var2;\n\t\t default:\n\t\t\treturn 0;\n\t\t\n\t\t}\n\t}", "protected abstract int intOp(int i1, int i2);", "public interface Operation {\n int operate(int args1, int args2);\n}", "public interface Operation{\r\n\tpublic void operate(Integer[] a);\r\n\tpublic String getOperationName();\r\n}", "public abstract int compute(int i1, int i2);", "public abstract double executeCommand(ArrayList<Unit> units);", "protected abstract void execute();", "@Override\npublic double executar(double a, double b) {\n\treturn a + b;\n}", "abstract void execute() throws Exception;", "public interface PerformOperation {\n\n\tpublic String performOperation(int i);\n}", "public int execute();", "protected abstract void execute() throws Exception;", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "protected abstract double operation(double val);", "public abstract T execute() throws Exception;", "public Object[] execute(int index, Object[] params) {\n\t\tObject[] ret = null;\n \n\t\tint paramLen = params.length;\n int inc = 1;\n\t\tswitch (index) {\n \t\tcase 0:\n if (paramLen != 4){ return new Object[] {new Double(100),\"Invalid Params\"}; }\n java.lang.String accountName0 = null;\n if(params[0] != null && params[0] != LuaNil.nil) {\n accountName0 = (java.lang.String)params[0];\n }\n java.lang.String profileName0 = null;\n if(params[1] != null && params[1] != LuaNil.nil) {\n profileName0 = (java.lang.String)params[1];\n }\n java.lang.String environmentName0 = null;\n if(params[2] != null && params[2] != LuaNil.nil) {\n environmentName0 = (java.lang.String)params[2];\n }\n java.lang.String key0 = null;\n if(params[3] != null && params[3] != LuaNil.nil) {\n key0 = (java.lang.String)params[3];\n }\n ret = this.initSharedInstance( accountName0, profileName0, environmentName0, key0 );\n \n \t\t\tbreak;\n \t\tcase 1:\n if (paramLen != 3){ return new Object[] {new Double(100),\"Invalid Params\"}; }\n java.lang.String callType1 = null;\n if(params[0] != null && params[0] != LuaNil.nil) {\n callType1 = (java.lang.String)params[0];\n }\n java.lang.String data1 = null;\n if(params[1] != null && params[1] != LuaNil.nil) {\n data1 = (java.lang.String)params[1];\n }\n java.lang.String key1 = null;\n if(params[2] != null && params[2] != LuaNil.nil) {\n key1 = (java.lang.String)params[2];\n }\n ret = this.trackEvent( callType1, data1, key1 );\n \n \t\t\tbreak;\n \t\tcase 2:\n if (paramLen != 3){ return new Object[] {new Double(100),\"Invalid Params\"}; }\n java.lang.String screenName2 = null;\n if(params[0] != null && params[0] != LuaNil.nil) {\n screenName2 = (java.lang.String)params[0];\n }\n java.lang.String data2 = null;\n if(params[1] != null && params[1] != LuaNil.nil) {\n data2 = (java.lang.String)params[1];\n }\n java.lang.String key2 = null;\n if(params[2] != null && params[2] != LuaNil.nil) {\n key2 = (java.lang.String)params[2];\n }\n ret = this.trackView( screenName2, data2, key2 );\n \n \t\t\tbreak;\n \t\tdefault:\n\t\t\tbreak;\n\t\t}\n \n\t\treturn ret;\n\t}", "protected abstract void execute(INPUT input);", "public abstract void compute();", "public interface Operation {\n\tdouble evaluate(double x, double y);\n}", "public abstract void execute(InputCalc input, Calculator calculator);", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "abstract void exec();", "void execute() throws Exception;", "public abstract void calculate();", "@Override\n\tpublic void execute(int n1, int n2) {\n\t\tthis.result = n1*n2;\n\t}", "void execute(short[] data);", "public OperationStatus execute(T operation) throws AbstractAgentException;", "public abstract Operand execute(Operand first, Operand second);", "@Override\n public void execute(final OperationParams params) throws Exception {\n if (parameters.size() != 2) {\n throw new ParameterException(\"Requires arguments: <input store name> <output store name>\");\n }\n computeResults(params);\n }", "Operations operations();", "String execute(String... parameters);", "public int operation(int number1,int number2,String operator)", "public interface BasicOperator {\n public double compute(double... args);\n}", "protected abstract void execute(final SimulationParameters params) throws TurnoverException;", "public abstract int calculateOutput();", "protected abstract void executeHelper();", "CommandResult execute();", "int executeSafely();", "@Override\n public int executeTask(Long appId, String methodClass, String methodName, boolean isPrioritary, int numNodes, boolean isReplicated,\n boolean isDistributed, boolean hasTarget, int parameterCount, Object... parameters) {\n\n return executeTask(appId, false, methodClass, methodName, null, isPrioritary, numNodes, isReplicated, isDistributed, hasTarget,\n parameterCount, parameters);\n }", "public abstract void execute(List<Object> list);", "double performeOperation(double argument1, double argument2);", "abstract void calculate(double a);", "@Override\n\tpublic double execute() {\n\t\tList<Variable> args = getArgs();\n\t\tVariable newVar = null;\n\t\tfor (int i = 0; i < args.size(); i += 2) {\n\t\t\tnewVar = new Variable(args.get(i).getKey(), args.get(i + 1).getValue());\n\t\t\tgetBackendController().setVariable(newVar);\n\t\t}\n\t\treturn newVar == null ? 0 : newVar.getValue();\n\t}", "public void execute(){\n\t\t\n\t}", "public interface Myfunc {\n void invok(Integer arr);\n}", "public interface ArithmeticOperation {\n\n /**\n * Operation to be performed on two arguments\n *\n * @param argument1 first operand\n * @param argument2 second operand\n * @return result of the operation\n */\n double performeOperation(double argument1, double argument2);\n}", "public java.util.List<Object> execute(java.util.List<Object> inputData);", "public interface UniMathOp {\n public double run(double a);\n}", "public abstract Result mo5059a(Params... paramsArr);", "public void execute(){\n\n }", "public abstract Object execute(Class clazz, Object[] args) throws IOException;", "@Override\n public int[] executeBatch() {\n if (this.batchPos == 0) {\n return new int[0];\n }\n try {\n int[] arrn = this.db.executeBatch(this.pointer, this.batchPos / this.paramCount, this.batch);\n return arrn;\n }\n finally {\n this.clearBatch();\n }\n }", "@Override\n public int executeTask(Long appId, String signature, boolean isPrioritary, int numNodes, boolean isReplicated, boolean isDistributed,\n boolean hasTarget, int parameterCount, Object... parameters) {\n\n return executeTask(appId, true, null, null, signature, isPrioritary, numNodes, isReplicated, isDistributed, hasTarget,\n parameterCount, parameters);\n }", "protected void execute() {}", "public abstract void runAlgorithm();", "public abstract int b(int i2, int i3);", "protected abstract Object doCalculations();", "private static int executeInstruction(int instruction, int arg0, int arg1, int arg2, int[] memory){\n\t\t\n\t\tswitch(instruction){\n\t\t\tcase mov:\n\t\t\t\tmemory[arg0] = memory[arg1];\n\t\t\t\tbreak;\n\t\t\tcase movv:\n\t\t\t\tmemory[arg0] = arg1;\n\t\t\t\tbreak;\n\t\t\tcase jmp:\n\t\t\t\treturn arg0;\n\t\t\t\t//break;\n\t\t\tcase jif:\n\t\t\t\tif(memory[arg0] != 0){\n\t\t\t\t\treturn 2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase jifv:\n\t\t\t\tif(arg0 != 0){\n\t\t\t\t\treturn 2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase add:\n\t\t\t\tmemory[arg0] = memory[arg1] + memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase sub:\n\t\t\t\tmemory[arg0] = memory[arg1] - memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase mlt:\n\t\t\t\tmemory[arg0] = memory[arg1] * memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase div:\n\t\t\t\tmemory[arg0] = memory[arg1] / memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase mod:\n\t\t\t\tmemory[arg0] = memory[arg1] % memory[arg2];\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase addvl:\n\t\t\t\tmemory[arg0] = arg1 + memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase subvl:\n\t\t\t\tmemory[arg0] = arg1 - memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase mltvl:\n\t\t\t\tmemory[arg0] = arg1 * memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase divvl:\n\t\t\t\tmemory[arg0] = arg1 / memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase modvl:\n\t\t\t\tmemory[arg0] = arg1 % memory[arg2];\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase addlv:\n\t\t\t\tmemory[arg0] = memory[arg1] + arg2;\n\t\t\t\tbreak;\n\t\t\tcase sublv:\n\t\t\t\tmemory[arg0] = memory[arg1] - arg2;\n\t\t\t\tbreak;\n\t\t\tcase mltlv:\n\t\t\t\tmemory[arg0] = memory[arg1] * arg2;\n\t\t\t\tbreak;\n\t\t\tcase divlv:\n\t\t\t\tmemory[arg0] = memory[arg1] / arg2;\n\t\t\t\tbreak;\n\t\t\tcase modlv:\n\t\t\t\tmemory[arg0] = memory[arg1] % arg2;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase addvv:\n\t\t\t\tmemory[arg0] = arg1 + arg2;\n\t\t\t\tbreak;\n\t\t\tcase subvv:\n\t\t\t\tmemory[arg0] = arg1 - arg2;\n\t\t\t\tbreak;\n\t\t\tcase mltvv:\n\t\t\t\tmemory[arg0] = arg1 * arg2;\n\t\t\t\tbreak;\n\t\t\tcase divvv:\n\t\t\t\tmemory[arg0] = arg1 / arg2;\n\t\t\t\tbreak;\n\t\t\tcase modvv:\n\t\t\t\tmemory[arg0] = arg1 % arg2;\n\t\t\t\tbreak;\n\t\t\t///////////////////////////////\n\t\t\tcase l:\n\t\t\t\tmemory[arg0] = memory[arg1] < memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase g:\n\t\t\t\tmemory[arg0] = memory[arg1] > memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase le:\n\t\t\t\tmemory[arg0] = memory[arg1] <= memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase ge:\n\t\t\t\tmemory[arg0] = memory[arg1] >= memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase e:\n\t\t\t\tmemory[arg0] = memory[arg1] == memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase ne:\n\t\t\t\tmemory[arg0] = memory[arg1] != memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase lvl:\n\t\t\t\tmemory[arg0] = arg1 < memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gvl:\n\t\t\t\tmemory[arg0] = arg1 > memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase levl:\n\t\t\t\tmemory[arg0] = arg1 <= memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gevl:\n\t\t\t\tmemory[arg0] = arg1 >= memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase evl:\n\t\t\t\tmemory[arg0] = arg1 == memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase nevl:\n\t\t\t\tmemory[arg0] = arg1 != memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase llv:\n\t\t\t\tmemory[arg0] = memory[arg1] < arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase glv:\n\t\t\t\tmemory[arg0] = memory[arg1] > arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase lelv:\n\t\t\t\tmemory[arg0] = memory[arg1] <= arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gelv:\n\t\t\t\tmemory[arg0] = memory[arg1] >= arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase elv:\n\t\t\t\tmemory[arg0] = memory[arg1] == arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase nelv:\n\t\t\t\tmemory[arg0] = memory[arg1] != arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase lvv:\n\t\t\t\tmemory[arg0] = arg1 < arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gvv:\n\t\t\t\tmemory[arg0] = arg1 > arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase levv:\n\t\t\t\tmemory[arg0] = arg1 <= arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gevv:\n\t\t\t\tmemory[arg0] = arg1 >= arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase evv:\n\t\t\t\tmemory[arg0] = arg1 == arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase nevv:\n\t\t\t\tmemory[arg0] = arg1 != arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase andll:\n\t\t\t\tmemory[arg0] = memory[arg1] != 0 && memory[arg2] != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase orll:\n\t\t\t\tmemory[arg0] = memory[arg1] != 0 || memory[arg2] != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase andvl:\n\t\t\t\tmemory[arg0] = arg1 != 0 && memory[arg2] != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase orvl:\n\t\t\t\tmemory[arg0] = arg1 != 0 || memory[arg2] != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase andlv:\n\t\t\t\tmemory[arg0] = memory[arg1] != 0 && arg2 != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase orlv:\n\t\t\t\tmemory[arg0] = memory[arg1] != 0 || arg2 != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase andvv:\n\t\t\t\tmemory[arg0] = arg1 != 0 && arg2 != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase orvv:\n\t\t\t\tmemory[arg0] = arg1 != 0 || arg2 != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase notl:\n\t\t\t\tmemory[arg0] = memory[arg1] == 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase notv:\n\t\t\t\tmemory[arg0] = arg1 == 0 ? 1 : 0;\n\t\t\t\n\t\t\tcase nop:\n\t\t\t\t//do nothing\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t}\n\t\t//jump ahead one instruction\n\t\treturn 1;\n\t}", "void execute(final AbstractInteractor interactor);", "public void testOperation();", "public native int execute(String name);", "protected abstract int getValue(int paramInt);", "int getResult();", "public abstract boolean execute(String[] args) throws InterruptedException;", "protected abstract Object[] getValue(Object ... inputs) throws InvalidNumberOfArgumentsException;", "abstract public Number getResult (final Number pe, final Number pd, final Number t) throws CGException ;", "abstract public void execute(FunctionContext context) throws Exception;", "public abstract int execUpdate(String query) ;", "public abstract int simulate();", "protected abstract Value execute(final State state, final HashMap<ParameterDef, Value> args) throws SetlException;", "@SuppressWarnings(\"unused\")\r\n\t@Override\r\n\tpublic double doCommand(String[] parameters, int commandIndex) {\n\t\tDouble leftExpression = null;\r\n\t\tDouble rightExpression = null;\r\n\t\tString predicate=null;\r\n\t\tint res=0;\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tint innerLoop = 0;\r\n\t\tString[] innerLoopEquasion = new String[5];\r\n\t\tint j=0;\r\n\t\tString[] whileiLine=null;\r\n\t\tboolean flag= true;\r\n\t\t\r\n//\t\tSystem.out.println(\"length is: \"+parameters.length);\r\n//\t\t\r\n//\t\tfor(String s: parameters) {\r\n//\t\t\tSystem.out.println(s);\r\n//\t\t}\r\n//\t\t\r\n\t\tfor(int i=0; i<parameters.length;i++) {\r\n\t\t\tif(parameters[i].contains(\"while\")) {\r\n\t\t\t\tinnerLoop = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(\"length is: \" + parameters.length);\r\n//\t\tSystem.out.println(\"innerloop index: \" + innerLoop);\r\n\t\t\t\t\t\r\n\t\t//calculate how many equasion i need to calculate\r\n\t\tfor(int i=innerLoop; i<parameters.length && flag;i++) {\r\n\t\t\tif(parameters[i].contains(\"while\")) {\r\n\t\t\t\twhileiLine = parameters[i].split(\"\\\\s+\");\r\n\t\t\t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n\t\t\t\trightExpression= ExpressionToDouble(whileiLine[3]);\r\n\t\t\t\tpredicate = whileiLine[2];\r\n\t\t\t}\r\n\t\t\telse if(parameters[i].contains(\"}\")) {\r\n\t\t\t\tflag=false;\r\n\t\t\t}\t\t\t\r\n\t\t\telse if(i>innerLoop) {\t\r\n\t\t\t\t innerLoopEquasion[j]=parameters[i];\r\n\t\t\t\t//System.out.println(\"loopy: \"+ innerLoopEquasion[j]);\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\t\r\n\t\t//apply the condition:\r\n\t switch (predicate) {\r\n case \"<\": {\r\n while (leftExpression - rightExpression < 0) {\r\n \tres=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\r\n }\r\n } break;\r\n\r\n case \">\": {\r\n while (leftExpression - rightExpression > 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n\r\n case \"<=\": {\r\n while (leftExpression - rightExpression <= 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n\r\n case \">=\": {\r\n while (leftExpression - rightExpression >= 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n\r\n case \"==\": {\r\n while (leftExpression - rightExpression == 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n\r\n case \"!=\": {\r\n while (leftExpression - rightExpression != 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n } \r\n\t //return the next expression afer the \"}\"\r\n\t return parameters.length;\r\n\t}", "@Override\n public abstract void runOpMode();", "public boolean execute(String[] args);", "public Integer perform (IExpression left, IExpression right);", "@Nullable\n @Generated\n @Selector(\"execute:\")\n public native NSArray<?> execute(@Nullable @ReferenceInfo(type = NSError.class) Ptr<NSError> error);", "abstract void runRoutine();", "@Override\n\t\tpublic int run(String[] arg0) throws Exception {\n\t\t\treturn 0;\n\t\t}", "public static double operation(int num1,int num2,int operation){\r\n \r\n int result =0 ;\r\n switch(operation){\r\n case 1:\r\n result=num1+num2;\r\n break;\r\n case 2:\r\n result=num1-num2;\r\n break;\r\n case 3:\r\n result=num1*num2;\r\n break;\r\n case 4:\r\n result=num1/num2;\r\n break;\r\n }\r\n return result ;\r\n \r\n}" ]
[ "0.7324094", "0.7140328", "0.70960295", "0.70941406", "0.70391375", "0.6948674", "0.69276005", "0.68431604", "0.6710576", "0.6710576", "0.6710576", "0.6709851", "0.67085385", "0.6687618", "0.66712683", "0.66642874", "0.6658173", "0.6650817", "0.66367084", "0.65765935", "0.6554912", "0.6543735", "0.65429914", "0.65412295", "0.6404385", "0.63232726", "0.63232726", "0.63232726", "0.63232726", "0.63232726", "0.63232726", "0.63232726", "0.6308372", "0.6290627", "0.6286941", "0.6285885", "0.62589675", "0.6185048", "0.61667323", "0.6148374", "0.6148374", "0.6148374", "0.6148374", "0.6142002", "0.6118721", "0.6106116", "0.610312", "0.61028016", "0.6085884", "0.6083085", "0.6077732", "0.6074934", "0.6068661", "0.6028174", "0.59871984", "0.59740144", "0.5968906", "0.59616333", "0.5930431", "0.59116423", "0.5899976", "0.5886033", "0.5882125", "0.5863596", "0.58373606", "0.58365667", "0.58275205", "0.5819965", "0.58105975", "0.5802264", "0.58008415", "0.57967144", "0.5777188", "0.57470715", "0.573934", "0.5739243", "0.5720413", "0.57183146", "0.5706524", "0.5706417", "0.5701588", "0.56946623", "0.56863797", "0.5680067", "0.5677539", "0.56668305", "0.56590074", "0.565078", "0.5643963", "0.5642834", "0.5634162", "0.56289715", "0.56253624", "0.5625012", "0.562352", "0.5622165", "0.5620949", "0.56201637", "0.56172806", "0.56093174" ]
0.629185
33
/ On Context Item Selected
public boolean onContextItemSelected(MenuItem item) { switch (item.getItemId()){ case R.id.Postular: Toast.makeText(this, "Se registro la postulación con Exito.", Toast.LENGTH_LONG).show(); return true; case R.id.Compartir: Toast.makeText(this, "Se Compartio el Item.", Toast.LENGTH_LONG).show(); return true; default: return super.onContextItemSelected(item); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "@Override\r\n\tpublic void onMenuItemSelected(MenuItem item) {\n\r\n\t}", "@Override\r\n\tpublic void itemSelectedAtIndexPath(IndexPath path) {\n\r\n\t}", "@Override\n public void contextMenuOpened(ObservableList<GUITemplate> selected) {\n }", "@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\tOptionsMenu.selectItem(item,getApplicationContext());\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}", "void itemSelected(OutlineItem item);", "public void onSelectionChanged();", "@Override\n\tpublic boolean onContextItemSelected(MenuItem item) {\n\t\treturn super.onContextItemSelected(item);\n\t}", "void onItemSelected(int index, T item) throws RemoteException;", "public void itemSelected(boolean selected);", "public void onShowMushroomSelectionDialogSelected(Context context);", "@FXML\n\tpublic void setSelectedItem(MouseEvent event) {\n\t\ttry {\n\t\t\tString s=inventoryList.getSelectionModel().getSelectedItem();\t// Get selected item\n\t\t\tItem i=Item.getItem(ItemList, s);\n\t\t\titemselect.setText(s);\t// Set selected item information\n\t\t\tif(i.getStat().equals(\"HP\"))\n\t\t\t\titemStats.setText(\"+\"+i.getChange()+\" Health\");\n\t\t\telse if(i.getStat().equals(\"DMG\"))\n\t\t\t\titemStats.setText(\"+\"+i.getChange()+\" Damage\");\n\t\t\telse\n\t\t\t\titemStats.setText(\"+\"+i.getChange()+\" Evasion\");\n\t\t} catch(Exception e) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t}", "public void selectionChanged(Action item);", "public void onComidaSelected(int comidaId);", "public void selected(String action);", "@Override\n public void menuSelected(MenuEvent e) {\n \n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View v, int pos, long id) {\n\t\t\t\tSystem.out.println(\"Selected \" + pos);\n\t\t\t}", "@Override\n public boolean onMenuItemSelected(int featureId, MenuItem item) {\n int lSelectedItemID = item.getItemId(); // 액션 메뉴 아이디 확인함.\n if(lSelectedItemID == R.id.action_example){\n // To-do something\n }\n return super.onMenuItemSelected(featureId, item);\n }", "@Override\r\n \tpublic boolean onContextItemSelected(MenuItem item) {\n \t\tAdapterContextMenuInfo info = (AdapterContextMenuInfo) item\r\n \t\t\t\t.getMenuInfo();\r\n \r\n \t\tm_cursor.moveToPosition(info.position);\r\n \t\tString contactId = m_cursor.getString(m_cursor\r\n \t\t\t\t.getColumnIndex(ContactsContract.Contacts._ID)), name = m_cursor\r\n \t\t\t\t.getString(m_cursor\r\n \t\t\t\t\t\t.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));\r\n \r\n \t\tLog.i(tag, \"position is: \" + info.position + \", contactId: \"\r\n \t\t\t\t+ contactId + \", name: \" + name);\r\n \t\t// Retrieve the item that was clicked on\r\n \t\t// Object o = adapter.getItem(info.position);\r\n \r\n \t\tif (item.getTitle() == \"Remove from group\") {\r\n \t\t\tLog.i(tag, \"Remove: \" + item.getItemId());\r\n \t\t\tremoveFromGroup(contactId);\r\n \t\t} else if (item.getTitle() == \"Call\") {\r\n \t\t\t// call the guy\r\n \t\t\tcallFromGroup(contactId);\r\n \t\t} else if (item.getTitle() == \"Edit\") {\r\n \t\t\tshowEdit(contactId);\r\n \t\t} else if(item.getTitle() == \"view\"){\r\n \t\t\tshowContact(contactId);\r\n \t\t}\r\n \t\telse {\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\treturn true;\r\n \t}", "protected void onSelect() {\n\n }", "@Override\n\tpublic void menuSelected(MenuEvent e) {\n\n\t}", "public void onSelectedItems(Map<String,Integer> selectedMapPo) {\n\t\t\t\t\n\t\t\t}", "void onItemSelected(Bundle args);", "@Override\n public void onClick(View v) {\n onItemSelected.onToolSelected(mToolList.get(getLayoutPosition()).getToolType());\n }", "@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif (e.getStateChange() == ItemEvent.SELECTED) { \r\n\t\t\t\t\tselectSource(e.getItem());\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View v, int position, long id)\n {\n }", "public void onItemStateChanged(String id, boolean selected);", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "public void onItemSelecting(AdapterView<?> parent, View view, int oldPosition, int newPosition);", "@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}", "public void onEventSelected(int position);", "void onItemSelected();", "void onItemSelected();", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "public void onSelectedItem(int position) {\n\t\t\t\t\n\t\t\t\tviewInfo.intentUri = customDialog.mAppList.get(position).intentUri;\n\t\t\t\t\n\t\t\t\tviewInfo.icon = customDialog.mAppList.get(position).icon;\n\t\t\t\tviewInfo.label = customDialog.mAppList.get(position).label;\n\t\t\t\t\n\t\t\t\tmUiManager.addItemToPanel(null\n\t\t\t\t,viewInfo\n\t\t\t\t,mDatabaseUtil);\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id)\n {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n expertise_selected = adapterView.getItemAtPosition(i).toString();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n selectItem(position);\n }", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n\t\t}", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int pos,\n\t\t\tlong id) {\n\t\t\n\t\t\n\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n }", "private void optionSelected(MenuActionDataItem action){\n \t\tString systemAction = action.getSystemAction();\n \t\tif(!systemAction.equals(\"\")){\n \t\t\t\n \t\t\tif(systemAction.equals(\"back\")){\n \t\t\t\tonBackPressed();\n \t\t\t}else if(systemAction.equals(\"home\")){\n \t\t\t\tIntent launchHome = new Intent(this, CoverActivity.class);\t\n \t\t\t\tstartActivity(launchHome);\n \t\t\t}else if(systemAction.equals(\"tts\")){\n \t\t\t\ttextToSearch();\n \t\t\t}else if(systemAction.equals(\"search\")){\n \t\t\t\tshowSearch();\n \t\t\t}else if(systemAction.equals(\"share\")){\n \t\t\t\tshowShare();\n \t\t\t}else if(systemAction.equals(\"map\")){\n \t\t\t\tshowMap();\n \t\t\t}else\n \t\t\t\tLog.e(\"CreateMenus\", \"No se encuentra el el tipo de menu: \" + systemAction);\n \t\t\t\n \t\t}else{\n \t\t\tNextLevel nextLevel = action.getNextLevel();\n \t\t\tshowNextLevel(this, nextLevel);\n \t\t\t\n \t\t}\n \t\t\n \t}", "public void onItemSelected(int id);", "protected void onSelectionPerformed(boolean success) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n public void select(Menu context) {\n updateControllable(context);\n currentStructure.assignWorkersToPowerHarvest(context.getFocus(), PopUpMenuWindow.WorkerMenu());\n }", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();\n switch(item.getItemId()) {\n case R.id.edit:\n editEntry(info.position);\n return true;\n case R.id.delete:\n deleteEntry(info.position);\n return true;\n }\n return super.onContextItemSelected(item);\n }", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n switch (item.getItemId()){\n\n case R.id.item_1:\n Toast.makeText(this, \"Item 1 Clicked\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.item_2:\n Toast.makeText(this, \"Item 2 clicked\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.item_3:\n Toast.makeText(this, \"Item 3 clicked\", Toast.LENGTH_SHORT).show();\n }\n return true;\n }", "public void onItemSelected(Long id);", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Subscribe\r\n\tpublic void onSelectExperiement(ExpressionDataSelectedEvent event)\r\n\t{\r\n\t\tgetView().updateSelectionLabel(event.GetPayload().getName());\r\n\t}", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "@Override\n public boolean onPrepareActionMode(final ActionMode mode, Menu menu) {\n isEnable = true;\n //create method\n clickItem(holder);\n //set observer on to get text method\n mainViewModel.getSelectedLiveData().observe((LifecycleOwner) activity,\n new Observer<String>() {\n @Override\n public void onChanged(String s) {\n //when text change\n //set text on action mode title\n mode.setTitle(String.format(\"%s %s %s\",context.getResources()\n .getString(R.string.selected),s ,\n context.getResources().getString(R.string.item) ));\n }\n });\n return true;\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n\n }", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();\n switch (item.getItemId()) {\n case R.id.context_archive:\n if (!mArchivedFruits.contains(mFruits.get(info.position))) {\n mArchivedFruits.add(mFruits.get(info.position));\n mArchivedListAdapter.notifyDataSetChanged();\n }\n return true;\n case R.id.context_share:\n shareText(mFruits.get(info.position));\n return true;\n case R.id.context_delete:\n mFruits.remove(info.position);\n mArrayAdapter.notifyDataSetChanged();\n return true;\n default:\n return super.onContextItemSelected(item);\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int position,long id) {\n\n\n\n\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if (mActionMode != null)\n onListItemSelect(position);\n }", "public void onItemSelected(int position);", "@Override\n public void showContextMenu()\n {\n showContextMenu(selection, View.SELECTION);\n }", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n\n case R.id.context_menu_edit:\n Toast.makeText(this,\"Edit\" ,Toast.LENGTH_SHORT ).show();\n return true;\n\n case R.id.context_menu_share:\n Toast.makeText(this,\"Share\" ,Toast.LENGTH_SHORT ).show();\n return true;\n\n case R.id.context_menu_delete:\n Toast.makeText(this,\"Delete\" ,Toast.LENGTH_SHORT ).show();\n\n }\n\n return super.onContextItemSelected(item);\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n }", "@Override\r\n protected TreeItem getSelectedItem() {\r\n return getSelectionModel().getSelectedItem();\r\n }", "@Override\n public void onItemSelected(AdapterView<?> parent2, View view2, int position2, long id2) {\n }", "@Override\n\tpublic void onValueSelected(Entry e, int dataSetIndex, Highlight h) {\n\t\t\n\t}", "@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\n\t}", "@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\n\t}", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View paramView, int arg2, long arg3) {\n\t\t\t\tmItemListCurPosition = arg2;\n\t\t\t\tif (isFirstInit) {\n\t\t\t\t\tfocusView.initFocusView(paramView, false, 0);\n\t\t\t\t}\n\t\t\t\tfocusView.moveTo(paramView);\n\t\t\t\tif (mTextView != null) {\n\t\t\t\t\tmTextView.setTextColor(mContext.getResources().getColor(R.color.grey5_color));\n\t\t\t\t}\n\t\t\t\tif (mTextViewSetting != null) {\n\t\t\t\t\tmTextViewSetting.setTextColor(mContext.getResources().getColor(\n\t\t\t\t\t\t\tR.color.grey5_color));\n\t\t\t\t}\n\t\t\t\tmTextView = (TextView) paramView.findViewById(R.id.item_name);\n\t\t\t\tmTextViewSetting = (TextView) paramView.findViewById(R.id.item_setting);\n\t\t\t\tif (isFirstInit) {\n\t\t\t\t\tisFirstInit = false;\n\t\t\t\t\tmTextColorChangeFlag = true;\n\t\t\t\t\tlistTextColorSet();\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "public void onComponentSelection(){\r\n\r\n }", "public void onIndividualSelected(Individual individual) {\n\t\t\n\t}", "public void onListItemSelect(int position) {\n storageGridViewAdapter.toggleSelection(position);//Toggle the selection\n\n boolean hasCheckedItems = storageGridViewAdapter.getSelectedCount() > 0;//Check if any items are already selected or not\n\n if (hasCheckedItems && mActionMode == null)\n // there are some selected items, start the actionMode\n mActionMode = startSupportActionMode(new ToolbarActionModeCallback(PictureActivity.this, storageGridViewAdapter, allImages));\n else if (!hasCheckedItems && mActionMode != null)\n // there no selected items, finish the actionMode\n mActionMode.finish();\n\n if (mActionMode != null)\n //set action mode title on item selection\n mActionMode.setTitle(String.valueOf(storageGridViewAdapter.getSelectedCount()) + \" selected\");\n }", "public void onItemSelected(AdapterView<?> parent, View v, \n\t int pos, long id) {\n\t }", "@Override\r\npublic void menuSelected(MenuEvent arg0) {\n\t\r\n}", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();\n try {\n // condition for edit\n if (item.getItemId() == R.id.edit) {\n Toast.makeText(this, \"Edit \" + name[info.position], Toast.LENGTH_SHORT).show(); // show toast when context item selected\n }\n // condition for call\n else if (item.getItemId() == R.id.call) {\n Toast.makeText(this, \"Call to \" + name[info.position], Toast.LENGTH_SHORT).show(); // show toast when context item selected\n }\n // condition for sms\n else if (item.getItemId() == R.id.sms) {\n Toast.makeText(this, \"SMS to \" + name[info.position], Toast.LENGTH_SHORT).show(); // show toast when context item selected\n }\n return true;\n } catch (Exception e) {//if false catch exception\n return true;\n }\n\n }", "public void setSelectedItem(Gnome selectedItem) {\n this.selectedItem = selectedItem;\n }", "void selectionModeChanged(SelectionMode mode);", "public void OnRecipeSelected();", "@Override\n public void onChanged(String s) {\n mode.setTitle(String.format(\"%s %s %s\",context.getResources()\n .getString(R.string.selected),s ,\n context.getResources().getString(R.string.item) ));\n }", "protected final void onSelect(CommandSender sender) {\n setInteracting(sender);\n onSelect();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent3, View view3, int position3, long id3) {\n }", "@Override\n\tpublic boolean onContextItemSelected(MenuItem item) {\n\t\t AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();\n\t\t \n\t\t switch (item.getItemId()) {\n\t\tcase R.id.delete:\n\t\t\tdeletion(pid);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onContextItemSelected(item);\n\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n isSelected = true;\n\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }", "@Override\n public void itemClick(int pos) {\n }", "@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\tString res = jc.getSelectedItem().toString();\n\t\tjt.setText(res);\n\n\t}", "@Override\n\t\tpublic boolean onContextItemSelected(MenuItem item) {\n\t\t\tif(item.toString() == \"Cancel Paired\")\n\t\t\t{\n\t\t\t\tpaired_cancel(mBtDevChosen);\n\t\t\t}\n\t\t\telse if(item.toString()== \"Pair and Connect\")\n\t\t\t{\n\t\t\t\tactivity_result_set(mBtDevChosen);\n\t\t\t}\n\t\t\treturn super.onContextItemSelected(item);\n\t\t}" ]
[ "0.7432507", "0.7432507", "0.69927174", "0.69546133", "0.6936153", "0.69187397", "0.6877063", "0.6829736", "0.67870194", "0.6773402", "0.6754373", "0.6752979", "0.67299527", "0.67184097", "0.6713906", "0.67121786", "0.6711638", "0.66809726", "0.6673127", "0.66707814", "0.6664197", "0.66437906", "0.66337955", "0.66310304", "0.6583399", "0.6567428", "0.65647787", "0.65647787", "0.6537029", "0.65251696", "0.65214276", "0.6512836", "0.65109164", "0.65109164", "0.64992857", "0.6490495", "0.64891744", "0.64826757", "0.64826757", "0.64814687", "0.64811575", "0.6465457", "0.6461564", "0.6458581", "0.64488935", "0.643788", "0.6435748", "0.64325196", "0.6422971", "0.6420364", "0.6415581", "0.64138997", "0.6412927", "0.6411708", "0.6406822", "0.6403098", "0.6402355", "0.64011914", "0.6389441", "0.6389441", "0.6389441", "0.63691545", "0.63661104", "0.63661104", "0.63661104", "0.63661104", "0.63661104", "0.63647866", "0.6345473", "0.6339578", "0.63371724", "0.6335093", "0.6331015", "0.6327009", "0.6325778", "0.63194585", "0.63162786", "0.631168", "0.6307729", "0.6294975", "0.6288084", "0.6288084", "0.6286666", "0.6285286", "0.6280058", "0.62783104", "0.62766737", "0.6276089", "0.62699026", "0.62691927", "0.62667465", "0.62630653", "0.62614113", "0.6249924", "0.62492293", "0.624536", "0.6227945", "0.6224702", "0.6224648", "0.6223757", "0.6218618" ]
0.0
-1
/ On Activity Result
protected void onActivityResult(int requestCode, int resultCode, Intent data) { Trabajo newTrabajo = (Trabajo) data.getSerializableExtra("resultado"); if(newTrabajo.getId() != 0) { // Si NO es un Trabajo Nuevo Vacío, osea que no hayan Cancelado la operación Toast.makeText(getBaseContext(), "Nuevo Trabajo: " + newTrabajo.getDescripcion(), Toast.LENGTH_LONG).show(); // Insertamos en la Categoría correspondiente el Nuevo Trabajo Categoria.CATEGORIAS_MOCK[newTrabajo.getCategoria().getId()].addTrabajo(newTrabajo); // Incorporamos a la "listaTrabajos" el Nuevo Trabajo this.listaTotalTrabajos(); //Se notifica al adaptador de que el ArrayList que tiene asociado ha sufrido cambios (forzando asi a ir al metodo getView()) adaptador.notifyDataSetChanged(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void resultActivityCall(int requestCode, int resultCode, Intent data) {\n\n\t}", "@Override\n public void OnActivityResultReceived(int requestCode, int resultCode, Intent data) {\n\n }", "void onResult(int ret);", "@Override\n public void handleResult(Intent data) {\n }", "@Override\n public void onSuccess(Map<String, Object> retData) {\n startActivity(intent_main);\n }", "@Override\n public void onResult(final AIResponse result) {\n DobbyLog.i(\"Action: \" + result.getResult().getAction());\n }", "@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\tif (result == 0) {\n\t\t\t\t\t\t\tgetApplyDialog();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToastUtil.showToast(context, \"无法获取游戏信息\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}", "@Override\r\n\t\tprotected void onPostExecute(Object result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\tif (result != null && (Boolean) result) {\r\n\t\t\t\tIntent intent = new Intent();\r\n\t\t\t\tBundle bundle = new Bundle();\r\n\t\t\t\tbundle.putString(MainActivity.TAG, \"1000\");\r\n\t\t\t\tintent.putExtras(bundle);\r\n\t\t\t\tintent.setAction(ReciverContents.PaySuccess);\r\n\t\t\t\tactivcty.sendBroadcast(intent);\r\n\t\t\t}\r\n\r\n\t\t}", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n }", "void onResult(AIResponse result);", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent intent) {\n// switch (resultCode) { //resultCode为回传的标记,我在第二个Activity中回传的是RESULT_OK\n// case Activity.RESULT_OK:\n// Bundle b=intent.getExtras(); //data为第二个Activity中回传的Intent\n// barCode = b.getString(\"code\");//str即为回传的值\n// mCallbackContext.success(barCode);\n// break;\n// default:\n// break;\n// }\n }", "public void on_code_read(String result){\n Intent intent = new Intent(ScanActivity.this, TargetActivity.class);\n intent.putExtra(\"result\", result);\n startActivity(intent);\n }", "@Override\r\n protected void onReceiveResult(int resultCode, Bundle resultData) {\n String adderssOutput = resultData.getString(Constants.RESULT_DATA_KEY);\r\n\r\n if (resultCode == Constants.SUCCESS_RESULT) {\r\n mTextView.setText(adderssOutput);\r\n }\r\n }", "@Override\n public void starryEyes(String result) {\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"result\",result);\n setResult(RESULT_OK,returnIntent);\n finish();\n }", "@Override\n protected void onReceiveResult(int resultCode, Bundle resultData) {\n switch (resultCode) {\n case 1:\n Log.d(TAG,\"yay running\");\n break;\n case 0:\n Log.d(TAG,\"yay finish\");\n break;\n case -1:\n Log.d(TAG,\"yay error\");\n break;\n }\n }", "void showResultActivity() {\n\n Intent intent = new Intent();\n intent.setClass(this, ScanResultActivity.class);\n startActivity(intent);\n finish();\n\n playEffect();\n }", "@Override\r\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n\t\t// TODO - fill in here\r\n\r\n\r\n\r\n\t}", "void onComplete(ResultModel result);", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tXSDK.getInstance().onActivityResult(requestCode, resultCode, data);\r\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t}", "public int getResult() {return resultCode;}", "protected void onPostSuccess(Result result) {\n }", "@Override\r\n public void onSuccess(RestRequest request, RestResponse result) {\n result.consumeQuietly();\r\n runOnUiThread(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n // Network component doesn’t report app layer status.\r\n // Use the Mobile SDK RestResponse.isSuccess() method to check\r\n // whether the REST request itself succeeded.\r\n\r\n try {\r\n\r\n Log.d(\"APITest\", \"success entered\");\r\n\r\n }\r\n catch (Exception e) {\r\n //showError(MainActivity.this, e);\r\n }\r\n\r\n }\r\n });\r\n\r\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(resultCode!= Activity.RESULT_OK){\n return;\n }\n\n }", "@Override\n\t\t\t\t\t\tpublic void onSuccess(ResponseInfo<String> result) {\n\t\t\t\t\t\t\tToast.makeText(AddIncomeActivity.this, \"保存成功!\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\tLog.e(TAG,result);\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\tLog.e(TAG,result);\t\n\t\t\t\t}", "public interface IntentResultListener {\n void gotIntentResult(int requestCode, int resultCode, Intent resultData);\n}", "@Override\n public void handleResult(Result result) {\n Log.w(\"handleResult\", result.getText());\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Scan result\");\n builder.setMessage(result.getText());\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n\n\n //Resume scanning\n //mScannerView.resumeCameraPreview(this);\n }", "@Override\n public void onResult(Bundle bundle) {\n final String result = bundle.getString(DiabetesAppConnection.RESULT_KEY, \"\");\n\n if (result.equals(DiabetesAppConnection.RESULT_UNAUTHORIZED)) {\n mResult.setText(\"Unauthorized\");\n mReadData.setEnabled(false);\n mPushData.setEnabled(false);\n return;\n }\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mResult.setText(\"PushData result = \" + result);\n }\n });\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tswitch (requestCode) {\n\t\tcase 1:\n\t\t\tif(data != null){\n\t\t\t\tString result = data.getStringExtra(\"result\");\n\t\t\t\tif(result != null)\n\t\t\t\t\t//tv.setText(result);\n\t\t\t\t\tSystem.out.println(result);\n\t\t\t\tUri uri = Uri.parse(result); \n\t\t\t\tIntent it = new Intent(Intent.ACTION_VIEW, uri); \n\t\t\t\tstartActivity(it);\n\t\t\t}\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 1 && resultCode == RESULT_OK) {\n fade(rlMap);\n Map<String, Object> params = User.getToken(this);\n WebBridge.send(\"webservices.php?task=getStatusMap\", params, \"Cargando\", this, this);\n } else if (requestCode == 1 && resultCode != RESULT_OK) {\n clickBack(null);\n }\n }", "@Override\n public void onResult(@NonNull Status status) {\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t Session.getActiveSession().onActivityResult(this, requestCode, resultCode, data);\n\t}", "void finish(String result, int resultCode);", "@Override\n\tprotected void onActivityResult(int arg0, int arg1, Intent arg2) {\n\t\tsuper.onActivityResult(arg0, arg1, arg2);\n\t\t// 判断是否实现返回值接口\n\t\tif (arg0 == 0) {\n\t\t\tActivity subActivity = manager.getActivity(\"tab1\");\n\t\t\tLog.v(\"TAG2\", \"r=\" + subActivity.getLocalClassName()\n\t\t\t\t\t+ (subActivity instanceof OnTabActivityResultListener));\n\t\t\t// 获取返回值接口实例\n\t\t\tOnTabActivityResultListener listener = (OnTabActivityResultListener) subActivity;\n\t\t\t// 转发请求到子Activity\n\t\t\tlistener.onTabActivityResult(arg0, arg1, arg2);\n\t\t} \n\t}", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n if(resultCode == ACTIVITY_FOR_RESULT_ID){\r\n setResult(ACTIVITY_FOR_RESULT_ID);\r\n finish();\r\n }\r\n }", "void onTaskResult(TaskInfo mTaskInfo);", "void onResult(T result);", "void onResult(T result);", "@Override\r\n public void onClick(View v) {\n setResult(1);\r\n finish();\r\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == ACTIVITY_ONE_REQUEST && resultCode == RESULT_OK) {\n if (data.hasExtra(ACTIVITY_ONE_RESULT)) {\n String result = data.getExtras().getString(ACTIVITY_ONE_RESULT);\n Toast.makeText(MainActivity.this, result, Toast.LENGTH_SHORT).show();\n requestResult.setText(result);\n }\n }\n if (requestCode == ACTIVITY_TWO_REQUEST && resultCode == RESULT_OK) {\n /**\n * Possibly of returning two different results from Activity Two\n */\n if (data.hasExtra(ACTIVITY_TWO_RESULT)) {\n String result = data.getExtras().getString(ACTIVITY_TWO_RESULT);\n Toast.makeText(MainActivity.this, result, Toast.LENGTH_SHORT).show();\n requestResult.setText(result);\n }\n if (data.hasExtra(ACTIVITY_TWO_RESULT_DIFFERENT)) {\n String result = data.getExtras().getString(ACTIVITY_TWO_RESULT_DIFFERENT);\n Toast.makeText(MainActivity.this, result, Toast.LENGTH_SHORT).show();\n requestResult.setText(result);\n }\n }\n }", "@Override\n\tpublic void finish() {\n\t\tIntent data = new Intent();\n\t\t// Activity finished ok, return the data\n\t\t\n\t\t// TODO 2 put the data with the id returnValue\n\t\tdata.putExtra(RATING_OPTION, \"\"+rating.getProgress());\n\t\t\n\t\t// TODO 3 use setResult(RESULT_OK, intent);\n\t\t// to return the Intent to the application\n\t\tsetResult(RESULT_OK, data);\n\n\t\tsuper.finish();\n\t}", "@Override\n protected void onPostExecute(String result) {\n Log.i(\"this is the result\", \"HULA\");\n //Do anything with response..\n }", "@Override\n public void OnSuccessfullResponse(String result) {\n String resultSet[] = result.split(\":\");\n switch (resultSet[0]){\n case \"topoffers\":\n GetPromotions promotionsTask = (GetPromotions) new GetPromotions(resultSet[1]);\n promotionsTask.setContext(this);\n promotionsTask.setListener(this);\n promotionsTask.execute();\n break;\n case \"aisle\":\n GetAisleRecommendationsTask aisleRecommendationsTask = (GetAisleRecommendationsTask) new GetAisleRecommendationsTask(resultSet[1]);\n aisleRecommendationsTask.setContext(this);\n aisleRecommendationsTask.setListener(this);\n aisleRecommendationsTask.execute();\n break;\n case \"thankyou\":\n default:\n Intent intent = new Intent(getApplicationContext(), ThankYouActivity.class);\n startActivity(intent);\n break;\n }\n\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\tprotected void onPostExecute(String result) {\n\t\tSystem.out.println(responseText.charAt(2)+\"\");\n\t\t\n\t\tif((responseText.charAt(2)+\"\").equals(\"成\")){\n\t\t\tSystem.out.println(\"要跳转了\");\n\t\t\tcontext.startActivity(intent);\n\t\t}\n\t\tsuper.onPostExecute(result);\n\t}", "@Override\r\n\tprotected void onActivityResult(int arg0, int arg1, Intent arg2) {\n\t\tsuper.onActivityResult(arg0, arg1, arg2);\r\n\t\tif(arg0 == REQUEST_CODE_SUCCESS && arg1 == RESULT_OK){\r\n\t\t\tthis.finish();\r\n\t\t}\r\n\t}", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tSystem.out.println(\"On activity result start\");\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tSystem.out.println(\"on activity result\");\n\t\tif (Manager.iab != null) {\n\t\t\t((IABManagerAndroid) Manager.iab).handleActivityResult(requestCode, resultCode, data);\n\t\t}\n\t\tif (Manager.fb != null) {\n\t\t\t((SocialMediaFacebook) Manager.fb).onActivityResult(requestCode, resultCode, data);\n\t\t}\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tIntent reintent = new Intent();\n\t\tsetResult(601, reintent);\n\t\tfinish();\n\t}", "public void doResult() throws Exception {\n\t\tJSONObject map=new JSONObject(getResult());\n\t\tif(!\"ok\".equalsIgnoreCase(map.getString(\"status\"))){\n\t\t\tdoFailureResult();\n\t\t\treturn;\n\t\t}\n\t\tif(getHandler()!=null){\n\t\t\tMessage hmsg=getHandler().obtainMessage();\n\t\t\thmsg.obj=map;\n\t\t\thmsg.arg1=1;\n\t\t\tgetHandler().sendMessage(hmsg);\n\t\t\tsetHandler(null);\n\t\t}\n\t}", "@Override\n\t\t\t\t\t\tpublic void result(String result) {\n\t\t\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void result(String result) {\n\t\t\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t\t\t}", "@Override\r\n\t\tprotected void onPostExecute(Integer result) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tsuper.onPostExecute(result);\r\n\r\n\t\t\tif (result == 1) {\r\n\t\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(\r\n\t\t\t\t\t\tgetActivity());\r\n\t\t\t\talert.setMessage(\"Load instruction performed\");\r\n\t\t\t\talert.setTitle(\"Success\");\r\n\t\t\t\talert.setPositiveButton(\"Okay\",\r\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\talert.show();\r\n\t\t\t} else if (result == 0) {\r\n\t\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(\r\n\t\t\t\t\t\tgetActivity());\r\n\t\t\t\talert.setMessage(\"Failed\");\r\n\t\t\t\talert.setTitle(\"try again\");\r\n\t\t\t\talert.show();\r\n\r\n\t\t\t}\r\n\r\n\t\t}", "@Override\n protected void onActivityResult(final int requestCode, final int resultCode, final Intent data)\n {\n super.onActivityResult(requestCode, resultCode, data);\n callbackManager.onActivityResult(requestCode, resultCode, data);\n }", "public void processFinish(int result) {\n MyApp myApp = (MyApp) getApplication();\n\n if (myApp.match[myApp.division()].size() > 0) {\n inflateMe();\n }\n\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n }", "@SuppressWarnings({\"unchecked\", \"deprecation\", \"all\"})\npublic static interface OnActivityResultListener {\n\n/**\n * See Activity's onActivityResult.\n *\n * @return Whether the request code was handled (in which case\n * subsequent listeners will not be called.\n */\n\npublic boolean onActivityResult(int requestCode, int resultCode, android.content.Intent data);\n}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t}", "@Override\r\n public void onResult(boolean result)\r\n {\n if (result) {\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Set Successfully\"));\r\n } else {\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Set Fail\"));\r\n }\r\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\tswitch(requestCode){\r\n\t\tcase QUERYACTIVITYCODE:{\r\n\t\t\tif(resultCode==Activity.RESULT_OK){\r\n\r\n\t\t\t\ttv_query.setText(data.getStringExtra(\"codestr\"));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\t//Toast.makeText(CircleActivity.this, \"未登录\", Toast.LENGTH_LONG).show();;\r\n\t\t\t\t;\r\n\t\t}\r\n\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\n public void onResponse(Object response) {\n activity.gotHelper(\"Succes!\");\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\n\t\tif (requestCode == 1 && resultCode == RESULT_OK) {\n\n\t\t}\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n uiHelper.onActivityResult(requestCode, resultCode, data);\n }", "public boolean execActivityResult( int request, int result, Intent data ) {\n\t\tboolean ret = true;\n switch ( request) {\n\t\t\tcase REQUEST_DEVICE_CONNECT:\n\t\t\t\texecActivityResultDevice( result, data );\n \tbreak;\n \tcase REQUEST_ADAPTER_ENABLE:\n\t\t\t\tret = execActivityResultAdapter( result, data );\n \tbreak; \n \t}\n return ret;\n }", "@Override\n public void onTaskComplete(String result) {\n\n //TODO\n\n }", "@Override\r\n\tpublic void onFinish(ITestContext Result) {\n\t\tSystem.out.println(\"onFinish :\"+ Result.getName());\r\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif(requestCode == 1){\n\t\t\tif(resultCode == RESULT_OK){\n\t\t\t\tsetResult(RESULT_OK);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onSuccess(int arg0, Header[] arg1, byte[] arg2) {\n CustomDialog.closeProgressDialog();\n JSONObject jsonObject;\n try {\n postState = true;\n jsonObject = new JSONObject(new String(arg2));\n String code = (String) jsonObject.get(\"code\");\n String str = (String) jsonObject.get(\"retinfo\");\n if (Constant.RESULT_CODE.equals(code)) {\n CustomToast.showShortToast(mContext, str);\n Intent i = new Intent();\n i.putExtra(\"flage\", true);\n setResult(2016, i);\n CrmVisitorSignAddInfoActivity.this.finish();\n } else {\n CustomToast.showShortToast(mContext, str);\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\n\t\tif (requestCode == CODE_OK) {\n\t\t\tString result = data.getExtras().getString(\"result\");\n\t\t\tif (!result.equals(\"null\")) {\n\t\t\t\tMSShow.show(getApplicationContext(), result);\n\t\t\t\tLog.e(\"result\", result);\n\t\t\t}\n\n\t\t}\n\t}", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\r\n\tprotected void onPostExecute(JSONObject result) {\n\t\tIntent i = new Intent(context,LiveRace.class);\r\n\t\ti.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\tcontext.startActivity(i);\r\n\r\n\t}", "@Override\n protected void onPostExecute(String result) {\n if (result.contains(\"fail\")) {\n Toast.makeText(getApplicationContext(), result, Toast.LENGTH_LONG)\n .show();\n return;\n }\n else if(result.contains(\"success\")) {\n Intent i = new Intent(SignInActivity.this, WebLoginActivity.class);\n startActivity(i);\n finish();\n }\n }", "@Override\n public void run() {\n String scanNumText = result.getText();\n Toast.makeText(ItemScan.this, scanNumText, Toast.LENGTH_SHORT).show();\n Intent intent = getIntent();\n intent.putExtra(\"Barcode\", scanNumText);\n setResult(Activity.RESULT_OK, getIntent());\n finish();\n }", "@Override\r\n public void onResult(boolean result)\r\n {\n if(result){\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Start Calibration ,successful\"));\r\n }\r\n else{\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Start Calibration ,fail\"));\r\n }\r\n }", "interface OnResultListener {\n void onFinished();\n }", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tif(\"false\".equals(result)){\n\t\t\t\t\t\tLog.e(TAG,\"图片没识别出脸\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tfacepp.addface2person(sp.getString(facepp.PERSON+\"ddd\", \"\"), result, new CallBack() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void result(String result) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}", "private void goToResultActivity() {\n try {\n stopCountdown();\n if (isOnline()) {\n List<Contact> testDetails = db.getPracticeTestDetailByID(Integer.parseInt(mSchoolId), Integer.parseInt(mStudentId), Integer.parseInt(testId));\n ansString = \"\";\n extraParam = \"2 Date :: \" + currentDateandTimeTemp;\n if (testDetails != null && testDetails.size() > 0) {\n ansString = testDetails.get(0).getTestAnsString();\n testTicks = testDetails.get(0).getTestTicks();\n if (ansString == null || ansString.isEmpty()) {\n ansString = \"\";\n extraParam = \"-1\";\n }\n if (testTicks == null || testTicks.isEmpty()) {\n testTicks = \"\";\n }\n /* if (ansString != null && !ansString.isEmpty()) {*/\n Log.e(\"ansString\", ansString);\n frame_progress.setVisibility(View.VISIBLE);\n progressBar.setVisibility(View.VISIBLE);\n String mStudentId = Datastorage.GetStudentId(getApplicationContext());\n String mSchoolId = Datastorage.GetSchoolId(getApplicationContext());\n String mYearId = Datastorage.GetCurrentYearId(getApplicationContext());\n String deviceId = Settings.Secure.getString(getContentResolver(), Settings.Secure.ANDROID_ID);\n String mDeviceDetail = Build.DEVICE + \"|||\" + Build.MODEL + \"|||\" + Build.ID\n + \"|||\" + Build.PRODUCT + \"|||\" + Build.VERSION.SDK\n + \"|||\" + Build.VERSION.RELEASE + \"|||\" + Build.VERSION.INCREMENTAL;\n Call<AppService> call = ((MyApplication) getApplicationContext()).getmRetrofitInterfaceAppService()\n .SetPracticeTestAnsV3(mStudentId, mSchoolId, mYearId, testId, ansString, SchoolDetails.appname + \"\", Constants.CODEVERSION, Constants.PLATFORM, extraParam, testTicks, deviceId, mDeviceDetail);\n call.enqueue(new Callback<AppService>() {\n @Override\n public void onResponse(Call<AppService> call, Response<AppService> response) {\n try {\n progressBar.setVisibility(View.GONE);\n frame_progress.setVisibility(View.GONE);\n AppService tmps = response.body();\n if (tmps != null && tmps.getResponse() != null && !tmps.getResponse().isEmpty()\n && tmps.getResponse().equalsIgnoreCase(\"1\") && !tmps.getStrResult().isEmpty()) {\n db.deleteTestRecords(rowTestID);\n Intent i = new Intent(PracticeTestQAActivity.this, PracticeTestResultActivity.class);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n // i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n i.putExtra(\"testId\", testId);\n i.putExtra(\"testName\", testName);\n i.putExtra(\"refereshflag\", \"1\");\n startActivity(i);\n PracticeTestQAActivity.this.finish();\n onClickAnimation();\n Toast.makeText(PracticeTestQAActivity.this, tmps.getStrResult(), Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(PracticeTestQAActivity.this, tmps.getStrResult(), Toast.LENGTH_SHORT).show();\n }\n } catch (Exception ex) {\n btn_next.setEnabled(true);\n progressBar.setVisibility(View.GONE);\n frame_progress.setVisibility(View.GONE);\n Constants.writelog(\"PracticeTestQAActivity\", \"setTestAns 2062:\" + ex.getMessage());\n } finally {\n ansString = \"\";\n }\n }\n\n @Override\n public void onFailure(Call<AppService> call, Throwable t) {\n progressBar.setVisibility(View.GONE);\n btn_next.setEnabled(true);\n frame_progress.setVisibility(View.GONE);\n Constants.writelog(\"PracticeTestQAActivity\", \"setTestAns 1589:\" + t.getMessage());\n }\n });\n /* }else {\n Intent i = new Intent(PracticeTestQAActivity.this, PracticeTestResultActivity.class);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n // i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n i.putExtra(\"testId\", testId);\n i.putExtra(\"testName\", testName);\n i.putExtra(\"refereshflag\", \"1\");\n startActivity(i);\n PracticeTestQAActivity.this.finish();\n onClickAnimation();\n }*/\n } else {\n Intent i = new Intent(PracticeTestQAActivity.this, PracticeTestResultActivity.class);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n // i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n i.putExtra(\"testId\", testId);\n i.putExtra(\"testName\", testName);\n i.putExtra(\"refereshflag\", \"1\");\n startActivity(i);\n PracticeTestQAActivity.this.finish();\n onClickAnimation();\n }\n } else {\n btn_next.setEnabled(true);\n progressBar.setVisibility(View.GONE);\n frame_progress.setVisibility(View.GONE);\n Toast.makeText(this, SchoolDetails.MsgNoInternet, Toast.LENGTH_SHORT).show();\n }\n } catch (Exception e) {\n btn_next.setEnabled(true);\n Constants.writelog(\"PracticeTestQAActivity\", \"goToResultActivity 1787:\" + e.getMessage());\n }\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "public void finishActivity(String result_msg)\n {\n try {\n Toast.makeText(this,result_msg,Toast.LENGTH_SHORT).show();\n finish();\n }\n catch (Exception e)\n {\n Log.e(\"TAG:\",e.getMessage());\n Toast.makeText(this,e.getMessage(),Toast.LENGTH_SHORT).show();\n }\n }", "protected abstract void startActivityForResult(final T androidComponent,\n final Intent intent,\n final int requestCode);", "@Override\n public void onSucces(String result) {\n JSONObject object = new JSONObject();\n boolean isSuccess = object.optBoolean(result);\n Log.hb(\"orderDetailBean.order_info.status after::\"+orderDetailBean.order_info.status);\n finish();\n }", "public void onPostExecute(Result result) {\n }", "public void onPostExecute(Result result) {\n }", "public void onPostExecute(Result result) {\n }", "@Override\r\n\tprotected void onPostExecute(String result) {\n\t\tsuper.onPostExecute(result);\r\n\t\t if(result.equals(\"error\")){\r\n\t \t\tToast.makeText(getApplicationContext(), \"服务器忙,请重试\", 0).show(); \t\r\n\t\t }else{\r\n\t Intent intent=new Intent();\r\n\t\t intent.putExtra(\"qqnumber\", result);\r\n\t \tintent.setClass(RegistActivity.this, RegistSuccessActivity.class);\r\n\t\t\t startActivity(intent);\r\n\t\t\t RegistActivity.this.finish();\r\n\t\t\t }\r\n\t}", "@Override\n public void handleResult(com.google.zxing.Result rawResult) {\n if (rawResult.getText().length() < 4) {\n mScannerView.resumeCameraPreview(SimpleScanner.this);\n Toast.makeText(this, \"Wrong QR Code\", Toast.LENGTH_SHORT).show();\n } else {\n Result = rawResult.getText().substring(0, 4);\n MachineID = rawResult.getText().substring(Result.length());\n if (Result.equals(Verification)) {\n Intent i = new Intent(SimpleScanner.this, DetailBreakdownPage2.class);\n String currentResponseDateFinish = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\", Locale.getDefault()).format(new Date());\n i.putExtra(\"MachineID\", MachineID);\n i.putExtra(\"ResponseDateFinish\", currentResponseDateFinish);\n i.putExtra(\"Line\", Line);\n i.putExtra(\"Station\", Station);\n i.putExtra(\"PIC\", PIC);\n startActivity(i);\n } else {\n mScannerView.resumeCameraPreview(SimpleScanner.this);\n Toast.makeText(this, \"Station tidak sesuai\", Toast.LENGTH_SHORT).show();\n }\n }\n }", "public boolean onActivityResult (int requestCode, int resultCode, Intent data) {\n\t\t\n\t\treturn true;\n\t\t\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == REQUEST_CODE_LOGIN) {\n if (resultCode == RESULT_OK) {\n Intent mainIntent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(mainIntent);\n } else {\n String action = getApplicationContext().getResources().getString(R.string.message_action_failure, \"login\");\n Toast.makeText(this, action, Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\ttry\n\t\t{\n\t\t\tif ( requestCode == Constants.REQUEST_CODE_COMMON &&\n\t\t\t\t\tresultCode == RESULT_OK )\n\t\t\t{\n\t\t\t\tsetResult(RESULT_OK);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t\t\n\t\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t}\n\t\tcatch( Exception ex )\n\t\t{\n\t\t\twriteLog( ex.getMessage());\n\t\t}\n\t}" ]
[ "0.77573824", "0.7343534", "0.7337439", "0.7244938", "0.72207516", "0.7113396", "0.7104681", "0.70575523", "0.70344055", "0.70317537", "0.6900412", "0.68972474", "0.6894505", "0.6876606", "0.6842528", "0.6840255", "0.681003", "0.67998844", "0.6784706", "0.67723525", "0.6767313", "0.6766283", "0.6729156", "0.6717452", "0.670542", "0.670542", "0.66977525", "0.6692679", "0.669252", "0.6679092", "0.6663531", "0.6663398", "0.66468227", "0.6629021", "0.6627511", "0.66262984", "0.66136575", "0.66080344", "0.6601405", "0.6601405", "0.6588528", "0.6585436", "0.65707695", "0.6541099", "0.653996", "0.65362006", "0.65362006", "0.6536127", "0.6534164", "0.65287423", "0.6527876", "0.6527271", "0.65170324", "0.6510404", "0.6510404", "0.650939", "0.6508554", "0.649618", "0.6495868", "0.6490926", "0.648248", "0.648248", "0.648248", "0.648248", "0.648248", "0.648248", "0.648248", "0.648248", "0.6459902", "0.64564025", "0.6444824", "0.64416814", "0.644124", "0.64396805", "0.64248115", "0.6424358", "0.64215887", "0.6420598", "0.64196384", "0.6418758", "0.6418758", "0.6418758", "0.64117944", "0.6409434", "0.6400005", "0.6399082", "0.63911706", "0.6387322", "0.63790005", "0.6378107", "0.63718677", "0.6369991", "0.6367957", "0.63638705", "0.63638705", "0.63638705", "0.6357706", "0.63547933", "0.63539773", "0.6347684", "0.6345095" ]
0.0
-1
TODO Autogenerated method stub
@Override public Client addClient(Client c) { return dao.addClient(c); }
{ "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 Employe addEmploye(Employe e, Long codeSup) { return dao.addEmploye(e, codeSup); }
{ "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 Groupe addGroupe(Groupe g) { return dao.addGroupe(g); }
{ "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 addEmployeToGroupe(Long codeEmp, Long codeGroup) { dao.addEmployeToGroupe(codeEmp, codeGroup); }
{ "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 Compte addCompte(Compte cp, Long codeCli, Long codeEmp) { return dao.addCompte(cp, codeCli, codeEmp); }
{ "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 verser(double mt, String cpte, Long codeEmp) { dao.addOperation(new Versement(new Date(),mt), cpte, codeEmp); Compte cp=dao.consulterCompte(cpte); cp.setSolde(cp.getSolde()+mt); }
{ "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 retirer(double mt, String cpte, Long codeEmp) { dao.addOperation(new Retrait(new Date(),mt), cpte, codeEmp); Compte cp=dao.consulterCompte(cpte); cp.setSolde(cp.getSolde()-mt); }
{ "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 Compte consulterCompte(String codeCpte) { return dao.consulterCompte(codeCpte); }
{ "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 List<Operation> consulterOperations(String codeCpte, int position, int nbOperation) { return dao.consulterOperations(codeCpte,position,nbOperation); }
{ "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 Client consulterClient(Long codeClient) { return dao.consulterClient(codeClient); }
{ "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 List<Client> consulterClients(String mc) { return dao.consulterClients(mc); }
{ "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 List<Compte> getComptesByClient(Long codeCli) { return dao.getComptesByClient(codeCli); }
{ "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 List<Compte> getComptesByEmploye(Long codeEmp) { return dao.getComptesByEmploye(codeEmp); }
{ "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 List<Employe> getEmployes() { return dao.getEmployes(); }
{ "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 List<Groupe> getGroupes() { return dao.getGroupes(); }
{ "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 List<Employe> getEmployesByGroupe(Long codeGr) { return dao.getEmployesByGroupe(codeGr); }
{ "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 long getNombreOperation(String numCpte) { return dao.getNombreOperation(numCpte); }
{ "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
Checks if token signature is valid
public boolean isTokenValid() throws RSAEncryptedRSASignedJWTException{ if(decryptedSignedJWT == null) throw new RSAEncryptedRSASignedJWTException("JWT token has not been decrypted"); else return this.verifyToken(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean ValidateTokenSignature(String token, PublicKey publicKey) {\n \tboolean verified=true;\n try {\n \tJwts.parser().setSigningKey(publicKey).parseClaimsJws(token);\n } catch (Exception e) {\n verified=false;\n }\n return verified;\n }", "protected boolean validateSignature(SignedJWT jwtToken) {\n boolean valid = false;\n if (JWSObject.State.SIGNED == jwtToken.getState()) {\n LOG.debug(\"JWT token is in a SIGNED state\");\n if (jwtToken.getSignature() != null) {\n LOG.debug(\"JWT token signature is not null\");\n try {\n JWSVerifier verifier = new RSASSAVerifier(publicKey);\n if (jwtToken.verify(verifier)) {\n valid = true;\n LOG.debug(\"JWT token has been successfully verified\");\n } else {\n LOG.warn(\"JWT signature verification failed.\");\n }\n } catch (JOSEException je) {\n LOG.warn(\"Error while validating signature\", je);\n }\n }\n }\n return valid;\n }", "boolean isValid() {\n for (int i = 0; i < SIGNATURE.length; i++) {\n if (mem.getByte(i) != SIGNATURE[i]) {\n // Invalid signature\n return false;\n }\n }\n final int specRev = mem.getByte(6);\n if ((specRev != 0x01) && (specRev != 0x04)) {\n // Invalid specification revision\n return false;\n }\n return true;\n }", "boolean hasSignature();", "boolean hasSignature();", "public boolean verifySignature() {\r\n\t\t\r\n\t\tString data;\r\n\t\t\r\n\t\tif(isTypeCreation){\r\n\t\t\t\r\n\t\t\tdata = StringUtil.getStringFromKey(creator) + name +\r\n\t\t\t\t\tdescription + begin + end+end_subscription+\r\n\t\t\t\t\tlocation+min_capacity+max_capacity;\r\n\t\t\treturn StringUtil.verifyECDSASig(creator, data, signature);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdata = StringUtil.getStringFromKey(subscriber)+id_event;\r\n\t\t\treturn StringUtil.verifyECDSASig(subscriber, data, signature);\r\n\t\t}\r\n//\t\tSystem.out.println(\"signature \"+signature);\r\n\t\t\r\n\t}", "void checkToken(String token) throws InvalidTokenException;", "private void validateFermatPacketSignature(FermatPacket fermatPacketReceive){\n\n System.out.println(\" WsCommunicationVPNClient - validateFermatPacketSignature\");\n\n /*\n * Validate the signature\n */\n boolean isValid = AsymmectricCryptography.verifyMessageSignature(fermatPacketReceive.getSignature(), fermatPacketReceive.getMessageContent(), vpnServerIdentity);\n\n System.out.println(\" WsCommunicationVPNClient - isValid = \" + isValid);\n\n /*\n * if not valid signature\n */\n if (!isValid){\n throw new RuntimeException(\"Fermat Packet received has not a valid signature, go to close this connection maybe is compromise\");\n }\n\n }", "private boolean verifySignature(String packageName, String signature) {\n try {\n final boolean signatureValid = signature.isEmpty()\n || mPackageManager.hasSigningCertificate(packageName,\n HexEncoding.decode(signature), CERT_INPUT_SHA256);\n\n if (!signatureValid) {\n Slog.w(TAG, packageName + \" did not have expected signature: \" + signature);\n }\n return signatureValid;\n } catch (IllegalArgumentException e) {\n Slog.w(TAG, \"Unable to verify signature \" + signature + \" for \" + packageName, e);\n return false;\n }\n }", "public boolean validate(String securityToken, RequestMetadata requestMetadata);", "@VisibleForTesting\n protected boolean validateToken(EzSecurityToken token) {\n try {\n securityClient.validateReceivedToken(token);\n } catch (EzSecurityTokenException e) {\n logger.error(\"Token validation failed. \", e);\n throw new SecurityException(\"Token failed validation\");\n }\n\n String fromId = token.getValidity().getIssuedTo();\n String toId = token.getValidity().getIssuedFor();\n if (!fromId.equals(toId) && !fromId.equals(deployerSecurityId)) {\n throw new SecurityException(String.format(\n \"This call can only be made from Deployer (%s) or INS services. From: %s - To: %s\",\n deployerSecurityId, fromId, toId));\n }\n\n return true;\n }", "private boolean verifyToken(final String token) {\n LOG.debug(token);\n if (!this.verificationToken.equals(token)) {\n LOG.error(Constants.VERIFICATION_TOKEN_INVALID);\n return false;\n }\n return true;\n }", "public boolean verifySignature() {\n\n String data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(recipient) + Float.toString(value);\n return StringUtil.verifyECDSASig(sender, data, signature);\n }", "public boolean verifiySignature() {\n\t\tString data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value);\n\t\treturn StringUtil.verifyECDSASig(sender, data, signature);\n\t}", "protected boolean verifySignature(Signature signature, Credential credential) {\n SignatureValidator validator = new SignatureValidator(credential);\n try {\n validator.validate(signature);\n } catch (ValidationException e) {\n log.debug(\"Signature validation using candidate validation credential failed\", e);\n return false;\n }\n \n log.debug(\"Signature validation using candidate credential was successful\");\n return true;\n }", "private void verifyCadesSignature(byte[] signature, byte[] data)\n throws CmsCadesException, TspVerificationException, CMSSignatureException {\n CadesSignature cadesSig = new CadesSignature(signature, data);\n int signerInfoLength = cadesSig.getSignerInfos().length;\n\n System.out.println(\"Signature contains \" + signerInfoLength + \" signer infos\");\n\n for (int j = 0; j < signerInfoLength; j++) {\n cadesSig.verifySignatureValue(j);\n System.out.println(\"Signer \" + (j + 1) + \" signature value is valid.\");\n\n // tsp verification\n SignatureTimeStamp[] timestamps = cadesSig.getSignatureTimeStamps(j);\n for (SignatureTimeStamp tst : timestamps) {\n System.out.println(\"Signer info \" + (j + 1) + \" contains a signature timestamp.\");\n tst.verifyTimeStampToken(null);\n System.out.println(\"Signer info \" + (j + 1) + \" signature timestamp is valid.\");\n }\n }\n }", "public boolean isSignatureValid(final byte[] bytes, final byte[] signature) {\n return isSignatureValid(bytes, signature, UUID.randomUUID().toString());\n }", "@Override\n public boolean verifySignature(byte[] signature) {\n try {\n Element[] sig = derDecode(signature);\n CL04SignPublicPairingKeySerParameter pk = (CL04SignPublicPairingKeySerParameter) pairingKeySerParameter;\n Pairing pairing = PairingFactory.getPairing(pairingKeySerParameter.getParameters());\n Element a = sig[0];\n Element b = sig[1];\n Element c = sig[2];\n List<Element> A = IntStream.range(3, 3 + messages.size()).mapToObj(i -> sig[i]).collect(Collectors.toList());\n List<Element> B = IntStream.range(3 + messages.size(), 3 + 2 * messages.size()).mapToObj(i -> sig[i]).collect(Collectors.toList());\n return aFormedCorrectly(pairing, a, A, pk) && bFormedCorrectly(pairing, a, b, A, B, pk) && cFormedCorrectly(pairing, a, b, c, B, pk);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return false;\n\n }", "boolean isValid(String jwt);", "protected boolean validateToken(SignedJWT jwtToken) {\n boolean sigValid = validateSignature(jwtToken);\n if (!sigValid) {\n LOG.warn(\"Signature could not be verified\");\n }\n boolean audValid = validateAudiences(jwtToken);\n if (!audValid) {\n LOG.warn(\"Audience validation failed.\");\n }\n boolean expValid = validateExpiration(jwtToken);\n if (!expValid) {\n LOG.info(\"Expiration validation failed.\");\n }\n\n return sigValid && audValid && expValid;\n }", "public static boolean isValidSignature(String signature) {\n\t\tchar[] sig = signature.toCharArray();\n\t\tfor(char c : sig) {\n\t\t\tif(( c == ' ')) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public interface SignatureValidator {\n\n boolean validate(String encodedToken, final Signer signer);\n}", "boolean checkSignature(long sig0, long sig1, long sig2) throws Exception {\n Integer[] sig = new Integer[3];\n\t /* Get signature */\n readSignature(sig);\n\t /* Compare signature */\n if (sig[0] != sig0 || sig[1] != sig1 || sig[2] != sig2) {\n throw new Exception(\"Signature does not match selected device! \");\n }\n return true; // Indicate supported command.\n }", "public static boolean isTokenValid(String token, String cookie, String url, String method, String timestamp) {\n long createTime = Long.parseLong(timestamp);\n long currentTime = (new Date()).getTime() / 1000;\n if ((currentTime - createTime) > TOKEN_LIFE_SECONDS) {\n return false;\n }\n String data = url + \" \" + method + \" \" + createTime;\n byte[] hmac;\n try {\n hmac = computeSHA1HMac(data, cookie);\n } catch (GeneralSecurityException e) {\n throw new RuntimeException(\"Security exception - \" + e.getMessage());\n }\n String hmacEnc = Base64.encodeWebSafe(hmac, true);\n return hmacEnc.equals(token);\n }", "public boolean validateToken(String token) {\n\t\ttry {\n\t\t\tJwts.parser().setSigningKey(secret).parseClaimsJws(token);\n\t\t\treturn true;\n\t\t} catch (MalformedJwtException e) {\n\t\t\tlogger.error(\"token mal formado \" +e.getMessage());\n\t\t} catch (UnsupportedJwtException e) {\n\t\t\tlogger.error(\"token no soportado \" +e.getMessage());\n\t\t} catch (ExpiredJwtException e) {\n\t\t\tlogger.error(\"token expirado \" +e.getMessage());\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tlogger.error(\"token vacío \" +e.getMessage());\n\t\t} catch (SignatureException e) {\n\t\t\tlogger.error(\"error en la firma \" +e.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "private boolean isValidToken(String authHeader) {\n AuthorisedTokenData token = authorisedTokensServices.getAuthorisedTokenByToken(authHeader);\n\n return token != null && token.getToken().equals(authHeader);\n }", "boolean verifySignature(byte[] message, byte[] signature, PublicKey publicKey) throws IOException;", "public boolean hasSignature() {\n return signature_ != null;\n }", "private boolean validateToken(String token, String user) {\n System.out.println(\"Userid is: \" + user);\n System.out.println(\"The token is \" + token);\n return user.equals(Jwts.parser().setSigningKey(SIGNING_KEY).parseClaimsJws(token).getBody().getSubject());\n\n }", "private void verifyCadesSignatureStream(InputStream signature, InputStream data)\n throws CmsCadesException, TspVerificationException, CMSSignatureException {\n CadesSignatureStream cadesSig = new CadesSignatureStream(signature, data);\n int signerInfoLength = cadesSig.getSignerInfos().length;\n\n System.out.println(\"Signature contains \" + signerInfoLength + \" signer infos\");\n\n for (int j = 0; j < signerInfoLength; j++) {\n cadesSig.verifySignatureValue(j);\n System.out.println(\"Signer \" + (j + 1) + \" signature value is valid.\");\n\n // tsp verification\n SignatureTimeStamp[] timestamps = cadesSig.getSignatureTimeStamps(j);\n for (SignatureTimeStamp tst : timestamps) {\n System.out.println(\"Signer info \" + (j + 1) + \" contains a signature timestamp.\");\n tst.verifyTimeStampToken(null);\n System.out.println(\"Signer info \" + (j + 1) + \" signature timestamp is valid.\");\n }\n }\n }", "public boolean isSignatureRequired() {\n\t\treturn false;\n\t}", "public static boolean verifySignature(byte[] data, byte[] signature) {\n try {\n if (!isTinkRegistered) {\n SignatureConfig.register();\n isTinkRegistered = true;\n }\n\n KeysetHandle publicKey = CleartextKeysetHandle.read(JsonKeysetReader.withInputStream(\n CheckSignatureWithTink.class.getClassLoader().getResourceAsStream(\"crypto/publicKey.pub\")));\n\n PublicKeyVerify verifier = publicKey.getPrimitive(PublicKeyVerify.class);\n verifier.verify(signature, data);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "public boolean verifySignature(OpenIDToken idToken, String jwksResponse) {\n boolean verificationStatus = false;\n try {\n JWKSet jwkSet = JWKSet.parse(jwksResponse);\n JWSHeader jwsHeader = idToken.getSignedJWT().getHeader();\n if (jwkSet != null) {\n List<JWK> matchingJWKs = new JWKSelector(new JWKMatcher.Builder()\n .keyID(jwsHeader.getKeyID())\n .algorithm(jwsHeader.getAlgorithm())\n .build())\n .select(jwkSet);\n OMLog.trace(TAG, \"Found \" + matchingJWKs.size() + \" matching JWKs\");\n\n JWSVerifierFactory jwsVerifierFactory = new DefaultJWSVerifierFactory();\n for (JWK jwk : matchingJWKs) {\n try {\n Key key = null;\n if (jwk instanceof RSAKey) {\n key = ((RSAKey) jwk).toRSAPublicKey();\n } else if (jwk instanceof ECKey) {\n key = ((ECKey) jwk).toECPublicKey();\n }\n if (key != null) {\n JWSVerifier jwsVerifier = jwsVerifierFactory.createJWSVerifier(jwsHeader, key);\n verificationStatus = idToken.getSignedJWT().verify(jwsVerifier);\n if (verificationStatus) {\n idToken.setVerified(true);\n break;\n }\n }\n } catch (JOSEException e) {\n OMLog.error(TAG, e.getMessage(), e);\n }\n }\n }\n } catch (ParseException e) {\n Log.e(TAG, e.getMessage(), e);\n }\n return verificationStatus;\n }", "@RequestMapping(value = \"\", method = RequestMethod.GET)\n\tpublic void validateToken(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tString signature = request.getParameter(\"signature\");\n\t\tSystem.out.println(\"signature: \" + signature);\n\t\tString timestamp = request.getParameter(\"timestamp\");\n\t\tSystem.out.println(\"timestamp: \" + timestamp);\n\t\tString nonce = request.getParameter(\"nonce\");\n\t\tSystem.out.println(\"nonce: \" + nonce);\n\t\tString echostr = request.getParameter(\"echostr\");\n\t\tSystem.out.println(\"echostr: \" + echostr);\n\t\tList<String> params = new ArrayList<String>();\n\t\tparams.add(TOKEN);\n\t\tparams.add(timestamp);\n\t\tparams.add(nonce);\n\n\t\tCollections.sort(params, new Comparator<String>() {\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn o1.compareTo(o2);\n\t\t\t}\n\t\t});\n\t\tString temp = SHA1.encode(params.get(0) + params.get(1) + params.get(2));\n\t\tif (temp.equals(signature)) {\n\t\t\tresponse.getWriter().write(echostr);\n\t\t}\n\t}", "boolean isSecretValid();", "private boolean isLengthCorrect(final String token) {\n return token.length() == VALID_TOKEN_LENGTH;\n }", "public boolean checkTokenExpiry(String token) {\n System.out.println(token);\n Date now = new Date();\n long nowTime = now.getTime();\n //Date expire;\n Date tokenEXPClaim;\n long expires;\n try {\n DecodedJWT recievedToken = JWT.decode(token);\n tokenEXPClaim = recievedToken.getExpiresAt();\n expires = tokenEXPClaim.getTime();\n return nowTime >= expires;\n } \n catch (Exception exception){\n System.out.println(\"Problem with token, no way to check expiry\");\n System.out.println(exception);\n return true;\n }\n \n }", "boolean hasSig();", "public boolean isSignatureValid(BasicOCSPResp ocspResp, Certificate responderCert) {\n try {\n ContentVerifierProvider verifierProvider = new JcaContentVerifierProviderBuilder()\n .setProvider(\"BC\").build(responderCert.getPublicKey());\n return ocspResp.isSignatureValid(verifierProvider);\n } catch (OperatorCreationException e) {\n return false;\n } catch (OCSPException e) {\n return false;\n }\n }", "@Override\n public boolean tokenIsValid(String token) {\n return DATABASE.getTokens().stream()\n .anyMatch(currentToken -> currentToken.equals(token));\n }", "public void verifySignature(SignatureVerifier verifier) {\n\t\tverifier.verify(signingInput(), crypto);\n \t}", "public boolean validateSignature(SignedJWT signedJWT, X509Certificate x509Certificate)\n throws JOSEException, IdentityOAuth2Exception {\n\n JWSVerifier verifier;\n ReadOnlyJWSHeader header = signedJWT.getHeader();\n if (x509Certificate == null) {\n return logAndReturnFalse(\"Unable to locate certificate for JWT \" + header.toString());\n }\n\n String alg = signedJWT.getHeader().getAlgorithm().getName();\n if (isEmpty(alg)) {\n return false;\n } else {\n if (log.isDebugEnabled()) {\n log.debug(\"Signature Algorithm found in the JWT Header: \" + alg);\n }\n if (alg.indexOf(RS) == 0) {\n // At this point 'x509Certificate' will never be null.\n PublicKey publicKey = x509Certificate.getPublicKey();\n if (publicKey instanceof RSAPublicKey) {\n verifier = new RSASSAVerifier((RSAPublicKey) publicKey);\n } else {\n return logAndReturnFalse(\"Public key is not an RSA public key.\");\n }\n } else {\n return logAndReturnFalse(\"Signature Algorithm not supported yet : \" + alg);\n }\n }\n // At this point 'verifier' will never be null;\n return signedJWT.verify(verifier);\n }", "public boolean hasSignature() {\n return signatureBuilder_ != null || signature_ != null;\n }", "Entry<StatusType, String> verifyInternalSignature(final Document document);", "private static boolean checkValidTokenSequence(String curToken, String lastToken){\n\t\t//If an operand or right bracket comes directly before an operand return false\n\t\tif(curToken.equals(\"operand\") && (lastToken.equals(\"operand\") || lastToken.equals(\"right bracket\"))){\n\t\t\treturn false;\n\t\t}\n\t\t//If an operator or left bracket comes directly before an operator, return false\n\t\telse if(curToken.equals(\"operator\") && (lastToken.equals(\"operator\") || lastToken.equals(\"left bracket\"))){\n\t\t\treturn false;\n\t\t}\n\t\t//If a left bracket or operator comes directly before a right bracket return false\n\t\telse if(curToken.equals(\"right bracket\") && (lastToken.equals(\"left bracket\") || lastToken.equals(\"operator\"))){\n\t\t\treturn false;\n\t\t}\n\t\t//If an operand or right bracket comes directly before a left bracket, return false\n\t\telse if(curToken.equals(\"left bracket\") && (lastToken.equals(\"operand\") || lastToken.equals(\"right bracket\"))){\n\t\t\treturn false;\n\t\t}\n\n\t\t//Otherwise the sequence is valid\n\t\treturn true;\n\t}", "public static boolean isValidToken(final String token) {\n\t\treturn token != null && token.startsWith(BEARER_TOKEN_PREFIX);\n\t}", "private boolean tokenValido(TipoToken tipoToken) {\r\n Token token = colaDeTokens.poll();\r\n if (token.tipoToken.equals(tipoToken)) {\r\n return true;\r\n } else {\r\n System.out.println(\"Error: token no válido \" + token.valor);\r\n return false;\r\n }\r\n }", "public void validarToken() {\r\n\t\ttry {\r\n\t\t\tif (getToken() == null || getToken().trim().isEmpty())\r\n\t\t\t\tMensaje.crearMensajeWARN(\"Debe ingresar su token para continuar.\");\r\n\t\t\telse if (!mngRes.verificarTokenEstudiante(getEstudiante().getId(), getToken()))\r\n\t\t\t\tMensaje.crearMensajeWARN(\"Su token es incorrecto. Verifíquelo.\");\r\n\t\t\telse {\r\n\t\t\t\treserva = mngRes.buscarReservaPorID(getDniEstudiante(), periodo.getPrdId());\r\n\t\t\t\tif (reserva != null && reserva.getResEstado().equals(Funciones.estadoFinalizado))\r\n\t\t\t\t\tMensaje.crearMensajeWARN(\"Usted ya posee una reserva finalizada:\");\r\n\t\t\t\telse {\r\n\t\t\t\t\ttokenOk = true;\r\n\t\t\t\t\tmayorEdad = Funciones.mayorDeEdad(getEstudiante().getMatFechaNacimiento());\r\n\t\t\t\t\tcargarSitiosLibres();\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('dlgtoken').hide();\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetToken(\"\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tMensaje.crearMensajeERROR(\"Error al validar token: \" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n public boolean isValid() {\n final BlockChainInt outputHash = getOutputHash();\n\n return inputs.stream().map(input -> input.verifySignature(outputHash)).reduce(true, (a, b) -> a && b)\n && outputs.stream().map(output -> output.getAmount() >= 0).reduce(true, (a, b) -> a && b)\n && getTransactionFee() >= 0;\n }", "@Test\r\n\tpublic void TestvalidateToken() {\r\n\t\tlog.info(env.getProperty(\"log.start\"));\r\n\t\tudetails = new User(\"admin\", \"admin\", new ArrayList<>());\r\n\t\tString generateToken = jwtutil.generateToken(udetails);\r\n\t\tBoolean validateToken = jwtutil.validateToken(generateToken);\r\n\t\tassertEquals(true, validateToken);\r\n\t\tlog.info(env.getProperty(\"log.end\"));\r\n\t}", "private void verify(@NonNull byte[] dig, @NonNull byte[] sig, @NonNull WpcCrt crt) throws GeneralSecurityException {\n try {\n SafFkt.verSig(dig, sig, crt.getPublicKey()); // Verify the signature\n } catch (GeneralSecurityException err) { // An error occurred during the signature verification\n WpcLog.logErr(\"Wrong signature\"); // Log wrong signature\n throw err; // Report no successful signature verification\n }\n }", "public boolean isTokenValide() {\n try {\n token = Save.defaultLoadString(Constants.PREF_TOKEN, getApplicationContext());\n if (token != null && !token.equals(\"\")) {\n if (token.equals(\"\"))\n return false;\n JWT jwt = new JWT(token);\n boolean isExpired = jwt.isExpired(0);\n return !isExpired;\n } else\n return false;\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n\n }", "public boolean isValidSignature(SignedJWT signedJWT, String tenantDomain,\n String alias) throws IdentityOAuth2Exception {\n try {\n X509Certificate cert = getCertificate(tenantDomain, alias);\n return validateSignature(signedJWT, cert);\n } catch (JOSEException e) {\n return handleException(\"Error when verifying signature with error:\" + e.getMessage(), e);\n }\n }", "Entry<StatusType, String> verifyExternalSignature(Document document, Document signature);", "public boolean verifyXMLSignature(org.w3c.dom.Document doc) \n throws XMLSignatureException { \n if (doc == null) { \n SAMLUtilsCommon.debug.error(\n \"verifyXMLSignature: document is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n \treturn verifyXMLSignature(doc, (String)null);\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public static boolean validateWithoutRevocations(\n String signedData,\n byte[] signature,\n PublicKey publicKey) {\n\n byte[] adjSignature = new byte[0];\n // check minimum length (taskinfo + R + S)\n if (signature.length < (36 + 48 + 48)) {\n return false;\n }\n try {\n // first 36 bytes are always the taskInfo\n byte[] taskInfo = Arrays.copyOfRange(signature, 0, 36);\n\n // adjust the signed data\n // data-to-verify format is: [ task-info | nonce (optional) | data ]\n // First 36 bytes of signature is the taskinfo. This value must be prepended\n // to the signedData\n ByteArrayOutputStream adjSignedData = new ByteArrayOutputStream();\n adjSignedData.write(taskInfo);\n adjSignedData.write(signedData.getBytes());\n\n adjSignature = convertSignature(signature, taskInfo);\n\n Signature sig = Signature.getInstance(\"SHA384withECDSA\");\n sig.initVerify(publicKey);\n sig.update(adjSignedData.toByteArray());\n return sig.verify(adjSignature);\n } catch (Exception ex) {\n return false;\n }\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean verifyWSSSignature(org.w3c.dom.Document document,\n java.security.Key key)\n throws XMLSignatureException {\n return false;\n \n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "public void validate(SignForm signForm) {\n }", "@java.lang.Override\n public boolean hasSignature() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "protected void validateToken() {\n\n authToken = preferences.getString(getString(R.string.auth_token), \"\");\n saplynService = new SaplynService(preferences.getInt(debugLvl, -1), authToken);\n\n // Check if user already authenticated\n if (authToken.equals(\"\")) {\n Intent intent = new Intent(HomeActivity.this, AuthenticationActivity.class);\n startActivityForResult(intent, 0);\n }\n else {\n populateUser();\n }\n }", "@Override\n\tpublic boolean isTokenValid(String token) {\n\t\tLoginToken loginToken = getLoginTokenByToken(token);\n\t\tif (loginToken != null) {\n\t\t\tDate createTime = loginToken.getCreateTime();\n\t\t\tDate current = new Date();\n\t\t\tSystem.out.println(\"过了:\"+Math.abs(current.getTime() - createTime.getTime()));\n\t\t\tSystem.out.println(\"过了:\"+Math.abs(current.getTime() - createTime.getTime()) / (1000 *60));\n\t\t\tif (Math.abs(current.getTime() - createTime.getTime()) / (1000 * 60) >= 60) {\n\t\t\t\tloginToken.setStatus(Constant.LOGIN_TOKEN_STATUS_INVALID);\n\t\t\t\tloginTokenMapper.updateByPrimaryKey(loginToken);\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\tloginToken.setCreateTime(current);\n\t\t\t\tloginTokenMapper.updateByPrimaryKey(loginToken);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n\tboolean validate(Vector<String> tokens) {\n\t\treturn false;\n\t}", "public boolean checkTokenExpiry() {\n //System.out.println(\"Checking token expiry...\");\n Date now = new Date();\n long nowTime = now.getTime();\n //Date expire;\n Date tokenEXPClaim;\n long expires;\n try {\n DecodedJWT recievedToken = JWT.decode(currentAccessToken);\n tokenEXPClaim = recievedToken.getExpiresAt();\n expires = tokenEXPClaim.getTime();\n //System.out.println(\"Now is \"+nowTime);\n //System.out.println(\"Expires at \"+expires);\n //System.out.println(\"Expired? \"+(nowTime >= expires));\n return nowTime >= expires;\n } \n catch (Exception exception){\n System.out.println(\"Problem with token, no way to check expiry\");\n System.out.println(exception);\n return true;\n }\n \n }", "@Test\n\tpublic void validateSignatureGenesisBlock()\n\t{\n\t\tLOGGER.info(\"getGeneratorSignature \" + gb.getSignature().length\n\t\t\t\t+ \" : \" + gb.getSignature());\n\n\t\tassertEquals(true, gb.isSignatureValid());\n\t\t\n\t\t//ADD TRANSACTION SIGNATURE\n\t\tLOGGER.info(\"getGeneratorSignature \" + gb.getSignature());\n\n\t\t//ADD a GENESIS TRANSACTION for invalid SIGNATURE\n\t\tList<Transaction> transactions = gb.getTransactions();\n\t\ttransactions.add( new GenesisTransferAssetTransaction(\n\t\t\t\tnew Account(\"7R2WUFaS7DF2As6NKz13Pgn9ij4sFw6ymZ\"), 1l, BigDecimal.valueOf(1).setScale(8)));\n\t\tgb.setTransactions(transactions);\n\t\t\n\t\t// SIGNATURE invalid\n\t\tassertEquals(false, gb.isSignatureValid());\t\t\n\n\t\tassertEquals(true, gb.isValid(db));\n\n\t}", "public static boolean verifyProposeSign(ProposeMessage msg){\n if (Crypto.verifySignature(msg.data, msg.sign, msg.pubkey)) {\n logger.info(\"verifyProposeSign success.\");\n return true;\n } else {\n logger.error(\"verifyProposeSign failed.\");\n return false;\n }\n }", "public boolean verify(byte[] paramArrayOfbyte) throws XMLSignatureException {\n/* 305 */ return this.signatureAlgorithm.engineVerify(paramArrayOfbyte);\n/* */ }", "protected boolean validateExpiration(SignedJWT jwtToken) {\n boolean valid = false;\n try {\n Date expires = jwtToken.getJWTClaimsSet().getExpirationTime();\n if (expires == null || new Date().before(expires)) {\n LOG.debug(\"JWT token expiration date has been \"\n + \"successfully validated\");\n valid = true;\n } else {\n LOG.warn(\"JWT expiration date validation failed.\");\n }\n } catch (ParseException pe) {\n LOG.warn(\"JWT expiration date validation failed.\", pe);\n }\n return valid;\n }", "private void verify(Document doc) throws Exception {\n secEngine.processSecurityHeader(doc, null, this, crypto);\n }", "private Boolean isTokenExpired(String token) {\n\t\tfinal Date expiration = getExpirationDateFromToken(token);\n\t\treturn expiration.before(new Date());\n\t}", "public boolean verifyXMLSignature(java.lang.String xmlString) \n throws XMLSignatureException {\n return verifyXMLSignature(xmlString, null); \n }", "public boolean isValid() {\n return header.isValid();\n }", "public static boolean verify(PublicKey validationKey, byte [] plainText, byte [] signature){\r\n\t\ttry {\r\n\t\t\tSignature verifier = Signature.getInstance(signatureAlgorithm);\r\n\t\t\tverifier.initVerify(validationKey);\r\n\t\t\tverifier.update(plainText);\r\n\t\t\treturn verifier.verify(signature);\r\n\t\t} catch(SignatureException | NoSuchAlgorithmException | InvalidKeyException e){\r\n\t\t\tlogger.log(Level.WARNING,\"Unable to verify incoming message \"+new String(Arrays.copyOf(plainText, 10))+\"...\",e);\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@java.lang.Override\n public boolean hasSignature() {\n return instance.hasSignature();\n }", "@java.lang.Override\n public boolean hasToken() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "public boolean validateToken(String token, String username) {\n\t\tString tokenUserName = getUsername(token);\n\t\treturn username.equals(tokenUserName) && !isTokenExpired(tokenUserName);\n\t}", "public Boolean Verify(String token, String tenantID, List<JsonWebKey> jsonWebKeys) throws MalformedClaimException {\n Boolean isValid = false;\n JwksVerificationKeyResolver keyResolver = new JwksVerificationKeyResolver(jsonWebKeys);\n JwtConsumer jwtConsumer = GetJwtConsumerBuilder()\n .setVerificationKeyResolver(keyResolver)\n .setAllowedClockSkewInSeconds(30)\n .setExpectedIssuer(\"https://sts.windows.net/\" + tenantID + \"/\")\n .setExpectedAudience(CommonConstraint.EXPECTED_AUDIENCE)\n .setJwsAlgorithmConstraints(\n AlgorithmConstraints.ConstraintType.PERMIT, AlgorithmIdentifiers.RSA_USING_SHA256)\n .build();\n try {\n // Validate the JWT and process it to the Claims\n jwtClaims = jwtConsumer.processToClaims(token);\n isValid = true;\n System.out.println(\"JWT validation succeeded! \" + jwtClaims);\n } catch (InvalidJwtException e) {\n // InvalidJwtException will be thrown, if the JWT failed processing or validation in anyway.\n // Hopefully with meaningful explanations(s) about what went wrong.\n System.out.println(\"Invalid JWT! \" + e);\n\n // Programmatic access to (some) specific reasons for JWT invalidity is also possible\n // should you want different error handling behavior for certain conditions.\n if (e.hasExpired()) {\n System.out.println(\"JWT expired at \" + e.getJwtContext().getJwtClaims().getExpirationTime());\n }\n // Or maybe the audience was invalid\n if (e.hasErrorCode(ErrorCodes.AUDIENCE_INVALID)) {\n System.out.println(\"JWT had wrong audience: \" + e.getJwtContext().getJwtClaims().getAudience());\n }\n }\n return isValid;\n }", "public boolean hasToken(){\n return (!clozerrtoken.isEmpty());\n }", "@Override\n public boolean isTokenValid(CrUser user, String token) {\n boolean result = false;\n if (user.getToken().equalsIgnoreCase(token)) {\n Date currentTime = new Date();\n if ((currentTime.getTime() - user.getTokenUpdateTime().getTime()) <= 1800000) {\n user.setTokenUpdateTime(currentTime);\n result = true;\n }\n }\n return result;\n }", "void verifyCSRFToken(HttpServletRequest request) throws IntrusionException;", "public synchronized boolean verifySignaturePublicKey(@NotNull Signature signature, @NotNull Hash publicKeyHash) {\n LOGGER.fine(\"Checking if public key hash corresponds to public key in signature.\");\n if (!signature.getPublicKey().getHash().equals(publicKeyHash)) {\n LOGGER.fine(\"Public key hash does not match signature public key: signature invalid.\");\n return false;\n }\n\n LOGGER.fine(\"Public key hash matches signature public key.\");\n return true;\n }", "public boolean isSignatureValid(final byte[] bytes, final byte[] signature, String transactionId) {\n final Operation resultOperation = Operation.operation(\"isSignatureValid\")\n .with(\"transaction_id\", transactionId)\n .started(this);\n\n Signature ellipticCurveDSA;\n\n try {\n ellipticCurveDSA = Signature.getInstance(Config.getSignatureAlgorithm());\n ellipticCurveDSA.initVerify(publicKey);\n } catch (NoSuchAlgorithmException | InvalidKeyException e) {\n resultOperation.wasFailure().throwingException(e).log();\n throw new RuntimeException(e);\n }\n\n boolean isValid;\n try {\n ellipticCurveDSA.update(bytes);\n isValid = ellipticCurveDSA.verify(signature);\n } catch (SignatureException e) {\n resultOperation\n .wasFailure()\n .withDetail(\"signature_bytes\", Encoder.getBase64EncodedString(bytes))\n .withMessage(e.getMessage())\n .log();\n return false;\n }\n\n resultOperation.wasSuccessful().log();\n return isValid;\n }", "public boolean signRequired() {\n\t\treturn false;\n\t}", "private static boolean verify(BigInteger number, PublicKey pubKey, byte[] sigbytes) throws Exception {\r\n\t\tSignature sig = Signature.getInstance(\"SHAwithDSA\");\r\n\t\tsig.initVerify(pubKey);\r\n\t\tbyte[] data = bigIntToByteArray(number);\r\n\t\tsig.update(data);\r\n\t\treturn sig.verify(sigbytes);\r\n \t}" ]
[ "0.7674667", "0.7270654", "0.7078728", "0.70303357", "0.70303357", "0.6906787", "0.6895833", "0.6829305", "0.6705424", "0.66671616", "0.6652399", "0.66309166", "0.6611513", "0.6606179", "0.6586063", "0.6574711", "0.65285414", "0.6528527", "0.64886194", "0.64830834", "0.64525133", "0.6434769", "0.64213616", "0.6392733", "0.6388888", "0.63264924", "0.63264924", "0.63264924", "0.63264924", "0.63264924", "0.63264924", "0.63037944", "0.62337077", "0.62273324", "0.6202017", "0.61975205", "0.618479", "0.6175031", "0.61699873", "0.6161393", "0.6150534", "0.6133108", "0.6105582", "0.6088618", "0.607021", "0.606773", "0.6053506", "0.6046796", "0.60428387", "0.60057604", "0.59975415", "0.59965086", "0.59852123", "0.59851164", "0.5960265", "0.59568614", "0.5940694", "0.59264773", "0.59061766", "0.59056747", "0.5893477", "0.58829004", "0.58817595", "0.58663285", "0.58663285", "0.58663285", "0.58663285", "0.58515924", "0.584133", "0.58349174", "0.58349174", "0.58349174", "0.58349174", "0.58283025", "0.5819571", "0.58172584", "0.58133197", "0.58121055", "0.5807163", "0.5807053", "0.57918394", "0.57869303", "0.57727474", "0.57647467", "0.5761393", "0.5746328", "0.57354283", "0.5720365", "0.57177174", "0.57124186", "0.5707377", "0.56886625", "0.56586933", "0.56396174", "0.56387556", "0.56327385", "0.5623788", "0.5620257", "0.5613369", "0.5591733" ]
0.6495321
18
TODO Autogenerated method stub
public static void main(String[] args) { Inheritence a=new Inheritence(); country(); city(); age(); a.flower(); System.out.println(l); System.out.println(a.d); }
{ "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
Modified method to Add a new user User
@PostMapping(value="users/addNew") public RedirectView addNew(User user, RedirectAttributes redir) { userService.save(user); RedirectView redirectView= new RedirectView("/login",true); redir.addFlashAttribute("message", "You successfully registered! You can now login"); return redirectView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addUser(User user) {\n\t\t\r\n\t}", "public void addUser(UserModel user);", "public void addUser(User user);", "void addUser(User user);", "void addUser(User user);", "@Override\r\n\tpublic void add(User user) {\n\r\n\t}", "public void addUser(User user){\r\n users.add(user);\r\n }", "public void newUser(User user) {\n users.add(user);\n }", "@Override\n\tpublic User addUser(User user) {\n\t\treturn userDatabase.put(user.getEmail(), user);\n\t}", "@Override\n\tpublic void addUser(User user) {\n mapper.addUser(user);\n\t}", "public User addUser(User user) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic boolean addNewUser(User user) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void addUser(User user) {\n\t\tuserMapper.addUser(user);\n\t}", "private void addNewUser(User user) {\n\t\tSystem.out.println(\"BirdersRepo. Adding new user to DB: \" + user.getUsername());\n\t\tDocument document = Document.parse(gson.toJson(user));\n\t\tcollection.insertOne(document);\n\t}", "public void addUser(User user){\n loginDAO.saveUser(user.getId(),user.getName(),user.getPassword());\n }", "public void addUser() {\n\t\tUser user = dataManager.findCurrentUser();\r\n\t\tif (user != null) {\r\n\t\t\tframeManager.addUser(user);\r\n\t\t\tpesquisar();\r\n\t\t} else {\r\n\t\t\tAlertUtils.alertSemPrivelegio();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void addUser(ERSUser user) {\n\t\tuserDao.insertUser(user);\n\t}", "@Override\r\n\tpublic int addUser(User user) {\n\t\treturn userMapper.addUser(user);\r\n\t}", "@Override\n\tpublic void addNewUser(User user) {\n\t\tusersHashtable.put(user.getAccount(),user);\n\t}", "@Override\r\n\tpublic User addUser(User user) {\n\t\treturn userReposotory.save(user);\r\n\t}", "@Override\r\n\tpublic boolean add(User u) {\r\n\t\treturn executeAndIsModified(INSERT_INTO_USERS, u.getTax_code(),\r\n\t\t\t\tu.getName(),\r\n\t\t\t\tu.getSurname(),\r\n\t\t\t\tu.getPhone(),\r\n\t\t\t\tu.getAddress(),\r\n\t\t\t\tu.getEmail(),\r\n\t\t\t\tu.getPassword(),\r\n\t\t\t\tu.getRole());\r\n\r\n\t}", "@Override\n public boolean addUser(User user) {\n return controller.addUser(user);\n }", "@Override\r\n\tpublic void add(User1 user) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tsession.save(user);\r\n\t}", "ResponseMessage addUser(User user);", "public void addUser(User user) {\n\t\tuserMapper.insert(user);\n\n\t}", "public void addUser(User user) {\n\t\tuserList.addUser(user);\n\t}", "public void createUser(User user) {\n\n\t}", "public User addUser(User user) {\n allUsers.add(user);\n allUserNames.add(user.getUserName());\n allPasswords.add(user.getPassword());\n allEmails.add(user.getEmail());\n return user;\n }", "public User add(User u) {\n LOGGER.debug(\"adding user to db\");\n getSession().save(u);\n return u;\n }", "public void addUser(User user) {\n\t\tSystem.out.println(\"adding user :\"+user.toString());\n\t\tuserList.add(user);\n\t}", "public eu.aladdin_project.xsd.User addNewUser()\n {\n synchronized (monitor())\n {\n check_orphaned();\n eu.aladdin_project.xsd.User target = null;\n target = (eu.aladdin_project.xsd.User)get_store().add_element_user(USER$0);\n return target;\n }\n }", "public void addUser(User user) {\n\t\tuserDao.addUser(user);\r\n\r\n\t}", "public void Adduser(User u1) {\n\t\tUserDao ua=new UserDao();\n\t\tua.adduser(u1);\n\t\t\n\t}", "@Override\n\tpublic int addUser(TbUser user) {\n\t\treturn new userDaoImpl().addUser(user);\n\t}", "@Override\n\tpublic void addUser(User user) {\n\t\tiUserDao.addUser(user);\n\t}", "@Override\n public void addUser(User u) {\n Session session = this.sessionFactory.getCurrentSession();\n session.persist(u);\n logger.info(\"User saved successfully, User Details=\"+u);\n }", "@Override\n\tpublic void add(UserModel um) throws Exception {\n\t\tuserMapper.insert(um);\n\t}", "public void addUser(User user) {\n \t\tuser.setId(userCounterIdCounter);\n \t\tusers.add(user);\n \t\tuserCounterIdCounter++;\n \t}", "@Override\n public TechGalleryUser addUser(final TechGalleryUser user) throws BadRequestException {\n if (!userDataIsValid(user)) {\n throw new BadRequestException(i18n.t(\"User's email cannot be blank.\"));\n } else {\n userDao.add(user);\n UserProfileServiceImpl.getInstance().createProfile(user);\n return user;\n }\n }", "public boolean addUser(User user) {\n\t\treturn false;\r\n\t}", "public void add(User user) {\r\n this.UserList.add(user);\r\n }", "@Override\n\tpublic int addUser(User user) {\n\t\treturn userDao.addUser(user);\n\t}", "public void add(User user) {\n\t\tuserDao.add(user);\n\t}", "@Override\n\tpublic boolean add(User u) {\n\t\ttry {\n\t\t\tuserDao.add(u);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "public void addUser(User user) {\n\t\tuserDao.insert(user);\n\t}", "public Boolean addUser(User user) throws ApplicationException;", "public void registerUser(User newUser) {\r\n userRepo.save(newUser);\r\n }", "public boolean addUser(UserDTO user);", "public void addUser() {\r\n PutItemRequest request = new PutItemRequest().withTableName(\"IST440Users\").withReturnConsumedCapacity(\"TOTAL\");\r\n PutItemResult response = client.putItem(request);\r\n }", "@Override\r\n\tpublic boolean addUser(user user) {\n\t\tif(userdao.insert(user)==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}", "@PostMapping(\"/add\")\n\tpublic User addUser( @Valid @RequestBody User user) {\n\t\tcontrollerLogger.info(\"new user sign up\");\n\t\treturn service.signUp(user);\n\t}", "public void addUser(String userId) {\n addUser(new IndividualUser(userId));\n }", "@POST(\"/AddUser\")\n\tint addUser(@Body User user);", "void registerUser(User newUser);", "@Override\n\tpublic int addUser(User_role user) throws Exception{\n\t\treturn userMapper.insertByUser(user);\n\t}", "public void addUser(User user){\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(USER_NAME,user.getName());\n values.put(USER_PASSWORD,user.getPassword());\n db.insert(TABLE_USER,null,values);\n db.close();\n }", "public void addUser(User user) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_USER_NAME, user.getName());\n values.put(COLUMN_USER_EMAIL, user.getEmail());\n values.put(COLUMN_USER_IMAGE, \"\");\n values.put(COLUMN_USER_PASSWORD, user.getPassword());\n values.put(COLUMN_USER_CURRMONTH_ID, -16);\n\n // Inserting Row\n db.insert(TABLE_USER, null, values);\n db.close();\n }", "public void addUser(User tmpUser, User user) {\n\t\t\n\t}", "@Override\r\n\tpublic Utilisateur addUser() {\n\t\treturn null;\r\n\t}", "public void add(User user) {\n\t\tmapper.add(user);\n\t}", "private boolean addUser(User user) {\r\n\t\tthis.storer.storeUser(user);\r\n\t\tmapping.put(user.getUsername(), user);\r\n\t\treturn true;\r\n\t}", "User addUser(IDAOSession session, String fullName, String userName,\n\t\t\tString password);", "public void addUser() {\n\t\tthis.users++;\n\t}", "void addNewUser(User user, int roleId) throws DAOException;", "@Override\n\tpublic boolean addUser(User user) {\n\t\tObject object = null;\n\t\tboolean flag = false;\n\t\ttry {\n\t\t\tobject = client.insert(\"addUser\", user);\n\t\t\tSystem.out.println(\"添加学生信息的返回值:\" + object);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (object != null) {\n\t\t\tflag = true;\n\t\t}\n\t\treturn flag;\n\t}", "@Override\n\tpublic boolean addNewUser() {\n\t\treturn false;\n\t}", "public void createUser(User user);", "public User add(User user) {\n\t\treturn userDao.add(user);\n\t}", "public int add(Userinfo user) {\n\t\treturn userDAO.AddUser(user);\r\n\t}", "@PostMapping(value=\"/addUser\")\n\t\t@Consumes({\"application/json\"})\n\t\t@ResponseBody\n\t\tpublic ResponseEntity<User> createUser(@RequestBody User user) throws TaskTrackerException{\n\t\t\tboolean isCreated = false;\n\t\t\ttry {\n\t\t\t\tisCreated = userService.createUser(user);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new TaskTrackerException(\"usernot created, Check if Parent task exists!\",e);\n\t\t\t}\n\t\t\t\n\t\t\tif(isCreated){\n\t\t\t\treturn new ResponseEntity<User>(HttpStatus.CREATED);\n\t\t\t} else {\n//\t\t\t\treturn new ResponseEntity<Product>(HttpStatus.OK);\n\t\t\t\t\n\t\t\t\treturn ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).header(\"message\", \"User not created, Check if User exists!\").build();\n\t\t\t}\n\t\t}", "public Long addUser(User transientUser) throws Exception;", "public User addUser(User user) {\n Boolean isExistingUser = users.stream()\n .map(User::getUserid)\n .anyMatch(user.getUserid()::equals);\n\n if (isExistingUser) {\n throw new IllegalArgumentException(user.getUserid() + \" user id already exists\");\n } else {\n user.setId(UUID.randomUUID().toString());\n users.add(user);\n return user;\n }\n }", "public int userAdd(User user) {\n\t\treturn userDao.userAdd(user);\r\n\t}", "public void addUser(User user) {\n\t\tif(!users.containsKey(user.id)) {\n\t\t\tusers.put(user.id, user);\n\t\t}\n\t}", "@Override\n\tpublic void add(User user) throws UserAlreadyExistsException {\n\t\tOptional<User> op = userRepo.findById(user.getUsername());\n\t\tif(op.isPresent()) {\n\t\t\tthrow new UserAlreadyExistsException(\"Sorry! User with username \"+ user.getUsername()+ \" Already Exists\");\n\t\t}\n\t\telse {\n\t\t\tuserRepo.save(user);\n\t\t}\n\t}", "public void addUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk addUser\");\r\n\t}", "@PostMapping(\"/addUser\")\n public User addUser(@RequestBody User user){\n repo.save(user);\n return user;\n }", "public boolean addUser(User newUser){\n try {\n if (searchUserInCourse(newUser)) {\n throw new Exception();\n }\n\n getUserListInCourse().add(newUser);\n return true;\n } catch (Exception exception) {\n System.err.println(\"This user already exists!\");\n return false;\n\n }\n\n }", "Boolean registerNewUser(User user);", "public void addNewUser(User user) throws SQLException {\n PreparedStatement pr = connection.prepareStatement(Queries.insertNewUser);\n pr.setString(1, user.getUserFullName());\n pr.setString(2, user.getUserEmail());\n pr.setInt(3, user.getPhoneNumber());\n pr.setString(4, user.getUserLoginName());\n pr.setString(5, user.getUserPassword());\n pr.execute();\n pr.close();\n }", "public void newUser(User user);", "@Override\n\tpublic void addItem(User entity) {\n\t\tuserRepository.save(entity);\n\t\t\n\t}", "public void addUser(User user) {\n users.put(user.getUsername(), user);\n persistenceFacade.addUser(user);\n }", "@RequestMapping(value = \"/addUser\", method = RequestMethod.POST)\n\tpublic String addNewUser(@RequestParam(\"userName\") String userName, @RequestParam(\"password\") String password,\n\t\t\t@RequestParam(\"password1\") String password1, Model model) {\n\t\tUser user = userDao.getUser(userName);\n\t\tif (user == null) {\n\t\t\t// passwords need to be equal\n\t\t\tif (password.equals(password1)) {\n\n\t\t\t\tuser = new User(userName, password);\n\t\t\t\tuser.encryptPassword();\n\n\t\t\t\tUserRole userRole = userRoleDao.getRole(\"ROLE_USER\");\n\n\t\t\t\tuser.addUserRole(userRole);\n\t\t\t\tuserDao.merge(user);\n\t\t\t\tmodel.addAttribute(\"message\", \"Welcome \" + user.getUserName() + \", we hope you'll have fun.\");\n\n\t\t\t} else {\n\t\t\t\tmodel.addAttribute(\"errorMessage\", \"Error: Passwords do not match!\");\n\t\t\t\treturn \"signUp\";\n\t\t\t}\n\n\t\t} else {\n\t\t\tmodel.addAttribute(\"errorMessage\", \"Error: User already exists!\");\n\t\t\treturn \"signUp\";\n\t\t}\n\n\t\treturn \"login\";\n\t}", "@Override\n\tpublic String addSingleUser(UserDTO userDTOObj) throws UserException {\n\t\tUserEntity userEntityObj = modelMapper.map(userDTOObj, UserEntity.class);\n\t\ttry {\n\t\t\t//UserEntity userEntityObj = setUserData(userDTOObj);\n\t\t\tuserEntityObj.setAddDt(new Timestamp(Calendar.getInstance().getTimeInMillis()));\n\t\t\tuserEntityObj.setModDt(new Timestamp(Calendar.getInstance().getTimeInMillis()));\n\t\t\t\n\t\t\tuserDataRepository.save(userEntityObj);\n\t\t}catch(Exception e) {\n\t\t\tthrow new UserException(\"Error while adding new User\", e.getMessage());\n\t\t}\n\t\treturn \"USER added successfully\";\n\t}", "public void addUser(User user) throws Exception {\n try (SQLiteDatabase db = this.getWritableDatabase()) {\n ContentValues values = new ContentValues();\n\n values.put(USERS_ID_COLUMN, user.getUserID());\n values.put(USERS_NAME_COLUMN, user.getUserName());\n values.put(USERS_LASTNAME_COLUMN, user.getUserLastname());\n\n db.insert(USERS_TABLE_NAME, null, values);\n }\n }", "public void addNewUser(String userName) {\n\t\tUser newUser = new User(userName, this);\n\t\tusers.add(newUser);\n\t}", "public int add(User user) {\n\t\treturn this.userDao.insert(user);\r\n\t}", "public void addUser(User user) {\n if (this.users == null) {\n this.users = new ArrayList<>();\n }\n this.users.add(user);\n }", "void add(User user) throws SQLException;", "public long addUser(User user) {\n \t\tContentValues temp = new ContentValues();\n \n \t\ttemp.put(USER_COLUMN_USERNAME, user.getUserName());\n \t\ttemp.put(USER_COLUMN_USERID, user.getId());\n \t\ttemp.put(USER_COLUMN_IMGURL, user.getProfileImageURL());\n \t\ttemp.put(USER_COLUMN_SOURCE, \"Twitter\");\n \t\t// TODO implement source on user?\n \n \t\tlong userID = db.insert(TABLE_USER, null, temp);\n \t\treturn userID;\n \t}", "@Override\n\tpublic void addPerson(User pUser) {\n\t\t\n\t}", "@ApiOperation(value = \"Add a User\")\n @RequestMapping(value = \"/create-user\", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)\n @CrossOrigin(origins = \"http://localhost:4200\")\n public UserResponse AddUser(@RequestBody User user) {\n logger.info(\"user:\" + user.toString());\n User DBUser = userService.saveObject(user);\n return new UserResponse(DBUser.getId(),DBUser.getUsername(),DBUser.getEmail(),DBUser.getPhonenumber());\n }", "public void addUser(Customer user) {}", "@Override\n\tpublic int AddUser(UserBean userbean) {\n\t\treturn 0;\n\t}", "public boolean addUser(User user) {\n\t\t\r\n\t\tuser.setEnabled(true);\r\n\t\tuser.setAuthority(\"user\");\r\n\t\tuser.setPassword(new BCryptPasswordEncoder().encode(user.getPassword()));\r\n\t\t\r\n\tsessionFactory.getCurrentSession().save(user);\r\n\treturn true;\r\n \r\n\t}", "public eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser addNewCreateUser()\n {\n synchronized (monitor())\n {\n check_orphaned();\n eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser target = null;\n target = (eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser)get_store().add_element_user(CREATEUSER$0);\n return target;\n }\n }", "public void addUser(User user) {\n users.add(new User(user.getUsername(), Hash.md5(user.getPassword())));\n // Naively dump the whole users list to file\n reader.dumpToFile(users);\n }", "@WebMethod public void addUser(String name, String lastName, String email, String nid, String user, String password);", "@Override\r\n\tpublic int register(User user) {\n\t\treturn dao.addUser(user);\r\n\t}", "public void addUser(User user) {\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(UserDBHelper.COLUMN_NAME, user.getName());\n values.put(UserDBHelper.COLUMN_SURNAME, user.getSurname());\n values.put(UserDBHelper.COLUMN_EMAIL, user.getEmail());\n values.put(UserDBHelper.COLUMN_PASS, user.getPass());\n db.insert(UserDBHelper.TABLE_NAME, \"\", values); // Prevent from -1 exception\n db.close();\n }" ]
[ "0.84158397", "0.8187643", "0.81219286", "0.803908", "0.803908", "0.7903495", "0.7873448", "0.7854214", "0.7774401", "0.7767639", "0.77561796", "0.7747109", "0.7679348", "0.76766044", "0.7670608", "0.7669315", "0.76646596", "0.7649591", "0.76490635", "0.7625281", "0.76249146", "0.76082224", "0.75914454", "0.75897425", "0.7587106", "0.7575943", "0.75518817", "0.75482506", "0.7545637", "0.7545422", "0.7531032", "0.75301987", "0.7528081", "0.7520744", "0.7517167", "0.7503845", "0.74895567", "0.74844", "0.748401", "0.74598724", "0.74353343", "0.7425418", "0.7421231", "0.741433", "0.7399456", "0.7384354", "0.7380281", "0.7370859", "0.7356051", "0.7350267", "0.734445", "0.73435766", "0.7336117", "0.7321993", "0.72886366", "0.72775507", "0.72590894", "0.7252609", "0.723671", "0.72291696", "0.7214278", "0.7203953", "0.7203601", "0.7200157", "0.71980417", "0.7183709", "0.71828383", "0.7175913", "0.7174194", "0.7168907", "0.7161225", "0.71535987", "0.71530515", "0.71407765", "0.7139352", "0.71384495", "0.7136803", "0.7135497", "0.7129133", "0.71042895", "0.7101807", "0.7098831", "0.7097755", "0.70954907", "0.7091937", "0.7082442", "0.70796686", "0.7079541", "0.7068178", "0.7066399", "0.706556", "0.70646447", "0.70503247", "0.7046516", "0.7041866", "0.7032291", "0.7031999", "0.70275474", "0.70151925", "0.7013549", "0.7012759" ]
0.0
-1
TODO Autogenerated method stub
@Override public ComponentInfo doBeforeCompose(Page page, Component parent, ComponentInfo compInfo) { return compInfo; }
{ "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 doBeforeComposeChildren(Component comp) throws Exception { }
{ "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 boolean doCatch(Throwable ex) throws Exception { return false; }
{ "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 doFinally() throws Exception { }
{ "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
public static void main(String[] args) throws Exception { int port = 12345; ServerSocket server = new ServerSocket(port); System.out.println("서버 준비 완료"); Socket socket = server.accept(); InputStreamReader isr = new InputStreamReader(socket.getInputStream()); BufferedReader in1 = new BufferedReader(isr); String str = in1.readLine(); System.out.println("클라이언트로부터 받은 메세지: " + str); in1.close(); socket.close(); }
{ "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
reloads the timetable corresponding to the selection on the basetab
public void reloadRoomTable() { // controller for table methods IntfCtrlGenericTables genericTablesController = new CtrlGenericTables(); // set the Semester label this.lblvaluesemester_.setText(ViewManager.getInstance() .getCoreBaseTab().getComboBoxSemesterFilter().getSelectedItem() .toString()); // get the room allocations from the temprary storage List<IntfRoomAllocation> roomAllocationList = this.roomAllocList_; // call the reload method genericTablesController.reloadTable(getStundenplanTable(), roomAllocationList, true, true); // Set the maximum size of the scroll pane (don't forget to add the // table header!) scrollPane_.setMaximumSize(new Dimension(32767, ((int) timetableTable_ .getPreferredSize().getHeight() + 26))); this.updateUI(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "synchronized void refresh() {\n\n\t\t// We must not call fireTableDataChanged, because that would clear the\n\t\t// selection in the task window\n\t\tfireTableRowsUpdated(0, size - 1);\n\n\t}", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public void reloadTable() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (list.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Balanza object = list.get(i);\n this.AddtoTable(object);\n }\n\n }", "protected void reloadAndReformatTableData()\n {\n logTable.loadAndFormatData();\n }", "private void refreashTableView() {\n this.scoreboard.refresh();\n sortScoreboard();\n }", "public frmTimeTableList() {\n initComponents();\n \n \n \n modelTimeTable=(DefaultTableModel)jTableTimeTable.getModel();\n \n clFunction.changeLookTable(jTableTimeTable);\n \n btnSearchActionPerformed(null);\n \n \n \n }", "public void reloadTableEmpleado() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (listae.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Empleado object = listae.get(i);\n this.AddtoTableEmpleado(object);\n }\n\n }", "private void refreshTable() {\n data = getTableData();\n updateTable();\n }", "public void refreshPressed() {\n //refresh the content of the tableView\n ObservableList<String[]> data = PresentationCtrl.getInstance().getHistories();\n tableView.setItems(data);\n }", "private void xuLyThanhToanDVReload() {\n txtThanhToanDVGiaDV.setText(\"\");\n txtThanhToanDVSoLuong.setText(\"\");\n txtThanhToanDVSoLuongMoi.setText(\"\");\n txtThanhToanDVSoLuongCu.setText(\"\");\n txtThanhToanTongCong.setText(\"0\");\n tongCong=0;\n cbbThanhToanMaKH.removeAllItems();\n hienThiMaKHSuDungDV();\n }", "private void editTimetable(ArrayList<Subject> timetable, Intent result) {\n\t\tSubject.sortTimetable(timetable, getIntent().getStringExtra(\"semester\"));\n\t\tArrayList<String> ch = new ArrayList<>();\n\t\tch.add(\"\");\n\t\tfor (Subject s : timetable) s.setItems(ch);\n\t\tArrayList<Subject> subjects;\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tsubjects = new ArrayList<>();\n\t\t\tfor (Subject s : timetable) {\n\t\t\t\tif (s.getDay() == i) {\n\t\t\t\t\tsubjects.add(s);\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult.putExtra(\"subjects\" + i, subjects);\n\t\t}\n\t}", "public void refreshJTable()\n {\n \n \n }", "void reinit() {\n for (int i = 0; i < 2; i++) {\r\n for (int j = 0; j < 2; j++) {\r\n plots[i][j].setObjectives(i, j);\r\n }\r\n }\r\n fireTableDataChanged();\r\n }", "private void loadData() {\n\n // connect the table column with the attributes of the patient from the Queries class\n id_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"pstiantID\"));\n name_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n date_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"reserveDate\"));\n time_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"reserveTime\"));\n\n try {\n\n // database related code \"MySql\"\n ps = con.prepareStatement(\"select * from visitInfo \");\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n // load data to the observable list\n editOL.add(new Queries(new SimpleStringProperty(rs.getString(\"id\")),\n new SimpleStringProperty(rs.getString(\"patiantID\")),\n new SimpleStringProperty(rs.getString(\"patiant_name\")),\n new SimpleStringProperty(rs.getString(\"visit_type\")),\n new SimpleStringProperty(rs.getString(\"payment_value\")),\n new SimpleStringProperty(rs.getString(\"reserve_date\")),\n new SimpleStringProperty(rs.getString(\"reserve_time\")),\n new SimpleStringProperty(rs.getString(\"attend_date\")),\n new SimpleStringProperty(rs.getString(\"attend_time\")),\n new SimpleStringProperty(rs.getString(\"payment_date\")),\n new SimpleStringProperty(rs.getString(\"attend\")),\n new SimpleStringProperty(rs.getString(\"attend_type\"))\n\n ));\n }\n\n // assigning the observable list to the table\n table_view_in_edit.setItems(editOL);\n\n ps.close();\n rs.close();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "private void reloadShoppingCarTable() {\n\t\t\r\n\t}", "@FXML\n private void populateTimeDropDownList(ActionEvent event) {\n\n try {\n Main.setSelectedFilmTitle(filmDropDownList.getValue());\n Film selectedFilm = Main.getFilmByTitle(Main.getSelectedFilmTitle());\n\n ObservableList<String> timesList = FXCollections.observableArrayList(selectedFilm.getTimes());\n for (int i = 0; i< timesList.size(); i++) {\n if (timesList.get(i).equals(\"hh:mm\")) {\n timesList.remove(i);\n i--;\n }\n }\n\n timeDropDownList.setItems(timesList);\n }\n catch (NullPointerException ex) {\n return;\n }\n }", "public void refreshTable() {\n\t\tmyTable.refreshTable();\n\t}", "private void reTable() {\n\t\tObservableList<Shape> circles = m.drawDataProperty();\n\t\ttv.setItems(circles);\t\t\n\t}", "public void refresh() {\n\t\tTimeStampApp ts = this.getCurrentTime();\n\t\tString period = \"am\";\n\t\tif (ts.getHour() > 12 || ts.getHour() == 0) {\n\t\t\tperiod = \"pm\";\n\t\t\tts.setHour(ts.getHour()%13 + 1);\n\t\t}\n\t\t\n\t\tTicTac(ts.getHour() + period + \":\" + ts.getMinute() + \" \" + ts.getSecond() + \"s\");\n\t\t\n\t}", "public void reload();", "void reload();", "void reload();", "void reload();", "public void updateTableView() {\n\n\t\t// label as \"July 2016\"\n\t\tlabel.setText(month + \"/\" + year);\n\n\t\t// reset the model\n\t\tmodel.setRowCount(0);\n\t\tmodel.setRowCount(numberOfWeeks);\n\n\t\t// set value in the DefaultTableModel\n\t\tint i = firstDayOfWeek - 1;\n\t\tfor (int d = 1; d <= numberOfDays; d++) {\n\t\t\tint row = i / 7;\n\t\t\tint col = i % 7;\n\t\t\tmodel.setValueAt(d, row, col);\n\t\t\tif (d == day) {\n\t\t\t\ttable.changeSelection(row, col, false, false);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}", "private void loadTable() {\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n try {\n String sql = \"select * from tb_mahasiswa\";\n Statement n = a.createStatement();\n ResultSet rs = n.executeQuery(sql);\n while (rs.next()) {\n Object[] o = new Object[6];\n o[0] = rs.getString(\"id_mahasiswa\");\n o[1] = rs.getString(\"nama\");\n o[2] = rs.getString(\"tempat\");\n o[3] = rs.getString(\"waktu\");\n o[4] = rs.getString(\"status\");\n model.addRow(o);\n }\n } catch (Exception e) {\n }\n }", "public void refreshTablePlayer()\n {\t \n String[][] dataPlayer = new String[this.joueurs.size()][columnNamesPlayers.length];\n for (int i=0; i<this.joueurs.size(); i++) {\n \tdataPlayer[i] = this.joueurs.get(i).toArray();\n }\n this.tableJoueurs.setModel(new DefaultTableModel(dataPlayer, columnNamesPlayers) {\n @Override\n public boolean isCellEditable(int row, int column) { return false; }\n });\n }", "private void refreshTable(){\n DefaultTableModel dm = (DefaultTableModel)table.getModel();\r\n dm.getDataVector().removeAllElements();\r\n System.out.println(\"Refresh Table\");\r\n\r\n //calling method addRows\r\n addRows();\r\n }", "private void loadData(){\n Dh.refresh();\n }", "private void updateControlsFromTable() {\r\n monthControl.setText(getDateFormatSymbols()\r\n .getMonths()[calendarTable.getCalendarModel().getMonth()]);\r\n yearControl.setText(String.valueOf(calendarTable.getCalendarModel().getYear()));\r\n }", "public void refresh() {\n calcDataInTable();\n fireTableDataChanged();\n\n}", "private void actualizarTablaPeriodos() {\n\t\tMap<Integer, Periodo> periodos = modelo\n\t\t\t\t.obtenerPeriodos(Integer.parseInt(jfad.cBCursosMod.getSelectedItem().toString()));\n\t\tDefaultTableModel dtm = new DefaultTableModel(new Object[][] {},\n\t\t\t\tnew String[] { \"Periodo\", \"Dia inicio\", \"Dia fin\", \"Hora inicio\", \"Hora_fin\", \"Habilitado\" });\n\n\t\tfor (Integer key : periodos.keySet()) {\n\n\t\t\tdtm.addRow(new Object[] { key, periodos.get(key).getDia_inicio(), periodos.get(key).getDia_fin(),\n\t\t\t\t\tperiodos.get(key).getHora_inicio(), periodos.get(key).getHora_fin(),\n\t\t\t\t\tperiodos.get(key).getHabilitado() });\n\t\t}\n\t\tjfad.tPeriodos.setModel(dtm);\n\t}", "public void reload(){\n populateList();\n }", "public void refresh() {\n sqlTable = \"Select * from users, roles where users.role_ID = roles.Roles_ID ORDER BY users.user_ID ASC\";\n try{\n jTable1 = Domains.getTable(header, columns, sqlTable);\n jScrollPane1.getViewport().removeAll();\n jScrollPane1.getViewport().add(jTable1);\n jScrollPane1.repaint();\n }catch(Exception err){\n err.printStackTrace();\n }\n }", "public static void deleteTimeButtonClicked() {\n ObservableList<Occasion> allTimes;\n allTimes = tableHoliday.getItems();\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n allTimes.remove(occasion);\n OccasionCommunication.removeOccasion(occasion.getId());\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public void setCalendarForModel(Calendar calend) {\n this.cal = calend;\n //fireTableDataChanged();\n refresh();\n}", "public void reloadData() {\n\t\tinitializeStormData();\n\t\tsuper.reloadData();\n\t}", "public void doButtonRauf() {\n\t\tint sel = this.anzeige.getSelectedRow();\n\t\tif (sel > 0) {\n\t\t\tObject o = this.tabellenspalten.get(sel);\n\t\t\tthis.tabellenspalten.remove(sel);\n\t\t\tthis.tabellenspalten.add(sel - 1, o);\n\t\t\tthis.doRepaint();\n\t\t\tthis.anzeige.setRowSelectionInterval(sel - 1, sel - 1);\n\t\t}\n\t}", "public void reloadAll() {\n\t\tfor (int i=0; i<jtp.getTabCount()-1; i++) {\n\t\t\t((XCDisplay)jtp.getComponent(i)).reloadDocument();\n\t\t}\n\t}", "public void updateTable() {\n\t\ttable.getSelectionModel().removeListSelectionListener(lsl);\n\t\tdtm = new DefaultTableModel();\n\t\td = new Diet();\n\t\tdtm.addColumn(\"Id\");\n\t\tdtm.addColumn(\"Meal Id\");\n\t\tdtm.addColumn(\"Meal Type\");\n\t\tdtm.addColumn(\"Food Name\");\n\t\tdtm.addColumn(\"Food Type\");\n\t\tdtm.addColumn(\"Food Category\");\n\t\tdtm.addColumn(\"Ready Time\");\n\t\tdtm.addColumn(\"Calories (g)\");\t\t\n\t\tdtm.addColumn(\"Protein (g)\");\n\t\tdtm.addColumn(\"Fat (g)\");\n\t\tdtm.addColumn(\"Carbohydrates\");\n\t\tdtm.addColumn(\"VitaminA\");\n\t\tdtm.addColumn(\"VitaminC\");\n\t\tdtm.addColumn(\"Calcium\");\n\t\tdtm.addColumn(\"Iron\");\n\t\tdtm.addColumn(\"Author\");\n\t\tArrayList<Diet> dietList = dI.getDietList();\n\t\tif(isOrder && orderby!=\"\")\n\t\t{\t\t\t\n\t\t\tSystem.out.println(\"entering ----------------\"+orderby);\n\t\t\tdietList=dI.getDietOrderedList(type,orderby);\n\t\t\tfor (Diet d : dietList) {\t\n\t\t\t\tSystem.out.println(d.getId()+\" ------ \"+d.getCalories());\n\t\t\t}\n\t\t}\n\t\tif(isFiltered)\n\t\t{\n\t\t\tif(mealtypeSel!=\"\")\n\t\t\tdietList=dI.getFilteredMealTypeList(mealtypeSel);\n\t\t\tif(foodtypeSel!=\"\")\n\t\t\t\tdietList=dI.getFilteredFoodTypeList(foodtypeSel);\n\t\t\tif(authorSel!=\"\")\n\t\t\t\tdietList=dI.getFilteredauthorList(authorSel);\n\t\t\tif(foodCategorySel!=\"\")\n\t\t\t\tdietList=dI.getFilterFoodCategoryList(foodCategorySel);\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (Diet d : dietList) {\t\n\t\t\tdtm.addRow(d.getVector());\n\t\t}\n\t\ttable.setModel(dtm);\n\n\t\ttable.getSelectionModel().addListSelectionListener(lsl);\n\n\t}", "public void refreshTable() {\r\n\t\t// THIS is the key method to ensure JTable view is synchronized\r\n\t\tjtable.revalidate();\r\n\t\tjtable.repaint();\r\n\t\tthis.revalidate();\r\n\t\tthis.repaint();\r\n\t}", "public void refreshGUI() {\n try {\n // get all clerk theough the DAO to a tempory List\n List<Clerk> clerkList = clerkDAO.getAllClerk();\n\n // create the model and update the \"table\"\n ClerkTableModel model = new ClerkTableModel(clerkList);\n table.setModel(model);\n\n } catch (Exception exc) {\n JOptionPane.showMessageDialog(ClerkViewer.this, \"Error: \" + exc, \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void refreshData() {\r\n\t\tfireTableDataChanged();\r\n\t\tgetTable().tableChanged(new TableModelEvent(this));\r\n\t}", "public void loadingTable() {\n this.setRowCount(1, true);\r\n this.setVisibleRangeAndClearData(this.getVisibleRange(), true);\r\n }", "public void refresh() {\n\t\tgetTableViewer().refresh();\n\t}", "private void refreshList() {\n\t\tfor (int i = 0; i < service.getAllTimesheetRows(currentTimesheet.getTimesheetId()).size(); i++) {\n\t\t\ttimesheetRowList.add(service.getAllTimesheetRows(currentTimesheet.getTimesheetId()).get(i));\n\t\t}\n\t\ttimesheetRowList.add(new TimesheetRow(currentTimesheet.getTimesheetId()));\n\t}", "public void refresh() {\r\n\t\tneeds.setText(needs());\r\n\t\tproduction.setText(production());\r\n\t\tjobs.setText(jobs());\r\n\t\tmarketPrices.setText(marketPrices());\r\n\t\tmarketSellAmounts.setText(marketSellAmounts());\r\n\t\tmarketBuyAmounts.setText(marketBuyAmounts());\r\n\t\tcompanies.setText(companies());\r\n\t\tmoney.setText(money());\r\n\t\ttileProduction.setText(tileProduction());\r\n\t\tcapital.setText(capital());\r\n\t\thappiness.setText(happiness());\r\n\t\tland.setText(land());\r\n\t\t//ArrayList of Agents sorted from lowest to highest in money is retrieved from Tile\r\n\t\tagents=tile.getAgentsByMoney();\r\n\t\tgui3.refresh();\r\n\t\tsliderPerson.setText(\"\"+agents.get(slider.getValue()).getMoney());\r\n\t\ttick.setText(tick());\r\n\t\tthis.pack();\r\n\t}", "public static void refreshTable() {\n tableView.setItems(FXCollections.observableArrayList(customerVehicleIssueTable.getAllOpenCustomerVehicleIssues()));\n tableView.refresh();\n }", "private void updateStoryTable() {\n List<Story> stories = getModel().getAllStories();\n observableStories.setAll(stories);\n\n if (selectedStory.get() != null) {\n storyTable.getSelectionModel().select(selectedStory.get());\n }\n\n }", "void ViewTable(){\n String subMo1 = null;\n String subTu1 = null;\n String subWe1 = null;\n String subTh1 = null;\n String subFr1 = null;\n String subSa1 = null;\n String subMo2 = null;\n String subTu2 = null;\n String subWe2 = null;\n String subTh2 = null;\n String subFr2 = null;\n String subSa2 = null;\n String type = null;\n \n String cl = cls.substring(0,1);\n if(cl.equals(\"A\")||cl.equals(\"S\")){\n txtSession1.setText(\"2:00 - 3:30\");\n txtSession2.setText(\"3:45 - 5:15\");\n }\n else if(cl.equals(\"M\")){\n txtSession1.setText(\"7:00 - 8:30\");\n txtSession2.setText(\"8:45 - 10:15\");\n }\n else if(cl.equals(\"E\")){\n txtSession1.setText(\"5:30 - 7:00\");\n txtSession2.setText(\"7:15 - 8:45\");\n }\n \n try {\n clsCon.setRs(clsCon.getStmt().executeQuery(\"select * from qTimetable where CourseID=\"+lblCourse.getText()+\" and SemesterID='\"+lblSemester.getText()+\"' and ClassID='\"+lblClass.getText()+\"' and Active = 1\"));\n // JOptionPane.showConfirmDialog(null, \"L\");\n if(clsCon.getRs().first()){ \n do{\n if(clsCon.getRs().getByte(\"RoomType\")==1){\n if(clsCon.getRs().getString(\"Day\").equals(\"Monday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session1\")){ \n subMo1 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\");\n txtMonday1.setText(subMo1);\n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Tuesday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session1\")){ \n subTu1 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\");\n txtTuesday1.setText(subTu1);\n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Wednesday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session1\")){ \n subWe1 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\"); \n txtWednesday1.setText(subWe1);\n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Thursday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session1\")){ \n subTh1 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\"); \n txtThursday1.setText(subTh1);\n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Friday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session1\")){ \n subFr1 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\"); \n txtFriday1.setText(subFr1); \n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Saturday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session1\")){ \n subSa1 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\"); \n txtSaturday1.setText(subSa1);\n }\n\n if(clsCon.getRs().getString(\"Day\").equals(\"Monday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session2\")){ \n subMo2 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\");\n txtMonday2.setText(subMo2);\n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Tuesday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session2\")){ \n subTu2 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\");\n txtTuesday2.setText(subTu2);\n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Wednesday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session2\")){ \n subWe2 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\"); \n txtWednesday2.setText(subWe2);\n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Thursday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session2\")){ \n subTh2 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\"); \n txtThursday2.setText(subTh2);\n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Friday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session2\")){ \n subFr2 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\");\n txtFriday2.setText(subFr2); \n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Saturday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session2\")){ \n subSa2 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\"); \n txtSaturday2.setText(subSa2);\n } \n if(txtSaturday1.getText() == null||txtSaturday1.getText().equals(\"\")||txtSaturday2.getText() == null||txtSaturday2.getText().equals(\"\"))\n {\n txtSaturday1.setBackground(Color.red);\n txtSaturday2.setBackground(Color.red);\n }\n }\n if(clsCon.getRs().getByte(\"RoomType\")==2){\n type = \"Lab\";\n if(clsCon.getRs().getString(\"Day\").equals(\"Monday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session1\")){ \n subMo1 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + type + \" \" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\");\n txtMonday1.setText(subMo1);\n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Tuesday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session1\")){ \n subTu1 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + type + \" \" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\");\n txtTuesday1.setText(subTu1);\n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Wednesday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session1\")){ \n subWe1 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + type + \" \" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\"); \n txtWednesday1.setText(subWe1);\n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Thursday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session1\")){ \n subTh1 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + type + \" \" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\"); \n txtThursday1.setText(subTh1);\n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Friday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session1\")){ \n subFr1 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + type + \" \" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\"); \n txtFriday1.setText(subFr1); \n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Saturday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session1\")){ \n subSa1 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + type + \" \" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\"); \n txtSaturday1.setText(subSa1);\n }\n\n if(clsCon.getRs().getString(\"Day\").equals(\"Monday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session2\")){ \n subMo2 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + type + \" \" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\");\n txtMonday2.setText(subMo2);\n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Tuesday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session2\")){ \n subTu2 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + type + \" \" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\");\n txtTuesday2.setText(subTu2);\n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Wednesday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session2\")){ \n subWe2 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + type + \" \" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\"); \n txtWednesday2.setText(subWe2);\n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Thursday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session2\")){ \n subTh2 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + type + \" \" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\"); \n txtThursday2.setText(subTh2);\n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Friday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session2\")){ \n subFr2 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + type + \" \" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\");\n txtFriday2.setText(subFr2); \n }\n if(clsCon.getRs().getString(\"Day\").equals(\"Saturday\"))\n if(clsCon.getRs().getString(\"SessionName\").equals(\"Session2\")){ \n subSa2 = clsCon.getRs().getString(\"SubjectName\") + \"\\n\\r\" + clsCon.getRs().getString(\"Name\") + \"\\n\\r\" + type + \" \" + clsCon.getRs().getString(\"Building\") + clsCon.getRs().getString(\"RoomNumber\"); \n txtSaturday2.setText(subSa2);\n } \n if(txtSaturday1.getText() == null||txtSaturday1.getText().equals(\"\")||txtSaturday2.getText() == null||txtSaturday2.getText().equals(\"\"))\n {\n txtSaturday1.setBackground(Color.red);\n txtSaturday2.setBackground(Color.red);\n }\n }\n }while(clsCon.getRs().next()); \n \n }\n } catch (SQLException e) {\n }\n }", "@FXML\n void OnActionMonthlyAppointments(ActionEvent event) {\n //MSAppointmentsTableView.getItems().clear();\n getTableData();\n MSAppointmentsTableView.setItems(dbQuery.getMonthlyAppointments());\n }", "public Time_table() {\n initComponents();\n }", "void refresh();", "void refresh();", "void refresh();", "void refresh();", "void refresh();", "private void refreshTableForEdit()\n {\n BadBudgetData bbd = ((BadBudgetApplication) this.getApplication()).getBadBudgetUserData();\n for (MoneyLoss loss : bbd.getLosses())\n {\n TextView valueView = valueViews.get(loss.expenseDescription());\n TextView frequencyView = frequencyViews.get(loss.expenseDescription());\n TextView nextLossView = nextLossViews.get(loss.expenseDescription());\n\n valueView.setText(BadBudgetApplication.roundedDoubleBB(loss.lossAmount()));\n frequencyView.setText(BadBudgetApplication.shortHandFreq(loss.lossFrequency()));\n nextLossView.setText(BadBudgetApplication.dateString(loss.nextLoss()));\n }\n\n double total = getLossTotal(BadBudgetApplication.DEFAULT_TOTAL_FREQUENCY);\n this.totalAmountView.setText(BadBudgetApplication.roundedDoubleBB(total));\n this.totalFreqView.setText(BadBudgetApplication.shortHandFreq(BadBudgetApplication.DEFAULT_TOTAL_FREQUENCY));\n\n //Should also reset the budget row to the default freq\n double budgetTotal = BudgetSetActivity.getBudgetItemTotal(this, BadBudgetApplication.DEFAULT_TOTAL_FREQUENCY);\n this.budgetAmountView.setText(BadBudgetApplication.roundedDoubleBB(budgetTotal));\n this.budgetFreqView.setText(BadBudgetApplication.shortHandFreq(BadBudgetApplication.DEFAULT_TOTAL_FREQUENCY));\n }", "@Override\r\n public void update(int index, Movie object, String value) {\n \tif (!value.matches(\"^[0-9]*$\")){\r\n \t\ttimeCell.clearViewData(selectionModel.getSelectedObject()); \r\n \t\tmovieProvider.refresh();\r\n \t\tmovieTable.redraw(); \r\n \t Window.alert(value + \" ist keine gueltige eingabe. Bitte eine positive Zahl eingeben!\");\r\n \t\t}\r\n \telse {\r\n \t\tobject.setTime(Integer.valueOf(value));\r\n \t\t\tmovieTable.redraw();\r\n \t\t\t}\r\n \t}", "private void fillComboBox() {\n List<String> times = this.resultSimulation.getTimes();\n this.timesComboBox.getItems().addAll(times);\n this.timesComboBox.getSelectionModel().select(0);\n }", "public void reload() {\n\n\t}", "public void updateTable(int keycode) {\r\n\t\tlong size=objectCollection.size();\r\n\t\tlong objectsToLoad=getObjectsToLoad(keycode);\r\n\t\tif (objectsToLoad!=0) objectCollection.addAll(retrieveObjects(size, size+objectsToLoad));\r\n\t\trefreshViewer(keycode==SWT.DEFAULT);\r\n\t}", "public void updateDataCell();", "public void reload() {\n log.debug(\"Reloading bicycles after update to table\");\n try{\n bicycles.clear();\n bicycles.addAll(bicycleManager.findAllBicycles());\n checkAvail();\n fireTableDataChanged();\n }catch(ServiceFailureException ex){\n log.error(\"SFE reloading bicycles after update\");\n throw new ServiceFailureException(ex);\n }catch(IllegalArgumentException ex){\n log.error(\"IAE reloading bicycles\");\n }\n }", "@Override\r\n\tpublic boolean updateTable() {\r\n\t\t/*\r\n\t\t * VERSION 1\r\n\t\t *\r\n\t\tobjectCollection.clear();\r\n\t\tobjectCollection.addAll(retrieveObjects());\r\n\t\trefreshTable();*/\r\n\t\tlong size=objectCollection.size();\r\n\t\tobjectCollection.clear();\r\n\t\tint index=getSelectionIndex();\r\n\t\tupdateTable(SWT.DEFAULT);\r\n\t\tselectElement(index);\r\n\t\treturn objectCollection.size()!=size;\r\n\t}", "private void refresh() {\n\t\t\tRunnable run = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif(table.isDisposed())return;\n\t\t\t\t\tviewer.refresh();\n\t\t\t\t}\t\t\t\n\t\t\t};\n\t\t\tDisplay.getDefault().asyncExec(run);\n\t\t}", "public void reloadDatasources(){\n refreshDataCache();\n refreshListbox();\n \n if (this.geselecteerdeStageplaats != null)\n { \n this.geselecteerdeStageplaats = this.dbFacade.getStageplaatsByID(this.geselecteerdeStageplaats.getId());\n }\n refreshDisplayedStageplaats();\n }", "private void UpdateTable() {\n\t\t\t\t\n\t\t\t}", "public void updateCurveSelectorTable() {\r\n\t\tif (Thread.currentThread().getId() == DataExplorer.application.getThreadId()) {\r\n\t\t\tthis.graphicsTabItem.updateCurveSelectorTable();\r\n\t\t\tif (this.compareTabItem != null && !this.compareTabItem.isDisposed()) this.compareTabItem.updateCurveSelectorTable();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tDataExplorer.this.graphicsTabItem.updateCurveSelectorTable();\r\n\t\t\t\t\tif (DataExplorer.this.compareTabItem != null && !DataExplorer.this.compareTabItem.isDisposed()) DataExplorer.this.compareTabItem.updateCurveSelectorTable();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}", "public void reload() {\r\n\t\tif(!this.isVisible()){\r\n\t\t\tthis.list.show(new Vector<Record>());\r\n\t\t\tpanForm.clear();\r\n\t\t}else{\r\n\t\t\tthis.list.show(new Vector<Record>());\r\n\t\t\tperformSearch();\r\n\t\t}\r\n\t\tpanForm.reload();\r\n\t}", "private void setTable(Preset currentPreset) {\n\t\tif(columnNames.length != data.getGroupList().size() + 1){\n\t\t\tcolumnNames = new Object[data.getGroupList().size() + 1];\n\t\t\tcolumnNames[0] = \"Time\";\n\t\t}\n\t\t\n\t\t// Make sure the slot numbers havent changed\n\t\tif(rowData.length != currentPreset.getSlotNumber() || rowData[0].length != columnNames.length){\n\t\t\trowData = new Object[currentPreset.getSlotNumber()][columnNames.length];\n\t\t}\n\n\t\t// Initialize the columns\n\t\tListIterator<Group> groups = data.getGroupList().listIterator();\n\t\tfor(int i = 1; i < columnNames.length; i++){\n\t\t\tcolumnNames[i] = groups.next();\n\t\t}\n\t\t\n\t\t// Create an array for the activities\n\t\tString[] activityNameArray = new String[data.getPlannedActivityList().size() + 1];\n\t\tactivityNameArray[0] = \"Random\";\n\t\tfor(int count = 0; count < data.getPlannedActivityList().size(); count++ ){\n\t\t\tactivityNameArray[count + 1] = data.getPlannedActivityList().get(count).getName();\t\t\t\n\t\t}\n\t\t\n\t\t// Initialize the table.\n\t\tfor(int rowIndex = 0; rowIndex < rowData.length; rowIndex++){\n\t\t\trowData[rowIndex][0] = getTime(currentPreset, rowIndex);\n\t\t\tfor(int colIndex = 1; colIndex < rowData[rowIndex].length; colIndex++){\n\t\t\t\trowData[rowIndex][colIndex] = new JComboBox<String>(activityNameArray);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public void updateTeamTables() {\n ArrayList<Player> tempTeam = new ArrayList<>();\n ArrayList<Player> tempTaxi = new ArrayList<>();\n teamTable.getItems().clear();\n for (Team tt : dataManager.getDraft().getFantasyTeams()) {\n if (tt.getTeamName().equals(selectTeam.getSelectionModel().getSelectedItem())) {\n tempTeam = tt.getTeamList();\n tempTaxi = tt.getTaxiList();\n }\n }\n teamTable = resetTeamTable(tempTeam);\n teamTaxiTable = resetTaxiTable(tempTaxi);\n \n teamTable.getSortOrder().add(posCol);\n posCol.setComparator(positionCompare);\n posCol.setSortType(SortType.ASCENDING);\n posCol.setSortable(true);\n posCol.setSortable(false);\n }", "private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }", "private void updateTabela() {\n\n if (txBuscar.getText().isEmpty()) {\n ListaEmprestimosBEANs = new ControlerEmprestimos().listaEmprestimoss();\n } else {\n try {\n Integer buscar = Integer.parseInt(txBuscar.getText());\n ListaEmprestimosBEANs = new ArrayList<>();\n ListaEmprestimosBEANs.add(new ControlerEmprestimos().findEmprestimos(buscar));\n } catch (Exception e) {\n\n }\n }\n DefaultTableModel model = new DefaultTableModel(null, new String[]{\"ID\", \"Data de Saida\", \"Data Estimada do Retorno\", \"Data do Retorno\"});\n try {\n jTable1.setModel(model);\n String[] dados = new String[9];\n for (EmprestimosBEAN a : ListaEmprestimosBEANs) {\n dados[0] = String.valueOf(a.getId_emprestimo());\n dados[1] = a.getDtSaida().toString();\n dados[2] = a.getDtVolta().toString();\n dados[3] = a.getDtRetorno() == null ? \"\" : a.getDtRetorno().toString();\n model.addRow(dados);\n }\n } catch (Exception ex) {\n\n }\n\n }", "public void updateanime(){\r\n animetable = new JTable();\r\n // set colume\r\n DefaultTableModel tableModel = (DefaultTableModel) animetable.getModel();\r\n tableModel.setColumnCount(0);\r\n //set row\r\n tableModel.setRowCount(animeimg.length);\r\n String[] animeno = new String[100];\r\n for(int i=0; i<animeimg.length; i++){\r\n if(animeimg[i]==null)\r\n break;\r\n animeno[i] = Integer.toString(i+1);\r\n }\r\n tableModel.addColumn(\"Available Images\", animeno);\r\n animetable.invalidate();\r\n pane_fileList.setViewportView(animetable);\r\n animetable.setVisible(true);\r\n }", "public void reloadTableCliente() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (lista.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Cliente object = lista.get(i);\n this.AddtoTableCliente(object);\n }\n\n }", "private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {\n\n if (evt.getClickCount() == 1) {\n int row = jTable1.getSelectedRow();\n jTabbedPane1.setEnabledAt(2, true);\n id = (int) jTable1.getValueAt(row, 0);\n\n jTabbedPane1.setEnabledAt(0, false);\n jTabbedPane1.setEnabledAt(1, false);\n jTabbedPane1.setSelectedIndex(2);\n // jDateChooser2.setDateFormatString(jTable1.getValueAt(row, 1) + \"\");\n// java.sql.Date fecFormatoDate = null;\n// try {\n// SimpleDateFormat sdf = new java.text.SimpleDateFormat(\"yyyy-MM-dd\", new Locale(\"es\", \"ES\"));\n// fecFormatoDate = new java.sql.Date(sdf.parse(jTable1.getValueAt(row, 1).toString()).getTime());\n// System.out.println(\"Fecha con el formato java.sql.Date: \" + fecFormatoDate);\n// } catch (Exception ex) {\n// System.out.println(\"Error al obtener el formato de la fecha/hora: \" + ex.getMessage());\n// }\n // jDateChooser2.setDate(fecFormatoDate);\n// jTextField4.setText(jTable1.getValueAt(row, 2) + \"\");\n\n Date fecha = (Date) jTable1.getValueAt(row, 1);\n jDateChooser2.setDate(fecha);\n Citas citas = (Citas) jTable1.getValueAt(row, 3);\n jComboBox3.setSelectedIndex(citas.getPosicion());\n\n if (jTable1.getValueAt(row, 3).toString().length() <= 4) {\n String horas = jTable1.getValueAt(row, 3).toString().substring(0, 1);\n SpinnerNumberModel model1 = new SpinnerNumberModel(Integer.parseInt(horas), 9, 18, 1);\n jSpinner4.setModel(model1);\n } else {\n String horas = jTable1.getValueAt(row, 3).toString().substring(0, 2);\n SpinnerNumberModel model1 = new SpinnerNumberModel(Integer.parseInt(horas), 9, 18, 1);\n jSpinner4.setModel(model1);\n }\n\n String m = jTable1.getValueAt(row, 3).toString();\n String mm = m.substring(m.length() - 2, m.length());\n if (mm.substring(0, 1).equals(\"0\")) {\n SpinnerNumberModel model1 = new SpinnerNumberModel(Integer.parseInt(mm.substring(1, 2)), 0, 60, 1);\n jSpinner5.setModel(model1);\n } else {\n SpinnerNumberModel model1 = new SpinnerNumberModel(Integer.parseInt(mm), 0, 60, 1);\n jSpinner5.setModel(model1);\n }\n\n }\n }", "@Override\n public void reloadWorkspace(AppDataComponent dataComponent) {\n \n CourseData data = (CourseData)dataComponent;\n taData.reloadOfficeHoursGrid(data);\n }", "public void updateUserSelTable() {\n\t\n\t\tUserSelDietTable.getSelectionModel().removeListSelectionListener(lsl_userT);\n\t\tdtm = new DefaultTableModel();\n\t\tudI=new UserDietDAOImpl();\n\t\tdtm.addColumn(\"Id\");\t\t\n\t\tdtm.addColumn(\"Diet Id\");\n\t\tdtm.addColumn(\"Meal Type\");\n\t\tdtm.addColumn(\"Food Name\");\n\t\tdtm.addColumn(\"Calories (g)\");\n\t\tdtm.addColumn(\"Date\");\n\t\tdtm.addColumn(\"Author\");\n\t\tArrayList<UserDiet> dietList=new ArrayList<UserDiet>();\n\t\tif(currentUEmail.length>0)\n\t\t{\n\t\t\tString currDate=(String) comboBoxDate.getSelectedItem();\t\t\t\n\t\t\tSystem.out.println(currDate+\" item count \"+comboBoxDate.getItemCount());\n\t\tdietList =udI.getUserDietList(currentUEmail[0],currDate);\n\t\t}\n\t\tfor (UserDiet ud : dietList) {\t\n\t\t\tdtm.addRow(ud.getVector());\n\t\t}\n\t\tUserSelDietTable.setModel(dtm);\n\n\t\tUserSelDietTable.getSelectionModel().addListSelectionListener(lsl_userT);\n\n\n\t}", "public void Refresh()\r\n \t{\r\n\t try{\r\n\t\t rsTution=db.stmt.executeQuery(\"Select * from Tution\");\r\n\t\t rsTution.next();\r\n\t\t Display();\r\n\t }catch(SQLException sqle)\r\n\t {System.out.println(\"Refresh Error:\"+sqle);\r\n\t }\r\n \t}", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "abstract void refresh();", "public\n void\n clearTableSelection()\n {\n getRegisterPanel().clearTableSelection();\n }", "private void srediTabelu() {\n ModelTabeleStavka mts = new ModelTabeleStavka();\n mts.setLista(n.getLista());\n tblStavka.setModel(mts);\n }", "public static void updateSummaryTable() {\n tableModel.fireTableDataChanged();\n tableModel.fireTableStructureChanged();\n window.resetSize();\n\n window.setComboBox();\n showWindow();\n }", "Lab refresh();", "public DayWiseClassTimeTable() {\n initComponents();\n jXTable1.setHorizontalScrollEnabled(true);\n jXTable1.setHighlighters(HighlighterFactory.createAlternateStriping());\n model = new TimeTableModel(3).createDefaultModel();\n jXTable1.setModel(model);\n \n loadClassAndSection();\n }", "public void reload() {\n\t\tpause();\n\t\tsetPosition(0);\n\t}", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tint row = Integer.valueOf(e.getActionCommand());\r\n\t\t\t//LibriTableModel model = (LibriTableModel) table.getModel();\r\n\t\t\tModelMethods.aggiungiCarrello(row);\r\n\t\t\tVenditeView.aggiornaLabels();\r\n\t\t\tLibriJPanJTab.refresh();\r\n\t\t}", "@FXML\n private void initialize(){\n incompleteDescription.setCellValueFactory(\n cellData-> cellData.getValue().descriptionProperty()\n );\n completeDescription.setCellValueFactory(\n cellData -> cellData.getValue().descriptionProperty()\n );\n\n\n IncompleteTaskTable.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> showTask(newValue));\n taskCompletedTable.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue)-> showTask(newValue));\n //taskCompletedTable.getSelectionModel().clearSelection();\n }", "public void doButtonRunter() {\n\t\tint sel = this.anzeige.getSelectedRow();\n\t\tif ((sel >= 0) & (sel < this.tabellenspalten.size() - 1)) {\n\t\t\tObject o = this.tabellenspalten.get(sel);\n\t\t\tthis.tabellenspalten.remove(sel);\n\t\t\tthis.tabellenspalten.add(sel + 1, o);\n\t\t\tthis.doRepaint();\n\t\t\tthis.anzeige.setRowSelectionInterval(sel + 1, sel + 1);\n\t\t}\n\t}", "public void refreshAttack(){\n\t\tattackFromComboBox.repaint();\n\t\tnumberOfArmies[0].repaint();\n\t\tnumberOfArmies[4].repaint();\n\t\tattackToComboBox.repaint();\n\t\tthis.repaint();\n\t}", "public void refreshSubconPanel(String record[]){\r\n nameTf.setText(record[0]);\r\n locationTf.setText(record[1]);\r\n specialtiesTf.setText(record[2]);\r\n sizeTf.setText(record[3]);\r\n rateTf.setText(record[4]);\r\n ownerTf.setText(record[5]);\r\n }", "private void loadData() {\r\n titleField.setText(existingAppointment.getTitle());\r\n descriptionField.setText(existingAppointment.getDescription());\r\n contactField.setText(existingAppointment.getContact());\r\n customerComboBox.setValue(customerList.stream()\r\n .filter(x -> x.getCustomerId() == existingAppointment.getCustomerId())\r\n .findFirst().get());\r\n typeComboBox.setValue(existingAppointment.getType());\r\n locationComboBox.setValue(existingAppointment.getLocation());\r\n startTimeComboBox.setValue(existingAppointment.getStart().toLocalTime().format(DateTimeFormatter.ofPattern(\"HH:mm\")));\r\n endTimeComboBox.setValue(existingAppointment.getEnd().toLocalTime().format(DateTimeFormatter.ofPattern(\"HH:mm\")));\r\n startDatePicker.setValue(existingAppointment.getStart().toLocalDate());\r\n endDatePicker.setValue(existingAppointment.getEnd().toLocalDate());\r\n }" ]
[ "0.6513488", "0.64472693", "0.6392832", "0.60559475", "0.6028924", "0.6002887", "0.59583706", "0.59414047", "0.5935725", "0.58747184", "0.58492696", "0.58483964", "0.5830103", "0.5829236", "0.58248264", "0.5820593", "0.58054346", "0.57861054", "0.5755069", "0.57488734", "0.57370216", "0.57370216", "0.57370216", "0.5728962", "0.570359", "0.56934994", "0.5688828", "0.5685706", "0.56777173", "0.567157", "0.56580216", "0.5657182", "0.56539243", "0.5642029", "0.56369466", "0.5630148", "0.56137145", "0.5611818", "0.56012726", "0.5592653", "0.55829513", "0.5580658", "0.55641145", "0.5545264", "0.55430347", "0.55277514", "0.5518614", "0.5515861", "0.5511132", "0.550372", "0.5499871", "0.54943043", "0.549231", "0.549231", "0.549231", "0.549231", "0.549231", "0.54664004", "0.54632914", "0.54609203", "0.5460209", "0.5456536", "0.54504526", "0.54497594", "0.54484725", "0.5445317", "0.54421943", "0.5441128", "0.54331553", "0.54295725", "0.5427523", "0.5427095", "0.5410193", "0.5410018", "0.53749835", "0.5372722", "0.5356198", "0.5343395", "0.5337683", "0.5329358", "0.53248096", "0.53248096", "0.53248096", "0.53248096", "0.53248096", "0.53248096", "0.53248096", "0.5323624", "0.5321845", "0.53209823", "0.5319645", "0.5318365", "0.53176665", "0.5315707", "0.5311472", "0.530701", "0.5306162", "0.530597", "0.52844286", "0.5272839" ]
0.6510131
1
Export this object in ASCII format to the PrintWriter passed in.
public void exportTo(PrintWriter pw, Animator animator) { // 1. write out the info contained in the ancestor // note: this ends without a space super.exportTo(pw, animator); Put put = (Put) animator; // 2. write out the new cell content pw.print(" entering \""); pw.print(PTText.escapeText(put.getContent())); // 3. write out the cell number pw.print("\" into cell "); pw.print(put.getCell()); // 5. write out the used IDs int[] IDs = put.exportIDs(); pw.print(" using IDs "); pw.print(IDs[0]); pw.print(" "); pw.println(IDs[1]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeOut(PrintWriter pw){}", "protected void print(Object s) throws IOException {\n out.write(Convert.escapeUnicode(s.toString()));\n }", "public void serialise(java.io.PrintWriter pw) \n throws IOException {\n serialise(new StreamResult(pw));\n }", "void setOpp(PrintWriter out_opp){ this.out_opp = out_opp; }", "public ASCIIOutputStream(OutputStream out) {\n super(out);\n }", "public void print(Object o) throws IOException {\n\t\tfor (char c: String.valueOf(o).toCharArray()) outputStream.write(c);\n\t}", "@Override\r\n\t\t\tpublic void print() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void print() {\n\t\t\t\t\n\t\t\t}", "public void printer() throws Exception{\n File outputFile = new File(\"output.txt\");\n FileOutputStream is = new FileOutputStream(outputFile);\n OutputStreamWriter osw = new OutputStreamWriter(is);\n Writer w = new BufferedWriter(osw);\n w.write(this.result());\n w.close();\n }", "public void writeToFile(PrintWriter ofile1)\n {\n if(ofile1 != null)\n {\n ofile1.println(this.plainDataToString());\n }\n \n return;\n \n }", "@Override\n\t\tpublic void print() {\n\n\t\t}", "@Override\r\n public void display(PrintWriter out) {\r\n if (this.nrBasic > 0) {\r\n out.println(\"Basic\");\r\n } else {\r\n super.display(out);\r\n }\r\n }", "public abstract void write(PrintWriter out)\n throws IOException;", "@Override\n\tpublic void printToFile() {\n\t\t\n\t}", "public HexDumpOutputStream(PrintWriter out)\n {\n this(out, ' ');\n }", "public void output(PrintWriter p) {\n if (compositions == null) {\n p.println(this);\n } else {\n compositions.stream().forEach(p::println);\n }\n }", "public void writeOutput()\n\t{\n\t\tSystem.out.println(this.toString());\n\t}", "public String toString() { \r\n\t\tif(sw!=null) { return sw.toString(); } \r\n\t\telse { return \"AsciiWriter \"+wr; }\r\n\t}", "public void println(Object o) throws IOException {\n\t\tprint(o);\n\t\toutputStream.write('\\n');\n\t}", "public String print(){\r\n\t\t\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.companyName, \r\n\t\t\t\tthis.numberOfRailCars, \r\n\t\t\t\tthis.destinationCity);\r\n\t}", "@Override\r\n\tpublic void print() {\n\t}", "public abstract void saveToFile(PrintWriter out);", "@Override\n\tpublic void print() {\n\n\t}", "@Override\n public void println ()\n {\n if (text != null)\n {\n text.append (Out.NL);\n col = 0;\n }\n else\n super.println ();\n }", "@Override\n\tpublic void print() {\n\t\t\n\t}", "@Override\r\n\tpublic void write() {\n\t\t\r\n\t}", "public void print(BufferedWriter bw)\n\t{\n\n\t String s = toString()+\"\\n\";\n\t\ttry\n\t\t{\n\t\t\tbw.write(s);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "public String write() {\n return \"gyermek \" + name + \" \" + nem.toString() + \" \" + age + \" \" + number + \" \" + money + \" \" + father + \" \" + mother;\n }", "public String print(){\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.trackNumber, \r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.numRailCars, \r\n\t\t\t\tthis.destCity);\r\n\t\t}", "@Override\r\n\tpublic void writeRents() {\n\t\t\r\n\t}", "public synchronized String print() {\r\n return super.print();\r\n }", "@Override\n\tpublic void print() {\n\t\tdecoratedPrinter.print();\n\t}", "public void print() {\n btprint(c);\n }", "public void print(Object o) {\n\t\tsynchronized (out) {\n\t\t\tout.print(o);\n\t\t\tout.flush();\n\t\t}\n\t}", "public String getWriterContent() throws UnsupportedEncodingException {\n if (printWriter == null) {\n return null;\n }\n printWriter.flush();\n return baos.toString(\"UTF-8\");\n }", "public void dump(PrintWriter pw) {\n dump(pw, true);\n }", "private void outHex(){\n\t\tSystem.out.println(binary);\n\t\tpw.println(binary);\n\t\t\n\t}", "public String toString() {\r\n try {\r\n flush();\r\n } catch (IOException ioe) {\r\n // won't happen...\r\n }\r\n sw.flush();\r\n return sw.toString();\r\n }", "public void print() {\n\t\tPrinter.print(doPrint());\n\t}", "public void flush() throws IOException {\n mPrintWriter.flush();\n }", "public void print() {\n\t\tSystem.out.println(toString());\n\t}", "@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}", "private static void writeToOrder() throws IOException {\n FileWriter write = new FileWriter(path5, append);\n PrintWriter print_line = new PrintWriter(write);\n ArrayList<Order> orders = Inventory.getOrderHistory();\n for (int i = 0; i < orders.size(); i++) {\n Order o = (Order) orders.get(i);\n\n String orderNum = String.valueOf(o.getOrderNumber());\n String UPC = String.valueOf(o.getUpc());\n String productName = o.getProductName();\n String distName = o.getDistributorName();\n String cost = String.valueOf(o.getCost());\n String quantity = String.valueOf(o.getQuantity());\n String isProcesed = String.valueOf(o.isProcessed());\n\n textLine =\n orderNum + \", \" + UPC + \", \" + quantity + \",\" + productName + \", \" + distName + \", \" + cost\n + \", \" + isProcesed;\n print_line.printf(\"%s\" + \"%n\", textLine);\n\n }\n print_line.close();\n\n }", "public void print() {\n System.out.println(this.toString());\n }", "public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}", "@Override\n public void print() {\n }", "@Override\n public void print() {\n System.out.println(\"VIn:- \"+getVehicalIndentificationNumber());\n System.out.println(\"Description:- \"+getVechicalDiscription());\n System.out.println(\"Manufacturer:- \"+getManufacturerName());\n System.out.println(\"isSelfDrive:- \"+getSelfDrive());\n System.out.println(\"isInsured:- \"+getInsured());\n System.out.println(\"insuranceProviderName:- \"+getInsuranceProviderName());\n System.out.println(\"NumberOfSeat:- \"+getNoOfSeat());\n System.out.println(\"FuelType:- \"+getFuelType());\n System.out.println(\"BaseRate:- \"+getBaseRate());\n System.out.println(\"RatePerKm:- \"+getRatePerKm());\n System.out.println(\"VehicleType:- \"+getVehicleType());\n System.out.println(\"Color:- \"+getColor());\n }", "@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "@Override\n public void write() {\n\n }", "public void print() {\n \tfor (int i=0; i < this.table.height; i++) {\n \t\tfor (int j=0; j < this.table.width; j++) {\n \t\t\tString tmp = \"e\";\n \t\t\tif(this.table.field[i][j].head != null) {\n \t\t\t\ttmp = \"\";\n \t\t\t\tswitch (this.table.field[i][j].head.direction) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\ttmp+=\"^\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\ttmp+=\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\ttmp+=\"V\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\ttmp+=\"<\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n \t\t\t}\n \t\t\telse if(this.table.field[i][j].obj != null) {\n \t\t\t\ttmp = this.table.field[i][j].obj.name;\n \t\t\t}\n \t\t\tSystem.out.print(\" \" + tmp);\n \t\t}\n \t\t\tSystem.out.println(\"\");\n \t}\n }", "public void print() {\r\n\t\tSystem.out.print(getUID());\r\n\t\tSystem.out.print(getTITLE());\r\n\t\tSystem.out.print(getNOOFCOPIES());\r\n\t}", "@Override\n\tprotected void print() {\n\t\tSystem.out.println(\"-----------\"+this.getName()+\"\");\n\t}", "private void print(String toBeWritten)\n\t\t{ pw.print(getIndentString() + toBeWritten); }", "public void SerialWriteFile() {\r\n\r\n PrintWriter pwrite = null;\r\n File fileObject = new File(getName());\r\n QuizPlayer q = new QuizPlayer(getName(), getNickname(), getTotalScore());\r\n\r\n try {\r\n ObjectOutputStream outputStream =\r\n new ObjectOutputStream(new FileOutputStream(fileObject));\r\n\r\n outputStream.writeObject(q); //Writes the object to the serialized file.\r\n outputStream.close();\r\n\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"Problem with file output.\");\r\n }\r\n\r\n }", "public EnumeratedSaveCommand(PrintWriter writer) {\n this.writer = writer;\n }", "public PrintWriter getPrintWriter()\n {\n return pr;\n }", "protected abstract void toXml(PrintWriter result);", "public Inatnum print() {\n return this;}", "public void print() {\r\n\t\t System.out.println(toString());\r\n\t }", "@Override\n public String toFile() {\n String isDoneString = (isDone) ? \"1\" : \"0\";\n return getDescription() + \" | \" + getGrade() + \" | \" + getMc() + \" | \" + getSemester() + \" | \" + isDoneString;\n }", "@Override\n public void write() throws IOException\n {\n super.write();//Chamada para metodo da superclasse ajusta ponteiro para \n //gravacao sequencial apos posicao do ultimo registro\n //gravado\n writeString(id, TOPIC_ID_STRLENGTH);\n writeString(title, TITLE_STRLENGTH);\n writeShort(rank);\n }", "public void print() {\n\t\tSystem.out.println(\"ONOMA IDIOKTITH: \" + fname);\n\t\tSystem.out.println(\"EPWNYMO IDIOKTITH: \" + lname);\n\t\tSystem.out.println(\"DIEUTHINSH FARMAKEIOU: \" + address);\n\t\tSystem.out.println(\"THLEFWNO FARMAKEIOU: \" + telephone);\n\t\tSystem.out.println();\n\t}", "@Override\n\tpublic String print(CliPrinter printer) {\n\t\treturn printer.printTProductCards(this);\n\t}", "public void print(){\r\n System.out.println(toString());\r\n }", "void printObjectMethods(PrintWriter out) {\n\n\t\t// Print Object class constructor\n\t\tout.println(\"define %class.Object* @_ZN6ObjectC2EV( %class.Object* %self ) noreturn {\\n\"\n\t\t\t+ \"entry:\\n\"\n\t\t\t+ \"\\t%self.addr = alloca %class.Object*\\n\"\n\t\t\t+ \"\\tstore %class.Object* %self, %class.Object** %self.addr\\n\"\n\t\t\t+ \"\\t%self1 = load %class.Object*, %class.Object** %self.addr\\n\"\n\t\t\t+ \"\\tret %class.Object* %self1\\n\"\n\t\t\t+\"}\\n\");\n\n\t\tout.println(\"define %class.Object* @_ZN6Object5abort( %class.Object* %self ) noreturn {\\n\"\n\t\t\t+ \"entry:\\n\"\n\t\t\t+ \"\\tcall void @exit( i32 1 )\\n\"\n\t\t\t+ \"\\tret %class.Object* null\\n\"\n\t\t\t+ \"}\\n\");\n\t}", "public void exportTo(PrintWriter pw, Animator animator) {\n\t\t// 1. write out the info contained in the ancestor\n\t\t// note: this ends without a space\n\t\tsuper.exportTo(pw, animator);\n\n\t\tTimedAnimator ta = (TimedAnimator) animator;\n\t\tint duration = ta.getDuration(), offset = ta.getOffset();\n\t\tboolean unitIsTicks = ta.isUnitIsTicks();\n\n\t\t// 2. print out the space\n\t\tpw.print(\" by \");\n\n\t\t// 3. print out the method used\n\t\tpw.print('\\\"');\n\t\tpw.print(ta.getMethod());\n\t\tpw.print('\\\"');\n\n\t\t// 4. write out the offset\n\t\tif (offset != 0) {\n\t\t\tpw.print(\" timed starting after \");\n\t\t\tpw.print(offset);\n\n\t\t\tpw.print((unitIsTicks) ? \" ticks\" : \" ms\");\n\t\t}\n\n\t\t// 5. write out the duration\n\t\tif (duration != 0) {\n\t\t\tpw.print(\" within \");\n\t\t\tpw.print(duration);\n\n\t\t\t// 6. write out the unit\n\t\t\tif (offset != 0 || duration != 0)\n\t\t\t\tpw.print((unitIsTicks) ? \" ticks\" : \" ms\");\n\t\t}\n\t}", "public void print() {\n System.out.println(toString());\n }", "public void endl(){\n putc('\\n');\n }", "public Binary(PrintWriter pw){\n\t\tthis.pw = pw;\n\t\tbinary = null;\n\t}", "void write();", "public void close() {\n this.output.flush();\n this.output.close();\n }", "@Override\n\tpublic void print() {\n\t\tsuper.print();\n\t\tSystem.out.println(\"ÎÒÊÇÒ»Ö»\"+this.getStrain()+\"È®.\");\n\t}", "@Override\n public String toPrintToFile() {\n return \"[T]\" + super.toString();\n }", "@Override\n\t\tpublic void close() throws IOException {\n\t\t\tout.close();\n\t\t}", "public void printContents(){\n System.out.println(this);\n System.out.println(\"Occupied by: \" + pieceAtVertex + \"\\n Neighbors:\" + neighbors);\n }", "public void outputToStream(PrintWriter dos) throws IOException {\n dos.println(fileName);\n if (lineNos != null) {\n dos.println(lineNos.length);\n for (int i = 0; i < lineNos.length; ++i) {\n dos.println(lineNos[i]);\n }\n }\n }", "public String write() {\r\n String s = this.login;\r\n s += \"\\t\" + this.password;\r\n if (calendar != null) {\r\n s += \"\\t\" + this.calendar.toString();\r\n }\r\n else{\r\n s += \"\\t\" + \"\";\r\n }\r\n s += \"\\t\" + order.getQouta().toString();\r\n return s;\r\n }", "public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}", "public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }", "public void close() throws IOException {\n write(\"\\n\");\n writer.close();\n }", "public static void main(String[] args) throws IOException {\n PrintWriter outputFile = new PrintWriter(\"ResultFile.txt\");\n\n outputFile.println(\"Line 1\");\n outputFile.println(\"Line 2\");\n outputFile.println(\"Line 3\");\n outputFile.println(\"Line 4\");\n\n\n outputFile.close();\n\n }", "@Override\n\tpublic void writeReadableDiffereces() {\n\t\t\n\t\tPrintWriter printWriter = null; \n\t\t\n\t\tString filename = \"AGB-Versions-Aenderungen2.txt\";\n\t\t\n\t\t//System.out.println(\"Schreibe Textdatei mit Aenderungen: \");\n\t\t\n\t\ttry \n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tprintWriter = new PrintWriter(new FileWriter(filename));\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}\n\t\t\t\n\t\t\tIterator iter = readableDifferences.iterator();\n\t\t\t\n\t\t\twhile (iter.hasNext())\n\t\t\t{\n\t\t\t\t printWriter.println(iter.next()+LINE_SEPARATOR);\n\t\t\t}\n } \n\t\tfinally \n\t\t{\n if(printWriter != null) printWriter.close();\n } \n\t}", "public abstract void dump(PrintWriter pw, boolean skipEmptyComponents);", "public String toString() {\n if (writer != null) {\n writer.close();\n return writer.toString();\n }\n else\n if (blockIn != null) {\n return blockIn;\n } else {\n return \"\";\n }\n }", "public String print() {\n\t\tString offID = getID();\n\t\tString offName = getName();\n\t\tint offAge = getAge();\n\t\tString offState = getState();\n\t\tString data = String.format(\"ID: %-15s \\t Name: %-35s \\t Age: %-15s \\t State: %s\", offID, offName, offAge, offState);\n\t\treturn data;\n\t}", "public String print();", "public void close() {\n if (this.out == null) {\n return;\n }\n try {\n this.out.flush();\n this.out.close();\n this.out = null;\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void feed() throws IOException {\n // 下面指令为打印完成后自动走纸\n writer.write(27);\n writer.write(100);\n writer.write(4);\n writer.write(10);\n\n writer.flush();\n\n }", "@Override\n public PrintWriter getWriter() throws IOException {\n return this.writer;\n }", "public void output(IndentedWriter out) \n {\n }", "public void writeObject(RandomAccessFile arq) throws IOException{\n byte[] dados = this.getByteArray();\n arq.writeChar(' ');\n arq.writeShort(dados.length);\n arq.write(dados);\n }", "private void out(Object obj) {\r\n\t\tSystem.out.println(deb + obj.toString());\r\n\t}", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }" ]
[ "0.6498954", "0.6365698", "0.6250648", "0.6213781", "0.6198134", "0.6194923", "0.60931265", "0.60774046", "0.6057223", "0.6055447", "0.60399306", "0.60012704", "0.597641", "0.5960437", "0.59601235", "0.590486", "0.58944774", "0.58765715", "0.58688444", "0.58635396", "0.578652", "0.5774888", "0.5772446", "0.57592005", "0.5749626", "0.5714135", "0.5706019", "0.57021993", "0.5701479", "0.5691419", "0.56681484", "0.5663057", "0.56627876", "0.5633556", "0.5626401", "0.5619079", "0.5614376", "0.5608914", "0.5608526", "0.5597849", "0.55968696", "0.5594392", "0.5579194", "0.55753714", "0.5575172", "0.5570317", "0.5560971", "0.5556536", "0.555595", "0.55542487", "0.55491644", "0.5548369", "0.55472547", "0.5541987", "0.553994", "0.55284536", "0.55278665", "0.551688", "0.5504052", "0.5502024", "0.5482357", "0.5481278", "0.54804754", "0.5479849", "0.54653805", "0.54647034", "0.54633725", "0.5460886", "0.5456299", "0.5444036", "0.5437046", "0.54278344", "0.5426687", "0.5426029", "0.54257286", "0.5423608", "0.54163885", "0.5398727", "0.5397463", "0.5388334", "0.5385631", "0.53836524", "0.5379123", "0.53727454", "0.5372036", "0.535759", "0.535358", "0.53510135", "0.5340321", "0.53403", "0.5332893", "0.5324717", "0.5323323", "0.53210795", "0.53210795", "0.53210795", "0.53210795", "0.53210795", "0.53210795", "0.53210795" ]
0.610401
6
not public because only want to use between classes of this package
ForwardingCalendar(CalendarImplementation cal) { this.cal = cal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "private MApi() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Rekenhulp()\n\t{\n\t}", "private Util() { }", "private OMUtil() { }", "@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 }", "private JacobUtils() {}", "@Override\n protected void prot() {\n }", "@Override\n void init() {\n }", "protected Doodler() {\n\t}", "private NativeSupport() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n public void init() {\n }", "@Override\n public void init() {\n\n }", "private BuilderUtils() {}", "private Infer() {\n\n }", "@Override\n public void init() {}", "@Override\r\n\tpublic void init() {}", "private Utils() {\n\t}", "private Utils() {\n\t}", "private Dex2JarProxy() {\r\n\t}", "private GraphFileManager() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private AcceleoLibrariesEclipseUtil() {\n \t\t// hides constructor\n \t}", "private CollectionUtils() {\n\n\t}", "private LOCFacade() {\r\n\r\n\t}", "private void init() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private XhtmlUtils()\n\t{\n\t}", "private ReportGenerationUtil() {\n\t\t\n\t}", "protected void initialize() {}", "protected void initialize() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "Object getClass_();", "Object getClass_();", "private SparkseeUtils()\n {\n /*\n * Intentionally left empty.\n */\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}", "@Override\n protected void initialize() \n {\n \n }", "Reproducible newInstance();", "private PluginsInternal() {}", "private ExpressionTools(){\n\t\t\n\t}", "private ProcessorUtils() { }", "private CommonMethods() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private SolutionsPackage() {}", "private CheckingTools() {\r\n super();\r\n }", "private TMCourse() {\n\t}", "private UtilsCache() {\n\t\tsuper();\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public abstract String use();", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "private Mgr(){\r\n\t}", "private CanonizeSource() {}", "private void init() {\n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "protected LibReference() {\n\t}", "private Util() {\n }", "private ClassUtil() {}", "@Override\n\t\tpublic void init() {\n\t\t}", "private RdfFormatUtils() {\n }", "private FaceConversionUtil() {\n\n\t}", "protected void _init(){}", "private PluginAPI() {\r\n\t\tsuper();\r\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "private StickFactory() {\n\t}", "private SnapshotUtils() {\r\n\t}", "private DrillCalciteWrapperUtility() {\n }", "private NaturePackage() {}", "private Mongopool() {\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}", "private GardenerStrategyHelpers() {\n }", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\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 public void init() {\n }" ]
[ "0.67965955", "0.6347045", "0.6258892", "0.62586105", "0.62586105", "0.62586105", "0.62586105", "0.6235993", "0.6220103", "0.62184864", "0.6191768", "0.6191768", "0.6191768", "0.6191768", "0.6191768", "0.6191768", "0.61893284", "0.6141262", "0.6140419", "0.61390716", "0.6106465", "0.6102096", "0.6046694", "0.60366875", "0.6018716", "0.6012674", "0.6011463", "0.6010102", "0.60023683", "0.60023683", "0.59916055", "0.59840083", "0.5980616", "0.59779114", "0.5975717", "0.59687173", "0.5957985", "0.5951957", "0.5940513", "0.5933699", "0.59300715", "0.5921573", "0.59158444", "0.59158444", "0.5915779", "0.5909519", "0.59056056", "0.5903804", "0.58972657", "0.58972657", "0.58887774", "0.5875971", "0.5875971", "0.58729047", "0.58718276", "0.5869866", "0.58697677", "0.58525825", "0.5849759", "0.58369493", "0.58369493", "0.5827685", "0.58234847", "0.58217657", "0.5818669", "0.5816501", "0.58061206", "0.58061206", "0.5802921", "0.58011734", "0.5798834", "0.5797911", "0.57953954", "0.5791748", "0.5791748", "0.5791748", "0.57913095", "0.5783237", "0.57764906", "0.5775998", "0.5772985", "0.57693094", "0.57680863", "0.5768015", "0.5767158", "0.576225", "0.57620543", "0.57587683", "0.5754849", "0.575241", "0.57515186", "0.57515186", "0.57515186", "0.57515186", "0.57515186", "0.57511955", "0.57506907", "0.57457817", "0.57457817", "0.57457817", "0.57437533" ]
0.0
-1
CalendarImplementation.compareTo() will be called
public int compareTo(Calendar anotherCalendar) { return cal.compareTo(anotherCalendar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int compareTo(Calendar anotherCalendar) {\n return compareDays(super.getCalendarImplementation().getFirstDayOfWeek(), anotherCalendar.getFirstDayOfWeek());\n }", "@Override\n public int compareTo(Date ARG) {\n if (year < ARG.year)\n {\n \treturn -1;\n }\n else if( year > ARG.year)\n {\n \treturn 1;\n }\n \n else{\n \tif (dayOfMonth < ARG.dayOfMonth)\n \t{\n \t\treturn -1; \n \t\t\n \t}\n \telse if (dayOfMonth > ARG.dayOfMonth)\n \t{\n \t\treturn 1; \n \t}\n \telse\n \t{\n \t\tif (dayOfMonth < ARG.dayOfMonth)\n \t\t{\n \t\t\treturn -1;\n \t\t}\n \t\telse if(dayOfMonth > ARG.dayOfMonth)\n \t\t{\n \t\t\treturn 1;\n \t\t}\n \t\telse\n \t\t{\n \t\t\treturn 0; \n \t\t}\n \t}\n \t\n } \t\n }", "@Override\n public int compareTo(Date that) {\n if (this.year < that.year) return -1;\n if (this.year > that.year) return 1;\n if (this.month < that.month) return -1;\n if (this.month > that.month) return 1;\n if (this.day < that.day) return -1;\n if (this.day > that.day) return 1;\n return 0;\n }", "@Override\n public int compareTo(AbstractAppointment o) {\n try {\n if (this.beginTime == null) {\n throw new NullPointerException(\"No start time to compare\");\n }\n if (o.getBeginTime() == null) {\n throw new NullPointerException(\"No begin time to compare\");\n }\n long diff = this.beginTime.getTime()-o.getBeginTime().getTime();\n\n if (diff > 0) {\n return 1;\n }\n if (diff < 0) {\n return -1;\n }\n if (diff == 0) {\n long enddiff = this.endTime.getTime()-o.getEndTime().getTime();\n\n if(enddiff >0){\n return 1;\n }\n if(enddiff<0){\n return -1;\n }\n if(enddiff == 0){\n int descriptiondiff = this.description.compareTo(o.getDescription());\n if(descriptiondiff >0){\n return 1;\n }\n if(descriptiondiff<0){\n return -1;\n }\n }\n }\n }\n catch(Exception ex){\n System.out.println(ex.getMessage());\n System.exit(1);\n }\n return 0;\n }", "public int compareTo(Object obj) {\r\n return compareTo((Day) obj);\r\n }", "@Override\n public int compareTo(Booking other) {\n // Push new on top\n other.updateNewQuestion(); // update NEW button\n this.updateNewQuestion();\n\n\n String[] arr1 = other.time.split(\":\");\n String[] arr2 = this.time.split(\":\");\n// Date thisDate = new Date(this.getCalendarYear(), this.getCalendarMonth(), this.getCalendarDay(), Integer.getInteger(arr2[0]), Integer.getInteger(arr2[1]));\n// if (this.newQuestion != other.newQuestion) {\n// return this.newQuestion ? 1 : -1; // this is the winner\n// }\n\n\n if (this.calendarYear == other.calendarYear) {\n if (this.calendarMonth == other.calendarMonth) {\n if (this.calendarDay == other.calendarDay) {\n if (Integer.parseInt(arr2[0]) == Integer.parseInt(arr1[0])) { // hour\n if (Integer.parseInt(arr2[1]) == Integer.parseInt(arr1[1])) { // minute\n return 0;\n } else {\n return Integer.parseInt(arr1[1]) > Integer.parseInt(arr2[1]) ? -1 : 1;\n }\n } else {\n return Integer.parseInt(arr1[0]) > Integer.parseInt(arr2[0]) ? -1 : 1;\n }\n }\n else\n return other.calendarDay > this.calendarDay ? -1 : 1;\n }\n else\n return other.calendarMonth > this.calendarMonth ? -1 : 1;\n }\n else\n return other.calendarYear > this.calendarYear ? -1 : 1;\n\n\n// if (this.echo == other.echo) {\n// if (other.calendarMonth == this.calendarMonth) {\n// return 0;\n// }\n// return other.calendarMonth > this.calendarMonth ? -1 : 1;\n// }\n// return this.echo - other.echo;\n }", "@Test\n public void compareTo() {\n assertTrue(DATE_A.compareTo(DATE_A) == 0);\n\n // testing recess week and reading week.\n assertTrue(DATE_READING.compareTo(DATE_AFTER_READING) == -1);\n assertTrue(DATE_RECESS.compareTo(DATE_AFTER_RECESS) == -1);\n }", "@Override\n public int compareTo(Event e) {\n\n if(this.getAllDay() && !e.getAllDay()){\n return -1;\n }\n\n else if(e.getAllDay() && !this.getAllDay()){\n return 1;\n }\n\n else if(this.getAllDay() && e.getAllDay()){\n return 0;\n }\n\n else {\n int event1 = parseTime(this.getStartTime());\n int event2 = parseTime(e.getStartTime());\n\n if(event1 - event2 < 0){\n return -1;\n }\n\n else if(event1 - event2 > 0){\n return 1;\n }\n\n else {\n return 0;\n }\n }\n }", "@Override\r\n\t public int compareTo(Interval o) {\n\r\n\t SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t try{\r\n\t Date startDate = sdf.parse(start);\r\n\t Date endDate = sdf.parse(end);\r\n\t Date pstartDate = sdf.parse(o.start);\r\n\t Date pendDate = sdf.parse(o.end);\r\n\r\n\t return startDate.compareTo(pstartDate);\r\n\r\n\t }catch(Exception ex){\r\n\t ex.printStackTrace();\r\n\t }\r\n\t return 0;\r\n\t }", "public int compareTo(Date212 other) { //compareTo method\n int result = 00; //intialize int return value.\n Date date1 = new Date(), date2 = new Date(); //initalize\n\nSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n try {\n date1 = sdf.parse(full_Date); //The object calling this method.\n date2 = sdf.parse(other.full_Date); //Other date212 object being passed in.\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n //Try-catch block for parsing & formatting dates.\n \n // System.out.println(\"date1 : \" + sdf.format(date1));\n // System.out.println(\"date2 : \" + sdf.format(date2));\n\n Calendar cal1 = Calendar.getInstance(); \n Calendar cal2 = Calendar.getInstance();\n cal1.setTime(date1);\n cal2.setTime(date2);\n /*\n Use of the Calendar library and methods to compare the dates.\n */\n\n\n //cal1 is the object calling this method\n //cal2 is the object passed in.\n if (cal1.after(cal2)) { \n // System.out.println(\"Date1 is after Date2\");\n result = 1;\n }\n\n if (cal1.before(cal2)) {\n // System.out.println(\"Date1 is before Date2\");\n result = -1;\n }\n\n if (cal1.equals(cal2)) {\n System.out.println(\"Date1 is equal Date2\");\n result = 0;\n }\n return result; //Returns what the if blocks made result to be.\n }", "@Override\n\tpublic int compareTo(Meeting meeting){\n\t\tif(this.getDate().equals(meeting.getDate())){\n\t\t\treturn 0;\n\t\t}\n\t\telse if(this.getDate().before(meeting.getDate())){\n\t\t\treturn -1;\n\t\t}\n\t\telse{\n\t\t\treturn 1;\n\t\t}\n\t}", "public int compareTo(Group3Date that) {\n\t\t\tif (this.year < that.year) return -1;\n\t\t\tif (this.year > that.year) return +1;\n\t\t\tif (this.month < that.month) return -1;\n\t\t\tif (this.month > that.month) return +1;\n\t\t\tif (this.day < that.day) return -1;\n\t\t\tif (this.day > that.day) return +1;\n\t\t\treturn 0;\n\t\t}", "@Override\n public int compareTo(Date date) {\n if (this.year > date.year) {\n return 1;\n } else if (this.year < date.year) {\n return -1;\n } else if (this.year == date.year) {\n if (this.month > date.month) {\n return 1;\n } else if (this.month < date.month) {\n return -1;\n } else if (this.month == date.month) {\n if (this.day > date.day) {\n return 1;\n } else if (this.day < date.day) {\n return -1;\n } else if (this.day == date.day) {\n return 0;\n }\n }\n }\n return 0;\n }", "@Override\n public int compareTo(SmartDate o) {\n return this.date.compareTo(o.date);\n }", "@Override\n public int compare(final Availability o1, final Availability o2) {\n DateFormat f = new SimpleDateFormat(\"dd-MM-yyyy\");\n try {\n return f.parse(o1.getDate()).compareTo(f.parse(o2.getDate()));\n } catch (ParseException e) {\n throw new IllegalArgumentException(e);\n }\n }", "@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn o1.fechaHora.compareTo(o2.fechaHora);\r\n\t\t\t\t}", "@Test\n public void compareToWithMainDateInThePast(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.compareTo(new Date(31,Month.december,1970)),-1);\n }", "@Test\n public void testCompareTo() {\n System.out.println(\"compareTo\");\n Conductor o = null;\n Conductor instance = null;\n int expResult = 0;\n int result = instance.compareTo(o);\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 compareTo(Date b) {\r\n\t\tif (year != b.year)\r\n\t\t\treturn year - b.year;\r\n\t\tif (month != b.month)\r\n\t\t\treturn month - b.month;\r\n\t\treturn day - b.day;\r\n\t}", "int compare( IDateTimeValueType rhs );", "@Test\r\n public void testCompareTo1() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertTrue(d1.compareTo(d2) > 0);\r\n }", "@Override\n public int compareTo(final Month obj)\n {\n Objects.requireNonNull(obj, \"obj\"); //$NON-NLS-1$\n return Integer.compare(this.month, obj.month);\n }", "@Override\n public int compareTo(MetalNode arg0) {\n\n int iResult=0;\n\n if (this.getDate()==arg0.getDate())\n {\n iResult=0;\n }\n else if (this.getDate()>arg0.getDate())\n {\n iResult=1;\n }\n else if (this.getDate()<arg0.getDate())\n {\n iResult=-1;\n }\n\n\n return iResult;\n }", "@Override\r\n public int compareTo(HISDate date) {\r\n int cmpResult = -11111; // ERROR\r\n try {\r\n cmpResult = this.compare(date);\r\n } catch (Exception e) {\r\n logger.error(\"compareTo(): Ungültiges Datum: \" + date);\r\n cmpResult = -11111;\r\n }\r\n return cmpResult;\r\n }", "public static void main(String[] args) {\nDate d1 = new Date( 2019, 02, 22);\nSystem.out.println(d1);\n\n\nDate d2= new Date();\nSystem.out.println(d2);\nDate d3 = new Date(2000,11,11);\nSystem.out.println(d3);\nint a = d1.compareTo(d3);\nSystem.out.println(a);\nboolean b = d1.after(d2);\n\tSystem.out.println(b);\n\t}", "@Test\r\n public void testCompareTo2() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertFalse(d1.compareTo(d2) < 0);\r\n }", "@Override\r\n\t\tpublic int compareTo(Event compareEvent){\r\n\t\t\t\r\n\t\t\tint compareQuantity = ((Event)compareEvent).date;\r\n\t\t\t//ascending order\r\n\t\t\treturn this.date-compareQuantity;\r\n\t\t\t//descending order\r\n\t\t\t//return compareQuantity -this.quantity;\r\n\t\t}", "@Override\r\n\tpublic int compareTo(cricketSystem arg) {\n\t\treturn 0;\r\n\t}", "public static void before1(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,5);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==5);\n assert(ret0==false);\n System.out.println(ret0);\n }", "@Test\r\n public void testCompareTo3() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"3/1/2013\");\r\n assertTrue(d1.compareTo(d2) == 0);\r\n }", "@Override\n\tpublic int compareTo(Object another) {\n\t\treturn this.code - ((Semester) another).getCode();\n\t}", "@Override\r\n public int compareTo(TennisMatch match) {\r\n if(getDateYear() < match.getDateYear()) {\r\n return 1;\r\n } else if(getDateYear() == match.getDateYear()\r\n && getDateMonth() < match.getDateMonth()) {\r\n return 1;\r\n } else if(getDateYear() == match.getDateYear()\r\n && getDateMonth() == match.getDateMonth()\r\n && getDateDay() < match.getDateDay()) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n }", "public static void before2(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,4);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==4);\n assert(ret0==false);\n System.out.println(ret0);\n }", "@Override\n public int compareTo(final Car o) {\n return Integer.compare(this.productionYear,o.getProductionYear());\n }", "public int compare(TimeEntry t1, TimeEntry t2) {\n\t\t\t\t\treturn t1.getTime().compareTo(t2.getTime());\n\t\t\t\t//return 1;\n\t\t\t }", "@Override\n public int compareTo(Object o) {\n Run run = (Run)o;\n if(runDate.compareTo(run.getRunDate()) == 0){ \n return getName().compareTo(run.getName());\n }else{\n return run.getRunDate().compareTo(getRunDate());\n }\n }", "public static void before0(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,6);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==6);\n assert(ret0==true);\n System.out.println(ret0);\n }", "public abstract int compareTo(HistoryEntry aThat);", "private int compareTo(Day ds) {\r\n if (this == ds) {\r\n return 0;\r\n }\r\n return (this.index < ds.index) ? (-1) : (+1);\r\n }", "public final int compareTo(Object anotherDateUtil)\n {\n return this.ordinal - ((DateUtil) anotherDateUtil).ordinal;\n }", "@Test\n public void testCompareTo() throws ParseException {\n System.out.println(\"compareTo\");\n \n Student instance = new Student(9, \"Gabriela\", \"04567888\", \"[email protected]\", 8, \"start Street\", \"SouthWest\", \"SA\", \"5089\", \"Cert4\", new SimpleDateFormat(\"mm/dd/yyyy\").parse(\"10/17/2009\"), new SimpleDateFormat(\"mm/dd/yyyy\").parse(\"10/17/2009\"), \"1\", \"Awaited\", new Course(\"Cert4\", \"Certificate 4\", 250));\n int expResult = 0;\n int result = instance.compareTo(student);\n assertEquals(expResult, result);\n \n }", "default int compareTo(Interval o) {\n if (getStart() > o.getStart()) {\n return 1;\n } else if (getStart() < o.getStart()) {\n return -1;\n } else if (getEnd() > o.getEnd()) {\n return 1;\n } else if (getEnd() < o.getEnd()) {\n return -1;\n } else {\n return 0;\n }\n }", "@Override\n\t\tpublic int compareTo(Event other) {\n\t\t\tif (this.time < other.time + 1.0e-9) return -1;\n\t\t\telse if (this.time > other.time - 1.0e-9) return 1;\n\t\t\telse {\n\t\t\t\tif(this.active > other.active) return 1;\n\t\t\t\telse return -1;\n\t\t\t}\n\t\t}", "public int compareTo(Event other){\n return other.timestamp.compareTo(timestamp);\n }", "@Override\n public int compare(FIN_PaymentScheduleDetail o1, FIN_PaymentScheduleDetail o2) {\n return o1.getAmount().compareTo(o2.getAmount());\n }", "@Override\r\n\tpublic int compareTo(RSS o) {\r\n\t\treturn o.getCreatedDate().compareTo(this.getCreatedDate());\r\n\t}", "public void testCalendar() {\n Calendar cal = rootBlog.getCalendar();\n assertEquals(rootBlog.getTimeZone(), cal.getTimeZone());\n }", "private int sameDateCompare(Deadline other) {\n if (!this.hasTime() && other.hasTime()) {\n return -1;\n } else if (this.hasTime() && !other.hasTime()) {\n return 1;\n } else if (this.hasTime() && other.hasTime()) {\n TimeWrapper thisTimeWrapper = this.getTime();\n TimeWrapper otherTimeWrapper = other.getTime();\n return thisTimeWrapper.compareTo(otherTimeWrapper);\n }\n return 0;\n }", "@Override\n\t\t\t\tpublic int compare(PackageSubscription o1, PackageSubscription o2) {\n\t\t\t\t\treturn o2.getEndDate().compareTo(o1.getEndDate());\n\t\t\t\t}", "public int compareTo(LessonDateTime other) {\n if (equals(other)) {\n return 0;\n } else {\n LocalDate currentDate = LocalDate.now(DEFAULT_TIME_ZONE);\n DayOfWeek currentWeekday = DayOfWeek.getLessonWeekDay(currentDate);\n Integer currentToThis = DayOfWeek.distanceBetweenTwoDay(currentWeekday, getWeekday());\n Integer currentToOther = DayOfWeek.distanceBetweenTwoDay(currentWeekday, other.getWeekday());\n int result = currentToThis.compareTo(currentToOther);\n return result == 0\n ? getStartTime().compareTo(other.getStartTime())\n : result;\n }\n }", "@Override\n\tpublic int compareTo(Object o) {\n\t\tInterval i = (Interval) o;\n\t\tif (i.end < this.end)\n\t\t\treturn 1;\n\t\telse if (i.end > this.end)\n\t\t\treturn -1;\n\t\telse\n\t\t\treturn 0;\n\t}", "public int compareTo(sun.security.x509.X509CRLEntryImpl r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: sun.security.x509.X509CRLEntryImpl.compareTo(sun.security.x509.X509CRLEntryImpl):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.compareTo(sun.security.x509.X509CRLEntryImpl):int\");\n }", "@Override\r\n\t\tpublic int compareTo(Object o) {\n\t\t\treturn 0;\r\n\t\t}", "public int compareTo(Object arg0)\r\n/* 26: */ {\r\n/* 27:47 */ return 0;\r\n/* 28: */ }", "@Override\r\n\tpublic int compareTo(Match m) {\n\t\tif(this.matchDate.compareTo(m.getMatchDate())==0)\r\n\t\treturn 0;\r\n\t\telse if(this.matchDate.compareTo(m.getMatchDate())>0)\r\n\t\t\treturn +1;\r\n\t\telse\r\n\t\t\treturn -1;\r\n\t}", "public Calendar getArchivalDate();", "@Override\n public int compareTo(Object aThat) {\n if (this == aThat) {\n return 0;\n }\n\n final TagEntry that = (TagEntry) aThat;\n\n if (this.revision != NOREV) {\n return ((Integer) this.revision).compareTo(that.revision);\n }\n assert this.date != null : \"date == null\";\n return this.date.compareTo(that.date);\n }", "@Override\n public int compareTo(Kaizen another) {\n return another.dateModified.compareTo(this.dateModified);\n }", "@Test\r\n public void testCompareTo() {\r\n Articulo art = new Articulo();\r\n art.setCantidadVendidos(3);\r\n articuloPrueba.setCantidadVendidos(3);\r\n int expResult = 0;\r\n int result = art.compareTo(articuloPrueba);\r\n assertEquals(expResult, result);\r\n }", "@Override\n\tpublic int compareTo(Object arg0) {\n\t\treturn this.start - ((liveRange) arg0).start;\n\t}", "@Override\n\t\t\tpublic int compareTo(Object o) {\n\t\t\t\treturn 0;\n\t\t\t}", "public /* bridge */ /* synthetic */ int compareTo(java.lang.Object r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: sun.security.x509.X509CRLEntryImpl.compareTo(java.lang.Object):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.compareTo(java.lang.Object):int\");\n }", "public int compareTo(Object obj)\n {\n if (obj instanceof AbsTime) {\n if (((AbsTime) obj).getValue() < itsValue) {\n return 1;\n }\n if (((AbsTime) obj).getValue() > itsValue) {\n return -1;\n }\n return 0;\n } else {\n System.err.println(\"AbsTime: compareTo: UNKNOWN TYPE!\");\n return -1;\n }\n }", "@Override\r\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\r\n\t}", "public static void main(String[] args) \r\n {\n\t Date date = new Date();\r\n\t System.out.println(date);\r\n\t \r\n\t //comparision of dates\r\n\t /*\r\n\t Return\r\n 1. It returns the value 0 if the argument Date is equal to this Date. \r\n 2. It returns a value less than 0 if this Date is before the Date argument.\r\n 3. It returns a value greater than 0 if this Date is after the Date argument.\r\n\t */\r\n\t Date d=new Date(2021,05,31);\r\n\t System.out.println(d.equals(date));\r\n Date d1=new Date(2021,5,26); \r\n int comparison=d.compareTo(d1); \r\n System.out.println();\r\n System.out.println(\"Your comparison value is : \"+comparison); \r\n }", "boolean hasOrderByDay();", "@Test\n public void testCompareTo () {\n CountDownTimer s1 = new CountDownTimer(5, 59, 00);\n CountDownTimer s2 = new CountDownTimer(6, 01, 00);\n CountDownTimer s3 = new CountDownTimer(5, 50, 20);\n CountDownTimer s4 = new CountDownTimer(\"5:59:00\");\n\n assertTrue(s2.compareTo(s1) > 0);\n assertTrue(s3.compareTo(s1) < 0);\n assertTrue(s1.compareTo(s4) == 0);\n assertTrue(CountDownTimer.compareTo(s2, s4) > 0);\n assertTrue(CountDownTimer.compareTo(s3, s1) < 0);\n assertTrue(CountDownTimer.compareTo(s1, s4) == 0);\n }", "@Override\n\t\tpublic int compareTo(Object arg0) {\n\t\t\treturn 0;\n\t\t}", "@Override\n\tpublic int compare(Movie o1, Movie o2) {if (o1.getYear() > o2.getYear())\n//\t\t\treturn 1;\n//\t\tif (o1.getYear() < o2.getYear()) \n//\t\t\treturn -1;\n//\t\telse \n//\t\t\treturn 0;\n//\t\t\n\t\treturn o1.getYear() - o2.getYear();\n\t}", "@Override\n public int compareTo(TestTask o) {\n assert o != null;\n int result;\n if (this.isEvent()){\n result = o.isEvent() \n ? this.endTime.compareTo(o.endTime) \n : this.endTime.compareTo(o.deadline);\n } else {\n result = o.isEvent() \n ? this.deadline.compareTo(o.endTime) \n : this.deadline.compareTo(o.deadline);\n }\n return result == 0 \n ? this.name.compareTo(o.name)\n : result;\n }", "@Override\n public int compare(WorkReport o1, WorkReport o2) {\n if (o1 == null || o2 == null) {\n return 0;\n }\n Date d1 = o1.getDate();\n Date d2 = o2.getDate();\n if (d1 == null || d2 == null) {\n return 0;\n }\n return -(d1.compareTo(d2));\n }", "public int compare(Date d){\n\t if (this.year < d.year)\n\t return 1;\n\t else if (this.year > d.year)\n\t return -1;\n\t else{\n\t int cM = this.month.compareMonth(d.month);\n\t if (cM != 0)\n\t\treturn cM;\n\t else{\n\t\tif (this.day < d.day)\n\t\t return 1;\n\t\telse if (this.day > d.day)\n\t\t return -1;\n\t\telse\n\t\t return 0;\n\t }\n\t }\n }", "public int compareTo(UnitObject<T> o) {\r\n if (interval.start < o.interval.start) return -1;\r\n else if (interval.start > o.interval.start) return 1;\r\n else return 0;\r\n }", "@Override\n\tpublic int compareTo(Object other) {\n\t\tif (other instanceof Vortex) {\n\t\t\tVortex otherVortex = (Vortex)other;\n\t\t\tif (otherVortex.dayDistance > this.dayDistance) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse if (otherVortex.dayDistance < this.dayDistance) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (otherVortex.dayTravel > this.dayTravel) {\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\telse if (otherVortex.dayTravel < this.dayTravel) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "@Override\r\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\r\n\t}", "@Override\n public int compare(Date date1, Date date2) {\n if (date1.getDay() < date2.getDay() || date1.getMonth() < date2.getMonth() || date1.getYear() < date2.getYear())\n return -1;\n\n else if (date1.getDay() > date2.getDay() || date1.getMonth() > date2.getMonth() || date1.getYear() > date2.getYear())\n return 1;\n\n return 0;\n\n //Finally sort wins according to the -1, 0, 1 ascending order\n }", "public int compareTo(Object o)\n {\n if (o == null)\n {\n return 1;\n }\n else\n {\n IssueImpl otc = (IssueImpl) o;\n return this.m_createDate.compareTo(otc.m_createDate);\n }\n }", "@Override\n\t\t\tpublic int compare(LiveAlarm object1, LiveAlarm object2) {\n\t\t\t\tlong start1 = object1.startT;\n\t\t\t\tlong start2 = object2.startT;\n\t\t\t\t\n\t\t\t\tif (start1 < start2) return -1;\n\t\t\t\tif (start1 == start2) return 0;\n\t\t\t\tif (start1 > start2) return 1;\n\t\t\t\t\n\t\t\t\treturn 0;//to suppress the compiler error;\n\t\t\t}", "@Override\n\tpublic int compareTo(Pregled o) {\n\t\treturn getDatum().compareTo(o.getDatum());\n\t}", "@Override\n public int compareTo(CacheEntry cacheEntry) {\n if (arrivalTime < cacheEntry.arrivalTime) return -1;\n else if (arrivalTime > cacheEntry.arrivalTime) return 1;\n else return 0;\n }", "@Override\n\tpublic int compareTo(Time t) {\n\t\tif (this.getIndex() < t.getIndex())\n\t\t\treturn 1;\n\t\telse if (this.getIndex() == t.getIndex())\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn -1;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n public int compareTo(Object o) {\n return 0;\n }", "@Override\n public int compareTo(Object o) {\n return 0;\n }", "@Override\n public int compareTo(Object o) {\n return 0;\n }", "@Override\r\npublic int compareTo(Object o) {\n\treturn 0;\r\n}", "@Test\n public void testCompareTo_1() {\n LOGGER.info(\"testCompareTo_1\");\n final AtomString atomString1 = new AtomString();\n final AtomString atomString2 = new AtomString();\n final int actual = atomString1.compareTo(atomString2);\n final int expected = 0;\n assertEquals(expected, actual);\n }", "@Override\n\tpublic int compare(Concepto o1, Concepto o2) {\n\t\treturn o1.getFecha_Fin().compareTo(o2.getFecha_Fin());\n\t}", "@Test\n public void getterCalendar(){\n ScheduleEntry entry = new ScheduleEntry();\n entry.setCalendar(calendar);\n entry.setDepartureTime(DepartureTime);\n Assert.assertEquals(2018,calendar.getYear());\n Assert.assertEquals(4,calendar.getMonth());\n Assert.assertEquals(25,calendar.getDayOfMonth());\n }", "@Override\n public int compareTo(DietPlanBO plan)\n {\n if (plan.getStart() == null && this.getStart() == null)\n {\n return 0;\n }\n if (this.getStart() == null)\n {\n return 1;\n }\n if (plan.getStart() == null)\n {\n return -1;\n }\n return this.getStart().compareTo(plan.getStart());\n }", "public int compareToCal(YuanC_LuH_Food a)\n\t{\n\t\tif(calories<a.getCalories())\n\t\t\treturn -1;\n\t\telse if(calories>a.getCalories())\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "@Override\n public int compareTo(Interval o) {\n return 0;\n }", "@Override\r\n\tpublic int compareTo(Examination o) {\n\t\treturn 0;\r\n\t}" ]
[ "0.7551932", "0.6861949", "0.6850458", "0.66452867", "0.6631275", "0.66200477", "0.66078675", "0.6607481", "0.64940494", "0.63661355", "0.63378316", "0.6326867", "0.624985", "0.62245655", "0.6188771", "0.6167802", "0.6112482", "0.6096473", "0.6086364", "0.60769695", "0.60690916", "0.60639757", "0.6041415", "0.5966975", "0.59517366", "0.59506273", "0.5934044", "0.591111", "0.58973885", "0.5845812", "0.583877", "0.5821751", "0.5814931", "0.57979864", "0.57900625", "0.5784583", "0.577786", "0.5771784", "0.5749621", "0.574735", "0.57443714", "0.57440543", "0.57418925", "0.57240725", "0.57010806", "0.5684016", "0.5666806", "0.5665951", "0.5658856", "0.56559575", "0.5641849", "0.5621638", "0.5620755", "0.5619251", "0.5607638", "0.55986685", "0.5597046", "0.55962604", "0.55954236", "0.55944747", "0.5589302", "0.55841696", "0.5566619", "0.55603224", "0.5555899", "0.5553633", "0.5547671", "0.55452204", "0.55244917", "0.5518788", "0.5517126", "0.55136454", "0.5509246", "0.5508255", "0.55049795", "0.55037487", "0.5500096", "0.54941213", "0.5488777", "0.5485246", "0.5477572", "0.5475106", "0.5475106", "0.5475106", "0.5475106", "0.5475106", "0.5475106", "0.5475106", "0.5475106", "0.54683346", "0.54683346", "0.54683346", "0.5464351", "0.5463423", "0.54603446", "0.5459952", "0.54495305", "0.544379", "0.54384524", "0.5435525" ]
0.77296585
0
edited this method to use CalendarImplementation's first day
@Override public int compareTo(Calendar anotherCalendar) { return compareDays(super.getCalendarImplementation().getFirstDayOfWeek(), anotherCalendar.getFirstDayOfWeek()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getFirstRepresentingDay() {\n\t\tint firstRepresentingDay;\r\n\t\tGregorianCalendar myCalendar = new GregorianCalendar(year, month, 1);\r\n\r\n\t\tint daysofMonth = myCalendar.getActualMaximum(Calendar.DAY_OF_MONTH);\r\n\t\tint firstDayMonth = myCalendar.get(Calendar.DAY_OF_WEEK); // First day of month (relative to the week)\r\n\t\tint globalFirstDayMonth = myCalendar.get(Calendar.DAY_OF_YEAR);\r\n\r\n\t\tif (settings.getBoolean(\"firstDayofWeek\", true)) { //The default option is the week starting on monday\r\n\t\t\tfirstDayMonth = firstDayMonth - 1;\r\n\t\t\tif (firstDayMonth == 0)\r\n\t\t\t\tfirstDayMonth = 7;\r\n\t\t\tfirstRepresentingDay = globalFirstDayMonth - (firstDayMonth - 1);\r\n\t\t}\r\n\t\telse { //else we start the week on Sunday\r\n\t\t\tfirstRepresentingDay = globalFirstDayMonth - (firstDayMonth - 1);\r\n\t\t}\r\n\t\tif (firstDayMonth + daysofMonth < 37)\r\n\t\t\tcount = RingActivity.five_week_calendar;\r\n\t\telse\r\n\t\t\tcount = RingActivity.six_week_calendar;\r\n\r\n\t\treturn firstRepresentingDay;\r\n\t}", "@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}", "public Calendar startOfDay() {\r\n\t\t\r\n\t\tCalendar c2 = Calendar.getInstance(baseCalendar.getTimeZone());\r\n\t\tc2.clear();\r\n\t\tc2.set(baseCalendar.get(Calendar.YEAR), \r\n\t\t\t\tbaseCalendar.get(Calendar.MONTH),\r\n\t\t\t\tbaseCalendar.get(Calendar.DATE));\r\n\r\n\t\treturn c2;\t\t\r\n\t}", "public static WithAdjuster firstDayOfMonth() {\n\n return Impl.FIRST_DAY_OF_MONTH;\n }", "public void initCalendarFirst() {\n getCurrentDate();\n mCalendar.setOnDateChangedListener(new OnDateSelectedListener() {\n @Override\n public void onDateSelected(@NonNull MaterialCalendarView widget, @NonNull CalendarDay select, boolean selected) {\n mSelectedDate = select.toString();\n String string[] = mSelectedDate.split(\"\\\\{|\\\\}\");\n String s = string[1]; //2017-8-14\n String string1[] = s.split(\"-\");\n int tempMonth = Integer.parseInt(string1[1]);\n String month = Integer.toString(tempMonth + 1);\n mDate1 = string1[0] + \"-\" + month + \"-\" + string1[2];\n }\n });\n }", "public static Date firstDay(final Date date) {\n final Calendar cal = new GregorianCalendar();\n cal.setTime(date);\n cal.set(Calendar.DAY_OF_MONTH, cal.getMinimum(Calendar.DAY_OF_MONTH));\n cal.set(Calendar.HOUR_OF_DAY, 00);\n cal.set(Calendar.MINUTE, 00);\n cal.set(Calendar.SECOND, 00);\n cal.set(Calendar.MILLISECOND, 00);\n return cal.getTime();\n }", "Date getStartDay();", "public static WithAdjuster firstDayOfNextMonth() {\n\n return Impl.FIRST_DAY_OF_NEXT_MONTH;\n }", "public static WithAdjuster firstDayOfYear() {\n\n return Impl.FIRST_DAY_OF_YEAR;\n }", "@Override\n\t\tpublic WeekDay1 nextDay() {\n\t\t\treturn SUN;\n\t\t}", "public Calendar getFirstVisibleDay() {\n return viewState.getFirstVisibleDay();\n }", "@Override\n public int firstDayOfMonthInWeek() {\n int y = getYear();\n int m = getMonth()-1;\n XCalendar xCalendar = XCalendar.fromJalali(y,m,1);\n Calendar cc = Calendar.getInstance();\n int yy = xCalendar.getCalendar(XCalendar.GregorianType).getYear();\n int mm = xCalendar.getCalendar(XCalendar.GregorianType).getMonth()-1;\n int dd = xCalendar.getCalendar(XCalendar.GregorianType).getDay();\n cc.set(yy,mm,dd);\n int d = firstDayOfWeek[cc.get(Calendar.DAY_OF_WEEK)-1];\n return d;\n }", "public static WithAdjuster firstDayOfNextYear() {\n\n return Impl.FIRST_DAY_OF_NEXT_YEAR;\n }", "public abstract Date computeFirstFireTime(Calendar calendar);", "public String firstDayOfWeek(){\n cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);\n return (\"Mon\" + \" \" + cal.get(Calendar.DATE) + \" \" + cal.get(Calendar.MONTH) + \" \" + cal.get(Calendar.YEAR));\n }", "@Override\n\tpublic void setInitialDate(Calendar initialDate) {\n\n\t}", "Integer getStartDay();", "public boolean getSundayFirstDay() {\n return sunday_first_day;\n }", "public static Date firstDayMonth(){\n String rep_inicio_de_mes = \"\";\n try {\n Calendar c = Calendar.getInstance();\n \n /*Obtenemos el primer dia del mes*/\n c.set(Calendar.DAY_OF_MONTH, c.getActualMinimum(Calendar.DAY_OF_MONTH));\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n \n /*Lo almacenamos como string con el formato adecuado*/\n rep_inicio_de_mes = sdf.format(c.getTime());\n\n \n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return stringToDate(rep_inicio_de_mes);\n }", "public boolean isFirstOfTheDay() {\r\n return !strDate.equals(game.settings.getLastSeen());\r\n }", "public static int getFirstDayOfWeek() {\n int startDay = Calendar.getInstance().getFirstDayOfWeek();\n\n if (startDay == Calendar.SATURDAY) {\n return Time.SATURDAY;\n } else if (startDay == Calendar.MONDAY) {\n return Time.MONDAY;\n } else {\n return Time.SUNDAY;\n }\n }", "public static Date setToBeginningOfDay(Date date) {\n\t\t\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.set(Calendar.HOUR_OF_DAY, 0);\n\t cal.set(Calendar.MINUTE, 0);\n\t cal.set(Calendar.SECOND, 0);\n\t cal.set(Calendar.MILLISECOND, 0);\n\t return cal.getTime();\n\t}", "protected Date findFirstGenDate(GenCtx ctx)\n\t{\n\t\treturn EX.assertn(ctx.get(Date.class));\n\t}", "public void setSundayFirstDay(boolean b) {\n sunday_first_day = b;\n }", "public Calendar getStartDate() {\n \t\tCalendar cal = Calendar.getInstance();\n \t\tcal.setTimeInMillis(startTime);\n \t\t\n\t\treturn cal;\n\t}", "public static Date todayStart() {\n return dayStart(new Date());\n }", "public Date getFirstSelectionDate()\n/* */ {\n/* 186 */ return isSelectionEmpty() ? null : (Date)this.selectedDates.first();\n/* */ }", "public Date getStartOfDay(Date date) {\n\t Calendar calendar = Calendar.getInstance();\n\t calendar.setTime(date);\n\t calendar.set(Calendar.HOUR_OF_DAY, 0);\n\t calendar.set(Calendar.MINUTE, 0);\n\t calendar.set(Calendar.SECOND, 0);\n\t calendar.set(Calendar.MILLISECOND, 0);\n\t return calendar.getTime();\n\t}", "public Calendar startOfMonth() {\r\n\t\t\r\n\t\tCalendar c2 = Calendar.getInstance(baseCalendar.getTimeZone());\r\n\t\tc2.clear();\r\n\t\tc2.set(baseCalendar.get(Calendar.YEAR), \r\n\t\t\t\tbaseCalendar.get(Calendar.MONTH), 1);\r\n\t\treturn c2;\r\n\t}", "public void nextDay() {\r\n int daysMax = daysInMonth();\r\n \r\n if (day == daysMax && month == 12) { // If end of the year, set date to Jan 1\r\n setDate(1, 1);\r\n } else if (day == daysMax) { // If last day of month, set to first day of next month\r\n setDate(month + 1, 1);\r\n } else { // Otherwise, simply increment this day\r\n day++;\r\n }\r\n }", "public Date getEarliestStartDate();", "private Date getPreviosDayStartTime() {\n\t\treturn null;\n\t}", "public long startOfThisWeek() {\r\n\t\tfinal Calendar mc = Calendar.getInstance();\r\n\t\tmc.setTimeZone(mC.getTimeZone());\r\n\t\tint d = mC.get(Calendar.DAY_OF_WEEK);\r\n\t\tmc.set(mC.get(Calendar.YEAR), \r\n\t\t\t\tmC.get(Calendar.MONTH), \r\n\t\t\t\tmC.get(Calendar.DAY_OF_MONTH) - d + 1, 0, 0, 0);\r\n\t\treturn mc.getTimeInMillis();\r\n\t}", "protected abstract void calcNextDate();", "public void setRainfallFirstDay(int r) {\n this.firstRainfallDay = r;\n }", "WeekdaySpec getStart();", "public static Date getStartOfDay(Date date)\n {\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(date);\n calendar.set(Calendar.HOUR_OF_DAY, 0);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.SECOND, 0);\n calendar.set(Calendar.MILLISECOND, 0);\n return calendar.getTime();\n }", "@Override\n\t\tpublic WeekDay1 nextDay() {\n\t\t\treturn MON;\n\t\t}", "public Date getInitialActivityDate(String siteId) {\n\t\tDate date = null;\n\t\ttry{\n\t\t\tdate = siteService.getSite(siteId).getCreatedDate();\n\t\t}catch(Exception e){\n\t\t\treturn new Date(0);\n\t\t}\n\t\treturn date;\n\t}", "public static long getFirstDayOfWeek(int day) {\n\t\tMutableDateTime firstDay = utc(day);\n\t\tfirstDay.setDayOfWeek(1);\n\t\treturn days(firstDay);\n\t}", "java.util.Calendar getSearchRecurrenceStart();", "public Day getNextStartDay() {\n return getDay(this.days + 1);\n }", "public static Date getFirstDate(Date date ) throws ParseException{ \n\t\tString format = \"yyyyMM\";\n\t\tdate = formatStrtoDate( format(date, format) + \"01\", format + \"dd\");\n\t\treturn date;\n\t}", "public static int getStartDay(int year, int month)\n {\n int startday = 3;//add 3 to the variable start\n int totalamountofdays = getTotalNumberOfDays(year,month);//call the method getTotalNumberOfDays and store it in a variable called start\n return(totalamountofdays + startday) % 7;//return start % 7 \n }", "private synchronized EventType scheduleNextEvent()\n {\n Date today = new Date();\n Date today_sunrise = ss.getSunrise(latitude, longitude);\n Date today_sunset = ss.getSunset(latitude, longitude);\n Date today_off = ss.getOff(off);\n\n // get sunrise and sunset time for tomorrow\n Calendar tomorrow = Calendar.getInstance();\n tomorrow.roll(Calendar.DATE, true);\n Date tomorrow_sunrise = ss.getSunrise(latitude, longitude, tomorrow.getTime());\n Date tomorrow_sunset = ss.getSunset(latitude, longitude, tomorrow.getTime());\n Date tomorrow_off = ss.getOff(off);\n\n // determine if sunrise or sunset is the next event\n if (today.after(today_sunset)) {\n // get tomorrow's date time\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: SUNRISE \");\n System.out.println(\" @ \" + tomorrow_sunrise);\n System.out.println(\"-----------------------------------\");\n\n // schedule tomorrow's sunrise as next event\n timer.schedule(new SunriseTask(), tomorrow_sunrise);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = tomorrow_sunrise;\n nextSunsetDate = tomorrow_sunset;\n\n // return next event\n nextEvent = EventType.SunriseTomorrow;\n return nextEvent;\n } else if (today.after(today_sunrise)) {\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: SUNSET \");\n System.out.println(\" @ \" + today_sunset);\n System.out.println(\"-----------------------------------\");\n\n // schedule sunset as next event\n timer.schedule(new SunsetTask(), today_sunset);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = tomorrow_sunrise;\n nextSunsetDate = today_sunset;\n\n // return next event\n nextEvent = EventType.SunsetToday;\n return nextEvent;\n } else if (today.after(today_off)) {\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: OFF \");\n System.out.println(\" @ \" + today_off);\n System.out.println(\"-----------------------------------\");\n\n // schedule sunset as next event\n timer.schedule(new SunsetTask(), today_off);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = tomorrow_sunrise;\n nextSunsetDate = today_sunset;\n\n // return next event\n nextEvent = EventType.SunriseTomorrow;\n return nextEvent;\n } else {\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: SUNRISE \");\n System.out.println(\" @ \" + today_sunrise);\n System.out.println(\"-----------------------------------\");\n\n // schedule sunrise as next event\n timer.schedule(new SunriseTask(), today_sunrise);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = today_sunrise;\n nextSunsetDate = today_sunset;\n\n // return next event\n nextEvent = EventType.SunriseToday;\n return nextEvent;\n }\n }", "public Date getDayStart(TimeZone tz)\n\t{\n\t\tCalendar cal = Calendar.getInstance(tz, Locale.US);\n\t\tcal.set(this.year, this.month-1, this.day, 0, 0, 0);\n\t\tcal.set(Calendar.MILLISECOND, 0);\n\t\treturn cal.getTime();\n\t}", "public Date getEarliestFinishingDate();", "public void processDate(boolean periodStart) {\n Calendar cal = Calendar.getInstance();\n if (year == null) {\n year = cal.get(Calendar.YEAR);\n }\n if (week != null) {\n cal.set(Calendar.WEEK_OF_YEAR, week);\n cal.setFirstDayOfWeek(Calendar.MONDAY);\n cal.set(Calendar.DAY_OF_WEEK, (periodStart) ? Calendar.MONDAY : Calendar.SUNDAY);\n week = null;\n month = TimeConstants.MONTHS_EN.split(\",\")[cal.get(Calendar.MONTH)].toLowerCase();\n day = cal.get(Calendar.DAY_OF_MONTH);\n }\n if (season != null) {\n if (\"Spring\".equalsIgnoreCase(season)) {\n cal.set(Calendar.MONTH, periodStart ? 2 : 4);\n } else if (\"Summer\".equalsIgnoreCase(season)) {\n cal.set(Calendar.MONTH, periodStart ? 5 : 7);\n } else if (\"Autumn\".equalsIgnoreCase(season)) {\n cal.set(Calendar.MONTH, periodStart ? 8 : 10);\n } else if (\"Winter\".equalsIgnoreCase(season)) {\n cal.set(Calendar.MONTH, periodStart ? 11 : 1);\n }\n cal.set(Calendar.DAY_OF_MONTH, periodStart ? 1 : cal.getActualMaximum(Calendar.DAY_OF_MONTH));\n month = TimeConstants.MONTHS_EN.split(\",\")[cal.get(Calendar.MONTH)].toLowerCase();\n day = cal.get(Calendar.DAY_OF_MONTH);\n season = null;\n }\n if (month != null) {\n cal.set(Calendar.MONTH, TimeConstants.getMonthIndex(month));\n }\n if (day != null && day == 99) {\n cal.set(Calendar.DAY_OF_MONTH, cal.getActualMaximum(Calendar.DAY_OF_MONTH));\n day = cal.get(Calendar.DAY_OF_MONTH);\n }\n if (day == null) {\n cal.set(Calendar.DAY_OF_MONTH, periodStart ? 1 : cal.getActualMaximum(Calendar.DAY_OF_MONTH));\n day = cal.get(Calendar.DAY_OF_MONTH);\n }\n }", "private boolean isNovemberFirst(final Calendar date) {\n return NOVEMBER_1ST_DAY == date.get(Calendar.DAY_OF_MONTH)\n && Calendar.NOVEMBER == date.get(Calendar.MONTH);\n }", "public java.util.Calendar getStartExecDate()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STARTEXECDATE$8, 0);\n if (target == null)\n {\n return null;\n }\n return target.getCalendarValue();\n }\n }", "public int getFirstDayOfMonth(int month)\n\t{\n\t\tm_calendar.set(Calendar.MONTH,month);\n\t\tm_calendar.set(Calendar.DAY_OF_MONTH,1);\n\t\t\n\t\treturn (getDay_Of_Week() - 1);\t\t\n\n\t}", "java.util.Calendar getLastrun();", "private Date getDefaultCenturyStart() {\n\t\tif (defaultCenturyStart == null) {\n\t\t\t// not yet initialized\n\t\t\tinitializeDefaultCenturyStart(defaultCenturyBase);\n\t\t}\n\t\treturn defaultCenturyStart;\n\t}", "public void setTodayCalendar()\n {\n this.currentCalendar = Calendar.getInstance();\n }", "public static Date getStart(Date date) {\n if (date == null) {\n return null;\n }\n Calendar c = Calendar.getInstance();\n c.setTime(date);\n c.set(Calendar.HOUR_OF_DAY, 0);\n c.set(Calendar.MINUTE, 0);\n c.set(Calendar.SECOND, 0);\n c.set(Calendar.MILLISECOND, 0);\n return c.getTime();\n }", "public Date getNextScheduledRun() {\n\t\tfinal Calendar cal = Calendar.getInstance();\n\t\tcal.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);\n\t\tcal.set(Calendar.HOUR_OF_DAY, 1);\n\t\tcal.set(Calendar.MINUTE, 0);\n\n\t\tif ( cal.before(Calendar.getInstance()) ){\n\t\t\tcal.add(Calendar.DATE, 7);\n\t\t}\n\t\treturn cal.getTime();\n\t\n\t}", "private void calculateFinancialStartDate(DepreciationCriteria criteria) {\n\t\tLong todate = criteria.getToDate();\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.setTimeInMillis(todate);\n\t\tint year = calendar.get(Calendar.YEAR);\n\t\tint month = calendar.get(Calendar.MONTH);\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 23);\n\t\tcalendar.set(Calendar.MINUTE, 59);\n\t\tcriteria.setToDate(calendar.getTimeInMillis());\n\n\t\t// choosing the finacial year based on todate month\n\t\tif (month < 3) {\n\t\t\tcriteria.setFinancialYear(year-1+\"-\"+year);\n\t\t\tyear = year - 1;\n\t\t}else\n\t\t\tcriteria.setFinancialYear(year+\"-\"+(year+1));\n\n\t\t// setting from date value\n\t\tcalendar.set(Calendar.YEAR, year);\n\t\tcalendar.set(Calendar.MONTH, Calendar.APRIL);\n\t\tcalendar.set(Calendar.DATE, 1);\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\n\t\tcalendar.set(Calendar.MINUTE, 0);\n\t\tcriteria.setFromDate(calendar.getTimeInMillis());\n\t\tSystem.err.println(\"from date calculated : \" + criteria.getFromDate());\n\t}", "public int getFirstDayOfWeek() {\n return config.firstDayOfWeek;\n }", "private void changeNextDay(){\n\t\tplanet.getClimate().nextDay();\n\t}", "public BwCalendar fetchBeforeCalendar() {\n return beforeCalendar;\n }", "Calendar registeredAt();", "public void setMinimalDay(DateTime rentDate) {\r\n\t\tString startDay;\r\n\t\tstartDay = rentDate.getNameOfDay();\r\n\r\n\t\tif (startDay.equals(\"Sunday\") || startDay.equals(\"Monday\") || startDay.equals(\"Thursday\")) {\r\n\t\t\tminimalDay = 2;\r\n\t\t} else if (startDay.equals(\"Friday\") || startDay.equals(\"Saturday\")) {\r\n\t\t\tminimalDay = 3;\r\n\t\t} else {\r\n\t\t\tminimalDay = 1;\r\n\t\t}\r\n\t}", "public void setupCalendar() { \n\t\tcal = whenIsIt();\n\t\tLocale here = Locale.US;\n\t\tthisMonth = cal.getDisplayName(2, Calendar.LONG_STANDALONE, here);\n\t\tdate = cal.get(5); //lesson learned: if it's a number do this\n\t\t//ADD CODE FOR ORDINALS HERE\n\t\tyear = cal.get(1);\n\t\tthisHour = cal.get(10);\n\t\tthisMinute = cal.get(12);\n\t\tthisSecond = cal.get(13);\n\t\tamPm = cal.getDisplayName(9, Calendar.SHORT, here);\n\t\tthisDay = thisMonth +\" \"+ addOrdinal(date) + \", \" + year;\n\t\tcurrentTime = fix.format(thisHour) + \":\" + fix.format(thisMinute) + \":\" + fix.format(thisSecond) + \" \" + amPm;\n\t}", "public static void before0(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,6);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==6);\n assert(ret0==true);\n System.out.println(ret0);\n }", "protected Date nextStandardDate(Date date, DateTickUnit unit) {\n/* 1122 */ Date previous = previousStandardDate(date, unit);\n/* 1123 */ Calendar calendar = Calendar.getInstance(this.timeZone, this.locale);\n/* 1124 */ calendar.setTime(previous);\n/* 1125 */ calendar.add(unit.getCalendarField(), unit.getMultiple());\n/* 1126 */ return calendar.getTime();\n/* */ }", "public Date getCurrentWeekStart() {\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.HOUR_OF_DAY, 0); // ! clear would not reset the hour of day !\n cal.clear(Calendar.MINUTE);\n cal.clear(Calendar.SECOND);\n cal.clear(Calendar.MILLISECOND);\n\n cal.setFirstDayOfWeek(Calendar.MONDAY);\n cal.set(Calendar.DAY_OF_WEEK, cal.getFirstDayOfWeek());\n\n Date currentWeekStart = cal.getTime();\n\n return currentWeekStart;\n }", "private boolean isJanuaryFirst(final Calendar date) {\n return JANUARY_1ST_DAY == date.get(Calendar.DAY_OF_MONTH)\n && Calendar.JANUARY == date.get(Calendar.MONTH);\n }", "private boolean makeCalendarByDays() {\n if (calendar != null) {\n for (Date date:calendar.keySet()) {\n Date startDay;\n if (date.getTime() > date.getTime() - 3600000 * 2 - date.getTime() % 86400000)\n startDay = new Date(date.getTime() + 3600000 * 22 - date.getTime() % 86400000);\n else startDay = new Date(date.getTime() - 3600000 * 2 - date.getTime() % 86400000);\n calendarByDays.put(startDay, calendar.get(date));\n }\n return true;\n }\n return false;\n }", "public Date getStartDate() {\r\n\t\treturn new Date(startDateText.getDay(), startDateText.getMonth()+1, startDateText.getYear());\r\n\t}", "public OccurrenceInfo getFirstOccurrence() throws ServiceLocalException {\n\t\treturn (OccurrenceInfo) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(\n\t\t\t\t\t\tAppointmentSchema.FirstOccurrence);\n\t}", "private Date getFrom(RuleTypes.HistoricRequirements ph) {\n Calendar date = new GregorianCalendar();\n date.set(Calendar.HOUR_OF_DAY, 0);\n date.set(Calendar.MINUTE, 0);\n date.set(Calendar.SECOND, 0);\n date.set(Calendar.MILLISECOND, 0);\n int today;\n\n switch(ph) {\n case TODAY:\n return date.getTime();\n case YESTERDAY:\n date.add(Calendar.DAY_OF_MONTH, -1);\n return date.getTime();\n case THIS_WEEK:\n today = date.get(Calendar.DAY_OF_WEEK);\n date.add(Calendar.DAY_OF_WEEK,-today+Calendar.MONDAY);\n return date.getTime();\n case LAST_WEEK:\n today = date.get(Calendar.DAY_OF_WEEK);\n date.add(Calendar.DAY_OF_WEEK,-today+Calendar.MONDAY);\n date.add(Calendar.DAY_OF_MONTH, -7);\n return date.getTime();\n case THIS_MONTH:\n date.set(Calendar.DAY_OF_MONTH, date.getActualMinimum(Calendar.DAY_OF_MONTH));\n return date.getTime();\n case LAST_MONTH:\n date.set(Calendar.DAY_OF_MONTH, date.getActualMinimum(Calendar.DAY_OF_MONTH));\n date.add(Calendar.MONTH, -1);\n return date.getTime();\n case T12_HRS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -12);\n return date.getTime();\n case T24_HRS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -24);\n return date.getTime();\n case T2_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -48);\n return date.getTime();\n case T3_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -72);\n return date.getTime();\n case T4_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -96);\n return date.getTime();\n case T5_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -120);\n return date.getTime();\n case T6_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -144);\n return date.getTime();\n case T7_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -168);\n return date.getTime();\n }\n return null;\n }", "public static LocalDate getFirstOfCurrentMonth() {\n\t\treturn LocalDate.now().with(TemporalAdjusters.firstDayOfMonth());\n\t}", "protected boolean _isFirstTime() {\n return _firstTime;\n }", "private void setCurrentDay() {\n Calendar c = Calendar.getInstance();\n\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n hour = c.get(Calendar.HOUR_OF_DAY);\n minute = c.get(Calendar.MINUTE);\n }", "public Date calculateLowestVisibleTickValue(DateTickUnit unit) { return nextStandardDate(getMinimumDate(), unit); }", "@Override\n\tpublic Date getFirstLogin() {\n\t\treturn this.firstLogin;\n\t}", "private void setDay() {\n Boolean result = false;\n for (int i = 0; i < 7; ++i) {\n if(mAlarmDetails.getRepeatingDay(i))\n result = true;\n mAlarmDetails.setRepeatingDay(i, mAlarmDetails.getRepeatingDay(i));\n }\n if(!result)\n mAlarmDetails.setRepeatingDay((Calendar.getInstance().get(Calendar.DAY_OF_WEEK) - 1), true);\n }", "private void scheduleNextAlarm() {\n // Cancel the currently scheduled Alarm in order to schedule the next.\n if (nextAlarm != null) {\n alarmManager.cancel(createAlarmIntent(this, nextAlarm.getId()));\n nextAlarm = null;\n }\n final Calendar calendar = Calendar.getInstance();\n Alarm alarm;\n int i = 0;\n do {\n // Look for an Alarm that is upcoming from the Calendar day and time.\n alarm = dailyDoDatabaseHelper.getNextAlarmForCalendarDay(calendar);\n if (alarm == null) {\n // If an Alarm was not found for the remainder of the day,\n // then check the next day starting midnight.\n calendar.set(Calendar.HOUR_OF_DAY, 0);\n calendar.set(Calendar.MINUTE, 0);\n calendar.add(Calendar.DAY_OF_WEEK, 1);\n Log.d(CLASS_NAME, String.format(\"Checking next Calendar=%s for Alarm.\", calendar));\n }\n } while (alarm == null && i++ < 7);\n if (alarm != null) {\n nextAlarm = alarm;\n // Reusing the previous Calendar because it has scope of the future day.\n calendar.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n calendar.set(Calendar.MINUTE, alarm.getMinute());\n calendar.set(Calendar.SECOND, 0);\n alarmManager.set(AlarmManager.RTC_WAKEUP,\n calendar.getTimeInMillis(),\n createAlarmIntent(this, alarm.getId()));\n Log.d(CLASS_NAME, String.format(\"Alarm=%s was found, scheduled on Calendar=%s\", alarm.toString(), calendar.toString()));\n } else {\n Log.d(CLASS_NAME, \"No upcoming Alarm(s) found to schedule.\");\n }\n }", "public void SetCurrentDate(CalendarWidget kCal) {\n\t\tfor(int i = 0; i < 42; ++i)\n\t\t{\n\t\t\tif(kCal.cell[i].date.getText().toString().length() == 0)\n\t\t\t\tcontinue;\n\t\t\tkCal.checkForCurrentData(kCal.cell[i]);\n\t\t}\n\t}", "private Date determineBeginDate(Employee employee){\n\t\tList<PtoPeriod> ptoPeriods = ptoPeriodRepository.findPtoPeriodForEmployee(employee.getId());\n\t\tfor(PtoPeriod p : ptoPeriods){\n\t\t\tlog.info(\"Pto Period Found: End Date: \" + p.getEndDate());\n\t\t}\n\t\t\n\t\t//If more than one period found, select the second latest date as the start date\n\t\t//Otherwise return the employee hire date\n\t\t\n\t\treturn ZonedDateTimeToDateConverter.INSTANCE.convert(employee.getHireDate());\n\t}", "abstract Date getDefault();", "org.apache.xmlbeans.XmlDateTime xgetSearchRecurrenceStart();", "public Date next() {\r\n\t\tif (isValid(month, day + 1, year))\r\n\t\t\treturn new Date(month, day + 1, year);\r\n\t\telse if (isValid(month + 1, 1, year))\r\n\t\t\treturn new Date(month + 1, 1, year);\r\n\t\telse\r\n\t\t\treturn new Date(1, 1, year + 1);\r\n\t}", "public int determineDayRandomly() {\n\t\treturn 0;\r\n\t}", "Date getStartDate();", "Date getStartDate();", "Date getStartDate();", "public Date getNextCheckDate(Date now)\r\n\t{\r\n\t\tsetTime(now);\r\n\r\n\t\tswitch (type)\r\n\t\t{\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_MINUTE:\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.MINUTE, 1);\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_HOUR:\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.HOUR_OF_DAY, 1);\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.HALF_DAY:\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tint hour = get(Calendar.HOUR_OF_DAY);\r\n\t\t\tif (hour < 12)\r\n\t\t\t{\r\n\t\t\t\tset(Calendar.HOUR_OF_DAY, 12);\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tset(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\t\tadd(Calendar.DAY_OF_MONTH, 1);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_DAY:\r\n\t\t\tset(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.DATE, 1);\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_WEEK:\r\n\t\t\tset(Calendar.DAY_OF_WEEK, getFirstDayOfWeek());\r\n\t\t\tset(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.WEEK_OF_YEAR, 1);\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_MONTH:\r\n\t\t\tset(Calendar.DATE, 1);\r\n\t\t\tset(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.MONTH, 1);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tthrow new IllegalStateException(\"Unknown periodicity type.\");\r\n\t\t}\r\n\t\treturn getTime();\r\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tgetLayouts();\n\n\t\t\t\tCalendar pre = (Calendar) calendar.clone();\n\n\t\t\t\tcurrentMonth--;\n\n\t\t\t\tif (currentMonth == 0) {\n\t\t\t\t\tcurrentMonth = 12;\n\t\t\t\t\tcurrentYear--;\n\t\t\t\t}\n\t\t\t\tpre.set(Calendar.MONTH, currentMonth);\n\t\t\t\tpre.set(Calendar.YEAR, currentYear);\n\t\t\t\tpre.set(Calendar.DATE, 1);\n\n\t\t\t\tpositionPre = pre.getTime().toString().split(\" \");\n\t\t\t\tpreviousDayPosition = ReturnCalendarDetails\n\t\t\t\t\t\t.getPosition(positionPre[0]);\n\n\t\t\t\tgetCalendar(\n\t\t\t\t\t\tReturnCalendarDetails.getCurrentMonth(positionPre[1]),\n\t\t\t\t\t\tReturnCalendarDetails.getPosition(positionPre[0]),\n\t\t\t\t\t\tInteger.parseInt(positionPre[5]));\n\n\t\t\t\tSystem.out.println(\"!!\" + pre.getTime());\n\t\t\t}", "protected StartOfDay() {\n super();\n\n }", "public Date next() {\n if (isValid(month, day + 1, year)) return new Date(month, day + 1, year);\n else if (isValid(month + 1, 1, year)) return new Date(month, 1, year);\n else return new Date(1, 1, year + 1);\n }", "public void incrementDay(){\n //Step 1\n this.currentDate.incrementDay();\n //step2\n if (this.getSavingsAccount() != null)\n this.getSavingsAccount().incrementDay();\n if (this.getCheckingAccount() != null)\n this.getCheckingAccount().incrementDay();\n if (this.getMoneyMarketAccount() != null)\n this.getMoneyMarketAccount().incrementDay();\n if (this.getCreditCardAccount() != null)\n this.getCreditCardAccount().incrementDay();\n //step 3\n if (this.getDate().getDay() == 1) {\n \n if (this.getSavingsAccount() != null)\n this.getSavingsAccount().incrementMonth();\n if (this.getCheckingAccount() != null)\n this.getCheckingAccount().incrementMonth();\n if (this.getMoneyMarketAccount() != null)\n this.getMoneyMarketAccount().incrementMonth();\n if (this.getCreditCardAccount() != null)\n this.getCreditCardAccount().incrementMonth();\n }\n \n }", "private void nextDate() {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tlong hourMills = this.nextHourMills;\r\n\t\tint day;\r\n\t\t\r\n\t\tcalendar.setTimeInMillis(this.nextHourMills);\r\n\t\tcalendar.add(Calendar.HOUR_OF_DAY, 1);\r\n\t\t\r\n\t\tthis.nextHourMills = calendar.getTimeInMillis();\r\n\t\t\r\n\t\tday = calendar.get(Calendar.DATE);\r\n\t\tif (day != this.day) {\r\n\t\t\t// 날짜가 바뀌었으면 calendar.set(Calendar.HOUR_OF_DAY, 0) 는 불필요. 단지 최종 날짜만 바꾸어준다.\r\n\t\t\tthis.day = day;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// 바뀌지 않았으면\r\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFile dir = new File(this.root, Long.toString(calendar.getTimeInMillis()));\r\n\t\t\tFile file = new File(dir, Long.toString(hourMills));\r\n\t\t\t\r\n\t\t\tthis.data = JSONFile.getJSONObject(file);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthis.data = null;\r\n\t\t\t\r\n\t\t\tthis.date.setTimeInMillis(this.nextHourMills);\r\n\t\t}\r\n\t}", "public String getNextDate()\n\t{\n\t\tm_calendar.set (Calendar.DAY_OF_MONTH, getDayOfMonth() + 1);\n\t\treturn getTodayDate ();\n\n\t}", "public int firstSettleDate()\n\t{\n\t\treturn _iFirstSettleDate;\n\t}", "public boolean isChangingFirstDayOfWeekAllowed() {\r\n return calendarTable.isChangingFirstDayOfWeekAllowed();\r\n }", "Date NextEvent(Date d);", "public static LocalDate getFirstOfNextMonth() {\n\t\treturn LocalDate.now().with(TemporalAdjusters.firstDayOfNextMonth());\n\t}", "public void nextDay() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"d/M/yyyy\");\n localDate = LocalDate.parse(irlDate, formatter);\n localDate = localDate.plusDays(1);\n irlDate = DateTimeFormatter.ofPattern(\"d/M/yyyy\").format(localDate);\n System.out.println(irlDate);\n currentDay = Integer.parseInt(DateTimeFormatter.ofPattern(\"d\").format(localDate));\n currentMonth = Integer.parseInt(DateTimeFormatter.ofPattern(\"M\").format(localDate)) - 1;\n currentYear = Integer.parseInt(DateTimeFormatter.ofPattern(\"yyyy\").format(localDate));\n }", "@NonNull public static CalendarDay today() {\n return from(LocalDate.now());\n }", "public java.lang.String getStartDay() {\r\n return localStartDay;\r\n }" ]
[ "0.7556063", "0.7251767", "0.6909655", "0.6894794", "0.6861407", "0.6836668", "0.67860687", "0.6781026", "0.6648341", "0.6642811", "0.66415125", "0.6641501", "0.66160166", "0.6576574", "0.65066546", "0.6500354", "0.6489571", "0.64837754", "0.6412144", "0.63992226", "0.6376809", "0.63752484", "0.63470423", "0.6301663", "0.62892896", "0.6248089", "0.6229724", "0.62277365", "0.61982507", "0.619447", "0.6178535", "0.61547697", "0.6153379", "0.613675", "0.6109636", "0.6104489", "0.60774183", "0.6076775", "0.6004898", "0.59920174", "0.5991019", "0.59775054", "0.5963635", "0.5948429", "0.5890851", "0.5887188", "0.58842224", "0.5879247", "0.5878148", "0.5849801", "0.58333015", "0.5822178", "0.5821488", "0.58192205", "0.57975125", "0.5795036", "0.5794167", "0.57709575", "0.576907", "0.5766128", "0.57630587", "0.57617813", "0.57591933", "0.57587564", "0.57543594", "0.5737558", "0.5730636", "0.57291275", "0.57195204", "0.57136303", "0.5711884", "0.5708873", "0.5692844", "0.56901854", "0.56844383", "0.5678048", "0.56719494", "0.56713504", "0.5666685", "0.56640255", "0.5661003", "0.5653673", "0.5651882", "0.56477046", "0.56451255", "0.56451255", "0.56451255", "0.56436515", "0.56331736", "0.56282884", "0.5622263", "0.56132686", "0.5606506", "0.5595336", "0.559075", "0.55824906", "0.5577301", "0.55756074", "0.55755156", "0.55581164", "0.55573404" ]
0.0
-1
Returns all reports on file
@RequestMapping(method = RequestMethod.GET, value = "/getReports") public List<Reports> getReports() { List<Reports> results = reportsRepository.getReportsByDate(); return results; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getReportManually() {\n File reportDir = new File(KOOM.getInstance().getReportDir());\n for (File report : reportDir.listFiles()) {\n //Upload the report or do something else.\n }\n }", "public List<Report> downloadReports() {\n Instant now = Instant.now();\n\n return runWith(sftp -> {\n boolean isSuccess = false;\n\n try {\n SFTPFileTransfer transfer = sftp.getFileTransfer();\n\n List<Report> reports = sftp.ls(configProperties.getReportsFolder())\n .stream()\n .filter(this::isReportFile)\n .map(file -> {\n InMemoryDownloadedFile inMemoryFile = new InMemoryDownloadedFile();\n try {\n transfer.download(file.getPath(), inMemoryFile);\n return new Report(file.getPath(), inMemoryFile.getBytes());\n } catch (IOException exc) {\n throw new FtpException(\"Unable to download file \" + file.getName(), exc);\n }\n })\n .collect(toList());\n\n isSuccess = true;\n\n return reports;\n } catch (IOException exc) {\n throw new FtpException(\"Error while downloading reports\", exc);\n } finally {\n insights.trackFtpReportDownload(Duration.between(now, Instant.now()), isSuccess);\n }\n });\n }", "public String[] getReports()\n {\n return null;\n }", "abstract ImmutableMap<String, ReportFiles> reports();", "@GET\n @Path(\"/report\")\n @NotAuthenticated\n public Response getReport() {\n \n try {\n File design = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/report-templates/\" + name + \".rptdesign\"));\n if(!design.exists()) {\n return Response.status(Status.NOT_FOUND).build();\n }\n File reports = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/reports/\" + name));\n if(!reports.exists()) {\n if(!reports.mkdirs()) {\n return Response.serverError().build();\n }\n }\n File report = new File(reports, name + \"-\" + System.currentTimeMillis() + \".pdf\");\n reportService.render(\"PDF\", null, design.getAbsolutePath(), report.getAbsolutePath());\n if(report.exists()) {\n return Response.ok().build();\n } else {\n return Response.serverError().build();\n }\n } catch(Exception e) {\n e.printStackTrace();\n return Response.serverError().build();\n }\n }", "List<ReportDescriptor> getReportDescriptors();", "String getReportsTo();", "public byte[] getReportFile(){\n \tbyte[] result = new byte[this.reportFile.length];\n System.arraycopy(this.reportFile, 0, result, 0, this.reportFile.length);\n return result;\n }", "@Override\r\n\tpublic List<ReportAndSummary> findAll() {\n\t\tList<ReportAndSummary> result = reportAndSummaryDao.findAll();\r\n\t\treturn result;\r\n\t}", "public void getAllReportes() throws IOException{\n okhttp3.Request request = new okhttp3.Request.Builder()\n .url(BASE_URL+\"/reportes\")\n .build();\n\n client.newCall(request).enqueue(new Callback(){\n\n @Override\n public void onFailure(Call call, IOException e) {\n\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n System.out.println(response.body().string());\n }\n });\n }", "public synchronized static ExtentReports getReporter(String filePath) {\n\t\t if (report == null) {\r\n\t\t \treport = new ExtentReports(path.concat(\"Report\\\\Purchase_Admin_Report.html\"));\r\n\t\t \r\n\t\t report\r\n\t\t .addSystemInfo(\"Host Name\", \"Priti\") //Environment Setup For Report\r\n\t\t .addSystemInfo(\"Environment\", \"QA\");\r\n\t\t }\r\n\t\t \r\n\t\t return report;\r\n\t\t}", "public void loadReports() throws EngineException {\n File folder = new File(reportsPath);\n for (String file : Objects.requireNonNull(folder.list())) {\n if (!file.endsWith(\".rptdesign\")) {\n continue;\n }\n\n reports.put(file.replace(\".rptdesign\", \"\"),\n birtEngine.openReportDesign(folder.getAbsolutePath() + File.separator + file));\n\n }\n }", "public List getAll() throws FileNotFoundException, IOException;", "List<Report> selectAll();", "public File getReportFile() {\n return reportFile;\n }", "public abstract void getReport(java.io.Writer writer);", "@Override\n public Collection<QName> getSupportedReports() throws WebdavException {\n final Collection<QName> res = new ArrayList<>();\n res.addAll(super.getSupportedReports());\n res.addAll(supportedReports);\n\n return res;\n }", "public static IReport createReport(File f) throws ArfException {\r\n \treturn new Report(Report.getAssetReportCollection(f));\r\n }", "public void runReport(String sReportFile)\n {\n }", "public AllRecords getAllRecords() {\n\t\treturn fileService.withFile(FILE_NAME, new AllRecords(), file -> {\n\t\t\tvar records = fileService.readFile(file, AllRecords.class);\n\t\t\trecords.easy = sort(records.easy);\n\t\t\trecords.medium = sort(records.medium);\n\t\t\trecords.hard = sort(records.hard);\n\t\t\treturn records;\n\t\t});\n\t}", "public nl.webservices.www.soap.InsolvencyReport[] getReports() {\n return reports;\n }", "public String getReportPath();", "public Collection<TestCaseDto> loadSuiteFromReportFolder(Path folder) throws IOException {\n Map<String, TestCaseDto> testMap = new HashMap<>();\n Files.walk(folder).filter(Files::isRegularFile)\n .filter(f -> f.getFileName().toString().endsWith(\".xml\"))\n .forEach(f -> this.parseAndAddTests(f, testMap));\n return testMap.values();\n }", "public JFreeReport parseReport(final File file)\r\n throws IOException, ResourceException\r\n {\r\n if (file == null)\r\n {\r\n throw new NullPointerException();\r\n }\r\n if (file.isDirectory())\r\n {\r\n throw new IOException(\"File is not a directory.\");\r\n }\r\n final File contentBase = file.getCanonicalFile().getParentFile();\r\n final ResourceManager resourceManager = new ResourceManager();\r\n resourceManager.registerDefaults();\r\n\r\n final ResourceKey contextKey = resourceManager.createKey(contentBase);\r\n\r\n // Build the main key. That key also contains all context/parse-time\r\n // parameters as they will influence the resulting report. It is not\r\n // wise to keep caching independent from that.\r\n final HashMap map = new HashMap();\r\n final Iterator it = this.helperObjects.keySet().iterator();\r\n while (it.hasNext())\r\n {\r\n final String name = (String) it.next();\r\n map.put(new FactoryParameterKey(name), helperObjects.get(name));\r\n }\r\n\r\n final ResourceKey key = resourceManager.createKey(file, map);\r\n final Resource resource = resourceManager.create(key, contextKey, JFreeReport.class);\r\n return (JFreeReport) resource.getResource();\r\n }", "public JFreeReport parseReport(final URL file)\r\n throws IOException, ResourceException\r\n {\r\n return parseReport(file, file);\r\n }", "public void clearReports()\n {\n reports.clear();\n }", "public File getReportFile() {\r\n\t\treturn reportFile;\r\n\t}", "public void setReportFile(File file) {\n reportFile = file;\n }", "com.google.cloud.osconfig.v1alpha.VulnerabilityReport getVulnerabilityReports(int index);", "public HashMap<String, String> getReports(){\n HashMap<String, String> reports = new HashMap<>();\n reports.put(KEY_REPORTS, pref.getString(KEY_REPORTS, null));\n return reports;\n }", "public List<Integer> getReports(){\n\t\treturn reports;\n\t}", "public List<ReportDTO> getAllReports() {\r\n\r\n\t\tdateConverter = new DateConverter();\r\n\r\n\t\tList<Report> reports = (List<Report>) reportsRepository.findAll();\r\n\t\tList<ReportDTO> reportDTOs = new ArrayList<>();\r\n\r\n\t\tfor (Report report : reports) {\r\n\t\t\tReportDTO reportDTO = new ReportDTO();\r\n\t\t\treportDTO.setId(report.getId());\r\n\t\t\treportDTO.setCustomerName(report.getCustomer().getCustomerName());\r\n\t\t\treportDTO.setPlace(report.getPlace());\r\n\t\t\treportDTO.setOrderNumber(report.getOrderNumber());\r\n\t\t\treportDTO.setQualityLevel(report.getQualityLevel().getValue());\r\n\t\t\treportDTO.setTypeOfTesting(report.getTypeOfTesting());\r\n\t\t\treportDTO.setReportNumber(report.getReportNumber());\r\n\t\t\treportDTO.setExaminatedObject(report.getExaminatedObject());\r\n\t\t\treportDTO.setMeasuringEquipment(\r\n\t\t\t\t\treport.getMeasuringEquipment().getName() + \" \" + report.getMeasuringEquipment().getDeviceCode());\r\n\t\t\treportDTO.setTechnicalDocument(\r\n\t\t\t\t\treport.getTechnicalDocument().getNumber() + \" \" + report.getTechnicalDocument().getTitle());\r\n\r\n\t\t\treportDTO.setExaminationDate(dateConverter.createDateToString(report.getExaminationDate()));\r\n\t\t\treportDTO.setPerformer(report.getPerformer().getFirstName() + \" \" + report.getPerformer().getLastName());\r\n\t\t\treportDTO.setAprover(report.getPerformer().getFirstName() + \" \" + report.getPerformer().getLastName());\r\n\r\n\t\t\tList<ResultsOfExamination> resultsOfExaminations = resultsOfExaminationRepository.findByReport(report);\r\n\t\t\tList<ResultOfExaminationDTO> resultOfExaminationDTOs = new ArrayList<>();\r\n\r\n\t\t\tfor (ResultsOfExamination resultsOfExamination : resultsOfExaminations) {\r\n\t\t\t\tResultOfExaminationDTO resultOfExaminationDTO = new ResultOfExaminationDTO();\r\n\t\t\t\tresultOfExaminationDTO.setElementNumber(resultsOfExamination.getElementNumber());\r\n\t\t\t\tresultOfExaminationDTO\r\n\t\t\t\t\t\t.setDistanceFromReferencePoint(resultsOfExamination.getDistanceFromReferencePoint());\r\n\t\t\t\tresultOfExaminationDTO.setIndicationLength(resultsOfExamination.getIndicationLength());\r\n\t\t\t\tresultOfExaminationDTO.setImperfectionSymbol(resultsOfExamination.getImperfectionSymbol());\r\n\t\t\t\tresultOfExaminationDTO.setRemarks(resultsOfExamination.getRemarks());\r\n\t\t\t\tresultOfExaminationDTO.setResult(resultsOfExamination.getResult());\r\n\t\t\t\tresultOfExaminationDTOs.add(resultOfExaminationDTO);\r\n\t\t\t\treportDTO.setResultsOfExaminationtsList(resultOfExaminationDTOs);\r\n\t\t\t}\r\n\r\n\t\t\treportDTOs.add(reportDTO);\r\n\r\n\t\t}\r\n\t\treturn reportDTOs;\r\n\r\n\t}", "public Report getReport();", "public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }", "public void clearReports()\n\t{\n\t\treports.clear();\n\t}", "public JFreeReport parseReport(final String file)\r\n throws IOException, ResourceException\r\n {\r\n if (file == null)\r\n {\r\n throw new NullPointerException(\"File may not be null\");\r\n }\r\n\r\n return parseReport(new File(file));\r\n }", "java.util.List<com.google.cloud.osconfig.v1alpha.VulnerabilityReport> \n getVulnerabilityReportsList();", "@Override\n public List getReports(String orderBy, Long count, String fromDate, String toDate) {\n return null;\n }", "private void generateReports() {\r\n\t\tLOGGER.debug(\"Report generation trigerred\");\r\n\t\tgenerateIncomingReport();\r\n\t\tgenerateOutgoingReport();\r\n\t\tgenerateIncomingRankingReport();\r\n\t\tgenerateOutgoingRankingReport();\r\n\t\tLOGGER.debug(\"Report generation completed\");\r\n\t}", "public JFreeReport parseReport(final URL file, final URL contentBase)\r\n throws ResourceException\r\n {\r\n return parse(file, contentBase);\r\n }", "private static GetReportsResponse getReport(Analyticsreporting service) throws IOException {\n // Create the DateRange object.\n DateRange dateRange = new DateRange();\n dateRange.setStartDate(\"7DaysAgo\");\n dateRange.setEndDate(\"today\");\n\n // Create the Metrics object.\n Metric sessions = new Metric()\n .setExpression(\"ga:sessions\")\n .setAlias(\"sessions\");\n\n //Create the Dimensions object.\n Dimension browser = new Dimension()\n .setName(\"ga:browser\");\n\n // Create the ReportRequest object.\n ReportRequest request = new ReportRequest()\n .setViewId(VIEW_ID)\n .setDateRanges(Arrays.asList(dateRange))\n .setDimensions(Arrays.asList(browser))\n .setMetrics(Arrays.asList(sessions));\n\n ArrayList<ReportRequest> requests = new ArrayList<ReportRequest>();\n requests.add(request);\n\n // Create the GetReportsRequest object.\n GetReportsRequest getReport = new GetReportsRequest()\n .setReportRequests(requests);\n\n // Call the batchGet method.\n GetReportsResponse response = service.reports().batchGet(getReport).execute();\n\n // Return the response.\n return response;\n }", "@Nested\n public final JDependReports getReports() {\n return reports;\n }", "void printReport();", "@Override\n\tpublic List<File> getAll() {\n\t\t return getSession().\n\t createQuery(\"from File f\", File.class).\n\t getResultList();\n\t}", "@Path(\"/list\")\n @GET\n @Produces(XML)\n public Response getStorageReportList(){\n log.debug(\"Getting storage report list\");\n\n try {\n String xml = resource.getStorageReportList();\n return responseOkXml(xml);\n } catch (Exception e) {\n return responseBad(e);\n }\n }", "Iterable<TableReportEntry> getReportEntries(String reportId, AllTablesReportQuery query);", "@Override\n\tpublic List<HumanFile> findHumanFileAll() {\n\t\treturn HumanFileMapper.findHumanFileAll();\n\t}", "public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}", "private void buildReport() throws IOException {\n try (InputStream template = Thread.currentThread().getContextClassLoader().getResourceAsStream(TEMPLATE_DIR + \"/\" + TEMPLATE_NAME)) {\n reportDoc = Jsoup.parse(template, null, \"\");\n Element diffReportContainer = reportDoc.select(\".diffReport\").first();\n Element diffResultTable = diffReportContainer.select(\".diffResult\").first().clone();\n\n diffReportContainer.empty();\n\n for (SimpleImmutableEntry<String, List<File>> diffResult : fileDiffResults) {\n diffReportContainer.appendChild(getDiffTable(diffResultTable, diffResult));\n }\n }\n }", "public void generateReport(){\n String fileOutput = \"\";\n fileOutput += allCustomers()+\"\\n\";\n fileOutput += getNoAccounts()+\"\\n\";\n fileOutput += getTotalDeposits()+\"\\n\";\n fileOutput += accountsOfferingLoans()+\"\\n\";\n fileOutput += accountsReceivingLoans()+\"\\n\";\n fileOutput += customersOfferingLoans()+\"\\n\";\n fileOutput += customersReceivingLoans()+\"\\n\";\n System.out.println(fileOutput);\n writeToFile(fileOutput);\n }", "public static void generateReport()\n\t{\n\t\tlong time=System.currentTimeMillis();\n\t\tString reportPath=System.getProperty(\"user.dir\")+\"//automationReport//Report\"+time+\".html\";\n\t\t\n\t\thtmlreporter=new ExtentHtmlReporter(reportPath);\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlreporter);\n\t\t\n\t\tString username=System.getProperty(\"user.name\");\n\t\tString osname=System.getProperty(\"os.name\");\n\t\tString browsername=CommonFunction.readPropertyFile(\"Browser\");\n\t\tString env=CommonFunction.readPropertyFile(\"Enviornment\");\n\t\t\n\t\t\n\t\textent.setSystemInfo(\"User Name\", username);\n\t\textent.setSystemInfo(\"OS Name\", osname);\n\t\textent.setSystemInfo(\"Browser Name\", browsername);\n\t\textent.setSystemInfo(\"Enviornment\", env);\n\t\t\n\t\t\n\t\thtmlreporter.config().setDocumentTitle(\"Automation Report\");\n\t\thtmlreporter.config().setTheme(Theme.STANDARD);\n\t\thtmlreporter.config().setChartVisibilityOnOpen(true);\n \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 void printReport() {\n\t\tSystem.out.println(getReport());\n\t}", "@Override\n public List<ReportRecord> getReport() {\n List<ReportRecord> toReturn = new ArrayList<>();\n toReturn.addAll(this.records);\n // Sort by ski-pass check-date\n toReturn.sort((o1, o2) -> o1.getCheckDate().compareTo(o2.getCheckDate()));\n // Sort by ski-pass id-number\n Collections.sort(toReturn);\n return toReturn;\n }", "public List<IncomingReport> list() throws DAOException;", "protected Map<Report, Integer> getReports() {\n return reports;\n }", "public abstract void parseReport();", "@RequestMapping(method = RequestMethod.GET)\n public ModelAndView getReportPage() {\n ModelAndView modelAndView = new ModelAndView();\n modelAndView.setViewName(\"report\");\n modelAndView.addObject(\"performers\", reportService.getAllPerformers());\n return modelAndView;\n }", "@Override\r\n\tpublic List<Report> getReport(Agents agent, Date from, Date to) {\n\t\treturn null;\r\n\t}", "private static String loadReport(File microDocsReport) throws IOException {\n Logger.get().debug(\"Load \" + microDocsReport.getAbsolutePath());\n byte[] encoded = Files.readAllBytes(Paths.get(microDocsReport.toURI()));\n return new String(encoded);\n }", "public List<FileSummary> getAllSummary() {\n \n LOGGER.debug(\"Found total of {} records\", fileStatusRepository.count());\n \n List<FileSummary> summaries = StreamSupport.stream(fileStatusRepository.findAll().spliterator(), false)\n .map(e -> convertToSummary(e)).collect(Collectors.toList());\n\n return summaries;\n }", "public String getReport() {\n return reportDoc.toString();\n }", "@SuppressWarnings(\"unchecked\")\n protected List<File> getAllDocuments() {\n\n return (List<File>)stage.getProperties().get(GlobalConstants.ALL_DOCUMENTS_PROPERTY_KEY);\n }", "List<ReportSummary> getReportSummary(String reportType);", "public List<ReportData> getReportData() {\n return reportData;\n }", "@Override\n public void reportFiles(Observable<RepositoryStatusFileInformation> files) {\n \n }", "public void setup_report() {\n try {\n output = new PrintWriter(new FileWriter(filename));\n } catch (IOException ioe) {}\n }", "Report createReport();", "public Map<File, ArtifactDownloadReport> getDownloadReport() {\n return downloadReport;\n }", "@GET\n @Path(\"/pending-reports\")\n @Produces(\"application/json;charset=UTF-8\")\n @NoCache\n @RolesAllowed({ \"admin\" })\n public List<ReportVo> getPendingReports(@QueryParam(\"lang\") String lang) {\n return reportService.getPendingReports(lang);\n }", "@Override\r\n\tpublic List<Report> getAllReport(int firstRow, Integer pageSize,\r\n\t\t\tReportSearchVO reportSearchVO) throws SQLException {\n\t\treturn reportDao.getAllReport(firstRow, pageSize, reportSearchVO);\r\n\t}", "public void saveReport() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new FileOutputStream(reportFile));\n\t\t\tout.println(record.reportToString());\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void report() {\n\t\tfor (Plant p : plants) {\r\n\t\t\tp.list();\r\n\t\t}\r\n\t\tfor (Fish f: fishes) {\r\n\t\t\tf.list();\r\n\t\t}\r\n\t}", "public void summaryReport() {\r\n\r\n\t\tString strTimeStamp = new SimpleDateFormat(\"yyyy-MM-dd-HH-mm-ss\").format(new Date());\r\n\t\tString reportPath = new File(\"Report\").getAbsolutePath();\r\n\t\tint stepPassed = 0;\r\n\t\tint stepFailed = 0;\r\n\t\tString cssData = \"\";\r\n\r\n\t\ttry {\r\n\t\t\tString cssPath = new File(\"Report\\\\Style\\\\style.css\").getAbsolutePath();\r\n\t\t\tbufferedReader = new BufferedReader(new FileReader(cssPath));\r\n\r\n\t\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\t\tString line = bufferedReader.readLine();\r\n\t\t\twhile (line != null) {\r\n\t\t\t\tstringBuilder.append(line);\r\n\t\t\t\tstringBuilder.append(System.lineSeparator());\r\n\t\t\t\tline = bufferedReader.readLine();\r\n\t\t\t}\r\n\t\t\tcssData = stringBuilder.toString();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tLog.error(\"Exception occure in reading file\" + ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tbufferedReader.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tLog.error(\"Exception occure in reading file\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tFile HTMLDir = new File(reportPath + \"\\\\HTMLReport\");\r\n\t\tif (!HTMLDir.exists()) {\r\n\t\t\ttry {\r\n\t\t\t\tHTMLDir.mkdir();\r\n\t\t\t} catch (SecurityException ex) {\r\n\t\t\t\tLog.error(\"Error in creating HTMLReport directory\" + ex.getMessage());\r\n\t\t\t\t// log.error(\"Error in creating Detail directory\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tString htmlname = HTMLDir + \"\\\\\" + strTimeStamp + \".html\";\r\n\t\tString logoPath = new File(\"Report\\\\Style\\\\logo.png\").getAbsolutePath();\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstepFailed++;\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\t\t\t\tstepPassed++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tbufferedWriter = new BufferedWriter(new FileWriter(htmlname));\r\n\t\t} catch (IOException e) {\r\n\t\t\tLog.error(\"Error in wrinting the file\" + e.getMessage());\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<html><head><script type=\\\"text/javascript\\\" src=\\\"https://www.gstatic.com/charts/loader.js\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<script src=\\\"https://www.google.com/jsapi\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<style>\" + cssData);\r\n\t\tstrBufferReportAppend.append(\"</style>\");\r\n\t\tstrBufferReportAppend.append(\"</head><body>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td><img src=file:\\\\\\\\\" + logoPath + \"></td>\" + \"<td class=\\\"headertext\\\">\"\r\n\t\t\t\t+ reportHeader + \"</td>\");\r\n\r\n\t\tstrBufferReportAppend.append(\"</tr></table><hr></hr>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table cellpadding=3 cellspacing=1>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution Start Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrStartTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution End Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrEndTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Total TestSteps Executed</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t\t\t+ (stepFailed + stepPassed) + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 green\\\">Passed</td><td class=\\\"width50 green\\\">\" + stepPassed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 red\\\">Failed</td><td class=\\\"width50 red\\\">\" + stepFailed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"</td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<script type=\\\"text/javascript\\\">\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.load('current', {'packages':['corechart']});\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.setOnLoadCallback(drawDetailsChart);\");\r\n\t\tstrBufferReportAppend.append(\"function drawDetailsChart() {\");\r\n\t\tstrBufferReportAppend.append(\"var data = new google.visualization.DataTable();\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('string', 'Test Execution Detail Graph');\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('number', 'Count');\");\r\n\t\tstrBufferReportAppend.append(\"data.addRows([\");\r\n\t\tstrBufferReportAppend.append(\"['Passed',\" + stepPassed + \"],\");\r\n\t\tstrBufferReportAppend.append(\"['Failed',\" + stepFailed + \"]]);\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var options = {'title':'Test Step Details Graph',colors: ['#12C909', '#C3100A'],pieHole: 0.3,\");\r\n\t\tstrBufferReportAppend.append(\"'width':300,\");\r\n\t\tstrBufferReportAppend.append(\"'height':170};\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var chart = new google.visualization.PieChart(document.getElementById('detailsChart_div'));\");\r\n\t\tstrBufferReportAppend.append(\"chart.draw(data, options); } </script>\");\r\n\t\tstrBufferReportAppend.append(\"<div id=\\\"detailsChart_div\\\"></div>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table><hr></hr></td></tr>\");\r\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<FileDTO> findAll() {\n log.debug(\"Request to get all Files\");\n return fileRepository.findAll().stream().map(FileMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public void makeReport() throws IOException{\n File report = new File(\"Report.txt\");\n BufferedWriter reportWriter = new BufferedWriter(new FileWriter(report));\n BufferedReader bookReader = new BufferedReader(new FileReader(\"E-Books.txt\"));\n String current;\n while((current = bookReader.readLine()) != null ){\n String[] tokens = current.split(\",\");\n reportWriter.write(tokens[0].trim()+\" for \"+tokens[1].trim()+\" with redemption Code \"+tokens[2].trim()+\n \" is assigned to \"+tokens[4].trim()+\" who is in \"+tokens[5].trim()+\" grade.\");\n reportWriter.write(System.lineSeparator());\n reportWriter.flush();\n }\n reportWriter.close();\n bookReader.close();\n new reportWindow();\n }", "private static final StringBuffer loadFile(File file) throws IOException {\n StringBuffer buffer = null;\n \n if ((file != null) && file.exists()) {\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(new FileReader(file));\n buffer = new StringBuffer();\n String currentLine = null;\n while ((currentLine = reader.readLine()) != null) {\n buffer.append(currentLine);\n }\n } catch (IOException ioex) {\n System.out.println(\"Unable to load report file: \" + file.getAbsolutePath());\n buffer = null;\n } finally {\n if (reader != null) reader.close(); \n }\n }\n \n return buffer;\n }", "public RouteLegCache.Report getReport() {\n\n return RouteLegCache.Report.builder()\n .cacheSize(cache.size())\n .build();\n }", "@Override\n public List<ReporteAccidente> getAll() {\n return (List<ReporteAccidente>) repr.findAll();\n }", "public void deletePendingReports() {\r\n String[] filesList = getCrashReportFilesList();\r\n if (filesList != null) {\r\n for (String fileName : filesList) {\r\n new File(mContext.getFilesDir(), fileName).delete();\r\n }\r\n }\r\n }", "public void showReport() throws FileNotFoundException{\n String reportName = \"configuration_site\";\n String reportDefFileName=\"report/defination\"+File.separator+reportName+\".jasper\";\n \n try {\n \t\n \t//Get a stream to read the file\n // InputStream is = new FileInputStream(reportDefFileName);\n \n //Fill the report with parameter, connection and the stream reader \n JasperPrint jp = JasperFillManager.fillReport(reportDefFileName, null, conn);\n \n //Viewer for JasperReport\n JRViewer jv = new JRViewer(jp);\n \n //Insert viewer to a JFrame to make it showable\n JFrame jf = new JFrame();\n jf.getContentPane().add(jv);\n jf.validate();\n jf.setVisible(true);\n jf.setSize(new Dimension(800,600));\n jf.setLocation(300,100);\n jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n } catch (JRException ex) {\n ex.printStackTrace();\n }\n }", "private void processReportFiles()\r\n {\r\n writeToLogFile(\" \");\r\n int fileCount = 0, successCount = 0;\r\n accountCount = 0;\r\n failedAccountCount = 0;\r\n boolean first = true;\r\n try\r\n {\r\n // Process report files directory\r\n File directory = new File(dropDir);\r\n File[] fileArray = directory.listFiles();\r\n for (int i = 0; i < fileArray.length; i++)\r\n {\r\n // process the file and move to processed directory if successful\r\n File reportFile = fileArray[i];\r\n String pathname = reportFile.getAbsolutePath();\r\n String filename = reportFile.getName();\r\n if (processedReportFile(reportFile))\r\n {\r\n File rfMove = new File(procDir+BACKSLASH+filename);\r\n if (!reportFile.renameTo(rfMove))\r\n writeToLogFile(\"failed to move processed report file: \"+pathname);\r\n successCount++;\r\n }\r\n fileCount++;\r\n }\r\n writeToLogFile(\" \");\r\n // summarise report files processed in log file\r\n if (fileCount==0)\r\n {\r\n writeToLogFile(\"No report files in drop directory\");\r\n System.out.println(\"No report files in drop directory\");\r\n }\r\n else\r\n {\r\n if (!((accountCount==0)&&(failedAccountCount==0)))\r\n {\r\n writeToLogFile(\"No account FTP requests : \"+accountCount);\r\n if (failedAccountCount>0)\r\n writeToLogFile(\"No failed account FTP requests : \"+failedAccountCount);\r\n }\r\n writeToLogFile(\" \");\r\n String finalMessage = successCount + \" report file\";\r\n if (successCount>1)\r\n finalMessage = finalMessage + \"s\";\r\n finalMessage = finalMessage + \" out of \" + fileCount + \" successfully processed\";\r\n System.out.println(finalMessage);\r\n writeToLogFile(finalMessage);\r\n }\r\n writeToLogFile(\" \");\r\n\r\n }\r\n catch(Exception ex)\r\n {\r\n writeToLogFile(\"Error in processReportFiles : \" + ex.getMessage());\r\n }\r\n }", "public String getReportXMLFile() {\n return reportXMLFile;\n }", "@Postprocess\n public void getReport() {\n try {\n BufferedWriter bufferWriter = new BufferedWriter(new FileWriter(logfile, false));\n if (!results.isEmpty()) {\n bufferWriter.write(\"===========================================================\\n\");\n bufferWriter.write(\"sys_milli,\\t\\tdb_micro,\\t\\ttime_diff\\n\");\n Collections.sort(results);\n for (MysqlheartbeatBean mhb : results) {\n bufferWriter.write(String.valueOf(mhb.getSysMilli()) + \",\\t\\t\"\n + String.valueOf(mhb.getDbMicro()) + \",\\t\\t\"\n + String.valueOf(mhb.getDbMicro() - mhb.getSysMilli()) + \"\\n\");\n }\n bufferWriter.flush();\n }\n bufferWriter.close();\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"{0}: {1}\", new Object[]{toolName, ex.getMessage()});\n }\n }", "@Transactional\n\n\t@Override\n\tpublic Collection<FileModel> getAll() {\n\t\treturn fm.findAll();\n\t}", "public final File getReportingConfig() {\n\t\treturn configFile;\n\t}", "@Override\r\n\tpublic List<Report> getUserReportList(int userId) {\n\t\treturn reportMapper.selByUserId(userId);\r\n\t}", "void outputReport(RandomAccessFile reportFile, boolean last) {\n\n String line1 = \"----+---------+----------+----------+---+----------+\" +\n \"----------+----------+----------+\" +\n \"---------------------------------------------+\";\n String line2 = \"----+---------+------------+----------+---------------------+\" +\n \"---------+----------+----------+--------------------+--------+\" +\n \"-----+-----+-----+\";\n\n if (dbg3) System.out.println(\"outputReport: station.getStationId() = *\" +\n station.getStationId(\"\") + \"*\");\n if (\"\".equals(station.getStationId(\"\"))) { // only done formats 01/02 -> survey data only\n\n //display the survey data }\n //ec.writeFileLine(reportFile, \"----+---------+----------+----------\" +\n // \"+---+----------+----------+----------+----------+----------\" +\n // \"------------------------------+\");\n ec.writeFileLine(reportFile, line1);\n ec.writeFileLine(reportFile, \"dup.|Survey |Platform | \" +\n \"| | | | | | \" +\n \" |\");\n ec.writeFileLine(reportFile, \"code|Id |Name |Expedition\" +\n \"|Ins|Proj Name |Area Name |Domain |Platform |Notes \" +\n \" |\");\n ec.writeFileLine(reportFile, line1);\n\n ec.writeFileLine(reportFile, surveyStatus + \" |\" + //j24\n ec.frm(survey.getSurveyId(\"\"),9) + \"|\" +\n ec.frm(survey.getPlanam(\"\"),10) + \"|\" +\n ec.frm(survey.getExpnam(\"\"),10) + \"|\" +\n ec.frm(survey.getInstitute(\"\"),03) + \"|\" +\n ec.frm(survey.getPrjnam(\"\"),10) + \"|\" +\n ec.frm(inventory.getAreaname(\"\"),10)+ \"|\" +\n ec.frm(inventory.getDomain(\"\"),10) + \"|\" +\n ec.frm(\" \",10) + \"|\" +\n //survey.getPlatfm() + \"|\" +\n ec.frm(survey.getNotes1(\"\"),45) + \"|\");\n\n // write to station file - keep place for actual output\n if (loadFlag) {\n try {\n stnFile.writeBytes(\"\");\n headerPos1 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n headerPos2 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n headerPos3 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n } catch (Exception e) {\n ec.processError(e, thisClass, \"outputReport\", \"Header Pos Error\");\n } // try-catch\n } // if (loadFlag)\n\n\n if (surveyLoaded) { // display details of loaded survey //j24\n // get the old inventory record\n MrnInventory tInventory[] =\n new MrnInventory(survey.getSurveyId()).get();\n\n ec.writeFileLine(reportFile, \"lod |\" +\n ec.frm(tSurvey[0].getSurveyId(\"\"),9) + \"|\" +\n ec.frm(tSurvey[0].getPlanam(\"\"),10) + \"|\" + //j24\n ec.frm(tSurvey[0].getExpnam(\"\"),10) + \"|\" + //j24\n ec.frm(tSurvey[0].getInstitute(\"\"),03) + \"|\" + //j24\n ec.frm(tSurvey[0].getPrjnam(\"\"),10) + \"|\" + //j24\n ec.frm(tInventory[0].getAreaname(\"\"),10) + \"|\" + //j24\n ec.frm(tInventory[0].getDomain(\"\"),10) + \"|\" + //j24\n ec.frm(\" \",10) + \"|\" +\n //tSurvey[0].getPlatfm() + \"|\" + //j24\n ec.frm(tSurvey[0].getNotes1(\"\"),45) + \"|\"); //j24\n } // if (survey_loaded)\n\n ec.writeFileLine(reportFile, line1);\n ec.writeFileLine(reportFile, \" \");\n\n ec.writeFileLine(reportFile, line2);\n ec.writeFileLine(reportFile, \"dup.| | | |\" +\n \" | | | |\" +\n \" | | Records |\");\n ec.writeFileLine(reportFile, \"code| Surv Id | Station Id | StnNam |\" +\n \" Date Time GMT | Latitude| Longitude| Subdes(s)|\" +\n \" Sample depth range | StnDep | Tot.| O.K.| Rej |\");\n ec.writeFileLine(reportFile, line2);\n } else { // if (\"\".equals(station.getStationId(\"\")))\n\n\n if (dbg) System.out.println(\"<br>outputReport: tStation.length = \" +\n tStation.length);\n\n int stationSampleOKCount = stationSampleCount - stationSampleRejectCount;\n ec.writeFileLine(reportFile, stationStatusLD + \" |\" + //j24\n ec.frm(\" \",9) + \"|\" +\n ec.frm(station.getStationId(),12) + \"|\" +\n ec.frm(station.getStnnam(),10) + \"| \" +\n //station.getDatum + \"| \" +\n ec.frm(startDateTime,20) + \"|\" +\n ec.frm(station.getLatitude(),9,5) + \"|\" +\n ec.frm(station.getLongitude(),10,5) + \"|\" +\n ec.frm(subdes,10) + \"|\" +\n ec.frm(depthMin + \" to \" + depthMax,20) + \"|\" +\n ec.frm(station.getStndep(),8,2) + \"|\" +\n ec.frm(stationSampleCount,5) + \"|\" +\n ec.frm(stationSampleOKCount,5) + \"|\" +\n ec.frm(stationSampleRejectCount,5) + \"|\");\n if (!loadFlag) {\n ec.writeFileLine(workFile, ec.frm(station.getStationId(),12) +\n ec.frm(stationSampleCount,5));\n } // if (!loadFlag)\n\n if (stationExists) { // || (!\"new\".equals(stationStatusLD))) {\n for (int i = 0; i < tStation.length; i++) {\n int tmpRecordCount = 0;\n if (dataType == CURRENTS) {\n tmpRecordCount = currentsRecordCountArray[i];\n } else if (dataType == SEDIMENT) {\n tmpRecordCount = sedphyRecordCountArray[i];\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpRecordCount = watphyRecordCountArray[i];\n } // if (dataType == CURRENTS)\n\n String subdesLocal = subdesArray[i][0];\n for (int j = 1; j < MAX_SUBDES; j++) {\n subdesLocal += (!\"\".equals(subdesArray[i][j]) ?\n \"/\"+subdesArray[i][j] : \"\");\n } // for int (j = 1; j < MAX_SUBDES; j++)\n if (stationExistsArray[i]) {\n ec.writeFileLine(reportFile, stationStatusDB[i] + \" |\" +\n ec.frm(tStation[i].getSurveyId(),9) + \"|\" +\n ec.frm(tStation[i].getStationId(),12) + \"|\" +\n ec.frm(tStation[i].getStnnam(\"\"),10) + \"| \" +\n //tStation[i].getDateStart(\"\"), \"| \",\n ec.frm(spldattimArray[i],20) + \"|\" +\n ec.frm(tStation[i].getLatitude(),9,5) + \"|\" +\n ec.frm(tStation[i].getLongitude(),10,5) + \"|\" +\n //ec.frm(subdesArray[i],5) + \"|\" +\n ec.frm(subdesLocal,10) + \"|\" +\n ec.frm(loadedDepthMin[i] + \" to \" + loadedDepthMax[i],20) + \"|\" +\n ec.frm(tStation[i].getStndep(),8,2) + \"|\" +\n ec.frm(tmpRecordCount,5) + \"| | |\");\n } // if (stationExistsArray[i])\n } // for (int i = 0; i < tStation.length; i++)\n } // if (stationExists || (!\"new\".equals(stationStatusDB))\n ec.writeFileLine(reportFile, \"\");\n\n // write to station file\n if (loadFlag) {\n ec.writeFileLine(stnFile, \"'\" +\n ec.frm(station.getStationId(\"\"),12) + \"' '\" +\n station.getDateStart(\"\").substring(0,10) + \"' \" +\n ec.frm(station.getLatitude(),11,5) + \" \" +\n ec.frm(station.getLongitude(),11,5) + \" \" +\n ec.frm(ec.nullToNines(station.getStndep(),9999.0f),10,2) + \" '\" +\n ec.frm(station.getStnnam(\"\"),10) + \"'\");\n } // if (loadFlag)\n\n\n if (last) {\n //ec.writeFileLine(reportFile, \"last\");\n\n int sampleOKCount = sampleCount - sampleRejectCount;\n //ec.writeFileLine(reportFile, \"----+------------+----------\" +\n // \"+---------------------+---------+----------+-----+---\" +\n // \"-----------------+--------+-----------------+\");\n ec.writeFileLine(reportFile, line2);\n ec.writeFileLine(reportFile, \" ^\"); //j24//\n ec.writeFileLine(reportFile, \" |\"); //j24//\n ec.writeFileLine(reportFile, \" +--new = new record\"); //j24//\n ec.writeFileLine(reportFile, \" dup = new record is a duplicate record\"); //j24//\n //ec.writeFileLine(reportFile, \" lod = existing record\"); //j24//\n ec.writeFileLine(reportFile, \" did = duplicate station-id - different SUBDES\"); //k46//\n ec.writeFileLine(reportFile, \" dis = duplicate station-id - same SUBDES\"); //u02//\n ec.writeFileLine(reportFile, \" dia = duplicate station-id - different SUBDES: data added\");//u02//\n ec.writeFileLine(reportFile, \" dij = ignored station - matched existing station record - did\"); //k46//\n ec.writeFileLine(reportFile, \" dip = data records replaced for existing station record - did\"); //k46//\n ec.writeFileLine(reportFile, \" dsd = duplicate station record - different SUBDES\"); //k46//\n ec.writeFileLine(reportFile, \" dss = duplicate station record - same SUBDES\"); //u02//\n ec.writeFileLine(reportFile, \" dsa = duplicate station record - different SUBDES: data added\");\n ec.writeFileLine(reportFile, \" dsj = ignored station - matched existing station record - dsd\"); //k46//\n ec.writeFileLine(reportFile, \" dsp = data records replaced for existing station record - dsd\"); //k46//\n\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"This data was \" +\n (loadFlag ? \"loaded\" : \"checked\") + \" with the following ranges:\");\n ec.writeFileLine(reportFile, \" Area: \" + areaRangeVal + \" (decimal degrees)\");\n ec.writeFileLine(reportFile, \" Time: \" + timeRangeVal + \" (minutes)\");\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n ec.writeFileLine(reportFile, \"Closing statistics - survey_id: \" +\n survey.getSurveyId());\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of lines - \" +\n ec.frm(lineCount,6));\n ec.writeFileLine(reportFile, \" Fatal Errors - \" +\n ec.frm(fatalCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of stations - \" +\n ec.frm(stationCount,6));\n ec.writeFileLine(reportFile, \" New - \" +\n ec.frm(newStationCount,6));\n ec.writeFileLine(reportFile, \" Dup - \" +\n ec.frm((stationCount-newStationCount),6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Duplicate Station-id (DI)\");\n ec.writeFileLine(reportFile, \" DI: diff SUBDES (DID) - \" +\n ec.frm(didCount,6));\n ec.writeFileLine(reportFile, \" DI: same SUBDES (DIS) - \" +\n ec.frm(disCount,6));\n ec.writeFileLine(reportFile, \" DI: diff SUBDES added (DIA) - \" +\n ec.frm(diaCount,6));\n ec.writeFileLine(reportFile, \" DI's Rejected (DIJ) - \" +\n ec.frm(dijCount,6));\n ec.writeFileLine(reportFile, \" DI's Replaced (DIP) - \" +\n ec.frm(dipCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Duplicate Station (DS)\");\n ec.writeFileLine(reportFile, \" DS: diff SUBDES (DSD) - \" +\n ec.frm(dsdCount,6));\n ec.writeFileLine(reportFile, \" DS: same SUBDES (DSS) - \" +\n ec.frm(dssCount,6));\n ec.writeFileLine(reportFile, \" DS: diff SUBDES added (DSA) - \" +\n ec.frm(dsaCount,6));\n ec.writeFileLine(reportFile, \" DS's Rejected (DSJ) - \" +\n ec.frm(dsjCount,6));\n ec.writeFileLine(reportFile, \" DS's Replaced (DSP) - \" +\n ec.frm(dspCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of Samples - \" +\n ec.frm(sampleCount,6));\n ec.writeFileLine(reportFile, \" OK - \" +\n ec.frm(sampleOKCount,6));\n ec.writeFileLine(reportFile, \" Rejected - \" +\n ec.frm(sampleRejectCount,6));\n ec.writeFileLine(reportFile, \" \");\n java.text.SimpleDateFormat formatter =\n new java.text.SimpleDateFormat (\"yyyy-MM-dd\");\n ec.writeFileLine(reportFile, \" date range - \" +\n formatter.format(dateMin) + \" to \" + formatter.format(dateMax));\n ec.writeFileLine(reportFile, \" latitude range - \" +\n ec.frm(latitudeMin,10,5) + \" to \" + ec.frm(latitudeMax,10,5));\n ec.writeFileLine(reportFile, \" longitude range - \" +\n ec.frm(longitudeMin,10,5) + \" to \" + ec.frm(longitudeMax,10,5));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n\n if (loadFlag) {\n ec.writeFileLine(reportFile, \" \");\n\n if (fatalCount > 0) {\n ec.writeFileLine(reportFile,\n \" THERE ARE FATAL ERRORS - THIS LOAD IS UNSUCCESSFUL \");\n ec.writeFileLine(reportFile,\n \" ================================================== \");\n ec.writeFileLine(reportFile,\n \" As some data has been loaded, it is necessary to remove it\\n\" +\n \" by running the 'Delete a survey' option on the SADCO website\\n\" +\n \" located in the 'Marine Database: Admin / Load Data' menu options\");\n } else { // if (fatalCount > 0)\n Timestamp loadDate = new Timestamp(new java.util.Date().getTime());\n ec.writeFileLine(reportFile, \" LOAD SUCCESSFUL \");\n ec.writeFileLine(reportFile, \" =============== \");\n ec.writeFileLine(reportFile, \" date loaded: \" +\n formatter.format(loadDate));\n\n if (dataType != CURRENTS) {\n ec.writeFileLine(reportFile, \" \" + DATA_TYPE[dataType] +\n \" code range - \" + dataCodeStart + \" to \" + dataCodeEnd);\n } // if (dataType != CURRENTS)\n\n ec.writeFileLine(reportFile, \" \");\n if (\"\".equals(passkey)) {\n ec.writeFileLine(reportFile, \" This data is NOT flagged \");\n } else {\n ec.writeFileLine(reportFile, \" This data is FLAGGED \");\n } // if (p_station.passkey is NULL)\n } // if (fatalCount > 0)\n\n // write header to station file\n String lineA =\n \"'MARINE' \" +\n ec.frm((int) latitudeMin,4) +\n ec.frm((int) (latitudeMax+1f),4) +\n ec.frm((int) longitudeMin,4) +\n ec.frm((int) (longitudeMax+1f),4) + \" '\" +\n dateMin.toString().substring(0,10) + \"' '\" +\n dateMax.toString().substring(0,10) + \"' 'STATIONS'\";\n String lineB = \"'\" + survey.getSurveyId(\"\") +\n \"' \" + stationCount + \" '\" +\n platformName + \"' '\" +\n projectName + \"' '\" +\n expeditionName + \"'\";\n String lineC = \"'\" + instituteName + \"'\";\n try {\n stnFile.seek(headerPos1);\n stnFile.writeBytes(lineA);\n stnFile.seek(headerPos2);\n stnFile.writeBytes(lineB);\n stnFile.seek(headerPos3);\n stnFile.writeBytes(lineC);\n } catch (Exception e) {\n System.out.println(\"<br>\" + thisClass +\n \".printHeader: Write Error: \" + e.getMessage());\n e.printStackTrace();\n } // try-catch\n\n } // if (loadflag)\n\n Timestamp loadDate = new Timestamp(new java.util.Date().getTime());\n String text = (loadFlag ? \"loaded\" : \"checked\");\n ec.writeFileLine(reportFile, \" date \" + text + \": \" +\n formatter.format(loadDate));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n } // if (last)\n\n } // if (\"\".equals(station.getStationId(\"\")))\n\n\n //ec.writeFileLine(reportFile, message);\n //if (dbg) System.out.println(\"outputReport: message = \" + message);\n // output to screen or file\n }", "@Override\n public synchronized void close() {\n closeReportFile();\n }", "private void SummaryReport()\n {\n System.out.println(\"\\n\\n***********************************************************************\");\n System.out.println(\"* CodeScanner Summary Report\");\n System.out.println(\"*\");\n System.out.println(\"* Run Date: \" + new SimpleDateFormat(\"yyyy.MM.dd HH:mm:ss\").format(new Date()));\n System.out.println(\"* Yaml File: \" + confFileName);\n System.out.println(\"* Code Path: \" + startPath);\n System.out.println(\"*\");\n System.out.println(\"* Dir include pattern: \" + dirIncludePattern.toString());\n System.out.println(\"* Dir exclude pattern: \" + dirExcludePattern.toString());\n System.out.println(\"* Directories scanned: \" + dirCount);\n System.out.println(\"* Directories matched: \" + dirMatchCount);\n System.out.println(\"* Dir Line matched: \" + dirLineMatchCount);\n System.out.println(\"*\");\n System.out.println(\"* File include pattern: \" + fileIncludePattern.toString());\n System.out.println(\"* File exclude pattern: \" + fileExcludePattern.toString());\n System.out.println(\"* Files scanned: \" + fileCount);\n System.out.println(\"* Files matched: \" + fileMatchCount);\n System.out.println(\"* Files Line matched: \" + fileLineMatchCount);\n System.out.println(\"*\");\n System.out.println(\"* Line replace pattern: \" + lineFindReplace.toString());\n System.out.println(\"* Line include pattern: \" + lineIncludePattern.toString());\n System.out.println(\"* Line exclude pattern: \" + lineExcludePattern.toString());\n System.out.println(\"* Lines replaced: \" + totalReplaceCount);\n System.out.println(\"* Lines scanned: \" + totalLineCount);\n System.out.println(\"* Lines matched: \" + lineMatchCount);\n System.out.println(\"*\");\n System.out.println(\"* Distinct Matching URLs Found\");\n\n for (String url : distinctURLs.values())\n {\n String ipAddress = \"\";\n try\n {\n InetAddress address = InetAddress.getByName(new URL(\"https://\" + url).getHost());\n ipAddress = address.getHostAddress();\n\n }\n catch(Exception ex)\n {\n ipAddress = \"not found\";\n }\n\n System.out.println(\"* \" + url + \" (\" + ipAddress + \")\");\n }\n\n System.out.println(\"*\");\n System.out.println(\"***********************************************************************\");\n }", "private void downloadReport() {\n // Get Employees and Tasks\n ArrayList<Employee> inUnit = Main.getEmployeesInUnit();\n ArrayList<Task> allTasks = Main.getAllTasks();\n\n // Create BufferedWriter Object\n String fileName = fileDate.format(new Date()) + \"_report.csv\";\n BufferedWriter writer = null;\n try {\n writer = new BufferedWriter(new FileWriter(fileName));\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"Filename already exists.\");\n }\n\n try {\n // Write Header\n writer.write(\n \"Task ID,Task Description,Employee ID, Employee Name, WiGrow Needed, Incomplete Scheduling, Exception Report Needed\\n\");\n // Look through employee and their task\n for (int i = 0; i < inUnit.size(); ++i) {\n Employee current = inUnit.get(i);\n for (int j = 0; j < allTasks.size(); ++j) {\n Task currentTask = allTasks.get(j);\n // If found, write to file\n if (currentTask.getEmployees().contains(current)) {\n writer.write(currentTask.getID() + \",\" + currentTask.getDescription() + \",\"\n + current.getId() + \",\" + current.getName() + \",\" + current.isWiGrow() + \",\"\n + current.isScheduling() + \",\" + current.isExceptionReport() + \"\\n\");\n }\n }\n }\n writer.close();\n } catch (IOException e) {\n // Do nothing\n\n }\n // Alert pop up\n Alert downloadSuccess = new Alert(AlertType.NONE, \"Successfully Downloaded Report! It is named \"\n + fileName + \" and is located in your program's local directory.\");\n downloadSuccess.setTitle(\"Download File\");\n downloadSuccess.getButtonTypes().add(ButtonType.OK);\n downloadSuccess.showAndWait();\n }", "boolean generateReport();", "public ArrayList<ArrayList<Double>> getReportsFromServer(LocalDate date)\n {\n\t //Go to DB and ask for reports of a specific date\n\t return null;\n }", "public static void createResponseReportTxt(String fileName) {\r\n\t\t\ttry {\r\n\t\t\tConnector con = new Connector();\r\n\t\t\tcon.connect();\r\n\t\t\t\r\n\t\t\tResultSet resultSet = con.MakeQuery(\"SELECT \\\"studentEmail\\\" FROM \\\"\" + fileName+\"\\\"\");\r\n\t\t\t\r\n\t\t\twhile(resultSet.next()) {\r\n\t\t\t\tString email = resultSet.getString(1);\r\n\t\t\t\temail = email.substring(0, 6);\r\n\t\t\t\tString userHomePath = System.getProperty(\"user.home\");\r\n\t\t\t\tFile gradeReport = new File(userHomePath+\"\\\\Documents\\\\Reports\\\\Responses\\\\\"+fileName+ email+\".answers.txt\");\r\n\t\t\t\tif (gradeReport.createNewFile()){\r\n\t\t \t}else{\r\n\t\t \t}\r\n\t\t\t}\r\n\t \t\t \r\n\t\t\t//Change file to where ever Harris wants\r\n\t\t\t//userHomePath is the default user default account \r\n\t\t\t//Ex. C:\\Users\\as12660\r\n\t\t\r\n\t \t} catch (IOException e) {\r\n\t \t\te.printStackTrace();\r\n\t \t} catch (Exception ie) {\r\n\t \t\tie.printStackTrace();\r\n\t\t}\r\n\t}", "synchronized static public Report getReport() {\n return new Report(\n collectedEntrys,\n collectables.stream().sorted((a, b) -> a.collectableSince.compareTo(b.collectableSince))\n .collect(Collectors.toList()));\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}", "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}", "@Override\n @Transactional(readOnly = true)\n public Page<CaseReport> findAll(Pageable pageable) {\n log.debug(\"Request to get all CaseReports\");\n return caseReportRepository.findAll(pageable);\n }", "private List<FilePath> locateBumbleBeeReports(final FilePath workspace,\n\t\t\tfinal String includes) throws IOException, InterruptedException {\n\n\t\t// First use ant-style pattern\n\t\ttry {\n\t\t\tfinal FilePath[] ret = workspace.list(includes);\n\t\t\tif (ret.length > 0) {\n\t\t\t\treturn Arrays.asList(ret);\n\t\t\t}\n\t\t} catch (final IOException e) {\n\t\t\t// Do nothing.\n\t\t}\n\n\t\t// If it fails, do a legacy search\n\t\tfinal ArrayList<FilePath> files = new ArrayList<FilePath>();\n\t\tfinal String parts[] = includes.split(\"\\\\s*[;:,]+\\\\s*\");\n\t\tfor (final String path : parts) {\n\t\t\tfinal FilePath src = workspace.child(path);\n\t\t\tif (src.exists()) {\n\t\t\t\tif (src.isDirectory()) {\n\t\t\t\t\tfiles.addAll(Arrays.asList(src.list(\"**/*\")));\n\t\t\t\t} else {\n\t\t\t\t\tfiles.add(src);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn files;\n\t}", "private int processFile(File reportFile, Calendar minRange, Calendar maxRange, boolean ignoreHour, boolean doInsert, List<Document> returnList) {\r\n\t\tint count = 0;\r\n\t\tboolean isV9 = false; // ReportingService uses v9, report loaded fom UI has different columns, this helps distinguish the origin of file \r\n\t\ttry {\r\n\t\t\tcsvReader = new CSVReader(new FileReader(reportFile));\r\n\t\t\tboolean isHeaderFooter = true;\r\n\t\t\tString[] row = null;\r\n\t\t\tint rows = 0;\r\n\t\t\tString[] headers = null;\r\n\t\t\twhile ((row = csvReader.readNext()) != null) {\r\n\t\t\t\t// skip prologue / footer (both separated from data by empty row)\r\n\t\t\t\tif (row.length == 0 || (row.length == 1 && \"\".equals(row[0]))) {\r\n\t\t\t\t\tisHeaderFooter = !isHeaderFooter;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif (!isHeaderFooter) {\r\n\t\t\t\t\tif (headers == null) {\r\n\t\t\t\t\t\theaders = row;\r\n\t\t\t\t\t\tbuildHeaderIndexes(headers);\r\n\t\t\t\t\t\tStringBuilder dbgPrint = new StringBuilder(reportFile.getName()+\": Available report columns: \");\r\n\t\t\t\t\t\tfor (String h : headers) {\r\n\t\t\t\t\t\t\tif (\"AdGroupName\".equals(h)) { // UI downloaded file will contain \"Ad Group name\" instead\r\n\t\t\t\t\t\t\t\tisV9 = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tdbgPrint.append(h).append(\", \");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tLOG(dbgPrint.toString());\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\trows++;\r\n\t\t\t\t\tDocument document = isV9 ? buildDocumentBingReport(row, minRange, maxRange) : _buildDocumentBingReport(row, minRange, maxRange);\r\n\t\t\t\t\tif (!doInsert) {\r\n\t\t\t\t\t\tsetIdsIfRequired(document);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfillIdsIfRequired(document);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (doInsert && isDocumentInTimeRange(document, minRange, maxRange, ignoreHour)) {\r\n\t\t\t\t\t\tif (returnList != null) {\r\n\t\t\t\t\t\t\treturnList.add(document);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!checkDuplicate(document)) {\r\n\t\t\t\t\t\t\t\tinsertDocument(document);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tLOG(reportFile.getName()+\" downloaded rows: \"+rows+\", unique, in obsWindow rows: \"+count);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public List<PhpUnitTestReport> readSuite(TestSuite testSuite, String parentFileName) {\n List<PhpUnitTestReport> result = new ArrayList<PhpUnitTestReport>();\n List<TestSuite> testSuites = testSuite.getTestSuites();\n if (testSuites != null) {\n for (TestSuite childSuite : testSuites) {\n readSuite(childSuite, testSuite.getFile());\n }\n }\n // For all cases\n List<TestCase> testCases = testSuite.getTestCases();\n if (testCases != null) {\n for (TestCase testCase : testCases) {\n String testClassName = testCase.getClassName();\n // FIXME bug in phpunit for test cases with @dataProvider. Format is incorrect,\n // we get the fileName in the enclosing testSuite in the name attribute before string \"::\"\n if (testClassName == null) {\n String name = testSuite.getName();\n int testSuiteClassIndex = name.indexOf(TESTSUITE_CLASS_NAME_SEPARATOR);\n if (testSuiteClassIndex > 0) {\n testClassName = name.substring(0, testSuiteClassIndex);\n }\n }\n PhpUnitTestReport report = reportsPerClass.get(testClassName);\n // If no reports exists for this class we create one\n if (report == null) {\n report = new PhpUnitTestReport();\n report.setDetails(new ArrayList<TestCase>());\n report.setClassKey(testClassName);\n String file = testCase.getFile();\n // FIXME bug in phpunit for test cases with @dataProvider. Format is incorrect,\n // we get the file name in the parent test suite.\n if (file == null) {\n file = parentFileName;\n }\n report.setFile(file);\n // and add it to the map\n reportsPerClass.put(testClassName, report);\n }\n if (parentFileName == null) {\n report.setTime(testSuite.getTime());\n }\n cumulateTestCaseDetails(testCase, report);\n }\n }\n result.addAll(reportsPerClass.values());\n return result;\n }" ]
[ "0.7416134", "0.68650347", "0.6748312", "0.6728715", "0.6502306", "0.6373689", "0.63414276", "0.6245501", "0.62184775", "0.618956", "0.61651504", "0.61561507", "0.6120524", "0.610771", "0.61034304", "0.610069", "0.60766184", "0.6068765", "0.6048423", "0.60435367", "0.60388803", "0.60133123", "0.6008236", "0.5962381", "0.5951744", "0.5941475", "0.5925349", "0.5924981", "0.5904278", "0.5891309", "0.5879677", "0.58601266", "0.585667", "0.5830685", "0.5812023", "0.5805117", "0.5802204", "0.580074", "0.57890373", "0.5763747", "0.57418054", "0.57404727", "0.5738542", "0.57196003", "0.5688078", "0.5685951", "0.56704146", "0.56567156", "0.56511873", "0.5648319", "0.56201136", "0.5612973", "0.56053513", "0.5589411", "0.55880016", "0.5585509", "0.5565431", "0.55552274", "0.55492735", "0.55363846", "0.55313295", "0.55272734", "0.551352", "0.5505524", "0.55042607", "0.5486051", "0.54831177", "0.5481022", "0.5471499", "0.5466502", "0.5463305", "0.54612625", "0.54581046", "0.54494387", "0.5440564", "0.5429935", "0.54114556", "0.53861374", "0.53671795", "0.5363834", "0.5362503", "0.53607696", "0.53586465", "0.53557986", "0.5355746", "0.53514713", "0.53436327", "0.5341414", "0.5335205", "0.5333618", "0.5331139", "0.531222", "0.53113776", "0.53048974", "0.53026485", "0.52907854", "0.5286351", "0.5285051", "0.52800345", "0.52793217" ]
0.6536461
4
Allows the client to file a report and adds it to the Reports database
@RequestMapping(method = RequestMethod.POST, value = "/fileReport") public void addReport(@RequestBody Map<String, Object> reportSent) { logger.info(reportSent.toString()); String filedby = reportSent.get("filedby").toString(); String lot = reportSent.get("lot").toString(); Integer spot = Integer.parseInt(reportSent.get("spot").toString()); String description = reportSent.get("description").toString(); Long filetime = Long.parseLong(reportSent.get("filetime").toString()); logger.info(filedby); logger.info(lot); logger.info(Integer.toString(spot)); logger.info(description); logger.info(Long.toString(filetime)); reportsRepository.fileReport(filedby, lot, spot, description, filetime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createReport(Report report);", "boolean createReport(String lang, String reportId, String fileName, Object... params) throws Exception;", "public void saveReport() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new FileOutputStream(reportFile));\n\t\t\tout.println(record.reportToString());\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}", "public void runReport(String sReportFile)\n {\n }", "public void setReportFile(File file) {\n reportFile = file;\n }", "public void getReportManually() {\n File reportDir = new File(KOOM.getInstance().getReportDir());\n for (File report : reportDir.listFiles()) {\n //Upload the report or do something else.\n }\n }", "public void addReport(Report reportToAdd){\n\t\tif (reportToAdd != null)\n\t\t\tthis.reports.add((reportToAdd));\n\t}", "Report createReport();", "public void createReport(Report report) {\n view.onProgress(true);\n apiInterface.newReport(report.getNumber(), report.isNo_telp(), report.isNo_rek())\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new SingleObserver<ReportItem>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onSuccess(ReportItem reportItem) {\n if (reportItem != null) {\n view.onReportResult(reportItem.toReportparcel(), true);\n }\n view.onProgress(false);\n }\n\n @Override\n public void onError(Throwable e) {\n view.onError(e.getMessage());\n view.onProgress(false);\n }\n });\n }", "public void saveReport(ReportBase report)\r\n \t\tthrows PersistenceException;", "@Override\n public ResponseEntity<?> createReport(OutputReport report) throws IOException, MessagingException {\n Date endDate = midnight();\n Date startDate = midnight();\n if (report.getReportType() == 0) {\n endDate = midnight();\n startDate = setDateBefore(1);\n } else if (report.getReportType() == 1) {\n endDate = midnight();\n startDate = setDateBefore(7);\n } else if (report.getReportType() == 2) {\n endDate = midnight();\n startDate = setDateBefore(30);\n } else if (report.getReportType() == 3) {\n endDate = new Date(report.getEndDate());\n startDate = new Date(report.getStartDate());\n }\n ExcelHelper.writeExcel(report.getReportItemList(), \"NiceJavaBooks.xls\", report.getTotalRevenue());\n Place place = placeRepository.findById(report.getPlaceId()).get();\n String content = \"\";\n if(report.getReportType() == 0){\n content = \"Daily sales report\";\n }else if(report.getReportType() == 1){\n content = \"Weekly sales report\";\n }else if(report.getReportType() == 2){\n content = \"Monthly sales report\";\n }else if(report.getReportType() == 3){\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\n content = \"Sales report from \"+formatter.format(startDate)+\" to \"+formatter.format(endDate);\n }\n sendEmail(new File(\"NiceJavaBooks.xls\"), place.getMail(), content);\n return ResponseEntity.ok(\"OK\");\n }", "private void submitReport() throws ERTRestApiException, JSONException {\n Cursor cursor = getReportStatusCursor(SyncStatus.REPORT_PENDING);\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n\n do {\n final Long reportBaseId = cursor.getLong(\n cursor.getColumnIndex(ReportEntry._ID)\n );\n ExpenseReport expenseReport = Utility.createExpenseReportFromCursor(cursor);\n\n ERTRestApi.apiSubmitReport(expenseReport,\n new ERTRestApi\n .ERTRestApiListener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n Log.d(LOG_TAG, \"Report \" + reportBaseId + \" submitted\");\n updateReportSyncStatus(reportBaseId, SyncStatus.SYNCED);\n }\n },\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi\n .ERTRestApiError error) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(ReportEntry.COLUMN_STATUS, Status.SAVED.getValue());\n\n getContext().getContentResolver().update(\n ReportEntry.buildReportUriNoNetworkSync(reportBaseId),\n contentValues,\n null,\n null\n );\n updateReportSyncStatus(reportBaseId, SyncStatus.SYNCED);\n }\n }\n\n );\n\n updateReportSyncStatus(reportBaseId, SyncStatus.SYNC_IN_PROGRESS);\n\n } while (cursor.moveToNext());\n }\n cursor.close();\n }", "private void reportToFile() {\n try {\n fileWriter = new FileWriter(\"GameStats.txt\");\n fileWriter.write(reportContent);\n fileWriter.close();\n }\n catch (IOException ioe) {\n System.err.println(\"IO Exception thrown while trying to write to file GameStats.txt\");\n }\n }", "public void setReport(Report report);", "public void setReportFile(File reportFile) {\r\n\t\tthis.reportFile = reportFile;\r\n\t}", "public void setReport(String report) {\n \n this.report = report;\n\n }", "@GET\n @Path(\"/report\")\n @NotAuthenticated\n public Response getReport() {\n \n try {\n File design = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/report-templates/\" + name + \".rptdesign\"));\n if(!design.exists()) {\n return Response.status(Status.NOT_FOUND).build();\n }\n File reports = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/reports/\" + name));\n if(!reports.exists()) {\n if(!reports.mkdirs()) {\n return Response.serverError().build();\n }\n }\n File report = new File(reports, name + \"-\" + System.currentTimeMillis() + \".pdf\");\n reportService.render(\"PDF\", null, design.getAbsolutePath(), report.getAbsolutePath());\n if(report.exists()) {\n return Response.ok().build();\n } else {\n return Response.serverError().build();\n }\n } catch(Exception e) {\n e.printStackTrace();\n return Response.serverError().build();\n }\n }", "public File getReportFile() {\n return reportFile;\n }", "public static IReport createReport(File f) throws ArfException {\r\n \treturn new Report(Report.getAssetReportCollection(f));\r\n }", "public void setReportFile(final File reportFile) {\n this.reportFile = reportFile;\n }", "public abstract void getReport(java.io.Writer writer);", "@Override\n\tpublic void saveReports(List<FrequencyReport> reports){\n\t\tif(reports==null){\n\t\t\treturn;\n\t\t}\n\t\tSession session = null;\n\t\ttry{\n\t\t\tsession = HibernateUtil.getSeesion();\n\t\t\tsession.beginTransaction();\n\t\t\tIterator<FrequencyReport> its = reports.iterator();\n\t\t\twhile (its.hasNext()) {\n\t\t\t\tFrequencyReport report = its.next();\n\t\t\t\tString hql = \"from FrequencyReport where campaign_id=:campaign_id and ad_id=:ad_id\"\n\t\t\t\t\t\t+ \" and publication_id=:publication_id and zone_id=:zone_id and date=:date\";\n\t\t\t\tQuery query = session.createQuery(hql);\n\t\t\t\tquery.setParameter(\"campaign_id\", report.getCampaign_id());\n\t\t\t\tquery.setParameter(\"ad_id\", report.getAd_id());\n\t\t\t\tquery.setParameter(\"publication_id\", report.getPublication_id());\n\t\t\t\tquery.setParameter(\"zone_id\", report.getZone_id());\n\t\t\t\tquery.setParameter(\"date\", report.getDate());\n\t\t\t\tFrequencyReport report_saved = (FrequencyReport) query.uniqueResult();\n\t\t\t\tif(report_saved==null){\n\t\t\t\t\tsession.save(report);\n\t\t\t\t}else{\n\t\t\t\t\tfor(int i=1; i<=30; i++){\n\t\t\t\t\t\tsetReportFrequency(report_saved, i, getReportFrequencyNumber(report, i));\n\t\t\t\t\t}\n\t\t\t\t\tsession.update(report_saved);\n\t\t\t\t}\n\t\t\t\tsession.flush();\n\t\t\t}\n\t\t\tsession.getTransaction().commit();\n\t\t}catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tlog.error(\"FrequencyTask error\",e);\n\t\t}finally{\n\t\t\tif(session!=null){\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t}\n\t}", "protected void uploadConfigFileToReport() {\n\t\tFile uploadToReportConfigFile = trafficSTC.getUploadedConfigFile();\n\t\ttry {\n\t\t\tReporterHelper.copyFileToReporterAndAddLink(report, uploadToReportConfigFile, \"ConfigFile\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@RequestMapping(value = \"/executeSavedReport\", method = {RequestMethod.POST, RequestMethod.GET})\n public ModelAndView executeSavedReport(@RequestParam(\"dir\") String directoryName,\n @RequestParam(\"file\") String fileName, HttpServletRequest request) {\n request.setAttribute(\"decorator\", \"empty\");\n ApplicationProperties properties = ApplicationProperties.getInstance();\n ExecuteReport executeReport = new ExecuteReport();\n ModelAndView serviceLoadView = new ModelAndView();\n FileOperationsUtility fileOperationsUtility = new FileOperationsUtility();\n String solutionFolder = properties.getSolutionDirectory();\n File directory = new File(solutionFolder + File.separator + directoryName);\n\n String searchResult = fileOperationsUtility.search(solutionFolder, fileName);\n\n String path = searchResult == null ? \"\" : searchResult;\n if ((directoryName == null) || \"\".equalsIgnoreCase(directoryName)) {\n checkPath(path);\n } else if (!directory.isDirectory()) {\n checkPath(path);\n } else {\n File theFile = new File(properties.getSolutionDirectory() + File.separator +\n directoryName + File.separator + fileName);\n if (!theFile.exists()) {\n checkPath(path);\n }\n }\n\n logger.debug(\"Trying to get JSON for the resource \" + path);\n\n Efwsr efwsr = JaxbUtils.unMarshal(Efwsr.class, new File(path));\n /*\n * Get the saved JSON from the rdf/efwsr file. Convert string to JSONObject\n */\n String efwDirectory = efwsr.getReportDirectory();\n String efwFile = efwsr.getReportFile();\n\n /***************************************************/\n this.setUnsetRefresh(request, efwFile, efwDirectory);\n /***************************************************/\n\n ControllerUtils.addUrlParameters(request, serviceLoadView);\n\n JSONObject parametersJSON = (JSONObject) JSONSerializer.toJSON(efwsr.getReportParameters());\n String dirPath;\n int index = efwFile.lastIndexOf(\".\");\n List<String> list = executeReport.execute(efwDirectory, efwFile, parametersJSON);\n String templateData = list.get(0);\n dirPath = list.get(1);\n serviceLoadView.addObject(\"templateData\", templateData);\n serviceLoadView.setViewName(\"serviceLoadView\");\n\n JSONObject attributeValue = ResponseUtils.reportContentAsJson(efwsr);\n\n logger.debug(\"Parameters of the report are \" + attributeValue);\n serviceLoadView.addObject(\"reportParameters\", attributeValue);\n logger.debug(\"The Efwsr controller. The view is \" + serviceLoadView);\n\n serviceLoadView.addObject(\"dir\", dirPath.replace(\"\\\\\", \"\\\\\\\\\"));\n return serviceLoadView;\n }", "@SneakyThrows\n private void pdfReport() {\n NotificationUtil.warningAlert(\"Warning\", \"Nothing to export\", NotificationUtil.SHORT);\n ServiceFactory.getPdfService().projectReport(table.getItems());\n }", "public File getReportFile() {\r\n\t\treturn reportFile;\r\n\t}", "public static void createResponseReportTxt(String fileName) {\r\n\t\t\ttry {\r\n\t\t\tConnector con = new Connector();\r\n\t\t\tcon.connect();\r\n\t\t\t\r\n\t\t\tResultSet resultSet = con.MakeQuery(\"SELECT \\\"studentEmail\\\" FROM \\\"\" + fileName+\"\\\"\");\r\n\t\t\t\r\n\t\t\twhile(resultSet.next()) {\r\n\t\t\t\tString email = resultSet.getString(1);\r\n\t\t\t\temail = email.substring(0, 6);\r\n\t\t\t\tString userHomePath = System.getProperty(\"user.home\");\r\n\t\t\t\tFile gradeReport = new File(userHomePath+\"\\\\Documents\\\\Reports\\\\Responses\\\\\"+fileName+ email+\".answers.txt\");\r\n\t\t\t\tif (gradeReport.createNewFile()){\r\n\t\t \t}else{\r\n\t\t \t}\r\n\t\t\t}\r\n\t \t\t \r\n\t\t\t//Change file to where ever Harris wants\r\n\t\t\t//userHomePath is the default user default account \r\n\t\t\t//Ex. C:\\Users\\as12660\r\n\t\t\r\n\t \t} catch (IOException e) {\r\n\t \t\te.printStackTrace();\r\n\t \t} catch (Exception ie) {\r\n\t \t\tie.printStackTrace();\r\n\t\t}\r\n\t}", "public void makeReport() throws IOException{\n File report = new File(\"Report.txt\");\n BufferedWriter reportWriter = new BufferedWriter(new FileWriter(report));\n BufferedReader bookReader = new BufferedReader(new FileReader(\"E-Books.txt\"));\n String current;\n while((current = bookReader.readLine()) != null ){\n String[] tokens = current.split(\",\");\n reportWriter.write(tokens[0].trim()+\" for \"+tokens[1].trim()+\" with redemption Code \"+tokens[2].trim()+\n \" is assigned to \"+tokens[4].trim()+\" who is in \"+tokens[5].trim()+\" grade.\");\n reportWriter.write(System.lineSeparator());\n reportWriter.flush();\n }\n reportWriter.close();\n bookReader.close();\n new reportWindow();\n }", "protected void processReport( HttpServletRequest request ) throws Exception\n \t{\n \t\tFile reportDocFile = new File( this.reportDocumentName );\n \t\t// String reportDesignName = ParameterAccessor.getReport( request );\n \t\tFile reportDesignDocFile = new File( reportDesignName );\n \n \t\tif ( reportDesignDocFile != null && reportDesignDocFile.exists( )\n \t\t\t\t&& reportDesignDocFile.isFile( ) && reportDocFile != null\n \t\t\t\t&& reportDocFile.exists( ) && reportDocFile.isFile( )\n \t\t\t\t&& \"get\".equalsIgnoreCase( request.getMethod( ) ) ) //$NON-NLS-1$\n \t\t{\n \t\t\tif ( reportDesignDocFile.lastModified( ) > reportDocFile\n \t\t\t\t\t.lastModified( )\n \t\t\t\t\t|| ParameterAccessor.isOverwrite( request ) )\n \t\t\t{\n \t\t\t\treportDocFile.delete( );\n \t\t\t}\n \t\t}\n \t}", "public interface ReportExporter {\n\n /**\n * @param jasperPrint printable report object to export as associated format\n * @param file the destination file to export\n */\n void exportToFile(JasperPrint jasperPrint, File file) throws JRException;\n}", "void addEndpointReport(@NotNull EndpointReport endpointReport){\n endpointReports.add(endpointReport);\n }", "public String getReportPath();", "public synchronized static ExtentReports getReporter(String filePath) {\n\t\t if (report == null) {\r\n\t\t \treport = new ExtentReports(path.concat(\"Report\\\\Purchase_Admin_Report.html\"));\r\n\t\t \r\n\t\t report\r\n\t\t .addSystemInfo(\"Host Name\", \"Priti\") //Environment Setup For Report\r\n\t\t .addSystemInfo(\"Environment\", \"QA\");\r\n\t\t }\r\n\t\t \r\n\t\t return report;\r\n\t\t}", "public void add(Report r) {\n reports.add(r);\n r.setNumber(reports.size());\n }", "@POST\n @Path(\"/report\")\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n public String createReport(ReportVo reportVo) throws Exception {\n\n log.info(\"Creating report \" + reportVo);\n\n Report report = reportService.createReport(reportVo);\n\n // Send an email\n try {\n reportService.sendReportEmail(report, reportVo.isSendEmail());\n } catch (Exception e) {\n log.warn(\"Failed sending email for report \" + report.getId(), e);\n }\n\n return \"OK\";\n }", "public void addReport(String booking_id, String report) {\n\t\tString sql = \"update bookings set report =?, status='Completed' where booking_id =?\";\n\t\tObject args[]= {report, booking_id};\n\t\tjdbcTemplate.update(sql, args);\n\t}", "public void generateReport(ReportGenerationData data)throws ChangeApplicationException;", "private void downloadReport() {\n // Get Employees and Tasks\n ArrayList<Employee> inUnit = Main.getEmployeesInUnit();\n ArrayList<Task> allTasks = Main.getAllTasks();\n\n // Create BufferedWriter Object\n String fileName = fileDate.format(new Date()) + \"_report.csv\";\n BufferedWriter writer = null;\n try {\n writer = new BufferedWriter(new FileWriter(fileName));\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"Filename already exists.\");\n }\n\n try {\n // Write Header\n writer.write(\n \"Task ID,Task Description,Employee ID, Employee Name, WiGrow Needed, Incomplete Scheduling, Exception Report Needed\\n\");\n // Look through employee and their task\n for (int i = 0; i < inUnit.size(); ++i) {\n Employee current = inUnit.get(i);\n for (int j = 0; j < allTasks.size(); ++j) {\n Task currentTask = allTasks.get(j);\n // If found, write to file\n if (currentTask.getEmployees().contains(current)) {\n writer.write(currentTask.getID() + \",\" + currentTask.getDescription() + \",\"\n + current.getId() + \",\" + current.getName() + \",\" + current.isWiGrow() + \",\"\n + current.isScheduling() + \",\" + current.isExceptionReport() + \"\\n\");\n }\n }\n }\n writer.close();\n } catch (IOException e) {\n // Do nothing\n\n }\n // Alert pop up\n Alert downloadSuccess = new Alert(AlertType.NONE, \"Successfully Downloaded Report! It is named \"\n + fileName + \" and is located in your program's local directory.\");\n downloadSuccess.setTitle(\"Download File\");\n downloadSuccess.getButtonTypes().add(ButtonType.OK);\n downloadSuccess.showAndWait();\n }", "@RequestMapping(value = \"/report\", method = RequestMethod.POST)\n\t@ResponseBody\n\tString getReport(HttpServletRequest request, HttpServletResponse response) {\n\n\t\t// Get the Logged in User\n\t\tString name = getLoggedUser();\n\n\t\tString email = request.getParameter(\"email\");\n\t\tRetrieveItems ri = new RetrieveItems(env);\n\t\tList<WorkItem> theList = ri.getItemsDataSQLReport(name);\n\t\tWriteExcel writeExcel = new WriteExcel();\n\t\tSendMessages sm = new SendMessages(env);\n\t\tjava.io.InputStream is = writeExcel.exportExcel(theList);\n\n\t\ttry {\n\t\t\tsm.sendReport(is, email);\n\t\t}catch (IOException e) {\n\t\t\te.getStackTrace();\n\t\t}\n\t\treturn \"Report is created\";\n\t}", "public void store( JasperReport report, Plugin plugin )\n {\n \ttry ( DAOUtil daoUtil = new DAOUtil( SQL_QUERY_UPDATE, plugin ) )\n \t{\n \t\tdaoUtil.setInt( 1, report.getIdReport( ) );\n daoUtil.setString( 2, report.getCode( ) );\n daoUtil.setInt( 3, report.getIdReport( ) );\n\n daoUtil.executeUpdate( ); \t \n \t}\n }", "void addReport(String reportName, String reportPath) {\n /*\n * Remove the \"glue.\"\n */\n reportPanel.remove(glue);\n\n progressPanel.setLabels(reportName, reportPath);\n constraints.weighty = 0.0;\n constraints.anchor = GridBagConstraints.NORTH;\n reportPanel.add(progressPanel, constraints);\n constraints.gridy++;\n\n /*\n * Add the \"glue\" back to the bottom of the panel.\n */\n constraints.weighty = 1.0;\n constraints.anchor = GridBagConstraints.PAGE_END;\n reportPanel.add(glue, constraints);\n\n /*\n * Use 80 pixels per progress panel. This is a leftover from when this\n * panel used to show multiple report progress panels.\n */\n reportPanel.setPreferredSize(new Dimension(600, 1 * 80));\n reportPanel.repaint();\n progressPanel.addPropertyChangeListener((PropertyChangeEvent evt) -> {\n String propName = evt.getPropertyName();\n if (propName.equals(ReportProgressPanel.ReportStatus.COMPLETE.toString())\n || propName.equals(ReportProgressPanel.ReportStatus.CANCELED.toString())) {\n SwingUtilities.invokeLater(() -> {\n cancelButton.setEnabled(false);\n });\n }\n });\n }", "public void setup_report() {\n try {\n output = new PrintWriter(new FileWriter(filename));\n } catch (IOException ioe) {}\n }", "void verifyOrCreateReport(String reportId);", "void outputReport(RandomAccessFile reportFile, boolean last) {\n\n String line1 = \"----+---------+----------+----------+---+----------+\" +\n \"----------+----------+----------+\" +\n \"---------------------------------------------+\";\n String line2 = \"----+---------+------------+----------+---------------------+\" +\n \"---------+----------+----------+--------------------+--------+\" +\n \"-----+-----+-----+\";\n\n if (dbg3) System.out.println(\"outputReport: station.getStationId() = *\" +\n station.getStationId(\"\") + \"*\");\n if (\"\".equals(station.getStationId(\"\"))) { // only done formats 01/02 -> survey data only\n\n //display the survey data }\n //ec.writeFileLine(reportFile, \"----+---------+----------+----------\" +\n // \"+---+----------+----------+----------+----------+----------\" +\n // \"------------------------------+\");\n ec.writeFileLine(reportFile, line1);\n ec.writeFileLine(reportFile, \"dup.|Survey |Platform | \" +\n \"| | | | | | \" +\n \" |\");\n ec.writeFileLine(reportFile, \"code|Id |Name |Expedition\" +\n \"|Ins|Proj Name |Area Name |Domain |Platform |Notes \" +\n \" |\");\n ec.writeFileLine(reportFile, line1);\n\n ec.writeFileLine(reportFile, surveyStatus + \" |\" + //j24\n ec.frm(survey.getSurveyId(\"\"),9) + \"|\" +\n ec.frm(survey.getPlanam(\"\"),10) + \"|\" +\n ec.frm(survey.getExpnam(\"\"),10) + \"|\" +\n ec.frm(survey.getInstitute(\"\"),03) + \"|\" +\n ec.frm(survey.getPrjnam(\"\"),10) + \"|\" +\n ec.frm(inventory.getAreaname(\"\"),10)+ \"|\" +\n ec.frm(inventory.getDomain(\"\"),10) + \"|\" +\n ec.frm(\" \",10) + \"|\" +\n //survey.getPlatfm() + \"|\" +\n ec.frm(survey.getNotes1(\"\"),45) + \"|\");\n\n // write to station file - keep place for actual output\n if (loadFlag) {\n try {\n stnFile.writeBytes(\"\");\n headerPos1 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n headerPos2 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n headerPos3 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n } catch (Exception e) {\n ec.processError(e, thisClass, \"outputReport\", \"Header Pos Error\");\n } // try-catch\n } // if (loadFlag)\n\n\n if (surveyLoaded) { // display details of loaded survey //j24\n // get the old inventory record\n MrnInventory tInventory[] =\n new MrnInventory(survey.getSurveyId()).get();\n\n ec.writeFileLine(reportFile, \"lod |\" +\n ec.frm(tSurvey[0].getSurveyId(\"\"),9) + \"|\" +\n ec.frm(tSurvey[0].getPlanam(\"\"),10) + \"|\" + //j24\n ec.frm(tSurvey[0].getExpnam(\"\"),10) + \"|\" + //j24\n ec.frm(tSurvey[0].getInstitute(\"\"),03) + \"|\" + //j24\n ec.frm(tSurvey[0].getPrjnam(\"\"),10) + \"|\" + //j24\n ec.frm(tInventory[0].getAreaname(\"\"),10) + \"|\" + //j24\n ec.frm(tInventory[0].getDomain(\"\"),10) + \"|\" + //j24\n ec.frm(\" \",10) + \"|\" +\n //tSurvey[0].getPlatfm() + \"|\" + //j24\n ec.frm(tSurvey[0].getNotes1(\"\"),45) + \"|\"); //j24\n } // if (survey_loaded)\n\n ec.writeFileLine(reportFile, line1);\n ec.writeFileLine(reportFile, \" \");\n\n ec.writeFileLine(reportFile, line2);\n ec.writeFileLine(reportFile, \"dup.| | | |\" +\n \" | | | |\" +\n \" | | Records |\");\n ec.writeFileLine(reportFile, \"code| Surv Id | Station Id | StnNam |\" +\n \" Date Time GMT | Latitude| Longitude| Subdes(s)|\" +\n \" Sample depth range | StnDep | Tot.| O.K.| Rej |\");\n ec.writeFileLine(reportFile, line2);\n } else { // if (\"\".equals(station.getStationId(\"\")))\n\n\n if (dbg) System.out.println(\"<br>outputReport: tStation.length = \" +\n tStation.length);\n\n int stationSampleOKCount = stationSampleCount - stationSampleRejectCount;\n ec.writeFileLine(reportFile, stationStatusLD + \" |\" + //j24\n ec.frm(\" \",9) + \"|\" +\n ec.frm(station.getStationId(),12) + \"|\" +\n ec.frm(station.getStnnam(),10) + \"| \" +\n //station.getDatum + \"| \" +\n ec.frm(startDateTime,20) + \"|\" +\n ec.frm(station.getLatitude(),9,5) + \"|\" +\n ec.frm(station.getLongitude(),10,5) + \"|\" +\n ec.frm(subdes,10) + \"|\" +\n ec.frm(depthMin + \" to \" + depthMax,20) + \"|\" +\n ec.frm(station.getStndep(),8,2) + \"|\" +\n ec.frm(stationSampleCount,5) + \"|\" +\n ec.frm(stationSampleOKCount,5) + \"|\" +\n ec.frm(stationSampleRejectCount,5) + \"|\");\n if (!loadFlag) {\n ec.writeFileLine(workFile, ec.frm(station.getStationId(),12) +\n ec.frm(stationSampleCount,5));\n } // if (!loadFlag)\n\n if (stationExists) { // || (!\"new\".equals(stationStatusLD))) {\n for (int i = 0; i < tStation.length; i++) {\n int tmpRecordCount = 0;\n if (dataType == CURRENTS) {\n tmpRecordCount = currentsRecordCountArray[i];\n } else if (dataType == SEDIMENT) {\n tmpRecordCount = sedphyRecordCountArray[i];\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpRecordCount = watphyRecordCountArray[i];\n } // if (dataType == CURRENTS)\n\n String subdesLocal = subdesArray[i][0];\n for (int j = 1; j < MAX_SUBDES; j++) {\n subdesLocal += (!\"\".equals(subdesArray[i][j]) ?\n \"/\"+subdesArray[i][j] : \"\");\n } // for int (j = 1; j < MAX_SUBDES; j++)\n if (stationExistsArray[i]) {\n ec.writeFileLine(reportFile, stationStatusDB[i] + \" |\" +\n ec.frm(tStation[i].getSurveyId(),9) + \"|\" +\n ec.frm(tStation[i].getStationId(),12) + \"|\" +\n ec.frm(tStation[i].getStnnam(\"\"),10) + \"| \" +\n //tStation[i].getDateStart(\"\"), \"| \",\n ec.frm(spldattimArray[i],20) + \"|\" +\n ec.frm(tStation[i].getLatitude(),9,5) + \"|\" +\n ec.frm(tStation[i].getLongitude(),10,5) + \"|\" +\n //ec.frm(subdesArray[i],5) + \"|\" +\n ec.frm(subdesLocal,10) + \"|\" +\n ec.frm(loadedDepthMin[i] + \" to \" + loadedDepthMax[i],20) + \"|\" +\n ec.frm(tStation[i].getStndep(),8,2) + \"|\" +\n ec.frm(tmpRecordCount,5) + \"| | |\");\n } // if (stationExistsArray[i])\n } // for (int i = 0; i < tStation.length; i++)\n } // if (stationExists || (!\"new\".equals(stationStatusDB))\n ec.writeFileLine(reportFile, \"\");\n\n // write to station file\n if (loadFlag) {\n ec.writeFileLine(stnFile, \"'\" +\n ec.frm(station.getStationId(\"\"),12) + \"' '\" +\n station.getDateStart(\"\").substring(0,10) + \"' \" +\n ec.frm(station.getLatitude(),11,5) + \" \" +\n ec.frm(station.getLongitude(),11,5) + \" \" +\n ec.frm(ec.nullToNines(station.getStndep(),9999.0f),10,2) + \" '\" +\n ec.frm(station.getStnnam(\"\"),10) + \"'\");\n } // if (loadFlag)\n\n\n if (last) {\n //ec.writeFileLine(reportFile, \"last\");\n\n int sampleOKCount = sampleCount - sampleRejectCount;\n //ec.writeFileLine(reportFile, \"----+------------+----------\" +\n // \"+---------------------+---------+----------+-----+---\" +\n // \"-----------------+--------+-----------------+\");\n ec.writeFileLine(reportFile, line2);\n ec.writeFileLine(reportFile, \" ^\"); //j24//\n ec.writeFileLine(reportFile, \" |\"); //j24//\n ec.writeFileLine(reportFile, \" +--new = new record\"); //j24//\n ec.writeFileLine(reportFile, \" dup = new record is a duplicate record\"); //j24//\n //ec.writeFileLine(reportFile, \" lod = existing record\"); //j24//\n ec.writeFileLine(reportFile, \" did = duplicate station-id - different SUBDES\"); //k46//\n ec.writeFileLine(reportFile, \" dis = duplicate station-id - same SUBDES\"); //u02//\n ec.writeFileLine(reportFile, \" dia = duplicate station-id - different SUBDES: data added\");//u02//\n ec.writeFileLine(reportFile, \" dij = ignored station - matched existing station record - did\"); //k46//\n ec.writeFileLine(reportFile, \" dip = data records replaced for existing station record - did\"); //k46//\n ec.writeFileLine(reportFile, \" dsd = duplicate station record - different SUBDES\"); //k46//\n ec.writeFileLine(reportFile, \" dss = duplicate station record - same SUBDES\"); //u02//\n ec.writeFileLine(reportFile, \" dsa = duplicate station record - different SUBDES: data added\");\n ec.writeFileLine(reportFile, \" dsj = ignored station - matched existing station record - dsd\"); //k46//\n ec.writeFileLine(reportFile, \" dsp = data records replaced for existing station record - dsd\"); //k46//\n\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"This data was \" +\n (loadFlag ? \"loaded\" : \"checked\") + \" with the following ranges:\");\n ec.writeFileLine(reportFile, \" Area: \" + areaRangeVal + \" (decimal degrees)\");\n ec.writeFileLine(reportFile, \" Time: \" + timeRangeVal + \" (minutes)\");\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n ec.writeFileLine(reportFile, \"Closing statistics - survey_id: \" +\n survey.getSurveyId());\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of lines - \" +\n ec.frm(lineCount,6));\n ec.writeFileLine(reportFile, \" Fatal Errors - \" +\n ec.frm(fatalCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of stations - \" +\n ec.frm(stationCount,6));\n ec.writeFileLine(reportFile, \" New - \" +\n ec.frm(newStationCount,6));\n ec.writeFileLine(reportFile, \" Dup - \" +\n ec.frm((stationCount-newStationCount),6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Duplicate Station-id (DI)\");\n ec.writeFileLine(reportFile, \" DI: diff SUBDES (DID) - \" +\n ec.frm(didCount,6));\n ec.writeFileLine(reportFile, \" DI: same SUBDES (DIS) - \" +\n ec.frm(disCount,6));\n ec.writeFileLine(reportFile, \" DI: diff SUBDES added (DIA) - \" +\n ec.frm(diaCount,6));\n ec.writeFileLine(reportFile, \" DI's Rejected (DIJ) - \" +\n ec.frm(dijCount,6));\n ec.writeFileLine(reportFile, \" DI's Replaced (DIP) - \" +\n ec.frm(dipCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Duplicate Station (DS)\");\n ec.writeFileLine(reportFile, \" DS: diff SUBDES (DSD) - \" +\n ec.frm(dsdCount,6));\n ec.writeFileLine(reportFile, \" DS: same SUBDES (DSS) - \" +\n ec.frm(dssCount,6));\n ec.writeFileLine(reportFile, \" DS: diff SUBDES added (DSA) - \" +\n ec.frm(dsaCount,6));\n ec.writeFileLine(reportFile, \" DS's Rejected (DSJ) - \" +\n ec.frm(dsjCount,6));\n ec.writeFileLine(reportFile, \" DS's Replaced (DSP) - \" +\n ec.frm(dspCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of Samples - \" +\n ec.frm(sampleCount,6));\n ec.writeFileLine(reportFile, \" OK - \" +\n ec.frm(sampleOKCount,6));\n ec.writeFileLine(reportFile, \" Rejected - \" +\n ec.frm(sampleRejectCount,6));\n ec.writeFileLine(reportFile, \" \");\n java.text.SimpleDateFormat formatter =\n new java.text.SimpleDateFormat (\"yyyy-MM-dd\");\n ec.writeFileLine(reportFile, \" date range - \" +\n formatter.format(dateMin) + \" to \" + formatter.format(dateMax));\n ec.writeFileLine(reportFile, \" latitude range - \" +\n ec.frm(latitudeMin,10,5) + \" to \" + ec.frm(latitudeMax,10,5));\n ec.writeFileLine(reportFile, \" longitude range - \" +\n ec.frm(longitudeMin,10,5) + \" to \" + ec.frm(longitudeMax,10,5));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n\n if (loadFlag) {\n ec.writeFileLine(reportFile, \" \");\n\n if (fatalCount > 0) {\n ec.writeFileLine(reportFile,\n \" THERE ARE FATAL ERRORS - THIS LOAD IS UNSUCCESSFUL \");\n ec.writeFileLine(reportFile,\n \" ================================================== \");\n ec.writeFileLine(reportFile,\n \" As some data has been loaded, it is necessary to remove it\\n\" +\n \" by running the 'Delete a survey' option on the SADCO website\\n\" +\n \" located in the 'Marine Database: Admin / Load Data' menu options\");\n } else { // if (fatalCount > 0)\n Timestamp loadDate = new Timestamp(new java.util.Date().getTime());\n ec.writeFileLine(reportFile, \" LOAD SUCCESSFUL \");\n ec.writeFileLine(reportFile, \" =============== \");\n ec.writeFileLine(reportFile, \" date loaded: \" +\n formatter.format(loadDate));\n\n if (dataType != CURRENTS) {\n ec.writeFileLine(reportFile, \" \" + DATA_TYPE[dataType] +\n \" code range - \" + dataCodeStart + \" to \" + dataCodeEnd);\n } // if (dataType != CURRENTS)\n\n ec.writeFileLine(reportFile, \" \");\n if (\"\".equals(passkey)) {\n ec.writeFileLine(reportFile, \" This data is NOT flagged \");\n } else {\n ec.writeFileLine(reportFile, \" This data is FLAGGED \");\n } // if (p_station.passkey is NULL)\n } // if (fatalCount > 0)\n\n // write header to station file\n String lineA =\n \"'MARINE' \" +\n ec.frm((int) latitudeMin,4) +\n ec.frm((int) (latitudeMax+1f),4) +\n ec.frm((int) longitudeMin,4) +\n ec.frm((int) (longitudeMax+1f),4) + \" '\" +\n dateMin.toString().substring(0,10) + \"' '\" +\n dateMax.toString().substring(0,10) + \"' 'STATIONS'\";\n String lineB = \"'\" + survey.getSurveyId(\"\") +\n \"' \" + stationCount + \" '\" +\n platformName + \"' '\" +\n projectName + \"' '\" +\n expeditionName + \"'\";\n String lineC = \"'\" + instituteName + \"'\";\n try {\n stnFile.seek(headerPos1);\n stnFile.writeBytes(lineA);\n stnFile.seek(headerPos2);\n stnFile.writeBytes(lineB);\n stnFile.seek(headerPos3);\n stnFile.writeBytes(lineC);\n } catch (Exception e) {\n System.out.println(\"<br>\" + thisClass +\n \".printHeader: Write Error: \" + e.getMessage());\n e.printStackTrace();\n } // try-catch\n\n } // if (loadflag)\n\n Timestamp loadDate = new Timestamp(new java.util.Date().getTime());\n String text = (loadFlag ? \"loaded\" : \"checked\");\n ec.writeFileLine(reportFile, \" date \" + text + \": \" +\n formatter.format(loadDate));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n } // if (last)\n\n } // if (\"\".equals(station.getStationId(\"\")))\n\n\n //ec.writeFileLine(reportFile, message);\n //if (dbg) System.out.println(\"outputReport: message = \" + message);\n // output to screen or file\n }", "@POST\n public Response startStorageReport(){\n log.debug(\"Starting storage report\");\n\n try {\n String responseText = resource.startStorageReport();\n return responseOk(responseText);\n } catch (Exception e) {\n return responseBad(e);\n }\n }", "void addAttributeReport(AttributeReport attributeReport){\n attributeReports.add(attributeReport);\n }", "public void crearReporte() {\r\n\t\tJFileChooser chooser = new JFileChooser(\"reporte.doc\");\r\n\t\tchooser.addChoosableFileFilter(new FileFilter() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic String getDescription() {\r\n\t\t\t\treturn \"*.doc\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic boolean accept(File f) {\r\n\t\t\t\t if (f.isDirectory())\r\n\t\t {\r\n\t\t return false;\r\n\t\t }\r\n\r\n\t\t String s = f.getName();\r\n\r\n\t\t return s.endsWith(\".doc\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tint res = chooser.showSaveDialog(this);\r\n\t\tif(res == JFileChooser.APPROVE_OPTION)\r\n\t\t{\r\n\t\t\tFile file = chooser.getSelectedFile();\r\n\t\t\t\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tJava2Word word = new Java2Word(this, file);\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n public byte[] getFile(ReportParam param) throws Exception {\n String FILE_PATH = controllerProperties.getPdfPath() + \"HIRATopCustomerSummary.jasper\";\n Map<String, Object> parameters = new HashMap<String, Object>();\n parameters.put(\"sReportCode\", \"\");\n parameters.put(\"sDateDesc\", param.getsDate1() + \" - \" + param.getsDate2());\n parameters.put(\"sRCDesc\", param.getsRC1() + \" - \" + param.getsRC2());\n parameters.put(\"sArticleDesc\", param.getsArticle1() + \" - \" + param.getsArticle2());\n parameters.put(\"sCustomerDesc\", param.getsCustomer1() + \" - \" + param.getsCustomer2());\n parameters.put(\"sRCCustomerBaseDesc\", param.getsRCCustomerBase1() + \" - \" + param.getsRCCustomerBase2());\n parameters.put(\"sUserPrint\", param.getUserPrint());\n\n return reportCreator.reportCreation(FILE_PATH, parameters, callSP(param));\n }", "abstract public void report();", "public BattleRound addSceneReport(SceneReport sceneReport) {\n\t switch (sceneReport.getGameAction()){\n case PICKPIPE:\n state = State.WAITUSERACTION;\n break;\n case ADDTOPIPE:\n state = State.CLOSED;\n break;\n case FLUSHPIPE:\n state = State.CLOSED;\n break;\n\n }\n \tthis.sceneReportList.add(sceneReport);\n \treturn this;\n\t}", "public void generateReport(TaxChallan bean, HttpServletRequest request, HttpServletResponse response, String reportPath) {\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tReportDataSet rds = new ReportDataSet();\r\n\t\t\tString type = bean.getReportType();\r\n\t\t\trds.setReportType(type);\r\n\t\t\tString fileName = \"T.D.S.-TCS TAX CHALLAN\"+Utility.getRandomNumber(1000);\r\n\t\t\tString reportPathName=reportPath+fileName+\".\"+type;\r\n\t\t\trds.setFileName(fileName);\r\n\t\t\trds.setPageSize(\"A4\");\r\n\t\t\trds.setReportHeaderRequired(false);\r\n\t\t\trds.setShowPageNo(true);\r\n\t\t\torg.paradyne.lib.ireportV2.ReportGenerator rg=null;\r\n\t\t\t/* Added by Prashant*/\r\n\t\t\tif(reportPath.equals(\"\")){\r\n\t\t\t\trg = new org.paradyne.lib.ireportV2.ReportGenerator(rds, session, context, request);\r\n\t\t\t}else{\r\n\t\t\t\tlogger.info(\"################# ATTACHMENT PATH #############\"+reportPath+fileName+\".\"+type);\r\n\t\t\t\trg = new org.paradyne.lib.ireportV2.ReportGenerator(rds, reportPath ,session, context, request);\r\n\t\t\t\trequest.setAttribute(\"reportPath\", reportPath+fileName+\".\"+type);\r\n\t\t\t\trequest.setAttribute(\"fileName\", fileName+\".\"+type);\r\n\t\t\t\trequest.setAttribute(\"action\", \"TaxChallan_input.action\");\r\n\t\t\t}\r\n\t\t\trg = getReport(rg, bean);\r\n\t\t\trg.process();\r\n\t\t\tif(reportPath.equals(\"\")){\r\n\t\t\t\trg.createReport(response);\r\n\t\t\t}else{\r\n\t\t\t\t/* Generates the report as attachment*/\r\n\t\t\t\trg.saveReport(response);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void addSubReport(SubReportForm reportForm) throws SubReportDAOSysException\r\n {\r\n String sqlStr = \"insert into R_CustomSubReport_Tab values(\" +\r\n reportForm.getReportID() + \",\" +\r\n reportForm.getMReportID() + \",'\" +\r\n reportForm.getReportName() + \"','\" +\r\n reportForm.getState() + \"')\";\r\n\r\n OperateDB operateDB = new OperateDB();\r\n try\r\n {\r\n LogUtil.debug(\"system\", \"[SubReportDAOOracle]====================the sql string is : \" + sqlStr);\r\n operateDB.exeupdate(sqlStr);\r\n\r\n }\r\n catch (ULMSSysException se)\r\n {\r\n throw new SubReportDAOSysException(\"SQLException while addSubReport: sql = \" + sqlStr + \" :\\n\" + se);\r\n }\r\n\r\n }", "private void exportFiles()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\t\t\n\t\t// Report String\n\t\t//----------------\n\t\tString reportString = \"Date,Location Latitude, Location Longitude,Vehicle,Description\\n\";\t\n\t\t\n\t\tStringBuilder reportBuilder = new StringBuilder();\n\t\treportBuilder.append(reportString);\n\t\t\n\t\tString objectString = \"\"+ \n\t\t\t\tincident.getDate()+\",\" +\n\t\t\t\tincident.getLatitude() + \",\" +\n\t\t\t\tincident.getLongitude()+\",\" +\n\t\t\t\tincident.getVehicleReg()+\",\" +\n\t\t\t\tincident.getDescription()+\",\" + \"\\n\";\n\t\t\n\t\treportBuilder.append(objectString);\n\t\t\n\t\t// Witnesses String\n\t\t//----------------\n\t\tString witnessString = \"witnessName,witnessEmail,witnessNumber,witnessStatement\\n\";\n\t\t\n\t\tStringBuilder witnessesBuilder = new StringBuilder();\n\t\twitnessesBuilder.append(witnessString);\n\t\t\n\t\tfor(int i=0; i<incident.getWitnesses().size(); i++)\n\t\t{\n\t\t\tobjectString = \"\"+ \n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessName\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessEmail\") + \",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessNumber\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessStatement\")+\",\" + \"\\n\";\n\t\t\t\n\t\t\twitnessesBuilder.append(objectString);\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Create file\n\t\t//===========================================\n\t\t// Incident Report\n\t\t//-------------------------------------------------\n\t\tfinal File reportFile = new File(getFilesDir() + \"/\" + \"incident_report.csv\");\n\t\treportFile.setReadable(true,false);\n\t\t\n\t\tif( reportFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"incident_report.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(reportBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Witnesses file\n\t\t//-------------------------------------------------\n\t\tfinal File witnessesFile = new File(getFilesDir() + \"/\" + \"witnesses.csv\");\n\t\twitnessesFile.setReadable(true,false);\n\t\t\n\t\tif( witnessesFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"witnesses.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(witnessesBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Media files\n\t\t//-------------------------------------------------\t\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(),new GetCallback<ParseObject>() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void done(final ParseObject parseIncident, ParseException e) \n\t\t\t{\n\t\t\t\tif(e == null)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t// Get number of photos attached\n\t\t\t\t\tParseQuery<ParseObject> queryPhotos = parseIncident.getRelation(\"incidentPhotos\").getQuery();\n\t\t\t\t\tqueryPhotos.findInBackground(new FindCallback<ParseObject>()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(List<ParseObject> parsePhotos, ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tArrayList<byte[]> bytes = new ArrayList<byte[]>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i=0; i<parsePhotos.size(); i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Get photo from the parse\n\t\t\t\t\t\t\t\tParseFile photo = (ParseFile) parsePhotos.get(i).get(\"photoFile\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tbytes.add(photo.getData());\n\t\t\t\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tphotoFiles = AssetsUtilities.saveIncidentPhoto(ReviewReportActivity.this, bytes);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Video\n\t\t\t\t\t\t\tParseFile parseVideo = (ParseFile) parseIncident.get(\"incidentVideo\");\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(parseVideo != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tparseVideo.getDataInBackground(new GetDataCallback()\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void done(byte[] data, ParseException e) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(e == null)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t// Save file\n\t\t\t\t\t\t\t\t\t\t\tvideoFile = AssetsUtilities.saveIncidentVideo(ReviewReportActivity.this,data);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\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});\n\t}", "protected abstract void handleReport (Message msg);", "@RequestMapping(value = \"/savereportfile.json\", method = RequestMethod.POST)\n\t@ResponseBody\n\tpublic ResultDto saveReportUrl(HttpServletRequest request,\n\t\t\tHttpServletResponse reponse, @RequestBody String message) {\n\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tResultDto returnDto = null;\n\t\ttry {\n\t\t\tList<ReportFile> reportFileList = mapper.readValue(message,\n\t\t\t\t\tnew TypeReference<List<ReportFile>>() {\n\t\t\t\t\t});\n\t\t\tfor (ReportFile temp : reportFileList) {\n\t\t\t\tthis.reportFileService.updateReportFile(temp);\n\t\t\t}\n\n\t\t\tint projectBriefID = 0;\n\t\t\tif (reportFileList.size() > 0) {\n\t\t\t\tprojectBriefID = reportFileList.get(0).getProjectid();\n\t\t\t}\n\t\t\tthis.requestService.updateProjectBriefDate(projectBriefID);\n\t\t\tthis.requestService.updateProjectProposalDate(projectBriefID);\n\n\t\t\treponse.setStatus(Constant.HTTP_OK);\n\t\t\treturnDto = new ResultDto(Constant.ACK, Constant.SUCCEED, null);\n\t\t} catch (IOException | SQLException e) {\n\t\t\treponse.setStatus(Constant.SERVER_ERROR);\n\t\t\treturnDto = new ResultDto(Constant.NACK, \"complete error\", null);\n\t\t}\n\n\t\treturn returnDto;\n\t}", "public void loadReports() throws EngineException {\n File folder = new File(reportsPath);\n for (String file : Objects.requireNonNull(folder.list())) {\n if (!file.endsWith(\".rptdesign\")) {\n continue;\n }\n\n reports.put(file.replace(\".rptdesign\", \"\"),\n birtEngine.openReportDesign(folder.getAbsolutePath() + File.separator + file));\n\n }\n }", "public void addFaultReport(com.hps.july.persistence.FaultReport arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().addFaultReport(arg0);\n }", "@Override\n void createReport(final Format reportFormat,\n final long start, final long end) {\n makeBriefReport(reportFormat, \"Informe breu\", start, end);\n writeToFile();\n getFormat().finishPrinting();\n }", "@Test\r\n\tpublic void extendReports() throws IOException {\n\t\tString File = \"./Reports/report.html\";\r\n\t\tExtentHtmlReporter html = new ExtentHtmlReporter(File);\r\n\t\thtml.setAppendExisting(true);\r\n\t\t//to write on the created html file\r\n\t\tExtentReports extents = new ExtentReports();\r\n\t\textents.attachReporter(html);\r\n\t\t\r\n\t\tExtentTest createAccountTest = extents.createTest(\"TC001\", \"CreateAccount\");\r\n\t\tcreateAccountTest.pass(\"username entered\", MediaEntityBuilder.createScreenCaptureFromPath(\"./../snaps/img1.png\").build());\r\n\t\textents.flush();\r\n\t\t\r\n\r\n\t}", "public boolean addReport(String name,Report report)\n\t{\n\t\tboolean retval = false;\n\t\t\n\t\tif(!reports.containsKey(name))\n\t\t{\n\t\t\treports.put(name, report);\n\t\t\tretval = true;\n\t\t}\n\t\t\n\t\treturn retval;\n\t}", "public Report getReport();", "public void listenReportGenerateStatus() {\n KOOM.getInstance().setHeapReportUploader(file -> {\n //Upload the report or do something else.\n //File is deleted automatically when callback is done by default.\n });\n }", "@Test\n public void testAddingReport() {\n Assert.assertEquals(\"Incorrect initial water report list size\", 0,\n theModel.getReportList().size());\n try {\n Account holder = new Account(1, \"bills\", \"bills\", Credential.ADMIN);\n WaterReport a = new WaterReport(holder, \"Bottled\", \"Waste\",\n \"Today\", new Location(45, 50));\n WaterReport b = new WaterReport(holder, \"Well\",\n \"Potable\", \"Today\", new Location(30, 25));\n WaterReport c = new WaterReport(holder, \"Stream\",\n \"Treatable - Muddy\", \"Today\", new Location(20, 65));\n theModel.addReport(a);\n theModel.addReport(b);\n theModel.addReport(c);\n Assert.assertEquals(\"WaterReport list size incorrect after adding\", 3,\n theModel.getReportList().size());\n } catch (Exception e) {\n Assert.fail(\"adding water reports should not have failed here\");\n e.printStackTrace();\n }\n }", "@RequestMapping(value = \"/save.json\", method = RequestMethod.POST)\n\t@ResponseBody\n\tpublic ResultDto saveReport(HttpServletRequest request,\n\t\t\tHttpServletResponse reponse, @RequestBody String message) {\n\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tResultDto returnDto = null;\n\t\ttry {\n\n\t\t\tList<ReportResult> reportList = mapper.readValue(message,\n\t\t\t\t\tnew TypeReference<List<ReportResult>>() {\n\t\t\t\t\t});\n\t\t\tfor (ReportResult temp : reportList) {\n\t\t\t\tsetFile(temp);\n\t\t\t\tif (temp.getReportid() == null) {\n\t\t\t\t\tthis.reportService.insertReport(temp);\n\t\t\t\t} else {\n\t\t\t\t\tif (\"delete\".equals(temp.getOperator())) {\n\t\t\t\t\t\tthis.reportService.deleteReport(temp.getReportid());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.reportService.updateReport(temp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tint projectBriefID = 0;\n\t\t\tif (reportList.size() > 0) {\n\t\t\t\tprojectBriefID = reportList.get(0).getProjectid();\n\t\t\t}\n\t\t\tthis.requestService.updateProjectBriefDate(projectBriefID);\n\t\t\tthis.requestService.updateProjectProposalDate(projectBriefID);\n\n\t\t\treponse.setStatus(Constant.HTTP_OK);\n\t\t\treturnDto = new ResultDto(Constant.ACK, Constant.SUCCEED, null);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\treponse.setStatus(Constant.SERVER_ERROR);\n\t\t\treturnDto = new ResultDto(Constant.NACK, Constant.PARAMETER_ERROR,\n\t\t\t\t\tnull);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\treponse.setStatus(Constant.SERVER_ERROR);\n\t\t\treturnDto = new ResultDto(Constant.NACK, Constant.COMMIT_ERROR,\n\t\t\t\t\tnull);\n\t\t}\n\t\treturn returnDto;\n\t}", "public void PDFClient() throws FileNotFoundException, DocumentException {\n\t\t\n\t\tCustomerBLL customerBLL = new CustomerBLL();\n\t\t\n\t\tDocument document = new Document();\n\t\t\n\t\tString fileName = \"Client-report\" + countClientReports + \".pdf\";\n\t\tcountClientReports++;\n\t\tPdfWriter.getInstance(document, new FileOutputStream(fileName));\n\n\t\tdocument.open();\n\n\t\tParagraph intro = new Paragraph(\"Client Report\");\n\t\tParagraph space = new Paragraph(\" \");\n\t\tPdfPTable table = new PdfPTable(3);\n\n\t\tPdfPCell c1 = new PdfPCell(new Paragraph(\"Id\"));\n\t\tPdfPCell c2 = new PdfPCell(new Paragraph(\"Name\"));\n\t\tPdfPCell c3 = new PdfPCell(new Paragraph(\"Address\"));\n\n\t\ttable.addCell(c1);\n\t\ttable.addCell(c2);\n\t\ttable.addCell(c3);\n\n\t\tfor(Customer c: customerBLL.findAll()) {\n\t\t\tc1 = new PdfPCell(new Paragraph(String.valueOf(c.getId())));\n\t\t\tc2 = new PdfPCell(new Paragraph(c.getName()));\n\t\t\tc3 = new PdfPCell(new Paragraph(c.getAddress()));\n\t\t\t\n\t\t\ttable.addCell(c1);\n\t\t\ttable.addCell(c2);\n\t\t\ttable.addCell(c3);\n\t\t}\n\n\t\tdocument.add(intro);\n\t\tdocument.add(space);\n\t\tdocument.add(space);\n\t\tdocument.add(space);\n\t\tdocument.add(table);\n\n\t\tdocument.close();\n\t}", "void printReport();", "void addAttributeReport(@NotNull AttributeReport attributeReport){\n attributeReports.add(attributeReport);\n }", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\t// Create the File Save dialog.\n\t\tFileDialog fd = new FileDialog(\n\t\t\tAppContext.cartogramWizard, \n\t\t\t\"Save Computation Report As...\", \n\t\t\tFileDialog.SAVE);\n\n\t\tfd.setModal(true);\n\t\tfd.setBounds(20, 30, 150, 200);\n\t\tfd.setVisible(true);\n\t\t\n\t\t// Get the selected File name.\n\t\tif (fd.getFile() == null)\n\t\t\treturn;\n\t\t\n\t\tString path = fd.getDirectory() + fd.getFile();\n\t\tif (path.endsWith(\".txt\") == false)\n\t\t\tpath = path + \".txt\";\n\t\t\n\t\t\n\t\t// Write the report to the file.\n\t\ttry\n\t\t{\n\t\t\tBufferedWriter out = new BufferedWriter(new FileWriter(path));\n\t\t\tout.write(AppContext.cartogramWizard.getCartogram().getComputationReport());\n\t\t\tout.close();\n\t\t} \n\t\tcatch (IOException exc)\n\t\t{\n\t\t}\n\n\t\t\n\t\n\t}", "@RequestMapping(value = \"/i\", method = RequestMethod.GET)\n\tpublic ModelAndView doUniqueReport(ModelAndView modelAndView, @RequestParam(\"id\") final String reportId) {\n\n\t\tLOGGER.debug(\"doUniqueReport : Received unique report request to download PDF report\" + reportId);\n\t\tLOGGER.info(\"doUniqueReport : Received unique report request to download PDF report\" + reportId);\n\n\t\tboolean isValidUser = true;\n\n\t\tList<User> userList = null;\n\t\tUser user = null;\n\t\tList<Assessment> assessmentList = null;\n\t\tList<Suggestion> suggestionList = null;\n\n\t\tassessmentList = assessmentServices.findByReportId(reportId);\n\t\tLOGGER.info(\"assessmentList \" + assessmentList.toString());\n\t\tLOGGER.info(\"assessmentList.get(0).getUserId() \" + assessmentList.get(0).getUserId());\n\t\tuserList = userServices.findByUserId(assessmentList.get(0).getUserId());\n\t\tLOGGER.info(\"@@@@@@@@@@@@@@userList \" + userList.toString());\n\n\t\tif (userList.isEmpty() || userList == null) {\n\t\t\tisValidUser = false;\n\t\t} else {\n\t\t\tuser = userList.get(0);\n\t\t}\n\n\t\tif (isValidUser) {\n\n\t\t\tList statements = suggestionServices.findUserAssessmentStatement(user.getUserId());\n\n\t\t\tLOGGER.info(\"assessmentList dateData \" + assessmentList.get(0).getDate());\n\t\t\tstatementReportDao dataprovider = new statementReportDao();\n\n\t\t\tJRDataSource datasource = dataprovider.getDataSource(user, statements, assessmentList.get(0).getDate());\n\n\t\t\tLOGGER.info(\"datasource \" + datasource.toString());\n\n\t\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\n\t\t\tparameterMap.put(\"datasource\", datasource);\n\n\t\t\tmodelAndView = new ModelAndView(\"ilm_statement_pdfReport\", parameterMap);\n\t\t} else {\n\t\t\t// modelAndView.addObject(\"errorMessage\", \"No data found\");\n\t\t\tModelAndView mav = new ModelAndView(\"/404\");\n\t\t}\n\n\t\treturn modelAndView;\n\t}", "public void setReportId(String reportId) {\r\n this.reportId = reportId;\r\n }", "public void onReportClick(){\r\n\t\tmyView.advanceToReport();\r\n\t}", "public static void generateReport()\n\t{\n\t\tlong time=System.currentTimeMillis();\n\t\tString reportPath=System.getProperty(\"user.dir\")+\"//automationReport//Report\"+time+\".html\";\n\t\t\n\t\thtmlreporter=new ExtentHtmlReporter(reportPath);\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlreporter);\n\t\t\n\t\tString username=System.getProperty(\"user.name\");\n\t\tString osname=System.getProperty(\"os.name\");\n\t\tString browsername=CommonFunction.readPropertyFile(\"Browser\");\n\t\tString env=CommonFunction.readPropertyFile(\"Enviornment\");\n\t\t\n\t\t\n\t\textent.setSystemInfo(\"User Name\", username);\n\t\textent.setSystemInfo(\"OS Name\", osname);\n\t\textent.setSystemInfo(\"Browser Name\", browsername);\n\t\textent.setSystemInfo(\"Enviornment\", env);\n\t\t\n\t\t\n\t\thtmlreporter.config().setDocumentTitle(\"Automation Report\");\n\t\thtmlreporter.config().setTheme(Theme.STANDARD);\n\t\thtmlreporter.config().setChartVisibilityOnOpen(true);\n \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}", "public SmooksTransformModel setReportPath(String reportPath);", "public abstract void parseReport();", "int insert(CustomReport record);", "public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }", "public void upload( Reporte reporte, File file) throws IOException{\n RequestBody formBody = new MultipartBody.Builder()\n .setType(MultipartBody.FORM)\n .addFormDataPart(\"file\", reporte.id+\"_\"+file.getName(), RequestBody.create(MediaType.parse(\"image/jpeg\"), file))\n .build();\n Request request = new Request.Builder()\n .url(BASE_URL+\"/upload\")\n .post(formBody)\n .build();\n\n client.newCall(request).enqueue(new Callback(){\n\n @Override\n public void onFailure(Call call, IOException e) {\n\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n System.out.println(response.body().string());\n }\n });\n }", "stockFilePT102.StockFileDocument.StockFile addNewStockFile();", "void onReportResult(Report report, boolean isNew);", "@Override\n\tpublic void report() throws Exception {\n\t\t\n\t}", "public static IReport createReport(InputStream in) throws ArfException {\r\n \treturn new Report(Report.getAssetReportCollection(in));\r\n }", "@Override\n public synchronized void close() {\n closeReportFile();\n }", "public Result saveStudyReport(String identifier) throws Exception {\n UserSession session = getAuthenticatedSession(DEVELOPER, WORKER);\n \n ReportData reportData = parseJson(request(), ReportData.class);\n reportData.setKey(null); // set in service, but just so no future use depends on it\n \n reportService.saveStudyReport(session.getStudyIdentifier(), identifier, reportData);\n \n return createdResult(\"Report data saved.\");\n }", "public void saveCoverageReport(String report) {\n\t\tDataManager.save(\"report.js\",\"js\",report);\n\t}", "public Sim_reportfile (String filename) {\n this.filename = filename;\n }", "public interface ReportManagerI {\n \n \n \n /**\n * Create a signature report from the information supplied.\n * @param validationResponse\t{@link ValidationSignatureResponse} that contains the validation results.\n * @param templateConf\t\t{@link TemplateData} that contains the information about of template of generation.\n * @param signature\t\t\tElectronic signature.\n * @param document\t\t\tSigned document.\n * @param barcodes\t\t\tBar code to include into the signature report.\n * @param additionalParameters\tAdditional parameters included in the request.\n * @return\t\t\t\tReport.\n * @throws ReportException\t\tIf an error occurs generating the report.\n */\n byte[ ] createReport(ValidationSignatureResponse validationResponse, TemplateData templateConf, byte[ ] signature, byte[ ] document, ArrayList<Barcode> barcodes, HashMap<String, String> additionalParameters) throws ReportException;\n\n\n}", "public void showReport() throws FileNotFoundException{\n String reportName = \"configuration_site\";\n String reportDefFileName=\"report/defination\"+File.separator+reportName+\".jasper\";\n \n try {\n \t\n \t//Get a stream to read the file\n // InputStream is = new FileInputStream(reportDefFileName);\n \n //Fill the report with parameter, connection and the stream reader \n JasperPrint jp = JasperFillManager.fillReport(reportDefFileName, null, conn);\n \n //Viewer for JasperReport\n JRViewer jv = new JRViewer(jp);\n \n //Insert viewer to a JFrame to make it showable\n JFrame jf = new JFrame();\n jf.getContentPane().add(jv);\n jf.validate();\n jf.setVisible(true);\n jf.setSize(new Dimension(800,600));\n jf.setLocation(300,100);\n jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n } catch (JRException ex) {\n ex.printStackTrace();\n }\n }", "public Report() {\n\t\tsuper();\n\t}", "public static void reportes(){\n try {\n /**Variable necesaria para abrir el archivo creado*/\n Desktop pc=Desktop.getDesktop();\n /**Variables para escribir el documento*/\n File f=new File(\"Reporte_salvajes.html\");\n FileWriter w=new FileWriter(f);\n BufferedWriter bw=new BufferedWriter(w);\n PrintWriter pw=new PrintWriter(bw);\n \n /**Se inicia el documento HTML*/\n pw.write(\"<!DOCTYPE html>\\n\");\n pw.write(\"<html>\\n\");\n pw.write(\"<head>\\n\");\n pw.write(\"<title>Reporte de los Pokemons Salvajes</title>\\n\");\n pw.write(\"<style type=\\\"text/css\\\">\\n\" +\n \"body{\\n\" +\n \"background-color:rgba(117, 235, 148, 1);\\n\" +\n \"text-align: center;\\n\" +\n \"font-family:sans-serif;\\n\" +\n \"}\\n\"\n + \"table{\\n\" +\n\"\t\t\tborder: black 2px solid;\\n\" +\n\"\t\t\tborder-collapse: collapse;\\n\" +\n\" }\\n\"\n + \"#td1{\\n\" +\n\" border: black 2px solid;\\n\"\n + \" background-color: skyblue;\\n\" +\n\" }\\n\" +\n\" #td2{\\n\" +\n\" border: black 2px solid;\\n\"\n + \" background-color: white;\\n\" +\n\" }\\n\"\n +\"</style>\");\n pw.write(\"<meta charset=\\\"utf-8\\\">\");\n pw.write(\"</head>\\n\");\n /**Inicio del cuerpo*/\n pw.write(\"<body>\\n\");\n /**Título del reporte*/\n pw.write(\"<h1>Reporte de los Pokemons Salvajes</h1>\\n\");\n /**Fecha en que se genero el reporte*/\n pw.write(\"<h3>Documento Creado el \"+fecha.get(Calendar.DAY_OF_MONTH)+\n \"/\"+((int)fecha.get(Calendar.MONTH)+1)+\"/\"+fecha.get(Calendar.YEAR)+\" a las \"\n +fecha.get(Calendar.HOUR)+\":\"+fecha.get(Calendar.MINUTE)+\":\"+fecha.get(Calendar.SECOND)+\"</h3>\\n\");\n \n pw.write(\"<table align=\\\"center\\\">\\n\");\n //Se escriben los títulos de las columnas\n pw.write(\"<tr>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[0]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[1]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[2]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[3]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[4]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[5]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[6]+\"</td>\\n\");\n pw.write(\"</tr>\\n\");\n for (int i = 0; i < pokemon.ingresados; i++) {\n //Se determina si el pokemon es salvaje\n if(pokemon.Capturado[i]==false){\n pw.write(\"<tr>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Id[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Tipo[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Nombre[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Vida[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.ptAt[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">Salvaje</td>\\n\");\n //Se determina si el pokemon esta vivo o muerto\n String estado;\n if (pokemon.Estado[i]==true) {\n estado=\"Vivo\";\n }else{estado=\"Muerto\";}\n pw.write(\"<td id=\\\"td2\\\">\"+estado+\"</td>\\n\");\n pw.write(\"</tr>\\n\");\n }\n }\n pw.write(\"</table><br>\\n\");\n \n pw.write(\"</body>\\n\");\n pw.write(\"</html>\\n\");\n /**Se finaliza el documento HTML*/\n \n /**Se cierra la capacidad de escribir en el documento*/ \n pw.close();\n /**Se cierra el documento en el programa*/\n bw.close();\n /**Se abre el documento recien creado y guardado*/\n pc.open(f);\n } catch (Exception e) {\n System.err.println(\"Asegurese de haber realizado las actividades previas \"\n + \"relacionadas\");\n }\n }", "public void setReportXMLFile(String reportXMLFile) {\n this.reportXMLFile = reportXMLFile;\n }", "@SuppressWarnings(\"unchecked\")\n private void generatePDFReport(IReportRunnable report, HttpServletResponse response, HttpServletRequest request) {\n IRunAndRenderTask runAndRenderTask = birtEngine.createRunAndRenderTask(report);\n response.setContentType(birtEngine.getMIMEType(\"pdf\"));\n IRenderOption options = new RenderOption();\n PDFRenderOption pdfRenderOption = new PDFRenderOption(options);\n pdfRenderOption.setOutputFormat(\"pdf\");\n runAndRenderTask.setRenderOption(pdfRenderOption);\n runAndRenderTask.getAppContext().put(EngineConstants.APPCONTEXT_PDF_RENDER_CONTEXT, request);\n\n try {\n pdfRenderOption.setOutputStream(response.getOutputStream());\n runAndRenderTask.run();\n } catch (Exception e) {\n throw new RuntimeException(e.getMessage(), e);\n } finally {\n runAndRenderTask.close();\n }\n }", "public void update(IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "public interface FileWritable {\n\n /**\n * The required path and fileName where the report should be saved\n * @return the required FileName\n */\n String getFileName();\n\n /**\n * The required content to be shown on the report\n * @return content to be included\n */\n String getContent();\n}", "public void setReports(nl.webservices.www.soap.InsolvencyReport[] reports) {\n this.reports = reports;\n }", "public void generateReport() {\n ReportGenerator rg = ui.getReportGenerator();\n if (rg == null || !rg.isVisible()) {\n ui.openReportGenerator();\n rg = ui.getReportGenerator();\n }\n Image img = getImage();\n if (img == null) {\n return;\n }\n rg.addImage(img, \"Plot\");\n }", "private void finishSendingEmail(File reportFile, File witnessesFile)\n\t{\n\t\tArrayList<String> paths = new ArrayList<String>();\n\t\t\n\t\t// Attach report CSV file\n\t\tpaths.add(reportFile.getAbsolutePath());\n\t\t\n\t\t// Attach witnesses CSV file if the are any \n\t\tif(!incident.getWitnesses().isEmpty())\n\t\t\tpaths.add(witnessesFile.getAbsolutePath());\n\t\t\n\t\t// Attach photo files if the are any\n\t\tfor(int i=0; i<photoFiles.size(); i++)\n\t\t\tpaths.add(photoFiles.get(i).getAbsolutePath());\n\t\t\n\t\t// Attach video if there is one\n\t\tif(videoFile != null)\n\t\t\tpaths.add(videoFile.getAbsolutePath());\n\t\t\n\t\tString recipient = ParseUser.getCurrentUser().getEmail();\n\t\tString subject = \"Your DriverConnex Incident Report\";\n\t\t\n\t\t// Send email\n\t\tUtilities.sendEmail(ReviewReportActivity.this, recipient, \"\", subject, \"\", paths);\n\t\t\n\t\tloading.setVisibility(View.INVISIBLE);\t\n\t}", "public ReportEntity save(ReportEntity reportEntity)\n {\n setCTR(reportEntity);\n setCR(reportEntity);\n setFillRate(reportEntity);\n setECPM(reportEntity);\n return reportRepository.save(reportEntity);\n }", "int insert(Report record);", "public void summaryReport() {\r\n\r\n\t\tString strTimeStamp = new SimpleDateFormat(\"yyyy-MM-dd-HH-mm-ss\").format(new Date());\r\n\t\tString reportPath = new File(\"Report\").getAbsolutePath();\r\n\t\tint stepPassed = 0;\r\n\t\tint stepFailed = 0;\r\n\t\tString cssData = \"\";\r\n\r\n\t\ttry {\r\n\t\t\tString cssPath = new File(\"Report\\\\Style\\\\style.css\").getAbsolutePath();\r\n\t\t\tbufferedReader = new BufferedReader(new FileReader(cssPath));\r\n\r\n\t\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\t\tString line = bufferedReader.readLine();\r\n\t\t\twhile (line != null) {\r\n\t\t\t\tstringBuilder.append(line);\r\n\t\t\t\tstringBuilder.append(System.lineSeparator());\r\n\t\t\t\tline = bufferedReader.readLine();\r\n\t\t\t}\r\n\t\t\tcssData = stringBuilder.toString();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tLog.error(\"Exception occure in reading file\" + ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tbufferedReader.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tLog.error(\"Exception occure in reading file\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tFile HTMLDir = new File(reportPath + \"\\\\HTMLReport\");\r\n\t\tif (!HTMLDir.exists()) {\r\n\t\t\ttry {\r\n\t\t\t\tHTMLDir.mkdir();\r\n\t\t\t} catch (SecurityException ex) {\r\n\t\t\t\tLog.error(\"Error in creating HTMLReport directory\" + ex.getMessage());\r\n\t\t\t\t// log.error(\"Error in creating Detail directory\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tString htmlname = HTMLDir + \"\\\\\" + strTimeStamp + \".html\";\r\n\t\tString logoPath = new File(\"Report\\\\Style\\\\logo.png\").getAbsolutePath();\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstepFailed++;\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\t\t\t\tstepPassed++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tbufferedWriter = new BufferedWriter(new FileWriter(htmlname));\r\n\t\t} catch (IOException e) {\r\n\t\t\tLog.error(\"Error in wrinting the file\" + e.getMessage());\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<html><head><script type=\\\"text/javascript\\\" src=\\\"https://www.gstatic.com/charts/loader.js\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<script src=\\\"https://www.google.com/jsapi\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<style>\" + cssData);\r\n\t\tstrBufferReportAppend.append(\"</style>\");\r\n\t\tstrBufferReportAppend.append(\"</head><body>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td><img src=file:\\\\\\\\\" + logoPath + \"></td>\" + \"<td class=\\\"headertext\\\">\"\r\n\t\t\t\t+ reportHeader + \"</td>\");\r\n\r\n\t\tstrBufferReportAppend.append(\"</tr></table><hr></hr>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table cellpadding=3 cellspacing=1>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution Start Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrStartTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution End Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrEndTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Total TestSteps Executed</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t\t\t+ (stepFailed + stepPassed) + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 green\\\">Passed</td><td class=\\\"width50 green\\\">\" + stepPassed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 red\\\">Failed</td><td class=\\\"width50 red\\\">\" + stepFailed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"</td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<script type=\\\"text/javascript\\\">\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.load('current', {'packages':['corechart']});\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.setOnLoadCallback(drawDetailsChart);\");\r\n\t\tstrBufferReportAppend.append(\"function drawDetailsChart() {\");\r\n\t\tstrBufferReportAppend.append(\"var data = new google.visualization.DataTable();\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('string', 'Test Execution Detail Graph');\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('number', 'Count');\");\r\n\t\tstrBufferReportAppend.append(\"data.addRows([\");\r\n\t\tstrBufferReportAppend.append(\"['Passed',\" + stepPassed + \"],\");\r\n\t\tstrBufferReportAppend.append(\"['Failed',\" + stepFailed + \"]]);\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var options = {'title':'Test Step Details Graph',colors: ['#12C909', '#C3100A'],pieHole: 0.3,\");\r\n\t\tstrBufferReportAppend.append(\"'width':300,\");\r\n\t\tstrBufferReportAppend.append(\"'height':170};\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var chart = new google.visualization.PieChart(document.getElementById('detailsChart_div'));\");\r\n\t\tstrBufferReportAppend.append(\"chart.draw(data, options); } </script>\");\r\n\t\tstrBufferReportAppend.append(\"<div id=\\\"detailsChart_div\\\"></div>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table><hr></hr></td></tr>\");\r\n\t}" ]
[ "0.7024761", "0.6915207", "0.6902684", "0.6691447", "0.665297", "0.6581216", "0.65385133", "0.6474397", "0.6455939", "0.63588446", "0.63359934", "0.6288866", "0.61286634", "0.61085343", "0.61007255", "0.60999644", "0.608886", "0.6050964", "0.60467327", "0.60415685", "0.6017957", "0.59792864", "0.5970224", "0.5967815", "0.59654146", "0.59369516", "0.5877701", "0.58751523", "0.5870104", "0.5863181", "0.58571446", "0.5856698", "0.5845778", "0.5821005", "0.5818629", "0.5817077", "0.58041525", "0.5803576", "0.57702833", "0.5761653", "0.57470596", "0.5744645", "0.5741195", "0.5733223", "0.57274574", "0.5724126", "0.57171637", "0.5714676", "0.5698636", "0.5692092", "0.568894", "0.5685304", "0.5670886", "0.56573445", "0.56529516", "0.56525457", "0.5643459", "0.5629798", "0.5627481", "0.5624638", "0.56213015", "0.56014514", "0.5599779", "0.5598165", "0.55856436", "0.55777025", "0.5563311", "0.55581284", "0.55565757", "0.5542003", "0.5524178", "0.5517389", "0.5515807", "0.5509857", "0.5507576", "0.55011046", "0.5490341", "0.54898596", "0.5487326", "0.5486333", "0.5486141", "0.5462081", "0.54592186", "0.5455082", "0.54542375", "0.54507345", "0.5448665", "0.5442497", "0.5441319", "0.5433044", "0.54290426", "0.5422237", "0.54150367", "0.5410371", "0.5408322", "0.5407277", "0.54035234", "0.5402205", "0.53915215", "0.5390474" ]
0.6633486
5
Deletes a report from the database
@RequestMapping(method = RequestMethod.POST, value = "/deleteReport") public String deleteReport(String rid) { logger.info(rid); Integer id = Integer.parseInt(rid); reportsRepository.deleteById(id); return "deleted"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteReport(ReportBase report)\r\n throws PersistenceException;", "public void delete(IncomingReport incoming_report) throws DAOException;", "public void delete(MrReport report) {\n getSession().delete(report);\n }", "private void deleteReport(int reportID){\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tstmt.executeUpdate(\"DELETE FROM report_times WHERE report_id=\"+reportID);\n\t\t\tstmt.executeUpdate(\"DELETE FROM reports WHERE id=\"+reportID);\n\t\t} catch (SQLException e) {\n\t\t}\n\t}", "public void deleteReport()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(), new GetCallback<ParseObject>() \n\t\t{\n\t\t\tpublic void done(ParseObject object, ParseException e) \n\t\t\t{\n\t\t\t\tif (e == null) \n\t\t\t\t{\t\t\n\t\t\t\t\tobject.deleteInBackground(new DeleteCallback()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tIntent returnIntent = new Intent();\n\t\t\t\t\t\t\treturnIntent.putExtra(\"reportPosition\", reportPosition);\n\t\t\t\t\t\t\tsetResult(RESULT_OK, returnIntent);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Report is deleted, go back to previous screen\n\t\t\t\t\t\t\tloading.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\toverridePendingTransition(R.anim.slide_right_main,\tR.anim.slide_right_sub);\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});\n\t}", "@Override\r\n\tpublic void deleteReport(String taxId) throws SQLException {\n\t\treportDao.deleteReport(taxId);\r\n\t}", "int deleteByPrimaryKey(BigDecimal reportId);", "public void delete( int nJasperReportId, Plugin plugin )\n {\n \ttry ( DAOUtil daoUtil = new DAOUtil( SQL_QUERY_DELETE, plugin ) )\n \t{\n \t\tdaoUtil.setInt( 1, nJasperReportId );\n daoUtil.executeUpdate( ); \t \n \t}\n }", "@Override\r\n\tpublic void delete(TAnalysisReport analysisreport) {\n\t\tanalysisreportdao.delete(analysisreport);\r\n\t}", "private void requestDeleteReport() throws ERTRestApiException, JSONException {\n final Cursor cursor = getReportStatusCursor(SyncStatus.DELETED_REPORT);\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n\n do {\n final Long reportBaseId = cursor.getLong(\n cursor.getColumnIndex(ReportEntry._ID));\n ExpenseReport expenseReport = Utility.createExpenseReportFromCursor\n (cursor);\n final int reportId = expenseReport.getId();\n\n // update the status of delete to true in the mean time\n // if there is an error from the server, the delete\n // status should be changed to false\n ContentValues contentValues = new ContentValues();\n contentValues.put(ReportEntry.COLUMN_IS_DELETED, \"true\");\n getContext().getContentResolver().update(\n ReportEntry.buildReportUriNoNetworkSync(reportId),\n contentValues,\n null,\n null\n );\n\n ERTRestApi.apiDeleteReport(\n reportId,\n new ERTRestApi.ERTRestApiListener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n // delete all expense line items\n Cursor expenseLineItemCursor = getContext().getContentResolver().query(\n ReportContract.ReportEntry.buildReportExpense(reportBaseId),\n null, null, null, null\n );\n int expenseLineItemDeleteCount = 0;\n if(expenseLineItemCursor.getCount() > 0) {\n expenseLineItemCursor.moveToFirst();\n do {\n expenseLineItemDeleteCount += getContext().getContentResolver().delete(\n ExpenseEntry.buildExpenseUri(expenseLineItemCursor.getInt(expenseLineItemCursor.getColumnIndex(ExpenseEntry._ID))),\n null, null\n );\n } while (expenseLineItemCursor.moveToNext());\n }\n expenseLineItemCursor.close();\n Log.i(LOG_TAG, \"Deleted \" + expenseLineItemDeleteCount + \" expense line items\");\n\n getContext().getContentResolver().delete(\n ReportEntry.buildReportUriNoNetworkSync\n (reportBaseId),\n null,\n null\n );\n Log.d(LOG_TAG, \"Report \" + reportBaseId + \" \" +\n \"deleted\");\n }\n },\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi\n .ERTRestApiError error) {\n // try delete again\n /*updateReportSyncStatus(reportBaseId,\n SyncStatus.DELETED_REPORT);*/\n\n // the delete failed, put the report back in\n // the list\n ContentValues contentValues = new\n ContentValues();\n contentValues.put(ReportEntry\n .COLUMN_IS_DELETED, \"false\");\n getContext().getContentResolver().update(\n ReportEntry\n .buildReportUriNoNetworkSync\n (reportId),\n contentValues,\n null,\n null\n );\n\n Log.e(LOG_TAG, error.getMessage());\n }\n }\n );\n\n updateReportSyncStatus(reportBaseId,SyncStatus.SYNC_IN_PROGRESS);\n\n } while (cursor.moveToNext());\n\n }\n cursor.close();\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete CaseReport : {}\", id);\n caseReportRepository.deleteById(id);\n }", "@Override\r\n\tpublic void deleteReport(List<ReportSearchVO> list, HttpServletResponse response)\r\n\t\t\tthrows SQLException {\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\treportDao.deleteReport(list.get(i));\r\n\t\t}\r\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete StockReport : {}\", id);\n\n stockReportRepository.deleteById(id);\n }", "void onReportDeleted(Report report);", "public void deleteReportCard(ReportCardModel inputModel) {\n System.out.println(\"ReportCardDao.deleteReportCard \" + \"start\");\n // TODO: Implement this function.\n Transaction trans = Datastore.beginTransaction();\n \n Key parentKey = KeyFactory.createKey(\"ReportCard\", inputModel.getStudentName());\n Key key = Datastore.allocateId(parentKey, \"ReportCardModel\");\n \n Datastore.delete(key);\n \n trans.commit();\n System.out.println(\"ReportCardDao.deleteReportCard \" + \"end\");\n }", "public Result deleteStudyReport(String identifier) {\n UserSession session = getAuthenticatedSession(DEVELOPER, WORKER);\n \n reportService.deleteStudyReport(session.getStudyIdentifier(), identifier);\n \n return okResult(\"Report deleted.\");\n }", "@Test\n\tpublic void driverDeleteReport() {\n\t\tfinal Object testingData[][] = {\n\t\t\t{\n\t\t\t\t\"report1\", \"manager1\", null\n\t\t\t},//1. All fine\n\t\t\t{\n\t\t\t\t\"player1\", \"manager1\", IllegalArgumentException.class\n\t\t\t},//2. Not report\n\t\t\t{\n\t\t\t\t\"report1\", \"president1\", IllegalArgumentException.class\n\t\t\t},//3. Invalid authority\n\n\t\t};\n\n\t\tfor (int i = 0; i < testingData.length; i++)\n\t\t\tthis.templateDeleteReport((String) testingData[i][0], (String) testingData[i][1], (Class<?>) testingData[i][2]);\n\t}", "public Result deleteStudyReportRecord(String identifier, String dateString) {\n UserSession session = getAuthenticatedSession(DEVELOPER, WORKER);\n \n reportService.deleteStudyReportRecord(session.getStudyIdentifier(), identifier, dateString);\n \n return okResult(\"Report record deleted.\");\n }", "@Override\r\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\r\n\t\tString ReportNum = request.getParameter(\"reportNum\");\r\n\r\n\t\tReportDAO rDao = ReportDAO.getInstance();\r\n\t\trDao.deleteReport(ReportNum);\r\n\r\n\t\tnew ReportListFormAction().execute(request, response);\r\n\t}", "private void runDeleteReport() {\n showDialog(DIALOG_CONFIRM_DELETE_REPORT_ID);\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete CustomerStatusReportDtl : {}\", id);\n customerStatusReportDtlRepository.delete(id);\n }", "public int deleteReport(@NonNull String reportId) throws IOException, PowerBiClientException {\n Response<Void> res = reportsService.deleteReport(reportId).execute();\n return ClientUtils.buildAndSendResponseCode(res);\n }", "@DELETE\n public Response cancelStorageReport(){\n log.debug(\"Cancelling storage report\");\n\n try {\n String responseText = resource.cancelStorageReport();\n return responseOk(responseText);\n } catch (Exception e) {\n return responseBad(e);\n }\n }", "@Override\n public void delete(ReporteAccidente rep) {\n repr.delete(rep);\n }", "@Delete({\n \"delete from SWMS_stock_out_record_detail\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n int deleteByPrimaryKey(Long id);", "@Delete({ \"delete from h5_app_download_log\", \"where id = #{id,jdbcType=BIGINT}\" })\n\tint deleteByPrimaryKey(Long id);", "public void deleteRecord() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry\n\t\t{\n\t\t\tmyData.record.delete(background.getClient());\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public void deleteAnalysis(long id){\n try{\n analysisDAO.deleteAnalysisById(id);\n } catch (PersistenceException e){\n e.printStackTrace();\n }\n }", "public void delete(IQuery query) throws SQLException;", "public void deletePatientByPrimaryKey(long id) throws PatientExn;", "public void deleteRecord() {\n// foods.clear();\n// try {\n// FoodRecordDao dao = new FoodRecordDao();\n// dao.saveFoodRecords(foods);\n// } catch (DaoException ex) {\n// Logger.getLogger(FoodLogViewController.class.getName()).log(Level.SEVERE, null, ex);\n// }\n }", "private void removeReport(HttpServletRequest req) {\n int id = Integer.parseInt(req.getParameter(\"id\"));\n try {\n ReportMapper.removeReport(id);\n } catch (PolygonException ex) {\n req.getSession().setAttribute(\"errorMsg\", ex.getMessage());\n }\n }", "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "void delete(boolean force, IProgressMonitor monitor)\n\t\t\tthrows RodinDBException;", "public void delete() {\n\t\ttry {\n\t\t\tStatement stmt = m_db.m_conn.createStatement();\n\t\t\tString sqlString;\n\t\t\tString ret;\n\n\t\t\tsqlString = \"DELETE from country WHERE countryid=\" + m_country_id;\n\t\t\tm_db.runSQL(sqlString, stmt);\n\t\t\tstmt.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\">>>>>>>> EXCEPTION <<<<<<<<\");\n\t\t\tSystem.out.println(\"An Exception occured in delete().\");\n\t\t\tSystem.out.println(\"MESSAGE: \" + e.getMessage());\n\t\t\tSystem.out.println(\"LOCALIZED MESSAGE: \" + e.getLocalizedMessage());\n\t\t\tSystem.out.println(\"CLASS.TOSTRING: \" + e.toString());\n\t\t\tSystem.out.println(\">>>>>>>>>>>>>-<<<<<<<<<<<<<\");\n\t\t}\n\t}", "protected void deleteRecord() throws DAOException {\r\n\t\t// Elimina relaciones\r\n\t\tfor (Sedrelco relco : object.getRelcos()) {\r\n\t\t\tsedrelcoDao.delete(relco);\r\n\t\t}\r\n\t\t// Elimina objeto\r\n\t\tobjectDao.delete(object);\r\n\t}", "@Delete({\n \"delete from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n int deleteByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);", "public void deleteReportFileIfExists(final ReportsTestData testData)\n throws IOException, NullPointerException {\n Log.logScriptInfo(\"Cleaning before or after the script...\");\n switch (testData.getFileType()) {\n case \"PDF\":\n verifyIfReportPdfFileExists(\n testData.getReportFileName(),\n false);\n break;\n case \"Excel\":\n verifyIfReportExcelFileExists(\n testData.getReportFileName(), false);\n break;\n case \"CSV\":\n verifyIfReportCsvFileExists(\n testData.getReportFileName(), false);\n break;\n }\n }", "public static String delete(Connection conn, Long patientId) throws Exception {\r\n String result = null;\r\n Statement stmt;\r\n conn.setAutoCommit(false);\r\n stmt = conn.createStatement();\r\n stmt.execute(\"START TRANSACTION;\");\r\n stmt.execute(\"SET FOREIGN_KEY_CHECKS = 0;\");\r\n String sql = \"DELETE pregnancy FROM pregnancy \" +\r\n \"WHERE pregnancy.patient_id=\" + patientId;\r\n stmt.execute(sql);\r\n stmt.execute(\"Commit\");\r\n result = \"Pregnancy records deleted.\";\r\n try {\r\n conn.commit();\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n return result;\r\n }", "@Override\r\n public long deleteRecord(Object o) throws SQLException {\r\n String sql = \"delete from patient where patientid = ?\";\r\n long result = -1;\r\n PatientBean pb;\r\n\r\n try (PreparedStatement pStatement = connection.prepareStatement(sql);) {\r\n pb = (PatientBean) o;\r\n pStatement.setLong(1, pb.getPatientID());\r\n\r\n result = pStatement.executeUpdate();\r\n }\r\n\r\n logger.info(\"Patient record has been deleted: patient id \" + pb.getPatientID() + \", \" + result + \" row(s) affected\");\r\n\r\n return result;\r\n }", "@Delete({\n \"delete from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer id);", "public void clearReports()\n {\n reports.clear();\n }", "@Override\r\n\tpublic void delete(TQssql sql) {\n\r\n\t}", "@Delete(\"DELETE from patients WHERE id_patient=#{patientId}\")\n void deletePatient(int patientId);", "@Override\n\tpublic void delete(String... args) throws SQLException {\n\t\t\n\t}", "public void deletePerformanceReview(PerformanceReview pr) {\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.delete(pr);\n tx.commit();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "@Override\r\n\tpublic int deleteDBInfo(AgentDBInfoVO vo){\n\t\treturn sqlSession.getMapper(CollectMapper.class).deleteDBInfo(vo);\r\n\t}", "public void deleteDB() {\n \n sql = \"Delete from Order where OrderID = \" + getOrderID();\n db.deleteDB(sql);\n \n }", "public void deleteProjectRecord(int pgId) {\n String sql = \"DELETE FROM Project_Commit_Record WHERE pgid=?\";\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n preStmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void delete() throws SQLException {\n DatabaseConnector.updateQuery(\"DELETE FROM course \"\n + \"WHERE courseDept='\" + this.courseDept \n + \"' AND courseNum = '\" + this.courseNum + \"'\");\n }", "String deleteDatasource(String dsID) throws RepoxException;", "public static void delete(long diseaseNum) throws Exception {\n String command = \"DELETE FROM disease \" + \"WHERE DiseaseNum = \" + POut.long(diseaseNum);\n Db.nonQ(command);\n }", "@Override\n\tpublic void delete(DhtmlxGridForm f) throws Exception {\n\t}", "public void Del(String id) {\n\t\tsql = \"delete from throw_history where throw_history_id='\"+id+\"'\";\n\t\tdao.executeUpdate(sql);\n\t\tSystem.out.println(\"=del===\"+sql);\n\t}", "private void deleteReportsFromDevice(ContentValues[]\n expenseReportsContentValues) {\n List<Long> reportList = getListOfItemsToDelete(expenseReportsContentValues,\n ReportEntry.COLUMN_REPORT_ID,\n ReportEntry.CONTENT_URI);\n\n for(Long reportId : reportList) {\n Cursor cursor = getContext().getContentResolver().query(\n ReportEntry.CONTENT_URI,\n null,\n ReportEntry.COLUMN_REPORT_ID + \"=\" + reportId,\n null, null\n );\n Uri reportUri = null;\n if(cursor.getCount() > 0) {\n cursor.moveToFirst();\n reportUri = ReportEntry.buildReportUri(cursor.getLong(cursor.getColumnIndex(ReportEntry._ID)));\n }\n cursor.close();\n if(reportUri != null) {\n getContext().getContentResolver().delete(reportUri, null, null);\n }\n }\n\n }", "public int delete(MonthlyValuesRecord record) throws SQLException\n {\n int returnCode=-999;\n\n // Create a SQL delete statement and issue it\n // construct the delete statement\n String deleteStatement = \"DELETE FROM monthlyvalues \" + record.getWhereString();\n\n // get the number of records processed by the delete\n returnCode = getStatement().executeUpdate(deleteStatement);\n\n return returnCode;\n }", "public void delete(int id){\n \n SqlSession session = sqlSessionFactory.openSession();\n \n try {\n session.delete(\"Subject.delete\", id);\n } finally {\n session.commit();\n session.close();\n }\n System.out.println(\"delete(\"+id+\")\");\n\n }", "@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 삭제를 하다.\");\n\t}", "@Override\r\n\tpublic void delete(int no) {\n\t\tsqlSession.delete(namespace + \".delete\", no);\r\n\t}", "@Override\r\n\tpublic void delete(int no) {\n\t\tsqlSession.delete(namespace + \".delete\", no);\r\n\t}", "public void del(Connection con) \n throws qdbException\n {\n try {\n PreparedStatement stmt = con.prepareStatement(\n \" DELETE From DisplayOption WHERE \" \n + \" dpo_res_id = ? AND \" \n + \" dpo_view = ? \" );\n \n stmt.setLong(1,dpo_res_id);\n stmt.setString(2,dpo_view); \n \n stmt.executeUpdate(); \n stmt.close();\n \n } catch(SQLException e) {\n throw new qdbException(\"SQL Error: \" + e.getMessage()); \n }\n }", "public void delete(int id) throws DAOException;", "public void clearReports()\n\t{\n\t\treports.clear();\n\t}", "@Transactional\n\t\tpublic void delete(ComplaintVO complaintVO) \n\t\t{\n\t\t\tcomplaintDAO.delete(complaintVO);\n\t\t}", "public void delete() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.delete(this);\r\n\t}", "@DELETE\n public Report deleteAll() throws UnknownResourceException {\n\n eventFacade.removeAll();\n int previousRows = customerBillFormatFacade.count();\n customerBillFormatFacade.removeAll();\n List<CustomerBillFormat> pis = customerBillFormatFacade.findAll();\n for (CustomerBillFormat pi : pis) {\n delete(pi.getId());\n }\n\n int currentRows = customerBillFormatFacade.count();\n int affectedRows = previousRows - currentRows;\n\n Report stat = new Report(currentRows);\n stat.setAffectedRows(affectedRows);\n stat.setPreviousRows(previousRows);\n\n return stat;\n }", "public void delFor(String idi) {\n\t\tourDatabase.delete(DATABASE_TABLE5, Sales_Id + \"=\" +idi, null);\n\t\t\n\t}", "@Override\n\tpublic boolean delete() {\n\t\tString sql=\"DELETE FROM tc_student where id=\"+id;\n\t\t//`\n\t\t\n\t\tSystem.out.println(sql);\n\t\treturn mysql.execute(sql);\n\t}", "public void deleteRecord(Record record, String clientName, String assessmentYear, String taxType, String paymentDate, String paymentAmount) {\n String delete = \"DELETE FROM \" + TABLE_RECORDS + \" WHERE \" + COLUMN_NAME + \"=\\\"\" + clientName + \"\\\" AND \" + COLUMN_ASSESSMENT_YEAR + \"=\\\"\" + assessmentYear + \"\\\" AND \" +\n COLUMN_IT_GST + \"=\\\"\" + taxType + \"\\\" AND \" + COLUMN_PAYMENT_DATE + \"=\\\"\" + paymentDate + \"\\\" AND \" + COLUMN_PAYMENT_AMOUNT + \"=\\\"\" + paymentAmount + \"\\\"\";\n records.remove(record);\n\n try {\n statement = connection.prepareStatement(delete);\n statement.executeUpdate();\n logFile.modifyLogFile(\"Data successfully deleted from database\");\n } catch (SQLException e) {\n logFile.modifyLogFile(\"Error deleting record : \" + e.getMessage());\n e.printStackTrace();\n }\n }", "public void delete(Employee employee) {\r\n\r\n String sql = \"delete from db.emp where id= ?\";\r\n try {\r\n Connection connection = ConnectDB();\r\n PreparedStatement preparedStatement = connection.prepareStatement(sql);\r\n preparedStatement.setInt(1,employee.getId());\r\n\r\n int rows=preparedStatement.executeUpdate();\r\n String message=rows==1 ? \"A fost sters cu succes\": \"Nu este nimic de sters\";\r\n\r\n System.out.println(message);\r\n\r\n } catch (SQLException Ex) {\r\n System.out.println(Ex.getMessage());\r\n System.out.println(\"Eroare la stergere\"+ Ex.getMessage());\r\n\r\n }\r\n }", "@Delete({\n \"delete from mail_host\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer id);", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete ProjectTransactionRecord : {}\", id);\n projectTransactionRecordRepository.delete(id);\n }", "@Override\r\n\tpublic void delete(SimpleJdbcTemplate template) throws Exception {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "@Delete({ \"delete from csv_file\", \"where id = #{id,jdbcType=INTEGER}\" })\n\tint deleteByPrimaryKey(Integer id);", "public void deletePendingReports() {\r\n String[] filesList = getCrashReportFilesList();\r\n if (filesList != null) {\r\n for (String fileName : filesList) {\r\n new File(mContext.getFilesDir(), fileName).delete();\r\n }\r\n }\r\n }", "private void cleanReporter(){\n File file = new File(\"test-report.html\");\n file.delete();\n\n }", "private void delete() {\n\t\tConfiguration conf = new Configuration();\n\t\tconf.configure(\"hibernate.cfg.xml\");\n\t\tSessionFactory sf = conf.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\ts.beginTransaction();\n\n\t\tQuery query = s.createQuery(\"delete from OldStudent where name='Michael'\");\n\t\tint count = query.executeUpdate();\n\t\tSystem.out.println(\"Number of Rows Deleted in the oldstudent table=\" + count);\n\n\t\ts.getTransaction().commit();\n\t\ts.clear();// s.evict() on all student objects in session\n\t\tsf.close();\n\n\t}", "public void Delete(){\n String whereClause2 = PostDatabase.ID + \" = ?\";\n // Specify arguments in placeholder order.\n String[] whereArgs2 = { \"6\" };\n // Issue SQL statement.\n sqlDB.delete(PostDatabase.TABLE_POSTS, whereClause2, whereArgs2);\n\n }", "@Override\n\tpublic void delete_from_DB() throws CouponSiteMsg\n\t{\n\t\t\n\t}", "public void delete(EvaluationsDegreePk pk) throws EvaluationsDegreeDaoException;", "@Override\n\tpublic int delete(String id) {\n\t\treturn sysActionLogDao.delete(id);\n\t}", "void delete ( int id ) throws DAOException;", "int deleteById(ID id) throws SQLException, DaoException;", "public void deleteRecords(LVValue expression) throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\tmyData.record=createRecord(myData.spec,null);\n\t\ttry\n\t\t{\n\t\t\tmyData.record.deleteRecords(background.getClient(),expression.getStringValue());\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public void delete(int id) throws SQLException {\n\t\t\r\n\t}", "public void delete() throws SQLException {\r\n\t\t//SQL Statement\r\n\r\n\t\tString sql = \"DELETE FROM \" + table+ \" WHERE \" + col_genreID + \" = ?\";\r\n\t\tPreparedStatement stmt = DBConnection.getConnection().prepareStatement(sql);\r\n\t\tstmt.setInt(1, this.getGenreID());\r\n\r\n\t\tint rowsDeleted = stmt.executeUpdate();\r\n\t\tSystem.out.println(\"Es wurden \"+rowsDeleted+ \"Zeilen gelöscht\");\r\n\t\tstmt.close();\r\n\t}", "@Override\r\n\tpublic void delete(int id) {\n\t\tconsigMetalDtRepository.delete(id);\r\n\t\t\r\n\t}", "int delete(Long id) throws SQLException, DAOException;", "@Override\n\tpublic void deleteById(int id) throws SQLException {\n\n\t}", "@Override\n\tpublic void delete(DatabaseHandler db) {\n\t\tdb.deleteWork(this);\n\t\t\n\t}", "@Override\r\n\tpublic void delete(ReportingUrlCreation transientInstance){\n\t\ttry {\r\n\t\t\tgetSession().delete(transientInstance);\r\n\t\t} catch (RuntimeException re) {\r\n\t\t\tre.printStackTrace();\r\n\t\t\tthrow re;\r\n\t\t}\r\n\t}", "boolean deleteInstrument(T instrument) throws DaoException, InstrumentNotFoundException;", "public void deleteDepartmentByDeptNo(int dept_no);", "@Query(\"DELETE FROM Grades WHERE subject = :subject\")\n int deleteGradeBySubject(String subject);", "@Override\n public void delete(Long id) {\n planRepository.deleteById(id);\n\n }", "void deleteByProjectId(Long projectId);", "public void deleteProject(Long projectId);", "@Delete({\n \"delete from test_module\",\n \"where id = #{id,jdbcType=VARCHAR}\"\n })\n int deleteByPrimaryKey(String id);", "public void deleteById(String id);", "@Override\n public void run() {\n\n String filename = \"PurgeTable\";\n\n PreparedStatement stmt1 = null;\n try {\n stmt1 = conn.prepareStatement(\"delete from \" + filename);\n stmt1.executeUpdate();\n System.out.println(\"Deletion successful\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }" ]
[ "0.81656355", "0.79651487", "0.7756696", "0.77455944", "0.7636574", "0.7491414", "0.73111147", "0.725545", "0.71437776", "0.6717792", "0.66974366", "0.6679742", "0.66360956", "0.648282", "0.64096135", "0.6405842", "0.6332411", "0.6295557", "0.62950736", "0.6244971", "0.6191528", "0.61741966", "0.6146035", "0.611631", "0.60535055", "0.6026042", "0.6025823", "0.5965499", "0.594868", "0.5948407", "0.5902869", "0.58886486", "0.5866269", "0.5858801", "0.5824806", "0.58240384", "0.5822434", "0.58035016", "0.57998395", "0.57917327", "0.5780413", "0.5773384", "0.57663727", "0.5764347", "0.576305", "0.57571363", "0.5747705", "0.57451606", "0.574133", "0.5734446", "0.57267034", "0.57241476", "0.5723082", "0.57152075", "0.5713539", "0.57112515", "0.5710828", "0.5710092", "0.5709713", "0.5709713", "0.5709198", "0.5708554", "0.57076067", "0.569849", "0.5694948", "0.5691087", "0.56909907", "0.5676504", "0.5674713", "0.56744874", "0.56667227", "0.5657758", "0.56516874", "0.5632773", "0.5623351", "0.56210893", "0.5619914", "0.5611862", "0.5609423", "0.5598096", "0.55975276", "0.55930436", "0.5593036", "0.55908376", "0.5584955", "0.55832994", "0.5580594", "0.55804276", "0.5580184", "0.5578632", "0.55769837", "0.5574747", "0.55736", "0.55724007", "0.55714536", "0.5571259", "0.5549732", "0.5548996", "0.55427307", "0.5542586" ]
0.6847649
9
TODO Autogenerated method stub
public List<IDocument> getDocumentsByStateUsingBatch(State state,int batchSize) { return null; }
{ "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
Nadpisanie nie jest istotnoe
private void check_this_minute() { controlNow = false; for (DTimeStamp dayControl : plan) { if (dayControl.point == clockTime.point) { controlNow = true; break; } } for (DTimeStamp simControl : extra) { if (simControl.equals(clockTime)) { controlNow = true; break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void elCerdoNoSePuedeAtender() {\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "@Test\n public void testExistenceTestuJedneOsoby() {\n osBeznyMuz = new Osoba(120, 150, Barva.MODRA);\n testJedneOsoby(osBeznyMuz, 120, 150, 70, 140, Barva.MODRA);\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "public abstract String dohvatiKontakt();", "@Override\n\tpublic boolean datiUscitaImpegno() {\n\t\treturn false;\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "@Test\n\tpublic void testLecturaFrom(){\n\t\tassertEquals(esquemaEsperado.getExpresionesFrom().toString(), esquemaReal.getExpresionesFrom().toString());\n\t}", "@Test\n public void konstruktoriAsettaaSateenOikein() {\n assertEquals(3.0, lierio.getSade(), 1);\n }", "@Test\n\tpublic void testDarMotivoIngreso()\n\t{\n\t\tassertEquals(\"El motivo de ingreso esperado es: Accidente\", Motivo.ACCIDENTE, paciente.darMotivoIngreso());\n\t}", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "@Test\n public void testSpremiKonfiguraciju() throws Exception {\n System.out.println(\"spremiKonfiguraciju\");\n KonfiguracijaTxt instance = new KonfiguracijaTxt(datKonf.getName());\n instance.spremiKonfiguraciju();\n assertTrue(datKonf.exists());\n }", "public void sendeSpielfeld();", "public void trenneVerbindung();", "public void Ordenamiento() {\n\n\t}", "public void asetaTeksti(){\n }", "@Test\n\tpublic void testNoNulos() {\n\t\tassertNotNull(\"Error: La bici es nula\", bicicleta);\n\t\tassertNotNull(\"Error: La velocidad es nula\", bicicleta.getVelocidad());\n\t\tassertNotNull(\"Error: El espacio es nulo\", bicicleta.getEspacioRecorrido());\n\t\tassertNotNull(\"Error: El piñon actual es nulo\", bicicleta.getPinhonactual());\n\t\tassertNotNull(\"Error: El plato actual es nulo\", bicicleta.getPlatoactual());\n\t\tassertNotNull(\"Error: El radio de la rueda es nulo\", bicicleta.getRadiorueda());\n\t}", "@Test\n public void testAvaaRuutu() {\n int x = 0;\n int y = 0;\n Peli pjeli = new Peli(new Alue(3, 0));\n pjeli.avaaRuutu(x, y);\n ArrayList[] lista = pjeli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isAvattu());\n assertEquals(false, pjeli.isLahetetty());\n }", "@Test\n public void getTarjetaPrepagoTest()\n {\n TarjetaPrepagoEntity entity = data.get(0);\n TarjetaPrepagoEntity resultEntity = tarjetaPrepagoLogic.getTarjetaPrepago(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNumTarjetaPrepago(), resultEntity.getNumTarjetaPrepago());\n Assert.assertEquals(entity.getSaldo(), resultEntity.getSaldo(), 0.001);\n Assert.assertEquals(entity.getPuntos(), resultEntity.getPuntos(),0.001);\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Test\n\tpublic void ricercaSinteticaClassificatoreGSAFigli() {\n\n\t}", "@Test\r\n public void getSalaTest() \r\n {\r\n SalaEntity entity = data.get(0);\r\n SalaEntity resultEntity = salaLogic.getSala(data.get(0).getId());\r\n Assert.assertNotNull(resultEntity);\r\n Assert.assertEquals(entity.getId(), resultEntity.getId());\r\n Assert.assertEquals(resultEntity.getNumero(), entity.getNumero());\r\n }", "public IzvajalecZdravstvenihStoritev() {\n\t}", "public final void nonRedefinissableParEnfant(){\n\n }", "public boolean souvislost(){\n\t\t\n\t\tif(pole.size() != pocetVrcholu){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "@Test\n public void testSpremiKonfiguraciju_String() throws Exception {\n System.out.println(\"spremiKonfiguraciju\");\n KonfiguracijaTxt instance = new KonfiguracijaTxt(datKonf.getName());\n instance.spremiKonfiguraciju(datKonf.getName());\n assertTrue(datKonf.exists());\n }", "private UsineJoueur() {}", "public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}", "@Test\r\n public void testGetOrigen() {\r\n String expResult = \"origenprueba\";\r\n articuloPrueba.setOrigen(expResult);\r\n String result = articuloPrueba.getOrigen();\r\n assertEquals(expResult, result);\r\n }", "public boolean czyZdalnie()\n\t{\n\t\treturn najlepsze == null;\n\t}", "@Test\n public void sucheReihen() throws Exception {\n System.out.println(\"sucheReihen\");\n KategorieKey key = null;\n List<Reihe> expResult = null;\n List<Reihe> result = SaalHelper.sucheReihen(key);\n assertEquals(expResult, result);\n \n }", "@Test\r\n\t\tpublic void testMovimientoTorreNegra0() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreNegra0,\r\n\t\t\t\t\t\"Error al comprobar los movimientos del rey negro en el inicio de una aprtida en la posición 8a. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "@Test\r\n\t\tpublic void testMovimientoTorreNegra0a() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreNegra0a,\r\n\t\t\t\t\t\"Error al comprobar los movimientos del rey negro en el inicio de una aprtida en la posición 8h. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "public int liczbaelnastosie() {\n\t\treturn 0;\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tvoid geraDados() {\n\n\t}", "@Override\n\tpublic void checkeoDeBateria() {\n\n\t}", "@Test\n\tpublic void vero_se_e_solo_se_un_prestito_uguale_a_se_stesso() {\n\t\tassertTrue(prestito.equals(prestito),\"Prestito uguale sse uguale a se stesso\");\n\t}", "public void validerSaisie();", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "@Test\n\tpublic void testLecturaNombre() {\n\t\tassertTrue(!esquemaReal.getNombrePatron().equals(\"\"));\n\t}", "private void zmienne_poziomu(int poziom)\n {\n liczba_zyc =Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_zyc\"));\n liczba_naboi=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_naboi\"));\n liczba_zyc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_zyc_wroga\"));\n liczba_pilek=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_pilek\"));\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_predkosc_wroga\"));\n bonusy_poziomu=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_bonusy_poziomu\"));\n rozmiar_pilki=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_rozmiar_pilki\"));\n zmiana_ruchu_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_zmiana_ruchu_wroga\"));\n czas_gry=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_czas_gry\"));\n }", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "public AntrianPasien() {\r\n\r\n }", "@Test\n public void nelioMuodostuu() {\n ArrayList lista=this.tetrimino.palautaKuvio();\n assertEquals(lista.size(), 4);\n \n }", "@Test\n public void testLukitseRuutu() {\n System.out.println(\"lukitseRuutu\");\n int x = 0;\n int y = 0;\n Peli peli = new Peli(new Alue(3, 1));\n peli.lukitseRuutu(x, y);\n ArrayList[] lista = peli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isLukittu());\n }", "@Test\r\n @Ignore\r\n public void testGetPlantoesDia() {\r\n System.out.println(\"getPlantoesDia\");\r\n Date dataDesejada = null;\r\n EnfermeiroDaoImpl instance = new EnfermeiroDaoImpl();\r\n List<Enfermeiro> expResult = null;\r\n List<Enfermeiro> result = instance.getPlantoesDia(dataDesejada);\r\n assertEquals(expResult, result);\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 }", "@Test\n public void WertZuweisung (){\n String bez = \"Test\";\n String matGr = \"Test\";\n String zeichNr = \"Test\";\n float preis = 3;\n int ve = 1;\n try {\n Teilebestand teil = new Teilebestand();\n teil.setBezeichnung(bez);\n teil.setMaterialgruppe(matGr);\n teil.setPreis(preis);\n teil.setTyp(Teilebestand.Typ.kaufteile);\n teil.setZeichnungsnummer(zeichNr);\n teil.setVe(ve);\n \n teil.save();\n \n assertEquals(teil.getBezeichnung(), bez);\n assertEquals(teil.getMaterialgruppe(), matGr);\n assertEquals(teil.getPreis(), preis, 0.1);\n assertNotNull(preis);\n assertEquals(teil.getTyp(), Teilebestand.Typ.kaufteile);\n assertEquals(teil.getVe(), ve);\n assertNotNull(ve);\n assertEquals(teil.getZeichnungsnummer(), zeichNr);\n \n } catch (SQLException ex) {\n fail(ex.getSQLState());\n }\n \n \n \n \n }", "@Test\n public void testGetNombre() {\n System.out.println(\"getNombre\");\n DboEdificio instance = new DboEdificio(1, \"T-3\");\n String expResult = \"T-3\";\n String result = instance.getNombre();\n assertEquals(expResult, result);\n \n }", "@SuppressWarnings(\"SuspiciousMethodCalls\")\n private int houve_estouro()\n {\n int retorno = 0;\n boolean checar = false;\n for (Map.Entry i: janela.entrySet())\n {\n if (janela.get(i.getKey()).isEstouro())\n {\n janela.get(i.getKey()).setEstouro(false);\n retorno =(int) i.getKey();\n checar = true;\n break;\n }\n }\n for(Map.Entry i2: janela.entrySet()) janela.get(i2.getKey()).setEstouro(false);\n if(checar) return retorno;\n else return -69;\n }", "@Test\n\tpublic void testRicercaArticolo1() {\n\t\tString ricerca = \"No\";\n\t\tArrayList<Articolo> trovati = (ArrayList<Articolo>) \n\t\t\t\tb1.ricercaArticolo(ricerca);\n\t\tassertTrue(\"La lista deve essere vuota\", trovati.isEmpty());\n\t}", "@Test\n\tpublic void testLecturaSelect(){\n\t\tassertEquals(esquemaEsperado.getExpresionesSelect().toString(), esquemaReal.getExpresionesSelect().toString());\n\t}", "@Override\n protected void getExras() {\n }", "@Test\n public void shouldBeZeroForTolkienAuthor() {\n\n }", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "@Test\n public void testGetOikein1() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n k.tarkistaVastaus(\"vastine\");\n k.tarkistaVastaus(\"trololololoo\");\n int virheita = k.getOikein();\n// System.out.println(virheita);\n\n assertEquals(\"Oikein menneiden sanojen tarkastukset ei laske virheitä oikein\", 1, virheita);\n }", "@Override\n public void perish() {\n \n }", "@Test\n public void testDetecterCompteSousMoyenne() {\n// System.out.println(\"detecterAnomalieParrapportAuSeuil\");\n Integer seuil = 30;\n POJOCompteItem instance = genererInstanceTest();\n\n try {\n instance.compte();\n instance.calculerMoyenne(new DateTime(2013, 1, 1, 0, 0).toDate(), new DateTime(2013, 1, 6, 0, 0).toDate());\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n// List expResult = null;\n Map<Date, Integer> result = instance.detecterAnomalieParrapportAuSeuil(seuil);\n\n if (result.size() != 3) {\n fail(\"on attend 3 résultats\");\n }\n\n\n try { // On tente de faire le calcul avec une valeur null doit lever une NullPointerException\n instance.detecterAnomalieParrapportAuSeuil(null);\n fail(\"devait lancer une exception\");\n } catch (Exception e) {\n if (!e.getClass().equals(NullPointerException.class)) {\n fail(\"devait lever une NullPointerException\");\n }\n }\n }", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "void berechneFlaeche() {\n\t}", "@Test\n public void getEspecieTest() {\n EspecieEntity entity = especieData.get(0);\n EspecieEntity resultEntity = especieLogic.getSpecies(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNombre(), resultEntity.getNombre());\n }", "private void remplirUtiliseData() {\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Test\r\n\tpublic void testGetPeliBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == -2.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.75);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 1.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// p1 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"-1,6398\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",1491\"));\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",4472\"));\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"1,0435\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "private void limpiarDatos() {\n\t\t\n\t}", "public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}", "public boolean sucheMitspieler();", "boolean sprawdz_przegrana(){\n for(int i=0;i<figura_jakas.getWspolzedne_figorki().size();i++)\n if(sprawdz_kolizje_z_innymi_klockami(0))\n return true;\n return false;\n }", "@Override\r\n\tpublic boolean cadastrar(Loja loja) {\n\t\treturn false;\r\n\t}", "@Test\r\n public void getCarritoDeComprasTest() {\r\n System.out.println(\"g entra\"+data);\r\n CarritoDeComprasEntity entity = data.get(0);\r\n CarritoDeComprasEntity newEntity = carritoDeComprasPersistence.find(entity.getId());\r\n Assert.assertNotNull(newEntity);\r\n Assert.assertEquals(entity.getTotalCostDeCarritoCompras(), newEntity.getTotalCostDeCarritoCompras());\r\n System.out.println(\"g voy\"+data);\r\n }", "@Test\n public void testGetNota() {\n System.out.println(\"getNota\");\n Alumno instance = null;\n ArrayList<Notas> expResult = null;\n ArrayList<Notas> result = instance.getNota();\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\tpublic void erstellen() {\n\t\t\n\t}", "@Test\n public void kaasunKonstruktoriToimiiOikeinTest() {\n assertEquals(rikkihappo.toString(),\"Rikkihappo Moolimassa: 0.098079\\n tiheys: 1800.0\\n lämpötila: 298.15\\n diffuusiotilavuus: 50.17\\npitoisuus: 1.0E12\");\n }", "@Test\r\n\tpublic void CT05ConsultarLivroComNomeNulo() {\r\n\t\ttry {\r\n\t\t\t// cenario\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tUsuario usuario;\r\n\t\t\t// acao\r\n\t\t\tusuario = ObtemUsuario.comNome_nulo();\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// verificacao\r\n\t\t\tassertEquals(\"Nome inválido\", e.getMessage());\r\n\t\t}\r\n\t}", "@Test\n public void testGetYhteensa() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n k.tarkistaVastaus(\"vaarav vastaus\");\n k.tarkistaVastaus(\"trololololoo\");\n int virheita = k.getYhteensa();\n\n assertEquals(\"Sanan tarkastus ei toimi\", 2, virheita);\n }", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "@Test\n public void sucheSaeleBezT() throws Exception {\n System.out.println(\"sucheSaele nach Bezeichnung\");\n bezeichnung = \"Halle 1\";\n typ = \"\";\n plaetzeMin = null;\n ort = null;\n SaalDAO dao=DAOFactory.getSaalDAO();\n query = \"bezeichnung like '%\" + bezeichnung + \"%' \";\n explist = dao.find(query);\n System.out.println(query);\n List<Saal> result = SaalHelper.sucheSaele(bezeichnung, typ, plaetzeMin, ort);\n assertEquals(explist, result);\n \n }", "private DittaAutonoleggio(){\n \n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public boolean tieneRepresentacionGrafica();", "@Override\n\tpublic boolean istBerechtigt() {\n\t\treturn true;\n\t}", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "@Then(\"^Tytuł sekcji jest inny niż oczekiwany$\")\n public void Tytuł_sekcji_jest_inny_niż_oczekiwany() throws Throwable {\n String nazwaSekcji = driver.findElement(By.xpath(\"/html/body/div[1]/div[7]/div/div/div[1]/div[1]/div[1]/p\")).getText();\n String docelowaNazwaSekcji = \"Strefa Logowania\";\n Assert.assertEquals(docelowaNazwaSekcji, nazwaSekcji);\n }", "@Test\r\n public void testGetPracownik() {\r\n System.out.println(\"getPracownik\");\r\n Faktura instance = new Faktura();\r\n Pracownik expResult = null;\r\n Pracownik result = instance.getPracownik();\r\n assertEquals(expResult, result);\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 }", "public void Excepti() throws Exception{ \n throw new Exception(\"El dato especificado NO existe en la lista!!!\"); \n }", "@Test\n @Ignore\n public void testUcitajKonfiguraciju() throws Exception {\n System.out.println(\"ucitajKonfiguraciju\");\n KonfiguracijaTxt instance = null;\n instance.ucitajKonfiguraciju();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "void zmniejszBieg();", "public void testAltaVehiculo(){\r\n\t}", "@Test\n public void testKatsokoko() {\n \n assertEquals(50, testi.ruudunkoko);\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "private void guardarEstadoObjetosUsados() {\n }", "@Test\r\n\t\tpublic void testMovimientoTorreBlanca0() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreBlanca0,\r\n\t\t\t\t\t\"Error al comprobar los movimientos de la torre blanca en el inicio de una aprtida en la posición 1a. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "@Test\r\n\tpublic void testGetErabBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -0.5);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == -2.75);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 0.75);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 1.75);\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// e1 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 1);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -1);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"-1,6398\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\",1491\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p3.getPelikulaId())).equals(\",4472\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p4.getPelikulaId())).equals(\"1,0435\"));\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "@Test\n public void createStatisticsF03_TC2_valid() {\n try {\n Statistica statistica = appService.getStatistica();\n assertTrue(true);\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"Literatura\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"Literatura\") == 1);\n } catch (NotAbleToCreateStatisticsException e) {\n assertTrue(false);\n e.printStackTrace();\n }\n\n }", "private void inizia() throws Exception {\n this.setClasse((new ArrayList<Boolean>()).getClass());\n this.setValoreVuoto(null);\n }", "@Test\n public void quandoCriaPilhaVazia(){\n // QUANDO (PRE-CONDIÇAO) E FAÇA (EXECUÇAO DO COMPORTAMENTO):\n PilhaString pilha1 = new PilhaString();\n \n // VERIFICAR (CHECK)\n assertTrue(pilha1.isVazia()); //true\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}" ]
[ "0.6469296", "0.6395747", "0.63509315", "0.63096076", "0.6161424", "0.61466175", "0.60852623", "0.6061914", "0.6033656", "0.60188633", "0.6017863", "0.5967346", "0.5959663", "0.5942029", "0.59110826", "0.59083974", "0.58646345", "0.5846248", "0.5840364", "0.5837766", "0.5833095", "0.58299", "0.58109045", "0.5809137", "0.5774039", "0.57704866", "0.5760063", "0.5758311", "0.5751944", "0.5745678", "0.57428086", "0.57413673", "0.57354134", "0.5730147", "0.5724672", "0.57218754", "0.5720326", "0.57135105", "0.57091635", "0.5705084", "0.5703372", "0.5677033", "0.56765515", "0.56729037", "0.5671457", "0.5669893", "0.5669027", "0.56668574", "0.5663181", "0.5660844", "0.56578773", "0.56525445", "0.56505334", "0.5649822", "0.56479627", "0.5643683", "0.5641592", "0.5636207", "0.5630705", "0.5624255", "0.5613019", "0.5604813", "0.56017774", "0.55992323", "0.5593297", "0.5591244", "0.55884326", "0.5585171", "0.55838555", "0.55799896", "0.5578279", "0.5577747", "0.55726135", "0.55701095", "0.5568459", "0.5565404", "0.5563245", "0.55629086", "0.5562732", "0.5562149", "0.5557628", "0.55565584", "0.5555287", "0.5555228", "0.5553538", "0.5551777", "0.5550466", "0.55485344", "0.55473816", "0.5544393", "0.5542777", "0.55423075", "0.55421305", "0.5537168", "0.5526228", "0.5516498", "0.5513918", "0.5513023", "0.55119896", "0.5510918", "0.551069" ]
0.0
-1
we can Add component to the applet here ...Jpanel TableModel jm = TableModel();
public void run() { JTable jt = new JTable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addTableGui() {\n\t\tDefaultTableModel mTableModel = new DefaultTableModel();\r\n\t\tmTable = new JTable(mTableModel);\r\n\r\n\t\tmTableModel.addColumn(\"MSSV\");\r\n\t\tmTableModel.addColumn(\"HoTen\");\r\n\t\tmTableModel.addColumn(\"GioiTinh\");\r\n\t\tmTableModel.addColumn(\"NTNS\");\r\n\t\tJScrollPane mJScrollPane = new JScrollPane(mTable);\r\n\t\tmJScrollPane.setPreferredSize(new Dimension(760, 310));\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.ipady = 40; //make this component tall\r\n\t\tc.weightx = 0.0;\r\n\t\tc.gridwidth = 3;\r\n\t\tc.gridx = 0;\r\n\t\tc.gridy = 1;\r\n\t\tpanel.add(mJScrollPane,c);\r\n\t}", "private void initComponent() {\n\t\t// Create Table Model (rows, columns...)\n\t\ttableur = new DefaultTableModel();\n\t\t// Add title column\n\t\ttableur.addColumn(fileNumber);\n\t\ttableur.addColumn(fileName);\n\t\ttableur.addColumn(\"\");\n\t\t// Add line of Action History with NodeStructureDTO\n\t\twhile(rootNode != null){\n\t\t\ttableur.addRow(new Object[] {rootNode.getId() , rootNode.getCompletePath()});\n\t\t\trootNode = rootNode.getNextNode();\n\t\t}\n\t\t//Create JTable \n\t\ttableHistory = new JTable(tableur);\n\t\t//Change the renderer of third cells whith grey font \n\t\ttableHistory.getColumn(\"\").setCellRenderer(new ButtonRenderer());\n\t\t//Make a CheckBox in this cell\n\t\ttableHistory.getColumn(\"\").setCellEditor(new ButtonEditor(new JCheckBox()));\n\t\t//Block reordering\n\t\ttableHistory.getTableHeader().setReorderingAllowed(false);\n\t\ttableHistory.setPreferredScrollableViewportSize(new Dimension(600 , 400));\n\t\tadd(new JScrollPane(tableHistory) , BorderLayout.CENTER);\n\t}", "public jpQLHoKhau() {\n initComponents();\n tableModel = (DefaultTableModel) tblDG.getModel();\n tableModel2 = (DefaultTableModel) tblTP.getModel();\n fillTblDG();\n fillTblTP();\n }", "public formArticulo() {\r\n initComponents();\r\n this.tableModel = (javax.swing.table.DefaultTableModel)tblArt.getModel();\r\n }", "public TestFrame() {\n\n final String[] columnNames = {\"Nombre\",\n \"Apellido\",\n \"webeo\",\n \"Años de Practica\",\n \"Soltero(a)\"};\n final Object[][] data = {\n\n {\"Lhucas\", \"Huml\",\n \"Patinar\", new Integer(3), new Boolean(true)},\n {\"Kathya\", \"Walrath\",\n \"Escalar\", new Integer(2), new Boolean(false)},\n {\"Marcus\", \"Andrews\",\n \"Correr\", new Integer(7), new Boolean(true)},\n {\"Angela\", \"Lalth\",\n \"Nadar\", new Integer(4), new Boolean(false)}\n };\n\n Vector dataV1 = new Vector();\n dataV1.add(\"XXXX\");\n dataV1.add(\"YYYY\");\n dataV1.add(\"JJJJ\");\n\n Vector dataV2 = new Vector();\n dataV2.add(\"XX2XX\");\n dataV2.add(\"Y2YYY\");\n dataV2.add(\"J2JJJ\");\n\n List dataF = new ArrayList();\n dataF.add(dataV1);\n dataF.add(dataV2);\n\n /*Vector dataC = new Vector();\n dataC.add(\"1\");\n dataC.add(\"2\");\n dataC.add(\"J23JJJ\");\n\n //model = new ModeloDatosTabla(data, true);\n model = new TableModel_1_1(dataC, dataF);\n model2 = new TableModel(columnNames, data, false);\n*/\n\n\n\n initComponents();\n\n\n }", "public ARCTable() {\n initComponents();\n table = new MyJTable();\n tableScrollPane.setViewportView(table);\n }", "private void initComponents() {\n\n dataScrollPane = new javax.swing.JScrollPane();\n dataTable = new com.cosmos.acacia.gui.AcaciaTable();\n buttonsPanel = new com.cosmos.swingb.JBPanel();\n closeButton = new com.cosmos.swingb.JBButton();\n refreshButton = new com.cosmos.swingb.JBButton();\n deleteButton = new com.cosmos.swingb.JBButton();\n modifyButton = new com.cosmos.swingb.JBButton();\n newButton = new com.cosmos.swingb.JBButton();\n selectButton = new com.cosmos.swingb.JBButton();\n unselectButton = new com.cosmos.swingb.JBButton();\n classifyButton = new com.cosmos.swingb.JBButton();\n specialFunctionalityButton = new com.cosmos.swingb.JBButton();\n filterButton = new com.cosmos.swingb.JBButton();\n\n setName(\"Form\"); // NOI18N\n addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n onKeyPressed(evt);\n }\n });\n setLayout(new java.awt.BorderLayout());\n\n dataScrollPane.setName(\"dataScrollPane\"); // NOI18N\n\n dataTable.setName(\"dataTable\"); // NOI18N\n dataTable.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n onKeyPressed(evt);\n }\n });\n dataScrollPane.setViewportView(dataTable);\n\n add(dataScrollPane, java.awt.BorderLayout.CENTER);\n\n buttonsPanel.setName(\"buttonsPanel\"); // NOI18N\n\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(com.cosmos.acacia.crm.gui.AcaciaApplication.class).getContext().getActionMap(AbstractTablePanel.class, this);\n closeButton.setAction(actionMap.get(\"closeAction\")); // NOI18N\n closeButton.setName(\"closeButton\"); // NOI18N\n\n refreshButton.setAction(actionMap.get(\"refreshAction\")); // NOI18N\n refreshButton.setName(\"refreshButton\"); // NOI18N\n\n deleteButton.setAction(actionMap.get(\"deleteAction\")); // NOI18N\n deleteButton.setName(\"deleteButton\"); // NOI18N\n\n modifyButton.setAction(actionMap.get(\"modifyAction\")); // NOI18N\n modifyButton.setName(\"modifyButton\"); // NOI18N\n\n newButton.setAction(actionMap.get(\"newAction\")); // NOI18N\n newButton.setName(\"newButton\"); // NOI18N\n\n selectButton.setAction(actionMap.get(\"selectAction\")); // NOI18N\n selectButton.setName(\"selectButton\"); // NOI18N\n\n unselectButton.setAction(actionMap.get(\"unselectAction\")); // NOI18N\n unselectButton.setName(\"unselectButton\"); // NOI18N\n\n classifyButton.setAction(actionMap.get(\"classifyAction\")); // NOI18N\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(com.cosmos.acacia.crm.gui.AcaciaApplication.class).getContext().getResourceMap(AbstractTablePanel.class);\n classifyButton.setText(resourceMap.getString(\"classifyButton.text\")); // NOI18N\n classifyButton.setName(\"classifyButton\"); // NOI18N\n\n specialFunctionalityButton.setAction(actionMap.get(\"specialAction\")); // NOI18N\n specialFunctionalityButton.setName(\"specialFunctionalityButton\"); // NOI18N\n\n filterButton.setAction(actionMap.get(\"filter\")); // NOI18N\n filterButton.setName(\"filterButton\"); // NOI18N\n\n javax.swing.GroupLayout buttonsPanelLayout = new javax.swing.GroupLayout(buttonsPanel);\n buttonsPanel.setLayout(buttonsPanelLayout);\n buttonsPanelLayout.setHorizontalGroup(\n buttonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttonsPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(unselectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 51, Short.MAX_VALUE)\n .addComponent(specialFunctionalityButton, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(filterButton, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(classifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(newButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(modifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(deleteButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(refreshButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(closeButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n buttonsPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {closeButton, deleteButton, modifyButton, newButton, refreshButton, selectButton});\n\n buttonsPanelLayout.setVerticalGroup(\n buttonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttonsPanelLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(buttonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(closeButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(refreshButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(deleteButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(modifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(newButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(unselectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(classifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(filterButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(specialFunctionalityButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n buttonsPanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {closeButton, deleteButton, modifyButton, newButton, refreshButton, selectButton, unselectButton});\n\n add(buttonsPanel, java.awt.BorderLayout.PAGE_END);\n }", "private void Table()\n{\n Object [] Kolom = {\"Nama\", \"No. Telp\", \"Kota Asal\"};\n Table = new DefaultTableModel(null, Kolom);\n Tabel.setModel(Table);\n}", "private void addTable()\r\n {\r\n // Create the table\r\n table = new JTable();\r\n table.setAutoCreateRowSorter(true);\r\n table.setColumnSelectionAllowed(false);\r\n table.getTableHeader().setReorderingAllowed(false);\r\n table.setModel(new JarModel());\r\n \r\n // Center the column headings\r\n ((DefaultTableCellRenderer) table.getTableHeader().\r\n getDefaultRenderer()).setHorizontalAlignment(SwingConstants.CENTER);\r\n \r\n // Set the column widths\r\n table.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);\r\n table.getColumnModel().getColumn(0).setPreferredWidth(100);\r\n table.getColumnModel().getColumn(0).setMaxWidth(250);\r\n table.getColumnModel().getColumn(2).setPreferredWidth(140);\r\n table.getColumnModel().getColumn(2).setMaxWidth(250);\r\n table.getColumnModel().getColumn(3).setPreferredWidth(100);\r\n table.getColumnModel().getColumn(3).setMaxWidth(250);\r\n table.getColumnModel().getColumn(4).setPreferredWidth(100);\r\n table.getColumnModel().getColumn(4).setMaxWidth(250);\r\n \r\n // Sort on the first column\r\n table.getRowSorter().toggleSortOrder(0);\r\n \r\n table.getColumnModel().getColumn(0).setCellRenderer(new BooleanColorCellRenderer());\r\n table.getColumnModel().getColumn(2).setCellRenderer(new DateCellRenderer());\r\n \r\n // Add the table to the panel\r\n add(new JScrollPane(table), BorderLayout.CENTER);\r\n }", "public void initComponent(List<BatFileModel> modelList) throws Exception {\n\t\tsetTitle(\"Batch Manager\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetResizable(false);\n\t\tthis.setLayout(new MigLayout(\"\", \"[]\", \"\"));\n\n\t\t/*\n\t\t * Init ContainerPanel JPanel\n\t\t */\n\t\tcontainerPanel = new JPanel();\n\t\tcontainerPanel.setLayout(new MigLayout(\"wrap 2\", \"[100][1100]\", \"\"));\n\t\tcontainerPanel.setPreferredSize(new Dimension(1200, 600)); // This will\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// be\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// deactivated\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to test!\n\t\tcontainerPanel.setBorder(BorderFactory\n\t\t\t\t.createTitledBorder(\"ContainerPanel\"));\n\t\tcontainerPanel.setVisible(true);\n\n\t\t/*\n\t\t * Init navigationPanel JPanel\n\t\t */\n\t\tnavigationPanel = new JPanel();\n\t\tnavigationPanel.setLayout(new MigLayout(\"wrap 1\", \"[80]\", \"[]\"));\n\t\tnavigationPanel.setPreferredSize(new Dimension(100, 600));\n\t\tnavigationPanel.setBorder(BorderFactory\n\t\t\t\t.createTitledBorder(\"Navigation\"));\n\n\t\t/*\n\t\t * Init tablePanel JPanel This Panel contains all table elements!\n\t\t */\n\t\ttablePanel = new JPanel();\n\t\ttablePanel.setLayout(new MigLayout(\"wrap 1\", \"[1100]\", \"\"));\n\t\ttablePanel.setPreferredSize(new Dimension(1100, 600));\n\t\ttablePanel.setBorder(BorderFactory.createTitledBorder(\"Table\"));\n\n\t\t/*\n\t\t * Inýt TableModel\n\t\t */\n\t\ttableModel = new BatTableModel(modelList);\n\n\t\t/*\n\t\t * Init table JTable\n\t\t */\n\t\ttable = new JTable();\n\t\ttable.setPreferredSize(new Dimension(900, 600));\n\n\t\t/*\n\t\t * Init scrollTablePanel JScrollPane This panel is wrapper for JTable\n\t\t */\n\t\tscrollTablePanel = new JScrollPane();\n\t\tscrollTablePanel.setPreferredSize(new Dimension(1000, 600));\n\t\tscrollTablePanel.setBorder(BorderFactory\n\t\t\t\t.createTitledBorder(\"ScrollPane\"));\n\n\t\t/*\n\t\t * Init Buttons\n\t\t */\n\t\tokeyButton = new JButton(\"Add\");\n\t\teditButton = new JButton(\"Edit\");\n\t\tdeleteButton = new JButton(\"Remove\");\n\t\taddActionListeners();\n\n\t\t/*\n\t\t * Adding Components Each Other\n\t\t */\n\t\ttable.setModel(tableModel);\n\t\tscrollTablePanel.setViewportView(table);\n\t\ttablePanel.add(scrollTablePanel, \"span\");\n\n\t\tnavigationPanel.add(okeyButton, \"w 100!\");\n\t\tnavigationPanel.add(editButton, \"w 100!\");\n\t\tnavigationPanel.add(deleteButton, \"w 100!\");\n\n\t\tcontainerPanel.add(navigationPanel);\n\t\tcontainerPanel.add(tablePanel);\n\t\tsetPresenter(MainPresenter.getInstance());\n\t\tthis.add(containerPanel);\n\t\tthis.validate();\n\t\tpack();\n\t}", "void initialize() {\r\n\t\t\r\n\t\t\r\n\t\tframe_bl = new JFrame();\r\n\t\tframe_bl.setVisible(true);\r\n\t\tframe_bl.setBounds(100, 100, 1143, 760);\r\n\t\tframe_bl.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe_bl.getContentPane().setLayout(null);\r\n\t\tframe_bl.setLocationRelativeTo(null);\r\n\r\n\t\tTable.buildTable();\r\n\t\tTable.table.setModel(Table.Tablemodel);\r\n\t\t\r\n\t\t\r\n\t\tPanel panel_1 = new Panel();\r\n\t\tpanel_1.setBackground(new Color(255,224,210));\r\n\t\tpanel_1.setBounds(223, 0, 904, 721);\r\n\t\tframe_bl.getContentPane().add(panel_1);\r\n\t\tpanel_1.setLayout(null);\r\n\t\t\r\n\t\tJScrollPane scrollPane_1 = new JScrollPane();\r\n\t\tscrollPane_1.setBounds(72, 239, 770, 445);\r\n\t\tpanel_1.add(scrollPane_1);\r\n\t\t\r\n\t\ttable_1 = new JTable();\r\n\t\tString[] Column= {\"#\", \"ISBN\", \"ID\", \"Due To\"};\r\n\t\tDefaultTableModel f=new DefaultTableModel(Column,0); \r\n\t\ttable_1.setModel(f); \t\t\t\r\n\t\t\r\n\t\tscrollPane_1.setViewportView(table_1);\r\n\t\ttable_1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\ttable_1.setOpaque(false);\r\n\t\ttable_1.setFont(new Font(\"Century Gothic\", Font.PLAIN, 13));\r\n\t\ttable_1.setBorder(null);\r\n\t\ttable_1.setBackground(Color.WHITE);\r\n\t\t\r\n\t\r\n\t\tJLabel lblWelcomeToThe = new JLabel(\"Welcome to the Library Management System!\\r\\n\");\r\n\t\tlblWelcomeToThe.setFont(new Font(\"Century751 BT\", Font.ITALIC, 23));\r\n\t\tlblWelcomeToThe.setBounds(20, 11, 476, 116);\r\n\t\tpanel_1.add(lblWelcomeToThe);\r\n\t\t\r\n\t\tPanel panel = new Panel();\r\n\t\tpanel.setBackground(Color.black);\r\n\t\tpanel.setBackground(new Color(0,0,0));\r\n\t\tpanel.setBounds(0, 0, 228, 721);\r\n\t\tframe_bl.getContentPane().add(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tlblLogout = new JLabel(\"Back\");\r\n\t\tlblLogout.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\tlblLogout.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) {\r\n\t\t\t\tlblLogout.setForeground(new Color(255, 255, 0));\r\n\t\t\t\tlblLogout.setBorder(new BevelBorder(BevelBorder.RAISED, new Color(255, 255, 102), null, null, null));\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) {\r\n\t\t\t\tlblLogout.setForeground(new Color(204, 204, 204));\r\n\t\t\t\tlblLogout.setBorder(null);\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tframe_bl.setVisible(false);\r\n\t\t\t\tLibrarianMain back=new LibrarianMain(); //CHTO TO TUT NE TAK\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tlblLogout.setIcon(new ImageIcon(\"icons\\\\arrow-85-24.png\"));\r\n\t\tlblLogout.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblLogout.setForeground(Color.LIGHT_GRAY);\r\n\t\tlblLogout.setFont(new Font(\"Century Gothic\", Font.PLAIN, 20));\r\n\t\tlblLogout.setBounds(0, 603, 228, 118);\r\n\t\tpanel.add(lblLogout);\r\n\t\t\r\n\t\tlblIssuedBooks = new JLabel(\"Issue\");\r\n\t\tlblIssuedBooks.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\r\n\t\tlblIssuedBooks.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) {\r\n\t\t\t\tif(getRow()>=0){\r\n\t\t\t\tlblIssuedBooks.setForeground(new Color(255, 255, 0));\r\n\t\t\t\tlblIssuedBooks.setBorder(new BevelBorder(BevelBorder.RAISED, new Color(255, 255, 102), null, null, null));\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) {\r\n\t\t\t\tlblIssuedBooks.setForeground(new Color(204, 204, 204));\r\n\t\t\t\tlblIssuedBooks.setBorder(null);\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\r\n\t\t\t\t \r\n\t\t\t\tif(getRow()>=0){\r\n\t\t\t\t\tlabel_1.setEnabled(false);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tlblIssuedBooks.setIcon(new ImageIcon(\"issue.png\"));\r\n\t\tlblIssuedBooks.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblIssuedBooks.setForeground(Color.LIGHT_GRAY);\r\n\t\tlblIssuedBooks.setFont(new Font(\"Century Gothic\", Font.PLAIN, 20));\r\n\t\tlblIssuedBooks.setBounds(0, 234, 228, 118);\r\n\t\tpanel.add(lblIssuedBooks);\r\n\t\t\r\n\t\tlabel_1 = new JLabel(\"Edit\");\r\n\t\tlabel_1.setBackground(new Color(204, 255, 153));\r\n\t\tlabel_1.setForeground(Color.RED);\r\n\t\tlabel_1.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\r\n\t\tlabel_1.setEnabled(true);\r\n\t\t\r\n\t\t\tlabel_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\t\tif(getRow()>=0){\r\n\t\t\t\t\t\tlabel_1.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\t\t\t\t\tlabel_1.setEnabled(false);\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\t\r\n\t\t\t\t}\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mouseEntered(MouseEvent e) { // ÂÎÒ ÇÄÅÑÜ ÖÂÅÒ ÝÄÈÒÀ\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tif(getRow()>=0){\r\n\t\t\t\t\tlabel_1.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\t\t\t\tlabel_1.setForeground(new Color(255, 255, 0));\r\n\t\t\t\t\t//label_1.setOpaque(true);\r\n\t\t\t\t\tlabel_1.setBorder(new BevelBorder(BevelBorder.RAISED, new Color(255, 255, 102), null, null, null));}\r\n\t\t\t\t}\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\r\n\t\t\t\t\tif(getRow()>=0){\r\n\t\t\t\t\t\tlabel_1.setOpaque(false);\r\n\t\t\t\t\tlabel_1.setForeground(new Color(204, 204, 204));\r\n\t\t\t\t\tlabel_1.setBorder(null);}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\t\t\tlabel_1.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\t\t\tlabel_1.setIcon(new ImageIcon(\"icons\\\\edit-24.png\"));\r\n\t\t\t\t\tlabel_1.setForeground(Color.LIGHT_GRAY);\r\n\t\t\t\t\tlabel_1.setFont(new Font(\"Century Gothic\", Font.PLAIN, 20));\r\n\t\t\t\t\tlabel_1.setBounds(0, 117, 228, 118);\r\n\t\t\t\t\tpanel.add(label_1);\r\n\t\t\t\t\t\r\n\t\t\t\t\tlblBookList = new JLabel(\"Add Book\");\r\n\t\t\t\t\tlblBookList.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tlblBookList.setForeground(new Color(255, 255, 0));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\r\n\t\t\t\t\t\t\tlblBookList.setForeground(new Color(255, 255, 0));\r\n\t\t\t\t\t\t\tlblBookList.setBorder(new BevelBorder(BevelBorder.RAISED, new Color(255, 255, 102), null, null, null));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseExited(MouseEvent e) {\r\n\t\t\t\t\t\t\tlblBookList.setForeground(new Color(204, 204, 204));\r\n\t\t\t\t\t\t\tlblBookList.setBorder(null);\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\tlblBookList.setForeground(new Color(204, 204, 204));\r\n\t\t\t\t\tlblBookList.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\t\t\tlblBookList.setFont(new Font(\"Century Gothic\", Font.PLAIN, 20));\r\n\t\t\t\t\tlblBookList.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\t\t\t\tlblBookList.setIcon(new ImageIcon(\"booklist.png\"));\r\n\t\t\t\t\tlblBookList.setBounds(0, 0, 228, 118);\r\n\t\t\t\t\tpanel.add(lblBookList);\r\n\t\t\t\t\t\r\n\t\t\t\t\tJLabel label = new JLabel();\r\n\t\t\t\t\tlabel.setIcon(new ImageIcon(\"librarian.png\"));\r\n\t\t\t\t\tlabel.setBounds(46, 38, 142, 128);\r\n\t\t\t\t\tpanel.add(label);\r\n\t\t\t\t\t\r\n\t\t\t\t\t lblReturn = new JLabel(\"Delete\");\r\n\t\t\t\t\tlblReturn.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\r\n\t\t\t\t\t\t\tlblReturn.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\t\t\t\t\t\tlblReturn.setForeground(new Color(255, 255, 0));\r\n\t\t\t\t\t\t\tlblReturn.setBorder(new BevelBorder(BevelBorder.RAISED, new Color(255, 255, 102), null, null, null));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseExited(MouseEvent e) {\r\n\t\t\t\t\t\t\tlblReturn.setForeground(new Color(204, 204, 204));\r\n\t\t\t\t\t\t\tlblReturn.setBorder(null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tif(getRow()>=0){\r\n\t\t\t\t\t\t\t\tlabel_1.setEnabled(false);\r\n\t\t\t\t\t\t\t\t//BookDelete d=new BookDelete();\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\tlblReturn.setIcon(new ImageIcon(\"icons\\\\delete-24.png\"));\r\n\t\t\t\t\tlblReturn.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\t\t\tlblReturn.setForeground(Color.LIGHT_GRAY);\r\n\t\t\t\t\tlblReturn.setFont(new Font(\"Century Gothic\", Font.PLAIN, 20));\r\n\t\t\t\t\tlblReturn.setBounds(0, 353, 228, 118);\r\n\t\t\t\t\tpanel.add(lblReturn);\r\n\t\t\t\t\t\r\n\t\t\t\t\t lblReset = new JLabel(\"Reset\");\r\n\t\t\t\t\tlblReset.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\r\n\t\t\t\t\t\t\tlblReset.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\t\t\t\t\t\tlblReset.setForeground(new Color(255, 255, 0));\r\n\t\t\t\t\t\t\tlblReset.setBorder(new BevelBorder(BevelBorder.RAISED, new Color(255, 255, 102), null, null, null));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseExited(MouseEvent e) {\r\n\t\t\t\t\t\t\tlblReset.setForeground(new Color(204, 204, 204));\r\n\t\t\t\t\t\t\tlblReset.setBorder(null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\t/*frame_bl.setVisible(false);\r\n\t\t\t\t\t\t\tBookList back=new BookList(); */\r\n\t\t\t\t\t\t\tTable.table.clearSelection();\r\n\t\t\t\t\t\t\tTable.table.repaint();//ÎÍ ÌÅÍß ÍÀÏÐßÃÀÅÒ: ÒÎËÜÊÎ ÒÝÉÁË ÐÅÑÅÒÈÒ\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\tlblReset.setIcon(new ImageIcon(\"icons\\\\undo-4-24.png\"));\r\n\t\t\t\t\tlblReset.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\t\t\tlblReset.setForeground(Color.LIGHT_GRAY);\r\n\t\t\t\t\tlblReset.setFont(new Font(\"Century Gothic\", Font.PLAIN, 20));\r\n\t\t\t\t\tlblReset.setBounds(0, 474, 228, 118);\r\n\t\t\t\t\tpanel.add(lblReset);\r\n\t\t\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "private void buildElements() {\n JPanel mainPanel = new JPanel(new BorderLayout());\n\n String[] columnNames = {\n \"Id\",\n \"Number of transaction\",\n \"Transaction price\",\n \"Paid type\",\n \"Buyer\",\n \"Amazon SKU\",\n \"Action\",\n };\n\n Object[][] emptyData = {};\n\n providerTableModel = new DefaultTableModel(emptyData, columnNames);\n\n providerTable = new JTable(providerTableModel) {\n public TableCellRenderer getCellRenderer(int row, int column) {\n return new ProviderTableCellRenderer();\n }\n };\n\n providerTable.addMouseListener(new ProviderTableMouseListener());\n\n providerTable.getTableHeader().setReorderingAllowed(false);\n\n /*providerTable.getColumnModel().getColumn(6).setMinWidth(100);\n providerTable.getColumnModel().getColumn(6).setMaxWidth(100);\n providerTable.getColumnModel().getColumn(6).setPreferredWidth(100);*/\n\n // Set rows height for providerTable (for all rows).\n providerTable.setRowHeight(40);\n\n // Set 'Actions' column width. All buttons normally see.\n //TableColumnModel columnModel = providerTable.getColumnModel();\n //columnModel.getColumn(5).setPreferredWidth(120);\n\n JScrollPane tableScrollPane = new JScrollPane(providerTable);\n\n mainPanel.add(tableScrollPane, BorderLayout.CENTER);\n\n this.add(mainPanel);\n }", "private void initComponents() {\n\t\tfiltersPanel = new FiltersPanel(mainView);\n\t\tdetailsPanel = new DetailsPanel();\n\t\t\n\t\tthis.setStylePrimaryName(\"variantdisplay\");\n\t\tthis.addWest(filtersPanel, 240);\n\n\t\tvarTable = new VarTable(this, colModel);\n\n\t\t\n\t\t//details panel listens to variant selection events generated by the varTable\n\t\tvarTable.addVariantSelectionListener(detailsPanel); \n\t\tvarManager.addListener(this);\n\t\tcolModel.addListener(this);\n\t\tfiltersPanel.addListener(this);\n\t\t\n\t\tthis.addSouth(detailsPanel, 300.0);\n\t\tthis.add(varTable);\n\t}", "private void initComponents() {\n\t\tfixedSizeTable = new FixedSizeTable();\r\n\t\tdataModel = new NonEditableTableModel();\r\n\t\t\r\n\t\tfixedSizeTable.getTable().setModel(dataModel);\r\n\t\tfixedSizeTable.getTable().setEnabled(false);\r\n\t\r\n\t\t// initialize selection listener\r\n\t\ttableMouseListener = new TableMouseListener();\r\n\t\t\r\n\t\t// add it to the panel so that it is centered left right and top down\r\n\t\tsetOpaque(false);\r\n\t\tsetLayout(new GridBagLayout());\r\n\t\tadd(fixedSizeTable, new GridBagConstraints());\r\n\t}", "private void makeTable() {\n String [] cols = new String[] {\"Planets\", \"Weights (in lbs)\", \"Weights (in kgs)\"};\n model = new DefaultTableModel(result,cols) {\n @Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }\n };\n table = new JTable(model);\n JScrollPane scrollPane = new JScrollPane(table);\n scrollPane.setPreferredSize(new Dimension(310,155));\n middlePanel.add(scrollPane);\n revalidate();\n repaint();\n }", "public Window_Table() {\n initComponents();\n \n \n \n }", "private void initializePanel(PlaylistsTableModel tablemodel) {\n\t\tmyTable = new MyTable(tablemodel);\n\t\t\n\t\tthis.setBackground(sURLBACK);\t\n\t\tthis.setLayout(new GridBagLayout());\n\t}", "private void setupTable() {\n\t\tString[] columns = { \"Course Name\", \"Course Number\" };\n\n\t\ttableModel = new DefaultTableModel(null, columns) {\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\ttable = new JTable(tableModel);\n\t\ttable.setColumnSelectionAllowed(false);\n\t\ttable.setRowSelectionAllowed(true);\n\t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n\t\ttable.getSelectionModel().addListSelectionListener((ListSelectionEvent event) -> {\n\t\t\tif (table.getSelectedRow() >= 0) {\n\t\t\t\tString name = table.getValueAt(table.getSelectedRow(), 0).toString();\n\t\t\t\tint num = Integer.parseInt(table.getValueAt(table.getSelectedRow(), 1).toString());\n\t\t\t\tupdateTextArea((Course) adCon.search(name, num));\n\t\t\t}\n\t\t});\n\n\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\tscrollPane.setPreferredSize(new Dimension(350, 175));\n\t\tdisplay.add(scrollPane);\n\t}", "void setup() {\n TableColumnModel cm = new DefaultTableColumnModel() {\r\n boolean first = true;\r\n public void addColumn(TableColumn tc) {\r\n if (first) {\r\n first = false;\r\n return;\r\n }\r\n tc.setMinWidth(ROW_WIDTH);\r\n super.addColumn(tc);\r\n }\r\n };\r\n\r\n // setup the columns for the row header table\r\n TableColumnModel rowHeaderModel = new DefaultTableColumnModel() {\r\n boolean first = true;\r\n public void addColumn(TableColumn tc) {\r\n if (first) {\r\n super.addColumn(tc);\r\n first = false;\r\n }\r\n }\r\n };\r\n\r\n tblModel = new ObjectiveModel();\r\n\r\n JComboBox combobox = new JComboBox();\r\n\r\n // setup the row header table\r\n headerColumn = new JTable(tblModel, rowHeaderModel);\r\n headerColumn.setRowHeight(ROW_HEIGHT);\r\n headerColumn.setRowSelectionAllowed(false);\r\n headerColumn.setColumnSelectionAllowed(false);\r\n headerColumn.setCellSelectionEnabled(false);\r\n headerColumn.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\r\n headerColumn.getTableHeader().setReorderingAllowed(false);\r\n headerColumn.createDefaultColumnsFromModel();\r\n headerColumn.setDefaultRenderer(String.class,\r\n new RotatedLabelRenderer());\r\n headerColumn.setDefaultEditor(String.class,\r\n new DefaultCellEditor(combobox));\r\n\r\n // setup the graph matrix\r\n jTable = new JTable(tblModel, cm);\r\n jTable.createDefaultColumnsFromModel();\r\n //jTable.setDefaultRenderer(ImageIcon.class, new GraphRenderer());\r\n jTable.setDefaultRenderer(JPanel.class, new ComponentRenderer());\r\n jTable.setDefaultEditor(JPanel.class, new ComponentEditor());\r\n\r\n jTable.setRowHeight(ROW_HEIGHT);\r\n jTable.setRowSelectionAllowed(false);\r\n jTable.setColumnSelectionAllowed(false);\r\n jTable.setCellSelectionEnabled(false);\r\n\r\n //jTable.addMouseListener(this);\r\n jTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\r\n\r\n TableColumnModel columnModel = jTable.getColumnModel();\r\n jTable.setTableHeader(new EditableHeader(columnModel));\r\n\r\n String[] items = {\r\n \"ff\", \"fg\"};\r\n JComboBox combo = new JComboBox(items);\r\n\r\n EditableHeaderTableColumn col;\r\n // column 0\r\n col = (EditableHeaderTableColumn) jTable.getColumnModel().getColumn(0);\r\n col.setHeaderValue(items[0]);\r\n col.setHeaderEditor(new DefaultCellEditor(combo));\r\n\r\n // column 1\r\n col = (EditableHeaderTableColumn) jTable.getColumnModel().getColumn(1);\r\n col.setHeaderValue(items[0]);\r\n col.setHeaderEditor(new DefaultCellEditor(combo));\r\n\r\n int numRows = jTable.getModel().getRowCount();\r\n int numColumns = jTable.getModel().getColumnCount();\r\n\r\n int longest = 0;\r\n // we know that the first column will only contain\r\n // JLabels...so create them and find the longest\r\n // preferred width\r\n\r\n TableColumn column;\r\n // set the default column widths\r\n for (int i = 0; i < numColumns; i++) {\r\n if (i == 0) {\r\n column = headerColumn.getColumnModel().getColumn(i);\r\n column.setPreferredWidth(20);\r\n }\r\n else {\r\n column = jTable.getColumnModel().getColumn(i - 1);\r\n column.setPreferredWidth(ROW_WIDTH);\r\n }\r\n }\r\n\r\n jTable.setPreferredScrollableViewportSize(new Dimension(\r\n ROW_WIDTH * 2, ROW_HEIGHT * 2));\r\n\r\n // put the row headers in the viewport\r\n JViewport jv = new JViewport();\r\n jv.setView(headerColumn);\r\n jv.setPreferredSize(headerColumn.getPreferredSize());\r\n\r\n // setup the scroll pane\r\n JScrollPane sp = new JScrollPane(jTable);\r\n sp.setRowHeader(jv);\r\n sp.setHorizontalScrollBarPolicy(\r\n JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r\n sp.setVerticalScrollBarPolicy(\r\n JScrollPane.VERTICAL_SCROLLBAR_NEVER);\r\n\r\n this.add(sp, BorderLayout.CENTER);\r\n }", "public PanelTKPhong() {\n\t\tinitComponents();\n\t\tloaddataTable();\n\t\tloaddataLabel();\n\t}", "private void setupPanel(String selectedTable)\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tthis.add(queryButton);\n\t\tint spacing = 50;\n\t\t\n\t\tString [] columns = baseController.getDataController().getDatabaseColumnNames(selectedTable);\n\t\t\n\t\tfor(int spot = 0; spot < columns.length; spot++)\n\t\t{\n\t\t\tif(!columns[spot].equalsIgnoreCase(\"id\"))\n\t\t\t{\t\n\t\t\t\tJLabel columnedLabel = new JLabel(columns[spot]);\n\t\t\t\tJTextField columnFIeld = new JTextField(20);\n\t\t\t\n\t\t\t\tthis.add(columnLabel);\n\t\t\t\tthis.add(columnField);\n\t\t\t\tcolumnField.setName(columns[spot]);\n\t\t\t\t\n\t\t\t\tbaseLayout.putConstraint(SpringLayout.NORTH, queryButton, 122, SpringLayout.NORTH, this);\n\t\t\t\tbaseLayout.putConstraint(SpringLayout.WEST, queryButton, 69, SpringLayout.WEST, columnLabel);\n\t\t\t\t\n\t\t\t\tspacing += 50;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}", "public TablesPanel() {\n\n tableModel = new TablesTableModel(); \n matchesModel = new MatchesTableModel();\n gameChooser = new GameChooser();\n\n initComponents();\n // tableModel.setSession(session);\n\n // formater\n // change default just now from 60 to 30 secs\n // see workaround for 4.0 versions: https://github.com/ocpsoft/prettytime/issues/152\n TimeFormat timeFormat = timeFormater.removeUnit(JustNow.class);\n JustNow newJustNow = new JustNow();\n newJustNow.setMaxQuantity(1000L * 30L); // 30 seconds gap (show \"just now\" from 0 to 30 secs)\n timeFormater.registerUnit(newJustNow, timeFormat);\n\n // 1. TABLE CURRENT\n tableTables.createDefaultColumnsFromModel();\n ((MageTable)tableTables).setTableInfo(tableInfo);\n \n activeTablesSorter = new MageTableRowSorter(tableModel) {\n @Override\n public void toggleSortOrder(int column) {\n // special sort for created and seat column\n if (column == TablesTableModel.COLUMN_CREATED || column == TablesTableModel.COLUMN_SEATS) {\n List<? extends SortKey> sortKeys = getSortKeys();\n if (sortKeys.size() == 2) {\n // clear sort on second click\n setSortKeys(null);\n } else {\n // setup sort on first click\n List<SortKey> list = new ArrayList<>();\n list.add(new RowSorter.SortKey(TablesTableModel.COLUMN_SEATS, SortOrder.ASCENDING));\n list.add(new RowSorter.SortKey(TablesTableModel.COLUMN_CREATED, SortOrder.DESCENDING));\n setSortKeys(list);\n }\n } else {\n super.toggleSortOrder(column);\n }\n }\n };\n tableTables.setRowSorter(activeTablesSorter);\n\n // time ago\n tableTables.getColumnModel().getColumn(TablesTableModel.COLUMN_CREATED).setCellRenderer(timeAgoCellRenderer);\n // skill level\n tableTables.getColumnModel().getColumn(TablesTableModel.COLUMN_SKILL).setCellRenderer(skillCellRenderer);\n // seats\n tableTables.getColumnModel().getColumn(TablesTableModel.COLUMN_SEATS).setCellRenderer(seatsCellRenderer);\n\n /* date sorter (not need, default is good - see getColumnClass)\n activeTablesSorter.setComparator(TablesTableModel.COLUMN_CREATED, new Comparator<Date>() {\n @Override\n public int compare(Date v1, Date v2) {\n return v1.compareTo(v2);\n }\n\n });*/\n\n // seats sorter (free tables must be first)\n activeTablesSorter.setComparator(TablesTableModel.COLUMN_SEATS, new Comparator<String>() {\n @Override\n public int compare(String v1, String v2) {\n int[] seats1 = parseSeatsInfo(v1);\n int[] seats2 = parseSeatsInfo(v2);\n boolean free1 = seats1[0] != seats1[1];\n boolean free2 = seats2[0] != seats2[1];\n\n // free seats go first\n if (free1 || free2) {\n return Boolean.compare(free2, free1);\n }\n\n // all other seats go without sorts\n return 0;\n }\n });\n\n // default sort by created date (last games from above)\n ArrayList list = new ArrayList<>();\n list.add(new RowSorter.SortKey(TablesTableModel.COLUMN_SEATS, SortOrder.ASCENDING));\n list.add(new RowSorter.SortKey(TablesTableModel.COLUMN_CREATED, SortOrder.DESCENDING));\n activeTablesSorter.setSortKeys(list);\n\n TableUtil.setColumnWidthAndOrder(tableTables, DEFAULT_COLUMNS_WIDTH, KEY_TABLES_COLUMNS_WIDTH, KEY_TABLES_COLUMNS_ORDER);\n\n // 2. TABLE COMPLETED\n completedTablesSorter = new MageTableRowSorter(matchesModel);\n tableCompleted.setRowSorter(completedTablesSorter);\n\n // duration\n tableCompleted.getColumnModel().getColumn(MatchesTableModel.COLUMN_DURATION).setCellRenderer(durationCellRenderer);\n // start-end\n tableCompleted.getColumnModel().getColumn(MatchesTableModel.COLUMN_START).setCellRenderer(datetimeCellRenderer);\n tableCompleted.getColumnModel().getColumn(MatchesTableModel.COLUMN_END).setCellRenderer(datetimeCellRenderer);\n // default sort by ended date (last games from above)\n ArrayList list2 = new ArrayList<>();\n list2.add(new RowSorter.SortKey(MatchesTableModel.COLUMN_END, SortOrder.DESCENDING));\n completedTablesSorter.setSortKeys(list2);\n\n // 3. CHAT\n chatPanelMain.getUserChatPanel().useExtendedView(ChatPanelBasic.VIEW_MODE.NONE);\n chatPanelMain.getUserChatPanel().setBorder(null);\n chatPanelMain.getUserChatPanel().setChatType(ChatPanelBasic.ChatType.TABLES);\n\n // 4. BUTTONS (add new buttons to the end of the list -- if not then users lost their filter settings)\n filterButtons = new JToggleButton[]{btnStateWaiting, btnStateActive, btnStateFinished,\n btnTypeMatch, btnTypeTourneyConstructed, btnTypeTourneyLimited,\n btnFormatBlock, btnFormatStandard, btnFormatModern, btnFormatLegacy, btnFormatVintage, btnFormatPremodern, btnFormatCommander, btnFormatTinyLeader, btnFormatLimited, btnFormatOther,\n btnSkillBeginner, btnSkillCasual, btnSkillSerious, btnRated, btnUnrated, btnOpen, btnPassword, btnFormatOathbreaker, btnFormatPioneer};\n\n JComponent[] components = new JComponent[]{chatPanelMain, jSplitPane1, jScrollPaneTablesActive, jScrollPaneTablesFinished, jPanelTop, jPanelTables};\n for (JComponent component : components) {\n component.setOpaque(false);\n }\n\n jScrollPaneTablesActive.getViewport().setBackground(new Color(255, 255, 255, 50));\n jScrollPaneTablesFinished.getViewport().setBackground(new Color(255, 255, 255, 50));\n\n restoreFilters();\n setGUISize();\n\n Action openTableAction;\n openTableAction = new AbstractAction() {\n @Override\n public void actionPerformed(ActionEvent e) {\n String searchID = e.getActionCommand();\n int modelRow = TablesUtil.findTableRowFromSearchId(tableModel, searchID);\n if (modelRow == -1) {\n return;\n }\n UUID tableId = (UUID) tableModel.getValueAt(modelRow, TablesTableModel.ACTION_COLUMN + 3);\n UUID gameId = (UUID) tableModel.getValueAt(modelRow, TablesTableModel.ACTION_COLUMN + 2);\n String action = (String) tableModel.getValueAt(modelRow, TablesTableModel.ACTION_COLUMN);\n String gameType = (String) tableModel.getValueAt(modelRow, TablesTableModel.COLUMN_GAME_TYPE);\n boolean isTournament = (Boolean) tableModel.getValueAt(modelRow, TablesTableModel.ACTION_COLUMN + 1);\n String owner = (String) tableModel.getValueAt(modelRow, TablesTableModel.COLUMN_OWNER);\n String pwdColumn = (String) tableModel.getValueAt(modelRow, TablesTableModel.COLUMN_PASSWORD);\n switch (action) {\n case \"Join\":\n if (owner.equals(SessionHandler.getUserName()) || owner.startsWith(SessionHandler.getUserName() + ',')) {\n try {\n JDesktopPane desktopPane = (JDesktopPane) MageFrame.getUI().getComponent(MageComponents.DESKTOP_PANE);\n JInternalFrame[] windows = desktopPane.getAllFramesInLayer(javax.swing.JLayeredPane.DEFAULT_LAYER);\n for (JInternalFrame frame : windows) {\n if (frame.getTitle().equals(\"Waiting for players\")) {\n frame.toFront();\n frame.setVisible(true);\n try {\n frame.setSelected(true);\n } catch (PropertyVetoException ve) {\n LOGGER.error(ve);\n }\n }\n\n }\n } catch (InterruptedException ex) {\n LOGGER.error(ex);\n }\n return;\n }\n if (isTournament) {\n LOGGER.info(\"Joining tournament \" + tableId);\n if (!gameType.startsWith(\"Constructed\")) {\n if (TablesTableModel.PASSWORD_VALUE_YES.equals(pwdColumn)) {\n joinTableDialog.showDialog(roomId, tableId, true, !gameType.startsWith(\"Constructed\"));\n } else {\n SessionHandler.joinTournamentTable(roomId, tableId, SessionHandler.getUserName(), PlayerType.HUMAN, 1, null, \"\");\n }\n } else {\n joinTableDialog.showDialog(roomId, tableId, true, !gameType.startsWith(\"Constructed\"));\n }\n } else {\n LOGGER.info(\"Joining table \" + tableId);\n joinTableDialog.showDialog(roomId, tableId, false, false);\n }\n break;\n case \"Remove\":\n UserRequestMessage message = new UserRequestMessage(\"Removing table\", \"Are you sure you want to remove table?\");\n message.setButton1(\"No\", null);\n message.setButton2(\"Yes\", PlayerAction.CLIENT_REMOVE_TABLE);\n MageFrame.getInstance().showUserRequestDialog(message);\n break;\n case \"Show\":\n if (isTournament) {\n LOGGER.info(\"Showing tournament table \" + tableId);\n SessionHandler.watchTable(roomId, tableId);\n }\n break;\n case \"Watch\":\n if (!isTournament) {\n LOGGER.info(\"Watching table \" + tableId);\n SessionHandler.watchTable(roomId, tableId);\n }\n break;\n case \"Replay\":\n LOGGER.info(\"Replaying game \" + gameId);\n SessionHandler.replayGame(gameId);\n break;\n }\n }\n };\n\n Action closedTableAction;\n closedTableAction = new AbstractAction() {\n @Override\n public void actionPerformed(ActionEvent e) {\n String searchID = e.getActionCommand();\n int modelRow = TablesUtil.findTableRowFromSearchId(matchesModel, searchID);\n if (modelRow == -1) {\n return;\n }\n String action = (String) matchesModel.getValueAt(modelRow, MatchesTableModel.COLUMN_ACTION);\n switch (action) {\n case \"Replay\":\n java.util.List<UUID> gameList = matchesModel.getListofGames(modelRow);\n if (gameList != null && !gameList.isEmpty()) {\n if (gameList.size() == 1) {\n SessionHandler.replayGame(gameList.get(0));\n } else {\n gameChooser.show(gameList, MageFrame.getDesktop().getMousePosition());\n }\n }\n // MageFrame.getDesktop().showTournament(tournamentId);\n break;\n case \"Show\":\n if (matchesModel.isTournament(modelRow)) {\n LOGGER.info(\"Showing tournament table \" + matchesModel.getTableId(modelRow));\n SessionHandler.watchTable(roomId, matchesModel.getTableId(modelRow));\n }\n break;\n }\n }\n };\n\n // !!!! adds action buttons to the table panel (don't delete this)\n actionButton1 = new TablesButtonColumn(tableTables, openTableAction, tableTables.convertColumnIndexToView(TablesTableModel.ACTION_COLUMN));\n actionButton2 = new TablesButtonColumn(tableCompleted, closedTableAction, tableCompleted.convertColumnIndexToView(MatchesTableModel.COLUMN_ACTION));\n // selection\n tablesLastSelection.put(tableTables, \"\");\n tablesLastSelection.put(tableCompleted, \"\");\n addTableSelectListener(tableTables);\n addTableSelectListener(tableCompleted);\n // double click\n addTableDoubleClickListener(tableTables, openTableAction);\n addTableDoubleClickListener(tableCompleted, closedTableAction);\n }", "private void inicializarComponentes() \n\t{\n\t\tthis.table=new JTable(); \n\t\ttablas.setBackground(Color.white);\n\t\tscroll =new JScrollPane(table); // Scroll controla la tabla\n\t\tthis.add(scroll,BorderLayout.CENTER);\n\t\tthis.add(tablas,BorderLayout.NORTH);\n\t\t\n\t}", "public table() {\n initComponents();\n }", "private JPanel getTablePanel() {\n if (tablePanel == null) {\n GridBagConstraints gridBagConstraints4 = new GridBagConstraints();\n gridBagConstraints4.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints4.weighty = 1.0;\n gridBagConstraints4.gridx = 0;\n gridBagConstraints4.gridy = 0;\n gridBagConstraints4.insets = new java.awt.Insets(2, 2, 2, 2);\n gridBagConstraints4.weightx = 1.0;\n tablePanel = new JPanel();\n tablePanel.setLayout(new GridBagLayout());\n tablePanel.add(getJScrollPane(), gridBagConstraints4);\n }\n return tablePanel;\n }", "public JP1Table( TableModel model )\n {\n super( model );\n setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n // getSelectionModel().addListSelectionListener( this );\n setCellSelectionEnabled( true );\n setSurrendersFocusOnKeystroke( true );\n setAutoResizeMode( JTable.AUTO_RESIZE_LAST_COLUMN );\n tableHeader.setReorderingAllowed( false );\n DefaultCellEditor e = ( DefaultCellEditor )getDefaultEditor( String.class );\n new TextPopupMenu( ( JTextComponent )e.getComponent() );\n }", "private void buildTablePanel() {\n \t\tJPanel panel = new JPanel();\n \t\t\n \t\t// settings:\n \t\theader.setReorderingAllowed(false); // no moving.\n \t\ttable.setColumnSelectionAllowed(true);\n \t\ttable.setRowSelectionAllowed(true);\n \t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n \t\t\n \t\theader.addMouseListener(tableModel.new SortColumnAdapter());\n \t\t\t\n \t\tTableCellRenderer renderer = new TableCellRenderer() {\n \n \t\t\tJLabel label = new JLabel();\n \t\t\t\n \t\t\t@Override\n \t public JComponent getTableCellRendererComponent(JTable table,\n \t Object value, boolean isSelected, boolean hasFocus,\n \t int row, int column) {\n \t \n \t\t\t\tif (table.isRowSelected(row)) {\n \t\t\t\t\tlabel.setBackground(Color.RED);\n \t\t\t\t} else {\n \t\t\t\t\tlabel.setBackground(UIManager.getColor(\"Table.background\"));\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tlabel.setOpaque(true);\n \t\t\t\tlabel.setText(\"\" + value);\n \t\t\t\t\n \t return label;\n \t }\n \n \t };\n \t table.setDefaultRenderer(Object.class, renderer);\n \t \n \t JScrollPane scroll = new JScrollPane(table);\n \t\t\n \t\tpanel.setLayout(new BorderLayout(5, 5));\n \t\tpanel.add(scroll, BorderLayout.CENTER);\n \t \n \t add(panel, BorderLayout.CENTER);\n \t}", "public DisplayTable() {\n initComponents();\n }", "@Override\n public void newPanelModel() {\n\n }", "@Override\n public void newPanelModel() {\n\n }", "public Practice_JTable() {\n initComponents();\n }", "public PanelTableProduct(JTable tProductos, ArrayList productList) {\n\n // ToolsInterface\n InterfaceTools tools = new InterfaceTools();\n\n ModelTableProduct tmodel = new ModelTableProduct(productList);\n tProductos.setModel(tmodel);\n\n /// PanelTableProduct model = new PanelTableProduct();\n\n\n // BaseDatosProducto baseDatos = new BaseDatosProducto();\n\n // Modificar encabezado\n tProductos.getTableHeader().setReorderingAllowed(false);\n\n tProductos.getTableHeader().setBackground(tools.getColorThree());\n tProductos.getTableHeader().setForeground(tools.getColorFour());\n\n\n tProductos.getTableHeader().setFont(new Font(\"Arial\",Font.PLAIN,14));\n // tProductos.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n tProductos.setSelectionBackground(tools.getColorOne());\n\n\n // tProductos.setEnabled(false);\n tProductos.setRowHeight(20);\n\n\n // Alinear a la Izquierda columna precios e inventario\n\n DefaultTableCellRenderer alignRight = new DefaultTableCellRenderer();\n alignRight.setHorizontalAlignment(SwingConstants.RIGHT);\n tProductos.getColumnModel().getColumn(1).setCellRenderer(alignRight);\n tProductos.getColumnModel().getColumn(2).setCellRenderer(alignRight);\n\n // Edición de celdas\n\n JScrollPane scrollPane = new JScrollPane(tProductos);\n\n scrollPane.setPreferredSize(new Dimension(450,363));\n scrollPane.setViewportView(tProductos);\n\n\n add(scrollPane);\n\n }", "private void createUIComponents() {\n\n String[] criterios = {\"Nombre\",\"Identificación\"};\n DefaultListModel modelo = new DefaultListModel();\n criterioBusquedaComboBox = new JComboBox(criterios);\n tablaCitas = new JTable();\n tablaBusqueda = new JTable();\n tableModel = (DefaultTableModel) tablaCitas.getModel();\n tableModelBusqueda = (DefaultTableModel) tablaBusqueda.getModel();\n scrollerTable = new JScrollPane(tablaCitas, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n scrollerBusqueda = new JScrollPane(tablaBusqueda, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n guardarInformacionButton = new JButton(\"Guardar información\");\n guardarInformacionButton.setVisible(false);\n }", "@Override\n\tpublic void init() {\n\t\ttable = new JTable(dm);\n\t\tJScrollPane scrollPane = new JScrollPane(table);\n\n\t\tadd(scrollPane);\n\t}", "public AdminPanel() {\n Object paint[][] = {};\n jtModel = new DefaultTableModel(paint,columnNames)\n {\n @Override\n public boolean isCellEditable(int row, int column) {\n return false;\n } \n @Override\n public Class getColumnClass(int column) {\n switch (column) {\n case 2:\n /* This is for the price column sorting */\n return Integer.class;\n default:\n return String.class;//This is for the name column sorting.\n }\n }\n \n };\n initComponents();\n jt.getTableHeader().setResizingAllowed(false);\n jt.getTableHeader().setReorderingAllowed(false);\n \n TableRowSorter<TableModel> sorting = new TableRowSorter<>(jt.getModel());\n jt.setRowSorter(sorting); \n \n // These column can't be sorted.\n sorting.setSortable(0, false);\n sorting.setSortable(3, false);\n sorting.setSortable(4, false);\n sorting.setSortable(5, false);\n sorting.setSortable(6, false);\n sorting.setSortable(7, false);\n sorting.setSortable(8, false);\n addFile();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n table = new org.jdesktop.swingx.JXTable();\n\n table.setModel(createModel());\n table.setEditable(false);\n configureTable(table);\n setViewportView(table);\n }", "public TablesForm() {\n initComponents();\n this.getContentPane().setBackground(new Color(255, 217, 151));\n setBorder(BorderFactory.createLineBorder(new Color(235, 163, 91)));\n javax.swing.plaf.InternalFrameUI ifu = this.getUI();\n ((javax.swing.plaf.basic.BasicInternalFrameUI) ifu).setNorthPane(null);\n \n tableService = new TableService();\n commonService = new CommonService();\n\n Vector<Tables> vectorTables = commonService.getVectorTables();\n\n TablesTableModel tablesTableModel = new TablesTableModel(vectorTables);\n tblTablesNumber.setModel(tablesTableModel);\n }", "public SK16() {\n initComponents();\n tbl_bslip.repaint();\n try{\n conn = ConnectTESTING.Connect();\n String str = \"select bslip_no,bslip_date from pfmo.bslip\"\n + \" where status_code = 'P';\";\n ps = conn.prepareStatement(str);\n rs = ps.executeQuery();\n tbl_bslip.setModel(DbUtils.resultSetToTableModel(rs));\n }\n catch (Exception e) {\n JOptionPane.showMessageDialog(null,e);\n } \n }", "public void tabelaktivitas() {\n DefaultTableModel tbl= new DefaultTableModel();\n tbl.addColumn(\"Group\");\n tbl.addColumn(\"Compart\");\n tbl.addColumn(\"Activity\");\n tbl.addColumn(\"HA\");\n tbl.addColumn(\"Harga\");\n tbl.addColumn(\"Total\");\n tblaktivitas.setModel(tbl);\n try{\n java.sql.Statement statement=(java.sql.Statement)conek.GetConnection().createStatement();\n ResultSet res=statement.executeQuery(\"select * from tblaktivitas\");\n while(res.next())\n {\n tbl.addRow(new Object[]{\n res.getString(\"nama_grup\"),\n res.getString(\"compart\"),\n res.getString(\"pekerjaan\"),\n res.getInt(\"ha\"),\n res.getInt(\"harga\"),\n res.getInt(\"total\")\n });\n tblaktivitas.setModel(tbl); \n }\n }catch (Exception e){\n JOptionPane.showMessageDialog(rootPane,\"Salah\");\n }\n }", "private void initialize() {\n\t\tframe = new JFrame(\"中东购物\");\n\t\tframe.setBounds(100, 100, 1029, 580);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t// setTitle((new StringBuilder(\"当前用户为:\")).append(user_name).toString());\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(10, 10, 968, 492);\n\t\tframe.getContentPane().add(panel);\n\n\t\ttable1 = new JTable();\n\t\ttable1.setFont(new Font(\"宋体\", Font.BOLD, 20));\n\t\tpanel.add(table1);\n\t\tthis.goodsList = goodsList;\n\t\tDefaultTableModel model = new DefaultTableModel();\n\n\t\tmodel.addColumn(\"\\u5546\\u54C1\\u7F16\\u53F7\");\n\t\tmodel.addColumn(\"\\u540D\\u79F0\");\n\t\tmodel.addColumn(\"\\u5355\\u4EF7(\\u4EBA\\u6C11\\u5E01)\");\n\t\tmodel.addColumn(\"\\u5E93\\u5B58\");\n\t\tmodel.addColumn(\"\\u5546\\u54C1\\u63CF\\u8FF0\");\n\n\t\tJTable table = new JTable(model);\n\t\tupdateGoodsList(goodsList);\n\n\t\tJScrollPane scrollpane = new JScrollPane(table);\n\t\tDefaultTableCellRenderer tcr = new DefaultTableCellRenderer();\n\t\ttcr.setHorizontalAlignment(JLabel.CENTER);\n\t\ttable.setDefaultRenderer(Object.class, tcr);\n\t\tpanel.setLayout(null);\n\n\t\ttable.setPreferredScrollableViewportSize(new Dimension(900, 420));\n\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\tscrollPane.setBounds(14, 75, 940, 340);\n\t\tpanel.add(scrollPane);\n\n\t\tJLabel label_3 = new JLabel();\n\t\tlabel_3.setFont(new Font(\"宋体\", Font.PLAIN, 20));\n\t\tlabel_3.setBounds(181, 391, 21, 24);\n\t\tpanel.add(label_3);\n\n\t\tJLabel label_4 = new JLabel();\n\t\tlabel_4.setFont(new Font(\"宋体\", Font.PLAIN, 20));\n\t\tlabel_4.setBounds(339, 391, 36, 24);\n\t\tpanel.add(label_4);\n\n\t\tJButton button_2 = new JButton(\"商品搜索\");\n\t\t// button_2.addActionListener(new ActionListener() {\n\t\t// public void actionPerformed(ActionEvent e) {\n\t\t// String text = textField.getText().trim();\n\t\t// if (text == null || text.equals(\"\")) {\n\t\t// JOptionPane.showMessageDialog(null,\n\t\t// \"\\u60A8\\u6CA1\\u6709\\u8F93\\u5165\\u4EFB\\u4F55\\u5185\\u5BB9\\uFF0C\\u9ED8\\u8BA4\\u663E\\u793A\\u5168\\u90E8\\u5546\\u54C1\\u4FE1\\u606F\\uFF01\");\n\t\t// UserStore.updateGoodsList(IOUtils.getAllGoods(), model);\n\t\t// UserStore.table1.updateUI();\n\t\t// return;\n\t\t// }\n\t\t// if (RegexUtility.isInteger(text)) {\n\t\t// JOptionPane.showMessageDialog(null,\n\t\t// \"\\u60A8\\u7684\\u8F93\\u5165\\u4E0D\\u5408\\u6CD5\\uFF0C\\u8BF7\\u8F93\\u5165\\u6B63\\u6574\\u6570\\uFF01\");\n\t\t// return;\n\t\t// }\n\t\t// int id = Integer.parseInt(text);\n\t\t// Goods goods = IOUtils.getGoodsById(id);\n\t\t// if (goods == null) {\n\t\t// JOptionPane.showMessageDialog(null,\n\t\t// (new\n\t\t// StringBuilder(\"\\u6CA1\\u6709\\u627E\\u5230\\u7F16\\u53F7\\u4E3A\")).append(id)\n\t\t// .append(\"\\u7684\\u5546\\u54C1\\uFF01\").toString());\n\t\t// UserStore.updateGoodsList(IOUtils.getAllGoods(), model);\n\t\t// UserStore.table1.updateUI();\n\t\t// return;\n\t\t// } else {\n\t\t// java.util.List gList = new ArrayList();\n\t\t// gList.add(goods);\n\t\t// UserStore.updateGoodsList(gList);\n\t\t// UserStore.table1.updateUI();\n\t\t// return;\n\t\t// }\n\t\t// }\n\t\t//\n\t\t// final UserStore this$0;\n\t\t//\n\t\t// {\n\t\t// this$0 = UserStore.this;\n\t\t// // super();\n\t\t// }\n\t\t//\n\t\t// });\n\t\tbutton_2.setFont(new Font(\"宋体\", Font.PLAIN, 20));\n\t\tbutton_2.setBounds(208, 35, 132, 27);\n\t\tpanel.add(button_2);\n\n\t\tJLabel label = new JLabel(\"\\u5546\\u54C1\\u7F16\\u53F7\");\n\t\tlabel.setFont(new Font(\"宋体\", Font.PLAIN, 20));\n\t\tlabel.setBounds(28, 39, 97, 18);\n\t\tpanel.add(label);\n\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(116, 38, 86, 24);\n\t\tpanel.add(textField);\n\t\ttextField.setColumns(10);\n\n\t\tJButton button = new JButton(\"退出登陆\");\n\t\tbutton.setFont(new Font(\"宋体\", Font.PLAIN, 20));\n\n\t\tbutton.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint select = JOptionPane.showConfirmDialog(null, \"是否退出登录?\");\n\t\t\t\tif (select == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tclient.stopClient();\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tfinal UserStore this$0;\n\t\t\t{\n\t\t\t\tthis$0 = UserStore.this;\n\t\t\t\t// super();\n\t\t\t}\n\t\t});\n\t\tbutton.setBounds(816, 35, 123, 27);\n\t\tpanel.add(button);\n\n\t\tJButton button_1 = new JButton(\"查看商品详情\");\n\n\t\tbutton_1.setFont(new Font(\"宋体\", Font.PLAIN, 20));\n\t\tbutton_1.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint selectRow = table.getSelectedRow();\n\t\t\t\tif (selectRow == -1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\"\\u60A8\\u6CA1\\u6709\\u9009\\u62E9\\u5546\\u54C1\\uFF0C\\u8BF7\\u60A8\\u9009\\u4E2D\\u67D0\\u4E2A\\u5546\\u54C1\\u540E\\u518D\\u5355\\u51FB\\u6B64\\u6309\\u94AE\\uFF01\",\n\t\t\t\t\t\t\t\"\\u63D0\\u793A\", 2);\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tint num = Integer.parseInt(table.getValueAt(table.getSelectedRow(), 0).toString());\n\t\t\t\t\tGoods goods = getGoodsById(goodsList, num);\n\t\t\t\t\t// UserGoods d = new UserGoods();\n\t\t\t\t\tUserGoods.main(null);\n\t\t\t\t\t// d.setDefaultCloseOperation(1);\n\t\t\t\t\t// d.setVisible(true);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbutton_1.setBounds(534, 35, 218, 27);\n\t\tpanel.add(button_1);\n\n\t\tJButton button_3 = new JButton(\"添加到购物车\");\n\t\tbutton_3.setFont(new Font(\"宋体\", Font.PLAIN, 20));\n\t\tbutton_3.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint selectRow = table.getSelectedRow();\n\t\t\t\tif (selectRow == -1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\"\\u60A8\\u6CA1\\u6709\\u9009\\u62E9\\u5546\\u54C1\\uFF0C\\u8BF7\\u60A8\\u9009\\u4E2D\\u67D0\\u4E2A\\u5546\\u54C1\\u540E\\u518D\\u5355\\u51FB\\u6B64\\u6309\\u94AE\\uFF01\",\n\t\t\t\t\t\t\t\"\\u63D0\\u793A\", 2);\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tint num = Integer.parseInt(table.getValueAt(table.getSelectedRow(), 0).toString());\n\t\t\t\t\tGoods goods = getGoodsById(goodsList, num);\n\t\t\t\t\t// UserGoods d = new UserGoods();\n\t\t\t\t\tUserGoods.main(null);\n\t\t\t\t\t// d.setDefaultCloseOperation(1);\n\t\t\t\t\t// d.setVisible(true);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbutton_3.setBounds(567, 433, 185, 46);\n\t\tpanel.add(button_3);\n\n\t\tJButton button_4 = new JButton(\"结算\");\n\t\tbutton_4.setFont(new Font(\"宋体\", Font.PLAIN, 20));\n\t\tbutton_4.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCarFrame.main(null);\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tbutton_4.setBounds(785, 434, 123, 45);\n\t\tpanel.add(button_4);\n\t\tpanel.setVisible(true);\n\t}", "public ListBahanKosong_View() {\n initComponents();\n controller = new ListBahanKosong_Controller(this);\n controller.isiTabel();\n controller.Item();\n controller.ItemLow();\n controller.ItemOut();\n model = (DefaultTableModel)tbl_data.getModel();\n setExtendedState(JFrame.MAXIMIZED_BOTH);\n }", "private ByaTableModel() {\n\t}", "public JfAeroports() {\n initComponents();\n tableUpdate();\n }", "private void criaJTable() {\n tabela = new JTable(modelo);\n modelo.addColumn(\"Codigo:\");\n modelo.addColumn(\"Data inicio:\");\n modelo.addColumn(\"Data Fim:\");\n modelo.addColumn(\"Valor produto:\");\n modelo.addColumn(\"Quantidade:\");\n\n preencherJTable();\n }", "public void disTable () {\n\t\t\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\t\t\tvalues = new Vector();\n\t\t\t\tvalues.add(\"20\"); values.add(\"20\"); values.add(\"20\"); values.add(\"20\"); values.add(\"20\");values.add(\"20\");values.add(new Boolean(false));\n\t\t\t\tmyModel.addRow(values ); // more practicle, vector can take only objects.\n\t\t myModel.addRow(data);\n\n\n\t\t\t\tgetContentPane().add(scrollPane, BorderLayout.CENTER);\n\n\t\t\t\t addWindowListener(new WindowAdapter() {\n\t\t\t\t\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t\t}\n\t\t\t\t });\n\t}", "private void buildview() {\n\t\tCssLayout cd= new CssLayout();\n\t\t\n\t\t//table.setSizeFull();\n\t\t\t\n\t\t\ttable.setContainerDataSource(container);\n\t\t\ttable.setVisibleColumns(new Object[]{\"Name\",\"Component\",\"Indication\",\"Comment\",\"MethodofAdministration\"});\n\t\t\ttable.setColumnHeader(\"MethodofAdministration\", \"Method of Administration\");\n\t\t\t\n\t\t\ttable.setWidth(\"100%\");\n\t\t\tcd.addComponent(table);\n\t\t\tcd.setSizeFull();\n\t\t\tsetContent(cd);\n\t\t\n\t}", "private void addComponents() {\n //this.getContentPane().add(new ViewDeckComputer(), BorderLayout.NORTH);\n createTopPanel();\n createCentralPanel();\n createBottomPanel();\n }", "public TablePanel( PokerClient gui){\n\t\t//card = selectCard; Card selectCard,\n\t\tparent = gui;\n\t}", "private void createUIComponents() {\n table = new ShareTraderTable();\n }", "public Patients_Data_Frame() {\n initComponents();\n Show_Products_in_jTable();\n }", "public JPanelChuyen() {\n initComponents();\n thoiGianDao = new ThoiGianHoatDongDao();\n tbmChuyen = (DefaultTableModel) jtbChuyen.getModel();\n dpNgayBatDau.setEnabled(false);\n ChuyenDao.loadDSChuyenVaoBang(LopKetNoi.select(\"select * from Chuyen\"), tbmChuyen);\n }", "private void initTable() {\n\t\tDefaultTableModel dtm = (DefaultTableModel)table.getModel();\n\t\tdtm.setRowCount(0);\t\t\n\t\tfor(int i=0;i<MainUi.controller.sale.items.size();i++){\n\t\t\tVector v1 = new Vector();\n\t\t\tv1.add(MainUi.controller.sale.items.get(i).getProdSpec().getTitle());\n\t\t\tv1.add(MainUi.controller.sale.items.get(i).getCopies());\n\t\t\tdtm.addRow(v1);\n\t\t}\n\t\tlblNewLabel.setText(\"\"+MainUi.controller.sale.getTotal());\n\t}", "public void actionPerformed(ActionEvent e) {\n model.addRow();\n }", "public Modello() {\r\n super();\r\n initComponents();\r\n setModalita(APPEND_QUERY);\r\n setFrameTable(tabModello);\r\n setNomeTabella(\"vmodello\");\r\n tMarcaDescrizione.setEnabled(false);\r\n }", "private void initializeComponent(String [] entry, Double [] price, String name)\n {\n jLabel1 = new JLabel();\n jLabel2 = new JLabel();\n jTextPane1 = new JTextPane();\n jScrollPane1 = new JScrollPane();\n jTextPane2 = new JTextPane();\n jScrollPane2 = new JScrollPane();\n contentPane = (JPanel)this.getContentPane();\n \n String finalText = \"\";\n for(int i = 0; i < entry.length; i++)\n {\n\tfinalText += entry[i]+price[i].toString()+\"\\n\\n\";\n }\n \n \n String[] columnNames = {\"Item\",\"Price ($)\"};\n \n String [] [] data = new String[entry.length][2];\n \n for(int i = 0; i < entry.length; i++)\n {\n\tdata [i][0] = entry[i];\n\tdata [i][1] = price[i].toString();\n }\n \n JTable jTable = new JTable(data, columnNames);\n \n \n JScrollPane scrollPane = new JScrollPane(jTable);\n jTable.setPreferredScrollableViewportSize(new Dimension(500, 70));\n //\n // jLabel1\n //\n //jLabel1.setText(\"Item\");\n //\n // jLabel2\n //\n //jLabel2.setText(\"Price\");\n //\n // jTextPane1\n //\n //jTextPane1.setText(finalText);\n //\n // jScrollPane1\n //\n jScrollPane1.setViewportView(jTable);//(jTextPane1)\n //\n // jTextPane2\n //\n //jTextPane2.setText(\"abc\");\n //\n // jScrollPane2\n //\n //jScrollPane2.setViewportView(jTextPane2);\n //\n // contentPane\n\t\t//\n contentPane.setLayout(null);\n //addComponent(contentPane, jLabel1, 27,26,60,18);\n //addComponent(contentPane, jLabel2, 220,26,60,18);\n addComponent(contentPane, jScrollPane1, 29,45,400,150);\n //addComponent(contentPane, jScrollPane2, 218,45,60,100);\n //\n // Display\n //\n this.setTitle(\"Menu for \"+name);\n this.setLocation(new Point(100, 50));\n this.setSize(new Dimension(500, 300));\n }", "public Complementos() {\n initComponents();\n String cabecera []={\"Producto\",\"Precio\"};\nString datos[][]={};\nboolean t=true;\nboolean f=false;\nmodelo = new Tablachida(datos,cabecera);\ntabla.setModel(modelo);\nTableColumnModel columnModel = tabla.getColumnModel();\ncolumnModel.getColumn(0).setPreferredWidth(250);\ntabla.setRowHeight(40);\n\n }", "void addComponents();", "public ProgTableController() {\n super();\n this.lstDaqHware = new ArrayList<AcceleratorNode>();\n this.mapDevPBar = new HashMap<AcceleratorNode, JProgressBar>();\n this.mapDevMotion = new HashMap<AcceleratorNode, JTextArea>(); \n }", "private JTable getJTableVar() {\r\n\t\tif (jTableVar == null) {\r\n\t\t\t//表头\r\n\t\t\tString [] colName = {};\r\n\t\t\tvarModel = new DefaultTableModel(colName);\r\n\t\t\tjTableVar = new JTable(varModel);\r\n\t\t\tjTableVar.setRowHeight(25);\r\n\t\t\tjTableVar.setEnabled(false);\r\n\t\t\tjTableVar.setForeground(new Color(0, 0, 204));\r\n\t\t\tjTableVar.setFont(new Font(\"Courier New\", Font.BOLD, 12));\r\n\t\t\tTableUtil.setTableAlign(jTableVar, JLabel.CENTER);\r\n\t\t\tjTableVar.setBounds(new Rectangle(7, 18, 638, 50));\r\n\t\t}\r\n\t\treturn jTableVar;\r\n\t}", "Juego(){\r\n\r\n GridLayout layout = new GridLayout(1,2);\r\n\tsetLayout(layout);\r\n\t\t\r\n\t// Creacion del tablero del contrincante (computadora)\t\r\n\t\r\n t_contrincante = new Tablero(false);\r\n\tadd(t_contrincante);\r\n\t\t\t\t\r\n\t// Creacion del tablero del jugador\r\n\t\t\t\t\r\n t_jugador = new Tablero(true);\r\n\tadd(t_jugador);\r\n }", "private void initilizeTable(DefaultTableModel model) throws SQLException {\r\n ArrayList<Products> allProducts;\r\n Connection c = null;\r\n PreparedStatement s = null;\r\n ResultSet rs;\r\n String query = \"SELECT * FROM products\";\r\n try {\r\n c = ConnectionFactory.getConnection();\r\n s = c.prepareStatement(query, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\r\n rs = s.executeQuery();\r\n allProducts = listForJTable(rs);\r\n rs.beforeFirst();\r\n model = getFieldsName(model, rs);\r\n for (Products p : allProducts)\r\n model.addRow(new String[]{String.valueOf(p.getIdproducts()), p.getProducts_name(), String.valueOf(p.getProducts_price()), String.valueOf(p.getProducts_inStock())});\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n } finally {\r\n ConnectionFactory.close(s);\r\n ConnectionFactory.close(c);\r\n }\r\n }", "private void createUIComponents() {\n String[] columns = {\"ID\", \"Name\", \"Longitude\", \"Latitude\"};\n List<City> cities = DataManager.getDataManager().getAllCities();\n\n // Create table\n DefaultTableModel tableModel = new DefaultTableModel(columns, 0);\n dataTable = new JTable(tableModel);\n\n // Fill table\n tableModel.addRow(new Object[] {\"ID\", \"Name\", \"Long\", \"Lat\"});\n for (int i = 0; i < cities.size(); i++) {\n City curCity = cities.get(i);\n tableModel.addRow(new Object[] {\n i,\n curCity.getName(),\n curCity.getLongitude(),\n curCity.getLatitude()\n });\n }\n dataTable.setVisible(false);\n }", "public JComponent createTopPanel() {\n\n\t//\tcontent();\n\t\tfields = new JTextField[NBR_FIELDS];\n\t\tmyTable = new PalletTable(db);\n\t\ttable = new JTable(myTable);\n\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\t\ttable.setPreferredScrollableViewportSize(new Dimension(750, 100));\n table.setFillsViewportHeight(true);\n\t\tscroll = new JScrollPane(table);\n\t//\tcontent();\n\t\tmainPanel= new JPanel();\n\t\tmainPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\tc.gridy=0;\n\t\tmainPanel.add(scroll,c);\n\t\tc.gridy=1;\n\t\tmainPanel.add(content(),c);\n\t\t//scroll.setPreferredSize(new Dimension(300,250));\n\t\treturn mainPanel;\n\t}", "private void loadTable() {\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n try {\n String sql = \"select * from tb_mahasiswa\";\n Statement n = a.createStatement();\n ResultSet rs = n.executeQuery(sql);\n while (rs.next()) {\n Object[] o = new Object[6];\n o[0] = rs.getString(\"id_mahasiswa\");\n o[1] = rs.getString(\"nama\");\n o[2] = rs.getString(\"tempat\");\n o[3] = rs.getString(\"waktu\");\n o[4] = rs.getString(\"status\");\n model.addRow(o);\n }\n } catch (Exception e) {\n }\n }", "private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n JFrame frame = new JFrame(\"TablePanel\");\n JPanel contentP = new JPanel();\n Box v = Box.createVerticalBox();\n Box h = Box.createHorizontalBox();\n Box h2 = Box.createHorizontalBox();\n TablePanel tablePanel = new TablePanel();\n tablePanel.setOpaque(true); //content panes must be opaque\n\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setContentPane(contentP);\n contentP.add(tablePanel);\n contentP.add(v);\n v.add(h);\n v.add(h2);\n\n h.add(tablePanel);\n h2.add(new JButton(\"Hello\"));\n //Display the window.\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n }", "public void addComponents(){\n add(spelerIDLabel);\n add(typeLabel);\n add(codeLabel);\n add(heeftBetaaldLabel);\n\n add(spelerIDField);\n add(typeField);\n add(codeField);\n add(heeftBetaaldField);\n\n add(klaarButton);\n add(terugButton);\n\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"SimpleTableDemo\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n EshopTable newContentPane = new EshopTable();\n newContentPane.addColumn(\"name\", \"toto je hlaviska1\", null, 500);\n newContentPane.addColumn(\"vek\", \"toto je hlaviska2\", \"sortHlav2\", 250);\n newContentPane.markAsVisible();\n\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private JTable getJTable() {\r\n\t\tif (jTable == null) {\r\n\t\t\tjTable = new JTable(model){\r\n\t\t\t\t/**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\tpublic TableCellRenderer getCellRenderer( int row, int col ) {\r\n\t\t\t\t\tTableCellRenderer renderer = super.getCellRenderer(row,col);\r\n\t\t\t\t\tif ( (col == 1 )|| (col == 2) )\r\n\t\t\t\t\t\t((JLabel)renderer).setHorizontalAlignment( SwingConstants.LEFT);\r\n\t\t\t\t\t\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\t((JLabel)renderer).setHorizontalAlignment( SwingConstants.CENTER );\r\n\t\t\t\t\treturn renderer;\r\n\t\t\t\t}\r\n\t\t\t};\r\n\r\n\t\t\tjTable.setShowGrid(true);\r\n\t\t\tjTable.getColumnModel().getColumn(0).setPreferredWidth(45);\r\n\t\t\tjTable.getColumnModel().getColumn(1).setPreferredWidth(120);\r\n\t\t\tjTable.getColumnModel().getColumn(2).setPreferredWidth(55);\r\n\t\t\tjTable.getColumnModel().getColumn(3).setPreferredWidth(180);\r\n\t\t\tjTable.getColumnModel().getColumn(4).setPreferredWidth(130);\r\n\t\t\tjTable.getColumnModel().getColumn(5).setPreferredWidth(50);\r\n\t\t\tjTable.getColumnModel().getColumn(6).setPreferredWidth(55);\r\n\r\n\t\t}\r\n\r\n\t\treturn jTable;\r\n\t}", "public shoppingCartTableGui(){\n super(new BorderLayout());\n /* First you need to create the Model that the list is going to be */\n ListModel = new DefaultListModel();\n\n /* Now you can create the JList object with the Model as the argument. You are also \n now able to edit the List to allow different settings and let how many ever\n elements be visible */\n \n\n List = new JList(ListModel);\n List.setSelectionMode(MULTIPLE_INTERVAL_SELECTION);\n List.setSelectedIndex(0);\n List.setVisibleRowCount(5);\n List.setSize(100, 100);\n \n newTable = new DefaultTableModel(columnNames,0);\n \n table = new JTable(newTable);\n\n \n \n \n /* adds the list to the scroll panel */\n JScrollPane ScrollPanel = new JScrollPane(table);\n JScrollPane ScrollPane2 = new JScrollPane(List);\n \n table.setFillsViewportHeight(true);\n \n /* adds the scroll panel to the frame */\n add(ScrollPanel, BorderLayout.NORTH);\n \n /* creating the button that allows users to add items to grocery list\n still needs to use java to check the list for conditions */\n \n /* another reminder is that the button won't appear until placed on a panel */\n JButton AddButton = new JButton(\"Add Item\");\n AddListener addListener = new AddListener(AddButton);\n AddButton.setEnabled(false);\n AddButton.setActionCommand(\"Add Item\");\n \n /* This is attaching the an AddListener object to the button to tell the\n application what to do when this button is clicked */\n AddListener AddListener = new AddListener(AddButton);\n AddButton.addActionListener(AddListener);\n \n JButton RemoveButton = new JButton(\"Remove Item\");\n RemoveListener removeListener = new RemoveListener(RemoveButton);\n RemoveButton.setEnabled(true);\n RemoveButton.setActionCommand(\"Remove Item\");\n RemoveButton.addActionListener(removeListener);\n \n JButton PrintButton = new JButton(\"Print Items\");\n PrintListener printListener = new PrintListener(PrintButton);\n PrintButton.setEnabled(true);\n PrintButton.setActionCommand(\"Print Items\");\n PrintButton.addActionListener(printListener);\n \n JButton ClearButton = new JButton(\"Clear log\");\n clearListener clearListener = new clearListener(ClearButton);\n ClearButton.setEnabled(true);\n ClearButton.setActionCommand(\"Clear logs\");\n ClearButton.addActionListener(clearListener);\n \n add(ScrollPane2, BorderLayout.EAST);\n Item = new JTextField(20);\n Item.addActionListener(addListener);\n \n ItemPrice = new JTextField(20);\n\n ItemSerialNumber = new JTextField(20);\n\n ItemPrice.addActionListener(addListener);\n ItemSerialNumber.addActionListener(addListener);\n\n \n Item.getDocument().addDocumentListener(addListener);\n \n ItemPrice.getDocument().addDocumentListener(addListener);\n ItemSerialNumber.getDocument().addDocumentListener(addListener);\n \n ItemNameLabel = new JLabel();\n ItemPriceLabel = new JLabel();\n ItemSerialNumberLabel = new JLabel();\n \n ItemNameLabel.setText(\"Item Name: \");\n ItemPriceLabel.setText(\"Item Price: \");\n ItemSerialNumberLabel.setText(\"Item Serial Number: \");\n \n\n \n /* creating the panel where we attach our buttons to */\n JPanel Panel1 = new JPanel();\n Panel1.setLayout(new GridLayout(6,2,5,5));\n Panel1.add(AddButton);\n Panel1.add(RemoveButton);\n\n //Panel1.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\n Panel1.add(ItemNameLabel);\n Panel1.add(Item);\n Panel1.add(ItemPriceLabel);\n Panel1.add(ItemPrice);\n Panel1.add(ItemSerialNumberLabel);\n Panel1.add(ItemSerialNumber);\n \n Panel1.add(PrintButton);\n Panel1.add(ClearButton);\n \n JButton addToCart = new JButton();\n addToCartListener add1 = new addToCartListener(addToCart);\n addToCart.addActionListener(add1);\n addToCart.setEnabled(true);\n \n JButton removeFromCart = new JButton();\n removeItemFromCart remove1 = new removeItemFromCart(removeFromCart);\n removeFromCart.addActionListener(remove1);\n removeFromCart.setEnabled(true);\n \n JButton checkOut = new JButton();\n checkOutListener checkOut1 = new checkOutListener(checkOut);\n checkOut.addActionListener(checkOut1);\n checkOut.setEnabled(true);\n /* adds the Panel to the frame */ \n \n shoppingCartListModel = new DefaultListModel();\n shoppingCartList = new JList(shoppingCartListModel);\n shoppingCartList.setBounds(145,0,400,400);\n \n JPanel Panel3 = new JPanel();\n Panel3.setLayout(null);\n addToCart.setBounds(10,10,115,25);\n addToCart.setText(\"Add item\");\n \n removeFromCart.setBounds(10, 45,115,25);\n removeFromCart.setText(\"Remove item\");\n \n checkOut.setBounds(10,80,115,25);\n checkOut.setText(\"Check out\");\n \n Panel3.add(addToCart);\n Panel3.add(removeFromCart);\n Panel3.add(checkOut);\n Panel3.add(shoppingCartList);\n \n JPanel Panel4 = new JPanel();\n Panel4.setLayout(null);\n \n invoiceCartListModel = new DefaultListModel();\n invoiceCart = new JList(invoiceCartListModel);\n invoiceCart.setBounds(145,0,400,400);\n \n JButton editInvoice = new JButton();\n editListener editInvoiceListener = new editListener(editInvoice);\n editInvoice.setEnabled(true);\n editInvoice.setActionCommand(\"Edit Invoice\");\n editInvoice.addActionListener(editInvoiceListener);\n editInvoice.setBounds(10,10,115,25);\n editInvoice.setText(\"Edit\");\n \n Panel4.add(invoiceCart);\n Panel4.add(editInvoice);\n\n JTabbedPane tabbedPane = new JTabbedPane();\n tabbedPane.add(\"Shopping Cart\",Panel3);\n tabbedPane.add(\"Catalog\", Panel1);\n tabbedPane.add(\"Invoices\", Panel4);\n tabbedPane.addChangeListener(new InvoiceListener());\n add(tabbedPane);\n \n\n }", "private void initialize() {\r\n\t\t\r\n\t\tString[] columnNames = {\"First Name\",\r\n \"Last Name\",\r\n \"Sport\",\r\n \"# of Years\",\r\n \"Vegetarian\"};\r\n\t\t\r\n\t\tObject[][] data = {\r\n\t\t\t {\"Kathy\", \"Smith\",\r\n\t\t\t \"Snowboarding\", new Integer(5), new Boolean(false)},\r\n\t\t\t {\"John\", \"Doe\",\r\n\t\t\t \"Rowing\", new Integer(3), new Boolean(true)},\r\n\t\t\t {\"Sue\", \"Black\",\r\n\t\t\t \"Knitting\", new Integer(2), new Boolean(false)},\r\n\t\t\t {\"Jane\", \"White\",\r\n\t\t\t \"Speed reading\", new Integer(20), new Boolean(true)},\r\n\t\t\t {\"Joe\", \"Brown\",\r\n\t\t\t \"Pool\", new Integer(10), new Boolean(false)}\r\n\t\t\t};\t\t\r\n\r\n\t\t//JTable \r\n\t\t\r\n\t\t\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 544, 432);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(new BorderLayout(0, 0));\r\n\t\t\r\n\t\tJTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(tabbedPane);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\ttabbedPane.addTab(\"New tab\", null, panel, null);\r\n\t\t\r\n\t\ttable = new JTable(data, columnNames);\r\n\t\t\r\n\t\ttable_1 = new JTable(data, columnNames);\r\n\t\t\r\n\t\ttable_2 = new JTable(data, columnNames);\r\n\t\tGroupLayout gl_panel = new GroupLayout(panel);\r\n\t\tgl_panel.setHorizontalGroup(\r\n\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addComponent(table_2, GroupLayout.PREFERRED_SIZE, 523, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\r\n\t\t\t\t\t.addGap(148)\r\n\t\t\t\t\t.addComponent(table_1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t.addComponent(table, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\r\n\t\t);\r\n\t\tgl_panel.setVerticalGroup(\r\n\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\r\n\t\t\t\t\t.addComponent(table_2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t.addComponent(table_1, GroupLayout.DEFAULT_SIZE, 285, Short.MAX_VALUE)\r\n\t\t\t\t\t\t.addComponent(table, GroupLayout.PREFERRED_SIZE, 285, GroupLayout.PREFERRED_SIZE)))\r\n\t\t);\r\n\t\tpanel.setLayout(gl_panel);\r\n\t\t\r\n\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "private JComponent createInfoTable() {\r\n\t\tm_model = new JETATableModel();\r\n\r\n\t\tString[] names = new String[2];\r\n\t\tnames[0] = I18N.getLocalizedMessage(\"Property\");\r\n\t\tnames[1] = I18N.getLocalizedMessage(\"Value\");\r\n\t\tm_model.setColumnNames(names);\r\n\r\n\t\tClass[] coltypes = new Class[2];\r\n\t\tcoltypes[0] = String.class;\r\n\t\tcoltypes[1] = String.class;\r\n\t\tm_model.setColumnTypes(coltypes);\r\n\r\n\t\treturn new javax.swing.JScrollPane(TableUtils.createBasicTablePanel(m_model, true));\r\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n tableModel.addRow(new Object[] { idf.getText(), lnamef.getText(), fnamef.getText(), vtypef.getText(),\n vdatef.getText(), vlocationf.getText() });\n idf.setText(\"\");\n lnamef.setText(\"\");\n fnamef.setText(\"\");\n vtypef.setText(\"\");\n vdatef.setText(\"\");\n vlocationf.setText(\"\");\n\n p.remove(layout.getLayoutComponent(BorderLayout.CENTER));\n p.add(sp, BorderLayout.CENTER);\n p.repaint();\n p.revalidate();\n }", "private void addComponents() {\n LOOGER.info(\"Get add Components Entry\");\n // Adding loadButton to first row.\n this.add(loadButton);\n\n // Adding fillButton to first row.\n this.add(fillButton);\n\n // Adding deleteButton to first row.\n this.add(deleteButton);\n LOOGER.info(\"add Components exit\");\n }", "@SuppressWarnings(\"serial\")\n\tprivate void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 502, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setLocationRelativeTo(null);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"管理员工\", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\tpanel.setBounds(10, 10, 466, 241);\n\t\tframe.getContentPane().add(panel);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(10, 26, 446, 142);\n\t\tpanel.add(scrollPane);\n\t\t\n\t\t\n\t\ttable = new JTable();\n\t\tDTM=new DefaultTableModel(null,tableTitle)\n\t\t{\n\t\t\tpublic boolean isCellEditable(int rowindex,int colindex)\n\t\t\t{\n\t\t\t\tif(colindex==0||colindex==1||colindex==5)\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t\n\t\tDTM.addTableModelListener(this);\n\t\ttable.setModel(DTM);\n\t\trefreshTable();\n\t\tscrollPane.setViewportView(table);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"删除员工信息\");\n\t\tbtnNewButton.addActionListener(new ActionListener() \n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent arg0) \n\t\t\t{\n\t\t\t\tint row = table.getSelectedRow();\n\t\t\t\tint column = 0;\n\t\t\t\tSystem.out.println(row+\" \"+column);\n\t\t\t\tString id = (String)table.getValueAt(row,column);\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\temployeeinformationimpl.delete(employeeinformationimpl.getById(id));\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"成功删除指定数据\",\"提示信息\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\tUnit.logmysql.VIP_Delete(Unit.log.setLog(id));\n\t\t\t\t}\n\t\t\t\tcatch (Exception e)\n\t\t\t\t{\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\tSystem.err.println(\"操作失败!\");\n\t\t\t\t}\n\t\t\t\trefreshTable();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(10, 199, 446, 32);\n\t\tpanel.add(btnNewButton);\n\t\t\n\t\tJLabel label = new JLabel(\"修改员工信息的时候,直接在表格中修改,自动保存!\");\n\t\tlabel.setBounds(10, 174, 394, 15);\n\t\tpanel.add(label);\n\t}", "public JTable crtTBLPNL1(JPanel LP_TBLPNL,String[] LP_COLHD,int LP_ROWCNT,int LP_XPOS,int LP_YPOS,int LP_WID,int LP_HGT,int[] LP_ARRGSZ){ \n\t try{\n\t\t cl_tab2 L_TBLOBJ1; \n\t\t JPanel pnlTAB1 = new JPanel();\n\t\t Object[][] L_TBLDT1;\n\t\t L_TBLDT1 = crtTBLDAT(LP_ROWCNT,LP_COLHD.length); // Creating the Object Data\n\t\t L_TBLOBJ1 = new cl_tab2(L_TBLDT1,LP_COLHD);\n\t\t JTable L_TBL1 = new JTable(L_TBLOBJ1); \n\t\t L_TBL1.setBackground(new Color(213,213,255));\n\t\t int h1 = JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS;\n\t\t int v1 = JScrollPane.VERTICAL_SCROLLBAR_ALWAYS;\n\t\t JScrollPane jspTBL1 = new JScrollPane(L_TBL1,v1,h1);\n\t\t jspTBL1.setPreferredSize(new Dimension(LP_WID-25,LP_HGT-25));\n\t\t jspTBL1.setLocation(0,100);\n\t\t pnlTAB1.removeAll();\n\t\t setCOLWDT(L_TBL1,LP_COLHD,LP_ARRGSZ);\n\t\t pnlTAB1.add(jspTBL1);\n\t\t pnlTAB1.setSize(LP_WID,LP_HGT);\n\t\t pnlTAB1.setLocation(LP_XPOS,LP_YPOS);\n\t\t LP_TBLPNL.add(pnlTAB1);\n\t\t LP_TBLPNL.updateUI();\n\t\treturn L_TBL1;\n\t }catch(Exception L_EX){\n\t\t System.out.println(\"crtTBLPNL1 \"+L_EX);\n\t }\n\treturn null;\n }", "public Travellers() {\n initComponents();\n table1 = (DefaultTableModel) jTable1.getModel();\n }", "public NewCidsClassVisualPanel1(final NewCidsClassWizardPanel1 model) {\n this.model = model;\n this.tableRowSelectionL = new TableRowSelectionListener();\n this.oneToManyL = new OneToManyActionListener();\n \n initComponents();\n \n dbType = new ImageIcon(ImageUtilities.loadImage(DomainserverProject.IMAGE_FOLDER + \"db_types.png\")); // NOI18N\n syncClassDocL = new SyncClassDocListener();\n syncTableDocL = new SyncTableDocListener();\n attrPolicyL = new ItemListener() {\n \n @Override\n public void itemStateChanged(final ItemEvent e) {\n if (e.getStateChange() == ItemEvent.SELECTED) {\n final Policy policy = (Policy)e.getItem();\n model.getCidsClass().setAttributePolicy((policy.getId() == null) ? null : policy);\n }\n }\n };\n ((JXTable)tblAttr).setAutoStartEditOnKeyStroke(true);\n ((JXTable)tblAttr).setTerminateEditOnFocusLost(true);\n tblAttr.setDefaultEditor(String.class, new DefaultCellEditor(new JTextField()));\n tblAttr.getDefaultEditor(String.class).addCellEditorListener(new CellEditorListener() {\n \n @Override\n public void editingCanceled(final ChangeEvent e) {\n model.fireChangeEvent();\n }\n \n @Override\n public void editingStopped(final ChangeEvent e) {\n model.fireChangeEvent();\n }\n });\n \n final JCheckBox chkEditorBox = new JCheckBox();\n chkEditorBox.setHorizontalAlignment(JCheckBox.CENTER);\n tblAttr.setDefaultEditor(Boolean.class, new DefaultCellEditor(chkEditorBox));\n lstTypes.setCellRenderer(new ListCellRendererImpl());\n cboClassIcons.addItemListener(new ItemListener() {\n \n @Override\n public void itemStateChanged(final ItemEvent e) {\n final CidsClass c = classTableModel.getCidsClass();\n c.setClassIcon((Icon)cboClassIcons.getSelectedItem());\n }\n });\n cboObjectIcons.addItemListener(new ItemListener() {\n \n @Override\n public void itemStateChanged(final ItemEvent e) {\n final CidsClass c = classTableModel.getCidsClass();\n c.setObjectIcon((Icon)cboObjectIcons.getSelectedItem());\n }\n });\n \n tblAttr.getSelectionModel()\n .addListSelectionListener(WeakListeners.create(\n ListSelectionListener.class,\n tableRowSelectionL,\n tblAttr.getSelectionModel()));\n btnOneToMany.addActionListener(WeakListeners.create(ActionListener.class, oneToManyL, btnOneToMany));\n }", "private void initComponents() {\n llblCustNo = new JLabel();\n txtCustNo = new JTextField();\n lblCustName = new JLabel();\n txtCustName = new JTextField();\n llblDeposit = new JLabel();\n txtCustDeposit = new JTextField();\n lblYears = new JLabel();\n txtYears = new JTextField();\n lblSavings = new JLabel();\n cboSavings = new JComboBox<>();\n scrollPane1 = new JScrollPane();\n recordTable = new JTable();\n scrollPane2 = new JScrollPane();\n displayTable = new JTable();\n btnAdd = new JButton();\n btnEdit = new JButton();\n btnDelete = new JButton();\n\n //======== this ========\n setTitle(\"Compound Interest\");\n var contentPane = getContentPane();\n contentPane.setLayout(new MigLayout(\n \"hidemode 3\",\n // columns\n \"[475,fill]unrel\" +\n \"[331,fill]\" +\n \"[fill]\" +\n \"[fill]\" +\n \"[fill]\" +\n \"[fill]\" +\n \"[fill]\" +\n \"[fill]\" +\n \"[fill]\" +\n \"[fill]\" +\n \"[fill]\" +\n \"[fill]\" +\n \"[fill]\",\n // rows\n \"[32]rel\" +\n \"[28]\" +\n \"[23]\" +\n \"[39]\" +\n \"[37]\" +\n \"[]\" +\n \"[]\"));\n\n //---- llblCustNo ----\n llblCustNo.setText(\"Enter the Customer Number\");\n contentPane.add(llblCustNo, \"cell 0 0\");\n contentPane.add(txtCustNo, \"cell 1 0 12 1\");\n\n //---- lblCustName ----\n lblCustName.setText(\"Enter the Customer Name\");\n contentPane.add(lblCustName, \"cell 0 1\");\n contentPane.add(txtCustName, \"cell 1 1 12 1\");\n\n //---- llblDeposit ----\n llblDeposit.setText(\"Enter the Initial Deposit\");\n contentPane.add(llblDeposit, \"cell 0 2\");\n contentPane.add(txtCustDeposit, \"cell 1 2 12 1\");\n\n //---- lblYears ----\n lblYears.setText(\"Enter the number of years\");\n contentPane.add(lblYears, \"cell 0 3\");\n contentPane.add(txtYears, \"cell 1 3 12 1\");\n\n //---- lblSavings ----\n lblSavings.setText(\"Choose the type of savings\");\n contentPane.add(lblSavings, \"cell 0 4\");\n\n //---- cboSavings ----\n cboSavings.setModel(new DefaultComboBoxModel<>(new String[] {\n \"Savings-Deluxe\",\n \"Savings-Regular\"\n }));\n contentPane.add(cboSavings, \"cell 1 4 12 1\");\n\n //======== scrollPane1 ========\n {\n\n //---- recordTable ----\n recordTable.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n recordTableMouseClicked(e);\n }\n });\n scrollPane1.setViewportView(recordTable);\n }\n contentPane.add(scrollPane1, \"cell 0 5\");\n\n //======== scrollPane2 ========\n {\n scrollPane2.setViewportView(displayTable);\n }\n contentPane.add(scrollPane2, \"cell 1 5 12 1\");\n\n //---- btnAdd ----\n btnAdd.setText(\"Add\");\n btnAdd.addActionListener(e -> {\n try {\n btnAddActionPerformed(e);\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n });\n contentPane.add(btnAdd, \"cell 0 6\");\n\n //---- btnEdit ----\n btnEdit.setText(\"Edit\");\n btnEdit.addActionListener(e -> {\n try {\n btnEditActionPerformed(e);\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n });\n contentPane.add(btnEdit, \"cell 0 6\");\n\n //---- btnDelete ----\n btnDelete.setText(\"Delete\");\n btnDelete.addActionListener(e -> {\n try {\n btnDeleteActionPerformed(e);\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n });\n contentPane.add(btnDelete, \"cell 0 6\");\n pack();\n setLocationRelativeTo(getOwner());\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }", "public TimetableItemCellSizer(TableModel table_model){\n this.table_model = table_model;\n }", "public DeviceProgressPanel() {\n super();\n\n this.mdlCtrlr = new ProgTableController();\n this.tblDacqStatus = new JTable( this.mdlCtrlr );\n this.paneTblScrollr = new JScrollPane( this.tblDacqStatus );\n \n this.txtDaqStatus = new JTextField();\n\n// this.setViewportView( this.tblDacqStatus );\n this.buildViewPane();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n JpnTable = new javax.swing.JPanel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout JpnTableLayout = new javax.swing.GroupLayout(JpnTable);\n JpnTable.setLayout(JpnTableLayout);\n JpnTableLayout.setHorizontalGroup(\n JpnTableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n JpnTableLayout.setVerticalGroup(\n JpnTableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(JpnTable, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(JpnTable, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void initComponents() {\n\n\t\ttxtId = new javax.swing.JTextField();\n\t\tjLabel1 = new javax.swing.JLabel();\n\t\tjLabel2 = new javax.swing.JLabel();\n\t\ttxtAlert = new javax.swing.JTextField();\n\t\ttxtNbMax = new javax.swing.JTextField();\n\t\tjScrollPane1 = new javax.swing.JScrollPane();\n\t\ttblBollard = new javax.swing.JTable();\n\t\tbtnSave = new javax.swing.JButton();\n\t\tbtnSave.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\tbtnSave.setBackground(new Color(0, 0, 128));\n\t\tbtnSave.setForeground(new Color(0, 0, 0));\n\t\tbtnUpdate = new javax.swing.JButton();\n\t\tbtnUpdate.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\tbtnUpdate.setForeground(new Color(0, 0, 0));\n\t\tbtnUpdate.setBackground(new Color(0, 0, 128));\n\t\tbtnDelete1 = new javax.swing.JButton();\n\t\tbtnDelete1.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\tbtnDelete1.setForeground(new Color(0, 0, 0));\n\t\tbtnDelete1.setBackground(new Color(0, 0, 128));\n\t\tjLabel6 = new javax.swing.JLabel();\n\t\tjLabel6.setForeground(new Color(128, 0, 0));\n\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\t\tsetTitle(\"Simulation\");\n\t\tsetResizable(false);\n\n\t\tjLabel1.setFont(new Font(\"Yu Gothic Medium\", Font.BOLD, 13)); // NOI18N\n\t\tjLabel1.setText(\"Id\");\n\n\t\tjLabel2.setFont(new Font(\"Yu Gothic Medium\", Font.BOLD, 13)); // NOI18N\n\t\tjLabel2.setText(\"AlertAirQuality\");\n\n\t\tjLabel6.setFont(new Font(\"Yu Gothic Medium\", Font.BOLD, 20)); // NOI18N\n\t\tjLabel6.setText(\"Simulation Settings\");\n\n\t\ttblBollard.setModel(\n\t\t\t\tnew DefaultTableModel(\n\t\t\tnew Object[][] {\n\t\t\t},\n\t\t\tnew String[] {\n\t\t\t\t\"Id\", \"AlertAirQuality\", \"NbMaxVehicle\", \"nbactuel\"\n\t\t\t}\n\t\t) {\n\t\t\tClass[] columnTypes = new Class[] {\n\t\t\t\tInteger.class, Boolean.class, Integer.class, Integer.class\n\t\t\t};\n\t\t\tpublic Class getColumnClass(int columnIndex) {\n\t\t\t\treturn columnTypes[columnIndex];\n\t\t\t}\n\t\t});\n\t\ttblBollard.setCellSelectionEnabled(true);\n\t\ttblBollard.addMouseListener(new java.awt.event.MouseAdapter() {\n\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent evt) {\n\t\t\t\ttblStudentsMouseClicked(evt);\n\t\t\t}\n\t\t});\n\t\tjScrollPane1.setViewportView(tblBollard);\n\t\tif (tblBollard.getColumnModel().getColumnCount() > 0) {\n\t\t\ttblBollard.getColumnModel().getColumn(2).setResizable(false);\n\t\t}\n\n\t\tbtnSave.setText(\"Save\");\n\t\tbtnSave.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\t\tbtnSave.setIconTextGap(0);\n\t\tbtnSave.setInheritsPopupMenu(true);\n\t\tbtnSave.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\n\t\t\t\ttry {\n\t\t\t\t\tbtnSaveActionPerformed(evt);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t// TODO Auto-generated catch block\n\n\t\t\t}\n\t\t});\n\n\t\tbtnUpdate.setText(\"Update\");\n\t\tbtnUpdate.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\t\tbtnUpdate.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttry {\n\t\t\t\t\tbtnUpdateActionPerformed(evt);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tbtnDelete1.setText(\"Delete\");\n\t\tbtnDelete1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\t\tbtnDelete1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttry {\n\t\t\t\t\tbtnDelete1ActionPerformed(evt);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tjLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n\t\tjLabel6.setText(\"Simulation Settings\");\n\n\t\tJLabel lblIsactive = new JLabel(\"NbMax\");\n\t\tlblIsactive.setFont(new Font(\"Yu Gothic Medium\", Font.BOLD, 13));\n\n\t\tJButton btnRetour = new JButton(\"Retour\");\n\t\tbtnRetour.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tbtnRetour.setForeground(new Color(0, 0, 0));\n\t\tbtnRetour.setBackground(new Color(255, 255, 255));\n\t\tbtnRetour.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\n\t\t\t\tMainClient launchIhm = null;\n\t\t\t\ttry {client.stopConnection();\n\n\t\t\t\t\tlaunchIhm = new MainClient();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tlaunchIhm.getFrame().setVisible(true);\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tlblIdBollard = new JLabel(\"id Bollard\");\n\t\tlblIdBollard.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\t\n\t\tlblWayOfBollard = new JLabel(\"Way of bollard \");\n\t\tlblWayOfBollard.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\t\n\t\tlblCarId = new JLabel(\"Car id \");\n\t\tlblCarId.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\t\n\t\tlblCarLocation = new JLabel(\"Car location\");\n\t\tlblCarLocation.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\t\n\t\ttxtidBollard = new JTextField();\n\t\ttxtidBollard.setColumns(10);\n\t\t\n\t\ttestWayBollard = new JTextField();\n\t\ttestWayBollard.setColumns(10);\n\t\t\n\t\ttextIdCar = new JTextField();\n\t\ttextIdCar.setColumns(10);\n\t\t\n\t\ttextCarLocation = new JTextField();\n\t\ttextCarLocation.setColumns(10);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Launch simulation\");\n\t\tbtnNewButton.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttry {\n\t\t\t\t\tbtnSimulationActionPerformed(evt);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t});\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Nb actuel\");\n\t\t\n\t\ttextnbactuel = new JTextField();\n\t\ttextnbactuel.setColumns(10);\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n\t\tlayout.setHorizontalGroup(\n\t\t\tlayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t.addContainerGap(429, Short.MAX_VALUE)\n\t\t\t\t\t.addComponent(btnNewButton)\n\t\t\t\t\t.addGap(252)\n\t\t\t\t\t.addComponent(btnRetour, GroupLayout.PREFERRED_SIZE, 91, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(42))\n\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t.addGap(363)\n\t\t\t\t\t.addComponent(jLabel6, GroupLayout.PREFERRED_SIZE, 249, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addContainerGap(359, Short.MAX_VALUE))\n\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t.addGap(78)\n\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(lblCarLocation)\n\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblIsactive)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jLabel1, GroupLayout.PREFERRED_SIZE, 74, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jLabel2, GroupLayout.PREFERRED_SIZE, 74, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(16)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(txtId, 188, 188, 188))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(17)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(txtAlert, GroupLayout.PREFERRED_SIZE, 188, GroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textnbactuel, GroupLayout.DEFAULT_SIZE, 188, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(txtNbMax, GroupLayout.DEFAULT_SIZE, 188, Short.MAX_VALUE)))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblWayOfBollard)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblIdBollard, GroupLayout.PREFERRED_SIZE, 57, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblCarId))\n\t\t\t\t\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(testWayBollard, GroupLayout.DEFAULT_SIZE, 169, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(txtidBollard, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 169, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textIdCar, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 169, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textCarLocation, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 169, Short.MAX_VALUE))))\n\t\t\t\t\t\t\t\t\t.addGap(177))\n\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addComponent(lblNewLabel)\n\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)))\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t.addComponent(btnSave, GroupLayout.PREFERRED_SIZE, 72, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t.addGap(59)\n\t\t\t\t\t\t\t\t\t\t\t.addComponent(btnUpdate, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t.addComponent(jScrollPane1, GroupLayout.PREFERRED_SIZE, 376, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t.addGap(60))\n\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addComponent(btnDelete1, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t.addGap(93))))))\n\t\t);\n\t\tlayout.setVerticalGroup(\n\t\t\tlayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t.addGap(23)\n\t\t\t\t\t.addComponent(jLabel6, GroupLayout.PREFERRED_SIZE, 40, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(3)\n\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(65)\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(jLabel1, GroupLayout.PREFERRED_SIZE, 24, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(txtId, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(35)\n\t\t\t\t\t\t\t.addComponent(jScrollPane1, 0, 0, Short.MAX_VALUE)))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(jLabel2, GroupLayout.PREFERRED_SIZE, 24, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(txtAlert, GroupLayout.PREFERRED_SIZE, 23, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(lblIsactive)\n\t\t\t\t\t\t\t\t.addComponent(txtNbMax, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(lblNewLabel)\n\t\t\t\t\t\t\t\t.addComponent(textnbactuel, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t.addGap(7)\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblIdBollard)\n\t\t\t\t\t\t\t\t.addComponent(txtidBollard, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(lblWayOfBollard)\n\t\t\t\t\t\t\t\t\t\t.addComponent(testWayBollard, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t\t\t.addComponent(lblCarId))\n\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addGap(38)\n\t\t\t\t\t\t\t\t\t.addComponent(textIdCar, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(textCarLocation, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(lblCarLocation)))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(btnDelete1, GroupLayout.PREFERRED_SIZE, 39, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(btnSave, GroupLayout.PREFERRED_SIZE, 39, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(btnUpdate, GroupLayout.PREFERRED_SIZE, 39, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 190, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addComponent(btnRetour, GroupLayout.PREFERRED_SIZE, 39, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t.addGap(44))\n\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addComponent(btnNewButton, GroupLayout.PREFERRED_SIZE, 49, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t.addGap(59))))))\n\t\t);\n\t\tgetContentPane().setLayout(layout);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(null);\n\t}", "private JTable getJTableDbTable() {\r\n\t\tif (jTableDbTable == null) {\r\n\t\t\tString [] colName = {\"字段\",\"导入值\"};\r\n\t\t\tdbTableModel = new DefaultTableModel(colName);\r\n\t\t\tdbTableModel.setEditColumns(new int[]{1});\r\n\t\t\tjTableDbTable = new JTable(dbTableModel);\r\n\t\t\tjTableDbTable.setRowHeight(25);\r\n\t\t\tTableUtil.setTableAlign(jTableDbTable, JLabel.CENTER);\r\n\t\t}\r\n\t\treturn jTableDbTable;\r\n\t}", "private JPanel makeTablePanel(int iSpecies) throws sortie.data.simpletypes.ModelException {\n JTable jTable;\n int i;\n\n Object[][] oTableData = createTable(iSpecies);\n \n jTable = new JTable(oTableData, mp_sHeaders);\n jTable.setGridColor(Color.WHITE);\n jTable.setBackground(Color.WHITE);\n jTable.setFont(new sortie.gui.components.SortieFont());\n\n //Set the cell renderer to right-justify\n javax.swing.table.DefaultTableCellRenderer jRenderer = new javax.swing.table.DefaultTableCellRenderer();\n jRenderer.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n for (i = 0; i < jTable.getColumnCount(); i++) {\n jTable.setDefaultRenderer(jTable.getColumnClass(i), jRenderer);\n }\n\n //Size the table\n int iColumnWidth = 0, iTableHeight = 0, iTableWidth = 0;\n JLabel jTempLabel = new JLabel();\n jTempLabel.setFont(new sortie.gui.components.SortieFont());\n //Find the longest table header (roughly) for sizing the table\n for (i = 0; i < mp_sHeaders.length; i++) {\n jTempLabel.setText(mp_sHeaders[i]);\n iColumnWidth = (int) java.lang.Math.max(iColumnWidth,\n jTempLabel.getPreferredSize().\n getWidth());\n }\n //Set all columns to this longest width so headers display fully\n int iNumColumns = jTable.getColumnCount();\n for (i = 0; i < iNumColumns; i++) {\n jTable.getColumnModel().getColumn(i).setPreferredWidth(iColumnWidth);\n }\n //Size the viewable area - we'll allow a max of 10 columns and 20 rows to\n //display (roughly) - as long as column width doesn't exceed 65 pix\n //Do a max of 20 rows\n iTableHeight = java.lang.Math.min(oTableData.length, 20);\n iTableHeight = (int) (jTempLabel.getPreferredSize().getHeight() *\n iTableHeight);\n //Table width\n iTableWidth = java.lang.Math.min(oTableData[0].length, 10);\n iColumnWidth = java.lang.Math.min(iColumnWidth, 65);\n iTableWidth *= iColumnWidth;\n //Set the auto resize flag to off - this prevents the table from trying to\n //cram all the columns into the space provided, making them unreadable.\n //This way they display at a proper size with a horizontal scroll bar if\n //necessary.\n jTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n jTable.setPreferredScrollableViewportSize(new java.awt.Dimension(\n iTableWidth, iTableHeight));\n\n //Create a scroll pane and add the table to it.\n JScrollPane jScrollPane = new JScrollPane(jTable);\n jScrollPane.setBackground(java.awt.Color.WHITE);\n jScrollPane.getViewport().setBackground(java.awt.Color.WHITE);\n jScrollPane.getViewport().setPreferredSize(new java.awt.Dimension(\n iTableWidth, iTableHeight));\n jTable.getTableHeader().setFont(new sortie.gui.components.SortieFont());\n\n //Put the table into a larger panel with a header label\n jTempLabel = new JLabel();\n if (iSpecies == m_iNumSpecies) {\n jTempLabel.setText(\"All Species: Volume by DBH size class (m3 / ha). MAI is mean annual increment of total volume.\");\n } else {\n jTempLabel.setText(m_oLegend.getSpeciesDisplayName(iSpecies) + \": Volume by DBH size class (m3 / ha). MAI is mean annual increment of total volume.\");\n }\n jTempLabel.setFont(new sortie.gui.components.SortieFont());\n JPanel jTablePanel = new JPanel(new java.awt.BorderLayout());\n jTablePanel.add(jTempLabel, java.awt.BorderLayout.NORTH);\n jTablePanel.add(jScrollPane, java.awt.BorderLayout.CENTER);\n return jTablePanel;\n }", "public Book() {\n initComponents();\n table1 = (DefaultTableModel) travellers.getModel();\n }", "public void ShowProductInJTable(){\n ArrayList<Product> list = getProductList();\n \n Object[] row = new Object[5];\n for (int i = 0; i < list.size(); i++) {\n row[0] = list.get(i).getPid();\n row[1] = list.get(i).getPname();\n row[2] = \"Rp. \" + list.get(i).getPprice();\n row[3] = list.get(i).getPstock();\n row[4] = list.get(i).getPcatid();\n \n model1.addRow(row);\n }\n }", "private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jScrollPane1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jScrollPane1KeyPressed(evt);\n }\n });\n\n jTable1.setFont(new java.awt.Font(\"Dialog\", 1, 10)); // NOI18N\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"#\", \"Product Code\", \"Product Name\", \"Quantity Open\", \"Price\", \"Total\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.Boolean.class, java.lang.String.class, java.lang.String.class, java.lang.Double.class, java.lang.Double.class, java.lang.Double.class\n };\n boolean[] canEdit = new boolean [] {\n true, false, false, false, false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jTable1.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n jTable1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jTable1MouseClicked(evt);\n }\n });\n jTable1.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n jTable1PropertyChange(evt);\n }\n });\n jTable1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jTable1KeyPressed(evt);\n }\n });\n jScrollPane1.setViewportView(jTable1);\n jTable1.getColumnModel().getColumn(0).setMinWidth(50);\n jTable1.getColumnModel().getColumn(0).setPreferredWidth(50);\n jTable1.getColumnModel().getColumn(0).setMaxWidth(50);\n jTable1.getColumnModel().getColumn(1).setMinWidth(150);\n jTable1.getColumnModel().getColumn(1).setPreferredWidth(150);\n jTable1.getColumnModel().getColumn(1).setMaxWidth(150);\n jTable1.getColumnModel().getColumn(2).setMinWidth(200);\n jTable1.getColumnModel().getColumn(2).setPreferredWidth(200);\n jTable1.getColumnModel().getColumn(2).setMaxWidth(200);\n jTable1.getColumnModel().getColumn(3).setMinWidth(130);\n jTable1.getColumnModel().getColumn(3).setPreferredWidth(130);\n jTable1.getColumnModel().getColumn(3).setMaxWidth(130);\n jTable1.getColumnModel().getColumn(4).setMinWidth(130);\n jTable1.getColumnModel().getColumn(4).setPreferredWidth(130);\n jTable1.getColumnModel().getColumn(4).setMaxWidth(130);\n jTable1.getColumnModel().getColumn(5).setMinWidth(130);\n jTable1.getColumnModel().getColumn(5).setPreferredWidth(130);\n jTable1.getColumnModel().getColumn(5).setMaxWidth(130);\n\n jButton1.setFont(new java.awt.Font(\"Dialog\", 1, 10));\n jButton1.setText(\"Select\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setFont(new java.awt.Font(\"Dialog\", 1, 10));\n jButton2.setText(\"Cancel\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Dialog\", 1, 10));\n jLabel4.setText(\"Number of Records Found : \");\n\n jLabel1.setFont(new java.awt.Font(\"Dialog\", 1, 10));\n jLabel1.setText(\"Browse Document Details\");\n\n jButton3.setFont(new java.awt.Font(\"Dialog\", 1, 10));\n jButton3.setText(\"Select All\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setFont(new java.awt.Font(\"Dialog\", 1, 10));\n jButton4.setText(\"Un Select All\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 808, Short.MAX_VALUE)\n .add(jLabel1))\n .addContainerGap())\n .add(layout.createSequentialGroup()\n .add(jButton1)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jButton2)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jButton3)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jButton4)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 234, Short.MAX_VALUE)\n .add(jLabel4)\n .add(169, 169, 169))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .add(jLabel1)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 362, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jButton1)\n .add(jButton2)\n .add(jLabel4)\n .add(jButton3)\n .add(jButton4))\n .addContainerGap())\n );\n\n pack();\n }", "public void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 806, 499);\n\t\tframe.setDefaultCloseOperation(1);\n\t\tframe.getContentPane().setLayout(null);\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(\"javax.swing.plaf.nimbus.NimbusLookAndFeel\");\n\t\t} catch (ClassNotFoundException | InstantiationException | IllegalAccessException\n\t\t\t\t| UnsupportedLookAndFeelException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(0, 243, 790, 217);\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(10, 11, 770, 169);\n\t\tpanel.add(scrollPane);\n\t\t\n\t\ttable = new JTable();\n\t\ttable.setModel(model);\n\t\tmodel.setColumnIdentifiers(inventory);\n\t\tscrollPane.setViewportView(table);\n\t\ttable.getColumnModel().getColumn(0).setPreferredWidth(100);\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(120);\n\t\ttable.getColumnModel().getColumn(2).setPreferredWidth(120);\n\t\ttable.getColumnModel().getColumn(3).setPreferredWidth(110);\n\t\ttable.getColumnModel().getColumn(4).setPreferredWidth(120);\n\t\ttable.getColumnModel().getColumn(5).setPreferredWidth(100);\n\t\ttable.getColumnModel().getColumn(6).setPreferredWidth(110);\n\t\ttable.getColumnModel().getColumn(7).setPreferredWidth(120);\n\t\ttable.getColumnModel().getColumn(7).setPreferredWidth(120);\n\n//\n//\t\ttable.setShowGrid(false);\n//\t\ttable.setShowHorizontalLines(true);\n//\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\t\ttable.setDefaultEditor(Object.class, null);\n\t\tscrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, new Color(255, 255, 255), new Color(160, 160, 160)), \"Add New Item\", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 205)));\n\t\tpanel_1.setBounds(10, 11, 770, 194);\n\t\tframe.getContentPane().add(panel_1);\n\t\tpanel_1.setLayout(null);\n\t\t\n\t\tdrugIDGen = new JTextField();\n\t\tdrugIDGen.setBounds(123, 32, 146, 26);\n\t\tpanel_1.add(drugIDGen);\n\t\tdrugIDGen.setColumns(10);\n\t\t\n\t\texDate = new JTextField();\n\t\texDate.setColumns(10);\n\t\texDate.setBounds(123, 143, 146, 26);\n\t\tpanel_1.add(exDate);\n\t\t\n\t\tdate = new JTextField();\n\t\tdate.setColumns(10);\n\t\tdate.setBounds(388, 143, 146, 26);\n\t\tpanel_1.add(date);\n\t\t\n\t\tdrugname = new JTextField();\n\t\tdrugname.setColumns(10);\n\t\tdrugname.setBounds(123, 69, 146, 26);\n\t\tpanel_1.add(drugname);\n\t\t\n\t\tuPrice = new JTextField();\n\t\tuPrice.setColumns(10);\n\t\tuPrice.setBounds(388, 32, 146, 26);\n\t\tpanel_1.add(uPrice);\n\t\t\n\t\tqSold = new JTextField();\n\t\tqSold.setColumns(10);\n\t\tqSold.setBounds(388, 69, 146, 26);\n\t\tpanel_1.add(qSold);\n\t\tqSold.setText(0+\"\");\n\t\tqSold.setEditable(false);\n\t\t\n\t\tgrammage = new JTextField();\n\t\tgrammage.setColumns(10);\n\t\tgrammage.setBounds(123, 106, 146, 26);\n\t\tpanel_1.add(grammage);\n\t\t\n\t\tqRemaining = new JTextField();\n\t\tqRemaining.setColumns(10);\n\t\tqRemaining.setBounds(388, 106, 146, 26);\n\t\tpanel_1.add(qRemaining);\n\t\t\n\t\tdrugidTxt = new JLabel(\"Drug ID\");\n\t\tdrugidTxt.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tdrugidTxt.setBounds(10, 33, 103, 20);\n\t\tpanel_1.add(drugidTxt);\n\t\t\n\t\tdrugnameTxt_1 = new JLabel(\"Drug Name\");\n\t\tdrugnameTxt_1.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tdrugnameTxt_1.setBounds(10, 75, 103, 20);\n\t\tpanel_1.add(drugnameTxt_1);\n\t\t\n\t\tdrugnameTxt = new JLabel(\"Grammage\");\n\t\tdrugnameTxt.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tdrugnameTxt.setBounds(10, 112, 103, 20);\n\t\tpanel_1.add(drugnameTxt);\n\t\t\n\t\tlblExpiryDate = new JLabel(\"Expiry Date\");\n\t\tlblExpiryDate.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblExpiryDate.setBounds(10, 149, 103, 20);\n\t\tpanel_1.add(lblExpiryDate);\n\t\t\n\t\tunitpriceTxt = new JLabel(\"Unit Price\");\n\t\tunitpriceTxt.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tunitpriceTxt.setBounds(279, 32, 103, 20);\n\t\tpanel_1.add(unitpriceTxt);\n\t\t\n\t\tlblQtySold = new JLabel(\"QTY Sold\");\n\t\tlblQtySold.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblQtySold.setBounds(279, 69, 103, 20);\n\t\tpanel_1.add(lblQtySold);\n\t\t\n\t\tlblQtyReamin = new JLabel(\"Drug QTY \");\n\t\tlblQtyReamin.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblQtyReamin.setBounds(275, 107, 103, 20);\n\t\tpanel_1.add(lblQtyReamin);\n\t\t\n\t\tlblPurchDate = new JLabel(\"Purch. Date\");\n\t\tlblPurchDate.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblPurchDate.setBounds(279, 144, 103, 20);\n\t\tpanel_1.add(lblPurchDate);\n\t\t\n\t\tpanel_2 = new JPanel();\n\t\tpanel_2.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, new Color(255, 255, 255), new Color(160, 160, 160)), \"Menu\", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 205)));\n\t\tpanel_2.setBounds(544, 32, 216, 138);\n\t\tpanel_1.add(panel_2);\n\t\tpanel_2.setLayout(null);\n\t\t\n\t\tbtnNewButton = new JButton(\"Generate ID\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tdouble num = Math.floor(Math.random() * 1600);\n\t\t\t\tint runout = (int) num;\n\t\t\t\tString coll = drugname.getText();\n\t\t\t\tString output = \"\";\n\t\t\t\t\n\t\t\t\tif(drugname.getText().isEmpty()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Enter Drug Name in order to generate ID\");\n\t\t\t\t}\n\t\t\t\telse {\t\t\t\t\n\t\t\t\tif(coll.length()>=4) {\n\t\t\t\t\toutput = coll.substring(0, 4);\n\t\t\t\t\tdrugIDGen.setText(output + runout+\"\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\toutput = coll.substring(0, 3);\n\t\t\t\t\tdrugIDGen.setText(output + runout+\"\");\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBackground(new Color(50, 205, 50));\n\t\tbtnNewButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tbtnNewButton.setBounds(10, 20, 196, 29);\n\t\tpanel_2.add(btnNewButton);\n\t\t\n\t\tbtnAddDrugs = new JButton(\"Add New\");\n\t\tbtnAddDrugs.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddNewDrug();\n\t\t\t}\n\t\t});\n\t\tbtnAddDrugs.setBackground(new Color(50, 205, 50));\n\t\tbtnAddDrugs.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tbtnAddDrugs.setBounds(10, 60, 196, 29);\n\t\tpanel_2.add(btnAddDrugs);\n\t\t\n\t\tbtnNewButton_2 = new JButton(\"View Details\");\n\t\tbtnNewButton_2.setBackground(new Color(50, 205, 50));\n\t\tbtnNewButton_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tbtnNewButton_2.setBounds(10, 100, 196, 29);\n\t\tpanel_2.add(btnNewButton_2);\n\t\t\n\t\tlblNewLabel = new JLabel(\"Enter drug name to generate drug ID\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\tlblNewLabel.setBounds(544, 11, 216, 20);\n\t\tpanel_1.add(lblNewLabel);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setColumns(10);\n\t\ttextField.setBounds(78, 210, 199, 26);\n\t\tframe.getContentPane().add(textField);\n\t\t\n\t\tlblSearch = new JLabel(\"Search\");\n\t\tlblSearch.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblSearch.setBounds(20, 212, 63, 20);\n\t\tframe.getContentPane().add(lblSearch);\n\t\tmodel.setColumnIdentifiers(inventory);\n\t}", "private void createTableArea() {\n\t\tthis.tableModel = new MessagesTableModel();\n\t\tthis.conversation = new JTable(this.tableModel);\n\t\tthis.conversation.setRowSelectionAllowed(false);\n\t\tthis.conversation.getColumn(\"Pseudo\").setMaxWidth(150);\n\t\tthis.conversation.getColumn(\"Message\").setWidth(200);\n\t\tthis.conversation.getColumn(\"Heure\").setMaxWidth(50);\n\t\tthis.conversation.getColumn(\"Message\").setCellRenderer(new WrapTableCellRenderer());\n\t\tthis.conversation.getColumn(\"Pseudo\").setCellRenderer(new ColorTableCellRenderer());\n\t\tthis.scrollPane = new JScrollPane(conversation);\n\t}", "public TableForm() {\n initComponents();\n \n setMyTable();\n }", "public void actionPerformed(ActionEvent event){\n tableModel.addRow(blank);\r\n }", "private void addPanelstoBookPanel() {\r\n this.add(centerPanel, BorderLayout.CENTER);\r\n\r\n /**\r\n * Add the bookPanel to the baseScreen en revalidate and repaint\r\n */\r\n Main.getController().getBaseScreen().mainContainer.add(this, BorderLayout.CENTER);\r\n Main.getController().getBaseScreen().mainContainer.revalidate();\r\n Main.getController().getBaseScreen().mainContainer.repaint();\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n btnAgregarAlumno = new javax.swing.JButton();\n btnModificarAlumno = new javax.swing.JButton();\n btnEliminarAlumno = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblAlumnos = new javax.swing.JTable();\n lblDescripcion = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n btnAgregarAlumno.setText(\"Agregar\");\n btnAgregarAlumno.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAgregarAlumnoActionPerformed(evt);\n }\n });\n\n btnModificarAlumno.setText(\"Modificar\");\n\n btnEliminarAlumno.setText(\"Eliminar\");\n\n tblAlumnos.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(tblAlumnos);\n\n lblDescripcion.setText(\"Ventana para agregar a los alumnos\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(84, 84, 84)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jScrollPane1)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnAgregarAlumno, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(100, 100, 100)\n .addComponent(btnModificarAlumno, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(91, 91, 91)\n .addComponent(btnEliminarAlumno, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGap(223, 223, 223)\n .addComponent(lblDescripcion)))\n .addContainerGap(99, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(lblDescripcion)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 45, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnAgregarAlumno, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnModificarAlumno, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnEliminarAlumno, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(44, 44, 44)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 323, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27))\n );\n\n pack();\n }", "public JTable () {\r\n\t\t// Initialisation de la taille de la banque du milieu de table\r\n\t\tbanque = new JBanque(TAILLE*5, TAILLE);\r\n\t\t\r\n\t\t// Initialisation des collections de joueurs et de cartes\r\n\t\tcartes = new HashMap<Integer, JPanel>();\r\n\t\tjoueurs = new HashMap<Integer, JPanel>();\r\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\tjoueurs.put(i, new JVide(joueur_lg, joueur_ht));\r\n\t\t\tif (i < 5) {\r\n\t\t\t\tcartes.put(i, new JVide(carte_lg, carte_ht));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Récupération de l'image de la table pour le fond\r\n\t\ttable = Toolkit.getDefaultToolkit().getImage(\"Images/poker1.png\");\r\n\t\tresized = table.getScaledInstance(1000, 500, Image.SCALE_DEFAULT);\r\n\t\t\r\n\t\t// Affichage des cartes et des joueurs\r\n\t\tthis.formerTable();\r\n\t\t\r\n\t\tthis.setPreferredSize(new Dimension(1000, 500));\r\n\t\tthis.setVisible(true);\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n scroolPane = new javax.swing.JScrollPane();\n bookTable = new javax.swing.JTable();\n jScrollPane1 = new javax.swing.JScrollPane();\n TabelAnggota = new javax.swing.JTable();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n MasterData = new javax.swing.JLabel();\n bDashboard = new javax.swing.JLabel();\n bLogout = new javax.swing.JLabel();\n bDataPinjam = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n bookTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n bookTable.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bookTableMouseClicked(evt);\n }\n });\n scroolPane.setViewportView(bookTable);\n\n TabelAnggota.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n TabelAnggota.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n TabelAnggotaMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(TabelAnggota);\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel4.setText(\"Data Anggota\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel5.setText(\"Data Buku\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(scroolPane, javax.swing.GroupLayout.DEFAULT_SIZE, 786, Short.MAX_VALUE)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jScrollPane1))\n .addContainerGap(58, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(scroolPane, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(48, 48, 48)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(160, Short.MAX_VALUE))\n );\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(265, 120, 886, 442));\n\n MasterData.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n MasterDataMouseClicked(evt);\n }\n });\n getContentPane().add(MasterData, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 281, 236, 58));\n\n bDashboard.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bDashboardMouseClicked(evt);\n }\n });\n getContentPane().add(bDashboard, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 163, 236, 58));\n\n bLogout.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bLogoutMouseClicked(evt);\n }\n });\n getContentPane().add(bLogout, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 384, 236, 58));\n\n bDataPinjam.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bDataPinjamMouseClicked(evt);\n }\n });\n getContentPane().add(bDataPinjam, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 222, 236, 58));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/assets/mKepalaMaster.jpg\"))); // NOI18N\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1181, 590));\n\n pack();\n setLocationRelativeTo(null);\n }", "public Gui(Agent a ) {\n clientAgent=(ClientAgent)a;\n initComponents(); \n this.setVisible(true);\n String title[] = new String[]{\"Id\", \"Nom Produit\"};\n Object data[][] = new Object[][]{\n {\"1\", \"Carotte\"}, {\"2\", \"Poireau\"}, {\"4\", \"Brie\"}, {\"5\", \"Comté\"},\n {\"6\", \"Lait\"}, {\"7\", \"Bière\"}, {\"8\", \"Eau\"}, {\"9\", \"Coca\"}, {\"10\", \"Javel\"}\n };\n\n tableProduits.setModel(new DefaultTableModel(data, title));\n \n }", "ParametersView(){\r\n\t\ttable.setWidget(0, 0,new Label(OpenXDataFacade.getOpenXDataConstants().label_name()));\r\n\t\ttable.setWidget(0, 1,new Label(OpenXDataFacade.getOpenXDataConstants().label_value()));\r\n\t\ttable.setWidget(0, 2,new Label(OpenXDataFacade.getOpenXDataConstants().label_action()));\r\n\r\n\t\tFlexCellFormatter cellFormatter = table.getFlexCellFormatter();\r\n\t\tcellFormatter.setWidth(0, 2, \"10%\");\r\n\t\ttable.setStyleName(\"cw-FlexTable\");\r\n\r\n\t\tpanel.add(table);\r\n\t\tpanel.add(btnAdd);\r\n\r\n\t\tbtnAdd.addClickHandler(this);\r\n\t\tbtnAdd.setEnabled(false);\r\n\t\t\r\n\t\tinitWidget(panel);\r\n\t}", "private void addComponent(Component component, // the Component to add\n int row, // add Component at cell row 0..?\n int column, // add Component at cell column 0..?\n int width, // let the Component span this many cells wide\n int height) { // let the Component span this many cells high\n constraints.gridx = column; // store the four parameters in the constraints\n constraints.gridy = row;\n constraints.gridwidth = width;\n constraints.gridheight = height;\n layout.setConstraints(component, constraints); // set the constraints on the layout manager\n add(component); // before add the actual component to the Applet\n }", "private static void drawTableCompenents() {\n\t\ttopColumn = new JLabel(\"location\");\r\n\t\ttopColumn.setLocation(200, 0);\r\n\t\tExtension.instance.add(topColumn);\r\n\t}", "private void initComponents() {//GEN-BEGIN:initComponents\n paneReport = new javax.swing.JDesktopPane();\n tblItem = new javax.swing.JTable();\n tblCash = new javax.swing.JTable();\n\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n exitForm(evt);\n }\n });\n\n tblItem.setBorder(new javax.swing.border.CompoundBorder(null, new javax.swing.border.CompoundBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.RAISED), new javax.swing.border.EmptyBorder(new java.awt.Insets(1, 1, 1, 1)))));\n tblItem.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, new Integer(0), new Integer(0)},\n {null, null, null}\n },\n new String [] {\n \"Item\", \"Summer\", \"Monsoon\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.Integer.class, java.lang.Integer.class\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n });\n tblItem.setColumnSelectionAllowed(true);\n tblItem.setTableHeader(null);\n tblItem.setBounds(10, 26, 300, 40);\n paneReport.add(tblItem, javax.swing.JLayeredPane.DEFAULT_LAYER);\n\n tblCash.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null}\n },\n new String [] {\n \"Item\", \"Receipts\", \"Vouchers\", \"Title 4\", \"Title 5\"\n }\n ));\n tblCash.setBounds(10, 90, -1, -1);\n paneReport.add(tblCash, javax.swing.JLayeredPane.DEFAULT_LAYER);\n\n getContentPane().add(paneReport, java.awt.BorderLayout.CENTER);\n\n pack();\n }", "private void load_table() {\n DefaultTableModel model = new DefaultTableModel();\n model.addColumn(\"ID\");\n model.addColumn(\"NIM\");\n model.addColumn(\"Nama\");\n model.addColumn(\"Kelamin\");\n model.addColumn(\"Phone\");\n model.addColumn(\"Agama\");\n model.addColumn(\"Status\");\n\n //menampilkan data database kedalam tabel\n try {\n String sql = \"SELECT * FROM mhs\";\n java.sql.Connection koneksi = (Connection) Koneksi.KoneksiDB();\n java.sql.Statement stm = koneksi.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n\n while (res.next()) {\n model.addRow(new Object[]{res.getString(1), res.getString(2),\n res.getString(3), res.getString(4), res.getString(5),\n res.getString(6), res.getString(7)});\n }\n tabelMahasiswa.setModel(model);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }" ]
[ "0.74767596", "0.67169845", "0.6630129", "0.6606609", "0.658609", "0.65552175", "0.6550344", "0.652707", "0.6513561", "0.64685214", "0.6464395", "0.6457056", "0.64218545", "0.64139944", "0.64090884", "0.6398223", "0.63719773", "0.6371713", "0.6370712", "0.63498175", "0.6299402", "0.62910056", "0.626615", "0.62628555", "0.62601334", "0.6248336", "0.6225476", "0.62198704", "0.6171535", "0.6171535", "0.6169746", "0.6169343", "0.61417973", "0.6138092", "0.6133454", "0.61300075", "0.61242586", "0.61236954", "0.61176884", "0.61172223", "0.6110493", "0.60995966", "0.6098727", "0.60978985", "0.6096326", "0.60919684", "0.6091412", "0.60901624", "0.608582", "0.6084725", "0.6079206", "0.6074008", "0.60726255", "0.60641515", "0.606234", "0.60610217", "0.6052893", "0.6049574", "0.60492444", "0.60443455", "0.60400623", "0.60283494", "0.6018368", "0.60183305", "0.60092384", "0.60069275", "0.6000325", "0.60002035", "0.599988", "0.5988089", "0.5986852", "0.5986444", "0.597896", "0.5978934", "0.59771985", "0.59740686", "0.59610677", "0.5956256", "0.59559774", "0.59547997", "0.5948074", "0.5947549", "0.59383684", "0.5937505", "0.5933604", "0.59330755", "0.59327453", "0.5932197", "0.5929529", "0.59180266", "0.59167045", "0.59141105", "0.59051424", "0.59023905", "0.5898915", "0.58985746", "0.58962905", "0.5895716", "0.58955413", "0.5893709", "0.58928096" ]
0.0
-1
Called when this applet is loaded into the browser.
public void init() { Thread appThread = new Thread() { public void run() { try { SwingUtilities.invokeAndWait(doHelloWorld); } catch (Exception e) { e.printStackTrace(); } System.out.println("Finished on " + Thread.currentThread()); } }; appThread.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void initApplet() {\n\t}", "public void init(){\n System.out.println(\"SampleApplet.init() executed\");\r\n }", "public void onLoad()\n\t{\n\t\tJLog.info(\" --- INIT --- \");\n\t\t\n\t}", "public void onLoad() {\n\t}", "public void init()\r\n\t{\r\n\t\tStaticAppletData.setCodeBase(getCodeBase().toString()); // set the code base\r\n\t\tStaticAppletData.setCodeBaseURL(getCodeBase()); // set the code base URL\r\n\t\t\r\n\t\tloadLoginUI(); // load the login UI first\r\n\t\t//loadRoomViewerUI();\r\n\t}", "public static void init(PApplet thePapplet){\n\t\tAni.papplet = thePapplet;\n\t\twelcome();\n\t}", "@Override\n \n \n public void init() {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Applet.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Applet.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Applet.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Applet.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the applet */\n try {\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n @Override\n public void run() {\n initComponents();\n }\n });\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public void onAfterLoad()\n\t{\n\t\tJLog.info(\" --- POSTINIT --- \");\n\n\t}", "@Override\n\tpublic void onLoad() {\n\t\t\n\t}", "public void webControlLoaded() {\n scriptExecutor.setJavaScriptMember(\"app\", this);\n }", "public void init() {\r\n message = \"Hello World, I'm alive!\";\r\n // repaint() is a concrete method in the Applet\r\n // class that lets upper-level components know\r\n // the applet needs to be redrawn.\r\n repaint();\r\n }", "public void onLoad() {\n // store jar path for plugin loader\n thisJar = this.getFile();\n }", "private void startSubApplet(){\r\n try {\r\n subApplet = (Applet)Class.forName(subAppletClassName).newInstance();\r\n subApplet.setStub(new AppletStubProxy());\r\n } catch (ClassNotFoundException cnfe) {\r\n cnfe.printStackTrace();\r\n displayError(\"Class not found (\" + subAppletClassName + \")\");\r\n return;\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n displayError(\"Unable to start \" + subAppletDisplayName);\r\n return;\r\n }\r\n\r\n add(subApplet, BorderLayout.CENTER);\r\n\r\n try {\r\n subApplet.init();\r\n remove(loaderPanel);\r\n validate();\r\n subApplet.start();\r\n joglStarted = true;\r\n } catch (Exception ex){\r\n ex.printStackTrace();\r\n }\r\n\r\n }", "void initFrame(PApplet sketch);", "protected void onLoad() {\n\t\tsuper.onLoad();\n\t\tsinkEvents(Event.ONDBLCLICK);\n\t}", "public void init() {\n //Execute a job on the event-dispatching thread; creating this applet's GUI.\n setSize(500, 150);\n \ttry {\n SwingUtilities.invokeAndWait(new Runnable() {\n public void run() {\n createGUI();\n }\n });\n } catch (Exception e) { \n System.err.println(\"createGUI didn't complete successfully\");\n }\n \n }", "@Override\n public void init() {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(SCACV_Applet.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(SCACV_Applet.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(SCACV_Applet.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(SCACV_Applet.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the applet */\n try {\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n public void run() {\n //initComponents();\n // La vista tiene un controlador asociado\n controlador = new Controlador();\n createGUI();\n }\n });\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "@Override\n public void onLoad(String url) {\n \n }", "public void onModuleLoad() {\n \t\tMainPage.currentPage = this;\n \t\t\n \t\tif(Window.Location.getHash().length() == 0){\n \t\t\tloggedIn = false;\n \t\t}else{\n \t\t\tloggedIn = true;\n \t\t}\n \t\t\n \t\tinitUI();\n \t\t\n \t\tif(loggedIn){\n \t\t\tsetStatus(\"fetching JSON...\", false);\n \t\t\tfbFetcher.fetchNeededJSON();\n \t\t}\n \t\t\n \t}", "protected void onLoad() {\n \t\tsuper.onLoad();\n \t\teval(scripts);\n \t}", "@Override\n\tpublic void onLoad() {\n\t\tdescription = this.getDescription();\n\t\tpluginConfiguration = this.getConfig();\n\t\tLogHelper.initLogger(\"BukkitWebby\", \"Minecraft\");\n\t}", "@Override\n\tprotected void load() {\n\t\tisPageLoaded = true;\n\t}", "public void onModuleLoad() {\r\n\r\n\t\tnew UseTracking(this.getClass().getName());\r\n\r\n\t\tRootPanel.get(\"main\").clear();\r\n\t\tRootPanel.get(\"main\").setWidth(\"100%\");\r\n\t\tVerticalPanel vpMain = new VerticalPanel();\r\n\t\tvpMain.setSize(\"100%\", \"100%\");\r\n\t\tvpMain.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);\r\n\t\tRootPanel.get(\"main\").add(vpMain, 0, 0);\r\n\r\n\t\tString uniqueID = EncryptText.decrypt(Cookies.getCookie(\"UniqueID\"));\r\n\t\t// uniqueID = \"AllineWatkins_1332886062783\";\r\n\r\n\t\tfinal String company = Location.getParameter(\"company\");\r\n\t\tif (company != null) {\r\n\r\n\t\t\tJSONObject json = new JSONObject();\r\n\t\t\tjson.put(\"ID\", new JSONString(company));\r\n\r\n\t\t\tUniqueIDGlobalVariables.companyUniqueID = json;\r\n\t\t}\r\n\r\n\t\tif (uniqueID == null || uniqueID.equals(\"null\")) {\r\n\r\n\t\t\tString authenticationCode = Location.getParameter(\"code\");\r\n\r\n\t\t\tfinal String error = Location.getParameter(\"error_reason\");\r\n\r\n\t\t\tif (!((null != error && error.equals(\"user_denied\")) || (authenticationCode == null || \"\"\r\n\t\t\t\t\t.equals(authenticationCode)))) {\r\n\r\n\t\t\t\tInitializeApplication.VerifyFacebookLogin(authenticationCode);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tInitializeApplication.verifyParameters(vpMain, uniqueID, company);\r\n\r\n\t}", "@Override\n public void init() {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n getContentPane().setBackground(Color.BLUE);\n this.setSize(450, 350);\n\n /* Create and display the applet */\n /*try {\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n public void run() {\n initComponents();\n }\n });\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n */\n run();\n }", "private void initWebView(){ \r\n WebEngine webEngine = viewerPane.getEngine();\r\n webEngine.load(\"http://www.google.com\");\r\n }", "@Override\n\tpublic void init() {\n\t\tif (myScreensContainer.getUserData() != null) {\n\t\t\tWebEngine webEngine = show_problem.getEngine();\n\t\t\twebEngine.load((String) myScreensContainer.getUserData());\n\t\t}\n\t}", "public void loadPage() {\n\t\tLog.i(TAG, \"MyGardenListActivity::LoadPage ! Nothing to do anymore here :)\");\n\t}", "@Override\r\n public void contextInitialized(ServletContextEvent servletContextEvent) {\r\n \r\n }", "public void init(Object obj, BaseApplet applet)\n {\n super.init(null, null);\n\n // Next, set up the right \"content\" panel\n m_displayParent = new JPanel();\n m_displayParent.setOpaque(false);\n m_displayParent.setLayout(new BorderLayout());\n this.add(m_displayParent);\n \n m_parent = obj;\n\n this.switchScreens(applet, null, Constants.DONT_PUSH_TO_BROWSER); // Default screen = menu screen\n }", "public void destroy() {\r\n // applet is going away...\r\n }", "@Override\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t}", "@Override\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t}", "public DSSApplet() {\n initComponents();\n \n //Disable all unusable gui items\n preserveWhat.setEnabled(false);\n dataType.setEnabled(false);\n rasterDataType.setEnabled(false);\n submitButton.setEnabled(false);\n \n //Set background of applet to white\n getContentPane().setBackground(Color.white);\n \n //set applet visible\n this.setVisible(true);\n }", "public void start(){\r\n if (isInitOk){\r\n if (firstStart) {\r\n firstStart = false;\r\n String userHome = System.getProperty(\"user.home\");\r\n String installDirName = userHome + File.separator + \".jogl_ext\"\r\n + File.separator + installDirectory; // should manage jogl versions here\r\n\r\n final File installDir = new File(installDirName);\r\n\r\n Thread refresher = new Thread() {\r\n public void run() {\r\n refreshJOGL(installDir);\r\n }\r\n };\r\n refresher.setPriority(Thread.NORM_PRIORITY - 1);\r\n refresher.start();\r\n } else if (joglStarted) {\r\n // we have to start again the applet (start can be called multiple times,\r\n // e.g once per tabbed browsing\r\n subApplet.start();\r\n }\r\n }\r\n }", "@Override\r\n public void init() {\r\n /* Set the Nimbus look and feel */\r\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\r\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\r\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \r\n */\r\n try {\r\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\r\n if (\"Nimbus\".equals(info.getName())) {\r\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\r\n break;\r\n }\r\n }\r\n } catch (ClassNotFoundException ex) {\r\n java.util.logging.Logger.getLogger(IMC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (InstantiationException ex) {\r\n java.util.logging.Logger.getLogger(IMC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (IllegalAccessException ex) {\r\n java.util.logging.Logger.getLogger(IMC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\r\n java.util.logging.Logger.getLogger(IMC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n }\r\n //</editor-fold>\r\n\r\n /* Create and display the applet */\r\n try {\r\n java.awt.EventQueue.invokeAndWait(new Runnable() {\r\n public void run() {\r\n initComponents();\r\n }\r\n });\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "static void setApp(PApplet _app){\n app = _app;\n }", "public void libraryLoaded();", "@Override\r\n\tpublic void initEvent() {\n\r\n\t}", "@Override\n public void onLoadResources() {\n }", "public void onLoadingStart() {\n\t\tsession.getUiElements().setLogText(\"Loading attribute definitions started.\");\n\t\tevents.onLoadingStart();\n\t}", "public String getAppletInfo() {\n/* 367 */ return null;\n/* */ }", "@Override\r\n\tpublic void initListener() {\n\r\n\t}", "private static void initialize()\n {\n\tif (cookieHandler == null)\n\t{\n\t BrowserService service = ServiceProvider.getService();\n\t cookieHandler = service.getCookieHandler();\n\t}\n }", "public void loadStartPage()\n\t{\n\t}", "@Override\n public void onLoad() {\n super.onLoad();\n instance = this;\n running = true;\n }", "@Override\n\tprotected void initListener() {\n\n\t}", "public void loadingCommitted(WebView pView, WebFrame pFrame) {\n if (pFrame.equals(pView.mainFrame())) {\n String url = pView.mainFrameURL();\n int index = url.indexOf(\"://\");\n int start = index < 0 ? 0 : index + 3;\n addressField.setText(url.substring(start, url.endsWith(\"/\") ? url.length() - 1 : url.length()));\n }\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 void onLoadComplete() {\n\t\t\r\n\t}", "public void thePageIsLoaded() {\r\n this.page.isLoaded();\r\n }", "public HtmlTagApplet() {\n super(\"applet\");\n setValidAttributes(new String[]{\"align\", \"alt\", \"archive\", \"code\", \"codebase\", \"height\", \"hspace\", \"name\", \"object\", \"vspace\", \"width\"});\n }", "protected HFrame(){\n\t\tinit();\n\t}", "private void initialize() {\n\t\tthis.setResizable(true);\n\t\tthis.setJMenuBar(getMbMain());\n\t\tthis.setSize(547, 453);\n\t\tthis.setContentPane(getCpMainFrame());\n\t\tthis.getGlassPane().setVisible(true);\n\t\tthis.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\n\t\tthis.setTitle(\"Mernis KPS �rnek Uygulamasi\");\n\t\tthis.addWindowListener(new java.awt.event.WindowAdapter() { \n\t\t\tpublic void windowClosing(java.awt.event.WindowEvent e) { \n\t\t\t\tclose(true);\n\t\t\t}\n\t\t});\n\t}", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "public static void init() {\r\n load();\r\n registerEventListener();\r\n }", "@Override\n public void PageFistLoad() {\n }", "@Override\n\tpublic void onWLInitCompleted(Bundle savedInstanceState){\n\t\tsuper.loadUrl(getWebMainFilePath());\n\t\ttry {\n\t\t\tMaaS360SDK.initSDK(MainApplication.getApplication(), \"appKey\", \"licenseKey\", \n\t\t\t MainApplication.getApplication().getSDKListener(), PolicyAutoEnforceInfo.getInstance());\n\t\t} catch (MaaS360SDKInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// Add custom initialization code after this line\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}", "@Override\n public void init() {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(TugasB.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(TugasB.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(TugasB.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(TugasB.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the applet */\n try {\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n public void run() {\n initComponents();\n }\n });\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "void handleSwfLoadedEvent(SwfLoadedEvent e)\n {\n // first we dump out a message that displays we have loaded a swf\n dumpSwfLoadedLine(e);\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 notifyPageInit() {\n\t\tString nativeNotificationCallback = JS_NOTIFICATION_FROM_NATIVE;\n\t\tString notificationArgument = \"\" + SmartConstants.NATIVE_EVENT_PAGE_INIT_NOTIFICATION;\n\t\tnotifyToJavaScript(nativeNotificationCallback, notificationArgument);\n\t}", "public void init() {\r\n // hago el applet de un tamaño 500,500\r\n setSize(800,500);\r\n \r\n\t// Se crea el URL de Juanito donde se guarda su imagen\r\n urlImagenPrincipal = this.getClass().getResource(\"juanito.gif\");\r\n \r\n // se crea el objeto para principal \r\n\tbasPrincipal = new Base(0, 0, getWidth() / iMAXANCHO,\r\n getHeight() / iMAXALTO,\r\n Toolkit.getDefaultToolkit().getImage(urlImagenPrincipal));\r\n\r\n // se posiciona a principal en la esquina superior izquierda del Applet \r\n basPrincipal.setX(getWidth() / 2);\r\n basPrincipal.setY(getHeight() / 2);\r\n \r\n // defino imagenes\r\n\turlImagenChimpy = this.getClass().getResource(\"chimpy.gif\");\r\n urlImagenDiddy = this.getClass().getResource(\"diddy.gif\");\r\n URL urlImagenGameover = this.getClass().getResource(\"gameover.png\");\r\n imaGameover = Toolkit.getDefaultToolkit().getImage(urlImagenGameover);\r\n\r\n // Instancio las linked list\r\n lklChimpys = new LinkedList();\r\n lklDiddys = new LinkedList();\r\n \r\n // creo variable para generar numeros random\r\n Random ranAleatorio = new Random();\r\n \r\n // creo cantidades de personajes\r\n int iChimpys = ranAleatorio.nextInt(5) + 3;\r\n int iDiddys = ranAleatorio.nextInt(5) + 3;\r\n \r\n // pongo valores iniciales de mis variables\r\n iAceleracion = 1;\r\n iScore = 0;\r\n bPausa = false;\r\n bGameover = false;\r\n \r\n // creo los iChimpys\r\n for(int iI = 0; iI < iChimpys; iI ++) {\r\n int iPosX = ranAleatorio.nextInt(getWidth()) + getWidth();\r\n int iPosY = ranAleatorio.nextInt(iMAXALTO) * getHeight() / iMAXALTO;\r\n Base basChimpy = new Base(iPosX,iPosY, getWidth() / iMAXANCHO,\r\n getHeight() / iMAXALTO,\r\n Toolkit.getDefaultToolkit().getImage(urlImagenChimpy));\r\n lklChimpys.add(basChimpy);\r\n }\r\n \r\n //creo los iDiddys\r\n for(int iI = 0; iI < iDiddys; iI ++) {\r\n int iPosX = ranAleatorio.nextInt(getWidth()) - getWidth();\r\n int iPosY = ranAleatorio.nextInt(iMAXALTO) * getHeight() / iMAXALTO;\r\n Base basDiddy = new Base(iPosX,iPosY, getWidth() / iMAXANCHO,\r\n getHeight() / iMAXALTO,\r\n Toolkit.getDefaultToolkit().getImage(urlImagenDiddy));\r\n lklDiddys.add(basDiddy);\r\n } \r\n \r\n // Coloco cantidad inicial de vidas\r\n iVidas = ranAleatorio.nextInt(2) + 4;\r\n \r\n // Se crean los sonidos de Diddy y Chimpy\r\n socSonidoChimpy = new SoundClip(\"monkey1.wav\");\r\n socSonidoDiddy = new SoundClip(\"monkey2.wav\");\r\n \r\n // Permito que se cicle el sonido para que pueda escuchar\r\n socSonidoChimpy.setLooping(true);\r\n socSonidoDiddy.setLooping(true);\r\n \r\n //habilito para escuchar teclado\r\n addKeyListener(this);\r\n }", "public void init ()\n\t// layout the applet\n\t{\tPlotarea=new Plot();\n\t\tPanel panel1=new Panel();\n\t\tPanel panel2=new Panel();\n\t\tClear=new Button(\" Clear \");\n\t\tRandomize=new Button(\" Random \");\n\t\tNRandom=new TextField(\"\",4);\n\t\tLocalOptimize=new Button(\"Local Optimum\");\n\t\tNIterations=new TextField(\"\",4);\n\t\tpanel1.add(Clear);\n\t\tpanel1.add(Randomize);\n\t\tpanel1.add(NRandom);\n\t\tpanel2.add(LocalOptimize);\n\t\tpanel2.add(new Label(\" Iterations:\"));\n\t\tpanel2.add(NIterations);\n\t\tsetLayout(gridbag);\n\t\tsetConstrain(Plotarea,0,0,1,1,\n\t\t\tGridBagConstraints.BOTH,GridBagConstraints.CENTER,\n\t\t\t1.0,1.0);\n\t\tadd(Plotarea);\n\t\tsetConstrain(panel1,0,2,1,1,\n\t\t\tGridBagConstraints.NONE,GridBagConstraints.CENTER,\n\t\t\t1.0,0.0);\n\t\tadd(panel1);\n\t\tsetConstrain(panel2,0,3,1,1,\n\t\t\tGridBagConstraints.NONE,GridBagConstraints.CENTER,\n\t\t\t1.0,0.0);\n\t\tadd(panel2);\n\t}", "@Override\r\n\tprotected void initLoad() {\n\r\n\t}", "public void contextInitialized(ServletContextEvent event) {\r\n \t\r\n }", "public void onModuleLoad() {\r\n\t\trpcService = GWT.create(ContactService.class);\r\n\t\teventBus = new HandlerManager(null);\r\n\t\tappViewer = new AppController(rpcService, eventBus);\r\n\t\tappViewer.go(RootPanel.get(\"initView\"));\r\n\t}", "public void initialize() {\n\t\tDLog(\"ANEAnalyticsExtension initialize\");\n\t}", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n }", "@Override\n protected void onLoad() {\n Element element = DOM.getElementById(BANDNAME_LISTBOX_ROW);\n element.setId(BANDNAME_LISTBOX_ROW + radioGroupId);\n\n this.pageLoaded = true;\n quicklookNone.setValue(true, true);\n buildBandNameListBox();\n }", "public abstract void onInit();", "protected void initialize() { \tthePrintSystem.printWithTimestamp(getClass().getName()); \n\tthis.isDone = false;\n\t\n\ttheLoader.setSetpoint(1.5);\n\t\n }", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "private void appInitialization(){\n openRom();\n openGuide();\n setOffset(0);\n addressChanged();\n }", "public void init() {\n\t\t//initializing graphics area\n \tcanvas = new FacePamphletCanvas();\n \tadd(canvas);\n \t\n\t\taddInteractors();\n\t\taddActionListeners();\n }", "protected void setLoadedForThisRequest() {\r\n\t\tContextUtils.setRequestAttribute(getRequestLoadedMarker(), Boolean.TRUE);\r\n\t}", "@Override\n public void autonomousInit() {\n \n }", "@Override\n public void onAdLoaded() {\n }", "@Override\r\n\tprotected void initListener() {\n\t\tsuper.initListener();\r\n\t}", "public void clickonFullyAutomaticFrontLoad() {\n\t\t\n\t}", "@Override\n public void onPostInit()\n {\n\n }", "public void loaded(){\n\t\tloaded=true;\n\t}", "public void onInitHandler() {\n }", "@Override\r\n\tpublic void contextInitialized(ServletContextEvent event) {\r\n\t\tinvoke(\"contextInitialized\", event);\r\n\t}", "public void onModuleLoad() { \n\t\tsingleton = this;\n\t\t\n\t\tdockPanel.setWidth(\"100%\");\n\t\tdockPanel.setSpacing(8);\n\t\t\n\t\tmenuBar.setVisible(false);\n\t\tmenuBar.setStyleName(\"menu\");\n\t\t\n\t\tflowPanel.setWidth(\"100%\");\n\t\tflowPanel.add(menuBar);\n\t\t\n\t\tstatusBar.setVisible(false);\n\t\tstatusBar.setStyleName(\"status\");\n\t\t\n\t\tflowPanel.add(statusBar);\n\t\t\n\t\tdockPanel.add(flowPanel,DockPanel.NORTH);\n\t\t\n\t\tloginPanel.setVisible(false);\n\t\tdockPanel.add(loginPanel,DockPanel.WEST);\n\t\t\n\t\tpublisherListPanel.setVisible(false);\n\t\tpublisherListPanel.setWidth(\"100%\");\n\t\tdockPanel.add(publisherListPanel,DockPanel.CENTER);\n\t\t\n\t\tRootPanel.get(\"publisher\").add(dockPanel);\n\t}", "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}", "@Override\r\n\tpublic void initListener(Bundle savedInstanceState) {\n\r\n\t}", "private void initListener() {\n }", "@Override\n\tpublic void autonomousInit() {\n\t}", "@Override\n public void waitUntilPageObjectIsLoaded() {\n }", "@Override\r\npublic void attributeAdded(ServletContextAttributeEvent arg0) {\n\t\r\n}", "public void start() {\r\n\t\tfinal Element frame = this.createFrame();\r\n\t\tthis.setFrame(frame);\r\n\r\n\t\tthis.getSupport().start(this, frame);\r\n\r\n\t\t// the reason for the query string is to avoid caching problems...the\r\n\t\t// src attribute is set before the frame is attached this also\r\n\t\t// avoids the nasty clicking noises in ie.\r\n\t\tDOM.setElementProperty(frame, \"src\", this.getServiceEntryPoint() + \"?serializationEngine=Gwt&\" + System.currentTimeMillis());\r\n\r\n\t\tfinal Element body = RootPanel.getBodyElement();\r\n\t\tDOM.appendChild(body, frame);\r\n\t}", "public void initListener() {\n }", "public void init() {\r\n bundle = ResourceBundle.getBundle(\"gong/i18n/NanoGong\");\r\n\r\n try {\r\n java.awt.EventQueue.invokeAndWait(new Runnable() {\r\n public void run() {\r\n initComponents();\r\n\r\n // Initialize the button UIs\r\n btnPlay.setUI(new NanoButtonUI(NanoButtonUI.PLAY));\r\n btnRecord.setUI(new NanoButtonUI(NanoButtonUI.RECORD));\r\n btnStop.setUI(new NanoButtonUI(NanoButtonUI.STOP));\r\n btnSave.setUI(new NanoButtonUI(NanoButtonUI.SAVE));\r\n slrAmplitude.setUI(new NanoAmplitudeUI(slrAmplitude));\r\n btnSlow.setUI(new NanoSpeedButtonUI(NanoSpeedButtonUI.SLOW));\r\n btnFast.setUI(new NanoSpeedButtonUI(NanoSpeedButtonUI.FAST));\r\n slrTime.setUI(new NanoTimeUI(slrTime, NanoGong.this));\r\n panWait.setVisible(false);\r\n/*\r\n // Create the JLabel for time display\r\n lblTime = new javax.swing.JLabel();\r\n lblTime.setText(\"\");\r\n lblTime.setBackground(new java.awt.Color(1.0f, 1.0f, 1.0f, 0.8f));\r\n lblTime.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.WHITE));\r\n lblTime.setBounds((getWidth() - 100) / 2, 20, 100, 12);\r\n lblTime.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 10));\r\n lblTime.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n lblTime.setOpaque(true);\r\n lblTime.setPreferredSize(lblTime.getSize());\r\n\r\n // Add the time label to the glass pane*/\r\n panGlassPane = (javax.swing.JPanel) getGlassPane();\r\n panGlassPane.setLayout(null);\r\n// panGlassPane.add(lblTime);*/\r\n }\r\n });\r\n } catch (Exception e) {}\r\n \r\n handler.addListener(this);\r\n \r\n String value;\r\n \r\n // Read various parameters from the applet\r\n value = getParameter(\"ShowAudioLevel\");\r\n if (value != null && value.equalsIgnoreCase(\"false\")) slrAmplitude.setVisible(false);\r\n value = getParameter(\"ShowRecordButton\");\r\n if (value != null && value.equalsIgnoreCase(\"false\")) btnRecord.setVisible(false);\r\n value = getParameter(\"ShowSpeedButton\");\r\n if (value != null && value.equalsIgnoreCase(\"false\")) panSpeed.setVisible(false);\r\n value = getParameter(\"ShowSaveButton\");\r\n if (value != null && value.equalsIgnoreCase(\"false\")) btnSave.setVisible(false);\r\n value = getParameter(\"ShowTime\");\r\n if (value != null && value.equalsIgnoreCase(\"true\")) showTime = true;\r\n value = getParameter(\"AudioFormat\");\r\n if (value != null && value.equals(IMA_ADPCM)) audioFormat = IMA_ADPCM;\r\n if (value != null && value.equals(PCM)) audioFormat = PCM;\r\n value = getParameter(\"SamplingRate\");\r\n if (value != null) {\r\n try {\r\n int rate = Integer.parseInt(value);\r\n if (audioFormat.equals(IMA_ADPCM)) {\r\n if (rate == 8000 || rate == 11025 || rate == 22050 || rate == 44100) samplingRate = rate;\r\n } else {\r\n if (rate == 8000 || rate == 16000 || rate == 32000 || rate == 44100) samplingRate = rate;\r\n }\r\n } catch (NumberFormatException nfe) {}\r\n }\r\n value = getParameter(\"SpeexQuality\");\r\n if (value != null) {\r\n try {\r\n int quality = Integer.parseInt(value);\r\n if (quality >= 0 && quality <= 10) speexQuality = quality;\r\n } catch (NumberFormatException nfe) {}\r\n }\r\n value = getParameter(\"Color\");\r\n if (value != null && value.length() > 1) {\r\n try {\r\n java.awt.Color c = new java.awt.Color(Integer.parseInt(value.substring(1), 16));\r\n \r\n // Change the color of all components\r\n panPanel.setBackground(c);\r\n btnPlay.setBackground(c);\r\n btnRecord.setBackground(c);\r\n btnStop.setBackground(c);\r\n slrAmplitude.setBackground(c);\r\n panSpeed.setBackground(c);\r\n btnSlow.setBackground(c);\r\n btnFast.setBackground(c);\r\n lblSpeed.setBackground(c);\r\n btnSave.setBackground(c);\r\n slrTime.setBackground(c);\r\n panWait.setBackground(c);\r\n lblMessage.setBackground(c);\r\n pbrWait.setBackground(c);\r\n } catch (NumberFormatException nfe) {\r\n speexQuality = 0;\r\n }\r\n }\r\n value = getParameter(\"MaxDuration\");\r\n if (value != null) {\r\n try {\r\n long duration = Long.parseLong(value);\r\n if (duration > 0 && duration <= 1200) maxDuration = duration * 1000;\r\n } catch (NumberFormatException nfe) {}\r\n }\r\n value = getParameter(\"StartTime\");\r\n if (value != null) {\r\n try {\r\n double dvalue = Double.parseDouble(value);\r\n if (dvalue > 0) startTime = (long) (dvalue * 1000.0);\r\n } catch (NumberFormatException nfe) {}\r\n }\r\n value = getParameter(\"EndTime\");\r\n if (value != null) {\r\n try {\r\n double dvalue = Double.parseDouble(value);\r\n if (dvalue > 0) endTime = (long) (dvalue * 1000.0);\r\n } catch (NumberFormatException nfe) {}\r\n }\r\n if (startTime > 0 && endTime > 0 && endTime <= startTime) {\r\n endTime = -1;\r\n }\r\n \r\n // Preload the sound file from the parameter\r\n String url = getParameter(\"SoundFileURL\");\r\n try {\r\n url = resolveURL(url);\r\n handler.setURL(url);\r\n } catch (MalformedURLException ex) {\r\n handler.setURL(null);\r\n }\r\n \r\n String jsListenerName = getParameter(\"AudioHandlerListener\");\r\n if(jsListenerName != null) {\r\n \tJSObject window = JSObject.getWindow(this);\r\n \ttry {\r\n\t \tJSObject jsListener = (JSObject)window.getMember(jsListenerName);\r\n\t\t handler.addListener(new JsAudioHandlerListener(jsListener));\r\n \t} catch(JSException e) {\r\n \t\t// specified object not found\r\n \t\t\r\n \t}\r\n }\r\n if (url != null) {\r\n URLLoader loader = getURLLoader(url, startTime, endTime);\r\n if (loader == null)\r\n JOptionPane.showMessageDialog(this, \"NanoGong is busy at the moment.\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n else\r\n loader.start();\r\n }\r\n }", "@Override\r\npublic void requestInitialized(ServletRequestEvent arg0) {\n\t\r\n}", "public void addedToDom() {\n activateTab();\n }", "protected void onInit() {\n\t}", "@Override\n\tpublic void contextInitialized(ServletContextEvent sce) {\n\t\tServletContextListener.super.contextInitialized(sce);\n\t}", "private BrowserToolbar() {\n\t\tinitComponents();\n\t}" ]
[ "0.7586219", "0.72204506", "0.65040505", "0.64790004", "0.6465468", "0.6353129", "0.627752", "0.6269934", "0.62341654", "0.6186274", "0.60648155", "0.6032404", "0.6023071", "0.59597945", "0.59555507", "0.5886076", "0.58603865", "0.58566606", "0.58094025", "0.5784329", "0.5772436", "0.56894845", "0.5662508", "0.5643151", "0.5618592", "0.56164026", "0.5588107", "0.55804545", "0.5558452", "0.55184495", "0.5513845", "0.5513845", "0.5491989", "0.5476276", "0.5461547", "0.54606795", "0.5460439", "0.5446265", "0.54449624", "0.544448", "0.54394776", "0.5427165", "0.5423778", "0.5420523", "0.5417063", "0.54139054", "0.5412288", "0.54053926", "0.5395041", "0.539201", "0.53846925", "0.53790414", "0.5378725", "0.53778815", "0.53611434", "0.5358468", "0.53580374", "0.5353551", "0.53511745", "0.5342486", "0.53420484", "0.5325704", "0.5313476", "0.5309438", "0.5308351", "0.5300986", "0.52993906", "0.52965945", "0.52911264", "0.52911264", "0.528873", "0.52838355", "0.5281074", "0.52798027", "0.52798027", "0.5277519", "0.5274095", "0.52732337", "0.52638537", "0.52614427", "0.5257158", "0.52569044", "0.52553666", "0.5242014", "0.5241498", "0.52359414", "0.52351", "0.5225116", "0.5210563", "0.5191763", "0.5173921", "0.5172706", "0.51724446", "0.51683915", "0.5165695", "0.51623654", "0.51582783", "0.51554054", "0.51548976", "0.5153874", "0.5147807" ]
0.0
-1
When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread. The general contract of the method run is that it may take any action whatsoever.
@Override public void run() { send(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Startable extends Runnable {\n \n /**\n * Waits until the thread this object is running in is finished before returning.\n */\n public void join();\n \n /**\n * Checks whether the component is done with its work.\n * @return <code>true</code> if the component is finished its work\n */\n public boolean isDone();\n \n /**\n * Sets the thread that this object is running in.\n * \n * @param t the thread that this object is running in\n */\n public void setThread(Thread t);\n\n /**\n * Gets the thread that this object is running in.\n * \n * @return the thread that this object is running in\n */\n public Thread getThread();\n\n}", "public void run(){\n //logic to execute in a thread \n }", "private void startRunnableThread() {\n customRunnable = new CustomRunnable();\n customThread = new CustomThread(customRunnable);\n customRunnable.setTag(customThread.tag);\n customThread.start();\n\n }", "void startThread();", "ThreadStart createThreadStart();", "public final void run() {\r\n }", "void runInThread(Runnable runnable) {\n try {\n Thread thread = new Thread(runnable::run);\n thread.start();\n } catch (Exception ex) {\n log.info(ex.getMessage());\n }\n\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}", "public interface MainThread {\n void post(Runnable runnable);\n}", "public MyRunnable(){\t\n\t}", "@Override\n // Thread creation\n // Run method from the Runnable class.\n public void run() {\n p.println(\"Current thread = \" + Thread.currentThread().getName());\n // Shows when a task is being executed concurrently with another thread,\n // then puts the thread to bed (I like saying that)\n try {\n p.println(\"Doing a task during : \" + name);\n Thread.currentThread().sleep(time);\n }\n // Exception for when a thread is interrupted.\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void start() {\n // EFFECTS: starts a new thread from this instance.\n (new Thread(instance)).start();\n }", "public void run() {\r\n }", "@Override\r\n public Thread newThread(Runnable r) {\n Thread t = new Thread(r, \"example-runner\");\r\n t.setDaemon(true);\r\n return t;\r\n }", "@Override\r\n\tpublic Thread newThread(Runnable arg0) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tabstract public void run();", "public void run();", "public void run();", "public void run();", "public void run();", "public void run();", "public void start() {\n\n\t\tif (worker.isAlive()) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t \"Worker thread is still alive, unexpected.\");\n\t\t}\n\n\t\tif (runflag.get()) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t \"Runflag is inconsistant with thread, unexpected.\");\n\t\t}\n\n\t\trunflag.set(true);\n\t\tworker.start();\n\t}", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "public void createThread() {\n }", "public synchronized void start() {\n\t\tif (running)\n\t\t\treturn;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t\trunning = true;\n\t}", "public void start ()\n {\n Thread th = new Thread (this);\n // start this thread\n th.start ();\n\n }", "public void run()\n {\n }", "public void run()\n {\n }", "@Override\r\n\tpublic abstract void run();", "public void start() {\n if (runner == null) {\n runner = new Thread(this, \"Runner\");\n runner.start();\n }\n }", "public synchronized void start() {\r\n\t\tthread = new Thread(this);\r\n\t\tthread.start();\r\n\t\tisRunning = true;\r\n\t }", "public void run()\n\t{\n\t}", "public void run () { run (true); }", "public IThread createThread() throws IllegalWriteException, BBException;", "public synchronized void dispatch(Runnable runnable) {\n\t\tif (!isStart) {\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tif (runnable != null) {\n\t\t\tqueue.push(runnable);\n\t\t} else {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t}", "public void start() {\n\t\tmyThread = new Thread(this); myThread.start();\n\t}", "interface Runnable {\n void execute() throws Throwable;\n default void run() {\n try {\n execute();\n } catch(Throwable t) {\n throw new RuntimeException(t);\n }\n }\n }", "@Override\n public void startThread() {\n Log.d(TAG, \"Starting \" + getName() + \" thread!\");\n if (!started)\n start();\n running = enabled;\n doStartAction();\n }", "@Override\n abstract public void run();", "public interface Interactor extends Runnable {\n void run();\n}", "@Override\n protected Thread createThread(final Runnable runnable, final String name) {\n return new Thread(runnable, Thread.currentThread().getName() + \"-exec\");\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"Thread working\");\n\t\t\t}", "public void start() {\n if (!started) {\n thread = new Thread(this);\n thread.start();\n started = true;\n }\n }", "public void run() {\n }", "@Override\n\tpublic Thread newThread(Runnable r) {\n\t\t\n\t\tThread th = new Thread(r,\" custum Thread\");\n\t\treturn th;\n\t}", "public void run() {/* THE CODE HERE IS A THE @OVERRIDE FOR START() METHOD */\n\t}", "public void run() {\n\n }", "public void run()\n {\n\n }", "public void start() {\n thread = new Thread(this);\n thread.setPriority(Thread.MIN_PRIORITY);\n thread.start();\n }", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public void run() {\n\n\n }", "@Override\r\n public void run() {}", "public void run(){\n\t}", "@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t}", "public void start()\n\t{\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "private interface CheckedRunnable {\n void run() throws Exception;\n }", "public synchronized void start() {\n if (!this.isRunning) {\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public void startThread(){\n\t\trunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "public void Start() {\r\n\t\tthread.run();\r\n\t}", "public void run() {\n\t}", "public void run() {\n\t}", "private void start(){\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }", "public Thread startThread() {\n Thread thread = createThread();\n thread.start();\n return thread;\n }", "private void startNormalThread() {\n customThread = new CustomThread();\n customThread.start();\n }", "public void run() {\n super.run();\n }", "public void start(){\n thread.start();\n }", "@Override\npublic void run() {\n perform();\t\n}", "@Override\n public void run()\n {\n super.run();\n }", "@Override\n\tpublic void run()\n\t{\n\t}", "public static void run(){}", "private Thread startTestThread(Runnable runnable) {\n Thread t = new Thread(runnable);\n t.setDaemon(true);\n return t;\n }", "@Override\n protected void runInListenerThread(Runnable runnable) {\n runnable.run();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"ok, here is \" + Thread.currentThread().getName() + \" \" + \"thread, i'll do something here..\");\n\t\t\t}", "public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}", "public void start() {\n\t\tai = new Thread(this);\n\t\tai.start();\n\t}", "public abstract void run();", "public abstract void run();", "public abstract void run();", "public static void run() {\n }", "public static OnRun onRun( Runnable run )\n\t{\n\t\treturn new OnRun( run );\n\t}", "public void run() {\n System.out.println(ANSI_GREEN + \"Hello from anonymous class thread\");\n }", "@Override\n public void run() {\n }", "public void start() {\r\n isRunning = true;\r\n Thread thread = new myThread();\r\n thread.start();\r\n }", "public void start() {\n\t\tif(t == null) {\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t}\n\t}", "public synchronized void start() {\r\n\r\n\t\tif (!running) {\r\n\t\t\trunning = true;\r\n\t\t\tnew Thread(this, name).start();\r\n\t\t}\r\n\t}", "public void start() {\n\n\t\tisRunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\n\t}", "@Override\n public synchronized void start()\n {\n if (run)\n return;\n run = true;\n super.start();\n }", "private static void ThreadCreationOldWay() {\r\n\t\tThread t1 = new Thread(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tSystem.out.println(\"This is a runnable method done in old fashion < 1.8\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tt1.start();\r\n\t}", "void runInAudioThread(Runnable runnable) {\n executor.execute(runnable);\n }", "public void start() {\r\n\t\trunning = true;\r\n\t\tt = new Thread(this);\r\n\t\tt.start();\r\n\t}", "@Override\n\tpublic void run() {\n\t\tLog.i(tag, \"run\");\n\t}", "public void run()\r\n\t{\r\n\t\t\r\n\t}", "public static void main(String args[ ]){\r\nMythread rt = new Mythread(); /* main thread created the runnable object*/\r\nThread t = new Thread(rt); /*main thread creates child thread and passed the runnable object*/\r\nt.start();\r\nfor(int i=0; i<10; i++){\r\nSystem.out.println(\"Main Thread\");\r\n}\r\n}", "public final void run() {\n //We get a hold on the thread where this unit is going to be executed\n //so shutdown() can interrupt it if called.\n thread = Thread.currentThread();\n running = true;\n \n try {\n init();\n } catch (RuntimeException ex) {\n stop();\n aborted = true;\n onRunAborted(ex);\n }\n\n try {\n if (!isFinished() && !isStopping()) {\n internalRun();\n }\n } catch (RuntimeException ex) {\n aborted = true;\n onRunAborted(ex);\n throw ex;\n } finally {\n try {\n cleanup();\n } catch (RuntimeException ex) {\n onRunAborted(ex);\n }\n\n running = false;\n //Remove the thread reference\n thread = null;\n }\n }", "public void start() {\r\n running = true;\r\n new Thread(this).start();;\r\n }", "public Thread startAndRun() {\r\n\t\tThread gameThread = new Thread(this, \"Coffee Bean Game Thread\");\r\n\t\tgameThread.start();\r\n\r\n\t\treturn gameThread;\r\n\t}", "public void startThread(View view) {\n //startNormalThread();\n startRunnableThread();\n }" ]
[ "0.7048037", "0.6961284", "0.68868715", "0.67365074", "0.6644096", "0.6579968", "0.6518229", "0.64970374", "0.64966977", "0.64670104", "0.64468443", "0.644141", "0.6393757", "0.6389001", "0.6380501", "0.6375309", "0.63678", "0.63678", "0.63678", "0.63678", "0.63678", "0.6356331", "0.63457257", "0.63457257", "0.63457257", "0.63457257", "0.6345718", "0.63403237", "0.63374674", "0.63292146", "0.63292146", "0.63257796", "0.6323692", "0.6302419", "0.6301992", "0.62983835", "0.6283853", "0.6276911", "0.6268046", "0.6261995", "0.62602055", "0.62534654", "0.62514234", "0.62493855", "0.6244095", "0.6243774", "0.6239585", "0.622979", "0.62288463", "0.6222768", "0.62226546", "0.6205485", "0.62029475", "0.62029475", "0.61755383", "0.61726403", "0.6170871", "0.616718", "0.61669475", "0.61623555", "0.6162337", "0.6156448", "0.6151979", "0.61503315", "0.61503315", "0.61491364", "0.6143887", "0.6133877", "0.6126922", "0.6108338", "0.6106773", "0.6096356", "0.60913223", "0.60813737", "0.60780615", "0.6076766", "0.60744405", "0.60727686", "0.6070591", "0.60696125", "0.60696125", "0.60696125", "0.6066277", "0.60662216", "0.6065335", "0.60632175", "0.6060413", "0.60553694", "0.60438085", "0.6031672", "0.60289645", "0.6018053", "0.6013918", "0.60098815", "0.6003226", "0.5996766", "0.5991652", "0.5991245", "0.59812266", "0.5980882", "0.597994" ]
0.0
-1
Auto generated method signature
public nl.mcl.services.ScheduleTreatmentResponse scheduleTreatment( nl.mcl.services.ScheduleTreatment scheduleTreatment0) { // TODO : fill this with the necessary business logic throw new java.lang.UnsupportedOperationException( "Please implement " + this.getClass().getName() + "#scheduleTreatment"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String kind() {\n return \"@param\";\n }", "default String getSignature() {\n StringBuilder sb = new StringBuilder();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describeType());\n }\n sb.append(\")\");\n return sb.toString();\n }", "public void method_201() {}", "private static String getMethodSignature(Class[] paramTypes, Class retType) {\n StringBuffer sbuf = new StringBuffer();\n sbuf.append('(');\n for (int i = 0; i < paramTypes.length; i++) {\n sbuf.append(getClassSignature(paramTypes[i]));\n }\n sbuf.append(')');\n sbuf.append(getClassSignature(retType));\n return sbuf.toString();\n }", "protected void createGetSignatureMethod() {\n MethodVisitor cv = m_cw.visitMethod(\n ACC_PUBLIC,\n GET_SIGNATURE_METHOD_NAME,\n GET_SIGNATURE_METHOD_SIGNATURE,\n null,\n null\n );\n cv.visitFieldInsn(\n GETSTATIC, m_joinPointClassName,\n SIGNATURE_FIELD_NAME, FIELD_SIGNATURE_IMPL_CLASS_SIGNATURE\n );\n cv.visitInsn(ARETURN);\n cv.visitMaxs(0, 0);\n }", "@Override\n public void visit(MethodDeclaration n, Object arg) {\n \tArrayList<String> method = new ArrayList<String>();\n \tif(n.getJavaDoc()!=null){\n\t \tmethod.add(n.getName());\n\t \tString comment = n.getJavaDoc().getContent();\n\t \tcomment = comment.replaceAll(\"\\\\* @param (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @return (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @throws (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* \",\"\");\n\t \tmethod.add(comment.trim()); \n\t \tmethods.add(method);\n \t}\n \t}", "@Override\n public int getMethodCount()\n {\n return 1;\n }", "Method createMethod();", "Method createMethod();", "MethodStart createMethodStart();", "MethodName getMethod();", "public interface SignCallUseCase {\n\n String signature(String method, Map<String, String> params, String secret);\n\n}", "public abstract String getSignature();", "MethodSynthesizer getMethodSynthesizer();", "public abstract String[] getMethodNames();", "@Override\n\tpublic void randomMethod(String name) {\n\t\t\n\t}", "public void method_202() {}", "void method_115();", "public String getBaseLocalName() {\n/* 463 */ return \"SignatureMethod\";\n/* */ }", "protected MethodNameRecord(){}", "public void method_115() {}", "@Override\n\tpublic Class[] getMethodParameterTypes() {\n\t\treturn new Class[]{byte[].class, int.class,byte[].class,\n\t\t byte[].class, int.class, byte[].class,\n\t\t int.class, byte[].class, byte[].class};\n\t}", "public void method_193() {}", "MethodType (String m, Type r, ExpressionList args) {\r\n name = m;\r\n return_type = r;\r\n arguments = args;\r\n body = null;\r\n }", "public E16_OverloadJavaDoc() {\n System.out.println(\"Planting a seedling\");\n }", "public void method_192() {}", "String getMethod();", "String getMethod();", "Methodsig getMethod();", "@Override\n\t\tpublic String buildBasicMethod() {\n\t\t\treturn buildMethod();\n\t\t}", "@Override\n\tpublic void VisitMethodCallNode(MethodCallNode Node) {\n\n\t}", "@Override\n public final int getMethodCount() {\n return 1;\n }", "public void method(){}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\n public String getMethodName() {\n return null;\n }", "@Override\n protected String getMethodName() {\n return suitename() + \"-\" + super.getMethodName();\n }", "public void my_method();", "int getSignatureType();", "public void method_4270() {}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tprotected void generatePrimitives(SoAction action) {\n\n\t}", "@Override\n\t\tpublic String getMethod() {\n\t\t\treturn null;\n\t\t}", "@Test\n\tpublic void testChangeMethodParameters() {\n\t\tDeclarationListDelta delta = createClassDelta(\n\t\t\t\t\"int someMethod(String x) { return 0;} \",\n\t\t\t\t\"int someMethod(int x) { return 0;}\");\n\n\t\tassertEquals(1, delta.getAddedDeclarations().size());\n\t\tassertEquals(0, delta.getChangedDeclarations().size());\n\t\tassertEquals(1, delta.getRemovedDeclarations().size());\n\n\t\tString removedMethod = methodSignature(delta.getRemovedDeclarations()\n\t\t\t\t.get(0));\n\t\tassertEquals(\"int someMethod(String)\", removedMethod);\n\n\t\tString addedMethod = methodSignature(delta.getAddedDeclarations()\n\t\t\t\t.get(0));\n\t\tassertEquals(\"int someMethod(int)\", addedMethod);\n\t}", "public MethodSignature(Method method)\n {\n final StringBuilder buf = new StringBuilder(method.getName()).append('(');\n for (Class<?> p : method.getParameterTypes())\n {\n appendTo(buf, p);\n }\n buf.append(')');\n this.internal = buf.toString();\n }", "public void mo44053a() {\n }", "public interface Invocable extends JavadocElement, Overridable, Deprecatable, Ownable,\n AnnotationTarget,\n HasVisibility, GenericTarget {\n\n String getDeclaration();\n\n /**\n * Returns the parameters.\n *\n * @return the parameters\n */\n List<Parameter> getParameters();\n\n /**\n * Returns whether this invocable is a static method.\n *\n * @return true if this invocable is a static method.\n */\n boolean isStatic();\n\n /**\n * Returns the return type.\n *\n * @return the return type\n */\n Type getReturnType();\n\n /**\n * Returns all (checked) exceptions the invocable may throw.\n *\n * @return all (checked) exceptions the invocable may throw.\n */\n List<Type> getThrows();\n\n /**\n * A method parameter.\n */\n class Parameter {\n\n private Type type;\n private String name;\n\n public Parameter(Type type, String name) {\n this.type = type;\n this.name = name;\n }\n\n public Type getType() {\n return type;\n }\n\n public String getName() {\n return name;\n }\n\n @Override\n public String toString() {\n return \"Parameter{\" + name + \"=\" + type + '}';\n }\n\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 Parameter parameter = (Parameter) o;\n return Objects.equals(type, parameter.type) &&\n Objects.equals(name, parameter.name);\n }\n\n @Override\n public int hashCode() {\n return Objects.hash(type, name);\n }\n }\n}", "@Override\n public ASTNode visitMethod(CoolParser.MethodContext ctx) {\n List<FormalNode> parameters = new LinkedList<>();\n for (var formal : ctx.formal()) {\n parameters.add((FormalNode) visitFormal(formal));\n }\n\n return new MethodNode(\n ctx.id,\n new IdNode(ctx.id),\n parameters,\n new TypeNode(ctx.returnType),\n (ExprNode) ctx.expr().accept(this));\n }", "public void testCreateMethodWithParameters() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setParameters(new String[] { \"String\", \"int\", \"char[]\" }, new String[] { \"name\", \"number\", \"buffer\" });\n assertSourceEquals(\"source code incorrect\", \"public void foo(String name, int number, char[] buffer) {\\n\" + \"}\\n\", method.getContents());\n }", "public abstract void mo42331g();", "public void mo115188a() {\n }", "public void startMethod (Symbol methodName, java.lang.Object[] args) throws G2AccessException;", "public void mo9241ay() {\n }", "public interface ConfigurationServiceV1 {\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getBSConfigRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSConfigResponse getBSConfig\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSConfigRequest getBSConfigRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param setServiceLocationRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetServiceLocationResponse setServiceLocation\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetServiceLocationRequest setServiceLocationRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getOPSConfigRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSConfigResponse getOPSConfig\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSConfigRequest getOPSConfigRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getClientConfigRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetClientConfigResponse getClientConfig\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetClientConfigRequest getClientConfigRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * \n * @param getQSLocationsRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetQSLocationsResponse getQSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetQSLocationsRequest getQSLocationsRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param setClientToBSRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetClientToBSResponse setClientToBS\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetClientToBSRequest setClientToBSRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * \n * @param getESLocationsRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetESLocationsResponse getESLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetESLocationRequest getESLocationsRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param setBSToOPSRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetBSToOPSResponse setBSToOPS\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetBSToOPSRequest setBSToOPSRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getBSLocationsRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSLocationsResponse getBSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSLocationsRequest getBSLocationsRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * \n * @param getOPSLocationsRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsResponse getOPSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsRequest getOPSLocationsRequest\n )\n ;\n \n }", "OverloadedFunctionDescriptor() {\n super();\n this.overloads = new ArrayList<>();\n }", "public void method_199() {}", "@Override\n public String getMethod() {\n return METHOD_NAME;\n }", "private void init() {\n\t\t// pick to pieces method signature description\n\t\tthis.argTypes = Type.getArgumentTypes(this.desc);\n\t\tthis.newArgTypes = new LinkedList<Type>();\n\t\tfor (Type t : this.argTypes) {\n\t\t\tthis.newArgTypes.add(t);\n\t\t\tif(t.getSort() == Type.OBJECT && !TaintTrackerConfig.isString(t))\n\t\t\t\tcontinue;\n//\t\t\tdetermine proper taint for each argument and append it to newArgTypes\n\t\t\tif (t.getSort() == Type.ARRAY) {\n\t\t\t\tif (t.getElementType().getSort() != Type.OBJECT || TaintTrackerConfig.isString(t.getElementType())) {\n\t\t\t\t\tif (t.getDimensions() > 1) {\n\t\t\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC_ARR));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC));\n\t\t\t}\n\t\t}\n\t\tthis.newReturnType = Type.getReturnType(desc);\n\t\tif (this.newReturnType.getSort() != Type.VOID && this.newReturnType.getSort() != Type.OBJECT) {\n\t\t\tTaintWrapper<?,?> returnType = TaintTrackerConfig.wrapReturnType(Type.getReturnType(desc));\n\t\t\tif(returnType != null)\n\t\t\t\tthis.newReturnType = Type.getType(returnType.getClass());\n\t\t}\n\t\telse if( (this.newReturnType.getSort() == Type.OBJECT && TaintTrackerConfig.isString(this.newReturnType))\n\t\t|| (this.newReturnType.getSort() == Type.ARRAY && TaintTrackerConfig.isString(this.newReturnType.getElementType())) ){\n\t\t\tTaintWrapper<?,?> returnType = TaintTrackerConfig.wrapReturnType(Type.getReturnType(desc));\n\t\t\tif(returnType != null)\n\t\t\t\tthis.newReturnType = Type.getType(returnType.getClass());\n\t\t}\n\t\t\n\t\tType[] newArgs = new Type[newArgTypes.size()];\n\t\tnewArgTypes.toArray(newArgs);\n\t\tthis.newDesc = Type.getMethodDescriptor(newReturnType, newArgs);\n\t}", "HxMethod createMethod(final String returnType,\n final String methodName,\n final String... parameterTypes);", "@Override\n\tpublic void name1() {\n\t\t\n\t}", "public interface RepairTransportationServiceSkeletonInterface {\n \n \n /**\n * Auto generated method signature\n * \n * @param updateDeliveryTime\n */\n\n \n public org.djbikeshop.www.repairtransportationservice.UpdateDeliveryTimeResponse updateDeliveryTime\n (\n org.djbikeshop.www.repairtransportationservice.UpdateDeliveryTime updateDeliveryTime\n )\n ;\n \n \n /**\n * Auto generated method signature\n * \n * @param getTransportationDistance\n */\n\n \n public org.djbikeshop.www.repairtransportationservice.GetTransportationDistanceResponse getTransportationDistance\n (\n org.djbikeshop.www.repairtransportationservice.GetTransportationDistance getTransportationDistance\n )\n ;\n \n \n /**\n * Auto generated method signature\n * \n * @param getTransportationTime\n */\n\n \n public org.djbikeshop.www.repairtransportationservice.GetTransportationTimeResponse getTransportationTime\n (\n org.djbikeshop.www.repairtransportationservice.GetTransportationTime getTransportationTime\n )\n ;\n \n }", "static MBeanParameterInfo[] methodSignature(Method method) {\r\n Class[] classes = method.getParameterTypes();\r\n MBeanParameterInfo[] params = new MBeanParameterInfo[classes.length];\r\n\r\n for (int i = 0; i < classes.length; i++) {\r\n String parameterName = \"p\" + (i + 1);\r\n params[i] = new MBeanParameterInfo(parameterName, classes[i].getName(), \"\");\r\n }\r\n\r\n return params;\r\n }", "public abstract jq_Method getDefiningMethod();", "public void method_200() {}", "String getReturnType();", "ISModifySignature createISModifySignature();", "@Override\n public String toString() {\n return getClass().getSimpleName() + \": call $\" + name.signatureName + (comment == null ? \"\" : \" ;; \\\"\" + comment + \"\\\"\");\n }", "public interface Meta {\r\n\r\n\t/**\r\n\t * Lists method names exposed by endpoint.\r\n\t *\r\n\t * @return method name list\r\n\t */\r\n\t@XRMethod(value = \"system.listMethods\", help = \"List all method names available\")\r\n\tList<String> listMethods();\r\n\r\n\t/**\r\n\t * Provides help/usage information for a method.\r\n\t *\r\n\t * @param methodName\r\n\t * name of the method\r\n\t * @return help/usage information for a method\r\n\t */\r\n\t@XRMethod(value = \"system.help\", help = \"Returns usage information for a method\")\r\n\tString help(String methodName);\r\n\r\n\t// @XRMethod(\"system.multicall\")\r\n\t// List multicall(List calls);\r\n\r\n\t/**\r\n\t * Checks if method is supported by endpoint or not.\r\n\t *\r\n\t * @param methodName\r\n\t * name of the method\r\n\t * @return true if method is supported by endpoint, false otherwise\r\n\t */\r\n\t@XRMethod(value = \"system.supports\", help = \"Returns true if method is supported, false otherwise\")\r\n\tboolean supports(String methodName);\r\n}", "public void mo55254a() {\n }", "public void foo() {\r\n\t}", "public interface Method extends Member, TypedElement, ArrayTypeable, TypeParametrizable, Parametrizable, ReferenceableElement, ExceptionThrower, AnnotableAndModifiable\n{\n /**\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * <!-- begin-model-doc -->\n * \n * <!-- end-model-doc -->\n * @model annotation=\"http://www.eclipse.org/emf/2002/GenModel body='return org.emftext.language.java.extensions.members.MethodExtension.isMethodForCall((org.emftext.language.java.members.Method) this, (org.emftext.language.java.references.MethodCall) methodCall, needsPerfectMatch);'\"\n * @generated\n */\n boolean isMethodForCall(MethodCall methodCall, boolean needsPerfectMatch);\n\n /**\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * <!-- begin-model-doc -->\n * \n * <!-- end-model-doc -->\n * @model annotation=\"http://www.eclipse.org/emf/2002/GenModel body='return org.emftext.language.java.extensions.members.MethodExtension.isSomeMethodForCall((org.emftext.language.java.members.Method) this, (org.emftext.language.java.references.MethodCall) methodCall);'\"\n * @generated\n */\n boolean isSomeMethodForCall(MethodCall methodCall);\n\n /**\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * <!-- begin-model-doc -->\n * \n * <!-- end-model-doc -->\n * @model annotation=\"http://www.eclipse.org/emf/2002/GenModel body='return org.emftext.language.java.extensions.members.MethodExtension.isBetterMethodForCall((org.emftext.language.java.members.Method) this, (org.emftext.language.java.members.Method) otherMethod, (org.emftext.language.java.references.MethodCall) methodCall);'\"\n * @generated\n */\n boolean isBetterMethodForCall(Method otherMethod, MethodCall methodCall);\n\n /**\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * <!-- begin-model-doc -->\n * \n * <!-- end-model-doc -->\n * @model kind=\"operation\"\n * annotation=\"http://www.eclipse.org/emf/2002/GenModel body='return org.emftext.language.java.extensions.members.MethodExtension.getArrayDimension((org.emftext.language.java.members.Method) this);'\"\n * @generated\n */\n long getArrayDimension();\n\n}", "public void method_203() {}", "public void mo6944a() {\n }", "public void method_191() {}", "interface C23413e {\n /* renamed from: a */\n void mo60902a(AvatarImageWithVerify avatarImageWithVerify);\n\n /* renamed from: a */\n boolean mo60903a(AvatarImageWithVerify avatarImageWithVerify, UserVerify userVerify);\n\n /* renamed from: b */\n void mo60904b(AvatarImageWithVerify avatarImageWithVerify);\n }", "Type getMethodParameterType() throws IllegalArgumentException;", "String getMethodName();", "String getMethodName();", "private void createMethod(MethodNode method, StringBuffer completion) {\n int insertedModifiers = method.getModifiers() & ~(Opcodes.ACC_NATIVE | Opcodes.ACC_ABSTRACT | Opcodes.ACC_PUBLIC);\n ASTNode.printModifiers(insertedModifiers, completion);\n\n //// Type parameters\n // ignore too difficult and not really needed for Groovy\n\n// GenericsType[] typeVariableBindings = method.getGenericsTypes();\n// if(typeVariableBindings != null && typeVariableBindings.length != 0) {\n// completion.append('<');\n// for (int i = 0; i < typeVariableBindings.length; i++) {\n// if(i != 0) {\n// completion.append(',');\n// completion.append(' ');\n// }\n// createTypeVariable(typeVariableBindings[i], completion);\n// }\n// completion.append('>');\n// completion.append(' ');\n// }\n\n //// Return type\n createType(method.getReturnType(), completion, false);\n completion.append(' ');\n\n //// Selector\n completion.append(method.getName());\n\n completion.append('(');\n\n ////Parameters\n Parameter[] parameters = method.getParameters();\n int length = parameters.length;\n for (int i = 0; i < length; i++) {\n if(i != 0) {\n completion.append(',');\n completion.append(' ');\n }\n createType(parameters[i].getType(), completion, true);\n completion.append(' ');\n completion.append(parameters[i].getName());\n }\n\n completion.append(')');\n\n //// Exceptions\n ClassNode[] exceptions = method.getExceptions();\n\n if (exceptions != null && exceptions.length > 0){\n completion.append(' ');\n completion.append(\"throws\");\n completion.append(' ');\n for(int i = 0; i < exceptions.length ; i++){\n if(i != 0) {\n completion.append(' ');\n completion.append(',');\n }\n createType(exceptions[i], completion, false);\n }\n }\n }", "private MethodType(String name) {\n super(name);\n }", "public interface ResolvedMethodLikeDeclaration extends ResolvedDeclaration, ResolvedTypeParametrizable, HasAccessSpecifier {\n\n /**\n * The package name of the declaring type.\n */\n default String getPackageName() {\n return declaringType().getPackageName();\n }\n\n /**\n * The class(es) wrapping the declaring type.\n */\n default String getClassName() {\n return declaringType().getClassName();\n }\n\n /**\n * The qualified name of the method composed by the qualfied name of the declaring type\n * followed by a dot and the name of the method.\n */\n default String getQualifiedName() {\n return declaringType().getQualifiedName() + \".\" + this.getName();\n }\n\n /**\n * The signature of the method.\n */\n default String getSignature() {\n StringBuilder sb = new StringBuilder();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describeType());\n }\n sb.append(\")\");\n return sb.toString();\n }\n\n /**\n * The qualified signature of the method. It is composed by the qualified name of the declaring type\n * followed by the signature of the method.\n */\n default String getQualifiedSignature() {\n return declaringType().getId() + \".\" + this.getSignature();\n }\n\n /**\n * The type in which the method is declared.\n */\n ResolvedReferenceTypeDeclaration declaringType();\n\n /**\n * Number of params.\n */\n int getNumberOfParams();\n\n /**\n * Get the ParameterDeclaration at the corresponding position or throw IllegalArgumentException.\n */\n ResolvedParameterDeclaration getParam(int i);\n\n /**\n * Utility method to get the last ParameterDeclaration. It throws UnsupportedOperationException if the method\n * has no parameters.\n * The last parameter can be variadic and sometimes it needs to be handled in a special way.\n */\n default ResolvedParameterDeclaration getLastParam() {\n if (getNumberOfParams() == 0) {\n throw new UnsupportedOperationException(\"This method has no typeParametersValues, therefore it has no a last parameter\");\n }\n return getParam(getNumberOfParams() - 1);\n }\n\n /**\n * Has the method or construcor a variadic parameter?\n * Note that when a method has a variadic parameter it should have an array type.\n */\n default boolean hasVariadicParameter() {\n if (getNumberOfParams() == 0) {\n return false;\n } else {\n return getParam(getNumberOfParams() - 1).isVariadic();\n }\n }\n\n @Override\n default Optional<ResolvedTypeParameterDeclaration> findTypeParameter(String name) {\n for (ResolvedTypeParameterDeclaration tp : this.getTypeParameters()) {\n if (tp.getName().equals(name)) {\n return Optional.of(tp);\n }\n }\n return declaringType().findTypeParameter(name);\n }\n\n /**\n * Number of exceptions listed in the throws clause.\n */\n int getNumberOfSpecifiedExceptions();\n\n /**\n * Type of the corresponding entry in the throws clause.\n *\n * @throws IllegalArgumentException if the index is negative or it is equal or greater than the value returned by\n * getNumberOfSpecifiedExceptions\n * @throws UnsupportedOperationException for those types of methods of constructor that do not declare exceptions\n */\n ResolvedType getSpecifiedException(int index);\n\n default List<ResolvedType> getSpecifiedExceptions() {\n if (getNumberOfSpecifiedExceptions() == 0) {\n return Collections.emptyList();\n } else {\n List<ResolvedType> exceptions = new LinkedList<>();\n for (int i = 0; i < getNumberOfSpecifiedExceptions(); i++) {\n exceptions.add(getSpecifiedException(i));\n }\n return exceptions;\n }\n }\n}", "List method_111(class_922 var1, int var2, int var3, int var4);", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "abstract protected Set<Method> createMethods();", "public void mo21782G() {\n }", "void method_114(int var1, int var2);", "@Override\n\tpublic String visitMethodCall(MethodCallContext ctx) {\n\t\tint childrenNo=ctx.children.size();\n\t\tParseTree lastChild=ctx.children.get(childrenNo-1);\n\t\tString returnType;\n\t\tString methodName;\n\t\tif(lastChild instanceof TerminalNode){\n\t\t\tList<String> argTypes=new ArrayList<>();\n\t\t\tStack<String> ids=new Stack<>();\n\t\t\tParseTree n=ctx.children.get(childrenNo-2);\n\t\t\tif (childrenNo<=4){\n\t\t\t\tif(!(n instanceof TerminalNode)){\n\t\t\t\t\tmethodName=ctx.getChild(childrenNo-4).getText();\n\t\t\t\t\tMethodRecord mRec=(MethodRecord) table.lookup(methodName);\n\t\t\t\t\tif (mRec==null)throw new RuntimeException(\"method \"+methodName+ \" is not declared\");\n\t\t\t\t\tList<VarRecord> paramList=(List<VarRecord>) mRec.getParameters();\n\t\t\t\t\tList<ParseTree> arguments= new ArrayList<>();\n\t\t\t\t\tfor(int i=0;i<=n.getChildCount();i+=2){\n\t\t\t\t\t\targuments.add(n.getChild(i));\n\t\t\t\t\t}\n\t\t\t\t\tif(paramList.size()!=arguments.size())throw new RuntimeException(\"Incorrect number of arguments\");\n\t\t\t\t\telse for(int i=0;i<=paramList.size()-1;i++){\n\t\t\t\t\t\tString actualType=visit(arguments.get(i));\n\t\t\t\t\t\tString declaredType=paramList.get(i).getReturnType();\n\t\t\t\t\t\tif(!actualType.equals(declaredType)) throw new RuntimeException(\"Incorrect argument type\");\n\t\t\t\t\t}//checking arguments complete\n\t\t\t\t\treturn mRec.getReturnType();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tClassRecord cRec;\n\t\t\t\t\t\tmethodName=ctx.getChild(childrenNo-3).getText();\n\t\t\t\t\t\tcRec=(ClassRecord) table.lookup(methodName);\n\t\t\t\t\t\tMethodRecord mRec=cRec.getMethod(methodName);\n\t\t\t\t\t\tif (mRec==null)throw new RuntimeException(\"method \"+methodName+ \" is not declared\");\n\t\t\t\t\t\treturn mRec.getReturnType();\n\t\t\t\t\t}\n\t\t\t}else \n\t\t\tif(!(n instanceof TerminalNode)){\n\t\t\t\tmethodName=ctx.getChild(childrenNo-4).getText();\n\t\t\t\t//checking charAt(i) \n\t\t\t\tif(methodName.equals(\"charAt\")){\n\t\t\t\t\tif(n.getChildCount()!=1) throw new RuntimeException(\"Incorrect number of arguments on charAt()function\");\n\t\t\t\t\telse {\n\t\t\t\t\t\tString charArgType=visit(n);\t\t//check argument type is int\n\t\t\t\t\t\tif (!charArgType.equals(\"int\")) throw new RuntimeException(\"ARgument i on function charAt(i) must be of type int\");\n\t\t\t\t\t}\n\t\t\t\t\tString objectType=table.lookup(ctx.getChild(childrenNo-6).getText()).getReturnType();\n\t\t\t\t\tif (!objectType.equals(\"String\")) throw new RuntimeException(\".charAt(i) is applicable only to Strings\");\n\t\t\t\t}\n\t\t\t\tfor(int i=0;i<=n.getChildCount();i+=2){\n\t\t\t\t\targTypes.add(visit(n.getChild(i)));\n\t\t\t\t}\n\t\t\tfor(int i=childrenNo-4;i>=0;i-=2){\n\t\t\t\tids.push(ctx.getChild(i).getText());\n\t\t\t}\n\t\t\t}else{ \n\t\t\t\t//checking .length()\n\t\t\t\tmethodName=ctx.getChild(childrenNo-3).getText();\n\t\t\t\tif(methodName.equals(\"length\")){\n\t\t\t\t\tString objectType=table.lookup(ctx.getChild(childrenNo-5).getText()).getReturnType();\n\t\t\t\t\tif (!objectType.equals(\"String\")) throw new RuntimeException(\".length() is applicale only to Strings\");\n\t\t\t\t}\n\t\t\t\targTypes=null;\n\t\t\t\tfor(int i=childrenNo-3;i>=0;i-=2){\n\t\t\t\t\tids.push(ctx.getChild(i).getText());\n\t\t\t\t}\n\t\t\t}\n\t\t\tint count=ids.size();\n\t\t\tClassRecord cRec=null;\n\t\t\tRecord r;\n\t\t\tfor(int i=0;i<=count-2;i++){\n\t\t\t\tString key=ids.pop();\n\t\t\t\tr= table.lookup(key);\t\t\t\t\n\t\t\t\tcRec=(ClassRecord)table.lookup(r.Type);\n\t\t\t\tif (cRec==null) throw new RuntimeException(\"Class \"+key+\" is not declared\");\t\t\t\t\n\t\t\t}\n\t\t\t//last item in stack is the method Identifier\n\t\t\tMethodRecord mRec=cRec.getMethod(ids.pop());\n\t\t\tif (mRec==null)throw new RuntimeException(\"Method not declared in class \"+cRec.getName());\n\t\t\treturnType=mRec.getReturnType();\n\t\t\tif(methodName.equals(\"charAt\")) returnType=\"char\";\n\t\t\tif(methodName.equals(\"length\"))returnType=\"int\";\n\t\t\t//checking arguments \n\t\t\tif(argTypes==null) return returnType;\n\t\t\telse {\t\t\t\t\n\t\t\t\tList<VarRecord> parameters=(List<VarRecord>) mRec.getParameters();\n\t\t\t\tif(parameters.size()!=argTypes.size()) throw new RuntimeException(\"Incorect number of arguments on method call\");\n\t\t\t\telse{\n\t\t\t\t\tfor(int i=0;i<argTypes.size();i++){\n\t\t\t\t\t\tif(!argTypes.get(i).equals((parameters.get(i).getReturnType()))) throw new RuntimeException (\"incorrect argument type\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} return returnType;\n\t\t}\telse \t\t\t\t\t\t// last node is a RuleNode\n\t\t\t{\n\t\t\t\tif (childrenNo==3){\t\t\t\t\t\n\t\t\t\tString leftType=visit(ctx.getChild(0)); //also checks the first method for undeclared ids\n\t\t\t\t//ClassRecord cRec=(ClassRecord) table.lookup(ctx.getChild(0).getText());\n\t\t\t\tParseTree node=ctx.getChild(2);\n\t\t\t\t//checking charAt function\n\t\t\t\tif((node.getChildCount()==4)&&(node.getChild(3) instanceof TerminalNode)){\t\t\t\n\t\t\t\t\tif (node.getChild(0).getText().equals(\"charAt\")){\n\t\t\t\t\t\tif (!leftType.equals(\"String\")) throw new RuntimeException(\"charAt() only applicable to Strings\");\n\t\t\t\t\t\tString argType=visit(node.getChild(2));\n\t\t\t\t\t\tif (!argType.equals(\"int\")) throw new RuntimeException(\"Incorrect argument in charAt()\");\n\t\t\t\t\t\treturn \"char\";\n\t\t\t\t\t}\n\t\t\t\t}else if(node.getChildCount()==3&&((node.getChild(2) instanceof TerminalNode))){\n\t\t\t\t\tif(node.getChild(0).getText().equals(\"length\")){\n\t\t\t\t\t\tif (!leftType.equals(\"String\")) throw new RuntimeException(\"length() only applicable to Strings\");\n\t\t\t\t\t\telse return \"int\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t{String mName=ctx.getChild(2).getChild(0).getText();\n\t\t\t\tClassRecord tempCR=(ClassRecord) table.lookup(ctx.getChild(0).getChild(0).getText());\n\t\t\t\tMethodRecord mRec=tempCR.getMethod(mName);\n\t\t\t\tif(mRec==null)throw new RuntimeException(\"method \"+mName+\" is not declared in class \"+tempCR.getName());\n\t\t\t\treturn mRec.getReturnType(); //visit the last methodCall in the chain \n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (childrenNo==5){\n\t\t\t\t\tString leftType=visit(ctx.getChild(1)); //also checks the first method for undeclared ids\n\t\t\t\t\tParseTree node=ctx.getChild(4);\n\t\t\t\t\t//checking charAt function\n\t\t\t\t\tif((node.getChildCount()==4)&&(node.getChild(3) instanceof TerminalNode)){\t\t\t\n\t\t\t\t\t\tif (node.getChild(0).getText().equals(\"charAt\")){\n\t\t\t\t\t\t\tif (!leftType.equals(\"String\")) throw new RuntimeException(\"charAt() only applicable to Strings\");\n\t\t\t\t\t\t\telse return visit(node);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(node.getChildCount()==3&&((node.getChild(2) instanceof TerminalNode))){\n\t\t\t\t\t\tif(node.getChild(0).getText().equals(\"length\")){\n\t\t\t\t\t\t\tif (!leftType.equals(\"String\")) throw new RuntimeException(\"length() only applicable to Strings\");\n\t\t\t\t\t\t\telse return visit(node);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tClassRecord cR=(ClassRecord)table.lookup(leftType);\n\t\t\t\t\tMethodRecord mRec=cR.getMethod(node.getChild(0).getText());\n\t\t\t\t\treturn mRec.getReturnType(); //visit the last methodCall in the chain \n\t\t\t\t}\n\t\t\t}\n\t\treturn null; //debuggin purposes. should be unreachable\n\t}", "public void mo21795T() {\n }", "public String getSignature() {\n return \"P\" + getPointedType().getSignature();\n }", "public AmbiguousMethodException() {\n super();\n }", "int method_113();", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\n\tpublic Void visit(OwnMethodCall method) {\n\t\tprintIndent(\"implicit dispatch\");\n\t\tindent++;\n\t\tmethod.methodName.accept(this);\n\t\tfor (var v : method.args) \n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "public MethodSignature(Klass returnType, Klass[] parameterTypes) {\n this.returnType = returnType;\n this.parameterTypes = parameterTypes;\n }", "public void mo5248a() {\n }", "public abstract void mo42329d();", "String getSignature();", "String getSignature();", "String getSignature();", "public interface SignatureObject {\n}", "org.apache.calcite.avatica.proto.Common.Signature getSignature();", "public abstract String mo41079d();" ]
[ "0.64947695", "0.6414132", "0.6405299", "0.63355136", "0.63266826", "0.6287902", "0.6237657", "0.6183305", "0.6183305", "0.60943216", "0.6066301", "0.60621434", "0.60615", "0.6049231", "0.60128224", "0.6008845", "0.60006756", "0.5995903", "0.5953102", "0.5950571", "0.59489554", "0.592867", "0.59115285", "0.5908086", "0.58968174", "0.58793193", "0.58687943", "0.58687943", "0.58643997", "0.58541566", "0.58365023", "0.58316374", "0.5820575", "0.5785791", "0.57856864", "0.57845074", "0.5784058", "0.5777986", "0.57661664", "0.5755664", "0.57547325", "0.5752738", "0.575186", "0.5748404", "0.5746885", "0.5746563", "0.57434", "0.57431597", "0.5740224", "0.5732256", "0.5721354", "0.5718774", "0.57130325", "0.57122004", "0.5707278", "0.57047534", "0.5703402", "0.5699381", "0.56971514", "0.5692908", "0.56915", "0.5677669", "0.56720877", "0.56683034", "0.5664351", "0.56584316", "0.56581575", "0.5653397", "0.5650494", "0.56495255", "0.5648635", "0.5634124", "0.56340456", "0.56290805", "0.5626159", "0.56240416", "0.56240416", "0.56159914", "0.5615802", "0.56147105", "0.5605633", "0.56041175", "0.5601427", "0.5599304", "0.55960476", "0.55945784", "0.5590924", "0.5586373", "0.55803853", "0.5577406", "0.5574866", "0.5574477", "0.5573036", "0.5573034", "0.55711585", "0.5569708", "0.5569708", "0.5569708", "0.55691653", "0.5566695", "0.55653745" ]
0.0
-1
if it is final photo, reset count
@Override public void onClick(View v) { if (current_photo < petPhotoUrlList.size()-1) { current_photo++; imageView.setImageBitmap(photoList[current_photo]); } else{ current_photo=0; imageView.setImageBitmap(photoList[current_photo]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateRecordCurrentImageCount(final Record record) {\n String recordPath = getPathForRecord(record);\n File recordFolder = new File(recordPath);\n if (recordFolder.exists()) {\n File[] recordFiles = recordFolder.listFiles();\n record.photoCount = recordFiles != null ? recordFiles.length - 1 : 0;\n }\n }", "public void undoLastCapturedPhoto() {\n\t\t\n\t}", "public void resetCount() {\n count = 0;\n }", "public void settotalPics(int totalPics)\n {\n //this.totalPics = photo.size();\n this.totalPics = totalPics;\n }", "public static void incrementCountNotImage(int actual) {\n ++countImagesNotFound[actual];\n }", "private void clearMediaCount() {\n \n mediaCount_ = 0;\n }", "public static void resetCount() {\n count = 1;\n }", "public void resetCount() {\n\t\tcount = 0;\n\t}", "void clearDataAndProceed() {\n\t\tclearData();\n\t\tfileCounter++;\n\t\tif (fileCounter >= fileNames.size()){\n\t\t\tSystem.exit(0);\n\t\t\tSystem.out.println(\"Images over\");\n\t\t}\n\t\tloadImage();\n\t}", "public void changePhoto() {\r\n\t\tisPictFetche = false;\r\n\t\tlaPhoto = new Photo();\r\n\t\tlaPhotoCandidate = new Photo();\r\n\t}", "private void takePhotoCompleted() {\n if (MyDebug.LOG)\n Log.d(TAG, \"takePhotoCompleted\");\n // need to set jpeg_todo to false before calling onCompleted, as that may reenter CameraController to take another photo (if in auto-repeat burst mode) - see testTakePhotoRepeat()\n synchronized (background_camera_lock) {\n jpeg_todo = false;\n }\n checkImagesCompleted();\n }", "public void reset() {\n\t\tcount = 0;\n\t}", "public void unReset () {\n count = lastSave;\n }", "public int getImageCount() {\n return imageCount;\n }", "void reset() {\n count = 0;\n\n }", "public void reset() {\n\t\tthis.count = 0;\n\t}", "public int getPicCount(){\n return picCount;\n }", "public void resetBallCount() {\r\n\t\tballCount = 30;\r\n\t}", "public int getTotalPics()\n {\n\t\t/*System.out.println(\"photo\"+photo.size());\n\t\tif(photo.size() == 0)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tSystem.out.println(totalPics);*/\n return this.totalPics;\n }", "public void reset() {\n this.count = 0;\n this.average = 0.0;\n }", "public void setCountToZero() {\r\n \r\n // set count to 0\r\n count = 0;\r\n }", "public void incuploadcount(){\n\t\tthis. num_upload++;\n\t}", "public synchronized void resetArticlePhotoList() {\n articlePhotoList = null;\n }", "public void reset () {\n lastSave = count;\n count = 0;\n }", "public void tryaAainPhoto() {\n\t\tthis.photo_attache_capture = false;\n\t}", "private void aumentarPilha() {\n this.pilhaMovimentos++;\n }", "public int getimagecounter() {\n\t\treturn imagecounter;\r\n\t}", "int imageCount();", "@Generated(hash = 1786532268)\npublic synchronized void resetImagemOcorrencias() {\n imagemOcorrencias = null;\n}", "@Override\n public void onCanceled(EasyImage.ImageSource source, int type) {\n Log.d(TAG, \"Canceling taken photo\");\n if (source == EasyImage.ImageSource.CAMERA) {\n File photoFile = EasyImage.lastlyTakenButCanceledPhoto(getBaseContext());\n if (photoFile != null) {\n Boolean isDeleted = photoFile.delete();\n }\n }\n }", "private void setPhotoAttcher() {\n\n }", "public int getNoOfImages() {\n return noOfImages;\n }", "private void processAndSetImage() {\n\n // Resample the saved image to fit the ImageView\n mResultsBitmap = resamplePic(this, mTempPhotoPath);\n\n// tv.setText(base64conversion(photoFile));\n//\n// Intent intent = new Intent(Intent.ACTION_SEND);\n// intent.setType(\"text/plain\");\n// intent.putExtra(Intent.EXTRA_TEXT, base64conversion(photoFile));\n// startActivity(intent);\n\n /**\n * UPLOAD IMAGE USING RETROFIT\n */\n\n retroFitHelper(base64conversion(photoFile));\n\n // Set the new bitmap to the ImageView\n imageView.setImageBitmap(mResultsBitmap);\n }", "private void clearLikesCount() {\n \n likesCount_ = 0;\n }", "private int calculateImagesNotFound() {\n int imagesNotFound = 0;\n for (int count : countImagesNotFound) {\n imagesNotFound += count;\n }\n\n return imagesNotFound;\n }", "public void resetImages() {\n \timages[TOP].setOnClickListener(null);\n \timages[BOTTOM].setOnClickListener(null);\n \timages[TOP].setOnLongClickListener(null);\n \timages[BOTTOM].setOnLongClickListener(null);\n\t\tshowDialog(PROGRESS_DIALOG);\n }", "public void setNoOfImages(int noOfImages) {\n this.noOfImages = noOfImages;\n }", "public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}", "public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}", "public void resetCount() {\n\t\tresetCount(lineNode);\n\t}", "public int getNumPhotos() {\n\t\treturn photos.size();\n\t}", "@Override\n public void onCanceled(EasyImage.ImageSource source) {\n if (source == EasyImage.ImageSource.CAMERA) {\n File photoFile = EasyImage.lastlyTakenButCanceledPhoto(MainActivity.this);\n if (photoFile != null) photoFile.delete();\n }\n }", "@Override\n public void onComplete(@NonNull Task<PlacePhotoMetadataResponse> task) {\n try{\n PlacePhotoMetadataResponse photos = task.getResult();\n\n // Get the PlacePhotoMetadataBuffer (metadata for all of the photos).\n photoMetadataBuffer = photos.getPhotoMetadata();\n MyAdapter.photoMetadataBuffer = photos.getPhotoMetadata();\n\n Log.d(\"MainActivity\",photoMetadataBuffer.toString());\n\n Log.d(\"MainActivity\", \" Number of photos \" + photoMetadataBuffer.getCount());\n\n\n // Get the first photo in the list.\n MyAdapter.myPhotos = null;\n if(photoMetadataBuffer.getCount() == 0){\n getYelpReviews();\n MyAdapter.myPhotos = null;\n }\n else{\n myPhotos = new Bitmap[photoMetadataBuffer.getCount()];\n Log.d(\"MainActivity\", \" Number of photos \" + photoMetadataBuffer.getCount());\n\n int i = 0;\n for(i=0;i<photoMetadataBuffer.getCount();i++){\n PlacePhotoMetadata photoMetadata = photoMetadataBuffer.get(i);\n // Get a full-size bitmap for the photo.\n Task<PlacePhotoResponse> photoResponse = mGeoDataClient.getPhoto(photoMetadata);\n\n final int finalI = i;\n photoResponse.addOnCompleteListener(new OnCompleteListener<PlacePhotoResponse>() {\n @Override\n public void onComplete(@NonNull Task<PlacePhotoResponse> task) {\n PlacePhotoResponse photo = task.getResult();\n myPhotos[finalI] = photo.getBitmap();\n Log.d(\"MainActivity\",\"Completed\" + finalI);\n if(finalI == photoMetadataBuffer.getCount()-1){\n getYelpReviews();\n\n }\n }\n });\n\n MyAdapter.myPhotos = myPhotos;\n }\n }\n } catch (Exception e){\n Log.d(\"MainActivity\",\"Some Error Occured\" + e.toString());\n }\n\n }", "public void resetCounts() {\n // For each item in the RecyclerView\n for(int pos = 0; pos < numItems; pos++) {\n // Reset the count variable of the item\n DataStorage.listInUse.getList().get(pos).reset();\n notifyItemChanged(pos);\n }\n }", "@Override\n public void onClick(View v) {\n if(imageCounter<3)\n showFileChooser();\n else\n Toast.makeText(AddNewCommentActivity.this,\"最多只能添加三张照片哦!\",Toast.LENGTH_SHORT).show();\n }", "public void resetRunCount() {\n\n }", "public void incFileCount(){\n\t\tthis.num_files++;\n\t}", "@Override\r\n\tpublic int updatepic(Account account) {\n\t\taccountMapper.updatepic(account);\r\n\t\treturn 0;\r\n\t}", "@Override\r\n\t\tpublic int getCount() {\n\t\t\treturn MainActivity.pictures.length;\r\n\t\t}", "private void resetMagazine() {\n magazineCounter = magazineSize;\n reloading = false;\n notifyObserver();\n }", "@Override\n public void onCanceled(EasyImage.ImageSource source, int type) {\n if (source == EasyImage.ImageSource.CAMERA) {\n File photoFile = EasyImage.lastlyTakenButCanceledPhoto(MainActivity.this);\n if (photoFile != null) photoFile.delete();\n }\n }", "public void updateViewCnt(Integer imgnum) throws Exception;", "public void resetBidCount() {\r\n bidCount = 0;\r\n }", "public void resetMissedCallsCount();", "public static void resetTestCount() {\n mTestCount = 0;\n }", "public void resetUpdateCount() {\n updateCount = 0;\n numNucleiToRemove = 0;\n }", "public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n mask = null;\r\n\r\n if (keepProgressBar == false) {\r\n disposeProgressBar();\r\n }\r\n\r\n try {\r\n super.finalize();\r\n } catch (Throwable er) { }\r\n }", "@Override\n\t\t\tpublic int getCount() {\n\t\t\t\treturn imageId.length;\n\t\t\t}", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "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 }", "public void onPostExecute(byte[] originalJpegData) {\n LongshotPictureCallback.this.updateExifAndSave(Exif.getExif(originalJpegData), originalJpegData, camera);\n }", "@Override\n\tpublic void reset() {\n\t\tmProgress = 0;\n\t}", "int getImagesByHandlerCount();", "public void setinitialcounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, 0).commit();\r\n\t}", "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 int getCount() {\n return imageIDs.length;\n }", "public void overwriteObjectCount(long objectCount) {\n\t\tthis.expectedObjectCount = objectCount;\n\t}", "protected void changePic() {\nif(framesforUser.isEmpty())\n{\nToast.makeText(getApplicationContext(), \"Finished!\", Toast.LENGTH_LONG);\nmodeTextView.setText(\"Finished\");\nnewImgButton.setEnabled(false);\n\n}\nelse{\n\tCollections.shuffle(framesforUser);\n\n\tcurrentPicIndex=framesforUser.get(0);\n\n\t\t Log.e(\"SY\", \"Current PicIndex= \"+currentPicIndex+\" \"+framesforUser.get(0));\n\t\t currentOverlay = getResources().getDrawable(resourcefromframeorder[framesforUser.get(0)]);\n\t\t \n\t\t overlayview.setImageDrawable(currentOverlay);\n\t\t cameraframe.removeView(overlayview);\n\t\t cameraframe.addView(overlayview,1);\n\n\t\t framenumTextView.setText(currentPicIndex+\"\");\n\t\t\tcountdownView.setText(framesforUser.size()+\"\");\n\n\t}\n }", "@Override\n public void resetUploadProgress() {\n ProgressBarLogic.resetProgress();\n }", "public int getCount() {\n\t\t\treturn this.myImageIds.length;\n\t\t}", "@Override\n public void initialize() {\n counter = 0;\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQ_CODE) {\n if (resultCode == RESULT_OK) {\n int img_number = data.getExtras().getInt(VALUE_KEY);\n if (img_number == 1) {\n ImageView img = (ImageView) findViewById(R.id.imageView_MyAvatar);\n img.setImageDrawable(getDrawable(R.drawable.avatar_f_1));\n IMAGE_NUMBER = 1;\n } else if (img_number == 2) {\n ImageView img = (ImageView) findViewById(R.id.imageView_MyAvatar);\n img.setImageDrawable(getDrawable(R.drawable.avatar_f_2));\n IMAGE_NUMBER = 2;\n } else if (img_number == 3) {\n ImageView img = (ImageView) findViewById(R.id.imageView_MyAvatar);\n img.setImageDrawable(getDrawable(R.drawable.avatar_f_3));\n IMAGE_NUMBER = 3;\n } else if (img_number == 4) {\n ImageView img = (ImageView) findViewById(R.id.imageView_MyAvatar);\n img.setImageDrawable(getDrawable(R.drawable.avatar_m_1));\n IMAGE_NUMBER = 4;\n } else if (img_number == 5) {\n ImageView img = (ImageView) findViewById(R.id.imageView_MyAvatar);\n img.setImageDrawable(getDrawable(R.drawable.avatar_m_2));\n IMAGE_NUMBER = 5;\n } else if (img_number == 6) {\n ImageView img = (ImageView) findViewById(R.id.imageView_MyAvatar);\n img.setImageDrawable(getDrawable(R.drawable.avatar_m_3));\n IMAGE_NUMBER = 6;\n }\n }\n }\n }", "private void resetImageTableRows() {\n\n for (int i = 0; i < MAX_IMAGES; i++) {\n\n if (imageFilesToUpload[i] != null)\n imageFilesToUpload[i].delete();\n\n imageFilesToUpload[i] = null;\n imageHolders[i].setImageResource(R.drawable.add_image_placeholder);\n imageButtons[i].setVisibility(INVISIBLE);\n\n if (i != 0)\n imageTableRows[i].setVisibility(GONE);\n }\n }", "public void resetProcessed() {\r\n for (int x = 0; x < image.getWidth(); x++) {\r\n for (int y = 0; y < image.getHeight(); y++) {\r\n maskDone[x][y] = false;\r\n }\r\n }\r\n }", "public void reset() {\n/* 54 */ this.count = 0;\n/* 55 */ this.totalTime = 0L;\n/* */ }", "@Override\n protected void onHandleIntent(Intent intent) {\n int session = intent.getIntExtra(WelcomeActivity.SESSION, 0);\n Log.d(\"Postal\", \"Service: \" + session);\n\n\n dataSource = new ImageDataSource(getApplicationContext());\n database = dataSource.getDatabase();\n\n Cursor cursor = database.query(SQLiteHelper.IMAGE_TABLE,\n new String[] {SQLiteHelper._ID, SQLiteHelper.ORIGINAL_IMAGE_LOC, SQLiteHelper.TYPE, SQLiteHelper.ORIENTATION},\n SQLiteHelper.EDITTED_STATUS + \"=? AND \" + SQLiteHelper.SESSION + \"=?\",\n new String[]{String.valueOf(0), String.valueOf(session)},\n null, null, null);\n\n\n\n if (cursor.moveToFirst()) {\n int imageCount = cursor.getCount();\n int currentImage = 1;\n Log.d(\"Postal\", \"imageCount: \" + imageCount);\n\n\n do {\n String location = cursor.getString(cursor.getColumnIndex(SQLiteHelper.ORIGINAL_IMAGE_LOC));\n int type = cursor.getInt(cursor.getColumnIndex(SQLiteHelper.TYPE));\n int orientation = cursor.getInt(cursor.getColumnIndex(SQLiteHelper.ORIENTATION));\n int database_id = cursor.getInt(cursor.getColumnIndex(SQLiteHelper._ID));\n\n createScaledImage(location, type, orientation, session, database_id);\n Log.d(\"Postal\", \"Finished id: \" + database_id);\n Intent intent2 = new Intent(BROADCAST);\n intent2.putExtra(\"totalImages\", imageCount);\n intent2.putExtra(\"currentImage\", currentImage);\n intent2.putExtra(\"complete\", false);\n\n\n LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(intent2);\n currentImage +=1;\n }while (cursor.moveToNext()) ;\n\n }\n\n SharedPreferences prefs = getSharedPreferences(WelcomeActivity.PREFS_NAME, MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putBoolean(OrderSummary.SCALED_IMAGE_SERVICE_COMPLETE, true);\n editor.commit();\n\n Intent completeIntent = new Intent(BROADCAST);\n completeIntent.putExtra(\"complete\", true);\n LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(completeIntent);\n\n\n\n }", "public int getCount() {\n return mImages.length;\n }", "@Override\n\tprotected void onPhotoTaked(String photoPath) {\n\t\t\n\t}", "private void setMediaCount(int value) {\n \n mediaCount_ = value;\n }", "int getImagesByTransformCount();", "public int changedPhoto(DatabaseItem item) throws DataSnapshotException {\n\t\treturn 0;\r\n\t}", "public void reset() {\n finished = false;\n }", "public int getNumberOfPhotos(){\n\t\tint num = 0;\n\t\ttry {\n\t\t\tFileInputStream in = new FileInputStream(\"images\");\n\t\t\t//Skipping magic number\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tin.read();\n\t\t\t}\n\t\t\tbyte[] tmpVar = new byte[4];\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\ttmpVar[i] = (byte) in.read();\n\t\t\t}\n\t\t\tnum = ByteBuffer.wrap(tmpVar).getInt();\n\t\t\tin.close();\n\t\t}catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn num;\n\t\t\n\t}", "@Override\n public void setCounterToInitialAmount() {\n UserPreferences.sharedInstance().setEventId(null);\n //reset timer to normal recording time\n timeCounter = UserPreferences.sharedInstance().recordTime() * 1000;\n }", "public static void resetStatistics()\r\n {\r\n \t//System.out.println ( \"Resetting statistics\");\r\n count_ = 0; \r\n }", "@Override\n public void onFinish() {\n i++;\n transferBalance(picture.getId(), AppConfig.URL_TRANSFER_PICTURE, getArguments().getString(\"userId\"));\n }", "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 reset() {\n mNewNotificationCount.setValue(0);\n }", "public void reset() {\n while (getNumTotal() > 0) {\n this.removeNuclei();\n }\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n }", "@Override\n protected void commitProperties() {\n if (imageLoadTypeChanged) {\n imageLoadTypeChanged = false;\n frontPageView.setImageLoadType(imageLoadType);\n backPageView.setImageLoadType(imageLoadType);\n }\n }", "public void updateExifAndSave(ExifInterface exif, byte[] originalJpegData, final CameraProxy camera) {\n if (this.mLongshotCount == (short) 0) {\n this.mName = PhotoModule.this.mNamedImages.getNextNameEntity();\n }\n final Map<String, Object> externalBundle = new HashMap();\n externalBundle.put(ExternalExifInterface.BURST_SHOT_ID, Integer.valueOf(hashCode()));\n String str = ExternalExifInterface.BURST_SHOT_INDEX;\n short s = this.mLongshotCount;\n this.mLongshotCount = (short) (s + 1);\n externalBundle.put(str, Short.valueOf(s));\n Tag access$500 = PhotoModule.TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"long shot taken for \");\n stringBuilder.append(this.mLongshotCount);\n Log.w(access$500, stringBuilder.toString());\n if (PhotoModule.this.mShouldResizeTo16x9) {\n ResizeBundle dataBundle = new ResizeBundle();\n dataBundle.jpegData = originalJpegData;\n dataBundle.targetAspectRatio = 1.7777778f;\n dataBundle.exif = exif;\n new AsyncTask<ResizeBundle, Void, ResizeBundle>() {\n /* Access modifiers changed, original: protected|varargs */\n public ResizeBundle doInBackground(ResizeBundle... resizeBundles) {\n return PhotoModule.this.cropJpegDataToAspectRatio(resizeBundles[0]);\n }\n\n /* Access modifiers changed, original: protected */\n public void onPostExecute(ResizeBundle result) {\n LongshotPictureCallback.this.saveFinalPhoto(result.jpegData, LongshotPictureCallback.this.mName, result.exif, camera, externalBundle);\n }\n }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new ResizeBundle[]{dataBundle});\n return;\n }\n saveFinalPhoto(originalJpegData, this.mName, exif, camera, externalBundle);\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 }", "public void saveFinalPhoto(byte[] jpegData, NamedEntity name, ExifInterface exif, CameraProxy camera, Map<String, Object> externalInfo) {\n byte[] bArr = jpegData;\n NamedEntity namedEntity = name;\n ExifInterface exifInterface = exif;\n int orientation = Exif.getOrientation(exif);\n float zoomValue = 1.0f;\n if (PhotoModule.this.mCameraCapabilities.supports(Feature.ZOOM)) {\n zoomValue = PhotoModule.this.mCameraSettings.getCurrentZoomRatio();\n }\n float zoomValue2 = zoomValue;\n boolean hdrOn = SceneMode.HDR == PhotoModule.this.mSceneMode;\n String flashSetting = PhotoModule.this.mActivity.getSettingsManager().getString(PhotoModule.this.mAppController.getCameraScope(), Keys.KEY_FLASH_MODE);\n boolean gridLinesOn = Keys.areGridLinesOn(PhotoModule.this.mActivity.getSettingsManager());\n UsageStatistics instance = UsageStatistics.instance();\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(namedEntity.title);\n stringBuilder.append(Storage.JPEG_POSTFIX);\n instance.photoCaptureDoneEvent(10000, stringBuilder.toString(), exifInterface, camera.getCharacteristics().isFacingFront(), hdrOn, zoomValue2, flashSetting, gridLinesOn, Float.valueOf((float) PhotoModule.this.mTimerDuration), PhotoModule.this.mShutterTouchCoordinate, Boolean.valueOf(PhotoModule.this.mVolumeButtonClickedFlag));\n PhotoModule.this.mShutterTouchCoordinate = null;\n PhotoModule.this.mVolumeButtonClickedFlag = false;\n int orientation2;\n if (PhotoModule.this.mIsImageCaptureIntent) {\n orientation2 = orientation;\n PhotoModule.this.mJpegImageData = bArr;\n PhotoModule.this.mUI.disableZoom();\n if (PhotoModule.this.mQuickCapture) {\n PhotoModule.this.onCaptureDone();\n } else {\n Log.v(PhotoModule.TAG, \"showing UI\");\n PhotoModule.this.mUI.showCapturedImageForReview(bArr, orientation2, false);\n PhotoModule.this.mIsInIntentReviewUI = true;\n }\n } else {\n int width;\n int height;\n int width2;\n int DEPTH_H;\n Integer exifWidth = exifInterface.getTagIntValue(ExifInterface.TAG_PIXEL_X_DIMENSION);\n Integer exifHeight = exifInterface.getTagIntValue(ExifInterface.TAG_PIXEL_Y_DIMENSION);\n if (!PhotoModule.this.mShouldResizeTo16x9 || exifWidth == null || exifHeight == null) {\n Size s = PhotoModule.this.mCameraSettings.getCurrentPhotoSize();\n if ((PhotoModule.this.mJpegRotation + orientation) % MediaProviderUtils.ROTATION_180 == 0) {\n width = s.width();\n height = s.height();\n } else {\n width2 = s.height();\n height = s.width();\n width = width2;\n }\n } else {\n width = exifWidth.intValue();\n height = exifHeight.intValue();\n }\n String title = namedEntity == null ? null : namedEntity.title;\n if (PhotoModule.this.mDebugUri != null) {\n PhotoModule.this.saveToDebugUri(bArr);\n if (title != null) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(PhotoModule.DEBUG_IMAGE_PREFIX);\n stringBuilder2.append(title);\n title = stringBuilder2.toString();\n }\n }\n if (title == null) {\n Log.e(PhotoModule.TAG, \"Unbalanced name/data pair\");\n orientation2 = orientation;\n } else {\n StringBuilder stringBuilder3;\n if (namedEntity.date == -1) {\n namedEntity.date = PhotoModule.this.mCaptureStartTime;\n }\n if (PhotoModule.this.mHeading >= 0) {\n ExifTag directionRefTag = exifInterface.buildTag(ExifInterface.TAG_GPS_IMG_DIRECTION_REF, \"M\");\n ExifTag directionTag = exifInterface.buildTag(ExifInterface.TAG_GPS_IMG_DIRECTION, new Rational((long) PhotoModule.this.mHeading, 1));\n exifInterface.setTag(directionRefTag);\n exifInterface.setTag(directionTag);\n }\n if (externalInfo != null) {\n exifInterface.setTag(exifInterface.buildTag(ExifInterface.TAG_USER_COMMENT, CameraUtil.serializeToJson(externalInfo)));\n }\n if (PhotoModule.this.mCameraSettings.isMotionOn()) {\n stringBuilder3 = new StringBuilder();\n stringBuilder3.append(\"MV\");\n stringBuilder3.append(title);\n title = stringBuilder3.toString();\n }\n String title2 = title;\n Integer num;\n if (PhotoModule.this.isDepthEnabled()) {\n ArrayList<byte[]> bokehBytes = MpoInterface.generateXmpFromMpo(jpegData);\n if (bokehBytes != null) {\n Tag access$500 = PhotoModule.TAG;\n stringBuilder3 = new StringBuilder();\n stringBuilder3.append(\"bokehBytes.size()\");\n stringBuilder3.append(bokehBytes.size());\n Log.d(access$500, stringBuilder3.toString());\n }\n if (bokehBytes == null || bokehBytes.size() <= 2) {\n Log.v(PhotoModule.TAG, \"save addImage\");\n orientation2 = orientation;\n PhotoModule.this.getServices().getMediaSaver().addImage(bArr, title2, namedEntity.date, this.mLocation, width, height, orientation, exifInterface, PhotoModule.this.mOnMediaSavedListener, PhotoModule.this.mContentResolver);\n } else {\n int DEPTH_W;\n GImage gImage = new GImage((byte[]) bokehBytes.get(1), \"image/jpeg\");\n Size photoSize = PhotoModule.this.mCameraSettings.getCurrentPhotoSize();\n int photoWidth = photoSize.width();\n width2 = photoSize.height();\n if (((float) photoWidth) / ((float) width2) == 1.3333334f) {\n DEPTH_W = 896;\n DEPTH_H = DepthUtil.DEPTH_HEIGHT_4_3;\n Log.d(PhotoModule.TAG, \"set width x height to 4:3 size by default\");\n } else if (((float) photoWidth) / ((float) width2) == 1.7777778f) {\n DEPTH_W = 896;\n DEPTH_H = DepthUtil.DEPTH_HEIGHT_16_9;\n Log.d(PhotoModule.TAG, \"set width x height to 16:9 size\");\n } else {\n DEPTH_W = 1000;\n DEPTH_H = 500;\n Log.d(PhotoModule.TAG, \"set width x height to 18:9 size\");\n }\n DepthMap depthMap = new DepthMap(DEPTH_W, DEPTH_H, MediaProviderUtils.ROTATION_180);\n depthMap.buffer = (byte[]) bokehBytes.get(bokehBytes.size() - 1);\n Tag access$5002 = PhotoModule.TAG;\n StringBuilder stringBuilder4 = new StringBuilder();\n stringBuilder4.append(\"depthMap.buffer = \");\n stringBuilder4.append(depthMap.buffer.length);\n Log.v(access$5002, stringBuilder4.toString());\n GDepth gDepth = GDepth.createGDepth(depthMap);\n float depthNear = ((Float) PhotoModule.this.mPreviewResult.get(DepthUtil.bokeh_gdepth_near)).floatValue();\n float depthFar = ((Float) PhotoModule.this.mPreviewResult.get(DepthUtil.bokeh_gdepth_far)).floatValue();\n byte depthFormat = ((Byte) PhotoModule.this.mPreviewResult.get(DepthUtil.bokeh_gdepth_format)).byteValue();\n gDepth.setNear(depthNear);\n gDepth.setFar(depthFar);\n gDepth.setFormat(depthFormat);\n Tag access$5003 = PhotoModule.TAG;\n StringBuilder stringBuilder5 = new StringBuilder();\n stringBuilder5.append(\"westalgo depth_near: \");\n stringBuilder5.append(depthNear);\n stringBuilder5.append(\"depth_far: \");\n stringBuilder5.append(depthFar);\n stringBuilder5.append(\"depth_format:\");\n stringBuilder5.append(depthFormat);\n Log.d(access$5003, stringBuilder5.toString());\n Log.v(PhotoModule.TAG, \"save addXmpImage\");\n exif.addMakeAndModelTag();\n PhotoModule.this.getServices().getMediaSaver().addXmpImage((byte[]) bokehBytes.get(0), gImage, gDepth, title2, namedEntity.date, null, width, height, orientation, exifInterface, XmpUtil.GDEPTH_TYPE, PhotoModule.this.mOnMediaSavedListener, PhotoModule.this.mContentResolver, \"jpeg\");\n Integer num2 = exifHeight;\n num = exifWidth;\n orientation2 = orientation;\n }\n } else {\n num = exifWidth;\n orientation2 = orientation;\n PhotoModule.this.getServices().getMediaSaver().addImage(bArr, title2, namedEntity.date, this.mLocation, width, height, orientation2, exif, PhotoModule.this.mOnMediaSavedListener, PhotoModule.this.mContentResolver);\n }\n }\n DEPTH_H = orientation2;\n }\n PhotoModule.this.getServices().getRemoteShutterListener().onPictureTaken(bArr);\n PhotoModule.this.mActivity.updateStorageSpaceAndHint(null);\n }", "@Override\n\tpublic void count() {\n\t\t\n\t}", "public int getCount() {\r\n\t\t\treturn ((HerdinatorApplication) getApplication()).imageIDs.length;\r\n\t\t}", "public int getNumberOfImages() { return this.images.size(); }", "public void resetMoveCount() {\r\n\t\tmoveCount = 0;\r\n\t}", "int getImgDataCount();", "@Override\n public void onAlreadySaved(@NonNull PhotoCache photoCache) {\n Toast.makeText(context, \"The file already exist in:\\n\" +\n DEFAULT_PATH, Toast.LENGTH_SHORT).show();\n notifyAfterDownloadingProgress();\n }" ]
[ "0.67025197", "0.6518826", "0.62462723", "0.6239675", "0.62175316", "0.61943084", "0.6144409", "0.6084961", "0.5951919", "0.5892202", "0.585516", "0.57616836", "0.5686907", "0.5672365", "0.56653297", "0.5660176", "0.5651581", "0.5640786", "0.5618219", "0.55983543", "0.5575923", "0.557415", "0.5564194", "0.555868", "0.55173916", "0.55065495", "0.54965264", "0.5496383", "0.5462733", "0.5441118", "0.54296637", "0.5416159", "0.5405903", "0.54056287", "0.5395375", "0.5390414", "0.5354977", "0.5334859", "0.5334859", "0.533269", "0.5329832", "0.53241754", "0.53159755", "0.53061146", "0.5304276", "0.5294538", "0.5294397", "0.52848715", "0.5254681", "0.52535", "0.5249366", "0.5233225", "0.5232123", "0.5221229", "0.5211005", "0.5206778", "0.52059543", "0.5200069", "0.5198566", "0.51957035", "0.51862806", "0.5181001", "0.51768243", "0.517349", "0.51698023", "0.5169597", "0.51670665", "0.5161493", "0.5155503", "0.5154418", "0.5152004", "0.5152004", "0.51483107", "0.5144863", "0.5138613", "0.5129948", "0.5127188", "0.5122936", "0.51119125", "0.5110976", "0.5107551", "0.5095667", "0.5089802", "0.50837725", "0.5074006", "0.50688535", "0.5065864", "0.5061407", "0.5060291", "0.50543606", "0.5047491", "0.5046038", "0.5035024", "0.50324833", "0.5031024", "0.50295067", "0.50239694", "0.5023343", "0.50215614", "0.5016232" ]
0.5559256
23
click and show Shelter Page
public void showShelter(View view) throws IOException{ Intent goShelter = new Intent(this,ShelterInfoActivity.class); goShelter.putExtra("shelterId",shelterId); startActivity(goShelter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "HtmlPage clickSiteName();", "private void inspectShelterAt(Point p)\n {\n // Ignore clicks outside the actual grid of shelters\n int col = (int) p.getX();\n if ( col < 0 ) return;\n if ( col >= shelters.getGridWidth() ) return;\n \n int row = (int) p.getY();\n if ( row < 0 ) return;\n if ( row >= shelters.getGridHeight() ) return;\n \n Shelter s = shelters.getShelterAt( col, row );//shelterGrid[col][row];\n\n if (s != null)\n {\n // use hash map to see if the window is already created, and if so,\n // just focus; otherwise, create a new inspector window\n double time = simulation.getTime();\n String id = s.getRow() + \",\" + s.getCol() + \" \" + time;\n ShelterInspector window = ShelterInspector.windowList.get(id);\n if (window == null)\n {\n window = new ShelterInspector(s, time, id);\n ShelterInspector.windowList.put(id, window);\n }\n window.setVisible(true);\n }\n }", "public void clickDemandSideManagement();", "private void viewPageClicked(ActionEvent event) {\n\n Item tempItem = new Item();\n String itemURL = tempItem.itemURL;\n Desktop dk = Desktop.getDesktop();\n try{\n dk.browse(new java.net.URI(itemURL));\n }catch(IOException | URISyntaxException e){\n System.out.println(\"The URL on file is invalid.\");\n }\n\n showMessage(\"Visiting Item Web Page\");\n\n }", "HtmlPage clickSiteLink();", "private void viewPageClicked() {\n //--\n //-- WRITE YOUR CODE HERE!\n //--\n try{\n Desktop d = Desktop.getDesktop();\n d.browse(new URI(itemView.getItem().getURL()));\n }catch(Exception e){\n e.printStackTrace();\n }\n\n showMessage(\"View clicked!\");\n }", "@Command\t\n\tpublic void menuClicked(@BindingParam(\"pagename\") String pagename)\n\t{\n\t\t\n\t\tVlayout vl=(Vlayout)Path.getComponent(\"/mainlayout\");\n\t\t//Scrollview s=(Scrollview)vl.getFellow(\"scvCenter\");\n\t\t//Executions.createComponents(pagename, s, null);\n\t\t\t\n\t}", "private WriteAReviewPage clickOnStartHereButton(){\n click(button_StartHereLocator);\n return new WriteAReviewPage();\n }", "public void switchToHighScoresScreen() {\n \tCardLayout currLayout = (CardLayout) screens.getLayout();\n \tcurrLayout.show(screens, \"highscores\");\n }", "public static void ShowHelpScreen() {\n ToggleVisibility(HelpPage.window);\n }", "void goToWhiteboardSelect(){\n CollaboardGUI.this.setSize(500,500);\n CardLayout layout = (CardLayout) panels.getLayout();\n layout.show(panels, \"whiteboard\");\n }", "public void Open() {\r\n\t click();\r\n\t }", "public void switchToTalentPanel() {\r\n this.midPanelCards.show(this.flipPanel, \"TalentPanel\");\r\n }", "private void viewPage(String club) throws JSONException, InterruptedException {\r\n logger.log(Level.INFO, \"Would you like to view the \" + \r\n club + \" clubpage? (y/n)\");\r\n \r\n // if yes, go to club page\r\n // else return to display prompt\r\n if(\"y\".equalsIgnoreCase(in.nextLine())) {\r\n \t Club clubToView = new Club(club);\r\n \t clubToView.printClubPromptsAndInfo(PolyClubsConsole.user instanceof ClubAdmin);\r\n }\r\n \r\n else \r\n displaySearch(); \r\n }", "private void btn_HelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_HelpActionPerformed\n // go to help screen\n SIHS = new HelpScreen(value);\n SIHS.setVisible(true);\n\n\n }", "private void switchTo(String pageValue) {\n\t\tthis.fenetre.getCardLayout().show(this.fenetre.getContentPane(), pageValue);\n\t}", "private void goToShop() {\n shopMenu.runMenu();\n }", "public void showTitleScreen() {\n frame.showMenu();\n }", "HtmlPage clickLink();", "public void showQuestsToPickScreen(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/QuestsToPickScreen.fxml\"));\n mainScreenController.getSecondaryScreen().getChildren().clear();\n mainScreenController.getSecondaryScreen().getChildren().add((AnchorPane) loader.load());\n \n QuestsToPickScreenController controller = loader.getController();\n controller.setGame(this);\n }catch(IOException e){\n }\n }", "public void mouseClicked(MouseEvent e)\n {\n Point p = convertToLogical(e.getX(), e.getY());\n inspectShelterAt(p);\n }", "public DashBoardPage NavigateToMittICA()\n{\n\tif(Action.IsVisible(Master_Guest_Mitt_ICA_Link))\n\tAction.Click(Master_Guest_Mitt_ICA_Link);\n\telse\n\t\tAction.Click(Master_SignIN_Mitt_ICA_Link);\n\treturn this;\n}", "public void switchToMenuScreen() {\n \tCardLayout currLayout = (CardLayout) screens.getLayout();\n \tcurrLayout.show(screens, \"menu\");\n }", "public void switchToInstructionScreen() {\n \tCardLayout currLayout = (CardLayout) screens.getLayout();\n \tcurrLayout.show(screens, \"insn\");\n }", "private void goToMenu() {\n game.setScreen(new MainMenuScreen(game));\n\n }", "public void showPage_MainContainer(String page){\n if(!(this.currentPage_ActionPanel.equals(page))){\n cardLayout_Action.show(mainActionPanel,page);\n currentPage_ActionPanel = page;\n }\n }", "void goMainScreen(){\n\t\tcheckSavePwd();\n\t\tActionEvent e = new ActionEvent();\n\t\te.sender = this;\n\t\te.action = ActionEventConstant.ACTION_SWITH_TO_CATEGORY_SCREEN;\n\t\tUserController.getInstance().handleSwitchActivity(e);\n\t}", "public void routetopage() {\n this.setVisible(true);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n frame.setVisible(false);//when user clicks health assistant button the visibility of the frame for the home screen will be set to false\n new HealthAssistant();//displays the health assistant page\n }", "public void proceedToLetsGo() {\n\t\tBrowser.click(\"xpath=.//*[@id='DisplayNavigatorBrokerLandingPage']/div/div/div/div/div/div/div/div/div[5]/a/img\");\n\t}", "public void show() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "public void showStory() {\r\n\t\tGameEngine.getInstance().getCommandProcessor().clearScreen();\r\n\t\tprintln(\"\");\r\n\t\tprintln(RenderUtil.getWelcomeMessage());\r\n\t\ttry {\r\n\t\t\tfor (String outputString : GamePlayUtil.GAME_STORY) {\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\tRenderUtil.println(\"\\t\" + outputString);\r\n\t\t\t}\r\n\t\t\tThread.sleep(2000);\r\n\t\t} catch (Exception e) {\r\n\t\t\tprintln(\"Problem Occured...\");\r\n\t\t}\r\n\t}", "@Override\n public void onClick(View view) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://sozialmusfest.scalingo.io/\"));\n startActivity(browserIntent);\n }", "public void clickSP(View view) {\n Intent i = new Intent(this,SP.class);\n startActivity(i);\n }", "void clickAmFromMenu();", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "@FXML\r\n void ClickServerIcon(MouseEvent event) throws IOException {\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"Server.fxml\"));\r\n //Go to server page\r\n loader.load();\r\n ServerController serverController = loader.getController();\r\n serverController.setUser(user);\r\n //Set user data\r\n Parent root = loader.getRoot();\r\n Scene scene = new Scene(root);\r\n Stage stage = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n stage.setScene(scene);\r\n stage.show();\r\n }", "public void clickscool(View view) {\n Intent i = new Intent(this, school.class);\n startActivity(i);\n }", "@Override\n public void onClick(View v) {\n Intent r1page = new Intent(v.getContext(), the_oxford_kitchen.class);\n startActivity(r1page);\n }", "@Override\n public void onClick(View view) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://sozialmusfest.scalingo.io/services\"));\n startActivity(browserIntent);\n }", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t\t\r\n\t}", "void clickNextStation();", "private void goToMenu() {\n\t\tgame.setScreen(new MainMenuScreen(game));\n\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}", "public void switchToTowerPanel() {\r\n this.midPanelCards.show(this.flipPanel, \"TowerPanel\");\r\n }", "void showHelp() {\n\t\tif (helpScreen == null) {\n\t\t helpScreen = new Form(\"Walking Help\");\n\t\t helpScreen.append(\"^ = walk forward\\n\");\n\t\t helpScreen.append(\"v = walk backwards\\n\");\n\t\t helpScreen.append(\"< = turn left\\n\");\n\t\t helpScreen.append(\"> = turn right\\n\");\n\t\t helpScreen.append(\"fire = change reverb manually\\n\");\n\t\t}\n\t\thelpScreen.addCommand(toggleCommand);\n\t\thelpScreen.setCommandListener(this);\n\t\tdisplay.setCurrent(helpScreen);\n }", "public void launchExplorer() {\n SimulatedEnvironment env = new SimulatedEnvironment(this.domain, this.initialState);\n VisualExplorer exp = new VisualExplorer(this.domain, env, this.v, 800, 800);\n exp.addKeyAction(\"w\", GridWorldDomain.ACTION_NORTH, \"\");\n exp.addKeyAction(\"s\", GridWorldDomain.ACTION_SOUTH, \"\");\n exp.addKeyAction(\"d\", GridWorldDomain.ACTION_EAST, \"\");\n exp.addKeyAction(\"a\", GridWorldDomain.ACTION_WEST, \"\");\n\n //exp.enableEpisodeRecording(\"r\", \"f\", \"irlDemo\");\n\n exp.initGUI();\n }", "@Override\r\n\tpublic void run(IAction action) {\n\t\ttry {\r\n\t\t\twindow.getActivePage().showView(JFreeChartView.ID);\r\n\t\t} catch (PartInitException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void goStationDetail(MouseEvent e) throws IOException {\n BriefStation briefStation = list.getSelectionModel().getSelectedItem();\n int stationId = briefStation.getStationId();\n App.getInstance().display_StationDetailScreen(stationId);\n }", "@FXML\n\tpublic void OpenHelpContentPage() {\n\n\t\tif (!Desktop.isDesktopSupported()) {\n\t\t\tSystem.out.println(\"Desktop not supported\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (!Desktop.getDesktop().isSupported(Desktop.Action.OPEN)) {\n\t\t\tSystem.out.println(\"File opening not supported\");\n\t\t\treturn;\n\t\t}\n\n\t\tfinal Task<Void> task = new Task<Void>() {\n\t\t\t@Override\n\t\t\tpublic Void call() throws Exception {\n\t\t\t\ttry {\n\t\t\t\t\tFile sx3InstallLocation = SX3Manager.getInstance().getInstallLocation().getParentFile()\n\t\t\t\t\t\t\t.getAbsoluteFile();\n\t\t\t\t\tDesktop.getDesktop().open(new File(\n\t\t\t\t\t\t\tsx3InstallLocation + File.separator + \"Cypress_EZ-USB_SX3_ConfigurationUtility.pdf\"));\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.err.println(e.toString());\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\n\t\tfinal Thread thread = new Thread(task);\n\t\tthread.setDaemon(true);\n\t\tthread.start();\n\t}", "@Override\n public void onClick()\n {\n Instance instance = null;\n final AbstractUIField uiField = super.getModelObject();\n if (uiField.getInstanceKey() != null) {\n Menu menu = null;\n try {\n instance = uiField.getInstance();\n menu = Menu.getTypeTreeMenu(instance.getType());\n } catch (final EFapsException e) {\n throw new RestartResponseException(new ErrorPage(e));\n }\n if (menu == null) {\n final Exception ex = new Exception(\"no tree menu defined for type \" + instance.getType().getName());\n throw new RestartResponseException(new ErrorPage(ex));\n }\n\n Page page;\n try {\n page = new ContentContainerPage(menu.getUUID(), uiField.getInstanceKey(),\n getPage() instanceof StructurBrowserPage);\n } catch (final EFapsException e) {\n page = new ErrorPage(e);\n }\n this.setResponsePage(page);\n }\n }", "@Override\r\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\tMyFrame.teampanel.showOne(name2.getText());\r\n\t\t}", "public HtmlPage clickContentPath();", "private void snap() throws InterruptedException {\n\t\t\n\t\t//Configuring browser.\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Priya\\\\eclipse-workspace\\\\SeleniumTask5\\\\Driver\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\t\t\t\n\t\t//Accessing browser and printing title and URL of the page.\n\t\tdriver.get(\"https://www.snapdeal.com/\");\n\t\tString title = driver.getTitle();\n\t\tSystem.out.println(title);\n\t\tString currentUrl = driver.getCurrentUrl();\n\t\tSystem.out.println(currentUrl);\n\t\t\t\t\t\n\t\t//Performing mouse over actions.\n\t\tThread.sleep(5000);\n\t\tWebElement mouseOver1 = driver.findElement(By.xpath(\"(//span[@class='catText'])[7]\"));\n\t\tActions a = new Actions(driver);\n\t\ta.moveToElement(mouseOver1).perform();\n\t\tThread.sleep(5000);\n\t\tWebElement findElement = driver.findElement(By.xpath(\"(//span[text()='Footwear'])[2]\"));\n\t\tfindElement.click();\n\t\tThread.sleep(5000);\n\t\tWebElement findElement2 = driver.findElement(By.xpath(\"(//div[@class='child-cat-name '])[1]\"));\n\t\tfindElement2.click();\n\t}", "public void showStay();", "public void actionPerformed(ActionEvent e) {\r\n\t\t// create an instance of NewPage\r\n\t\tNewPage newPage = new NewPage(canvas);\r\n\t\t// create new WhiteBoard Page\r\n\t\tnewPage.createNewWbPage();\r\n\t\t// create an instance PresentationInfoListData object to \r\n\t\t//add to PresentationList.\r\n\t\tPresentationInfoListData data =\r\n\t\t\tnew PresentationInfoListData(0, false, newPage.getKey());\r\n\t\tpresentationInfo.add(data);\r\n\t\t// notify all the participants that a new WhiteBoard has been opened\r\n\t\t// and selected\r\n\t\tDataEvent.notifySender(\r\n\t\t\tcanvas.getApplicationType(),\r\n\t\t\tpresentationInfo.getListModel().getSize(),\r\n\t\t\tnewPage.getKey(),\r\n\t\t\tgetToolString());\r\n\t\t\t\r\n\t\t// select the current new WhiteBoard\r\n\t\tpresentationInfo.getPresentationList().setSelectedValue(data, true);\r\n\r\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 clickDynamicPage() {\n driver.get(\"https://\"+B1MainClass.site);\n driver.findElement(dynamicPage).click();\n }", "@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}", "public void show();", "void clickFmFromMenu();", "public KioskPage click_kiosk_link(){\r\n\t\t\t click(kioskLink);\r\n\t\t\t return this;\r\n\t}", "@Before\n public void openNewStockPage() {\n onView(withId(R.id.button3)).perform(click());\n }", "@Override\n public void onClick(View v) {\n MainActivity.getMainActivity().loadDetailScreen(station);\n\n }", "public static void openGiftsIdeasSection() {\n click(GIFTS_TAB_UPPER_MENU);\n }", "private void goToDetailedRune()\n\t{\n\t\tLog.e(\"before pages\", String.valueOf(player.getSummonerID()));\n\t\tRunePages tempPages = player.getPages().get(String.valueOf(player.getSummonerID()));\n\t\tLog.e(\"after pages\", String.valueOf(tempPages.getSummonerId()));\n\t\tSet<RunePage> tempSetPages = tempPages.getPages();\n\t\tRunePage currentPage = new RunePage();\n\t\tfor (RunePage tempPage : tempSetPages)\n\t\t{\n\t\t\tif (tempPage.getName() == player.getCurrentRunePage())\n\t\t\t{\n\t\t\t\tLog.e(\"temp page\", \"page found\");\n\t\t\t\tcurrentPage = tempPage;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// now we have the page, need to get the runes out of it\n\t\tList<RuneSlot> tempSlots = currentPage.getSlots();\n\t\tArrayList<Integer> tempIDs = new ArrayList<Integer>();\n\t\tLog.e(\"tempSlots size\", String.valueOf(tempSlots.size()));\n\t\tfor (int i = 0; i < tempSlots.size(); i++)\n\t\t{\t\n\t\t\tLog.e(\"tempSlot\", String.valueOf(tempSlots.get(i).getRune()));\n\t\t\ttempIDs.add(tempSlots.get(i).getRune());\n\t\t}\n\t\tfillRuneList(tempIDs);\n\t\t// go to the screen\n\t\tIntent intent = new Intent(activity, RuneDetailActivity.class);\n\t\tactivity.startActivity(intent);\n\t}", "@Override\r\n\tpublic void show() {\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString url = \"Aide.html\";\r\n\t\t\t\tFile htmlFile = new File(url);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDesktop.getDesktop().browse(htmlFile.toURI());\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "@Step\n public void clickContactUsPage(){\n contactusPages.clickContactUsPage();\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tGeneralFrame.GFrame.changePanel(new MainScreenTeacher(), true);\r\n\t}", "public void clickonFullyAutomaticFrontLoad() {\n\t\t\n\t}", "public void goToFriendListPage(ActionEvent event) throws IOException { //this is going to close the current window and open a new window\n\t\t//this should also display the User Page\n\t\tParent user_page = FXMLLoader.load(getClass().getResource(\"/view/FriendList_Page.fxml\"));\n\t\tScene userpage_scene = new Scene(user_page);\n\t\tStage app_stage = (Stage) ((Node) (event.getSource())).getScene().getWindow();\n\t\tapp_stage.setScene(userpage_scene);\n\t\tapp_stage.setTitle(\"Friend List\");\n\t\tapp_stage.show();\n\t}", "public static void show() {\n\t\t\n\t}", "public void goToPrinterSection(){\n click(By.name(printerTab));\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t\t\t\t\t.parse(fullsitelink));\n\t\t\t\t\t\t\t\tstartActivity(i);\n\n\t\t\t\t\t\t\t}", "@Override\n\tpublic void show() {\n\t}", "@Override\n\tpublic void show() {\n\t}" ]
[ "0.6435237", "0.6348112", "0.6337979", "0.6264716", "0.62377983", "0.61731166", "0.6155511", "0.614923", "0.6125071", "0.6087474", "0.6013777", "0.60093653", "0.5995835", "0.59732896", "0.5944517", "0.593676", "0.59268093", "0.5909564", "0.59018064", "0.58960754", "0.58694893", "0.58636665", "0.5857856", "0.5822352", "0.5813282", "0.57774806", "0.57708275", "0.576597", "0.5762629", "0.5729289", "0.572357", "0.57151496", "0.5706739", "0.569712", "0.5694065", "0.56796616", "0.5673841", "0.5671542", "0.5659607", "0.56503844", "0.56481576", "0.5647086", "0.5639786", "0.56314766", "0.56314766", "0.56314766", "0.56311566", "0.56220394", "0.5619043", "0.561846", "0.5609815", "0.5609689", "0.56088555", "0.5604491", "0.56042343", "0.56034976", "0.56004554", "0.5596627", "0.5590657", "0.5590657", "0.5590657", "0.5590657", "0.5590657", "0.5590657", "0.5590657", "0.5590657", "0.5590657", "0.5590657", "0.5590657", "0.5590657", "0.5590657", "0.5590657", "0.5590657", "0.5582261", "0.5579218", "0.5579218", "0.5579218", "0.5579218", "0.5579218", "0.5579218", "0.5579218", "0.5579218", "0.5575683", "0.55666274", "0.55593765", "0.5552763", "0.55503", "0.55476516", "0.55467135", "0.5546271", "0.55455285", "0.55401236", "0.553817", "0.55381453", "0.55330676", "0.552628", "0.55189437", "0.5518666", "0.5517064", "0.5517064" ]
0.7152884
0