query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102 values |
|---|---|---|---|---|---|---|
TODO Autogenerated method stub | @Override
public void onClick(View v) {
TampilGambar.setImageResource(R.drawable.pop_hitam);
TampilGambar.startAnimation(animScale);
suara12.start();
} | {
"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 |
Reports the specified notification by printing its message to the console. | public void reportNotification(Notification notification) {
if (notification.getType() == NotificationType.ERROR) {
System.err.println("ERROR " + notification.getMessage());
} else if (notification.getType() == NotificationType.INFO) {
System.out.println(notification.getMessage());
} else {
throw new IllegalStateException("unknown notification type");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void out(String message) {\n System.out.println(\"[*]Notify[*] \" + message);\n }",
"private void showNotification() {\n }",
"private void sendNotification() {\n }",
"@Override\n\tpublic void ActOnNotification(String message) {\n\t \tSystem.out.println(\"Sending Event\");\n\t}... | [
"0.6539454",
"0.64173126",
"0.6377209",
"0.6289093",
"0.62880504",
"0.6235236",
"0.604921",
"0.5911362",
"0.59080476",
"0.5853803",
"0.58453614",
"0.5828119",
"0.581559",
"0.58116233",
"0.58075845",
"0.5797552",
"0.57268035",
"0.5701254",
"0.5701121",
"0.5688852",
"0.5679896"... | 0.74078894 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
SortByValue sbv = new SortByValue();
sbv.setValueOnMap(12, "Aarti");
sbv.setValueOnMap(15, "Sonam");
sbv.setValueOnMap(17, "Anita");
sbv.setValueOnMap(13, "Premlata");
sbv.setValueOnMap(14, "Komal");
sbv.setValueOnMap(20, "Namita");
sbv.setValueOnMap(25, "Babita");
Map<Integer, String> _map = sbv.getValueFromMap();
/*Iterator<Map.Entry<Integer, String>> _it = _map.entrySet().iterator();
while(_it.hasNext()){
Map.Entry<Integer, String> _map_value = _it.next();
System.out.println(_map_value.getKey()+"|"+_map_value.getValue());
}*/
Set<Entry<Integer, String>> set = _map.entrySet();
List<Entry<Integer, String>> list = new ArrayList<Entry<Integer, String>>(set);
System.out.println("HashMap values Before sort:");
for(Map.Entry<Integer, String> listBeforeSort : list){
System.out.println(listBeforeSort.getKey()+" | "+listBeforeSort.getValue());
}
Collections.sort(list, new Comparator<Map.Entry<Integer, String>>(){
public int compare(Map.Entry<Integer, String> value1, Map.Entry<Integer, String> value2){
return value1.getValue().compareTo(value2.getValue());
}
});
System.out.println("HashMap values After sort:");
for(Map.Entry<Integer, String> listBeforeSort : list){
System.out.println(listBeforeSort.getKey()+" | "+listBeforeSort.getValue());
}
} | {
"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 |
This interface contains only the state of the HelloWorld object. | public interface HelloWorldState2 {
Property<String> phrase();
Property<String> name();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void hello() {\n\t\tSystem.out.println(\"in Hello\");\r\n\t}",
"public interface HelloWorld {\r\n\r\n void sayHello(String name);\r\n}",
"@Override\n\tpublic Future<RpcResult<HelloWorldOutput>> helloWorld(HelloWorldInput input) {\n\n\t\tHelloWorldOutputBuilder helloBuilder = new HelloW... | [
"0.6977811",
"0.6856342",
"0.68210274",
"0.6799531",
"0.67166704",
"0.6630859",
"0.6566399",
"0.64850664",
"0.6460815",
"0.6454833",
"0.64026463",
"0.6348388",
"0.628565",
"0.6274678",
"0.62739664",
"0.6229573",
"0.6211124",
"0.61955357",
"0.6132865",
"0.6124811",
"0.6105417"... | 0.56157273 | 67 |
Creates new form MenuPrincipal | public CarritoComprasView(Cliente cliente, CentroComercialView centroComercialView) {
this.setResizable(false);
this.cliente = cliente;
this.centroComercialView = centroComercialView;
initComponents();
this.setLocationRelativeTo(null);
//Inicialización de los elementos de la vista.
eliminarArticuloButton.setEnabled(false);
eliminarPaqueteButton.setEnabled(false);
mostrarCantidadProductos();
mostrarTotalAPagar();
mostrarArticulos();
mostrarPaquetes();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MenuPrincipal() {\n initComponents();\n \n }",
"public FRM_MenuPrincipal() {\n initComponents();\n archivos = new ArchivoUsuarios(); \n controlador = new CNTRL_MenuPrincipal(this, archivos);\n agregarControlador(controlador);\n setResizable(false)... | [
"0.7304576",
"0.7286228",
"0.7107002",
"0.685851",
"0.6855943",
"0.6847909",
"0.6805474",
"0.67950267",
"0.6770228",
"0.67368346",
"0.65207946",
"0.6493911",
"0.6484401",
"0.64551735",
"0.6428843",
"0.6386617",
"0.6384261",
"0.6344578",
"0.63245744",
"0.63032407",
"0.6300685"... | 0.0 | -1 |
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() {
jPanel2 = new javax.swing.JPanel();
jPanel3 = new javax.swing.JPanel();
jPanel1 = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
articulosTable = new javax.swing.JTable();
eliminarPaqueteButton = new javax.swing.JButton();
contenidoLabel = new javax.swing.JLabel();
jScrollPane2 = new javax.swing.JScrollPane();
paquetesTable = new javax.swing.JTable();
eliminarArticuloButton = new javax.swing.JButton();
resumenPedidoLabel = new javax.swing.JLabel();
cantidadArticulosLabel = new javax.swing.JLabel();
totalAPagarLabel = new javax.swing.JLabel();
regresarButton = new javax.swing.JButton();
realizarPagoButton = new javax.swing.JButton();
jLabel3 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jPanel2.setBackground(new java.awt.Color(252, 86, 50));
articulosTable.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
},
new String [] {
"Articulo", "Tienda", "Precio"
}
) {
Class[] types = new Class [] {
java.lang.String.class, java.lang.String.class, java.lang.String.class
};
boolean[] canEdit = new boolean [] {
false, false, false
};
public Class getColumnClass(int columnIndex) {
return types [columnIndex];
}
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
}
});
articulosTable.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
articulosTableMouseClicked(evt);
}
});
jScrollPane1.setViewportView(articulosTable);
eliminarPaqueteButton.setText("Eliminar de carrito");
eliminarPaqueteButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
eliminarPaqueteButtonActionPerformed(evt);
}
});
contenidoLabel.setBackground(new java.awt.Color(252, 86, 50));
contenidoLabel.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14)); // NOI18N
contenidoLabel.setText("Contenido");
paquetesTable.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
},
new String [] {
"Paquete", "Tienda", "Precio"
}
) {
Class[] types = new Class [] {
java.lang.String.class, java.lang.String.class, java.lang.String.class
};
boolean[] canEdit = new boolean [] {
false, false, false
};
public Class getColumnClass(int columnIndex) {
return types [columnIndex];
}
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
}
});
paquetesTable.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
paquetesTableMouseClicked(evt);
}
});
jScrollPane2.setViewportView(paquetesTable);
eliminarArticuloButton.setText("Eliminar de carrito");
eliminarArticuloButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
eliminarArticuloButtonActionPerformed(evt);
}
});
resumenPedidoLabel.setBackground(new java.awt.Color(252, 86, 50));
resumenPedidoLabel.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 14)); // NOI18N
resumenPedidoLabel.setText("Resumen del pedido");
cantidadArticulosLabel.setBackground(new java.awt.Color(252, 86, 50));
cantidadArticulosLabel.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 12)); // NOI18N
cantidadArticulosLabel.setText("Cantidad de artículos:");
totalAPagarLabel.setBackground(new java.awt.Color(252, 86, 50));
totalAPagarLabel.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 12)); // NOI18N
totalAPagarLabel.setText("Total a pagar: $");
regresarButton.setText("Regresar");
regresarButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
regresarButtonActionPerformed(evt);
}
});
realizarPagoButton.setText("Realizar pago");
realizarPagoButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
realizarPagoButtonActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(19, 19, 19)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(eliminarPaqueteButton)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 632, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 632, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(contenidoLabel)
.addComponent(resumenPedidoLabel)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(regresarButton)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(realizarPagoButton)))
.addComponent(eliminarArticuloButton)))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(71, 71, 71)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(totalAPagarLabel)
.addComponent(cantidadArticulosLabel))))
.addGap(0, 19, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(contenidoLabel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(eliminarArticuloButton)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(eliminarPaqueteButton)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(resumenPedidoLabel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(cantidadArticulosLabel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(totalAPagarLabel)
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(regresarButton)
.addComponent(realizarPagoButton))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 1, Short.MAX_VALUE))
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 1, Short.MAX_VALUE))
);
jLabel3.setBackground(new java.awt.Color(252, 86, 50));
jLabel3.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 24)); // NOI18N
jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel3.setText("Carrito de Compras");
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(0, 0, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 670, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.7319396",
"0.7290941",
"0.7290941",
"0.7290941",
"0.7285927",
"0.7248002",
"0.72139066",
"0.72086275",
"0.71958303",
"0.718997",
"0.7184516",
"0.7159095",
"0.71481097",
"0.709288",
"0.70806605",
"0.70578784",
"0.6986726",
"0.6977067",
"0.6955257",
"0.6954392",
"0.6945326",... | 0.0 | -1 |
No further instances allowed | private Reqbaz() {
super("reqbaz", null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isAllowed(ProcessInstance instance) {\r\n return true; // xoxox\r\n }",
"private boolean isEmpty(){\n return (numInstances() == 0);\n }",
"@Override\n public boolean isInstantiable() {\n return false;\n }",
"public Instances notCoveredBy(Instances data) ... | [
"0.67594016",
"0.6251031",
"0.59999865",
"0.5938237",
"0.58646846",
"0.585787",
"0.5810515",
"0.57986826",
"0.5791139",
"0.5781252",
"0.5724278",
"0.56935054",
"0.56888044",
"0.5685522",
"0.56732947",
"0.5647899",
"0.5631567",
"0.5616412",
"0.561355",
"0.55945885",
"0.5539294... | 0.0 | -1 |
========================================================= Returns the position (not the unit itself) where we should point our units to in hope because as far as we know, the enemy is/can be there and it makes sense to attack in this region. | @Override
public APosition getFocusPoint() {
// === Handle UMT ==========================================
if (AGame.isUmtMode()) {
AUnit firstUnit = Select.ourRealUnits().first();
if (firstUnit != null) {
return getUmtFocusPoint(firstUnit.getPosition());
}
else {
return null;
}
}
// =========================================================
// Try going near enemy base
// Position enemyBase = AtlantisEnemyInformationManager.getEnemyBase();
APosition enemyBase = AEnemyUnits.getEnemyBase();
if (enemyBase != null) {
// System.out.println("focus on enemy base " + enemyBase); //TODO debug
return enemyBase;
}
// Try going near any enemy building
AFoggedUnit enemyBuilding = AEnemyUnits.getNearestEnemyBuilding();
if (enemyBuilding != null) {
// System.out.println("focus on enemy bldg " + enemyBuilding.getPosition()); //TODO debug
return enemyBuilding.getPosition();
}
// Try going to any known enemy unit
AUnit anyEnemyUnit = Select.enemy().first();
if (anyEnemyUnit != null) {
//System.out.println("focus on enemy unit"); //TODO debug
return anyEnemyUnit.getPosition();
}
// Try to go to some starting location, hoping to find enemy there.
BaseLocation startLocation = AMap.getNearestUnexploredStartingLocation(Select.mainBase().getPosition());
if (startLocation != null) {
//System.out.println("focus on start location"); //TODO debug
return APosition.create(startLocation.getPosition());
}
// Absolutely no enemy unit can be found
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Position findWeedPosition() {\n int x = 0;\n int y = 0;\n int sum = 0;\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD... | [
"0.68096757",
"0.67488915",
"0.66976064",
"0.6547404",
"0.64990777",
"0.6440057",
"0.6333722",
"0.63177776",
"0.63175774",
"0.6317549",
"0.62547314",
"0.62439644",
"0.6242419",
"0.62260014",
"0.6220341",
"0.6194272",
"0.6170183",
"0.6110159",
"0.60831845",
"0.60780793",
"0.60... | 0.66439795 | 3 |
Created by enric on 11/02/2018. | public interface IRequests extends Crud_IRequests<RestingHeartRate> {
int GetMhr(int age);
List<RestingHeartRate> GetData(int profileId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Overr... | [
"0.60189646",
"0.5719589",
"0.570876",
"0.5663028",
"0.565513",
"0.5649263",
"0.563657",
"0.56297505",
"0.5607192",
"0.5584785",
"0.5584785",
"0.5578496",
"0.5578496",
"0.5578496",
"0.5578496",
"0.5578496",
"0.5578496",
"0.5542638",
"0.5541151",
"0.55392134",
"0.5445456",
"... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int receiveEnergy(int maxReceive, boolean simulate) {
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.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 int extractEnergy(int maxExtract, boolean simulate) {
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.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 int getEnergyStored() {
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.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 int getMaxEnergyStored() {
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.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean canExtract() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean canReceive() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
The getter and setter for the id number value. | @RdfProperty("http://www.coadunation.net/schema/rdf/1.0/base#IdValue")
public abstract String getValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setidnumber(int id) {\r\n idnumber = id;\r\n }",
"public int getidnumber() {\r\n return idnumber;\r\n }",
"public int getID() {\r\n\t\treturn idNumber;\r\n\t}",
"public String getIdNumber() {\n return idNumber;\n }",
"public void setID(int value) {\n this.id... | [
"0.8058808",
"0.7947151",
"0.7936111",
"0.7904751",
"0.7884195",
"0.78206116",
"0.7798198",
"0.76491374",
"0.76351666",
"0.7609647",
"0.7609647",
"0.7593449",
"0.7593449",
"0.7593449",
"0.7593449",
"0.7593449",
"0.7593449",
"0.7593449",
"0.7585829",
"0.7582212",
"0.75734955",... | 0.0 | -1 |
This method sets the value of the id number. | @RdfProperty("http://www.coadunation.net/schema/rdf/1.0/base#IdValue")
public abstract void setValue(String value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setidnumber(int id) {\r\n idnumber = id;\r\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setIdNumber(String idNumber) {\n this.idNumber = idNumber;\n }",
"void setIdNum... | [
"0.850951",
"0.831366",
"0.8253527",
"0.82417125",
"0.81920296",
"0.8187698",
"0.8187698",
"0.8187698",
"0.8187698",
"0.8187698",
"0.8187698",
"0.8187698",
"0.8123307",
"0.80265224",
"0.8010819",
"0.798611",
"0.798611",
"0.798611",
"0.798611",
"0.798611",
"0.798611",
"0.798... | 0.0 | -1 |
Genera la cabeza de la serpiente, en esta version unicamente la cabeza, no ojos | public Cabeza (Color color, Serpiente serpiente,String sentido, Posicion posicion) {
//Inicializa los atributos
// ojos = new ArrayList<Circle>();
this.serpiente = serpiente;
//Se crea la cabeza, se compone de la cabeza, los ojos y las pupilas
cabeza = new Circle(color);
setSentido(sentido);
setPosicion(posicion);
setColor(color);
// Circle ojoDerecho = new Circle(10,Color.WHITE);
// Circle ojoIzquierdo = new Circle(10,Color.WHITE);
// Circle pupilaDerecha = new Circle(8,Color.BLACK);
// Circle pupulaIzquierda = new Circle(8,Color.BLACK);
// //Se agregan los miembros a la cabeza
// ojos.add(ojoDerecho);
// ojos.add(ojoIzquierdo);
// ojos.add(pupilaDerecha);
// ojos.add(pupulaIzquierda);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Compleja createCompleja();",
"public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\n }",
"public void generarContrato() {\r\n\t\ttry {\r\n\t\t\tString nombre = Contrato.generarContrato(estudiante, periodo, reserva.getArrSitioPeriodo().getSitNombre());\r\n\t\t\tnom... | [
"0.679659",
"0.660317",
"0.65846133",
"0.6581654",
"0.6429687",
"0.6371739",
"0.62518597",
"0.6083039",
"0.60508204",
"0.6032538",
"0.60203016",
"0.5881373",
"0.58771974",
"0.5855541",
"0.5852967",
"0.58527225",
"0.5840019",
"0.5834066",
"0.58275956",
"0.5823203",
"0.58227307... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public PrpUser getUserById(Integer id) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<PrpUser> getUserList() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void deleteUserById(Integer id) {
} | {
"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<PrpUser> duplcExist(PrpUser user) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Convert from /com/spring/domain/PropertyAgent to org.springframework.security.core.userdetails.User | private org.springframework.security.core.userdetails.User buildUserForAuthentication(PropertyAgent agent){
return new org.springframework.security.core.userdetails.User(agent.getUsername(),agent.getPassword(),agent.isEnabled(),
true,true,true,buildUserAuthority(agent.getRoles()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static UserDetails transformVOToUserDetail(UserManagementVO userManagementVO) {\r\n\r\n\t\tUserDetails userDetails = new UserDetails();\r\n\t\tuserDetails.setUsername(userManagementVO.getUsername());\r\n\t\tuserDetails.setPassword(userManagementVO.getPassword());\r\n\t\tuserDetails.setUid(userManagementVO.g... | [
"0.6248356",
"0.61849934",
"0.60178167",
"0.58439845",
"0.58003426",
"0.57621604",
"0.5744572",
"0.5722399",
"0.5718878",
"0.569821",
"0.56958365",
"0.56810004",
"0.56794524",
"0.5667272",
"0.56498563",
"0.5639276",
"0.5592633",
"0.55681807",
"0.5562597",
"0.5557448",
"0.5557... | 0.76183283 | 0 |
Returns the problem id. | public String getProblemId() {
return this.problemId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getProblemId() {\n return problemId;\n }",
"public int getProblemNumber() {\n return problemNumber;\n }",
"@Schema(description = \"The ID of the issue this worklog is for.\")\n public String getIssueId() {\n return issueId;\n }",
"Integer getID();",
"Integer getID();",
"p... | [
"0.8152645",
"0.6910673",
"0.6361827",
"0.63409203",
"0.63409203",
"0.62930965",
"0.62778556",
"0.6264423",
"0.6169551",
"0.6169551",
"0.6169551",
"0.6169551",
"0.6169551",
"0.6169551",
"0.6169551",
"0.6169551",
"0.6169551",
"0.6169551",
"0.6169551",
"0.61634344",
"0.6162961"... | 0.79938096 | 1 |
Sets the problem id. | public void setProblemId(String id) {
this.problemId = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setId(int id) {\n this.id = String.valueOf(this.hashCode());\n }",
"public Problem(String id) {\n\t\t this.id=id;\n\t }",
"@SuppressWarnings(\"unused\")\n private void setId(Integer id) {\n this.id = id;\n }",
"public void setId (java.lang.Integer id) {\r\n this.id =... | [
"0.6983615",
"0.6912424",
"0.68766344",
"0.6787279",
"0.6779347",
"0.67741597",
"0.6731833",
"0.67148036",
"0.6707824",
"0.6707824",
"0.66967964",
"0.66945183",
"0.66945183",
"0.66872346",
"0.6677121",
"0.6674635",
"0.66712016",
"0.6668649",
"0.66679037",
"0.66679037",
"0.666... | 0.7354432 | 0 |
Returns the problem name. | public String getProblemName() {
return this.problemName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getIssueName();",
"public void setProblemName(String name) {\n this.problemName = name;\n }",
"public String getName() {\n return \"Parallel Optimization Problem\";\n }",
"public String getDisplayString(Problem problem) {\r\n \t\tif (problem.getProblem() == null)\r\n \t\t\treturn \... | [
"0.7181085",
"0.6825204",
"0.64976346",
"0.64786583",
"0.6358365",
"0.6318223",
"0.62668854",
"0.62668854",
"0.62359214",
"0.6235629",
"0.6208586",
"0.6166207",
"0.6166207",
"0.6166207",
"0.6166207",
"0.6166207",
"0.6166207",
"0.6166207",
"0.6166207",
"0.6166207",
"0.6166207"... | 0.8501706 | 0 |
Sets the problem name. | public void setProblemName(String name) {
this.problemName = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setName(String name) {\n this.name = name;\n }",
"protected void setName(String name) {\n this._name = name;\n }",
"public void setName(String nameIn) {\n name = nameIn;\n }",
"protected void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}",
"@Override... | [
"0.7275146",
"0.7220032",
"0.7211557",
"0.72110635",
"0.7210129",
"0.7194832",
"0.718393",
"0.71809125",
"0.7174694",
"0.7172047",
"0.7169349",
"0.7169349",
"0.7169349",
"0.7152994",
"0.7152994",
"0.7152994",
"0.71444863",
"0.7142473",
"0.71392345",
"0.71392345",
"0.7139008",... | 0.8140395 | 0 |
Returns the problem description. | public String getProblemDesc() {
return this.problemDesc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getProblemDescription() {\n return problemDescription;\n }",
"@Override\r\n\tpublic String getProblemDescription() {\n\t\treturn null;\r\n\t}",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDe... | [
"0.85412586",
"0.8231284",
"0.7930436",
"0.7930436",
"0.7930436",
"0.7930436",
"0.7930436",
"0.7930436",
"0.7930436",
"0.7930436",
"0.7930436",
"0.764752",
"0.764752",
"0.764752",
"0.764752",
"0.764752",
"0.764752",
"0.764752",
"0.764752",
"0.764752",
"0.764752",
"0.764752"... | 0.8626452 | 0 |
Sets the problem description. | public void setProblemDesc(String description) {
this.problemDesc = description;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setProblemDescription(String problemDescription) {\n this.problemDescription ... | [
"0.78243107",
"0.7750252",
"0.7747816",
"0.7743285",
"0.7720192",
"0.7720192",
"0.7720192",
"0.7720192",
"0.7720192",
"0.7720192",
"0.7720192",
"0.7711967",
"0.7706845",
"0.76943564",
"0.76875746",
"0.76875746",
"0.76875746",
"0.76875746",
"0.76875746",
"0.76671225",
"0.76645... | 0.81637096 | 0 |
Create a handler for the given encounter. | Handler create(Encounter<? extends Collector> encounter); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"CreateHandler()\n {\n }",
"public CallAppAbilityConnnectionHandler createHandler() {\n EventRunner create = EventRunner.create();\n if (create != null) {\n return new CallAppAbilityConnnectionHandler(create);\n }\n HiLog.error(LOG_LABEL, \"createHandler: no runner.\",... | [
"0.6124804",
"0.5872153",
"0.55059874",
"0.54113126",
"0.53615487",
"0.51139414",
"0.50189304",
"0.4973266",
"0.49565974",
"0.4895757",
"0.48490754",
"0.48365036",
"0.48267356",
"0.4819833",
"0.48075464",
"0.48039114",
"0.47999144",
"0.47975072",
"0.47901064",
"0.47300488",
"... | 0.73205 | 0 |
08 rows, 917 columns, 1826 squares | public void solveSudoku(char[][] board) {
goDeeper(board);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createGraySquares() {\n for (int x = 0; x < 16; x ++)\n for (int y = 0; y < 16; y ++)\n // If the area is not explored, creates a gray square at that point.\n if (!storage.explored[x][y]) {\n GraySquare square = new GraySquare(screen.m... | [
"0.6622001",
"0.6573537",
"0.65550566",
"0.6539185",
"0.6450982",
"0.6432586",
"0.633703",
"0.6336789",
"0.62933946",
"0.6279513",
"0.62716925",
"0.6188294",
"0.6167482",
"0.6142249",
"0.6080751",
"0.6068914",
"0.6045463",
"0.6035546",
"0.5990206",
"0.59703535",
"0.5928872",
... | 0.0 | -1 |
08 rows, 917 columns, 1826 squares | private boolean isValidSudoku(char[][] board) {
char[][] validBoard = new char[27][9];
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 9; j++) {
if (board[i][j] == '.') {
continue;
}
int c = board[i][j] - '0';
if (validBoard[i][c - 1] == 1) {
return false;
} else {
validBoard[i][c - 1] = 1;
}
if (validBoard[j + 9][c - 1] == 1) {
return false;
} else {
validBoard[j + 9][c - 1] = 1;
}
if (validBoard[(i / 3) * 3 + j / 3 + 18][c - 1] == 1) {
return false;
} else {
validBoard[(i / 3) * 3 + j / 3 + 18][c - 1] = 1;
}
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createGraySquares() {\n for (int x = 0; x < 16; x ++)\n for (int y = 0; y < 16; y ++)\n // If the area is not explored, creates a gray square at that point.\n if (!storage.explored[x][y]) {\n GraySquare square = new GraySquare(screen.m... | [
"0.6622001",
"0.6573537",
"0.65550566",
"0.6539185",
"0.6450982",
"0.6432586",
"0.633703",
"0.6336789",
"0.62933946",
"0.6279513",
"0.62716925",
"0.6188294",
"0.6167482",
"0.6142249",
"0.6080751",
"0.6068914",
"0.6045463",
"0.6035546",
"0.5990206",
"0.59703535",
"0.5928872",
... | 0.0 | -1 |
disable going back to the MainActivity | @Override
public void onBackPressed() {
moveTaskToBack(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void backToMain() {\n // https://stackoverflow.com/questions/5446565\n // Checks to see if they are still on this activity\n if (getWindow().getDecorView().getRootView().isShown()) {\n onBackPressed();\n }\n }",
"@Override\n\tpublic boolean onBackPressed() {\n\t\... | [
"0.79283714",
"0.7581701",
"0.7581701",
"0.7515827",
"0.7463765",
"0.73915607",
"0.737184",
"0.7368652",
"0.73679245",
"0.736275",
"0.7345369",
"0.7323087",
"0.7320988",
"0.73102087",
"0.73102087",
"0.73102087",
"0.7257634",
"0.7246208",
"0.72282255",
"0.7218112",
"0.7217591"... | 0.7189266 | 34 |
The interface Component usage report service. | public interface ComponentUsageReportService {
/**
* Gets report view.
*
* @return the report view
*/
String getReportView();
/**
* Base path string.
*
* @return the string
*/
String basePath();
/**
* Tool path string.
*
* @return the string
*/
String toolPath();
/**
* Include libs component boolean.
*
* @return the boolean
*/
boolean includeLibsComponent();
/**
* Open page in edit mode boolean.
*
* @return the boolean
*/
boolean openPageInEditMode();
/**
* Gets used component list.
*
* @param resourceResolver the resource resolver
* @param conditions the conditions
* @param excludeChildrenPages the exclude children pages
* @return the used component list
*/
Query getUsedComponentList(final ResourceResolver resourceResolver, List<String> conditions,boolean excludeChildrenPages);
/**
* Gets component usage number.
*
* @param componentPath the component path
* @param resourceResolver the resource resolver
* @param paths the paths
* @param excludeChildrenPages the exclude children pages
* @return the component usage number
*/
int getComponentUsageNumber(final String componentPath, final ResourceResolver resourceResolver,String[] paths,boolean excludeChildrenPages);
/**
* Gets nodes component used at.
*
* @param componentPath the component path
* @param resourceResolver the resource resolver
* @param paths the paths
* @param excludeChildrenPages the exclude children pages
* @return the nodes component used at
*/
Iterator<Resource> getNodesComponentUsedAt(final String componentPath, final ResourceResolver resourceResolver, String[] paths,boolean excludeChildrenPages) ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String usage();",
"@Override\n\t\tpublic long usage() {\n\t\t\t\n\t\t\treturn super.usage();\n\t\t}",
"public static void getClassUsage(){\r\n ClassMeasurement classMeasurement = new ClassMeasurement();\r\n classUsageList.add(classMeasurement);\r\n //ClassMeasurement.printC... | [
"0.5870392",
"0.57822657",
"0.57211274",
"0.56263876",
"0.55529547",
"0.5540641",
"0.55395",
"0.5537964",
"0.5536084",
"0.55274427",
"0.53730696",
"0.5356615",
"0.5305661",
"0.5293548",
"0.52428216",
"0.52037627",
"0.52024996",
"0.5193516",
"0.5182452",
"0.517614",
"0.5131920... | 0.7928972 | 0 |
Include libs component boolean. | boolean includeLibsComponent(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static boolean isLibraryClass (SootClass sclass) {\n String pack = sclass.getPackageName();\n String[] libs = {\"java.\", \"jdk.\", \"soot.\",\"sun.\", \"oracle.\", \"scala.\"};\n\n for (String lib : libs) {\n if (pack.startsWith(lib)) {\n return true;\n ... | [
"0.6128087",
"0.5945054",
"0.59415007",
"0.582693",
"0.58193237",
"0.5652638",
"0.5633375",
"0.56067526",
"0.55819714",
"0.55788714",
"0.5548458",
"0.55435145",
"0.5541254",
"0.5395551",
"0.53874725",
"0.5365857",
"0.53610116",
"0.53587615",
"0.5320409",
"0.53077996",
"0.5285... | 0.85559124 | 0 |
Open page in edit mode boolean. | boolean openPageInEditMode(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean isEdit(){\n\t\treturn getArguments().getBoolean(ARG_KEY_IS_EDIT);\n\t}",
"public void toggleEdit()\n {\n \tif (editMode == false) {\n \t\teditMode = true;\n \t} else {\n \t\teditMode = false;\n \t}\n }",
"boolean isEdit();",
"public void setEdit(boolean bool){\r\n ... | [
"0.7485536",
"0.73582095",
"0.7217769",
"0.70743036",
"0.70474666",
"0.6958398",
"0.6664783",
"0.66101164",
"0.6574873",
"0.65585613",
"0.645755",
"0.6426409",
"0.64126474",
"0.63615984",
"0.6358555",
"0.635814",
"0.6335517",
"0.628843",
"0.6257921",
"0.6253346",
"0.6231358",... | 0.9147154 | 0 |
Gets used component list. | Query getUsedComponentList(final ResourceResolver resourceResolver, List<String> conditions,boolean excludeChildrenPages); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CachetComponentList getComponents() {\n JsonNode rootNode = get(\"components\");\n CachetComponentList compList = CachetComponentList.parseRootNode(rootNode);\n return compList;\n }",
"public List<LComponent> getComponents()\n\t{\n\t\treturn this.components;\n\t}",
"@Override\n ... | [
"0.69169974",
"0.6891372",
"0.68628186",
"0.68613356",
"0.6823056",
"0.6760208",
"0.65844285",
"0.6522655",
"0.6455528",
"0.64408517",
"0.63603425",
"0.63369083",
"0.6303929",
"0.6260771",
"0.6235429",
"0.6191136",
"0.60460025",
"0.6019159",
"0.5980001",
"0.5969144",
"0.59532... | 0.60300636 | 17 |
Gets component usage number. | int getComponentUsageNumber(final String componentPath, final ResourceResolver resourceResolver,String[] paths,boolean excludeChildrenPages); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long usage() {\n return this.usage;\n }",
"public java.lang.Integer getUsedCounter() {\n\t\treturn this.usedCounter;\n\t}",
"@Override\n\t\tpublic long usage() {\n\t\t\t\n\t\t\treturn super.usage();\n\t\t}",
"public DGUsage getUsage() {\n return usage_;\n }",
"public int getUses() ... | [
"0.70658463",
"0.63826185",
"0.63602966",
"0.63167816",
"0.6258924",
"0.6191477",
"0.61172926",
"0.6042482",
"0.60021514",
"0.5967672",
"0.5878478",
"0.5868948",
"0.5862337",
"0.5857357",
"0.5806062",
"0.57769114",
"0.57392305",
"0.5737704",
"0.5683458",
"0.56810844",
"0.5647... | 0.61180216 | 6 |
Gets nodes component used at. | Iterator<Resource> getNodesComponentUsedAt(final String componentPath, final ResourceResolver resourceResolver, String[] paths,boolean excludeChildrenPages) ; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Nodes nodes() {\n return this.nodes;\n }",
"protected Node getComponentNode() {\n return componentNode;\n }",
"public Nodes getNodes()\n {\n return nodes;\n }",
"public Point2D getNodePositionXY () { return n.getXYPositionMap(); }",
"public List<Nodes> getNodes() {\n retu... | [
"0.651475",
"0.6426396",
"0.61294",
"0.6125186",
"0.6034064",
"0.5998373",
"0.5981157",
"0.5925454",
"0.58674854",
"0.58181024",
"0.5808232",
"0.5789777",
"0.57819724",
"0.5771389",
"0.57669586",
"0.5765266",
"0.5758707",
"0.5748397",
"0.57471436",
"0.57336247",
"0.57281405",... | 0.5278439 | 99 |
Restarts the game from the start menu and allows the player to select a map. | @Override
public void actionPerformed(ActionEvent arg0)
{
new TitleWindow();
frame.dispose();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void restartGame(boolean newMap) {\r\n\t\t// KeyboardInput.getInstance().cleanListenerList();\r\n\t\tKeyboardInput.getInstance().resetAllKeys();\r\n\t\trestartPositions();\r\n\t\tgenerateNewPanel(newMap);\r\n\t\taddUnitPanels();\r\n\t\tpauseGame();\r\n\t\tMapGFrame.getInstance().setVisible(false);\r\... | [
"0.75728154",
"0.73023146",
"0.7300437",
"0.72615933",
"0.6977503",
"0.694266",
"0.68487144",
"0.66952527",
"0.6575375",
"0.65703297",
"0.6558449",
"0.65279025",
"0.6485229",
"0.6477341",
"0.64361656",
"0.64068717",
"0.6401277",
"0.6384508",
"0.6359522",
"0.6338901",
"0.63175... | 0.0 | -1 |
Do nothing right now. | @Override
public void actionPerformed(ActionEvent arg0)
{
frame.dispose();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doNothing(){\n\t}",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tno();\n\t\t\t\t}",
"public static void doNothing(){\n\t}",
"public void __noop() {\n __send(__buildMessage(FTPCommand.getCommand(32), null));\n __getReplyNoReport();\n }",
"protected void onReset() {\n //... | [
"0.7421432",
"0.73903984",
"0.7316146",
"0.68607026",
"0.67753345",
"0.67567724",
"0.6703195",
"0.65130764",
"0.6475509",
"0.64619505",
"0.64606917",
"0.6437148",
"0.6404095",
"0.64039785",
"0.64007705",
"0.6400684",
"0.6371411",
"0.63378954",
"0.63319886",
"0.6331885",
"0.63... | 0.0 | -1 |
Creates the title label. | public void createLabels()
{
title = new JLabel("Game Over");
title.setForeground(Color.RED);
title.setFont(new Font(title.getFont().getName(), Font.PLAIN, 42));
title.setAlignmentX(Component.CENTER_ALIGNMENT);
roundLabel = new JLabel("CPU was infected on round "+roundLost);
roundLabel.setForeground(Color.RED);
roundLabel.setFont(new Font(title.getFont().getName(), Font.PLAIN, 18));
roundLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Label createTitle() {\n Label titleLbl = new Label(\"Tank Royale\");\n titleLbl.setFont(Font.loadFont(getClass().getResourceAsStream(\"/resources/fonts/ToetheLineless.ttf\"), 50));\n titleLbl.setPrefWidth(400);\n titleLbl.setLayoutX(545 - titleLbl.getWidth() - 157);\n tit... | [
"0.83492464",
"0.80175155",
"0.7955553",
"0.7931647",
"0.79209775",
"0.7761757",
"0.7561624",
"0.74686116",
"0.7386175",
"0.73796403",
"0.7365243",
"0.7295677",
"0.72939956",
"0.7264675",
"0.7232513",
"0.71571594",
"0.7075266",
"0.7074878",
"0.70696473",
"0.701259",
"0.697936... | 0.7258098 | 14 |
TODO: Does this change cache loader? | @Override
public LocalIntCacheStream distributedBatchSize(int batchSize) {
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean isCaching() {\n return false;\n }",
"public static void loadCache() {\n\t\t // it is the temporary replacement to database. We should use DB instead\n\t Circle circle = new Circle();\n\t circle.setId(\"1\");\n\t shapeMap.put(circle.getId(),circle);\n\n\t Squar... | [
"0.65534097",
"0.6476763",
"0.64744204",
"0.6459362",
"0.6418719",
"0.63977027",
"0.63743436",
"0.6282395",
"0.6216687",
"0.6168884",
"0.61420625",
"0.6111799",
"0.6097457",
"0.6092053",
"0.60856044",
"0.6067534",
"0.6036657",
"0.6033637",
"0.60200644",
"0.6014474",
"0.601378... | 0.0 | -1 |
All segments are completed when the getStream() is completed so we don't track them | @Override
public LocalIntCacheStream segmentCompletionListener(SegmentCompletionListener listener) {
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onDrainComplete();",
"@Override\n public void onDrainComplete()\n {\n }",
"@Override\n public void run() {\n synchronized (this) {\n this.running = true;\n }\n\n while (!this.decoder.complete()) {\n final ImageSequence sequence = this.decoder.getNext();\n Pair<Path... | [
"0.61040676",
"0.6031211",
"0.5830959",
"0.58159643",
"0.5707774",
"0.57076937",
"0.56408876",
"0.56140023",
"0.55968183",
"0.5580259",
"0.55538666",
"0.5513031",
"0.5494798",
"0.5494538",
"0.54844373",
"0.54844373",
"0.5463592",
"0.545945",
"0.54508686",
"0.54470503",
"0.540... | 0.51059806 | 55 |
Local long stream doesn't matter for rehash | @Override
public LocalIntCacheStream disableRehashAware() {
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public long applyAsLong(BytesStore bytes, @NonNegative long length) throws IllegalStateException, BufferUnderflowException {\n long hash;\n long remaining = length;\n long off = bytes.readPosition();\n\n if (remaining >= 32) {\n long v1 = seed + P1 + P2;\n ... | [
"0.60578454",
"0.60523593",
"0.5757642",
"0.5742549",
"0.5503778",
"0.5488715",
"0.5454526",
"0.5411405",
"0.5399607",
"0.5294099",
"0.52929795",
"0.52671975",
"0.5253222",
"0.5241482",
"0.52291113",
"0.52105635",
"0.5176839",
"0.5173885",
"0.51712686",
"0.51708776",
"0.51648... | 0.49649218 | 48 |
Timeout does nothing for a local long cache stream | @Override
public LocalIntCacheStream timeout(long timeout, TimeUnit unit) {
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void test_002_Stream() throws Throwable {\n\n final String RESOURCE_URI = \"asimov_it_test_002_SP_PROXYING\";\n String uri = createTestResourceUri(RESOURCE_URI);\n\n HttpRequest request = createRequest().setUri(uri).addHeaderField(\"Cache-Control\" ,\"max-age=500\").getReque... | [
"0.60473144",
"0.5912403",
"0.5839164",
"0.5839164",
"0.56994295",
"0.5645951",
"0.5577249",
"0.5505914",
"0.54606193",
"0.5453074",
"0.5440275",
"0.5426222",
"0.54206616",
"0.5413845",
"0.5391709",
"0.53891706",
"0.5371072",
"0.5367853",
"0.53598136",
"0.53585577",
"0.531399... | 0.7280058 | 0 |
db.execSQL("create table " + TABLE_NAME + " (ID INTEGER PRIMARY KEY AUTOINCREMENT,USERNAME TEXT,PASSWORD TEXT,MOBILENO TEXT,LOGIN_TYPE TEXT)"); | @Override
public void onCreate(SQLiteDatabase db) {
db.execSQL(CREATE_TABLE);
Log.d("TAG","DATABASE TABLE1 CREATED");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n sqLiteDatabase.execSQL(\"create table \" + TABLE_NAME + \" (\" + COL_NAME + \" varchar(30), \" + COL_MOBILE + \" long(10) , \" + COL_PASSWORD + \" varchar(15), \" + COL_STATE + \" varchar(20),\" + COL_EMAIL + \" varchar(35) primary key);... | [
"0.8367173",
"0.8166171",
"0.8051665",
"0.79110914",
"0.7865392",
"0.77872163",
"0.7677457",
"0.75073713",
"0.748586",
"0.7471507",
"0.74638087",
"0.7424443",
"0.74162376",
"0.74024177",
"0.7390382",
"0.73891187",
"0.7386997",
"0.73857856",
"0.73658776",
"0.73566777",
"0.7339... | 0.718767 | 28 |
updating the database to new version if old version exist | @Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME);
onCreate(db);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void reDownloadDB(String newVersion)\n {\n }",
"private ServerError updateDatabase() {\n return updateDatabase(WebConf.DB_CONN, WebConf.JSON_OBJECTS, WebConf.DEFAULT_VERSION);\r\n }",
"private void updateDB() {\n }",
"private static void upgradeFrom_1_to_2(SQL... | [
"0.72352606",
"0.7000357",
"0.6923688",
"0.68766963",
"0.68555915",
"0.6764024",
"0.67321366",
"0.6582651",
"0.655339",
"0.6520704",
"0.65031856",
"0.6493978",
"0.64820844",
"0.6472086",
"0.6463604",
"0.63947827",
"0.6372867",
"0.6371126",
"0.63673353",
"0.63590175",
"0.63420... | 0.0 | -1 |
inserting data into table | public boolean insertData(String name, String password,String mobile,String usertype) {
SQLiteDatabase db = this.getWritableDatabase();
ContentValues contentValues1 = new ContentValues();
// contentValues1.put(ID, id);
contentValues1.put(ROOMNAME, name);
contentValues1.put(ROOMNO, password);
contentValues1.put(POSITIONNO, mobile);
contentValues1.put(IMGNAME, usertype);
// long result = db.insertWithOnConflict(TABLE_NAME, null, contentValues1,SQLiteDatabase.CONFLICT_REPLACE);
boolean result = db.insert(TABLE_NAME, null, contentValues1)>0;
return result;
/*if (result == -1)
return false;
else
return true;*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int insert(Assist_table record);",
"public void insert() throws SQLException;",
"public void insertData(String tableName) {\n //SQL statement\n String query = \"insert into \" + tableName +\n \"(\" +\n \"myName, address) \" +\n \"values ('Michael', 'my... | [
"0.73182386",
"0.7296828",
"0.7083536",
"0.7048861",
"0.70185244",
"0.69088614",
"0.68695694",
"0.67575043",
"0.67515",
"0.6747803",
"0.67460936",
"0.67391664",
"0.67306775",
"0.6714399",
"0.6693609",
"0.66898644",
"0.66757315",
"0.6666321",
"0.6628067",
"0.6617897",
"0.66124... | 0.0 | -1 |
getting number of rows from table | public int numberOfRows(){
SQLiteDatabase db = this.getReadableDatabase();
int numRows = (int) DatabaseUtils.queryNumEntries(db,TABLE_NAME);
return numRows;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getRowsCount();",
"private int getRowCount(String table) {\n return getIntFromQuery(\"SELECT COUNT(*) from \" + table, null);\n }",
"public abstract int getNumOfRows();",
"private int getJTableNumberOfRows() {\n\n\t\tint count = 0; /* create a integer object for rows count */\n\t\tConnection connec... | [
"0.858115",
"0.830207",
"0.8129651",
"0.8108679",
"0.80628055",
"0.8054466",
"0.8026723",
"0.79973847",
"0.79008216",
"0.77982503",
"0.7757405",
"0.7741033",
"0.7703272",
"0.7701983",
"0.7701983",
"0.7701983",
"0.7701983",
"0.7701983",
"0.7701983",
"0.7701983",
"0.76973325",
... | 0.76891744 | 21 |
getting data based on roomnames | public List<String> getData1() {
List<String> arr=new ArrayList<String>();
SQLiteDatabase db = this.getReadableDatabase();
Cursor cursor = db.rawQuery("select * from " + TABLE_NAME +" ORDER BY " + POSITIONNO + " ASC",null);
if (cursor.moveToFirst()) {
while (!cursor.isAfterLast()) {
String name = cursor.getString(cursor.getColumnIndex(ROOMNAME));
arr.add(name);
cursor.moveToNext();
}
}
return arr;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"RoomInfo room(String name);",
"java.lang.String getRoomName();",
"private void get_rooms() throws FileNotFoundException\n {\n Scanner room_all = new Scanner(new FileInputStream(db_rooms));\n room_all.nextLine();\n while(room_all.hasNextLine())\n {\n String [] searcher ... | [
"0.6972941",
"0.6859877",
"0.67247367",
"0.6710949",
"0.65317005",
"0.63207287",
"0.6296917",
"0.6267265",
"0.6251746",
"0.6216822",
"0.6177669",
"0.6177669",
"0.6176581",
"0.6170991",
"0.6139354",
"0.61389756",
"0.61284804",
"0.6107809",
"0.6069644",
"0.60420406",
"0.6023684... | 0.5728285 | 48 |
ORDER BY " + SQLiteHelper.listDate+ " ASC" getting data based on roomnames | public List<String> getimagenames() {
List<String> arrimg=new ArrayList<String>();
SQLiteDatabase db = this.getReadableDatabase();
Cursor cursor = db.rawQuery("select * from " + TABLE_NAME +" ORDER BY " + POSITIONNO + " ASC" ,null);
if (cursor.moveToFirst()) {
while (!cursor.isAfterLast()) {
String name = cursor.getString(cursor.getColumnIndex(IMGNAME));
arrimg.add(name);
cursor.moveToNext();
}
}
return arrimg;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static String availableRooms(ArrayList<Room> roomList,String start_date){\n String stringList = \"\";\n for(Room room : roomList){\n System.out.println(room.getName());\n ArrayList<Meeting> meet = room.getMeetings();\n for(Meeting m : meet){\n ... | [
"0.6527604",
"0.6307283",
"0.62138295",
"0.5950307",
"0.573816",
"0.5704489",
"0.56872475",
"0.5586847",
"0.55102384",
"0.5500614",
"0.549205",
"0.54751486",
"0.5472529",
"0.5462006",
"0.5454755",
"0.54241353",
"0.53707856",
"0.53700066",
"0.53642076",
"0.5335002",
"0.5333108... | 0.0 | -1 |
get all position values | public int[] getposvalues( int size) {
List<String> arrpos=new ArrayList<String>();
int poss[]=new int[size];int h=0;
SQLiteDatabase db = this.getReadableDatabase();
Cursor cursor = db.rawQuery("select * from " + TABLE_NAME ,null);
if (cursor.moveToFirst()) {
while (!cursor.isAfterLast()) {
//String name = cursor.getString(cursor.getColumnIndex(POSITIONNO));
poss[h]=Integer.parseInt(cursor.getString(cursor.getColumnIndex(POSITIONNO)));
h++;
// arrpos.add(name);
cursor.moveToNext();
}
}
return poss;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Basic @Raw\n public double[] getPosition(){\n\t double[] result = {this.position[0], this.position[1]};\n\t return result;\n }",
"@Override\n public double[] getPos() {\n return this.pos;\n }",
"public long getPositions() {\n return positions;\n }",
"public List<Position> getP... | [
"0.73795",
"0.7192122",
"0.715115",
"0.7129919",
"0.70330185",
"0.6913695",
"0.69000953",
"0.6866025",
"0.68069583",
"0.68036586",
"0.6795293",
"0.67730975",
"0.67696744",
"0.6750237",
"0.6714393",
"0.6627607",
"0.6551134",
"0.6524455",
"0.64946795",
"0.64828706",
"0.64620644... | 0.6414695 | 26 |
getting data based on logintype | public Cursor getposition(List<String> pos) {
SQLiteDatabase db = this.getReadableDatabase();
Cursor res = db.rawQuery( "select * from "+TABLE_NAME+" where IMGNAME="+pos, null );
if (res != null)
res.moveToFirst();
return res;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ResultObject getLogData(LogDataRequest logDateRequest)throws ParserException;",
"public int getLogType(int index)\n {\n return m_Log.get(index).getType();\n }",
"public abstract void getDataFromDataLogger();",
"Log getHarvestLog(String dsID) throws RepoxException;",
"private LogDataHolder p... | [
"0.6441256",
"0.63147366",
"0.60389054",
"0.5751714",
"0.5677147",
"0.5649387",
"0.562815",
"0.56144255",
"0.55551094",
"0.5464349",
"0.5406902",
"0.5400327",
"0.53847706",
"0.5320056",
"0.53124714",
"0.52951014",
"0.52736664",
"0.52736664",
"0.5244706",
"0.5236119",
"0.52342... | 0.0 | -1 |
generate an array of 10 elements hist[0] = number of empty bins hist[1] = number of bins containing 1 element hist[2] = number of bins containing 2 elements... hist[9] = number of bins containing 9 OR GREATER print all nonzero bins: | public void computeHistogram() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void computeHistogramBins() {\r\n int nBins = (int) Math.ceil(hismax / binWidth);\r\n histoBins = new double[nBins];\r\n for (int i = 0; i < nBins; i++) {\r\n histoBins[i] = binWidth * (double) i + binWidth;\r\n }\r\n }",
"public double[] histogram() {\n i... | [
"0.720625",
"0.6412679",
"0.63911533",
"0.6362544",
"0.604599",
"0.6000708",
"0.59350103",
"0.5893601",
"0.5851012",
"0.5815917",
"0.5808565",
"0.57973194",
"0.57927877",
"0.5789464",
"0.57673556",
"0.57285935",
"0.5704707",
"0.56950486",
"0.5655314",
"0.5650342",
"0.5646539"... | 0.6056775 | 4 |
The object responsible for acting as chairs or a person standing in the floor plan | public Spots(int ID, double x, double y, double x2, double y2) {
super(ID, x, y, x2, y2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Room createCastle(){\n Room hallway = new Room(\"the hallway\");\n\n Room theStairs = new Room(\"the staircase\");\n Medic medic = new Medic(20, 3);\n theStairs.medic = medic;\n\n Room livingRoom = new Room(\"the living room\");\n Monster monster = new Monster(\"Gr... | [
"0.5850968",
"0.5684356",
"0.5607306",
"0.558516",
"0.5573423",
"0.5569884",
"0.55608773",
"0.5540189",
"0.55277044",
"0.5514253",
"0.5508089",
"0.550799",
"0.55051565",
"0.5503927",
"0.54937696",
"0.5492468",
"0.5458177",
"0.54529727",
"0.54461473",
"0.5437013",
"0.5425973",... | 0.0 | -1 |
Switches spot availability to true | public void makeAvailable() {
available = true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void changeAvailability() {\n\t\tavailability = !availability;\n\t}",
"@Override\n public boolean active() {\n General.sleep(100); // Sleep to reduce CPU usage.\n return fishing_spots[0].isOnScreen();\n }",
"public void setAvailable(boo... | [
"0.671958",
"0.6589713",
"0.641557",
"0.6198952",
"0.6058386",
"0.60083973",
"0.5932158",
"0.5888218",
"0.5875346",
"0.586954",
"0.5842718",
"0.57665354",
"0.57548946",
"0.5702223",
"0.56837",
"0.56837",
"0.5635823",
"0.56285524",
"0.557545",
"0.5574252",
"0.55628204",
"0.5... | 0.5939049 | 6 |
Switches spot availability to false | public void takeAvailable() {
available = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void changeAvailability() {\n\t\tavailability = !availability;\n\t}",
"@Override\n public boolean active() {\n General.sleep(100); // Sleep to reduce CPU usage.\n return fishing_spots[0].isOnScreen();\n }",
"public void setAvailable(boo... | [
"0.6686187",
"0.6218834",
"0.6201689",
"0.60388917",
"0.59467065",
"0.58379304",
"0.57955027",
"0.5789651",
"0.5772869",
"0.57667977",
"0.5739568",
"0.5736941",
"0.57166684",
"0.5715148",
"0.56968707",
"0.5676535",
"0.56561846",
"0.56295675",
"0.5619802",
"0.5610491",
"0.5605... | 0.6030757 | 4 |
Switches whether somebody is in the spot or not | void updateOccupancy() {
occupied = !occupied;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isPlaced();",
"public boolean moveOn() {\n\t\t\n\t}",
"@Override\n\tpublic void IsAtCentre(boolean b, Time time) {\n\t\t\n\t}",
"private boolean isAtFish(){\n final RSNPC[] fishing_spots = NPCs.findNearest(\"Fishing spot\");\n if (fishing_spots.length < 1){\n return false;\n ... | [
"0.6402784",
"0.639162",
"0.62799096",
"0.62393117",
"0.6095077",
"0.6064751",
"0.6055643",
"0.60326654",
"0.60254335",
"0.6002621",
"0.59723103",
"0.59523785",
"0.59523785",
"0.5930021",
"0.5877349",
"0.58700144",
"0.5858756",
"0.5858322",
"0.5855845",
"0.58474076",
"0.58322... | 0.0 | -1 |
Sets the value of occupied to the given value | public void setOccupancy(boolean occupancy) {
this.occupied = occupancy;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOccupied(int occupied) {\n this.occupied = occupied;\n }",
"public void setOccupied(Boolean occupied) {\n\t\tthis.occupied = occupied;\n\t}",
"public void setOccupied(boolean occupied){\n this.occupied = occupied;\n }",
"public void setOccupied(int x, int y) {\r\n\t\toccupi... | [
"0.79215634",
"0.69984245",
"0.69806397",
"0.6687778",
"0.65279514",
"0.6461128",
"0.6391796",
"0.6026387",
"0.59225",
"0.5893311",
"0.58764005",
"0.58640146",
"0.58640146",
"0.58558935",
"0.58554965",
"0.58554965",
"0.58201987",
"0.577153",
"0.5769407",
"0.57158893",
"0.5707... | 0.0 | -1 |
/ DataModel holds the data that must be viewed by the UI If the UI needs any information from the model there should be a getter here | public interface DataModel {
/*
Returns an ArrayList of all the Click Logs
*/
// List<ClickLog> getClickData();
/*
Returns an ArrayList of all the Impression Logs
*/
// List<ImpressionLog> getImpressionData();
/*
Returns an ArrayList of all the Server Logs
*/
// List<ServerLog> getServerData();
/**
* Gets the name of the associated campaign
* @return the name of the campaign
*/
String getName();
/**
*
* @return the total number of impressions in the campaign
*/
int getImpressionsNumber() throws SQLException;
/**
* Gets all the impression data, grouped within a
* specified interval
* @param step the millisecond interval by which to group
* @return A grouped map of Impression quantity and date
*/
Map<Date, Integer> getFullImpressions(Step step) throws SQLException;
//int getOverallImpressionsByInterval(Date startInterval, Date endInterval);
/**
* Get the total number of clicks in the campaign
* @return Number of clicks
*/
int getClicksNumber() throws SQLException;
/**
* get the number of clicks grouped by an interval
* @param step the millisecond interval by which to group
* @return A map of number of clicks within a date interval
*/
Map<Date, Integer> getFullClicks(Step step) throws SQLException;
//int getOverallClicksByInterval(Date startInterval, Date endInterval);
/**
* get the total number of uniques within the campaign
* @return total uniques
*/
int getUniquesNumber() throws SQLException;
/**
* The number of uniques grouped by a specified interval
* @param step the millisecond interval by which to group
* @return a map of uniques by date interval
*/
Map<Date, Integer> getFullUniques(Step step) throws SQLException;
// int getOverallUniquesByInterval(Date startInterval, Date endInterval);
/**
* get the total number of bounces across the campaign
* @return total bounces
*/
int getBouncesNumber() throws SQLException;
// Map<Date, Integer> getBouncesByInterval(Date startInterval, Date endInterval);
// Map<Date, Integer> getBouncesByInterval(Date startInterval, Date endInterval, Step step);
/**
* get the number of bounces grouped by the a step interval
* @param step the millisecond interval by which to group
* @return a map of the number of bounces in each time interval
*/
Map<Date, Integer> getFullBounces(Step step) throws SQLException;
// int getOverallBouncesByInterval(Date startInterval, Date endInterval);
/**
* get the total number of conversions across the campaign
* @return number of conversions
*/
int getConversionsNumber() throws SQLException;
// Map<Date, Integer> getConversionsByInterval(Date startInterval, Date endInterval);
// Map<Date, Integer> getConversionsByInterval(Date startInterval, Date endInterval, Step step);
/**
* get the number of conversions grouped by a step interval
* @param step the millisecond interval by which to group
* @return a mapping of conversion quantity and time interval
*/
Map<Date, Integer> getFullConversions(Step step) throws SQLException;
// int getOverallConversionsByInterval(Date startInterval, Date endInterval);
/**
* get the total cost of the campaign
* @return campaign total cost
*/
float getTotalCost() throws SQLException;
// Map<Date, Float> getCostByInterval(Date startInterval, Date endInterval);
// Map<Date, Float> getCostByInterval(Date startInterval, Date endInterval, Step step);
/**
* get the cost of the campaign grouped by a time step
* @param step the millisecond interval by which to group
* @return cost of the campaign within each time step
*/
Map<Date, Float> getFullCost(Step step) throws SQLException;
/**
* get the Click Through Rate of the campaign
* @return click through rate
*/
float getCTR() throws SQLException;
// Map<Date, Float> getCTRByInterval(Date startInterval, Date endInterval);
// Map<Date, Float> getCTRByInterval(Date startInterval, Date endInterval, Step step);
/**
* get the Click Through Rate for the campaign grouped
* by a specified step interval
* @param step the millisecond interval by which to group
* @return a mapping of the click through rate with its date interval
*/
Map<Date, Float> getFullCTR(Step step) throws SQLException;
// float getOverallCTRByInterval(Date startInterval, Date endInterval);
/*
The average amount of money spent on an advertising campaign.
*/
/**
* The Cost-Per-Acquisition of the whole campaign
* @return cost-per-acquisition
*/
float getCPA() throws SQLException;
// Map<Date, Float> getCPAByInterval(Date startInterval, Date endInterval);
// Map<Date, Float> getCPAByInterval(Date startInterval, Date endInterval, Step step);
/**
* get the cost-per-acquisition grouped by a specified time step
* @param step the millisecond interval by which to group
* @return map of date interval with corresponding cost-per-acquisition
*/
Map<Date, Float> getFullCPA(Step step) throws SQLException;
/**
* get the average cost-per-click of the whole campaign
* @return average cost-per-click
*/
float getCPC() throws SQLException;
/**
* get the cost-per-click of time intervals within the campaign
* @param step the millisecond interval by which to group
* @return map of date interval with corresponding cost-per-click
*/
Map<Date, Float> getFullCPC(Step step) throws SQLException;
/**
* get cost-per-thousand-impressions fot the whole campaign
* @return cost-per-thousand-impressions
*/
float getCPM() throws SQLException;
// Map<Date, Float> getCPMByInterval(Date startInterval, Date endInterval);
// Map<Date, Float> getCPMByInterval(Date startInterval, Date endInterval, Step step);
/**
* get the cost-per-thousand-impressions for intervals within the campaign
* @param step millisecond interval by which to group
* @return map of cost-per-thousand-impressions with date interval
*/
Map<Date, Float> getFullCPM(Step step) throws SQLException;
// float getOverallCPMByInterval(Date startInterval, Date endInterval);
/*
The average number of bounces per click.
*/
/**
* returns the average number of bounces per click
* @return average bounces per click
*/
float getBounceRate() throws SQLException;
// Map<Date, Float> getBounceRateByInterval(Date startInterval, Date endInterval);
// Map<Date, Float> getBounceRateByInterval(Date startInterval, Date endInterval, Step step);
/**
* returns a mapping of bounces per click grouped by a specified
* time interval
* @param step millisecond time interval by which to group
* @return map of bounce rates within associated time intervals
*/
Map<Date, Float> getFullBounceRate(Step step) throws SQLException;
// float getOverallBounceRateByInterval(Date startInterval, Date endInterval);
// Map<Date, Set<String>> getUsersByInterval(Date startInterval, Date endInterval);
// Map<Date, Set<String>> getUsersByInterval(Date startInterval, Date endInterval, Step step);
/**
* return the names of users with registered activity grouped by
* a specified time interval
* @param step the millisecond interval by which to group
* @return map of user sets within associated time intervals
*/
Map<Date, Set<String>> getFullUsers(Step step) throws SQLException;
LinkedHashMap<String, Integer> getHistogramData() throws SQLException;
// Set<String> getOverallUsersRateByInterval(Date startInterval, Date endInterval);
/**
* gets the currently applied filter
* @return currently applied filter
*/
Filter getFilter();
/**
* sets the current filter for the campaign
* @param f the filter that should be applied to the campaign
*/
void setFilter(Filter f);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DataModel getDataModel ();",
"public DataModel getDataModel() {\r\n\t\treturn this.model;\r\n\t}",
"public Map<String, Object> getDataModel() {\n return this.dataModel;\n }",
"ModelData getModel();",
"IDataModel getIDataModel();",
"public DataModel getData() {\r\n state = PersistentFaces... | [
"0.79461384",
"0.7735485",
"0.7521155",
"0.73871493",
"0.71102047",
"0.70091313",
"0.6960962",
"0.670724",
"0.6658747",
"0.6655408",
"0.66269064",
"0.66265845",
"0.65471244",
"0.6492892",
"0.64634836",
"0.6395705",
"0.6389457",
"0.6386235",
"0.63633484",
"0.6357461",
"0.63247... | 0.0 | -1 |
/ Returns an ArrayList of all the Click Logs List getClickData(); / Returns an ArrayList of all the Impression Logs List getImpressionData(); / Returns an ArrayList of all the Server Logs List getServerData(); Gets the name of the associated campaign | String getName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Map getCampaignClickStats(String campaignId){\r\n CampaignClickStatsMethod campaignClickStatsMethod = new CampaignClickStatsMethod();\r\n Map campaignClickStatsResult = new HashMap();\r\n\r\n campaignClickStatsMethod.apikey = this.apiKey;\r\n campaignClickStatsMethod.cid = campai... | [
"0.5686107",
"0.53384984",
"0.5272245",
"0.5248822",
"0.5162482",
"0.50549304",
"0.50484127",
"0.50345963",
"0.50296944",
"0.4976889",
"0.49379435",
"0.4853184",
"0.48503238",
"0.48023382",
"0.47996348",
"0.47961962",
"0.4796155",
"0.47640043",
"0.47439483",
"0.4729321",
"0.4... | 0.0 | -1 |
Gets all the impression data, grouped within a specified interval | Map<Date, Integer> getFullImpressions(Step step) throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<AggregatedStatistics> getSnapshotsInInterval(EventInterval eventInterval, Date startDate,\n Date endDate);",
"public static MissingRangesStatistics getMissingRangeStatistics(TreeMap<LocalDateTime, Consumption> data, LocalDateTime start, LocalDateTime end, int interval) {\n TreeMap<Integer, Int... | [
"0.54846174",
"0.5352866",
"0.5323017",
"0.5297444",
"0.5254921",
"0.5188381",
"0.5184313",
"0.50114083",
"0.4987914",
"0.49460635",
"0.49354345",
"0.49299204",
"0.48133552",
"0.48021117",
"0.47403306",
"0.46739772",
"0.46552357",
"0.46550494",
"0.45781925",
"0.45677063",
"0.... | 0.61412543 | 0 |
int getOverallImpressionsByInterval(Date startInterval, Date endInterval); Get the total number of clicks in the campaign | int getClicksNumber() throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<Date, Integer> getFullImpressions(Step step) throws SQLException;",
"public Integer getImpressions() {\r\n return impressions;\r\n }",
"@Override\r\n\tpublic int getCount(Date dateStart, Date dateEnd) {\n\t\tString hql = \"select sum(cc.count) from cinema_condition cc where cc.date >= ? and cc.da... | [
"0.6148814",
"0.5855671",
"0.545076",
"0.54492176",
"0.5330095",
"0.52979743",
"0.5295784",
"0.52536315",
"0.5149849",
"0.5082854",
"0.5029107",
"0.50099427",
"0.5006039",
"0.49986976",
"0.4991092",
"0.49801967",
"0.49659622",
"0.49385563",
"0.4934258",
"0.49292618",
"0.49227... | 0.0 | -1 |
get the number of clicks grouped by an interval | Map<Date, Integer> getFullClicks(Step step) throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int totalClicks() {\n return counterClicks;\n }",
"private int getNumberOfEventsByMinuteOrHour(boolean isByMinute) {\n int counter = 0;\n long currentTimeSeconds = getCurrentTimeInSeconds();\n long currentTimeIndex = (currentTimeSeconds - startTime) % SECONDS_IN_DAY;\... | [
"0.6107035",
"0.5916469",
"0.5891762",
"0.5810926",
"0.5792628",
"0.5611074",
"0.5572254",
"0.5532264",
"0.5427245",
"0.5405341",
"0.53996843",
"0.5373005",
"0.5310496",
"0.5303339",
"0.5247878",
"0.52444834",
"0.5238964",
"0.5220331",
"0.51975894",
"0.51813316",
"0.5173522",... | 0.0 | -1 |
int getOverallClicksByInterval(Date startInterval, Date endInterval); get the total number of uniques within the campaign | int getUniquesNumber() throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long countUniqueClientsBetween(String companyId, DateTime startDate, DateTime endDate);",
"long getUnjoinedEventsCount();",
"int getAoisCount();",
"public static int totalClicks() {\n return counterClicks;\n }",
"@Override\r\n\tpublic int getCount(Date dateStart, Date dateEnd) {\n\t\tString hql =... | [
"0.6274251",
"0.56744796",
"0.55391884",
"0.54972047",
"0.5495704",
"0.5445143",
"0.54407215",
"0.53918594",
"0.53898126",
"0.5377605",
"0.5373108",
"0.53530365",
"0.5320423",
"0.5287514",
"0.52467185",
"0.5238548",
"0.52335626",
"0.52173823",
"0.51839",
"0.5171735",
"0.51567... | 0.0 | -1 |
The number of uniques grouped by a specified interval | Map<Date, Integer> getFullUniques(Step step) throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getUniqueNumbersCount();",
"double bucketSize(long bucket, Rounding.DateTimeUnit unit);",
"int getAndSequenceGroupsCount();",
"int getGroupCount();",
"public static void main(String[] args) {\n List<Integer> nums = new ArrayList<>(Arrays.asList(5, 7, 3, 7, 2, 8, 3, 7, 2));\n //Map<Integer... | [
"0.6705817",
"0.58117807",
"0.56623137",
"0.56380504",
"0.5628972",
"0.5603747",
"0.5553751",
"0.55426323",
"0.55299777",
"0.55119336",
"0.5510262",
"0.54805696",
"0.5433602",
"0.5419503",
"0.53892064",
"0.5386837",
"0.53567016",
"0.5353442",
"0.53498673",
"0.53361374",
"0.53... | 0.0 | -1 |
int getOverallUniquesByInterval(Date startInterval, Date endInterval); get the total number of bounces across the campaign | int getBouncesNumber() throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long countUniqueClientsBetween(String companyId, DateTime startDate, DateTime endDate);",
"int getRefundToCount();",
"int getAoisCount();",
"public static MissingRangesStatistics getMissingRangeStatistics(TreeMap<LocalDateTime, Consumption> data, LocalDateTime start, LocalDateTime end, int interval) {\n ... | [
"0.6283956",
"0.5526942",
"0.54812366",
"0.54708517",
"0.54572207",
"0.5384687",
"0.53654623",
"0.5332055",
"0.5309343",
"0.5303574",
"0.529592",
"0.52902186",
"0.5277951",
"0.52722436",
"0.5270286",
"0.52575004",
"0.52115583",
"0.52025443",
"0.52025443",
"0.51776576",
"0.517... | 0.0 | -1 |
Map getBouncesByInterval(Date startInterval, Date endInterval); Map getBouncesByInterval(Date startInterval, Date endInterval, Step step); get the number of bounces grouped by the a step interval | Map<Date, Integer> getFullBounces(Step step) throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<Date, Float> getFullBounceRate(Step step) throws SQLException;",
"double bucketSize(Rounding.DateTimeUnit unit);",
"double bucketSize(long bucket, Rounding.DateTimeUnit unit);",
"private void calculateBPRange() {\n\t\tbroadPhaseLength = 0.0f;\n\t\tfor (Vector2f p : points) {\n\t\t\tbroadPhaseLength = Mat... | [
"0.6016057",
"0.55193084",
"0.54340917",
"0.51041985",
"0.49764487",
"0.49122068",
"0.48908412",
"0.4883867",
"0.4800057",
"0.47959572",
"0.47867998",
"0.47475255",
"0.4714456",
"0.46977797",
"0.46965852",
"0.4676827",
"0.46620047",
"0.4656031",
"0.46445397",
"0.46408784",
"0... | 0.70945245 | 0 |
int getOverallBouncesByInterval(Date startInterval, Date endInterval); get the total number of conversions across the campaign | int getConversionsNumber() throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getTotalClubHasBooking(LocalDateTime start, LocalDateTime end) {\n\n\t\treturn creditBookingRepo.getTotalClubHasBooking(start, end);\n\t}",
"Map<Date, Integer> getFullBounces(Step step) throws SQLException;",
"int getMetricCostsCount();",
"public int numberOfContractBetween(String start, Strin... | [
"0.5825649",
"0.5485666",
"0.531248",
"0.53016615",
"0.52476406",
"0.5161313",
"0.51103646",
"0.50311047",
"0.5009109",
"0.49989715",
"0.49983677",
"0.49957973",
"0.49525174",
"0.49225977",
"0.4918677",
"0.489888",
"0.48697087",
"0.48672125",
"0.48578504",
"0.48415738",
"0.48... | 0.0 | -1 |
Map getConversionsByInterval(Date startInterval, Date endInterval); Map getConversionsByInterval(Date startInterval, Date endInterval, Step step); get the number of conversions grouped by a step interval | Map<Date, Integer> getFullConversions(Step step) throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<Date, Float> getFullCTR(Step step) throws SQLException;",
"public void testGetSubIntervalCount() {\n TaskSeriesCollection tsc = createCollection3();\n }",
"Map<Date, Integer> getFullBounces(Step step) throws SQLException;",
"public Map<String, Object> countSalesEvents(String startDate, String e... | [
"0.5108986",
"0.5080489",
"0.4920865",
"0.48057553",
"0.4793963",
"0.4787936",
"0.4759518",
"0.47359174",
"0.47215655",
"0.47156075",
"0.46449316",
"0.46270838",
"0.46120244",
"0.46016923",
"0.45969805",
"0.457245",
"0.455063",
"0.45151025",
"0.45093787",
"0.4509313",
"0.4508... | 0.67620087 | 0 |
int getOverallConversionsByInterval(Date startInterval, Date endInterval); get the total cost of the campaign | float getTotalCost() throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Double getCostInterval();",
"public double usageCost() {\r\n double totalCost = 0;\r\n for (Booking aBooking: getBookings()) {\r\n long diff = (aBooking.getDateTo().getTime() \r\n - aBooking.getDateFrom().getTime());\r\n int noOfDays = (int) ((diff / ... | [
"0.6521358",
"0.6194484",
"0.6152604",
"0.59087485",
"0.57669735",
"0.56919265",
"0.56919265",
"0.5686312",
"0.5683484",
"0.5671446",
"0.56532776",
"0.5636579",
"0.56102586",
"0.56102586",
"0.56102586",
"0.5574646",
"0.5493046",
"0.5481354",
"0.5479693",
"0.5471164",
"0.54505... | 0.50645524 | 62 |
Map getCostByInterval(Date startInterval, Date endInterval); Map getCostByInterval(Date startInterval, Date endInterval, Step step); get the cost of the campaign grouped by a time step | Map<Date, Float> getFullCost(Step step) throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Double getCostInterval();",
"Map<Date, Float> getFullCPC(Step step) throws SQLException;",
"java.util.Map<String, Long>\n getMetricCostsMap();",
"Map<String, Map<String, Double>> getElementCosts();",
"Map<Date, Integer> getFullImpressions(Step step) throws SQLException;",
"public CostItem[] getCo... | [
"0.58631486",
"0.56286657",
"0.5585115",
"0.5522323",
"0.5348804",
"0.53349745",
"0.5334217",
"0.52931935",
"0.5291225",
"0.52724814",
"0.52620363",
"0.52389306",
"0.51862514",
"0.49900708",
"0.49788758",
"0.49270302",
"0.49247873",
"0.49036348",
"0.47914067",
"0.47914067",
"... | 0.6510129 | 0 |
get the Click Through Rate of the campaign | float getCTR() throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Double getClickConversionRate() {\r\n return clickConversionRate;\r\n }",
"public Double getConversionRateManyPerClick() {\r\n return conversionRateManyPerClick;\r\n }",
"public BigDecimal getCostPerConvertedClick() {\r\n return costPerConvertedClick;\r\n }",
"double getR... | [
"0.7100036",
"0.67489356",
"0.61065406",
"0.60936695",
"0.589864",
"0.57851803",
"0.577615",
"0.5769979",
"0.5742672",
"0.57373726",
"0.57224923",
"0.5706359",
"0.5686843",
"0.5650575",
"0.5647973",
"0.56415915",
"0.5638047",
"0.56031907",
"0.56023365",
"0.56023365",
"0.55981... | 0.0 | -1 |
Map getCTRByInterval(Date startInterval, Date endInterval); Map getCTRByInterval(Date startInterval, Date endInterval, Step step); get the Click Through Rate for the campaign grouped by a specified step interval | Map<Date, Float> getFullCTR(Step step) throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<Date, Integer> getFullImpressions(Step step) throws SQLException;",
"@GetMapping(\"/activity/{category}\")\n Stats getStats(@PathVariable(value = \"category\") StatsCategory category) {\n Stats stats = new Stats();\n log.info(\"getting all activity\");\n List<Activity> allActivity = r... | [
"0.533381",
"0.5229795",
"0.52171814",
"0.5192208",
"0.51813316",
"0.512117",
"0.5094699",
"0.49436197",
"0.49125388",
"0.48688203",
"0.47814733",
"0.4683051",
"0.4673007",
"0.45844907",
"0.45664653",
"0.4549571",
"0.45346928",
"0.44983834",
"0.44889045",
"0.44728354",
"0.446... | 0.5967373 | 0 |
float getOverallCTRByInterval(Date startInterval, Date endInterval); / The average amount of money spent on an advertising campaign. The CostPerAcquisition of the whole campaign | float getCPA() throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"float getVacationAccrualRate();",
"public double usageCost() {\r\n double totalCost = 0;\r\n for (Booking aBooking: getBookings()) {\r\n long diff = (aBooking.getDateTo().getTime() \r\n - aBooking.getDateFrom().getTime());\r\n int noOfDays = (int) ((diff / (... | [
"0.5989436",
"0.5933802",
"0.5899519",
"0.58930904",
"0.58239853",
"0.57741433",
"0.56905293",
"0.56217265",
"0.55200547",
"0.54883325",
"0.5487828",
"0.5398866",
"0.5383684",
"0.53815806",
"0.53688526",
"0.5364136",
"0.5331552",
"0.53306717",
"0.5325062",
"0.5302242",
"0.528... | 0.0 | -1 |
Map getCPAByInterval(Date startInterval, Date endInterval); Map getCPAByInterval(Date startInterval, Date endInterval, Step step); get the costperacquisition grouped by a specified time step | Map<Date, Float> getFullCPA(Step step) throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<Date, Float> getFullCPC(Step step) throws SQLException;",
"Map<Date, Float> getFullCost(Step step) throws SQLException;",
"public Double getCostInterval();",
"Map<Date, Float> getFullCPM(Step step) throws SQLException;",
"Map<Date, Float> getFullCTR(Step step) throws SQLException;",
"public CostItem[... | [
"0.60668594",
"0.5723382",
"0.5704303",
"0.5563103",
"0.5471636",
"0.5234382",
"0.52322394",
"0.5228552",
"0.52134717",
"0.5201219",
"0.51955974",
"0.51487696",
"0.51228356",
"0.51013577",
"0.5015446",
"0.4968259",
"0.4845493",
"0.480859",
"0.47795075",
"0.47542432",
"0.47541... | 0.5959018 | 1 |
get the average costperclick of the whole campaign | float getCPC() throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int avgTrafficPerDay(){\r\n \r\n int trav=apstate.gettravellers();\r\n\t\tint days=apstate.getdays();\r\n\t\tint items=apstate.getitems();\r\n \r\n int avg_traffic_per_day=trav/days;\r\n \r\n return avg_traffic_per_day... | [
"0.64090544",
"0.6226813",
"0.61407137",
"0.6048658",
"0.59810936",
"0.5965047",
"0.57903916",
"0.5681213",
"0.5677501",
"0.567031",
"0.56563056",
"0.56519693",
"0.5613943",
"0.56078154",
"0.5592544",
"0.55884165",
"0.5586381",
"0.55769736",
"0.5538833",
"0.5538161",
"0.55365... | 0.0 | -1 |
get the costperclick of time intervals within the campaign | Map<Date, Float> getFullCPC(Step step) throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Double getCostInterval();",
"public Map getCampaignClickStats(String campaignId){\r\n CampaignClickStatsMethod campaignClickStatsMethod = new CampaignClickStatsMethod();\r\n Map campaignClickStatsResult = new HashMap();\r\n\r\n campaignClickStatsMethod.apikey = this.apiKey;\r\n ... | [
"0.5468392",
"0.54026496",
"0.51860565",
"0.5086277",
"0.5029356",
"0.49843815",
"0.4939254",
"0.49181703",
"0.49181703",
"0.49141002",
"0.48812783",
"0.48642883",
"0.4845514",
"0.48086247",
"0.47803074",
"0.4775713",
"0.47533685",
"0.47432053",
"0.47387138",
"0.47363302",
"0... | 0.0 | -1 |
get costperthousandimpressions fot the whole campaign | float getCPM() throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getImpressions() {\r\n return impressions;\r\n }",
"public void setImpressions(Integer impressions) {\r\n this.impressions = impressions;\r\n }",
"Map<Date, Integer> getFullImpressions(Step step) throws SQLException;",
"@Test public void campaignCostTest() {\n DirectMC... | [
"0.59370875",
"0.58638775",
"0.57709426",
"0.55070955",
"0.5488708",
"0.5344566",
"0.5324519",
"0.5253761",
"0.52063113",
"0.5148632",
"0.51476055",
"0.50806284",
"0.5049518",
"0.5033754",
"0.50089496",
"0.50089496",
"0.50089496",
"0.4998755",
"0.4996462",
"0.49871013",
"0.49... | 0.0 | -1 |
Map getCPMByInterval(Date startInterval, Date endInterval); Map getCPMByInterval(Date startInterval, Date endInterval, Step step); get the costperthousandimpressions for intervals within the campaign | Map<Date, Float> getFullCPM(Step step) throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<Date, Integer> getFullImpressions(Step step) throws SQLException;",
"Map<Date, Float> getFullCPC(Step step) throws SQLException;",
"List<ClassificationCostsDto> map(List<ClassificationCostsReport> classificationCostsReports);",
"public Double getCostInterval();",
"java.util.Map<String, Long>\n getMetr... | [
"0.5808138",
"0.54468846",
"0.5342414",
"0.53412426",
"0.5290183",
"0.52495354",
"0.5062902",
"0.50407857",
"0.49820355",
"0.4946873",
"0.48709047",
"0.4861768",
"0.48161888",
"0.47954032",
"0.477333",
"0.47651932",
"0.47368312",
"0.47125766",
"0.47062224",
"0.46532956",
"0.4... | 0.5362866 | 2 |
float getOverallCPMByInterval(Date startInterval, Date endInterval); / The average number of bounces per click. returns the average number of bounces per click | float getBounceRate() throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double calcScoreFromObjCount(double[] c_in, double[] c_out) {\r\n\t\t// / multi-class\r\n\t\tdouble diff, sum = 0, max_val = Double.NEGATIVE_INFINITY, min_val = Double.POSITIVE_INFINITY;\r\n\t\tfor (int i = 0; i < num_class; i++) {\r\n\t\t\tdiff = (c_in[i] - c_out[i]);\r\n\t\t\tif (diff > max_val) {\r\n\t\t\t\tmax... | [
"0.57238185",
"0.5585145",
"0.54413635",
"0.536938",
"0.5355816",
"0.5353534",
"0.53524303",
"0.5234255",
"0.5223725",
"0.52147174",
"0.5205861",
"0.5166843",
"0.5165361",
"0.5149433",
"0.51388025",
"0.51307863",
"0.5128179",
"0.5095388",
"0.5094034",
"0.50882536",
"0.5087404... | 0.0 | -1 |
Map getBounceRateByInterval(Date startInterval, Date endInterval); Map getBounceRateByInterval(Date startInterval, Date endInterval, Step step); returns a mapping of bounces per click grouped by a specified time interval | Map<Date, Float> getFullBounceRate(Step step) throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<Date, Integer> getFullBounces(Step step) throws SQLException;",
"Map<Date, Integer> getFullClicks(Step step) throws SQLException;",
"Map<Date, Integer> getFullImpressions(Step step) throws SQLException;",
"public void setBounceRate(Double bounceRate) {\r\n this.bounceRate = bounceRate;\r\n }",
... | [
"0.607035",
"0.51907986",
"0.4792442",
"0.47580415",
"0.47380233",
"0.4630795",
"0.46252498",
"0.45522368",
"0.45435265",
"0.4507629",
"0.4485167",
"0.44748932",
"0.44628957",
"0.44582984",
"0.44411847",
"0.44023815",
"0.4390193",
"0.43851593",
"0.43305364",
"0.43292913",
"0.... | 0.6541345 | 0 |
float getOverallBounceRateByInterval(Date startInterval, Date endInterval); Map> getUsersByInterval(Date startInterval, Date endInterval); Map> getUsersByInterval(Date startInterval, Date endInterval, Step step); return the names of users with registered activity grouped by a specified time interval | Map<Date, Set<String>> getFullUsers(Step step) throws SQLException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Breakdown generateReport(Date startDate, Date endDate, ArrayList<User> userList, double total) {\n\n //INTIATING VARIABLES\n Breakdown result = new Breakdown();\n\n HashMap<String, Breakdown> intenseMap = new HashMap<String, Breakdown>();\n HashMap<String, Breakdown> normalMap = ... | [
"0.5738269",
"0.5656206",
"0.5595343",
"0.55611795",
"0.5471062",
"0.54142225",
"0.53749514",
"0.52091354",
"0.5183426",
"0.5163076",
"0.51417446",
"0.50871253",
"0.5079763",
"0.5072948",
"0.5066327",
"0.50313675",
"0.50241846",
"0.49908236",
"0.4955815",
"0.49221203",
"0.490... | 0.62394327 | 0 |
Set getOverallUsersRateByInterval(Date startInterval, Date endInterval); gets the currently applied filter | Filter getFilter(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRateForRegularCustomer(int weekDayCount,int weekEndRate){\n this.regularCustomerWeekDayRate = this.regularCustomerWeekDayRate*weekDayCount;\n this.regularCustomerWeekEndRate = this.regularCustomerWeekEndRate*weekEndRate;\n this.totalRegularCustomerRate = this.regularCustomerWeek... | [
"0.5326474",
"0.5156888",
"0.5042993",
"0.5041278",
"0.50350225",
"0.49559563",
"0.49540487",
"0.49502462",
"0.49259436",
"0.49200332",
"0.4908741",
"0.48693407",
"0.48606163",
"0.482105",
"0.48184818",
"0.48184654",
"0.48054966",
"0.474909",
"0.47416383",
"0.4728591",
"0.472... | 0.0 | -1 |
sets the current filter for the campaign | void setFilter(Filter f); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setContactFilter(Filter filter);",
"public void setFilter(Filter filter) {\n\t\tthis.filter = filter;\n\t}",
"public void setFilter(EntityFilter filter);",
"public void setFilter (LSPFilter filter) {\r\n this.filter = filter;\r\n }",
"void setFilter(String filter);",
"... | [
"0.68747455",
"0.67646784",
"0.6723266",
"0.6595764",
"0.65375745",
"0.63128483",
"0.6307345",
"0.62821186",
"0.62785316",
"0.62585616",
"0.62314034",
"0.62261355",
"0.61805385",
"0.61721003",
"0.61321354",
"0.61203843",
"0.60835856",
"0.6060043",
"0.6055656",
"0.6033011",
"0... | 0.6829516 | 1 |
Converts a hexadecimal string to its twoscomplement signed long | public static long hexToSignedLong(final String hex, int bytes) {
return getTwosComplement(hexToBin(hexToHexLittleEndian(hex), bytes));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static long hexToLong(String s) {\n\n return Long.parseLong(s, 16);\n\n }",
"public static long parseHexLong(CharSequence seq) {\n long result = 0;\n int last = seq.length() - 1;\n if (last > 15) {\n throw new NumberFormatException(\"Too many characters (> 16) for... | [
"0.7440682",
"0.7209103",
"0.69304997",
"0.66903955",
"0.60157984",
"0.5974122",
"0.5956759",
"0.5951571",
"0.5940945",
"0.5908256",
"0.59055257",
"0.58848953",
"0.58335227",
"0.5822322",
"0.56887776",
"0.5627672",
"0.5562211",
"0.5554658",
"0.5550875",
"0.5543945",
"0.545978... | 0.67042357 | 3 |
Converts a hexadecimal string to an array of twoscomplement integers | @VisibleForTesting
public static ArrayList<Integer> getTwosComplementArray(final String hexString) {
ArrayList<Integer> result = new ArrayList<>();
for (int i = 0; i < hexString.length(); i += 2) {
result.add((int) getTwosComplement(hexToBin(hexString.substring(i, i + 2), 8)));
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int[] hexStringToBits(String hex) {\n int[] bits = new int[128];\n for (int i = 0; i < hex.length(); i++) {\n int n = (int)hex.charAt(i);\n for (int j = 0; j < 4; j++) {\n bits[4 * i + j] = (n >> (3 - j)) & 1;\n }\n }\n return bits;\n }",
"private int[]... | [
"0.69331574",
"0.65041673",
"0.64256376",
"0.62897676",
"0.6282402",
"0.60250014",
"0.60053927",
"0.59704286",
"0.59128785",
"0.5882526",
"0.5873304",
"0.5829171",
"0.5827611",
"0.58142567",
"0.5811788",
"0.5802089",
"0.5800692",
"0.5793361",
"0.57902694",
"0.57816714",
"0.57... | 0.78651685 | 0 |
fichier de configuration .properties | public void read() {
configfic = new Properties();
InputStream input = ConfigReader.class.getClassLoader().getResourceAsStream("source/config.properties");
// on peut remplacer ConfigReader.class par getClass()
try {
configfic.load(input);
} catch (IOException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"File getPropertiesFile();",
"String getConfigFileName();",
"public File getConfigurationFile();",
"public void getConfigProperty() {\n Properties properties = new Properties();\n try(InputStream input = new FileInputStream(\"config.properties\");){\n properties.load(input);\n ... | [
"0.73833483",
"0.7179234",
"0.7029674",
"0.7027781",
"0.6950745",
"0.6792656",
"0.6776681",
"0.6753957",
"0.6751623",
"0.67366314",
"0.6653201",
"0.6617942",
"0.65829736",
"0.6556058",
"0.6553484",
"0.6518058",
"0.6507408",
"0.65024537",
"0.6486711",
"0.64683276",
"0.6417255"... | 0.0 | -1 |
Not using the adapter to determine locations | @Override
public Iterable<Location> listLocations() {
return ImmutableSet.<Location>of();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void checkLocation() {\n // nothing\n }",
"@Override\n\tpublic ArrayList<BoardLocation> findLocation() {\n\t\treturn null;\n\t}",
"@Override\n protected void initLocation() {\n }",
"protected abstract void getAllUniformLocations();",
"private void returnDriverLocati... | [
"0.67823",
"0.64457685",
"0.6411834",
"0.6296623",
"0.6189384",
"0.6169742",
"0.6119371",
"0.6119371",
"0.609045",
"0.5963207",
"0.5879819",
"0.58505625",
"0.5836801",
"0.57896584",
"0.578414",
"0.57746637",
"0.5769525",
"0.57565093",
"0.57276064",
"0.5726619",
"0.5724267",
... | 0.53775674 | 88 |
Note: using a different value on purpose so that we can check that reads are preferred over DP | @DataProvider(name = "allPairs")
public Object[][] allPairs() {
final List<Object[]> tests = new ArrayList<>();
for (final Allele ref : Arrays.asList(refA, refC, refG, refT)){
for (final Allele alt : Arrays.asList(altA, altC, altG, altT)){
if (!ref.getBaseString().equals(alt.getBaseString())){
tests.add(new Object[]{ref, alt});
}
}
}
return tests.toArray(new Object[][]{});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int DP(int dp)\n\t{\n\t\tint result = DP(DENSITY, dp);\n\t\treturn result;\n\t}",
"private static void dp() {\n\t\tm[0] = 0;\n\t\tk[0] = 0;\n\n\t\t// base case 1:for 1 cent we need give 1 cent\n\t\tm[1] = 1;\n\t\tk[1] = 1;\n\n\t\tfor (int i = 2; i <= n; i++) {\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\ti... | [
"0.68605244",
"0.6139529",
"0.60395163",
"0.5429334",
"0.5344198",
"0.5291348",
"0.52899235",
"0.52687865",
"0.52427226",
"0.5216059",
"0.51971835",
"0.5164267",
"0.51625746",
"0.51586014",
"0.5148749",
"0.5142896",
"0.5125879",
"0.5116446",
"0.5115636",
"0.5114582",
"0.51105... | 0.0 | -1 |
TomEE returns null for ResponsegetMediaTypetherefore this workaround | boolean isJSON(Response response) {
return response.getHeaderString("Content-Type").equalsIgnoreCase(MediaType.APPLICATION_JSON);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Value.Default\n public String getMediaType() {\n\treturn \"\";\n }",
"MediaType getMediaType();",
"protected abstract MediaType getSupportedMediaType();",
"@Override\n public String getContentType() {\n return null;\n }",
"@ResponseStatus (HttpStatus.UNSUPPORTED_MEDIA_TYPE)\n\t@ExceptionHandler... | [
"0.67791617",
"0.6757289",
"0.665733",
"0.64919335",
"0.6480943",
"0.6475592",
"0.63953763",
"0.6373897",
"0.6366821",
"0.63566065",
"0.6317487",
"0.6309984",
"0.6233129",
"0.62170315",
"0.6206479",
"0.61313516",
"0.6046769",
"0.6046769",
"0.6046769",
"0.60392183",
"0.6016402... | 0.5347918 | 78 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
Intent intent=new Intent(Create.this,Login.class);
startActivity(intent);
Create.this.finish();
} | {
"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 post the data to server | @Override
public void onClick(View v) {
Intent intent=new Intent(Create.this,Login.class);
startActivity(intent);
Create.this.finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void postData() {\n\n\t}",
"private void dataSubmission() {\n getPreferences(); // reload all the data\n\n String jsonObjectString = createJsonObject();\n StringBuilder url = new StringBuilder();\n url.append(serverUrl);\n\n if (vslaName == null || numberOfCycles == null... | [
"0.76904094",
"0.6681011",
"0.66633487",
"0.63834834",
"0.63658243",
"0.63472503",
"0.63296086",
"0.6289469",
"0.62808144",
"0.6276358",
"0.62206095",
"0.61349857",
"0.60713136",
"0.6053448",
"0.60457265",
"0.6044104",
"0.60189164",
"0.5996172",
"0.59726626",
"0.593396",
"0.5... | 0.0 | -1 |
Adds the buttons (and other controls) to the screen in question. | public void initGui()
{
Keyboard.enableRepeatEvents(true);
this.buttonList.clear();
this.field_146844_r = new GuiScreenBackup.SelectionList();
(new Thread("MCO Backup Requester #" + field_146845_a.incrementAndGet())
{
private static final String __OBFID = "CL_00000767";
public void run()
{
Session var1 = GuiScreenBackup.this.mc.getSession();
McoClient var2 = new McoClient(var1.getSessionID(), var1.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy());
try
{
GuiScreenBackup.this.field_146847_i = var2.func_148704_d(GuiScreenBackup.this.field_146846_h).theBackupList;
}
catch (ExceptionMcoService var4)
{
GuiScreenBackup.logger.error("Couldn\'t request backups", var4);
}
}
}).start();
this.func_146840_h();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addComponents() {\n\t\tthis.add(btn_pause);\n\t\tthis.add(btn_continue);\n\t\tthis.add(btn_restart);\n\t\tthis.add(btn_rank);\n\t\tif(Config.user.getUsername().equals(\"root\")) {\n\t\t\tthis.add(btn_admin);\n\t\t}\n\t\n\t\t\n\t}",
"public void createButtons() {\n\t\tescapeBackground = new GRect(200... | [
"0.7384219",
"0.7370162",
"0.7214552",
"0.71085864",
"0.70836496",
"0.7063069",
"0.70238096",
"0.69784725",
"0.696626",
"0.6936689",
"0.6936355",
"0.69344234",
"0.69233865",
"0.69201225",
"0.69177794",
"0.69064164",
"0.6874121",
"0.68538356",
"0.6851513",
"0.68296736",
"0.682... | 0.0 | -1 |
Called from the main game loop to update the screen. | public void updateScreen()
{
super.updateScreen();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateScreen(){}",
"@Override\n\tpublic void updateScreen() {\n\t\tfield_154330_a.tick();\n\t\tsuper.updateScreen();\n\t}",
"@Override\n\tpublic void update() {\n\t\tticks++;\n\t\tswitch (state) {\n\t\tcase MENU:\n\t\tcase INTRO:\n\t\t\tupdateBackground();\n\t\t\tbreak;\n\n\t\tcase PLAYING:\n\t\t\t... | [
"0.8131075",
"0.8050292",
"0.7926242",
"0.79238576",
"0.78666914",
"0.75294685",
"0.74606776",
"0.7444095",
"0.74261373",
"0.7391163",
"0.73172367",
"0.73105496",
"0.72875345",
"0.727335",
"0.72468275",
"0.71740353",
"0.7153425",
"0.714989",
"0.71397495",
"0.71289366",
"0.711... | 0.7900719 | 4 |
Draws the screen and all the components in it. | public void drawScreen(int par1, int par2, float par3)
{
this.drawDefaultBackground();
this.field_146844_r.func_148350_a(par1, par2, par3);
this.drawCenteredString(this.fontRendererObj, I18n.format("mco.backup.title", new Object[0]), this.width / 2, 20, 16777215);
super.drawScreen(par1, par2, par3);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void DrawScreen() {\r\n DrawScreen(0, false, null);\r\n }",
"public void render()\n\t{\n\t\t// Get or create the BufferStrategy to plan rendering\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get the ... | [
"0.7989535",
"0.772885",
"0.7522619",
"0.7486166",
"0.74805146",
"0.7434486",
"0.74331295",
"0.74182",
"0.7396504",
"0.7380272",
"0.7372669",
"0.73698366",
"0.7341066",
"0.7316194",
"0.7282483",
"0.7280267",
"0.7261369",
"0.7249991",
"0.7231465",
"0.72277683",
"0.7206263",
... | 0.0 | -1 |
Overrides everything and is only called once the app has been created Or started up | @Override
// The view that is created once the page has been opened
// This uses a layout inflater which gets placed into a viewgroup container.
// The viewgroup container is a section underneath the tab bar... You can see this in the main_activity.xml
// This allows that section to be filled with different content. For this example main_findoutmore.xml file
// is placed into the viewgroup which means that this is displayed and nothing else
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
// This is setting the view
// The view is simply this one we are in now...
// It is set to here because of how everything is pulled into this file.
// Making it easier to understand
setContentView(R.layout.main_findoutmore);
// Collecting the information from the button that is placed onto the page
// It checks which view it is looking into and places this into the variable specBack
// Placing this into a variable makes it easier to call that button again rather then retyping the whole thing over and over.
// IT also stores the id for that button
specBack = (Button)findViewById(R.id.specBackBtn);
// Taking the name of the button and setting an on click listener
// This is so that if the button does get pressed "something" will happen
specBack.setOnClickListener(new View.OnClickListener() {
@Override
// Function for once the button gets clicked
public void onClick(View v) {
// Calling a new intent...
// This intent swaps the pages...
// For this example i takes the FindOutMore.this which means it is pointing at this current page
// to Tab_Main.class... This means that when we are on the find out more page if the button is clicked
// it will take the users to the Tab_Main page
// This is all also stored into the variable i
Intent i = new Intent(FindOutMore.this, Tab_Main.class);
// The activity is started and the variable i is placed into this
startActivity(i);
// This is an animation overrider...
// This means that once the button has been pressed it will perform an animation to take
// the users back to the new page that they have selected...
overridePendingTransition(R.animator.ui_animation_in, R.animator.ui_animation_out);
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void onAfterCreateApplication() {\n\n\t}",
"@Override\n protected void appStart() {\n }",
"protected void onFirstUse() {}",
"protected void onPreCreateApplication() {\n\n\t}",
"@Override\n public void onCreate() {\n super.onCreate();\n application = this;\n }",
"prot... | [
"0.761384",
"0.7590179",
"0.7454682",
"0.72561646",
"0.7040998",
"0.70298666",
"0.7004826",
"0.6949558",
"0.68827814",
"0.6857704",
"0.6857704",
"0.68527174",
"0.68425244",
"0.68416935",
"0.68416935",
"0.683992",
"0.68117505",
"0.6809418",
"0.6793516",
"0.67824745",
"0.676329... | 0.0 | -1 |
Calling a new intent... This intent swaps the pages... For this example i takes the FindOutMore.this which means it is pointing at this current page to Tab_Main.class... This means that when we are on the find out more page if the button is clicked it will take the users to the Tab_Main page This is all also stored into the variable i | @Override
// Function for once the button gets clicked
public void onClick(View v) {
Intent i = new Intent(FindOutMore.this, Tab_Main.class);
// The activity is started and the variable i is placed into this
startActivity(i);
// This is an animation overrider...
// This means that once the button has been pressed it will perform an animation to take
// the users back to the new page that they have selected...
overridePendingTransition(R.animator.ui_animation_in, R.animator.ui_animation_out);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n // The view that is created once the page has been opened\n // This uses a layout inflater which gets placed into a viewgroup container.\n // The viewgroup container is a section underneath the tab bar... You can see this in the main_activity.xml\n // This allows that section to be filled w... | [
"0.6894276",
"0.68281275",
"0.6814691",
"0.6759542",
"0.67025524",
"0.66336495",
"0.6629392",
"0.65651447",
"0.6546323",
"0.65213317",
"0.65039504",
"0.6491384",
"0.6444919",
"0.6385381",
"0.63544106",
"0.63465375",
"0.62438583",
"0.620648",
"0.6193756",
"0.61924225",
"0.6184... | 0.72889495 | 0 |
Given n pairs of parentheses, write a function to generate all combinations of wellformed parentheses. / For example, given n = 3, a solution set is: [ "((()))", "(()())", "(())()", "()(())", "()()()" ] | public static void main(String[] args) {
new LC22_GenerateParenthesis().generateParenthesis(3).forEach(k-> System.out.println(k));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> generateParenthesis(int n) {\n\t\tList<String> result = new ArrayList<>();\n\t\tif (n < 1) {\n\t\t\treturn result;\n\t\t}\n\t\tgenerateAll(new char[2 * n], 0, result);\n\t\treturn result;\n\t}",
"public List<String> generateParen(int n){\n int count = 0; //cannot be smaller than 0 \n in... | [
"0.7503898",
"0.735223",
"0.7147331",
"0.6896767",
"0.68363196",
"0.66616166",
"0.6458119",
"0.6444389",
"0.6119726",
"0.59827596",
"0.59612775",
"0.59160423",
"0.5893517",
"0.5853649",
"0.5793362",
"0.57396436",
"0.5691691",
"0.56430316",
"0.5623652",
"0.5611935",
"0.5568204... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.