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
Sets new role id for administrator
public void setRoleId(String roleId) { this.role_id = roleId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "LoggedUser changeRole(String roleId) throws IOException;", "public void setRole(String role)\n {\n _role=role;\n }", "public void setRole() throws SQLException\r\n\t{\r\n\t\tString SQL_USER = \"UPDATE user SET role = 'Student' WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t...
[ "0.69627136", "0.65204114", "0.65182453", "0.64615905", "0.6397547", "0.6397547", "0.6397547", "0.6385131", "0.63722354", "0.63547754", "0.63547754", "0.63547754", "0.6354371", "0.6348739", "0.6348739", "0.6348739", "0.6348739", "0.6345017", "0.6339599", "0.63390607", "0.6339...
0.56794643
100
TODO Autogenerated method stub
@Override public String getText() { 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 getExr...
[ "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.608016...
0.0
-1
abstract method for shape area
public abstract double getArea();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract double area();", "abstract double area();", "abstract double area();", "abstract double area();", "public void claShapeArea(){\r\n\t\tshape.calArea();\r\n\t}", "public abstract double calculateArea();", "public abstract double calculateArea();", "public abstract float area();", "public abs...
[ "0.84824955", "0.84824955", "0.84824955", "0.84824955", "0.82689106", "0.80023515", "0.80023515", "0.7935163", "0.79263103", "0.7913427", "0.7815359", "0.77630967", "0.7608176", "0.756257", "0.7535872", "0.7535872", "0.7532897", "0.7517579", "0.74634916", "0.7442525", "0.7427...
0.8044055
6
override string method to return rectangle values
@Override public String toString() { return "Rectangle length: " + length + ", Rectangle width: " + width + ", Rectangle color: " + super.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public String toString() {\n return String.format(\n \"Rectangle with bottom left corner at (%d, %d) and top \" +\n \"right corner at (%d, %d)\", this.x1, this.y1, this.x2, this.y2);\n }", "@Override\n\tpublic String toString() {\n\t\treturn (\"rect(\" + corner.x...
[ "0.720774", "0.68952274", "0.6718305", "0.6609133", "0.65562814", "0.6538155", "0.64966136", "0.6460355", "0.6345515", "0.63447934", "0.63318974", "0.6302864", "0.62754256", "0.612653", "0.61034316", "0.61033124", "0.6092676", "0.60907525", "0.6042006", "0.6034641", "0.602633...
0.6956574
1
Override inherited getArea() to provide implementation
@Override public double getArea() { return (length * width); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getArea();", "public abstract double getArea();", "public abstract double getArea();", "public abstract double getArea();", "public abstract String getArea();", "public abstract float getArea();", "@Override\r\n\tpublic double getArea() {\n\t\treturn (this.base * this.height)/2;\r\n...
[ "0.85952944", "0.83387566", "0.83387566", "0.83387566", "0.82352257", "0.82212865", "0.80684865", "0.80120105", "0.80120105", "0.80044156", "0.7993453", "0.7989818", "0.7964493", "0.79349273", "0.7866042", "0.7866035", "0.7807512", "0.7807512", "0.7807512", "0.77984065", "0.7...
0.7410624
52
override string method to return triangle values
@Override public String toString() { return "Triangle base: " + base + ", Triangle height: " + height + ", Triangle color: " + super.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString(){\n\t\treturn (\"this triangle has side 1 of length\"+side1+\"side 2 of length\"+side2+\"and side 3 of length\"+side3);\n\t}", "public String toString(){\n return \"Triangle: side1 = \" + side1 + \" side2 = \" + side2 + \" side3 = \" + side3;\n }", "@Override\n\tpublic String ...
[ "0.7280948", "0.69401485", "0.6915968", "0.6899869", "0.684195", "0.6588906", "0.6270934", "0.62449336", "0.62289697", "0.60803026", "0.6046326", "0.59828097", "0.59277385", "0.5864218", "0.5854696", "0.5833157", "0.5782576", "0.5778642", "0.5743682", "0.5737757", "0.5734051"...
0.6504503
6
Override inherited getArea() to provide implementation
@Override public double getArea() { return (0.5 * (base * height)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getArea();", "public abstract double getArea();", "public abstract double getArea();", "public abstract double getArea();", "public abstract String getArea();", "public abstract float getArea();", "@Override\r\n\tpublic double getArea() {\n\t\treturn (this.base * this.height)/2;\r\n...
[ "0.85952944", "0.83387566", "0.83387566", "0.83387566", "0.82352257", "0.82212865", "0.80684865", "0.80120105", "0.80120105", "0.80044156", "0.7993453", "0.7989818", "0.7964493", "0.7866042", "0.7866035", "0.7807512", "0.7807512", "0.7807512", "0.77984065", "0.779658", "0.779...
0.79349273
13
/ access modifiers changed from: protected
public void onHandleIntent(Intent intent) { if (intent != null) { String action = intent.getAction(); d.b("ThumbDownloadService", "onHandleIntent, action: " + action); if ("com.coloros.providers.sticker.download.category.thumbnail".equals(action)) { a(this); } else if ("com.coloros.providers.sticker.download.sticker.thumbnail".equals(action)) { b(this); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
Computer Generation of Statistical Distributions by Richard Saucier ARLTR2168 March 2000 5.1.8 page 20
public static double sample(double a, double b, Random random) { assert (b > 0.0); return a - b * Math.log(random.nextDouble()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main( String[] args ){\n\t\tDoubleGenerator g = gaussian();\n\t\t// DoubleGenerator g = power_law();\n\t\t// DoubleGenerator g = symmetric_power_law();\n\t\tint n = 10;\n\t\t// Generating an array of ten random values\n\t\tdouble[] x = g.generate(n);\n\t\tfor( int i=0; i<n; i++ ){\n\t\t\tSystem....
[ "0.65656114", "0.6441594", "0.6407797", "0.63188666", "0.6176633", "0.61169785", "0.60659623", "0.59605354", "0.59560394", "0.5947381", "0.590116", "0.5886785", "0.5798519", "0.5745246", "0.5727981", "0.5723177", "0.569739", "0.56758285", "0.56692463", "0.5581279", "0.5561468...
0.0
-1
Perform the appropriate actions given the game state.
public void load(BSGameState state);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void performActions(){\n GameInformation gi = this.engine.getGameInformation();\n\n if(gi.getTeam() == 0)\n this.engine.performPlayerAction(\n new MoveAction(src, dst)\n );\n\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", ...
[ "0.697225", "0.67569876", "0.66942656", "0.6558598", "0.65477645", "0.64916825", "0.64373493", "0.6432124", "0.6405235", "0.6371804", "0.636099", "0.6359997", "0.63555104", "0.6325263", "0.62994707", "0.62992233", "0.62634766", "0.62501633", "0.62294394", "0.62288076", "0.622...
0.0
-1
Something went wrong e.g. connection timeout or firewall problems
@Override public void onFailure(IMqttToken asyncActionToken, Throwable exception) { Toast.makeText(TesteMqtt.this, "ERRO", Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tSC.say(\"服务器连接已中断,请重新登录!\");\n\t\t\t}", "protected void onConnectionError() {\n\t}", "public void onConnectionError()\n\t\t{\n\t\t}", "@Override\n public void connectionLost(Throwable thrwbl) {\n System.out.println(\"服务器的连接丢失\");\n...
[ "0.7053674", "0.6950883", "0.6944978", "0.6814548", "0.6775823", "0.6726047", "0.6655834", "0.66306865", "0.65048355", "0.6428909", "0.6425276", "0.64199686", "0.6414024", "0.6403037", "0.63989985", "0.6376857", "0.63732743", "0.63732743", "0.63602227", "0.63545495", "0.63540...
0.0
-1
Return whether the provided query trees are considered equivalent.
public static boolean isEqual(JexlNode first, JexlNode second) { return checkEquality(first, second).isEqual(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEquals(BinaryTree<T> tree){\n //if both are empty, are equals\n if(this.isEmpty() && tree.isEmpty()){\n return true;\n \n //if this is empty (and the other not, because don't get the if before)\n //is false\n }else if(this.isEmpty()){\n ...
[ "0.63127744", "0.6272843", "0.6121458", "0.5829282", "0.5815127", "0.5808347", "0.56999874", "0.56271553", "0.5515341", "0.5497447", "0.54119176", "0.54109025", "0.5391919", "0.5368256", "0.53582925", "0.53501546", "0.53467417", "0.5326201", "0.5322426", "0.5287422", "0.52838...
0.50490236
46
Compare the provided query trees for equivalency and return the resulting comparison.
public static Comparison checkEquality(JexlNode first, JexlNode second) { if (first == second) { return Comparison.IS_EQUAL; } else if (first == null || second == null) { return Comparison.notEqual("One tree is null: " + first + " vs " + second); } else { TreeEqualityVisitor visitor = new TreeEqualityVisitor(); return (Comparison) first.jjtAccept(visitor, second); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Comparison compareChildren(SimpleNode first, SimpleNode second) {\n List<SimpleNode> firstChildren = getChildren(first);\n List<SimpleNode> secondChildren = getChildren(second);\n\n // Compare the sizes.\n if (firstChildren.size() != secondChildren.size()) {\n return ...
[ "0.59196055", "0.5875119", "0.5797646", "0.55721426", "0.551044", "0.5479743", "0.539913", "0.5397209", "0.5357766", "0.53187513", "0.5315482", "0.52743214", "0.52595305", "0.5192827", "0.5191151", "0.51768726", "0.51428515", "0.51411086", "0.5124302", "0.5096864", "0.5096299...
0.5569778
4
Compare the given node and evaluate their equivalence. This visitor will be applied to each of the first node's children. The visitor will be accepted on all the first node's children.
private Comparison checkEquality(SimpleNode node1, SimpleNode node2) { // Compare the classes. Comparison comparison = compareClasses(node1, node2); if (!comparison.isEqual()) { return comparison; } // Compare the values. comparison = compareValues(node1, node2); if (!comparison.isEqual()) { return comparison; } // Compare the images. comparison = compareImages(node1, node2); if (!comparison.isEqual()) { return comparison; } // Compare the children. return compareChildren(node1, node2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Comparison compareChildren(SimpleNode first, SimpleNode second) {\n List<SimpleNode> firstChildren = getChildren(first);\n List<SimpleNode> secondChildren = getChildren(second);\n\n // Compare the sizes.\n if (firstChildren.size() != secondChildren.size()) {\n return ...
[ "0.62953377", "0.5965739", "0.59408784", "0.57475615", "0.56019956", "0.55888176", "0.5481321", "0.54702795", "0.5342518", "0.5244528", "0.5244453", "0.5223955", "0.5168766", "0.5147617", "0.5145105", "0.5144302", "0.51175946", "0.511419", "0.5112733", "0.5100099", "0.5089133...
0.53426373
8
Compare the values of both node.
private Comparison compareValues(SimpleNode first, SimpleNode second) { return Objects.equals(first.jjtGetValue(), second.jjtGetValue()) ? Comparison.IS_EQUAL : Comparison.notEqual("Node values differ: " + first.jjtGetValue() + " vs " + second.jjtGetValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int compare(Object nodes1, Object nodes2) {\r\n\t\tdouble w1 = 0.0;\r\n\t\tIterator it = ((Set)nodes1).iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tDouble v = ((Node) it.next()).getWeightValueUnsynchronized(\"value\");\r\n\t\t\tw1 += (v==null ? 1.0 : v.doubleValue());\r\n\t\t}\r\n\t\tdouble w2 = 0.0;\...
[ "0.6890835", "0.68435967", "0.6619421", "0.6533591", "0.6524064", "0.64970875", "0.64641464", "0.62994283", "0.6234131", "0.62301207", "0.6225202", "0.6197304", "0.6177353", "0.61331093", "0.6090915", "0.60792595", "0.60790366", "0.60775876", "0.6067737", "0.60670525", "0.600...
0.7858284
0
Compare the images of both node (if applicable).
private Comparison compareImages(SimpleNode first, SimpleNode second) { if (first instanceof JexlNode) { String firstImage = ((JexlNode) first).image; String secondImage = ((JexlNode) second).image; if (!Objects.equals(firstImage, secondImage)) { return Comparison.notEqual("Node images differ: " + firstImage + " vs " + secondImage); } } return Comparison.IS_EQUAL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Comparison checkEquality(SimpleNode node1, SimpleNode node2) {\n // Compare the classes.\n Comparison comparison = compareClasses(node1, node2);\n if (!comparison.isEqual()) {\n return comparison;\n }\n\n // Compare the values.\n comparison = compareValu...
[ "0.68079805", "0.66943514", "0.65274274", "0.650541", "0.6226026", "0.60127985", "0.5998478", "0.5975642", "0.5973089", "0.59461707", "0.59231114", "0.58880997", "0.5849287", "0.5787432", "0.5778163", "0.57336444", "0.5716887", "0.57157135", "0.56992954", "0.5675555", "0.5662...
0.81881
0
Compare the children of both nodes.
private Comparison compareChildren(SimpleNode first, SimpleNode second) { List<SimpleNode> firstChildren = getChildren(first); List<SimpleNode> secondChildren = getChildren(second); // Compare the sizes. if (firstChildren.size() != secondChildren.size()) { return Comparison.notEqual("Num children differ: " + firstChildren + " vs " + secondChildren); } // Look for an equivalent of each child, visiting each child recursively when needed. Comparison currentComparison = null; for (SimpleNode firstChild : firstChildren) { for (int i = 0; i < secondChildren.size(); i++) { SimpleNode secondChild = secondChildren.get(i); currentComparison = (Comparison) firstChild.jjtAccept(this, secondChild); if (currentComparison.isEqual()) { secondChildren.remove(i); break; } } if (!currentComparison.isEqual()) { return Comparison.notEqual("Did not find a matching child for " + firstChild + " in " + secondChildren + ": " + currentComparison.getReason()); } } return Comparison.IS_EQUAL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void isChildOrSameTest1()\n\t{\n\t\tNodeList n1=xmlDocument.getElementsByTagName(\"b\");\n\t\tNodeList n2=xmlDocument.getElementsByTagName(\"p\");\n\t\tassertEquals(true,Manipulator.isChildOrSame(n2.item(0),n1.item(0)));\n\t}", "@Test\n\tpublic void isChildOrSameTest3()\n\t{\n\t\tNodeList n1=xmlD...
[ "0.6638102", "0.65207756", "0.63636285", "0.6267411", "0.62174815", "0.6101471", "0.5992768", "0.5975032", "0.59429723", "0.5882214", "0.5808297", "0.57628036", "0.573446", "0.5730383", "0.5723277", "0.5722027", "0.5700096", "0.5688998", "0.5627146", "0.56199956", "0.5596816"...
0.7883699
0
Return the flattened children of the given node.
private List<SimpleNode> getChildren(SimpleNode node) { Class<?> nodeType = node.getClass(); List<SimpleNode> children = new ArrayList<>(); for (int i = 0; i < node.jjtGetNumChildren(); i++) { children.addAll(flatten(node.jjtGetChild(i), nodeType)); } return children; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<Node<E>> getChildrenForNode(Node<E> node) {\n ArrayList<Node<E>> list = new ArrayList<>();\n for (Node<E> child : node.getChilden()) {\n list.add(child);\n }\n return list;\n }", "List<Node<T>> children();", "private List<SimpleNode> flatten(SimpleNode nod...
[ "0.66303694", "0.65870506", "0.6580786", "0.63890725", "0.63806295", "0.6302893", "0.6259415", "0.6223173", "0.6203872", "0.61760056", "0.615305", "0.6139897", "0.6128649", "0.6063955", "0.5983985", "0.5912987", "0.59054655", "0.5869784", "0.5863784", "0.5833952", "0.5829381"...
0.7057843
0
Return a flattened version of the given node if possible, expanding the node to its base comparable children.
private List<SimpleNode> flatten(SimpleNode node, Class<?> rootType) { if (isFlattenable(node, rootType)) { List<SimpleNode> children = new ArrayList<>(); for (int i = 0; i < node.jjtGetNumChildren(); i++) { children.addAll(flatten(node.jjtGetChild(i), rootType)); } return children; } else { return Collections.singletonList(node); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flatten()\r\n\t\t{\r\n\t\t\tif (_children.size() > 0) \r\n\t\t\t{\r\n\t\t\t\tint i = 0;\r\n\t\t\t\twhile(i < _children.size())\r\n\t\t\t\t{\r\n\t\t\t\t\tExpressionNode subExpr = _children.get(i);\r\n\t\t\t\t\tsubExpr.flatten();\r\n\t\t\t\t\tif (_data.equals(subExpr._data)) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t...
[ "0.596218", "0.5797632", "0.5701686", "0.56463957", "0.5527223", "0.5469752", "0.5248121", "0.51118207", "0.50863934", "0.5083663", "0.5033567", "0.4994496", "0.49653134", "0.49319592", "0.4913794", "0.4889507", "0.48822692", "0.4877426", "0.4874684", "0.48450387", "0.4832965...
0.6306203
0
Original Press (drag) / Name: begin Purpose: This is the method that is run when the applet starts. It sets up the canvas with the vertical and horizontal lines (the axes). It also sets up the buttons and whatnot. Parameters: N/A Return: void
public void begin() { canvasWidth = canvas.getWidth(); // Store canvas width canvasHeight = canvas.getHeight(); // Store canvas height sliderDimension = new Dimension((int) Math.round(canvasWidth / 3), (int) Math.round(canvasHeight / 15)); JPanel north = new JPanel(); // Create overall north JPanel north1 = new JPanel(); // Create top row north JPanel north2 = new JPanel(); // Create bottom row north JPanel south = new JPanel(); // Create overall south // FIX UP NORTH OVERALL LAYOUT north.setLayout(new GridLayout(2,1)); // North divided 2 rows north.add(north1); // Add North1 (header text) north.add(north2); // Add North2 (buttons) // CREATE GUI OBJECTS header = new JLabel("Resizable Balls Controls"); header.setHorizontalAlignment(SwingConstants.CENTER); start = new JButton("Start"); stop = new JButton("Stop"); clearAll = new JButton("Clear All"); speedSlider = new JSlider(JSlider.HORIZONTAL, // Horizontal JSlider MIN_SPEED, // Goes from Slow Speed, MAX_SPEED, // to Fast Speed MIN_SPEED); // Starts at Slow Speed speedSlider.setPreferredSize(sliderDimension); // Adjust Slider Size slideLabel = new JLabel("The speed is " + speedSlider.getValue()); // CREATE LISTENERS speedSlider.addChangeListener(this); start.addActionListener(this); stop.addActionListener(this); canvas.addMouseListener(this); canvas.addMouseMotionListener(this); // FIX UP NORTH1 (NORTH TOP ROW) north1.add(header); // FIX UP NORTH2 (NORTH BOTTOM ROW) north2.add(start); north2.add(stop); north2.add(clearAll); // FIX UP SOUTH south.add(slideLabel); south.add(speedSlider); // ADD COMPONENTS AND VALIDATE this.add(north, BorderLayout.NORTH); this.add(south, BorderLayout.SOUTH); this.validate(); visibleHeight = canvasHeight - north.getHeight() - south.getHeight(); // Create Horizontal Line hLine = new Line( 0, visibleHeight/2, // Left Point canvasWidth, visibleHeight/2, // Right Point canvas); // Canvas // Create Vertical Line vLine = new Line( canvasWidth/2, 0, // Top Point canvasWidth/2, canvasHeight, // Bottom Point canvas); // Canvas hLineProportion = (hLine.getStart()).getY() / canvasHeight; vLineProportion = (vLine.getStart()).getX() / canvasWidth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() {\n this.addMouseListener(new MouseAdapter() {\n public void mousePressed(MouseEvent e) {\n last_x = e.getX();\n last_y = e.getY();\n }\n });\n\n // Define, instantiate and register a MouseMotionListener object\n this.addMouseMotionListener(new MouseMotionAdap...
[ "0.7190087", "0.65001845", "0.6456198", "0.6191743", "0.61850154", "0.6117974", "0.60062855", "0.59874654", "0.598608", "0.595967", "0.5937948", "0.5928026", "0.59167117", "0.5884582", "0.5869491", "0.5854764", "0.58444256", "0.584247", "0.5819873", "0.5813203", "0.58058465",...
0.5447487
70
/ Name: mousePressed Purpose: This is the method that is run when the user presses (not necessarily a click, but a press specifically) the mouse. It checks if the user has pressed on one of the lines (or both, if the intersection is clicked). If so, the toggle is set to true (so when a user moves the mouse, the line(s) move). Parameters: e: MouseEvent (the mouse press event) Return: void
public void mousePressed(MouseEvent e) // When mouse is pressed: { Location pt = new Location(e.getX(),e.getY()); origPress = pt; if(hLine.contains(pt)) // If press is on hLine: { hLineGrabbed = true; // hLine is grabbed } if(vLine.contains(pt)) // If press is on vLine: { vLineGrabbed = true; // vLine is grabbed } lastPt = pt; // Set the point to lastPt }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mousePressed(MouseEvent e) {\n\t\tdouble x = e.getX();\n\t\tdouble y = e.getY();\n\t\tswitch (clickTracker) {\n\t\t\tcase 0:\n\t\t\t\t//figureDone = false;\n\t\t\t\tflipDirection.setEnabled(false);\n\t\t\t\tlastClick = new GPoint(x,y);\n\t\t\t\tlineActive = true;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\...
[ "0.7392495", "0.7020833", "0.69139904", "0.683753", "0.6772609", "0.6761114", "0.6664822", "0.6647117", "0.65509695", "0.6540303", "0.65297747", "0.6525398", "0.6483763", "0.64796776", "0.64683306", "0.6457948", "0.6448427", "0.6445658", "0.644468", "0.644468", "0.644468", ...
0.75182134
0
/ Name: mouseReleased Purpose: This is the method that is run when the user, after having pressed the mouse, releases it. It sets both "line grabbed" toggles to false (so when a user moves the mouse, the line(s) no longer move). Parameters: e: MouseEvent (the mouse release event) Return: void
public void mouseReleased(MouseEvent e) // When mouse is released: { hLineGrabbed = vLineGrabbed = // Neither line is grabbed hLineMoved = vLineMoved = false; // Neither line is moved anymore }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tmouseDown = false;\n\t}", "public void mouseReleased(MouseEvent e) {\n mDown=false;\n }", "public void mouseReleased(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n if(onClick!=null) {\n mo...
[ "0.76225156", "0.7362874", "0.73172945", "0.72873175", "0.7285379", "0.7269741", "0.71390843", "0.71158546", "0.70914465", "0.7022488", "0.7021552", "0.7011409", "0.6983121", "0.6983121", "0.6983121", "0.6983121", "0.6980878", "0.6963082", "0.6960888", "0.69597334", "0.695623...
0.8737616
0
/ Name: mouseDragged Purpose: This is the method that is run when the user, after having pressed the mouse, moves it without releasing. If the user does a drag while one or both of the lines is grabbed, then the line(s) grabbed move with the user's mouse, and the lines are forced to remain within a horizontal and vertical margin, which are defined at the beginning of this class. Parameters: e: MouseEvent (the mouse drag event) Return: void
public void mouseDragged(MouseEvent e) // When mouse is dragged: { Location pt = new Location(e.getX(),e.getY()); dragDx = pt.getX() - lastPt.getX(); dragDy = pt.getY() - lastPt.getY(); // If H Line was grabbed and drag is within the margins: if(hLineGrabbed && pt.getY() >= MARGIN_HORIZONTAL && // If hLine grabbed pt.getY() <= canvasHeight - MARGIN_HORIZONTAL) // and drag is in { // the margins: hLine.setEndPoints(0, (hLine.getStart()).getY() + dragDy, canvasWidth, (hLine.getStart()).getY() + dragDy);// Move hLine if(lastPt != pt) // If new point is { // different (moved): hLineMoved = true; // hLine was moved } else // If new point is { // same (not moved): hLineMoved = false; // hLine not moved } } // If V Line was grabbed and drag is within the margins: if(vLineGrabbed && pt.getX() >= MARGIN_VERTICAL && // If vLine grabbed pt.getX() <= canvasWidth - MARGIN_VERTICAL) // and drag is in { // the margins: vLine.setEndPoints((vLine.getStart()).getX() + dragDx, 0, (vLine.getStart()).getX() + dragDx, canvasHeight); // Move vLine if(lastPt != pt) // If new point is { // different (moved): vLineMoved = true; // vLine was moved } else // If new point is { // same (not moved): vLineMoved = false; // vLine not moved } } hLineProportion = (hLine.getStart()).getY() / canvasHeight; vLineProportion = (vLine.getStart()).getX() / canvasWidth; lastPt = pt; // Set the point to dragDx = dragDy = 0; // Reset drag delta }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseDragged(MouseEvent e) {\n currX = e.getX();\r\n currY = e.getY();\r\n\r\n if(g2 != null) {\r\n // Draw line if g2 context is not null\r\n g2.drawLine(oldX, oldY, currX, currY);\r\n // Refresh draw...
[ "0.8079513", "0.7672222", "0.7558978", "0.75233674", "0.7295044", "0.7294356", "0.7291668", "0.725671", "0.72395253", "0.72149104", "0.72149104", "0.7207518", "0.72053784", "0.71968347", "0.71747535", "0.7172807", "0.71477795", "0.7130879", "0.71268195", "0.7114065", "0.70733...
0.7764722
1
/ Name: mouseClicked Purpose: This is the method that is run when the user clicks the mouse (a click is when the mouse is pressed AND released with no movement). It creates a ResizableBall object (the description of the "ResizableBall" is given at the beginning of this file). Parameters: e: MouseEvent (the mouse click event) Return: void
public void mouseClicked(MouseEvent e) // When mouse is clicked: { Location pt = new Location(e.getX(),e.getY()); ResizableBall t = new ResizableBall( pt.getX(), pt.getY(), BALL_SIZE, canvas, hLine, vLine, speedSlider.getValue()); start.addActionListener(t); stop.addActionListener(t); clearAll.addActionListener(t); speedSlider.addChangeListener(t); canvas.addMouseListener(t); canvas.addMouseMotionListener(t); canvas.addComponentListener(t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseClicked(MouseEvent e) {\n\t\t\n\t\tShape newShape = (Shape)currentShape.clone(); //Creates new shape based on the shape constructed and cloned \n\t\tnewShape.setCenter(e.getX(), e.getY()); //sets the shape to center around the mouse clicked region \n\t\tDrawingCanvas drawingCanvas = (DrawingCanvas...
[ "0.6764862", "0.6651816", "0.63780046", "0.6376569", "0.6368577", "0.6352153", "0.6311439", "0.6288028", "0.6283695", "0.6257318", "0.6224189", "0.6224189", "0.61777353", "0.6173374", "0.6166316", "0.6166316", "0.6166316", "0.6158279", "0.61569923", "0.61569923", "0.615506", ...
0.8766019
0
/ Name: stateChanged Purpose: This method handles ChangeEvent (in this case, just moving the slider). When the slider is changed, update the slider label. Parameters: e: ChangeEvent (the slider sliding) Return: void
public void stateChanged(ChangeEvent e) { slideLabel.setText("The speed is " + speedSlider.getValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stateChanged(ChangeEvent e) {\n\t\tJSlider source = (JSlider) e.getSource();\n\t\tif (!source.getValueIsAdjusting()) {\n\t\t\tdgopval = Math.pow(10, -source.getValue() / 10.0);\n\t\t\tpvalLabel.setText(\"X = \" + source.getValue() / 10.0\n\t\t\t\t\t+ \"; p-value threshold is \"\n\t\t\t\t\t+ DREMGui_Key...
[ "0.7994317", "0.7704498", "0.7629279", "0.76259696", "0.7593107", "0.75674725", "0.7550019", "0.7518154", "0.7481481", "0.74799514", "0.7455372", "0.74349564", "0.7397656", "0.7380273", "0.73634106", "0.7346273", "0.7325715", "0.73246616", "0.72588736", "0.7214912", "0.720404...
0.8313797
0
/ Name: paint Purpose: This is the method that is run when the canvas is resized. It extends (or shrinks) the line(s) that hit the moved canvas side so that both lines continue to perfectly hit the canvas edge. It also sets up dx and dy to move the balls too. Parameters: g: Graphics Return: void
public void paint( java.awt.Graphics g ) { super.paint( g ); // Ord gave us this canvasWidth = canvas.getWidth(); // Update original canvasHeight = canvas.getHeight(); // canvas dimensions double newHLineY = hLineProportion * canvas.getHeight(); double newVLineX = vLineProportion * canvas.getWidth(); hLine.setEndPoints(0, newHLineY, canvasWidth, newHLineY); vLine.setEndPoints(newVLineX, 0, newVLineX, canvasHeight); hLineMoved = vLineMoved = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void paint(Graphics g){\n super.paint(g);\n Graphics2D g2d = (Graphics2D) g;\n g.setColor(Color.WHITE);\n for(int i = 0; i < ROWS; i++){\n g.drawLine(0, i * HEIGHT / ROWS - 1, \n WIDTH, i * HEIGHT / ROWS - 1);\n g.drawLine(0, i * HEIGHT / ...
[ "0.66984504", "0.63943875", "0.6270109", "0.6184592", "0.6128112", "0.6080358", "0.60629785", "0.60395104", "0.6031943", "0.60168964", "0.59995806", "0.5995882", "0.59663576", "0.595764", "0.5950069", "0.59463346", "0.58824706", "0.58730906", "0.58362997", "0.58262944", "0.58...
0.6795869
0
Generates a PCM array then returns it This array needs to fill up the whole PcmArray
public byte[] genTone(){ //Ramp time is the denominator of the total sample. //This really should be a ration of samples per cycle. //do this math to get a smooth sound int rampTime = 2000; //Fill the sample array. for (int i = 0; i < numSamples; ++i) { //Here is the brains of the operation. Don't axe me what it does //But it pretty much unrolls a sin curve into a wave sample[i] = Math.sin(freqOfTone * 2 * Math.PI * i / (sampleRate)); } // convert to 16 bit pcm sound array // assumes the sample buffer is normalized. int PCMindex = 0; int i; //The ramp. It is how many samples will be ramped up. int ramp = numSamples/rampTime; /** * Ramp up the tone to avoid clicks */ for (i = 0; i< ramp; ++i) { //Grab the values from the sample array for each i double dVal = sample[i]; //Ramp down the value. //Convert a -1.0 - 1.0 double into a short. 32767 should be contant for max 16 bit signed int value final short val = (short) ((dVal * 32767 * i/ramp)); //Put the value into the PCM byte array //Break the short into a byte using a bit mask. //First bit mask adds the second byte. Second bit mask adds the second byte. PcmArray[PCMindex++] = (byte) (val & 0x00ff); PcmArray[PCMindex++] = (byte) ((val & 0xff00) >>> 8); } for (i = ramp; i< numSamples - ramp; ++i) { //Grab the values from the sample array for each i double dVal = sample[i]; //Convert a -1.0 - 1.0 double into a short. 32767 should be contant for max 16 bit signed int value final short val = (short) ((dVal * 32767)); //Put the value into the PCM byte array //Break the short into a byte using a bit mask. //First bit mask adds the second byte. Second bit mask adds the second byte. PcmArray[PCMindex++] = (byte) (val & 0x00ff); PcmArray[PCMindex++] = (byte) ((val & 0xff00) >>> 8); } for (i = (int) (numSamples - ramp); i< numSamples; ++i) { //Grab the values from the sample array for each i double dVal = sample[i]; //Convert a -1.0 - 1.0 double into a short. 32767 should be contant for max 16 bit signed int value //Ramp down the values final short val = (short) ((dVal * 32767 * (numSamples-i)/ramp )); //Put the value into the PCM byte array //Break the short into a byte using a bit mask. //First bit mask adds the second byte. Second bit mask adds the second byte. PcmArray[PCMindex++] = (byte) (val & 0x00ff); PcmArray[PCMindex++] = (byte) ((val & 0xff00) >>> 8); } return PcmArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void compose() {\n \tnumSamples = duration * sampleRate;\n \tsample = new double[numSamples];\n \tgeneratedSnd = new byte[2 * numSamples];\t\t\n\t}", "private void compose() {\n \tnumSamples = duration * sampleRate;\n \tsample = new double[numSamples];\n \tgeneratedSnd = new byte[2 * nu...
[ "0.60940444", "0.60307485", "0.5951677", "0.58791614", "0.5715504", "0.55871826", "0.5480953", "0.53951705", "0.51970726", "0.51607084", "0.5150512", "0.51337194", "0.5132472", "0.51245904", "0.5064536", "0.5048292", "0.49909276", "0.49905238", "0.4976472", "0.49201375", "0.4...
0.6706934
0
20030709AH Retrieve and return the ActionForm bean associated with this mapping, creating and stashing one if necessary. If there is no form bean associated with this mapping, return null. This subclass of RequestProcessor will also search for ActionForm in an OperationContext object stored in session scope under an attribute identified by OperationConstant.ID_PARAMETER. Currently only one ActionForm is supported at a time by this method. This search is done first and if it fails to find an action form, the normal superclass behaviour will be followed. 20030124: The behaviour has been modified slightly it seems there was a problem with opCon stored forms in that the first request, not having an opCon yet would cause the handling to be delegated to struts, which if a name was specified in the actionMapping would create and store an actionForm in the scope. We state scope=session for opCon forms its only half true (it is in the session just nested a bit ;>) so opCon forms ended up being given a shared reference in the session. Future requests for this type of form would thus return the same instance leading to concurrency issues. A property has been added to the GTActionMapping named 'deferFormCreation'. For forms in opCon it is therefore necessary to specify this property in the mapping as true in order to avoid such problems. If this mapping is specified for nonopCon forms, it results in the form never being retrieved by this method thus leaving it to the action to manage that on its own. For opCon forms, the form will be retrieved on subsequent requests related to that opCon. Its creation is the responsibility of the Action however. A side effect of this to be aware of is that if the form hasnt been supplied by the RequestProcessor then it can hardly be expected to be populated either... This also is the responsibility of the action for opCon forms. (Part of the price to be paid for the usefullness of opCons!)
protected ActionForm processActionForm(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) { String scope = mapping.getScope(); if(scope != null) { try { if(scope.equals("session")) { OperationContext opCon = OperationContext.getOperationContext(request); if(opCon != null) { if(_log.isInfoEnabled()) { _log.info("Looking for ActionForm in OperationContext[id=" + opCon.getOperationContextId() + "]"); //20030124AH } ActionForm form = opCon.getActionForm(); if(form != null) { if(_log.isInfoEnabled()) { _log.info("Found ActionForm in OperationContext"); //20030124AH } return form; } else { if(_log.isWarnEnabled()) { _log.warn("No ActionForm found in OperationContext"); //20030124AH } return null; //20030124AH } } } } catch(OperationException e) { // OperationExceptions here are normal when we forward from a completed operation // to the next action, so we ignore them. } catch(Throwable t) { if(_log.isErrorEnabled()) { _log.error("Error caught in processActionForm() performing customised ActionForm handling", t); //20030124AH } } } if(mapping instanceof GTActionMapping) { //20030124AH - Check the mapping to see if we should defer form creation or do it as normal if( ((GTActionMapping)mapping).isDeferFormCreation() ) { if(_log.isInfoEnabled()) { _log.info("Deferring ActionForm creation"); } return null; } } //... if(_log.isInfoEnabled()) { _log.info("Delegating to superclass to obtain ActionForm"); //20030124AH } ActionForm form = super.processActionForm(request, response, mapping); return form; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ActionForm getActionForm(ActionMapping mapping,\r\n\t\t\tHttpServletRequest request) {\r\n\t\tActionForm actionForm = null;\r\n\r\n\t\t// Remove the obsolete form bean\r\n\t\tif (mapping.getAttribute() != null) {\r\n\t\t\tif (\"request\".equals(mapping.getScope())) {\r\n\t\t\t\tactionForm = (ActionForm) ...
[ "0.66735476", "0.62579525", "0.5834576", "0.55972785", "0.5582744", "0.553884", "0.55386657", "0.5522076", "0.5481444", "0.546239", "0.5452897", "0.5410507", "0.5410507", "0.5410507", "0.5410507", "0.5410507", "0.5373518", "0.5372792", "0.5354938", "0.5353317", "0.5347392", ...
0.80695724
0
This has been overridden to check the populate property if using a GTActionMapping and if false to not populate the form. The prime reason for the existence of this property is to provide support for the RenderingAction which is 'chained' from the Action. Struts best practise discourages use of Action chaining, however the RenderingAction has a good excuse its the view component and the form shouldnt be repopulated when it is invoked! You shouldnt use action chaining as a methodology for action processing however as its a bad idea. If you think you need to, think very hard about it first, as its perceived need is most likely a flaw in your logic rather than a real need... 20030124AH
protected void processPopulate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) throws ServletException { if(form != null) { if(mapping instanceof GTActionMapping) { //20030124AH if( ((GTActionMapping)mapping).isPopulate() == false ) { return; //Do not pass go. Do not collect $200. } } super.processPopulate(request,response,form,mapping); } else { return; //No form to populate } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ActionForward populate(ActionMapping mapping, ActionForm form, HttpServletRequest request,\n \t\t\tHttpServletResponse response) throws Exception {\n \n \t\tSystem.out.println(\"<ViralTreatmentPopulateAction populate> ... \");\n \n \t\tViralTreatmentForm viralTreatmentForm = (ViralTreatmentForm) form;\n \n ...
[ "0.64066225", "0.5998093", "0.5849151", "0.570937", "0.5463069", "0.5391982", "0.5371211", "0.5368108", "0.5345019", "0.53241813", "0.5297045", "0.52947295", "0.52828425", "0.52814513", "0.52425075", "0.52265143", "0.5207603", "0.5202604", "0.51810014", "0.51789653", "0.51632...
0.70618284
0
/ Overridden to allow us to log some extra info on performance which is also helpful in diagnosing problems. Delegates to superclass to do the actual work.
public void process(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { if(_log.isInfoEnabled()) { _log.info("Started processing action request: " + request.getServletPath()); } long startTime = System.currentTimeMillis(); processInlineException(request); super.process(request, response); long endTime = System.currentTimeMillis(); if(_log.isInfoEnabled()) { _log.info("Completed processing action request (in approx " + (endTime - startTime) + " ms)"); OperationContext.logActiveContexts(request, _log); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public void setPerformanceInfo() throws Exception;", "public abstract void logTraceTime();", "public void testPerformance() {\n \t}", "public void startMeasuring() {\n\tsuper.startMeasuring();\n}", "public void assertPerformance() {\n\tsuper.assertPerformance();\n}", "@Override\n\tpublic void in...
[ "0.70495737", "0.65193653", "0.6413711", "0.6136403", "0.6026827", "0.59084976", "0.5889047", "0.58005023", "0.57574713", "0.56892824", "0.5679583", "0.55744994", "0.5569646", "0.5560178", "0.5513519", "0.54960775", "0.549307", "0.54853314", "0.5469545", "0.5457681", "0.54517...
0.0
-1
/ Will delegate to superclass implementation to get the path, but before returning it will for our convienience put the returned String into a request attribute under the key PROCESSED_PATH so that we can easily make further use of it later while processing the action.
protected String processPath(HttpServletRequest request, HttpServletResponse response) throws IOException { //20030305AH - Store result of processPath() in request attribute so can use it later for //looking up stuff - such as in navigationRenderer... String path = super.processPath(request, response); request.setAttribute(PROCESSED_PATH, path); return path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getResourcePath() {\n\t\tString reqResource = getRequest().getResourceRef().getPath();\n\t\treqResource = actualPath(reqResource, 1);\n\t\tLOGGERS.info(\"reqResourcePath---->\" + reqResource);\n\t\treturn reqResource;\n\t}", "public abstract String getRequestPathInfo();", "@Override \n public...
[ "0.68310803", "0.66105705", "0.65138656", "0.65005434", "0.6110172", "0.60793674", "0.602235", "0.6018547", "0.5992533", "0.59879935", "0.59578454", "0.5922269", "0.574928", "0.5704033", "0.56529754", "0.5650856", "0.5641818", "0.5572361", "0.5566249", "0.55353415", "0.552253...
0.7237115
0
/ Will delegate to the superclass to process the mapping, but before returning it to the caller will check to see if it is of the class GTActionMapping, and if so will then check if its logParameters property is set, and if so will call the logRequestDetails method in StaticWebUtils.
protected ActionMapping processMapping( HttpServletRequest request, HttpServletResponse response, String path) throws IOException { //20030425AH ActionMapping mapping = super.processMapping(request, response, path); if(mapping instanceof GTActionMapping) { if( ((GTActionMapping)mapping).isLogParameters() ) { StaticWebUtils.logRequestDetails(request, _log); } } return mapping; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ActionForward processActionPerform(HttpServletRequest request,\n HttpServletResponse response,\n Action action,\n ActionForm form,\n ...
[ "0.6292187", "0.6005824", "0.5642704", "0.5602408", "0.5499607", "0.53898585", "0.5309539", "0.52999413", "0.5241405", "0.52339375", "0.51619124", "0.51294214", "0.5126868", "0.51200676", "0.51196104", "0.5100793", "0.50655484", "0.5062434", "0.50529605", "0.50246066", "0.502...
0.8328064
0
Ask the specified Action instance to handle this request. Return the ActionForward instance (if any) returned by the called Action for further processing. Will also check to see if a GTAS Session is available if specified in the mapping.
protected ActionForward processActionPerform(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ActionMapping mapping) throws IOException, ServletException { //20030502AH - Copied from struts src, with extra code added try { if(mapping instanceof GTActionMapping) { //20050317AH - mod to also check for asdmin rights where spec'd in mapping GTActionMapping gtMapping = (GTActionMapping)mapping; boolean needsSession = gtMapping.isRequiresGtSession() ||gtMapping.isRequiresAdmin() || gtMapping.isRequiresP2P() || gtMapping.isRequiresUDDI(); if( needsSession ) { //We will try to obtain a reference to the IGTSession using the method provided //in StaticWebUtils. This will throw a NoSessionException if we have no IGTSession. //By putting this check here it will be captured as though it was thrown by the action. IGTSession gtasSession = StaticWebUtils.getGridTalkSession(request); //NSL20060424 Check for P2P and UDDI requirement if (gtMapping.isRequiresP2P() && gtasSession.isNoP2P()) { throw new IllegalStateException("P2P functionality access required for mapped path "+gtMapping.getPath()); } if (gtMapping.isRequiresUDDI() && gtasSession.isNoUDDI()) { throw new IllegalStateException("UDDI functionality access required for mapped path "+gtMapping.getPath()); } if(gtMapping.isRequiresAdmin() && !gtasSession.isAdmin()) { throw new IllegalStateException("Admin access required for mapped path " + gtMapping.getPath()); } } } return (action.execute(mapping, form, request, response)); } catch (Exception e) { return (processException(request, response,e, form, mapping)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ActionForward execute(ActionMapping actionMapping,\r\n ActionForm actionForm,\r\n HttpServletRequest request,\r\n HttpServletResponse response) {\r\n return process(actionMapping, actionForm, request, resp...
[ "0.5975075", "0.5813603", "0.5713297", "0.5475877", "0.53971845", "0.528728", "0.52715766", "0.52389437", "0.5234113", "0.5215233", "0.51921475", "0.515517", "0.5154823", "0.51333576", "0.51318157", "0.51267254", "0.5088897", "0.5087309", "0.5047174", "0.500584", "0.49970582"...
0.6825954
0
/ access modifiers changed from: packageprivate
public final int zzb() { return this.zzc.zzc() + this.zza + this.zzb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.7151384", "0.6686185", "0.65583766", "0.64826417", "0.64304984", "0.6385171", "0.6383977", "0.63483983", "0.633059", "0.62765336", "0.6263506", "0.6250637", "0.62373245", "0.62338716", "0.6228648", "0.61975765", "0.61975765", "0.6194941", "0.618365", "0.61799717", "0.61571...
0.0
-1
/ access modifiers changed from: packageprivate
public final int zzc() { return this.zzc.zzc() + this.zza; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
public final Object[] zze() { return this.zzc.zze(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_menu, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Construct a MethodType with just a name
private MethodType(String name) { super(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MethodBuilder constructor(String name) {\n\t\treturn new MethodBuilder().returnType(\"\").name(name);\n\t}", "Method createMethod();", "Method createMethod();", "public static MethodType fromMethod(MethodSymbol method) {\n return new MethodType(method);\n }", "public static MethodTy...
[ "0.6994712", "0.6757471", "0.6757471", "0.64633495", "0.6388096", "0.63542193", "0.6095563", "0.60811424", "0.60230523", "0.60078526", "0.5975524", "0.5975524", "0.5975524", "0.59655756", "0.5924197", "0.5900035", "0.58557785", "0.58470565", "0.5828486", "0.57763296", "0.5775...
0.7462211
0
Construct a MethodType from its declaring method
private MethodType(MethodSymbol method) { super(method.getName()); declarer = method.getDeclaringClass(); typeParams = Arrays.copyOf(method.getTypeParameters(), method.getTypeParameters().length); paramTypes = Arrays.copyOf(method.getParameterTypes(), method.getParameterTypes().length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MethodType fromMethod(MethodSymbol method) {\n return new MethodType(method);\n }", "Method createMethod();", "Method createMethod();", "public static StackManipulation of(JavaInstance.MethodType methodType) {\n Type[] parameterType = new Type[methodType.getParameterTypes().siz...
[ "0.76130146", "0.68689036", "0.68689036", "0.6375459", "0.6197827", "0.5992154", "0.59424376", "0.5907172", "0.5880572", "0.5846136", "0.5802276", "0.5794801", "0.56895375", "0.5660668", "0.5595911", "0.5533857", "0.55280924", "0.54930365", "0.5470828", "0.54545546", "0.54519...
0.6693151
3
Build a MethodType from its name and parameter types
public static MethodType fromParameters(String name, Type... paramTypes) { MethodType type = new MethodType(name); type.paramTypes = Arrays.copyOf(paramTypes, paramTypes.length); return type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private MethodType(String name) {\n super(name);\n }", "HxMethod createMethod(final String returnType,\n final String methodName,\n final String... parameterTypes);", "public static StackManipulation of(JavaInstance.MethodType methodType) {\n Type[...
[ "0.63287026", "0.60647947", "0.59050703", "0.590131", "0.5829944", "0.5715457", "0.5694369", "0.5682014", "0.5656001", "0.564811", "0.56217855", "0.5617289", "0.5617289", "0.55927384", "0.55884546", "0.55867994", "0.5572907", "0.53946686", "0.5385781", "0.53431636", "0.534177...
0.69992614
0
Build a MethodType from an existing MethodSymbol
public static MethodType fromMethod(MethodSymbol method) { return new MethodType(method); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private MethodType(MethodSymbol method) {\n super(method.getName());\n declarer = method.getDeclaringClass();\n typeParams = Arrays.copyOf(method.getTypeParameters(), method.getTypeParameters().length);\n paramTypes = Arrays.copyOf(method.getParameterTypes(), method.getParameterTypes()....
[ "0.61976695", "0.5880837", "0.5808551", "0.5782151", "0.5782151", "0.5772363", "0.56052095", "0.54855955", "0.5434625", "0.5396532", "0.53416646", "0.5233401", "0.51586634", "0.5133922", "0.51252204", "0.50142246", "0.49830225", "0.4983015", "0.49803865", "0.49436995", "0.493...
0.71423596
0
Determines if this MethodType is equivalent to another Type
public boolean isEquivalentTo(Type other) { if (other instanceof MethodType) { return sameSignature((MethodType)other); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean replacementfor(Type o);", "public abstract boolean isTypeCorrect();", "boolean isMoreSpecific (MethodType type) throws OverloadingAmbiguous {\r\n boolean status = false;\r\n\r\n try {\r\n for (int i = 0, size = arguments.size (); i < size; i++) {\r\n\tIdentifier this_arg = (Identifier) argum...
[ "0.644226", "0.64356405", "0.6199259", "0.6072713", "0.6054282", "0.6036052", "0.5989137", "0.5840127", "0.5771566", "0.5754106", "0.5739868", "0.57213616", "0.5693857", "0.56377894", "0.55960417", "0.55780005", "0.5496709", "0.54748803", "0.54709154", "0.54709154", "0.547091...
0.7823567
0
Determines if this MethodType has the same signature as another
public boolean sameSignature(MethodType other) { return name.equals(name) && Arrays.equals(typeParams, other.typeParams) && Arrays.equals(paramTypes, other.paramTypes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean sameSubsignature(MethodType other) {\n return sameSignature(other) || sameSignature(other.erase());\n }", "public boolean equals(JavaMethodSignature sig) {\n\t\t//if their signatures aren't the same length, we've got problems\n\t\tif (this.sig.size() != sig.sig.size())\n\t\t\treturn fals...
[ "0.74611825", "0.7349369", "0.7117203", "0.7028777", "0.69180185", "0.66214496", "0.6154001", "0.6154001", "0.5924306", "0.571706", "0.56239897", "0.55480623", "0.54623294", "0.5421684", "0.5397177", "0.53881335", "0.5387765", "0.5386566", "0.53819245", "0.53819245", "0.53819...
0.8086463
0
Determines if this MethodType has the same subsignature as another
public boolean sameSubsignature(MethodType other) { return sameSignature(other) || sameSignature(other.erase()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean sameSignature(MethodType other) {\n return name.equals(name) &&\n Arrays.equals(typeParams, other.typeParams) &&\n Arrays.equals(paramTypes, other.paramTypes);\n }", "public boolean equals(JavaMethodSignature sig) {\n\t\t//if their signatures aren't the same length,...
[ "0.73656213", "0.7289576", "0.65301365", "0.6505204", "0.64806616", "0.624113", "0.60629857", "0.60629857", "0.5971832", "0.5914775", "0.5773028", "0.5481579", "0.54659253", "0.5419296", "0.5386758", "0.53813183", "0.5361645", "0.53071165", "0.52929294", "0.52925146", "0.5277...
0.78942716
0
Determines if this MethodType is override equivalent with another
public boolean overrideEquivalent(MethodType other) { return this.sameSubsignature(other) || other.sameSubsignature(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isMethodOverridden() {\n DetailAST current = ast;\n Boolean result = null;\n for (; current != null && result == null; current = current.getParent()) {\n switch (current.getType()) {\n case TokenTypes.METHOD_DEF:\n ...
[ "0.7664831", "0.74540704", "0.7450556", "0.6810779", "0.680869", "0.65066594", "0.64269316", "0.6412376", "0.6356108", "0.6332711", "0.63128084", "0.625071", "0.6236602", "0.61353683", "0.5945631", "0.58689797", "0.57534486", "0.57344455", "0.56827015", "0.56309533", "0.55143...
0.7959158
0
todo: need code expert subsystem
public void setTested(boolean tested) { isTested = tested; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void smell() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@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\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tp...
[ "0.6177914", "0.6172399", "0.61473954", "0.61152375", "0.6108922", "0.60955626", "0.6073166", "0.6004108", "0.5996019", "0.5994796", "0.5973617", "0.5919125", "0.59182936", "0.5912749", "0.58922607", "0.58607584", "0.58485585", "0.5846281", "0.58432436", "0.58340335", "0.5827...
0.0
-1
Creates new form sobre
public sobre() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public FormInserir() {\n initComponents();\n }", "@GetMapping(value = \"/cr...
[ "0.74101937", "0.6990298", "0.66776824", "0.6394003", "0.6370148", "0.6268859", "0.6268257", "0.6239992", "0.6178434", "0.61091983", "0.60988975", "0.605212", "0.6046528", "0.60374725", "0.6033329", "0.60257655", "0.6015373", "0.6013131", "0.60094297", "0.60089177", "0.600411...
0.5473728
96
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() { jPanel1 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); setClosable(true); setIconifiable(true); setTitle("Sobre"); setPreferredSize(new java.awt.Dimension(730, 488)); jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("")); jLabel2.setText("Anbal S. B. S. Costa, Carolina Barros, Jociane M. Rocha, Jonathan Campos, Marcielli Oliveira, Michael Natã, Raquel Gomes"); jLabel5.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N jLabel5.setText("INTEGRANTES DO GRUPO:"); jLabel3.setText("Etec Prof. Marcos Uchôas dos Santos Penchel"); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N jLabel1.setText("SISTEMA: "); jLabel4.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N jLabel4.setText("INSTITUIÇÃO:"); jLabel6.setText("SearchFor TCC's"); jLabel7.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N jLabel7.setText("PROFESSOR ORIENTADOR:"); jLabel8.setText("Emerson Salomão"); jLabel9.setText("Cadastro de Cronogramas e Trabalhos de Graduação de todos os cursos, anos e períodos."); jLabel10.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N jLabel10.setText("SOBRE:"); jLabel11.setText("Search = Procurar, For = por/para, TCC's = Trabalhos de Graduação/Cronogramas"); jLabel12.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N jLabel12.setText("SIGNIFICADO:"); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1) .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 533, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 624, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 580, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel7) .addComponent(jLabel8) .addComponent(jLabel9) .addComponent(jLabel10) .addComponent(jLabel11) .addComponent(jLabel12)) .addContainerGap(20, Short.MAX_VALUE)) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel6) .addGap(18, 18, 18) .addComponent(jLabel12) .addGap(4, 4, 4) .addComponent(jLabel11) .addGap(18, 18, 18) .addComponent(jLabel10) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel9) .addGap(18, 18, 18) .addComponent(jLabel5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel2) .addGap(18, 18, 18) .addComponent(jLabel7) .addGap(3, 3, 3) .addComponent(jLabel8) .addGap(18, 18, 18) .addComponent(jLabel4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel3) .addContainerGap(29, Short.MAX_VALUE)) ); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(56, 56, 56) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(79, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap(59, Short.MAX_VALUE) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(66, 66, 66)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); setBounds(90, 90, 799, 488); }
{ "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 ...
[ "0.73195183", "0.7290407", "0.7290407", "0.7290407", "0.72855854", "0.7248445", "0.7213232", "0.72084314", "0.7195551", "0.71902007", "0.71835697", "0.7158979", "0.71473545", "0.70928645", "0.70807934", "0.70575565", "0.6987147", "0.6976941", "0.69544566", "0.69541115", "0.69...
0.0
-1
Sets the IconID of the player
public void setIconId(int iconId) { this.iconId = iconId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void changeIcon(Icon icon) {\r\n this.iconId = icon.getId();\r\n }", "@Override\n\tpublic void setIcon(int resId) {\n\t\t\n\t}", "@Override\n\tpublic void setIconId(long iconId) {\n\t\t_scienceApp.setIconId(iconId);\n\t}", "public void setIcon(Image i) {icon = i;}", "public void setIcon(FS...
[ "0.7031507", "0.6986593", "0.6734065", "0.67250866", "0.6519797", "0.6507774", "0.64641565", "0.64513546", "0.63665384", "0.63665384", "0.6363219", "0.6349814", "0.6349424", "0.6347903", "0.63056064", "0.6298078", "0.6298078", "0.6293273", "0.6213915", "0.6173602", "0.6168946...
0.7238285
0
Sets the rating of the player
public void setRating(int rating) { this.rating = rating; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRating(int rating);", "public void setRating(int rating)\n {\n this.rating = rating;\n }", "public void setRating(int rating) {\n this.rating = rating;\n }", "public void setRating(Integer rating) {\r\n this.rating = rating;\r\n }", "public void setRating(dou...
[ "0.7996652", "0.7656259", "0.7576576", "0.75511503", "0.75425327", "0.7527052", "0.75146186", "0.75071746", "0.7491356", "0.74465966", "0.74028957", "0.7381676", "0.73657364", "0.723165", "0.7123901", "0.7002954", "0.6962576", "0.6944791", "0.69018245", "0.6783756", "0.674023...
0.76463073
2
set increment the amount of matches played
public void setMatches() { this.matches++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}", "public void increaseTurnCount()\n\t{\n\t\tturnNumber++;\n\t\tthis.currentPlayerID++;\n\t\tthis.currentPlayerID = this.currentPlayerID % this.playerList.size();\n\t}", "public void addMatch() {\n totalMatches ++;\n }", "public void...
[ "0.7376734", "0.72186923", "0.70536554", "0.6917256", "0.6822253", "0.68016607", "0.67838436", "0.6698912", "0.66637", "0.66353", "0.6628029", "0.6587708", "0.65824443", "0.6557914", "0.6544803", "0.653943", "0.65266937", "0.6492967", "0.64900315", "0.6488212", "0.6468115", ...
0.80215544
0
increment the number op wins of the player
public void setWins() { this.wins++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incrementWin(){wins += 1;}", "private void wins(Player player){\n int win = 1;\n player.setWins(win);\n }", "public void incOWins() {\n oWins++;\n }", "public int incrementNumberWins()\n\t{\n\t\treturn myNumberWins++;\n\t}", "public static void playerWonInc(){\r\n\t\t...
[ "0.79844624", "0.78883433", "0.7792216", "0.7743519", "0.77274877", "0.758497", "0.75715274", "0.74542236", "0.7347628", "0.7277514", "0.72181463", "0.7197276", "0.71376556", "0.7074415", "0.7060264", "0.6992812", "0.6911719", "0.6888573", "0.68829954", "0.6856888", "0.685610...
0.79010576
1
increment the number of losses the player has made to total.
public void setLoses() { this.losses++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void increaseWins(){\n this.numberOfWins=this.numberOfWins+1;\n }", "public void incOWins() {\n oWins++;\n }", "public void incrementNumAttacked( ){\n this.numAttacked++;\n }", "public void incrementWin(){wins += 1;}", "public int incrementNumberWins()\n\t{\n\t\treturn myNumb...
[ "0.7250421", "0.7215219", "0.7110975", "0.7076121", "0.70566475", "0.6943656", "0.6857131", "0.6829505", "0.68228203", "0.6773736", "0.6767756", "0.67604035", "0.67318875", "0.666528", "0.6646865", "0.66234577", "0.66041476", "0.65784514", "0.6539926", "0.6539591", "0.6505484...
0.71232617
2
Change the icon of the player
public void changeIcon(Icon icon) { this.iconId = icon.getId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void changePlayPauseIcon(int which) {\n switch (which) {\n case 1://play\n mBinding.imageViewPlay.setImageResource(R.drawable.play_circle_icon);\n break;\n case 2://pause\n mBinding.imageViewPlay.setImageResource(R.drawable.pause_cir...
[ "0.7329738", "0.7268725", "0.69517696", "0.6945128", "0.68804634", "0.68798065", "0.68730736", "0.68730736", "0.6865951", "0.6865951", "0.68551433", "0.6853191", "0.6775455", "0.67745095", "0.6747055", "0.6737808", "0.67118865", "0.67102504", "0.6699497", "0.66897124", "0.668...
0.68774384
6
set the id of the player
public void setId(int id) { this.id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPlayerId(int playerId);", "public void setPlayerId(String s) {\n\t\tplayerId = s;\n\t}", "public Builder setPlayerId(long value) {\n \n playerId_ = value;\n onChanged();\n return this;\n }", "public void setPlayerId(Integer playerId) {\n this.PlayerId = playerId;\n }"...
[ "0.8420678", "0.7577188", "0.72982246", "0.7243349", "0.71774673", "0.7142288", "0.71233344", "0.7097574", "0.7040928", "0.7040928", "0.6940916", "0.69079", "0.69029033", "0.6897169", "0.6891108", "0.6821764", "0.68178844", "0.68166584", "0.67938036", "0.6784199", "0.6769097"...
0.0
-1
Making json object request
public void postAPICall() { /** * String Request */ JSONObject mJsonObjectRequest = null; try { mJsonObjectRequest = new JSONObject(parameters); } catch (JSONException e) { e.printStackTrace(); } JsonRequest<JSONArray> request = new JsonRequest<JSONArray>(Request.Method.POST, (AppConstants.APP_WEBSERVICE_API_URL + GlobalKeys.ORDER_STATUS_INFO).trim(), mJsonObjectRequest.toString(), new Response.Listener<JSONArray>() { @Override public void onResponse(JSONArray jsonArray) { System.out.println(jsonArray.toString()); responseListener.onSuccessOfResponse(jsonArray.toString()); } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError volleyError) { try { Response<JSONObject> errorResponse = Response.error(volleyError); String errorString = new String(errorResponse.error.networkResponse.data, HttpHeaderParser .parseCharset(errorResponse.error.networkResponse.headers)); JSONObject errorJsonObj = new JSONObject(errorString); WebserviceAPIErrorHandler.getInstance() .VolleyErrorHandler(volleyError, mActivity); responseListener.onFailOfResponse(errorJsonObj); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } catch (JSONException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } } }) { @Override protected Response<JSONArray> parseNetworkResponse(NetworkResponse networkResponse) { try { String jsonString = new String(networkResponse.data, HttpHeaderParser .parseCharset(networkResponse.headers)); return Response.success(new JSONArray(jsonString), HttpHeaderParser .parseCacheHeaders(networkResponse)); } catch (UnsupportedEncodingException e) { return Response.error(new ParseError(e)); } catch (JSONException je) { return Response.error(new ParseError(je)); } } @Override public Map<String, String> getHeaders() throws AuthFailureError { Map<String, String> params = new HashMap<String, String>(); params.put(GlobalKeys.HEADER_KEY_CONTENT_TYPE, GlobalKeys.HEADER_VALUE_CONTENT_TYPE); params.put(GlobalKeys.ACCEPT_KEY_CONTENT_TYPE, GlobalKeys.HEADER_VALUE_CONTENT_TYPE); params.put(GlobalKeys.AUTHTOKEN, auth_token); params.put(GlobalKeys.USERID, userId); return params; } }; // Adding request to request queue if (ParkingAppController.getInstance() != null) { ParkingAppController.getInstance().addToRequestQueue( request, GlobalKeys.ORDER_STATUS_INFO); } // set request time-out request.setRetryPolicy(new DefaultRetryPolicy( AppConstants.ONE_SECOND * 20, 0, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private <T> JSONObject getJSONFromObject(T request) throws IOException, JSONException {\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS, false);\n String temp = null;\n temp = mapper.writeValueAsString(request);\n JSO...
[ "0.6601783", "0.6585028", "0.64613676", "0.63550174", "0.63262516", "0.627357", "0.6179144", "0.6080242", "0.59795433", "0.597698", "0.5932794", "0.5914675", "0.59124583", "0.5873004", "0.5833772", "0.5833772", "0.5833772", "0.5799525", "0.5774401", "0.5774401", "0.57509357",...
0.0
-1
The Factory for the model. It provides a create method for each nonabstract class of the model.
public interface ExploitationFactory extends EFactory { /** * The singleton instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ ExploitationFactory eINSTANCE = exploitation.impl.ExploitationFactoryImpl.init(); /** * Returns a new object of class '<em>Exploitation</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Exploitation</em>'. * @generated */ Exploitation createExploitation(); /** * Returns a new object of class '<em>Ressource</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Ressource</em>'. * @generated */ Ressource createRessource(); /** * Returns a new object of class '<em>Surface</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Surface</em>'. * @generated */ Surface createSurface(); /** * Returns a new object of class '<em>Parcelle</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Parcelle</em>'. * @generated */ Parcelle createParcelle(); /** * Returns a new object of class '<em>Elevage</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Elevage</em>'. * @generated */ Elevage createElevage(); /** * Returns a new object of class '<em>Culture</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Culture</em>'. * @generated */ Culture createCulture(); /** * Returns a new object of class '<em>Environment</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Environment</em>'. * @generated */ Environment createEnvironment(); /** * Returns the package supported by this factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the package supported by this factory. * @generated */ ExploitationPackage getExploitationPackage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "TestModelFactory getTestModelFactory();", "public UsermodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public SqliteModelFactoryImp...
[ "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.70742077", "0.7051943", "0.6983852", "0.69748455", "0.6965496", "0.69568366", "0.69481784", "0.6860293", "0.6811446", "0.6807123", "0.6756206", "0.6694741", "0.6656823", "0.66...
0.0
-1
Returns a new object of class 'Exploitation'.
Exploitation createExploitation();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ExploitationPackage getExploitationPackage();", "public interface ExploitationFactory extends EFactory {\r\n\t/**\r\n\t * The singleton instance of the factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tExploitationFactory eINSTANCE = exploitation.impl.Exploit...
[ "0.68882", "0.67014843", "0.66879386", "0.63055", "0.6183492", "0.61402816", "0.58933914", "0.57455266", "0.5722121", "0.5512942", "0.5472787", "0.5430547", "0.54252243", "0.5404387", "0.53867555", "0.5333226", "0.5331831", "0.5322889", "0.5314336", "0.5310223", "0.5301034", ...
0.8667244
0
Returns a new object of class 'Ressource'.
Ressource createRessource();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract T createRessource();", "public Object makeResource();", "Resource createResource();", "ObjectResource createObjectResource();", "public OLWMTSSource(){\n\t\tsuper();\n\t}", "public ResourceFactory(){}", "protected Resource newResource()\n\t{\n\t\tPackageResource packageResource = Pac...
[ "0.8106545", "0.6797406", "0.6558475", "0.64902407", "0.6460598", "0.6455115", "0.62389755", "0.61702603", "0.60665435", "0.60224974", "0.60191137", "0.599122", "0.595206", "0.5935624", "0.59206873", "0.59135693", "0.5871041", "0.5871041", "0.58523816", "0.5836533", "0.581029...
0.8513825
0
Returns a new object of class 'Surface'.
Surface createSurface();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Surface(){\r\n\t\tsuper(SURFACE_TAG,\"\");\r\n\t\tthis.setRef(\"CG\");\r\n\t}", "void createSurface(SurfaceTexture surfaceTexture);", "public org.landxml.schema.landXML11.SurfaceDocument.Surface addNewSurface()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\...
[ "0.74981767", "0.7089636", "0.6911741", "0.6718978", "0.6661016", "0.6438331", "0.63282174", "0.6308633", "0.62905264", "0.6255711", "0.61321145", "0.60505784", "0.60480994", "0.6027804", "0.6005289", "0.6004913", "0.59380186", "0.5931378", "0.58841896", "0.58422726", "0.5809...
0.81643105
0
Returns a new object of class 'Parcelle'.
Parcelle createParcelle();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Movie createFromParcel(Parcel in) {\n return new Movie(in);\n }", "@Override\n\t\tpublic NewDoc createFromParcel(Parcel source) {\n\t\t\treturn new NewDoc(source);\n\t\t}", "@Override\n public SpesaObject createFromParcel(Parcel in) {\n return new S...
[ "0.6670964", "0.6654922", "0.663755", "0.65029436", "0.63781756", "0.6324053", "0.62846285", "0.6097956", "0.60761803", "0.6038642", "0.602165", "0.5967717", "0.5947233", "0.59403294", "0.5938954", "0.59368646", "0.59121996", "0.5898167", "0.587801", "0.5780931", "0.5779363",...
0.85065424
0
Returns a new object of class 'Elevage'.
Elevage createElevage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Eleve() {\r\n\t\tsuper();\r\n\t}", "public synchronized static Everbie getEverbie(){\n \t\tif (!Everbie.exists()){\n \t\t\teverbie = new Everbie(DEFAULT_NAME, DEFAULT_RACE);\n \t\t}\n \t\treturn everbie;\n \t}", "public Fahrzeug erzeuge() {\n\t\t\n\t\treturn new DieselAuto();\n\t\t\n\t}", "public stat...
[ "0.6632287", "0.5935724", "0.58607024", "0.5786297", "0.57706684", "0.5730459", "0.57154506", "0.56553286", "0.55999297", "0.55961794", "0.55961794", "0.5550827", "0.5502182", "0.549806", "0.54886454", "0.54788667", "0.5461167", "0.5457875", "0.5457875", "0.5457875", "0.54578...
0.8704459
0
Returns a new object of class 'Culture'.
Culture createCulture();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Locale create() {\n BaseLocale base = _locbld.getBaseLocale();\n LocaleExtensions ext = _locbld.getLocaleExtensions();\n return Locale.getInstance(base.getLanguage(), base.getScript(), base.getRegion(), base.getVariant(), ext);\n }", "Language create(Language langua...
[ "0.65931463", "0.59068245", "0.54076004", "0.53204477", "0.5245379", "0.52377", "0.51059455", "0.5064821", "0.50644785", "0.5057132", "0.50365853", "0.49986252", "0.49741295", "0.49646106", "0.49258798", "0.49233153", "0.48792392", "0.48660052", "0.48623794", "0.483935", "0.4...
0.8107739
0
Returns a new object of class 'Environment'.
Environment createEnvironment();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Environment getEnvironment() {\n\t\tif (environment == null) {\n\t\t\tenvironment = new StandardEnvironment();\n\t\t}\n\t\treturn environment;\n\t}", "public void create(Environment environment);", "public Environment environment()\n {\n return theEnv;\n }", "public static Tr...
[ "0.73038095", "0.70078963", "0.6799271", "0.6623502", "0.66079825", "0.65105045", "0.64702624", "0.6466732", "0.64015573", "0.63775635", "0.6206663", "0.6174986", "0.6174986", "0.6162573", "0.6028011", "0.6020392", "0.5967386", "0.59614426", "0.59457916", "0.59313685", "0.592...
0.7959965
1
Returns the package supported by this factory.
ExploitationPackage getExploitationPackage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PackageType getRequiredPackage();", "public PackageNode getPackage();", "java.lang.String getPackage();", "public String getPackageName();", "public String getPackageName() {\n return pkg;\n }", "String getPackageName();", "public DsByteString getPackage() {\n return m_strPackage;\n }", ...
[ "0.7031596", "0.6824025", "0.6818806", "0.6752645", "0.67181015", "0.6704875", "0.6698022", "0.6678774", "0.6635858", "0.6556546", "0.65183675", "0.6501405", "0.6496429", "0.6481852", "0.6376274", "0.63505894", "0.6338929", "0.63388515", "0.6327788", "0.6314242", "0.63126606"...
0.0
-1
Sliding window Time complexity : O(2n) = O(n)O(2n)=O(n) Space complexity : O(min(m, n))O(min(m,n)). Same as the previous approach.
public int lengthOfLongestSubstring(String s) { int[] chars = new int[128]; int left = 0; int right = 0; int res = 0; while (right < s.length()) { char r = s.charAt(right); chars[r]++; while (chars[r] > 1) { char l = s.charAt(left); chars[l]--; left++; } res = Math.max(res, right - left + 1); right++; } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ArrayList<Integer> maxSlidingWindow(int[] nums, int k) {\n ArrayList<Integer> ans = new ArrayList<Integer>();\n Deque<Integer> deque = new ArrayDeque<Integer>();\n if (nums.length == 0) {\n return ans;\n }\n for (int i = 0; i < k - 1; i++) {\n ...
[ "0.6047944", "0.601484", "0.59583694", "0.5939462", "0.58846045", "0.5868619", "0.5828132", "0.5814571", "0.5591999", "0.55733275", "0.5415999", "0.51176715", "0.50720835", "0.5046278", "0.50398725", "0.5008571", "0.4947594", "0.4938317", "0.49163195", "0.48589733", "0.480649...
0.0
-1
TODO Autogenerated method stub
@Override @Transactional public void callProc(String proc, List<String> paras) { Session session = getHibernateTemplate().getSessionFactory().openSession(); // Transaction tx = session.beginTransaction(); SQLQuery q = session.createSQLQuery("{call " + proc + " }"); if (paras != null) { int i = 0; for (String para : paras) { q.setString(i++, para); } } q.executeUpdate(); }
{ "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 getExr...
[ "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.608016...
0.0
-1
TODO Autogenerated method stub
@Override @Transactional public List callProcR(String proc, List<String> paras) { Session session = getHibernateTemplate().getSessionFactory().openSession(); // Transaction tx = session.beginTransaction(); SQLQuery q = session.createSQLQuery("{call " + proc + "(?) }"); if (paras != null) { int i = 0; for (String para : paras) { q.setString(i++, para); } } return q.list(); }
{ "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 getExr...
[ "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.608016...
0.0
-1
calculate the sekante or if the angle is small a distance
private static double calculateSekante(double left, double right) { // if there was only a small change in angle , should be unnecessary if (Math.abs(newangle) < deviationAngle) { distance = (left + right) / 2.0; // isLine = false; return distance; } // compute radius double r = 0.5 * (left + right) / newangle; radius = r; InputHandler.stepForward("ra." + radius); // compute distance with the center pos distance = 2.0 * (r) * Math.sin(newangle / 2.0); return (distance); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double calculateSine(double angle);", "public double calculateArcSine(double angle);", "private double distantziaKalkulatu() {\r\n\t\tdouble lurrarenRadioa = 6371;// kilometrotan Lurraren radioa\r\n\t\tdouble dLat = Math.toRadians(terLat - latitudea); //\r\n\t\tdouble dLng = Math.toRadians(termLong - lo...
[ "0.63484377", "0.62115693", "0.6134753", "0.6024838", "0.6000445", "0.59713167", "0.59226555", "0.5894545", "0.5873095", "0.5867177", "0.5842787", "0.58324504", "0.57807666", "0.5748205", "0.57389265", "0.56627053", "0.56574565", "0.56566876", "0.5656226", "0.56067616", "0.55...
0.6789163
0
// convert the degree Tachocount in a distance(meter)
static public double convertTachoCountToDistance(double TachoCount) { return TachoCount = (TachoCount * 0.5 * wheeldiameter * Math.PI / 180); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double convert(double distance, LengthUnit units)\r\n {\r\n return this.toMetersConversionFactor * distance /\r\n units.toMetersConversionFactor;\r\n }", "public static double convertDistance(double distance) {\n // Compute and return the correct value (in degrees)\n return (...
[ "0.61445814", "0.6046331", "0.59753346", "0.5869201", "0.5860325", "0.5839431", "0.583359", "0.57515764", "0.5719355", "0.57024145", "0.5638899", "0.5626807", "0.5619123", "0.5618446", "0.56113815", "0.55989546", "0.5587361", "0.5528625", "0.5490346", "0.5458368", "0.5456091"...
0.7229476
0
Lee un caracter desde la consogit la return msj El mensaje a mostrar
public static char leerCaracter() { char letra = sc.nextLine().charAt(0); // Lee una cadena y obtiene el primer caracter return letra; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@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 }", "private String pedirCasilla(S...
[ "0.66816014", "0.6443745", "0.637836", "0.62368685", "0.6171196", "0.6126997", "0.6117686", "0.59909534", "0.58885616", "0.58645934", "0.582383", "0.58147365", "0.5768514", "0.5767425", "0.5760013", "0.570838", "0.56966746", "0.5681898", "0.56803554", "0.5626486", "0.5625666"...
0.5431981
52
Lee un entero desde la consola
public static int leerEntero() { int entero = Integer.parseInt(sc.nextLine()); // Lee una cadena y convierte a entero return entero; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void txt_montoKeyReleased(java.awt.event.KeyEvent evt) {\n if (evt.getKeyCode()==KeyEvent.VK_ENTER){\n insertarRubro();\n } \n }", "private void teclouEnter() {\n //menu principal\n if (this.getFocusOwner() == listaMenuPrincipal) {\n if (listaM...
[ "0.6506318", "0.6412167", "0.6385773", "0.63167816", "0.6313918", "0.620705", "0.6162849", "0.61592174", "0.61165977", "0.6107122", "0.6099023", "0.6097658", "0.6089484", "0.6086741", "0.60435224", "0.6008266", "0.5956998", "0.595595", "0.5920152", "0.591682", "0.59090364", ...
0.66600126
0
To change body of generated methods, choose Tools | Templates.
@Override public void actionPerformed(ActionEvent e) { if(e.getSource()==backButton){ HomeFrame frame=new HomeFrame(); frame.setTitle("Home Form"); frame.setVisible(true); frame.setBounds(10,10,370,500); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setResizable(false); this.dispose(); } else if(e.getSource()==addButton){ if(!debit.isSelected() && !credit.isSelected()){ JOptionPane.showMessageDialog(this, "Please select type of payment."); }else{ try { AddMoneyFrame frame; frame = new AddMoneyFrame(); frame.setTitle("Verification Form"); frame.setVisible(true); frame.setBounds(10,10,370,500); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setResizable(false); this.dispose(); } catch (ParseException ex) { Logger.getLogger(WalletFrame.class.getName()).log(Level.SEVERE, null, ex); } catch(Exception ex){ System.err.print(ex); } } } else{ throw new UnsupportedOperationException("Not supported yet."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void generateCode()\n {\n \n }", "public void method_201() {}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void billGenerate() {\n\t\t\r\n\t}", "public void generate() {\n\t}", "@Override\n public void function()\n {\n ...
[ "0.718194", "0.6990495", "0.6909162", "0.6770658", "0.67677736", "0.67383415", "0.67383415", "0.66908675", "0.6644771", "0.6635065", "0.6614288", "0.6606189", "0.66053754", "0.65955913", "0.65865415", "0.6576358", "0.65579724", "0.6523271", "0.6513185", "0.6509412", "0.650584...
0.0
-1
Created by Shawn on 2015/6/1.
public interface ProductRepository extends JpaRepository<Product, Long>,JpaSpecificationExecutor<Product> { Page<Product> findByTitle(String title, Pageable pageable); Page<Product> findByTitleAndRecommendOrHot(String title, Pageable pageable); @Query(value = "select id, name,(select count(1) from t_product where typeId=t.id) count from t_product_type t ", nativeQuery = true) List findProductTypeCount(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void b...
[ "0.6084503", "0.604976", "0.5939785", "0.59293365", "0.59057575", "0.5848162", "0.5848162", "0.582568", "0.57834655", "0.57712317", "0.57710165", "0.57698864", "0.57507765", "0.5750727", "0.5740772", "0.5728338", "0.5715742", "0.57040316", "0.57009023", "0.56987464", "0.56908...
0.0
-1
/ 30: / 31:
public void think() /* 32: */ { /* 33: 29 */ think_blocking(); /* 34: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Period mo20733e();", "private int normalizeTime() {\n int currentTimeSeconds = (int) (System.currentTimeMillis() / 1000);\n\n // The graphing interval in minutes\n // TODO not hardcoded :3\n int interval = 30;\n\n // calculate the devisor denominator\n int denom = interv...
[ "0.58123296", "0.5408091", "0.5296399", "0.5293057", "0.51881385", "0.51842034", "0.5079915", "0.5076881", "0.5054898", "0.5010471", "0.5004682", "0.50012267", "0.49471682", "0.49352333", "0.4921015", "0.49166724", "0.48979965", "0.48919165", "0.48887467", "0.48849365", "0.48...
0.0
-1
/ 35: / 36:
public void think_blocking() /* 37: */ { /* 38: 33 */ Scanner in = new Scanner(System.in); /* 39: */ Object localObject; /* 40:143 */ for (;; ((Iterator)localObject).hasNext()) /* 41: */ { /* 42: 38 */ System.out.print("Next action ([move|land|attk] id; list; exit): "); /* 43: */ /* 44: 40 */ String[] cmd = in.nextLine().split(" "); /* 45: */ /* 46: 42 */ System.out.print("Processing command... "); /* 47: 43 */ System.out.flush(); /* 48: */ /* 49: 45 */ this.game.updateSimFrame(); /* 50: */ /* 51: */ /* 52: */ /* 53: */ /* 54: */ /* 55: */ /* 56: 52 */ MapView<Integer, Base.BasicView> bases = this.game.getAllBases(); /* 57: 53 */ MapView<Integer, Plane.FullView> planes = this.game.getMyPlanes(); /* 58: 54 */ MapView<Integer, Plane.BasicView> ennemy_planes = this.game.getEnnemyPlanes(); /* 59: */ /* 60: 56 */ List<Command> coms = new ArrayList(); /* 61: */ try /* 62: */ { /* 63: 59 */ boolean recognized = true; /* 64: 60 */ switch ((localObject = cmd[0]).hashCode()) /* 65: */ { /* 66: */ case 3004906: /* 67: 60 */ if (((String)localObject).equals("attk")) {} /* 68: */ break; /* 69: */ case 3127582: /* 70: 60 */ if (((String)localObject).equals("exit")) { /* 71: */ break label914; /* 72: */ } /* 73: */ break; /* 74: */ case 3314155: /* 75: 60 */ if (((String)localObject).equals("land")) { /* 76: */ break; /* 77: */ } /* 78: */ break; /* 79: */ case 3322014: /* 80: 60 */ if (((String)localObject).equals("list")) {} /* 81: */ case 3357649: /* 82: 60 */ if ((goto 793) && (((String)localObject).equals("move"))) /* 83: */ { /* 84: 64 */ if (cmd.length != 2) { /* 85: */ break label804; /* 86: */ } /* 87: 66 */ int id = Integer.parseInt(cmd[1]); /* 88: 67 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(id)); /* 89: 68 */ Coord.View c = null; /* 90: 70 */ if (b == null) /* 91: */ { /* 92: 71 */ if (this.game.getCountry().id() != id) /* 93: */ { /* 94: 73 */ System.err.println("This id isn't corresponding neither to a base nor your country"); /* 95: */ break label804; /* 96: */ } /* 97: 77 */ c = this.game.getCountry().position(); /* 98: */ } /* 99: */ else /* 100: */ { /* 101: 79 */ c = b.position(); /* 102: */ } /* 103: 81 */ for (Plane.FullView p : planes.valuesView()) { /* 104: 82 */ coms.add(new MoveCommand(p, c)); /* 105: */ } /* 106: */ break label804; /* 107: 87 */ int id = Integer.parseInt(cmd[1]); /* 108: 88 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(id)); /* 109: 89 */ AbstractBase.View c = null; /* 110: 91 */ if (b == null) /* 111: */ { /* 112: 92 */ if (this.game.getCountry().id() != id) /* 113: */ { /* 114: 94 */ System.err.println("You can't see this base, move around it before you land"); /* 115: */ break label804; /* 116: */ } /* 117: 98 */ c = this.game.getCountry(); /* 118: */ } /* 119: */ else /* 120: */ { /* 121:100 */ c = b; /* 122: */ } /* 123:102 */ for (Plane.FullView p : planes.valuesView()) { /* 124:103 */ coms.add(new LandCommand(p, c)); /* 125: */ } /* 126: */ break label804; /* 127:108 */ Plane.BasicView ep = (Plane.BasicView)ennemy_planes.get(Integer.valueOf(Integer.parseInt(cmd[1]))); /* 128:109 */ if (ep == null) /* 129: */ { /* 130:111 */ System.err.println("Bad id, this plane does not exists"); /* 131: */ } /* 132: */ else /* 133: */ { /* 134:114 */ for (Plane.FullView p : planes.valuesView()) { /* 135:115 */ coms.add(new AttackCommand(p, ep)); /* 136: */ } /* 137: */ break label804; /* 138:118 */ System.out.println(); /* 139:119 */ System.out.println(">> My planes:"); /* 140:120 */ for (Plane.FullView p : planes.valuesView()) { /* 141:121 */ System.out.println(p); /* 142: */ } /* 143:122 */ System.out.println(">> Ennemy planes:"); /* 144:123 */ for (Plane.BasicView p : ennemy_planes.valuesView()) { /* 145:124 */ System.out.println(p); /* 146: */ } /* 147:125 */ System.out.println(">> Visible bases :"); /* 148:126 */ for (Base.FullView b : this.game.getVisibleBase().valuesView()) { /* 149:127 */ System.out.println(b); /* 150: */ } /* 151:128 */ System.out.println(">> Your Country"); /* 152:129 */ System.out.println(this.game.getCountry()); /* 153: */ } /* 154: */ } /* 155:130 */ break; /* 156: */ } /* 157:132 */ recognized = false; /* 158:133 */ System.err.println("Unrecognized command!"); /* 159: */ label804: /* 160:135 */ if (recognized) { /* 161:136 */ System.out.println("Processed"); /* 162: */ } /* 163: */ } /* 164: */ catch (IllegalArgumentException e) /* 165: */ { /* 166:139 */ System.out.println("Command failed: " + e); /* 167:140 */ System.err.println("Command failed: " + e); /* 168: */ } /* 169:143 */ localObject = coms.iterator(); continue;Command c = (Command)((Iterator)localObject).next(); /* 170:144 */ this.game.sendCommand(c); /* 171: */ } /* 172: */ label914: /* 173:148 */ in.close(); /* 174:149 */ this.game.quit(0); /* 175: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int mo36g() {\n return 4;\n }", "public int mo36g() {\n return 8;\n }", "public int mo36g() {\n return 2;\n }", "public int method_2436() {\r\n return 16;\r\n }", "private int K(int t)\n {\n if(t<=19)\n return 0x5a827999;\n else if(t<=...
[ "0.64945644", "0.6488681", "0.6187714", "0.58974814", "0.55210495", "0.55024576", "0.5396204", "0.5338721", "0.5242571", "0.52399516", "0.51958615", "0.5167079", "0.51472825", "0.51135916", "0.5098261", "0.5085783", "0.5083903", "0.506599", "0.5065861", "0.5065794", "0.506353...
0.0
-1
/ 176: / 177:
public void think_async() /* 178: */ { /* 179:153 */ Scanner in = new Scanner(System.in); /* 180: */ /* 181: */ /* 182: */ /* 183: */ /* 184: */ /* 185: */ /* 186: */ /* 187: */ /* 188: */ /* 189: */ /* 190: */ /* 191: */ /* 192: */ /* 193: */ /* 194: */ /* 195: */ /* 196:170 */ Thread updater = new Thread() /* 197: */ { /* 198:157 */ public volatile boolean active = true; /* 199: */ /* 200: */ public void run() /* 201: */ { /* 202:161 */ while (this.active) { /* 203:162 */ synchronized (this) /* 204: */ { /* 205:163 */ ConsoleAI.this.game.updateSimFrame(); /* 206: */ } /* 207: */ } /* 208: */ } /* 209:170 */ }; /* 210:171 */ updater.start(); /* 211: */ Plane.FullView p; /* 212:232 */ for (;; p.hasNext()) /* 213: */ { /* 214:184 */ System.out.print("Next action ([move|land|attk] id; exit to quit): "); /* 215: */ /* 216: */ /* 217:187 */ String[] cmd = in.nextLine().split(" "); /* 218: */ /* 219: */ /* 220: */ /* 221: */ /* 222: */ /* 223: */ /* 224: */ /* 225: */ /* 226: */ /* 227:197 */ MapView<Integer, Base.BasicView> bases = this.game.getAllBases(); /* 228:198 */ MapView<Integer, Plane.FullView> planes = this.game.getMyPlanes(); /* 229:199 */ MapView<Integer, Plane.BasicView> ennemy_planes = this.game.getEnnemyPlanes(); /* 230: */ /* 231: */ /* 232: */ /* 233: */ /* 234:204 */ List<Command> coms = new ArrayList(); /* 235: */ String str; /* 236:206 */ switch ((str = cmd[0]).hashCode()) /* 237: */ { /* 238: */ case 3004906: /* 239:206 */ if (str.equals("attk")) {} /* 240: */ break; /* 241: */ case 3127582: /* 242:206 */ if (str.equals("exit")) { /* 243: */ break label505; /* 244: */ } /* 245: */ break; /* 246: */ case 3314155: /* 247:206 */ if (str.equals("land")) { /* 248: */ break; /* 249: */ } /* 250: */ case 3357649: /* 251:206 */ if ((goto 451) && (str.equals("move"))) /* 252: */ { /* 253:210 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(Integer.parseInt(cmd[1]))); /* 254:211 */ for (Plane.FullView p : planes.valuesView()) { /* 255:212 */ coms.add(new MoveCommand(p, b.position())); /* 256: */ } /* 257: */ break label459; /* 258:216 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(Integer.parseInt(cmd[1]))); /* 259:217 */ if ((b instanceof Base.FullView)) /* 260: */ { /* 261:218 */ for (??? = planes.valuesView().iterator(); ???.hasNext();) /* 262: */ { /* 263:218 */ p = (Plane.FullView)???.next(); /* 264:219 */ coms.add(new LandCommand(p, (Base.FullView)b)); /* 265: */ } /* 266: */ } /* 267: */ else /* 268: */ { /* 269:221 */ System.err.println("You can't see this base, move around it before you land"); /* 270: */ break label459; /* 271:225 */ for (Plane.FullView p : planes.valuesView()) { /* 272:226 */ coms.add(new AttackCommand(p, (Plane.BasicView)ennemy_planes.get(Integer.valueOf(Integer.parseInt(cmd[1]))))); /* 273: */ } /* 274: */ } /* 275: */ } /* 276:227 */ break; /* 277: */ } /* 278:229 */ System.err.println("Unrecognized command!"); /* 279: */ label459: /* 280:232 */ p = coms.iterator(); /* 281:232 */ continue;Command c = (Command)p.next(); /* 282:233 */ this.game.sendCommand(c); /* 283: */ } /* 284: */ label505: /* 285:255 */ in.close(); /* 286:256 */ updater.active = false; /* 287: */ try /* 288: */ { /* 289:258 */ updater.join(); /* 290: */ } /* 291: */ catch (InterruptedException e) /* 292: */ { /* 293:260 */ e.printStackTrace(); /* 294: */ } /* 295: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_4270() {}", "public int method_2436() {\r\n return 16;\r\n }", "private void m50366E() {\n }", "void mo33732Px();", "public void skystonePos4() {\n }", "public void mo21879u() {\n }", "public void mo21877s() {\n }", "private void m50367F() {\n }", "public vo...
[ "0.618417", "0.60939556", "0.6092917", "0.6068895", "0.5986766", "0.5973932", "0.5963564", "0.595465", "0.594377", "0.5925861", "0.5922865", "0.59167683", "0.5862023", "0.58557063", "0.58535534", "0.5834", "0.5829767", "0.58140147", "0.5812264", "0.58112776", "0.57915574", ...
0.0
-1
/ 199: / 200:
public void run() /* 201: */ { /* 202:161 */ while (this.active) { /* 203:162 */ synchronized (this) /* 204: */ { /* 205:163 */ ConsoleAI.this.game.updateSimFrame(); /* 206: */ } /* 207: */ } /* 208: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_199() {}", "public void method_200() {}", "@Override\npublic int writingBenches() {\n\treturn 200;\n}", "public void mo21877s() {\n }", "public void mo5099c() {\n }", "public int method_209() {\r\n return 0;\r\n }", "int method20()\n {\n return 579190;\n }",...
[ "0.540085", "0.53313696", "0.53206265", "0.5301442", "0.5287462", "0.5275571", "0.5258405", "0.521661", "0.52102685", "0.52071327", "0.518567", "0.51228917", "0.510032", "0.5087212", "0.5080015", "0.50740886", "0.50726783", "0.5071673", "0.50690854", "0.5066223", "0.50626415"...
0.0
-1
/ 296: / 297:
public static void main(String[] args) /* 298: */ throws InterruptedException /* 299: */ { /* 300:265 */ if (args.length != 2) /* 301: */ { /* 302:267 */ System.out.println("Usage : java MoveAI ip port"); /* 303:268 */ System.exit(1); /* 304: */ } /* 305:270 */ String ip = args[0]; /* 306:271 */ int port = Integer.parseInt(args[1]); /* 307: */ /* 308:273 */ AbstractAI ai = new ConsoleAI(ip, port); /* 309:274 */ ai.think(); /* 310: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void milestone2(double num){\n System.out.println(\"Integer part: \" + (int)num);\n double fractionPart = num - (int)num;\n fractionPart *= 100;\n System.out.println(\"Fractional part: \" + (int)fractionPart);\n }", "protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ ret...
[ "0.54830927", "0.5390316", "0.5178712", "0.5107671", "0.5083536", "0.5052872", "0.50384486", "0.5037499", "0.5028062", "0.50227535", "0.50174254", "0.50140524", "0.5002246", "0.500105", "0.4982529", "0.49753693", "0.49737433", "0.4957892", "0.49568525", "0.49152052", "0.48985...
0.0
-1
Write code to ask the user what their test score is and give different messages accordingly. Example: "Wow! You must have studied really hard for that test!"
public static void main(String[] args) { String input=JOptionPane.showInputDialog("What is your test score? (0-100%)"); double score=Double.parseDouble(input); if (score>90) { JOptionPane.showMessageDialog(null, "Wow! You must have studied really hard for that test!"); } if (score<70) { JOptionPane.showMessageDialog(null, "Nice try... Study harder next time!"); } if (score<90&&score>70) { JOptionPane.showMessageDialog(null, "Good job! ... but you can do better!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String submitAnswersScore(int calculatedScore) {\n String totalMessagePerfect = \"Great Job! You finished with a score of \" + calculatedScore + \" out of 6!\";\n totalMessagePerfect += \"\\nYou really know your Bears history!\";\n totalMessagePerfect += \"\\nThanks for taking my quiz!...
[ "0.71786153", "0.71324325", "0.69812363", "0.6863354", "0.685939", "0.68000305", "0.6698998", "0.66331816", "0.6568909", "0.6543461", "0.6539703", "0.65330875", "0.653078", "0.64552987", "0.6424524", "0.642132", "0.64019555", "0.6369125", "0.63471323", "0.6341026", "0.6331589...
0.7199772
0
Nos dice si el nodo tiene un padre.
public boolean hayPadre() { return this.padre != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void testPadre(int n) {\n\t\t\r\n\t\tSystem.out.println(\"-----------------------------------------------------\");\r\n\t\tSystem.out.println(\"Test padre\");\r\n\t\t\r\n\t\tSystem.out.println(\"Crear un arbol binario completo...\");\r\n\t\tArbolBin arbol = new ArbolBin();\r\n\t\ttestCargarArbolBinar...
[ "0.64406574", "0.5913185", "0.5839273", "0.58018154", "0.57758343", "0.57739735", "0.5747153", "0.57408774", "0.568848", "0.5631899", "0.56147724", "0.55326384", "0.54693234", "0.54207265", "0.54164803", "0.54110414", "0.53866905", "0.53617835", "0.5360909", "0.53525394", "0....
0.62792504
1
Nos dice si el nodo tiene un izquierdo.
public boolean hayIzquierdo() { return this.izquierdo != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int cantHijosIzquierdos() {\n if (NodoBinario.esNodoVacio(this.raiz)) {\n return 0;\n }\n int cantHijosIzq = 0;\n Queue<NodoBinario<T>> colaDeNodos = new LinkedList<>();\n colaDeNodos.offer(this.raiz);\n while (!colaDeNodos.isEmpty()) {\n NodoB...
[ "0.689728", "0.6477506", "0.64536273", "0.64507955", "0.637533", "0.6364493", "0.6249269", "0.6232885", "0.61381346", "0.6117275", "0.60871714", "0.6057276", "0.60410553", "0.60226744", "0.60069543", "0.59338176", "0.5932944", "0.5892288", "0.5881274", "0.5869166", "0.5858281...
0.5914125
17
Nos dice si el nodo tiene un derecho.
public boolean hayDerecho() { return this.derecho != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean repetido(int el){\n boolean repe = false;\n NodoDoble current = inicio;\n while(current != null){\n if(current.dato==el){\n repe = true;\n break; \n }else{\n repe = false;\n...
[ "0.66220903", "0.653218", "0.61695194", "0.6167283", "0.6149944", "0.6138432", "0.61350274", "0.61081076", "0.60357136", "0.60056156", "0.5974092", "0.5965524", "0.5920358", "0.5909985", "0.5909533", "0.59034353", "0.58709955", "0.58634573", "0.58563125", "0.5844895", "0.5804...
0.5843832
20
Regresa la altura del nodo.
public int altura() { if (this.elemento == null) { return 0; } else { return altura(this); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAltura(String altura) {\r\n this.altura = altura;\r\n }", "public void setAltura(int newAlt){\n this._altura=newAlt;\n }", "public void agregarNodo(Nodo nuevo){\n agregarNodoRec(root, nuevo);//la primera vez inicia en la raiz \n }", "public void resetNodo()\r\n ...
[ "0.5803445", "0.5729479", "0.5692307", "0.55717754", "0.5506804", "0.5497008", "0.5426391", "0.540062", "0.5392363", "0.53750783", "0.53379834", "0.5316901", "0.5308013", "0.53008276", "0.52809745", "0.52584857", "0.5230494", "0.5228896", "0.521767", "0.520453", "0.5198291", ...
0.0
-1
Regresa el elemento al que apunta el nodo.
public T get() { return this.elemento; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void obtenerSiguientePregunta() {\r\n\t\tlblPregunta.setText(cuestionario.getPreguntas().get(0));\r\n\t\tcuestionario.getPreguntas().remove(0);\r\n\r\n\t}", "public void insereFinal(String elemento) {\n No novoNo = new No(elemento, null);\n No temp = ini;\n \n //Caso a lista es...
[ "0.6628605", "0.66254056", "0.65541565", "0.6536156", "0.6275131", "0.61301917", "0.6119896", "0.608372", "0.60155755", "0.600613", "0.5948037", "0.5944242", "0.59061", "0.5876781", "0.58712417", "0.5869598", "0.5859002", "0.58051115", "0.5799686", "0.5787733", "0.5735663", ...
0.0
-1
Delivers the response of a kommand execution
void onCompleted(T response);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleResponse(byte[] result, Command originalCommand);", "public Object handleCommandResponse(Object response) throws RayoProtocolException;", "protected abstract DispatchOutcome dispatchCommand(CommandEnvelope cmd);", "public abstract boolean commandExecution(CommandSender sender, String label,...
[ "0.70763505", "0.70167196", "0.6601671", "0.65470946", "0.6541406", "0.65131915", "0.63626605", "0.6361374", "0.6276729", "0.6264642", "0.62401325", "0.6223343", "0.6201442", "0.6181943", "0.6181043", "0.6170611", "0.6150939", "0.61479837", "0.61220485", "0.61156523", "0.6095...
0.0
-1
Delivers the cause that failed in the kommand execution
void onError(Throwable e);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CommandExecutionException(String errorMessage, Exception cause) {\n super(errorMessage, cause);\n }", "Throwable cause();", "public ExecutionError(Error cause) {\n/* 58 */ super(cause);\n/* */ }", "CommandExecutionException(String errorMessage) {\n super(errorMessage);\n...
[ "0.64965814", "0.6305799", "0.60193515", "0.6019325", "0.60045373", "0.6003474", "0.59660184", "0.5897546", "0.5866554", "0.5854747", "0.58175707", "0.5788051", "0.57777965", "0.57725716", "0.57625496", "0.57602847", "0.5752799", "0.57411754", "0.57052237", "0.5693085", "0.56...
0.0
-1
The Factory for the model. It provides a create method for each nonabstract class of the model.
public interface QuoteFactory extends EFactory { /** * The singleton instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ QuoteFactory eINSTANCE = org.abchip.mimo.biz.model.order.quote.impl.QuoteFactoryImpl.init(); /** * Returns a new object of class '<em>Quote</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Quote</em>'. * @generated */ Quote createQuote(); /** * Returns a new object of class '<em>Adjustment</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Adjustment</em>'. * @generated */ QuoteAdjustment createQuoteAdjustment(); /** * Returns a new object of class '<em>Attribute</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Attribute</em>'. * @generated */ QuoteAttribute createQuoteAttribute(); /** * Returns a new object of class '<em>Coefficient</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Coefficient</em>'. * @generated */ QuoteCoefficient createQuoteCoefficient(); /** * Returns a new object of class '<em>Item</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Item</em>'. * @generated */ QuoteItem createQuoteItem(); /** * Returns a new object of class '<em>Note</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Note</em>'. * @generated */ QuoteNote createQuoteNote(); /** * Returns a new object of class '<em>Role</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Role</em>'. * @generated */ QuoteRole createQuoteRole(); /** * Returns a new object of class '<em>Term</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Term</em>'. * @generated */ QuoteTerm createQuoteTerm(); /** * Returns a new object of class '<em>Term Attribute</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Term Attribute</em>'. * @generated */ QuoteTermAttribute createQuoteTermAttribute(); /** * Returns a new object of class '<em>Type</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Type</em>'. * @generated */ QuoteType createQuoteType(); /** * Returns a new object of class '<em>Type Attr</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Type Attr</em>'. * @generated */ QuoteTypeAttr createQuoteTypeAttr(); /** * Returns a new object of class '<em>Work Effort</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Work Effort</em>'. * @generated */ QuoteWorkEffort createQuoteWorkEffort(); /** * Returns the package supported by this factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the package supported by this factory. * @generated */ QuotePackage getQuotePackage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "TestModelFactory getTestModelFactory();", "public UsermodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public SqliteModelFactoryImp...
[ "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.70742077", "0.7051943", "0.6983852", "0.69748455", "0.6965496", "0.69568366", "0.69481784", "0.6860293", "0.6811446", "0.6807123", "0.6756206", "0.6694741", "0.6656823", "0.66...
0.0
-1
Returns a new object of class 'Quote'.
Quote createQuote();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "QuoteItem createQuoteItem();", "QuoteType createQuoteType();", "protected GuiTestObject getQuote() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"getQuote\"));\n\t}", "QuoteTerm createQuoteTerm();", "QuoteAttribute createQuoteAttribute();", "QuoteNote createQuoteNote(...
[ "0.76080734", "0.7401261", "0.7377103", "0.73455614", "0.7288972", "0.7130423", "0.70560074", "0.6949902", "0.68340385", "0.6508016", "0.6497145", "0.6473406", "0.6468196", "0.64465445", "0.63635117", "0.62891364", "0.62671375", "0.6252759", "0.6104045", "0.60700244", "0.5931...
0.87445176
0
Returns a new object of class 'Adjustment'.
QuoteAdjustment createQuoteAdjustment();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@JsonGetter(\"adjustment\")\r\n @JsonInclude(JsonInclude.Include.NON_NULL)\r\n public InventoryAdjustment getAdjustment() {\r\n return adjustment;\r\n }", "Affectation createAffectation();", "public void adjust()\n {\n }", "public Adjustment getOne(long id) {\n\t\tSession session = sessio...
[ "0.56115705", "0.5538052", "0.5535277", "0.54663897", "0.53610295", "0.5353694", "0.50737655", "0.5041167", "0.50196475", "0.4900778", "0.4883778", "0.48788205", "0.4750967", "0.47471544", "0.4722446", "0.46923566", "0.46776053", "0.465646", "0.46414164", "0.4637885", "0.4633...
0.6664828
0
Returns a new object of class 'Attribute'.
QuoteAttribute createQuoteAttribute();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Attribute createAttribute();", "Attribute createAttribute();", "private Attribute createAttribute() {\n\t\t\tAttribute att = AttributeFactory.createAttribute(getName(), getValueType());\n\t\t\tatt.getAnnotations().clear();\n\t\t\tatt.getAnnotations().putAll(getAnnotations());\n\t\t\tattribute = att;\n\t\t\tret...
[ "0.84223485", "0.84223485", "0.78168356", "0.76549613", "0.70523006", "0.69880027", "0.6872505", "0.6816823", "0.68070126", "0.6677628", "0.65332144", "0.65067095", "0.6464964", "0.64194643", "0.6393035", "0.6363977", "0.6349932", "0.63072515", "0.6169066", "0.61664647", "0.6...
0.61079067
21
Returns a new object of class 'Coefficient'.
QuoteCoefficient createQuoteCoefficient();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getCoefficient();", "public double setCoefficient(double coefficient) {\n this.coefficient = coefficient;\n return this.coefficient;\n }", "public double get_coefficient() {\r\n\t\treturn this._coefficient;\r\n\t}", "public double[] coeff();", "public ComplexPolynomial derive...
[ "0.71807396", "0.6418309", "0.62022084", "0.61429423", "0.5942161", "0.5926369", "0.5688151", "0.5676251", "0.55958647", "0.55726695", "0.5531647", "0.55165195", "0.55158556", "0.5484624", "0.5453479", "0.5439417", "0.5371116", "0.5356285", "0.5308491", "0.53045934", "0.53029...
0.6748236
1
Returns a new object of class 'Item'.
QuoteItem createQuoteItem();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Item createItem() {\n if(pickUpImplementation == null)\n {\n pickUpImplementation = new DefaultPickUp();\n }\n\n if(lookImplementation == null)\n {\n lookImplementation = new DefaultLook(R.string.default_look);\n ...
[ "0.7660744", "0.7654238", "0.7364485", "0.7357129", "0.7235468", "0.7166666", "0.71292174", "0.7093309", "0.7022683", "0.6991087", "0.6953766", "0.6926058", "0.6926058", "0.6903576", "0.68718266", "0.6839833", "0.6816488", "0.6816488", "0.6815414", "0.6794255", "0.6791991", ...
0.62060744
64
Returns a new object of class 'Note'.
QuoteNote createQuoteNote();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Note() {\n\t\tsuper();\n\t}", "public Note() {\n }", "public Note() {\n //uig = new UniqueIdGenerator();\n noteId = UUIDGenerator.getUUID();\n created_on = new Date();\n }", "private Notes() {}", "public Notes() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\...
[ "0.77068055", "0.7616109", "0.7452614", "0.7438673", "0.72315955", "0.70886266", "0.68882996", "0.6806155", "0.6801377", "0.6779055", "0.6769318", "0.6653875", "0.6649099", "0.6547113", "0.6527481", "0.6522338", "0.6495599", "0.6487153", "0.64766866", "0.64596784", "0.6430756...
0.73901653
4
Returns a new object of class 'Role'.
QuoteRole createQuoteRole();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic UserRole createNew()\n\t{\n\t\treturn new UserRole();\n\t}", "public RoleImpl() {}", "public Role() {\n }", "public Role() {\n }", "ResourceRole createResourceRole();", "public Role() {\n\t}", "public Role() {\n\t super();\n }", "private Role createIamRole()\n {\n ...
[ "0.75333333", "0.74012905", "0.73585933", "0.73585933", "0.7210194", "0.72001463", "0.7198384", "0.71465033", "0.69880605", "0.69880605", "0.6929337", "0.6918709", "0.6870298", "0.6864755", "0.683584", "0.6725252", "0.6708082", "0.6705863", "0.6667318", "0.66667897", "0.66311...
0.6679769
18
Returns a new object of class 'Term'.
QuoteTerm createQuoteTerm();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "GeneralTerm createGeneralTerm();", "SingleTerm(Term t)\n {\n term = t;\n }", "Term getTerm();", "protected Term createTermFrom(String tag) {\n\t\tTerm tmp = terms.getOrDefault(tag, new Term(tag, this, terms.size()));\n\t\tterms.put(tag, tmp);\n\t\t// termCounts.put(tmp, termCounts.getOrDefault(t...
[ "0.7342048", "0.7305581", "0.7266592", "0.7236319", "0.7028665", "0.688306", "0.68627006", "0.67947286", "0.67085", "0.6644", "0.6620826", "0.6584892", "0.6576373", "0.65667605", "0.6561405", "0.6503904", "0.6491093", "0.6468318", "0.6433911", "0.6378922", "0.6369706", "0.6...
0.70075536
5
Returns a new object of class 'Term Attribute'.
QuoteTermAttribute createQuoteTermAttribute();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TAttribute createTAttribute();", "Attribute createAttribute();", "Attribute createAttribute();", "public AcademicTerm(int termIndex, Term term) {\n this.termIndex = termIndex;\n this.term = term;\n }", "GeneralTerm createGeneralTerm();", "protected Term createTermFrom(String tag) {\n\t\t...
[ "0.6706666", "0.65153605", "0.65153605", "0.6496482", "0.6487868", "0.64695203", "0.6266116", "0.6143728", "0.6107282", "0.609548", "0.60701346", "0.60462457", "0.60440296", "0.5972124", "0.59501785", "0.58750594", "0.5850199", "0.5838886", "0.5830205", "0.58271194", "0.58065...
0.7859037
0
Returns a new object of class 'Type'.
QuoteType createQuoteType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Type createType();", "Type createType();", "Type createType();", "public org.python.types.Type __new__(org.python.types.Type cls);", "private Object createInstanceOfType(Class<?> propertyType)\n\t{\n\t\tObject typeInstance = null;\n\t\tif (propertyType.isArray())\n\t\t{\n\t\t\ttypeInstance = createArray(pr...
[ "0.79512656", "0.79512656", "0.79512656", "0.74581736", "0.7071496", "0.6690544", "0.6632709", "0.64217967", "0.6399335", "0.6359265", "0.63470167", "0.633226", "0.63291764", "0.6300944", "0.6242141", "0.62250096", "0.62085414", "0.6207763", "0.6195244", "0.6195244", "0.61565...
0.0
-1
Returns a new object of class 'Type Attr'.
QuoteTypeAttr createQuoteTypeAttr();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TAttribute createTAttribute();", "public Class getAttributeType();", "Attribute createAttribute();", "Attribute createAttribute();", "ShipmentTypeAttr createShipmentTypeAttr();", "private Attribute createAttribute() {\n\t\t\tAttribute att = AttributeFactory.createAttribute(getName(), getValueType());\n\t...
[ "0.70403016", "0.67557985", "0.6647494", "0.6647494", "0.65978765", "0.64448947", "0.6438866", "0.6438866", "0.6438866", "0.62768286", "0.6187754", "0.6109433", "0.6096274", "0.6049019", "0.6045471", "0.60442823", "0.6033523", "0.60136616", "0.5992693", "0.5960211", "0.593444...
0.63252425
9
Returns a new object of class 'Work Effort'.
QuoteWorkEffort createQuoteWorkEffort();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WorkClass() throws Exception {\n index = -1;\n }", "boolean createWork(Work work);", "public interface WorkfileInfoInterface {\n\n /**\n * Get the short workfile name (the final segment of the full workfile name).\n *\n * @return the short workfile name.\n */\n St...
[ "0.550532", "0.5330668", "0.5301472", "0.5195145", "0.5193826", "0.51935744", "0.5163658", "0.51263726", "0.5111261", "0.51109755", "0.5037833", "0.5022103", "0.5001247", "0.49980888", "0.49710956", "0.49636337", "0.49634695", "0.49139526", "0.4912413", "0.48715657", "0.48624...
0.63722634
0