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
/ Setter for parent layout orientation.
public void setParentLayoutOrientation(int orientation) { parentOrientation = orientation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getParentLayoutOrientation()\n {\n return parentOrientation;\n }", "public void setOrientation(Direction orientation);", "public final void setOrientation(Orientation value) {\n\n this.getWrappedControl().setOrientation(value);\n }", "void setOrientation(int orientation) {\n...
[ "0.79440486", "0.6994023", "0.68732834", "0.6848461", "0.6718557", "0.6717545", "0.6688311", "0.66403085", "0.65225834", "0.6500898", "0.649866", "0.64678365", "0.6448667", "0.64359254", "0.6415651", "0.63813746", "0.6377671", "0.63592386", "0.6318707", "0.6304392", "0.628439...
0.84494346
0
/ Getter for parent layout orientation
public int getParentLayoutOrientation() { return parentOrientation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IOrientation getOrientation();", "public void setParentLayoutOrientation(int orientation)\n {\n parentOrientation = orientation;\n }", "public final Orientation getOrientation() {\n return orientation == null ? Orientation.HORIZONTAL : orientation.get();\n }", "public final Orie...
[ "0.7559663", "0.73749596", "0.73458135", "0.734489", "0.72873443", "0.7276089", "0.72620356", "0.7220313", "0.7216792", "0.7178827", "0.71491396", "0.71349525", "0.7111572", "0.7080351", "0.7077804", "0.70755905", "0.70707726", "0.70232683", "0.7012109", "0.7002534", "0.69368...
0.90855813
0
/ Method that initializes the graph, sets the viewport, title, colors.
public void initGraph(GraphView graph) { graph.getViewport().setXAxisBoundsManual(true); graph.getViewport().setMinX(0); graph.getViewport().setMaxX(graphWidth); //ici il faut setter maxWidth graph.getGridLabelRenderer().setLabelVerticalWidth(100); for(CustomPair<String, CustomPair<Integer, Integer>> can:cans) { graph.addSeries(series.get(can.getKey())); series.get(can.getKey()).setTitle(can.getKey()); } graph.getLegendRenderer().setVisible(true); graph.getLegendRenderer().setBackgroundColor(Color.TRANSPARENT); graph.setTitle(name); graph.getLegendRenderer().setAlign(LegendRenderer.LegendAlign.MIDDLE); graph.getLegendRenderer().setAlign(LegendRenderer.LegendAlign.BOTTOM); graph.getGridLabelRenderer().setGridColor(themeColor); graph.getGridLabelRenderer().setHorizontalLabelsColor(themeColor); graph.getGridLabelRenderer().setVerticalLabelsColor(themeColor); graph.getGridLabelRenderer().setVerticalAxisTitleColor(themeColor); graph.getLegendRenderer().setTextColor(themeColor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setUpGraph() {\n \tString title;\n\t\ttry {\n\t\t\ttitle = util.readTextFile(new File(UI.UITEXT_DIRECTORY)).get(GRAPHTITLE_DEX);\n\t\t\taCS = new AreaChartSample(cellStateNames,title);\n\t\t} catch (FileNotFoundException e) {\n\t\t\taCS = new AreaChartSample(cellStateNames, \"ERROR ON TITLE\");\n\t...
[ "0.71551156", "0.69494796", "0.6887101", "0.6833825", "0.6716289", "0.67070174", "0.6561569", "0.6506319", "0.6490439", "0.6474857", "0.64481515", "0.64317006", "0.64217657", "0.6387373", "0.6369684", "0.6368207", "0.6363787", "0.6352345", "0.6265182", "0.6251104", "0.6213132...
0.68915075
2
/ Method that updates the graph. Called by the data activity upon reception of graph data from the server.
public void updateGraph(String seriesID, String y, String x) { try { if(series.containsKey(seriesID)) { if(firstXValue.get(seriesID).equals(0)) { if(seriesCounters.get(seriesID) != null) { if(seriesCounters.get(seriesID).getKey().equals(seriesCounters.get(seriesID).getValue())) { series.get(seriesID).appendData(new DataPoint(0, Double.parseDouble(y)), true, graphWidth*30); firstXValue.put(seriesID, Integer.parseInt(x)); seriesCounters.get(seriesID).setValue(0); } else { seriesCounters.get(seriesID).setValue(seriesCounters.get(seriesID).getValue() + 1); } } else { series.get(seriesID).appendData(new DataPoint(0, Double.parseDouble(y)), true, graphWidth*30); firstXValue.put(seriesID, Integer.parseInt(x)); } } else { if(seriesCounters.get(seriesID) != null) { if(seriesCounters.get(seriesID).getKey().equals(seriesCounters.get(seriesID).getValue())) { series.get(seriesID).appendData(new DataPoint((((float)((Integer.parseInt(x) - firstXValue.get(seriesID))))/1000.0f), Double.parseDouble(y)), true, graphWidth*20); seriesCounters.get(seriesID).setValue(0); } else { seriesCounters.get(seriesID).setValue(seriesCounters.get(seriesID).getValue() + 1); } } else { series.get(seriesID).appendData(new DataPoint((((float)((Integer.parseInt(x) - firstXValue.get(seriesID))))/1000.0f), Double.parseDouble(y)), true, graphWidth*20); } } } }catch(IllegalArgumentException e) { Log.d("X value error", e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateGraph(){\n\t\tgraph.update(updatePopulations(), iteration);\n\t\titeration++;\n\t}", "public void update() {\n\t\tremoveAll();\n\t\tdrawGraph();\n\t\tplotEntries();\n\t}", "public void graphRepaint() {\r\n \t\tgraph.repaint();\r\n \t}", "public void update() {\r\n\t\tremoveAll();\r\n\t\tdra...
[ "0.7136551", "0.6909312", "0.66499484", "0.66239226", "0.66027683", "0.65402675", "0.6508371", "0.6470509", "0.64244646", "0.6365633", "0.63579553", "0.6339576", "0.633264", "0.62505835", "0.61708134", "0.61679876", "0.61652905", "0.61485165", "0.6108563", "0.6104237", "0.609...
0.5556675
63
/ Method called by Android when application goes in pause state.
@Override public void onPause() { super.onPause(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onPause();", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tApplicationStatus.activityPaused();\n\t}", "public void onPause () {\n\t\t\n\t}", "public void onPause() {\n }", "public void onPause() {\n LOG.mo8825d(\"[onPause]\");\n super.onPause();\n }", ...
[ "0.8450675", "0.84180516", "0.83395356", "0.8274455", "0.8245346", "0.8244283", "0.8242632", "0.8242632", "0.8242632", "0.8242632", "0.82286453", "0.82286453", "0.8223049", "0.8204207", "0.82002497", "0.818466", "0.8176862", "0.81276876", "0.8125304", "0.8112196", "0.8112196"...
0.0
-1
/ Method that initializes the data series in the graph.
public void initializeSeriesData(List<CustomPair<String, CustomPair<Integer, Integer>>> cans) { this.cans.addAll(cans); for(CustomPair<String, CustomPair<Integer, Integer>> can: cans) { if(can.getValue() != null) { seriesCounters.put(can.getKey(), can.getValue()); } seriesData.put(can.getKey(), new LinkedList<>()); firstXValue.put(can.getKey(), 0); LineGraphSeries<DataPoint> lineGraphSeries = new LineGraphSeries<>(); lineGraphSeries.setDrawDataPoints(true); lineGraphSeries.setColor(colorList.removeFirst()); series.put(can.getKey(), lineGraphSeries); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Series()\n {\n super();\n }", "private void initializeChart(final List<DateCounter> data)\n {\n final XYSeries series = new XYSeries(TITLE_XY_SERIES);\n\n //Adding data to the chart\n addDataToXYSeries(data, series);\n\n //Finalizing the chart\n final XYS...
[ "0.72230464", "0.7175999", "0.7040797", "0.6798261", "0.679571", "0.6709959", "0.6668259", "0.66665405", "0.66435903", "0.66374564", "0.6589631", "0.6575421", "0.65593827", "0.65100956", "0.65099084", "0.65065485", "0.6505429", "0.646925", "0.6469246", "0.64604294", "0.640320...
0.6552683
13
/ Setter on name attribute
public void setName(String name) { this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String n){ name=n; }", "protected void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String value) {\n this.name = value;\n }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }",...
[ "0.80643994", "0.7979264", "0.79454523", "0.7938236", "0.7938236", "0.7938236", "0.7938236", "0.79302317", "0.7923957", "0.7883234", "0.7873888", "0.7873888", "0.7873888", "0.78666925", "0.7856051", "0.7840672", "0.78378856", "0.78378856", "0.78378856", "0.7829627", "0.782962...
0.0
-1
/ Setter on unit attribute.
public void setUnit(String unit) { this.unit = unit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUnit(String unit);", "public void setUnit (String value) {\n\tthis.unit = value;\n }", "public void setUnit(Unit unit) {\r\n\t\tthis.unit = unit;\r\n\t}", "public void setUnit(String unit) {\n this.unit = unit;\n }", "public void setUnit(Length units) {\n unit = units;\n...
[ "0.8585824", "0.8284309", "0.82424027", "0.8109908", "0.8102386", "0.7883302", "0.7655712", "0.76496017", "0.76496017", "0.76037014", "0.7540405", "0.7540405", "0.7540405", "0.7497226", "0.74919933", "0.7440616", "0.73975605", "0.7385471", "0.7348462", "0.7327945", "0.7280093...
0.8177569
3
/ setter on axis attribute.
public void setAxis(String axis) { this.axis = axis; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DraggableBehavior setAxis(AxisEnum axis)\n\t{\n\t\tthis.options.putLiteral(\"axis\", axis.toString().toLowerCase());\n\t\treturn this;\n\t}", "public void setValueFromAxis(AxisModel axis, Object value) {\n }", "public void setAxisProperties(Axis axis) {\n/* 413 */ super.setAxisProperties(axis);\n...
[ "0.69665897", "0.6784117", "0.6719429", "0.6286547", "0.6242084", "0.62272763", "0.62155336", "0.6111286", "0.6106343", "0.60841733", "0.59669185", "0.5929463", "0.58845794", "0.58567625", "0.5855543", "0.58023477", "0.5774744", "0.57243973", "0.5721762", "0.5720091", "0.5695...
0.7072493
0
/ method called to refresh the graph upon theme change.
public void refreshGraph() { graph.getViewport().setMinX(0); graph.removeAllSeries(); for(CustomPair<String, CustomPair<Integer, Integer>> can:cans) { series.get(can.getKey()).resetData(new DataPoint[]{}); } initGraph(graph); graphViewEditText.setText(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void refreshGraph() {\n\n // Get all the times\n double[] times = dataSet.getTimes();\n\n int numPointsToDraw = (times.length > GRAPH_MAX_POINTS)? GRAPH_MAX_POINTS: times.length;\n\n // Store new points\n DataPoint[] freshPoints = new DataPoint[numPointsToDraw];\n /...
[ "0.6572791", "0.65653497", "0.6556697", "0.65153617", "0.65148646", "0.650937", "0.63270056", "0.628273", "0.62369585", "0.6131025", "0.6080505", "0.60701686", "0.60660374", "0.60481864", "0.5995511", "0.59813327", "0.59608346", "0.5937045", "0.5913914", "0.5888959", "0.58825...
0.68853587
0
/ setter on themecolor attribute.
public void setColorTheme(int colorTheme) { themeColor = colorTheme; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setColor(int value);", "void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }", "public void setColor(int color);", "public void setColor(int color);", "public void setColor(Color c);", "public void setColor(String c);", "public void set...
[ "0.6962282", "0.6844573", "0.68333864", "0.68333864", "0.6817783", "0.67834425", "0.67834085", "0.6750197", "0.67262423", "0.66203666", "0.66203666", "0.66062075", "0.65930927", "0.6537326", "0.64781666", "0.64656055", "0.6374121", "0.6372132", "0.6339289", "0.6331396", "0.63...
0.7487781
0
Ensures that the Rmi tactic succeeds once on an hypothesis
@Test public void applyOnceHyp() { assertSuccess(" ;H; ;S; x⊆ℤ |- ⊥", ri("", empty)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Then(\"Assert the success of Attempt well-known or guessable resource locations\")\npublic void assattemptwellknownorguessableresourcelocations(){\n}", "private boolean decideIfEventShouldBeReportedAsAFailure() {\n \tint value = new Random().nextInt(100);\n \tif (value < TARGET_SUCCESS_RATE) {\n \t\tre...
[ "0.5747251", "0.5723641", "0.5701876", "0.5686421", "0.5659866", "0.5637913", "0.5623076", "0.5584969", "0.55464745", "0.5476323", "0.5445006", "0.5424495", "0.5417667", "0.5416428", "0.5383448", "0.5378755", "0.53687584", "0.5354661", "0.5338001", "0.5335732", "0.5317575", ...
0.5363521
17
Ensures that the Rmi tactic succeeds on several hypotheses.
@Test public void applyManyHyp() { assertSuccess(" ;H; ;S; x∈{1,2} ;; {1}⊆S |- ⊥", rm("", ri("", rm("1.0", empty)))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Given(\"^I have multiple trips in Journeys$\")\n public void iHaveMultipleTripsInJourneys() throws Throwable {\n throw new PendingException();\n }", "private boolean runMultiSampleCase() {\n\t\tArrayList<Candidate> candidates = collectTrioCandidates();\n\n\t\t// Then, check the candidates for all t...
[ "0.5752346", "0.55827785", "0.5500831", "0.54498386", "0.5415304", "0.53862536", "0.5317575", "0.53083384", "0.52957594", "0.5280024", "0.52001834", "0.51581365", "0.511398", "0.5108659", "0.51043415", "0.5089404", "0.5061142", "0.50529623", "0.504911", "0.5034444", "0.503072...
0.54129976
5
Ensures that the Rmi tactic succeeds once on an hypothesis
@Test public void applyRecusivelyHyp() { assertSuccess(" ;H; ;S; s⊆ℤ ;; r∈s ↔ s |- ⊥", rm("", ri("", ri("", rm("2.1", empty))))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Then(\"Assert the success of Attempt well-known or guessable resource locations\")\npublic void assattemptwellknownorguessableresourcelocations(){\n}", "private boolean decideIfEventShouldBeReportedAsAFailure() {\n \tint value = new Random().nextInt(100);\n \tif (value < TARGET_SUCCESS_RATE) {\n \t\tre...
[ "0.57457316", "0.5724093", "0.5702025", "0.56863445", "0.56589645", "0.56391084", "0.5622849", "0.5585264", "0.55464", "0.54768145", "0.5446167", "0.54224896", "0.54179436", "0.5416133", "0.5383512", "0.53801894", "0.53678924", "0.5362746", "0.53547895", "0.53371924", "0.5336...
0.0
-1
Ensures that the Rmi tactic fails when no hypothesis can be rewritten (even if the goal can).
@Test public void noApplyHyp() { assertFailure(" ;H; ;S; 1=1 |- {1}⊆S"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\t\tpublic void noApplyGoal() {\n\t\t\tassertFailure(\" ;H; ;S; x∈{1,2} ;; {1}⊆S |- 3=3\");\n\t\t}", "public boolean needsProblem();", "boolean isTroubled( ExpressionExperiment expressionExperiment );", "@Override\n boolean canFail() {\n return true;\n }", "@Test\n public void testRecu...
[ "0.6665921", "0.61174136", "0.6062542", "0.5935049", "0.5748289", "0.5723504", "0.564441", "0.5598896", "0.5587797", "0.55242634", "0.55127937", "0.55095744", "0.5499206", "0.54937303", "0.5471961", "0.54611653", "0.5453351", "0.54234165", "0.54020876", "0.5401487", "0.539064...
0.56702965
6
Ensures that the Rmi tactic succeeds once on a goal
@Test public void applyOnceGoal() { assertSuccess(" ;H; ;S; x ∈ ℤ ;; y ∈ ℤ |- x↦y ∈ id", rm("", empty)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void accomplishGoal() {\r\n isAccomplished = true;\r\n }", "public boolean checkGoal() {\r\n\t\tif (goal) {\r\n\t\t\tgoal = false;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isGoal();", "boolean checkGoal(Node solution);", "public boolean...
[ "0.70752114", "0.68534416", "0.6267982", "0.6162042", "0.60292935", "0.60072136", "0.5927743", "0.589937", "0.58919126", "0.58240396", "0.5798985", "0.57866", "0.5755237", "0.57272875", "0.5699486", "0.5691211", "0.5691211", "0.5691211", "0.5691211", "0.5691211", "0.5691211",...
0.6390884
2
Ensures that the Rmi tactic succeeds recursively on a goal
@Test public void applyRecursivelyGoal() { assertSuccess(" ;H; ;S; s ⊆ ℤ |- r∈s ↔ s", rm("", ri("", rm("2.1", empty)))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean checkGoal(Node solution);", "public boolean checkGoal() {\r\n\t\tif (goal) {\r\n\t\t\tgoal = false;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "static boolean isGoal(TreeNode node) {\n return false; // Should be overridden\n }", "public boolean isGoal();"...
[ "0.6810578", "0.6367632", "0.6139474", "0.5935605", "0.5835107", "0.57068247", "0.56767535", "0.55748534", "0.55639654", "0.5562626", "0.5509409", "0.5508207", "0.5458587", "0.5406716", "0.5396455", "0.5389209", "0.537065", "0.5354855", "0.53464544", "0.5289229", "0.5265453",...
0.6878275
0
Ensures that the Rmi tactic fails when the goal cannot be rewritten (even if some hypothesis can).
@Test public void noApplyGoal() { assertFailure(" ;H; ;S; x∈{1,2} ;; {1}⊆S |- 3=3"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n boolean canFail() {\n return true;\n }", "boolean isTroubled( ExpressionExperiment expressionExperiment );", "public boolean needsProblem();", "@Test\r\n public void should_not_be_allowed_to_move_in_wrong_direction() {\r\n game.nextTurn(); // will throw [1,2] and thus black...
[ "0.61657107", "0.6039211", "0.5939755", "0.58652496", "0.5846465", "0.58071756", "0.57766896", "0.5745013", "0.5666234", "0.56371284", "0.5602267", "0.5549773", "0.5526588", "0.55172753", "0.54858917", "0.5484973", "0.54666585", "0.5434039", "0.5421095", "0.5413552", "0.53851...
0.6329062
0
TODO Autogenerated method stub
@Transactional(isolation=Isolation.READ_COMMITTED, propagation=Propagation.REQUIRED, rollbackFor=Exception.class) public void create(Object object) { sessionFactory.getCurrentSession().save(object); }
{ "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
@Transactional(isolation=Isolation.READ_COMMITTED, propagation=Propagation.REQUIRED, rollbackFor=Exception.class) public void update(Object object) { sessionFactory.getCurrentSession().saveOrUpdate(object); }
{ "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
@Transactional(isolation=Isolation.READ_COMMITTED, propagation=Propagation.REQUIRED, rollbackFor=Exception.class) public void delete(Object object) { sessionFactory.getCurrentSession().delete(object); }
{ "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
Get singleton associated with this class.
public static SymbolTable getInstance() { return instance ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Singleton getInstance( ) {\n return singleton;\n }", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static Singleton getInstance() {\n return mSing;\n }", "public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_I...
[ "0.8182337", "0.8103678", "0.79102933", "0.78787154", "0.7824569", "0.7784805", "0.7702283", "0.77003545", "0.7696887", "0.7661438", "0.76600134", "0.76408", "0.76311445", "0.76122296", "0.75907946", "0.75901574", "0.75877476", "0.75774676", "0.75568897", "0.75117826", "0.750...
0.0
-1
TODO Autogenerated method stub
public void myPublicMethod() { }
{ "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
Designed to be called once the dice are thrown. It checks if the conditions to throw the dice are met and and it checks which dice are already selected. It changes the values of the thrown dice by passing a suitable random number to Die class' setValue(int) method.
public String throwDice() { if (timesThrown < 3) { for (Die die : dice) { if (timesThrown == 0) { die.setChosen(false); } if (die.getChosen() == false) { int random = (int) (Math.random() * 6 + 1); die.setValue(random); } } return writeTimesThrown(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void throwDice() {\r\n\t\tfor( DiceGroup diceGroup:dice.values() ) {\r\n\t\t\tdiceGroup.throwDice(); //.setResult( (int) Math.random()*die.getSize() + 1);\r\n\t\t}\r\n\t}", "public void throwDice() {\n\n Random r = new Random();\n\n if (color == DiceColor.NEUTRAL) {\n this.value...
[ "0.7519215", "0.73108387", "0.69881195", "0.64267623", "0.6399003", "0.6286443", "0.62563574", "0.61188185", "0.6111071", "0.6105438", "0.6057298", "0.6007227", "0.59882295", "0.5940106", "0.5937683", "0.58779436", "0.5861119", "0.58282334", "0.5820916", "0.5809218", "0.57921...
0.6979432
3
Adds the value of timesThrown counter and creates the text from it, which can be viewed on screen.
public String writeTimesThrown() { timesThrown++; String text = ("Times thrown: " + timesThrown + "/3"); return text; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void display(int counterMessage) {\n TextView textView = (TextView) findViewById(R.id.pointsValue);\n textView.setText(\"\" + counterMessage);\n }", "public String throwDice() {\n if (timesThrown < 3) {\n for (Die die : dice) {\n if (timesThrown == 0) {\n ...
[ "0.5708882", "0.56077737", "0.5534777", "0.5483006", "0.54397905", "0.5387658", "0.5298858", "0.5298291", "0.5281597", "0.52112305", "0.52006805", "0.5161729", "0.5139134", "0.5135457", "0.5115179", "0.5110732", "0.5103604", "0.5068427", "0.50536895", "0.50473535", "0.50369",...
0.8058063
0
Spring Data JPA repository for the Publisher entity.
@SuppressWarnings("unused") @Repository public interface PublisherRepository extends JpaRepository<Publisher, Long> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface PublisherRepository extends CrudRepository <Publisher, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PublisherRepository extends MongoRepository<Publisher, String> {\n\n}", "@Repository\npublic interface BookRepository extends JpaRepository<Book, Long> {\n\n}", ...
[ "0.7543798", "0.6731646", "0.6573725", "0.64653885", "0.63351905", "0.6330558", "0.6316107", "0.6252339", "0.6242392", "0.6239072", "0.6222785", "0.61986315", "0.61957115", "0.619105", "0.6181524", "0.6169721", "0.61635476", "0.616098", "0.615371", "0.61462873", "0.61346227",...
0.71558404
1
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
@SuppressWarnings({"unchecked", "cast"}) public TryStmt fullCopy() { TryStmt tree = (TryStmt) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Call treeCopy() {\n Call tree = (Call) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) getChild(i);\n if (child != null) {\n child = child.treeCopy();\n tree.setChild(child, i);\n }\n }\n }\...
[ "0.76008815", "0.73642397", "0.73081243", "0.7288364", "0.72538054", "0.72370243", "0.71535796", "0.7071978", "0.7070821", "0.70696914", "0.69174474", "0.6884486", "0.68460524", "0.6844238", "0.66261244", "0.66065395", "0.65470415", "0.6526319", "0.6479438", "0.64034295", "0....
0.586347
37
Initializes the child array to the correct size. Initializes List and Opt nta children.
public void init$Children() { children = new ASTNode[3]; setChild(new List(), 1); setChild(new Opt(), 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initChildList() {\n if (childList == null) {\n childList = new ArrayList<>();\n }\n }", "public void init$Children() {\n children = new ASTNode[3];\n setChild(new List(), 1);\n setChild(new List(), 2);\n }", "public void init$Children() {\n children = new A...
[ "0.7166855", "0.7076746", "0.69805783", "0.6719645", "0.6694916", "0.6694916", "0.6694916", "0.64241314", "0.6322279", "0.62679195", "0.59968567", "0.59061265", "0.5801982", "0.57897604", "0.5731964", "0.5719362", "0.5670723", "0.5616451", "0.5591826", "0.5541763", "0.5527025...
0.7494681
0
Replaces the Block child.
public void setBlock(Block node) { setChild(node, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testReplaceBlock()\n {\n Block word1 = new WordBlock(\"block1\");\n Block word2 = new WordBlock(\"block2\");\n Block word3 = new WordBlock(\"block3\");\n\n Block parentBlock = new ParagraphBlock(Arrays.asList(word1, word2));\n\n // replace by one\n ...
[ "0.6984335", "0.6555826", "0.6434986", "0.61661303", "0.60364616", "0.60091645", "0.58593124", "0.5824132", "0.5813492", "0.5781623", "0.57813627", "0.57750636", "0.5689124", "0.5684152", "0.56506675", "0.56226605", "0.55750406", "0.5525641", "0.5506073", "0.54861623", "0.548...
0.6363586
4
Retrieves the Block child.
public Block getBlock() { return (Block)getChild(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getChildBlockId() {\n return this.childBlockId;\n }", "protected Block getBlock() {\r\n return this.block;\r\n }", "@ASTNodeAnnotation.Child(name=\"Block\")\n public Block getBlock() {\n return (Block) getChild(0);\n }", "public Block getBlock()\n {\n return block...
[ "0.7403717", "0.7085031", "0.6908626", "0.6853154", "0.6812393", "0.6784349", "0.67392904", "0.6700366", "0.6622217", "0.65914714", "0.6572876", "0.657211", "0.65332305", "0.6526616", "0.6506274", "0.6491695", "0.64909166", "0.6273683", "0.6092504", "0.6084375", "0.602903", ...
0.7626256
0
Retrieves the Block child. This method does not invoke AST transformations.
public Block getBlockNoTransform() { return (Block)getChildNoTransform(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Block getBlock() {\n return (Block)getChild(0);\n }", "@ASTNodeAnnotation.Child(name=\"Block\")\n public Block getBlock() {\n return (Block) getChild(0);\n }", "public String getChildBlockId() {\n return this.childBlockId;\n }", "public Block getBlockNoTransform() {\n return (Blo...
[ "0.7660143", "0.7532339", "0.7161068", "0.6995346", "0.6836169", "0.67791927", "0.6741025", "0.6736341", "0.67070943", "0.65105736", "0.65036154", "0.64740354", "0.62854695", "0.62568533", "0.6245013", "0.6239791", "0.61454946", "0.6121186", "0.61140347", "0.6091495", "0.6089...
0.6955735
4
Replaces the CatchClause list.
public void setCatchClauseList(List<CatchClause> list) { setChild(list, 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addCatchClause(CatchClause node) {\n List<CatchClause> list = (parent == null || state == null) ? getCatchClauseListNoTransform() : getCatchClauseList();\n list.addChild(node);\n }", "protected void\ttryToFix() { Command.insertList(crAndBrace); }", "public List<CatchClause> getCatchClausesNo...
[ "0.5736545", "0.53498703", "0.5294999", "0.5271294", "0.52375555", "0.5228809", "0.5069027", "0.5018533", "0.49488932", "0.48729986", "0.4843099", "0.4755724", "0.46732005", "0.46601582", "0.4650136", "0.46258396", "0.46148965", "0.45331135", "0.4531727", "0.4454309", "0.4433...
0.64544255
0
Retrieves the number of children in the CatchClause list.
public int getNumCatchClause() { return getCatchClauseList().getNumChild(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getChildCount()\n {\n return mChildren.length; // The indexes and constraints\n }", "public int countChildren() {\n return this.children.size();\n }", "@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<CatchClause> getCatchClauseList() {\n List<CatchClause> list = (List...
[ "0.70344007", "0.69328105", "0.69287163", "0.6898315", "0.6891529", "0.6814684", "0.68121827", "0.67442644", "0.6720698", "0.6708852", "0.6687162", "0.6686395", "0.6685162", "0.66174775", "0.6587863", "0.6570492", "0.65431404", "0.6521713", "0.65149903", "0.64676356", "0.6430...
0.8079147
0
Retrieves the number of children in the CatchClause list. Calling this method will not trigger rewrites..
public int getNumCatchClauseNoTransform() { return getCatchClauseListNoTransform().getNumChildNoTransform(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumCatchClause() {\n return getCatchClauseList().getNumChild();\n }", "public int getChildCount()\n/* */ {\n/* 500 */ return this.children.size();\n/* */ }", "public int getChildCount()\n {\n return mChildren.length; // The indexes and constraints\n }", "publ...
[ "0.7964181", "0.7298196", "0.7175727", "0.71068275", "0.70906067", "0.7038986", "0.7030017", "0.6982722", "0.69458497", "0.69449013", "0.6916304", "0.6901846", "0.6856395", "0.67853796", "0.67392075", "0.6727597", "0.6672468", "0.66463166", "0.6639762", "0.6585749", "0.658393...
0.6889602
12
Append an element to the CatchClause list.
public void addCatchClause(CatchClause node) { List<CatchClause> list = (parent == null || state == null) ? getCatchClauseListNoTransform() : getCatchClauseList(); list.addChild(node); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addElement(Expression element){\n\t\telements.add(element);\n\t}", "public void add(Statement element) {\n ensureSize(size + 1);\n arr[size++] = element;\n }", "void append(E element);", "public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }...
[ "0.6364941", "0.6123237", "0.6048442", "0.58552", "0.5849381", "0.5823723", "0.5732226", "0.5732226", "0.56575817", "0.55806065", "0.5563567", "0.55317765", "0.5513301", "0.5496819", "0.54171616", "0.5285751", "0.52846164", "0.52777535", "0.52776724", "0.527514", "0.5268425",...
0.6684364
0
Retrieves the CatchClause list.
public List<CatchClause> getCatchClauses() { return getCatchClauseList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<CatchClause> getCatchClauseList() {\n List<CatchClause> list = (List<CatchClause>)getChild(1);\n list.getNumChild();\n return list;\n }", "@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<CatchClause> getCatchClauseListNoTransform()...
[ "0.7630039", "0.66910547", "0.64588636", "0.6360961", "0.624768", "0.6186105", "0.5655494", "0.5640325", "0.55581874", "0.5213443", "0.5159114", "0.5143493", "0.50993454", "0.5075382", "0.50629365", "0.5054525", "0.49984866", "0.49657968", "0.49657968", "0.48943564", "0.48906...
0.79125184
0
Retrieves the CatchClause list. This method does not invoke AST transformations.
public List<CatchClause> getCatchClausesNoTransform() { return getCatchClauseListNoTransform(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<CatchClause> getCatchClauseList() {\n List<CatchClause> list = (List<CatchClause>)getChild(1);\n list.getNumChild();\n return list;\n }", "public List<CatchClause> getCatchClauses() {\n return getCatchClauseList();\n }", "@SuppressWarnin...
[ "0.78166014", "0.7763318", "0.699245", "0.6509321", "0.64442", "0.6260372", "0.5861773", "0.56322825", "0.5444815", "0.52587956", "0.5213883", "0.5054133", "0.50395125", "0.49709404", "0.49709404", "0.49580798", "0.4902758", "0.4866315", "0.47702384", "0.4767256", "0.4717853"...
0.6546766
3
Retrieves the CatchClause list.
@SuppressWarnings({"unchecked", "cast"}) public List<CatchClause> getCatchClauseList() { List<CatchClause> list = (List<CatchClause>)getChild(1); list.getNumChild(); return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<CatchClause> getCatchClauses() {\n return getCatchClauseList();\n }", "@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<CatchClause> getCatchClauseListNoTransform() {\n return (List<CatchClause>)getChildNoTransform(1);\n }", "public void setCatchClauseList(List<CatchClause> list)...
[ "0.7913233", "0.669154", "0.64617324", "0.63619095", "0.62485296", "0.61867297", "0.5657099", "0.56411725", "0.5558624", "0.52145624", "0.51595443", "0.5143312", "0.50994694", "0.50754577", "0.50619537", "0.50538814", "0.4998543", "0.49651214", "0.49651214", "0.4896101", "0.4...
0.7630446
1
Retrieves the CatchClause list. This method does not invoke AST transformations.
@SuppressWarnings({"unchecked", "cast"}) public List<CatchClause> getCatchClauseListNoTransform() { return (List<CatchClause>)getChildNoTransform(1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<CatchClause> getCatchClauseList() {\n List<CatchClause> list = (List<CatchClause>)getChild(1);\n list.getNumChild();\n return list;\n }", "public List<CatchClause> getCatchClauses() {\n return getCatchClauseList();\n }", "public List<Cat...
[ "0.7817253", "0.77613366", "0.65446", "0.65096855", "0.6445125", "0.62635815", "0.5859965", "0.5631183", "0.54432434", "0.5260354", "0.5210271", "0.50532925", "0.50382024", "0.4970169", "0.4970169", "0.49584255", "0.4901351", "0.48676476", "0.47721717", "0.47645733", "0.47226...
0.69921917
2
Replaces the (optional) Finally child.
public void setFinally(Block node) { getFinallyOpt().setChild(node, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void doFinally() throws Exception\r\n\t{\n\t\t\r\n\t}", "public final void rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-ge...
[ "0.61879414", "0.6172394", "0.61551416", "0.61250675", "0.6113342", "0.6105561", "0.6094957", "0.6061245", "0.59908354", "0.5982288", "0.5954146", "0.59241146", "0.5922069", "0.5901621", "0.58538914", "0.57905066", "0.5764749", "0.57234794", "0.5722553", "0.5669008", "0.56683...
0.6667746
0
The block of the try statement can throw an exception of a type assignable to the given type.
@SuppressWarnings({"unchecked", "cast"}) public boolean catchableException(TypeDecl type) { Object _parameters = type; if(catchableException_TypeDecl_values == null) catchableException_TypeDecl_values = new java.util.HashMap(4); if(catchableException_TypeDecl_values.containsKey(_parameters)) { return ((Boolean)catchableException_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean catchableException_TypeDecl_value = catchableException_compute(type); if(isFinal && num == state().boundariesCrossed) catchableException_TypeDecl_values.put(_parameters, Boolean.valueOf(catchableException_TypeDecl_value)); return catchableException_TypeDecl_value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void exceptionsCatching( ExceptionType exceptionType );", "public static void catchingOnlyFromTry(){\n int x =1;\n try{\n if (true){throw new RuntimeException();}\n }\n catch (RuntimeException e){\n x*=2;\n System.out.println(x);\n ...
[ "0.62419355", "0.56554335", "0.5644783", "0.5618997", "0.56061643", "0.5542572", "0.5424232", "0.5389735", "0.53611565", "0.53154427", "0.5281258", "0.5234458", "0.5224581", "0.51921296", "0.51875836", "0.51701164", "0.51499236", "0.5140949", "0.51358694", "0.5102165", "0.508...
0.60520756
1
TODO: this should be a Feature
public abstract Object getUnderlyingObject();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "Feature getFeature();", "Feature getFeature();", "@Override\n public void perish() {\n \n }", "String getFeature();", "String getFeature();", "Feature createFeature();", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private...
[ "0.6100774", "0.60687953", "0.60687953", "0.5744338", "0.56913894", "0.56913894", "0.56787324", "0.56654674", "0.5641283", "0.5628465", "0.56139374", "0.5609675", "0.55912024", "0.5532837", "0.5532837", "0.55292404", "0.55247605", "0.54613", "0.54548633", "0.54524577", "0.545...
0.0
-1
Return the features reference sequence name, e.g chromosome or contig
@Override public String getChr() { return getContig(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String getRefName();", "@Override\n\tpublic String getFeatureName() {\n\t\treturn this.name();\n\t}", "private String labelFeature(int feature) {\r\n\t\treturn label[feature];\r\n\t}", "private String getFeatureFieldName(FeatureImpl feature) {\n return feature.getShortName();\n }", "...
[ "0.6075015", "0.59746236", "0.5912549", "0.5907772", "0.5906388", "0.58289033", "0.57538545", "0.57078886", "0.56604433", "0.56604433", "0.56557745", "0.5640351", "0.55764055", "0.5574146", "0.556134", "0.5561189", "0.55278724", "0.5510145", "0.5502081", "0.5483726", "0.54837...
0.0
-1
Return the features reference sequence name, e.g chromosome or contig
@Override public String getContig() { return feature.getContig(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String getRefName();", "@Override\n\tpublic String getFeatureName() {\n\t\treturn this.name();\n\t}", "private String labelFeature(int feature) {\r\n\t\treturn label[feature];\r\n\t}", "MolecularSequenceReferenceSeq getReferenceSeq();", "private String getFeatureFieldName(FeatureImpl fea...
[ "0.6078676", "0.59736556", "0.5911914", "0.5909946", "0.5907239", "0.5828098", "0.5757246", "0.5707384", "0.5664531", "0.5664531", "0.56544715", "0.56413966", "0.5579329", "0.55767053", "0.5564732", "0.5564469", "0.55306727", "0.55129576", "0.55053633", "0.54874843", "0.54874...
0.5387181
24
Return the start position in 1based coordinates (first base is 1)
@Override public int getStart() { return feature.getStart(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PixelPoint getStartPoint ()\r\n {\r\n Point start = glyph.getLag()\r\n .switchRef(\r\n new Point(getStart(), line.yAt(getStart())),\r\n null);\r\n\r\n return new PixelPoint(start.x, start.y);\r\n }", "public int getStartingPos ()\r\n {...
[ "0.70743734", "0.69460815", "0.6877432", "0.68627393", "0.68238384", "0.67562395", "0.67001206", "0.669495", "0.66846186", "0.66677886", "0.66568667", "0.6646399", "0.6572105", "0.6562729", "0.6537688", "0.6484372", "0.6483621", "0.6482063", "0.6467554", "0.6395915", "0.63895...
0.5888629
76
Return the end position following 1based fully closed conventions. The length of a feature is end start + 1;
@Override public int getEnd() { return feature.getEnd(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getEndIndex() {\n return start + length - 1;\n }", "org.mojolang.mojo.lang.Position getEndPosition();", "public Vector2 getEndLoc( ) { return endLoc; }", "int getEndPosition();", "public int getStop ()\r\n {\r\n return (getStart() + getLength()) - 1;\r\n }", "int getEndSegment...
[ "0.6677171", "0.6653356", "0.6624411", "0.6468258", "0.64264023", "0.6384222", "0.6303248", "0.62749726", "0.6239518", "0.6232005", "0.62241787", "0.6208141", "0.611266", "0.60650706", "0.6053322", "0.603969", "0.6032579", "0.6017907", "0.6017406", "0.6009096", "0.59995717", ...
0.72798866
0
TODO: this should be a Feature, actually
public Object getUnderlyingObject() { return feature; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "Feature getFeature();", "Feature getFeature();", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tprotected void doF6(...
[ "0.61189437", "0.59151435", "0.59151435", "0.57538086", "0.56732374", "0.5660261", "0.5638244", "0.56282866", "0.5544501", "0.55416065", "0.55416065", "0.5535005", "0.5528263", "0.5522245", "0.5522245", "0.5514534", "0.5487278", "0.5478671", "0.54554147", "0.54268855", "0.538...
0.0
-1
Delete in the database the company wich correspond to the id set and all the computer related to this company
public abstract void delete(int msg);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteComputerByCompany(Company company);", "@Override\r\n\tpublic void deleteCompany(int compId) throws CouponSystemException {\r\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tcon = ConnectionPool.getInstance().getConnection();\r\n\t\t\tString sql = \"delete from companies where companyId=\" + compId;\...
[ "0.79763454", "0.6745276", "0.67125463", "0.660694", "0.6599718", "0.6494281", "0.6471491", "0.64496815", "0.64158976", "0.6375126", "0.63090545", "0.62870926", "0.6268732", "0.62384224", "0.61908114", "0.6180618", "0.6171334", "0.61705947", "0.61429423", "0.61429185", "0.613...
0.0
-1
Return the Company wich correspond to the id set
public abstract Company get(int id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Company getCompany(int id);", "public Company findCompany(long id);", "Optional<Company> getCompany(long id);", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "@Override\r\n\tpublic Company g...
[ "0.837771", "0.7953361", "0.74044836", "0.7354022", "0.7354022", "0.7354022", "0.7354022", "0.7354022", "0.7341122", "0.73376137", "0.72288555", "0.72288555", "0.72288555", "0.72288555", "0.7182207", "0.71523374", "0.7146268", "0.70838153", "0.70794916", "0.70794916", "0.7064...
0.749989
2
Return the list of all the Company in the database
public abstract List<Company> getAll();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Company> getCompanys() {\n\t\treturn companyDao.findAll();\n//\t\treturn companies;\n\t}", "List<Company> getCompanyList() throws DAOException ;", "public List<Company> companies() {\n StandardServiceRegistry registry = new StandardServiceRegistryBuilder().configure().build();\n Sessi...
[ "0.8559151", "0.85520154", "0.8459924", "0.83827466", "0.8351298", "0.83153814", "0.82882875", "0.8200416", "0.81636804", "0.80776006", "0.80745757", "0.8010566", "0.7990716", "0.78973407", "0.78041446", "0.78002083", "0.7769525", "0.77255017", "0.76488596", "0.7616378", "0.7...
0.83261657
5
The Interface FeatherContext. The activity caller must implement this interface
public interface FeatherContext { /** * Gets the Activity main image view. * * @return the main image */ ImageViewTouchBase getMainImage(); /** * Gets the Activity bottom bar view. * * @return the bottom bar */ BottombarViewFlipper getBottomBar(); /** * Gets the Activity options panel container view. * * @return the options panel container */ ViewGroup getOptionsPanelContainer(); /** * Gets the Activity drawing image container view. * * @return the drawing image container */ ViewGroup getDrawingImageContainer(); /** * There's a special container drawn on top of all views, which can be used to add custom dialogs/popups. * * This is invisible by default and must be activated in order to be used * * @return */ ViewGroup activatePopupContainer(); /** * When the there's no need to use the popup container anymore, you must deactivate it */ void deactivatePopupContainer(); /** * Show tool progress. */ void showToolProgress(); /** * Hide tool progress. */ void hideToolProgress(); /** * Show a modal progress */ void showModalProgress(); /** * Hide the modal progress */ void hideModalProgress(); /** * Gets the toolbar. * * @return the toolbar */ ToolbarView getToolbar(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic BaseActivity getContext() {\n\t\treturn this;\n\t}", "@Override\n\tpublic BaseActivity getContext() {\n\t\treturn this;\n\t}", "@Override\n public void onContext() {\n }", "Context getContext();", "public abstract Context context();", "@Override\n public Conte...
[ "0.6506338", "0.6506338", "0.64672387", "0.614064", "0.61042273", "0.60486543", "0.59601796", "0.59416485", "0.587758", "0.58249974", "0.58249974", "0.58247477", "0.5785543", "0.5784395", "0.5779172", "0.5772211", "0.57633483", "0.57633483", "0.5760212", "0.5738114", "0.57345...
0.8501077
0
Gets the Activity main image view.
ImageViewTouchBase getMainImage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ImageView getImageView() {\n return (ImageView) getView().findViewById(imageViewId);\n }", "public ImageView getMainAvatar() {\n\t\treturn mainAvatar;\n\t}", "@Override\r\n\tpublic int rootViewId() {\n\t\treturn R.layout.activity_clip_photo;\r\n\t}", "@Override\n\tpublic Matrix getCurrentIma...
[ "0.6806039", "0.65418065", "0.61315423", "0.61306375", "0.60799223", "0.6079079", "0.59926796", "0.5973153", "0.5963417", "0.5894909", "0.58927387", "0.5843755", "0.5837574", "0.58088124", "0.57385474", "0.5719824", "0.5681275", "0.5681078", "0.56289387", "0.56152904", "0.559...
0.76160717
0
Gets the Activity bottom bar view.
BottombarViewFlipper getBottomBar();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected View getBottomLayout() {\n\t\treturn new View(this);\n\t}", "protected JPanel getBottomPanel() {\n return null;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflat...
[ "0.70860106", "0.59214073", "0.58880305", "0.5879387", "0.5800626", "0.5769593", "0.5768795", "0.5688618", "0.568528", "0.5634806", "0.5590181", "0.5586346", "0.5577767", "0.5543903", "0.5521998", "0.5515493", "0.5514201", "0.5492127", "0.5485387", "0.54823536", "0.5467561", ...
0.79465926
0
Gets the Activity options panel container view.
ViewGroup getOptionsPanelContainer();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Component getOptionsPanel() {\n return _options;\n }", "public IOptionsContainer getContainer();", "public abstract View getMainDialogContainer();", "private JPanel getExtendedOptionsPanel() {\n\t\tif (extendedOptionsPanel == null) {\n\t\t\textendedOptionsPanel = new JPanel();\n\t\t\texte...
[ "0.6794278", "0.6228487", "0.62255806", "0.60573626", "0.6026592", "0.59481555", "0.59359", "0.5876193", "0.5818206", "0.5803543", "0.57044244", "0.5656621", "0.5650458", "0.5644192", "0.558759", "0.55669975", "0.5562586", "0.55527616", "0.55527616", "0.55491614", "0.55427384...
0.790386
0
Gets the Activity drawing image container view.
ViewGroup getDrawingImageContainer();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DrawingView view() {\n return fView;\n }", "public ImageView getImageView() {\n return (ImageView) getView().findViewById(imageViewId);\n }", "protected StandardDrawingView createDrawingView() {\n return new StandardDrawingView(this, 410, 370);\n }", "public static View c...
[ "0.61888725", "0.6112777", "0.610209", "0.6049729", "0.5950824", "0.5923634", "0.5844869", "0.57329565", "0.57116026", "0.5711321", "0.5598366", "0.5555473", "0.5555473", "0.5553238", "0.5518026", "0.5506185", "0.54396385", "0.5435455", "0.54181236", "0.54005057", "0.54004973...
0.78227884
0
There's a special container drawn on top of all views, which can be used to add custom dialogs/popups. This is invisible by default and must be activated in order to be used
ViewGroup activatePopupContainer();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract View getMainDialogContainer();", "ViewContainer createViewContainer();", "public void setup() {\n self.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n // make dialog background unselectable\n self.setCanceledOnTouchOutside(false);\n }", "publ...
[ "0.7139119", "0.6664044", "0.6501298", "0.63262284", "0.631899", "0.6292054", "0.62577176", "0.61574423", "0.6149815", "0.6117064", "0.6077536", "0.6058698", "0.6048848", "0.601259", "0.5998929", "0.59448266", "0.59435076", "0.59351844", "0.5924853", "0.5923656", "0.5906658",...
0.68322736
1
When the there's no need to use the popup container anymore, you must deactivate it
void deactivatePopupContainer();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void hidePopup() {\n\t\t// logger.info(\"..errr..I'll hide u\");\n\t}", "private void popupModify() {\n\t\tboolean doNotShow = false;\n\t\tif (this instanceof Umlenkrolle && ((Umlenkrolle) this).isFree()) {\n\t\t\tdoNotShow = true;\n\t\t} else if (this instanceof DoppelUmlenkrolle) {\n\t\t\td...
[ "0.7077124", "0.69652486", "0.6761407", "0.6611483", "0.65562874", "0.64347744", "0.64347553", "0.64229155", "0.6407727", "0.63761705", "0.6365592", "0.6347808", "0.6331578", "0.6330156", "0.63165575", "0.63020545", "0.62162", "0.6204544", "0.61810803", "0.61715424", "0.61651...
0.87157696
0
Show a modal progress
void showModalProgress();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}", "void showProgress();", "@Override\n public void showProgress() {\n\n }", "private void showDialog() {\n if (!progressDialog.isShowing())\n progressDialog.show();\n }", "private void showSpinerProgress() {\n ...
[ "0.7608468", "0.7542116", "0.71279407", "0.7052067", "0.7043832", "0.69403225", "0.6789141", "0.67523265", "0.67168176", "0.6623447", "0.6603477", "0.65982395", "0.65809375", "0.6576856", "0.6562491", "0.65293723", "0.64890087", "0.6472823", "0.6428474", "0.6397102", "0.63945...
0.8785762
0
Hide the modal progress
void hideModalProgress();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void hideProgress() {\n\t\twaitDialog(false);\n\t}", "void hideProgress();", "private void hideProgress() {\n if (dialogProgress != null) {\n dialogProgress.dismiss();\n dialogProgress = null;\n }\n }", "@Override\n\tpublic void hideProgress() {\n\t\...
[ "0.8070913", "0.80674773", "0.79918784", "0.7970073", "0.7928953", "0.79224944", "0.77052605", "0.7703137", "0.7653513", "0.7648908", "0.75012773", "0.7440645", "0.742833", "0.7382547", "0.73706174", "0.73149383", "0.7280847", "0.7245482", "0.7189513", "0.71367407", "0.707797...
0.89728373
0
The listener interface for receiving onTool events. The class that is interested in processing a onTool event implements this interface, and the object created with that class is registered with a component using the component's addOnToolListener method. When the onTool event occurs, that object's appropriate method is invoked.
public static interface OnToolListener { /** * On tool completed. */ void onToolCompleted(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToolListener(ToolListener listener, String toolEvent) {\n\t\t//do nothing\n\t}", "public void setOnToolListener( final OnToolListener listener ) {\n\t\tmToolListener = listener;\n\t}", "@Override\n\tpublic void addToolListener(ToolListener listener) {\n\t\t//do nothing\n\t}", "public void addM...
[ "0.77133924", "0.7649358", "0.749137", "0.64667034", "0.6220475", "0.61701673", "0.6111171", "0.6003773", "0.5989089", "0.59586865", "0.58759344", "0.58166414", "0.56911296", "0.5617411", "0.5592648", "0.55920386", "0.5567735", "0.5554338", "0.5515113", "0.54813075", "0.54792...
0.84651405
0
Instantiates a new filter manager.
public FilterManager( final FeatherContext context, final Handler handler, final String apiKey ) { logger = LoggerFactory.getLogger( "FilterManager", LoggerType.ConsoleLoggerType ); mContext = context; mHandler = handler; mApiKey = apiKey; mPluingsHandler = new PluginHandler( this ); mServiceLoader = new ServiceLoader<EffectContextService>( this ); initServices( context ); mConfiguration = new Configuration( ( (Context) context ).getResources().getConfiguration() ); setCurrentState( STATE.DISABLED ); mChanged = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initialize(FilterManager<E> filterManager) {\n this.filterManager = filterManager;\n }", "public Filter() {\n }", "public SamFilterParams create() {\n return new SamFilterParams(this);\n }", "public Filters() {\n }", "public Filter () {\n\t\tsuper();\n\t}", "public sta...
[ "0.7122546", "0.68704027", "0.68298966", "0.6815561", "0.6611381", "0.65888417", "0.6545721", "0.651954", "0.64965034", "0.6485928", "0.6485458", "0.6479828", "0.64790857", "0.6470168", "0.6425493", "0.642509", "0.63886255", "0.6383618", "0.63030887", "0.6256419", "0.62492573...
0.5729123
47
Register a default handler to receive hires messages
public void setOnHiResListener( OnHiResListener listener ) { mHiResListener = listener; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Promise<Void> registerHandler(String address, Handler<? extends Message> handler);", "@Override\n\tpublic void setHandler(String defaultHandler, String handlerName) {\n\n\t}", "public void registerHandler(Object handler)\n {\n\n }", "@Override\n\tpublic void RegisterHandler(HotSpotServerEventHandler ha...
[ "0.6897281", "0.6820985", "0.67045987", "0.6673677", "0.6626892", "0.6616554", "0.64111906", "0.6303454", "0.62664914", "0.6218066", "0.6187345", "0.61796933", "0.6104855", "0.60812795", "0.6080244", "0.6057276", "0.6053112", "0.5990671", "0.5937582", "0.58882767", "0.5887335...
0.0
-1
This is the entry point of every feather tools. The main activity catches the tool onClick listener and notify the filtermanager.
public void activateEffect( final EffectEntry tag ) { if ( !getEnabled() || !isClosed() || mBitmap == null ) return; if ( mCurrentEffect != null ) throw new IllegalStateException( "There is already an active effect. Cannot activate new" ); if ( mEffectLoader == null ) mEffectLoader = (EffectLoaderService) getService( EffectLoaderService.class ); final AbstractEffectPanel effect = mEffectLoader.load( tag ); if ( effect != null ) { mCurrentEffect = effect; mCurrentEntry = tag; setCurrentState( STATE.OPENING ); prepareEffectPanel( effect, tag ); Tracker.recordTag( mCurrentEntry.name.name().toLowerCase( Locale.US ) + ": opened" ); mContext.getBottomBar().setOnPanelOpenListener( new OnPanelOpenListener() { @Override public void onOpened() { setCurrentState( STATE.OPENED ); mContext.getBottomBar().setOnPanelOpenListener( null ); } @Override public void onOpening() { mCurrentEffect.onOpening(); } } ); mContext.getBottomBar().open(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == R.id.center) {\n centerMapFile();\n } else\n // Activate the filter control\n if (item.getItemId() == R.id.filter) {\n if (mic != null && mic.getActivationListener() != n...
[ "0.6034093", "0.584301", "0.5804533", "0.56797", "0.563415", "0.5576324", "0.5538402", "0.550864", "0.54800034", "0.5473313", "0.54648554", "0.5464729", "0.54232097", "0.54186344", "0.5413434", "0.5409135", "0.5403678", "0.5384796", "0.535196", "0.5320544", "0.53202987", "0...
0.0
-1
Return the current bitmap.
public Bitmap getBitmap() { return mBitmap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Bitmap getBitmap() {\n\t\treturn this.initialBitmap;\r\n\t}", "public Bitmap getBitmapIn() {\r\n\t\treturn bitmapIn;\r\n\t}", "public BufferedImage getCurrentImage(){\n\t\treturn getCurrentImage(System.currentTimeMillis()-lastUpdate);\n\t}", "public Bitmap getImage(){\n return images[currentFra...
[ "0.8003209", "0.7355034", "0.7320539", "0.7262836", "0.72499365", "0.70430523", "0.70042735", "0.700145", "0.6881098", "0.6839818", "0.68345284", "0.67457676", "0.67219675", "0.6711702", "0.64854974", "0.64121497", "0.6400639", "0.63126904", "0.62737954", "0.62657565", "0.622...
0.76920813
1
Return true if the main image has been modified by any of the feather tools.
public boolean getBitmapIsChanged() { return mChanged; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isManipulated();", "boolean isOssModified();", "boolean hasPatch();", "public boolean isTreeModified() {\n return FxContext.get().getTreeWasModified();\n }", "public boolean shouldImageProcess() {\r\n\t\treturn table.getBoolean(SHOULD_IMAGE_PROCESS_KEY, false);\r\n\t}", "boolean isModif...
[ "0.6754513", "0.6511757", "0.628737", "0.624725", "0.6194792", "0.61910695", "0.61910695", "0.61893815", "0.614791", "0.6129522", "0.6129522", "0.6113238", "0.6108767", "0.610631", "0.610631", "0.60731834", "0.6071036", "0.60202396", "0.6014111", "0.5993463", "0.5968557", "...
0.5526067
74
Return the active tool, null if there is not active tool.
@Override public EffectEntry getCurrentEffect() { return mCurrentEntry; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tool getActiveTool()\n {\n return GametableFrame.getGametableFrame().getGametableCanvas().getActiveTool();\n }", "public Tool getCurrentTool() {\n return fCurrTool;\n }", "public String getTool() {\n\t\treturn tool;\n\t}", "public Tool getTool() {\n\treturn tool;\n }", "pub...
[ "0.8125013", "0.7591143", "0.7271299", "0.7112257", "0.7028241", "0.6929161", "0.65367573", "0.6433011", "0.6416984", "0.63607997", "0.62738097", "0.6242683", "0.6237923", "0.6232981", "0.6182981", "0.61616546", "0.61388755", "0.6105423", "0.59703046", "0.59642977", "0.593246...
0.0
-1
Return the current panel associated with the active tool. Null if there's no active tool
public AbstractEffectPanel getCurrentPanel() { return mCurrentEffect; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCurrentPanel() {\n return this.currentPanel;\n }", "public Tool getActiveTool()\n {\n return GametableFrame.getGametableFrame().getGametableCanvas().getActiveTool();\n }", "@Override\n\tpublic Panel getPanel() {\n\t\treturn m_currentPanel;\n\t}", "public Tool getCurren...
[ "0.7603983", "0.72878456", "0.7118698", "0.7095997", "0.688131", "0.6826975", "0.6746208", "0.66852593", "0.6679306", "0.6575525", "0.6562122", "0.652386", "0.64790636", "0.6216165", "0.6089839", "0.6077692", "0.6075351", "0.6067555", "0.60552007", "0.6018494", "0.60037786", ...
0.6611449
9
Return the current image transformation matrix. this is useful for those tools which implement ContentPanel and want to display the preview bitmap with the same zoom level of the main image
@Override public Matrix getCurrentImageViewMatrix() { return mContext.getMainImage().getDisplayMatrix(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Matrix getTransform()\n {\n return transform;\n }", "public Matrix4 getTransformMatrix() {\n return transformMatrix;\n }", "public AffineTransform getTransform()\n/* */ {\n/* 194 */ return this.transform;\n/* */ }", "public Transform getTransformation() {\n ...
[ "0.7301042", "0.7203587", "0.6880001", "0.67477906", "0.66930085", "0.6634291", "0.6589747", "0.6570487", "0.64932835", "0.6486526", "0.64572614", "0.6440587", "0.6406176", "0.6390279", "0.6326855", "0.6266789", "0.6224056", "0.62215656", "0.6217105", "0.6211477", "0.614885",...
0.7405899
0
Return true if enabled.
public boolean getEnabled() { return mCurrentState != STATE.DISABLED; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEnabled()\n {\n return mSettings.getBoolean(ENABLED, true);\n }", "final public boolean isEnabled() {\n return enabledType!=ENABLED_NONE;\n }", "public boolean isEnabled()\r\n\t{\r\n\t\treturn enabled;\r\n\t}", "public boolean isEnabled() {\n return mBundle.getBoolea...
[ "0.83706313", "0.82628727", "0.8219882", "0.82063514", "0.8168259", "0.8151658", "0.8147765", "0.8135091", "0.8135081", "0.8135081", "0.8100524", "0.80989945", "0.8078046", "0.80426645", "0.7990899", "0.79830694", "0.7950184", "0.794639", "0.792678", "0.792678", "0.79252064",...
0.7410735
95
Return the service, if previously registered using ServiceLoader.
@SuppressWarnings("unchecked") @Override public <T> T getService( Class<T> cls ) { try { return (T) mServiceLoader.getService( (Class<EffectContextService>) cls ); } catch ( IllegalAccessException e ) { e.printStackTrace(); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized PlatformInit getService() {\n\t\tif(theService == null || theService.initialised)\n\t\t\treturn theService;\n\t\treturn null;\n\t}", "public Service getService() {\n return serviceInstance;\n }", "public Object getService() {\n return service;\n }", "private Ser...
[ "0.69980586", "0.69215196", "0.6919272", "0.67722046", "0.669885", "0.66868275", "0.6651964", "0.66250086", "0.653619", "0.6489126", "0.64886636", "0.6428965", "0.63662124", "0.6338375", "0.6336081", "0.6333511", "0.6316798", "0.63080615", "0.6293594", "0.6293594", "0.6293594...
0.5946191
56
Return true if there's no active tool.
public boolean isClosed() { return ( mCurrentState == STATE.CLOSED_CANCEL ) || ( mCurrentState == STATE.CLOSED_CONFIRMED ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasTools() {\n return hasTools(getAIUnit());\n }", "public boolean hasActive() {\n return activeBuilder_ != null || active_ != null;\n }", "public boolean isToolChangerOpen() {\n return toolChangerOpen;\n }", "public boolean hasActive() {\n return active_ ...
[ "0.71508956", "0.678689", "0.6726762", "0.6575199", "0.65175146", "0.64162153", "0.6413929", "0.6409144", "0.6380754", "0.6331027", "0.63166744", "0.6283515", "0.6279294", "0.62599677", "0.62338096", "0.62338096", "0.62263596", "0.6145433", "0.61296535", "0.6099015", "0.60620...
0.0
-1
return true if there's one active tool.
public boolean isOpened() { return mCurrentState == STATE.OPENED; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static synchronized boolean isRegistered(Tool tool) {\n\t\treturn getTool(tool.getItem()) != null;\n\t}", "public boolean isToolChangerOpen() {\n return toolChangerOpen;\n }", "private boolean hasTools() {\n return hasTools(getAIUnit());\n }", "public Tool getActiveTool()\n {\n ...
[ "0.6952034", "0.68977803", "0.68516475", "0.68177205", "0.67097545", "0.66587025", "0.65968245", "0.65883696", "0.65568584", "0.6521341", "0.635184", "0.6318809", "0.63070405", "0.6281503", "0.6281503", "0.62714195", "0.6182467", "0.6177696", "0.6177696", "0.616881", "0.61623...
0.0
-1
Current activity is asking to apply the current tool.
public void onApply() { logger.info( "FilterManager::onapply" ); if ( !getEnabled() || !isOpened() ) return; if ( mCurrentEffect == null ) throw new IllegalStateException( "there is no current effect active in the context" ); if ( !mCurrentEffect.isEnabled() ) return; if ( mCurrentEffect.getIsChanged() ) { mCurrentEffect.onSave(); mChanged = true; } else { onCancel(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toolAccepted()\n {\n printOut(cliToolsManager.simpleQuestionsMaker(\"Strumento accettato\", 40, true));\n }", "protected void performApply() {\n\n for (int i = 0; i < providers.getItemCount(); i++) {\n\n //TODO: The checkboxes are buggy. Sometimes the provider in the ta...
[ "0.6081087", "0.5949856", "0.58030623", "0.5744229", "0.5720706", "0.5623782", "0.560407", "0.5564249", "0.5391701", "0.5298012", "0.52949864", "0.5274181", "0.5261978", "0.5228804", "0.52052027", "0.51975185", "0.5193858", "0.518019", "0.51648206", "0.5149125", "0.51416606",...
0.5039572
32
Parent activity just received a onBackPressed event. If there's one active tool, it will be asked to manage the onBackPressed event. If the active tool onBackPressed method return a false then try to close it.
public boolean onBackPressed() { if ( isClosed() ) return false; if ( mCurrentState != STATE.DISABLED ) { if ( isOpened() ) { if ( !mCurrentEffect.onBackPressed() ) onCancel(); } return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onBackPressed() {\n this.getParent().onBackPressed();\n }", "@Override\n public void onBackPressed() {\n this.getParent().onBackPressed();\n }", "public abstract boolean onBackPressed(boolean isSystemBackKey);", "public abstract boolean onBackPressed();", "...
[ "0.7554845", "0.7554845", "0.7543961", "0.75291526", "0.752013", "0.7504012", "0.74766195", "0.7460095", "0.7455781", "0.7432648", "0.7432648", "0.74271166", "0.7426889", "0.7378878", "0.73701864", "0.7349065", "0.733108", "0.7315484", "0.7310146", "0.7310146", "0.7299416", ...
0.73341274
16
Main activity asked to cancel the current operation.
public void onCancel() { if ( !getEnabled() || !isOpened() ) return; if ( mCurrentEffect == null ) throw new IllegalStateException( "there is no current effect active in the context" ); if ( !mCurrentEffect.onCancel() ) { cancel(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void cancel() {\n\t\tfinish();\n\t}", "@Override\n\t\t\tpublic void cancel() {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "public synchronized void cancel() {\n }", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "...
[ "0.77679384", "0.74533385", "0.73696935", "0.7317305", "0.7317305", "0.7317305", "0.7317305", "0.7317305", "0.7317305", "0.7246026", "0.7239677", "0.72382504", "0.71894777", "0.7184106", "0.7160186", "0.71242905", "0.7108929", "0.71029276", "0.70951945", "0.708437", "0.708437...
0.0
-1
Sets the next bitmap.
void setNextBitmap( Bitmap bitmap ) { setNextBitmap( bitmap, true ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setNextBitmap( Bitmap bitmap, boolean update ) {\n\t\tsetNextBitmap( bitmap, update, null );\n\t}", "void setNextBitmap( Bitmap bitmap, boolean update, Matrix matrix ) {\n\t\tlogger.log( \"setNextBitmap\", bitmap, update, matrix );\n\n\t\tif ( null != mBitmapChangeListener ) mBitmapChangeListener.onBitmapCh...
[ "0.7866842", "0.7630723", "0.65835696", "0.63873875", "0.6296895", "0.61072403", "0.608323", "0.6021907", "0.60206014", "0.59583646", "0.5935971", "0.5841145", "0.582696", "0.5808433", "0.576138", "0.5748932", "0.5729061", "0.5702188", "0.5699564", "0.56877947", "0.5681869", ...
0.83155215
0
Sets the next bitmap.
void setNextBitmap( Bitmap bitmap, boolean update ) { setNextBitmap( bitmap, update, null ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setNextBitmap( Bitmap bitmap ) {\n\t\tsetNextBitmap( bitmap, true );\n\t}", "void setNextBitmap( Bitmap bitmap, boolean update, Matrix matrix ) {\n\t\tlogger.log( \"setNextBitmap\", bitmap, update, matrix );\n\n\t\tif ( null != mBitmapChangeListener ) mBitmapChangeListener.onBitmapChange( bitmap, update, ma...
[ "0.83155215", "0.7630723", "0.65835696", "0.63873875", "0.6296895", "0.61072403", "0.608323", "0.6021907", "0.60206014", "0.59583646", "0.5935971", "0.5841145", "0.582696", "0.5808433", "0.576138", "0.5748932", "0.5729061", "0.5702188", "0.5699564", "0.56877947", "0.5681869",...
0.7866842
1
Sets the next bitmap.
void setNextBitmap( Bitmap bitmap, boolean update, Matrix matrix ) { logger.log( "setNextBitmap", bitmap, update, matrix ); if ( null != mBitmapChangeListener ) mBitmapChangeListener.onBitmapChange( bitmap, update, matrix ); if ( !mBitmap.equals( bitmap ) ) { logger.warning( "[recycle] original Bitmap: " + mBitmap ); mBitmap.recycle(); mBitmap = null; } mBitmap = bitmap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setNextBitmap( Bitmap bitmap ) {\n\t\tsetNextBitmap( bitmap, true );\n\t}", "void setNextBitmap( Bitmap bitmap, boolean update ) {\n\t\tsetNextBitmap( bitmap, update, null );\n\t}", "public void setNext(Tile next){\n\t\tthis.next=next;\n\t}", "void setNext(MapElement next) {\n this.next = nex...
[ "0.83155215", "0.7866842", "0.65835696", "0.63873875", "0.6296895", "0.61072403", "0.608323", "0.6021907", "0.60206014", "0.59583646", "0.5935971", "0.5841145", "0.582696", "0.5808433", "0.576138", "0.5748932", "0.5729061", "0.5702188", "0.5699564", "0.56877947", "0.5681869",...
0.7630723
2
Replace the current bitmap.
public void onReplaceImage( final Bitmap bitmap, int[] originalSize ) { if ( !getEnabled() || !isClosed() ) throw new IllegalStateException( "Cannot replace bitmap. Not active nor closed!" ); LocalDataService dataService = getService( LocalDataService.class ); if ( ( mBitmap != null ) && !mBitmap.isRecycled() ) { logger.warning( "[recycle] original Bitmap: " + mBitmap ); mBitmap.recycle(); mBitmap = null; } mChanged = false; mBitmap = bitmap; dataService.setSourceImageSize( originalSize ); HiResService service = getService( HiResService.class ); if ( mHiResEnabled && service.isRunning() ) { service.replace( mSessionId, mApiKey, dataService.getSourceImageUri() ); } if ( null != mHiResListener ) { mHiResListener.OnLoad( dataService.getSourceImageUri() ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n sight.setImageBitmap(bmp);\n // old = null;\n }", "void setNextBitmap( Bitmap bitmap, boolean update, Matrix matrix ) {\n\t\tlogger.log( \"setNextBitmap\", bitmap, update, matrix );\n\n\t\tif ( null != mBitmapChangeListener ) mBitmapChang...
[ "0.6561622", "0.6557135", "0.64462215", "0.6424878", "0.64205426", "0.6395174", "0.63183796", "0.6245924", "0.6245924", "0.62297535", "0.61645406", "0.61528164", "0.6151935", "0.6143272", "0.6136257", "0.6104715", "0.60930675", "0.6083803", "0.6069375", "0.60080355", "0.60036...
0.6230479
9
Run a Runnable on the main UI thread.
@Override public void runOnUiThread( final Runnable action ) { if ( mContext != null ) ( (Activity) mContext ).runOnUiThread( action ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void runOnUiThread(Runnable runnable);", "public static void runOnUIThread(\n final Runnable r)\n {\n NullCheck.notNull(r);\n final Looper looper = NullCheck.notNull(Looper.getMainLooper());\n final Handler h = new Handler(looper);\n h.post(r);\n }", "private static void runLat...
[ "0.7262829", "0.7065604", "0.6944305", "0.6832593", "0.68090343", "0.6732508", "0.6709126", "0.66439086", "0.6614808", "0.6501008", "0.6423874", "0.63983977", "0.6348641", "0.6322119", "0.63167715", "0.6248038", "0.623502", "0.6226748", "0.62245715", "0.6221155", "0.6178717",...
0.6282241
15
Sets the current state.
private void setCurrentState( final STATE newState ) { if ( newState != mCurrentState ) { final STATE previousState = mCurrentState; mCurrentState = newState; switch ( newState ) { case OPENING: mCurrentEffect.setOnPreviewListener( this ); mCurrentEffect.setOnApplyResultListener( this ); mCurrentEffect.setOnErrorListener( this ); mCurrentEffect.setOnProgressListener( this ); if ( mCurrentEffect instanceof ContentPanel ) ( (ContentPanel) mCurrentEffect ).setOnReadyListener( this ); mHandler.sendEmptyMessage( FilterManager.STATE_OPENING ); break; case OPENED: mCurrentEffect.onActivate(); mHandler.sendEmptyMessage( FilterManager.STATE_OPENED ); if ( !( mCurrentEffect instanceof ContentPanel ) ) { mHandler.sendEmptyMessage( STATE_READY ); } break; case CLOSING: mHandler.sendEmptyMessage( FilterManager.STATE_CLOSING ); mCurrentEffect.onDeactivate(); if ( mCurrentEffect instanceof ContentPanel ) { ( (ContentPanel) mCurrentEffect ).setOnReadyListener( null ); } mHandler.postDelayed( new Runnable() { @Override public void run() { if ( null != mBitmapChangeListener ) mBitmapChangeListener.onClearColorFilter(); mContext.getDrawingImageContainer().removeAllViews(); mContext.deactivatePopupContainer(); } }, 100 ); break; case CLOSED_CANCEL: case CLOSED_CONFIRMED: mContext.getOptionsPanelContainer().removeAllViews(); if ( previousState != STATE.DISABLED ) { mCurrentEffect.onDestroy(); mCurrentEffect.setOnPreviewListener( null ); mCurrentEffect.setOnApplyResultListener( null ); mCurrentEffect.setOnErrorListener( null ); mCurrentEffect.setOnProgressListener( null ); mCurrentEffect = null; mCurrentEntry = null; } mHandler.sendEmptyMessage( FilterManager.STATE_CLOSED ); if ( ( newState == STATE.CLOSED_CONFIRMED ) && ( previousState != STATE.DISABLED ) ) if ( mToolListener != null ) mToolListener.onToolCompleted(); System.gc(); break; case DISABLED: mHandler.sendEmptyMessage( FilterManager.STATE_DISABLED ); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCurrentState(State state) {\n currentState = state;\n }", "void setState(int state);", "public void setState(int state);", "public void setState(int state);", "public static void setState(States state) {\r\n\t\tcurrentState = state;\r\n\t}", "protected void setCurrentState(boolea...
[ "0.7822123", "0.7716895", "0.76805645", "0.76805645", "0.75865567", "0.75851035", "0.7563019", "0.75600296", "0.7456805", "0.74383897", "0.74381435", "0.74381435", "0.74290425", "0.7419567", "0.7419567", "0.73751277", "0.7369308", "0.7363639", "0.7363639", "0.7363639", "0.736...
0.0
-1
Sets the on tool listener.
public void setOnToolListener( final OnToolListener listener ) { mToolListener = listener; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setListener() {\n\t}", "@Override\n\tpublic void addToolListener(ToolListener listener) {\n\t\t//do nothing\n\t}", "public void addToolListener(ToolListener listener, String toolEvent) {\n\t\t//do nothing\n\t}", "void setListener(Listener listener);", "public static interface OnToolListener {\...
[ "0.69507205", "0.6872443", "0.6862696", "0.6690904", "0.6633232", "0.65534407", "0.65501857", "0.6450387", "0.6438711", "0.6438711", "0.6363724", "0.63388705", "0.63388705", "0.62685347", "0.6234418", "0.6214683", "0.6214683", "0.61988443", "0.6193992", "0.61259407", "0.60994...
0.8552054
0
Main Activity configuration changed We want to dispatch the configuration event also to the opened panel.
public boolean onConfigurationChanged( Configuration newConfig ) { boolean result = false; logger.info( "onConfigurationChanged: " + newConfig.orientation + ", " + mConfiguration.orientation ); if ( mCurrentEffect != null ) { if ( mCurrentEffect.isCreated() ) { logger.info( "onConfigurationChanged, sending event to ", mCurrentEffect ); mCurrentEffect.onConfigurationChanged( newConfig, mConfiguration ); result = true; } } mConfiguration = new Configuration( newConfig ); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void handleConfigurationChanged(Configuration config);", "public abstract void handleActivityConfigurationChanged(IBinder activityToken,\n Configuration overrideConfig, int displayId);", "@Override\r\n public void onConfigurationChanged(Configuration newConfig){\r\n super.o...
[ "0.7186122", "0.6980927", "0.68799734", "0.68083555", "0.67295444", "0.6708087", "0.6702271", "0.6680678", "0.6659032", "0.66474617", "0.66274965", "0.6601278", "0.65999246", "0.6575717", "0.65660316", "0.65575075", "0.65135247", "0.6374937", "0.63747567", "0.63641375", "0.63...
0.5789596
55
A plugin or theme has been installed/removed or replaced Notify the internal pluginservice about the new plugin. All the classes which have a listener attached to the PluginService will be notified too.
public void onPluginChanged( Intent intent ) { logger.info( "onReceive", intent ); logger.info( "data", intent.getData() ); updateInstalledPlugins( intent.getExtras() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void firePluginAdded()\n\t{\n\t\tfor (PluginListener pl : this.pluginListeners)\n\t\t{\n\t\t\tpl.pluginAdded(pluginEvent);\n\t\t}\n\t}", "protected abstract void onPluginEnable();", "void firePluginsMonitored()\n {\n // Set that at least one iteration was done. That means that \"all availab...
[ "0.67049235", "0.6614268", "0.6348828", "0.6327515", "0.63219506", "0.6242664", "0.61951727", "0.5976774", "0.58896625", "0.58612114", "0.58456415", "0.58065766", "0.5729667", "0.57145137", "0.57019776", "0.56858563", "0.5682807", "0.5681259", "0.56645757", "0.56564695", "0.5...
0.690996
0
override the toString() method
@Override public String toString() { return "User{" + "Id=" + Id + ", name='" + name + '\'' + ", email='" + email + '\'' + ", phoneNumber=" + phoneNumber + ", gender=" + gender + ", age=" + age + ", boardingPass=" + boardingPass + "'}'\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override String toString();", "@Override public String toString();", "@Override\r\n String toString();", "@Override\n String toString();", "@Override\n String toString();", "@Override\r\n\tpublic String toString();", "@Override\r\n public String toString();", "@Override\n\tString toStrin...
[ "0.93914187", "0.92737275", "0.92512286", "0.9167179", "0.9167179", "0.9099127", "0.9082653", "0.90361404", "0.899346", "0.8945232", "0.8945232", "0.8916795", "0.8877801", "0.88388276", "0.88388276", "0.88388276", "0.88388276", "0.88388276", "0.88388276", "0.88388276", "0.881...
0.0
-1
Action for Cancel button.
@Action public void acCancel() { setChangeObj(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void cancelButtonActionPerformed(ActionEvent e) {\n }", "void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }", "void btnCancel();", "void onCancelClicked();", "private void actionCancel() {\n\t\tselectedDownload.cancel();\n\t\tupdate...
[ "0.8303044", "0.82837737", "0.82590556", "0.81451356", "0.814405", "0.8119098", "0.811594", "0.79297745", "0.78919744", "0.7885027", "0.78391755", "0.7687486", "0.7658327", "0.7651064", "0.7600984", "0.7587857", "0.75639904", "0.7544679", "0.75306845", "0.749404", "0.74939495...
0.73578185
24
Action for OK button.
@Action public void acOk() { if (checkFormattedTextFieldNullNoSupposed(jftfCoord1, -1e5, 1e5)) { return; } if (checkFormattedTextFieldNullNoSupposed(jftfCoord2, -1e5, 1e5)) { return; } if (checkTextField(jtfName)) { return; } getTempObj().setType(jcbType.getSelectedIndex()); getTempObj().setCoord1(getDoubleFromFormattedTextField(jftfCoord1)); getTempObj().setCoord2(getDoubleFromFormattedTextField(jftfCoord2)); getTempObj().setName(jtfName.getText()); setChangeObj(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void okButtonClicked();", "public void actionPerformed (ActionEvent e)\n\t\t\t\t{\n\t\t\t\talertOK();\n\t\t\t\t}", "protected abstract boolean onOkClicked();", "public void cmdOk() {\n\n\t\tif (!m_actionscombo.isValueInModel()) {\n\t\t\tString msg = I18N.getLocalizedMessage(\"Invalid Action Name\");\n\t\t\tS...
[ "0.82498163", "0.7735042", "0.76717913", "0.76620084", "0.7599956", "0.7563331", "0.74849004", "0.74773395", "0.74751794", "0.7474995", "0.7465549", "0.7388835", "0.7280969", "0.7170516", "0.7117098", "0.71012646", "0.70957196", "0.70934623", "0.7088997", "0.7025616", "0.6995...
0.6850384
31
CHECKSTYLE:OFF 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() { jbtnOk = new javax.swing.JButton(); jbtnCancel = new javax.swing.JButton(); jftfCoord1 = new javax.swing.JFormattedTextField(); jftfCoord2 = new javax.swing.JFormattedTextField(); jcbType = new javax.swing.JComboBox(); jtfName = new javax.swing.JTextField(); jlbType = new javax.swing.JLabel(); jlbCoord1 = new javax.swing.JLabel(); jlbCoord2 = new javax.swing.JLabel(); jlbText = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(ru.gss.pmfsearcher.PMFSearcherApp.class).getContext().getResourceMap(DlgReperEdit.class); setTitle(resourceMap.getString("Form.title")); // NOI18N setModal(true); setName("Form"); // NOI18N setResizable(false); javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(ru.gss.pmfsearcher.PMFSearcherApp.class).getContext().getActionMap(DlgReperEdit.class, this); jbtnOk.setAction(actionMap.get("acOk")); // NOI18N jbtnOk.setName("jbtnOk"); // NOI18N jbtnCancel.setAction(actionMap.get("acCancel")); // NOI18N jbtnCancel.setName("jbtnCancel"); // NOI18N jftfCoord1.setName("jftfCoord1"); // NOI18N jftfCoord2.setName("jftfCoord2"); // NOI18N jcbType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Точка", "Интервал" })); jcbType.setName("jcbType"); // NOI18N jtfName.setText(resourceMap.getString("jtfName.text")); // NOI18N jtfName.setName("jtfName"); // NOI18N jlbType.setText(resourceMap.getString("jlbType.text")); // NOI18N jlbType.setName("jlbType"); // NOI18N jlbCoord1.setText(resourceMap.getString("jlbCoord1.text")); // NOI18N jlbCoord1.setName("jlbCoord1"); // NOI18N jlbCoord2.setText(resourceMap.getString("jlbCoord2.text")); // NOI18N jlbCoord2.setName("jlbCoord2"); // NOI18N jlbText.setText(resourceMap.getString("jlbText.text")); // NOI18N jlbText.setName("jlbText"); // NOI18N javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(16, 16, 16) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jbtnOk, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jbtnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jlbCoord2) .addComponent(jlbCoord1) .addComponent(jlbType)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jcbType, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jftfCoord2, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jftfCoord1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE))) .addComponent(jlbText) .addComponent(jtfName, javax.swing.GroupLayout.DEFAULT_SIZE, 294, Short.MAX_VALUE)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jlbType) .addComponent(jcbType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jftfCoord1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jlbCoord1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jftfCoord2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jlbCoord2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jlbText) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jtfName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jbtnOk) .addComponent(jbtnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap()) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPem...
[ "0.7394902", "0.730535", "0.730535", "0.730535", "0.72993475", "0.72569805", "0.7242906", "0.7213646", "0.71623415", "0.71535647", "0.7134446", "0.709741", "0.7095053", "0.70120686", "0.70061785", "0.6997782", "0.6991662", "0.69877446", "0.69771487", "0.69716275", "0.69444615...
0.0
-1
/ renamed from: b
static float m51586b(float f, float f2, float f3) { return ((f2 - f) * f3) + f; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: b
static int m51587b(int i, int i2, float f) { return Math.round(((float) (i2 - i)) * f) + i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
Called when the activity is first created.
@Override public void onCreate(Bundle icicle) { Log.d(TAG, "onCreate()"); super.onCreate(icicle); // Process past states Intent intent = getIntent(); if (icicle != null) { LogHelper.d(TAG, "Launch by saved instance state"); mParentItem = icicle.getParcelable(MusicUtils.TAG_PARENT_ITEM); mWithTabs = icicle.getBoolean(MusicUtils.TAG_WITH_TABS); MusicUtils.updateNowPlaying(this); } else if (intent != null) { LogHelper.d(TAG, "Launch by intent"); mParentItem = intent.getParcelableExtra(MusicUtils.TAG_PARENT_ITEM); mWithTabs = intent.getBooleanExtra(MusicUtils.TAG_WITH_TABS, false); } if (mParentItem == null) { LogHelper.d(TAG, "Launch by default parameters"); mParentItem = DEFAULT_PARENT_ITEM; mWithTabs = true; } if (mWithTabs) { requestWindowFeature(Window.FEATURE_NO_TITLE); } setTitle(mParentItem.getDescription().getTitle()); setVolumeControlStream(AudioManager.STREAM_MUSIC); // Init layout LogHelper.d(TAG, "init layout"); setContentView(R.layout.media_picker_activity); MusicUtils.updateButtonBar(this, R.id.songtab); // Init the ListView Log.d(TAG, "Creating ListView"); mTrackList = getListView(); mTrackList.setCacheColorHint(0); mTrackList.setTextFilterEnabled(true); mBrowseListAdapter = (TrackBrowseAdapter) getLastNonConfigurationInstance(); if (mBrowseListAdapter == null) { mBrowseListAdapter = new TrackBrowseAdapter(this, R.layout.track_list_item); } setListAdapter(mBrowseListAdapter); // don't set the album art until after the view has been layed out mTrackList.post(new Runnable() { public void run() { mTrackList.setBackgroundColor(Color.WHITE); mTrackList.setCacheColorHint(0); } }); // Create media browser Log.d(TAG, "Creating MediaBrowser"); mMediaBrowser = new MediaBrowser(this, new ComponentName(this, MediaPlaybackService.class), mConnectionCallback, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivit...
[ "0.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879",...
0.0
-1
assumes node is full
public void split(Node thisNode) // split the node { int moving = (neworder / 2) - 1; DataItem itemB, itemC; Node parent, child; int itemIndex; Node newRight = new Node(); // make new node for(int i = 0; i < moving; i++) { itemC = thisNode.removeItem(); newRight.insertItem(itemC); } for(int i = 0; i <= moving; i++) { child = thisNode.disconnectChild((neworder-1)-i); newRight.connectChild(moving-i, child); } itemB = thisNode.removeItem(); // this node if(thisNode==root) // if this is the root, { root = new Node(); // make new root parent = root; // root is our parent root.connectChild(0, thisNode); // connect to parent } else // this node not the root parent = thisNode.getParent(); // get parent // deal with parent itemIndex = parent.insertItem(itemB); // item B to parent int n = parent.getNumItems(); // total items? for(int j=n-1; j>itemIndex; j--) // move parent's { // connections Node temp = parent.disconnectChild(j); // one child parent.connectChild(j+1, temp); // to the right } // connect newRight to parent parent.connectChild(itemIndex+1, newRight); // deal with newRight }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isFull() {\n\t\tif(nodeCount == this.MAX_SIZE) return true; \n\t\telse return false;\n\t}", "private int size(Node node) {\n if (node == null) return 0;\n else return node.size;\n }", "@Override\n public boolean isFull() {\n return false;\n }", "publi...
[ "0.70723885", "0.6490197", "0.63891953", "0.623055", "0.61996055", "0.61968046", "0.61742854", "0.61414963", "0.6123844", "0.6107496", "0.6082286", "0.6067285", "0.6019729", "0.6014874", "0.6005006", "0.59629536", "0.59354824", "0.59192836", "0.5918045", "0.5914214", "0.59055...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { view = inflater.inflate(R.layout.fragment_news, container, false); init(); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "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
Set User attributes before test case start executing
@Before public void setUp() { questionDetail.setClosingReason("none"); questionDetail.setStatus("open"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setupUser() {\n }", "@BeforeEach\n\t public void setUser() {\n\t\tpasswordEncoder=new BCryptPasswordEncoder();\n\t\tuser=new AuthUser();\n\t\tuser.setId(1L);\n\t\tuser.setFirstName(\"Mohammad\");\n\t\tuser.setLastName(\"Faizan\");\n\t\tuser.setEmail(\"faizan@gmail.com\");\n\t\tuser.setPassword(pa...
[ "0.7615263", "0.74385816", "0.7315453", "0.7196731", "0.692136", "0.69133013", "0.69030267", "0.6851184", "0.6778803", "0.67591965", "0.67445844", "0.66783565", "0.66747624", "0.66435456", "0.66315186", "0.660014", "0.6575282", "0.65661687", "0.65052533", "0.64411515", "0.643...
0.0
-1
Base callback to process API responses
public interface APIRequestCallback { /** * Success callback. Request is considered as successful when response code is between 200 and 299 * * @param responseCode Response code, from 200 to 299 * @param response Serialized response of type or null in case when response could not be serialized into json element */ void onSuccess(int responseCode, int requestCode, Response<JsonElement> response); /** * General failure callback * * @param errorDetails {@link GoSellError} representing a failure reason */ void onFailure(int requestCode, GoSellError errorDetails); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Response callback() throws Exception;", "@Override\n public void onResponse(JSONObject response) {\n processResponse(response);\n }", "@Override\n\tpublic void processResponse(Response response)\...
[ "0.71514535", "0.71312445", "0.6941562", "0.687923", "0.6733523", "0.6723265", "0.66890097", "0.6655398", "0.66525304", "0.66401106", "0.66377914", "0.66284513", "0.66202635", "0.65815", "0.65656716", "0.6552827", "0.6551204", "0.65375715", "0.6531045", "0.6520689", "0.652068...
0.64657974
21
Success callback. Request is considered as successful when response code is between 200 and 299
void onSuccess(int responseCode, int requestCode, Response<JsonElement> response);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSuccessful() {\n return code >= 200 && code < 300;\n }", "public boolean isSuccessful() {\n return responseCode >= 200 && responseCode < 300;\n }", "@Override\n public void onSuccess(int statusCode , Header[] headers , JSONObject response)\n {\n }", "@Override\n ...
[ "0.724153", "0.71272206", "0.6829606", "0.67826575", "0.6753042", "0.6752802", "0.66150045", "0.6600206", "0.6554003", "0.6511548", "0.6465724", "0.64618313", "0.64618313", "0.64475965", "0.6446425", "0.64143825", "0.64091295", "0.63993835", "0.63993835", "0.63993835", "0.639...
0.67746156
4
Creating Save file if doesnt exist.
public ArrayList load() { File savefile = new File("bookings.txt"); try { if (savefile.createNewFile()) { System.out.println("Save file doesnt exist, creating..."); try { FileWriter writer = new FileWriter(savefile); for (int x = 0; x <= 89; x = x + 1) { String stringbuild = (x + ",false,none"); writer.write(stringbuild + "\n"); } writer.flush(); writer.close(); } catch (IOException ex) { Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex); } } else { System.out.println("Save file exists. Will load..."); } } catch (IOException ex) { Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex); } System.out.println("Loading Started..."); ArrayList Seats = new ArrayList(); ArrayList Seats_Bronze = new ArrayList(); ArrayList Seats_Silver = new ArrayList(); ArrayList Seats_Gold = new ArrayList(); try { File file = new File("bookings.txt"); FileReader filereader = new FileReader(file); BufferedReader bufferedreader = new BufferedReader(filereader); String buffer; while ((buffer = bufferedreader.readLine()) != null) { String[] buffersplit = buffer.split(",", -1); int index = Integer.parseInt(buffersplit[0]); if (index < 30) { //System.out.println("Bronze @ "+index); Seat_Bronze bseat_ = new Seat_Bronze(); bseat_.setID(index); bseat_.setBooked(Boolean.parseBoolean(buffersplit[1]), buffersplit[2]); Seats_Bronze.add(bseat_); } else if (59 >= index && index > 29) { //System.out.println("Silver @ "+index); Seat_Silver sseat_ = new Seat_Silver(); sseat_.setID(index); sseat_.setBooked(Boolean.parseBoolean(buffersplit[1]), buffersplit[2]); Seats_Silver.add(sseat_); } else { //System.out.println("Gold @"+index); Seat_Gold gseat_ = new Seat_Gold(); gseat_.setID(index); gseat_.setBooked(Boolean.parseBoolean(buffersplit[1]), buffersplit[2]); Seats_Gold.add(gseat_); } } Seats.add(Seats_Bronze); Seats.add(Seats_Silver); Seats.add(Seats_Gold); System.out.println("Loading Complete."); System.out.println("Loaded B/S/G: " + Seats_Bronze.size() + "/" + Seats_Silver.size() + "/" + Seats_Gold.size()); return Seats; } catch (FileNotFoundException ex) { Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex); } catch (IOException ex) { Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void createSaveDirIfNotExisting() {\n\t\tFile dir = new File(\"save\");\n\t\tif (!dir.exists()) {\n\t\t\t// directory does not exist => create!\n\t\t\tdir.mkdir();\n\t\t}\n\t}", "public static void createSaveFile( )\n {\n try\n {\n new File( \"data\" ).mkdirs( );\n ...
[ "0.7797733", "0.69774806", "0.6873903", "0.67964876", "0.6543093", "0.6514757", "0.6435335", "0.64108884", "0.641021", "0.6408699", "0.63584405", "0.632789", "0.62612593", "0.62364465", "0.6159476", "0.61257064", "0.61081153", "0.60910314", "0.6084307", "0.6071396", "0.606910...
0.0
-1
TODO Autogenerated method stub
@Override @Transactional public void delete(TopicContent entity) { topicContentDao.delete(entity); }
{ "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 void deleteAll() { topicContentDao.deleteAll(); }
{ "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 public List<TopicContent> findAll() { return topicContentDao.findAll(); }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1