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
Driver program to test above function
public static void main(String args[]) { String txt = "ABABDABACDABABCABAB"; String pat = "ABABCABAB"; new KMP().KMPSearch(pat, txt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\r\n // 2. Call your method in various ways to test it here.\r\n }", "private void test() {\n\n\t}", "public static void main(String[] args) {\n // PUT YOUR TEST CODE HERE\n }", "public void TestMain(){\n SampleStatements();\n TestMyPo...
[ "0.7135004", "0.6905942", "0.6684947", "0.6560713", "0.6545559", "0.6538317", "0.6483956", "0.64658284", "0.64559746", "0.6431122", "0.6414808", "0.6409539", "0.6396703", "0.63649297", "0.63646185", "0.63642824", "0.63627696", "0.6355217", "0.6335398", "0.6334076", "0.6310677...
0.0
-1
Complete the designerPdfViewer function below.
static int designerPdfViewer(int[] h, String word) { char c='a'; int maxHeight=0; Map<Character, Integer> alphabet = new HashMap<>(); for(int height:h) { alphabet.put(c, height); c++; } for(int i=0;i<word.length();i++) { if( alphabet.get( word.charAt(i) ) > maxHeight ) { maxHeight = alphabet.get( word.charAt(i) ); } } //System.out.println(alphabet); return maxHeight*word.length(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void verPDFFrame(String filePath) {\n SwingController c = new SwingController();\n c.setIsEmbeddedComponent(true);\n\n PropertiesManager prop = new PropertiesManager(\n System.getProperties(),\n ResourceBundle.getBundle(PropertiesManager.DEFAULT_MESSAGE_BU...
[ "0.6688746", "0.63019055", "0.60245824", "0.6016898", "0.5899649", "0.58986115", "0.5798539", "0.57766587", "0.5766612", "0.5731059", "0.5715264", "0.5664184", "0.56434584", "0.5623889", "0.56130534", "0.558398", "0.55792105", "0.5577515", "0.55766743", "0.553359", "0.5531972...
0.0
-1
BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH")));
public static void main(String[] args) throws IOException { int[] h = new int[26]; String[] hItems = scanner.nextLine().split(" "); scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); for (int i = 0; i < 26; i++) { int hItem = Integer.parseInt(hItems[i]); h[i] = hItem; } String word = scanner.nextLine(); int result = designerPdfViewer(h, word); System.out.println(result); //bufferedWriter.write(String.valueOf(result)); //bufferedWriter.newLine(); //bufferedWriter.close(); scanner.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException {\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv(\"OUTPUT_PATH\")));\n\t\t\n\t\tbufferedWriter.write(\"Hello\");\n\n\t}", "private static void prepareOutputFile() {\n try {\n outputFileBuffer = new B...
[ "0.7209582", "0.6817599", "0.6046835", "0.60262144", "0.6007037", "0.5917299", "0.5893141", "0.58166444", "0.57778126", "0.5759957", "0.5615087", "0.56052816", "0.55831736", "0.557736", "0.5569164", "0.55371886", "0.5534559", "0.5509321", "0.54986763", "0.5494936", "0.5481345...
0.0
-1
Creates the track display
protected void displayTrack() { // Clear display first displayBox.getChildren().clear(); legendBox.getChildren().clear(); for (int i = 0; i < CTC.numTracks; i++) { for (final Block block: CTC.tracks[i]) { double startX = block.startX/10+10; double startY = block.startY/10+10; double endX = block.endX/10+10; double endY = block.endY/10+10; //*/ For crisp looking lines startX = Math.floor(startX) + .5; startY = Math.floor(startY) + .5; endX = Math.floor(endX) + .5; endY = Math.floor(endY) + .5; //*/ Line line = new Line(startX, startY, endX, endY); String strokeStyle; if (block.hasStation()) { strokeStyle = "-fx-stroke: #FFFFFF; -fx-stroke-width: 1px;"; line.setStrokeType(StrokeType.OUTSIDE); line.setTranslateX(-.5); line.setTranslateY(-.5); final Popup stationPopup = new Popup(); // Add a mouseover for the line line.setOnMouseEntered(new EventHandler<MouseEvent>() { public void handle (MouseEvent event) { Label stationName = new Label(" " + block.stationName + " "); stationPopup.getContent().add(stationName); stationName.setStyle("-fx-background-color: #FFFFFF"); stationPopup.show(CTC.ctcStage, event.getScreenX(), event.getScreenY() - 20); } }); line.setOnMouseExited(new EventHandler<MouseEvent>() { public void handle (MouseEvent event) { stationPopup.hide(); } }); } else strokeStyle = "-fx-stroke: " + CTC.tracks[i].color + ";"; line.setStyle(strokeStyle); line.setVisible(true); displayBox.getChildren().add(line); } // Display legend at the right of the track HBox trackLegend = new HBox(); Rectangle trackSymbol = new Rectangle(20, 3); Label trackLabel = new Label(CTC.tracks[i].toString(), trackSymbol); String symbolStyle = "-fx-fill: " + CTC.tracks[i].color + ";"; trackSymbol.setStyle(symbolStyle); trackLegend.getChildren().addAll(trackLabel); legendBox.getChildren().add(trackLegend); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initTracks() {\n ((javax.swing.plaf.basic.BasicInternalFrameUI)jInternalFrame1.getUI()).setNorthPane(null);\n jInternalFrame1.setVisible(false);\n ((javax.swing.plaf.basic.BasicInternalFrameUI)jInternalFrame2.getUI()).setNorthPane(null);\n jInternalFrame2.setVisible(false);...
[ "0.64957255", "0.627537", "0.6233153", "0.60340494", "0.60018593", "0.59833914", "0.5979079", "0.59789366", "0.59260005", "0.5917051", "0.59106785", "0.58810556", "0.58798915", "0.5873224", "0.585614", "0.58005303", "0.5772202", "0.5758838", "0.5749322", "0.57203585", "0.5695...
0.62306464
3
Creates new form musteriEkle
public MusteriEkle() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n ...
[ "0.6648423", "0.64866877", "0.64600986", "0.63095593", "0.6228693", "0.6163675", "0.61050004", "0.6064015", "0.60309124", "0.5959051", "0.59485435", "0.5920494", "0.5917129", "0.5872072", "0.5857797", "0.5846983", "0.5827796", "0.5809563", "0.5799122", "0.57632226", "0.575354...
0.5979862
9
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); txtIsim = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); txtTc = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); txtTel = new javax.swing.JTextField(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jLabel4 = new javax.swing.JLabel(); txtSifre = new javax.swing.JTextField(); jLabel5 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel1.setBackground(new java.awt.Color(51, 0, 102)); jLabel1.setFont(new java.awt.Font("Arial Narrow", 1, 18)); // NOI18N jLabel1.setForeground(new java.awt.Color(255, 255, 255)); jLabel1.setText("İsim ve Soyisim"); jLabel2.setFont(new java.awt.Font("Arial Narrow", 1, 18)); // NOI18N jLabel2.setForeground(new java.awt.Color(255, 255, 255)); jLabel2.setText("Tc No"); jLabel3.setFont(new java.awt.Font("Arial Narrow", 1, 18)); // NOI18N jLabel3.setForeground(new java.awt.Color(255, 255, 255)); jLabel3.setText("Tel No"); jButton1.setBackground(new java.awt.Color(51, 0, 204)); jButton1.setFont(new java.awt.Font("Arial Narrow", 1, 18)); // NOI18N jButton1.setForeground(new java.awt.Color(0, 204, 51)); jButton1.setText("Ekle"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jButton2.setBackground(new java.awt.Color(0, 51, 255)); jButton2.setFont(new java.awt.Font("Arial Narrow", 1, 18)); // NOI18N jButton2.setForeground(new java.awt.Color(255, 255, 255)); jButton2.setText("Vazgeç"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jLabel4.setFont(new java.awt.Font("Arial Narrow", 1, 18)); // NOI18N jLabel4.setForeground(new java.awt.Color(255, 255, 255)); jLabel4.setText("Şifreniz"); jLabel5.setFont(new java.awt.Font("Arial Narrow", 1, 24)); // NOI18N jLabel5.setForeground(new java.awt.Color(51, 255, 255)); jLabel5.setText("Bilgileri Giriniz"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(81, 81, 81) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(12, 12, 12) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(26, 26, 26))) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel5) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(txtIsim) .addComponent(txtTc) .addComponent(txtTel) .addComponent(txtSifre, javax.swing.GroupLayout.DEFAULT_SIZE, 266, Short.MAX_VALUE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGap(0, 228, Short.MAX_VALUE) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(75, 75, 75)))) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(18, 18, 18) .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtIsim, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtTc, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtTel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtSifre, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(55, 55, 55)) ); getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 690, 440)); 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.73185146", "0.7290127", "0.7290127", "0.7290127", "0.7285798", "0.7247533", "0.7214021", "0.720785", "0.71952385", "0.71891224", "0.7184117", "0.7158779", "0.7147133", "0.70921415", "0.70792264", "0.7055538", "0.6986984", "0.6976409", "0.6955238", "0.69525516", "0.69452786...
0.0
-1
get ready after loading. Called only once after loading
void getReady(int posn) { if (this.name == null) { throw new ApplicationError( "Procedure parameter has an identity crisis. No name is given to it!!"); } this.myPosn = posn; if (this.recordName == null) { if (this.dataType == null) { throw new ApplicationError( "Procedure parameter should be either a struct, in which case recordName is specified, or a primitive of a dataType."); } this.dataTypeObject = ComponentManager.getDataType(this.dataType); if (this.defaultValue != null) { this.defaultValueObjet = this.dataTypeObject .parseValue(this.defaultValue); if (this.defaultValueObjet == null) { throw new ApplicationError("sql parameter " + this.name + " has an invalid default value."); } } } else { if (this.sqlObjectType == null) { throw new ApplicationError("Stored procedure parameter " + this.name + " has a record associated with it, implying that it is a struct/object. Please specify sqlObjectType as the type of this parameter in the stored procedure"); } this.sqlObjectType = this.sqlObjectType.toUpperCase(); } if (this.isArray) { if (this.sqlArrayType == null) { throw new ApplicationError("Stored procedure parameter " + this.name + " is an array, and hence sqlArrayType must be specified as the type with which this parameter is defined in the stored procedure"); } this.sqlArrayType = this.sqlArrayType.toUpperCase(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isReady() {\n return true;\n }", "@Override\n public boolean isReady() {\n return true;\n }", "public abstract void ready();", "@Override\r\n\t\t\tpublic boolean isReady() {\n\t\t\t\treturn false;\r\n\t\t\t}", "public void setReady() {\n\t\tfadein = fadeout ...
[ "0.77806205", "0.7762654", "0.76602983", "0.7627439", "0.7526897", "0.7492966", "0.7492966", "0.7439696", "0.7426795", "0.7421551", "0.74112445", "0.7396286", "0.73512995", "0.7296535", "0.72726387", "0.7156201", "0.7127536", "0.71269894", "0.7116573", "0.7116573", "0.7093594...
0.0
-1
called before executing the statement. If this has input, we have to set its value. If it is for output, we have to register it
public boolean setParameter(CallableStatement stmt, FieldsInterface inputFields, ServiceContext ctx) throws SQLException { /* * register this param if it is out or in-out */ if (this.inOutType != InOutType.INPUT) { this.registerForOutput(stmt); } if (this.inOutType == InOutType.OUTPUT) { /* * not an input. we are done. */ return true; } if (this.isArray == false && this.recordName == null) { /* * it is a simple primitive value */ Value value = inputFields.getValue(this.name); if (value == null || Value.isNull(value)) { value = this.defaultValueObjet; } if (value == null) { if (this.isRequired) { ctx.addMessage(org.simplity.kernel.Messages.VALUE_REQUIRED, this.name); return false; } stmt.setNull(this.myPosn, this.getValueType().getSqlType()); return true; } value.setToStatement(stmt, this.myPosn); return true; } /* * non-primitive value is generally found in ctx as a data sheet */ DataSheet ds = ctx.getDataSheet(this.name); Connection con = stmt.getConnection(); if (this.recordName == null) { /* * array of primitives */ Value[] vals = null; if (ds == null) { /* * we do not give-up that easily. Is this a field with comma * separated values? */ String txt = ctx.getTextValue(this.name); if (txt != null) { vals = Value.parse(txt.split(","), this.getValueType()); } } else if (ds.length() > 0) { vals = ds.getColumnValues(this.name); if (vals == null && ds.width() == 1) { /* * Told you, we do not give-up that easily. This is a ds * with only one column. Why bother about matching the * column name */ vals = ds.getColumnValues(ds.getColumnNames()[0]); } } if (vals == null) { this.setNullParam(stmt, ctx); return true; } Array data = DbDriver.createArray(con, vals, this.sqlArrayType); stmt.setArray(this.myPosn, data); return true; } /* * this involves a data structure */ Record record = ComponentManager.getRecord(this.recordName); if (record.isComplexStruct()) { return this.setComplexStruct(record, stmt, ctx); } /* * Simple data structure */ if (this.isArray == false) { Value[] values = null; if (ds == null) { values = record.getData(ctx); } else if (ds.length() > 0) { values = ds.getRow(0); } if (values == null) { return this.setNullParam(stmt, ctx); } Struct struct = DbDriver.createStruct(con, values, this.sqlObjectType); stmt.setObject(this.myPosn, struct, Types.STRUCT); return true; } /* * finally, we have reached an array of struct */ if (ds == null || ds.length() == 0) { return this.setNullParam(stmt, ctx); } int nbrRows = ds.length(); Struct[] structs = new Struct[nbrRows]; for (int i = 0; i < nbrRows; i++) { structs[i] = DbDriver.createStruct(con, ds.getRow(i), this.sqlObjectType); } Array array = DbDriver.createStructArray(con, structs, this.sqlArrayType); stmt.setArray(this.myPosn, array); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setInput(Input arg0) {\n\t\t\n\t}", "public void setInput(Input param) {\r\n localInputTracker = param != null;\r\n\r\n this.localInput = param;\r\n }", "protected abstract void registerInput();", "@Override\n\tpublic void setInput(Input arg0) {\n\n\t}", ...
[ "0.62384653", "0.616985", "0.6130459", "0.61251676", "0.61017895", "0.6031991", "0.5975937", "0.5975937", "0.59415185", "0.5937769", "0.59000885", "0.58226836", "0.5815785", "0.58073705", "0.5787238", "0.57428104", "0.5726106", "0.56992686", "0.5656205", "0.56377345", "0.5622...
0.50600135
69
register this parameter for output
private void registerForOutput(CallableStatement stmt) throws SQLException { /* * array */ if (this.isArray) { stmt.registerOutParameter(this.myPosn, Types.ARRAY, this.sqlArrayType); return; } /* * struct */ if (this.recordName != null) { stmt.registerOutParameter(this.myPosn, Types.STRUCT, this.sqlObjectType); return; } /* * primitive value */ int scale = this.dataTypeObject.getScale(); if (scale == 0) { stmt.registerOutParameter(this.myPosn, this.getValueType().getSqlType()); return; } stmt.registerOutParameter(this.myPosn, this.getValueType().getSqlType(), scale); return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registerOutput( String pinName ) {\n\t//Bug: we do nothing about this here, it'll get more fun later\n }", "public void encode(Map outputParam, String name) {\n\n\t\tHashMap<String, String> globalStatus = new HashMap<String, String>();\n\t\tglobalStatus.put(PNAME_RETURNSTATUS_CODE, this.getStatusC...
[ "0.6419795", "0.62442774", "0.61508733", "0.595408", "0.5925059", "0.58742595", "0.58647794", "0.5862678", "0.58321786", "0.58003664", "0.5786619", "0.57506263", "0.5703437", "0.56713337", "0.56652296", "0.56651384", "0.562247", "0.56137687", "0.5600742", "0.56006485", "0.559...
0.65858763
0
extract output, if required, for this parameter
public void extractOutput(CallableStatement stmt, FieldsInterface outputFields, ServiceContext ctx) throws SQLException { if (this.inOutType == InOutType.INPUT) { return; } /* * simple value */ if (this.recordName == null && this.isArray == false) { Value value = this.getValueType().extractFromSp(stmt, this.myPosn); if (Value.isNull(value)) { Tracer.trace( "Null value received for stored procedure parameter " + this.name + ". Data is not added to context."); } else { outputFields.setValue(this.name, value); } return; } /* * struct/array etc.. */ Object object = stmt.getObject(this.myPosn); if (object == null) { Tracer.trace("Got null as value of stored procedure parameter " + this.name + ". Data is not added to context."); return; } Object[] array = null; if (this.isArray) { if (object instanceof Array == false) { throw new ApplicationError("procedure parameter " + this.name + " is probably not set properly. We received an object of type " + object.getClass().getName() + " at run time while we expected an Array"); } array = (Object[]) ((Array) object).getArray(); } /* * array of primitives */ if (this.recordName == null) { ctx.putDataSheet(this.name, this.arrayToDs(array)); return; } Record record = ComponentManager.getRecord(this.recordName); if (this.isArray == false) { if (object instanceof Struct == false) { throw new ApplicationError("procedure parameter " + this.name + " is probably not set properly. We received an object of type " + object.getClass().getName() + " at run time while we expected Struct"); } Struct struct = (Struct) object; if (record.isComplexStruct()) { ctx.setObject(this.name, this.extractToJson(record, struct, stmt)); } else { ctx.putDataSheet(this.name, this.structToDs(struct)); } return; } /* * array of structs. the most complex case. */ if (record.isComplexStruct()) { ctx.setObject(this.name, this.extractToJsonArray(record, array, stmt)); } else { ctx.putDataSheet(this.name, this.structsToDs(record, array)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getOutput();", "public TestOut getOutput() {\n\treturn(output);\n }", "String getOutput();", "public abstract Object getOutput ();", "Map<String, ?> getOutputData();", "public String getOutputFlag();", "boolean hasOutputParams();", "public void setOutput(String output) { this.outp...
[ "0.6908498", "0.671106", "0.65291625", "0.6395962", "0.6388175", "0.6338063", "0.618902", "0.6169051", "0.6144466", "0.61243415", "0.6121967", "0.60705495", "0.6016589", "0.6009594", "0.60034895", "0.5954342", "0.59375536", "0.59161156", "0.5890178", "0.5863682", "0.58546036"...
0.5535743
50
create a data sheet with the given struct as its only row
private DataSheet structToDs(Struct struct) throws SQLException { /* * struct is extracted into a data sheet with just one row */ DataSheet ds = ComponentManager.getRecord(this.recordName) .createSheet(true, false); ValueType[] types = ds.getValueTypes(); Value[] row = this.getRowFromStruct(struct.getAttributes(), types); ds.addRow(row); return ds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Row createRow();", "private DataSheet structsToDs(Record record, Object[] array)\n\t\t\tthrows SQLException {\n\t\tDataSheet ds = record.createSheet(false, false);\n\t\tValueType[] types = ds.getValueTypes();\n\t\tfor (Object struct : array) {\n\t\t\tif (struct == null || struct instanceof Struct == false) {\n\t...
[ "0.6723849", "0.63762337", "0.63641024", "0.6048089", "0.59613407", "0.5951631", "0.5949136", "0.58724785", "0.58714646", "0.58447444", "0.5755584", "0.5754825", "0.5741866", "0.5666846", "0.5625543", "0.55837375", "0.5549381", "0.5536728", "0.5488751", "0.5485792", "0.544278...
0.6538392
1
create a data sheet out of an array of structs
private DataSheet structsToDs(Record record, Object[] array) throws SQLException { DataSheet ds = record.createSheet(false, false); ValueType[] types = ds.getValueTypes(); for (Object struct : array) { if (struct == null || struct instanceof Struct == false) { Tracer.trace( "Found an empty row or a non-struct object for stored procedure parameter " + this.name + ". skipping this row, but not throwing an error."); continue; } Object[] rowData = ((Struct) struct).getAttributes(); Value[] row = this.getRowFromStruct(rowData, types); ds.addRow(row); } return ds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DataSheet arrayToDs(Object[] row) throws SQLException {\n\t\tString[] columnNames = { this.name };\n\t\tValueType vt = this.getValueType();\n\t\tif (row.length == 0) {\n\t\t\tValueType[] types = { this.dataTypeObject.getValueType() };\n\t\t\treturn new MultiRowsSheet(columnNames, types);\n\t\t}\n\t\tValue[...
[ "0.6040826", "0.5966267", "0.5831606", "0.57870996", "0.54041123", "0.5329946", "0.5281186", "0.525293", "0.5240333", "0.523502", "0.52331704", "0.5229686", "0.52123344", "0.5206208", "0.51910794", "0.5122787", "0.51202506", "0.50925237", "0.5091305", "0.50821084", "0.5069116...
0.6912082
0
convert a struct into a row of a data sheet
private Value[] getRowFromStruct(Object[] struct, ValueType[] types) { /* * get values from struct as an array of objects */ Value[] row = new Value[struct.length]; int col = 0; for (Object val : struct) { row[col] = types[col].parseObject(val); col++; } return row; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DataSheet structToDs(Struct struct) throws SQLException {\n\t\t/*\n\t\t * struct is extracted into a data sheet with just one row\n\t\t */\n\t\tDataSheet ds = ComponentManager.getRecord(this.recordName)\n\t\t\t\t.createSheet(true, false);\n\t\tValueType[] types = ds.getValueTypes();\n\t\tValue[] row = this...
[ "0.68541896", "0.65909517", "0.6204782", "0.61426616", "0.60087246", "0.5902246", "0.5807535", "0.56694394", "0.5579946", "0.55062354", "0.543986", "0.5432554", "0.5430943", "0.541545", "0.541368", "0.53946555", "0.5248956", "0.5236386", "0.52333564", "0.52285475", "0.5216889...
0.58721757
6
create a data sheet with the array of the only column in that
private DataSheet arrayToDs(Object[] row) throws SQLException { String[] columnNames = { this.name }; ValueType vt = this.getValueType(); if (row.length == 0) { ValueType[] types = { this.dataTypeObject.getValueType() }; return new MultiRowsSheet(columnNames, types); } Value[][] values = { vt.toValues(row) }; return new MultiRowsSheet(columnNames, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object[][] getData(File file, String sheetName, int maxColumn ) throws IOException {\n Object data[][] = null;\n\n // tao ra input tu file\n FileInputStream ExcelFile = new FileInputStream(file);\n // tao 1 workbook moi\n xf = new XSSFWorkbook(ExcelFile);\n // lay t...
[ "0.6063507", "0.59883267", "0.59491605", "0.5927502", "0.5749435", "0.5727935", "0.5652354", "0.5617173", "0.5612301", "0.55743235", "0.5542544", "0.55344373", "0.5530834", "0.55259717", "0.551975", "0.5508556", "0.5486929", "0.5467067", "0.5458883", "0.5427157", "0.5425451",...
0.62251383
0
validate the loaded attributes of this subcomponent
int validate(ValidationContext ctx) { int count = 0; if (this.name == null) { ctx.addError( "Parameter has to have a name. This need not be the same as the one in the db though."); count++; } count += ctx.checkDtExistence(this.dataType, "dataType", false); count += ctx.checkRecordExistence(this.recordName, "recordName", false); if (this.defaultValue != null) { if (this.dataType == null) { this.addError(ctx, " is non-primitive but a default value is specified."); count++; } else { DataType dt = ComponentManager.getDataTypeOrNull(this.dataType); if (dt != null && dt.parseValue(this.defaultValue) == null) { this.addError(ctx, " default value of " + this.defaultValue + " is invalid as per dataType " + this.dataType); } } } if (this.recordName != null) { if (this.dataType != null) { this.addError(ctx, " Both dataType and recordName specified. Use dataType if this is primitive type, or record if it as array or a structure."); count++; } if (this.sqlObjectType == null) { this.addError(ctx, " recordName is specified which means that it is a data-structure. Please specify sqlObjectType as the type of this parameter in the stored procedure"); } } else { if (this.dataType == null) { this.addError(ctx, " No data type or recordName specified. Use dataType if this is primitive type, or record if it as an array or a data-structure."); count++; } else if (this.sqlObjectType != null) { ctx.addError( "sqlObjectType is relevant only if this parameter is non-primitive."); } } if (this.isArray) { if (this.sqlArrayType == null) { this.addError(ctx, " is an array, and hence sqlArrayType must be specified as the type with which this parameter is defined in the stored procedure"); count++; } } return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate() {\n if (valid) return;\n \n layer = getAttValue(\"layer\").getString();\n hasFrame = getAttValue(\"hasframe\").getBoolean();\n\n valid = true;\n }", "@Override\n\tpublic void validate() {\n\t\tsuper.validate();\n\t}", "@Override\r\n\tpublic void vali...
[ "0.68911755", "0.68278253", "0.6612528", "0.65568024", "0.65454775", "0.64583683", "0.64498234", "0.6442942", "0.6416669", "0.64146435", "0.64007294", "0.630677", "0.62715906", "0.62715906", "0.6257582", "0.6256473", "0.6238839", "0.6238839", "0.6238839", "0.6208941", "0.6204...
0.0
-1
Register listener for MBean registration/unregistration
@Override public Set<ObjectName> doInBackground() { Register listener for MBean registration/unregistration // try { getMBeanServerConnection() .addNotificationListener(MBeanServerDelegate.DELEGATE_NAME, MBeansTab.this, null, null); } catch (InstanceNotFoundException e) { // Should never happen because the MBeanServerDelegate // is always present in any standard MBeanServer // if (JConsole.isDebug()) { e.printStackTrace(); } } catch (IOException e) { if (JConsole.isDebug()) { e.printStackTrace(); } vmPanel.getProxyClient().markAsDead(); return null; } // Retrieve MBeans from MBeanServer // Set<ObjectName> mbeans = null; try { mbeans = getMBeanServerConnection().queryNames(null, null); } catch (IOException e) { if (JConsole.isDebug()) { e.printStackTrace(); } vmPanel.getProxyClient().markAsDead(); return null; } return mbeans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void registerListeners();", "private void createMBeanNotificationListener(ObjectName mBeanName, NotificationListener listener) {\n log.debug(\"Adding notification listener for JMXClient \" + url.getURLPath());\n try {\n mbsc.addNotificationListener(mBeanName, listener, null, null);\n } catch (Insta...
[ "0.66832024", "0.6650512", "0.6593249", "0.63144296", "0.6246857", "0.6100858", "0.6068028", "0.6013596", "0.6006433", "0.5963576", "0.59157956", "0.5903877", "0.58935004", "0.58886063", "0.58854115", "0.58775777", "0.58603245", "0.5839592", "0.5814793", "0.58117527", "0.5796...
0.5598559
36
Ping the connection to see if it is still alive. At some point the ProxyClient class should centralize the connection aliveness monitoring and no longer rely on the custom tabs to ping the connections.
@Override public void update() { Ping the connection to see if it is still alive. At // some point the ProxyClient class should centralize // the connection aliveness monitoring and no longer // rely on the custom tabs to ping the connections. // try { getMBeanServerConnection().getDefaultDomain(); } catch (IOException ex) { vmPanel.getProxyClient().markAsDead(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean ping() throws CallError, InterruptedException {\n return (Boolean)service.call(\"ping\").get();\n }", "protected void ping() {\n\t\tpingCount ++;\n\t\tif(pingCount > 5) {\n\t\t\tlog.debug(\"pingCount is exceed, so close this connection.\");\n\t\t\tclose();\n\t\t\treturn;\n\t\t}\n\t\tsend...
[ "0.6522291", "0.6423118", "0.636203", "0.62654716", "0.61783093", "0.6164515", "0.59446526", "0.59213793", "0.5917195", "0.5859219", "0.5847075", "0.5834143", "0.5827577", "0.5820808", "0.5811301", "0.5808533", "0.5793275", "0.5788696", "0.5781533", "0.5772496", "0.57380915",...
0.7345656
0
set up the split pane with the MBean tree and MBean sheet panels
private void setupTab() { setLayout(new BorderLayout()); JSplitPane mainSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT); mainSplit.setDividerLocation(160); mainSplit.setBorder(BorderFactory.createEmptyBorder()); // set up the MBean tree panel (left pane) tree = new XTree(this); tree.setCellRenderer(new XTreeRenderer()); tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); tree.addTreeSelectionListener(this); tree.addTreeWillExpandListener(this); tree.addMouseListener(ml); JScrollPane theScrollPane = new JScrollPane(tree, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); JPanel treePanel = new JPanel(new BorderLayout()); treePanel.add(theScrollPane, BorderLayout.CENTER); mainSplit.add(treePanel, JSplitPane.LEFT, 0); // set up the MBean sheet panel (right pane) viewer = new XDataViewer(this); sheet = new XSheet(this); mainSplit.add(sheet, JSplitPane.RIGHT, 0); add(mainSplit); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initPane() {\n\t\tContainer localContainer = getContentPane();\n\t\tlocalContainer.setLayout(new BorderLayout());\n\t\t\n\t\tsplitpane_left_top.setBorder(BorderFactory.createTitledBorder(\"Training Data\"));\n\t\tsplitpane_left_bottom.setBorder(BorderFactory.createTitledBorder(\"Tree View\"));\n\t\tsp...
[ "0.73780185", "0.72181267", "0.70267993", "0.7024488", "0.68944865", "0.68267196", "0.6825124", "0.67861456", "0.67246217", "0.6721392", "0.671868", "0.6667367", "0.66375256", "0.6622511", "0.65946615", "0.6539102", "0.65093553", "0.65033823", "0.64687407", "0.64640844", "0.6...
0.8465644
0
/ notification listener: handleNotification
public void handleNotification(final Notification notification, Object handback) { EventQueue.invokeLater(new Runnable() { public void run() { if (notification instanceof MBeanServerNotification) { ObjectName mbean = ((MBeanServerNotification) notification).getMBeanName(); if (notification.getType().equals(MBeanServerNotification.REGISTRATION_NOTIFICATION)) { tree.addMBeanToView(mbean); } else if (notification.getType().equals(MBeanServerNotification.UNREGISTRATION_NOTIFICATION)) { tree.removeMBeanFromView(mbean); } } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void notificationReceived(Notification notification);", "@Override\n public void handleNotification(Notification ntfctn, Object o) {\n\n logger.debug(\"Received notification \" + ntfctn);\n\n discover();\n\n }", "public void handleNotification(Notification notification)\n {\n rece...
[ "0.8407388", "0.74283636", "0.7408197", "0.73738647", "0.7355454", "0.73250836", "0.7283301", "0.72688335", "0.7249105", "0.7162415", "0.7122007", "0.7117959", "0.7074935", "0.70583904", "0.7050058", "0.7016916", "0.69867736", "0.68940985", "0.6820351", "0.6815526", "0.679459...
0.698426
17
/ property change listener: propertyChange
public void propertyChange(PropertyChangeEvent evt) { if (JConsoleContext.CONNECTION_STATE_PROPERTY.equals(evt.getPropertyName())) { boolean connected = (Boolean) evt.getNewValue(); if (connected) { buildMBeanServerView(); } else { sheet.dispose(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\r\n\t}", "@Override\n \tpublic void propertyChange(PropertyChange...
[ "0.84357685", "0.8410747", "0.8410747", "0.8385474", "0.8343974", "0.8314938", "0.83047014", "0.8188567", "0.79902107", "0.7931342", "0.7841269", "0.77489847", "0.7730267", "0.7724207", "0.7700965", "0.7698504", "0.7681836", "0.76622885", "0.764269", "0.74898624", "0.74854356...
0.0
-1
/ tree selection listener: valueChanged
public void valueChanged(TreeSelectionEvent e) { DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); sheet.displayNode(node); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void valueChanged (TreeSelectionEvent event)\n {\n updateSelection();\n }", "@Override\r\n public void valueChanged(TreeSelectionEvent e) {\n }", "public void valueChanged(TreeSelectionEvent e) {\n\t}", "@Override\n public void valueChanged(TreeSelectionEv...
[ "0.8790619", "0.8441967", "0.8407094", "0.8252554", "0.81498706", "0.81144375", "0.8080968", "0.78521454", "0.77540183", "0.77135414", "0.75699687", "0.7548815", "0.75450295", "0.74889654", "0.7380759", "0.73533934", "0.734021", "0.7322183", "0.7292364", "0.7284681", "0.72730...
0.81274253
5
/ tree will expand listener: treeWillExpand
public void treeWillExpand(TreeExpansionEvent e) throws ExpandVetoException { TreePath path = e.getPath(); if (!tree.hasBeenExpanded(path)) { DefaultMutableTreeNode node = (DefaultMutableTreeNode) path.getLastPathComponent(); if (sheet.isMBeanNode(node) && !tree.hasMetadataNodes(node)) { tree.addMetadataNodes(node); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void expandTree() {\n tree.expand();\n }", "private TreeWillExpandListener createTreeWillExpandListener() {\n\t\treturn new TreeWillExpandListener() {\n\t\t\tpublic void treeWillCollapse(TreeExpansionEvent evt)\n\t\t\t\t\tthrows ExpandVetoException {\n\t\t\t\tDefaultMutableTreeNode node = (DefaultMut...
[ "0.7745738", "0.76037914", "0.75396335", "0.74562573", "0.7216393", "0.7164022", "0.71185493", "0.7095153", "0.6952269", "0.67677873", "0.6749441", "0.657456", "0.65324175", "0.65290236", "0.64670825", "0.6416053", "0.6389262", "0.63719875", "0.6366824", "0.6357331", "0.63573...
0.7679036
1
/ tree will expand listener: treeWillCollapse
public void treeWillCollapse(TreeExpansionEvent e) throws ExpandVetoException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void treeWillCollapse(TreeExpansionEvent e) {\n saySomething(\"Tree-will-collapse event detected\", e);\n }", "@Override\n\t\t\t\tpublic void treeCollapsed(TreeExpansionEvent arg0) {\n\t\t\t\t}", "@Override\n\t\t\tpublic void treeExpanded(TreeExpansionEvent event) {\n\t\t\t\t// fireTableDataChan...
[ "0.7862558", "0.7797092", "0.7503156", "0.7381973", "0.73527056", "0.7344288", "0.72781855", "0.7203036", "0.68560934", "0.6786354", "0.6733394", "0.6588772", "0.6545156", "0.6544458", "0.65341306", "0.6516874", "0.65065914", "0.64889073", "0.6475658", "0.64225006", "0.641984...
0.7618243
2
TODO Autogenerated method stub
@Override public boolean contains(Rectangle2D arg0) { 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 boolean contains(double arg0, double arg1, double arg2, double arg3) { 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 Rectangle getBounds() { return new Rectangle(screen_x, screen_y, pinWidth, pinWidth); }
{ "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 Rectangle2D getBounds2D() { 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
TODO Autogenerated method stub
@Override public PathIterator getPathIterator(AffineTransform arg0) { 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
TODO Autogenerated method stub
@Override public PathIterator getPathIterator(AffineTransform arg0, double arg1) { 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
TODO Autogenerated method stub
@Override public boolean intersects(Rectangle2D arg0) { 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 boolean intersects(double arg0, double arg1, double arg2, double arg3) { 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
Telefone celular do cliente
@ApiModelProperty(required = true, value = "Telefone celular do cliente") @JsonProperty("mobile") public String getMobile() { return mobile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tocarTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" está tocando!\");\n notificarTodos();\n }", "public void atenderTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" atendido!\");\n notificarTodos();\n }", "private void atualiza...
[ "0.77789676", "0.708051", "0.64222705", "0.63119704", "0.63085765", "0.6270152", "0.6246798", "0.6242941", "0.62291104", "0.6203916", "0.61854464", "0.6158519", "0.6136545", "0.6118974", "0.6114485", "0.6109834", "0.6108032", "0.6092941", "0.6075674", "0.60612", "0.60612", ...
0.55373615
93
Telefone residencial do cliente
@ApiModelProperty(required = true, value = "Telefone residencial do cliente") @JsonProperty("home") public String getHome() { return home; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tocarTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" está tocando!\");\n notificarTodos();\n }", "java.lang.String getTelefon();", "public String getTelefone() {\n return telefone;\n }", "public String getTelefone() {\n\t\treturn telefone;\n\t}", "p...
[ "0.71744454", "0.6996243", "0.6958354", "0.6839051", "0.67344904", "0.6694547", "0.6380134", "0.6378449", "0.6355965", "0.63315433", "0.6274884", "0.6257647", "0.6252659", "0.6252659", "0.62155634", "0.6192717", "0.6189521", "0.6170305", "0.613307", "0.6102455", "0.60936666",...
0.0
-1
Telefone de trabalho do cliente
@ApiModelProperty(required = true, value = "Telefone de trabalho do cliente") @JsonProperty("office") public String getOffice() { return office; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tocarTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" está tocando!\");\n notificarTodos();\n }", "public String getTelefone() {\n return telefone;\n }", "public String getTelefone() {\n\t\treturn telefone;\n\t}", "public void atenderTelefone() {\n ...
[ "0.76667094", "0.72750264", "0.72115976", "0.703398", "0.6984771", "0.6748284", "0.66853863", "0.65826344", "0.65221715", "0.65221715", "0.651297", "0.6499878", "0.64671344", "0.6376039", "0.63275146", "0.6246856", "0.6246283", "0.6240215", "0.62276256", "0.62250054", "0.6222...
0.0
-1
checks if stack is empty
public boolean isEmpty() { if (length == 0) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn stack.isEmpty();\r\n\t}", "public boolean isEmpty() {\n \treturn stack.size() == 0;\n }", "public boolean stackEmpty() {\r\n\t\treturn (top == -1) ? true : false;\r\n\t }", "public boolean isEmpty() {return stackList.isEmpty();}", "public boolea...
[ "0.86205834", "0.86011016", "0.85845524", "0.85611725", "0.85191804", "0.8476551", "0.8437041", "0.84172183", "0.83527434", "0.83170617", "0.8305479", "0.8268317", "0.8267061", "0.8267061", "0.8260317", "0.82591677", "0.82481295", "0.82427764", "0.81997484", "0.81927556", "0....
0.0
-1
remove and return the top element
public T pop() { StackNode tempNode = peekNode(); if(length > 1) { lastNode = peekNode().getParent(); tempNode.setParent(null); length--; return (T) tempNode.getTData(); } else if(length == 1) { lastNode = new StackNode(); length--; return (T) tempNode.getTData(); } else { throw new IndexOutOfBoundsException("Your stack is empty!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeTop()\n {\n \tif(first!=null)\t\t\t\n \t{\n \t\tfirst=first.next;\n \t\tif(first!=null)\n \t\t\tfirst.prev=null;\n \t}\n }", "protected T removeBeginning() {\r\n\t\tif (!this.isEmpty()) {\r\n\t\t\tSNode<T> startNode = this.getHead().getPrev();\r\n\t\t\tthis.getHead().setPrev(st...
[ "0.7545013", "0.7349618", "0.7335131", "0.7292299", "0.72124255", "0.7165298", "0.7144624", "0.7107783", "0.709278", "0.70496726", "0.70044804", "0.69877774", "0.6984144", "0.6933679", "0.6923668", "0.69235694", "0.6923484", "0.6919333", "0.69118243", "0.691016", "0.68985534"...
0.0
-1
look at the top node without removing
public StackNode peekNode() { return lastNode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node top() {\r\n\t\treturn start;\r\n\t}", "public Node<T> getTopNode() {\n\t\treturn topNode;\n\t}", "private void TopView(NodeTopView root) { \n\t\t\tclass QueueObj { \n\t\t\t\tNodeTopView NodeTopView; \n\t\t\t\tint hd; \n\n\t\t\t\tQueueObj(NodeTopView NodeTopView, int hd) { \n\t\t\t\t\tthis.NodeTopVi...
[ "0.72753", "0.6902521", "0.6855259", "0.68328243", "0.6794497", "0.677893", "0.6734927", "0.66963315", "0.6685683", "0.66590977", "0.65896344", "0.6578328", "0.6546299", "0.6531895", "0.6497644", "0.64687246", "0.64548624", "0.6426659", "0.639707", "0.6382668", "0.63713944", ...
0.0
-1
look at the top element without removing
public T peek() { return (T) peekNode().getTData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int top() {\n return topElem;\n }", "public int top() { return 0; }", "public int topElement() {\n\t\tif(isEmpty()){\n\t\t\tthrow new AssertionError();\n\t\t}\n\t\telse {\n\t\t\treturn heap.get(0).element;\n\t\t\n\t\t}\n\t}", "public E peek(){\n\t\treturn top.element;\n\t}", "void ...
[ "0.6889561", "0.66392624", "0.6574659", "0.65692234", "0.65377915", "0.6506381", "0.6477635", "0.6476592", "0.6408169", "0.64002776", "0.6276411", "0.62306917", "0.6206019", "0.6199877", "0.6193394", "0.6193394", "0.61330354", "0.61236405", "0.61151385", "0.61005807", "0.6088...
0.0
-1
TODO Autogenerated method stub
@Override public void annotate(JCas arg0) throws AnalysisEngineProcessException { }
{ "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 Employee emp = new Employee("Harsh","Jaipur", LocalDate.of(1997, 12, 8), 100, 100000 ); emp.show(); /Student std = new Student(1, "Harsh","Jaipur", LocalDate.of(1997, 12, 8), 100); std.show(); Polymorphism
public static void main(String[] args) { Person p; System.out.println("----------------"); p= new Employee("Harsh","Jaipur", LocalDate.of(1997, 12, 8), 100, 100000); p.show(); System.out.println("----------------"); p= new Student(1, "Harsh","Jaipur", LocalDate.of(1997, 12, 8), 100); p.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void LessonInheritance() {\n Employee employee1 = new Employee();\n\n //Set Id , firstName and lastName of Employee from Person Class and BaseBO\n employee1.setId(13);\n employee1.setFirstName(\"Jordan(e)\");\n employee1.setLastName(\"Walker(e)\");\n\n //Pri...
[ "0.7153252", "0.71210814", "0.6827804", "0.681076", "0.6809306", "0.6569898", "0.6542944", "0.64718026", "0.635246", "0.63458276", "0.6328614", "0.6328614", "0.63012284", "0.62949634", "0.6273735", "0.62501794", "0.6237446", "0.62071085", "0.6206128", "0.6195971", "0.61894137...
0.6719995
5
Advantage of poly as we need only one method to show Employee,Student,Person as emp and stu are subclass of person.
static void operate(Person o){ o.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void LessonPolymorphism() {\n Employee empOne = new Employee(\"Bob\");\n Employee empTwo = new Employee(\"Linda\", \"Belcher\");\n System.out.println(empOne.getFirstName());\n System.out.println(empTwo.getFirstName() + \" \" + empTwo.getLastName());\n // run-time p...
[ "0.60660934", "0.5976141", "0.58953995", "0.58277804", "0.5546649", "0.5546107", "0.54490334", "0.54403883", "0.5414647", "0.53747857", "0.5374667", "0.5374667", "0.53315836", "0.5247731", "0.5210803", "0.51958674", "0.5152838", "0.5152772", "0.51493204", "0.5136909", "0.5136...
0.0
-1
System.out.println("TRANSFORM " + className);
private byte[] transform(byte[] classfileBuffer, String onlyMethod, String className) { ClassReader cr = new ClassReader(classfileBuffer); ClassWriter cw = new ClassWriter(cr, ClassWriter.COMPUTE_FRAMES); ClassAdapter profiler = new ProfileClassAdapter(cw, className); // ClassVisitor cv = new LogMethodClassVisitor(cw, className); cr.accept(profiler, 0); return cw.toByteArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Transform getTransform() {return transform;}", "public AffineTransform getTransform()\n/* */ {\n/* 194 */ return this.transform;\n/* */ }", "public String toString()\n\t{\n\t\treturn \"Base animation\";\n\t}", "@Override \n public String toString() {\n return getName() + \...
[ "0.5853609", "0.5606233", "0.5587068", "0.5464213", "0.5429277", "0.54157674", "0.53842837", "0.5380961", "0.5377257", "0.52698225", "0.52085716", "0.5201221", "0.5188436", "0.5170252", "0.5136503", "0.5135537", "0.51029927", "0.5100836", "0.5098184", "0.50881124", "0.506067"...
0.0
-1
method.addLocalVariable("__start", CtClass.longType); method.addLocalVariable("__stop", CtClass.longType); method.insertBefore(" __start = System.currentTimeMillis();"); method.insertAfter(" __stop = System.currentTimeMillis() __start;"); method.addLocalVariable("__start", CtClass.longType); method.addLocalVariable("__stop", CtClass.longType);
private void changeMethod(CtBehavior method) throws NotFoundException, CannotCompileException { // method.insertBefore(" __start = System.currentTimeMillis();"); // method.insertAfter(" __stop = System.currentTimeMillis() - // __start;"); // method.addLocalVariable("__start", CtClass.longType); // method.addLocalVariable("__stop", CtClass.longType); String longName = method.getDeclaringClass().getSimpleName() + "." + method.getName(); method.insertBefore("ProfileSession.opStart(\"" + longName + "\", $args);"); method.insertAfter("ProfileSession.opStop(\"" + longName + "\");", true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_1949() {\n this.field_1249 = System.nanoTime();\n }", "void takeBefore(){\n beforeTimeNs=System.nanoTime();\n }", "public static void startTimeMeasure() {\n \tstartTime = System.nanoTime();\n }", "public void setTimeInNs(long r1) {\n /*\n // Can...
[ "0.6320357", "0.60653317", "0.59308755", "0.5796102", "0.5691507", "0.5672769", "0.56481457", "0.55790454", "0.5501448", "0.5491386", "0.547683", "0.547582", "0.5470891", "0.54405904", "0.5437472", "0.54364187", "0.5433469", "0.5411764", "0.5393554", "0.53926915", "0.53788614...
0.6383563
0
Creates a new GameDataJPanel. When what's drawn is larger or smaller than the supplied width and height, the drawn image will stretch to meet the current container's size.
public GameDataJPanel(GameData gameData) { this.gameData = gameData; // Setting up the swing components; JPanel programTitlePanel = new JPanel(new FlowLayout()); JLabel title = new JLabel("Actively rendering graphics and Swing " + "Components!"); programTitlePanel.add(title); changeColor = new JButton("Change color"); changeColor.addActionListener(this); JPanel changeColorPanel = new JPanel(new FlowLayout()); changeColorPanel.add(changeColor); limitFps = new JButton("Unlimit FPS"); limitFps.addActionListener(this); JPanel fpsAndUpdatePanel = new JPanel(new FlowLayout()); fpsAndUpdatePanel.add(limitFps); JPanel holder = new JPanel(new GridLayout(2, 1)); holder.add(programTitlePanel); holder.add(changeColorPanel); this.setLayout(new BorderLayout()); this.add(BorderLayout.NORTH, holder); this.add(BorderLayout.SOUTH, fpsAndUpdatePanel); // Now set the JPanel's opaque, along with other Swing components // whose backgrounds we don't want shown, so we can see the // application's graphics underneath those components! // (Try commenting some out to see what would otherwise happen!) changeColorPanel.setOpaque(false); this.setOpaque(false); title.setOpaque(false); programTitlePanel.setOpaque(false); fpsAndUpdatePanel.setOpaque(false); holder.setOpaque(false); limitingFPS = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GamePanel(int width, int height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tthis.tileSize = 64;\n\n\t\tsetPreferredSize(new Dimension(width, height));\n\t\tsetFocusable(true);\n\t\tsetDoubleBuffered(true);\n\n\t\timg = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n\t\timgG2...
[ "0.645503", "0.6174674", "0.61267155", "0.61215585", "0.60640943", "0.5940505", "0.56944454", "0.5650408", "0.5543381", "0.5527421", "0.55037856", "0.542995", "0.5427556", "0.5380156", "0.5362844", "0.5353708", "0.5346767", "0.53465074", "0.53419566", "0.534192", "0.53371644"...
0.60257226
5
TODO: Fix maintaining aspect ratio
public void update(Bitmap bitmap) { bufferStrat = this.canvas.getBufferStrategy(); Graphics graphics = bufferStrat.getDrawGraphics(); graphics.drawImage(bitmap.getImage(), 0, 0, width * scale, height * scale, null); graphics.dispose(); bufferStrat.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAspectRatio(float aspectRatio) {\n this.aspectRatio = aspectRatio;\n// float radiusX=radius/aspectRatio, radiusY=radius*aspectRatio;\n }", "public void setKeepAspectRatio(boolean keepAspect);", "@Override // com.master.cameralibrary.CameraViewImpl\n public AspectR...
[ "0.70048106", "0.69990337", "0.68064594", "0.67700344", "0.6760389", "0.66500777", "0.66416335", "0.65397704", "0.6497695", "0.6495487", "0.63865405", "0.63526374", "0.6272956", "0.6270851", "0.61926496", "0.6190802", "0.61496", "0.6138704", "0.60845196", "0.60687715", "0.602...
0.0
-1
Decide if response is supported by this strategy.
default boolean supports(final AuthenticationResponse response) { if (response != null) { LOGGER.debug("Authentication response [{}] is supported by password policy handling strategy [{}]", response, getClass().getSimpleName()); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isResponse(){\n return true;\n }", "boolean hasGenericResponse();", "private boolean responseAvailable() {\n return (responseBody != null) || (responseStream != null);\n }", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse...
[ "0.66443425", "0.64049786", "0.6327416", "0.6252401", "0.6252401", "0.6252401", "0.6252401", "0.6252401", "0.6252401", "0.6252401", "0.6252401", "0.6252401", "0.6215001", "0.61480343", "0.60704064", "0.6031045", "0.60145336", "0.60136545", "0.59983397", "0.5992304", "0.594672...
0.6763733
0
usage: / [ [ ]]
@Override protected boolean perform(final CommandSender sender, final Command command, final String label, final List<String> args, final Region region) { String owner = RegionExecutor.parse(args, 0, "<Owner>", sender); if (owner == null) return false; if (region.owners.contains(owner)) { Main.courier.send(sender, "promote-already", owner, RegionExecutor.formatName(region), RegionExecutor.formatWorld(region)); return true; } owner = Bukkit.getOfflinePlayer(owner).getName(); region.owners.add(owner); this.catalog.repository.saveRegion(region, false); Main.courier.send(sender, "promote", owner, RegionExecutor.formatName(region), RegionExecutor.formatWorld(region)); final Player added = Bukkit.getServer().getPlayerExact(owner); if (region.active && added != null) Main.courier.send(added, "promote-notify", sender.getName(), RegionExecutor.formatName(region), RegionExecutor.formatWorld(region)); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tSystem.out.println(bb(\"{{}\"));\n\t\tSystem.out.println(bb(\"[[]\"));\n\t\tSystem.out.println(bb(\"({}[])\"));\n\t}", "public static void main(String[] args) {\n\t\tList<?>[] list = new ArrayList<?>[6];\n\t}", "public static void main(String[] args) {\n\n S...
[ "0.594408", "0.53911364", "0.53637487", "0.52456826", "0.5222029", "0.5108611", "0.5054018", "0.50005454", "0.4953553", "0.49429947", "0.48625648", "0.48423997", "0.48235714", "0.4820051", "0.4793678", "0.47671723", "0.4759232", "0.47512123", "0.47317153", "0.47270894", "0.47...
0.0
-1
/ access modifiers changed from: private
public void n() { this.f80658c.a(new f() { public void a(Object obj, boolean z) { p unused = m.this.f80658c = (p) obj; } }, "__ag_of"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104...
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.60593...
0.0
-1
/ access modifiers changed from: private
public void q() { List<String> b2 = this.f80657b.b(); if (b2 != null) { this.l = b2; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104...
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.60593...
0.0
-1
/ access modifiers changed from: private
public void h() { long currentTimeMillis = System.currentTimeMillis(); this.m.sendEmptyMessageDelayed(48, q.c(currentTimeMillis)); this.m.sendEmptyMessageDelayed(49, q.d(currentTimeMillis)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104...
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.60593...
0.0
-1
/ access modifiers changed from: private
public void l() { SharedPreferences a2 = ba.a(k); this.f80660e = a2.getBoolean("main_fest_mode", false); this.f80661f = a2.getLong("main_fest_timestamp", 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104...
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.60593...
0.0
-1
/ access modifiers changed from: private
public void m() { for (Map.Entry key : this.f80656a.a().entrySet()) { List list = (List) key.getKey(); if (!this.l.contains(list)) { this.l.add(d.a(list)); } } if (this.l.size() > 0) { this.f80657b.a(new f(), this.l); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104...
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.60593...
0.0
-1
/ access modifiers changed from: private
public void o() { try { if (this.f80656a.a().size() > 0) { this.f80657b.c(new f() { public void a(Object obj, boolean z) { if (obj instanceof String) { m.this.f80656a.d(); } } }, this.f80656a.a()); } if (this.f80658c.a().size() > 0) { this.f80657b.b(new f() { public void a(Object obj, boolean z) { if (obj instanceof String) { m.this.f80658c.b(); } } }, this.f80658c.a()); } if (this.l.size() > 0) { this.f80657b.a(new f(), this.l); } } catch (Throwable th) { by.b("converyMemoryToDataTable happen error: " + th.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104...
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.60593...
0.0
-1
/ access modifiers changed from: private
public void p() { try { if (this.f80656a.a().size() > 0) { this.f80657b.a((f) new f() { public void a(Object obj, boolean z) { } }, this.f80656a.a()); } if (this.f80658c.a().size() > 0) { this.f80657b.b(new f() { public void a(Object obj, boolean z) { if (obj instanceof String) { m.this.f80658c.b(); } } }, this.f80658c.a()); } if (this.l.size() > 0) { this.f80657b.a(new f(), this.l); } } catch (Throwable th) { by.b("convertMemoryToCacheTable happen error: " + th.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104...
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.60593...
0.0
-1
Create my location marker
public void initMapMarkers() { myMarkersCollection = new MapMarkersCollection(); MapMarkerBuilder myLocMarkerBuilder = new MapMarkerBuilder(); myLocMarkerBuilder.setMarkerId(MARKER_ID_MY_LOCATION); myLocMarkerBuilder.setIsAccuracyCircleSupported(true); myLocMarkerBuilder.setAccuracyCircleBaseColor(new FColorRGB(32/255f, 173/255f, 229/255f)); myLocMarkerBuilder.setBaseOrder(-206000); myLocMarkerBuilder.setIsHidden(true); Bitmap myLocationBitmap = OsmandResources.getBitmap("map_pedestrian_location"); if (myLocationBitmap != null) { myLocMarkerBuilder.setPinIcon(SwigUtilities.createSkBitmapARGB888With( myLocationBitmap.getWidth(), myLocationBitmap.getHeight(), SampleUtils.getBitmapAsByteArray(myLocationBitmap))); } myLocationMarker = myLocMarkerBuilder.buildAndAddToCollection(myMarkersCollection); mapView.addSymbolsProvider(myMarkersCollection); // Create context pin marker contextPinMarkersCollection = new MapMarkersCollection(); MapMarkerBuilder contextMarkerBuilder = new MapMarkerBuilder(); contextMarkerBuilder.setMarkerId(MARKER_ID_CONTEXT_PIN); contextMarkerBuilder.setIsAccuracyCircleSupported(false); contextMarkerBuilder.setBaseOrder(-210000); contextMarkerBuilder.setIsHidden(true); Bitmap pinBitmap = OsmandResources.getBitmap("map_pin_context_menu"); if (pinBitmap != null) { contextMarkerBuilder.setPinIcon(SwigUtilities.createSkBitmapARGB888With( pinBitmap.getWidth(), pinBitmap.getHeight(), SampleUtils.getBitmapAsByteArray(pinBitmap))); contextMarkerBuilder.setPinIconVerticalAlignment(MapMarker.PinIconVerticalAlignment.Top); contextMarkerBuilder.setPinIconHorisontalAlignment(MapMarker.PinIconHorisontalAlignment.CenterHorizontal); } contextPinMarker = contextMarkerBuilder.buildAndAddToCollection(contextPinMarkersCollection); mapView.addSymbolsProvider(contextPinMarkersCollection); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createMarker()\n {\n LocationMarker layoutLocationMarker = new LocationMarker(\n fLon.get(fLon.size()-1),\n fLat.get(fLat.size()-1),\n getExampleView()\n\n );\n\n finalLon = fLon.get(fLon.size()-1);\n finalLat = fLat.get(fLat....
[ "0.80976343", "0.7814771", "0.71024084", "0.7094355", "0.7047824", "0.7037042", "0.69868714", "0.69708914", "0.69266194", "0.69211483", "0.69054985", "0.69044816", "0.6883242", "0.6798756", "0.6781235", "0.6750478", "0.66908693", "0.66906977", "0.66830915", "0.66564304", "0.6...
0.62654275
44
Creates new form UserEmitirLicencia
public UserEmitirLicencia() { //Inicializacion de la ventana ImageIcon logo = new ImageIcon("src/res/drawable/sfc_logo.jpg"); Image icon = logo.getImage(); this.setIconImage(icon); initComponents(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); double width = screenSize.getWidth()/2; double height = screenSize.getHeight()/2; this.setLocation((int)width-this.getWidth()/2,(int)height-this.getHeight()/2); this.setLocationRelativeTo(null); radioGroup.add(radioA); radioGroup.add(radioB); radioGroup.add(radioC); radioGroup.add(radioD); radioGroup.add(radioE); radioGroup.add(radioF); radioGroup.add(radioG); txtAreaClaseLicencia.setBackground(Color.LIGHT_GRAY); tableTitulares.setRowSelectionAllowed(true); tableTitulares.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); tableTitulares.getTableHeader().setReorderingAllowed(false); tableTitulares.getSelectionModel().addListSelectionListener(new ListSelectionListener(){ public void valueChanged(ListSelectionEvent event) { if(tableTitulares.getSelectedRow() == -1) return; //btnEmitirLicencia.setEnabled(false); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd/MM/yyyy"); txtFiltro.setText(""); txtFiltro.setEnabled(false); btnAplicarFiltro.setEnabled(false); btnLimpiarFiltro.setEnabled(true); radioA.setEnabled(true); radioB.setEnabled(true); radioC.setEnabled(true); radioD.setEnabled(true); radioE.setEnabled(true); radioF.setEnabled(true); radioG.setEnabled(true); radioGroup.clearSelection(); txtAreaClaseLicencia.setText(""); Titular t = titulares.get(tableTitulares.getSelectedRow()); labelNombre.setText("Nombre: "+t.getNombre()); labelApellido.setText("Apellido: "+t.getApellido()); labelTipoNroDocumento.setText("Documento: "+t.getTipoDocumento().toString()+" "+t.getCodigoDocumento()); labelDomicilio.setText("Domicilio: "+t.getDomicilio()); labelFechaNacimiento.setText("Fecha de nacimiento: "+simpleDateFormat.format(t.getFechaNacimiento())); String factor; if(t.isFactor()) factor="+"; else factor="-"; labelGrupoFactorSanguineo.setText("Grupo Sanguineo: "+t.getGrupoSanguineo().toString()+" "+factor); String donante; if(t.isDonanteOrganos()) donante="Donante de Órganos: SI"; else donante="Donante de Órganos: NO"; labelDonanteOrganos.setText(donante); lblObservaciones.setText("Observaciones: "+t.getObservaciones()); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RenovarLicencia() {\n //borrar todo cuando este listo el metodo de abajo\n initComponents();\n setTitle(\"Renovar Licencia\");\n setLocationRelativeTo(null);\n //se pide al gestor y se muestra por pantalla los datos del administrativo registrado\n txt_user.setText(G...
[ "0.65295434", "0.6292501", "0.61832136", "0.5693625", "0.5649373", "0.5616681", "0.55986005", "0.5573216", "0.5563004", "0.55428797", "0.55081636", "0.54571605", "0.5422036", "0.5405338", "0.5404129", "0.5397651", "0.53787017", "0.53703076", "0.53700215", "0.5358131", "0.5352...
0.67060494
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { radioGroup = new javax.swing.ButtonGroup(); lblSantaFe = new javax.swing.JLabel(); pnlTitulo = new javax.swing.JPanel(); lblEmitirLicencia = new javax.swing.JLabel(); lblSubtitulo = new javax.swing.JLabel(); pnlTitulares = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); tableTitulares = new javax.swing.JTable(); txtFiltro = new javax.swing.JTextField(); btnFiltroNombre = new javax.swing.JButton(); btnFiltroApellido = new javax.swing.JButton(); btnFiltroDocumento = new javax.swing.JButton(); btnAplicarFiltro = new javax.swing.JButton(); btnLimpiarFiltro = new javax.swing.JButton(); lblBuscarPor = new javax.swing.JLabel(); pnlClaseLicencia = new javax.swing.JPanel(); jScrollPane3 = new javax.swing.JScrollPane(); txtAreaClaseLicencia = new javax.swing.JTextArea(); pnlClases = new javax.swing.JPanel(); radioE = new javax.swing.JRadioButton(); radioG = new javax.swing.JRadioButton(); radioB = new javax.swing.JRadioButton(); radioF = new javax.swing.JRadioButton(); radioA = new javax.swing.JRadioButton(); radioC = new javax.swing.JRadioButton(); radioD = new javax.swing.JRadioButton(); lblDescripcionClase = new javax.swing.JLabel(); btnEmitirLicencia = new javax.swing.JButton(); pnlDatosTitular = new javax.swing.JPanel(); labelNombre = new javax.swing.JLabel(); labelApellido = new javax.swing.JLabel(); labelTipoNroDocumento = new javax.swing.JLabel(); labelDomicilio = new javax.swing.JLabel(); labelFechaNacimiento = new javax.swing.JLabel(); labelGrupoFactorSanguineo = new javax.swing.JLabel(); labelDonanteOrganos = new javax.swing.JLabel(); lblObservaciones = new javax.swing.JLabel(); btnCancelar = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("GLC | SFC - Emitir Licencias"); setResizable(false); lblSantaFe.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); lblSantaFe.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/drawable/logo-santafe.png"))); // NOI18N lblSantaFe.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); lblEmitirLicencia.setFont(new java.awt.Font("Arial", 1, 25)); // NOI18N lblEmitirLicencia.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); lblEmitirLicencia.setText("EMITIR UNA LICENCIA"); lblSubtitulo.setFont(new java.awt.Font("Dialog", 0, 14)); // NOI18N lblSubtitulo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); lblSubtitulo.setText("A continuación, seleccione el titular y el tipo de licencia que desea emitir."); javax.swing.GroupLayout pnlTituloLayout = new javax.swing.GroupLayout(pnlTitulo); pnlTitulo.setLayout(pnlTituloLayout); pnlTituloLayout.setHorizontalGroup( pnlTituloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlTituloLayout.createSequentialGroup() .addContainerGap() .addGroup(pnlTituloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lblSubtitulo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(lblEmitirLicencia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); pnlTituloLayout.setVerticalGroup( pnlTituloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlTituloLayout.createSequentialGroup() .addGap(16, 16, 16) .addComponent(lblEmitirLicencia, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(lblSubtitulo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pnlTitulares.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Seleccione el Titular", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N tableTitulares.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Nombre", "Apellido", "Tipo Documento", "N° Documento" } ) { Class[] types = new Class [] { java.lang.String.class, java.lang.String.class, java.lang.Object.class, java.lang.String.class }; boolean[] canEdit = new boolean [] { false, false, false, false }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); tableTitulares.setRowHeight(20); jScrollPane1.setViewportView(tableTitulares); txtFiltro.setFont(txtFiltro.getFont().deriveFont(txtFiltro.getFont().getSize()+4f)); txtFiltro.setEnabled(false); btnFiltroNombre.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N btnFiltroNombre.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/icons/filter_mini.png"))); // NOI18N btnFiltroNombre.setText("Nombre"); btnFiltroNombre.setToolTipText("Filtre a los contribuyentes por su nombre."); btnFiltroNombre.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnFiltroNombreActionPerformed(evt); } }); btnFiltroApellido.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N btnFiltroApellido.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/icons/filter_mini.png"))); // NOI18N btnFiltroApellido.setText("Apellido"); btnFiltroApellido.setToolTipText("Filtre a los contribuyentes por su apellido."); btnFiltroApellido.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnFiltroApellidoActionPerformed(evt); } }); btnFiltroDocumento.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N btnFiltroDocumento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/icons/filter_mini.png"))); // NOI18N btnFiltroDocumento.setText("Documento"); btnFiltroDocumento.setToolTipText("Filtre a los contribuyentes por su N° de documento."); btnFiltroDocumento.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnFiltroDocumentoActionPerformed(evt); } }); btnAplicarFiltro.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/icons/search_mini.png"))); // NOI18N btnAplicarFiltro.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED)); btnAplicarFiltro.setEnabled(false); btnAplicarFiltro.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAplicarFiltroActionPerformed(evt); } }); btnLimpiarFiltro.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/icons/cancel_mini.png"))); // NOI18N btnLimpiarFiltro.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED)); btnLimpiarFiltro.setEnabled(false); btnLimpiarFiltro.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnLimpiarFiltroActionPerformed(evt); } }); lblBuscarPor.setForeground(java.awt.Color.gray); lblBuscarPor.setText("Buscar por..."); javax.swing.GroupLayout pnlTitularesLayout = new javax.swing.GroupLayout(pnlTitulares); pnlTitulares.setLayout(pnlTitularesLayout); pnlTitularesLayout.setHorizontalGroup( pnlTitularesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlTitularesLayout.createSequentialGroup() .addContainerGap() .addGroup(pnlTitularesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlTitularesLayout.createSequentialGroup() .addComponent(txtFiltro) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnAplicarFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnLimpiarFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlTitularesLayout.createSequentialGroup() .addComponent(lblBuscarPor) .addGap(0, 434, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlTitularesLayout.createSequentialGroup() .addComponent(btnFiltroNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(28, 28, 28) .addComponent(btnFiltroApellido, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnFiltroDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); pnlTitularesLayout.setVerticalGroup( pnlTitularesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlTitularesLayout.createSequentialGroup() .addComponent(lblBuscarPor) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(pnlTitularesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnFiltroDocumento) .addComponent(btnFiltroNombre) .addComponent(btnFiltroApellido)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(pnlTitularesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(txtFiltro) .addComponent(btnAplicarFiltro, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnLimpiarFiltro, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) .addContainerGap()) ); pnlClaseLicencia.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Seleccione la Clase", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N txtAreaClaseLicencia.setEditable(false); txtAreaClaseLicencia.setColumns(20); txtAreaClaseLicencia.setFont(txtAreaClaseLicencia.getFont().deriveFont(txtAreaClaseLicencia.getFont().getStyle() | java.awt.Font.BOLD, txtAreaClaseLicencia.getFont().getSize()-1)); txtAreaClaseLicencia.setRows(3); jScrollPane3.setViewportView(txtAreaClaseLicencia); radioE.setFont(radioE.getFont().deriveFont(radioE.getFont().getStyle() | java.awt.Font.BOLD, radioE.getFont().getSize()+8)); radioE.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.darcula.selection.color2")); radioE.setText("E"); radioE.setEnabled(false); radioE.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { radioEActionPerformed(evt); } }); radioG.setFont(radioG.getFont().deriveFont(radioG.getFont().getStyle() | java.awt.Font.BOLD, radioG.getFont().getSize()+8)); radioG.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.darcula.selection.color2")); radioG.setText("G"); radioG.setEnabled(false); radioG.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { radioGActionPerformed(evt); } }); radioB.setFont(radioB.getFont().deriveFont(radioB.getFont().getStyle() | java.awt.Font.BOLD, radioB.getFont().getSize()+8)); radioB.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.darcula.selection.color2")); radioB.setText("B"); radioB.setEnabled(false); radioB.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { radioBActionPerformed(evt); } }); radioF.setFont(radioF.getFont().deriveFont(radioF.getFont().getStyle() | java.awt.Font.BOLD, radioF.getFont().getSize()+8)); radioF.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.darcula.selection.color2")); radioF.setText("F"); radioF.setEnabled(false); radioF.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { radioFActionPerformed(evt); } }); radioA.setFont(radioA.getFont().deriveFont(radioA.getFont().getStyle() | java.awt.Font.BOLD, radioA.getFont().getSize()+8)); radioA.setForeground(new java.awt.Color(35, 48, 69)); radioA.setText("A"); radioA.setEnabled(false); radioA.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { radioAActionPerformed(evt); } }); radioC.setFont(radioC.getFont().deriveFont(radioC.getFont().getStyle() | java.awt.Font.BOLD, radioC.getFont().getSize()+8)); radioC.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.darcula.selection.color2")); radioC.setText("C"); radioC.setEnabled(false); radioC.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { radioCActionPerformed(evt); } }); radioD.setFont(radioD.getFont().deriveFont(radioD.getFont().getStyle() | java.awt.Font.BOLD, radioD.getFont().getSize()+8)); radioD.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.darcula.selection.color2")); radioD.setText("D"); radioD.setEnabled(false); radioD.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { radioDActionPerformed(evt); } }); javax.swing.GroupLayout pnlClasesLayout = new javax.swing.GroupLayout(pnlClases); pnlClases.setLayout(pnlClasesLayout); pnlClasesLayout.setHorizontalGroup( pnlClasesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlClasesLayout.createSequentialGroup() .addComponent(radioA) .addGap(18, 18, 18) .addComponent(radioB, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(radioC, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(radioD, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(radioE, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(radioF, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(radioG) .addGap(0, 0, Short.MAX_VALUE)) ); pnlClasesLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {radioA, radioB, radioC, radioD, radioE, radioF, radioG}); pnlClasesLayout.setVerticalGroup( pnlClasesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlClasesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(radioA) .addComponent(radioB) .addComponent(radioC) .addComponent(radioD) .addComponent(radioE) .addComponent(radioF) .addComponent(radioG)) ); lblDescripcionClase.setFont(lblDescripcionClase.getFont().deriveFont(lblDescripcionClase.getFont().getStyle() & ~java.awt.Font.BOLD, lblDescripcionClase.getFont().getSize()-1)); lblDescripcionClase.setForeground(java.awt.Color.gray); lblDescripcionClase.setPreferredSize(new java.awt.Dimension(63, 16)); javax.swing.GroupLayout pnlClaseLicenciaLayout = new javax.swing.GroupLayout(pnlClaseLicencia); pnlClaseLicencia.setLayout(pnlClaseLicenciaLayout); pnlClaseLicenciaLayout.setHorizontalGroup( pnlClaseLicenciaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlClaseLicenciaLayout.createSequentialGroup() .addContainerGap() .addGroup(pnlClaseLicenciaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lblDescripcionClase, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane3) .addComponent(pnlClases, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); pnlClaseLicenciaLayout.setVerticalGroup( pnlClaseLicenciaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlClaseLicenciaLayout.createSequentialGroup() .addComponent(pnlClases, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(lblDescripcionClase, javax.swing.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); btnEmitirLicencia.setFont(btnEmitirLicencia.getFont().deriveFont(btnEmitirLicencia.getFont().getSize()+2f)); btnEmitirLicencia.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/icons/save.png"))); // NOI18N btnEmitirLicencia.setText("Emitir Licencia"); btnEmitirLicencia.setEnabled(false); btnEmitirLicencia.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnEmitirLicenciaActionPerformed(evt); } }); pnlDatosTitular.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Datos del Titular", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N labelNombre.setFont(labelNombre.getFont().deriveFont(labelNombre.getFont().getStyle() & ~java.awt.Font.BOLD, labelNombre.getFont().getSize()-2)); labelNombre.setText(" "); labelApellido.setFont(labelApellido.getFont().deriveFont(labelApellido.getFont().getStyle() & ~java.awt.Font.BOLD, labelApellido.getFont().getSize()-2)); labelApellido.setText(" "); labelTipoNroDocumento.setFont(labelTipoNroDocumento.getFont().deriveFont(labelTipoNroDocumento.getFont().getStyle() & ~java.awt.Font.BOLD, labelTipoNroDocumento.getFont().getSize()-2)); labelTipoNroDocumento.setText(" "); labelDomicilio.setFont(labelDomicilio.getFont().deriveFont(labelDomicilio.getFont().getStyle() & ~java.awt.Font.BOLD, labelDomicilio.getFont().getSize()-2)); labelDomicilio.setText(" "); labelFechaNacimiento.setFont(labelFechaNacimiento.getFont().deriveFont(labelFechaNacimiento.getFont().getStyle() & ~java.awt.Font.BOLD, labelFechaNacimiento.getFont().getSize()-2)); labelFechaNacimiento.setText(" "); labelGrupoFactorSanguineo.setFont(labelGrupoFactorSanguineo.getFont().deriveFont(labelGrupoFactorSanguineo.getFont().getStyle() & ~java.awt.Font.BOLD, labelGrupoFactorSanguineo.getFont().getSize()-2)); labelGrupoFactorSanguineo.setText(" "); labelDonanteOrganos.setFont(labelDonanteOrganos.getFont().deriveFont(labelDonanteOrganos.getFont().getStyle() & ~java.awt.Font.BOLD, labelDonanteOrganos.getFont().getSize()-2)); labelDonanteOrganos.setText(" "); lblObservaciones.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N lblObservaciones.setVerticalAlignment(javax.swing.SwingConstants.TOP); javax.swing.GroupLayout pnlDatosTitularLayout = new javax.swing.GroupLayout(pnlDatosTitular); pnlDatosTitular.setLayout(pnlDatosTitularLayout); pnlDatosTitularLayout.setHorizontalGroup( pnlDatosTitularLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlDatosTitularLayout.createSequentialGroup() .addContainerGap() .addGroup(pnlDatosTitularLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(labelTipoNroDocumento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(labelApellido, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(labelDomicilio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(labelFechaNacimiento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(labelGrupoFactorSanguineo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(labelDonanteOrganos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(pnlDatosTitularLayout.createSequentialGroup() .addComponent(labelNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) .addComponent(lblObservaciones, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); pnlDatosTitularLayout.setVerticalGroup( pnlDatosTitularLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlDatosTitularLayout.createSequentialGroup() .addComponent(labelNombre) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(labelApellido) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(labelTipoNroDocumento) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(labelDomicilio) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(labelFechaNacimiento) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(labelGrupoFactorSanguineo) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(labelDonanteOrganos) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(lblObservaciones, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 6, Short.MAX_VALUE)) ); btnCancelar.setFont(btnCancelar.getFont().deriveFont(btnCancelar.getFont().getSize()+2f)); btnCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/icons/cancel.png"))); // NOI18N btnCancelar.setText("Cancelar"); btnCancelar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnCancelarActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(pnlTitulo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) .addComponent(lblSantaFe, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(layout.createSequentialGroup() .addComponent(btnCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnEmitirLicencia, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(pnlTitulares, 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.LEADING, false) .addComponent(pnlClaseLicencia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(pnlDatosTitular, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addGap(0, 9, Short.MAX_VALUE)))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(lblSantaFe, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0) .addComponent(pnlTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(pnlDatosTitular, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(pnlClaseLicencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(pnlTitulares, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnCancelar) .addComponent(btnEmitirLicencia)) .addGap(10, 10, 10)) ); 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.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
TODO Autogenerated method stub
@Override public boolean register(String email, String id, String pw) { return jdbcTemplate.update("insert into s_member values(?,?,?," + "'normal',sysdate)",email,id,pw)>0; }
{ "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 register(MemberDto mem) { return register(mem.getEmail(),mem.getName(),mem.getPw()); }
{ "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 login(String email, String pw) { return jdbcTemplate.query( "select * from s_member where email=? and pw=?", extractor,email,pw)!=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
TODO Autogenerated method stub
@Override public boolean login(MemberDto mem) { return login(mem.getEmail(),mem.getPw()); }
{ "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 MemberDto myInfo(String email) { return jdbcTemplate.query("select * from s_member where email=?", extractor,email); }
{ "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 delete(String email, String pw) { return jdbcTemplate.update("delete s_member where email=?,pw=?", email,pw)>0; }
{ "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 delete(MemberDto mem) { return delete(mem.getEmail(),mem.getPw()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public List<MemberDto> list() { return jdbcTemplate.query("select * from s_member", mapper); }
{ "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 overlapCheck(String email) { return select("email", email).size()==0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public List<MemberDto> select(String col,String keyword) { return jdbcTemplate.query("select * from s_member where "+col+"=?", mapper,keyword); }
{ "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 Set<String> emailList() { return new HashSet<String>(jdbcTemplate.query("select * from s_member", (rs,idx)->{return rs.getString("email");})); }
{ "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 Map<String, MemberDto> nameList() { Map<String, MemberDto> list = new HashMap<>(); for (String email : emailList()) { list.put(email, myInfo(email)); } return list; }
{ "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
list each calculation result which can merge with this type of result
public boolean isCompatible(CalcResult targetResults) { if (targetResults instanceof BoundsResult || targetResults == CalcResult.NULL_RESULT) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void aggregateResults()\n\t{\n\t\ttry {\n\t\t\tAggregateableEvaluation aggContNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(0));\n\t\t\tAggregateableEvaluation aggContSMO = new AggregateableEvaluation(this.evalSMOList.get(0));\n\t\t\tAggregateableEvaluation aggDonaNaive = new Aggregateable...
[ "0.67934626", "0.6618641", "0.6544018", "0.64243835", "0.63483876", "0.6308836", "0.6161013", "0.6153274", "0.6129737", "0.60887206", "0.5996882", "0.59237415", "0.58870184", "0.5716267", "0.5678678", "0.5657646", "0.56493026", "0.56466585", "0.56365275", "0.56297565", "0.562...
0.0
-1
Do some basic checks on the URI and name. Try to lookup the URI. See if the name is qualified.
private static String verifyXPathRoot(String schemaNS, String rootProp) throws XMPException { if (schemaNS == null || schemaNS.length() == 0) { throw new XMPException("Schema namespace URI is required", XMPError.BADSCHEMA); } if ((rootProp.charAt(0) == '?') || (rootProp.charAt(0) == '@')) { throw new XMPException("Top level name must not be a qualifier", XMPError.BADXPATH); } if (rootProp.indexOf('/') >= 0 || rootProp.indexOf('[') >= 0) { throw new XMPException("Top level name must be simple", XMPError.BADXPATH); } String prefix = XMPMetaFactory.getSchemaRegistry().getNamespacePrefix(schemaNS); if (prefix == null) { throw new XMPException("Unregistered schema namespace URI", XMPError.BADSCHEMA); } // Verify the various URI and prefix combinations. Initialize the // expanded XMPPath. int colonPos = rootProp.indexOf(':'); if (colonPos < 0) { // The propName is unqualified, use the schemaURI and associated // prefix. verifySimpleXMLName(rootProp); // Verify the part before any colon return prefix + rootProp; } else { // The propName is qualified. Make sure the prefix is legit. Use the associated // URI and // qualified name. // Verify the part before any colon verifySimpleXMLName(rootProp.substring(0, colonPos)); verifySimpleXMLName(rootProp.substring(colonPos)); prefix = rootProp.substring(0, colonPos + 1); String regPrefix = XMPMetaFactory.getSchemaRegistry().getNamespacePrefix(schemaNS); if (regPrefix == null) { throw new XMPException("Unknown schema namespace prefix", XMPError.BADSCHEMA); } if (!prefix.equals(regPrefix)) { throw new XMPException("Schema namespace URI and prefix mismatch", XMPError.BADSCHEMA); } return rootProp; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasUri();", "private void initialize(URI p_base, String p_uriSpec)\n throws MalformedURIException {\n \n String uriSpec = p_uriSpec;\n int uriSpecLen = (uriSpec != null) ? uriSpec.length() : 0;\n \n if (p_base == null && uriSpecLen == 0) {\n throw new Malf...
[ "0.66084146", "0.5936904", "0.5914554", "0.586109", "0.5844678", "0.58187443", "0.5811132", "0.576999", "0.5683028", "0.5629858", "0.56010085", "0.55975103", "0.5524592", "0.5516831", "0.54808366", "0.5477357", "0.54768324", "0.54545456", "0.54465", "0.5444912", "0.5429449", ...
0.0
-1
Create contents of the dialog.
private void createContents() { shell = new Shell(getParent(), getStyle()); shell.setSize(650, 300); shell.setText(getText()); shell.setLayout(new FormLayout()); lblSOName = new Label(shell, SWT.CENTER); lblSOName.setFont(SWTResourceManager.getFont("Segoe UI", 11, SWT.NORMAL)); FormData fd_lblSOName = new FormData(); fd_lblSOName.bottom = new FormAttachment(0, 20); fd_lblSOName.right = new FormAttachment(100, -2); fd_lblSOName.top = new FormAttachment(0, 2); fd_lblSOName.left = new FormAttachment(0, 2); lblSOName.setLayoutData(fd_lblSOName); lblSOName.setText(soName); tableParams = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL); tableParams.setFont(SWTResourceManager.getFont("Segoe UI", 11, SWT.NORMAL)); FormData fd_tableParams = new FormData(); fd_tableParams.bottom = new FormAttachment(100, -40); fd_tableParams.right = new FormAttachment(100, -2); fd_tableParams.top = new FormAttachment(0, 22); fd_tableParams.left = new FormAttachment(0, 2); tableParams.setLayoutData(fd_tableParams); tableParams.setHeaderVisible(true); tableParams.setLinesVisible(true); fillInTable(tableParams); tableParams.addControlListener(new ControlAdapter() { @Override public void controlResized(ControlEvent e) { Table table = (Table)e.getSource(); table.getColumn(0).setWidth((int)(table.getClientArea().width*nameSpace)); table.getColumn(1).setWidth((int)(table.getClientArea().width*valueSpace)); table.getColumn(2).setWidth((int)(table.getClientArea().width*hintSpace)); } }); tableParams.pack(); //paramName.pack(); //paramValue.pack(); final TableEditor editor = new TableEditor(tableParams); //The editor must have the same size as the cell and must //not be any smaller than 50 pixels. editor.horizontalAlignment = SWT.LEFT; editor.grabHorizontal = true; editor.minimumWidth = 50; // editing the second column tableParams.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { // Identify the selected row TableItem item = (TableItem) e.item; if (item == null) { return; } // The control that will be the editor must be a child of the Table IReplaceableParam<?> editedParam = (IReplaceableParam<?>)item.getData(DATA_VALUE_PARAM); if (editedParam != null) { // Clean up any previous editor control Control oldEditor = editor.getEditor(); if (oldEditor != null) { oldEditor.dispose(); } Control editControl = null; String cellText = item.getText(columnValueIndex); switch (editedParam.getType()) { case BOOLEAN: Combo cmb = new Combo(tableParams, SWT.READ_ONLY); String[] booleanItems = {Boolean.toString(true), Boolean.toString(false)}; cmb.setItems(booleanItems); cmb.select(1); if (Boolean.parseBoolean(cellText)) { cmb.select(0); } editControl = cmb; cmb.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent se) { Combo text = (Combo) editor.getEditor(); editor.getItem().setText(columnValueIndex, text.getText()); } }); break; case DATE: IReplaceableParam<LocalDateTime> calParam = (IReplaceableParam<LocalDateTime>)editedParam; LocalDateTime calToUse = calParam.getValue(); Composite dateAndTime = new Composite(tableParams, SWT.NONE); RowLayout rl = new RowLayout(); rl.wrap = false; dateAndTime.setLayout(rl); //Date cellDt; try { LocalDateTime locDT = LocalDateTime.parse(cellText, dtFmt); if (locDT != null) { calToUse = locDT; } /*cellDt = dateFmt.parse(cellText); if (cellDt != null) { calToUse.setTime(cellDt); }*/ } catch (DateTimeParseException e1) { log.error("widgetSelected ", e1); } DateTime datePicker = new DateTime(dateAndTime, SWT.DATE | SWT.MEDIUM | SWT.DROP_DOWN); datePicker.setData(DATA_VALUE_PARAM, calParam); DateTime timePicker = new DateTime(dateAndTime, SWT.TIME | SWT.LONG); timePicker.setData(DATA_VALUE_PARAM, calParam); // for the date picker the months are zero-based, the first month is 0 the last is 11 // for LocalDateTime the months range 1-12 datePicker.setDate(calToUse.getYear(), calToUse.getMonthValue() - 1, calToUse.getDayOfMonth()); timePicker.setTime(calToUse.getHour(), calToUse.getMinute(), calToUse.getSecond()); datePicker.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent se) { DateTime source = (DateTime)se.getSource(); IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM); if (calParam1 != null) { LocalDateTime currDt = calParam1.getValue(); // for the date picker the months are zero-based, the first month is 0 the last is 11 // for LocalDateTime the months range 1-12 calParam1.setValue(currDt.withYear(source.getYear()).withMonth(source.getMonth() + 1).withDayOfMonth(source.getDay())); String resultText = dtFmt.format(calParam1.getValue()); log.debug("Result Text " + resultText); editor.getItem().setText(columnValueIndex, resultText); } else { log.warn("widgetSelected param is null"); } } }); timePicker.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent se) { DateTime source = (DateTime)se.getSource(); IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM); if (calParam1 != null) { LocalDateTime currDt = calParam1.getValue(); calParam1.setValue(currDt.withHour(source.getHours()).withMinute(source.getMinutes()).withSecond(source.getSeconds())); String resultText = dtFmt.format(calParam1.getValue()); log.debug("Result Text " + resultText); editor.getItem().setText(columnValueIndex, resultText); } else { log.warn("widgetSelected param is null"); } } }); dateAndTime.layout(); editControl = dateAndTime; break; case INTEGER: Text intEditor = new Text(tableParams, SWT.NONE); intEditor.setText(item.getText(columnValueIndex)); intEditor.selectAll(); intEditor.addModifyListener(new ModifyListener() { @Override public void modifyText(ModifyEvent se) { Text text = (Text) editor.getEditor(); Integer resultInt = null; try { resultInt = Integer.parseInt(text.getText()); } catch (NumberFormatException nfe) { log.error("NFE ", nfe); } if (resultInt != null) { editor.getItem().setText(columnValueIndex, resultInt.toString()); } } }); editControl = intEditor; break; case STRING: default: Text newEditor = new Text(tableParams, SWT.NONE); newEditor.setText(item.getText(columnValueIndex)); newEditor.setFont(tableParams.getFont()); newEditor.selectAll(); newEditor.addModifyListener(new ModifyListener() { @Override public void modifyText(ModifyEvent se) { Text text = (Text) editor.getEditor(); editor.getItem().setText(columnValueIndex, text.getText()); } }); editControl = newEditor; break; } editControl.setFont(tableParams.getFont()); editControl.setFocus(); editor.setEditor(editControl, item, columnValueIndex); } } }); btnOK = new Button(shell, SWT.NONE); btnOK.setFont(SWTResourceManager.getFont("Segoe UI", 11, SWT.NORMAL)); FormData fd_btnOK = new FormData(); fd_btnOK.bottom = new FormAttachment(100, -7); fd_btnOK.right = new FormAttachment(40, 2); fd_btnOK.top = new FormAttachment(100, -35); fd_btnOK.left = new FormAttachment(15, 2); btnOK.setLayoutData(fd_btnOK); btnOK.setText("OK"); btnOK.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { result = new DialogResult<>(SWT.OK, getParamMap()); shell.close(); } }); shell.setDefaultButton(btnOK); btnCancel = new Button(shell, SWT.NONE); btnCancel.setFont(SWTResourceManager.getFont("Segoe UI", 11, SWT.NORMAL)); FormData fd_btnCancel = new FormData(); fd_btnCancel.bottom = new FormAttachment(100, -7); fd_btnCancel.left = new FormAttachment(60, -2); fd_btnCancel.top = new FormAttachment(100, -35); fd_btnCancel.right = new FormAttachment(85, -2); btnCancel.setLayoutData(fd_btnCancel); btnCancel.setText("Cancel"); btnCancel.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { result = new DialogResult<>(SWT.CANCEL, null); shell.close(); } }); tableParams.redraw(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\n\t\tshell.setSize(379, 234);\n\t\tshell.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tLabel dialogAccountHeader = new Label(shell, SWT.NONE);\n\t\tdialogAcc...
[ "0.7465564", "0.71213424", "0.70750844", "0.7056892", "0.7035284", "0.6982003", "0.6966167", "0.6853646", "0.68448454", "0.6811343", "0.68096405", "0.6801873", "0.67985934", "0.6798088", "0.679386", "0.6789257", "0.67799765", "0.6769032", "0.6748607", "0.67194223", "0.6717503...
0.6509662
44
Identify the selected row
@Override public void widgetSelected(SelectionEvent e) { TableItem item = (TableItem) e.item; if (item == null) { return; } // The control that will be the editor must be a child of the Table IReplaceableParam<?> editedParam = (IReplaceableParam<?>)item.getData(DATA_VALUE_PARAM); if (editedParam != null) { // Clean up any previous editor control Control oldEditor = editor.getEditor(); if (oldEditor != null) { oldEditor.dispose(); } Control editControl = null; String cellText = item.getText(columnValueIndex); switch (editedParam.getType()) { case BOOLEAN: Combo cmb = new Combo(tableParams, SWT.READ_ONLY); String[] booleanItems = {Boolean.toString(true), Boolean.toString(false)}; cmb.setItems(booleanItems); cmb.select(1); if (Boolean.parseBoolean(cellText)) { cmb.select(0); } editControl = cmb; cmb.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent se) { Combo text = (Combo) editor.getEditor(); editor.getItem().setText(columnValueIndex, text.getText()); } }); break; case DATE: IReplaceableParam<LocalDateTime> calParam = (IReplaceableParam<LocalDateTime>)editedParam; LocalDateTime calToUse = calParam.getValue(); Composite dateAndTime = new Composite(tableParams, SWT.NONE); RowLayout rl = new RowLayout(); rl.wrap = false; dateAndTime.setLayout(rl); //Date cellDt; try { LocalDateTime locDT = LocalDateTime.parse(cellText, dtFmt); if (locDT != null) { calToUse = locDT; } /*cellDt = dateFmt.parse(cellText); if (cellDt != null) { calToUse.setTime(cellDt); }*/ } catch (DateTimeParseException e1) { log.error("widgetSelected ", e1); } DateTime datePicker = new DateTime(dateAndTime, SWT.DATE | SWT.MEDIUM | SWT.DROP_DOWN); datePicker.setData(DATA_VALUE_PARAM, calParam); DateTime timePicker = new DateTime(dateAndTime, SWT.TIME | SWT.LONG); timePicker.setData(DATA_VALUE_PARAM, calParam); // for the date picker the months are zero-based, the first month is 0 the last is 11 // for LocalDateTime the months range 1-12 datePicker.setDate(calToUse.getYear(), calToUse.getMonthValue() - 1, calToUse.getDayOfMonth()); timePicker.setTime(calToUse.getHour(), calToUse.getMinute(), calToUse.getSecond()); datePicker.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent se) { DateTime source = (DateTime)se.getSource(); IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM); if (calParam1 != null) { LocalDateTime currDt = calParam1.getValue(); // for the date picker the months are zero-based, the first month is 0 the last is 11 // for LocalDateTime the months range 1-12 calParam1.setValue(currDt.withYear(source.getYear()).withMonth(source.getMonth() + 1).withDayOfMonth(source.getDay())); String resultText = dtFmt.format(calParam1.getValue()); log.debug("Result Text " + resultText); editor.getItem().setText(columnValueIndex, resultText); } else { log.warn("widgetSelected param is null"); } } }); timePicker.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent se) { DateTime source = (DateTime)se.getSource(); IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM); if (calParam1 != null) { LocalDateTime currDt = calParam1.getValue(); calParam1.setValue(currDt.withHour(source.getHours()).withMinute(source.getMinutes()).withSecond(source.getSeconds())); String resultText = dtFmt.format(calParam1.getValue()); log.debug("Result Text " + resultText); editor.getItem().setText(columnValueIndex, resultText); } else { log.warn("widgetSelected param is null"); } } }); dateAndTime.layout(); editControl = dateAndTime; break; case INTEGER: Text intEditor = new Text(tableParams, SWT.NONE); intEditor.setText(item.getText(columnValueIndex)); intEditor.selectAll(); intEditor.addModifyListener(new ModifyListener() { @Override public void modifyText(ModifyEvent se) { Text text = (Text) editor.getEditor(); Integer resultInt = null; try { resultInt = Integer.parseInt(text.getText()); } catch (NumberFormatException nfe) { log.error("NFE ", nfe); } if (resultInt != null) { editor.getItem().setText(columnValueIndex, resultInt.toString()); } } }); editControl = intEditor; break; case STRING: default: Text newEditor = new Text(tableParams, SWT.NONE); newEditor.setText(item.getText(columnValueIndex)); newEditor.setFont(tableParams.getFont()); newEditor.selectAll(); newEditor.addModifyListener(new ModifyListener() { @Override public void modifyText(ModifyEvent se) { Text text = (Text) editor.getEditor(); editor.getItem().setText(columnValueIndex, text.getText()); } }); editControl = newEditor; break; } editControl.setFont(tableParams.getFont()); editControl.setFocus(); editor.setEditor(editControl, item, columnValueIndex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSelectedRow()\n {\n \treturn this.getSelectedIndex();\n }", "private void selectedRowInvoice(){\r\n //numOrdenInv = tb_factura.getSelectionModel().getSelectedIndex();\r\n }", "@Override\n public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEve...
[ "0.77313715", "0.75973713", "0.7456303", "0.7342104", "0.7275112", "0.7261362", "0.72301644", "0.71423095", "0.6965468", "0.69533145", "0.69413996", "0.69397706", "0.6888303", "0.68720204", "0.68538153", "0.6736478", "0.67284685", "0.6700079", "0.66797966", "0.6654928", "0.66...
0.0
-1
1. slozhytj 2. Razdelitj na kolvo indeksov
private static double middleValueElementInArray(int[] arr) { double sum = sumElementArray(arr); return sum /arr.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "private String vylozZvieraZVozidla() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = Moj...
[ "0.66134506", "0.6478026", "0.64030313", "0.63684064", "0.6340288", "0.6290669", "0.6279527", "0.6237544", "0.62161994", "0.6205577", "0.6196634", "0.614148", "0.61393267", "0.61326045", "0.6126462", "0.61073333", "0.6100119", "0.6087373", "0.60623467", "0.6037626", "0.602040...
0.0
-1
Creates the JPA Query Object based on current QueryBuilder
public Query createQuery() { String queryString = getQueryString(); if (debug == true) { logger.info( "Query String: {0}", queryString); logger.info( "Parameters: Max Results: {0}, First result: {1}, Order By: {2}, Restrictions: {3}, Joins: {4}", new Object[]{maxResults, firstResult, orderBy, normalizedRestrictions, joins}); } Query query = entityManager.createQuery(queryString); List<QueryParameter> parameters = getQueryParameters(); for (QueryParameter parameter : parameters) { //dates (Date and Calendar) if (parameter.getTemporalType() != null && (parameter.getValue() instanceof Date || parameter.getValue() instanceof Calendar)) { if (parameter.getValue() instanceof Date) { if (parameter.getPosition() != null) { query.setParameter(parameter.getPosition(), (Date) parameter.getValue(), parameter.getTemporalType()); } else { if (parameter.getProperty() != null) { query.setParameter(parameter.getProperty(), (Date) parameter.getValue(), parameter.getTemporalType()); } } } else if (parameter.getValue() instanceof Calendar) { if (parameter.getPosition() != null) { query.setParameter(parameter.getPosition(), (Calendar) parameter.getValue(), parameter.getTemporalType()); } else { if (parameter.getProperty() != null) { query.setParameter(parameter.getProperty(), (Calendar) parameter.getValue(), parameter.getTemporalType()); } } } } else { if (parameter.getPosition() != null) { query.setParameter(parameter.getPosition(), parameter.getValue()); } else { if (parameter.getProperty() != null) { query.setParameter(parameter.getProperty(), parameter.getValue()); } } } } if (maxResults != null) { query.setMaxResults(maxResults); } if (firstResult != null) { query.setFirstResult(firstResult); } return query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}", "SelectQuery createSelectQuery();", "public QueryBuilder buildQueryBuilder() {\n return dao.getQueryBuilder()\n .from(dao.getEntityClass()...
[ "0.79359955", "0.72442335", "0.6935934", "0.6551806", "0.6525471", "0.65198386", "0.6409184", "0.63781816", "0.6344", "0.63394326", "0.6337755", "0.63001573", "0.62837315", "0.6241862", "0.62414354", "0.623712", "0.6185779", "0.6164807", "0.61574894", "0.61550844", "0.6148507...
0.6956294
2
private static final JsonFactory JSON_FACTORY = JacksonFactory.getDefaultInstance();
private HttpRequestInitializer getCredentials(final NetHttpTransport HTTP_TRANSPORT, TCC tcc) throws IOException { logger.debug("Obtendo credenciais..."); String credentialsPath = CREDENTIALS_FILE_PATH + tcc.getAluno().getCurso().getCodigoCurso() + ".json"; logger.debug("Caminho do arquivo de credenciais: " + credentialsPath); GoogleCredentials credentials = GoogleCredentials.fromStream(new FileInputStream(credentialsPath)); credentials = credentials.createScoped(SCOPES); credentials.refreshIfExpired(); HttpRequestInitializer requestInitializer = new HttpCredentialsAdapter(credentials); return requestInitializer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JsonFactory() { this(null); }", "private JSONMessageFactory(){}", "private JSON() {\n\t}", "private JSONHelper() {\r\n\t\tsuper();\r\n\t}", "private JsonUtils() {}", "public JsonField() {\n }", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }",...
[ "0.69471973", "0.68727916", "0.65082", "0.63999367", "0.6399163", "0.63474244", "0.63308114", "0.6251505", "0.62199163", "0.609235", "0.60515964", "0.5947603", "0.58889556", "0.58694464", "0.5833459", "0.5794363", "0.5775141", "0.5740572", "0.5643225", "0.5637818", "0.5622109...
0.0
-1
/ Transforma o id do tcc em uma string de pelo menos 5 caracteres, para ser aceito pelo google e identificar o evento do tcc
private String formatTccId(TCC tcc) { String id = Integer.toString(tcc.getIdTCC()); while (id.length() < 5) { id = "0" + id; } return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newStri...
[ "0.69161457", "0.6819992", "0.64149386", "0.6382333", "0.6382333", "0.6213928", "0.61789644", "0.61467516", "0.6129651", "0.5999383", "0.5965071", "0.5867719", "0.58531886", "0.58162177", "0.5813796", "0.57818246", "0.57677335", "0.57647663", "0.57418233", "0.5738322", "0.572...
0.71991277
0
/ create a board
@PostMapping("/boards") public ResponseEntity<Board> createBoard(@RequestBody Board board) throws URISyntaxException { if(board.getId()!=null){ throw new BadRequestAlertException("A new Board cannot already have an ID", ENTITY_NAME, "idexists"); } Board result = boardRepository.save(board); return ResponseEntity.created(new URI("/api/boards/" + result.getId())) .headers(HeaderUtil.createEntityCreationAlert(applicationName, false, ENTITY_NAME, result.getId().toString())) .body(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void createBoard();", "public void createBoard() {\n\t\tboard = new Piece[8][8];\n\t\t\n\t\tfor(int i=0; i<8; i++) {\n\t\t\tfor(int j=0; j<8; j++) {\n\t\t\t\tboard[i][j] = null;\n\t\t\t}\n\t\t}\n\t}", "private void generateBoard(){\n\t}", "public static void createBoard() \n\t{\n\t\tfor (int ...
[ "0.8066814", "0.78090715", "0.7773242", "0.77587503", "0.7743665", "0.7698141", "0.7677991", "0.75875723", "0.754854", "0.737944", "0.7237815", "0.71994805", "0.7198578", "0.7086945", "0.70645213", "0.70584136", "0.70548636", "0.7031006", "0.7021675", "0.69898146", "0.6959950...
0.0
-1
/ read all boards
@GetMapping("/boards") public List<Board> getAllBoards(){ return boardRepository.findAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic ArrayList<Board1> getAll() {\n\t\treturn dao.selectAll();\r\n\t}", "List findall_board_info(Integer board_id);", "public BoardInterface[] getBoards();", "@Override\n\tpublic List<BoardVO> listAll() throws Exception {\n\t\treturn dao.listAll();\n\t}", "@Override\n\tpublic List<BoardVO>...
[ "0.66389674", "0.6483539", "0.6409841", "0.62914973", "0.62914973", "0.6204414", "0.6083559", "0.5995839", "0.5973431", "0.59012914", "0.58871883", "0.5861086", "0.58128124", "0.5788036", "0.5756602", "0.57131445", "0.56844497", "0.5668093", "0.56602734", "0.5617916", "0.5571...
0.62336695
5
/ read 'id' board
@GetMapping("/boards/{id}") public ResponseEntity<Board> getBoard(@PathVariable Long id){ Optional<Board> board = boardRepository.findById(id); return ResponseUtil.wrapOrNotFound(board); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List findall_board_info(Integer board_id);", "@Override\n public Board getBoard(int id) {\n Board b = boardDataGateway.getBoardByID(id);\n if (b != null)\n b.setPins(getPinsOnBoard(b.getCreator().getUsername(), b.getName()));\n return b;\n }", "@Override\r\n\tpublic BoardD...
[ "0.68267477", "0.6617112", "0.6466417", "0.62636226", "0.62462413", "0.61631477", "0.61562234", "0.61562234", "0.5903055", "0.58683825", "0.58668786", "0.58637303", "0.58611137", "0.5749545", "0.57133067", "0.5707708", "0.5691934", "0.56786376", "0.5664885", "0.56051105", "0....
0.6282389
3
/ update a board
@PutMapping("/boards") public ResponseEntity<Board> updateBook(@RequestBody Board board) throws URISyntaxException { if(board.getId() == null){ throw new BadRequestAlertException("Invalid id", ENTITY_NAME, "idnull"); } Board result = boardRepository.save(board); return ResponseEntity.ok() .headers(HeaderUtil.createEntityUpdateAlert(applicationName, false, ENTITY_NAME, board.getId().toString())) .body(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateBoard() {\n notifyBoardUpdate(board);\n }", "@Override\r\n\tpublic int updateBoard(Board board) {\n\t\treturn session.update(namespace+\"updateBoard\",board);\r\n\t}", "boolean updateBoard(String currentPlayerTurn, String newBoard);", "public void updateBoard(int[][] board, int p...
[ "0.8228504", "0.77267486", "0.7551644", "0.7433816", "0.7390509", "0.7364081", "0.7362419", "0.71481115", "0.7136472", "0.71355283", "0.7028588", "0.7007212", "0.6993796", "0.69007564", "0.68649876", "0.6848041", "0.6811383", "0.6805079", "0.67722535", "0.67710453", "0.674097...
0.6280421
48
/ delete a board
@DeleteMapping("/boards/{id}") public ResponseEntity<Void> deleteBoard(@PathVariable Long id){ boardRepository.deleteById(id); return ResponseEntity.noContent().headers(HeaderUtil.createEntityDeletionAlert(applicationName, false, ENTITY_NAME, id.toString())).build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteBoard(long id);", "@Override\n\tpublic int deleteBoard(int num) {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic int deleteBoard(BoardVO board) {\n\t\treturn 0;\r\n\t}", "public void deleteBoard(int no) {\n\t\t\r\n\t\ttry {\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\t\r\n\t\t\t// no값인 게시글 삭제\r\n\t\t...
[ "0.84714663", "0.7882477", "0.7806124", "0.76576793", "0.75730175", "0.73737997", "0.71138644", "0.71098447", "0.70352054", "0.7034718", "0.69860977", "0.6910501", "0.68931", "0.67177975", "0.66270214", "0.6586703", "0.64991647", "0.6436907", "0.6357478", "0.631559", "0.62411...
0.68821394
13
Created by Development on 10/3/2016.
public interface IOutput <T> extends ITickable{ void setInputLocation(BlockPos pos); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@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 comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n...
[ "0.613106", "0.60321885", "0.5894217", "0.58785516", "0.5849655", "0.5754965", "0.5708384", "0.5703583", "0.5670307", "0.56622535", "0.56622535", "0.5644392", "0.5619633", "0.5591663", "0.5586646", "0.55859244", "0.55768204", "0.55768204", "0.55768204", "0.55768204", "0.55768...
0.0
-1
/ Generated Methods Method execute
public ActionForward init(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { HttpSession session = request.getSession(); if (session.getAttribute("admin") == null) { return mapping.findForward("wrong"); } else { MessageService messageService = new MessageService(); List<Message> msglist = messageService.getMessage(); request.setAttribute("msglist", msglist); if (session.getAttribute("message") != null) { request.removeAttribute("message"); } OrderService orderService = new OrderService(); int back = orderService.getOrderCount(); request.setAttribute("count", back); return mapping.findForward("list"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void execute() {}", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n\t\t\n\t}", "public void execute() {\n\t\t\n\t}", "public void execute(){\n\t\t\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\...
[ "0.8726473", "0.86474156", "0.86474156", "0.8585333", "0.8541966", "0.85416996", "0.85315204", "0.85315204", "0.85315204", "0.8510395", "0.8505068", "0.8505068", "0.8505068", "0.8505068", "0.8488018", "0.8487717", "0.8487717", "0.8487717", "0.8487717", "0.8487717", "0.8487717...
0.0
-1
Generated file Do NOT edit. It will be overwritten at next ServiceBuilder iteration.
public interface UserModel extends BaseModel<User> { public long getUserId(); public void setUserId(long userId); public String getFirstName(); public void setFirstName(String firstName); public String getLastName(); public void setLastName(String lastName); public String getPassword(); public void setPassword(String password); public boolean getActive(); public void setActive(boolean active); public byte[] getImage(); public void setImage(byte[] image); public interface Info extends Serializable { public Date getDob(); public void setDob(Date dob); public interface Address extends Serializable { public String getStreet(); public void setStreet(String street); public int getZip(); public void setZip(int zip); public Map<String, Object> toMap(); } public Address getAddress(); public void setAddress(Address address); public String getPhone(); public void setPhone(String phone); public List<Date> getReminders(); public void setReminders(List<Date> reminders); /** * Appends to the end of List, irrespective of value already existing. * See addToReminders to add without duplicating. */ public void appendToReminders(Date reminders); /** * Appends to the end of List, irrespective of value already existing. * See addToReminders to add without duplicating. */ public void appendToReminders(List<Date> reminders); /** * Adds to the List by treating List as a Set. * Thus adds only if not already exists in the List and avoids duplication. * See appendToReminders to append to List. */ public void addToReminders(Date reminders); /** * Adds to the List by treating List as a Set. * Thus adds only if not already exists in the List and avoids duplication. * See appendToReminders to append to List. */ public void addToReminders(List<Date> reminders); /** * Removes all occurences of value from the List */ public void removeFromReminders(Date reminders); /** * Removes all occurences of all values from the List */ public void removeFromReminders(List<Date> reminders); public Map<String, Object> toMap(); } public Info getInfo(); public void setInfo(Info info); public List<String> getLikedCars(); public void setLikedCars(List<String> likedCars); /** * Appends to the end of List, irrespective of value already existing. * See addToLikedCars to add without duplicating. */ public void appendToLikedCars(String likedCars); /** * Appends to the end of List, irrespective of value already existing. * See addToLikedCars to add without duplicating. */ public void appendToLikedCars(List<String> likedCars); /** * Adds to the List by treating List as a Set. * Thus adds only if not already exists in the List and avoids duplication. * See appendToLikedCars to append to List. */ public void addToLikedCars(String likedCars); /** * Adds to the List by treating List as a Set. * Thus adds only if not already exists in the List and avoids duplication. * See appendToLikedCars to append to List. */ public void addToLikedCars(List<String> likedCars); /** * Removes all occurences of value from the List */ public void removeFromLikedCars(String likedCars); /** * Removes all occurences of all values from the List */ public void removeFromLikedCars(List<String> likedCars); public List<String> getFollowedUsers(); public void setFollowedUsers(List<String> followedUsers); /** * Appends to the end of List, irrespective of value already existing. * See addToFollowedUsers to add without duplicating. */ public void appendToFollowedUsers(String followedUsers); /** * Appends to the end of List, irrespective of value already existing. * See addToFollowedUsers to add without duplicating. */ public void appendToFollowedUsers(List<String> followedUsers); /** * Adds to the List by treating List as a Set. * Thus adds only if not already exists in the List and avoids duplication. * See appendToFollowedUsers to append to List. */ public void addToFollowedUsers(String followedUsers); /** * Adds to the List by treating List as a Set. * Thus adds only if not already exists in the List and avoids duplication. * See appendToFollowedUsers to append to List. */ public void addToFollowedUsers(List<String> followedUsers); /** * Removes all occurences of value from the List */ public void removeFromFollowedUsers(String followedUsers); /** * Removes all occurences of all values from the List */ public void removeFromFollowedUsers(List<String> followedUsers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SourceBuilder createService();", "private ServiceGenerator() {\n }", "public interface ConfigurationServiceV1 {\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getBSConfigRequest\n */\n\n ...
[ "0.68357426", "0.63158846", "0.6271252", "0.61748874", "0.6149566", "0.6149566", "0.61429805", "0.6067835", "0.60576725", "0.60509205", "0.6026895", "0.599443", "0.5977199", "0.59720445", "0.5933169", "0.59131753", "0.58940506", "0.58283675", "0.5822467", "0.5818653", "0.5803...
0.0
-1
Appends to the end of List, irrespective of value already existing. See addToReminders to add without duplicating.
public void appendToReminders(Date reminders);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void appendToReminders(List<Date> reminders);", "public void addToReminders(List<Date> reminders);", "private static final <T> List<T> append(List<T> list, T newElement) {\n List<T> newList = Lists.newArrayListWithCapacity(list.size() + 1);\n newList.addAll(list);\n newList.add(newElement);\n ...
[ "0.7021554", "0.6839598", "0.6290868", "0.62235326", "0.609829", "0.6077146", "0.6035155", "0.58638793", "0.58541656", "0.58211654", "0.5772183", "0.57244825", "0.5709445", "0.56625134", "0.5651758", "0.5628641", "0.56057054", "0.56056607", "0.5595989", "0.55938184", "0.55905...
0.6271668
3
Appends to the end of List, irrespective of value already existing. See addToReminders to add without duplicating.
public void appendToReminders(List<Date> reminders);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToReminders(List<Date> reminders);", "private static final <T> List<T> append(List<T> list, T newElement) {\n List<T> newList = Lists.newArrayListWithCapacity(list.size() + 1);\n newList.addAll(list);\n newList.add(newElement);\n return newList;\n }", "public void appendToReminders(...
[ "0.6841179", "0.62894505", "0.62732893", "0.622251", "0.60990995", "0.6078062", "0.60336494", "0.5863031", "0.5854998", "0.58211935", "0.5770839", "0.5723431", "0.57094866", "0.56615967", "0.56511337", "0.56266683", "0.5606705", "0.5606108", "0.5597009", "0.5592905", "0.55889...
0.7023691
0
Adds to the List by treating List as a Set. Thus adds only if not already exists in the List and avoids duplication. See appendToReminders to append to List.
public void addToReminders(Date reminders);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToReminders(List<Date> reminders);", "@SuppressWarnings(\"unchecked\")\n public static void addIfNotContained(List list, Object object) {\n if (!list.contains(object)) {\n list.add(object);\n }\n }", "public static <T> void addWithoutDuplicates(List<T> addedTo, T t...
[ "0.62397975", "0.56892645", "0.56024957", "0.5600687", "0.55234253", "0.5488476", "0.5478637", "0.5457563", "0.5454455", "0.54141694", "0.5359345", "0.5357492", "0.53417724", "0.5340514", "0.5320823", "0.5298024", "0.527885", "0.5256128", "0.5255245", "0.5242399", "0.52278185...
0.5464745
7
Adds to the List by treating List as a Set. Thus adds only if not already exists in the List and avoids duplication. See appendToReminders to append to List.
public void addToReminders(List<Date> reminders);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n public static void addIfNotContained(List list, Object object) {\n if (!list.contains(object)) {\n list.add(object);\n }\n }", "public static <T> void addWithoutDuplicates(List<T> addedTo, T toBeAdded) {\n if (!addedTo.contains(toBeAdded))\...
[ "0.56876063", "0.5600921", "0.5598963", "0.55279535", "0.5484295", "0.5476159", "0.5469233", "0.5457268", "0.5454579", "0.5412375", "0.5359932", "0.5355137", "0.53431714", "0.53387266", "0.5318357", "0.52990955", "0.5276994", "0.5253919", "0.5253538", "0.5246291", "0.5225919"...
0.6244137
0
Removes all occurences of value from the List
public void removeFromReminders(Date reminders);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAllWithValue(v val) {\n\t\tfor (int i = 0; i < buckets.length; i++) {\n\t\t\tNode<k,v> curr = buckets[i];\n\t\t\tNode<k,v> previous = null;\n\t\t\t\n\t\t\twhile (curr != null) {\n\t\t\t\tif (curr.getValue().equals(val)) {\n\t\t\t\t\t\n\t\t\t\t\tif (previous == null) {\n\t\t\t\t\t\tbuckets[i] = cu...
[ "0.6947017", "0.6750947", "0.66021454", "0.6526514", "0.64638007", "0.64427745", "0.6360537", "0.61673343", "0.61351264", "0.6115447", "0.6097846", "0.606517", "0.60465765", "0.60458964", "0.6008555", "0.5999753", "0.59915566", "0.5950291", "0.5942454", "0.59411395", "0.59388...
0.0
-1
Removes all occurences of all values from the List
public void removeFromReminders(List<Date> reminders);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void removeAllValues() {\n Map<String, ?> map = preferences.getAll();\n Iterator<String> iterator = map.keySet().iterator();\n while (iterator.hasNext()) {\n removeValue(iterator.next());\n }\n }", "protected void resetValues() {\n synchroni...
[ "0.6639631", "0.6507789", "0.63582087", "0.6356254", "0.63504463", "0.6336836", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6300363", "0.62967914", "0.6266169", ...
0.0
-1
Appends to the end of List, irrespective of value already existing. See addToLikedCars to add without duplicating.
public void appendToLikedCars(String likedCars);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void appendToLikedCars(List<String> likedCars);", "public void addToLikedCars(List<String> likedCars);", "public void addToLikedCars(String likedCars);", "public void addCar(Car c) {\n\t\tNode newNode = new Node(c);\n\t\t\n\t\t//if list is empty\n\t\tif (head == null) {\n\t\t\thead = newNode;\n\t\t\tc...
[ "0.6853713", "0.6790973", "0.62140197", "0.61237854", "0.6024272", "0.6005788", "0.5894917", "0.57918096", "0.57049054", "0.56900024", "0.56504077", "0.56442875", "0.5608386", "0.5585014", "0.55838114", "0.5577134", "0.55602825", "0.54894066", "0.548872", "0.5483906", "0.5483...
0.6155575
3
Appends to the end of List, irrespective of value already existing. See addToLikedCars to add without duplicating.
public void appendToLikedCars(List<String> likedCars);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToLikedCars(List<String> likedCars);", "public void addToLikedCars(String likedCars);", "public void appendToLikedCars(String likedCars);", "public void addCar(Car c) {\n\t\tNode newNode = new Node(c);\n\t\t\n\t\t//if list is empty\n\t\tif (head == null) {\n\t\t\thead = newNode;\n\t\t\tcount++...
[ "0.679116", "0.6215653", "0.6156824", "0.61248845", "0.6026339", "0.60031563", "0.5894522", "0.57918435", "0.5703571", "0.5686951", "0.5650092", "0.56438994", "0.5606573", "0.5582151", "0.5581498", "0.5576222", "0.5560757", "0.5489593", "0.54882497", "0.54825336", "0.54818726...
0.6853487
0
Adds to the List by treating List as a Set. Thus adds only if not already exists in the List and avoids duplication. See appendToLikedCars to append to List.
public void addToLikedCars(String likedCars);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToLikedCars(List<String> likedCars);", "@Override\n public void add(T car) {\n carsInGarage.add(car);\n }", "void add(Set<Card> cards);", "public void appendToLikedCars(List<String> likedCars);", "private static void populateList(List<UsedCar> carList) {\n carList.add(new...
[ "0.6465435", "0.5640678", "0.56199235", "0.55425715", "0.5541955", "0.5417418", "0.54094416", "0.53839874", "0.5309362", "0.5290005", "0.5288912", "0.5242084", "0.521322", "0.5191481", "0.5178043", "0.51663846", "0.5162123", "0.51590776", "0.51586765", "0.51529235", "0.514275...
0.55788505
3
Adds to the List by treating List as a Set. Thus adds only if not already exists in the List and avoids duplication. See appendToLikedCars to append to List.
public void addToLikedCars(List<String> likedCars);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void add(T car) {\n carsInGarage.add(car);\n }", "void add(Set<Card> cards);", "public void addToLikedCars(String likedCars);", "private static void populateList(List<UsedCar> carList) {\n carList.add(new UsedCar(\"Ford\", \"Fiesta ST\", 2016, 25000.00));\n carLi...
[ "0.5637952", "0.5617321", "0.5574295", "0.55405724", "0.5538671", "0.5418943", "0.540715", "0.5384398", "0.5308453", "0.5288815", "0.528754", "0.52409303", "0.52131325", "0.519", "0.5175531", "0.51649123", "0.5162506", "0.5159259", "0.5158791", "0.5151633", "0.5143294", "0....
0.6461219
0
Removes all occurences of value from the List
public void removeFromLikedCars(String likedCars);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAllWithValue(v val) {\n\t\tfor (int i = 0; i < buckets.length; i++) {\n\t\t\tNode<k,v> curr = buckets[i];\n\t\t\tNode<k,v> previous = null;\n\t\t\t\n\t\t\twhile (curr != null) {\n\t\t\t\tif (curr.getValue().equals(val)) {\n\t\t\t\t\t\n\t\t\t\t\tif (previous == null) {\n\t\t\t\t\t\tbuckets[i] = cu...
[ "0.6947017", "0.6750947", "0.66021454", "0.6526514", "0.64638007", "0.64427745", "0.6360537", "0.61673343", "0.61351264", "0.6115447", "0.6097846", "0.606517", "0.60465765", "0.60458964", "0.6008555", "0.5999753", "0.59915566", "0.5950291", "0.5942454", "0.59411395", "0.59388...
0.0
-1
Removes all occurences of all values from the List
public void removeFromLikedCars(List<String> likedCars);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void removeAllValues() {\n Map<String, ?> map = preferences.getAll();\n Iterator<String> iterator = map.keySet().iterator();\n while (iterator.hasNext()) {\n removeValue(iterator.next());\n }\n }", "protected void resetValues() {\n synchroni...
[ "0.6639631", "0.6507789", "0.63582087", "0.6356254", "0.63504463", "0.6336836", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6300363", "0.62967914", "0.6266169", ...
0.0
-1
Appends to the end of List, irrespective of value already existing. See addToFollowedUsers to add without duplicating.
public void appendToFollowedUsers(String followedUsers);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToFollowedUsers(List<String> followedUsers);", "public void appendToFollowedUsers(List<String> followedUsers);", "public void addToFollowedUsers(String followedUsers);", "public void addFollowings(String following) {\n\tuserFollowings.add(following);\n }", "public void addFollower(Followe...
[ "0.7512701", "0.7337031", "0.70146644", "0.67485136", "0.65677506", "0.6374346", "0.6308492", "0.6234582", "0.620164", "0.59965235", "0.58261347", "0.5813774", "0.5804054", "0.5793152", "0.5750822", "0.57082564", "0.5690002", "0.56554514", "0.564455", "0.5629281", "0.5626154"...
0.6607962
4
Appends to the end of List, irrespective of value already existing. See addToFollowedUsers to add without duplicating.
public void appendToFollowedUsers(List<String> followedUsers);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToFollowedUsers(List<String> followedUsers);", "public void addToFollowedUsers(String followedUsers);", "public void addFollowings(String following) {\n\tuserFollowings.add(following);\n }", "public void appendToFollowedUsers(String followedUsers);", "public void addFollower(Follower foll...
[ "0.75117993", "0.70132756", "0.6748386", "0.660596", "0.65675765", "0.63731945", "0.6307834", "0.62353784", "0.62036467", "0.5996473", "0.5826584", "0.58142394", "0.58049744", "0.57936233", "0.575055", "0.5708191", "0.5690361", "0.5656327", "0.56456727", "0.5629946", "0.56293...
0.7335577
1
Adds to the List by treating List as a Set. Thus adds only if not already exists in the List and avoids duplication. See appendToFollowedUsers to append to List.
public void addToFollowedUsers(String followedUsers);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToFollowedUsers(List<String> followedUsers);", "public void appendToFollowedUsers(List<String> followedUsers);", "private void addUsers(List<String> userList, SubscriptionList subscriptionList, SubscriptionEventType eventType) {\n\t\tSubscription subscription = null;\n\t\t\n\t\tfor (Subscription...
[ "0.70345783", "0.6102445", "0.59052676", "0.58575386", "0.5850543", "0.58438385", "0.5730344", "0.57059544", "0.56787026", "0.56450546", "0.5606484", "0.5558827", "0.55513823", "0.5526995", "0.54997313", "0.5496355", "0.5445758", "0.5439074", "0.5424613", "0.5407507", "0.5368...
0.62874603
1