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 |
|---|---|---|---|---|---|---|
Sets the reviews list for the movie. | public void setReviewsList(ArrayList<Review> reviews) {
this.reviews = reviews;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setReviews(ArrayList<Review> reviews) {\n\t\tthis.reviews = reviews;\n\t}",
"public void setReviews(ArrayList<String> reviews) {\n this.reviews = reviews;\n }",
"public void setReviewList(List<Review> reviewList) {\n this.reviewList = reviewList;\n notifyDataSetChanged();\n ... | [
"0.78463644",
"0.7786679",
"0.7408738",
"0.72409195",
"0.7152766",
"0.68407977",
"0.6751106",
"0.66455925",
"0.65354437",
"0.64764875",
"0.63424414",
"0.6299901",
"0.6265523",
"0.61894125",
"0.6183846",
"0.616936",
"0.6050739",
"0.6036474",
"0.6035461",
"0.59924984",
"0.59829... | 0.79258233 | 0 |
Gets the trailers list for the movie. | public ArrayList<Trailer> getTrailers() {
return trailers;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Trailer> getAllTrailers(){\n return trailerDAO.getAllTrailers();\n }",
"public List<EstructuraContratosTrailersDTO> obtenerConsultaNominaTrailersLista() {\n\t\tList<EstructuraContratosTrailersDTO> consultaProsperaTrailersLista = consultaProsperaService.listaEstructuraProsperaTrailers();\n\t... | [
"0.75501156",
"0.6396777",
"0.63530505",
"0.6339145",
"0.6327575",
"0.61383337",
"0.6089524",
"0.6081574",
"0.60321826",
"0.6002503",
"0.5761923",
"0.5747593",
"0.5746021",
"0.57129145",
"0.56502116",
"0.5638765",
"0.5533085",
"0.5529249",
"0.55219334",
"0.54994243",
"0.54979... | 0.77543086 | 0 |
Sets the trailers list for the movie. | public void setTrailers(ArrayList<Trailer> trailers) {
if (trailers == null) {
trailers = new ArrayList<>();
}
this.trailers = trailers;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void setTrailers(ContextMap ctx, HttpHeaders trailers) {\n trailers.set(header(SERVER_FILTER_IN_TRAILER_CTX), requireNonNull(ctx.get(SERVER_FILTER_IN_TRAILER_CTX)));\n trailers.set(header(SERVER_TRAILER_CTX), requireNonNull(ctx.get(SERVER_TRAILER_CTX)));\n // Set the... | [
"0.65214217",
"0.6427204",
"0.602328",
"0.5968856",
"0.5908083",
"0.58924866",
"0.5730662",
"0.5640745",
"0.5379271",
"0.5345239",
"0.5205016",
"0.5144115",
"0.51328015",
"0.5098874",
"0.50580585",
"0.49418613",
"0.49026412",
"0.48722312",
"0.48550546",
"0.48402825",
"0.48240... | 0.8063521 | 0 |
Write the values to the Parcel. | @Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeString(id);
parcel.writeString(title);
parcel.writeString(overview);
parcel.writeString(posterUrl);
parcel.writeString(userRating);
parcel.writeString(releaseDate);
parcel.writeInt(runtime);
parcel.writeByte((byte) (isFavorite ? 1 : 0));
parcel.writeTypedList(castList);
parcel.writeTypedList(reviews);
parcel.writeTypedList(trailers);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void writeToParcel(Parcel parcel, int i) {\n parcel.writeString(this.names);\n parcel.writeString(this.lastnames);\n parcel.writeInt(this.age);\n }",
"@Override\n public void writeToParcel(Parcel parcel, int i) {\n }",
"@Override\r\n\tpublic void writeToParce... | [
"0.62594986",
"0.6223959",
"0.6109939",
"0.60876995",
"0.6060046",
"0.5967519",
"0.5951397",
"0.5934298",
"0.5930232",
"0.5928793",
"0.5897402",
"0.5895896",
"0.57487106",
"0.5731884",
"0.57209",
"0.5712153",
"0.57001334",
"0.5693535",
"0.5672466",
"0.5655299",
"0.56546515",
... | 0.5033499 | 94 |
Call private constructor and pass along Parcel, and then return a new object. | @Override
public Movie createFromParcel(Parcel in) {
return new Movie(in);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Reproducible newInstance();",
"Parcelle createParcelle();",
"private Person(final Parcel in) {\n super();\n readFromParcel(in);\n }",
"public C1748jj createFromParcel(Parcel parcel) {\n int G = C0721a.m714G(parcel);\n int i = 0;\n int i2 = 0;\n int i3 = 0;\n ... | [
"0.67801535",
"0.6730232",
"0.6456127",
"0.6266205",
"0.623031",
"0.62216675",
"0.6084046",
"0.6073087",
"0.6058987",
"0.6058647",
"0.6012278",
"0.6011562",
"0.596331",
"0.5958766",
"0.5901539",
"0.59004265",
"0.58968645",
"0.5889088",
"0.5883155",
"0.58764976",
"0.5872646",
... | 0.5654762 | 32 |
impostazione layout della recycleview | @Override
public OrderViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
LayoutInflater inflater = LayoutInflater.from(mCtx);
View view = inflater.inflate(R.layout.order_list_row, null);
RecyclerView.LayoutParams lp = new RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
view.setLayoutParams(lp);
return new OrderViewHolder(view);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initView() {\n // set layout for recycle view\n //hasFixedSize true if adapter changes cannot affect the size of the RecyclerView\n recyclerView.setHasFixedSize(true);\n // this layout can be vertical or horizontal by change the second param\n // of LinearLayoutManag... | [
"0.7347639",
"0.69926274",
"0.69891864",
"0.693937",
"0.6933657",
"0.6879804",
"0.67642295",
"0.6619294",
"0.6597534",
"0.6588961",
"0.65625995",
"0.6545553",
"0.65005124",
"0.6466708",
"0.64090776",
"0.63667524",
"0.63540256",
"0.6348337",
"0.6307002",
"0.63006896",
"0.62918... | 0.0 | -1 |
restituisce la lunghezza della lista ordini | @Override
public int getItemCount() {
return orderList.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ordina(int[] valori) {\n\t\t\n\t}",
"public static void main(String[] args) {\n//\t\tcrearNodos(cantNodos);\n//\t\tlista.extractFront();\n//\t\tlista.extractLast();\n//\t\tlista.insertLast(33);\n//\t\tlista.imprimir();\n//\t\t//System.out.print(lista.get(0));\n//\t\t\n//\t\tIterator<Integer> it1 = li... | [
"0.6494792",
"0.6286487",
"0.6282208",
"0.6277632",
"0.6269715",
"0.62358254",
"0.6229485",
"0.6169609",
"0.61433566",
"0.6082238",
"0.60761327",
"0.60573155",
"0.60106224",
"0.59233296",
"0.58865565",
"0.5805043",
"0.580094",
"0.57850826",
"0.577507",
"0.5756328",
"0.5735881... | 0.0 | -1 |
rimuove tutti gli oggetti dalla lista | public void removeAllItem() {
orderList.clear();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n ... | [
"0.70560634",
"0.69690144",
"0.664983",
"0.65921646",
"0.65530825",
"0.65072477",
"0.64879745",
"0.6463036",
"0.6417987",
"0.63923633",
"0.6391923",
"0.63899434",
"0.63895965",
"0.63845426",
"0.6325909",
"0.63169605",
"0.627673",
"0.627008",
"0.6267879",
"0.6248688",
"0.62424... | 0.0 | -1 |
Perform a next without initial increment | private int doNext() throws IOException {
int first = 0;
SirenScorer lastScorer = scorers[scorers.length - 1];
SirenScorer firstScorer = scorers[first];
while (more &&
(firstScorer.entity() < lastScorer.entity() ||
(firstScorer.entity() == lastScorer.entity() && firstScorer.tuple() < lastScorer.tuple()))) {
more = (firstScorer.advance(lastScorer.entity(), lastScorer.tuple()) != NO_MORE_DOCS);
lastScorer = firstScorer;
first = (first == (scorers.length - 1)) ? 0 : first + 1;
firstScorer = scorers[first];
}
// Load occurrences for nextPosition() and score()
if (more) {
lastEntity = lastScorer.entity();
lastTuple = lastScorer.tuple();
this.loadOccurrences();
p = 0; // reset pointer
return lastEntity;
}
else {
lastEntity = lastTuple = Integer.MAX_VALUE; // sentinel value
return NO_MORE_DOCS;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void next(){\n\t\tif(generated)\n\t\t\tcurr++;\n\t}",
"void next();",
"public void next() {\n\t\t}",
"public void next();",
"public void next();",
"public void Next();",
"public abstract void next();",
"@Override\n\t\tpublic int next() {\n\t\t\treturn current++;\n\t\t}",
"public abstract voi... | [
"0.78489476",
"0.7688829",
"0.7658266",
"0.75417656",
"0.75417656",
"0.746174",
"0.7411525",
"0.7378847",
"0.7326158",
"0.7285847",
"0.72827065",
"0.71836525",
"0.7117459",
"0.7106437",
"0.7106437",
"0.70499957",
"0.7033963",
"0.7033121",
"0.7024101",
"0.6982203",
"0.69804865... | 0.0 | -1 |
Here we increment the pointer in the first place, because the first position is normally already loaded. | @Override
public int nextPosition() {
if (++p < tuples.size()) {
lastTuple = tuples.get(p);
return 0; // position is invalid in this scorer, returns 0
}
return NO_MORE_POS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of t... | [
"0.6308424",
"0.6259543",
"0.62372285",
"0.6197015",
"0.6129607",
"0.6105941",
"0.6068712",
"0.6056994",
"0.5999663",
"0.5947325",
"0.5877757",
"0.5828946",
"0.5813899",
"0.5803466",
"0.5803033",
"0.5769962",
"0.57671183",
"0.5736581",
"0.57319623",
"0.5730904",
"0.57234716",... | 0.5663966 | 30 |
Note... most of this could be done in the constructor thus skipping a check for firstTime per call to nextDoc() and advance() | private int init(final int target) throws IOException {
firstTime = false;
more = scorers.length > 1;
for (final SirenScorer scorer : scorers) {
if (target == 0) {
more = (scorer.nextDoc() != NO_MORE_DOCS);
}
else {
more = (scorer.advance(target) != NO_MORE_DOCS);
}
if (!more) {
return NO_MORE_DOCS;
}
}
// Sort the array the first time...
// We don't need to sort the array in any future calls because we know
// it will already start off sorted (all scorers on same doc).
// note that this comparator is not consistent with equals!
Arrays.sort(scorers, new Comparator<SirenScorer>() { // sort the array
public int compare(final SirenScorer o1, final SirenScorer o2) {
if (o1.entity() != o2.entity())
return o1.entity() - o2.entity();
else if (o1.tuple() != o2.tuple())
return o1.tuple() - o2.tuple();
else
return o1.cell() - o2.cell();
}
});
this.doNext();
// If first-time skip distance is any predictor of
// scorer sparseness, then we should always try to skip first on
// those scorers.
// Keep last scorer in it's last place (it will be the first
// to be skipped on), but reverse all of the others so that
// they will be skipped on in order of original high skip.
final int end = (scorers.length - 1);
for (int i = 0; i < (end >> 1); i++) {
final SirenCellScorer tmp = scorers[i];
scorers[i] = scorers[end - i - 1];
scorers[end - i - 1] = tmp;
}
if (more) {
return lastEntity;
}
else {
return NO_MORE_DOCS;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void startDocument() {\n\t\t\n\t}",
"private DocumentOrderIterator() {}",
"@Override\r\n protected void parseDocuments()\r\n {\n\r\n }",
"@Override\n\tpublic void getNext(JCas j) throws IOException, CollectionException {\n\t\tString s = docElements.get(idx).text();\t\t\n\t\tj.set... | [
"0.6075361",
"0.60067433",
"0.59425914",
"0.589656",
"0.58367264",
"0.57556736",
"0.5715012",
"0.57063913",
"0.57049286",
"0.55873823",
"0.55543464",
"0.5538426",
"0.5517564",
"0.55099547",
"0.547115",
"0.54705507",
"0.5457326",
"0.5424354",
"0.54171175",
"0.5395791",
"0.5371... | 0.54091287 | 19 |
Creates new form consultaTurista | public consultaTurista() {
initComponents();
this.setLocationRelativeTo(null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore(... | [
"0.67361844",
"0.6683418",
"0.66516405",
"0.66479117",
"0.6635028",
"0.6481394",
"0.64792967",
"0.6449729",
"0.64083946",
"0.6357229",
"0.63486826",
"0.63468266",
"0.63395715",
"0.63092107",
"0.62990844",
"0.6279683",
"0.62713903",
"0.62422836",
"0.62050205",
"0.6197356",
"0.... | 0.61064976 | 29 |
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() {
jLabel1 = new javax.swing.JLabel();
btnConsultar = new javax.swing.JButton();
btnSalir = new javax.swing.JButton();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
pais = new javax.swing.JTextField();
provincia = new javax.swing.JTextField();
region = new javax.swing.JTextField();
ciudad = new javax.swing.JTextField();
direccion = new javax.swing.JTextField();
comida = new javax.swing.JTextField();
hotel = new javax.swing.JTextField();
jLabel9 = new javax.swing.JLabel();
vaciar = new javax.swing.JButton();
id = new javax.swing.JTextField();
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
setResizable(false);
jLabel1.setText("Turista");
btnConsultar.setText("consultar");
btnConsultar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnConsultarActionPerformed(evt);
}
});
btnSalir.setText("salir al menú principal");
btnSalir.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnSalirActionPerformed(evt);
}
});
jLabel2.setText("País");
jLabel3.setText("Provincia");
jLabel4.setText("Región");
jLabel5.setText("Ciudad");
jLabel6.setText("Direccion");
jLabel7.setText("Comida");
jLabel8.setText("Hotel");
pais.setEditable(false);
provincia.setEditable(false);
region.setEditable(false);
ciudad.setEditable(false);
direccion.setEditable(false);
comida.setEditable(false);
hotel.setEditable(false);
jLabel9.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
jLabel9.setText("CONSULTAR LUGAR TURÍSTICO POR TURISTA");
vaciar.setText("vaciar");
vaciar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
vaciarActionPerformed(evt);
}
});
id.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
idActionPerformed(evt);
}
});
id.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
idKeyReleased(evt);
}
public void keyTyped(java.awt.event.KeyEvent evt) {
idKeyTyped(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()
.addGap(63, 63, 63)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel9)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(jLabel3)
.addComponent(jLabel4)
.addComponent(jLabel5)
.addComponent(jLabel6)
.addComponent(jLabel7)
.addComponent(jLabel8))
.addGap(28, 28, 28)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(ciudad, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(region, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(provincia, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(pais, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(hotel, javax.swing.GroupLayout.DEFAULT_SIZE, 276, Short.MAX_VALUE)
.addComponent(comida)
.addComponent(direccion)))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(jLabel1)
.addGap(28, 28, 28))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(vaciar)
.addGap(26, 26, 26)))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(id, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(btnConsultar))
.addGroup(layout.createSequentialGroup()
.addGap(91, 91, 91)
.addComponent(btnSalir)))))
.addContainerGap(66, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel9)
.addGap(17, 17, 17)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(btnConsultar)
.addComponent(id, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(27, 27, 27)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(pais, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(24, 24, 24)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(provincia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(29, 29, 29)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(region, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(30, 30, 30)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(ciudad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(37, 37, 37)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel6)
.addComponent(direccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(40, 40, 40)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel7)
.addComponent(comida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(32, 32, 32)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel8)
.addComponent(hotel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 47, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(btnSalir)
.addComponent(vaciar))
.addContainerGap())
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.7321342",
"0.7292121",
"0.7292121",
"0.7292121",
"0.72863305",
"0.7249828",
"0.7213628",
"0.7209084",
"0.7197292",
"0.71912086",
"0.7185135",
"0.7159969",
"0.7148876",
"0.70944786",
"0.70817256",
"0.7057678",
"0.69884527",
"0.69786763",
"0.69555986",
"0.69548863",
"0.69453... | 0.0 | -1 |
Instancia una nueva desembolso se finsol1 ov. | public DesembolsoSEFinsol1OV() { } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ConversorVelocidad() {\n //setTemperaturaConvertida(0);\n }",
"public Regla2(){ /*ESTE ES EL CONSTRUCTOR POR DEFECTO */\r\n\r\n /* TODAS LAS CLASES TIENE EL CONSTRUCTOR POR DEFECTO, A VECES SE CREAN AUTOMATICAMENTE, PERO\r\n PODEMOS CREARLOS NOSOTROS TAMBIEN SI NO SE HUBIERAN CREADO AUTOMA... | [
"0.5683969",
"0.56717485",
"0.56467324",
"0.5589844",
"0.5547638",
"0.5512832",
"0.55000454",
"0.5487175",
"0.5487175",
"0.5487175",
"0.5487175",
"0.5480327",
"0.5465885",
"0.5459774",
"0.5443907",
"0.5441817",
"0.54404616",
"0.5407822",
"0.54006344",
"0.539717",
"0.5371569",... | 0.7081059 | 0 |
Metodo que agrega el contenido de los campos a un StringBuffer y los separa con "," para generar un encabezado CVS. | public StringBuffer toStringCSV( Date fechaCierre ) {
StringBuffer respuesta = new StringBuffer();
final String COMA = ",";
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
//llenar el string buffer
respuesta.append(this.numContrato != null ? this.numContrato : "");
respuesta.append(COMA);
respuesta.append(this.producto != null ? this.producto : "");
respuesta.append(COMA);
respuesta.append(fechaCierre != null ? sdf.format(fechaCierre) : "Fecha Invalida"); //Dia Pago
respuesta.append(COMA);
respuesta.append(this.numGrupo != null ? this.numGrupo : "");
respuesta.append(COMA);
respuesta.append(this.nombreGrupo != null ? this.nombreGrupo : "");
respuesta.append(COMA);
respuesta.append(this.pagadoCapital != null ? this.pagadoCapital.doubleValue() : 0.0d);
respuesta.append(COMA);
respuesta.append(this.pagadoInteres != null ? this.pagadoInteres.doubleValue() : 0.0d );
respuesta.append(COMA);
this.pagadoCapital = this.pagadoCapital != null ? this.pagadoCapital : 0.0d;
this.pagadoInteres = this.pagadoInteres != null ? this.pagadoInteres : 0.0d;
respuesta.append(this.pagadoCapital.doubleValue() + this.pagadoInteres.doubleValue() ); //Pagado Total
respuesta.append(COMA);
respuesta.append(this.codigoSucursal != null ? this.codigoSucursal : "");
respuesta.append(COMA);
respuesta.append(this.nombreSucursal != null ? this.nombreSucursal : "");
respuesta.append(COMA);
respuesta.append(this.parcialidad != null ? this.parcialidad : "" );
respuesta.append( "\n" );
return respuesta;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCSVString() {\n StringBuilder builder = new StringBuilder();\n\n // key / value header\n builder.append(\"key,\\tvalue\");\n builder.append(System.getProperty(\"line.separator\").toString());\n\n // key / value pairs\n for (Entry<String, String> entry : re... | [
"0.61965644",
"0.6149477",
"0.6054092",
"0.6040682",
"0.59646475",
"0.58804774",
"0.57220066",
"0.56613797",
"0.5606311",
"0.55956364",
"0.5557204",
"0.5529242",
"0.5513154",
"0.550499",
"0.5497266",
"0.5475879",
"0.5475208",
"0.54598373",
"0.5456342",
"0.545603",
"0.5443929"... | 0.6197175 | 0 |
Depending on provider access type correct inconsistent signatures for composite exertions only. Tasks go either to its provider directly or Spacer depending on their provider access type (PUSH or PULL). | public Signature correctProcessSignature() {
if (!exertion.isJob())
return exertion.getProcessSignature();
Signature sig = exertion.getProcessSignature();
if (sig != null) {
Access access = exertion.getControlContext().getAccessType();
if ((Access.PULL == access || Access.QOS_PULL == access)
&& !exertion.getProcessSignature().getServiceType()
.isAssignableFrom(Spacer.class)) {
sig.setServiceType(Spacer.class);
((NetSignature) sig).setSelector("service");
sig.setProviderName(SorcerConstants.ANY);
sig.setType(Signature.Type.SRV);
exertion.getControlContext().setAccessType(access);
} else if ((Access.PUSH == access || Access.QOS_PUSH == access)
&& !exertion.getProcessSignature().getServiceType()
.isAssignableFrom(Jobber.class)) {
if (sig.getServiceType().isAssignableFrom(Spacer.class)) {
sig.setServiceType(Jobber.class);
((NetSignature) sig).setSelector("service");
sig.setProviderName(SorcerConstants.ANY);
sig.setType(Signature.Type.SRV);
exertion.getControlContext().setAccessType(access);
}
}
} else {
sig = new NetSignature("service", Jobber.class);
}
return sig;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TaskProvider getTaskProvider();",
"public interface TasksContract {\n\n public interface View extends BaseView<Presenter> {\n void showAddTask();\n void showSuccessfullySavedMessage();\n }\n\n public interface Presenter extends BasePresenter{\n void result(int requestCode, in... | [
"0.54868364",
"0.53993744",
"0.5296232",
"0.52277267",
"0.5215737",
"0.5174676",
"0.5171356",
"0.5165956",
"0.51464206",
"0.51460606",
"0.505295",
"0.5018903",
"0.50159335",
"0.5008528",
"0.49189878",
"0.49063843",
"0.49047026",
"0.4901821",
"0.48962426",
"0.48961943",
"0.488... | 0.0 | -1 |
Constructs a new WirePacket with a given type and contents | public WirePacket(PacketType type, byte[] bytes) {
this.id = checkNotNull(type, "type cannot be null").getCurrentId();
this.bytes = bytes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Packet createPacket() {\n\t\treturn new Packet((ByteBuffer) buffer.flip());\n\t}",
"RS3PacketBuilder buildPacket(T node);",
"public Packet() {\n\t}",
"public static WirePacket fromPacket(PacketContainer packet) {\n\t\tcheckNotNull(packet, \"packet cannot be null!\");\n\n\t\tint id = packet.getType().g... | [
"0.6508017",
"0.61720216",
"0.59074605",
"0.5899603",
"0.58783156",
"0.58605117",
"0.5814612",
"0.5785055",
"0.5781892",
"0.57744634",
"0.5703897",
"0.5657173",
"0.5653103",
"0.55700445",
"0.55634516",
"0.5528841",
"0.5525084",
"0.5522541",
"0.54201734",
"0.5405281",
"0.54050... | 0.7093314 | 0 |
Constructs a new WirePacket with a given id and contents | public WirePacket(int id, byte[] bytes) {
this.id = id;
this.bytes = bytes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public byte[] createPacket(short packetid, byte[] packetdata){\r\n\t\tshort s = 0;\r\n\t\tbyte[] packet;\r\n\t\tint size = packetdata.length;\r\n\t\t\r\n\t\tif (size < 1){\r\n\t\t\tpacket = new byte[12];\r\n\t\t}else{\r\n\t\t\tpacket = new byte[12+size];\r\n\t\t}\r\n\t\tif (packetid == 2 || packetid == 5 || packet... | [
"0.6495713",
"0.63579184",
"0.6149172",
"0.61376065",
"0.610536",
"0.60899276",
"0.5971219",
"0.5927017",
"0.5879176",
"0.5821769",
"0.5724924",
"0.57020366",
"0.5665332",
"0.5643635",
"0.561023",
"0.559281",
"0.5580144",
"0.5557401",
"0.55541974",
"0.5553914",
"0.5541347",
... | 0.70019925 | 0 |
Gets this packet's ID | public int getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getPacketId();",
"@Override\r\n\tpublic String getPacketID() {\n\t\treturn packet_id;\r\n\t}",
"public PacketId getPacketId() {\n return packetId;\n }",
"public static byte getPacketId(byte[] packet){\n assert packet.length >= 3;\n // And the ID is second byte\n return pack... | [
"0.82708484",
"0.7930299",
"0.77951866",
"0.7621254",
"0.7323077",
"0.71553856",
"0.71197397",
"0.70469815",
"0.69395006",
"0.69271845",
"0.68989515",
"0.6835399",
"0.6829835",
"0.6816875",
"0.6805665",
"0.67794746",
"0.6773816",
"0.67704",
"0.6758874",
"0.6753361",
"0.675336... | 0.0 | -1 |
Gets this packet's contents as a byte array | public byte[] getBytes() {
return bytes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}",
"public byte[] getContent();",
"public byte[] getAsBytes() {\n\t\treturn m_RawContent;\n\t}",
"public byte[] getBytes() {\n return baos.toByteArray();\n }",
"byte[] getContent();",
"public byte[] getBytes() {\r\n \t... | [
"0.76586336",
"0.7591998",
"0.7508495",
"0.74393713",
"0.743773",
"0.74236965",
"0.7385934",
"0.73742974",
"0.73742974",
"0.7339922",
"0.7261985",
"0.7253481",
"0.72469264",
"0.72414786",
"0.71832633",
"0.7171747",
"0.71360326",
"0.71356666",
"0.71287197",
"0.7125314",
"0.712... | 0.70200783 | 25 |
Writes the id of this packet to a given output | public void writeId(ByteBuf output) {
writeVarInt(output, id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void write(DataOutput output) throws IOException {\n output.writeShort(this.id());\n this._write(output);\n }",
"@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tWritableUtils.writeVInt(out, this.id);\r\n\t}",
"@Override\n\tpublic void write(DataOutput out) thr... | [
"0.7492234",
"0.73141205",
"0.66576517",
"0.65209466",
"0.63001585",
"0.6245195",
"0.62327844",
"0.6132936",
"0.61165446",
"0.60245705",
"0.6006649",
"0.5994605",
"0.58999616",
"0.5845127",
"0.58365375",
"0.5782362",
"0.5749032",
"0.57465416",
"0.57095283",
"0.5675854",
"0.56... | 0.82685447 | 0 |
Writes the contents of this packet to a given output | public void writeBytes(ByteBuf output) {
checkNotNull(output, "output cannot be null!");
output.writeBytes(bytes);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void write(DataOutput output) throws IOException {\n output.writeUTF(this.data);\n }",
"public abstract void write(NetOutput out) throws IOException;",
"public void write(DataOutput output) throws IOException {\n output.writeShort(this.id());\n this._write(output);\n }",
"prote... | [
"0.7265056",
"0.7238072",
"0.7190172",
"0.70322204",
"0.6932011",
"0.67783564",
"0.6735786",
"0.65991056",
"0.65292305",
"0.6529001",
"0.6513682",
"0.6500087",
"0.64528316",
"0.64325213",
"0.63870007",
"0.63501024",
"0.62857616",
"0.6264574",
"0.6243877",
"0.6237906",
"0.6235... | 0.6685727 | 7 |
Fully writes the ID and contents of this packet to a given output | public void writeFully(ByteBuf output) {
writeId(output);
writeBytes(output);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void write(DataOutput output) throws IOException {\n output.writeShort(this.id());\n this._write(output);\n }",
"public void writeId(ByteBuf output) {\n\t\twriteVarInt(output, id);\n\t}",
"public void write(DataOutput output) throws IOException {\n output.writeShort(this.data);\n ... | [
"0.7075551",
"0.65570533",
"0.64582396",
"0.63070226",
"0.6254557",
"0.6181714",
"0.6001622",
"0.59900576",
"0.59709275",
"0.59622085",
"0.5954389",
"0.5886472",
"0.5784879",
"0.57106274",
"0.56594825",
"0.565684",
"0.56525475",
"0.56426716",
"0.5627621",
"0.5617594",
"0.5593... | 0.7925104 | 0 |
Serializes this packet into a byte buffer | public ByteBuf serialize() {
ByteBuf buffer = Unpooled.buffer();
writeFully(buffer);
return buffer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void serialize(ByteBuffer buf) {\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.By... | [
"0.6810859",
"0.6589557",
"0.6589557",
"0.6589557",
"0.6589557",
"0.6589557",
"0.6589557",
"0.6589557",
"0.6589557",
"0.6589557",
"0.6589557",
"0.6589557",
"0.6589557",
"0.6589557",
"0.6589557",
"0.6589557",
"0.6589557",
"0.6589557",
"0.6589557",
"0.65632015",
"0.6403978",
... | 0.6744588 | 1 |
Creates a WirePacket from an existing PacketContainer | public static WirePacket fromPacket(PacketContainer packet) {
checkNotNull(packet, "packet cannot be null!");
int id = packet.getType().getCurrentId();
ByteBuf buffer = PacketContainer.createPacketBuffer();
Method write = MinecraftMethods.getPacketWriteByteBufMethod();
try {
write.invoke(packet.getHandle(), buffer);
} catch (ReflectiveOperationException ex) {
throw new RuntimeException("Failed to serialize packet contents.", ex);
}
return new WirePacket(id, getBytes(buffer));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Packet createPacket() {\n\t\treturn new Packet((ByteBuffer) buffer.flip());\n\t}",
"public static WirePacket fromPacket(Object packet) {\n\t\tcheckNotNull(packet, \"packet cannot be null!\");\n\t\tcheckArgument(MinecraftReflection.isPacketClass(packet), \"packet must be a Minecraft packet\");\n\n\t\tPacke... | [
"0.684626",
"0.6460337",
"0.5834377",
"0.57639164",
"0.5736005",
"0.56028795",
"0.55961233",
"0.55401796",
"0.55148304",
"0.54690397",
"0.5379442",
"0.5340761",
"0.53256035",
"0.5247704",
"0.5246065",
"0.52290213",
"0.5171328",
"0.5142568",
"0.5127988",
"0.50959915",
"0.50795... | 0.7779007 | 0 |
Creates a WirePacket from an existing Minecraft packet | public static WirePacket fromPacket(Object packet) {
checkNotNull(packet, "packet cannot be null!");
checkArgument(MinecraftReflection.isPacketClass(packet), "packet must be a Minecraft packet");
PacketType type = PacketType.fromClass(packet.getClass());
int id = type.getCurrentId();
ByteBuf buffer = PacketContainer.createPacketBuffer();
Method write = MinecraftMethods.getPacketWriteByteBufMethod();
try {
write.invoke(packet, buffer);
} catch (ReflectiveOperationException ex) {
throw new RuntimeException("Failed to serialize packet contents.", ex);
}
return new WirePacket(id, getBytes(buffer));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static WirePacket fromPacket(PacketContainer packet) {\n\t\tcheckNotNull(packet, \"packet cannot be null!\");\n\n\t\tint id = packet.getType().getCurrentId();\n\n\t\tByteBuf buffer = PacketContainer.createPacketBuffer();\n\t\tMethod write = MinecraftMethods.getPacketWriteByteBufMethod();\n\n\t\ttry {\n\t\t\... | [
"0.74315345",
"0.72686905",
"0.631252",
"0.6022499",
"0.59786314",
"0.59346104",
"0.59230435",
"0.590772",
"0.59049296",
"0.5828392",
"0.5827021",
"0.57710314",
"0.5756234",
"0.57510346",
"0.5701631",
"0.5696586",
"0.56851953",
"0.56757635",
"0.56739444",
"0.56728965",
"0.566... | 0.7521827 | 0 |
Mutator method for name:String | public void setName(String name) {
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"void setName(String name_);",
"public final void setName(String name) {_name = name;}",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name)... | [
"0.78093475",
"0.77751553",
"0.770874",
"0.7682896",
"0.76492536",
"0.76492536",
"0.76492536",
"0.76492536",
"0.76492536",
"0.76492536",
"0.76492536",
"0.76492536",
"0.76492536",
"0.76492536",
"0.76492536",
"0.7643665",
"0.7639101",
"0.7621607",
"0.7621607",
"0.7621607",
"0.7... | 0.0 | -1 |
Accessor method for Employee name | public String getName() {
return this.name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getEmployeeName();",
"public String getEmployeeName();",
"public String getEmployeeName() {\n return employeeName;\n }",
"public String getEmployeeName() {\r\n\t\r\n\t\treturn employeeName;\r\n\t}",
"public String getEmployeeName() {\r\n\t\treturn employeeName;\r\n\t}",
"public... | [
"0.8799741",
"0.84693754",
"0.79569364",
"0.7928073",
"0.78593534",
"0.75015163",
"0.73896396",
"0.7083242",
"0.6987495",
"0.69717413",
"0.6911575",
"0.6911575",
"0.6911575",
"0.6911575",
"0.6911575",
"0.6911575",
"0.6911575",
"0.6911575",
"0.6911575",
"0.6911575",
"0.6911575... | 0.0 | -1 |
Mutator method for salary:double | public void setSalary(double salary) {
this.salary = salary;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSalary(double salary){\r\n this.salary = salary;\r\n }",
"public abstract double salary();",
"public void setSalary(double salary) {\r\n this.salary = salary;\r\n }",
"public void setSalary(double salary) {\n this.salary = salary;\n }",
"public void setSalary(double s... | [
"0.78635234",
"0.7820411",
"0.76589966",
"0.7599539",
"0.7599539",
"0.75485665",
"0.7432911",
"0.73804086",
"0.73346883",
"0.7310981",
"0.72700185",
"0.72700185",
"0.72700185",
"0.72584456",
"0.7142957",
"0.71295553",
"0.71292794",
"0.7102893",
"0.7063634",
"0.70292026",
"0.6... | 0.7369327 | 8 |
Accessor method for Employee salary:double | public double getSalary() {
return this.salary;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract double salary();",
"public double getSalary(){\r\n return salary;\r\n }",
"public double getSalary() {\r\n return salary;\r\n }",
"@Override\r\n public double getSalary() {\r\n return salary;\r\n }",
"public double getSalary() {\n return salary;\n }",
... | [
"0.8032896",
"0.7938929",
"0.786293",
"0.78363365",
"0.7784215",
"0.7784215",
"0.7784215",
"0.7613742",
"0.7440015",
"0.7433716",
"0.7429135",
"0.7376578",
"0.733728",
"0.7300898",
"0.72619116",
"0.72373176",
"0.72307116",
"0.7228664",
"0.7145202",
"0.71403944",
"0.71039534",... | 0.76544434 | 7 |
toString() to serialize the Employee object | public String toString() {
return "Name :" + this.name + "\n" +
"Salary :" + this.salary;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\npublic String toString()\n{\n Employee emp = new Employee();\n \n StringBuilder sb = new StringBuilder();\n sb.append(\"Employee{\");\n sb.append(\"Name=\");\n sb.append(emp.getName());\n sb.append(\",Salary complement=\");\n sb.append(emp.getSalary_complement());\n sb.append(... | [
"0.7873248",
"0.7860632",
"0.7827513",
"0.7681162",
"0.7623255",
"0.75875026",
"0.74455684",
"0.7437806",
"0.74256957",
"0.7421667",
"0.72273153",
"0.7221301",
"0.7200863",
"0.71064",
"0.7032678",
"0.69412714",
"0.6922281",
"0.6920468",
"0.6915868",
"0.6875749",
"0.68732214",... | 0.65270454 | 46 |
Constructor method: The super method calls the constructor of the super class that this one is extending, in this case Entity; | public Taxi(Game game,int pos) {
//Every taxi will have the same size;
//Its y position will be in one of the five lines that the road has, when y is 315,349,383,417, or 451 and it will be fixed;
//This position is defined according to the pos variable that is passed to it;
super(game,0,315+34*pos,car_width,car_height);
//Depending on the y position, it will start in one of the sides of the screen and move to the other one;
//This if statement also defines the image variable so that the right image is printed on the screen according to its direction;
if(y==417||y==451){
speed = game.getDefaultSpeed()+0.3f;
x=-width;
image = 1;
}
else{
speed = -(game.getDefaultSpeed()+0.3f);
x=game.getWidht()+width;
image = 0;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AbstractEntity() {\r\n\t}",
"@Override\n\tpublic void initEntity() {\n\n\t}",
"public ExcursionEntity() {\n\t}",
"protected Entity() {\n UID = GEN_COUNT;\n GEN_COUNT++;\n }",
"public ClientEntity(final Entity e) {\r\n\t\tsuper(e);\r\n\t}",
"public MapEntity() {\n\t}",
"protected... | [
"0.7928223",
"0.75041735",
"0.72660434",
"0.72646105",
"0.7203623",
"0.7176838",
"0.7118232",
"0.71175444",
"0.70924324",
"0.7078902",
"0.70149535",
"0.7002265",
"0.6942427",
"0.694109",
"0.69362766",
"0.69346166",
"0.69250405",
"0.6794834",
"0.67552626",
"0.67531693",
"0.671... | 0.0 | -1 |
The tick method upgrades the x position; | @Override
public void tick() {
x+=speed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void tick() {\n setPosition(getPosition().add(getSpeed())); \n }",
"public void tick() {\r\n tick++;\r\n }",
"public void tick() {\r\n }",
"public void tick() {\n\t}",
"public void tick() {\n\t}",
"public void tick(double dt) {\n }",
"public v... | [
"0.7179148",
"0.6937885",
"0.68934786",
"0.6887251",
"0.6887251",
"0.6798232",
"0.6781647",
"0.67666006",
"0.67663205",
"0.6737213",
"0.66964805",
"0.6694993",
"0.66818947",
"0.66773254",
"0.66773254",
"0.6674831",
"0.6669854",
"0.6657293",
"0.66499406",
"0.66342443",
"0.6633... | 0.7626835 | 0 |
The render method draws the car figure on the screen according the object's variables; | @Override
public void render(Graphics g) {
g.drawImage(Assets.taxi[image],(int)x,(int)y,width,height,null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void render()\n\t{\n\t\tBufferStrategy bs = this.getBufferStrategy();\n\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t//////////////////////////////\n\n\t\tg.setColor(Color.DARK_GRAY);\n\t\tg.fillRect(0, 0, getWidth(), getHei... | [
"0.725019",
"0.70780843",
"0.7074566",
"0.7002531",
"0.69197834",
"0.6902398",
"0.68423015",
"0.68253976",
"0.68139553",
"0.68067414",
"0.67462623",
"0.6743931",
"0.67210674",
"0.6704528",
"0.66675663",
"0.6660446",
"0.6648865",
"0.6616743",
"0.66151917",
"0.6614674",
"0.6580... | 0.0 | -1 |
Find a user by username (ID). | public static User findById(final String id) {
return find.byId(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String searchForUser() {\n String userId = \"\";\n String response = given().\n get(\"/users\").then().extract().asString();\n List usernameId = from(response).getList(\"findAll { it.username.equals(\\\"Samantha\\\") }.id\");\n if (!usernameId.isEmpty()) {\n ... | [
"0.74831307",
"0.74673724",
"0.7457609",
"0.74552417",
"0.7405736",
"0.7378608",
"0.73463243",
"0.732561",
"0.7311528",
"0.7304803",
"0.72989434",
"0.72952276",
"0.72898626",
"0.72760457",
"0.725628",
"0.7210345",
"0.7208507",
"0.72048515",
"0.71990424",
"0.71990424",
"0.7199... | 0.7015397 | 57 |
Getters for private fields. Get the user's username. | public final String getUsername() {
return username;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getUsername() {\n\t\treturn user.getUserName();\n\t}",
"@Override\n\tpublic String getUsername() {\n\t\treturn user.getUsername();\n\t}",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
... | [
"0.8776395",
"0.8764648",
"0.87266475",
"0.87266475",
"0.87266475",
"0.87266475",
"0.87266475",
"0.87266475",
"0.87266475",
"0.87266475",
"0.87266475",
"0.8561081",
"0.8490159",
"0.8466298",
"0.84520197",
"0.8449422",
"0.84479076",
"0.8438018",
"0.8438018",
"0.8438018",
"0.84... | 0.8570564 | 11 |
Get the user's password. | public final String getPwd() {
return pwd;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUserPassword() {\n return sp.getString(USER_PASSWORD, null);\n }",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",... | [
"0.8620893",
"0.85270166",
"0.85270166",
"0.85270166",
"0.85270166",
"0.85270166",
"0.85270166",
"0.85270166",
"0.8495053",
"0.8456269",
"0.8424683",
"0.8390042",
"0.8266791",
"0.8264527",
"0.8257194",
"0.81813365",
"0.81813365",
"0.81813365",
"0.81813365",
"0.81813365",
"0.8... | 0.0 | -1 |
Get the user's email. | public final String getEmail() {
return email;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getEmail() {\n return sp.getString(USER_EMAIL, null);\n }",
"public String getUserEmail() {\n return sharedPreferences.getString(PREFERENCE_USER_EMAIL, \"\");\n }",
"public java.lang.String getUserEmail() {\r\n return userEmail;\r\n }",
"java.lang.String getUserEma... | [
"0.86120063",
"0.85268533",
"0.84074444",
"0.83859634",
"0.82194865",
"0.82194865",
"0.8212644",
"0.81850606",
"0.8159206",
"0.8131478",
"0.8000747",
"0.79372257",
"0.79372257",
"0.79372257",
"0.79372257",
"0.79372257",
"0.79372257",
"0.7781538",
"0.7713862",
"0.7676125",
"0.... | 0.784653 | 17 |
Get the user's name. | public final String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName() {\n return user.getName();\n }",
"java.lang.String getUserName();",
"java.lang.String getUserName();",
"java.lang.String getUserName();",
"public static String getUserDisplayName() {\r\n return getUsername();\r\n }",
"public String getUserName(){\n retur... | [
"0.85959816",
"0.83824563",
"0.83824563",
"0.83824563",
"0.8300134",
"0.8108952",
"0.81040084",
"0.808289",
"0.8034339",
"0.7992838",
"0.79712296",
"0.7964637",
"0.7964302",
"0.7964302",
"0.7909971",
"0.7898714",
"0.7898714",
"0.7898714",
"0.7898714",
"0.7898714",
"0.7898714"... | 0.0 | -1 |
Get the user's phone. | public final String getPhone() {
return phone;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUserPhone() {\r\n return userPhone;\r\n }",
"java.lang.String getUserPhone();",
"public String getUserphone() {\n return userphone;\n }",
"public java.lang.String getUserPhone() {\n java.lang.Object ref = userPhone_;\n if (ref instanceof java.lang.String) {\n ... | [
"0.8347676",
"0.8266643",
"0.8264955",
"0.803451",
"0.7970938",
"0.78779554",
"0.7671151",
"0.7652645",
"0.75387514",
"0.75387514",
"0.7524763",
"0.7517015",
"0.7516492",
"0.75154704",
"0.7513922",
"0.74647105",
"0.7440056",
"0.74283695",
"0.74283695",
"0.7420205",
"0.7420205... | 0.778447 | 6 |
Get the user's address. | public final String getAddress() {
return address;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }",
"publi... | [
"0.78404266",
"0.78404266",
"0.78404266",
"0.78404266",
"0.78404266",
"0.78404266",
"0.7742936",
"0.7742936",
"0.7713219",
"0.7713219",
"0.75084084",
"0.7403598",
"0.7363259",
"0.735708",
"0.7310786",
"0.7310786",
"0.7310786",
"0.7310786",
"0.7310786",
"0.7310786",
"0.7310786... | 0.7519209 | 10 |
Get the user's status (locked/unlocked). | public final boolean getLocked() {
return locked;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"UserStatus getStatus();",
"public String getUserStatus() {\n return userStatus;\n }",
"public java.lang.String getUserStatus() {\r\n return userStatus;\r\n }",
"public java.lang.String getUserStatus() {\n return userStatus;\n }",
"public Byte getUserStatus() {\r\n retur... | [
"0.7875201",
"0.7525775",
"0.74889946",
"0.7482413",
"0.71392006",
"0.68596226",
"0.66535276",
"0.6488028",
"0.6427219",
"0.64098495",
"0.6371121",
"0.6357227",
"0.6261525",
"0.62611556",
"0.6230169",
"0.6205608",
"0.61646473",
"0.607527",
"0.60471386",
"0.60471386",
"0.60025... | 0.0 | -1 |
Get the user's roles. | public final String getRoles() {
return roles;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Collection<Role> getRoles();",
"List<Role> getRoles();",
"List<String> getRoles();",
"public List<Role> getRole() {\n\t\treturn userDao.getRole();\r\n\t}",
"@NotNull\r\n Collection<String> getRoles();",
"public Set<String> getUserRoles() {\n\t\treturn userRoles;\n\t}",
"public String getRoles() {\n ... | [
"0.79742193",
"0.78886163",
"0.78689635",
"0.7740486",
"0.7699663",
"0.7631515",
"0.7615758",
"0.75374985",
"0.7535199",
"0.75174904",
"0.75174904",
"0.748376",
"0.74769247",
"0.7460217",
"0.74586475",
"0.7455699",
"0.7431652",
"0.74281067",
"0.73971725",
"0.73964536",
"0.735... | 0.77138054 | 4 |
Get the user's cart. | public final List<Item> getCart() {
return cart;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Cart getCartForUser(String userId);",
"public static HashMap<Integer,Item> getUserCart(){\n\t\treturn userCart;\n\t}",
"public ShoppingCart getShoppingCart(String userid) {\n\t\t ShoppingCart cartReturn = null;\r\n\t\t ShoppingCart detached = null;\r\n\t\t PersistenceManager pm = PMF.get().getPersistenceManage... | [
"0.8168798",
"0.7891922",
"0.7356329",
"0.7229507",
"0.7137198",
"0.71329874",
"0.6931039",
"0.67374915",
"0.6731947",
"0.6703449",
"0.6656691",
"0.65346104",
"0.6518964",
"0.6507017",
"0.6467167",
"0.644232",
"0.63951814",
"0.63947123",
"0.638611",
"0.6239006",
"0.62291086",... | 0.7564057 | 2 |
Setters for private fields. Set the user's username. | public final void setUsername(final String usernameNew) {
this.username = usernameNew;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void setUsername(final String value) {\n username = value;\n }",
"public void setUsername(String aUsername) {\n username = aUsername;\n }",
"public void setUsername(String username)\r\n/* 16: */ {\r\n/* 17:34 */ this.username = username;\r\n/* 18: */ }",
"public s... | [
"0.82215023",
"0.8215306",
"0.8145799",
"0.81415915",
"0.81393206",
"0.8068124",
"0.80548024",
"0.8053738",
"0.80094856",
"0.79984134",
"0.7963331",
"0.7947644",
"0.7942574",
"0.79371643",
"0.79104084",
"0.79057294",
"0.7904089",
"0.7904089",
"0.7900829",
"0.78946173",
"0.789... | 0.7739685 | 56 |
Set the user's password. | public final void setPwd(final String pwdNew) {
this.pwd = pwdNew;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setPassword(String password);",
"void setPassword(String password);",
"void setPassword(String password);",
"public void setPassword(String pass);",
"public void setPassword(java.lang.String newPassword);",
"public void setPassword(String pw)\n {\n this.password = pw;\n }",
"void setP... | [
"0.8346464",
"0.8346464",
"0.8346464",
"0.82894814",
"0.82672787",
"0.8146895",
"0.8051694",
"0.7938337",
"0.7930545",
"0.790223",
"0.78292",
"0.7784644",
"0.77339566",
"0.773027",
"0.7691964",
"0.7684532",
"0.7674502",
"0.7626594",
"0.762369",
"0.762369",
"0.7607724",
"0.7... | 0.0 | -1 |
Set the user's email. | public final void setEmail(final String emailNew) {
this.email = emailNew;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUserEmail(String userEmail) {\r\n this.userEmail = userEmail;\r\n }",
"public void setUserEmail(java.lang.String userEmail) {\r\n this.userEmail = userEmail;\r\n }",
"public Builder setUserEmail(\n java.lang.String value) {\n if (value == null) {\n throw ne... | [
"0.8137212",
"0.81095475",
"0.7865961",
"0.7750926",
"0.7750926",
"0.77261895",
"0.77087784",
"0.76412266",
"0.76412266",
"0.7614026",
"0.7550166",
"0.75171804",
"0.7505615",
"0.7497264",
"0.7479496",
"0.73625314",
"0.73510283",
"0.7346008",
"0.7333933",
"0.731357",
"0.729830... | 0.702621 | 52 |
Set the user's name. | public final void setName(final String nameNew) {
this.name = nameNew;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }",
"public void setUser_name(String user_name) {\n this.user_name = user_name;\n }",
"public void setUserName(String name) {\r\n\t\tthis.userName = name;\r\n\t}",
"public void setUser_name(String u... | [
"0.84257454",
"0.7932874",
"0.79024917",
"0.7897156",
"0.787129",
"0.7807065",
"0.7673434",
"0.7654664",
"0.76335084",
"0.7613505",
"0.76007926",
"0.76007926",
"0.75549525",
"0.7551918",
"0.75472647",
"0.75425035",
"0.7483327",
"0.7478764",
"0.7452691",
"0.74293584",
"0.74211... | 0.0 | -1 |
Set the user's phone. | public final void setPhone(final String phoneNew) {
this.phone = phoneNew;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUserPhone( String userPhone )\n {\n this.userPhone = userPhone;\n }",
"public void setPhone(String phone);",
"public Builder setUserPhone(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n ... | [
"0.83070445",
"0.7803242",
"0.76496816",
"0.76323885",
"0.75772697",
"0.7551367",
"0.75365144",
"0.7520726",
"0.7520726",
"0.7499745",
"0.7446902",
"0.74317265",
"0.7423424",
"0.7402997",
"0.7386033",
"0.7386033",
"0.7386033",
"0.7386033",
"0.7386033",
"0.7386033",
"0.7386033... | 0.7041815 | 39 |
Set the user's address. | public final void setAddress(final String addressNew) {
this.address = addressNew;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAddress(String address);",
"public void setAddress(String address);",
"public void setAddress(String address);",
"public void setAddress(String address);",
"private void setPrefAddress( String addr ) {\n\t\tmPreferences.edit().putString( PREF_ADDR, addr ).commit();\n\t}",
"public void setA... | [
"0.7714997",
"0.7714997",
"0.7714997",
"0.7714997",
"0.74079484",
"0.73652434",
"0.73536086",
"0.73421115",
"0.73421115",
"0.73421115",
"0.72762",
"0.72551554",
"0.72433543",
"0.7219008",
"0.72175217",
"0.7207802",
"0.7159841",
"0.7159841",
"0.7154231",
"0.7154231",
"0.715423... | 0.0 | -1 |
Set the user's status. | public final void setLocked(final boolean lockedNew) {
this.locked = lockedNew;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setStatus(final UserStatus status);",
"public void setUserStatus(java.lang.String userStatus) {\r\n this.userStatus = userStatus;\r\n }",
"public void setUserStatus(java.lang.String userStatus) {\n this.userStatus = userStatus;\n }",
"public void setUserStatus(Byte userStatus) {\r\n ... | [
"0.85865045",
"0.81764257",
"0.81420314",
"0.7913464",
"0.76811063",
"0.73549163",
"0.7352706",
"0.72962666",
"0.7286266",
"0.72784334",
"0.72714454",
"0.7196292",
"0.70687515",
"0.7048485",
"0.702825",
"0.702825",
"0.6963758",
"0.6948152",
"0.6869246",
"0.68633896",
"0.68555... | 0.0 | -1 |
Set the user's status. | public final void setRoles(final String roles) {
this.roles = roles;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setStatus(final UserStatus status);",
"public void setUserStatus(java.lang.String userStatus) {\r\n this.userStatus = userStatus;\r\n }",
"public void setUserStatus(java.lang.String userStatus) {\n this.userStatus = userStatus;\n }",
"public void setUserStatus(Byte userStatus) {\r\n ... | [
"0.85865045",
"0.81764257",
"0.81420314",
"0.7913464",
"0.76811063",
"0.73549163",
"0.7352706",
"0.72962666",
"0.7286266",
"0.72784334",
"0.72714454",
"0.7196292",
"0.70687515",
"0.7048485",
"0.702825",
"0.702825",
"0.6963758",
"0.6948152",
"0.6869246",
"0.68633896",
"0.68555... | 0.0 | -1 |
Set the user's cart. | public final void setCart(final List<Item> cartNew) {
this.cart = cartNew;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCart(Cart cart){\n\t\tthis.cart = cart;\n\t}",
"public void setCart(Map<String, Integer> cart) {\n this.cart = cart;\n }",
"@Override\n\tpublic int updateCartByUserId(Cart cart) {\n\t\treturn cartDao.updateCartByUserId(cart);\n\t}",
"public void Cart() {\r\n\t\tthis.cart.click();\r\n... | [
"0.73272383",
"0.67824215",
"0.63782024",
"0.6261307",
"0.6254854",
"0.61374843",
"0.6106224",
"0.6092453",
"0.60003734",
"0.597386",
"0.5947386",
"0.58877283",
"0.58515906",
"0.58273816",
"0.5809817",
"0.5792152",
"0.57196414",
"0.56942165",
"0.5689916",
"0.5679028",
"0.5652... | 0.6901254 | 1 |
snapshot.getChildren().iterator().next().getKey(); System.out.println("doxx" + key); | @Override
public void onDataChange(@NonNull DataSnapshot snapshot) {
arrayList.clear();
for(DataSnapshot dataSnapshot1 : snapshot.getChildren()) {
String key = dataSnapshot1.getKey();
if(key.length() ==20){
EmployeeInfo test = new EmployeeInfo();
test.setpotential((String) dataSnapshot1.child("potential").getValue());
test.setstartUpName(dataSnapshot1.child("startUpName").getValue(String.class));
test.setbuildTime(dataSnapshot1.child("buildTime").getValue(String.class));
arrayList.add(test);
}
}
update();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"K getFirstLeafKey() {\r\n return children.get(0).keys.get(0);\r\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n HashMap<String,MapElements> testing1 = new HashMap<String, MapElements>();\n\n for(DataSnapshot snapshot:dataSnapsh... | [
"0.64211595",
"0.6409309",
"0.61463606",
"0.61104625",
"0.6083104",
"0.6075562",
"0.597655",
"0.5915126",
"0.5909461",
"0.5906881",
"0.58946353",
"0.588822",
"0.588822",
"0.588822",
"0.588822",
"0.5887503",
"0.5863014",
"0.5846051",
"0.5838977",
"0.5803631",
"0.578765",
"0.... | 0.0 | -1 |
below 3 lines of code is used to set data in our object class. | private void addDatatoFirebase(String name, String phone, String address) {
employeeInfo.setstartUpName(name);
employeeInfo.setpotential(phone);
employeeInfo.setbuildTime(address);
String id = databaseReference.push().getKey();
assert id != null;
databaseReference.child(id).setValue(employeeInfo);
// we are use add value event listener method
// which is called with database reference.
// databaseReference.addValueEventListener(new ValueEventListener() {
// @Override
// public void onDataChange(@NonNull DataSnapshot snapshot) {
// // inside the method of on Data change we are setting
// // our object class to our database reference.
// // data base reference will sends data to firebase.
// databaseReference.setValue(employeeInfo);
//
// // after adding this data we are showing toast message.
// Toast.makeText(MainActivity.this, "data added", Toast.LENGTH_SHORT).show();
// }
//
//
// @Override
// public void onCancelled(@NonNull DatabaseError error) {
// // if the data is not added or it is cancelled then
// // we are displaying a failure toast message.
// Toast.makeText(MainActivity.this, "Fail to add data " + error, Toast.LENGTH_SHORT).show();
// }
// });
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setData (Object newData) { /* package access */ \n\t\tdata = newData;\n\t}",
"void setData(Object data);",
"void setData (Object data);",
"@Override\r\n\tprotected void setData(Object data) {\n\t\t\r\n\t}",
"public void setData(Object oData) { m_oData = oData; }",
"public void setData(Object data) {... | [
"0.75926125",
"0.74074304",
"0.73948795",
"0.7352654",
"0.72803205",
"0.72269046",
"0.71767575",
"0.71767575",
"0.71767575",
"0.71767575",
"0.71767575",
"0.71767575",
"0.7133199",
"0.71258324",
"0.71140295",
"0.70975447",
"0.7092593",
"0.70860547",
"0.70567745",
"0.70530885",
... | 0.0 | -1 |
Creacion del constructor donde se agregan los elementos a la interfaz grafica | public Circulo() {
setLayout(null);
setTitle("Figurative");
menubarcrc = new JMenuBar();
setJMenuBar(menubarcrc);
getContentPane().setBackground(fondoCro);
// Creacion del pequeño menu
menu1crc = new JMenu("Opciones");
menubarcrc.add(menu1crc);
menu2crc = new JMenu("Tema");
menu1crc.add(menu2crc);
jmi1crc = new JMenuItem("Claro");
menu2crc.add(jmi1crc);
jmi1crc.addActionListener(this);
jmi2crc = new JMenuItem("Oscuro");
menu2crc.add(jmi2crc);
jmi2crc.addActionListener(this);
// Creacion de los sliders
slRCrc = new JSlider();
slRCrc.setBounds(115, 360, 255, 15);
slRCrc.setBackground(new Color(245, 245, 245));
slRCrc.setValue(0);
slRCrc.setMaximum(255);
slRCrc.setMajorTickSpacing(1);
// Metodo que implementa la funcion de los sliders
slRCrc.addChangeListener(new javax.swing.event.ChangeListener() {
@Override
public void stateChanged(ChangeEvent sRc) {
cambiarColorCrc();
}
});
add(slRCrc);
slGCrc = new JSlider();
slGCrc.setBounds(115, 410, 255, 15);
slGCrc.setBackground(new Color(245, 245, 245));
slGCrc.setValue(0);
slGCrc.setMaximum(255);
slGCrc.setMajorTickSpacing(1);
add(slGCrc);
slGCrc.addChangeListener(new javax.swing.event.ChangeListener() {
@Override
public void stateChanged(ChangeEvent sRc) {
cambiarColorCrc();
}
});
slBCrc = new JSlider();
slBCrc.setBounds(115, 454, 255, 15);
slBCrc.setBackground(new Color(245, 245, 245));
slBCrc.setValue(0);
slBCrc.setMaximum(255);
slBCrc.setMajorTickSpacing(1);
add(slBCrc);
slBCrc.addChangeListener(new javax.swing.event.ChangeListener() {
@Override
public void stateChanged(ChangeEvent sRc) {
cambiarColorCrc();
}
});
// Creacion de los componentes del JFrame
jl1c = new JLabel("Figura seleccionada: Circulo");
jl1c.setBounds(85, 40, 250, 20);
jl1c.setFont(new Font("Verdana", Font.BOLD, 14));
jl1c.setForeground(new Color(0, 0, 0));
add(jl1c);
jl12c = new JLabel("Radio: ");
jl12c.setBounds(40, 77, 250, 20);
jl12c.setForeground(new Color(0, 0, 0));
jl12c.setFont(new Font("Verdana", Font.BOLD, 13));
add(jl12c);
jl2c = new JLabel("Fórmula: πr²");
jl2c.setBounds(40, 178, 250, 20);
jl2c.setForeground(new Color(0, 0, 0));
jl2c.setFont(new Font("Verdana", Font.BOLD, 14));
add(jl2c);
jlDiametro = new JLabel("Diametro: ");
jlDiametro.setBounds(40, 218, 250, 20);
jlDiametro.setForeground(new Color(0, 0, 0));
jlDiametro.setFont(new Font("Verdana", Font.BOLD, 13));
add(jlDiametro);
jl3c = new JLabel("Perimetro: ");
jl3c.setBounds(40, 263, 250, 20);
jl3c.setForeground(new Color(0, 0, 0));
jl3c.setFont(new Font("Verdana", Font.BOLD, 13));
add(jl3c);
jl4c = new JLabel("Area: ");
jl4c.setBounds(40, 308, 250, 20);
jl4c.setForeground(new Color(0, 0, 0));
jl4c.setFont(new Font("Verdana", Font.BOLD, 13));
add(jl4c);
jl5c = new JLabel("Rojo: ");
jl5c.setBounds(40, 353, 250, 20);
jl5c.setForeground(new Color(0, 0, 0));
jl5c.setFont(new Font("Verdana", Font.BOLD, 13));
add(jl5c);
jl6c = new JLabel("Verde: ");
jl6c.setBounds(40, 404, 250, 20);
jl6c.setForeground(new Color(0, 0, 0));
jl6c.setFont(new Font("Verdana", Font.BOLD, 13));
add(jl6c);
jl7c = new JLabel("Azul: ");
jl7c.setBounds(40, 445, 250, 20);
jl7c.setForeground(new Color(0, 0, 0));
jl7c.setFont(new Font("Verdana", Font.BOLD, 13));
add(jl7c);
jRCr = new JLabel("R: 0");
jRCr.setBounds(55, 485, 60, 25);
jRCr.setForeground(new Color(0, 0, 0));
jRCr.setFont(new Font("Verdana", Font.BOLD, 13));
add(jRCr);
jVCr = new JLabel("G: 0");
jVCr.setBounds(155, 485, 60, 25);
jVCr.setForeground(new Color(0, 0, 0));
jVCr.setFont(new Font("Verdana", Font.BOLD, 13));
add(jVCr);
jACr = new JLabel("B: 0");
jACr.setBounds(255, 485, 60, 25);
jACr.setForeground(new Color(0, 0, 0));
jACr.setFont(new Font("Verdana", Font.BOLD, 13));
add(jACr);
txtRadio = new JTextField("Ingresa el valor del radio");
txtRadio.setEditable(false);
txtRadio.setBounds(115, 79, 250, 20);
txtRadio.setBackground(new Color(245, 245, 245));
txtRadio.setForeground(new Color(0, 0, 0));
txtRadio.setBorder(null);
txtRadio.setVisible(true);
add(txtRadio);
btnEditarCrc = new JButton("Editar");
btnEditarCrc.setBounds(50, 120, 130, 25);
btnEditarCrc.setBackground(new Color(156, 0, 188));
btnEditarCrc.setForeground(new Color(255, 255, 255));
btnEditarCrc.addActionListener(this);
add(btnEditarCrc);
btninfCrc = new JButton("Enviar");
btninfCrc.setBounds(200, 120, 130, 25);
btninfCrc.setBackground(new Color(156, 0, 188));
btninfCrc.setForeground(new Color(255, 255, 255));
btninfCrc.addActionListener(this);
add(btninfCrc);
btnRegresarCrc = new JButton("Regresar");
btnRegresarCrc.setBounds(625, 455, 95, 20);
btnRegresarCrc.setBackground(new Color(156, 0, 188));
btnRegresarCrc.setForeground(new Color(255, 255, 255));
btnRegresarCrc.addActionListener(this);
add(btnRegresarCrc);
btnPruebaCrc = new JButton("Salir");
btnPruebaCrc.setBounds(625, 485, 95, 20);
btnPruebaCrc.addActionListener(this);
btnPruebaCrc.setBorder(null);
btnPruebaCrc.setBackground(new Color(156, 0, 188));
btnPruebaCrc.setForeground(new Color(255, 255, 255));
add(btnPruebaCrc);
// Textfields donde se arrojaran los resultados obtenidos
txtDiametroCrc = new JTextField("0 unidades");
txtDiametroCrc.setEditable(false);
txtDiametroCrc.setBounds(140, 219, 250, 20);
txtDiametroCrc.setBackground(new Color(245, 245, 245));
txtDiametroCrc.setForeground(new Color(0, 0, 0));
txtDiametroCrc.setVisible(true);
txtDiametroCrc.setBorder(null);
add(txtDiametroCrc);
txtPerimetroCrc = new JTextField("0 unidades");
txtPerimetroCrc.setEditable(false);
txtPerimetroCrc.setBounds(140, 264, 250, 20);
txtPerimetroCrc.setBackground(new Color(245, 245, 245));
txtPerimetroCrc.setForeground(new Color(0, 0, 0));
txtPerimetroCrc.setVisible(true);
txtPerimetroCrc.setBorder(null);
add(txtPerimetroCrc);
txtAreaCrc = new JTextField("0 unidades cuadradas");
txtAreaCrc.setEditable(false);
txtAreaCrc.setBounds(122, 310, 250, 20);
txtAreaCrc.setBackground(new Color(245, 245, 245));
txtAreaCrc.setForeground(new Color(0, 0, 0));
txtAreaCrc.setVisible(true);
txtAreaCrc.setBorder(null);
add(txtAreaCrc);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Alojamiento() {\r\n\t}",
"public Regla2(){ /*ESTE ES EL CONSTRUCTOR POR DEFECTO */\r\n\r\n /* TODAS LAS CLASES TIENE EL CONSTRUCTOR POR DEFECTO, A VECES SE CREAN AUTOMATICAMENTE, PERO\r\n PODEMOS CREARLOS NOSOTROS TAMBIEN SI NO SE HUBIERAN CREADO AUTOMATICAMENTE\r\n */\r\n \r\n }",
"priva... | [
"0.6847827",
"0.67226905",
"0.6657198",
"0.66085786",
"0.6603754",
"0.65981287",
"0.65848166",
"0.6581458",
"0.65709174",
"0.65637445",
"0.6543847",
"0.65429586",
"0.65407985",
"0.65398717",
"0.6506328",
"0.64864373",
"0.6436053",
"0.6434138",
"0.64288336",
"0.6421493",
"0.64... | 0.0 | -1 |
Metodo que cambia el color de la figura y del boton "vista previa" | public void cambiarColorCrc() {
R1 = slRCrc.getValue();
G1 = slGCrc.getValue();
B1 = slBCrc.getValue();
jRCr.setText("R: " + R1);
jVCr.setText("G: " + G1);
jACr.setText("B: " + B1);
color = new Color(R1,G1,B1);
btninfCrc.setBackground(color);
btnEditarCrc.setBackground(color);
btnPruebaCrc.setBackground(color);
btnRegresarCrc.setBackground(color);
repaint(); //Metodo que permite que la figura cambie de color en tiempo real
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"RGB getOldColor();",
"public Color getPrevColor(){\n\t\treturn prevColor;\n\t}",
"RGB getNewColor();",
"public void actionPerformed(ActionEvent event) {\r\n\t\t\t\tstatusValue.setText(\"Odbieram\");\r\n\t\t\t\tcolorChangeListener.set_receive(!colorChangeListener\r\n\t\t\t\t\t\t.is_receive());\r\n\t\t\t\ttry ... | [
"0.64304477",
"0.63824326",
"0.629192",
"0.62876374",
"0.62555027",
"0.6176361",
"0.61606276",
"0.6129454",
"0.6099475",
"0.6089791",
"0.6068857",
"0.6058579",
"0.60492885",
"0.60236645",
"0.60202307",
"0.60093695",
"0.59875494",
"0.59817004",
"0.5975275",
"0.59703326",
"0.59... | 0.64108735 | 1 |
Creacion de la interfaz | public void Circulo() {
Circulo crc = new Circulo();
crc.setBounds(0, 0, 765, 588);
crc.setResizable(false);
crc.setVisible(true);
crc.setLocationRelativeTo(null);
ImageIcon fig = new ImageIcon("src/images/figurative.png");
crc.setIconImage(fig.getImage());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Oracion createOracion();",
"Compleja createCompleja();",
"Obligacion createObligacion();",
"Compuesta createCompuesta();",
"public void inicializar();",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"I createI();",
"protected IPCGCallDeta... | [
"0.69470495",
"0.6880976",
"0.6781672",
"0.67364305",
"0.6555278",
"0.65371567",
"0.65249395",
"0.6508972",
"0.63846946",
"0.63704646",
"0.6362282",
"0.63448685",
"0.63299507",
"0.632039",
"0.6311343",
"0.6308178",
"0.6255065",
"0.62467617",
"0.6239063",
"0.6238922",
"0.62342... | 0.0 | -1 |
Metodos que permiten la funcionalidad del boton | @Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() == btninfCrc) {
try {
// El usuario no puede editar el cuadro de texto
txtRadio.setEditable(false);
double Radio = Double.parseDouble(txtRadio.getText());
r = Radio;
double diametro = Radio * 2;
double perimetroCrc = diametro * Math.PI;
double areaCrc = Math.PI * Math.pow(Radio, 2);
txtDiametroCrc.setText(diametro + " unidades");
txtPerimetroCrc.setText(perimetroCrc + " unidades");
txtAreaCrc.setText(areaCrc + " unidades cuadradas");
repaint();
} catch (Exception er) {
JOptionPane.showMessageDialog(null, "Ingresa valores numericos, por favor.", "Error",
JOptionPane.ERROR_MESSAGE, new ImageIcon("src/images/figJO.png"));
}
}
if (e.getSource() == btnRegresarCrc) {
this.setVisible(false);
GUI interfaz = new GUI();
interfaz.GUI();
}
if (e.getSource() == btnPruebaCrc) {
System.exit(0);
}
if (e.getSource() == btnEditarCrc ){
txtRadio.setEditable(true);
txtRadio.setText("");
txtDiametroCrc.setText("0 unidades");
txtPerimetroCrc.setText("0 unidades");
txtAreaCrc.setText("0 unidades cuadradas");
}
// Configuracion del modo claro
if (e.getSource() == jmi1crc) {
getContentPane().setBackground(fondoCro);
btninfCrc.setBackground(lila);
btnPruebaCrc.setBackground(lila);
btnRegresarCrc.setBackground(lila);
btnEditarCrc.setBackground(lila);
jlDiametro.setForeground(negro);
jRCr.setForeground(negro);
jVCr.setForeground(negro);
jACr.setForeground(negro);
jl1c.setForeground(negro);
jl12c.setForeground(negro);
jl2c.setForeground(negro);
jl3c.setForeground(negro);
jl4c.setForeground(negro);
jl5c.setForeground(negro);
jl6c.setForeground(negro);
jl7c.setForeground(negro);
slRCrc.setBackground(fondoCro);
slGCrc.setBackground(fondoCro);
slBCrc.setBackground(fondoCro);
txtRadio.setBackground(fondoCro);
txtRadio.setForeground(negro);
txtDiametroCrc.setBackground(fondoCro);
txtPerimetroCrc.setBackground(fondoCro);
txtAreaCrc.setBackground(fondoCro);
txtDiametroCrc.setForeground(negro);
txtPerimetroCrc.setForeground(negro);
txtAreaCrc.setForeground(negro);
}
// Configuracion del modo oscuro
if (e.getSource() == jmi2crc) {
getContentPane().setBackground(new Color(52, 52, 52));
btninfCrc.setBackground(gris);
btnPruebaCrc.setBackground(gris);
btnRegresarCrc.setBackground(gris);
btnEditarCrc.setBackground(gris);
jlDiametro.setForeground(blanco);
jRCr.setForeground(blanco);
jVCr.setForeground(blanco);
jACr.setForeground(blanco);
jl1c.setForeground(blanco);
jl12c.setForeground(blanco);
jl2c.setForeground(blanco);
jl3c.setForeground(blanco);
jl4c.setForeground(blanco);
jl5c.setForeground(blanco);
jl6c.setForeground(blanco);
jl7c.setForeground(blanco);
slRCrc.setBackground(fondoOsc);
slGCrc.setBackground(fondoOsc);
slBCrc.setBackground(fondoOsc);
txtRadio.setBackground(fondoOsc);
txtRadio.setForeground(blanco);
txtDiametroCrc.setBackground(fondoOsc);
txtPerimetroCrc.setBackground(fondoOsc);
txtAreaCrc.setBackground(fondoOsc);
txtDiametroCrc.setForeground(blanco);
txtPerimetroCrc.setForeground(blanco);
txtAreaCrc.setForeground(blanco);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void enableBotonAceptar()\r\n\t{\r\n\t\t\r\n\t}",
"private void botonFuncional(JButton Boton){\n \n if(!caraUp){\n Boton.setEnabled(false);\n imagen1 =(ImageIcon) Boton.getDisabledIcon();\n v[0] = Boton;\n caraUp = true;\n cara1 = false... | [
"0.60324633",
"0.59694684",
"0.5820106",
"0.5727316",
"0.57239324",
"0.5617491",
"0.5503561",
"0.54853463",
"0.53709936",
"0.53461194",
"0.5269491",
"0.5261448",
"0.5254888",
"0.51833785",
"0.5162315",
"0.51604325",
"0.5145741",
"0.514568",
"0.5138896",
"0.5136767",
"0.512785... | 0.0 | -1 |
Retrieves the BLOB from the store | Blob getBlob(BlobStoreContext blobStoreContext, CloudPath path, GetOptionFileAttribute getOption); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Blob getContentBlob() {\n return Hibernate.createBlob(this.content);\n }",
"BlobStore getBlobStore();",
"Object getBlob(ResultSet rs, int pos)\r\n throws Exception;",
"public abstract Blob readBlob(User user);",
"private static ByteString readImageBytes(BlobKey blobKey) throws IOExcept... | [
"0.69133854",
"0.6493325",
"0.64890575",
"0.64862394",
"0.63615805",
"0.6284206",
"0.6255777",
"0.61542803",
"0.61359984",
"0.61224264",
"0.60837704",
"0.607866",
"0.60260975",
"0.59871364",
"0.59381497",
"0.5933863",
"0.5877834",
"0.5852901",
"0.5844133",
"0.5810062",
"0.580... | 0.6523814 | 1 |
Created by wd199 on 2017/6/13. | public interface RoundImgDao {
public int insertRoundImg(RoundImg roundImg);
public int updateRoundImg(RoundImg roundImg);
public RoundImg selectRoundImg(String imgId);
public List<RoundImg> selectRoundImgs(Page page);
public Integer selectRow();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r... | [
"0.60928327",
"0.5945465",
"0.5866571",
"0.58560354",
"0.5770648",
"0.5758202",
"0.5758202",
"0.5689253",
"0.5681032",
"0.56548756",
"0.5652781",
"0.5646596",
"0.5641407",
"0.56388634",
"0.56195873",
"0.56189924",
"0.56175977",
"0.56159395",
"0.561432",
"0.5602964",
"0.559606... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.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 |
Constructor. Set location and start listening for logins | public LocationService() {
Settings settings = Settings.getInstance();
this.location = settings.getLocation();
this.ebAddress = settings.getEbAddress();
this.ebPort = settings.getEbPort();
loggedIn = false;
observers = new ArrayList<IObserver>();
dbAdapter = InformationStorageFactory.getStorageAdapter();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void run() {\r\n\t\ttry {\r\n\t\t\teb = new EventBus(ebAddress, ebPort);\r\n\t\t\teb.start();\r\n\t\t\t// Add listener to listen for logins\r\n\t\t\tLoginListener loginListener = new LoginListener(location);\r\n\t\t\teb.addListener(loginListener);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TO... | [
"0.66184705",
"0.6443802",
"0.6339864",
"0.6289999",
"0.6183764",
"0.61753505",
"0.61543685",
"0.6087208",
"0.60561246",
"0.5988055",
"0.5964207",
"0.5958033",
"0.5937482",
"0.5891879",
"0.5885038",
"0.5839582",
"0.58262116",
"0.58223385",
"0.5794113",
"0.5781548",
"0.5767175... | 0.59228545 | 13 |
Run the service in its own thread using java.lang.Thread | @Override
public void run() {
try {
eb = new EventBus(ebAddress, ebPort);
eb.start();
// Add listener to listen for logins
LoginListener loginListener = new LoginListener(location);
eb.addListener(loginListener);
} catch (Exception e) {
// TODO: handle
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"Thread working\");\n\t\t\t}",
"@Override\r\n\tpublic void run() {\n\t\trunClient();\r\n\t}",
"public void run(){\n //logic to execute in a thread \n }",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t\ttest testt = new test();\r\... | [
"0.6926527",
"0.6880786",
"0.6799563",
"0.6780329",
"0.6753528",
"0.67394334",
"0.6734695",
"0.6699866",
"0.6662603",
"0.66608775",
"0.6636431",
"0.6611842",
"0.65918994",
"0.6584443",
"0.6561632",
"0.65434384",
"0.652145",
"0.6520045",
"0.6508953",
"0.65023345",
"0.64971584"... | 0.0 | -1 |
Get the currently logged in doctor | public Doctor getDoctor() {
return doctor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GET(DOCTOR_PATH)\n\tDoctor getCurrentDoctor();",
"Doctor getDoctor();",
"public String getDoctor() {\r\n return doctor;\r\n }",
"User getCurrentLoggedInUser();",
"public User getLoggedUser();",
"public static String getLoggedUser() {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getA... | [
"0.766219",
"0.67239904",
"0.6535316",
"0.6522912",
"0.63826966",
"0.6260815",
"0.62320757",
"0.6183083",
"0.61465985",
"0.6036204",
"0.60125625",
"0.59810716",
"0.59651047",
"0.5926205",
"0.59071094",
"0.5901596",
"0.58869976",
"0.5882174",
"0.58553004",
"0.58452076",
"0.583... | 0.7021985 | 1 |
set the currently logged in doctor | public void setDoctor(Doctor doctor) {
this.doctor = doctor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setLoggedIn(boolean arg0) {\n\t\t\n\t}",
"public void setDoctor(String doctor) {\r\n this.doctor = doctor;\r\n }",
"@GET(DOCTOR_PATH)\n\tDoctor getCurrentDoctor();",
"public void login() {\n\t\tloggedIn = true;\n\t}",
"public static void makeLogged() {\n\t\tMemberSessionFacade.... | [
"0.6559847",
"0.6475512",
"0.6451796",
"0.6331025",
"0.6109189",
"0.60208064",
"0.59281784",
"0.5924099",
"0.5875335",
"0.585873",
"0.5752535",
"0.57460064",
"0.57369924",
"0.5727216",
"0.5724996",
"0.56828046",
"0.5672308",
"0.5646547",
"0.5631072",
"0.5618354",
"0.561215",
... | 0.6506458 | 1 |
Called when a device is detected in the zone of this instance | private void deviceDetected(String btMac) {
// We only allow one doctor to be logged in at the same place
if (doctor == null) {
// Check db to see if it is a doctor if so log in
Doctor d = dbAdapter.getDoctor(btMac);
if (d != null) {
// Successful login
this.doctor = d;
this.doctor.setOnline(1);
doLogin();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onDeviceFound(TxRxScanResult scanResult);",
"public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {\n // add the device to the vector\n if (!vecDevices.contains(btDevice)) {\n vecDevices.addElement(btDevice);\n }\n }",
"private void deviceDetected(String btMac, String location) {\r\n\... | [
"0.6227267",
"0.59681785",
"0.5962695",
"0.5914375",
"0.58907527",
"0.5876521",
"0.58711207",
"0.5849292",
"0.5828412",
"0.582282",
"0.579252",
"0.57797617",
"0.5736197",
"0.5669474",
"0.5656829",
"0.56439847",
"0.5643757",
"0.5643278",
"0.56325454",
"0.56050104",
"0.5593728"... | 0.5664825 | 14 |
Called when a doctor has logged in (entered the zone) | private void doLogin() {
loggedIn = true;
doctor.setOnline(1);
// Set doctor as logged in
dbAdapter.updateDoctor(doctor);
// Get a list of currently logged in doctors
doctors = dbAdapter.getDoctors(this.doctor);
// Add listeners to keep the list updated
try {
eb.addListener(new LogoutListener(this.doctor.getMac(),
this.location));
eb.addListener(new DeviceDetectedListener());
eb.addListener(new DevicedMovedListener());
} catch (IOException e) {
// TODO: Handle
}
notifyObservers();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void loggedInUser() {\n\t\t\n\t}",
"public void login() {\n\t\tloggedIn = true;\n\t}",
"@Override\n public void onLoggedIn() {\n\n }",
"public void LogIn() {\n\t\t\r\n\t}",
"public void StartLogIn(){\n\t}",
"default void onLogon(SessionID sessionID) {\n }",
"@Override\n public void ... | [
"0.6831417",
"0.66095924",
"0.6509442",
"0.6465267",
"0.63468575",
"0.6262502",
"0.6259259",
"0.62275237",
"0.60826683",
"0.6082362",
"0.60796106",
"0.60761636",
"0.6065791",
"0.6062368",
"0.6028804",
"0.60097814",
"0.5968587",
"0.5963893",
"0.5951055",
"0.593997",
"0.5929188... | 0.7536516 | 0 |
Called when a doctor has logged out (left the zone) | private void doLogout() {
doctor.setOnline(0);
// Set doctor as logged out
dbAdapter.updateDoctor(doctor);
// Release objects and notify observers
loggedIn = false;
notifyObservers();
doctors = null;
doctor = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Logout() {\n \t\t\t\n \t\t}",
"@Override\n public void Logout() {\n\t \n }",
"public void onLogout() {\n ParseUser.logOut();\n\n promptForLogin();\n }",
"void onLogout(boolean loggedIn);",
"@Override\n public void loggedOut() {\n timeTables = new Timetables()... | [
"0.7077407",
"0.7044917",
"0.6981883",
"0.68389034",
"0.6834321",
"0.6825385",
"0.6821657",
"0.6773225",
"0.67486036",
"0.67337614",
"0.671771",
"0.6715081",
"0.66526055",
"0.66076124",
"0.6597165",
"0.654792",
"0.6532048",
"0.65284806",
"0.65175736",
"0.65175736",
"0.6495773... | 0.78610194 | 0 |
Called when a device is detected somewhere Use this method to keep the list of online doctors updated | private void deviceDetected(String btMac, String location) {
// If it is not this location
if (location != this.location) {
Doctor doctor = dbAdapter.getDoctor(btMac);
if (doctor != null) {
doctors.addDoctor(doctor);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ondeviceConnected() {\n if(isAdded() && !isDetached()) {\n if (RELOAD_CARD_NUMBERS[0] == 1) {\n new DailyVerseFetcher(getActivity()).execute(true);\n }\n if (RELOAD_CARD_NUMBERS[1] == 1) {\n new HomeSermonFetcher(getActivity()).execu... | [
"0.67772835",
"0.6262421",
"0.62025726",
"0.6134973",
"0.61243796",
"0.60900605",
"0.6075446",
"0.60536176",
"0.60185266",
"0.5991549",
"0.5975222",
"0.59521794",
"0.5886374",
"0.58167166",
"0.57847095",
"0.57844347",
"0.57719994",
"0.5745673",
"0.57415485",
"0.5696297",
"0.5... | 0.582819 | 13 |
Notify all observers of doctor login / logout; | public void notifyObservers() {
DoctorEvent evt;
if (loggedIn) {
evt = new DoctorEvent(DoctorEventType.LOGIN, doctor);
} else {
evt = new DoctorEvent(DoctorEventType.LOGOUT, doctor);
}
for (Iterator<IObserver> it = observers.iterator(); it.hasNext();) {
IObserver observer = (IObserver) it.next();
observer.onNotify(evt);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void doLogin() {\r\n\t\tloggedIn = true;\r\n\t\tdoctor.setOnline(1);\r\n\t\t// Set doctor as logged in\r\n\t\tdbAdapter.updateDoctor(doctor);\r\n\t\t// Get a list of currently logged in doctors\r\n\t\tdoctors = dbAdapter.getDoctors(this.doctor);\r\n\t\t// Add listeners to keep the list updated\r\n\t\ttry {... | [
"0.68958855",
"0.59477746",
"0.5925141",
"0.58645",
"0.58231306",
"0.5820291",
"0.5807781",
"0.5720592",
"0.5669098",
"0.56379044",
"0.55829734",
"0.5568793",
"0.55190706",
"0.55058616",
"0.54582334",
"0.54535145",
"0.54421896",
"0.5385933",
"0.5385933",
"0.5385933",
"0.53851... | 0.82066786 | 0 |
only need a getter | public BigDecimal getCoins() {
return coins;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void get() {}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"public void get() {\n }",
"@Override\n String get();",
"public abstract String get();",
"private Get() {}",
"private Get() {}",
"public String get();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
... | [
"0.7410197",
"0.72217387",
"0.70424896",
"0.6919601",
"0.6897705",
"0.67656106",
"0.67656106",
"0.6738898",
"0.6497959",
"0.6488874",
"0.64590627",
"0.6443297",
"0.6436846",
"0.6420251",
"0.64069855",
"0.64069855",
"0.6392397",
"0.6392397",
"0.6386733",
"0.6384543",
"0.636071... | 0.0 | -1 |
Created by duncancarroll on 5/20/15. | public interface ConnectionStateListener {
void onDisconnect();
void onConnect();
void onLogout();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}"... | [
"0.58889586",
"0.5788868",
"0.57222855",
"0.5680706",
"0.5653064",
"0.5637831",
"0.5637831",
"0.5634712",
"0.55903876",
"0.5542973",
"0.55311775",
"0.5513113",
"0.54915404",
"0.5484755",
"0.5484755",
"0.5484755",
"0.5484755",
"0.5484755",
"0.54829705",
"0.54749733",
"0.547462... | 0.0 | -1 |
file path where excel file placed, containing test data. | @DataProvider(name = "data")
public Object[][] testDataSupplier() throws Exception {
String filePath = "C:\\Users\\rekha\\OneDrive\\Desktop\\CP- SAT\\Screenshot\\Rediffdata.xlsx";
// read excel file using file input stream, using Apache POI
FileInputStream fis = new FileInputStream(new File(filePath));
XSSFWorkbook wb = new XSSFWorkbook(fis);
XSSFSheet sheet = wb.getSheet("Sheet1");
// calculate total number of rows and columns so that we can iterate over it.
int totalNumberOfRows = sheet.getLastRowNum()+1 ;
int totalNumberOfCols = sheet.getRow(0).getLastCellNum();
// create an object array. which will store the test data from excel file
Object[][] testdata1 = new Object[totalNumberOfRows][totalNumberOfCols];
for (int i = 1; i < totalNumberOfRows; i++) {
for (int j = 0; j < totalNumberOfCols; j++) {
testdata1[i][j] = sheet.getRow(i).getCell(j).toString();
}
}
return testdata1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void CreateTestResultFile()\n\t{ \n\t\tDate dNow = new Date( );\n\t\tSimpleDateFormat ft =new SimpleDateFormat (\"MMddYYYY\");\n\t\t\n\t\ttry \n\t\t{\n\t\t\tFileOutputStream fos = new FileOutputStream(System.getProperty(\"user.dir\")+\"//PG HealthCheck List_\"+ft.format(dNow)+\".xls\");\n\t HSSFWorkb... | [
"0.6748653",
"0.6401203",
"0.63532794",
"0.6314777",
"0.62147325",
"0.6209764",
"0.6142885",
"0.6134943",
"0.61217165",
"0.6116914",
"0.60603464",
"0.60574245",
"0.6035936",
"0.60164106",
"0.5979809",
"0.597269",
"0.5949154",
"0.5921801",
"0.5903027",
"0.5882857",
"0.58697146... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Evento buscar(Evento evento) {
return repository.getOne(evento.getId());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void inserir(Evento evento) {
repository.save(evento);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void alterar(Evento evento) {
repository.save(evento);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void excluir(Evento evento) {
repository.delete(evento);
} | {
"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<Evento> listar() {
return repository.findAll();
} | {
"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<Evento> listarDisponivelPorDataAsc() {
return repository.findByFimAfterToday(sortByInicioAsc());
} | {
"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 |
create default profile and save to Parse | private void createProfile(ParseUser parseUser){
final Profile profile = new Profile();
profile.setShortBio("");
profile.setLongBio("");
profile.setUser(parseUser);
//default image taken from existing default user
ParseQuery<ParseObject> query = ParseQuery.getQuery("Profile");
query.getInBackground("wa6q24VD5V", new GetCallback<ParseObject>() {
public void done(ParseObject searchProfile, ParseException e) {
if (e != null) {
Log.e(TAG, "Couldn't retrieve default image");
e.printStackTrace();
return;
}
else {
defaultImage = searchProfile.getParseFile("profileImage");
if (defaultImage != null)
profile.setProfileImage(defaultImage);
else
Log.d(TAG, "Default image is null");
}
}
});
profile.saveInBackground(new SaveCallback() {
@Override
public void done(ParseException e) {
if (e != null) {
Log.e(TAG, "Error while saving");
e.printStackTrace();
return;
}
Log.d(TAG, "Created and saved profile");
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveProfileCreateData() {\r\n\r\n }",
"@Override\n\tpublic long createProfile(Profile profile) {\n\t\treturn 0;\n\t}",
"public UserProfile createUserProfile(String username, UserProfile newProfile);",
"public void saveOrUpdateProfile(){\n try {\n \n if(PersonalData... | [
"0.6695678",
"0.666591",
"0.66472244",
"0.6285024",
"0.6164697",
"0.6117458",
"0.6110281",
"0.60977125",
"0.60905",
"0.5952966",
"0.5866254",
"0.58547777",
"0.5827868",
"0.58225745",
"0.5811116",
"0.5793382",
"0.57913053",
"0.5788621",
"0.57705534",
"0.57459867",
"0.5742134",... | 0.79784286 | 0 |
create default stats and save to Parse | private void createStats(ParseUser parseUser) {
Stats stats = new Stats();
stats.setUser(parseUser);
//default values
stats.setPStat1(1);
stats.setPStat2(1);
stats.setPStat3(1);
stats.setPStat4(1);
stats.setSStat1(1);
stats.setSStat2(1);
stats.setSStat3(1);
stats.setSStat4(1);
//default category preference
stats.setPreference("Rules");
stats.saveInBackground(new SaveCallback() {
@Override
public void done(ParseException e) {
if (e != null) {
Log.e(TAG, "Error while saving");
e.printStackTrace();
return;
}
Log.d(TAG, "Created and saved stats");
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveStats() {\n this.saveStats(null);\n }",
"public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}",
"public XmlWorkerUserstats(){\r\n \t\tthis.statsDS = new UserstatsDS();\r\n \t\titemResolver = new hModItemResolver(new File(statsDS.getDataFolder(),\"items.txt\"));\r\n \t\treso... | [
"0.64300877",
"0.60021824",
"0.58877826",
"0.5708775",
"0.5655757",
"0.56257564",
"0.55860776",
"0.55049664",
"0.5499596",
"0.54526204",
"0.5423238",
"0.5417412",
"0.5416409",
"0.538943",
"0.5338359",
"0.5318466",
"0.53178775",
"0.5303979",
"0.52834964",
"0.526706",
"0.525684... | 0.7411798 | 0 |
launch the main activity | private void goMainActivity() {
Intent i = new Intent(this, ProfileActivity.class);
startActivity(i);
//prevents user going back to this screen after signing up
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void launchMain() {\n\t\tfinal Intent i = new Intent(this, MainActivity.class);\n\t\tstartActivity(i);\n\t}",
"private void goToMain(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"private void goToMain(){\n Intent intent = new Intent(g... | [
"0.85378546",
"0.77371955",
"0.7732347",
"0.760375",
"0.7491485",
"0.74859697",
"0.7449985",
"0.7317437",
"0.72906345",
"0.7287022",
"0.7205348",
"0.71933174",
"0.717539",
"0.71633685",
"0.71445626",
"0.7136797",
"0.7092682",
"0.70723665",
"0.7069711",
"0.7044982",
"0.7028268... | 0.0 | -1 |
method to create a linkedlist | public static LinkedList_Details createList() {
System.out.print("\nEnter min length of list : ");
Scanner sc = new Scanner(System.in);
int len = sc.nextInt(); //take min length of list
int i = 0; //loop counter variable
int v; //list values will be assigned to this variable in loop
Node head = null; //head node declaration
Node temp = null; //temp node to keep track of node in loop
//If we dont want to enter list values manually, we can generate random values
System.out.println("\nDo you want enter your own values for the list? if Yes, enter 1 \nif No, enter 0");
Scanner rd_sc = new Scanner(System.in);
int rd_val = rd_sc.nextInt();
while (i <= len) {
if( i == len) {
System.out.println("\nYou have created a list of " + len + " values.");
System.out.println("Do you still want to enter values in the list?");
System.out.println("if Yes, enter the length by which you want to extend the list");
System.out.println("if No, enter 0");
Scanner li_sc = new Scanner(System.in);
int ext_len = li_sc.nextInt();
len = len + ext_len;
}
if(i < len){
if(rd_val == 0) {
Random rand = new Random();
v = rand.nextInt(1000);
}
else {
System.out.println("Enter a value for the list");
Scanner val_sc = new Scanner(System.in);
v = val_sc.nextInt();
}
if(head == null) { temp = new Node(v); head = temp; }
else {
temp.next = new Node(v);
temp = temp.next;
}
}
i++;
}
LinkedList_Details ld = new LinkedList_Details(len, head);
return ld;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static <T> LinkedList<T> createLinkedList() {\n \t\treturn new LinkedList<T>();\n \t}",
"public linkedList() { // constructs an initially empty list\r\n\r\n }",
"private static Node createLoopedList()\n {\n Node n1 = new Node(1);\n Node n2 = new Node(2);\n Node n3 = new Node(... | [
"0.74883455",
"0.74865776",
"0.7075867",
"0.7057939",
"0.70406705",
"0.7038185",
"0.70153344",
"0.6957937",
"0.6933814",
"0.69039774",
"0.6879183",
"0.68716127",
"0.6859648",
"0.6832458",
"0.6823302",
"0.68095577",
"0.67923117",
"0.6789556",
"0.6789313",
"0.67742664",
"0.6766... | 0.6384205 | 61 |
method to traverse a linkedlist | public static void traverseList(Node n) {
if(n == null) System.out.println("End of List");
else { System.out.print(n.val + " "); traverseList(n.next);}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public <T> void traverse(ArrayList<T> list);",
"public abstract LinkedList<Point> traverse(Grid grid);",
"private static Node traverseList(Node n){\n\t if(n == null)\n\t return null;\n\t if(n.visited)\n\t return n;\n\t \n\t n.visited = true;\n\t retu... | [
"0.7452012",
"0.6958313",
"0.6946197",
"0.6826587",
"0.6618442",
"0.659221",
"0.652824",
"0.64243937",
"0.63828427",
"0.6340761",
"0.6280012",
"0.62084556",
"0.6196818",
"0.61616045",
"0.6127007",
"0.6105538",
"0.6039082",
"0.60389584",
"0.6031592",
"0.5997055",
"0.599687",
... | 0.69494027 | 2 |
Creates new form WfsPanel | public WFSLayerPanel()
{
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }",
"private void addToPanel(){\n getContentPane().add(jdpFondo);\n jtpcContenedor.add(jtpPanel);\n\tjtpcContenedor.add(jtpPan... | [
"0.6648786",
"0.6611918",
"0.6588808",
"0.65808475",
"0.6525836",
"0.6515016",
"0.64967346",
"0.649279",
"0.64611626",
"0.63836426",
"0.63820946",
"0.63605154",
"0.6233764",
"0.62262803",
"0.6195569",
"0.61863136",
"0.6183496",
"0.6178838",
"0.61720836",
"0.6171549",
"0.61620... | 0.6290898 | 12 |
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() {
sectorGroup = new javax.swing.ButtonGroup();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
serviceUrl = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
featureTypeName = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
sectorGlobal = new javax.swing.JRadioButton();
sectorCustom = new javax.swing.JRadioButton();
sectorLbl1 = new javax.swing.JLabel();
sectorLatFrom = new javax.swing.JTextField();
sectorLbl2 = new javax.swing.JLabel();
sectorLatTo = new javax.swing.JTextField();
sectorLbl3 = new javax.swing.JLabel();
sectorLonFrom = new javax.swing.JTextField();
sectorLbl4 = new javax.swing.JLabel();
sectorLonTo = new javax.swing.JTextField();
jLabel9 = new javax.swing.JLabel();
maxDistance = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
tileDelta = new javax.swing.JTextField();
jLabel6 = new javax.swing.JLabel();
btnOk = new javax.swing.JButton();
btnCancel = new javax.swing.JButton();
btnColor = new javax.swing.JButton();
btnColor.setBackground(color);
featureLabelType = new javax.swing.JLabel();
featureLabelTypeName = new javax.swing.JTextField();
queryField = new javax.swing.JLabel();
queryValue = new javax.swing.JTextField();
showTrack = new javax.swing.JCheckBox();
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel1.setText("Import WFS features"); // NOI18N
jLabel2.setText("Service URL:"); // NOI18N
serviceUrl.setText("http://demo.luciad.com:8080/OgcAisServices/wfs?"); // NOI18N
serviceUrl.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
serviceUrlActionPerformed(evt);
}
});
jLabel3.setText("Feature type name:"); // NOI18N
featureTypeName.setText("AIS_US"); // NOI18N
jLabel4.setText("Sector:"); // NOI18N
sectorGroup.add(sectorGlobal);
sectorGlobal.setText("Global"); // NOI18N
sectorGlobal.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
sectorGlobalActionPerformed(evt);
}
});
sectorGroup.add(sectorCustom);
sectorCustom.setSelected(true);
sectorCustom.setText("Custom:"); // NOI18N
sectorCustom.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
sectorCustomActionPerformed(evt);
}
});
sectorLbl1.setText("Latitude -> From:"); // NOI18N
sectorLatFrom.setText("39"); // NOI18N
sectorLbl2.setText("To:"); // NOI18N
sectorLatTo.setText("42"); // NOI18N
sectorLatTo.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
sectorLatToActionPerformed(evt);
}
});
sectorLbl3.setText("Longitude -> From:"); // NOI18N
sectorLonFrom.setText("-74"); // NOI18N
sectorLbl4.setText("To:"); // NOI18N
sectorLonTo.setText("-70"); // NOI18N
jLabel9.setText("Max visible distance [km]:"); // NOI18N
maxDistance.setText("500"); // NOI18N
jLabel5.setText("Tile delta [degrees]:"); // NOI18N
tileDelta.setText("0.3"); // NOI18N
tileDelta.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
tileDeltaActionPerformed(evt);
}
});
jLabel6.setText("Color:"); // NOI18N
btnOk.setText("OK"); // NOI18N
btnOk.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnOkActionPerformed(evt);
}
});
btnCancel.setText("Cancel"); // NOI18N
btnCancel.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnCancelActionPerformed(evt);
}
});
btnColor.setText(" "); // NOI18N
btnColor.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnColorActionPerformed(evt);
}
});
featureLabelType.setText("Feature label type name:"); // NOI18N
java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("edu/du/ogc/ais/function/Bundle"); // NOI18N
queryField.setText(bundle.getString("WFSLayerPanel.queryField.text")); // NOI18N
queryValue.setText(bundle.getString("WFSLayerPanel.queryValue.text")); // NOI18N
showTrack.setText(bundle.getString("WFSLayerPanel.showTrack.text")); // NOI18N
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.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(jLabel2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(serviceUrl, javax.swing.GroupLayout.DEFAULT_SIZE, 349, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(featureTypeName, javax.swing.GroupLayout.DEFAULT_SIZE, 296, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(btnCancel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(btnOk, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(featureLabelType)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(featureLabelTypeName, javax.swing.GroupLayout.DEFAULT_SIZE, 251, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4)
.addComponent(sectorGlobal)
.addComponent(sectorCustom)
.addGroup(layout.createSequentialGroup()
.addGap(21, 21, 21)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addComponent(sectorLbl1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(sectorLatFrom, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(sectorLbl2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(sectorLatTo, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(sectorLbl3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(showTrack)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(maxDistance, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(sectorLonFrom, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE)
.addComponent(tileDelta, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(layout.createSequentialGroup()
.addComponent(sectorLbl4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(sectorLonTo, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(btnColor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))))))
.addComponent(jLabel9)
.addComponent(jLabel5)
.addComponent(jLabel1)
.addGroup(layout.createSequentialGroup()
.addComponent(queryField)
.addGap(18, 18, 18)
.addComponent(queryValue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(0, 0, Short.MAX_VALUE)))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(serviceUrl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(featureTypeName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(featureLabelType)
.addComponent(featureLabelTypeName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(jLabel4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(sectorGlobal)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(sectorCustom)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(sectorLbl1)
.addComponent(sectorLatFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(sectorLbl2)
.addComponent(sectorLatTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(sectorLbl3)
.addComponent(sectorLonFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(sectorLbl4)
.addComponent(sectorLonTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel9)
.addComponent(maxDistance, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6)
.addComponent(btnColor))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(tileDelta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(queryField)
.addComponent(queryValue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(showTrack))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(btnOk)
.addComponent(btnCancel))
.addContainerGap())
);
} | {
"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.73197734",
"0.72914416",
"0.72914416",
"0.72914416",
"0.72862023",
"0.72487676",
"0.7213741",
"0.7207628",
"0.7196503",
"0.7190263",
"0.71850693",
"0.71594703",
"0.7147939",
"0.7093137",
"0.70808756",
"0.70566356",
"0.6987119",
"0.69778043",
"0.6955563",
"0.6953879",
"0.69... | 0.0 | -1 |
End of variables declaration//GENEND:variables | public void setDialog(JDialog dialog)
{
this.dialog = dialog;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n pu... | [
"0.6359434",
"0.6280371",
"0.61868024",
"0.6094568",
"0.60925734",
"0.6071678",
"0.6052686",
"0.60522056",
"0.6003249",
"0.59887564",
"0.59705925",
"0.59680873",
"0.5967989",
"0.5965816",
"0.5962006",
"0.5942372",
"0.5909877",
"0.5896588",
"0.5891321",
"0.5882983",
"0.5881482... | 0.0 | -1 |
An Extension function which returns the system date in the required format | @org.jetbrains.annotations.NotNull()
public static final java.lang.String getFormattedDate(@org.jetbrains.annotations.NotNull()
java.util.Calendar $this$getFormattedDate, @org.jetbrains.annotations.NotNull()
java.lang.String format) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getSystemDate()\n {\n\t DateFormat dateFormat= new SimpleDateFormat(\"_ddMMyyyy_HHmmss\");\n\t Date date = new Date();\n\t return dateFormat.format(date);\n }",
"public String getSystemDate() {\n\t\tDate date = new Date();\n\t\treturn date.toString();\n\t}",
"private static String get... | [
"0.7613014",
"0.7212722",
"0.7045184",
"0.6989063",
"0.69784695",
"0.6954249",
"0.6920097",
"0.6897776",
"0.6876558",
"0.6862648",
"0.68619233",
"0.6855707",
"0.6834916",
"0.6834916",
"0.6821678",
"0.67934734",
"0.6754533",
"0.67367905",
"0.66610706",
"0.6649831",
"0.6592988"... | 0.0 | -1 |
An Extension function that get the Date Picker | @org.jetbrains.annotations.NotNull()
public static final android.app.DatePickerDialog getDatePicker(@org.jetbrains.annotations.NotNull()
java.util.Calendar $this$getDatePicker, @org.jetbrains.annotations.NotNull()
android.content.Context context, @org.jetbrains.annotations.NotNull()
android.app.DatePickerDialog.OnDateSetListener onDateSetListener) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getSelectedDate();",
"public Date getSelectDate();",
"private void chooseDateFromCalendar(Button dateButton){\n DateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n Calendar nowCalendar = formatCalendar(Calendar.getInstance());\n\n DatePickerDialog datePickerDialog = new Da... | [
"0.708886",
"0.703779",
"0.6690101",
"0.6617607",
"0.65830946",
"0.6541533",
"0.65321535",
"0.6530059",
"0.65060645",
"0.64804834",
"0.63913137",
"0.63425857",
"0.62823564",
"0.62739426",
"0.62265944",
"0.62025595",
"0.6200903",
"0.6199729",
"0.61982614",
"0.6195669",
"0.6192... | 0.6599251 | 4 |
An Extension function that converts timeInMillis(UNIX) and returns time in human readable format | @org.jetbrains.annotations.NotNull()
public static final java.lang.String getFormattedTime(long $this$getFormattedTime, @org.jetbrains.annotations.NotNull()
java.lang.String format) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getTimeAsString(final long timeInMillis) {\n \treturn getTimeAsString(timeInMillis, Locale.ENGLISH);\n }",
"public static String formattime(long millis) {\n\t\treturn String.format(\"%02d:%02d:%02d:%03d\", //This formats the time correctly\n\t\t\t\tTimeUnit.MILLISECONDS.toHours(millis)... | [
"0.6705037",
"0.66384137",
"0.66323537",
"0.66279376",
"0.661014",
"0.6569193",
"0.6485266",
"0.6411901",
"0.63571715",
"0.6285877",
"0.6274",
"0.62729836",
"0.62720233",
"0.62720233",
"0.6241921",
"0.62389064",
"0.6231428",
"0.6229645",
"0.62211347",
"0.62101567",
"0.6202072... | 0.5689484 | 52 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_detail_produk, container, false);
mDemoSlider = (SliderLayout) v.findViewById(R.id.slider);
Bundle b = this.getArguments();
if (b != null) {
produk = b.getParcelable("Produk");
token = b.getString("token");
TextView judul = (TextView) v.findViewById(R.id.textNamadetailProduk);
TextView desc = (TextView) v.findViewById(R.id.textDescDetailProduk);
TextView tanggal = (TextView) v.findViewById(R.id.textViewTanggalDetailProduk);
RippleView telp = (RippleView) v.findViewById(R.id.call_button);
RippleView sms = (RippleView) v.findViewById(R.id.pesan_button);
judul.setText(produk.getNama());
desc.setText(produk.getDeskripsi());
tanggal.setText(produk.getTanggal());
HashMap<String, String> file_maps = new HashMap<String, String>();
if (produk.cekDaftarGambar()) {
file_maps.put("Coming soon !", "");
Toast.makeText(DetailProduk.this.getContext(), Boolean.toString(produk.cekDaftarGambar()), Toast.LENGTH_SHORT).show();
}
for (GambarProduk g : produk.getDaftargambar()) {
file_maps.put(g.getNama(), g.getUrl());
}
for (String name : file_maps.keySet()) {
TextSliderView textSliderView = new TextSliderView(this.getContext());
// initialize a SliderLayout
textSliderView
.description(name)
.image(file_maps.get(name))
.setScaleType(BaseSliderView.ScaleType.Fit)
.setOnSliderClickListener(DetailProduk.this);
mDemoSlider.addSlider(textSliderView);
}
mDemoSlider.setPresetIndicator(SliderLayout.PresetIndicators.Center_Bottom);
if (produk.getBanyakgambar() > 1) {
mDemoSlider.setPresetTransformer(SliderLayout.Transformer.ZoomOut);
mDemoSlider.setCustomAnimation(new DescriptionAnimation());
mDemoSlider.setDuration(4000);
} else {
mDemoSlider.stopAutoCycle();
mDemoSlider.setPagerTransformer(false, new BaseTransformer() {
@Override
protected void onTransform(View view, float v) {
}
});
}
telp.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent callintent = new Intent(Intent.ACTION_CALL);
callintent.setData(Uri.parse("tel:" + produk.getNotel()));
startActivity(callintent);
}
});
sms.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent smsIntent = new Intent(Intent.ACTION_VIEW);
smsIntent.setType("vnd.android-dir/mms-sms");
smsIntent.putExtra("address", produk.getNotel());
startActivity(smsIntent);
}
});
}
return v;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<KomponenNilai> get(String where, String order, int limit, int offset) {
String dbWhere = "";
String dbOrder = "";
if(where != "")
dbWhere += " WHERE " + where;
if(order != "")
dbOrder += " ORDER BY " + order;
Query query = sessionFactory.getCurrentSession().createQuery("FROM KomponenNilai" + dbWhere + dbOrder);
return query.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.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public UUID insert(KomponenNilai komp) {
Session session = sessionFactory.openSession();
Transaction tx = session.beginTransaction();
UUID insertId = (UUID)session.save(komp);
tx.commit();
session.flush();
session.close();
return insertId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void update(KomponenNilai komp) {
Session session = sessionFactory.openSession();
Transaction tx = session.beginTransaction();
session.update(komp);
tx.commit();
session.flush();
session.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void delete(UUID idKomp) {
Session session = sessionFactory.openSession();
Transaction tx = session.beginTransaction();
String delete = "UPDATE KomponenNilai SET aKompAktif = FALSE WHERE idKomponen = :idKomp";
Query query = session.createQuery(delete);
query.setParameter("idKomp", idKomp);
query.executeUpdate();
tx.commit();
session.flush();
session.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public double totalPresentase(UUID idPemb) {
Query query = sessionFactory.getCurrentSession().createQuery("SELECT sum(k.persentase_komponen) as res "
+ "FROM komponen_nilai k WHERE id_pemb='" + idPemb + "'");
List<Object[]> results = (List<Object[]>)query.list();
for (Object[] result : results) {
double res = (Double) result[0];
System.out.println(res);
}
return 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.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public KomponenNilai getById(UUID idKomp) {
return (KomponenNilai) sessionFactory.getCurrentSession().get(KomponenNilai.class, idKomp);
} | {
"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 |
round edges of this element Warning : this changes your element | public Poi ToArea()
{
this.lat = PoiManager.roundToHalfDown(this.lat);
this.lon = PoiManager.roundToHalfDown(this.lon);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IconBuilder round() {\n\t\tthis.shape = IconShape.ROUND;\n\t\treturn this;\n\t}",
"void resetRoundHitbox() {\n setRoundHitbox((_w+_h)/4);\n }",
"public void setRoundedRectangleClip(int x, int y, int width, int height, int radius);",
"@Override\n protected float getCurrentBottomCornerRad... | [
"0.6609087",
"0.61809194",
"0.58581126",
"0.5847138",
"0.5801631",
"0.57408935",
"0.57299894",
"0.5710537",
"0.5699346",
"0.5680783",
"0.56385815",
"0.5573351",
"0.5564412",
"0.556431",
"0.55560726",
"0.55505836",
"0.5474668",
"0.5437774",
"0.54291296",
"0.5414949",
"0.539593... | 0.0 | -1 |
deklarasi bahwa value dari variabel context menyesuaikan kontext yg ada di parameter fungsi CardViewKelasAdapter | public CardViewKelasAdapter(Context context){this.context = context;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setNamaKelas(java.lang.CharSequence value) {\n this.nama_kelas = value;\n }",
"@SuppressLint(\"SetTextI18n\")\n @Override\n public void bindView(View view, Context context, Cursor cursor) {\n if(Utils.weAreLollipop())view.findViewById(R.id.card).setElevation(c... | [
"0.6010315",
"0.5812442",
"0.5713169",
"0.5674204",
"0.5576221",
"0.5555796",
"0.55548024",
"0.5546485",
"0.54946023",
"0.5485045",
"0.54646474",
"0.5436705",
"0.54181385",
"0.54132617",
"0.5397045",
"0.53937125",
"0.53893715",
"0.53735393",
"0.536985",
"0.53604555",
"0.53539... | 0.66337305 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.