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
The display description_ of the group
public String getDescription() { return description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getGroupDescription() {\n return groupDescription;\n }", "public String getOriginalDescription() {\n return group.getDescription();\n }", "String getDisplay_description();", "public String getDescription() {\n return (desc);\n }", "public String getDescri...
[ "0.81849617", "0.79772663", "0.77709925", "0.75366336", "0.7508459", "0.7484599", "0.7475041", "0.74596155", "0.7453771", "0.7453771", "0.7453771", "0.7453771", "0.7453771", "0.7453771", "0.7453771", "0.7453771", "0.7453771", "0.74405074", "0.74383765", "0.7424207", "0.740415...
0.0
-1
Finish the registration screen and return to the Login activity
@Override public void onClick(View v){ finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void Register()\n {\n Intent registerIntent = new Intent (LoginActivity.this, RegisterActivity.class);\n startActivity(registerIntent);\n finish();\n }", "private void goRegisterActivity() {\n Intent i = new Intent(this, RegisterActivity.class);\n startActivity(i)...
[ "0.808689", "0.7773493", "0.7723173", "0.7697511", "0.75757384", "0.75735956", "0.75318795", "0.7504608", "0.7475807", "0.74713904", "0.74555993", "0.73647016", "0.73444295", "0.7333595", "0.72717786", "0.7268354", "0.72414833", "0.72198397", "0.72188854", "0.721371", "0.7196...
0.0
-1
Default tags that will be use for writes by Point and POJO.
@Nonnull public PointSettings getPointSettings() { return pointSettings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tags() {\n set (\"\");\n }", "public Tag addDefaultTag(){\n StringProperty tagName = new SimpleStringProperty();\n tagName.setValue(\"New Tag\");\n Tag newTag = new Tag(tagName);\n\n\n /* verify if id is integer or string, we handle just strings here\n newTag.setIdPr...
[ "0.585316", "0.57152116", "0.5669884", "0.54547906", "0.5343675", "0.5327424", "0.5286326", "0.52255714", "0.5213499", "0.51833004", "0.514551", "0.5136106", "0.51336306", "0.5122921", "0.51205355", "0.5111237", "0.5094389", "0.5094389", "0.5094389", "0.5081085", "0.5060694",...
0.0
-1
Creates a builder instance.
@Nonnull public static InfluxDBClientOptions.Builder builder() { return new InfluxDBClientOptions.Builder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Builder create() {\n\t\treturn new Builder();\n\t}", "public static Builder create() {\n\t\treturn new Builder();\n\t}", "public static Builder builder ()\n {\n\n return new Builder ();\n\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Bu...
[ "0.83454746", "0.83454746", "0.824131", "0.8229772", "0.8229772", "0.8229772", "0.81956726", "0.81956726", "0.81956726", "0.81956726", "0.81873024", "0.81867063", "0.81867063", "0.81867063", "0.81867063", "0.81867063", "0.81867063", "0.81867063", "0.81867063", "0.81867063", "...
0.0
-1
Construtor default do Jovem
public Jovem(String identificador) { super(identificador); numAulas = DEFAULT_N_AULAS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constraint createConstraint();", "Constraint createConstraint();", "public LinearConstraint() {\n\n }", "@Override\n public Constraint converConstrain(String classname, String parvarn1, String parvarn2, String parvarn3) throws ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArg...
[ "0.6538362", "0.6538362", "0.6522887", "0.62438107", "0.60722744", "0.60711986", "0.60708725", "0.5916955", "0.59132975", "0.59029454", "0.5900569", "0.5841704", "0.5767163", "0.5754879", "0.5733248", "0.5730854", "0.5647715", "0.561006", "0.56047595", "0.56011945", "0.560008...
0.0
-1
Created by dell on 2016/9/13.
public interface OnLoginFinishedListener { void onUsernameError(); void onPasswordError(); void onSuccess(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Over...
[ "0.607388", "0.5935996", "0.5925816", "0.5888535", "0.5822642", "0.5801007", "0.5794606", "0.5794606", "0.57556", "0.57296306", "0.5724922", "0.570761", "0.57000595", "0.5699635", "0.56756043", "0.5667688", "0.5660144", "0.5659832", "0.5640003", "0.5640003", "0.5640003", "0...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println("Sample Spring Application!!"); //EmployeeService employeeService = new EmployeeServiceImpl(); ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml"); EmployeeService employeeService = applicationContext.getBean("employeeService", EmployeeService.class); System.out.println(employeeService.getAllEmployee().get(0).getName()); }
{ "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
the listener for load more Created by xxoo on 2016/5/14.
public interface OnLoadMoreListener { /** * loadmore */ void onLoadMore(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onMyLoadMore() {\n\t\t\n\t}", "@Override\n\tpublic void onMyLoadMore() {\n\t\t\n\t}", "@Override\n\t\tpublic synchronized void onLoadMore() {\n\t\t\ttry {\n\t\t\t\t//如果总页数大于当前页码数,加载更多\n\t\t\t\tif(pageSize > curPage){\n\t\t\t\t\tURL = URL.substring(0, URL.lastIndexOf(\"_\")+1);\n\t\t\t\...
[ "0.8021339", "0.8021339", "0.7581503", "0.7565417", "0.7546019", "0.7546019", "0.7468165", "0.74466205", "0.7342107", "0.7332849", "0.72588927", "0.72448385", "0.7215506", "0.71960443", "0.7167113", "0.7164185", "0.71600693", "0.71511084", "0.71511084", "0.71511084", "0.71511...
0.71170956
22
Default constructor for test class MemoryTest
public MemoryTest() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private MemoryTest() {\r\n }", "Memory() {}", "public Memory() {\n this(false);\n }", "protected TestBench() {}", "public TestBuffer() {\n }", "public PlainMemory(String name)\n\t{\n\t\tsuper(name);\n\t\t\t\n\t}", "public Test() {\n }", "public Test()\n {\n }", "public TestDriver...
[ "0.88044006", "0.7880379", "0.7585002", "0.7184088", "0.69023025", "0.66968477", "0.66302", "0.66291094", "0.65021145", "0.64595884", "0.6404455", "0.63979363", "0.6385905", "0.63851714", "0.6377504", "0.63629216", "0.63510466", "0.6341733", "0.63141257", "0.6306339", "0.6291...
0.883425
0
Ask user for permissions at runtime (for Android 6 and above)
public interface RuntimePermissionRequester { /** * Asks user for specific permissions needed to proceed * * @param requestCode Request permission using this code, allowing for * callback distinguishing */ void requestNeededPermissions(int requestCode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void askForPermissions();", "public void askPermission() {\n try {\n if (Build.VERSION.SDK_INT >= 23) {\n //call the function to ask for permission\n try {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (Activ...
[ "0.76661366", "0.747419", "0.7237717", "0.7213219", "0.7184757", "0.7162213", "0.7130799", "0.7106978", "0.7105965", "0.7098892", "0.70961046", "0.70510304", "0.70315546", "0.7022425", "0.7021251", "0.7019748", "0.701077", "0.69731414", "0.6906352", "0.6894877", "0.68941647",...
0.0
-1
Asks user for specific permissions needed to proceed
void requestNeededPermissions(int requestCode);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void askForPermissions();", "public void permission_check() {\n //Usage Permission\n if (!isAccessGranted()) {\n new LovelyStandardDialog(MainActivity.this)\n .setTopColorRes(R.color.colorPrimaryDark)\n .setIcon(R.drawable.ic_perm_device_information_...
[ "0.8214995", "0.69170713", "0.6902239", "0.6791895", "0.66965765", "0.66447777", "0.6591902", "0.65824103", "0.65597886", "0.6557379", "0.6500461", "0.65004504", "0.6466042", "0.64250076", "0.6414098", "0.63793385", "0.6375544", "0.6370618", "0.63535416", "0.6335474", "0.6323...
0.6836287
3
Main pane van TransactieScreen
public TransactionScreen(Pane root, String rekNr) { setupLogin(RegisterState.USER, "Gebruiker"); this.selectedRekNum = rekNr; // GridPanes GridPane gridTop = new GridPane(); GridPane gridCenter = new GridPane(); // Borderpane settings, aangeven waar de panes komen te staan. transactionBorderPane.setTop(gridTop); transactionBorderPane.setCenter(gridCenter); // Style, Fonts lbTitel.setFont(Font.font("Arial", FontWeight.BOLD, 20)); lbTitel.setTextFill(Color.BLACK); lbSaldo.setFont(Font.font("Arial", FontWeight.BOLD, 20)); lbTitel.setTextFill(Color.BLACK); /** * Setup Colunms van TableView */ // Kolom Datum TableColumn<Transactie, String> datumColunm = new TableColumn<>("Datum"); datumColunm.setMinWidth(100); datumColunm.setMaxWidth(100); datumColunm.setCellValueFactory(new PropertyValueFactory<>("datum")); // Kolom Omschrijving TableColumn<Transactie, String> omschrijvingColunm = new TableColumn<>("Omschrijving"); omschrijvingColunm.setMinWidth(200); omschrijvingColunm.setMaxWidth(200); omschrijvingColunm.setSortable(false); omschrijvingColunm.setCellValueFactory(new PropertyValueFactory<>("omschrijving")); // Kolom bedragIn TableColumn<Transactie, Double> bedragInColunm = new TableColumn<>("IN"); bedragInColunm.setMinWidth(100); bedragInColunm.setMaxWidth(100); bedragInColunm.setSortable(false); bedragInColunm.setCellValueFactory(new PropertyValueFactory<>("bedragIn")); // Kolom bedragUit TableColumn<Transactie, Double> bedragUitColunm = new TableColumn<>("UIT"); bedragUitColunm.setMinWidth(100); bedragUitColunm.setMaxWidth(100); bedragUitColunm.setSortable(false); bedragUitColunm.setCellValueFactory(new PropertyValueFactory<>("bedragUit")); // Kolom Saldo TableColumn<Transactie, Double> saldoColunm = new TableColumn<>("Saldo"); saldoColunm.setMinWidth(100); saldoColunm.setMaxWidth(100); saldoColunm.setSortable(false); saldoColunm.setCellValueFactory(new PropertyValueFactory<>("saldo")); // Toevoegen in Table TableTransacties. tableTransacties.setItems(getTransactie()); tableTransacties.getColumns().addAll(datumColunm,omschrijvingColunm,bedragInColunm,bedragUitColunm,saldoColunm); tableTransacties.columnResizePolicyProperty(); tableTransacties.getStylesheets().add("styles/TableView.css"); tableTransacties.setMinWidth(620); // Disabled drag en drop tableTransacties.widthProperty().addListener((source, oldWidth, newWidth) -> { TableHeaderRow header = (TableHeaderRow) tableTransacties.lookup("TableHeaderRow"); header.reorderingProperty().addListener((observable, oldValue, newValue) -> header.setReordering(false)); }); /** * GridTop */ // Settings gridTop.setAlignment(Pos.TOP_LEFT); gridTop.setVgap(10); gridTop.setHgap(10); gridTop.setPadding(new Insets(10)); // Elementen toevoegen gridTop.add(btnTerug,0,0); /** * GridCenter */ // Settings gridCenter.setAlignment(Pos.CENTER); // Elementen toevoegen gridCenter.add(lbTitel,0,0); gridCenter.add(lbSaldo, 0,0); gridCenter.setHalignment(lbSaldo, HPos.RIGHT); gridCenter.add(tableTransacties,0,1); btnTerug.setOnAction( event -> back()); pageContainer.getChildren().add(transactionBorderPane); root.getChildren().add(appContainer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void launchMainScreen() {\n\t\tmainWindow = new MainGameScreen(this);\n\t}", "public void onShowMain(ActionEvent event) {\n try {\n Stage stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n Parent scene = FXMLLoader.load(getClass().getResource(\"/App/View/Ma...
[ "0.67229307", "0.666941", "0.6573109", "0.65364546", "0.65209216", "0.6469865", "0.6467323", "0.643514", "0.6427295", "0.64238936", "0.63754565", "0.63698834", "0.6369508", "0.63547665", "0.6332215", "0.632985", "0.63186806", "0.6307511", "0.6288119", "0.624712", "0.62463844"...
0.0
-1
Returns the user from this list that is associated with the UID
public User getUser(String uid) { Enumeration<Object> enumeration = elements(); while(enumeration.hasMoreElements()){ User user = (User)enumeration.nextElement(); if(uid.equals(user.getUid().toString())) { return user; } } throw new NoSuchElementException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User getUserbyUid(Integer uid);", "public AlarmUser getUser(String ID) {\n\t\tListIterator<AlarmUser> userList = users.listIterator();\n\t\t\n\t\tlogger.log(\"Looking for User by ID \" + ID, Level.TRACE);\n\t\t\n\t\twhile(userList.hasNext()) {\n\t\t\tAlarmUser theUser = userList.next();\n\t\t\tif(theUser....
[ "0.72198814", "0.66830283", "0.65383387", "0.65089184", "0.6502647", "0.6502647", "0.6502647", "0.648792", "0.64840055", "0.6416247", "0.63903433", "0.6369857", "0.63622713", "0.6359432", "0.63567054", "0.6345054", "0.6342467", "0.63307387", "0.62956876", "0.62563026", "0.625...
0.7043552
1
Get Method : value int
public String getValue() { return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getMethodValue();", "public int getValue();", "public int getValue();", "int getValue();", "int getValue();", "int getValue();", "int getValue();", "int getValue();", "public abstract int getValue();", "public abstract int getValue();", "public abstract int getValue();", "int getIntValue(...
[ "0.8300129", "0.7957629", "0.7957629", "0.78137803", "0.78137803", "0.78137803", "0.78137803", "0.78137803", "0.77200305", "0.77200305", "0.77200305", "0.76797587", "0.7634707", "0.7632647", "0.7491523", "0.7491523", "0.74262494", "0.74008185", "0.7355822", "0.73328173", "0.7...
0.0
-1
Get Method : name String
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getMethod();", "String getMethod();", "String getMethodName();", "String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "MethodName getMethod();", "public Method getMetho...
[ "0.8703892", "0.8703892", "0.8485339", "0.8485339", "0.835661", "0.835661", "0.835661", "0.835661", "0.825116", "0.81315666", "0.7989128", "0.7989128", "0.7860191", "0.78070736", "0.7679784", "0.7543287", "0.75158876", "0.74283564", "0.7348223", "0.73414665", "0.7315964", "...
0.0
-1
Creates new form MainFrame
public MainFrame() { super("Classic Crypto Tools"); initComponents(); this.setResizable(false); plainOutputButton.setSelected(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(ic...
[ "0.7866579", "0.77944225", "0.772502", "0.7701847", "0.7677743", "0.7677743", "0.7677743", "0.7677743", "0.7677743", "0.7677743", "0.7677743", "0.7677743", "0.7677743", "0.7677743", "0.7677743", "0.7677743", "0.7630211", "0.76181847", "0.7527362", "0.7495771", "0.7302958", ...
0.67574275
76
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() { jScrollPane1 = new javax.swing.JScrollPane(); inputText = new javax.swing.JTextArea(); jScrollPane2 = new javax.swing.JScrollPane(); outputText = new javax.swing.JTextArea(); stdVigenereEncButton = new javax.swing.JRadioButton(); stdVigenereDecButton = new javax.swing.JRadioButton(); extVigenereEncButton = new javax.swing.JRadioButton(); extVigenereDecButton = new javax.swing.JRadioButton(); playFairEncButton = new javax.swing.JRadioButton(); playFairDecButton = new javax.swing.JRadioButton(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); openFileButton = new javax.swing.JButton(); jLabel4 = new javax.swing.JLabel(); keyText = new javax.swing.JTextField(); jLabel5 = new javax.swing.JLabel(); plainOutputButton = new javax.swing.JRadioButton(); noSpaceOutputButton = new javax.swing.JRadioButton(); fiveCharOutputButton = new javax.swing.JRadioButton(); saveOutputButton = new javax.swing.JButton(); execButton = new javax.swing.JButton(); jLabel6 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); inputText.setColumns(20); inputText.setRows(5); jScrollPane1.setViewportView(inputText); outputText.setColumns(20); outputText.setRows(5); jScrollPane2.setViewportView(outputText); stdVigenereEncButton.setText("Encrypt Vigenere (Standard)"); stdVigenereEncButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { stdVigenereEncButtonActionPerformed(evt); } }); stdVigenereDecButton.setText("Decrypt Vigenere (Standard)"); stdVigenereDecButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { stdVigenereDecButtonActionPerformed(evt); } }); extVigenereEncButton.setText("Encrypt Vigenere (Extended)"); extVigenereEncButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { extVigenereEncButtonActionPerformed(evt); } }); extVigenereDecButton.setText("Decrypt Vigenere (Extended)"); extVigenereDecButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { extVigenereDecButtonActionPerformed(evt); } }); playFairEncButton.setText("Encrypt Playfair"); playFairEncButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { playFairEncButtonActionPerformed(evt); } }); playFairDecButton.setText("Decrypt Playfair"); playFairDecButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { playFairDecButtonActionPerformed(evt); } }); jLabel1.setText("Algorithm"); jLabel2.setText("Input"); jLabel3.setText("Output"); openFileButton.setText("Open..."); openFileButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openFileButtonActionPerformed(evt); } }); jLabel4.setText("Key"); jLabel5.setText("Output Mode"); plainOutputButton.setText("as plaintext"); plainOutputButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { plainOutputButtonActionPerformed(evt); } }); noSpaceOutputButton.setText("no spacing"); noSpaceOutputButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { noSpaceOutputButtonActionPerformed(evt); } }); fiveCharOutputButton.setText("5-chars group"); fiveCharOutputButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { fiveCharOutputButtonActionPerformed(evt); } }); saveOutputButton.setText("Save as..."); saveOutputButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveOutputButtonActionPerformed(evt); } }); execButton.setText("Execute"); execButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { execButtonActionPerformed(evt); } }); jLabel6.setText("(c) Rakhmatullah Yoga Sutrisna - 2016"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(17, 17, 17) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addComponent(jLabel4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(keyText)) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2)) .addComponent(jLabel3) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(fiveCharOutputButton) .addComponent(jLabel1) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(extVigenereDecButton, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(stdVigenereDecButton) .addComponent(stdVigenereEncButton)) .addComponent(playFairDecButton) .addComponent(playFairEncButton) .addComponent(jLabel5) .addComponent(plainOutputButton) .addComponent(noSpaceOutputButton) .addComponent(extVigenereEncButton)) .addGap(19, 19, 19)) .addGroup(layout.createSequentialGroup() .addComponent(openFileButton) .addGap(18, 18, 18) .addComponent(saveOutputButton) .addGap(18, 18, 18) .addComponent(execButton) .addGap(18, 18, 18) .addComponent(jLabel6) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(9, 9, 9) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(jLabel2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(stdVigenereEncButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(stdVigenereDecButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(extVigenereEncButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(extVigenereDecButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(playFairEncButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(playFairDecButton)) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(keyText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel3))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 19, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(openFileButton) .addComponent(saveOutputButton) .addComponent(execButton) .addComponent(jLabel6)) .addGap(6, 6, 6)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(plainOutputButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(noSpaceOutputButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(fiveCharOutputButton) .addGap(0, 0, Short.MAX_VALUE)))) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7319545", "0.7290502", "0.7290502", "0.7290502", "0.72860676", "0.7248135", "0.72132677", "0.7208833", "0.7195503", "0.71899074", "0.71839535", "0.7159182", "0.71478266", "0.7092896", "0.7081379", "0.70575553", "0.6987028", "0.69771224", "0.69548094", "0.6954804", "0.69449...
0.0
-1
Display the collection types supported by c:forEach.
public static String display(Object obj) throws JspTagException { if (obj == null) return ""; if (obj instanceof String) return obj.toString(); /* if (obj instanceof Collection) { return "FIXME"; } if (obj instanceof Map) { return "FIXME"; } if (obj instanceof Iterator) { Iterator iter = (Iterator)obj; while (iter.hasNext()) { iter.next(); } return "FIXME"; } if (obj instanceof Enumeration) { Enumeration enum = (Enumeration)obj; while (enum.hasMoreElements()) { enum.nextElement(); } return "FIXME"; } */ try { StringBuffer buf = new StringBuffer(); int count = Array.getLength(obj); for (int i=0; i<count; i++) { buf.append(Array.get(obj, i).toString()); if (i<count-1) buf.append("<font color='red'> &#149; </font>"); } return buf.toString(); } catch (IllegalArgumentException ex) {} throw new JspTagException("Bad Item"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void printCollection(Collection<?> c) {\n\tfor (Object e : c) {\r\nSystem.out.println(e);\r\n}\r\n}", "public static void PrintCollection2(Collection<?> c)\r\n\t{\r\n\t\tfor (Object obj : c)\r\n\t\t\tSystem.out.println(obj);\r\n\t}", "public String getCollectionClass ();", "static void print(Co...
[ "0.62936205", "0.60783494", "0.587454", "0.5721222", "0.56989366", "0.5695894", "0.5669145", "0.551223", "0.5418826", "0.5405443", "0.5359439", "0.5293351", "0.5289745", "0.52474767", "0.52425987", "0.52306265", "0.51920366", "0.51853776", "0.51758605", "0.51719093", "0.51601...
0.0
-1
Constructs a SearchResult from the server response
SearchResult(byte[] xml) throws SAXException { DocumentBuilder builder; Document response; try { builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); response = builder.parse(new ByteArrayInputStream(xml)); Element result = (Element) response.getElementsByTagName(RESULT_TAG).item(0); NodeList items = result.getElementsByTagName(CLICS_TAG).item(0).getChildNodes(); // clics results = new ClicMetaData[items.getLength()]; for (int i = 0; i < results.length; i++) { results[i] = new ClicMetaData((Element) items.item(i)); } // pagination related stuff Element paginationNode = (Element) result.getElementsByTagName(PAGINATION_TAG).item(0); totalResults = Integer.parseInt(paginationNode.getElementsByTagName(TOTAL_RESULTS_TAG).item(0) .getFirstChild().getNodeValue()); Element pagesNode = ((Element) paginationNode.getElementsByTagName(PAGES_TAG).item(0)); totalPages = Integer.parseInt(pagesNode.getElementsByTagName(TOTAL_PAGES_TAG).item(0).getFirstChild() .getNodeValue()); currentPage = Integer.parseInt(pagesNode.getElementsByTagName(CURRENT_PAGE_TAG).item(0).getFirstChild() .getNodeValue()); } catch (SAXException e) { throw new SAXException(MALFORMED_RESPONSE); } catch (IOException e) { throw new SAXException(MALFORMED_RESPONSE); } catch (ParserConfigurationException e) { throw new SAXException(MALFORMED_RESPONSE); } catch (NegativeArraySizeException e) { throw new IllegalArgumentException(EMPTY_PAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static SearchResponse createSearchResponse() {\n long tookInMillis = randomNonNegativeLong();\n int totalShards = randomIntBetween(1, Integer.MAX_VALUE);\n int successfulShards = randomIntBetween(0, totalShards);\n int skippedShards = randomIntBetween(0, totalShards);\n I...
[ "0.7176904", "0.67012644", "0.6598201", "0.6569335", "0.6452785", "0.63827324", "0.63699913", "0.62569433", "0.6232508", "0.61957484", "0.61930907", "0.6133958", "0.61317784", "0.61313486", "0.60692996", "0.60580313", "0.6025913", "0.60122526", "0.59637296", "0.59469855", "0....
0.57759386
31
Initializing a Table object with 4 players
@Test public void test() { Table table = new Table(4); try { //calling the method to deal 5 cards to every player table.dealCards(5); //setting 4 ArrayLists to the ArrayLists in 'table's players arrayList ArrayList<Card> p1 = table.getPlayerHands(0); ArrayList<Card> p2 = table.getPlayerHands(1); ArrayList<Card> p3 = table.getPlayerHands(2); ArrayList<Card> p4 = table.getPlayerHands(3); //showing an example hand table.printPlayersHand(0); //testing that all players have a hand size of 5 cards assertEquals(5, p1.size()); assertEquals(5, p2.size()); assertEquals(5, p3.size()); assertEquals(5, p4.size()); //testing that after 20 cards were removed from the deck, 31 cards remain assertEquals(31, table.getDeckSize()); //dealing out another 6 cards table.dealCards(6); //resetting the ArrayLists to contain the new hands drawn p1 = table.getPlayerHands(0); p2 = table.getPlayerHands(1); p3 = table.getPlayerHands(2); p4 = table.getPlayerHands(3); //testing that the 'players' ArrayList can handle a different hand size from the previous drawing assertEquals(6, p1.size()); assertEquals(6, p2.size()); assertEquals(6, p3.size()); assertEquals(6, p4.size()); //now that hand testing has been finished, test to make sure that an invalid index for getPlayerHands() returns null and outputs to the console p1 = table.getPlayerHands(4); assertEquals(null, p1); p1 = table.getPlayerHands(-2); assertEquals(null, p1); //at this point 7 cards remain in the deck, so if another round of 5 cards were to be dealt, then an exception should be thrown table.dealCards(5); //if the exception is not thrown, then the test will fail fail(); } catch(DeckException e) { e.printStackTrace(); } catch(TableException e1) { e1.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Table() {\n startingCash = 10000;\n renderWinState = false;\n players = new Player[4];\n river = new River();\n deck = new Deck();\n dealer = new Dealer();\n initRiver();\n initPlayers();\n }", "private void setUpPlayerTable() {\n setPlayer...
[ "0.79137737", "0.7647031", "0.71710926", "0.6858505", "0.6609229", "0.65436554", "0.6530537", "0.6504247", "0.64779794", "0.64285415", "0.6417807", "0.6378341", "0.6364789", "0.62829274", "0.6261801", "0.62030697", "0.6192699", "0.61841404", "0.61616284", "0.6155906", "0.6139...
0.58283967
44
Created by Leo on 5/8/2016.
public interface PersonService { void addPerson(Context context, Person person); void updatePerson(Context context, Person person); }
{ "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}", "public final void mo51373a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic...
[ "0.6201993", "0.5946238", "0.5932194", "0.5889022", "0.5834887", "0.581207", "0.58114594", "0.58114594", "0.5808679", "0.5801716", "0.5738983", "0.5721058", "0.5719508", "0.5718333", "0.57141304", "0.5712425", "0.5698921", "0.5684164", "0.5657509", "0.56325936", "0.5629878", ...
0.0
-1
Log the frontend errors
@RequestMapping(value="logError", consumes="text/plain", method=RequestMethod.PUT) @ResponseStatus(value=HttpStatus.OK) public void logTechnicalError(@RequestBody String msg){ log.error(msg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void logError(String msg)\n {\n GlobeRedirector.errorLog.write(msg);\n }", "public static void logGenericUserError() {\n\n }", "protected abstract void logError(Exception e);", "abstract void initiateErrorLog();", "abstract void errorLogError(String error);", "@Override\n public void s...
[ "0.65989256", "0.6578767", "0.6523941", "0.63980246", "0.62918156", "0.6267744", "0.62556314", "0.6220892", "0.6192727", "0.61510086", "0.6134529", "0.6127948", "0.6120951", "0.61138", "0.6098229", "0.6094118", "0.6080383", "0.6076353", "0.6069353", "0.6068845", "0.6056445", ...
0.0
-1
The constructor is initializing 2 arraylists that have all the current points in the highscore list and one that has all the current names in the highscore list
public HighScore() { try { BufferedReader a = new BufferedReader(new FileReader("points.txt")); BufferedReader b = new BufferedReader(new FileReader("names.txt")); ArrayList<String> temp = new ArrayList(0); temp = createArray(a); names = createArray(b); a.close(); b.close(); for (String x : temp) { points.add(Integer.valueOf(x)); } }catch (IOException e) {} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Highscore() {\n scores = new ArrayList<Score>();\n }", "public Leaderboard() {\n filePath = new File(\"Files\").getAbsolutePath();\n highScores = \"scores\";\n\n topScores = new ArrayList<>();\n topName = new ArrayList<>();\n }", "public HighScore (String name,String l...
[ "0.712022", "0.6686481", "0.66846275", "0.64728844", "0.64575684", "0.645546", "0.6328173", "0.6168435", "0.6151575", "0.6129956", "0.6126654", "0.6011007", "0.6002683", "0.6002387", "0.59850305", "0.59297544", "0.5853527", "0.58232975", "0.57662493", "0.57454306", "0.571049"...
0.75614613
0
This method adds the new score along with the new name in the array list and then it copies it to the local files of names and points.
public void add(int newScore,String newName) { //adding the new score to the list points.add(newScore); for (int i = 0; i < points.size()-1; i++) { for (int j = i+1; j < points.size(); j++) { if (points.get(i) < points.get(j)) { int temp = points.get(i); points.set(i, points.get(j)); points.set(j, temp); } } } //adding the new name on the list int k = points.indexOf(newScore); if (names.size()!=0) { String tempx = names.get(names.size() - 1); names.add(tempx); for (int i = names.size() - 1; i > k; i--) { names.set(i, names.get(i - 1)); } names.set(k, newName); } else { names.add(newName); } //updating the files addOn(points); addOn(names); //print when the game finishes //new GUI(names,points,true, k); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addScore(String name, int score) {\n loadScoreFile();\n scores.add(new Score(name, score));\n updateScoreFile();\n }", "@RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public void updateLeaderboards(String name, String score) {\n String fileName = \"data.dat\";\n try {\n...
[ "0.67970747", "0.6636737", "0.64862204", "0.6405564", "0.6323292", "0.62729126", "0.6076493", "0.60370207", "0.6013547", "0.5905404", "0.5896126", "0.58577883", "0.5809588", "0.5770138", "0.5769253", "0.5719355", "0.57180506", "0.5716601", "0.5688225", "0.56868744", "0.567976...
0.71276337
0
This method is assisting the constructor on creating the 2 arraylists
public ArrayList<String> createArray(BufferedReader reader) { ArrayList<String> s = new ArrayList<String>(); try { for (String x = reader.readLine(); x != null; x = reader.readLine()) { s.add(x); } }catch (IOException e) {} return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void initializeLists() {\n\t\t\n\t\t//read from serialized files to assign array lists\n\t\t//customerList = (ArrayList<Customer>) readObject(customerFile);\n\t\t//employeeList = (ArrayList<Employee>) readObject(employeeFile);\n\t\t//applicationList = (ArrayList<Application>) readObject(applicationF...
[ "0.6498387", "0.6470752", "0.63868594", "0.63031286", "0.6272608", "0.62650037", "0.62547123", "0.623879", "0.6196713", "0.61631906", "0.61541367", "0.6149972", "0.6125648", "0.6112669", "0.6100851", "0.6072381", "0.6072381", "0.6072185", "0.6069488", "0.6059508", "0.6035678"...
0.0
-1
This method copies the arraylist to the local files
public void addOn(ArrayList array) { try { PrintWriter writer; if (array.get(0) instanceof Integer) writer = new PrintWriter("points.txt"); else writer = new PrintWriter("names.txt"); for (int i=0; i<array.size(); i++) writer.println(array.get(i)); writer.close(); } catch (IOException e) {} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void copyFiles() {\n if( !USE_EXTERNAL_FILES_DIR ) return;\n boolean ret = mFileUtil.copyFilesAssetToExternalFilesDir( FILE_EXT );\n if(ret) {\n showList();\n showToast(\"copy successful\");\n } else {\n showToast(\"copy faild\");\n }\n}", "public static void storeFile...
[ "0.62017053", "0.5957771", "0.58915126", "0.58816993", "0.58547056", "0.5819651", "0.5754878", "0.57445407", "0.5723828", "0.56823534", "0.5666431", "0.5616264", "0.5601081", "0.55894977", "0.5556351", "0.5533979", "0.5530357", "0.5492049", "0.5472242", "0.5453118", "0.544990...
0.0
-1
creates a ball a the given coordinates with specific image (inherited from ImageSprite)
public Ball(int x, int y, URL url) { super(x, y, 0, 0, url, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Ball create(int xpos, int ypos);", "public BoxBall(int xPos, int yPos, int ballDiameter, Color ballColor,\n int groundPos1, int groundPos2, int groundPos3, int groundPos4, Canvas drawingCanvas)\n {\n xPosition = xPos; // Initial position\n yPosition = yPos; // Initial position\n co...
[ "0.7515148", "0.64716065", "0.63555044", "0.62425727", "0.61932194", "0.6169112", "0.6130131", "0.6118185", "0.60836256", "0.6063965", "0.6034899", "0.6010063", "0.596761", "0.5967368", "0.59610754", "0.59543353", "0.59408885", "0.5921733", "0.5921303", "0.5916139", "0.591401...
0.0
-1
moves coordinates of ball by vx and vy preconditons: requires ball to be created postconditions: none
public void moveBall() { x -= vx; y += vy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveOneStep() {\r\n\r\n // detects what direction the ball moves and switches it.\r\n double xDirection, yDirection;\r\n if (v.getDx() < 0) {\r\n xDirection = -r;\r\n } else {\r\n xDirection = r;\r\n }\r\n if (v.getDy() < 0) {\r\n ...
[ "0.7326565", "0.7033778", "0.7026566", "0.69324124", "0.6861454", "0.6704601", "0.66935027", "0.6688598", "0.66834366", "0.6636031", "0.6618505", "0.6612673", "0.6559893", "0.65347636", "0.6480829", "0.6480804", "0.64321893", "0.642972", "0.6414511", "0.64046246", "0.63954365...
0.75953805
0
reverses ball direction on the xaxis
public void reverseDirectionX() { vx = -vx; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reverseXVelocity() {\n if(xVelocity > 0) //collision on right wall\n xVelocity = -xVelocity - 50;\n else //collision on left wall\n xVelocity = -xVelocity + 50;\n this.normalizeVelocity(this.xVelocity, this.yVelocity);\n }", "public void reverseXVelocity(...
[ "0.74549603", "0.74096775", "0.71229374", "0.7101031", "0.6723473", "0.65385205", "0.6473923", "0.64681244", "0.6406009", "0.63925934", "0.63413477", "0.62918055", "0.6258736", "0.62029046", "0.61547565", "0.6113138", "0.6104028", "0.6077844", "0.6059528", "0.6053982", "0.604...
0.7750816
0
reverses ball direction on the yaxis
public void reverseDirectionY() { vy = -vy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reverseY()\r\n {\r\n\t if(moveY < 0)\r\n\t\t moveY = moveY * (-1);\r\n\t else if(moveY > 0)\r\n\t\t moveY = moveY * (-1);\r\n }", "public void reverseYVelocity() {\n yVelocity = -yVelocity + 50;\n this.normalizeVelocity(this.xVelocity, this.yVelocity);\n }", "public void reve...
[ "0.7852838", "0.78426594", "0.7760769", "0.6942466", "0.6752187", "0.6728265", "0.6693572", "0.6632727", "0.6604116", "0.6595279", "0.6521495", "0.6509135", "0.6492183", "0.64896387", "0.64856154", "0.64643466", "0.64548737", "0.6391516", "0.6390226", "0.6389861", "0.6313864"...
0.8307312
0
sets balls x and y to the passed coordinates given in the method arguments
public void setBallXY(int x, int y) { this.x = x; this.y = y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void positionBall (int nx, int ny)\n {\n ballX= nx; \n ballY= ny; \n this.width=this.getWidth();\n this.height=this.getHeight();\n repaint();\n }", "public void moveBallTo(int x, int y)\n {\n currentBallX = x;\n currentBallY = y;\n }", "public...
[ "0.7536297", "0.7279423", "0.7043766", "0.69532", "0.6861919", "0.6715268", "0.66909647", "0.6673493", "0.6667926", "0.6653715", "0.6653191", "0.66478276", "0.6599212", "0.65887696", "0.6530441", "0.6523518", "0.6490826", "0.64707226", "0.6464621", "0.64635104", "0.6447535", ...
0.80980945
0
TODO Autogenerated method stub
@Override public AbSysArea saveObj(AbSysArea model) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
reset input stream to available
public synchronized void resetInputStream() { this.inputStream = new BodyReusableServletInputStream(this.bodyBytes); this.bufferedReader = new BufferedReader(new InputStreamReader(this.inputStream)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reset() {\n try {\n is.reset();\n }catch(IOException ioe) {\n }\n }", "@Override\n public void reset() {\n isDone = false;\n if (content.markSupported()) {\n try {\n content.reset();\n } catch (IOException ioe) {\n if (LOGGER.isDebugEn...
[ "0.78556305", "0.75599396", "0.7499737", "0.70539117", "0.7038429", "0.7001203", "0.699065", "0.699065", "0.698062", "0.69749874", "0.69410217", "0.6937848", "0.69183666", "0.68730986", "0.68674636", "0.6770432", "0.67409265", "0.67266124", "0.67262745", "0.67221296", "0.6703...
0.76611507
1
get body to string
public String getBodyString() { String charsetName = this.request.getCharacterEncoding(); if (charsetName == null || charsetName == "") charsetName = "UTF-8"; return this.getBodyString(charsetName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBody();", "String getBody();", "String getBody();", "String getBody();", "String getBody();", "public java.lang.String getBody() {\n java.lang.Object ref = body_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (c...
[ "0.86388296", "0.8321584", "0.8321584", "0.8321584", "0.8321584", "0.753084", "0.75202423", "0.751146", "0.75110006", "0.74803364", "0.7478872", "0.7470495", "0.7464406", "0.7411791", "0.7341221", "0.7316989", "0.720179", "0.7173673", "0.70957327", "0.708616", "0.7014286", ...
0.7682433
5
get body to string and charset
public synchronized String getBodyString(String charsetName) { if (this.bodyString == null) { try { this.bodyString = new String(this.bodyBytes, charsetName); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } } return this.bodyString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBodyString()\r\n\t{\r\n\t\tString charsetName = this.request.getCharacterEncoding();\r\n\t\tif (charsetName == null || charsetName == \"\")\r\n\t\t\tcharsetName = \"UTF-8\";\r\n\t\t\r\n\t\treturn this.getBodyString(charsetName);\r\n\t}", "java.lang.String getBody();", "String getBody();", "S...
[ "0.78350747", "0.76057446", "0.7288418", "0.7288418", "0.7288418", "0.7288418", "0.68859446", "0.6751163", "0.67446524", "0.6741686", "0.6724608", "0.6674312", "0.6644978", "0.66263855", "0.6611237", "0.66000617", "0.65666", "0.6559011", "0.65097487", "0.6460328", "0.6448047"...
0.7280104
6
TODO Autogenerated method stub
@Override public int getCount() { return result.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Object getItem(int position) { return result.get(position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public long getItemId(int position) { return position; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public View getView(final int position, View convertView, ViewGroup parent) { Holder holder=new Holder(); View rowView; rowView = inflater.inflate(R.layout.teamrow, null); holder.tv=(TextView) rowView.findViewById(R.id.teamrowitem); holder.tv.setText(result.get(position).get("title")); Log.d("adapter",result.get(position).get("title")); return rowView; }
{ "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
workaround for NPE; mockito 1.10.19
private void prepareMockItems(boolean isNetworkOK) { mNetworkChecker = new AndroidNetworkChecker(getTargetContext()); mMockNetworkChecker = mNetworkChecker; MockitoAnnotations.initMocks(this); mSentenceDataRepository = spy(mSentenceDataRepository); // getEventBus return the mock object when(mSentenceDataRepository.getEventBus()).thenReturn(mDefaultEventBus); mMockNetworkChecker = spy(mNetworkChecker); when(mMockNetworkChecker.isNetworkAvailable()).thenReturn(isNetworkOK); NetworkUtils.injectNetworkChecker(mMockNetworkChecker); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void getStreetNameNull()\n {\n Location loc = Mockito.mock(Location.class);\n String str = _city.getStreetName(loc, 1);\n assertNull(str);\n }", "@Test\n public void testOnEventWithNullParameters() throws ComponentLookupException\n {\n this.mocker.getC...
[ "0.66168195", "0.63529104", "0.6269112", "0.6203945", "0.6189295", "0.6161661", "0.61412525", "0.61070013", "0.60651207", "0.6040337", "0.6026294", "0.5988818", "0.59783554", "0.5932877", "0.59307945", "0.58958364", "0.588866", "0.58832955", "0.58739775", "0.5869996", "0.5863...
0.0
-1
other way to mock response:
private void prepareNoResponse() { when(mSentenceDataRepository.getTodaysSentenceResponse()).thenReturn(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void useFakeResponse() {\n EmployeeApp.useFakeResponse = true;\n ResponseObject responseObject = new ResponseObject();\n responseObject.setReturnCode(200);\n responseObject.setType(ResponseObject.ResponseType.JSON);\n responseObject.setResponseBodyString(new CompanyEmploy...
[ "0.7150021", "0.6926603", "0.66101325", "0.6559203", "0.6542748", "0.6524683", "0.64952636", "0.6491087", "0.63349617", "0.6225335", "0.61846364", "0.61574525", "0.6146306", "0.61438584", "0.6135107", "0.6117103", "0.611193", "0.61115813", "0.61050653", "0.607968", "0.6074253...
0.0
-1
Event is captured and invoked with mDefaultEventBus
private void verifyContainsFetchAlarm(ScheduleFetchEvent.TYPE type) { verify(mDefaultEventBus, atLeastOnce()).post(mPostEventCaptor.capture()); List<Object> events = mPostEventCaptor.getAllValues(); assertTrue(events.size() > 0); Log.d(Constants.TAG, "\n expected type: " + type); boolean isContain = false; for (Object event : events) { Log.d(Constants.TAG, "::::::" + event); if (event instanceof ScheduleFetchEvent && ((ScheduleFetchEvent) event).getType() == type) { isContain = true; } } if (!isContain) { fail("Do not have FetchAlarm: " + type); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "EventBus getEventBus();", "void onBusEvent(Event event);", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event eve...
[ "0.7267878", "0.71807736", "0.71128255", "0.6811167", "0.6811167", "0.6811167", "0.6811167", "0.6811167", "0.67934436", "0.6768702", "0.6768702", "0.6768702", "0.6714974", "0.6714974", "0.6625767", "0.6563518", "0.64647937", "0.6440938", "0.6402609", "0.6331821", "0.62847644"...
0.0
-1
avoid auto fetch in background
private void prepareForFetch(boolean withLocalSentence, boolean isNetworkOK) { waitNotFetchingSentence(30); mSentenceDataRepository.deleteAllSentences(); if (withLocalSentence) { prepareTodaysSentence(); } prepareMockItems(isNetworkOK); if (mSentenceDataRepository.isFetchingSentence()) { fail("Is fetching, precondition is not OK!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@MainThread\n void fetchImmediatelyIfNeeded();", "@MainThread\n @Override\n protected void onForceLoad() {\n super.onForceLoad();\n cancelLoadHelper();\n\n makeRequest();\n }", "private void fetchData() {\r\n if (fetchDialogDataInBackground != null && fetchDialogDataInBa...
[ "0.7007442", "0.66493934", "0.6570385", "0.64372575", "0.6422196", "0.63167024", "0.62317824", "0.6162848", "0.61342174", "0.61303484", "0.6120425", "0.61118245", "0.6047103", "0.6028116", "0.60258543", "0.60128266", "0.59847677", "0.5948037", "0.59465295", "0.5943617", "0.59...
0.0
-1
this test may be fail
@Test public void testFetchTodaysSentence_NotManual_NoLocal_WithNetwork_RealResponse() { prepareForFetch(false, true); mSentenceDataRepository.fetchTodaysSentence(false); waitNotFetchingSentence(60); // reset alarm verifyContainsFetchAlarm(ScheduleFetchEvent.TYPE.NORMAL); // Event is captured and invoked with mDefaultEventBus verify(mDefaultEventBus, atLeastOnce()).postSticky(mPostStickyEventCaptor.capture()); List<Object> events = mPostStickyEventCaptor.getAllValues(); assertTrue(events.get(0) instanceof FetchingEvent); // start fetch assertTrue(((FetchingEvent) events.get(0)).getFechingResult() == FetchingEvent.RESULT.NONE); if (mNetworkChecker.isNetworkAvailable()) { // has response // still be NONE status event assertTrue(((FetchingEvent) events.get(1)).getFechingResult() == FetchingEvent.RESULT.NONE); List<? extends Sentence> sentences = mSentenceDataRepository.getAllSentences(); assertEquals(1, sentences.size()); // should have RefreshWidgetEvent and SentenceChangedEvent verify(mDefaultEventBus, atLeast(3)).post(mPostEventCaptor.capture()); events = mPostEventCaptor.getAllValues(); assertTrue(events.get(events.size() - 1) instanceof RefreshWidgetEvent); assertTrue(events.get(events.size() - 2) instanceof SentenceChangedEvent); } else { // bad response // still be NONE status event assertTrue(((FetchingEvent) events.get(1)).getFechingResult() == FetchingEvent.RESULT.NONE); List<? extends Sentence> sentences = mSentenceDataRepository.getAllSentences(); assertEquals(0, sentences.size()); // should have retry verifyContainsFetchAlarm(ScheduleFetchEvent.TYPE.RETRY); } verifyNotFetchingSentence(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}", "@Override\n boolean canFail() {\n return true;\n }", "@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public void testImp...
[ "0.7311728", "0.721994", "0.7202473", "0.70452386", "0.69459474", "0.6867382", "0.6808811", "0.67331666", "0.67155457", "0.66847557", "0.66798097", "0.6655407", "0.66138273", "0.6602326", "0.65725267", "0.65352845", "0.6530158", "0.6473765", "0.6437413", "0.6431948", "0.64307...
0.0
-1
this test may be fail
@Test public void testFetchTodaysSentence_Manual_NoLocal_WithNetwork_RealResponse() { prepareForFetch(false, true); mSentenceDataRepository.fetchTodaysSentence(true); // reset alarm verifyContainsFetchAlarm(ScheduleFetchEvent.TYPE.NORMAL); // Event is captured and invoked with mDefaultEventBus verify(mDefaultEventBus, atLeastOnce()).postSticky(mPostStickyEventCaptor.capture()); List<Object> events = mPostStickyEventCaptor.getAllValues(); assertTrue(events.get(0) instanceof FetchingEvent); // start fetch assertTrue(((FetchingEvent) events.get(0)).getFechingResult() == FetchingEvent.RESULT.NONE); if (mNetworkChecker.isNetworkAvailable()) { // has response // still be NONE status event assertTrue(((FetchingEvent) events.get(1)).getFechingResult() == FetchingEvent.RESULT.GOT_NEW); List<? extends Sentence> sentences = mSentenceDataRepository.getAllSentences(); assertEquals(1, sentences.size()); // should have RefreshWidgetEvent and SentenceChangedEvent verify(mDefaultEventBus, atLeast(3)).post(mPostEventCaptor.capture()); events = mPostEventCaptor.getAllValues(); assertTrue(events.get(events.size() - 1) instanceof RefreshWidgetEvent); assertTrue(events.get(events.size() - 2) instanceof SentenceChangedEvent); } else { // bad response // FAIL status event assertTrue(((FetchingEvent) events.get(1)).getFechingResult() == FetchingEvent.RESULT.FAIL); List<? extends Sentence> sentences = mSentenceDataRepository.getAllSentences(); assertEquals(0, sentences.size()); // should have retry verifyContainsFetchAlarm(ScheduleFetchEvent.TYPE.RETRY); } verifyNotFetchingSentence(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}", "@Override\n boolean canFail() {\n return true;\n }", "@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public void testImp...
[ "0.7311728", "0.721994", "0.7202473", "0.70452386", "0.69459474", "0.6867382", "0.6808811", "0.67331666", "0.67155457", "0.66847557", "0.66798097", "0.6655407", "0.66138273", "0.6602326", "0.65725267", "0.65352845", "0.6530158", "0.6473765", "0.6437413", "0.6431948", "0.64307...
0.0
-1
this test may be fail
@Test public void testFetchSentenceAudio_NoLocal_RealResponse_ValidUrl() { prepareForFetch(false, true); mSentenceDataRepository.removeDownloadedAudio(TestUtil.SAMPLE_AUDIO_URL); mSentenceDataRepository.fetchSentenceAudio(TestUtil.SAMPLE_AUDIO_URL, System.currentTimeMillis()); waitNotFetchingAudio(60); verify(mDefaultEventBus, atLeastOnce()).postSticky(mPostStickyEventCaptor.capture()); List<Object> events = mPostStickyEventCaptor.getAllValues(); assertTrue(events.get(0) instanceof FetchingAudioEvent); // start fetch assertTrue(((FetchingAudioEvent) events.get(0)).getFechingResult() == FetchingEvent.RESULT.NONE); if (mNetworkChecker.isNetworkAvailable()) { // result success assertTrue(((FetchingAudioEvent) events.get(1)).getFechingResult() == FetchingEvent.RESULT.SUCCESS); assertTrue(mSentenceDataRepository.hasDownloadedAudio(TestUtil.SAMPLE_AUDIO_URL)); assertNotNull(mSentenceDataRepository.getAudioFile(TestUtil.SAMPLE_AUDIO_URL)); } else { // result fail assertTrue(((FetchingAudioEvent) events.get(1)).getFechingResult() == FetchingEvent.RESULT.FAIL); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}", "@Override\n boolean canFail() {\n return true;\n }", "@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public void testImp...
[ "0.7311728", "0.721994", "0.7202473", "0.70452386", "0.69459474", "0.6867382", "0.6808811", "0.67331666", "0.67155457", "0.66847557", "0.66798097", "0.6655407", "0.66138273", "0.6602326", "0.65725267", "0.65352845", "0.6530158", "0.6473765", "0.6437413", "0.6431948", "0.64307...
0.0
-1
interface for the kata's task
public interface IKataSolution extends IKataCommonSolution { public enum ACTION { TURN_LEFT, TURN_RIGHT, FORWARD, STAY } public enum ORIENTATION { UP (270), DOWN(90), LEFT(0), RIGHT(180); public int angle; ORIENTATION (int _angle) { angle = _angle; } public ORIENTATION moveLeft () { switch (this) { case UP: return LEFT; case DOWN: return RIGHT; case LEFT: return DOWN; case RIGHT: return UP; } return this; } public ORIENTATION moveRight () { switch (this) { case UP: return RIGHT; case DOWN: return LEFT; case LEFT: return UP; case RIGHT: return DOWN; } return this; } } public enum ITEM { EMPTY, PLANT, ANIMAL, END } public abstract class Animal { /** * Number of plants the animal ate */ public int points; /** * Method to react to changing environmental conditions * * @param orientation animal's current orientation * @param view item currently in front of animal * @return action to do */ public abstract ACTION react (ORIENTATION orientation, ITEM view); } /** * Factory method for an animal * * @param count count of animals to create * @param lastGeneration array of 'Animal' from last generation * @return array of 'Animal' instances */ public abstract Animal[] createGeneration (int count, Animal[] lastGeneration); /** * If true, last generation will be visualized */ public boolean visualizeLastGeneration (); /** * Defines how many generations of evolution should be tested * (minimum is 100, maximum is 10000) * * @return count of generations to test */ public int countOfGenerations (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void task();", "public interface TaskBase {\n\t/**\n\t * @return Returns the name of the task\n\t */\n\tpublic String GetName();\n\n\t/**\n\t * Called upon entering autonomous mode\n\t */\n\tpublic void Initialize();\n\n\t/**\n\t * Called every autonomous update\n\t * \n\t * @return Return task r...
[ "0.635453", "0.6098415", "0.59725726", "0.59411883", "0.59076023", "0.5800485", "0.5788089", "0.57545483", "0.57409585", "0.5719705", "0.57186204", "0.56958246", "0.5687116", "0.56634396", "0.5662544", "0.5661218", "0.5651174", "0.559733", "0.55876946", "0.55826133", "0.55819...
0.59868574
2
Method to react to changing environmental conditions
public abstract ACTION react (ORIENTATION orientation, ITEM view);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onEnvironmentChange(EnvironmentChangeEvent event);", "private void selectProdEnv() {\n\n new Handler(getMainLooper()).postDelayed(new Runnable() {\n @Override\n public void run() {\n ((AppController) getApplication()).setAppEnvironment(AppEnvironment.PRODUCTION);\...
[ "0.6862885", "0.5904157", "0.58011013", "0.5785249", "0.5730635", "0.5729833", "0.56804997", "0.56443256", "0.5563552", "0.5519653", "0.5427203", "0.5414392", "0.539178", "0.53826964", "0.5372952", "0.5372771", "0.53700906", "0.53637505", "0.5320317", "0.53120047", "0.531088"...
0.0
-1
Factory method for an animal
public abstract Animal[] createGeneration (int count, Animal[] lastGeneration);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Animal createAnimal() {\n return new Monkey();\n }", "public interface Factory {\n Animal createAnimal();\n}", "public interface IAnimalFactory {\n ICat createCat();\n IDog createDog();\n}", "public Animal(String name) {\r\n this.animalName = name;\r\n }", "...
[ "0.7649695", "0.75439554", "0.7233548", "0.70897484", "0.6786326", "0.6717873", "0.6677535", "0.6651121", "0.65596527", "0.65288335", "0.6502645", "0.6463286", "0.6394364", "0.63777244", "0.6332186", "0.6281353", "0.62357175", "0.61838394", "0.6182175", "0.6125423", "0.606272...
0.0
-1
If true, last generation will be visualized
public boolean visualizeLastGeneration ();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isGenerating() {\n return mIsGenerating;\n }", "public boolean generated () {\n\t\treturn generated;\n\t}", "public boolean modelStep()\n {\n\tint i;\n\tboolean last;\n\n\tif (manim==null) return false;\n\n\tGraphics grp = getGraphics();\n\tGeneration g = manim.nextGeneration();\n\t...
[ "0.64377385", "0.60920125", "0.60722935", "0.6007877", "0.59770155", "0.5895647", "0.5878119", "0.5855409", "0.5826259", "0.58202106", "0.5811532", "0.58065456", "0.5791266", "0.5756722", "0.57491016", "0.5734585", "0.5732851", "0.56873804", "0.56598306", "0.5643781", "0.5616...
0.9085224
0
Defines how many generations of evolution should be tested (minimum is 100, maximum is 10000)
public int countOfGenerations ();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMaxGenerations(int value) { maxGenerations = value; }", "public void setGenerations(int generations) {\n this.generations = generations;\n }", "public DynamicTest generateSizeTest(int limit) {\n\t\t\tList<BigInteger> actual = FibonacciGenerator.fibonacciNumbers(limit);\n\t\t\treturn dy...
[ "0.7024099", "0.6198827", "0.60736066", "0.6039031", "0.6036087", "0.60006386", "0.5867828", "0.5857649", "0.5837079", "0.58300847", "0.5829596", "0.5798844", "0.57875586", "0.5785851", "0.5776978", "0.57414", "0.57385695", "0.573519", "0.5708629", "0.5700883", "0.56497175", ...
0.5671998
20
/ get list of all gigs
@GET("/dev/gig/") Call<List<GigListResp>> getGigList(@Header("authorization") String auth);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GET(\"dev/gig/my_gigs/\")\n Call<List<GigListResp>> getMyGigsList(@Header(\"authorization\") String auth);", "public Collection<GObject> getObjects();", "public Collection<String> getContigs() {\n\t\treturn infoMap.keySet();\n\t}", "public GMap<Integer, Stack> getStacks();", "public static List<Integer...
[ "0.6258694", "0.61586404", "0.6076077", "0.59603524", "0.58176875", "0.5804291", "0.579499", "0.57513577", "0.5707084", "0.5676152", "0.56706786", "0.5646405", "0.5622223", "0.5579018", "0.557522", "0.55532956", "0.5538152", "0.553492", "0.5509905", "0.5507223", "0.54786885",...
0.5564301
15
/ Create new gig
@POST("/dev/gig/create_verify/") Call<CreateGigResp> createGig(@Header("authorization") String auth, @Body CreateGigReqBody createGig);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TGG createTGG();", "Gtr createGtr();", "public Pig(String name) {\n super(name);\n }", "BIG createBIG();", "@Override\n\tpublic void createGerant(Gerant g) {\n\t\t\n\t}", "public PedGenie ( IOManager im, String application_id ) throws GEException\n {\n io_mgr = im;\n spec = io_mgr.getSpe...
[ "0.7126888", "0.60665786", "0.60052025", "0.58607", "0.5839327", "0.579989", "0.5728911", "0.5724302", "0.56773216", "0.56310934", "0.5623822", "0.5613862", "0.5535647", "0.55314875", "0.5498474", "0.5456199", "0.54511493", "0.5425129", "0.5399873", "0.53743494", "0.53512543"...
0.6278916
1
/ Buy gig ticket
@POST("/dev/gig/create_payment/") Call<BuyGigResp> buyGig(@Header("authorization") String auth, @Body BuyGigReqBody buyGigReqBody);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized String buyTicket() {\r\n Random r = new Random();\r\n int buyTckDuration = r.nextInt(3000)+1000;\r\n String timestamp = \"NULL\";\r\n if (isValid_ToBuyTicket()) {\r\n this.tktSold += 1;\r\n try {\r\n Thread.sleep(buyTckDuration);\...
[ "0.6869748", "0.6213948", "0.62114096", "0.60705066", "0.59570974", "0.59165925", "0.585709", "0.58309877", "0.5809788", "0.58050805", "0.57931674", "0.5751348", "0.5718048", "0.57159513", "0.5705543", "0.5696746", "0.5686981", "0.5675445", "0.56128407", "0.5604126", "0.55927...
0.56962
16
/ get list of tickets
@GET("dev/gig/list_tickets/") Call<List<TicketResp>> getTicketList(@Header("authorization") String auth);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Ticket> getTickets() {return tickets;}", "public List<Ticket> getAllTickets(){\n List<Ticket> tickets=ticketRepository.findAll();\n return tickets;\n }", "@GetMapping(value=\"/ticket/alltickets\")\n\tpublic List<Ticket> getAllTickets(){\n\t\treturn ticketBookingService.getAllTicke...
[ "0.8315836", "0.7959787", "0.75598896", "0.7520546", "0.7250047", "0.7207019", "0.7141475", "0.7127978", "0.68711394", "0.6760554", "0.6729225", "0.67108524", "0.6707397", "0.6684639", "0.6641472", "0.66259867", "0.65715516", "0.65558547", "0.654668", "0.6464027", "0.6463624"...
0.74054116
4
/ get gigs hosted by me
@GET("dev/gig/my_gigs/") Call<List<GigListResp>> getMyGigsList(@Header("authorization") String auth);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public URL getGigURL() {\n return gigURL;\n }", "@GET(\"/dev/gig/\")\n Call<List<GigListResp>> getGigList(@Header(\"authorization\") String auth);", "private String getGigsData() {\r\n\t\t\r\n\t\t//TODO: pick up url from DB \r\n\t\tString url = SERVER_URL;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tHttpClient ...
[ "0.618899", "0.61781764", "0.5639095", "0.54073024", "0.53271294", "0.5201756", "0.512637", "0.5089864", "0.5068948", "0.5059754", "0.4992738", "0.49702305", "0.4969601", "0.4968521", "0.49668938", "0.49198517", "0.4889115", "0.48828855", "0.48813695", "0.48809677", "0.487989...
0.68107116
0
Construct an operator to perform reflection on the specified object.
public ReflectionOperator(Object object) { this.object = object; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Operator operator();", "Unary operator(Operator o);", "public Reflect() {\n this(MethodReflectorFactory.class);\n }", "private Object getInstance(Annotation label) throws Exception {\r\n ExtractorBuilder builder = getBuilder(label);\r\n Constructor factory = builder.getConstructor();\r\n ...
[ "0.550212", "0.5450116", "0.5314961", "0.52938884", "0.52091897", "0.5161114", "0.5119742", "0.5086543", "0.505077", "0.5046827", "0.5033579", "0.5029356", "0.5009741", "0.5008609", "0.49870092", "0.4956398", "0.4955444", "0.49493915", "0.49401835", "0.4934011", "0.49206343",...
0.821041
0
Set the value of the field identified by the field name
public void setValue(String fieldName, Object value) { try { Field field = FieldUtils.getField(object.getClass(), fieldName, true); if (field != null) { FieldUtils.writeField(field, object, value, true); } else { logger.error("Unable to set value on field because the field does not exits on class: " + object.getClass()); } } catch (IllegalAccessException e) { logger.error(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFieldName(String fieldName);", "private void setField( String fieldName, String value )\n {\n JTextField field =\n ( JTextField ) fields.get(fieldName);\n\n field.setText(value);\n }", "public FieldInstruction setFieldName(String name) {\n return setFiel...
[ "0.7454238", "0.72959113", "0.72822803", "0.69939005", "0.6926592", "0.69167686", "0.6891914", "0.6856608", "0.68041664", "0.67189413", "0.6713693", "0.66980565", "0.66540146", "0.6629389", "0.6606058", "0.65919423", "0.65566367", "0.6534464", "0.6501346", "0.6486134", "0.646...
0.7307601
1
Get the value of the field identified by the field name
public Object getValue(String fieldName) { try { Field field = FieldUtils.getField(object.getClass(), fieldName, true); if (field != null) { return FieldUtils.readField(field, object, true); } else { logger.error("Unable to get value of field because the field does not exits on class: " + object.getClass()); } } catch (IllegalAccessException e) { logger.error(e); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public String getValue(String fieldname);", "@Nullable\n\tObject getFieldValue(String field);", "public String get(String fieldName) {\n\t\tString xpQuery = getXPathQuery(fieldName);\n\t\treturn getFieldUsingXPath(xpQuery);\n\t}", "public String getFieldValue(LVValue name) throws LRException\n\t{\n\...
[ "0.7893709", "0.7671975", "0.7280456", "0.71791685", "0.7174745", "0.70870996", "0.70407337", "0.7034741", "0.7003122", "0.69444317", "0.691734", "0.68345433", "0.67809826", "0.6780725", "0.67093617", "0.6694379", "0.6690645", "0.6621645", "0.658056", "0.65714866", "0.6529396...
0.6923035
10
ResponseEntity doApplyLeave(String jsonStr, MultipartFile file); ResponseEntity doApplyLeave(AddLeaveForm addLeaveForm1); /ResponseEntity doApplyLeave(String jsonStr,MultipartFile files[]);
ResponseEntity<?> deleteAttachment(String attachmentId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(\"addleave.action\")\n\tprivate void addleave(HttpServletResponse response,HttpServletRequest request) throws IOException, ParseException{\n\t\tString leaveid=request.getParameter(\"leaveId\");\n\t\tString leavemanId=request.getParameter(\"leavemanId\");\n\t\tString leaveContent=request.getParamete...
[ "0.5818165", "0.5786144", "0.56852525", "0.5669081", "0.5572233", "0.5560155", "0.5558467", "0.55254847", "0.5427061", "0.5369055", "0.5329431", "0.5302434", "0.53020626", "0.528888", "0.52493817", "0.5245437", "0.5192155", "0.51525724", "0.5151993", "0.51264215", "0.5086706"...
0.0
-1
Get list of verifiable credential
@SuppressWarnings("unchecked") public Collection<Object> getVerifiableCredentials() { Object list = jsonObject.get(JSONLD_KEY_VERIFIABLE_CREDENTIAL); if (list != null) { return Collections.unmodifiableCollection((Collection<Object>)list); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<UserCredential> getAllCredentials() {\n\t\t List<UserCredential> userCredentials = new ArrayList<>();\n\t\t \n\t\t credentialRepo.findAll().forEach(userCredential -> userCredentials.add(userCredential));\n\t\t \n\t\treturn userCredentials;\n\t}", "List<ExposedOAuthCredentialModel> readExposedOAuthCre...
[ "0.7385175", "0.72320044", "0.6905805", "0.655764", "0.6502753", "0.6382753", "0.6364617", "0.63475555", "0.63235885", "0.6320222", "0.63037926", "0.6291417", "0.6264182", "0.6260759", "0.622659", "0.6159466", "0.61396366", "0.61272705", "0.60990644", "0.6095376", "0.6090739"...
0.75096095
0
Constructs an ArrayAccess object.
public ArrayAccess(PrimaryExpression e1, Expression e2) { setExpression(e1); setAccessExpression(e2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayAccess()\r\n {\r\n }", "public ArrayAccessor() {\r\n super(\"<array>\");\r\n }", "ArrayADT() {\n this.size = 10;\n this.base = createArrayInstance(this.size);\n this.length = 0;\n }", "private ArrayOps() {\r\n }", "public ArrayIndexedCollection() {\n\t...
[ "0.78030425", "0.6707712", "0.6509791", "0.5981103", "0.5953757", "0.59208226", "0.5878578", "0.58716", "0.5859257", "0.57713723", "0.57608753", "0.57202", "0.56699586", "0.5631572", "0.560996", "0.5594796", "0.5556367", "0.5553176", "0.5548176", "0.5465248", "0.54448193", ...
0.67414963
1
Constructs an empty ArrayAccess object.
public ArrayAccess() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ArrayADT() {\n this.size = 10;\n this.base = createArrayInstance(this.size);\n this.length = 0;\n }", "public Array()\n {\n assert DEFAULT_CAPACITY > 0;\n\n array = new Object[DEFAULT_CAPACITY];\n }", "public ArrayContainer() {\n this(DEFAULT_CAPACITY);\n }...
[ "0.6834245", "0.6831299", "0.6705613", "0.65357816", "0.6470894", "0.62957597", "0.62605226", "0.61751306", "0.6162576", "0.6098231", "0.60560656", "0.59655976", "0.5933493", "0.5904104", "0.58444196", "0.58423746", "0.580577", "0.5793551", "0.5783593", "0.5778637", "0.575235...
0.79305875
0
Returns the expression that represents the index being accessed.
public Expression getAccessExpression() { return m_accessExpression; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Expression getIndexExpr();", "public Expression getIndex()\n {\n return index;\n }", "public ATExpression base_indexExpression();", "public NodeExpr index()\n\t{\n\t\treturn _index;\n\t}", "public int getIndex();", "public int getIndex();", "public int getIndex();", "public int i...
[ "0.83107114", "0.77234155", "0.7558543", "0.71052116", "0.6340783", "0.6340783", "0.6340783", "0.630591", "0.62774074", "0.6273617", "0.6198184", "0.6198184", "0.6198184", "0.6198184", "0.6198184", "0.6198184", "0.6198184", "0.6198184", "0.6198184", "0.6198184", "0.6198184", ...
0.58714104
51
Sets the expression that represents the index being accessed.
public void setAccessExpression(Expression e) { m_accessExpression = e; e.setParent(this, COL_ACCESS_EXPRESSION); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setIndex(Expression expr)\n {\n index = expr;\n }", "public ATExpression base_indexExpression();", "public void setExpression(Object expression);", "SetExpr (String i, Expr e) {\n varName = i;\n expr = e;\n }", "Expression getIndexExpr();", "public Exp...
[ "0.81305933", "0.65178525", "0.64625305", "0.6250142", "0.61587876", "0.6037498", "0.5966238", "0.5938863", "0.59266615", "0.59131783", "0.5831891", "0.5794788", "0.57531196", "0.5738615", "0.56693214", "0.55913734", "0.55491984", "0.55421734", "0.5539549", "0.5515882", "0.55...
0.6011883
6
Returns the expression that represents the array.
public PrimaryExpression getExpression() { return m_expression; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Expression getArray()\n {\n return getExpression();\n }", "Exp getArrayExp();", "public Object getExpression();", "@Override\r\n\tpublic void visit(ArrayExpression arrayExpression) {\n\r\n\t}", "public static IndexExpression arrayAccess(Expression array, Expression indexExpressi...
[ "0.7700645", "0.7675648", "0.63921386", "0.63804436", "0.6242454", "0.6194848", "0.6174088", "0.61388814", "0.6135381", "0.6131485", "0.6095795", "0.6095795", "0.6095795", "0.6095795", "0.60502064", "0.6038535", "0.6005461", "0.5998616", "0.5986545", "0.5973443", "0.59471834"...
0.53280056
77
Sets the expression that represents the array.
public void setExpression(PrimaryExpression e) { m_expression = e; e.setParent(this, COL_EXPRESSION); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setArray(Expression expr)\n {\n setExpression(expr);\n }", "@Override\r\n\tpublic void visit(ArrayExpression arrayExpression) {\n\r\n\t}", "public void setExpression(Object expression);", "Exp getArrayExp();", "@Override\n public Object accept(ESTreeBaseVisitor visito...
[ "0.8248801", "0.67484003", "0.6712975", "0.60661405", "0.5965349", "0.59628403", "0.59565425", "0.59491086", "0.5935932", "0.5920521", "0.57822675", "0.56924164", "0.5689502", "0.568776", "0.5676435", "0.56549335", "0.5651328", "0.5641921", "0.562793", "0.5607161", "0.5575836...
0.56538045
16
Returns a new instance of a StratmasParameterFactory using the provided TypeInformation.
public StratmasParameterFactory() { this.typeMapping = createTypeMapping(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static StaticFactoryInsteadOfConstructors getInstance(Object optionalParameters){\n return new StaticFactoryInsteadOfConstructors();\n }", "ObjectFactory<?> getObjectFactory(Injectable attribute);", "Parameter createParameter();", "default HxParameter createParameter(final HxType parameterTy...
[ "0.527434", "0.5260543", "0.5235805", "0.5120267", "0.5032301", "0.498632", "0.49853277", "0.49119362", "0.49116802", "0.48486608", "0.48482326", "0.4802087", "0.47864926", "0.47615293", "0.475423", "0.47365296", "0.47109553", "0.46936125", "0.4679347", "0.46755496", "0.46384...
0.74335
0
Returns an instance of Parameter suitable for the provided object (or null if none found).
public Parameter getParameter(Object object) { // Only handle StratmasObjects. if (!(object instanceof StratmasObject)) { return null; } return getParameter((StratmasObject) object); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Parameter getTypeParameter(StratmasObject object)\n {\n // Find youngest base type with a mapping\n for (Type walker = object.getType(); \n walker != null; walker = walker.getBaseType()) {\n ParameterFactory parameterFactory = (ParameterFactory) getTypeMapping().get(w...
[ "0.7503952", "0.7043559", "0.68827546", "0.6800015", "0.67682546", "0.6694502", "0.6336078", "0.63088745", "0.63088745", "0.63088745", "0.62729216", "0.62661594", "0.6170484", "0.61121154", "0.60938317", "0.606355", "0.6038307", "0.5997013", "0.59949964", "0.59633744", "0.596...
0.7771101
0
Returns an instance of Parameter suitable for the provided StratmasObject (or null if none found).
public Parameter getParameter(StratmasObject stratmasObject) { return getTypeParameter(stratmasObject); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Parameter getParameter(Object object)\n {\n // Only handle StratmasObjects.\n if (!(object instanceof StratmasObject)) {\n return null;\n }\n \n return getParameter((StratmasObject) object);\n }", "public Parameter getTypeParameter(StratmasObject object)...
[ "0.8312139", "0.77487916", "0.6699167", "0.6507727", "0.62733763", "0.6215934", "0.6214449", "0.615461", "0.6110131", "0.6110131", "0.6110131", "0.6068195", "0.6048126", "0.60089433", "0.598075", "0.5979705", "0.5950304", "0.58587927", "0.5824983", "0.5809494", "0.5795104", ...
0.81607175
1
Returns the type mapping table
public Hashtable getTypeMapping() { return this.typeMapping; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Hashtable createTypeMapping()\n {\n Hashtable mapping = new Hashtable();\n \n mapping.put(TypeFactory.getType(\"Double\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n ...
[ "0.7127954", "0.70875806", "0.7034379", "0.69445735", "0.66595805", "0.65164196", "0.6469831", "0.64477766", "0.63746166", "0.6276744", "0.62674046", "0.6248558", "0.62099046", "0.61890423", "0.6177385", "0.6127043", "0.6089467", "0.60874426", "0.6074904", "0.60625035", "0.60...
0.7541911
0
Returns the best instance of Parameter suitable for the provided type (or null if none found).
public Parameter getTypeParameter(StratmasObject object) { // Find youngest base type with a mapping for (Type walker = object.getType(); walker != null; walker = walker.getBaseType()) { ParameterFactory parameterFactory = (ParameterFactory) getTypeMapping().get(walker); if (parameterFactory != null) { return parameterFactory.getParameter(object); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IParameter getInstance(String type){\n if(!initialized)\n throw new IllegalStateException(\"constructor never finished\");\n Class klass=(Class)paramList.get(type);\n if(klass==null)\n return null;\n else\n return getInstance(klass,false);\n }", "public ParameterType getType();...
[ "0.7602596", "0.6554533", "0.63407344", "0.6320309", "0.6090795", "0.60341096", "0.59660864", "0.5922935", "0.5857237", "0.58039474", "0.57149684", "0.5695006", "0.5655879", "0.56267226", "0.5603552", "0.55783904", "0.5573588", "0.55517226", "0.5537088", "0.55186045", "0.5507...
0.68837214
1
Creates the mapping between XML type and Parameter.
Hashtable createTypeMapping() { Hashtable mapping = new Hashtable(); mapping.put(TypeFactory.getType("Double"), new ParameterFactory() { public Parameter getParameter(Object o) { StratmasDecimal sObj = (StratmasDecimal) o; if (isBadDecimal(sObj)) { return null; } else { return new StratmasDecimalParameter((StratmasDecimal) o); } } }); mapping.put(TypeFactory.getType("double", "http://www.w3.org/2001/XMLSchema"), new ParameterFactory() { public Parameter getParameter(Object o) { StratmasDecimal sObj = (StratmasDecimal) o; if (isBadDecimal(sObj)) { return null; } else { return new StratmasDecimalParameter((StratmasDecimal) o); } } }); mapping.put(TypeFactory.getType("NonNegativeInteger"), new ParameterFactory() { public Parameter getParameter(Object o) { return new StratmasIntegerParameter((StratmasInteger) o); } }); // Ground type type hiearchy. mapping.put(TypeFactory.getType("anyType", "http://www.w3.org/2001/XMLSchema"), new ParameterFactory() { public Parameter getParameter(Object o) { return null; } }); return mapping; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void handleParameters(Node node, ParamType paramType) {\n\n Parameters parameters = new Parameters();\n parameters.setName(node.attributes().get(\"name\").toString());\n Map<String, Object> parameter = new HashMap<String, Object>();\n\n Iterator<Node> itr = node.childNodes();\n ...
[ "0.6560817", "0.6299504", "0.6287214", "0.6180857", "0.61295384", "0.5976918", "0.5686564", "0.56693256", "0.5613289", "0.55856705", "0.5559737", "0.54056334", "0.54042023", "0.5392591", "0.53757286", "0.53704035", "0.5339908", "0.5289771", "0.5289283", "0.52876854", "0.52808...
0.64955366
1
Temp hack to fix stuff.
private boolean isBadDecimal(StratmasDecimal d) { for (StratmasObject walker = d; walker != null; walker = walker.getParent()) { if (walker.getType().canSubstitute("Shape")) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected void\ttryToFix() { Command.insertList(crAndBrace); }", "private void fixNode429()\r\n \t{\r\n \t\tif (! (origFile.getName().equals(\"node429.html\") && pageTitle.contains(\"UNIX-Guru\")))\r\n \t\t\treturn;\r\n \t\tSimpleLogger.verbose(\" Fixin...
[ "0.6012491", "0.5982045", "0.5938811", "0.59311", "0.58508587", "0.58308345", "0.5787595", "0.57716155", "0.57691586", "0.57491326", "0.57168573", "0.56981474", "0.56981474", "0.56981474", "0.56948066", "0.5687354", "0.5670769", "0.56404215", "0.5631628", "0.5628744", "0.5628...
0.0
-1
Used by integrations that define their own SentryOptions
public static <T extends SentryOptions> void init( @NotNull OptionsContainer<T> clazz, @NotNull OptionsConfiguration<T> optionsConfiguration) throws IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException { T options = clazz.createInstance(); optionsConfiguration.configure(options); init(options); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RequestOptions() {}", "public SimpleLoginOptions() {\n debug = false;\n }", "@Override\n public boolean hasAdditionalConfig() { return true; }", "@Override\n\tpublic void setOptions(String[] options) throws Exception {\n\t\t\n\t}", "private Options() {\n }", "protected void additionalConfi...
[ "0.534663", "0.5287908", "0.4955351", "0.49242854", "0.4865507", "0.48395345", "0.48309433", "0.48215455", "0.48003367", "0.47003707", "0.46879086", "0.4659556", "0.4653462", "0.46531865", "0.46132165", "0.46102056", "0.45935282", "0.45891476", "0.4580758", "0.45714986", "0.4...
0.47224835
9
TODO Autogenerated method stub
public void actionPerformed(ActionEvent e) { clear_mousePressed(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void actionPerformed(ActionEvent e) { try { if(service_inv=="CalculatorWS") {lecteurAvecBuffer = new BufferedReader (new FileReader("C:/monitor1.txt")); demo.readfile("C:/imc1.txt");} if(service_inv=="Hotel") {lecteurAvecBuffer = new BufferedReader (new FileReader("C:/monitor2.txt")); demo.readfile("C:/imc2.txt");} if(service_inv=="Airline") {lecteurAvecBuffer = new BufferedReader (new FileReader("C:/monitor3.txt")); demo.readfile("C:/imc3.txt");} if(service_inv=="Vehicle") {lecteurAvecBuffer = new BufferedReader (new FileReader("C:/monitor4.txt")); demo.readfile("C:/imc4.txt");} if(service_inv=="SynchronousSample") lecteurAvecBuffer = new BufferedReader (new FileReader("C:/monitor5.txt")); } catch(FileNotFoundException exc) { } catch (IOException er) { // TODO Auto-generated catch block er.printStackTrace(); } demo.chartPanel = demo.createDemoPanel(); demo.chartPanel.setPreferredSize(new java.awt.Dimension(550, 450)); demo.setContentPane(demo.chartPanel); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
{ "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
Convert kilometer to meter
@FXML void buttonClicked(ActionEvent event) { if(event.getSource() == btnMeter) { try { input1 = Double.parseDouble(txt1.getText()); txt1.setText(String.valueOf(input1*1000+"m")); } catch (Exception exception){JOptionPane.showMessageDialog(msg,"Please enter a number"); } } //kilometer to meter else if(event.getSource() == btnKiloMeter){ try { input1 = Double.parseDouble(txt1.getText()); txt1.setText(String.valueOf(input1/1000+"km")); }catch (Exception exception){JOptionPane.showMessageDialog(msg, "Please enter a number");} } //temperature in celcius else if(event.getSource() == btnTempC){ try{ input1 = Double.parseDouble(txt1.getText()); double newtemp = ((input1-32)*5)/9; txt1.setText(String.valueOf(newtemp)+"C\u00b0"); }catch (Exception exception){JOptionPane.showMessageDialog(msg, "Please enter a number");} } //temperature in farenhite else if(event.getSource() == btnTempF){ try{ input1 = Double.parseDouble(txt1.getText()); double newtempC = (((input1)*9)/5)+32; txt1.setText(String.valueOf(newtempC)+"F\u00b0"); }catch (Exception exception){JOptionPane.showMessageDialog(msg, "Please enter a number");} } //volume else if(event.getSource() == btnVolume){ try{ input1 = Double.parseDouble(txt1.getText()); double volumeCaluculate = input1*input1*input1; txt1.setText(String.valueOf(volumeCaluculate+ "m\u00b3")); }catch (Exception exception){JOptionPane.showMessageDialog(msg, "Please enter a number");} } //convert LKR in to INR else if(event.getSource() == btnInr){ try { input1 = Double.parseDouble(txt1.getText()); double newtINR= input1/2.71 ; txt1.setText(String.valueOf(newtINR +"INR")); }catch (Exception exception){JOptionPane.showMessageDialog(msg, "Please enter a number");} } //Clear button else if (event.getSource() == clear){ txt1.setText(""); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double centiToMeter(double num) { return (num/Math.pow(10,2)); }", "public static double kilometerToMeter(final double kilometer) {\n return kilometer * METERS_PER_KILOMETER;\n }", "public static double meterToKilometer(final double meter) {\n return meter / METERS_PER_KILOMETER;...
[ "0.7824292", "0.77997255", "0.76611805", "0.74690855", "0.7397629", "0.7162811", "0.7150629", "0.7140518", "0.7090097", "0.7059493", "0.70321774", "0.700342", "0.69972026", "0.69813335", "0.6963517", "0.6944638", "0.69257796", "0.6914479", "0.6905374", "0.69037366", "0.686623...
0.0
-1
Author: Vyacheslav Chernyshov Date: 26.01.19 Time: 18:43
public interface BetService { BetDto create(BetDto bet); List<Bet> getAllActiveBetsExpired(); List<BetDto> generate(); void betResult(); BetDto get(Long id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "private void poetries() {\n\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void m5036...
[ "0.5769317", "0.5590574", "0.55372757", "0.55329806", "0.5524337", "0.5522286", "0.5517914", "0.5494701", "0.54802966", "0.5450318", "0.5426418", "0.5396116", "0.53935224", "0.53849524", "0.5368192", "0.53534174", "0.53493035", "0.53493035", "0.534008", "0.52959657", "0.52851...
0.0
-1
/ access modifiers changed from: protected
public <T> RunnableFuture<T> newTaskFor(Runnable runnable, T t) { return new PriorityFutureTask(runnable, t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public <T> RunnableFuture<T> newTaskFor(Callable<T> callable) { return new PriorityFutureTask(callable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.73759794", "0.7041964", "0.69225365", "0.6909014", "0.68461144", "0.6829186", "0.6805777", "0.6583361", "0.65391046", "0.6502126", "0.64913684", "0.64913684", "0.64724255", "0.64384186", "0.64321566", "0.64321566", "0.64287287", "0.64256746", "0.641928", "0.6409303", "0.64...
0.0
-1
/ access modifiers changed from: protected
public void afterExecute(Runnable runnable, Throwable th) { Task task = (Task) runnable; task.setFinished(true); task.setError(th); getQueue().recycleBlockedQueue(); super.afterExecute(runnable, th); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
Metoda koja poziva metodu klase ConnectionClass radi ostvarivanja konekcije u modelu.
public void connect() { konekcija = ConnectionClass.getConnection(adresa, port, imeBaze, korisnickoIme, sifra); System.out.println("Konekcija otvorena: "+ konekcija.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setConnectionType(Class<? extends Connection> connectionType)\r\n/* 20: */ {\r\n/* 21: 64 */ this.connectionType = connectionType;\r\n/* 22: */ }", "public ConnectionType getConnectionType(){\n\t return connectionType; \n }", "public final int getConnectionType()\n\t{\n\t\tretu...
[ "0.6664283", "0.6630884", "0.6117604", "0.59436417", "0.56454587", "0.554116", "0.552212", "0.5484749", "0.54518366", "0.53907603", "0.5374049", "0.53061485", "0.53015673", "0.5293012", "0.52436686", "0.5236115", "0.51594603", "0.5149853", "0.5141687", "0.5132769", "0.5131519...
0.0
-1
Metoda za zatvaranje konecije u modelu.
public void disconnect() { this.database = null; try { if (konekcija != null && !konekcija.isClosed()) { ConnectionClass.closeConnection(); System.out.println("Konekcija zatvorena: "+ konekcija.toString()); } } catch (SQLException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getModelZaduzenja() {\n return modelZaduzenja;\n }", "public String darModelo( )\n\t{\n\t\treturn modelo;\n\t}", "public int getID_Modelo() {\n return ID_Modelo;\n }", "public int getModelOdobrenja() {\n return modelOdobrenja;\n }", "...
[ "0.64771855", "0.64026475", "0.6330326", "0.6165294", "0.61544704", "0.6142808", "0.6142808", "0.61288613", "0.61085767", "0.60831183", "0.6051633", "0.598832", "0.5960881", "0.59372264", "0.5923927", "0.5867938", "0.58575094", "0.585444", "0.5846109", "0.5842388", "0.5837214...
0.0
-1
Created by mason on 6/30/14.
public interface JpaUserDetailsDefaults { void initialSettings(User model); public class NullJpaUserDetailsDefaults implements JpaUserDetailsDefaults{ @Override public void initialSettings(User model) { } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Overri...
[ "0.5943047", "0.59223914", "0.58558726", "0.58441424", "0.5768342", "0.57598704", "0.5759072", "0.5759072", "0.5724079", "0.5715096", "0.5713057", "0.57067525", "0.5704871", "0.5700847", "0.5691475", "0.5666252", "0.5649162", "0.5639649", "0.56334007", "0.56324756", "0.563247...
0.0
-1
Inicializa DAOs recuperando solo valores desde SharedPreferences
private void init(){ if(solicitudEnviadaDAO == null){ solicitudEnviadaDAO = new SolicitudEnviadaDAO(getApplicationContext()); } if(solicitudRecibidaDAO == null){ solicitudRecibidaDAO = new SolicitudRecibidaDAO(getApplicationContext()); } if(solicitudContestadaDAO == null){ solicitudContestadaDAO = new SolicitudContestadaDAO(getApplicationContext()); } if(preguntaEnviadaDAO == null){ preguntaEnviadaDAO = new PreguntaEnviadaDAO(getApplicationContext()); } if(preguntaRecibidaDAO == null){ preguntaRecibidaDAO = new PreguntaRecibidaDAO(getApplicationContext()); } if(preguntaContestadaDAO == null){ preguntaContestadaDAO = new PreguntaContestadaDAO(getApplicationContext()); } if(puntuacionRecibidaDAO == null){ puntuacionRecibidaDAO = new PuntuacionRecibidaDAO(getApplicationContext()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getPreferences() {\n Constants constants = new Constants();\n android.content.SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n\n serverUrl = sharedPreferences.getString(\"LedgerLinkBaseUrl\", constants.DEFAULTURL);\n IsEd...
[ "0.6656144", "0.6503675", "0.6435457", "0.64260536", "0.63892657", "0.63317895", "0.6324656", "0.624266", "0.62355554", "0.61919147", "0.61825716", "0.61590374", "0.6123158", "0.61228657", "0.6114203", "0.6089246", "0.6089244", "0.60439944", "0.6031446", "0.6015554", "0.60022...
0.6722859
0
Agrega datos a intent
private void setToOtherActivity(){ util.setArrayListToOtherActivity(intent, solicitudEnviadaDAO.getSolEnviadaDTO(), Constantes.PARCEL_LISTA_SOL_ENVIADA); util.setArrayListToOtherActivity(intent, solicitudRecibidaDAO.getSolRecibidaDTO(), Constantes.PARCEL_LISTA_SOL_RECIBIDA); util.setArrayListToOtherActivity(intent, solicitudContestadaDAO.getSolContestadaDTO(), Constantes.PARCEL_LISTA_SOL_CONTESTADA); util.setArrayListToOtherActivity(intent, preguntaEnviadaDAO.getListaPreguntaEnviadaDTO(), Constantes.PARCEL_LISTA_PREG_ENVIADA); util.setArrayListToOtherActivity(intent, preguntaRecibidaDAO.getListaPreguntaRecibidaDTO(), Constantes.PARCEL_LISTA_PREG_RECIBIDA); util.setArrayListToOtherActivity(intent, preguntaContestadaDAO.getListaPreguntasContestadasDTO(), Constantes.PARCEL_LISTA_PREG_CONTESTADA); util.setArrayListToOtherActivity(intent, puntuacionRecibidaDAO.getListaPuntuacionRecibidasDTO(), Constantes.PARCEL_LISTA_PUNT_RECIBIDA); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void solicitarDatos() {\n Intent intent = Henson.with(this).gotoAlumnoActivity().edad(mAlumno.getEdad()).nombre(\n mAlumno.getNombre()).build();\n startActivityForResult(intent, RC_ALUMNO);\n }", "private void obtener(){\n Bundle bundle = getIntent().getExtras();\n ...
[ "0.7091951", "0.6867728", "0.6846898", "0.6827482", "0.67985517", "0.6683407", "0.6638801", "0.6632327", "0.66138047", "0.6537755", "0.64825624", "0.64677775", "0.6453981", "0.6453316", "0.64389795", "0.6413896", "0.63881475", "0.6377495", "0.637736", "0.6376869", "0.6368399"...
0.5923971
72
Created by zkn on 2017/10/7.
public interface AspectJService { /** * 测试前置通知 */ void beforeAdvice(); /** * 测试后置通知 */ void afterAdvice(); /** * 后置返回通知 * * @return */ String afterReturnAdvice(); }
{ "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\n...
[ "0.6013808", "0.5842714", "0.57705086", "0.573462", "0.5706675", "0.5706675", "0.56713235", "0.56536454", "0.56096214", "0.5602695", "0.5590318", "0.5572647", "0.5571913", "0.5562343", "0.55617315", "0.55489343", "0.5529917", "0.552691", "0.55268246", "0.55088925", "0.5490032...
0.0
-1
TODO Autogenerated method stub
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().setSoftInputMode(WindowManager.LayoutParams. SOFT_INPUT_ADJUST_PAN); //锁定屏幕 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); setContentView(R.layout.activity_publish); init(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { startActivity(new Intent(PublishActivity.this,ClassifyActivity.class)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { startActivity(new Intent(PublishActivity.this,ClassifyActivity.class)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean setViewValue(View view, Object data, String textRepresentation) { if(view instanceof ImageView && data instanceof Bitmap){ ImageView i = (ImageView)view; i.setImageBitmap((Bitmap) data); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { byte image[] = Global.File2byte(pathImage); Transfer.uploadImage(image, new TransferListener() { @Override public void onSucceed(JSONObject obj) { // TODO Auto-generated method stub Log.e("upload",obj.toString()); } @Override public void onFail(String desc) { // TODO Auto-generated method stub Log.e("upload",desc); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onSucceed(JSONObject obj) { Log.e("upload",obj.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onFail(String desc) { Log.e("upload",desc); }
{ "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
Deletes all the values stored in an attribute
public void clearAttributeValues(String attrName) { NST attrDataNST = getAttrDataNST(attrName); // throws error if not found attrDataNST.deleteRows(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void removeAttributes()\n {\n attributes.clear();\n }", "public void deleteAllAttributes() {\n Iterator attrNameIterator = getAttributeNames().iterator();\n while (attrNameIterator.hasNext()) {\n String attrName = (String) attrNameIterator.next();\n ...
[ "0.73234344", "0.7296228", "0.6888292", "0.68174994", "0.67843866", "0.66661006", "0.66548723", "0.655755", "0.641484", "0.63970315", "0.6325535", "0.62688255", "0.62661624", "0.6246017", "0.6235623", "0.6205094", "0.6198575", "0.6178367", "0.613391", "0.6129952", "0.60625106...
0.73590726
0
Creates new attribute named newAttrName from oldAttrName. This two arg overload: a) copies all columns (i.e., works on single and multicolumn attributes), and b) uses the same type definition as oldAttrName.
public void copyAttribute(String oldAttrName, String newAttrName) { log.debug("copyAttribute: " + oldAttrName + ", " + newAttrName); if (isAttributeDefined(newAttrName)) { deleteAttribute(newAttrName); } String typeDef = getAttrTypeDef(oldAttrName); defineAttribute(newAttrName, typeDef); NST oldAttrNST = getAttrDataNST(oldAttrName); NST newAttrNST = getAttrDataNST(newAttrName); newAttrNST.insertRowsFromNST(oldAttrNST); oldAttrNST.release(); newAttrNST.release(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void copyAttribute(String oldAttrName, String newAttrName,\n DataTypeEnum newAttrType) {\n Assert.condition(isSingleValued(oldAttrName), \"only works on single-\" +\n \"column attributes\");\n\n // create the new attribute's NST\n NST oldAttrN...
[ "0.782191", "0.63466436", "0.63233143", "0.63205105", "0.6234489", "0.61195254", "0.5693709", "0.5614069", "0.5544876", "0.55244654", "0.5513679", "0.5473533", "0.5388237", "0.5326081", "0.5317719", "0.5317719", "0.5309298", "0.5280135", "0.523853", "0.51523006", "0.51433134"...
0.77904224
1
Creates new attribute named newAttrName from oldAttrName. This three arg overload: a) copies only one column (i.e., works only on singlecolumn attributes), and b) uses newAttrType for the new attribute's type definition.
public void copyAttribute(String oldAttrName, String newAttrName, DataTypeEnum newAttrType) { Assert.condition(isSingleValued(oldAttrName), "only works on single-" + "column attributes"); // create the new attribute's NST NST oldAttrNST = getAttrDataNST(oldAttrName); NST oldAttrCopyNST = oldAttrNST.copy(); String valueCol = oldAttrNST.getNSTColumn(1).getName(); // might not be 'value' oldAttrCopyNST.castColumn(valueCol, newAttrType.toString()); // define and insert the new attribute's values defineAttribute(newAttrName, newAttrType.toString()); NST newAttrNST = getAttrDataNST(newAttrName); newAttrNST.insertRowsFromNST(oldAttrCopyNST); // clean up oldAttrCopyNST.release(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void copyAttribute(String oldAttrName, String newAttrName) {\n log.debug(\"copyAttribute: \" + oldAttrName + \", \" + newAttrName);\n if (isAttributeDefined(newAttrName)) {\n deleteAttribute(newAttrName);\n }\n String typeDef = getAttrTypeDef(oldAttrName);\n def...
[ "0.7859445", "0.66463256", "0.626286", "0.6143209", "0.596025", "0.58318853", "0.5741432", "0.56489056", "0.55165654", "0.5406504", "0.54024154", "0.54024154", "0.5377526", "0.5338113", "0.53233486", "0.5305175", "0.5221103", "0.5208113", "0.511862", "0.5117073", "0.51123416"...
0.81652176
0
Example: every object has a score, and you want to examine the 500 objects with the highest scores. This method prints info to help you find the score cutoff which will give you exactly or around 500 objects. Attribute can be of any type (as long as it can be sorted)
public void cutoffForTopNVals(String attrName, int numItemsWanted, boolean bottomN) { NST attrDataNST = getAttrDataNST(attrName); String columnToSort = "value"; // See what the value is at exactly the cutoff we want NST scoreNST = attrDataNST.sort(columnToSort, "*"); int totalRows = scoreNST.getRowCount(); int rowWanted; if (bottomN) { // bottom scores rowWanted = Math.min(numItemsWanted - 1, totalRows - 1); } else { // top scores rowWanted = Math.max(0, totalRows - numItemsWanted); } String range = rowWanted + "-" + rowWanted; ResultSet rs = scoreNST.selectRows("*", columnToSort, range); String cutoffLoose; boolean hasRows = rs.next(); if (hasRows) { cutoffLoose = rs.getString(1); } else { log.warn("Got 0 rows in Attributes.cutoffForTopNVals()"); scoreNST.release(); return; } // How many items will this cutoff and the next smaller give us? NST tooManyNST, tooFewNST; if (bottomN) { tooManyNST = scoreNST.filter(columnToSort + " LE '" + cutoffLoose + "'"); tooFewNST = scoreNST.filter(columnToSort + " LT '" + cutoffLoose + "'"); } else { tooManyNST = scoreNST.filter(columnToSort + " GE '" + cutoffLoose + "'"); tooFewNST = scoreNST.filter(columnToSort + " GT '" + cutoffLoose + "'"); } log.debug("Cutoff of " + cutoffLoose + " gives " + tooManyNST.getRowCount() + " items"); if (numItemsWanted > totalRows) { log.debug("This is all the items we have"); scoreNST.release(); tooManyNST.release(); tooFewNST.release(); return; } // What is the next smaller? if (bottomN) { int lastRow = Math.max(tooFewNST.getRowCount() - 1, 0); rs = scoreNST.selectRows(columnToSort + " LT '" + cutoffLoose + "'", "sortedScore, " + columnToSort, lastRow + "-" + lastRow); } else { rs = scoreNST.selectRows(columnToSort + " GT '" + cutoffLoose + "'", "sortedScore, " + columnToSort, "0-0"); } hasRows = rs.next(); String cutoffTight; if (hasRows) { cutoffTight = rs.getString(2); log.debug("Next cutoff of " + cutoffTight + " gives only " + tooFewNST.getRowCount() + " items"); } else { log.debug("There is no tighter cutoff than this"); } scoreNST.release(); tooManyNST.release(); tooFewNST.release(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\r\n public static void main(String[] args)\r\n {\r\n //final String INPUT_FILE=\"contact-lenses.arff\";\r\n final String INPUT_FILE=\"adult.merged.arff\";\r\n Instances data;\r\n try {\r\n Reader r...
[ "0.55658907", "0.5508929", "0.546472", "0.5423349", "0.5332784", "0.52892673", "0.52511203", "0.5249623", "0.52316475", "0.5216275", "0.5192855", "0.5179797", "0.5170774", "0.5158613", "0.5124451", "0.511251", "0.5072366", "0.5059025", "0.5057569", "0.5047703", "0.50451285", ...
0.49597505
36