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
/ Enabled aggressive block sorting Enabled unnecessary exception pruning
@Override public void a(b object, String string) throws RemoteException { Parcel parcel = Parcel.obtain(); Parcel parcel2 = Parcel.obtain(); try { parcel.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService"); object = object != null ? object.asBinder() : null; parcel.writeStrongBinder((IBinder)object); parcel.writeString(string); this.lb.transact(1, parcel, parcel2, 0); parcel2.readException(); parcel2.recycle(); parcel.recycle(); return; } catch (Throwable var1_2) { parcel2.recycle(); parcel.recycle(); throw var1_2; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PerfectMergeSort() {}", "private static void sortingMemo() {\n\t\t\n\t}", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n ...
[ "0.6208621", "0.6104075", "0.60732406", "0.5885296", "0.58307207", "0.58095944", "0.5755813", "0.5733198", "0.5726807", "0.5725886", "0.56937504", "0.5680252", "0.56683624", "0.56610775", "0.5654295", "0.56437415", "0.55917704", "0.5583014", "0.55813044", "0.5553379", "0.5544...
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning
@Override public void a(b object, String string, String string2) throws RemoteException { Parcel parcel = Parcel.obtain(); Parcel parcel2 = Parcel.obtain(); try { parcel.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService"); object = object != null ? object.asBinder() : null; parcel.writeStrongBinder((IBinder)object); parcel.writeString(string); parcel.writeString(string2); this.lb.transact(2, parcel, parcel2, 0); parcel2.readException(); parcel2.recycle(); parcel.recycle(); return; } catch (Throwable var1_2) { parcel2.recycle(); parcel.recycle(); throw var1_2; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PerfectMergeSort() {}", "private static void sortingMemo() {\n\t\t\n\t}", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n ...
[ "0.6208621", "0.6104075", "0.60732406", "0.5885296", "0.58307207", "0.58095944", "0.5755813", "0.5733198", "0.5726807", "0.5725886", "0.56937504", "0.5680252", "0.56683624", "0.56610775", "0.5654295", "0.56437415", "0.55917704", "0.5583014", "0.55813044", "0.5553379", "0.5544...
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning
@Override public void a(b object, List<String> list) throws RemoteException { Parcel parcel = Parcel.obtain(); Parcel parcel2 = Parcel.obtain(); try { parcel.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService"); object = object != null ? object.asBinder() : null; parcel.writeStrongBinder((IBinder)object); parcel.writeStringList(list); this.lb.transact(34, parcel, parcel2, 0); parcel2.readException(); parcel2.recycle(); parcel.recycle(); return; } catch (Throwable var1_2) { parcel2.recycle(); parcel.recycle(); throw var1_2; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PerfectMergeSort() {}", "private static void sortingMemo() {\n\t\t\n\t}", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n ...
[ "0.6208621", "0.6104075", "0.60732406", "0.5885296", "0.58307207", "0.58095944", "0.5755813", "0.5733198", "0.5726807", "0.5725886", "0.56937504", "0.5680252", "0.56683624", "0.56610775", "0.5654295", "0.56437415", "0.55917704", "0.5583014", "0.55813044", "0.5553379", "0.5544...
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning
@Override public void a(String string, jb jb, jb jb2) throws RemoteException { Parcel parcel = Parcel.obtain(); Parcel parcel2 = Parcel.obtain(); try { parcel.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService"); parcel.writeString(string); if (jb != null) { parcel.writeInt(1); jb.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } if (jb2 != null) { parcel.writeInt(1); jb2.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } this.lb.transact(46, parcel, parcel2, 0); parcel2.readException(); return; } finally { parcel2.recycle(); parcel.recycle(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PerfectMergeSort() {}", "private static void sortingMemo() {\n\t\t\n\t}", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n ...
[ "0.6208621", "0.6104075", "0.60732406", "0.5885296", "0.58307207", "0.58095944", "0.5755813", "0.5733198", "0.5726807", "0.5725886", "0.56937504", "0.5680252", "0.56683624", "0.56610775", "0.5654295", "0.56437415", "0.55917704", "0.5583014", "0.55813044", "0.5553379", "0.5544...
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning
@Override public void b(b object) throws RemoteException { Parcel parcel = Parcel.obtain(); Parcel parcel2 = Parcel.obtain(); try { parcel.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService"); object = object != null ? object.asBinder() : null; parcel.writeStrongBinder((IBinder)object); this.lb.transact(19, parcel, parcel2, 0); parcel2.readException(); parcel2.recycle(); parcel.recycle(); return; } catch (Throwable var1_2) { parcel2.recycle(); parcel.recycle(); throw var1_2; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PerfectMergeSort() {}", "private static void sortingMemo() {\n\t\t\n\t}", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n ...
[ "0.6208621", "0.6104075", "0.60732406", "0.5885296", "0.58307207", "0.58095944", "0.5755813", "0.5733198", "0.5726807", "0.5725886", "0.56937504", "0.5680252", "0.56683624", "0.56610775", "0.5654295", "0.56437415", "0.55917704", "0.5583014", "0.55813044", "0.5553379", "0.5544...
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning
@Override public void b(b object, String string) throws RemoteException { Parcel parcel = Parcel.obtain(); Parcel parcel2 = Parcel.obtain(); try { parcel.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService"); object = object != null ? object.asBinder() : null; parcel.writeStrongBinder((IBinder)object); parcel.writeString(string); this.lb.transact(3, parcel, parcel2, 0); parcel2.readException(); parcel2.recycle(); parcel.recycle(); return; } catch (Throwable var1_2) { parcel2.recycle(); parcel.recycle(); throw var1_2; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PerfectMergeSort() {}", "private static void sortingMemo() {\n\t\t\n\t}", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n ...
[ "0.6208621", "0.6104075", "0.60732406", "0.5885296", "0.58307207", "0.58095944", "0.5755813", "0.5733198", "0.5726807", "0.5725886", "0.56937504", "0.5680252", "0.56683624", "0.56610775", "0.5654295", "0.56437415", "0.55917704", "0.5583014", "0.55813044", "0.5553379", "0.5544...
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning
@Override public void c(b object, String string) throws RemoteException { Parcel parcel = Parcel.obtain(); Parcel parcel2 = Parcel.obtain(); try { parcel.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService"); object = object != null ? object.asBinder() : null; parcel.writeStrongBinder((IBinder)object); parcel.writeString(string); this.lb.transact(18, parcel, parcel2, 0); parcel2.readException(); parcel2.recycle(); parcel.recycle(); return; } catch (Throwable var1_2) { parcel2.recycle(); parcel.recycle(); throw var1_2; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PerfectMergeSort() {}", "private static void sortingMemo() {\n\t\t\n\t}", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n ...
[ "0.6208621", "0.6104075", "0.60732406", "0.5885296", "0.58307207", "0.58095944", "0.5755813", "0.5733198", "0.5726807", "0.5725886", "0.56937504", "0.5680252", "0.56683624", "0.56610775", "0.5654295", "0.56437415", "0.55917704", "0.5583014", "0.55813044", "0.5553379", "0.5544...
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning
@Override public void d(b object, String string) throws RemoteException { Parcel parcel = Parcel.obtain(); Parcel parcel2 = Parcel.obtain(); try { parcel.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService"); object = object != null ? object.asBinder() : null; parcel.writeStrongBinder((IBinder)object); parcel.writeString(string); this.lb.transact(40, parcel, parcel2, 0); parcel2.readException(); parcel2.recycle(); parcel.recycle(); return; } catch (Throwable var1_2) { parcel2.recycle(); parcel.recycle(); throw var1_2; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PerfectMergeSort() {}", "private static void sortingMemo() {\n\t\t\n\t}", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n ...
[ "0.6208621", "0.6104075", "0.60732406", "0.5885296", "0.58307207", "0.58095944", "0.5755813", "0.5733198", "0.5726807", "0.5725886", "0.56937504", "0.5680252", "0.56683624", "0.56610775", "0.5654295", "0.56437415", "0.55917704", "0.5583014", "0.55813044", "0.5553379", "0.5544...
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning
@Override public void e(b object, String string) throws RemoteException { Parcel parcel = Parcel.obtain(); Parcel parcel2 = Parcel.obtain(); try { parcel.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService"); object = object != null ? object.asBinder() : null; parcel.writeStrongBinder((IBinder)object); parcel.writeString(string); this.lb.transact(44, parcel, parcel2, 0); parcel2.readException(); parcel2.recycle(); parcel.recycle(); return; } catch (Throwable var1_2) { parcel2.recycle(); parcel.recycle(); throw var1_2; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PerfectMergeSort() {}", "private static void sortingMemo() {\n\t\t\n\t}", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n ...
[ "0.6208621", "0.6104075", "0.60732406", "0.5885296", "0.58307207", "0.58095944", "0.5755813", "0.5733198", "0.5726807", "0.5725886", "0.56937504", "0.5680252", "0.56683624", "0.56610775", "0.5654295", "0.56437415", "0.55917704", "0.5583014", "0.55813044", "0.5553379", "0.5544...
0.0
-1
Creates new form SelectBelongsFrame
public SelectBelongsFrame() { initComponents(); // for(int i = 0;i<belongsnumber;i++){ // SelectBelongFrame sbf = new SelectBelongFrame(); // sbf.setVisible(true); // while(sbf.isEnabled()){ // // } // } // SelectBelongFrame sbf = new SelectBelongFrame(); // sbf.setVisible(true); // while(sbf.isDisplayable()){ // // } listModel = new DefaultListModel(); jList1.setModel(listModel); root = new DefaultMutableTreeNode("属性"); // System.out.println("a"); // root = setNode(dataarray, root); setNode(); model = new DefaultTreeModel(root); jTree1.setModel(model); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void addSelectorForm();", "public static void createButtonSelection(ActionContext actionContext){\n Thing store = actionContext.getObject(\"store\");\n store.doAction(\"openCreateForm\", actionContext);\n }", "public void onSelectionCreate(ActionEvent event) throws SQLException...
[ "0.6269753", "0.6083653", "0.58182406", "0.55147845", "0.5446827", "0.542253", "0.5414508", "0.54038656", "0.5350582", "0.5251927", "0.52350336", "0.5202641", "0.5180611", "0.51669157", "0.51466787", "0.5051404", "0.5036382", "0.5034773", "0.5028979", "0.5015539", "0.5005544"...
0.57503355
3
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jButton2 = new javax.swing.JButton(); jPanel2 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jTree1 = new javax.swing.JTree(); jButton1 = new javax.swing.JButton(); jButton4 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); jScrollPane2 = new javax.swing.JScrollPane(); jList1 = new javax.swing.JList(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jButton2.setText("キャンセル"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jScrollPane1.setViewportView(jTree1); jButton1.setText("add"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jButton4.setText("delete"); jButton4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton4ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(0, 222, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(76, Short.MAX_VALUE))) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap(103, Short.MAX_VALUE) .addComponent(jButton1) .addGap(69, 69, 69) .addComponent(jButton4) .addGap(65, 65, 65)) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap(9, Short.MAX_VALUE) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(9, Short.MAX_VALUE))) ); jButton3.setText("実行"); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); jScrollPane2.setViewportView(jList1); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(174, 174, 174) .addComponent(jButton3) .addGap(77, 77, 77) .addComponent(jButton2)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(44, 44, 44) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(46, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(15, 15, 15) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(29, 29, 29) .addComponent(jScrollPane2))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton2) .addComponent(jButton3)) .addGap(29, 29, 29)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7322098", "0.7292275", "0.7292275", "0.7292275", "0.72872275", "0.72507876", "0.7214814", "0.7209056", "0.7197325", "0.71918863", "0.71856284", "0.7160448", "0.7148918", "0.7094831", "0.70820963", "0.70585436", "0.6988433", "0.6978755", "0.69569016", "0.6955245", "0.694635...
0.0
-1
GGA essential fix data which provide 3D location and accuracy data. $GPGGA,123519, 4807.038,N,01131.000 ,E,1,08,0.9, 545.4,M, 46.9,M,,47 Where: GGA Global Positioning System Fix Data 123519 Fix taken at 12:35:19 UTC 4807.038,N Latitude 48 deg 07.038' N 01131.000,E Longitude 11 deg 31.000' E 1 Fix quality: 0 = invalid 1 = GPS fix (SPS) 2 = DGPS fix 3 = PPS fix 4 = Real Time Kinematic 5 = Float RTK 6 = estimated (dead reckoning) (2.3 feature) 7 = Manual input mode 8 = Simulation mode 08 Number of satellites being tracked 0.9 Horizontal dilution of position 545.4,M Altitude, Meters, above mean sea level 46.9,M Height of geoid (mean sea level) above WGS84 ellipsoid (empty field) time in seconds since last DGPS update (empty field) DGPS station ID number 47 the checksum data, always begins with
private String buildGPGGA(String time, String lattitude, String lon, String altitude) { StringBuilder sb = new StringBuilder("$GPGGA,"); sb.append(time);// 1 sb.append(','); sb.append(lattitude);// 2,3 sb.append(','); sb.append(lon);// 4,5 sb.append(",1,6,");// quality 6 satelliteCount 7 sb.append("1.94,");// Horizontal dilution of position 8 sb.append(altitude);// 9,10 sb.append(",-34.0,M,");// height of the geoid // ? sb.append(",*"); String check = getChecksum(sb.toString()); sb.append(check); sb.append("\r\n"); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testGpGGA_fix_storesFix() throws SimulationException\n\t{\n\t\tm_simulation.acceptInput(\"$GPGGA,060932.448,2447.0959,N,12100.5204,E,1,08,1.1,108.7,M,,,,0000*0E\\n\\r\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_TIME, \"060932\");\n\t\tm_simulation.assertChars(GenerateG...
[ "0.6587879", "0.6327667", "0.6300099", "0.6123235", "0.60413706", "0.5710646", "0.5502074", "0.54520553", "0.5432605", "0.5386394", "0.527912", "0.51852596", "0.5181322", "0.5135201", "0.5059072", "0.5044088", "0.50377357", "0.50285536", "0.50239944", "0.502212", "0.49870294"...
0.544186
8
RMC NMEA has its own version of essential gps pvt (position, velocity, time) data. It is called RMC, The Recommended Minimum, which will look similar to: $GPRMC,123519, A,4807.038, N,01131.000, E,022.4,084.4,230394,003.1,W6A Where: RMC Recommended Minimum sentence C 123519 Fix taken at 12:35:19 UTC A Status A=active or V=Void. 4807.038,N Latitude 48 deg 07.038' N 01131.000,E Longitude 11 deg 31.000' E 022.4 Speed over the ground in knots 084.4 Track angle in degrees True 230394 Date 23rd of March 1994 003.1,W Magnetic Variation 6A The checksum data, always begins with
private String buildGPRMC(String time, String date, String lattitude, String lon) { StringBuilder sb = new StringBuilder("$GPRMC,"); sb.append(time);// 1 sb.append(",A,");//2 sb.append(lattitude);// 2,3 sb.append(','); sb.append(lon);// 4,5 sb.append(','); double knots = getSpeed()/1.852; sb.append(KNOTS_FORMAT.format(knots));// 022.4 Speed over the ground in knots sb.append(','); double track = getHeading(); sb.append(TRACK_FORMAT.format(track));//084.4 Track angle in degrees True sb.append(','); sb.append(date);// 230394 Date - 23rd of March 1994 sb.append(','); sb.append("003.1,W");// 003.1,W Magnetic Variation sb.append('*'); String check = getChecksum(sb.toString()); sb.append(check); sb.append("\r\n"); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testRmcParse() {\r\n double latLow = 57.70907;\r\n double latHigh = 57.70909;\r\n\r\n double lngLow = 11.96693;\r\n double lngHigh = 11.96695;\r\n\r\n String ex = \"$GPRMC,131420,A,5742.5446,N,01158.0166,E,,,2992015,,,A*4A\";\r\n LatLng latLng = MapUtils.ParseR...
[ "0.6449548", "0.54275775", "0.52947605", "0.5273246", "0.52113867", "0.5203577", "0.50962216", "0.5093958", "0.50686526", "0.50112444", "0.4978612", "0.4959208", "0.491799", "0.48886737", "0.4869371", "0.48463008", "0.48455703", "0.48363018", "0.4834898", "0.48242408", "0.481...
0.5880305
1
Loop through all chars to get a checksum
private String getChecksum(String sentence) { int checksum = 0; for (char Character : sentence.toCharArray()) { if (Character == '$') { // Ignore the dollar sign } else if (Character == '*') { // Stop processing before the asterisk break; } else { // Is this the first value for the checksum? if (checksum == 0) { // Yes. Set the checksum to the value checksum = (byte) Character; } else { // No. XOR the checksum with this character's value checksum = checksum ^ (byte) Character; } } } // Return the checksum formatted as a two-character hexadecimal return Integer.toHexString(checksum).toUpperCase(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getChecksum();", "public static boolean checksum(String s)\r\n\t{\r\n\t\tif((s.length()<3)||(s.charAt(0)!='$')||(s.charAt(s.length()-3)!='*'))\r\n\t\t\treturn false;\r\n\t\tString x=new String();\r\n\t\tx+=s.charAt(s.length()-2);\r\n\t\tx+=s.charAt(s.length()-1);\r\n\t\ts=s.substring(1,s.length(...
[ "0.6790703", "0.6191374", "0.6135448", "0.60466206", "0.6024598", "0.5974925", "0.5932127", "0.5858599", "0.5852773", "0.57485026", "0.57075775", "0.5694489", "0.56929386", "0.5594019", "0.55087084", "0.550864", "0.5429591", "0.5390501", "0.5369083", "0.5342992", "0.53365445"...
0.62810427
1
DO NOT MODIFY THE ARGUMENTS WITH "final" PREFIX. IT IS READ ONLY
public int trap(final int[] A) { int res = 0; for(int i=1; i<A.length-1; i++) { int left = A[i]; for(int j=0; j<i; j++) { left = Math.max(A[j], left); } int right = A[i]; for(int j=i+1; j<A.length; j++) { right = Math.max(A[j], right); } res+=Math.min(left, right)- A[i]; } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n boolean isFinal() {\n return false;\n }", "@Override\n public boolean isFinal() {\n return true;\n }", "String getFinal();", "final void finalMethod() { // this can not be overridden\n\t\tSystem.out.println(\"This is final method\");\n\t}", "public...
[ "0.640315", "0.6385154", "0.6362142", "0.6312865", "0.630029", "0.6279908", "0.61173177", "0.61173177", "0.6098246", "0.60415304", "0.60356903", "0.59980917", "0.5942948", "0.5822816", "0.5760823", "0.574911", "0.57147866", "0.5707316", "0.56821936", "0.5679745", "0.56565374"...
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.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
Handles provider database interactions with invitationrelated documents and collections.
public interface InvitationsDatabaseService extends InvitationsDatabaseServiceSubject, DatabaseService { /** * Create an invitation document for the receiving user's received invitations in * this service's provider database. * * <p>Updates the invitation's ID to that of the newly created document</p> * @param invitation the invitation being sent to the user. * @return a task containing the result of trying to create the invitation document. */ Task<?> addInvitationForReceivingUser(Invitation invitation); /** * Create an invitation document for the sending user's sent invitations in * this service's provider database. * @param invitation the invitation being sent by the user. * @return a task containing the result of trying to create the invitation document. */ Task<?> addInvitationForSendingUser(Invitation invitation); /** * Update the given invitation's document for the receiving user in this service's provider * database. * @param invitation the invitation that is being updated. Must have an invitation ID. */ void updateInvitationForReceivingUser(Invitation invitation); /** * Update the given invitation's document for the sending user in this service's provider * database. * @param invitation the invitation that is being updated. Must have an invitation ID. */ void updateInvitationForSendingUser(Invitation invitation); /** * Query this service's provider database for the given user's received invitations that have * {@link InvitationStatus} equal to PENDING. * <p>On complete, calls {@link InvitationsDatabaseServiceSubject#notifyObserversPendingInvitations(List)} to * notify observers that the invitations are ready to read.</p> * @param user */ void getUserPendingInvitations(IUser user); void addInvitationsSnapshotListener(IUser user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface InvitationService {\n\n Invitation createInvitation(String email);\n\n Invitation addInvitation(Invitation invitation);\n\n void addInvitations(List<Invitation> invitationList);\n\n //get records from db\n Invitation getInvitationById(int invitationId);\n\n List<Invitation> getAl...
[ "0.60454124", "0.53094316", "0.5267659", "0.5194324", "0.5032251", "0.49831992", "0.49770734", "0.49427813", "0.4859751", "0.48505816", "0.48191765", "0.48149508", "0.48092347", "0.47909355", "0.4787056", "0.47570294", "0.47514388", "0.47487268", "0.47465503", "0.47436568", "...
0.68131226
0
Create an invitation document for the receiving user's received invitations in this service's provider database. Updates the invitation's ID to that of the newly created document
Task<?> addInvitationForReceivingUser(Invitation invitation);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ThinkParityAuthenticate(AuthenticationType.USER)\n public void createInvitation(final JabberId userId,\n final JabberId invitationUserId,\n final IncomingEMailInvitation invitation);", "void updateInvitationForReceivingUser(Invitation invitation);", "void createInvitation(OutgoingEMai...
[ "0.6341865", "0.61563045", "0.60700655", "0.59772485", "0.5705485", "0.5587572", "0.55475795", "0.54170626", "0.53640085", "0.536133", "0.535702", "0.5319946", "0.5184885", "0.51588666", "0.5129869", "0.51152635", "0.51096267", "0.5094398", "0.5051065", "0.49655652", "0.49386...
0.58293325
4
Create an invitation document for the sending user's sent invitations in this service's provider database.
Task<?> addInvitationForSendingUser(Invitation invitation);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createInvitation(OutgoingEMailInvitation invitation, Boolean notify);", "@ThinkParityAuthenticate(AuthenticationType.USER)\n public void createInvitation(final JabberId userId,\n final JabberId invitationUserId,\n final IncomingEMailInvitation invitation);", "void updateInvitation...
[ "0.64620495", "0.63768214", "0.5983578", "0.5706347", "0.564597", "0.5642741", "0.5637767", "0.5624238", "0.55694836", "0.55560815", "0.55477095", "0.5496844", "0.5479195", "0.5400902", "0.53468686", "0.5165452", "0.5157817", "0.51041937", "0.5093778", "0.5063696", "0.5043683...
0.57975525
3
Update the given invitation's document for the receiving user in this service's provider database.
void updateInvitationForReceivingUser(Invitation invitation);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateInvitationForSendingUser(Invitation invitation);", "boolean editInvitation(Invitation invitation);", "private void updateUserDoc(){\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n\n Map<String, Object> userData = new HashMap<>();\n userData.put(\"name\", FieldValue.d...
[ "0.6978829", "0.6106395", "0.5826937", "0.56608045", "0.56061816", "0.5503049", "0.5482871", "0.5473007", "0.5465197", "0.54425615", "0.54150444", "0.5358932", "0.52813596", "0.5273268", "0.52249074", "0.5215481", "0.5208401", "0.52082485", "0.5194966", "0.51843846", "0.51841...
0.70041597
0
Update the given invitation's document for the sending user in this service's provider database.
void updateInvitationForSendingUser(Invitation invitation);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateInvitationForReceivingUser(Invitation invitation);", "boolean editInvitation(Invitation invitation);", "private void updateUserDoc(){\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n\n Map<String, Object> userData = new HashMap<>();\n userData.put(\"name\", FieldValue...
[ "0.69167715", "0.6127279", "0.58231413", "0.5669175", "0.5664181", "0.5597743", "0.54678524", "0.54419565", "0.5406978", "0.5389538", "0.5340285", "0.53386956", "0.52880496", "0.52632785", "0.52582836", "0.52382165", "0.5233771", "0.51772213", "0.5164545", "0.5155624", "0.515...
0.72160125
0
Function called to get the id for element
public String getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getElementId();", "Object getElementID(String elementName) throws Exception;", "public final int getElementId() {\n return elementId;\n }", "java.lang.String getID();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String get...
[ "0.80674237", "0.7513838", "0.74947405", "0.74493504", "0.74273664", "0.74273664", "0.74273664", "0.74273664", "0.74273664", "0.74273664", "0.74273664", "0.74273664", "0.74273664", "0.74273664", "0.74273664", "0.74273664", "0.74273664", "0.74273664", "0.74273664", "0.74273664",...
0.0
-1
Function called to set the id for element
public void setId(String id) { this.id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setElementId(String arg0)\n {\n \n }", "void setId(int val);", "@Override\n\tpublic void setId(Integer arg0) {\n\n\t}", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public voi...
[ "0.7968982", "0.7514838", "0.7315664", "0.73098075", "0.72945607", "0.7197851", "0.7119407", "0.70822996", "0.7078287", "0.7078287", "0.7078287", "0.70720303", "0.70653707", "0.7042309", "0.7036811", "0.7010959", "0.7010959", "0.7010959", "0.7010599", "0.69879967", "0.6987996...
0.0
-1
Function called to get the text for element
public String getText() { return text; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String getElementText(Element e) {\n if (e.getChildNodes().getLength() == 1) {\n Text elementText = (Text) e.getFirstChild();\n return elementText.getNodeValue();\n }\n else\n return \"\";\n }", "String getText();", "String getText();", "String ...
[ "0.7978408", "0.7823774", "0.7823774", "0.7823774", "0.7823774", "0.7823774", "0.7823774", "0.7823774", "0.78117263", "0.78069717", "0.78069717", "0.78069717", "0.78069717", "0.78069717", "0.78069717", "0.78069717", "0.78069717", "0.7806322", "0.7801243", "0.7783783", "0.7576...
0.6964057
70
Function called to set the text for element
public void setText(String text) { this.text = text; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void setText() {\n\t\t\r\n\t}", "public void setText(String text);", "public void setText( String text );", "public void setText(String text) {\n\t\t\n\t}", "public void setText(String text) {\r\n\r\n\t}", "@Override\n\tpublic void setText(String arg0) {\n\t\t\n\t}", "void setText...
[ "0.79501164", "0.78468156", "0.7844837", "0.7737935", "0.7732466", "0.7717839", "0.76794815", "0.7620864", "0.76138663", "0.75658077", "0.7558817", "0.7453167", "0.745164", "0.7443688", "0.7419561", "0.7401902", "0.73581535", "0.73581535", "0.73581535", "0.73581535", "0.73581...
0.7314749
25
cost for each hour considering all the clinicians constructor
public HourlyDetail() { this.numberOfShiftBeginning = 0; this.numberOfShiftEnding = 0; this.costPerHour = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getCost(Date hour) {\r\n Iterator<Date> it = schedule.iterator();\r\n int i = 0;\r\n while (it.hasNext()) {\r\n if (it.next().after(hour)) {\r\n return cost.get(i);\r\n }\r\n i++;\r\n }\r\n return defaultCost;\r\n }"...
[ "0.6654896", "0.6598099", "0.6560599", "0.6226174", "0.6172956", "0.6072218", "0.6057831", "0.5999819", "0.5968862", "0.59138405", "0.5905434", "0.58940786", "0.5888967", "0.5844611", "0.58432716", "0.5835206", "0.5835206", "0.5804318", "0.578831", "0.5782342", "0.57493085", ...
0.59926116
8
getters and setters for all the fields
public Integer getHour() { return hour; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void initializeFields() {\n\n\t}", "@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }", "public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null)...
[ "0.67317903", "0.6690561", "0.63763833", "0.62268305", "0.6159013", "0.6079379", "0.6061467", "0.60076886", "0.5965098", "0.59507173", "0.594666", "0.58756405", "0.5868919", "0.5866184", "0.5821994", "0.57895446", "0.5757695", "0.57431614", "0.57403207", "0.5719883", "0.56892...
0.0
-1
20% more than avg lawyer
public double showSalary() { return super.showSalary() * 1.2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calcAvg(){\n\t\taverage = hits/atbat;\n\t\t\n\t}", "double agression();", "public double findAvgWage() {\n int numLabourer = 0;\n double total = 0;\n \n for (int i = 0; i < staffList.length; i++) {\n if (staffList[i] instanceof Labourer) {\n total += ((Labourer) staffList[i])....
[ "0.6947757", "0.68048656", "0.6650561", "0.66315985", "0.6529761", "0.6521848", "0.64895964", "0.6395961", "0.6388698", "0.63545984", "0.63454026", "0.63340485", "0.63143486", "0.6283899", "0.6242464", "0.6224115", "0.6222071", "0.62171674", "0.6216157", "0.62085503", "0.6204...
0.0
-1
Metoda umozliwia stowrzenie konta
public Account createAccount(String login, String name, String surname, String city, String street, int number) throws Exception { if (login==null || login.equals("")) throw(new Exception("Nazwa konta nie moze byc pusta")); if (findAccount(login)!=null) throw(new Exception("Konto juz istnieje")); Account newAccount = new Account(login, name, surname, city, street, number); listOfAccounts.add( newAccount ); return newAccount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendeSpielfeld();", "public IzvajalecZdravstvenihStoritev() {\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public abstract String dohvatiKontakt();", "public void asetaTeksti(){\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void validerSaisi...
[ "0.65845054", "0.6544587", "0.6540901", "0.64204794", "0.63836515", "0.62524325", "0.62312716", "0.62228394", "0.6204616", "0.6061811", "0.60523427", "0.6025405", "0.6002249", "0.5980269", "0.5968961", "0.5938705", "0.59353447", "0.59089845", "0.59039474", "0.58909684", "0.58...
0.0
-1
Metoda umozliwia usuniecie konta
public void removeAccount(Account account) throws Exception { if (account==null) throw(new Exception("Brak konta")); if (account.getBalance()!= 0) throw(new Exception("Saldo konta nie jest zerowe")); listOfAccounts.remove(account); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void asetaTeksti(){\n }", "private void remplirUtiliseData() {\n\t}", "private UsineJoueur() {}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "protected void accionUsuario() {\n\t\t\r\n\t}", "abstract void uminus();", "@Override\r\n\tpublic void rozmnozovat() {\n...
[ "0.6605006", "0.65444034", "0.64945644", "0.6391736", "0.63648653", "0.63456523", "0.6228257", "0.6203241", "0.6192839", "0.6151424", "0.6137603", "0.60923445", "0.60754794", "0.60191363", "0.59781724", "0.59425944", "0.59369934", "0.59296817", "0.5919312", "0.5898087", "0.58...
0.0
-1
Metoda umozliwia znalezienie konta
public Account findAccount(String login) { for (Account account : listOfAccounts) if (account.getLogin().equals(login)) return account; return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public abstract String dohvatiKontakt();", "public void asetaTeksti(){\n }", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "public void Ordenamiento() {\n\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void...
[ "0.6855638", "0.67214257", "0.6428027", "0.61740327", "0.61548096", "0.61511236", "0.60791564", "0.6042752", "0.60407233", "0.6020534", "0.5996521", "0.5994747", "0.59889865", "0.59850186", "0.59767807", "0.5963449", "0.59353226", "0.59323716", "0.59160906", "0.5899367", "0.5...
0.0
-1
Metoda umozliwia zapisanie kont do pliku
void saveSklepToFile(String fileName) throws Exception { ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(fileName)); out.writeObject(listOfAccounts); out.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void zapisPliku(String nazwaPlikuZapis) throws IOException{\n FileWriter plikZapisz = null;\n try {\n // tworzy nowy plik jeżeli nie istnieje, w przeciwnym przypadku\n // usuwa zawartość pliku i nadpisuje od początku\n plikZapisz = new FileWriter(nazwaPl...
[ "0.61291665", "0.5928337", "0.5762093", "0.57443553", "0.57376146", "0.5684207", "0.5489782", "0.5479417", "0.5420121", "0.5417267", "0.5386758", "0.5376013", "0.53755236", "0.53731143", "0.53731143", "0.5365705", "0.5363192", "0.53589576", "0.5345466", "0.53421247", "0.53248...
0.0
-1
get URL from properties file
@BeforeClass public void GotoURL() { String URL = Base.GetDataFromPropertiesFile("url1"); // set implicit wt at page level driver.manage().timeouts().implicitlyWait(300, TimeUnit.SECONDS); driver.get(URL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String getUrl() {\n return properties.get(URL_PROPERTY);\n }", "public String getURL(String key) {\n return propertiesConfiguration.getString(key);\n }", "private URL readURLFromProperties( Properties properties, String propertyName ) {\n\t\tURL url = null;\n\t\tString urlAsString = ...
[ "0.7741165", "0.76862794", "0.7467977", "0.74104214", "0.7280307", "0.7239613", "0.6721466", "0.6679861", "0.6654626", "0.65089965", "0.6354495", "0.63101494", "0.62403286", "0.6235688", "0.6228743", "0.6200739", "0.61652803", "0.61464113", "0.6134888", "0.6134888", "0.613488...
0.0
-1
/ This is the first time Using Ifelse Condition Save me LOL
public static void main(String[] args) { // "If-else" Condition Practice int x = 20; int y = 20; if(x < y){ System.out.println("X is less than Y"); } if(x == y){ System.out.println("X is equal to Y"); } if(x > y){ System.out.println("X is greater than Y"); } int a = 10; int b = 10; if(a < b){ System.out.println("A is less than B"); }else if(a == b){ System.out.println("A is equal to B"); }else if (a > b){ System.out.println("A is equal to B"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIfElse();", "@Override\n protected void generateCodeFromElse(IfStmt ifStmt) {\n }", "private IfElement _ifElse(String expression, List<CodeElement> body, List<CodeElement> elseBody)\n {\n return _ifElseIf(expression, body, Collections.emptyList(), Collections.emptyList(), elseBody);\n...
[ "0.6889686", "0.6314111", "0.60321105", "0.5998845", "0.5990963", "0.59512836", "0.58904725", "0.5845365", "0.58374876", "0.5824512", "0.5810881", "0.5800288", "0.5795846", "0.5789665", "0.57759136", "0.57691103", "0.57443774", "0.5693697", "0.566872", "0.56651586", "0.566201...
0.50618887
96
Created by ktlee on 10/9/14.
public interface OnPlaylistPreparedListener { void OnPlaylistPrepared (ArrayList<Object> autoGeneratedPlaylistMetaDataHashMap, ArrayList<PlaylistMetaData> userGeneratedPlaylistMetaDataHashMap); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Over...
[ "0.5975922", "0.5903418", "0.58343893", "0.58101404", "0.57469165", "0.57001686", "0.56918865", "0.56861794", "0.56861794", "0.56861794", "0.56861794", "0.56861794", "0.5681405", "0.56801635", "0.56801635", "0.56772363", "0.5639775", "0.56321865", "0.5612571", "0.56053966", "...
0.0
-1
to do operations in database we need sessionfactory
public PaymentDAOImpl(SessionFactory sessionfactory) { this.sessionFactory=sessionfactory; log.debug("Successfully estblished connection"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NationalityDAO() {\n //sessionFactory = HibernateUtil.getSessionFactory();\n session=HibernateUtil.openSession();\n }", "DatabaseSession openSession();", "public void iniciaOperacion() throws HibernateException\r\n\t{\r\n\t\t\r\n\t\t//Creamos conexión BBDD e inicamos una sesion\r\n\t ...
[ "0.72870994", "0.7186047", "0.70662636", "0.69055164", "0.68220675", "0.67976964", "0.6751344", "0.6696332", "0.6638561", "0.663522", "0.66243875", "0.66243875", "0.65934664", "0.65859693", "0.6576088", "0.6489819", "0.6483619", "0.64677334", "0.6452856", "0.6438086", "0.6435...
0.68836975
4
TODO Autogenerated method stub
public boolean savepayment(Payment payment) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void 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
Test Driven Development in JUnit
public double areaOfCircle(double radious) { return 3.14*radious*radious; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testDumbJUnit() {\n }", "@Test\r\n\tpublic void testSanity() {\n\t}", "@Test\n public void simpleUse(){\n }", "@Test\n public void testBeer() {\n // TODO: test Beer\n }", "@Test\n\tpublic void testMain() {\n\t}", "@Test\n\tvoid test() {\n\t\t\n\t}", "@Test\n public vo...
[ "0.7648846", "0.73729974", "0.72404116", "0.71426964", "0.7093681", "0.7086103", "0.70429826", "0.702195", "0.7013004", "0.7005146", "0.69951814", "0.6987201", "0.6984218", "0.698409", "0.6974898", "0.69482315", "0.69482315", "0.69475555", "0.6935421", "0.6931388", "0.6927720...
0.0
-1
AssertThrows method : where we check if a method is throwing the correct exception
public double divide(double n, double den) { return n/den; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void testWithdraw() {\n //Exception e = assertThrows(IllegalArgumentException.class, () -> new Client(\"Sir\", \"Jack\", \"1234567890\",\"H91R7YX\", \"432111111111\",\"G00@gmit.ie\", 20, 5000.00) );\n assertEquals(true, t1.isWithdraw());\n }", "boolean assertExpected(Exception e);", ...
[ "0.7063634", "0.7031468", "0.692674", "0.6803818", "0.68010217", "0.67108595", "0.6696977", "0.6598504", "0.65942246", "0.6557973", "0.6507607", "0.64936817", "0.64340395", "0.6429823", "0.6423576", "0.6419511", "0.63964045", "0.63875115", "0.6372572", "0.63540125", "0.633175...
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof CarPayment)) { return false; } CarPayment other = (CarPayment) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.64778...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner reader=new Scanner(System.in); System.out.println("Please enter a number:"); int num=reader.nextInt(); System.out.println("The number you entered is:"+num); }
{ "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
Method that asks the WebDriver to open a webpage in the chosen web browser.
protected void openWebPage() { EseoTest.driver.get(Configuration.getString("website_address")); //Assert.assertEquals("Web page title does not appear correct.", Configuration.getString("login_title"), // EseoTest.driver.getTitle()); Assert.assertEquals("Browser title bar does not appear correct.",Configuration.getString("homepage_title"),EseoTest.driver.getTitle()); Assert.assertEquals("Site title does not appear correct.",Configuration.getString("blog_title"),EseoTest.driver.findElement(By.tagName("h1")).getText()); Assert.assertEquals("Site description does not appear correct.",Configuration.getString("blog_description"),EseoTest.driver.findElement(By.tagName("p")).getText()); Assert.assertTrue("Log in item does not appear correct.",EseoTest.driver.findElement(By.linkText(Configuration.getString("mainmenu_login_item"))).isDisplayed()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Given(\"^I go to \\\"([^\\\"]*)\\\" on \\\"([^\\\"]*)\\\"$\") \n\tpublic void openWebPage(String url, String browser){\n\t\tString result = selenium.openBrowser(browser);\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t\tString result2 = selenium.navigate(url);\n\t\tAssert.assertEquals(selenium.result_...
[ "0.74775285", "0.73060876", "0.7188724", "0.71311915", "0.7015561", "0.6803579", "0.67573243", "0.6743357", "0.6742415", "0.67081743", "0.6674158", "0.6648941", "0.6608086", "0.6599741", "0.6556367", "0.65514743", "0.65433615", "0.6541075", "0.65204823", "0.65115446", "0.6467...
0.6823285
5
The teardown method is used to quit the WebDriver, that is to say, close the web browser and free up system resources.
public static void teardown() { driver.quit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@After\n\tpublic void teardown() {\n\t\tthis.driver.quit();\n\t}", "public void teardown() {\n LOGGER.info(\"Shutting down driver\");\n driver.quit();\n }", "@AfterSuite\n\tpublic void teardown() {\n\t\t\n\t\tdriver.quit();\n\t}", "@AfterTest\n\tpublic void teardown()\n\t{\n\t\t\n\t\tdriver....
[ "0.87434036", "0.8656732", "0.8300029", "0.82534313", "0.8205659", "0.81658435", "0.81400776", "0.81238186", "0.8118211", "0.8092624", "0.8078295", "0.8016893", "0.79635215", "0.79384476", "0.7927121", "0.79215884", "0.7833363", "0.7829964", "0.78243256", "0.78090215", "0.780...
0.89195156
0
Verifies that a file exists in the driverlocation.
public static void verifyDriverLocation(String driverLocation) { File driverFile = new File(driverLocation); if (!driverFile.exists()) { Assert.fail("Could not find executable: " + driverLocation); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void insurePathToFileExists(String filename) {\r\n insurePathToFileExists(new File(filename));\r\n }", "boolean hasFileLocation();", "boolean hasFileLoc();", "private static boolean fileExists(String filename) {\n return new File(filename).exists();\n }", "@Override\n\tpub...
[ "0.6925329", "0.69235545", "0.6790894", "0.64975554", "0.6482537", "0.6468232", "0.64430964", "0.6413481", "0.6263649", "0.62594396", "0.62449354", "0.6220436", "0.6207305", "0.616162", "0.61407137", "0.61335385", "0.60609984", "0.6057252", "0.60475194", "0.60425454", "0.6034...
0.69899404
0
Setup the WebDriver instance to use certain properties. An implicit timeout of two seconds and a window size of 1024 x 768 pixels.
public static void setup() { EseoTest.driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS); EseoTest.driver.manage().window().setSize(new Dimension(1024, 768)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before\n\tpublic void setUp() throws Exception {\n\t\t System.setProperty(\"webdriver.firefox.marionette\", \"C:\\\\GeckoSelenium\\\\geckodriver.exe\");\n\t\t driver = new FirefoxDriver();\n//\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\ChromeDriver\\\\chromedriver.exe\");\n//\t\tdriver = new C...
[ "0.6910158", "0.67944986", "0.67689115", "0.6554591", "0.65524167", "0.65365416", "0.64326805", "0.6382837", "0.6215348", "0.6178287", "0.61591727", "0.6034266", "0.602924", "0.6022948", "0.5982912", "0.5972605", "0.5938199", "0.5931133", "0.59266376", "0.5919298", "0.5915554...
0.7702982
0
/ 0144:340F463BAEC24F8CBD4592AEDE80E1C6/F0AF86733A17424CB0603EE4A86B38F9:D9 Usage Byte = 44 = 0 10 00 1 0 0 = (2=VIRTUAL,0=None,1=Included,0=None) Version (1) KLV: 060E2B3401010101 0E01040503000000 220144340F463BAE C24F8CBD4592AEDE 80E1C6F0AF86733A 17424CB0603EE4A8 6B38F9 Text: 0144:340F463BAEC24F8CBD4592AEDE80E1C6/F0AF86733A17424CB0603EE4A86B38F9:D9
@Test public void checkBuildFromString() { CoreIdentifier coreIdentifier = CoreIdentifier.fromString( "0144:340F-463B-AEC2-4F8C-BD45-92AE-DE80-E1C6/F0AF-8673-3A17-424C-B060-3EE4-A86B-38F9:D9"); verifyCoreIdentifierE5(coreIdentifier); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int getVDevInfo() {\r\n\t\treturn 0x08100302; // Diag-x24 Ry on VM/370R6 Sixpack 1.2 for a 3420 as 181 with or without a mounted tape\r\n\t}", "@kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000T\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u000...
[ "0.55633324", "0.53105", "0.5158395", "0.51164734", "0.5097564", "0.50680953", "0.5030755", "0.5026889", "0.49892312", "0.49800673", "0.49704373", "0.49560097", "0.49191967", "0.49067152", "0.48711684", "0.48518068", "0.4851397", "0.4849017", "0.48371807", "0.4825387", "0.480...
0.0
-1
Created by ntvid on 07/01/2018.
@Dao public interface TaskDao { @Query("Select * from Task") List<Task> getAll(); @Query("Select * from Task where id = :taskId ") Task findById(String taskId); @Insert(onConflict = OnConflictStrategy.REPLACE) void addTask(Task task); @Update(onConflict = OnConflictStrategy.REPLACE) void updateTask(Task task); @Delete void delete(Task byId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n public void func_104112_b() {\n \n ...
[ "0.5869464", "0.58094347", "0.5782833", "0.5708698", "0.5609397", "0.5605319", "0.55791193", "0.5555271", "0.5528689", "0.5517703", "0.5517703", "0.5503347", "0.5502598", "0.550226", "0.54934376", "0.5492458", "0.5490048", "0.54687303", "0.54671466", "0.5419053", "0.5400254",...
0.0
-1
add listeners to YouTubePlayer instance
@Override public void onInitializationSuccess(Provider provider, YouTubePlayer player, boolean wasRestored) { player.setPlayerStateChangeListener(playerStateChangeListener); player.setPlaybackEventListener(playbackEventListener); /** Start buffering **/ if (!wasRestored) { player.cueVideo("sjOfxnlGAF4"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addPlayerObserver(PlayerObserver observer);", "private void setUpYoutubePlayer() {\n\n youTubePlayerView.initialize(DeveloperKey.DEVELOPER_KEY,\n new YouTubePlayer.OnInitializedListener() {\n @Override\n public void onInitializationSuccess(YouTubeP...
[ "0.68712807", "0.67530054", "0.64799315", "0.6348504", "0.63320535", "0.6304152", "0.62873876", "0.6284429", "0.62728953", "0.62623644", "0.6258533", "0.62350696", "0.6169517", "0.6118273", "0.6084682", "0.6075462", "0.60748136", "0.60734594", "0.6050727", "0.6050727", "0.603...
0.0
-1
set1 = set of response variables
public void fit(String[] rgsResponses) throws Exception{ HashSet<String> set1; set1 = new HashSet<String>(rgsResponses.length); for(String s:rgsResponses){ set1.add(s); } fit(set1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void initSet1(String[] set1) {\n\t\tset1[0] = \"rs36129689\";\n\t\tset1[1] = \"rs36153986\";\n\t\tset1[2] = \"rs493934\";\n\t\tset1[3] = \"rs36146958\";\n\t\tset1[4] = \"rs36197089\";\n\t\tset1[5] = \"rs35773247\";\n\t\tset1[6] = \"rs35346884\";\n\t\tset1[7] = \"rs493040\";\n\t\tset1[8] = \"rs354730...
[ "0.6153449", "0.56933624", "0.5542732", "0.54337233", "0.54092324", "0.5378078", "0.5341167", "0.5273657", "0.5196698", "0.5179429", "0.516202", "0.5136095", "0.5135723", "0.50948095", "0.5059201", "0.5057849", "0.5057177", "0.505332", "0.50504804", "0.50219786", "0.5011771",...
0.0
-1
Creates a new domain for the given name.
MBeanDomain(String name) { this.name = name; this.mbeanMap = new HashMap<String, List<MBean>>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized ServiceDomain createDomain(final String name) {\n if (!isInitialized()) {\n init();\n }\n\n if (domains.containsKey(name)) {\n throw new RuntimeException(\"Domain already exists: \" + name);\n }\n\n ServiceDomain domain = new Domai...
[ "0.7710716", "0.58330894", "0.58215", "0.57777244", "0.57624894", "0.5724358", "0.56905717", "0.5690414", "0.56890136", "0.56590605", "0.56448126", "0.5634938", "0.54888797", "0.5452308", "0.5432238", "0.5352736", "0.5343439", "0.53156286", "0.52398133", "0.5229748", "0.52037...
0.490317
40
Getter for the domain Name.
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getDomainName() {\r\n return domainName;\r\n }", "public java.lang.String getDomainName() {\n return domainName;\n }", "public String getDomainName() {\n return domainName;\n }", "public YangString getDomainNameValue() throws JNCException {\n retur...
[ "0.8654128", "0.8623162", "0.85821605", "0.8452834", "0.83877254", "0.8212949", "0.79491735", "0.773007", "0.76574945", "0.76376176", "0.76376176", "0.76361513", "0.7615768", "0.74625665", "0.74014026", "0.73726577", "0.73583716", "0.72842425", "0.70636", "0.7026469", "0.6996...
0.0
-1
Returns an unmodifyable list of all contained MBean types.
public List<String> getMBeanTypes() { return Collections.unmodifiableList(new ArrayList<String>(this.mbeanMap.keySet())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<__Type> getTypes() {\n return (List<__Type>) get(\"types\");\n }", "public List<MBean> getMbeans(String type) {\n\n\t\tList<MBean> mBeans = mbeanMap.get(type);\n\n\t\tif (mBeans == null) {\n\t\t\tmBeans = new ArrayList<MBean>();\n\t\t\tthis.mbeanMap.put(type, mBeans);\n\t\t}\n\n\t\treturn C...
[ "0.7083002", "0.6787602", "0.67748636", "0.67659974", "0.67571354", "0.66885406", "0.66661656", "0.66067827", "0.65617925", "0.6523295", "0.647403", "0.647186", "0.6468603", "0.64021593", "0.636902", "0.6342366", "0.63053864", "0.6277036", "0.6216874", "0.62092686", "0.619085...
0.8588212
0
Returns an unmodifyable list of all contained MBean instances.
public List<MBean> getAllMbeans() { List<MBean> mbeans = new ArrayList<MBean>(); for (Map.Entry<String, List<MBean>> entry : mbeanMap.entrySet()) { List<MBean> entryMbeans = entry.getValue(); if (entryMbeans != null) { mbeans.addAll(entryMbeans); } } return Collections.unmodifiableList(mbeans); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<ServiceInstance> getAllInstances();", "Collection<Instance> getInstances();", "public List<String> getMBeanTypes() {\n\n\t\treturn Collections.unmodifiableList(new ArrayList<String>(this.mbeanMap.keySet()));\n\t}", "public final List<CharacterInstance> getInstances() {\n return instances;\...
[ "0.71939105", "0.7106605", "0.64433205", "0.6393364", "0.63717335", "0.632912", "0.61985743", "0.6162285", "0.6067988", "0.5980226", "0.59315926", "0.5898746", "0.58827275", "0.5813985", "0.57837856", "0.5714117", "0.56864464", "0.5682992", "0.5682393", "0.56703293", "0.56197...
0.7586403
0
Returns an unmodifyable list of all contained MBean instances of the given type.
public List<MBean> getMbeans(String type) { List<MBean> mBeans = mbeanMap.get(type); if (mBeans == null) { mBeans = new ArrayList<MBean>(); this.mbeanMap.put(type, mBeans); } return Collections.unmodifiableList(mBeans); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getMBeanTypes() {\n\n\t\treturn Collections.unmodifiableList(new ArrayList<String>(this.mbeanMap.keySet()));\n\t}", "Collection<Instance> getInstances();", "public List<ServiceInstance> getAllInstances();", "public List<MBean> getAllMbeans() {\n\n\t\tList<MBean> mbeans = new ArrayList<MBe...
[ "0.65529543", "0.6238506", "0.6227245", "0.6155354", "0.6117193", "0.61067045", "0.6041469", "0.5870005", "0.57953084", "0.57703507", "0.5764371", "0.5735312", "0.57342064", "0.5630517", "0.56265354", "0.5611609", "0.5591272", "0.55492806", "0.55202645", "0.55081534", "0.5471...
0.79616266
0
Stores the given MBean in the domain.
void putMBean(MBean mbean) { List<MBean> mBeans = mbeanMap.get(mbean.getType()); if (mBeans == null) { mBeans = new ArrayList<MBean>(); this.mbeanMap.put(mbean.getType(), mBeans); } mBeans.add(mbean); this.mbeanCount++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MBeanDomain(String name) {\n\n\t\tthis.name = name;\n\t\tthis.mbeanMap = new HashMap<String, List<MBean>>();\n\t}", "void storeMetric(ModuleMetric metric) {\n\t\tlog.debug(\"Storing metric '{}' of '{}'\", metric.getName(), metric.getAction().getModule().primaryKey());\n\t\tfinal ModuleAction action = metric.getA...
[ "0.5520374", "0.55111116", "0.5374215", "0.52469844", "0.506635", "0.4926807", "0.4812337", "0.47843695", "0.47843465", "0.4753947", "0.4749754", "0.47201362", "0.47144938", "0.4699542", "0.4699542", "0.46480232", "0.4623421", "0.45728636", "0.4564504", "0.45639288", "0.45618...
0.63055813
0
/ BILLPUGH BillPugh billPugh1 = BillPugh.getInstance(); BillPugh billPugh2 = BillPugh.getInstance(); System.out.println(billPugh1.hashCode()); System.out.println(billPugh2.hashCode()); / EAGE Eage eage1 = Eage.getInstance(); Eage eage2 = Eage.getInstance(); System.out.println(eage1==eage2); / DOUBLE CHECK
public static void main(String[] args) { final DoubleCheck[] doubleCheckThread1 = new DoubleCheck[2]; Thread thread1 = new Thread(new Runnable() { @Override public void run() { doubleCheckThread1[0] = DoubleCheck.getInstance(); } }); Thread thread2 = new Thread(new Runnable() { @Override public void run() { doubleCheckThread1[1] = DoubleCheck.getInstance(); } }); thread1.start(); thread2.start(); try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } System.out.println(doubleCheckThread1[0].hashCode()); System.out.println(doubleCheckThread1[1].hashCode()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testDeckHashCodeAgain() {\n\t\t\n\t\tStandardDeckClass oneDeck = new StandardDeckClass();\n\t\tVegasDeckClass testDeck = new VegasDeckClass();\n\t\t\t\n\t\tassertNotEquals(\"hashCode method not working as expected\", oneDeck.hashCode(), testDeck.hashCode());\n\t}", "public static void main(S...
[ "0.6891397", "0.66808367", "0.66343474", "0.6612112", "0.65991664", "0.6579714", "0.6558556", "0.6433654", "0.63952184", "0.63873374", "0.63763684", "0.6369571", "0.6365163", "0.6335451", "0.6323234", "0.62717235", "0.62691236", "0.6256636", "0.6166296", "0.6137639", "0.60955...
0.0
-1
CALCULA O SALDO AO DAR GET CONTA
public double Saldo(Long contaId) { double saldo = 0; Conta contaOrigem = new Conta(); contaOrigem.setId(contaId); Conta contaDestino = new Conta(); contaDestino.setId(contaId); List<Operacao> lista = _repository.findOperacoesPorConta(contaId); for (Operacao o : lista) { switch (o.getTipo()) { case "D": saldo += o.getValor(); break; case "S": saldo -= o.getValor(); break; case "T": if (contaId == o.getContaOrigem().getId()) saldo -= o.getValor(); if (contaId == o.getContaDestino().getId()) saldo += o.getValor(); break; default: break; } } return saldo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "public double calcular_costo() {\n\t\t return 1.3*p...
[ "0.7351939", "0.7279653", "0.7061219", "0.70588434", "0.69396096", "0.6815821", "0.67832065", "0.67596096", "0.67559916", "0.6733548", "0.665532", "0.6640337", "0.6631072", "0.65904903", "0.65818465", "0.6556086", "0.64790463", "0.6476072", "0.6475659", "0.64543813", "0.64312...
0.0
-1
OPERACAO SAQUE E DEPOSITO
public BaseResponse criar(OperacaoRequest operacaoRequest) { BaseResponse base = new BaseResponse(); Operacao operacao = new Operacao(); Conta conta = _contaRepository.findByHash(operacaoRequest.getHash()); if (conta == null) { base.StatusCode = 404; base.Message = "Conta não encontrada"; return base; } operacao.setTipo(operacaoRequest.getTipo()); operacao.setValor(operacaoRequest.getValor()); switch (operacaoRequest.getTipo()) { case "D": operacao.setContaDestino(conta); break; case "S": operacao.setContaOrigem(conta); break; } _repository.save(operacao); base.Message = "Operação Realizada"; base.StatusCode = 200; return base; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public long deposito(long deposito) {\n saldo += deposito;\r\n \r\n // Mediante un cuadro de dialogo se anuncia el nuevo saldo\r\n JOptionPane.showMessageDialog(null, \"Su nuevo saldo es: \" + saldo);\r\n\r\n return saldo;\r\n\r\n }", "public void depositar(...
[ "0.6967708", "0.6873891", "0.6769164", "0.676626", "0.66044486", "0.6549107", "0.64931357", "0.64601684", "0.64469975", "0.64287853", "0.63972366", "0.6353011", "0.6331246", "0.6318471", "0.6304717", "0.62965626", "0.627685", "0.6270742", "0.62590533", "0.6250477", "0.6248569...
0.0
-1
Programmatic equivalent to the user pressing the browser's 'back' button.
public static void back() { throw new UnsupportedOperationException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}", "public void back() {\n Views.goBack();\n }", "public static void back() {\n driver.navigate().back();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}", "public void back() ...
[ "0.8573913", "0.8415131", "0.82604796", "0.81821716", "0.8103174", "0.80729854", "0.80369943", "0.80095553", "0.7917665", "0.791547", "0.7900447", "0.7863516", "0.7782482", "0.7780284", "0.7780284", "0.7776339", "0.77714324", "0.7758122", "0.7749923", "0.7738923", "0.77372676...
0.0
-1
Programmatic equivalent to the user pressing the browser's 'forward' button.
public static void forward() { throw new UnsupportedOperationException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void navigateToForward() {\n WebDriverManager.getDriver().navigate().forward();\n }", "public static void navigateForward() {\n\t\tLOG.info(\"Navigate to forward page from current page.\");\n\t\tConstants.driver.navigate().forward();\n\n\t}", "public void navigate_forward() throws CheetahExcep...
[ "0.78330225", "0.75505644", "0.75186384", "0.7381051", "0.70810366", "0.7008362", "0.6834076", "0.66694796", "0.6662737", "0.6643331", "0.6591881", "0.6530397", "0.64896095", "0.6449805", "0.6429355", "0.64123535", "0.64034784", "0.64032346", "0.6399737", "0.6399592", "0.6396...
0.0
-1
There is no race condition here, since we guarded by the context.
private static HistoryImpl getImpl() { HistoryImpl impl = impls.get(Context.getCurrentContext()); if (impl == null) { impls.put(Context.getCurrentContext(), impl = new HistoryImpl()); Context.getCurrentContext().getClient().addListener(new GwtJavaClientListener() { @Override public void onFinish(GwtJavaClient client) { impls.remove(Context.getCurrentContext()); } }); } return impl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "@Override\n\tprotected Object run() {\n\t\treturn null;\n\t}", "prot...
[ "0.60014474", "0.59398854", "0.59398854", "0.5756396", "0.57456595", "0.5708804", "0.5708018", "0.5708018", "0.56927353", "0.56927353", "0.5689091", "0.5689091", "0.5689091", "0.56500566", "0.5629026", "0.5629026", "0.5629026", "0.5629026", "0.5629026", "0.5629026", "0.562902...
0.0
-1
Tests any blank input argument should give a list item command.
@Test public void parse_validArgs_returnsListItemCommand() throws ParseException { assertEquals(parser.parse(" ").getClass(), ListItemCommand.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testWithNonEmptyList() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(Arrays.asList(\"test\"));\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "public void testGetInputArguments...
[ "0.68270576", "0.6650011", "0.66188735", "0.6462866", "0.6348326", "0.61073965", "0.6074344", "0.602961", "0.6016289", "0.59415877", "0.58803314", "0.5790708", "0.5767698", "0.57307166", "0.5718988", "0.56820357", "0.56371075", "0.5632195", "0.56177914", "0.5600042", "0.55602...
0.67223275
1
Tests any nonblank input argument should display the relevant error message.
@Test public void parse_invalidArgs_throwsParseException() { assertParseFailure(parser, "a", String.format(MESSAGE_INVALID_COMMAND_FORMAT, ListItemCommand.MESSAGE_USAGE)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCheckString_EmptyArg() {\n try {\n...
[ "0.7188081", "0.7188081", "0.688832", "0.6713608", "0.6685402", "0.65864766", "0.65864766", "0.6569616", "0.65544045", "0.6524879", "0.65006083", "0.6487993", "0.64859813", "0.6440503", "0.64213216", "0.64189047", "0.6371341", "0.63651234", "0.6362357", "0.635321", "0.6349361...
0.61464804
35
double size of array if necessary if (N >= pq.length 1) resize(2 pq.length); add x, and percolate it up to maintain heap invariant
public void insert(Integer x) { pq[++N] = x; swim(N); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void resize() {\n Comparable[] temp = new Comparable[size * 2];\n for (int i = 0; i < pq.length; i++) {\n temp[i] = pq[i];\n }\n pq = temp;\n }", "private void heapify() {\n for (int i=N/2; i>=1; i--)\n sink(i);\n }", "private void grow() {\n ...
[ "0.7156616", "0.6994856", "0.68126863", "0.67828786", "0.6560696", "0.65358365", "0.64416736", "0.64044935", "0.63858753", "0.6246561", "0.6194262", "0.6174542", "0.61658496", "0.61392534", "0.61007726", "0.6087592", "0.604474", "0.6042213", "0.6039674", "0.6032737", "0.60320...
0.56006217
61
Find closest matching TbData entry
@Override public void processSyncDir(SyncDirId syncDirId, File syncDir) throws Exception { SyncDirId tbDataEntry = findMatchingTbDataEntry(syncDirId); //Verify each sync directory matches to EXACTLY one entry. LocalDateTime maxAllowableTimeV1 = syncDirId.dateTime.plusMinutes(maxTimeWindow); //If this file is due to major corruption, just bail out. File chkdiskFile = new File(syncDir, CHECK_DISK_REFORMAT); if (chkdiskFile.exists()) { SyncDirId previousSyncDir = foundSyncDirs.put(tbDataEntry, tbDataEntry); if (previousSyncDir != null) { validationErrors.add(new MultipleTbDatasMatchError(tbDataEntry.dirName, tbDataInfo.get(tbDataEntry).deviceName)); } return; } if (syncDir.list().length == 0) { validationErrors.add(new EmptySyncDirectory(syncDir)); return; } if (tbDataEntry == null || (manifest.formatVersion == 1 && maxAllowableTimeV1.isBefore(tbDataEntry.dateTime))) { validationErrors.add(new NoMatchingTbDataError(syncDirId.dirName, syncDir, manifest.formatVersion == 1 ? SyncDirId.SYNC_VERSION_1 : SyncDirId.SYNC_VERSION_2)); } else { SyncDirId previousSyncDir = foundSyncDirs.put(tbDataEntry, tbDataEntry); if (previousSyncDir != null) { validationErrors.add(new MultipleTbDatasMatchError(tbDataEntry.dirName, tbDataInfo.get(tbDataEntry).deviceName)); } OperationalInfo operationalInfo = tbDataInfo.get(tbDataEntry); List<IncorrectPropertyValue> incorrectPropertyValues = new LinkedList<>(); if (!currVillage.equalsIgnoreCase(operationalInfo.inVillage) && !"UNKNOWN".equalsIgnoreCase(operationalInfo.inVillage)) { incorrectPropertyValues.add(new IncorrectPropertyValue("Village", operationalInfo.inVillage, currVillage)); } if (!currTalkingBook.equalsIgnoreCase(operationalInfo.inTalkingBook)) { incorrectPropertyValues.add(new IncorrectPropertyValue("Talking Book", operationalInfo.inTalkingBook, currTalkingBook)); } if (!currDeploymentPerDevice.deployment.equalsIgnoreCase(operationalInfo.inDeploymentId)) { incorrectPropertyValues.add(new IncorrectPropertyValue("Deployment Id", operationalInfo.inDeploymentId, currDeploymentPerDevice.deployment)); } if (!currDeploymentPerDevice.device.equalsIgnoreCase(operationalInfo.deviceName)) { incorrectPropertyValues.add(new IncorrectPropertyValue("Device", operationalInfo.deviceName, currDeploymentPerDevice.device)); } if (!incorrectPropertyValues.isEmpty()) { File destFile = FileUtils.getFile(currDeploymentPerDevice.getRoot(currRoot, format), operationalInfo.inVillage, operationalInfo.inTalkingBook, syncDirId.dirName); validationErrors.add(new InvalidSyncDirError(syncDir, destFile, incorrectPropertyValues)); } } //Validate Manifest File SyncRange range = manifest.devices.get(currDeploymentPerDevice.device); Date startTime = range != null ? range.getStartTime() : null; Date endTime = range != null ? range.getEndTime() : null; if (startTime == null || endTime == null) { if (!deviceIncorrectlyInManifest.contains(currDeploymentPerDevice.device)) { validationErrors.add(new ManfestDoesNotContainDevice(currDeploymentPerDevice.device)); deviceIncorrectlyInManifest.add(currDeploymentPerDevice.device); } } else { Date syncDirDate = syncDirId.dateTime.toDate(); int startCompare = startTime.compareTo(syncDirDate); int endCompare = endTime.compareTo(syncDirDate); if (startCompare > 0 || endCompare < 0) { if (!deviceIncorrectlyInManifest.contains(currDeploymentPerDevice.device)) { validationErrors.add(new ManifestHasWrongDeviceRanges(currDeploymentPerDevice.device, startTime, endTime, syncDirId.dateTime, syncDir)); deviceIncorrectlyInManifest.add(currDeploymentPerDevice.device); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point2D nearest(Point2D p) {\n if (bst.isEmpty()) {\n return null;\n }\n\n Point2D nearest = null;\n double nearestDist = Double.POSITIVE_INFINITY;\n \n \n for (Point2D point: bst.keys()) {\n\n if (nearest == null \n || po...
[ "0.6102173", "0.6059855", "0.59694785", "0.59117067", "0.5755615", "0.5753628", "0.5749184", "0.57326657", "0.572698", "0.5699607", "0.5643479", "0.5639132", "0.5632059", "0.56303155", "0.5596697", "0.5592456", "0.5548667", "0.5540804", "0.55148757", "0.55013776", "0.5495323"...
0.0
-1
public static final String BASE_URL = " public static final String BASE_URL = "
public static BaseApiService getAPIService(){ return RetrofitClient.getClient(BASE_URL_HOSTING).create(BaseApiService.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getBaseUrl() {\n StringBuilder url = new StringBuilder();\n url.append(getProtocol());\n url.append(getHost());\n url.append(getPort());\n url.append(getVersion());\n url.append(getService());\n Log.d(TAG, \"url_base: \" + url.toString());\n ...
[ "0.69115984", "0.6604714", "0.645218", "0.6389425", "0.6389425", "0.6321133", "0.6237437", "0.6211921", "0.6209392", "0.61961085", "0.6155946", "0.61442566", "0.61426955", "0.6129342", "0.6074062", "0.60437095", "0.6001308", "0.5988782", "0.5985602", "0.59804857", "0.593723",...
0.0
-1
/ / / /
public static boolean block(int p_block_0_, int p_block_1_, MatchBlock[] p_block_2_) { /* 33 */ if (p_block_2_ == null) /* */ { /* 35 */ return true; /* */ } /* */ /* */ /* 39 */ for (int i = 0; i < p_block_2_.length; i++) { /* */ /* 41 */ MatchBlock matchblock = p_block_2_[i]; /* */ /* 43 */ if (matchblock.matches(p_block_0_, p_block_1_)) /* */ { /* 45 */ return true; /* */ } /* */ } /* */ /* 49 */ return false; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) ...
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.4915...
0.0
-1
/ / / /
public static boolean blockId(int p_blockId_0_, MatchBlock[] p_blockId_1_) { /* 55 */ if (p_blockId_1_ == null) /* */ { /* 57 */ return true; /* */ } /* */ /* */ /* 61 */ for (int i = 0; i < p_blockId_1_.length; i++) { /* */ /* 63 */ MatchBlock matchblock = p_blockId_1_[i]; /* */ /* 65 */ if (matchblock.getBlockId() == p_blockId_0_) /* */ { /* 67 */ return true; /* */ } /* */ } /* */ /* 71 */ return false; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) ...
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.4915...
0.0
-1
/ / / /
public static boolean metadata(int p_metadata_0_, int[] p_metadata_1_) { /* 77 */ if (p_metadata_1_ == null) /* */ { /* 79 */ return true; /* */ } /* */ /* */ /* 83 */ for (int i = 0; i < p_metadata_1_.length; i++) { /* */ /* 85 */ if (p_metadata_1_[i] == p_metadata_0_) /* */ { /* 87 */ return true; /* */ } /* */ } /* */ /* 91 */ return false; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) ...
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.4915...
0.0
-1
/ / / /
public static boolean sprite(TextureAtlasSprite p_sprite_0_, TextureAtlasSprite[] p_sprite_1_) { /* 97 */ if (p_sprite_1_ == null) /* */ { /* 99 */ return true; /* */ } /* */ /* */ /* 103 */ for (int i = 0; i < p_sprite_1_.length; i++) { /* */ /* 105 */ if (p_sprite_1_[i] == p_sprite_0_) /* */ { /* 107 */ return true; /* */ } /* */ } /* */ /* 111 */ return false; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) ...
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.4915...
0.0
-1
/ / / /
public static boolean biome(Biome p_biome_0_, Biome[] p_biome_1_) { /* 117 */ if (p_biome_1_ == null) /* */ { /* 119 */ return true; /* */ } /* */ /* */ /* 123 */ for (int i = 0; i < p_biome_1_.length; i++) { /* */ /* 125 */ if (p_biome_1_[i] == p_biome_0_) /* */ { /* 127 */ return true; /* */ } /* */ } /* */ /* 131 */ return false; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) ...
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.4915...
0.0
-1
author : zchu date : 2017/10/11 desc :
public interface IFlowableStrategy { <T> Publisher<CacheResult<T>> flow(RxCache rxCache, String key, Flowable<T> source, Type type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public void mo38117a() {\n }", "private void kk12() {\n\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Overrid...
[ "0.6255028", "0.5992246", "0.5951666", "0.59484124", "0.59303916", "0.5915475", "0.59037304", "0.5894087", "0.5887381", "0.5872301", "0.58572644", "0.58457243", "0.58207136", "0.5818278", "0.5818278", "0.5818278", "0.5818278", "0.5818278", "0.5818278", "0.5818278", "0.5815121...
0.0
-1
/ private static final Logger mLogger = LoggerFactory.getLogger(SessionManager.class.getPackage() .getName());
public HttpSessionManager() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SessionManager get();", "SessionManager getSessionManager() {\n\t\treturn sessionManager;\n\t}", "private Logger getLogger() {\n return LoggerFactory.getLogger(ApplicationManager.class);\n }", "public Slf4jSessionLogger() {\n super();\n for (String category : SessionLog.loggerCatagories)...
[ "0.6955912", "0.65501225", "0.6388052", "0.5939837", "0.5934847", "0.5927038", "0.5885131", "0.5874164", "0.58325577", "0.582166", "0.57460475", "0.5744821", "0.57395345", "0.57201916", "0.5694959", "0.56825954", "0.56803083", "0.5659474", "0.5659474", "0.5647709", "0.5605661...
0.6359041
3
apply the initial WakeupCriterion
public void initialize( ) { wakeupOn( m_WakeupCondition ); Color3f objColor = new Color3f( 1.0f, 0.1f, 0.2f ); Color3f black = new Color3f( 0.0f, 0.0f, 0.0f ); collideMaterial = new Material( objColor, black, objColor, black, 80.0f ); objColor = new Color3f( 0.0f, 0.1f, 0.8f ); missMaterial = new Material( objColor, black, objColor, black, 80.0f ); objectAppearance.setMaterial( missMaterial ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void wakeUp();", "public void onWakeUp() {\n\t\tbehaviour.onWakeUp();\n\t}", "public void wakeUp() {\n synchronized(WATCH_DOG){\n WATCH_DOG.notify();\n }\n }", "private void wakeUp() {\r\n\t\t// Wake up scheduling thread\r\n\t\tsynchronized (this) {\r\n\t\t\tnotify...
[ "0.60111403", "0.596853", "0.5871603", "0.58538765", "0.5730307", "0.5564937", "0.5389395", "0.53799", "0.5351402", "0.53306246", "0.52806103", "0.52517706", "0.52122736", "0.5202084", "0.51742613", "0.5158597", "0.51495856", "0.5146479", "0.5143633", "0.51179135", "0.5094502...
0.0
-1
Check is its a Modified Account.
private String transformRequest(String billingInfo) { boolean isModifiedAccount = billingInfo.indexOf("<GetBillingProfileInfoOut>") > 0; // Remove headers. int beginIndex; int endIndex; String result; if (isModifiedAccount) { beginIndex = billingInfo.indexOf("<GetBillingProfileInfoOut>") + 26; endIndex = billingInfo.indexOf("</GetBillingProfileInfoOut>"); result = billingInfo.substring(beginIndex, endIndex); // TODO Resolver melhor este problema. Pegar a data de aprovisionamento em algum lugar, ou ver qual o // impacto de se inserir uma data fixa ou atual no caso das contas MA. // Add mandatory fields that are not returned from GetAccountProfile webservice. result = "<Numero>" + getAccountId(billingInfo) + "</Numero> " + "<DataAprovisionamento>2015-01-01T08:20:26</DataAprovisionamento> " + "<Tipo>Modify Account</Tipo>" + result; } else { beginIndex = billingInfo.indexOf("<Ordem>") + 7; endIndex = billingInfo.indexOf("</Ordem>"); result = billingInfo.substring(beginIndex, endIndex); } // Set namespace prefix on starting and ending tags. result = result.replaceAll("</", "</cus:"); result = result.replaceAll("<([a-zA-Z])", "<cus:$1"); // Add new namespaces. result = "<transforme xmlns=\"http://billingRetail.gvt.com.br/\" " + " xmlns:cus=\"http://www.gvt.com.br/siebel/customerorderout\">" + "\n<crmData xmlns=\"\">".concat(result).concat("</crmData></transforme>"); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkChangeSavedAction(){\n ((AccountDetailFragment) getFragment(AccountDetailFragment.class)).syncData();\n if(mLastSaveAccount != null){\n return mLastSaveAccount.equalAllFields(mCurrentAccount);\n }else{\n return true;\n }\n }", "@Override\n\...
[ "0.61762416", "0.60865283", "0.6045756", "0.5883404", "0.58717984", "0.58717984", "0.58717984", "0.5856309", "0.5856309", "0.57845247", "0.5754274", "0.574051", "0.574051", "0.574051", "0.574051", "0.574051", "0.574051", "0.574051", "0.5735176", "0.57050437", "0.5700597", "...
0.0
-1
Start the worker threads
@PostConstruct public void init() throws UnknownHostException { for(int i = 0; i < requestTaskThreadSize; i++) { workerExecutor.execute(new OmcTestServiceRequestTask(requestQueue, deliveryQueue)); } for(int i = 0; i < deliveryTaskThreadSize; i++) { workerExecutor.execute(new OmcTestServiceDeliveryTask(deliveryQueue, omcServiceDiscovery, deliveryMode, omcObserverState, deliveryRetryCount)); } if(omcServiceRegistry != null) { String hostname = InetAddress.getLocalHost().getHostName(); String uri = hostname + ":" + omcObserverProperties.getServerPort() + servletContext.getContextPath(); omcServiceRegistry.registerService(omcServiceRegistryName, uri); logger.debug("Register service with path: " + omcServiceRegistryName + ", value: " + uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startThreads() {\n Listener listener = new Listener();\n Thread listenerThread = new Thread(listener);\n\n listenerThread.start();\n }", "public void startPopulateWorkers(){\r\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\r\n\t\t\r\n\t\t//Create threads\r\n\t\tfor...
[ "0.7437622", "0.7435889", "0.716852", "0.7050864", "0.7031944", "0.7016544", "0.69823515", "0.6902699", "0.68163776", "0.6662694", "0.6632451", "0.6630249", "0.6602902", "0.6557447", "0.6556127", "0.6548543", "0.64599687", "0.64421344", "0.6436119", "0.64299995", "0.6424639",...
0.0
-1
returns all jobssessions belonging to a session
public List<SessionDetails> getSessionDetails(JobStep js);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Session[] findSessions();", "List<Session> getAllSessions();", "public Collection<Long> getSessions() {\n return dataTree.getSessions();\n }", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Session> \n getSessionsList();", "public static List getAllSessions() {\n\t\tsynchron...
[ "0.7311079", "0.7177228", "0.68600553", "0.6843055", "0.67514664", "0.6630743", "0.65471834", "0.6460485", "0.6439722", "0.63929796", "0.63107854", "0.6309994", "0.6188103", "0.61792344", "0.61333394", "0.6122083", "0.59984714", "0.5964639", "0.59403235", "0.58942896", "0.588...
0.6267313
12
returns all jobssessions belonging to a single value of jobstep
public SessionDetails getSessionDetails(JobStep js, Sessions s);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<SessionDetails> getSessionDetails(JobStep js);", "public Session[] findSessions();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Session> \n getSessionsList();", "RunningTasks getActiveHarvestingSessions() throws RepoxException;", "public Collection<Long> getSessions() {\n ...
[ "0.6926238", "0.5779976", "0.5504138", "0.5448485", "0.528751", "0.5283118", "0.52606595", "0.52365506", "0.52134407", "0.5139393", "0.50986487", "0.50963175", "0.5015147", "0.49977314", "0.4994498", "0.49939165", "0.49504998", "0.49398854", "0.49323735", "0.49149814", "0.490...
0.58928645
1
Open the Chrome Driver
public static void main(String[] args) throws InterruptedException { ChromeDriver dr = new ChromeDriver(); // Wait (for the element to appear for the max time: 20) dr.manage().timeouts().implicitlyWait(300, TimeUnit.SECONDS); //Print the Browser name dr.getCapabilities().getBrowserName(); //Hitting the TestLeaf URL dr.get("http://www.leafground.com"); //Navigate to the droppable page WebElement selectableLink = dr.findElementByXPath("//h5[text()='Droppable']"); selectableLink.click(); //Collect the element information WebElement drag = dr.findElementById("draggable"); WebElement drop = dr.findElementById("droppable"); //Actions - drag the element and drop into the another element Actions builder = new Actions(dr); builder.dragAndDrop(drag,drop).perform(); //Close the browser dr.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void openBrowser() {\n ResourceBundle config = ResourceBundle.getBundle(\"config\");\n\n config.getString(\"browser\").equalsIgnoreCase(\"Chrome\");\n System.setProperty(\"webdriver.chrome.driver\", \"src/Drivers/chromedriver_76.0.exe\");\n driver = new ChromeDriver();\n\...
[ "0.7913869", "0.7609086", "0.7596333", "0.7567538", "0.7533575", "0.7485966", "0.7482611", "0.74628687", "0.74002063", "0.7397757", "0.73406756", "0.7256327", "0.7220863", "0.7215936", "0.72063845", "0.71403104", "0.7093594", "0.70895046", "0.70854485", "0.70180076", "0.70016...
0.0
-1
program to print hello world
public static void main(String[] args) { System.out.println("Hello World"); //program to print integer,character,string,float value /*int a=10; char b='a'; String s="Geekster"; double c=10.2; System.out.println(a+"\n"+b+"\n"+s+"\n"+c); */ //conditional statement program /*int a=10; if(a<7) { System.out.println("Geekster 1"); } else { System.out.println("Geekster 2"); } */ //program to find greatest of three no. /*int a=20,b=25,c=15; if(a>b) { if(b>c) { System.out.println(a); } else { System.out.println(c); } } else { if(b>c) { System.out.println(b); } else { System.out.println(c); } } */ //for loop program /*for(int i=0;i<5;i++) { System.out.println("Geekster"); } */ //program to convert temperature from celcius to fehrenheit /*int c=72; double f; f=((9/5)*c)+32; System.out.println(f); */ //program to calculate sum of first 10 no. /*int sum=0; for(int i=0;i<=10;i++) { sum+=i; } System.out.println(sum); */ //program to input two no. from user and find the sum /*Scanner sc=new Scanner(System.in); System.out.println("enter first no."); int a=sc.nextInt(); System.out.println("enter second no."); int b =sc.nextInt(); int c=a+b; System.out.println("total = "+c); */ //program to find greatest integer among the no. of input int from the user /*Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int max=Integer.MIN_VALUE; for(int i=0;i<a;i++) { int val=sc.nextInt(); if(val>max) { max=val; } } System.out.println(max); */ //program to find whether the no. is prime or not /*Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int n=0; for(int i=2;i<=Math.sqrt(a);i++) { if(a%i==0) { n+=1; } } if(n==0) { System.out.println("no. is prime"); } else { System.out.println("no. is not prime"); } */ //program to find whether the no. is prime or not /*Scanner sc=new Scanner(System.in); int a=sc.nextInt(); boolean isPrime=true; for(int i=2; i<=Math.sqrt(a);i++) { if(a%i==0) { isPrime=false; } } if(isPrime==true) { System.out.println(a+" is a prime no."); } else { System.out.println(a+" is not a prime no."); } */ //program to reverse a no. using function /*reverse(1237); } public static void reverse(int num) { int rem,rev=0; while(num>0) { rem=num%10; rev=rev*10+rem; num=num/10; } System.out.println(rev); } */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main (String [] args){\n System.out.println(\"Hello, Word\");\n }", "public static void main(String[] args) \r\n\t{\n\t\tSystem.out.println (\"hello there\");\r\n\t\t\r\n\t}", "public static void main(String[] args) {\nSystem.out.println(\"hello\");\r\nSystem.out.println(\"world\")...
[ "0.7941688", "0.7738381", "0.7728349", "0.77231896", "0.7708782", "0.7687926", "0.76182795", "0.7611924", "0.7593441", "0.757965", "0.75651014", "0.75548685", "0.7551926", "0.749657", "0.7489904", "0.747757", "0.74683756", "0.7388011", "0.73866165", "0.7383558", "0.7361304", ...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String s = "caaab"; String[] res = getUniqueSubstring(s,2); for(String a : res){ System.out.println(a); } }
{ "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
Creating objects for all three parent, child and grandchild
public static void main(String[] args) { InheritanceLevelsParent ParentObject = new InheritanceLevelsParent(); InheritanceLevelsChild ChildObject = new InheritanceLevelsChild(); InheritanceLevelsGrandChild GrandChild = new InheritanceLevelsGrandChild(); //calling parent's static methods by using all three parent's, child's and grandchild's objects. ParentObject.m1(10,20,30); ChildObject.m1(10,30,40); GrandChild.m1(10,20,30); //calling parent's instance methods by using all three parent's, child's and grandchild's objects. ParentObject.m2(3,3); ChildObject.m2(1,2); GrandChild.m2(1,2); //calling child's static methods by using both child's and grandchild's object. ChildObject.m3(3); GrandChild.m3(3); //calling grandchild's instance methods by using both child's and grandchild's object. ChildObject.m4(7); GrandChild.m4(8); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void constructLevelRelations( Callback c, int parent, int child ){\n String childID = getPartitionID( child );\n String parentID = getPartitionID( parent );\n List parents = new ArrayList(1);\n parents.add( parentID );\n c.cbParents( childID, parents );\n\n }", "pr...
[ "0.6242986", "0.61718", "0.6068498", "0.6060061", "0.6035018", "0.6030117", "0.59436905", "0.587486", "0.58258307", "0.5770259", "0.5768679", "0.5726887", "0.56794053", "0.56449854", "0.55902463", "0.558609", "0.5575334", "0.5567486", "0.5556171", "0.55447364", "0.5543415", ...
0.55767083
16
IHost remoteHost, Socket socket, int seqNum
@Override public Object handle(Object... args) { IHost remoteHost = (IHost) args[0]; Socket socket = (Socket) args[1]; int seqNum = (int) args[2]; IHost localhost = this.mediator.getSharedResource("localhost"); IPacket sPacket = new Packet(IProtocol.PROTOCOL, IProtocol.ATTACH_NOK, remoteHost.toString()); sPacket.setHeader(IProtocol.HOST, localhost.getHostAddress()); sPacket.setHeader(IProtocol.PORT, localhost.getPort() + ""); sPacket.setHeader(IProtocol.SEQ_NUM, seqNum + ""); try { sPacket.toStream(socket.getOutputStream()); socket.close(); Logger.getGlobal().log(Level.INFO, "Connection rejected to " + remoteHost); } catch (Exception e) { Logger.getGlobal().log(Level.SEVERE, "Could not send attach ok message to remote peer", e); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void populateRemoteHost() {\n\t\tthrow noSocket();\n\t}", "public SocketRemoteIdentifier(InetSocketAddress addr) {\n this.addr = addr;\n }", "public static void tcp_peeraddr_print( Socket com )\n{\n InetSocketAddress isa = \n (InetSocketAddress)com.getRemoteSocketAddres...
[ "0.616696", "0.5980661", "0.5972483", "0.59023803", "0.5799379", "0.57657176", "0.57228416", "0.5637905", "0.5589938", "0.55420905", "0.55411047", "0.5500905", "0.54948723", "0.54620105", "0.5437548", "0.5436212", "0.54347384", "0.537961", "0.53682727", "0.5364526", "0.536409...
0.6296563
0
TODO Autogenerated method stub
public static void main(String[] args){ Scanner sc = new Scanner(System.in); A = sc.nextLong(); B = sc.nextLong(); C = sc.nextLong(); // if(B==0) { // System.out.println(1); // }else { // D=namuji(A,B); // System.out.println(D); // } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void 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
private static long namuji(long a, long b) { long temp = 0; if(b == 1 ) { return a%C; } if(b%2==0) { temp = namuji(a,b/2); return (temp*temp)%C; }else { temp = namuji(a,(b-1)/2); long temp2 = (temp*temp)%C; return (A*temp2)%C; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void 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
/ Special abilities will probably be implemented as functions I.E. doubledump will call doublejump(); This might be useful once abilities are more complicated IF they get more complicated.
public void doublejump(){ //jump a second time. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void specialAbility() {\n\t}", "public void performAbility() { return; }", "private void functionalInterface2() {\n\t\tPokedex.printData(Arrays.asList(charmander));\n\n\t\tguilherme.powerUp(charmander, new BigDecimal(\"-10\"), psRestoreHp // 100\n\t\t\t\t.and(psMinimalDamage) // -10\n\t\t...
[ "0.72702605", "0.6673751", "0.64186996", "0.6356807", "0.6167479", "0.6094971", "0.60476017", "0.60148513", "0.60045016", "0.5982192", "0.5952245", "0.59123576", "0.58977914", "0.58749557", "0.58587795", "0.5840581", "0.58130664", "0.5805898", "0.58046645", "0.5786977", "0.57...
0.5458198
84
/ Getters and Setters
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n public void get() {}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void setdat()\n {\n }", "public void get() {\n }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", ...
[ "0.6793725", "0.66366845", "0.65605664", "0.6458844", "0.62827885", "0.62158823", "0.6172911", "0.6113601", "0.6080991", "0.6030207", "0.6002496", "0.5975091", "0.5970083", "0.5950412", "0.5937579", "0.5934836", "0.59142685", "0.58957744", "0.58908737", "0.5822043", "0.581260...
0.0
-1
Get all the projectTransactionRecords.
@Override @Transactional(readOnly = true) public Page<ProjectTransactionRecordDTO> findAll(Pageable pageable) { log.debug("Request to get all ProjectTransactionRecords"); return projectTransactionRecordRepository.findAll(pageable) .map(projectTransactionRecordMapper::toDto); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Transaction> getAllTransactions(){\n Cursor cursor = fetchAllRecords();\n List<Transaction> transactions = new ArrayList<Transaction>();\n if (cursor != null){\n while(cursor.moveToNext()){\n transactions.add(buildTransactionInstance(cursor));\n ...
[ "0.6953366", "0.6750172", "0.67233837", "0.65589476", "0.63078755", "0.6274947", "0.6219856", "0.6188341", "0.6144351", "0.6125033", "0.60916674", "0.60828614", "0.60192585", "0.60168785", "0.60104734", "0.6007248", "0.59918654", "0.5977298", "0.5967299", "0.59654695", "0.594...
0.6792146
1
Get one projectTransactionRecord by id.
@Override //@Transactional(readOnly = true) public ProjectTransactionRecordDTO findOne(Long id) { log.debug("Request to get ProjectTransactionRecord : {}", id); ProjectTransactionRecord projectTransactionRecord = projectTransactionRecordRepository.findOne(id); return projectTransactionRecordMapper.toDto(projectTransactionRecord); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Transactional(readOnly = true) \n public TaskProject findOne(Long id) {\n log.debug(\"Request to get TaskProject : {}\", id);\n TaskProject taskProject = taskProjectRepository.findOne(id);\n return taskProject;\n }", "public Transaction getById(String id) throws Exception;", "public...
[ "0.7321836", "0.7080937", "0.7055571", "0.7027632", "0.69683206", "0.6818796", "0.6785648", "0.6723935", "0.6704551", "0.66838515", "0.66679317", "0.6640429", "0.6639581", "0.66192615", "0.6613793", "0.6589097", "0.6586242", "0.6579297", "0.65696293", "0.65536934", "0.6543183...
0.8126617
0
Delete the projectTransactionRecord by id.
@Override public void delete(Long id) { log.debug("Request to delete ProjectTransactionRecord : {}", id); projectTransactionRecordRepository.delete(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteTransactionById(int id);", "public void deleteTransaction(int id) throws SQLException {\n String sql = \"DELETE FROM LabStore.Transaction_Detail WHERE id = ?\";\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n ...
[ "0.7400054", "0.69548064", "0.6836855", "0.6810402", "0.6670854", "0.6657906", "0.66446036", "0.6588716", "0.65427345", "0.6523623", "0.64929914", "0.6460434", "0.6437078", "0.64091265", "0.6408715", "0.6407049", "0.64049816", "0.6378089", "0.63346875", "0.6260683", "0.624146...
0.8574482
0
load handler form handler map SpiHandler handler = springHandlerFactory.loadHandler(provider); return handler.handle(request); }}
@Override public SpiServiceResult handle(SpiServiceProvider provider, SpiServiceRequest request) {
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Object getHandlerInternal(HttpServletRequest request) {\n String lookupPath = WebUtils.getLookupPathForRequest(request, this.alwaysUseFullPath);\n logger.debug(\"Looking up handler for: \" + lookupPath);\n return lookupHandler(lookupPath);\n }", "private Handler getHandler(Reque...
[ "0.69751954", "0.6875183", "0.68485576", "0.6805224", "0.66855377", "0.6537387", "0.65150356", "0.6466758", "0.6369515", "0.6301285", "0.61613816", "0.61395484", "0.60948163", "0.60630304", "0.5982013", "0.59434533", "0.59264344", "0.5891289", "0.587948", "0.5819625", "0.5815...
0.5883533
18
Overwrite this method to get triggered for each test message.
public void textReceived(String receivedText) throws SkypeException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n \tprotected void trigger(TriggerMessage message) {\n \t\tthis.getDataObjectService().saveObject(this.getUniqueProcessId(), message.getProcessInstanceId(), message.getPayload());\n \t\t\n \t\teventDefinition.trigger(message);\n \t\t\n \t\tthis.getNodeInstanceMediatorService().setNodeInstanceEndTime(mess...
[ "0.5851819", "0.5851623", "0.578071", "0.5746683", "0.5707367", "0.56937146", "0.5692999", "0.5687062", "0.56482595", "0.5624811", "0.5624105", "0.5622012", "0.5609799", "0.5603279", "0.5600082", "0.55982774", "0.55969757", "0.5576892", "0.5576414", "0.557152", "0.5524772", ...
0.0
-1
Overwrite this method to get triggered for each datagram message.
public void datagramReceived(String receivedDatagram) throws SkypeException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void onNewDatagram(SimpleAsciiProtocol.Datagram datagram) {\n }", "void processAllMessages() {\n ArrayList<HdmiCecMessage> copiedBuffer = new ArrayList<>(mBuffer);\n mBuffer.clear();\n for (HdmiCecMessage message : copiedBuffer) {\n mDevi...
[ "0.6763387", "0.5908836", "0.5538014", "0.55297875", "0.5470456", "0.54086775", "0.5325415", "0.53186804", "0.5314278", "0.53026605", "0.52983934", "0.52901924", "0.5289412", "0.52885455", "0.5263529", "0.52500194", "0.52378535", "0.5226942", "0.5224025", "0.521286", "0.51855...
0.5301825
10
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: au.net.electronichealth.ns.pcehr.xsd.interfaces.getindividualdetailsview._2
public ObjectFactory() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "XUMLRTFactory getXUMLRTFactory();", "public interface MyHdbtiFactory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n MyHdbtiFactory eINSTANCE = com.sap.xsk.models.hdbti.myHdbti.impl.MyHdbtiFactoryImpl.ini...
[ "0.6243171", "0.61545295", "0.5967933", "0.59365916", "0.591781", "0.58928114", "0.58382183", "0.5790513", "0.57727814", "0.5761691", "0.5754344", "0.57327276", "0.5723517", "0.57077366", "0.5698516", "0.5692462", "0.5689036", "0.5684076", "0.5680069", "0.5674064", "0.5652801...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println("ddhdhg"); }
{ "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
Strings constantes para el XML.
public interface XmlProjectTags { public static String SVG = "svg"; public static final String GROUP = "g"; public static final String RECT = "rect"; public static final String PATH = "path"; public static final String ELLIPSE = "ellipse"; public static final String LINE = "line"; public static final String IMAGE = "image"; public static final String METADATA = "metadata"; public static final String TITULO = "id"; public static final String VIEWBOX = "viewBox"; public static final String XMLNS = "xmlns"; public static final String XMLNS_XLINK = "xmlns:xlink"; public static final String ID = "id"; public static final String FILL = "fill"; public static final String FILL_OPACITY = "fill-opacity"; public static final String POINTER_EVENTS = "pointer-events"; public static final String STROKE = "stroke"; public static final String STROKE_DASHARRAY = "stroke-dasharray"; public static final String STROKE_OPACITY = "stroke-opacity"; public static final String STROKE_WIDTH = "stroke-width"; public static final String D = "d"; public static final String OPACITY = "opacity"; public static final String X = "x"; public static final String Y = "y"; public static final String WIDTH = "width"; public static final String HEIGHT = "height"; public static final String CX = "cx"; public static final String CY = "cy"; public static final String RX = "rx"; public static final String RY = "ry"; public static final String X1 = "x1"; public static final String X2 = "x2"; public static final String Y1 = "y1"; public static final String Y2 = "y2"; public static final String POINTS = "points"; public static final String POLYLINE = "polyline"; public static final String POLYGON = "polygon"; public static final String STR = "str"; public static final String TEXT = "text"; public static final String FONTFAMILY = "font-family"; public static final String FONTSIZE = "font-size"; public static final String XLINKHREF = "xlink:href"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface XMLConstants {\r\n /** Descriptors are placed into this special package relative to the generated source. */\r\n String DESCRIPTOR_PACKAGE = \"descriptors\";\r\n\r\n /** This suffix is added to a class name to make its descriptor. */\r\n String DESCRIPTOR_SUFFIX = \"Descriptor\";\r\...
[ "0.67617494", "0.66917187", "0.6296198", "0.624769", "0.6244644", "0.5948547", "0.58795744", "0.5877278", "0.5873312", "0.58662176", "0.5841445", "0.5835125", "0.5800768", "0.57811785", "0.5776677", "0.5775672", "0.5775672", "0.5748567", "0.57482207", "0.57170063", "0.5714116...
0.5228853
79
Instantiates a new dsl exception.
public DslException(IOException e) { super(e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Exception() {\n\t\t\tsuper();\n\t\t}", "public Exception() {\n\tsuper();\n }", "public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }", "public SMSLibException() {}", "public EmailException()\n {\n super();\n }", "public...
[ "0.6561308", "0.6348876", "0.63413733", "0.63164514", "0.626714", "0.6251039", "0.62164795", "0.6177571", "0.61751896", "0.6172068", "0.6160416", "0.6151434", "0.61360973", "0.61349934", "0.6124429", "0.6115487", "0.6112312", "0.6093635", "0.60631055", "0.60159475", "0.600909...
0.57721645
45
Instantiates a new dsl exception.
public DslException(String message, Exception e) { super(message, e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Exception() {\n\t\t\tsuper();\n\t\t}", "public Exception() {\n\tsuper();\n }", "public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }", "public SMSLibException() {}", "public EmailException()\n {\n super();\n }", "public...
[ "0.6561308", "0.6348876", "0.63413733", "0.63164514", "0.626714", "0.6251039", "0.62164795", "0.6177571", "0.61751896", "0.6172068", "0.6160416", "0.6151434", "0.61349934", "0.6124429", "0.6115487", "0.6112312", "0.6093635", "0.60631055", "0.60159475", "0.6009095", "0.599461"...
0.61360973
12
Instantiates a new dsl exception.
public DslException(String message, Throwable cause) { super(message, cause); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Exception() {\n\t\t\tsuper();\n\t\t}", "public Exception() {\n\tsuper();\n }", "public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }", "public SMSLibException() {}", "public EmailException()\n {\n super();\n }", "public...
[ "0.6561308", "0.6348876", "0.63413733", "0.63164514", "0.626714", "0.6251039", "0.62164795", "0.6177571", "0.61751896", "0.6172068", "0.6160416", "0.6151434", "0.61360973", "0.61349934", "0.6124429", "0.6115487", "0.6112312", "0.6093635", "0.60631055", "0.60159475", "0.600909...
0.5590223
77
Instantiates a new dsl exception.
public DslException(String message) { super(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Exception() {\n\t\t\tsuper();\n\t\t}", "public Exception() {\n\tsuper();\n }", "public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }", "public SMSLibException() {}", "public EmailException()\n {\n super();\n }", "public...
[ "0.6561308", "0.6348876", "0.63413733", "0.63164514", "0.626714", "0.6251039", "0.62164795", "0.6177571", "0.61751896", "0.6172068", "0.6160416", "0.6151434", "0.61360973", "0.61349934", "0.6124429", "0.6115487", "0.6112312", "0.6093635", "0.60631055", "0.60159475", "0.600909...
0.59083503
27