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
Der Test soll ueberpruefen, ob die Methode containsSubject(), ob ein Subject Objekt in dem Set enthalten ist.
@Test public void testContainsSubject() { assertTrue(teachu1.containsSubject(sub1)); assertFalse(teachu1.containsSubject(sub2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testGetSubjects() {\r\n\t\tassertTrue(teachu1.getSubjects().contains(sub1));\r\n\t\tassertFalse(teachu1.getSubjects().contains(sub2));\r\n\t}", "@Test\r\n\tpublic void testSetSubjects() {\r\n\t\tteachu1.setSubjects(newSubjects);\r\n\r\n\t\tassertTrue(teachu1.getSubjects().contains(sub2));\...
[ "0.7864306", "0.77377284", "0.75855774", "0.7432765", "0.6795146", "0.6766592", "0.6527588", "0.641111", "0.6404243", "0.6394561", "0.6387878", "0.6376053", "0.6357919", "0.63174295", "0.63174295", "0.6294235", "0.62789786", "0.62709165", "0.62481976", "0.6246965", "0.6244417...
0.8158654
0
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View mView = inflater.inflate(R.layout.fragment_empty, container, false); listView = mView.findViewById(R.id.tomb_list); block_spinner = mView.findViewB...
{ "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.6740675", "0.6725193", "0.67224836", "0.6699259", "0.6691596", "0.668896", "0.6687658", "0.66861755", "0.667755", "0.66756433", "0.6667425", "0.66667783", "0.6665166", "0.66614723", "0.66549766", "0.665031", "0.6643759", "0.6639389", "0.66378653", "0.66345453", "0.6626348"...
0.0
-1
Creates new form VSales
public VAdmin() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SalesView() {\n initComponents();\n salesDetailTable.setAutoCreateColumnsFromModel(false);\n jdcTransaksi.setDate(new Date());\n enableForm(false);\n buttonConfig();\n salesDetailTable.getTableHeader().setFont(new Font(\"Segoe UI\", 0, 18)); \n }", "public S...
[ "0.5930976", "0.5841161", "0.57656187", "0.5715994", "0.56769323", "0.567002", "0.56671876", "0.5662007", "0.56539935", "0.56225675", "0.5588811", "0.5545181", "0.543233", "0.5402855", "0.5399894", "0.5391293", "0.5373824", "0.53605056", "0.535733", "0.534379", "0.5323543", ...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jButton1 = new javax.swing.JButton(); jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel2 = new javax.swing.JPanel(); jPanel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7321342", "0.7292121", "0.7292121", "0.7292121", "0.72863305", "0.7249828", "0.7213628", "0.7209084", "0.7197292", "0.71912086", "0.7185135", "0.7159969", "0.7148876", "0.70944786", "0.70817256", "0.7057678", "0.69884527", "0.69786763", "0.69555986", "0.69548863", "0.69453...
0.0
-1
End of variables declaration//GENEND:variables
public JButton getjButton1() { return jButton1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "private void assignment() {\n\n\t\t\t}", "public void gored() {\n\t\t\n\t}", "public void mo217...
[ "0.6360145", "0.6282893", "0.6186978", "0.6094459", "0.60944235", "0.60737914", "0.60544986", "0.60539776", "0.6004647", "0.5989471", "0.59729135", "0.5970356", "0.5968699", "0.5967672", "0.5963926", "0.5943424", "0.59112847", "0.5898038", "0.5893516", "0.588492", "0.5881512"...
0.0
-1
End of added block of code for assessment 2 / // CONSTRUCTORS Modified block of code for assessment 2 Construct a AIBoat object at point (x,y) with default size and a custom texture.
public AIBoat(int x, int y, String texture_path) { super(x, y, texture_path); initialise(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AIBoat(int x, int y) {\n super(x, y);\n\n initialise();\n }", "public Bout()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n CreaBoutique();\n\n }", "AREA createAREA();", "public Hero(int x, int y) ...
[ "0.6231413", "0.59839606", "0.5860701", "0.58597493", "0.5782398", "0.56838816", "0.56544685", "0.5620635", "0.5618302", "0.56175494", "0.5591217", "0.5588645", "0.558772", "0.55831265", "0.5573876", "0.5562705", "0.5516441", "0.5513396", "0.55104643", "0.5501327", "0.5480439...
0.7175734
0
Construct a AIBoat object at point (x,y) with default size and default texture.
public AIBoat(int x, int y) { super(x, y); initialise(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AIBoat(int x, int y, String texture_path) {\n super(x, y, texture_path);\n\n initialise();\n }", "public Bout()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n CreaBoutique();\n\n }", "public Asteroid...
[ "0.75313604", "0.5964946", "0.58722997", "0.58580905", "0.5848522", "0.5809989", "0.5754429", "0.5740117", "0.5735165", "0.5712868", "0.5638827", "0.55977005", "0.5587751", "0.5550365", "0.55253726", "0.5517721", "0.5497709", "0.5477412", "0.54716605", "0.5451162", "0.5447489...
0.6889614
1
End of modified block of code for assessment 2 Shared initialisation functionality among all constructors. Initialises the ray properties. Rays are used to help the AI control the boat based on visual feedback of its environment i.e. obstacles such as movable obstacles and static lane wall obstacles.
public void initialise() { number_of_rays = 4; // how many rays are fired from the boat ray_angle_range = 145; // the range of the angles that the boat will fire rays out at ray_range = 30; // the range of each ray ray_step_size = (float) 10; regen = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializeObliqueLaunch(){\r\n world = new Environment();\r\n cannon = new Thrower();\r\n ball = new Projectile();\r\n this.setInitialValues();\r\n }", "private void initialize() {\n //Asteroid Shape (8 sided)\n polygon = new Vector2f[]{new Vector2f(400, -800), n...
[ "0.6743172", "0.65814054", "0.6556125", "0.6251762", "0.6195978", "0.61829996", "0.61789453", "0.61680996", "0.6164158", "0.6154767", "0.61324596", "0.61124814", "0.61050916", "0.61035466", "0.6082269", "0.6063526", "0.6060195", "0.60492927", "0.6043729", "0.60360837", "0.602...
0.81406695
0
Modified block of code for assessment 2 Updates position of objects AIBoat based on acceleration and stamina. Checks if AIBoat can turn and updates position accordingly based on any collision objects that may overlap.
public void updatePosition(List<CollisionObject> collidables) { double start = 0; // If the boat does not need to regenerate stamina, then they accelerate if (!regen) { this.accelerate(); // When stamina gets low, regen is set to true, meaning the boat will regenerate sta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateIntention() {\n\n // First, rotate the front line\n double distanceToGoal = MathUtils.quickRoot1((float)((anchorX - goalX) * (anchorX - goalX) + (anchorY - goalY) * (anchorY - goalY)));\n double moveAngle, moveSpeed;\n double moveSpeedX, moveSpeedY;\n double spe...
[ "0.63351977", "0.6273479", "0.61771256", "0.6041843", "0.5994541", "0.5952944", "0.59324914", "0.5916731", "0.58697003", "0.58617103", "0.5849799", "0.58009523", "0.5780735", "0.57674575", "0.5762622", "0.5749406", "0.56624705", "0.56527454", "0.5639201", "0.56320745", "0.562...
0.6619611
0
End of modified block of code for assessment 2 Returns true if AIBoat should exist on the screen.
@Override public boolean isShown() { return super.isShown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isItaDraw(){\n\t\tboolean flag=false;\n\t\tfor(int row=0;row<9;row++){\n\t\t\tfor(int column=0;column<25;column++){\n\t\t\t\tif(Board[row][column] == 'O'){\n\t\t\t\t\tflag=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tflag=true;\n\t\t\t}\n\t\t\tif(flag==false)\n\t\t\t\tbreak;\n\t\t}\n...
[ "0.66617066", "0.6283781", "0.6215886", "0.6049373", "0.60243773", "0.5912871", "0.58820534", "0.5829571", "0.5788723", "0.57506967", "0.5734053", "0.5726287", "0.56343305", "0.5594256", "0.55855626", "0.557572", "0.5543502", "0.55205953", "0.55113816", "0.5480503", "0.547672...
0.0
-1
Return centre coordinates of point where ray is fired.
protected Vector2 get_ray_fire_point() { Vector2 p = new Vector2( sprite.getX() + (sprite.getWidth() / 2), sprite.getY() + (sprite.getHeight())); Vector2 p1 = p.rotateAround(new Vector2( sprite.getX() + (sprite.getWidth() / 2), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Point getCenter();", "Point getCenter();", "public FPointType calculateCenter() {\n fRectBound = getBounds2D();\n FPointType fptCenter = new FPointType();\n fptCenter.x = fRectBound.x + fRectBound.width / 2.0f;\n fptCenter.y = fRectBound.y + fRectBound.height / 2.0f;\n calcul...
[ "0.70196474", "0.70196474", "0.69864595", "0.6931454", "0.69183767", "0.6904742", "0.6845452", "0.6829825", "0.6806345", "0.6757297", "0.6748849", "0.67174536", "0.6692997", "0.6691679", "0.6687606", "0.66856205", "0.664878", "0.664204", "0.66170555", "0.6614918", "0.6604253"...
0.0
-1
Fire a number of rays with limited distance out the front of the boat, select a ray that isn't obstructed by an object, preference the middle (maybe put a preference to side as well) if every ray is obstructed either (keep turning [left or right] on the spot until one is, or choose the one that is obstructed furthest a...
protected void check_turn(List<CollisionObject> collidables) { //Firing rays //select an area of 180 degrees (pi radians) boolean turn = true; Vector2 start_point = get_ray_fire_point(); for (int ray = 0; ray <= number_of_rays; ray++) { if (turn) { r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void frighten(ArrayList<Wall> listOfWalls, ArrayList<Point> intersections) {\n Random r = new Random();\r\n int targetX = 25;\r\n int targetY = 25;\r\n double minDistance = 5000000000.0; //no distance is greater than this 4head\r\n double upDistance = 500000000.0;\r\n ...
[ "0.5774905", "0.57693714", "0.574738", "0.55758905", "0.55690217", "0.550281", "0.54577994", "0.5432201", "0.54316735", "0.53845215", "0.5360398", "0.5356502", "0.5306001", "0.52698463", "0.52459145", "0.52346146", "0.5232867", "0.52230406", "0.5219159", "0.52159286", "0.5200...
0.5858326
0
a StanzaRelay receiving stanzas which are targeted to serverlocal JIDs
public void setInternalRelay(StanzaRelay internalRelay) { this.internalRelay = internalRelay; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ChatWithServer.Relay getChatWithServerRelay();", "public void setStunServer(String server);", "public static void serverBroadcast(JSONObject obj,Socket source,boolean f){\n\t\t\n\t\tfor(Connection con:Control.getInstance().getConnections()){\n\t\t\tString conAddr = con.getSocket().getRemoteSocketAddress().toSt...
[ "0.5277132", "0.5237409", "0.50047624", "0.5003333", "0.49945447", "0.49735516", "0.49572733", "0.49305794", "0.49021775", "0.4814952", "0.48103452", "0.47946343", "0.47825676", "0.4780619", "0.47641528", "0.4763219", "0.47600695", "0.4754315", "0.4728996", "0.4726136", "0.46...
0.0
-1
a StanzaRelay receiving stanzas which are targeted to JIDs which are external to this server
public void setExternalRelay(StanzaRelay externalRelay) { this.externalRelay = externalRelay; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ChatWithServer.Relay getChatWithServerRelay();", "public interface Transport {\n\n /**\n * This method returns id of the current transport\n * @return\n */\n String id();\n\n /**\n * This methos returns Id of the upstream node\n * @return\n */\n String getUpstreamId();\n\n ...
[ "0.5141665", "0.48070526", "0.48064318", "0.47575364", "0.4749584", "0.47257897", "0.46943042", "0.46938136", "0.46353483", "0.4619045", "0.45454237", "0.45370644", "0.45307937", "0.45272648", "0.45239565", "0.45021805", "0.44995937", "0.44693726", "0.44628432", "0.44548684", ...
0.508619
1
writes statistics about internal and external relays to the given writer, if the relays implement ManagedThreadPool (which is the common case).
public void dumpRelayStatistics(Writer writer) throws IOException { if (internalRelay != null && internalRelay instanceof ManagedThreadPool) { final ManagedThreadPool relay = (ManagedThreadPool)internalRelay; relay.dumpThreadPoolInfo(writer); } if (externalRelay != null &...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeTo(final PrintWriter writer) {\n boolean first = true;\n final Set<String> names = new TreeSet<String>(myServerMetrics.keySet());\n for (final String name : names) {\n final BasicServerMetrics serverMetrics = myServerMetrics.get(name);\n if (first) {\n ...
[ "0.57780814", "0.5511949", "0.5371515", "0.52945036", "0.52481633", "0.5212476", "0.50770134", "0.5041523", "0.4888247", "0.48737228", "0.48688927", "0.48291168", "0.4814706", "0.48077524", "0.47924668", "0.4788732", "0.47458655", "0.47232583", "0.47076824", "0.47025818", "0....
0.79104304
0
Print table using IO2GEachRowListener
public void printTable() { if (table.size() == 0) Logger.error("Table " + table.getType() + " is empty!"); else { table.forEachRow(new EachRowListenerPrint()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void print() {\r\n this.table.printTable();\r\n }", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\r\n\t\t\t\t\ttable.print();\r\n\t\t\t\t} catch (java.awt.print.PrinterException e) {\r\n\t\t\t\t\tSystem.err.format(\"No printer found\", e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}",...
[ "0.703143", "0.657346", "0.6522322", "0.6519159", "0.651481", "0.65085566", "0.64636785", "0.638202", "0.6366767", "0.62380016", "0.6228372", "0.6208748", "0.61281127", "0.606741", "0.60629874", "0.6028754", "0.5980946", "0.5970645", "0.5933932", "0.59313697", "0.590781", "...
0.7329758
0
System.out.println("\nPrinting a row from the " + rowData.getTableType() + " table.\n");
@Override public void onEachRow(String rowID, O2GRow rowData) { O2GTableColumnCollection collection = rowData.getColumns(); for (int i = 0; i < collection.size(); i++) { O2GTableColumn column = collection.get(i); System.out.println(column.getId() + "=" + rowData.getCel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printTable(String _tName) throws SQLException {\n //System.out.println(\"Executing SELECT * FROM \" + tName);\n\n ResultSet rs = statement.executeQuery(\"SELECT * FROM \" + _tName);\n ResultSetMetaData rsmd = this.getMetaData(rs);\n\n System.out.println(\"Table Name: \" + _t...
[ "0.6905923", "0.682036", "0.6811779", "0.673605", "0.67342865", "0.6647083", "0.6620283", "0.6582496", "0.6566782", "0.65567285", "0.6545272", "0.65410244", "0.65345013", "0.6511028", "0.64966226", "0.6464505", "0.6457732", "0.6438808", "0.6427908", "0.635878", "0.63462305", ...
0.60651773
37
Will call the VSAC API and make a local reference of the ValueSets
public void createCYP1A1Cache() throws IOException { String response = vsacService.callVSAC(cyp1A2Config.getVsacTizanidine()); vsacService.buildCodeList(response, tizanidineCodes); response = vsacService.callVSAC(cyp1A2Config.getVsacCYP1A2()); vsacService.buildCodeList(response, cyp1a2C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValueSet(List<String> valueSet){\n mValueSet = valueSet;\n }", "Map<String, OperationalSets> getSets();", "@Test\n public void testGetSets() {\n ref.setKey(\"test23\");\n assertEquals(\"test23\", ref.getKey());\n ref.setAuthor(\"test23\");\n assertEquals(...
[ "0.5367648", "0.5354203", "0.53217524", "0.5195479", "0.5189436", "0.5157393", "0.51488715", "0.5148846", "0.5137408", "0.5121712", "0.50832874", "0.5057882", "0.5039405", "0.5024944", "0.5008803", "0.4989971", "0.49884006", "0.49882835", "0.49836254", "0.49619254", "0.493091...
0.0
-1
handles rename of refs
@Nullable protected PsiElement processRef(PsiReference ref, String newName) { return ref.handleElementRename(newName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void objectRenamed(NamingEvent evt) throws RemoteException;", "void setRef(java.lang.String ref);", "public abstract void rename(String newName);", "public void rename(String n){\n name = n;\r\n }", "protected void renameAliasReference(String from, String to)\n {\n if(castor.getCastorRelatio...
[ "0.63674927", "0.61798555", "0.6177686", "0.6148375", "0.61216694", "0.6104507", "0.6101621", "0.6086666", "0.60538054", "0.6016408", "0.5990092", "0.5956701", "0.59539545", "0.5832281", "0.5803434", "0.5764093", "0.5734359", "0.5705184", "0.56750846", "0.5668941", "0.5658048...
0.7029953
0
Construct with diameter and growth increment, in micrometers.
public Cell(int diameterInMicrometers, int growthIncrementInMicrometers) { if (diameterInMicrometers < 1 || diameterInMicrometers > 41 || growthIncrementInMicrometers < 1 || growthIncrementInMicrometers > 6 ) { throw new IllegalArgumentException("Bacterium...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "LengthUnit(double metres) {\n/* 24 */ this.metres = metres;\n/* 25 */ this.dx = new Dx(1.0D, this);\n/* */ }", "Meter createMeter();", "public void grow() {\n this.diameterInMicrometers += growthIncrementInMicrometers;\n if (this.diameterInMicrometers > 1000) throw new Error(\"TestTu...
[ "0.6431484", "0.58967364", "0.5655847", "0.55966884", "0.55887073", "0.5575077", "0.5571534", "0.548963", "0.53951836", "0.53913003", "0.53639823", "0.5347169", "0.5341215", "0.5337148", "0.5294734", "0.5293813", "0.529037", "0.52317613", "0.52205926", "0.52159756", "0.519816...
0.62220633
1
Serves the readonly property diameter.
public int getDiameterInMicrometers() { return diameterInMicrometers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getDiameter() {\n return diameter;\n }", "public int getDiameter() {\n\t\treturn diameter;\n\t}", "public void setDiameter(int diameter){\n\t\tthis.diameter = diameter;\n\t}", "public int getDiameter()\n {\n return diameter;\n }", "public void setDiameter(int diameter) ...
[ "0.72519815", "0.7205918", "0.7184883", "0.71506494", "0.6886772", "0.6489306", "0.6335048", "0.62936825", "0.6266425", "0.61846185", "0.597866", "0.5975849", "0.5940297", "0.57382023", "0.5734159", "0.5732599", "0.56109875", "0.55983365", "0.5575796", "0.5541162", "0.5523712...
0.6113742
10
Grows this cell in a single increment, increasing its size with one time the growth increment.
public void grow() { this.diameterInMicrometers += growthIncrementInMicrometers; if (this.diameterInMicrometers > 1000) throw new Error("TestTube will explode in 5 seconds"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setGrowIncrement(int inc) { growInc = inc; }", "void growCells() {\n for (Cell cell : cells) {\n cell.grow();\n }\n }", "private void grow() {\n\t\tif (_growthRatio > 1 && (_age & 0x07) == 0x07 && alive && _energy >= _mass/10) {\n\t\t\t_growthRatio--;\n\t\t\tdouble m = _...
[ "0.7274344", "0.67027885", "0.6645086", "0.6482846", "0.6292401", "0.62408674", "0.6188617", "0.6162249", "0.61550486", "0.61300033", "0.60687995", "0.6059943", "0.60367143", "0.59309524", "0.5828475", "0.5744336", "0.5740117", "0.5728321", "0.56928575", "0.565936", "0.562378...
0.63542575
4
creates a new jpg picture base in the bytes pass
private boolean createNewTest() { FileOutputStream fout; try { fout = new FileOutputStream(this.sampleName); for (int k = 0; k < this.sizeOfFile; k++) { fout.write(this.testBytes[k]); } fout.close(); } // Catches any error conditions catch (IOException e) { System.err.println("Unable to w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createTestImage()\n {\n initialImage = new byte[3 * size / 2];\n for (int i = 0; i < size; i++)\n {\n initialImage[i] = (byte) (40 + i % 199);\n }\n\n for (int i = size; i < 3 * size / 2; i += 2)\n {\n initialImage[i] = (byte) (40 + i ...
[ "0.6211517", "0.6100619", "0.603991", "0.5932138", "0.5872687", "0.57740194", "0.5770877", "0.5701959", "0.56324387", "0.56017375", "0.55631274", "0.5497082", "0.5485659", "0.54466414", "0.5429241", "0.53984463", "0.53928065", "0.5361855", "0.5289947", "0.5262606", "0.5251711...
0.0
-1
Executed jpegconv and return the bug number triggered if any
private int executeProgram() { int bugNumber = 0; // running a command in java String command = "./jpegconv -ppm -outfile " + this.ppmName + " " + this.sampleName; Process child = null; try { child = Runtime.getRuntime().exec(command); child.waitFor(); } catch (IOException e) { System.err.pri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int wkhtmltoimage_http_error_code(PointerByReference converter);", "private byte[] JPEGFile(Map<Integer, Integer> freqY, Map<Integer, Integer> freqCb, Map<Integer, Integer> freqCr, String Yen, String Cben, String Cren) {\n String sizeY = Integer.toBinaryString(freqY.size());\n String sizeCB = Integ...
[ "0.57862395", "0.5677872", "0.56738967", "0.56112176", "0.544939", "0.54296577", "0.5397633", "0.530121", "0.52911055", "0.5288341", "0.5260878", "0.52348214", "0.5226331", "0.51838833", "0.5144371", "0.5138296", "0.5138067", "0.5131847", "0.5129496", "0.5115165", "0.50662655...
0.67932445
0
Copy an array to another array
private void copyArray(int[] src, int[] tar) { for (int i = 0; i < src.length; i++) tar[i] = src[i]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void copyArray(Object [] targetArray, Object [] sourceArray) {\n if (targetArray.length < sourceArray.length) {\n for (int i = 0; i < targetArray.length; i++) {\n targetArray[i] = sourceArray[i];\n }\n }\n else {\n for (int i = 0; i < sou...
[ "0.7796641", "0.76610696", "0.737448", "0.7354723", "0.7103274", "0.6821259", "0.6785505", "0.67646766", "0.67488223", "0.6697095", "0.66032475", "0.65688604", "0.6474329", "0.6473492", "0.6434462", "0.6426884", "0.641912", "0.63994503", "0.6391904", "0.63449264", "0.6310996"...
0.7351585
4
TODO: premysliet kam premiestnit mapovanie entit do view
public PersonView(InMemoryCollections collections, Person person) { this.id = person.getId(); this.councilId = person.getCouncilId(); this.name = person.getName(); this.firstname = person.getFirstname(); this.surname = person.getSurname(); this.prefix = person.getPrefix(); this.elections = p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setupRender() {\n List<Predmet> predmets = adminService.findAllPredmetsForPredavac(predavac);\n // create a SelectModel from my izlistaj of colors\n predmetSelectModel = selectModelFactory.create(predmets, \"name\");\n years = adminService.getYears();\n// List<Aktivnost> act...
[ "0.59496665", "0.5791344", "0.5766767", "0.56925464", "0.56383693", "0.56289166", "0.55963516", "0.5571929", "0.5555738", "0.55506074", "0.5527314", "0.55229133", "0.55195177", "0.5507901", "0.55025333", "0.54973006", "0.549321", "0.548768", "0.5482835", "0.5482538", "0.54753...
0.0
-1
Static function creating actor
public static Props createActor(ActorRef b, ActorRef actorRef) { return Props.create(FirstActor.class, () -> { return new FirstActor(b, actorRef); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Actor createActor();", "ActorType createActorType();", "public interface ActorFactory {\n\n public static final String REF_SUFFIX = \"Ref\";\n\n /**\n * Creates an ActorRef bean from {@link ImportActor} and sets {@link Service} as the business logic class.\n * ActorRef bean name is created by app...
[ "0.87654483", "0.72913235", "0.65584165", "0.6538842", "0.65097547", "0.64906067", "0.6459368", "0.64394045", "0.63701206", "0.63582385", "0.6346181", "0.6323992", "0.62490124", "0.62403226", "0.62251055", "0.62142223", "0.6171243", "0.6159297", "0.60862863", "0.606949", "0.6...
0.6710427
2
1. Make a variable to hold the score
public static void main(String[] args) { int b = 1; // 3. Ask the user a riddle. Here are some ideas: bit.ly/some-riddles String a = JOptionPane.showInputDialog("Name three keys that don't unlock a door?"); // 4. If they got the answer right, pop up "correct!" and increase the score by one if (a.equalsIgnoreCase("...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int score();", "int score();", "float getScore();", "float getScore();", "public int getScore() { return score; }", "public int getScore() {return score;}", "int getScore();", "public static int getScore(){\n return score;\n }", "long getScore();", "long getScore();", "long getScore()...
[ "0.7897628", "0.7897628", "0.7871008", "0.7871008", "0.7845415", "0.7825097", "0.7810532", "0.77783424", "0.7751969", "0.7751969", "0.7751969", "0.7751969", "0.7741067", "0.7665048", "0.7651517", "0.76358247", "0.76272416", "0.7601615", "0.7601615", "0.7598628", "0.75910145",...
0.0
-1
Main menu item clicked
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case MENU_ID_DELETE_REPORT: runDeleteReport(); return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void menuClicked(MenuItem menuItemSelected);", "void onMenuItemClicked();", "void clickAmFromMenu();", "public void menuItemClicked( Menu2DEvent e );", "void clickFmFromMenu();", "public void pressMainMenu() {\n }", "@FXML protected void MainMenuButtonClicked(ActionEvent event) {\n this....
[ "0.8007629", "0.7905741", "0.7901007", "0.77183115", "0.7563516", "0.73591375", "0.7223294", "0.7125908", "0.709943", "0.7026945", "0.7025828", "0.70068663", "0.70068663", "0.69256186", "0.6909825", "0.6896212", "0.6873794", "0.68727213", "0.68041337", "0.67769766", "0.675421...
0.0
-1
Called when activity state should be temporarily saved, for example when activity is about to be killed in order to retrieve system resources
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putSerializable(ReportPeer.KEY_ID, mRowId); outState.putSerializable(ReportPeer.KEY_TASK_ID, mTaskId); outState.putSerializable(ReportPeer.KEY_DATE, mCalendar); // We...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveAppState(Context context) {\n LogHelper.v(LOG_TAG, \"Saving state.\");\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n Bundle saveState = createSaveState();\n\n onSaveControllerState(saveState);\n\n // crash recovery manages all save & re...
[ "0.67530406", "0.6662421", "0.66080254", "0.6584345", "0.6580997", "0.65352005", "0.6497613", "0.6487939", "0.64595", "0.64595", "0.6410036", "0.6409229", "0.6394346", "0.6386798", "0.63754565", "0.6375364", "0.63706225", "0.6354891", "0.6351062", "0.634991", "0.6323928", "...
0.0
-1
Fill form with data from the database
private void populateFields() { if (mReportCursor == null) { return; } Cursor c = mReportCursor; mValueText.setText(c.getString(c.getColumnIndexOrThrow(ReportPeer.KEY_VALUE))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateForm() {\n Part selectedPart = (Part) PassableData.getPartData();\n partPrice.setText(String.valueOf(selectedPart.getPrice()));\n partName.setText(selectedPart.getName());\n inventoryCount.setText(String.valueOf(selectedPart.getStock()));\n partId.setText(Str...
[ "0.70269626", "0.6653479", "0.6465836", "0.64348054", "0.63867426", "0.63178134", "0.62713283", "0.62392175", "0.61903316", "0.6186541", "0.6182731", "0.6182495", "0.61803347", "0.612567", "0.6119562", "0.608461", "0.608185", "0.6056897", "0.60384905", "0.6033561", "0.6030019...
0.0
-1
Set up listeners for form buttons
private void setupListeners() { // "Save" button Button confirmButton = (Button) findViewById(R.id.button_save_report); confirmButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { setResult(RESULT_OK); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void configureButtonListener();", "private void listenersInitiation() {\n ActionSelectors listener = new ActionSelectors();\n submit.addActionListener(listener);\n goBack.addActionListener(listener);\n }", "public void eventos() {\n btnAbrir.addActionListener(new ActionListener()...
[ "0.7359973", "0.7247385", "0.7199521", "0.71204484", "0.7082931", "0.7038929", "0.70049006", "0.69988877", "0.69748646", "0.69063425", "0.69011927", "0.6898217", "0.68514353", "0.6813738", "0.6783595", "0.6779376", "0.67641884", "0.67526263", "0.6749014", "0.6711112", "0.6653...
0.7240812
2
Check whether a report with the current date already exists
private boolean reportWithCurrentDateExists() { boolean exists = false; String sqlDateString = android.text.format.DateFormat.format("yyyy-MM-dd", mCalendar).toString(); Cursor reportCursor = mDbHelper.getReportPeer().fetchReportByTaskIdAndDate(mTaskId, sqlDateString); startManagingCurso...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic boolean checkReportIfExist(ArrayList<Object> msg) {\n\t\t\tString parkName = (String) msg.get(2);\n\t\t\tint month = ((Date) msg.get(1)).getMonth() + 1;\n\t\t\tif (hashMapDB.get(parkName).get(month) == null)\n\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t}", "public boolean checkRecordExis...
[ "0.68090767", "0.68044937", "0.6432344", "0.630838", "0.6300194", "0.60715663", "0.60593235", "0.59147054", "0.59146196", "0.5880867", "0.5870716", "0.58693266", "0.5827314", "0.57775825", "0.57759964", "0.57603985", "0.5752552", "0.5742035", "0.5721049", "0.5671637", "0.5659...
0.8201045
0
Save the form when "Back" key pressed
@Override public void onBackPressed() { super.onBackPressed(); if (mFormChanged) { saveForm(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onBackPressed() {\n saveData();\n }", "@Override\n public void onBackPressed() {\n showUnsavedChangesDialog();\n }", "@Override\n public void onBackPressed() {\n if (!bookHasChanged) {\n super.onBackPressed();\n return;\n }...
[ "0.7553849", "0.7443691", "0.7354045", "0.73293406", "0.73134094", "0.7279322", "0.7229007", "0.72235113", "0.71194136", "0.71170545", "0.7055443", "0.7054858", "0.70421183", "0.7038857", "0.7028049", "0.7025198", "0.70195496", "0.7019548", "0.69807774", "0.69748354", "0.6966...
0.8644436
0
Save form data to the database
private void saveForm() { if (reportWithCurrentDateExists()) { // Can't save this case return; } boolean isNewReport = (mRowId == null); // Get field values from the form elements // Date SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveData(){\n reporter.info(\"Save edited form\");\n clickOnElement(LOCATORS.getBy(COMPONENT_NAME,\"SAVE_BUTTON\"));\n }", "private void saveData() {\n // Actualiza la información\n client.setName(nameTextField.getText());\n client.setLastName(lastNameTextField.getTex...
[ "0.70776993", "0.6981292", "0.6790259", "0.67693913", "0.6712632", "0.66797805", "0.65895474", "0.6541339", "0.65015703", "0.649762", "0.64895594", "0.6480315", "0.6480315", "0.6480315", "0.6480315", "0.647385", "0.64416546", "0.6407843", "0.64017916", "0.6313965", "0.6187207...
0.71291393
0
Launches confirmation dialog asking is user really wants to delete the report, then deletes it if user confirms
private void runDeleteReport() { showDialog(DIALOG_CONFIRM_DELETE_REPORT_ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void confirmDelete(){\n\t\tAlertDialog.Builder dialog = new AlertDialog.Builder(this);\n\t\tdialog.setIcon(R.drawable.warning);\n\t\tdialog.setTitle(\"Confirm\");\n\t\tdialog.setMessage(\"Are you sure you want to Delete Selected Bookmark(s).?\");\n\t\tdialog.setCancelable(false);\n\t\tdialog.setPositiveBut...
[ "0.72815996", "0.71644086", "0.71285194", "0.7085946", "0.7038009", "0.6941081", "0.69333774", "0.69312316", "0.6929058", "0.6925906", "0.6900476", "0.6887684", "0.68848515", "0.6860787", "0.68600065", "0.68350476", "0.6823358", "0.68054056", "0.6791677", "0.6787123", "0.6764...
0.81112534
0
/ method that assigns determines the category of the vehicle depending on its weight
private void recordWeight(double weight) { this.weight = weight; if (weight <= 3) { category = "N/A"; } else if ((weight >= 3.1) && (weight <= 4.5)) { category = "LIGHT"; } else if ((weight >= 4.51) && (weight <= 8.0)) { category = "MEDIUM"; } else if (weight > 8.0) { category = "HEAVY"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "google.maps.fleetengine.v1.Vehicle.VehicleType.Category getCategory();", "private void setWeight() {\n \tthis.trainWeight = (this.trainCars*TRAIN_WEIGHT) + (this.crew + this.numPassengers) * AVE_PASSENGER_WEIGHT;\n }", "private void setWeight(float weight){\n this.weight = weight;\n }", "Room...
[ "0.6224552", "0.6101917", "0.6038535", "0.59908026", "0.5989573", "0.59412444", "0.59240586", "0.59211713", "0.59039336", "0.58924454", "0.5891838", "0.5889766", "0.58877206", "0.5880692", "0.58806366", "0.5878886", "0.58463776", "0.5823045", "0.58222806", "0.5817711", "0.579...
0.71245724
0
/ method that calculates the totalFee for an Oversized Vehicle and throws an exception if the user enters an invalid weight
public double book(int numPassengers, DateTime date, double weight) throws VehicleException { double surcharge = 0; if ((numPassengers < 1) || (numPassengers > 6)) { throw new VehicleException("Error - Invalid Number of passengers: Must be b/w 1 and 6."); } else if (date.getFormattedDate().compareTo(Dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract double calculateFee(int aWidth);", "public double calFee() {\n return weight * FEE + GiftBox.this.price;\n }", "public abstract double totalWeight();", "public abstract double getComplianceFee();", "public abstract double getLateFee(int daysLate);", "public static double...
[ "0.64466256", "0.61729693", "0.60532176", "0.60445607", "0.5981742", "0.5967424", "0.5848334", "0.5716767", "0.5708767", "0.5708498", "0.5683535", "0.5676596", "0.56686914", "0.5665464", "0.5652628", "0.5651743", "0.5635675", "0.5613533", "0.5588288", "0.5558946", "0.5557995"...
0.69414526
0
/ method that prints out the vehicle details for an oversized vehicle
public String getVehicleDetails() throws VehicleException { if (weight == 0) { String ninthLine = String.format("%-20s %s\n", "Clearance Height: ", CLEARANCE_HEIGHT); return super.getVehicleDetails() + ninthLine; } System.out.println(); String ninthLine = String.format("%-20s %s\n", "Clearance Hei...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printVehicleDetails(Vehicle v) {\n\t\tSystem.out.println(\"Mileage: \"+v.mileage());\n\t\tSystem.out.println(\"Wheels: \"+v.wheels());\n\t}", "void vehicleDetails();", "public static void vehicleInfo() {\n\t\n\tSystem.out.println(\"numberOfVehicles: \"+numberOfVehicles);\n\tint count=getNumberOfVeh...
[ "0.75626993", "0.7062652", "0.7062194", "0.70587075", "0.69075996", "0.6886497", "0.6865782", "0.68589324", "0.66697425", "0.647194", "0.6463292", "0.643899", "0.6395755", "0.63867635", "0.6305824", "0.62881404", "0.62573767", "0.6253958", "0.62222445", "0.619747", "0.6184969...
0.7313831
1
/ another method that prints out the vehicle details for an oversized Vehicle when writing to the Vehicle.txt file
public String getDetailsForVehicle() throws VehicleException { if (weight == 0) { String thirdLine = "," + CLEARANCE_HEIGHT; return super.getDetailsForVehicle() + thirdLine; } String tenthLine = "," + CLEARANCE_HEIGHT + "," + weight + "," + "," + category; return super.getDetailsForVehicle() + tenth...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveVehicles() throws IOException {\n //Overwrite data file\n FileWriter fw = new FileWriter(new File(VE_FILE), false);\n BufferedWriter bw = new BufferedWriter(fw);\n try {\n System.out.print(\"Vehicle is saving into data file vehicles.txt...\");\n\n /...
[ "0.703169", "0.67014354", "0.6612812", "0.6300219", "0.62595534", "0.62095076", "0.6184774", "0.6174699", "0.61712563", "0.6032189", "0.59971726", "0.5995123", "0.5949046", "0.5927394", "0.58461595", "0.5837638", "0.5825525", "0.5785731", "0.57693684", "0.57484937", "0.574626...
0.6432658
3
if( seq != null ) System.err.println( "set aligned seq " + seq.getName() + " " + alseq.length() ); else System.err.println( "seq null" );
public void setAlignedSequence( Sequence alseq ) { this.alignedsequence = alseq; if(alseq.id == null) alseq.id = id; if(seq != null) alseq.name = seq.getGroup(); if(alseq.group == null) alseq.group = group; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String validateAlignment() {\n\t\treturn null;\n\t}", "public void prepareAlignment(String sq1, String sq2) {\n if(F == null) {\n this.n = sq1.length(); this.m = sq2.length();\n this.seq1 = strip(sq1); this.seq2 = strip(sq2);\n F = new float[3][n+1][m+1];\n B = ...
[ "0.64603424", "0.6180176", "0.61798114", "0.5908184", "0.58335245", "0.5701966", "0.57003474", "0.56753737", "0.56728905", "0.5668732", "0.5600769", "0.5554887", "0.5554887", "0.5554887", "0.5540892", "0.5540892", "0.5540892", "0.5514078", "0.54986346", "0.54744333", "0.54457...
0.7346962
0
if( ori == 1 ) return new Color( 1.0f, 1.0f, 1.0f ); int i = contshort.tlist.indexOf(this); if( i == 0 || i == contshort.tlist.size()1 ) return Color.blue; else if( unresolvedGap() > 0 ) return Color.red;
public Color getBackFlankingGapColor() { return backgap ? Color.red : Color.lightGray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getColor();", "public int getColor();", "public int getRenderColor(int p_149741_1_)\n {\n \n \tBlock[] coloredStones = MachineryCraft.blocks.coloredStoneSlab;\n \n \tfor(int i = 0; i<coloredStones.length; i++){\n \t\tif(this == coloredStones[i]) return this.colors[i];\n \t\t\n \t}...
[ "0.6212231", "0.6212231", "0.60384053", "0.5919615", "0.5892464", "0.58370095", "0.5831902", "0.58234894", "0.5793363", "0.57710415", "0.57375294", "0.5719992", "0.5675713", "0.565664", "0.5634139", "0.56336814", "0.5619134", "0.561635", "0.56056654", "0.56044513", "0.5601916...
0.53048575
98
if( ori == 1 ) return new Color( 1.0f, 1.0f, 1.0f ); int i = contshort.tlist.indexOf(this); if( i == 0 || i == contshort.tlist.size()1 ) return Color.blue; else if( unresolvedGap() > 0 ) return Color.red;
public Color getFrontFlankingGapColor() { return frontgap ? Color.red : Color.lightGray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getColor();", "public int getColor();", "public int getRenderColor(int p_149741_1_)\n {\n \n \tBlock[] coloredStones = MachineryCraft.blocks.coloredStoneSlab;\n \n \tfor(int i = 0; i<coloredStones.length; i++){\n \t\tif(this == coloredStones[i]) return this.colors[i];\n \t\t\n \t}...
[ "0.62130034", "0.62130034", "0.60389304", "0.5919552", "0.5893306", "0.58371836", "0.583277", "0.5823158", "0.57945734", "0.5772804", "0.57383585", "0.57206565", "0.56765234", "0.5658118", "0.5635753", "0.563491", "0.5620467", "0.5617629", "0.56057906", "0.5604929", "0.560332...
0.54501665
57
Gets the method with the given id. Return null if obsolete and filterObsolete is true.
Method getMethod(int id, boolean filterObsolete);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static RemindMethod fromId(String id) {\n if (id != null) {\n for (RemindMethod method : values()) {\n if (method.id.equals(id)) {\n return method;\n }\n }\n }\n return POPUP;\n ...
[ "0.54904014", "0.5473703", "0.5398275", "0.5344563", "0.5335167", "0.53122133", "0.5241082", "0.5222071", "0.5183282", "0.51454437", "0.51156694", "0.5087522", "0.5078955", "0.50645596", "0.5057858", "0.503261", "0.502204", "0.5008808", "0.49984396", "0.4990659", "0.49753225"...
0.739941
0
Gets the all methods from Central and Local.
List<Method> getAllMethods();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<IMethod> getMethods();", "public List<IMethod> getMethods();", "ISourceMethod[] getMethods();", "public static MethodClass getMethods (){\n\t\treturn methods;\n\t}", "public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess...
[ "0.67035663", "0.67035663", "0.6637281", "0.650306", "0.6482952", "0.63945127", "0.634939", "0.62821394", "0.61453086", "0.6123645", "0.61123174", "0.60747695", "0.6005262", "0.59738654", "0.59420174", "0.5924087", "0.5869853", "0.5837978", "0.57907885", "0.576035", "0.575815...
0.6920107
0
Adds a method. If the method is already found in the local database, it simply retrieves the record found.
void addMethod(Method method);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addMethod(String method) {\n\t\tif (!(methods.contains(method))){\n\t\t\tmethods.add(method);\t\t\t\n\t\t}\n\t}", "public void addMethod(Method methodToAdd) {\n\t\tif (!verifyExistsMethod(methodToAdd))\n\t\t\tarrayMethods.add(methodToAdd);\n\t}", "org.hl7.fhir.CodeableConcept addNewMethod();", "p...
[ "0.7007756", "0.65135163", "0.6408191", "0.6333302", "0.60597116", "0.59620535", "0.58173287", "0.5784127", "0.5782353", "0.57652223", "0.5726793", "0.5699533", "0.5686059", "0.5657185", "0.56483227", "0.5602929", "0.5584003", "0.55310214", "0.5502188", "0.54440415", "0.54249...
0.7150795
0
Updates the given method. This searches for the id. If it exists, the entry in the database is replaced with the new value.
void updateMethod(Method method);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int updateByPrimaryKey(FunctionInfo record);", "int updateByPrimaryKey(AccountPaymentMethodEntity record);", "@Override\n\tpublic String update(Integer id, Model m) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic String update(Integer id, Model m) throws Exception {\n\t\treturn null;\n\t}", ...
[ "0.58494246", "0.57861996", "0.57462573", "0.57462573", "0.5703731", "0.5660558", "0.564182", "0.56294423", "0.56160706", "0.56160706", "0.5606159", "0.5591771", "0.5563881", "0.5561071", "0.5558994", "0.55474275", "0.55389017", "0.553155", "0.55280054", "0.55169636", "0.5504...
0.6940746
0
Prevents the occasional unintentional call. I needed this.
@Override public void onReceive(Context context, Intent intent) { if (mDownloadedFileID == -1) return; Toast.makeText(getApplicationContext(), getString(R.string.atom_ui_tip_download_success), //To notify the Client that the...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public boolean isSafe() {\n return false;\r\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void doTheFaultyThing();", "protected abstract void beforeCall();", "public void trySafeMethod(){\n safeMethod();\n }", "static void ignore() {\n...
[ "0.6557121", "0.6444977", "0.6191014", "0.61556965", "0.608798", "0.60020566", "0.59867567", "0.59741116", "0.59685475", "0.5934289", "0.592331", "0.59211594", "0.5907866", "0.5907866", "0.59023887", "0.5902047", "0.58981425", "0.5893067", "0.58918196", "0.58803326", "0.58774...
0.0
-1
Resets the array to its original configuration and return it.
public int[] reset() { return nums; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] reset() {\n\t\t\treturn originalArr;\n\t\t}", "public int[] reset() {\n return Arrays.copyOf(origin, origin.length);\n }", "public int[] reset() {\r\n return reset;\r\n }", "public int[] reset() \n {\n return reset;\n }", "public int[] reset() {\n re...
[ "0.76831263", "0.6969837", "0.6902472", "0.68346685", "0.6712453", "0.6639414", "0.6442922", "0.6318073", "0.628754", "0.6259741", "0.62571716", "0.61955863", "0.6182389", "0.6126946", "0.60903704", "0.601111", "0.60027075", "0.5967417", "0.5868995", "0.5866338", "0.5781086",...
0.5941242
23
Returns a random shuffling of the array.
public int[] shuffle() { int[] shuffle = new int[nums.length]; int[] clone = nums.clone(); int last = clone.length - 1; for(int i = 0; i < clone.length; i++){ int index = random.nextInt(last + 1); shuffle[i] = clone[index]; clone[index] = clone[last--]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int[] shuffle() {\n int len = data_random.length;\n Random rand = new Random();\n for (int i = 0; i < len; i++) {\n int r = rand.nextInt(len);\n int temp = data_random[i];\n data_random[i] = data_random[r];\n data_random[r]=temp;\n }\n...
[ "0.7936801", "0.77815646", "0.7755353", "0.77481586", "0.76945996", "0.7655841", "0.7655841", "0.7645461", "0.7631857", "0.7544279", "0.74736184", "0.74547815", "0.7453523", "0.7453179", "0.742156", "0.74097514", "0.74097514", "0.7386949", "0.7363305", "0.73603714", "0.735562...
0.7268953
26
Resets the array to its original configuration and return it.
public int[] reset() { return nums; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] reset() {\n\t\t\treturn originalArr;\n\t\t}", "public int[] reset() {\n return Arrays.copyOf(origin, origin.length);\n }", "public int[] reset() {\r\n return reset;\r\n }", "public int[] reset() \n {\n return reset;\n }", "public int[] reset() {\n re...
[ "0.7683946", "0.697118", "0.6904059", "0.68361205", "0.6714145", "0.6640303", "0.64434683", "0.6318128", "0.6288678", "0.62609303", "0.6259935", "0.6196086", "0.6185046", "0.6129283", "0.60915095", "0.601098", "0.60055953", "0.5967921", "0.5872889", "0.5870918", "0.57786286",...
0.59418577
24
Returns a random shuffling of the array.
public int[] shuffle() { int[] shuffle = nums.clone(); for(int i = 0; i < shuffle.length; i++){ int index = random.nextInt(i + 1); swap(shuffle,i,index); } return shuffle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int[] shuffle() {\n int len = data_random.length;\n Random rand = new Random();\n for (int i = 0; i < len; i++) {\n int r = rand.nextInt(len);\n int temp = data_random[i];\n data_random[i] = data_random[r];\n data_random[r]=temp;\n }\n...
[ "0.7936801", "0.77815646", "0.7755353", "0.77481586", "0.76945996", "0.7655841", "0.7655841", "0.7645461", "0.7631857", "0.7544279", "0.74736184", "0.74547815", "0.7453523", "0.7453179", "0.742156", "0.74097514", "0.74097514", "0.7386949", "0.7363305", "0.73603714", "0.735562...
0.72755456
24
Constructor vacio de la clase
public ProductosPuntoVentaDaoImpl() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Pasien() {\r\n }", "public AntrianPasien() {\r\n\r\n }", "public Alojamiento() {\r\n\t}", "public Carrera(){\n }", "public Clade() {}", "public Chauffeur() {\r\n\t}", "public SlanjePoruke() {\n }", "public Cy...
[ "0.8160863", "0.78734547", "0.7777367", "0.7733038", "0.7650829", "0.75838345", "0.755206", "0.753821", "0.7518583", "0.74763346", "0.7455214", "0.7451668", "0.74491715", "0.7443669", "0.74232185", "0.7395759", "0.738699", "0.7382754", "0.7340022", "0.7335235", "0.731383", ...
0.0
-1
Constructor conparametros de la clase
public ProductosPuntoVentaDaoImpl(final java.sql.Connection userConn) { this.userConn = userConn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Pasien() {\r\n }", "public Carrera(){\n }", "public Classe() {\r\n }", "public prueba()\r\n {\r\n }", "public AntrianPasien() {\r\n\r\n }", "public Alojamiento() {\r\n\t}", "public Caso_de_uso () {\n }"...
[ "0.7653707", "0.7616943", "0.74203366", "0.7255387", "0.7234089", "0.722716", "0.71369016", "0.7121878", "0.70673394", "0.7059527", "0.703816", "0.70366865", "0.7031362", "0.70154995", "0.69875765", "0.6983159", "0.6981577", "0.69739133", "0.6956336", "0.69249725", "0.692227"...
0.0
-1
Inserta un nuevo registro en la tabla Productos_punto_venta.
@Override public ProductosPuntoVentaPk insert(ProductosPuntoVenta dto) throws ProductosPuntoVentaDaoException { long t1 = System.currentTimeMillis(); PreparedStatement stmt = null; try { // Validamos la conexion this.validateConnection(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertNewProduto(ProdutoTO produto){\n\t\ttry {\n\t\t\tmodelProduto.insertNewProduto(produto);\n\t\t\tsuper.updateViewPrincipal(viewPrincipal);\n\t\t} catch (ProdutoException e) {\n\t\t\te.printStackTrace();\n\t\t\tgetControllerError().initialize(e);\n\t\t}\n\t}", "@Override\r\n\tpublic void inserir(...
[ "0.6712313", "0.64485985", "0.62382156", "0.6211269", "0.6105365", "0.6098935", "0.60961777", "0.5985283", "0.5927029", "0.5920979", "0.5878651", "0.58688664", "0.58587056", "0.58474725", "0.58229727", "0.5810277", "0.5808715", "0.58053684", "0.57859904", "0.57642305", "0.574...
0.5929833
8
Actualiza un unico registro en la tabla Productos_punto_venta.
@Override public void update(ProductosPuntoVentaPk pk, ProductosPuntoVenta dto) throws ProductosPuntoVentaDaoException { long t1 = System.currentTimeMillis(); PreparedStatement stmt = null; try { // Validamos la conexion this.validateConnection(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void atualizar(BeanProdutosJsp produto) {\n\n\t\ttry {\n\t\t\tString sql = \"update produtos set nome = ?, quantidade = ?, valor = ?, categoria_id = ? where id = \" + produto.getId();\n\t\t\t\n\t\t\tPreparedStatement preparedStatement;\n\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\n\t...
[ "0.6145394", "0.6126497", "0.6099589", "0.6026105", "0.5918052", "0.5793429", "0.5730658", "0.5712497", "0.5710023", "0.55908275", "0.55886716", "0.5586022", "0.55745345", "0.5534827", "0.5531492", "0.552872", "0.55281174", "0.55183434", "0.5516427", "0.5511681", "0.5495829",...
0.5368795
37
Elimina un unico registro en la tabla Productos_punto_venta.
@Override public void delete(ProductosPuntoVentaPk pk) throws ProductosPuntoVentaDaoException { long t1 = System.currentTimeMillis(); PreparedStatement stmt = null; try { // Validamos la conexion this.validateConnection(); System.out.pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eliminar(Producto producto) throws BusinessErrorHelper;", "public void eliminar(Producto producto) throws IWDaoException;", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del equipo\");\r\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Eliminar los d...
[ "0.6581559", "0.64593303", "0.634427", "0.62885755", "0.59860116", "0.59680223", "0.59385103", "0.59112716", "0.5910446", "0.5880686", "0.58349365", "0.5820308", "0.5790192", "0.57665366", "0.57577246", "0.57533336", "0.5727747", "0.57160205", "0.5715315", "0.5709231", "0.569...
0.5552132
35
Retorna un unico registro en la tabla Productos_punto_venta que conicida con la primarykey especificada.
@Override public ProductosPuntoVenta findByPrimaryKey(ProductosPuntoVentaPk pk) throws ProductosPuntoVentaDaoException { return findByPrimaryKey(pk.getIdPuntoVenta(), pk.getIdProducto()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public ProductosPuntoVenta findByPrimaryKey(Integer idPuntoVenta,\r\n Integer idProducto) throws ProductosPuntoVentaDaoException {\r\n ProductosPuntoVenta[] ret = findByDynamicSelect(SQL_SELECT\r\n + \" WHERE id_pdv = ? AND id_producto = ?\", new Object[] {\r\n ...
[ "0.6485974", "0.6030008", "0.58633125", "0.5725994", "0.5702908", "0.5675806", "0.5666095", "0.5642231", "0.56166106", "0.5577734", "0.5556208", "0.55513155", "0.55422217", "0.55172896", "0.5515629", "0.5476026", "0.54422253", "0.5373843", "0.53608316", "0.5359084", "0.535264...
0.6093436
1
Retorna un registro de la tabla Productos_punto_venta que coincida con el criterio 'id_pdv = :idPuntoVenta AND id_producto = :idProducto'.
@Override public ProductosPuntoVenta findByPrimaryKey(Integer idPuntoVenta, Integer idProducto) throws ProductosPuntoVentaDaoException { ProductosPuntoVenta[] ret = findByDynamicSelect(SQL_SELECT + " WHERE id_pdv = ? AND id_producto = ?", new Object[] { idPun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public ProductosPuntoVenta[] findByPuntoVenta(Integer idPuntoVenta)\r\n throws ProductosPuntoVentaDaoException {\r\n return findByDynamicSelect(SQL_SELECT + \" WHERE id_pdv = ?\",\r\n new Object[] { idPuntoVenta });\r\n }", "@Override\r\n public ProductosPu...
[ "0.67820287", "0.6508345", "0.64863247", "0.604925", "0.59435016", "0.58970404", "0.57372725", "0.5644121", "0.5643421", "0.55544376", "0.5542547", "0.55404633", "0.55386066", "0.5524111", "0.54342854", "0.53887993", "0.5361677", "0.53573567", "0.5299196", "0.5292414", "0.529...
0.7398575
0
Retorna todas las filas de la tabla Productos_punto_venta.
@Override public ProductosPuntoVenta[] findAll() throws ProductosPuntoVentaDaoException { return findByDynamicSelect(SQL_SELECT + " ORDER BY id_pdv", null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DefaultTableModel getDatos3(){\n String folio = String.valueOf(venta.ns);\n //consulta sql\n String SQL_SELECT = \"SELECT p.Nombres,dv.Cantidad,dv.PrecioVenta FROM ventas v JOIN detalle_ventas dv ON v.IdVentas=dv.IdVentas JOIN producto p ON p.IdProducto=dv.IdProducto WHERE v.NumeroSeri...
[ "0.5935079", "0.5808732", "0.5801111", "0.5797044", "0.5741226", "0.5681878", "0.5658374", "0.5655232", "0.560009", "0.55721045", "0.5473123", "0.546751", "0.5453259", "0.54358286", "0.54253113", "0.5419127", "0.5409857", "0.54088944", "0.5383117", "0.5381659", "0.53761697", ...
0.53565174
22
Retorna todos los registros de la tabla Productos_punto_venta que coincidan con el criterio 'id_pdv = :idPuntoVenta'.
@Override public ProductosPuntoVenta[] findByPuntoVenta(Integer idPuntoVenta) throws ProductosPuntoVentaDaoException { return findByDynamicSelect(SQL_SELECT + " WHERE id_pdv = ?", new Object[] { idPuntoVenta }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public ProductosPuntoVenta[] findAll()\r\n throws ProductosPuntoVentaDaoException {\r\n return findByDynamicSelect(SQL_SELECT + \" ORDER BY id_pdv\", null);\r\n }", "@Override\n public ArrayList<Propiedad> getPropiedadesFiltroAgente(String pCriterio, String pDato, String pI...
[ "0.6921899", "0.6468108", "0.63651276", "0.62731045", "0.6200815", "0.6175741", "0.61518186", "0.6115118", "0.6114653", "0.6016264", "0.6000548", "0.5968991", "0.59628373", "0.5929147", "0.5920396", "0.5904134", "0.58667463", "0.58405066", "0.5806896", "0.5800779", "0.5785596...
0.70731443
0
Retorna todos los registros de la tabla Productos_punto_venta que coincidan con el criterio 'id_producto = :idProducto'.
@Override public ProductosPuntoVenta[] findByProducto(Integer idProducto) throws ProductosPuntoVentaDaoException { return findByDynamicSelect(SQL_SELECT + " WHERE id_producto = ?", new Object[] { idProducto }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Producto> verProductos(){\n SessionFactory sf = NewHibernateUtil.getSessionFactory();\n Session session = sf.openSession();\n // El siguiente objeto de query se puede hacer de dos formas una delgando a hql (lenguaje de consulta) que es el\n //lenguaje propio de hibernate o ejecutar ...
[ "0.68946606", "0.62856543", "0.6273333", "0.6241328", "0.6210546", "0.6106984", "0.60910773", "0.6014217", "0.60113513", "0.60063833", "0.5992422", "0.596636", "0.59602594", "0.5934711", "0.593031", "0.5887734", "0.5880886", "0.5840338", "0.5834083", "0.58271736", "0.5821713"...
0.68376774
1
Retorna todos los registros de la tabla Productos_punto_venta que coincidan con la sentencia SQL especificada arbitrariamente
@Override public ProductosPuntoVenta[] findByDynamicSelect(String sql, Object[] sqlParams) throws ProductosPuntoVentaDaoException { PreparedStatement stmt = null; ResultSet rs = null; try { // Validamos la conexion this.validateConnection(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Producto> verProductos(){\n SessionFactory sf = NewHibernateUtil.getSessionFactory();\n Session session = sf.openSession();\n // El siguiente objeto de query se puede hacer de dos formas una delgando a hql (lenguaje de consulta) que es el\n //lenguaje propio de hibernate o ejecutar ...
[ "0.6421245", "0.6127032", "0.6105367", "0.6027453", "0.5976632", "0.59437925", "0.5937403", "0.59258395", "0.59136075", "0.5887838", "0.58808905", "0.5869778", "0.586863", "0.5861766", "0.5851606", "0.58469796", "0.5792767", "0.57832175", "0.5782679", "0.57744455", "0.5745529...
0.0
-1
Retorna todos los registros de la tabla Productos_punto_venta que coincidan con el WHERE SQL especificado arbitrariamente
@Override public ProductosPuntoVenta[] findByDynamicWhere(String sql, Object[] sqlParams) throws ProductosPuntoVentaDaoException { PreparedStatement stmt = null; ResultSet rs = null; try { // Validamos la conexion this.validateConnection(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Producto> verProductos(){\n SessionFactory sf = NewHibernateUtil.getSessionFactory();\n Session session = sf.openSession();\n // El siguiente objeto de query se puede hacer de dos formas una delgando a hql (lenguaje de consulta) que es el\n //lenguaje propio de hibernate o ejecutar ...
[ "0.6111765", "0.60193205", "0.59149873", "0.5884707", "0.5845975", "0.5818293", "0.5807381", "0.57382053", "0.56990457", "0.5657364", "0.5654097", "0.5644999", "0.56251085", "0.55715805", "0.55487853", "0.5528444", "0.55153424", "0.5505389", "0.54953355", "0.5493769", "0.5489...
0.555358
14
Recupera una unica fila desde el result set especificado
protected ProductosPuntoVenta fetchSingleResult(ResultSet rs) throws SQLException { if (rs.next()) { ProductosPuntoVenta dto = new ProductosPuntoVenta(); populateDto(dto, rs); return dto; } else { return null; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Artista loadNext(ResultSet resultSet)\r\n\t\t\tthrows SQLException {\n\t\tint i = 1;\r\n\t\tLong codArtista = resultSet.getLong(i++);\t \r\n\t\tString nomeArtista = resultSet.getString(i++);\r\n\r\n\t\t// Rellena el objeto\r\n\t\tArtista a = new Artista();\r\n\t\ta.setCodArti...
[ "0.64510465", "0.6225996", "0.61702955", "0.6112729", "0.60964596", "0.60957247", "0.6092279", "0.608849", "0.60834754", "0.60819566", "0.606197", "0.6055422", "0.60278785", "0.598702", "0.5963767", "0.59562576", "0.5910028", "0.59010816", "0.58795834", "0.586672", "0.5857117...
0.0
-1
Recupera multiples filas desde el result set especificado
protected ProductosPuntoVenta[] fetchMultiResults(ResultSet rs) throws SQLException { Collection<ProductosPuntoVenta> resultList = new ArrayList<ProductosPuntoVenta>(); while (rs.next()) { ProductosPuntoVenta dto = new ProductosPuntoVenta(); populateDto(dto, rs);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Utente[] fetchMultiResults(ResultSet rs) throws SQLException\n\t{\n\t\tCollection resultList = new ArrayList();\n\t\twhile (rs.next()) {\n\t\t\tUtente dto = new Utente();\n\t\t\tpopulateDto( dto, rs);\n\t\t\tresultList.add( dto );\n\t\t}\n\t\t\n\t\tUtente ret[] = new Utente[ resultList.size() ];\n\t\tres...
[ "0.64105374", "0.57708794", "0.5592718", "0.55762714", "0.55456054", "0.5466513", "0.54103", "0.5396998", "0.5382206", "0.5319134", "0.5316988", "0.5309509", "0.5297974", "0.52914935", "0.52884877", "0.52786565", "0.5276082", "0.5262634", "0.52598196", "0.52441967", "0.523749...
0.61564523
1
Se encarga de poblar un DTO con datos de un ResultSet especificado
protected void populateDto(ProductosPuntoVenta dto, ResultSet rs) throws SQLException { dto.setIdPuntoVenta(new Integer(rs.getInt(COLUMN_ID_PDV))); dto.setIdProducto(new Integer(rs.getInt(COLUMN_ID_PRODUCTO))); dto.setCantidad(rs.getInt(COLUMN_CANTIDAD)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void populateDto(Utente dto, ResultSet rs) throws SQLException\n\t{\n\t\tdto.setUteId( rs.getLong( COLUMN_UTE_ID ) );\n\t\tdto.setUteCognome( rs.getString( COLUMN_UTE_COGNOME ) );\n\t\tdto.setUteNome( rs.getString( COLUMN_UTE_NOME ) );\n\t\tdto.setUteEmail( rs.getString( COLUMN_UTE_EMAIL ) );\n\t\tdto.se...
[ "0.6967713", "0.6672351", "0.6613871", "0.6608693", "0.6602357", "0.6547215", "0.6535449", "0.6509901", "0.6505981", "0.6443515", "0.6426558", "0.6390775", "0.6350513", "0.6336461", "0.6325201", "0.63045436", "0.6282379", "0.6275875", "0.6273302", "0.62431276", "0.6223335", ...
0.67887956
1
Restablece los atributos modificados en el DTO
protected void reset(ProductosPuntoVenta dto) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AtendimentoJuridicoDTO toDTO(AtendimentoJuridicoEntity entity){\n\t\tAtendimentoJuridicoDTO dto = new AtendimentoJuridicoDTO();\n\t\tBeanUtils.copyProperties(entity, dto); \n\t\treturn dto ;\n\t}", "Persona PersonaDTOToPersona(PersonaDTO personaDTO);", "PersonaDTO PersonaToPersonaDTO(Persona persona);",...
[ "0.60298175", "0.58258104", "0.57800394", "0.56177396", "0.56108534", "0.560377", "0.55775154", "0.55596197", "0.55396914", "0.55270505", "0.5515101", "0.54915434", "0.5449007", "0.5423799", "0.54131526", "0.5404855", "0.53929836", "0.5370279", "0.5338217", "0.5315976", "0.52...
0.0
-1
Metodo que retorna el nombre de la tabla de BD
public String getTableName() { return IDaoConstants.TABLE_PROD_PTOS_VTA; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TableName name();", "public String getNomTable();", "@Override\n\tpublic String getTableName(int arg0) throws SQLException {\n\t\treturn tMeta[0].tableName();\n\t}", "String getTableName();", "public String getDBTableName()\n\t{\n\t\treturn this.getClass().getSimpleName();\n\t}", "@Override\n\tpub...
[ "0.7715556", "0.76697403", "0.71987414", "0.7184753", "0.71422225", "0.69809735", "0.69371706", "0.6918903", "0.68984413", "0.68901104", "0.6886645", "0.679685", "0.67585933", "0.6757526", "0.67288876", "0.67177707", "0.6689993", "0.66678417", "0.6646462", "0.6605498", "0.658...
0.6366604
51
Instantiates a new Rmi server.
public RMIServer() { System.setProperty("java.security.policy", "AllPermission.policy"); this.config = RMIConfiguration.getInstance(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static RoMServer createServer() throws IOException, Exception {\r\n \t\t// Ip and Port out of config\r\n \t\tIConfig cfg = ConfigurationFactory.getConfig();\r\n \r\n \t\treturn RoMServer.createServer(cfg.getIp(), cfg.getPort());\r\n \t}", "private void initRMI() throws RemoteException {\n log.info(...
[ "0.65004975", "0.6407508", "0.6385838", "0.6369732", "0.63107175", "0.62806416", "0.61307555", "0.61226726", "0.6101669", "0.60929555", "0.6080608", "0.60273445", "0.60227644", "0.60214835", "0.6019157", "0.5930346", "0.5863026", "0.5852159", "0.5825059", "0.5791614", "0.5783...
0.67706656
0
declara el contenido de la clase principal
public static void main(String[] args) { //declara una variable (valor) de tipo int int i; //introduce estructura interativa o repetitiva (for), a la variable i le da un valor de 10, la condicion es que el valor de la variable i tiene que ser mayor que 0, cada vez que se ejecute la instruccion for al valor de la ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void consulterClassement() {\n\t\t\n\t}", "public contrustor(){\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private TMCourse() {\n\t}", "public ControladorCoche() {\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "private Cont...
[ "0.71807617", "0.6717578", "0.6640542", "0.6608316", "0.651851", "0.64730555", "0.64608455", "0.6443035", "0.6434242", "0.64315134", "0.6404936", "0.6393193", "0.63649803", "0.6350816", "0.63411295", "0.63389057", "0.6322169", "0.6318453", "0.6308367", "0.6259219", "0.6254360...
0.0
-1
Initialize the Vuforia localization engine.
void initVuforia() { //Configure Vuforia by creating a Parameter object, and passing it to the Vuforia engine. VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(); parameters.vuforiaLicenseKey = VUFORIA_KEY; parameters.cameraDirection = VuforiaLocalizer.CameraDire...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initVuforia() {\n\t\t/*\n\t\t * Configure Vuforia by creating a Parameter object, and passing it to the Vuforia engine.\n\t\t */\n\t\tVuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n\t\tparameters.vuforiaLicenseKey = VUFORIA_KEY;\n\t\tparameters.cameraDirection = VuforiaL...
[ "0.7862772", "0.77622664", "0.76864237", "0.7680576", "0.7631798", "0.7528408", "0.7504295", "0.74666", "0.7440823", "0.73611605", "0.69607705", "0.6637696", "0.66255546", "0.6528858", "0.65168697", "0.6357723", "0.6338443", "0.6321127", "0.62756985", "0.627008", "0.6055512",...
0.77021605
2
Initialize the Tensor Flow Object Detection engine.
void initTfod() { int tfodMonitorViewId = hardwareMap.appContext.getResources().getIdentifier( "tfodMonitorViewId", "id", hardwareMap.appContext.getPackageName()); TFObjectDetector.Parameters tfodParameters = new TFObjectDetector.Parameters(tfodMonitorViewId); tfod = ClassFactory...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifierObject = ObjectClassifier.create(context.getAssets(), TYPE_MODEL, LABEL_TYPE, INPUT_SIZE_TYPE);\n } cat...
[ "0.7420496", "0.7051041", "0.7013778", "0.6714255", "0.66958374", "0.6670549", "0.66630876", "0.66620404", "0.6658837", "0.6601241", "0.6590903", "0.6590097", "0.6433824", "0.63152564", "0.6314169", "0.6296023", "0.627128", "0.627128", "0.62075007", "0.6202267", "0.61795384",...
0.66824496
5
array with all the hours
public static void main(String[] args) { int[][] employeeArray = { {2,4,3,4,5,8,8}, {7,3,4,3,3,4,4}, {3,3,4,3,3,2,2}, {9,3,4,7,3,4,1}, {3,5,4,3,6,3,8}, {3,4,4,6,3,4,4}, {3,7,4,8,3,8,4}, {6,3,5,9,2,7,9}}; //create a new single arra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] getHours() {\n return hours;\n }", "public int[] getHours() {\n int[] hoursArray = {this.hours, this.overtimeHours};\n return hoursArray;\n }", "private void loadHours(){\n int hours = 0;\n int minutes = 0;\n for(int i=0; i<24;i++){\n for(int ...
[ "0.7909942", "0.78785855", "0.6969097", "0.6758778", "0.67227626", "0.66185373", "0.6552335", "0.6552335", "0.63705194", "0.63459295", "0.62921786", "0.6236457", "0.6172643", "0.6158271", "0.61441636", "0.61402273", "0.6075288", "0.6001241", "0.5982791", "0.5959605", "0.59582...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904536", "0.78052336", "0.7766536", "0.7727363", "0.76318616", "0.7621916", "0.7584545", "0.7530609", "0.74878335", "0.74571276", "0.74571276", "0.7438656", "0.7422694", "0.7403604", "0.73918706", "0.7387049", "0.7379379", "0.73706305", "0.7362634", "0.7356091", "0.734574...
0.0
-1
constructor for damage, heal
public DeckAbility(int amount, Destination destination, Choice choice, AbilityTarget target, AbilityType type) { this.calculation = new Calculation(); this.calculation.setTarget(Calculation.CountTarget.NULL); this.calculation.setOperator(Calculation.Operator.NULL); this.amount = amount; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void heal(Heros h);", "public Shot(int damage) {\n\t\tthis.damage = damage;\n\t}", "public void heal(int healAmount){\r\n health+= healAmount;\r\n }", "public EmergencyTreatment(int heal) {\n super(heal);\n }", "public Wand() {\n damage = 5;\n damageType = \"Magic\";\n ...
[ "0.7026844", "0.698304", "0.68532354", "0.6852793", "0.68091184", "0.6808023", "0.67953515", "0.6781271", "0.67805886", "0.67598635", "0.67346597", "0.66630584", "0.66408676", "0.6635463", "0.66076374", "0.65796125", "0.65791905", "0.6568037", "0.6537938", "0.65169805", "0.64...
0.0
-1
constructor for damage, heal
public DeckAbility(int amount, Destination destination, Choice choice, AbilityTarget target, AbilityType type, Ability subAbility) { this.calculation = new Calculation(); this.calculation.setTarget(Calculation.CountTarget.NULL); this.calculation.setOperator(Calculation.Operator.NULL); th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void heal(Heros h);", "public Shot(int damage) {\n\t\tthis.damage = damage;\n\t}", "public void heal(int healAmount){\r\n health+= healAmount;\r\n }", "public EmergencyTreatment(int heal) {\n super(heal);\n }", "public Wand() {\n damage = 5;\n damageType = \"Magic\";\n ...
[ "0.7026965", "0.69835943", "0.6854427", "0.685091", "0.68098474", "0.6808459", "0.6795735", "0.6781047", "0.6780518", "0.6760644", "0.6735662", "0.6663899", "0.66413504", "0.6636432", "0.6609126", "0.6581141", "0.658054", "0.65687037", "0.65372527", "0.6517781", "0.64968395",...
0.0
-1
constructor for damage, heal
public DeckAbility(Calculation calculation, Destination destination, AbilityTarget target, AbilityType type) { this.amount = 0; this.calculation = calculation; this.destination = destination; this.target = target; this.type = type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void heal(Heros h);", "public Shot(int damage) {\n\t\tthis.damage = damage;\n\t}", "public void heal(int healAmount){\r\n health+= healAmount;\r\n }", "public EmergencyTreatment(int heal) {\n super(heal);\n }", "public Wand() {\n damage = 5;\n damageType = \"Magic\";\n ...
[ "0.7026899", "0.69840604", "0.68542373", "0.68512464", "0.68103105", "0.6808338", "0.6796157", "0.67808944", "0.67806476", "0.67604613", "0.6735073", "0.6663826", "0.66409063", "0.66365653", "0.66087735", "0.6580887", "0.65798765", "0.6569172", "0.65363824", "0.65179724", "0....
0.0
-1
constructor for damage, heal
public DeckAbility(Calculation calculation, Destination destination, AbilityTarget target, AbilityType type, Ability subAbility) { this.amount = 0; this.calculation = calculation; this.destination = destination; this.target = target; this.type = type; this.subAbility = su...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void heal(Heros h);", "public Shot(int damage) {\n\t\tthis.damage = damage;\n\t}", "public void heal(int healAmount){\r\n health+= healAmount;\r\n }", "public EmergencyTreatment(int heal) {\n super(heal);\n }", "public Wand() {\n damage = 5;\n damageType = \"Magic\";\n ...
[ "0.7026965", "0.69835943", "0.6854427", "0.685091", "0.68098474", "0.6808459", "0.6795735", "0.6781047", "0.6780518", "0.6760644", "0.6735662", "0.6663899", "0.66413504", "0.6636432", "0.6609126", "0.6581141", "0.658054", "0.65687037", "0.65372527", "0.6517781", "0.64968395",...
0.0
-1
This method blocks until the tests complete and returns true if all tests completed successfully
public CrashTestStatus.TestResult testResult() { try { final Duration testTimeout = mDuration.plus(MAX_TEST_DELAY_BEFORE_HANG); boolean completed = mTestStatus.waitForCompletion(testTimeout.toMillis(), TimeUnit.MILLISECONDS); if (!completed) { Log.w(getTag(), String.format("T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isAllTestsRun() {\n Collection<TestPackage> pkgs = getTestPackages();\n for (TestPackage pkg : pkgs) {\n if (!pkg.isAllTestsRun()) {\n return false;\n }\n }\n return true;\n }", "private st...
[ "0.7130816", "0.70446706", "0.6844897", "0.68248385", "0.6712966", "0.669581", "0.6617144", "0.6559182", "0.64990675", "0.6457154", "0.64469403", "0.64388204", "0.64287037", "0.6372279", "0.63591826", "0.62851626", "0.62733436", "0.6205568", "0.6204536", "0.6188372", "0.61834...
0.0
-1
Constructs a new ObjectPathElement.
public ObjectPathElement(Class<?> objectType, String fieldName) { this.objectType = objectType; this.fieldName = fieldName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ObjectElement createObjectElement();", "public PathElementIF createElement(String name);", "public final XPath constructPath(){\r\n \tif(path == null){\r\n \t\tpath = new XPath(getPathArray());\r\n \t}\r\n\t\treturn path;\r\n }", "Object create(Element element) throws IOException, SAXException, P...
[ "0.70850277", "0.6739133", "0.6542059", "0.59092754", "0.58173156", "0.5778355", "0.57508177", "0.5708249", "0.57044274", "0.5671522", "0.56586754", "0.5582411", "0.55078936", "0.5497245", "0.5463118", "0.5437476", "0.5434621", "0.5434275", "0.5404782", "0.53799206", "0.53747...
0.5305145
22
Returns the object type.
public Class<?> getObjectType() { return objectType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n\tpublic Class getObjectType()\n\t{\n\t\tObject obj = getObject();\n\t\tif (obj == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn obj.getClass();\n\t}", "public ObjType getType () {\n\t\tif (type == null) {\n\t\t\ttype = Virtue.getInstance().getConfigProvider().getObjTypes(...
[ "0.81239474", "0.80536014", "0.7633121", "0.7552473", "0.75394803", "0.7488839", "0.74309444", "0.7391088", "0.7362361", "0.7338078", "0.732524", "0.732524", "0.732524", "0.732524", "0.732524", "0.732524", "0.732524", "0.732524", "0.732524", "0.732524", "0.732524", "0.73240...
0.7764438
2
Returns the name of the field of the object type.
public String getFieldName() { return fieldName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName(){\n return field.getName();\n }", "public String getFieldName(Class<?> type, String fieldName);", "String getFieldName();", "public String getFieldName();", "protected String get_object_name() {\n\t\treturn this.fieldname;\n\t}", "public String getFieldName() {\n i...
[ "0.7915164", "0.75986284", "0.7540756", "0.7453381", "0.74151605", "0.74041325", "0.7313657", "0.73088187", "0.72103894", "0.71659935", "0.7071994", "0.7045329", "0.7009798", "0.69975007", "0.69819796", "0.6965611", "0.6946556", "0.6943359", "0.69365627", "0.6933703", "0.6909...
0.6943633
19
Reads data from an external file and parses it, then stores it into a Hashtable that is returned to the client code.
protected synchronized Hashtable getMappingsFromFile() throws Exception { InputStream path = null; path = getClass().getResourceAsStream("../../../config/mappings.txt"); System.out.println("Path is - " + path); BufferedReader reader = new BufferedReader(new InputStreamReader(path)); /* StringBuilder ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readTable() {\r\n\r\n try ( BufferedReader b = new BufferedReader(new FileReader(\"Hashdata.txt\"))) {\r\n\r\n String line;\r\n ArrayList<String> arr = new ArrayList<>();\r\n while ((line = b.readLine()) != null) {\r\n\r\n arr.add(line);\r\n ...
[ "0.65144855", "0.6214035", "0.613155", "0.59441733", "0.59216595", "0.58917624", "0.5783801", "0.57372534", "0.560504", "0.55815226", "0.5578071", "0.55683154", "0.5567419", "0.5533261", "0.55262715", "0.55257565", "0.54905504", "0.5465484", "0.54613316", "0.5429225", "0.5417...
0.60592186
3
Simply used for testing purposes.
public static void main(String[] args) { ReadMappings rs = new ReadMappings(); try { Hashtable result = rs.getMappingsFromFile(); Enumeration en = result.elements(); while(en.hasMoreElements()) { System.out.println(en.nextElement()); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void test() {\n\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "private test5() {\r\n\t\r\n\t}", "private stendhal() {\n\t}", "private ProtomakEngineTestHelper() {\r\n\t}", "@Override\n @Before\n public void setUp() throws IOException {\n }", "@Before\n\t public void setUp() {\n...
[ "0.6836261", "0.6834178", "0.65601784", "0.65419614", "0.6471129", "0.62967956", "0.61696255", "0.6149734", "0.6136101", "0.6096188", "0.60900915", "0.6089806", "0.6048072", "0.60188144", "0.6012925", "0.6010661", "0.6010661", "0.60105556", "0.59909004", "0.59810084", "0.5976...
0.0
-1
TODO Autogenerated method stub
@Override JPanel publishPanel() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
METHODES// SETTER & GETTTER///
public int getLargeur() { return largeur; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setdat()\n {\n }", "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "public abstract void setMontant(Double unMontant);", "private void setData() {\n\n }", "@Override\r\n\t\tpublic void set(E arg0) {\n\r\n\t\t}", "@Override\n\tpublic void setMontant(double s) {\n\t\t\n\t}",...
[ "0.67687386", "0.6191561", "0.6082002", "0.6061932", "0.6048977", "0.59957397", "0.59734356", "0.59321284", "0.58415425", "0.5826945", "0.5739926", "0.57215756", "0.5720708", "0.5719254", "0.57185346", "0.5653009", "0.56504", "0.56495154", "0.56171465", "0.56105083", "0.56022...
0.0
-1
Methode zum erzeugen eines neuen Objekts des Frames und starte dies im neuen Thread.
public static void spielstart() { Thread thread = new Thread() { @Override public void run() { gameboard = new GameFrame(); } }; thread.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FrameJogo() {\n initComponents();\n createBufferStrategy(2);\n Thread t = new Thread(this);\n t.start();\n }", "@Override\n public void run() {\n Frame parentFrame = getParentFrame(IFrameSource.FULL_CONTEXT);\n if (parentFrame != null) {\n getFram...
[ "0.6577779", "0.6456857", "0.5861818", "0.58551204", "0.5841084", "0.5834168", "0.5824392", "0.5814905", "0.5799407", "0.57708883", "0.5760001", "0.57368153", "0.57197666", "0.57020384", "0.5688069", "0.5687711", "0.567924", "0.567244", "0.5672429", "0.56598556", "0.56390566"...
0.59957224
2
/ renamed from: a
void m70531a(Throwable th) { try { this.f61096d.call(th); } catch (Throwable th2) { this.f61095c.unsubscribe(); } this.f61095c.unsubscribe(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.5827...
0.0
-1
Returns the data as an observable list of movies
public ObservableList<Movie> getFilmData() { return ser.movieData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Movie> getMovies();", "public List<Movie> getMovies() {\n return movies;\n }", "public static ArrayList<Movie> getMoviesList(){\n\t\treturn movieInfo;\n\t}", "public List<Movie> getMovieData() {\n return movieData;\n }", "public ArrayList<Movie> getMovies() {\n return...
[ "0.7461437", "0.7381245", "0.7362752", "0.73375475", "0.7301253", "0.7218934", "0.70596504", "0.6974775", "0.6962309", "0.6937565", "0.69099337", "0.6904208", "0.6851721", "0.67976797", "0.6774226", "0.67608184", "0.67209345", "0.66802377", "0.663426", "0.65864354", "0.655633...
0.7772544
0
Initializes the root layout.
public void initRootLayout() { try { // Load root layout from fxml file. FXMLLoader loader = new FXMLLoader(); loader.setLocation(FilmApp.class.getResource("view/RootLayout.fxml")); rootLayout = (BorderPane) loader.load(); // Show the scene con...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initRootLayout() {\r\n FXMLLoader loader = fxmlLoaderService.getLoader(getClass().getResource(FXML_MAIN));\r\n\r\n try {\r\n rootLayout = loader.load();\r\n } catch (IOException ex) {\r\n logger.warn(\"Failed to load: \" + FXML_MAIN, ex);\r\n\r\n re...
[ "0.8155224", "0.8012828", "0.80020714", "0.78650045", "0.78557146", "0.76235336", "0.7415659", "0.73508984", "0.7305256", "0.71595323", "0.7091849", "0.7071485", "0.7000932", "0.69892776", "0.6939908", "0.6912992", "0.6884789", "0.6882516", "0.670973", "0.667487", "0.6628149"...
0.80208606
1
Shows the film overview inside the root layout.
public void showFilmOverview() { try { // Load film overview. FXMLLoader loader = new FXMLLoader(); loader.setLocation(FilmApp.class.getResource("view/FilmOverview.fxml")); AnchorPane filmOverview = (AnchorPane) loader.load(); // Set film overv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showMovies() {\n System.out.println(\"Mina filmer:\");\n for (int i = 0; i < myMovies.size(); i++) {\n System.out.println(\"\\n\" + (i + 1) + \". \" + myMovies.get(i).getTitle() +\n \"\\nRegissör: \" + myMovies.get(i).getDirector() + \" | \" +\n ...
[ "0.6649841", "0.66427356", "0.64821583", "0.6393634", "0.61676586", "0.6021703", "0.5966659", "0.5885005", "0.58413106", "0.57947564", "0.57853264", "0.5770693", "0.57086873", "0.55901986", "0.5581003", "0.55771077", "0.5575622", "0.5535741", "0.54493403", "0.5444394", "0.543...
0.79441625
0
Creates new stage Set the movie into the controller show the dialog and wait until the user closes it
public boolean showFilmEditDialog(Movie movie) { try { // Load the fxml file and create a new stage for the popup dialog. FXMLLoader loader = new FXMLLoader(); loader.setLocation(FilmApp.class.getResource("view/FilmEditDialog.fxml")); AnchorPane page = (AnchorPane) loader.load()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CreateUAV(){\n createStage = new Stage();\n createStage.setTitle(\"UAV Setup\");\n createStage.initModality(Modality.APPLICATION_MODAL);\n setupOverwriteDialog();\n }", "private void setStage() {\n\t\tstage = new Stage();\n\t\tstage.setScene(myScene);\n\t\tstage.setTitle(tit...
[ "0.7337787", "0.71505797", "0.71049994", "0.692287", "0.67538226", "0.67490995", "0.65495634", "0.64626104", "0.6447771", "0.64301264", "0.6421696", "0.64050853", "0.6394241", "0.63874006", "0.6377061", "0.6376978", "0.63452905", "0.63397413", "0.63382167", "0.6269905", "0.62...
0.6720351
6
Returns the main stage.
public static Stage getPrimaryStage() { return primaryStage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Stage getMainStage() {\n return mainStage;\n }", "String getStage();", "public static Stage getMainStage(){\r\n return mainStage;\r\n }", "public static Stage getPrimaryStage()\n {\n return Main.primaryStage;\n }", "@Override\n\tpublic java.lang.String getStag...
[ "0.8080446", "0.7996165", "0.7922653", "0.7838635", "0.77958125", "0.77662057", "0.7757318", "0.7655074", "0.76437825", "0.7525303", "0.7523813", "0.75173116", "0.75173116", "0.75173116", "0.75050616", "0.75050616", "0.75050616", "0.75050616", "0.75050616", "0.75050616", "0.7...
0.76144445
9
TODO Autogenerated method stub
@Override public long getTime() { return this.time; }
{ "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
TODO Autogenerated method stub
@Override public double getLat() { return this.lat; }
{ "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 double getLon() { return this.lon; }
{ "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
TODO Autogenerated method stub
@Override public double getAlt() { return this.alt; }
{ "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 double getSpeed() { return this.speed; }
{ "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