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
TODO Autogenerated method stub
protected AbstractRenderer createRenderer(final IScope scope, final String serieid) { return new XYErrorRenderer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override protected void updateImage(final IScope scope) { }
{ "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
Creates new form CompanyAndDivision_Binding
public CompanyAndDivision_Binding() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CompanyDetail() {\n initComponents();\n financialYearFrom.setFormat(1);\n booksBeginDate.setFormat(1);\n logo.setIcon(imageGet.getDefaultCompanyLogo());\n bindingGroup.addBindingListener(new AbstractBindingListener() {\n\n @Override\n public void targ...
[ "0.5928772", "0.58036536", "0.57924247", "0.5718117", "0.5714938", "0.5600638", "0.5525192", "0.5521997", "0.55109435", "0.5504687", "0.5455618", "0.5434242", "0.5409669", "0.53969765", "0.539449", "0.53904814", "0.5383626", "0.5377376", "0.5356142", "0.5352244", "0.53353703"...
0.7345199
0
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(); jLabel1 = new javax.swing.JLabel(); jComboBox1 = new javax.swing.JComboBox(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jComboBox2 = new javax.swing.JComboBox(); jButton1 = new javax.swing.JButton(); jPanel2 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jPanel3 = new javax.swing.JPanel(); jTextField1 = new javax.swing.JTextField(); jTextField2 = new javax.swing.JTextField(); jButton3 = new javax.swing.JButton(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jComboBox3 = new javax.swing.JComboBox(); jLabel7 = new javax.swing.JLabel(); jButton6 = new javax.swing.JButton(); jButton5 = new javax.swing.JButton(); jTextField3 = new javax.swing.JTextField(); jTextField4 = new javax.swing.JTextField(); jButton2 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jPanel1.setBackground(new java.awt.Color(0, 102, 102)); jPanel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jPanel1.setForeground(new java.awt.Color(255, 255, 255)); jPanel1.setFont(new java.awt.Font("Times New Roman", 0, 11)); // NOI18N jLabel1.setBackground(new java.awt.Color(0, 102, 102)); jLabel1.setForeground(new java.awt.Color(255, 255, 255)); jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel1.setText("Company & Division Binding "); jLabel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jComboBox1.setBackground(new java.awt.Color(0, 102, 102)); jComboBox1.setForeground(new java.awt.Color(255, 255, 255)); jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Please Select" })); jLabel2.setBackground(new java.awt.Color(0, 102, 102)); jLabel2.setForeground(new java.awt.Color(255, 255, 255)); jLabel2.setText("Company"); jLabel3.setBackground(new java.awt.Color(0, 102, 102)); jLabel3.setForeground(new java.awt.Color(255, 255, 255)); jLabel3.setText("Division"); jComboBox2.setBackground(new java.awt.Color(0, 102, 102)); jComboBox2.setForeground(new java.awt.Color(255, 255, 255)); jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Please Select" })); jButton1.setBackground(new java.awt.Color(0, 102, 102)); jButton1.setForeground(new java.awt.Color(255, 255, 255)); jButton1.setText("Bind "); jButton1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton1MouseClicked(evt); } }); jTable1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null}, {null, null, null}, {null, null, null}, {null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3" } )); jScrollPane1.setViewportView(jTable1); jPanel3.setBackground(new java.awt.Color(0, 102, 102)); jPanel3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jPanel3.setForeground(new java.awt.Color(255, 255, 255)); jTextField1.setFont(new java.awt.Font("Times New Roman", 1, 11)); // NOI18N jTextField2.setFont(new java.awt.Font("Times New Roman", 1, 11)); // NOI18N jButton3.setBackground(new java.awt.Color(0, 102, 102)); jButton3.setForeground(new java.awt.Color(255, 255, 255)); jButton3.setText("Release /Un-Bind"); jButton3.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton3MouseClicked(evt); } }); jLabel4.setBackground(new java.awt.Color(0, 102, 102)); jLabel4.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N jLabel4.setForeground(new java.awt.Color(255, 255, 255)); jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel4.setText("UnBind The Division from its Parent Company"); jLabel4.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jLabel5.setBackground(new java.awt.Color(0, 102, 102)); jLabel5.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N jLabel5.setForeground(new java.awt.Color(255, 255, 255)); jLabel5.setText("Division"); jLabel6.setBackground(new java.awt.Color(0, 102, 102)); jLabel6.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N jLabel6.setForeground(new java.awt.Color(255, 255, 255)); jLabel6.setText("Current Parent Company"); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap(85, Short.MAX_VALUE) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE) .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(13, 13, 13) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE) .addComponent(jTextField2) .addComponent(jTextField1)) .addGap(28, 28, 28)) .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextField1) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(25, 25, 25) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton3) .addGap(309, 309, 309)) ); jComboBox3.setBackground(new java.awt.Color(0, 153, 153)); jComboBox3.setForeground(new java.awt.Color(255, 255, 255)); jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Please Select" })); jLabel7.setText("Division"); jButton6.setBackground(new java.awt.Color(0, 102, 102)); jButton6.setForeground(new java.awt.Color(255, 255, 255)); jButton6.setText("Check Selected Division's Bind"); jButton6.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton6MouseClicked(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() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) .addGap(2, 2, 2)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(95, 95, 95))) .addGap(5, 5, 5) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7) .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(20, 20, 20) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel2Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton6) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1)))) ); jButton5.setBackground(new java.awt.Color(0, 102, 102)); jButton5.setForeground(new java.awt.Color(255, 255, 255)); jButton5.setText("Go HomePage"); jButton5.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton5MouseClicked(evt); } }); jTextField3.setEditable(false); jTextField3.setBackground(new java.awt.Color(0, 102, 102)); jTextField3.setForeground(new java.awt.Color(255, 255, 255)); jTextField4.setEditable(false); jTextField4.setBackground(new java.awt.Color(0, 102, 102)); jTextField4.setForeground(new java.awt.Color(255, 255, 255)); jButton2.setBackground(new java.awt.Color(0, 102, 102)); jButton2.setFont(new java.awt.Font("Times New Roman", 0, 14)); // NOI18N jButton2.setForeground(new java.awt.Color(255, 255, 255)); jButton2.setText("View Selected Company's Current Bind"); jButton2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jButton2.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton2MouseClicked(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 594, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField4) .addGap(20, 20, 20)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(48, 48, 48) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 194, Short.MAX_VALUE)) .addGap(97, 97, 97) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jComboBox1, 0, 213, Short.MAX_VALUE) .addComponent(jComboBox2, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(18, 18, 18) .addComponent(jButton2) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 163, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButton2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton1) .addGap(4, 4, 4) .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(0, 0, 0)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7318655", "0.7289971", "0.7289971", "0.7289971", "0.72860885", "0.7247684", "0.7213551", "0.72080934", "0.7195069", "0.7189731", "0.7183451", "0.71579945", "0.7147311", "0.7092687", "0.70798934", "0.7055229", "0.69868284", "0.6976656", "0.6954658", "0.6952896", "0.69449455...
0.0
-1
/TestThis tt = new TestThis("aa", 17); System.out.println(tt.);
public static void main(String[] args) { TestThis tt1 = new TestThis(); //属性和方法都要通过对象.方法和对象.属性进行调用 tt1.fun2(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Test(int someConstructorParameter) {\n //inlineTestComment\n }", "public Test05() {\n this(0);\n n2 = \"n2\";\n n4 = \"n4\";\n }", "public static void main(String args[]) \n {\n\t\t\t\t\t\t\t\t\t\t\ttest t = new test(); \n System.out.println(\"...
[ "0.62192327", "0.5911868", "0.57595044", "0.5756788", "0.5673653", "0.5653754", "0.56207335", "0.5619226", "0.5589497", "0.5586711", "0.5566659", "0.55254686", "0.55027336", "0.5491896", "0.5470471", "0.5455436", "0.54453313", "0.5432081", "0.5425351", "0.54228926", "0.541003...
0.0
-1
Order Repository Date Author IT No. Description 1 05102021 MiyuruW IT19020990 Created
@Repository public interface OrderRepository extends JpaRepository<Order, Long> { public List<Order> findByStatus(String status); public Optional<Order> findByBuyerIdAndPaidStatus(Long buyerId, String paidStatus); public Boolean existsByBuyerIdAndPaidStatus(Long buyerId, String paidStatus); public Optional<Order> findByIdAndStatus(Long id, String status); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getOrderDate();", "String getOrderDate(){\n\t\treturn this.orderDate;\n\t}", "public String getOrderDate() {\r\n\t\treturn orderDate;\r\n\t}", "public StrColumn getDateAuthorReleaseRequest() {\n return delegate.getColumn(\"date_author_release_request\", DelegatingStrColumn::new);\n ...
[ "0.64821196", "0.6064584", "0.5842706", "0.58087486", "0.57855296", "0.57802045", "0.57784206", "0.57750493", "0.5770216", "0.5725763", "0.5725763", "0.5667897", "0.5635134", "0.5626055", "0.55843383", "0.5578948", "0.55713755", "0.55662775", "0.554625", "0.55303365", "0.5525...
0.0
-1
Given weights and values of N items, put these in a knapsack of max capacity W to get the max value split items
public static int recursiveKnapsack2(int[] weights, int[] values, int capacity) { return recursiveKnapsackHelper2(weights, values, capacity, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args){ w = the total weight\n\t\t// i = item i\n\t\t// m[i, w] = maximum value attained with weight <= w using items up to i\n\t\t//\n\t\t// recurrence relation:\n\t\t// m[0, w] = 0, if there's zero items, the sum is zero\n\t\t// m[i, w] = m[i-1, w], if w(i) > w, the new item's wei...
[ "0.7548305", "0.7529195", "0.7323159", "0.72849435", "0.72464085", "0.72303796", "0.7199992", "0.7194461", "0.71871287", "0.71589935", "0.70870256", "0.7046817", "0.7039828", "0.69836545", "0.6950634", "0.6930651", "0.67799944", "0.67601466", "0.6711374", "0.66544634", "0.664...
0.6182034
33
Formats an enum name like "BRO_SUP" to "Bro Sup"
public static String formatEnumName(String name) { String[] words = name.replace('_', ' ').split("\\s"); StringBuilder formatted = new StringBuilder(name.length()); for (String word : words) { formatted.append(word.substring(0, 1).toUpperCase()); formatted.append(word.substring(1).toLowerCase()); formatted.append(' '); } return formatted.toString().trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String out_name(Enum<?> e) {\n return e.name().toLowerCase();\n }", "public String convertEnum()\n {\n \tswitch (pattern.ordinal())\n \t{\n \tcase 0:\n \t\treturn \"Red Cards\";\n \tcase 1:\n \t\treturn \"Black Cards\";\n \tcase 2:\n \t\treturn \"Hearts\";\n \tcase 3:\n ...
[ "0.69181865", "0.67265815", "0.6394363", "0.6140339", "0.6053319", "0.5995961", "0.598275", "0.5941216", "0.58614653", "0.5801374", "0.57595044", "0.5687911", "0.56466043", "0.56443465", "0.563354", "0.5615969", "0.560549", "0.5598255", "0.55903333", "0.556476", "0.5529797", ...
0.7759896
0
All users are from the database, just check that they exist
public boolean isUserAllowedDatabaseAccess(String dbname,String username) { return manager.getAccount(manager.getSystemSubject(), username)!=null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean usersFilled() throws SQLException {\n\t\ttry {\n\t\t\tif (getUsers().last() == true) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "private static boolean doesUserExist () {\n String sqlRetrieveAi...
[ "0.7285229", "0.72088283", "0.7073702", "0.70732117", "0.69571865", "0.6927106", "0.688983", "0.68850905", "0.6846944", "0.6819899", "0.68151754", "0.6790931", "0.67895335", "0.678046", "0.6779771", "0.67641807", "0.6752957", "0.674833", "0.67209816", "0.67001116", "0.6699739...
0.0
-1
Method that recursively calls itself to create a String of type Expression and its children that starts at the given indent level.
public void convertToString(StringBuilder stringBuilder, int indentLevel) { indent(stringBuilder, indentLevel); stringBuilder.append(_data); stringBuilder.append('\n'); for (Expression expr : _children) { expr.convertToString(stringBuilder, indentLevel + 1); } System.out.println(stringBuilder.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String indentedToString( int level ){\n\n\t\tString answer = \n\t\t\t\"ProgramNode.\" \n\t\t\t+ \" Name: \" + name \n\t\t\t+ \"\\n\"\n\t\t\t+ variables.indentedToString( level + 1 )\n\t\t\t+ functions.indentedToString( level + 1 )\n\t\t\t+ main.indentedToString( level + 1 );\n\n\t\treturn answer;\n\n\t}", ...
[ "0.6119658", "0.6069977", "0.59891057", "0.5945511", "0.58132505", "0.5768415", "0.5749317", "0.572812", "0.5695167", "0.55685884", "0.5537058", "0.5502451", "0.54996246", "0.5451215", "0.537747", "0.5367752", "0.53506273", "0.53195626", "0.5315591", "0.52938986", "0.5291714"...
0.53696376
15
Helper method for indentation for StirngBuilder
public static void indent(StringBuilder stringBuilder, int indentLevel) { for(int i = 0; i < indentLevel; i++) { stringBuilder.append('\t'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SourceGenerator writeIndent(){\r\n\t\tm_indenter.writeIndent();\r\n\t\treturn this;\r\n\t}", "public void indent()\n {\n indent += 1;\n }", "public TypescriptStringBuilder indent() {\n indent(1);\n return this;\n }", "private String indent(int level) throws IOException {\...
[ "0.7074311", "0.7000415", "0.6993157", "0.6912986", "0.6736929", "0.6736922", "0.67366517", "0.6707755", "0.6705961", "0.6674937", "0.6666642", "0.6586866", "0.6526474", "0.64832157", "0.6480764", "0.64304495", "0.64287937", "0.63570166", "0.63490355", "0.63135415", "0.630370...
0.57763
46
Returns the expression's parent
public CompoundExpression getParent() { return _parent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CompoundExpression getParent (){\n return _parent;\n }", "public ASPMSyntaxElement getParent() {\n\t\treturn parent;\n\t}", "protected LambdaTerm getParent() { return parent; }", "static AST getChainParent(JavaNode node)\n {\n JavaNode parent = node.getParent();\n\n switch ...
[ "0.8334176", "0.72493875", "0.7240001", "0.7176433", "0.71076155", "0.71062183", "0.7059101", "0.7057941", "0.7045941", "0.7040517", "0.70291156", "0.7028553", "0.70195043", "0.69844663", "0.6924769", "0.6923848", "0.68255323", "0.68215865", "0.68128973", "0.6798222", "0.6783...
0.8296533
1
Sets the parent to the specified parent expression
public void setParent (CompoundExpression parent) { _parent = parent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParent (CompoundExpression parent){\n _parent = parent;\n }", "public void setParent(ASPMSyntaxElement parent) {\n\t\tassert this.parent == null;\n\t\tthis.parent = parent;\n\t}", "public CompoundExpression getParent (){\n return _parent;\n }", "<E extends CtElement> E setP...
[ "0.84111786", "0.7659562", "0.7359647", "0.732304", "0.7278923", "0.7250969", "0.7250284", "0.7242638", "0.7241882", "0.7234666", "0.71893185", "0.70912343", "0.70394635", "0.70077354", "0.69787383", "0.69659775", "0.6938055", "0.69264835", "0.6915528", "0.6899613", "0.689446...
0.82365084
1
Creates and returns a deep copy of the expression. The entire tree rooted at the target node is copied, i.e., the copied Expression is as deep as possible.
public Expression deepCopy() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Expression deepCopy (){\n return new LiteralExpression(_value);\n }", "@Override\n\tpublic Expression copy() {\n\t\treturn null;\n\t}", "public static Expression getCopy(Expression exp) {\n\t\tExpression expcopy = (Expression) EcoreUtil.copy(exp);\t\n\t\treturn expcopy;\n\t}", "@Override\n ...
[ "0.7156641", "0.712613", "0.6914317", "0.68813556", "0.6844225", "0.682257", "0.6811502", "0.66287255", "0.66161233", "0.65596265", "0.655737", "0.64636934", "0.6434252", "0.6313185", "0.62648034", "0.61821586", "0.61561924", "0.6083037", "0.60791796", "0.6074434", "0.6060248...
0.73589134
0
Recursively flattens the expression as much as possible throughout the entire tree. Specifically, in every multiplicative or additive expression x whose first or last child c is of the same type as x, the children of c will be added to x, and c itself will be removed. This method modifies the expression itself.
public void flatten() { if (_children.size() > 0) { int i = 0; while(i < _children.size()) { ExpressionNode subExpr = _children.get(i); subExpr.flatten(); if (_data.equals(subExpr._data)) { _children.addAll(subExpr._children); _children.remove(subExpr); } i++; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Expression simplifyMore() {\n Expression left = super.getLeft();\n Expression right = super.getRight();\n\n // x * x -> x^2\n if (left.toString().equals(right.toString())) {\n return new Pow(left, 2);\n }\n\n // ((2.0 * x) * (x * 3.0)) -> 6...
[ "0.5543289", "0.5537302", "0.55143815", "0.5491031", "0.54503906", "0.5303333", "0.52905786", "0.51780254", "0.515111", "0.5031766", "0.4960613", "0.49399754", "0.48779783", "0.48620737", "0.4859584", "0.48592895", "0.48391742", "0.48328793", "0.47282717", "0.47133532", "0.47...
0.6975767
0
/+ END BAJA AUTO GENERATED CODE +
public BNHaystackLearnStructureJob() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo38117a() {\n }", "public void mo4359a() {\n }", "public void mo115190b() {\n }", "public final void mo51373a() {\n }", "public static void generateCode()\n {\n \n }", "public void mo12930a() {\n }", "public void mo21782G() {\n }", "public v...
[ "0.71499187", "0.6954521", "0.6954348", "0.6900293", "0.6896463", "0.68500113", "0.6822028", "0.6804999", "0.67675227", "0.6764697", "0.6756089", "0.67162997", "0.66883165", "0.6688309", "0.6672509", "0.66664565", "0.66554", "0.66554", "0.66554", "0.66554", "0.66554", "0.66...
0.0
-1
User user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); String name = user.getUsername(); //get logged in username simpMessageHeaderAccessor.getSessionAttributes().put("username",message.getAuthor());
@MessageMapping("/chat.register") @SendTo("/topic/public") public Message register(@Payload Message message, SimpMessageHeaderAccessor simpMessageHeaderAccessor) { simpMessageHeaderAccessor.getSessionAttributes().put("username", message.getAuthor()); return message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getPrincipal(){\n String userName = null;\n Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n if (principal instanceof UserDetails) {\n userName = ((UserDetails)principal).getUsername();\n } else {\n userNa...
[ "0.7600174", "0.7600174", "0.73164225", "0.72084314", "0.7166778", "0.7153449", "0.7089397", "0.70785433", "0.7017368", "0.69877", "0.6966578", "0.6846525", "0.6805551", "0.6789484", "0.6776652", "0.6776652", "0.6750206", "0.6742112", "0.6736182", "0.6701371", "0.6672802", ...
0.0
-1
/ open = 0 Open a file open = 1 Save a file
public FileDB(String []str, int length, int open,String fileName){ super(new BorderLayout()); this.open = open; selecStr = ""; flag = true; listModel = new DefaultListModel(); for(int i=0;i<length;i++) listModel.addElement(str[i]); list = new JList(listModel); list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); list.setSelectedIndex(0); list.addListSelectionListener(this); list.setVisibleRowCount(8); JScrollPane listScrollPane = new JScrollPane(list); JButton ok = new JButton("OK"); ok.setActionCommand("ok"); ok.addActionListener(this); /* ok.setMinimumSize(new Dimension(this.getWidth()/2,this.getHeight()/4)); ok.setPreferredSize(new Dimension(this.getWidth()/2,this.getHeight()/4)); ok.setMaximumSize(new Dimension(this.getWidth()/2,this.getHeight()/4));*/ JButton cancel = new JButton("Cancel"); cancel.setActionCommand("cancel"); cancel.addActionListener(this); /* cancel.setMinimumSize(new Dimension(this.getWidth()/2,this.getHeight()/4)); cancel.setPreferredSize(new Dimension(this.getWidth()/2,this.getHeight()/4)); cancel.setMaximumSize(new Dimension(this.getWidth()/2,this.getHeight()/4));*/ JPanel buttonPane = new JPanel(); if(open==1){ System.out.println("Filename is "+fileName); if(fileName!=null){ StringTokenizer st = new StringTokenizer(fileName," :"); ta = new TextArea(st.nextToken()); } else ta = new TextArea("iConc"); } else if(open == 0){ ta = new TextArea("iConc"); } buttonPane.add(ta); buttonPane.add(ok); buttonPane.add(cancel); add(listScrollPane, BorderLayout.CENTER); add(buttonPane, BorderLayout.PAGE_END); createAndShowGUI(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "File openFile();", "private void mnuFileSaveActionPerformed(java.awt.event.ActionEvent evt) {\n if (fileOpened){\n saveFile(openFile);\n }else{\n JOptionPane.showConfirmDialog(this, \"No file currently open! doing \\\"Save as\\\" instead\");\n saveNewFile();\n }\n }",...
[ "0.6966647", "0.66942275", "0.661059", "0.6502645", "0.63799644", "0.6356959", "0.62973446", "0.6278413", "0.6278413", "0.6278413", "0.6265269", "0.6230688", "0.61995137", "0.6194166", "0.61759156", "0.6167851", "0.61152303", "0.61142576", "0.6105359", "0.6101114", "0.6083239...
0.0
-1
Make sure we have nice window decorations.
public void createAndShowGUI() { JFrame.setDefaultLookAndFeelDecorated(true); //Create and set up the window. if(open==0) frame = new JFrame("Open a file"); else if(open ==1) frame = new JFrame("Save file as"); //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Create and set up the content pane. JComponent newContentPane =this ; newContentPane.setOpaque(true); //content panes must be opaque frame.setContentPane(newContentPane); //Display the window. frame.pack(); frame.setVisible(true); // frame.setSize(500,500); // validate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void xtestWindowAlpha() throws Exception {\n if (GraphicsEnvironment.isHeadless())\n return;\n System.setProperty(\"sun.java2d.noddraw\", \"true\");\n GraphicsConfiguration gconfig = WindowUtils.getAlphaCompatibleGraphicsConfiguration();\n Frame root = JOptionPane.getR...
[ "0.6138743", "0.6094215", "0.6086101", "0.5985643", "0.59803766", "0.589949", "0.5661822", "0.565546", "0.56502223", "0.56317824", "0.56136215", "0.5473026", "0.54459506", "0.54312706", "0.5417571", "0.54159737", "0.5404399", "0.53584", "0.53386736", "0.53314734", "0.53299814...
0.0
-1
TODO Autogenerated method stub
@Override public void undo(RechercheDetailleeAction arg0, RechercheDetailleeResult arg1, ExecutionContext arg2) throws ActionException { }
{ "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
lay danh sach mat hang dang duoc ban
public ArrayList<Mathang> getMathang(){ ArrayList<Mathang> kq = null; String sql = "select * from tblMathang"; try { CallableStatement cs = con.prepareCall(sql); ResultSet rs = cs.executeQuery(); while(rs.next()) { if(kq == null) { kq = new ArrayList<Mathang>(); } Mathang mh = new Mathang(); mh.setId(rs.getInt("tblMathangID")); mh.setTenmathang(rs.getString("tenmathang")); mh.setMa(rs.getString("ma")); mh.setGianban(rs.getFloat("giaban")); mh.setGianhap(rs.getFloat("gianhap")); mh.setNhanhieu(rs.getString("nhanhieu")); mh.setNhacungcap(rs.getString("nhacungcap")); kq.add(mh); } } catch (Exception e) { e.printStackTrace(); } return kq; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}", "private void strin() {\n\n\t}", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n ...
[ "0.64705974", "0.6308506", "0.6168303", "0.6126524", "0.60802436", "0.60212636", "0.59240097", "0.5881918", "0.5868073", "0.5860939", "0.58555055", "0.57947564", "0.5789834", "0.5788644", "0.5765093", "0.5763316", "0.57152987", "0.57054836", "0.5698422", "0.5691554", "0.56849...
0.0
-1
lay chi tiet mat hang
public boolean checkmathang(Mathang mh) { boolean kq = false; // if(mh.getMa().contains("true") || mh.getMa().contains("=")) { // return false; // } String sql = "select * from tblMathang where tblMathangID = ?"; try { CallableStatement cs = con.prepareCall(sql); // cs.setString(1, mh.getMa()); cs.setInt(1, mh.getId()); ResultSet rs = cs.executeQuery(); if(rs.next()) { mh.setId(rs.getInt("tblMathangID")); mh.setTenmathang(rs.getString("tenmathang")); mh.setMa(rs.getString("ma")); mh.setGianban(rs.getFloat("giaban")); mh.setGianhap(rs.getFloat("gianhap")); mh.setNhanhieu(rs.getString("nhanhieu")); mh.setNhacungcap(rs.getString("nhacungcap")); kq = true; } } catch (Exception e) { e.printStackTrace(); kq = false; } return kq; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void chi(String pinzhong, String xingming) {\n\t\n\t}", "@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}", "@Override\n\tpublic void chi(String xingming) {\n\t\tSystem.out.println(\"我喜欢吃棒棒糖\");\n\t}", "public void playTopHat() ...
[ "0.6399337", "0.61730576", "0.60757333", "0.60383457", "0.60031134", "0.59533805", "0.59366256", "0.59234583", "0.5870224", "0.58358246", "0.58218783", "0.58122087", "0.5803937", "0.5803414", "0.57830215", "0.5777595", "0.57161427", "0.5713316", "0.57006335", "0.5696693", "0....
0.0
-1
Instantiates a new about activity.
public AboutActivity() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openAbout() {\r\n \tIntent intent = new Intent(this, AboutActivity.class);\r\n \tstartActivity(intent);\r\n }", "public AboutAction() {\r\n _dialog = new AboutDialog(this);\r\n }", "public void showAbout() {\n\t\t/* track \"About\" */\n\t\ttracker.trackEvent(\"Listings\", \"Click\"...
[ "0.7046781", "0.69062436", "0.67148185", "0.6533556", "0.64567244", "0.64554065", "0.6430134", "0.638647", "0.6359816", "0.63337016", "0.630308", "0.6241684", "0.6223119", "0.6207133", "0.61956257", "0.6182975", "0.6137527", "0.61330795", "0.61154693", "0.6113702", "0.6025945...
0.77168685
0
Load the credits from xml.
private List<Map<String, String>> loadCredits() { final String[] creditsArray = this.getResources().getStringArray( R.array.credits); final Credits credits = new Credits(creditsArray); return credits.getListCredits(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadXML(){\n new DownloadXmlTask().execute(URL);\n }", "public void loadFromLocalXML(Context context) {\n\n AccountManager.getInstance().reset();\n int _cnt = PreferenceManager.getDefaultSharedPreferences(context).getInt(\"Account_amount\", 0);\n for (int _iter = 0; _it...
[ "0.5862305", "0.5646806", "0.5630251", "0.56225127", "0.55227643", "0.54104125", "0.5352335", "0.52785975", "0.5251359", "0.52119553", "0.5140996", "0.50896555", "0.5070354", "0.50686234", "0.50320446", "0.50306004", "0.5029845", "0.5012687", "0.49525458", "0.49519667", "0.49...
0.616132
0
log at INFO level
public static void info(String message) { logger.info(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }", "public void logInfo( String msg ) {\r\n\t\tlogger.log( Level.INFO, logPrefix + \" \" + msg );\r\n\t}", "public static void logInfo(String message)\n {\n log(IStatus.INFO, messa...
[ "0.7763359", "0.75206786", "0.74376374", "0.7361721", "0.729904", "0.72948205", "0.7170246", "0.71536547", "0.7149381", "0.71441174", "0.70958215", "0.7069423", "0.70014995", "0.7001433", "0.69597536", "0.6937447", "0.69023407", "0.6895023", "0.6858992", "0.6829916", "0.67979...
0.6592077
25
log at ERROR level
public static void error (String message, Throwable throwable, WebDriver driver) { ScreenCapture screenshot = new ScreenCapture(); screenshot.takeScreenShot(driver); logger.error(message, throwable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void logError(Exception e);", "private void logError(String msg)\n {\n GlobeRedirector.errorLog.write(msg);\n }", "public void error(String msg) {\n boolean doit = level == Level.NONE || level == Level.INFO;\n if (log != System.err || !doit) {\n System.err.println(msg);\n ...
[ "0.77032447", "0.7344357", "0.72715145", "0.7228225", "0.718162", "0.69804996", "0.69522846", "0.6921547", "0.6898727", "0.6866803", "0.6825687", "0.677214", "0.6745541", "0.6719882", "0.6642769", "0.6640343", "0.6609079", "0.6602303", "0.659228", "0.6583555", "0.6573611", ...
0.0
-1
Default c'tor for a Sprite Object
public ProgressBar(Vector2 position, Vector2 size, Texture containerTexture, Texture barTexture) { super(position, size, containerTexture); _innerSize = new Vector2(0.0f, _size._y); _innerTexture = barTexture; setProgress(0.0f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Sprite() {}", "Ground(Sprite sprite) {Collect.Hit(\"BoardFactory.java\",\"Ground(Sprite sprite)\");this.background = sprite; Collect.Hit(\"BoardFactory.java\",\"Ground(Sprite sprite)\", \"3015\");}", "protected abstract void chooseSprite();", "@Override\n public void checkCollision( Sprite obj )\n ...
[ "0.704458", "0.62670195", "0.6258797", "0.62221587", "0.6177922", "0.61435354", "0.60633814", "0.6047272", "0.60302866", "0.6022411", "0.6016308", "0.59930915", "0.5940031", "0.5935901", "0.5918789", "0.5907389", "0.5884018", "0.58768255", "0.5763059", "0.5731739", "0.5714692...
0.0
-1
Set the bar's progress level to a given value
public void setProgress(float p) { _progress = Math.max(0.0f, Math.min(1.0f, p)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProgress(int value);", "void setProgress(float progress);", "void setProgress(@FloatRange(from = 0, to = 1) float progress);", "void setProgress(int progress);", "void setProgress(int progress);", "private void setProgressPercent(Integer integer) {\n\t\t\n\t}", "public void setProgressVa...
[ "0.79224503", "0.77229375", "0.763956", "0.753582", "0.753582", "0.70652145", "0.70462155", "0.6915155", "0.6886361", "0.6777397", "0.67723984", "0.6736272", "0.67344517", "0.6643605", "0.6592525", "0.65898234", "0.6560416", "0.6540402", "0.6512754", "0.64825636", "0.647572",...
0.68161297
9
Set the position of the sprite
@Override public void update(int mouseX, int mouseY, boolean click) { super.update(mouseX, mouseY, click); _innerSize._x = _size._x * _progress; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPosition(float x, float y){\n\t\t\n\t\tsprite.setPosition(x, y);\n\t}", "public void sprite() {\n\t\tspr.setPosition(sprite.getX(),sprite.getY());\n\t\tsprite = spr;\n\t}", "public void setPosition(float x, float y);", "private void setSpritesPosition()\r\n\t{\r\n\t\tfloat w = Gdx.graphics.get...
[ "0.7718719", "0.7683338", "0.75985897", "0.7546499", "0.7539525", "0.7427779", "0.7427325", "0.72966015", "0.7233214", "0.71827877", "0.7033207", "0.703287", "0.7013351", "0.7006415", "0.69934183", "0.6971942", "0.6971942", "0.69711494", "0.69653636", "0.69600224", "0.6960022...
0.0
-1
this will trigger a runtime error in the backend
@GetAction("e500") public static String backendServerError() { return Act.crypto().decrypt("bad-crypted-msg"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public void inquiryError() {\n\t\t\n\t}", "public void error() {\n throw new RuntimeException(getClass().getName() + \" error\");\n }", "@Override\n\t\tpublic void loadError() {\n\t\t}", "@Override\n ...
[ "0.6769316", "0.635169", "0.6345645", "0.6306623", "0.62996835", "0.629275", "0.62903833", "0.62272596", "0.62272596", "0.6225783", "0.61740595", "0.6165114", "0.61177486", "0.6067474", "0.6045683", "0.6045683", "0.60324484", "0.6027977", "0.6016153", "0.6009844", "0.6009844"...
0.5703491
83
List accounts = Account.dao.find("select from account");
@GetAction("/list") public void list(String q) { Iterable<Account> accounts = accountDao.findAll(); render(accounts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Account> findAll();", "List<Account> findAll();", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "List<AccountModel> findAll();", "List<Account> selectAll();", "@Query(\"select a from Account a\")\n List<Account> getAllAccount();", "@Query(\"select a from Account a...
[ "0.8195117", "0.8195117", "0.7861179", "0.78473014", "0.7691221", "0.76834494", "0.76826566", "0.7503345", "0.73849535", "0.7337493", "0.7112787", "0.7076685", "0.70071864", "0.70002544", "0.69902974", "0.6951084", "0.69454056", "0.6929228", "0.69154036", "0.69131315", "0.690...
0.0
-1
disconnect ReceivingSpace with sku in Goods
public ReceivingSpace planToRemoveGoodsListWithSku(ReceivingSpace receivingSpace, String skuId, Map<String,Object> options)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disconnectFromAudio() {\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.DISCONNECT));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n ...
[ "0.6013936", "0.5815661", "0.5554337", "0.5485952", "0.5475138", "0.5411566", "0.54014385", "0.5382141", "0.53770447", "0.53638697", "0.5356002", "0.53416437", "0.5301742", "0.52716804", "0.52711487", "0.5270289", "0.5259785", "0.52513266", "0.52365273", "0.5222399", "0.52186...
0.63939977
0
disconnect ReceivingSpace with goods_allocation in Goods
public ReceivingSpace planToRemoveGoodsListWithGoodsAllocation(ReceivingSpace receivingSpace, String goodsAllocationId, Map<String,Object> options)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ReceivingSpace planToRemoveGoodsListWithSmartPallet(ReceivingSpace receivingSpace, String smartPalletId, Map<String,Object> options)throws Exception;", "public ReceivingSpace planToRemoveGoodsListWithShippingSpace(ReceivingSpace receivingSpace, String shippingSpaceId, Map<String,Object> options)throws Exc...
[ "0.6761377", "0.60363823", "0.60266304", "0.59007233", "0.5891403", "0.5873755", "0.57351524", "0.5681745", "0.56657916", "0.56537867", "0.5605807", "0.5544868", "0.5497466", "0.5446421", "0.544024", "0.5412165", "0.5390541", "0.53673506", "0.535085", "0.53501326", "0.5347508...
0.6733704
1
disconnect ReceivingSpace with smart_pallet in Goods
public ReceivingSpace planToRemoveGoodsListWithSmartPallet(ReceivingSpace receivingSpace, String smartPalletId, Map<String,Object> options)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disconnect() {\n\t\t\n\t}", "public void disconnect() {if(mEnable) mBS.disconnect();}", "public void disconnect() {}", "public static void disconnect() {\n if (AppSettings.bluetoothConnection != null) \n \tAppSettings.bluetoothConnection.stop();\n\t}", "public void destroy() throw...
[ "0.5970172", "0.5950782", "0.5916951", "0.5842361", "0.5810777", "0.57994336", "0.5791337", "0.5784836", "0.57726943", "0.5762603", "0.57320976", "0.573054", "0.5715429", "0.57113385", "0.57113385", "0.57013667", "0.5695067", "0.5691407", "0.5691407", "0.56864667", "0.5686466...
0.6679811
0
disconnect ReceivingSpace with shipping_space in Goods
public ReceivingSpace planToRemoveGoodsListWithShippingSpace(ReceivingSpace receivingSpace, String shippingSpaceId, Map<String,Object> options)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ReceivingSpace planToRemoveGoodsListWithSmartPallet(ReceivingSpace receivingSpace, String smartPalletId, Map<String,Object> options)throws Exception;", "public ReceivingSpace planToRemoveGoodsListWithSku(ReceivingSpace receivingSpace, String skuId, Map<String,Object> options)throws Exception;", "public ...
[ "0.63316184", "0.6115588", "0.6033146", "0.60053235", "0.59036803", "0.5857119", "0.57226944", "0.5687951", "0.5661275", "0.56472474", "0.56469697", "0.56343484", "0.5590241", "0.55540705", "0.55240667", "0.5483832", "0.5465822", "0.5460144", "0.54361165", "0.5435784", "0.543...
0.6824888
0
disconnect ReceivingSpace with transport_task in Goods
public ReceivingSpace planToRemoveGoodsListWithTransportTask(ReceivingSpace receivingSpace, String transportTaskId, Map<String,Object> options)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void disconnect() throws TransportException;", "public void stopSending ();", "protected void processDisconnection(){}", "public void stopNetwork();", "public int disconnect() {\n Log.d(TAG, \"kill start\");\n \n // TODO: check if conditionals fixes bug\n // disconnecting when bluet...
[ "0.6460175", "0.64463717", "0.63697463", "0.60518855", "0.6036578", "0.60169363", "0.6016193", "0.60159975", "0.6005869", "0.59687555", "0.59667903", "0.5959288", "0.5940158", "0.5904215", "0.59040636", "0.58996475", "0.58864355", "0.5857218", "0.585058", "0.58493847", "0.583...
0.65732163
0
disconnect ReceivingSpace with retail_store in Goods
public ReceivingSpace planToRemoveGoodsListWithRetailStore(ReceivingSpace receivingSpace, String retailStoreId, Map<String,Object> options)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ReceivingSpace planToRemoveGoodsListWithSmartPallet(ReceivingSpace receivingSpace, String smartPalletId, Map<String,Object> options)throws Exception;", "public ReceivingSpace planToRemoveGoodsListWithRetailStoreOrder(ReceivingSpace receivingSpace, String retailStoreOrderId, Map<String,Object> options)thro...
[ "0.6103983", "0.60137445", "0.59380907", "0.5830638", "0.57804793", "0.5764126", "0.57522774", "0.5739728", "0.57311517", "0.5719677", "0.5686255", "0.5685714", "0.56854725", "0.56792367", "0.56703806", "0.5661568", "0.5651229", "0.56386894", "0.5637208", "0.5628338", "0.5621...
0.6407763
0
disconnect ReceivingSpace with biz_order in Goods
public ReceivingSpace planToRemoveGoodsListWithBizOrder(ReceivingSpace receivingSpace, String bizOrderId, Map<String,Object> options)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ReceivingSpace planToRemoveGoodsListWithSmartPallet(ReceivingSpace receivingSpace, String smartPalletId, Map<String,Object> options)throws Exception;", "public void stopSending ();", "public void disconnect(){ \r\n if (matlabEng!=null){ \r\n matlabEng.engEvalString (id,\"bdclose ('all')\"...
[ "0.60251933", "0.5815192", "0.5795322", "0.5783399", "0.5766957", "0.5756672", "0.5739042", "0.5690493", "0.5681917", "0.5681594", "0.5663451", "0.56563145", "0.559208", "0.55701363", "0.55458605", "0.5536874", "0.5517924", "0.5511992", "0.55112195", "0.550978", "0.5505761", ...
0.63984776
0
disconnect ReceivingSpace with retail_store_order in Goods
public ReceivingSpace planToRemoveGoodsListWithRetailStoreOrder(ReceivingSpace receivingSpace, String retailStoreOrderId, Map<String,Object> options)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ReceivingSpace planToRemoveGoodsListWithRetailStore(ReceivingSpace receivingSpace, String retailStoreId, Map<String,Object> options)throws Exception;", "public ReceivingSpace planToRemoveGoodsListWithSmartPallet(ReceivingSpace receivingSpace, String smartPalletId, Map<String,Object> options)throws Excepti...
[ "0.638151", "0.63052005", "0.59618014", "0.5783772", "0.5748717", "0.57377255", "0.5734346", "0.5682718", "0.5672992", "0.5644491", "0.56405324", "0.5631738", "0.56255794", "0.5617399", "0.5614172", "0.5604468", "0.5597417", "0.55467963", "0.55369884", "0.54989606", "0.547591...
0.6359183
1
Ordena as ligacoes, primeiro por custo e depois por estada vs aeroporto
public void sort(){ Collections.sort(_ligacoes, (new Comparator<Ligacao>() { @Override public int compare(Ligacao l1, Ligacao l2){ int resultado = Integer.compare(l1.getCusto(), l2.getCusto()); if (resultado == 0) resultado = Boolean.compare(l1.isAerea(), l2.isAerea()); return resultado; } })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void jouerOrdinateur() {\n Random rdmPropoOrdi = new Random();\n\n for (int i = 0; i < nbrPosition; i++) {\n int min = 0;\n int max = propositionHaute[i];\n if (propositionBasse[i] != 0) {\n min = propositionBasse[i] + 1;\n }\n\n ...
[ "0.64452046", "0.6135452", "0.61310595", "0.61258173", "0.6106105", "0.60966057", "0.60918146", "0.6048213", "0.60472685", "0.5997689", "0.59631574", "0.5917341", "0.5868757", "0.58643115", "0.5858152", "0.58493394", "0.5801677", "0.57840425", "0.57808614", "0.57695633", "0.5...
0.5502065
51
TODO Autogenerated method stub
public List<String> getAllCompareStrs(String tableName, String columnName) { conn=Tool.getDBCon(); List<String> strs=new ArrayList<String>(); String sql="select "+columnName+" from "+tableName; PreparedStatement ps = null ; ResultSet rs = null ; try { ps = conn.prepareStatement(sql) ; rs = ps.executeQuery() ; while(rs.next()){ String col=rs.getString(1); strs.add(col); } rs.close(); ps.close() ; conn.close() ; } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } return strs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
supplier() should return any kind of mutable storage object such as a collection or array
@Override public Supplier<List<Integer>> supplier() { // constructor method reference // for an Object array use: Object[]::new return ArrayList::new; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getSupplier(Supplier supplier) {\n\t\r\n}", "public interface Storage {\n\n public Collection<Developers> values();\n\n public int add(final Developers developer);\n\n public void edit(final Developers developer);\n\n public void delete(final int id);\n\n public Developers get(final in...
[ "0.64232075", "0.63285184", "0.5885236", "0.5842432", "0.57946324", "0.57927257", "0.5777331", "0.57620054", "0.56786346", "0.5656465", "0.5636024", "0.55677885", "0.5539301", "0.55150837", "0.54973453", "0.54627013", "0.5405025", "0.54049337", "0.538376", "0.53685474", "0.53...
0.5804152
4
A BiConsumer represents an operation that takes two inputs, does something with them and returns nothing.
@Override public BiConsumer<List<Integer>, Employee> accumulator() { return (resultList, employee) -> { if (resultList.isEmpty()) resultList.add(employee.getSalary()); else { Integer currentTotal = resultList.get(0); currentTotal += employee.getSalary(); resultList.set(0, currentTotal); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.FunctionalInterface()\r\n @jsweet.lang.Erased\r\n public interface CallbackBiConsumer<T1,T2> {\r\n public void $apply(T1 p1, T2 p2);\r\n }", "@FunctionalInterface\npublic interface Consumer<T> {\n\n /**\n * Performs operation on argument.\n *\n * @param value the input ...
[ "0.73588836", "0.6924798", "0.6744038", "0.673764", "0.6644182", "0.6403123", "0.6116984", "0.60074306", "0.59788156", "0.59331965", "0.59324116", "0.5921319", "0.5915585", "0.58730495", "0.58680797", "0.5824648", "0.5791068", "0.5761645", "0.5709302", "0.56513613", "0.564921...
0.0
-1
When parallel processing streams, combiner() knows how to combine the parallel objects represented by the supplier.
@Override public BinaryOperator<List<Integer>> combiner() { return (resultList1, resultList2) -> { Integer currentTotal1 = resultList1.get(0); Integer currentTotal2 = resultList2.get(0); currentTotal1 += currentTotal2; resultList1.set(0, currentTotal1); return resultList1; }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(final String[] args)\n {\n final Supplier<ArrayList<String>> proveedor = ArrayList::new;\n\n // Aqui tenemos el acumulador, el que añadira cada elemento del stream al proveedor definido\n // arriba\n // BiConsumer<ArrayList<String>, String> acumulador = (list,...
[ "0.5659964", "0.5656613", "0.5644442", "0.53442085", "0.5344207", "0.5243108", "0.51189727", "0.506132", "0.50355875", "0.50310963", "0.5027017", "0.50235957", "0.5001776", "0.49321023", "0.49257058", "0.49249107", "0.49100238", "0.4891923", "0.48881358", "0.48396015", "0.482...
0.4866761
19
finisher() performs a final transformation from the supplier type to the final reduced type.
@Override public Function<List<Integer>, Integer> finisher() { return resultList -> resultList.get(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Function<TradeAccumulator, Set<Trade>> finisher() {\n return (accum) -> {return accum.toSet();};\n }", "@Override\n public Function<ObjectNode, ObjectNode> finisher() {\n return Function.identity();\n }", "public <IntermediateType> ConditionalEnd<In, CurrentType, In...
[ "0.52798843", "0.5268148", "0.50987947", "0.49407396", "0.47056326", "0.45072567", "0.44828478", "0.43660885", "0.43605626", "0.42652372", "0.4247034", "0.42433256", "0.4212516", "0.41867036", "0.41627094", "0.41304553", "0.41246304", "0.41243804", "0.41233554", "0.4122927", ...
0.49537486
3
Used for internal optimizations. CONCURRENT: indicates that the accumulator function can support being called concurrently from other threads IDENTITY_FINISH: indicates that the finisher() function is the identity function and can be omitted (i.e. the supplier type and the return type are the same type). UNORDERED: inidicates that the operations do not need to commit to preserving the order of elements as they are discovered whilst processing.
@Override public Set<Collector.Characteristics> characteristics() { return Set.of( Collector.Characteristics.UNORDERED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected List<WriteStatus> computeNext() {\n BoundedInMemoryExecutor<HoodieRecord<T>, HoodieInsertValueGenResult<HoodieRecord>, List<WriteStatus>> bufferedIteratorExecutor =\n null;\n try {\n final Schema schema = new Schema.Parser().parse(hoodieConfig.getSchema());\n bufferedI...
[ "0.51122737", "0.5104461", "0.5092324", "0.5043717", "0.50430393", "0.5037144", "0.49839672", "0.487286", "0.478197", "0.4763464", "0.47477117", "0.47477117", "0.47316563", "0.47079805", "0.46988466", "0.4660111", "0.46569407", "0.46388847", "0.46026686", "0.45810458", "0.457...
0.50887364
3
insert a row to desire table
public long insert(String table, String nullColumnHack, ContentValues values) { sqLiteDatabase.beginTransaction(); long insertId = -1; try { insertId = sqLiteDatabase.insertWithOnConflict(table, nullColumnHack, values,SQLiteDatabase.CONFLICT_REPLACE); sqLiteDatabase.setTransactionSuccessful(); } catch (Exception e) { insertId = -1; } finally { sqLiteDatabase.endTransaction(); } return insertId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertRow() throws SQLException\n {\n m_rs.insertRow();\n }", "@Override\n public SqlDatabaseTable insertIntoTable(SqlDatabaseTable table, List<String> row) {\n executeSql(getInsertSql(table, Collections.singletonList(row)));\n return table;\n }", "public void insertRow() throws SQ...
[ "0.76749355", "0.74352974", "0.7303488", "0.7252221", "0.72346604", "0.7150767", "0.7066136", "0.69758606", "0.6933954", "0.6889201", "0.6782575", "0.67469776", "0.67421937", "0.67228633", "0.6709346", "0.6685037", "0.6680087", "0.66611415", "0.66572225", "0.66383034", "0.662...
0.0
-1
insert a row collection to desire table
public long insert(String table, String nullColumnHack, List<ContentValues> values) { sqLiteDatabase.beginTransaction(); long insertId = -1; try { for (ContentValues value : values) { insertId = sqLiteDatabase.insert(table, nullColumnHack, value); } sqLiteDatabase.setTransactionSuccessful(); } catch (Exception e) { insertId = -1; } finally { sqLiteDatabase.endTransaction(); } return insertId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public SqlDatabaseTable insertIntoTable(SqlDatabaseTable table, List<String> row) {\n executeSql(getInsertSql(table, Collections.singletonList(row)));\n return table;\n }", "public void insert(List<T> entity) throws NoSQLException;", "void newRow(List<C> row) throws Exception;", "int inse...
[ "0.69030833", "0.6671167", "0.6626966", "0.6507516", "0.6450448", "0.631324", "0.6246829", "0.6228142", "0.6223611", "0.62047666", "0.61901313", "0.6176361", "0.614065", "0.61394376", "0.611662", "0.60786176", "0.60763747", "0.6049857", "0.6044253", "0.6040655", "0.6037327", ...
0.0
-1
Convenience method for deleting rows in the database.x
public int delete(String table, String whereClause, String[] whereArgs) { sqLiteDatabase.beginTransaction(); int res = -1; try { res = sqLiteDatabase.delete(table, whereClause, whereArgs); sqLiteDatabase.setTransactionSuccessful(); } catch (Exception e) { res = -1; } finally { sqLiteDatabase.endTransaction(); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void delete(String... args) throws SQLException {\n\t\t\n\t}", "public void deleteRow() throws SQLException\n {\n m_rs.deleteRow();\n }", "int delete(String tableName, String selectionCriteria, String[] selectionArgs);", "@Override\n\tpublic void delete(Long primaryKey) {\n\t\t\n...
[ "0.7597076", "0.72067", "0.7156877", "0.7075876", "0.697138", "0.6964158", "0.6952832", "0.6952832", "0.6952832", "0.69455636", "0.6938479", "0.69324", "0.6925112", "0.6922737", "0.69075245", "0.6892657", "0.6878031", "0.6876464", "0.6860174", "0.6857918", "0.684848", "0.68...
0.0
-1
Query the given table, returning a Cursor over the result set.
public Cursor query(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy) { sqLiteDatabase.beginTransaction(); Cursor res = null; try { res = sqLiteDatabase.query(table, columns, selection, selectionArgs, groupBy, having, orderBy); sqLiteDatabase.setTransactionSuccessful(); } catch (Exception e) { res = null; } finally { sqLiteDatabase.endTransaction(); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cursor getAllFromTable(String tableName) {\n SQLiteDatabase db = dbHelper.getDatabase();\n db.beginTransaction();\n Cursor cursor = db.query(tableName, getProjection(tableName), null, null, null, null, null);\n db.endTransaction();\n return cursor;\n }", "public Curso...
[ "0.68757856", "0.66337156", "0.65301883", "0.64939183", "0.6417922", "0.6313787", "0.62204385", "0.61738104", "0.5941525", "0.5921184", "0.5921007", "0.58975536", "0.58820117", "0.58332634", "0.5817953", "0.5803272", "0.5772426", "0.5665133", "0.5643014", "0.56395304", "0.561...
0.54624254
34
Query the given table, returning a Cursor over the result set.
public Cursor rawQuery(String sql, String[] selectionArgs) { sqLiteDatabase.beginTransaction(); Cursor res = null; try { res = sqLiteDatabase.rawQuery(sql, selectionArgs); sqLiteDatabase.setTransactionSuccessful(); } catch (Exception e) { res = null; } finally { sqLiteDatabase.endTransaction(); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cursor getAllFromTable(String tableName) {\n SQLiteDatabase db = dbHelper.getDatabase();\n db.beginTransaction();\n Cursor cursor = db.query(tableName, getProjection(tableName), null, null, null, null, null);\n db.endTransaction();\n return cursor;\n }", "public Curso...
[ "0.68748784", "0.6632654", "0.65299994", "0.6495669", "0.64171886", "0.63135445", "0.6219703", "0.61733204", "0.5942619", "0.59217596", "0.59212077", "0.5897204", "0.5883979", "0.58342785", "0.58178025", "0.58027774", "0.57734203", "0.5665252", "0.56443864", "0.56401974", "0....
0.0
-1
Update a row in desired table
public int update(String table, ContentValues values, String whereClause, String[] whereArgs) { sqLiteDatabase.beginTransaction(); int res = -1; try { res = sqLiteDatabase.update(table, values, whereClause, whereArgs); sqLiteDatabase.setTransactionSuccessful(); } catch (Exception e) { res = 0; } finally { sqLiteDatabase.endTransaction(); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateRow() throws SQLException\n {\n m_rs.updateRow();\n }", "int updateByPrimaryKey(Assist_table record);", "Table8 update(Table8 table8) throws EntityNotFoundException;", "int updateByPrimaryKey(Table2 record);", "int updateByPrimaryKey(RepStuLearning record);", "int updateByPrima...
[ "0.7134111", "0.70439667", "0.69251364", "0.69104534", "0.6808691", "0.6805568", "0.6804005", "0.67676795", "0.6765703", "0.6736138", "0.67243904", "0.66917646", "0.6675958", "0.6671102", "0.6623942", "0.66158473", "0.6606253", "0.65993327", "0.658198", "0.65792584", "0.65646...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_add_subj, 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.72461367", "0.7201596", "0.7195268", "0.7177002", "0.71069986", "0.7039653", "0.70384306", "0.70115715", "0.7010647", "0.69803435", "0.6945406", "0.69389313", "0.6933442", "0.69172275", "0.69172275", "0.6890826", "0.6883689", "0.687515", "0.6874831", "0.68615955", "0.68615...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904163", "0.7805678", "0.7766155", "0.77271765", "0.7631901", "0.76217514", "0.75843245", "0.7530648", "0.74879694", "0.74575084", "0.74575084", "0.7438342", "0.742121", "0.7402876", "0.7391506", "0.7386729", "0.7379215", "0.73702943", "0.7361895", "0.7355702", "0.7345358...
0.0
-1
Returns a mark indicating the position of the input stream. The input stream can subsequently be scanned (e.g., with nextToken()) and then reset to the mark position using the reset() member.
public BacktrackingTokenizerMark mark() { return new BacktrackingTokenizerMark(tokens, position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMark() {\n return mark_;\n }", "public int getMark() {\n return mark_;\n }", "public int getMark() {\n\t\treturn mark;\n\t}", "public Integer getStartMark() {\n return startMark;\n }", "@Override\n\tpublic Integer mark() {\n\t\treturn mark;\n\t}", "public char ...
[ "0.6978866", "0.6964416", "0.69260013", "0.6639564", "0.6540522", "0.6379866", "0.6377856", "0.63270795", "0.6229169", "0.61423826", "0.5998757", "0.5938777", "0.5928526", "0.5882642", "0.58694726", "0.5840251", "0.5835514", "0.5788528", "0.57591015", "0.57162565", "0.5710349...
0.64108133
5
Resets the input stream to the position it had at the time of an earlier call to mark()
public void reset(BacktrackingTokenizerMark mark) { position = mark.getPosition(tokens); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void reset() {\n isDone = false;\n if (content.markSupported()) {\n try {\n content.reset();\n } catch (IOException ioe) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Unable to reset the input stream: {}\", ioe.getMessage());\n }\n }\n\n ...
[ "0.7833232", "0.76745147", "0.7507704", "0.7482651", "0.73887885", "0.73380274", "0.6908184", "0.6878153", "0.68674165", "0.6823294", "0.6748523", "0.670817", "0.66368467", "0.6599748", "0.65587234", "0.65364224", "0.6535031", "0.64966947", "0.64855516", "0.6478905", "0.64322...
0.67455
11
Base class overrides implementation details
@Override public Token nextToken() throws IOException, InputMismatchException { Token token; if (position.hasNext()) { token = position.next(); } else { token = super.getToken(); if (token != null) { position.add(token); } } return token; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n\tpublic void comer() {\n\t...
[ "0.71242297", "0.6689165", "0.6535876", "0.653086", "0.65069014", "0.6426184", "0.6391643", "0.6325466", "0.63041735", "0.6293011", "0.6293011", "0.6293011", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.62578136", "0.625...
0.0
-1
Creates an instance of ApplicationResourceProperties class.
public ApplicationResourceProperties() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ResourceProperties(Application app) {\n this.resources = new TreeSet(app.getResourceComparator());\n }", "public ApplicationDefinitionProperties() {\n }", "public ResourceProperties(Application app, String resourceName,\n ResourceProperties defaultProperties) {\...
[ "0.7118988", "0.6683332", "0.66105175", "0.65683025", "0.6440908", "0.6338878", "0.6199536", "0.60299915", "0.59932554", "0.5971037", "0.5749316", "0.56705004", "0.5615909", "0.5596692", "0.55700624", "0.55659175", "0.55210525", "0.5505691", "0.54672897", "0.5466415", "0.5463...
0.81259054
0
Get the provisioningState property: The current deployment or provisioning state, which only appears in the response.
public String provisioningState() { return this.provisioningState; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String provisioningState() {\n return this.innerProperties() == null ? null : this.innerProperties().provisioningState();\n }", "public ProvisioningState provisioningState() {\n return this.provisioningState;\n }", "public ProvisioningState provisioningState() {\n return this....
[ "0.8188372", "0.80257004", "0.80257004", "0.80257004", "0.80257004", "0.80257004", "0.8002567", "0.79847515", "0.7904493", "0.7886639", "0.7885179", "0.730187", "0.72671914", "0.6948792", "0.68413544", "0.68230236", "0.68230236", "0.68230236", "0.64323294", "0.6357123", "0.60...
0.8140541
5
Get the typeName property: The application type name as defined in the application manifest.
public String typeName() { return this.typeName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getAppType();", "public String getTypeName() {\r\n\t\treturn typeName;\r\n\t}", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public St...
[ "0.75269693", "0.73484915", "0.7328281", "0.7328281", "0.7328281", "0.7328281", "0.73263997", "0.7310738", "0.7222941", "0.72143555", "0.7201739", "0.72001463", "0.7183043", "0.7170026", "0.7117233", "0.7111158", "0.7087769", "0.7087769", "0.70563924", "0.70513666", "0.695099...
0.71749014
13
Set the typeName property: The application type name as defined in the application manifest.
public ApplicationResourceProperties withTypeName(String typeName) { this.typeName = typeName; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTypeName(java.lang.String typeName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPENAME$6...
[ "0.76152194", "0.75348395", "0.74868894", "0.7484997", "0.7414786", "0.7414786", "0.7414786", "0.7400675", "0.73479897", "0.6963613", "0.68334734", "0.6556485", "0.6503933", "0.6503933", "0.6503933", "0.6503933", "0.64307004", "0.6353302", "0.6322109", "0.626998", "0.62401396...
0.6221547
21
Intent intent = new Intent(SplashScreen.this, Dashboard_main.class); finishAffinity(); startActivity(intent); finish();
@Override public void run() { checkSession(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n SplashScreen.this.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n startActivity(new Intent(SplashScreen.this,MainActivity.class));\n finish();\n\n ...
[ "0.81017613", "0.8003424", "0.79872626", "0.7909096", "0.78708535", "0.78656673", "0.7761014", "0.77484775", "0.76766235", "0.7611978", "0.7591622", "0.75902367", "0.74744034", "0.74091536", "0.7401744", "0.73891306", "0.7351023", "0.7309706", "0.7263819", "0.72016394", "0.71...
0.0
-1
Remove least priority first
public int remove() { return priorityQueue[--counter]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node removeMin() {\n \t\t// TODO Complete this method!\n \t\tif (indexOfLeastPriority == 2) {\n \t\t\tNode toReturn = getNode(1);\n \t\t\tsetNode(1, null);\n \t\t\treturn toReturn;\n \t\t}\n \t\tint indexOfReplacement = indexOfLeastPriority - 1;\n \t\tNode nodeOfReplacement = getNode...
[ "0.7401187", "0.6579776", "0.6550942", "0.6505171", "0.6278791", "0.6278791", "0.62466526", "0.6228418", "0.6158853", "0.6154533", "0.6139978", "0.6139829", "0.61350834", "0.61350834", "0.611726", "0.611726", "0.611726", "0.611726", "0.611726", "0.611726", "0.611726", "0.61...
0.0
-1
point purchases at a new ArrayList
public OnlinePurchaseManager() { purchases = new ArrayList<Gizmo>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void productsToBuy(Product purchase){\n bill.getProducts().add(purchase);\n }", "List<transactionsProducts> purchasedProducts();", "@Test\n public void testGetListOfPurchases() {\n System.out.println(\"getListOfPurchases\");\n //CashRegister instance = new CashRegister();\n ...
[ "0.64410645", "0.63691556", "0.6151696", "0.5958918", "0.5883304", "0.58664864", "0.57988894", "0.5796089", "0.57959265", "0.57840025", "0.57795566", "0.57671607", "0.5727044", "0.56933606", "0.56845105", "0.56783026", "0.56715506", "0.5660297", "0.56552804", "0.5633584", "0....
0.538879
38
NOT part of the sample question needed in order to type up and test student code
public void add( String m, boolean e ) { purchases.add( new Gizmo( m, e) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tScanner DhakaCollege =new Scanner(System.in);\n\t\t\t\tSystem.out.println(\"This Student Got : \");\n\t\tint marks;\n\t\t\t\tmarks=DhakaCollege.nextInt();\n\t\t\n\t\tswitch (marks) {\n\t\tcase 750:\n\t\t\tSystem.out.println(\"Star Marks.Congratulation!\");\n\t\t\tbreak...
[ "0.6480653", "0.64226687", "0.62084144", "0.61689645", "0.61153007", "0.6113737", "0.60834736", "0.6078019", "0.60650504", "0.6056322", "0.60283494", "0.59881234", "0.5961647", "0.5958716", "0.5952618", "0.5932653", "0.58966124", "0.5894697", "0.5833283", "0.58236384", "0.581...
0.0
-1
Part A count the number of Gizmos made by maker that are also electronic must call getMaker and isElectronic return the count or 0 if no matches
public int countElectronicsByMaker(String maker) { int count = 0; for( Gizmo g : purchases ) { if( g.getMaker().equals( maker ) && g.isElectronic()==true ) count = count + 1; //or count++ } return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int countByExample(TVmManufacturerExample example);", "int getPartsCount();", "int getPartsCount();", "int getNumberOfArtillery();", "int getEducationsCount();", "public int countOfGenerations ();", "int getNoOfParties();", "int countByExample(CraftAdvReqExample example);", "public int size()\r\n ...
[ "0.6159599", "0.6138829", "0.6138829", "0.5879717", "0.58017004", "0.57781327", "0.5701904", "0.55973965", "0.55402976", "0.55345625", "0.5443655", "0.5395478", "0.53819877", "0.5379032", "0.5379032", "0.5372375", "0.5369767", "0.5360807", "0.5349644", "0.5347471", "0.5347471...
0.8063442
0
Part B loop thought the list and check for matching adjacent pairs return true of any adjacent [ side by side ] pairs are the same to be the same the pairs must have the same maker and be either electronic or nonelectronic you really really should use the equals method from Gizmo
public boolean hasAdjacentEqualPair() { for( int i = 0; i < purchases.size()-1; i++ ) { Gizmo curr = purchases.get( i ); Gizmo nxt = purchases.get( i + 1 ); if( curr.equals( nxt ) ) return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean makePair() {\n int pairs = -1;\n for (Integer key : this.cardOccurrence.keySet()) {\n int value = this.cardOccurrence.get(key);\n if (value == 2)\n pairs = key;\n }\n //Means no keys w/ occurrence 2\n if (pairs == -1)\n ...
[ "0.6594859", "0.64604807", "0.64138675", "0.62364376", "0.620456", "0.6199245", "0.619107", "0.6190811", "0.6141508", "0.6132732", "0.61003417", "0.6029128", "0.6023264", "0.5984362", "0.5971058", "0.59613794", "0.593047", "0.5913984", "0.5913602", "0.59073454", "0.5900913", ...
0.6931408
0
NOT part of the sample question needed in order to type up and test student code
public String toString() { return "" + purchases; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tScanner DhakaCollege =new Scanner(System.in);\n\t\t\t\tSystem.out.println(\"This Student Got : \");\n\t\tint marks;\n\t\t\t\tmarks=DhakaCollege.nextInt();\n\t\t\n\t\tswitch (marks) {\n\t\tcase 750:\n\t\t\tSystem.out.println(\"Star Marks.Congratulation!\");\n\t\t\tbreak...
[ "0.6480145", "0.6423067", "0.6208441", "0.61689335", "0.61151356", "0.61136234", "0.6083664", "0.6078005", "0.6065684", "0.60562336", "0.6028744", "0.59882665", "0.5961206", "0.595874", "0.5952232", "0.5932365", "0.58957183", "0.58950174", "0.5833703", "0.5822997", "0.5815028...
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 OpmInterval)) { return false; } OpmInterval other = (OpmInterval) object; if ((this.opminvlId == null && other.opminvlId != null) || (this.opminvlId != null && !this.opminvlId.equals(other.opminvlId))) { 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.6896072", "0.6839122", "0.6705258", "0.66412854", "0.66412854", "0.65923095", "0.65785074", "0.65785074", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.6561566", "0.6561566", "0.6545169", "0.6525343", "0.65168375", "0.64885366", "0....
0.0
-1
TODO Autogenerated method stub
@Override public void closeConnection() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Get Resource Url for GetWishlistItem
public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("wishlistId", wishlistId); formatter.formatUrl("wishlistItemId", wishlistItemId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MozuUrl getWishlistItemsUrl(String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&fi...
[ "0.61158705", "0.59948957", "0.588144", "0.57442474", "0.5559026", "0.55278933", "0.55152637", "0.5488892", "0.5480906", "0.5467153", "0.54418933", "0.54113805", "0.54113805", "0.54113805", "0.54113805", "0.54113805", "0.54113805", "0.54097027", "0.53967434", "0.53821206", "0...
0.7181582
0
Get Resource Url for GetWishlistItems
public static MozuUrl getWishlistItemsUrl(String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}"); formatter.formatUrl("filter", filter); formatter.formatUrl("pageSize", pageSize); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("sortBy", sortBy); formatter.formatUrl("startIndex", startIndex); formatter.formatUrl("wishlistId", wishlistId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", response...
[ "0.7124792", "0.6100036", "0.5840673", "0.57882345", "0.5751729", "0.5622477", "0.56174755", "0.55707955", "0.5540759", "0.5399812", "0.53663236", "0.5319104", "0.5297678", "0.52797925", "0.52649665", "0.5178473", "0.513009", "0.51222336", "0.5081317", "0.5080283", "0.5061590...
0.6478245
1
Get Resource Url for GetWishlistItemsByWishlistName
public static MozuUrl getWishlistItemsByWishlistNameUrl(Integer customerAccountId, String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistName) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/customers/{customerAccountId}/{wishlistName}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}"); formatter.formatUrl("customerAccountId", customerAccountId); formatter.formatUrl("filter", filter); formatter.formatUrl("pageSize", pageSize); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("sortBy", sortBy); formatter.formatUrl("startIndex", startIndex); formatter.formatUrl("wishlistName", wishlistName); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", response...
[ "0.6932229", "0.6235097", "0.56843895", "0.56806874", "0.56524044", "0.53536355", "0.53278494", "0.53071046", "0.529591", "0.52524287", "0.52267504", "0.52078235", "0.52000916", "0.5139739", "0.51293296", "0.5024458", "0.48959634", "0.48643264", "0.48567435", "0.4846993", "0....
0.6492417
1
Get Resource Url for AddItemToWishlist
public static MozuUrl addItemToWishlistUrl(String responseFields, String wishlistId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("wishlistId", wishlistId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", response...
[ "0.6618655", "0.60519904", "0.58104604", "0.56835645", "0.5398415", "0.5358091", "0.5357011", "0.5316823", "0.52394474", "0.52264214", "0.52227515", "0.52033335", "0.51751006", "0.51635724", "0.5160002", "0.5129924", "0.511621", "0.50956506", "0.509454", "0.50291926", "0.5021...
0.65463305
1
Get Resource Url for UpdateWishlistItemQuantity
public static MozuUrl updateWishlistItemQuantityUrl(Integer quantity, String responseFields, String wishlistId, String wishlistItemId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}/{quantity}?responseFields={responseFields}"); formatter.formatUrl("quantity", quantity); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("wishlistId", wishlistId); formatter.formatUrl("wishlistItemId", wishlistItemId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MozuUrl updateWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", respo...
[ "0.60686344", "0.5645764", "0.52476954", "0.5118859", "0.50274974", "0.49718592", "0.49355993", "0.4926755", "0.4864948", "0.48187044", "0.48010218", "0.4794511", "0.47869402", "0.47734886", "0.4747583", "0.47351152", "0.4706875", "0.46719882", "0.46646774", "0.46390784", "0....
0.7145164
0
Get Resource Url for UpdateWishlistItem
public static MozuUrl updateWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("wishlistId", wishlistId); formatter.formatUrl("wishlistItemId", wishlistItemId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", response...
[ "0.6518625", "0.57631475", "0.5662305", "0.5572539", "0.52504677", "0.5200434", "0.51752883", "0.5169645", "0.51514256", "0.51456785", "0.4980814", "0.4951073", "0.49321485", "0.49222142", "0.49213243", "0.49128538", "0.49083322", "0.48952374", "0.48941404", "0.4850119", "0.4...
0.69776183
0
Get Resource Url for RemoveAllWishlistItems
public static MozuUrl removeAllWishlistItemsUrl(String wishlistId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items"); formatter.formatUrl("wishlistId", wishlistId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MozuUrl deleteWishlistItemUrl(String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}\");\r\n\t\tformatter.formatUrl(\"wishlistId\", wishlistId);\r\n\t\tformatter.formatUrl(\"wishlistItemId\", wish...
[ "0.6096256", "0.5781074", "0.5691987", "0.5532088", "0.53166366", "0.5251808", "0.5245408", "0.52023435", "0.5145778", "0.5132027", "0.50785196", "0.49641258", "0.49432802", "0.49415296", "0.49053344", "0.48870957", "0.486953", "0.4868934", "0.48525742", "0.48276138", "0.4794...
0.691488
0
Get Resource Url for DeleteWishlistItem
public static MozuUrl deleteWishlistItemUrl(String wishlistId, String wishlistItemId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}"); formatter.formatUrl("wishlistId", wishlistId); formatter.formatUrl("wishlistItemId", wishlistItemId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId)\r\n\t{\r\n\t\tUrlFormatter formatter = new UrlFormatter(\"/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}\");\r\n\t\tformatter.formatUrl(\"responseFields\", response...
[ "0.61157453", "0.590372", "0.5882707", "0.5801222", "0.56345135", "0.5484697", "0.5480993", "0.5452026", "0.5360074", "0.5348521", "0.53249943", "0.52332556", "0.51900685", "0.50888014", "0.5068462", "0.5061046", "0.5055746", "0.5027098", "0.5016009", "0.5004396", "0.4980341"...
0.7040652
0
Created by yuboyang on 10/8/17.
public interface MoviesListingInteractor { Observable<List<Movie>> fetchMovies(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.6207563", "0.6061318", "0.6056123", "0.60133874", "0.5918954", "0.5918954", "0.587573", "0.5860392", "0.58594203", "0.5850995", "0.5848125", "0.5827135", "0.5827135", "0.5827135", "0.5827135", "0.5827135", "0.58054054", "0.58044595", "0.5797656", "0.57930243", "0.57841796"...
0.0
-1
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 450, 300); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel panel = new JPanel(); frame.getContentPane().add(panel, BorderLayout.CENTER); panel.setLayout(null); JLabel lblNewLabel = new JLabel("\u8D27\u7269\u7F16\u53F7\uFF1A"); lblNewLabel.setBounds(75, 79, 71, 15); panel.add(lblNewLabel); JLabel lblNewLabel_1 = new JLabel("\u66F4\u6539\u8D27\u7269\u5355\u4EF7\u4E3A\uFF1A"); lblNewLabel_1.setBounds(79, 147, 104, 15); panel.add(lblNewLabel_1); textField = new JTextField(); textField.setBounds(193, 76, 66, 21); panel.add(textField); textField.setColumns(10); JButton button = new JButton("\u786E\u5B9A"); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String ID=textField.getText(); String num=textField_2.getText(); Connection con=Linkdb.getcon(); int resule=0; String sql="update 货物 set 货物单价= "+num+" where 货物编号="+ID; try { PreparedStatement ps=con.prepareStatement(sql); resule=ps.executeUpdate(); if(resule>0) { JOptionPane.showMessageDialog(null, "更改成功!"); }else{ JOptionPane.showMessageDialog(null, "更改出错!"); } } catch (HeadlessException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } }); button.setBounds(156, 196, 93, 23); panel.add(button); textField_2 = new JTextField(); textField_2.setBounds(193, 144, 66, 21); panel.add(textField_2); textField_2.setColumns(10); JMenuBar menuBar = new JMenuBar(); frame.setJMenuBar(menuBar); JMenu menu = new JMenu("\u8FD4\u56DE"); menu.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { HomeScreen rw=new HomeScreen(); rw.run(); frame.setVisible(false); } }); menuBar.add(menu); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r...
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.71079...
0.0
-1
/ Obtains the referenced object.
public Object getObject() throws javax.naming.NamingException { if (ThreadContext.isValid()) { ThreadContext cntx = ThreadContext.getThreadContext(); byte operation = cntx.getCurrentOperation(); checkOperation(operation); } return ref.getObject(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ObjectReference getObject();", "public Object getObject() {\n return getObject(null);\n }", "public Object getObject() {\r\n\t\treturn this.object;\r\n\t}", "public Object getObject() {\n\t\treturn object;\n\t}", "public Object getObject() {\n return this.object;\n }", "public ...
[ "0.8467903", "0.74675065", "0.7364269", "0.733283", "0.7328839", "0.7285592", "0.72720903", "0.7262881", "0.7229945", "0.7212059", "0.70897627", "0.70536834", "0.69777167", "0.6882415", "0.6869121", "0.6869121", "0.6869121", "0.6869121", "0.6864215", "0.6782727", "0.67825353"...
0.71524817
10
/ renamed from: a
public final /* bridge */ /* synthetic */ Object mo2541a() { return Boolean.valueOf(byi.m4371a(byl.f5017a, this.f5018b, ((Boolean) this.f5019c).booleanValue())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
Sets a subscription for an event, defined per client (or for all clients using ), for a particular statistic that satisfies a particular relation with a defined value.
public void setSubscription(String client, String stat, Relation rel, double val) { // Sanity checking try { MACAddress.valueOf(client); } catch (IllegalArgumentException e) { if (!client.equals(WILD_CARD)) { throw new IllegalArgumentException(); } } this.client = client; this.statistic = stat; this.relation = rel; this.value = val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSubscription(double value) {\n\t this.subscriptions = value;\n\t}", "public void smqOnChange(final long subscribers, final long tid);", "public abstract void setIncSubscribePolicy(SubscribePolicy paramSubscribePolicy);", "public void setWeightSubjectiveValue(Criterion criterion, double valu...
[ "0.63962096", "0.52008647", "0.51039064", "0.49282843", "0.4896153", "0.48948583", "0.48870057", "0.48830134", "0.48738423", "0.48635304", "0.4680665", "0.4561001", "0.45325667", "0.45310158", "0.45171678", "0.4509821", "0.44721183", "0.44556263", "0.44554195", "0.44533435", ...
0.66561687
0
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 TblSpecimenOld)) { return false; } TblSpecimenOld other = (TblSpecimenOld) object; if ((this.specimenId == null && other.specimenId != null) || (this.specimenId != null && !this.specimenId.equals(other.specimenId))) { 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.6892953", "0.68367153", "0.67017436", "0.66378665", "0.66378665", "0.658794", "0.65751237", "0.65751237", "0.6572061", "0.6572061", "0.6572061", "0.6572061", "0.6572061", "0.6572061", "0.65581834", "0.65581834", "0.65417314", "0.65221244", "0.6513472", "0.6485106", "0.6473...
0.0
-1
/ map[xWumpus][yWumpus] = 2; if(xPit == gridSize) if(xWumpus1 =0) map[xWumpus1][yWumpus] = 32; // il y'a courant d'air if(xWumpus + 1 =0) map[xWumpus+1][yWumpus] = 32; // il y'a courant d'air X+1, Y if(yWumpus 1 =0) map[xWumpus][yWumpus1] = 32; if(yPit2 + 1 =0) map[xWumpus][yWumpus+1] = 32;
public void KillWumpus() { liveWumpus = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateMap(){\n int[] blockStepX = {X_STEP, 0, -X_STEP, -X_STEP, 0, X_STEP};\n int[] blockStepY = {Y_STEP_ONE, Y_STEP_TWO, Y_STEP_ONE, -Y_STEP_ONE, -Y_STEP_TWO, -Y_STEP_ONE};\n int blockSpecialValue = 0;\n int cellSpecial = 0;\n\n mapCells[origin.x/10][origin.y/10] = new EschatonCell(n...
[ "0.6573425", "0.64252716", "0.6412392", "0.633834", "0.63296705", "0.63097024", "0.6292321", "0.62848854", "0.62714887", "0.6263542", "0.62324727", "0.6217001", "0.620895", "0.6191016", "0.61800283", "0.6163542", "0.61543345", "0.6124065", "0.6096439", "0.6093784", "0.60786",...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Enter string"); String input1 = scan.next(); String input2 = scan.next(); checkPermutations(input1,input2); }
{ "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
loading methods Method to load categories from server.
private void loadCategories(CategoriesCallback callback) { CheckItemsActivity context = this; makeRestGetRequest(RestClient.CATEGORIES_URL, (success, response) -> { if (!success) { Toast.makeText(context, LOAD_CATEGORIES_FAIL, Toast.LENGTH_SHORT).show(); // TODO: finish activity } else { try { categories = ModelsBuilder.getCategoriesFromJSON(response); // set categories list to spinner (common category spinner) and listener for it ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<>(context, android.R.layout.simple_spinner_item, categories); spinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); categorySpinner.setAdapter(spinnerAdapter); categorySpinner.setOnItemSelectedListener(new OnCommonCategorySelected()); } catch (JSONException e) { success = false; Log.d(DEBUG_TAG, "Load categories parsing fail"); } } // inform waiting entities (e.g. waiting for items list loading start) callback.onLoadedCategories(success); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void loadCategories() {\n loadCategories(mFirstLoad, true);\n mFirstLoad = false;\n }", "private void loadCategories() {\n\t\tcategoryService.getAllCategories(new CustomResponseListener<Category[]>() {\n\t\t\t@Override\n\t\t\tpublic void onHeadersResponse(Map<String, String...
[ "0.77575475", "0.7587894", "0.7180861", "0.6804693", "0.6672274", "0.6601643", "0.63165355", "0.628422", "0.62446356", "0.62083626", "0.61780727", "0.6169578", "0.6166685", "0.61404985", "0.6107926", "0.60919863", "0.6064599", "0.60484934", "0.60465413", "0.604277", "0.602901...
0.69587964
3
Method to load items from server.
private void loadItems() { CheckItemsActivity context = this; makeRestGetRequest(String.format(Locale.getDefault(), RestClient.ITEMS_URL, checkId), (success, response) -> { if (!success) { Log.d(DEBUG_TAG, "Load items fail"); Toast.makeText(context, LOAD_ITEMS_FAIL, Toast.LENGTH_SHORT).show(); } else { try { items = ModelsBuilder.buildItemsFromJSON(response); // pass loaded items and categories to adapter and set adapter to Recycler View itemsListAdapter = new ItemsListAdapter(items, categories, context); recyclerView.setAdapter(itemsListAdapter); } catch (JSONException e) { Log.d(DEBUG_TAG, "Load items parsing fail"); } } // set loading progress bar to invisible when loading is finished progressBar.setVisibility(View.INVISIBLE); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void loadItemsInternal();", "@Override\n\tpublic void load() {\n\t\tsuper.load();\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(config);\n\t\tbnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());\n\t\tadapter.close();\n\t\t\n\t\titemIds = bnetMap.keySet();\n\t}", "@Override\n ...
[ "0.70878154", "0.6799593", "0.67336434", "0.6684812", "0.66632485", "0.6526749", "0.6462015", "0.636916", "0.6316389", "0.63125575", "0.6277165", "0.6228814", "0.6216656", "0.6196266", "0.614395", "0.6117208", "0.60867244", "0.60644394", "0.604046", "0.6018807", "0.5989972", ...
0.73141974
0
help methods Method to make REST GET request and then get response by callback using.
private void makeRestGetRequest(String url, OnJSONResponseCallback callback) { CheckItemsActivity context = this; RestClient.get(url, context.username, context.password, new JsonHttpResponseHandler() { @Override public void onSuccess(int statusCode, Header[] headers, JSONObject response) { callback.onJSONResponse(true, response); } @Override public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) { callback.onJSONResponse(false, errorResponse); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected String doInBackground(String... params) {\n\t\t RESTClient request=new RESTClient(getURL());\n\t try {\n\t\t\t\trequest.Execute(RequestMethod.GET);\n\t\t\t\treturn request.getResponse();\n\t\t\t} \n\t catch (Exception e) \n\t\t\t{\n\t\t\t\t// TODO Auto-generated catch block\n\t...
[ "0.679388", "0.6563997", "0.65437174", "0.65112084", "0.6504468", "0.6392205", "0.6375407", "0.6374822", "0.632885", "0.62703836", "0.6231484", "0.6154859", "0.6111016", "0.6087768", "0.60373074", "0.6025025", "0.6021135", "0.6020886", "0.60128176", "0.5991703", "0.5970644", ...
0.661326
1
Method to upload to server items categories changes/
private void uploadCategoriesChanges(JSONObject json) throws UnsupportedEncodingException { RestClient.put(this, RestClient.UPDATE_CATEGORY_URL, json, username, password, new JsonHttpResponseHandler() { @Override public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) { Log.d(DEBUG_TAG, "updating category failure " + errorResponse.toString()); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateCategory(String category){}", "@Override\n public void updateCategories(List<String> categories) {\n //Update the Category Spinner with the new data\n mCategorySpinnerAdapter.clear();\n //Add the Prompt as the first item\n categories.add(0, mSpinnerProductCategory.getPro...
[ "0.6093618", "0.59352744", "0.57561594", "0.57441276", "0.57441276", "0.5705321", "0.56841403", "0.5643652", "0.55871004", "0.5524245", "0.55218226", "0.55150425", "0.5499452", "0.5479352", "0.54610145", "0.5371212", "0.53669065", "0.5364169", "0.5354362", "0.5299248", "0.527...
0.6756472
0
on item(s) category changed methods Method (callback) to change item category when it was changed on an item card.
@Override public void onItemCategorySelected(boolean firstSelection, int itemPosition, int categoryPosition) { if (firstSelection) return; categoriesChanged = true; Item item = items.get(itemPosition); String selectedCategory = categories.get(categoryPosition); item.setCategory(selectedCategory); Log.d(DEBUG_TAG, "Category: " + items.get(itemPosition).getCategory()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateCategory(Category category);", "void updateCategory(Category category);", "public void changeCategory(Category newCategory) {\n this.category = newCategory;\n }", "void updateCategory(String category){}", "public void setCategory(String newCategory) {\n category = newCategory;\n ...
[ "0.65251195", "0.65251195", "0.64806604", "0.6467046", "0.6413246", "0.62518156", "0.60691", "0.6054119", "0.6028215", "0.60123867", "0.5951334", "0.59492666", "0.59276396", "0.59081095", "0.58978426", "0.58726496", "0.587121", "0.5863447", "0.5835933", "0.5821846", "0.579222...
0.6375617
5
callbacks interfaces Interface to handle JSON only after getting of response.
private interface OnJSONResponseCallback { void onJSONResponse(boolean success, JSONObject response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onResponse(JSONObject response) {\n processResponse(response);\n }", "public interface JsonCallBack {\n public void getJson(String s);\n}", "public interface MyCallbackInterfa...
[ "0.7347464", "0.7203441", "0.7154295", "0.706503", "0.70075196", "0.6985059", "0.6893944", "0.67516047", "0.673318", "0.66765136", "0.66056365", "0.6580004", "0.6558933", "0.655727", "0.65275526", "0.652162", "0.652162", "0.6469565", "0.64635885", "0.6454458", "0.64543754", ...
0.7271032
1
Interface to make actions only when categories loading is finished.
private interface CategoriesCallback { void onLoadedCategories(boolean success); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void loadCategoriesAsync(OnCategoryLoad onCategoryLoad);", "@Override\n public void loadCategories() {\n loadCategories(mFirstLoad, true);\n mFirstLoad = false;\n }", "private void loadCategories(CategoriesCallback callback) {\n CheckItemsActivity context = this;\n makeRestGet...
[ "0.6930542", "0.6833762", "0.65541136", "0.6174039", "0.6111528", "0.6046198", "0.59554684", "0.59142643", "0.59072435", "0.5873806", "0.5711403", "0.57079023", "0.5684773", "0.5646268", "0.5609192", "0.55742055", "0.55699867", "0.54209876", "0.5408436", "0.53906685", "0.5374...
0.73432785
0
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try (PrintWriter out = response.getWriter()) { out.println("<!DOCTYPE html>"); out.println("<html>"); out.println("<head>"); out.println("<title>Servlet CommentServlet</title>"); out.println("</head>"); out.println("<body>"); out.println("<h1>" + request.getParameter("profile_id") + "</h1>"); out.println("</body>"); out.println("</html>"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_...
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.6392...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
endregion Variables region Constructor
public AccountManager(String transactionsFileName, String checkingAccountFileName, String savingsAccountFileName, String cdAccountFileName, String atmAccountFileName, String creditCardAccountFileName, String termLoanAccountFileName) { accounts = new ArrayList<>(); //Load transactions first so the hash map is built loadTransactions(transactionsFileName); loadCheckingAccounts(checkingAccountFileName); loadSavingsAccounts(savingsAccountFileName); loadCDAccounts(cdAccountFileName); loadATMAccounts(atmAccountFileName); loadCreditCardAccounts(creditCardAccountFileName); loadTermLoanAccounts(termLoanAccountFileName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public PSRelation()\n {\n }", "private TMCourse() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "public _355() {\n\n }", "public CyanSus() {\n\n }", "private void __sep__Constructors__() {}", "public CSSTidier() {\n\t}", ...
[ "0.80695134", "0.7568266", "0.71285135", "0.6998254", "0.69900924", "0.69793737", "0.6933626", "0.6932947", "0.6924543", "0.6846754", "0.6842382", "0.67554855", "0.6739684", "0.673738", "0.67258704", "0.6722215", "0.67212623", "0.67108136", "0.67102057", "0.6698267", "0.66926...
0.0
-1
endregion Constructor begin GetCustomerAccounts This gets the customer accounts using the SSN on the account.
public ArrayList<Account> GetCustomerAccounts(String ssn) { ArrayList<Account> result = new ArrayList<>(); for (Account account : accounts) { if (account.getSsn().equals(ssn)) { result.add(account); } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Account> getAccountsForCustomerId(int customerId);", "public List<Account> getAccounts(String customerName){\n List<Account> accounts = new ArrayList<>();\n try {\n accounts = getAccountsFromFile();\n } catch (Exception e) {\n System.out.println(messageService.unex...
[ "0.6128522", "0.61012226", "0.57726675", "0.5578261", "0.555834", "0.5543297", "0.5531085", "0.5522849", "0.5496337", "0.5487294", "0.5426979", "0.53903544", "0.53796005", "0.5376846", "0.53323287", "0.5326971", "0.5317806", "0.53031564", "0.527999", "0.52791077", "0.5251541"...
0.8070258
0
end GetCustomerAccounts... region Checking this function loads in checking accounts from a flat file and stores the information in the accounts array.
private void loadCheckingAccounts(String checkingAccountFileName) { try { /* Open the file to read */ File inputFile = new File(checkingAccountFileName); /* Create a scanner to begin reading from file */ Scanner input = new Scanner(inputFile); while (input.hasNextLine()) { //reading... String currentLine = input.nextLine(); //parse on commas String[] splitLine = currentLine.split(","); //DateFormat class to parse Date from file DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT); //parsing out data... int accountId = Integer.parseInt(splitLine[0]); double balance = Double.parseDouble(splitLine[1]); String ssn = splitLine[2]; double interestRate = Double.parseDouble(splitLine[3]); Date dateOpened = dateFormat.parse(splitLine[4]); int overdraftSavingsAccountId = Integer.parseInt(splitLine[5]); boolean isGoldDiamond = Boolean.parseBoolean(splitLine[6]); Checking checkingAccount = new Checking(accountId, balance, ssn, interestRate, dateOpened, overdraftSavingsAccountId, isGoldDiamond); ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId); checkingAccount.setTransactions(accountTransactions); //add checking account... accounts.add(checkingAccount); } input.close(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ReadInAccounts() {\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", \"checking for file\" + AccountMan.CheckForFile());\n\t\taccounts = AccountMan.GetAccounts();\n\t\t//Comment out this line and uncomment the line above after purging the excess accounts\n\t\t//accounts = AccountMan.PurgeDuplicateA...
[ "0.7281389", "0.7113103", "0.684868", "0.68054795", "0.65327096", "0.6335997", "0.6318756", "0.62711936", "0.6166441", "0.6116488", "0.6107901", "0.6089233", "0.5895277", "0.5868905", "0.5861292", "0.5844721", "0.5819824", "0.581549", "0.5781676", "0.5749801", "0.57478416", ...
0.72005796
1
endregion loadCheckingAccounts region loadSavingsAccounts this function loads in savings accounts from a flat file and stores the information in the accounts array.
private void loadSavingsAccounts(String savingsAccountFileName) { try { /* Open the file to read */ File inputFile = new File(savingsAccountFileName); /* Create a scanner to begin reading from file */ Scanner input = new Scanner(inputFile); while (input.hasNextLine()) { //read... String currentLine = input.nextLine(); //parse on commas... String[] splitLine = currentLine.split(","); //DateFormat class to parse Date from file DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT); //parsing out data... int accountId = Integer.parseInt(splitLine[0]); double balance = Double.parseDouble(splitLine[1]); String ssn = splitLine[2]; double interestRate = Double.parseDouble(splitLine[3]); Date dateOpened = dateFormat.parse(splitLine[4]); int overdraftAccountId = Integer.parseInt(splitLine[5]); Savings savingsAccount = new Savings(accountId, balance, ssn, interestRate, dateOpened, overdraftAccountId); ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId); savingsAccount.setTransactions(accountTransactions); //add savings account... accounts.add(savingsAccount); } input.close(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadCheckingAccounts(String checkingAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(checkingAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputF...
[ "0.7131831", "0.6251994", "0.60113144", "0.58561695", "0.57223105", "0.5718094", "0.54529494", "0.5329098", "0.52320373", "0.52257663", "0.52119666", "0.5211456", "0.5192847", "0.5168523", "0.5166864", "0.5134988", "0.51023406", "0.50133353", "0.50077045", "0.49677327", "0.49...
0.7500362
0
endregion loadSavingsAccounts region loadCDAccounts this function loads in CD accounts from a flat file and stores the information in the accounts array.
private void loadCDAccounts(String cdAccountFileName) { try { /* Open the file to read */ File inputFile = new File(cdAccountFileName); /* Create a scanner to begin reading from file */ Scanner input = new Scanner(inputFile); while (input.hasNextLine()) { //reading... String currentLine = input.nextLine(); //parse on commas... String[] splitLine = currentLine.split(","); //DateFormat class to parse Date from file DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT); //parse out data... int accountId = Integer.parseInt(splitLine[0]); double balance = Double.parseDouble(splitLine[1]); String ssn = splitLine[2]; double interestRate = Double.parseDouble(splitLine[3]); Date dateOpened = dateFormat.parse(splitLine[4]); Date startDate = dateFormat.parse(splitLine[5]); Date endDate = dateFormat.parse(splitLine[6]); CD cdAccount = new CD(accountId, balance, ssn, interestRate, dateOpened, startDate, endDate); ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId); cdAccount.setTransactions(accountTransactions); //add CD Accounts... accounts.add(cdAccount); } input.close(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<CDAccount> findAccounts(Integer id) throws AccountNotFoundException {\n\t\treturn userService.findById(id).getCdAccounts();\n\t}", "private void loadCreditCardAccounts(String creditCardAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile...
[ "0.6031429", "0.59113795", "0.583265", "0.58308184", "0.57278633", "0.5582204", "0.54814726", "0.547395", "0.5273154", "0.52320576", "0.5226397", "0.5212974", "0.51957434", "0.5118011", "0.5038003", "0.49425024", "0.49111572", "0.4899843", "0.48584017", "0.48432967", "0.48362...
0.7246588
0