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 |
|---|---|---|---|---|---|---|
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
btnPostulacion = new javax.swing.JButton();
btnCarreras = new javax.swing.JButton();
btnResultados = new javax.swing.JButton();
btnTipoIngreso = new javax.swing.JButton();
BtnCalificacion = new javax.swing.JButton();
btnExamen = new javax.swing.JButton();
jScrollPane2 = new javax.swing.JScrollPane();
DataTable = new javax.swing.JTable();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel1.setText("Información Postulaciones");
btnPostulacion.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
btnPostulacion.setForeground(new java.awt.Color(255, 0, 0));
btnPostulacion.setText("Postulación");
btnPostulacion.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnPostulacionActionPerformed(evt);
}
});
btnCarreras.setForeground(new java.awt.Color(204, 204, 0));
btnCarreras.setText("Carreras");
btnCarreras.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
btnCarrerasMouseClicked(evt);
}
});
btnResultados.setForeground(new java.awt.Color(0, 102, 204));
btnResultados.setText("Resultados");
btnResultados.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
btnResultadosMouseClicked(evt);
}
});
btnTipoIngreso.setForeground(new java.awt.Color(0, 204, 0));
btnTipoIngreso.setText("Tipo de Ingreso");
btnTipoIngreso.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
btnTipoIngresoMouseClicked(evt);
}
});
BtnCalificacion.setForeground(new java.awt.Color(102, 102, 102));
BtnCalificacion.setText("Calificación");
BtnCalificacion.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
BtnCalificacionMouseClicked(evt);
}
});
btnExamen.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
btnExamen.setForeground(new java.awt.Color(255, 0, 0));
btnExamen.setText("Examen");
btnExamen.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnExamenActionPerformed(evt);
}
});
DataTable.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
jScrollPane2.setViewportView(DataTable);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(btnTipoIngreso, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(BtnCalificacion, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(btnPostulacion, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 91, Short.MAX_VALUE)
.addComponent(btnCarreras, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(btnExamen, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btnResultados, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
.addGap(124, 124, 124)
.addComponent(jLabel1)
.addGap(0, 0, Short.MAX_VALUE)))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(4, 4, 4)
.addComponent(jLabel1)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(btnPostulacion)
.addComponent(btnCarreras))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(btnResultados)
.addComponent(btnExamen))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(btnTipoIngreso)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(BtnCalificacion)
.addGap(18, 18, 18)
.addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 121, Short.MAX_VALUE)
.addContainerGap())
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.7319573",
"0.72908455",
"0.72908455",
"0.72908455",
"0.7286827",
"0.7248724",
"0.7213511",
"0.7208325",
"0.7195998",
"0.7190202",
"0.7184771",
"0.7158966",
"0.7147921",
"0.7093225",
"0.7080275",
"0.7057302",
"0.69875276",
"0.6977057",
"0.6955658",
"0.6953942",
"0.69454855"... | 0.0 | -1 |
End of variables declaration//GENEND:variables | private void appendVersPane(JTextPane tp, String msg, Color c)
{
StyleContext sc = StyleContext.getDefaultStyleContext();
javax.swing.text.AttributeSet aset = sc.addAttribute(SimpleAttributeSet.EMPTY, StyleConstants.Foreground, c);
aset = sc.addAttribute(aset, StyleConstants.FontFamily, "Lucida Console");
aset = sc.addAttribute(aset, StyleConstants.Alignment, StyleConstants.ALIGN_JUSTIFIED);
int len = tp.getDocument().getLength();
tp.setCaretPosition(len);
tp.setCharacterAttributes(aset, false);
tp.replaceSelection(msg);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n pu... | [
"0.6359434",
"0.6280371",
"0.61868024",
"0.6094568",
"0.60925734",
"0.6071678",
"0.6052686",
"0.60522056",
"0.6003249",
"0.59887564",
"0.59705925",
"0.59680873",
"0.5967989",
"0.5965816",
"0.5962006",
"0.5942372",
"0.5909877",
"0.5896588",
"0.5891321",
"0.5882983",
"0.5881482... | 0.0 | -1 |
Simply selects the home view to render by returning its name. | @RequestMapping(value = "/", method = RequestMethod.GET)
public String home(Locale locale, Model model) {
logger.info("홈페이지를 만듭니다", locale);
return "home";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(Mappings.HOME)\n\tpublic String showHome() {\n\n\t\treturn ViewNames.HOME;\n\t}",
"public String home() {\n if (getUsuario() == null) {\n return \"login.xhtml\";\n }\n // Si el usuario es un ADMINISTRADOR, le lleva a la pagina a la lista de Alumnos\n if (getUsua... | [
"0.6819594",
"0.6264309",
"0.62159723",
"0.6201521",
"0.6198399",
"0.6187909",
"0.6151758",
"0.61228037",
"0.6120205",
"0.610317",
"0.60107136",
"0.6008739",
"0.59784985",
"0.5976386",
"0.5941382",
"0.59348583",
"0.59226644",
"0.5905844",
"0.5904103",
"0.5879214",
"0.5858803"... | 0.0 | -1 |
app engine code 1534705 | public interface RLatitudeServiceAsync {
void sayHello(AsyncCallback<String> callback);
void publishUser(String name, String firstName, String dateNaissance,
AsyncCallback< String > callback );
void checkPasswordLoginValidity( String login, String password, AsyncCallback< Boolean > callback );
void publishAuthentication( String uid, String login, String password, AsyncCallback</*IUser*/Void> callback );
void connect(String login, String password, AsyncCallback< String > callback);
void disconnect(String uid, AsyncCallback< Boolean > callback);
void changeMyVisibility(String uid, boolean visibility,
AsyncCallback<Boolean> callback);
void getVisibility(String uid, AsyncCallback<Boolean> callback);
void setCurrentPostion(String uid, Position position,
AsyncCallback<Void> callback);
void addContact( String uidUser, String uidContact, AsyncCallback< Void > callback );
void getContact( String uid,
AsyncCallback< List< ResolvedContact > > callback );
void getUser( String name, String lastName, AsyncCallback<ResolvedUser> callback );
void getUser(String uid,AsyncCallback<ResolvedUser> callback);
void getPosition( String uidUser, AsyncCallback< Position > callback );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_4270() {}",
"protected void mo6255a() {\n }",
"public void mo38117a() {\n }",
"private void kk12() {\n\n\t}",
"@Override\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}",
"zzang mo29839S() throws RemoteException;",
"Request mo35725m0();",
... | [
"0.5466564",
"0.54444414",
"0.53245497",
"0.52479595",
"0.5175907",
"0.5166726",
"0.5159268",
"0.51429504",
"0.51155025",
"0.5101154",
"0.50755596",
"0.5058594",
"0.5053311",
"0.50521916",
"0.5030857",
"0.5030857",
"0.5030857",
"0.5030857",
"0.5030857",
"0.5030857",
"0.503085... | 0.0 | -1 |
Creates a new async stub that supports all call types for the service | public static WebSocketFrameServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<WebSocketFrameServiceStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<WebSocketFrameServiceStub>() {
@java.lang.Override
public WebSocketFrameServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WebSocketFrameServiceStub(channel, callOptions);
}
};
return WebSocketFrameServiceStub.newStub(factory, channel);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Stub createStub();",
"public interface GenerateResourceServiceAsync {\n /**\n * {@link GenerateResourceServiceImpl#generateTSDPattern(long,boolean)}\n */\n void generateTSDPattern(long settingFileId, boolean isCreateFile, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n... | [
"0.6898186",
"0.6463399",
"0.6207397",
"0.6052055",
"0.58415306",
"0.58266103",
"0.5819873",
"0.5696365",
"0.5647465",
"0.5531148",
"0.55276394",
"0.55113816",
"0.55076796",
"0.55066913",
"0.5496164",
"0.5493714",
"0.5467985",
"0.5462456",
"0.5460004",
"0.5436777",
"0.5434764... | 0.0 | -1 |
Creates a new blockingstyle stub that supports unary and streaming output calls on the service | public static WebSocketFrameServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<WebSocketFrameServiceBlockingStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<WebSocketFrameServiceBlockingStub>() {
@java.lang.Override
public WebSocketFrameServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WebSocketFrameServiceBlockingStub(channel, callOptions);
}
};
return WebSocketFrameServiceBlockingStub.newStub(factory, channel);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Stub createStub();",
"public interface Stream<T> extends Lifecycle {\n\n PendingRequest<T> next(int requestId, T request);\n\n int getPendingRequestCount();\n\n ClientResponseObserver<T, RpcResult> newObserver();\n\n\n final class PendingRequest<T> {\n\n private final T request;\n\n pri... | [
"0.64577496",
"0.57187194",
"0.5505287",
"0.5441702",
"0.54370403",
"0.5416198",
"0.5416198",
"0.5416198",
"0.5416198",
"0.5416198",
"0.5415596",
"0.5408881",
"0.5389577",
"0.5361891",
"0.5344934",
"0.53106624",
"0.53044236",
"0.53044236",
"0.5292175",
"0.5265943",
"0.5260832... | 0.0 | -1 |
Creates a new ListenableFuturestyle stub that supports unary calls on the service | public static WebSocketFrameServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<WebSocketFrameServiceFutureStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<WebSocketFrameServiceFutureStub>() {
@java.lang.Override
public WebSocketFrameServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WebSocketFrameServiceFutureStub(channel, callOptions);
}
};
return WebSocketFrameServiceFutureStub.newStub(factory, channel);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ExtractionServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ExtractionServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ExtractionServiceFutureStub>() {\n @Override\n public ExtractionServiceFutureSt... | [
"0.5984498",
"0.5906762",
"0.58683985",
"0.58648586",
"0.5863992",
"0.5839082",
"0.5768547",
"0.57590944",
"0.57113266",
"0.5688581",
"0.5686471",
"0.5674173",
"0.56650245",
"0.5656827",
"0.5654424",
"0.5652344",
"0.5623458",
"0.5621539",
"0.55490613",
"0.5530795",
"0.5520449... | 0.55749637 | 18 |
instantiate the components, publish their port and interconnect them. Contract pre!this.deploymentDone() postthis.deploymentDone() | @Override
public void deploy() throws Exception {
assert !this.deploymentDone();
PubSub pubSub = PubSub.newBuilder(this)
.build();
this.publisher1 = Publisher.newBuilder(this, pubSub.getInBoundPortURI()).build();
this.publisher2 = Publisher.newBuilder(this, pubSub.getInBoundPortURI()).build();
this.subscriber1 = Subscriber.newBuilder(this, pubSub.getInBoundPortURI()).build();
// --------------------------------------------------------------------
// Connection phase
// --------------------------------------------------------------------
super.deploy();
assert this.deploymentDone();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void\t\t\tdeploy() throws Exception\n\t{\n\t\tassert\t!this.deploymentDone() ;\n\n\t\t// --------------------------------------------------------------------\n\t\t// Configuration phase\n\t\t// --------------------------------------------------------------------\n\n\t\t// debugging mode configu... | [
"0.69101936",
"0.5908573",
"0.5902991",
"0.5874468",
"0.58068967",
"0.56388247",
"0.5565424",
"0.5476924",
"0.5454051",
"0.545037",
"0.54193056",
"0.5395217",
"0.539118",
"0.53856283",
"0.53856283",
"0.53752923",
"0.5362387",
"0.53534675",
"0.5339351",
"0.53361523",
"0.533127... | 0.7282724 | 0 |
StringBuilder sb = new StringBuilder(); | public void populateList()
{
Cursor c = sqLiteDatabase.query(Company_constant.TABLE_NAME, null, null, null, null, null, null);
if (c != null && c.moveToFirst()) {
do {
int id = c.getInt(c.getColumnIndex(Company_constant.COL_ID));
String name = c.getString(c.getColumnIndex(Company_constant.COL_NAME));
int sal = c.getInt(c.getColumnIndex(Company_constant.COL_SALARY));
// sb.append(id + "" + name + "" + sal + "");
cp=new Company(name,id,sal);
companylist.add(cp);
}
while (c.moveToNext());
}
// Toast.makeText(this, "" + sb.toString(), Toast.LENGTH_LONG).show();
ArrayAdapter<Company>ad=new ArrayAdapter<Company>(this,android.R.layout.simple_list_item_1,companylist);
listData.setAdapter(ad);
c.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"StringBuilder toString(StringBuilder str);",
"private static Object Stringbuilder() {\n\t\treturn null;\n\t}",
"public static void main(String[] args) {\n\n\n String str = null;\n StringBuffer sb = new StringBuffer();\n sb.append(str);\n System.out.println(sb.length());//\n S... | [
"0.7391871",
"0.72919947",
"0.6733212",
"0.65950674",
"0.650683",
"0.6468697",
"0.64023906",
"0.63580567",
"0.6356171",
"0.63535464",
"0.6352087",
"0.6215156",
"0.61589605",
"0.61381686",
"0.60770375",
"0.60048336",
"0.59906083",
"0.59636414",
"0.5924556",
"0.58277386",
"0.57... | 0.0 | -1 |
Defines interface for products service that are able to retrieve products information from DataBase (DB) Note in service I am using DTO objects instead of entities to avoid some lazy initialization/loading problems with JPA provider | public interface ProductDAO {
/**
* Creates new product in DB
*
* @param product - DTO object representing new product
* @return DTO representing persisted product or null if operation failed
*/
Product postProduct(Product product);
/**
* Edits persisted product information
*
* @param product - DTO object representing persisted product
* @return DTO representing persisted product or null if operation failed
*/
Product editProduct(Product product);
/**
* Retrieves product by its ID
* @param id - product`s id to retrieve
* @return DTO representing persisted product
*/
Product getProductByID(Long id);
/**
* Retrieve list of all products in DB
*
* @return list with products
*/
List<Product> getProductsList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface IProductService {\n /**\n * 得到所有商品\n * @return\n */\n public List<Product> getAll();\n\n /**\n * 根据主键ID获得商品实体\n * @param ProductId\n * @return\n */\n public Product getById(int ProductId);\n\n /**\n * 根据商品名称模糊查询\n * @param name\n * @return\n ... | [
"0.7675838",
"0.7633754",
"0.7557997",
"0.7550453",
"0.7542942",
"0.75345176",
"0.74566567",
"0.74456966",
"0.7320587",
"0.731664",
"0.7288028",
"0.72764164",
"0.72296447",
"0.72238654",
"0.72191066",
"0.7199914",
"0.71882194",
"0.7170272",
"0.7110953",
"0.7108353",
"0.704420... | 0.7038733 | 21 |
Creates new product in DB | Product postProduct(Product product); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveNewProduct(Product product) throws BackendException;",
"Product addNewProductInStore(Product newProduct);",
"@PostMapping(path =\"/products\")\n public ResponseEntity<Product> createProduct(@RequestBody Product product) throws URISyntaxException {\n log.debug(\"REST request to create Produc... | [
"0.79437304",
"0.7491786",
"0.74043614",
"0.73795545",
"0.73344624",
"0.7324085",
"0.7310445",
"0.72760665",
"0.72664315",
"0.7233339",
"0.7219875",
"0.7184518",
"0.7175781",
"0.7105978",
"0.71029145",
"0.7094794",
"0.70926106",
"0.70879054",
"0.705818",
"0.7024005",
"0.70043... | 0.7050847 | 19 |
Edits persisted product information | Product editProduct(Product product); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Product updateProductInStore(Product product);",
"public void Editproduct(Product objproduct) {\n\t\t\n\t}",
"@Override\r\n\tpublic void ManageProduct() {\n\t\tint id = this.view.enterId();\r\n\t\tString name = this.view.enterName();\r\n\t\tfloat price = this.view.enterPrice();\r\n\t\tint quantity = this.view.... | [
"0.77589685",
"0.76199394",
"0.7602087",
"0.7339549",
"0.73141736",
"0.7204581",
"0.71248364",
"0.710639",
"0.70736176",
"0.70731986",
"0.70711786",
"0.7047159",
"0.7043692",
"0.70110923",
"0.70093256",
"0.70022905",
"0.6981964",
"0.6978857",
"0.6968758",
"0.69563246",
"0.693... | 0.79013634 | 0 |
Retrieves product by its ID | Product getProductByID(Long id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Product get(String id);",
"CafeProduct getProductById(final Integer productId);",
"Product getProductById(Integer productId);",
"Product getProductById(Integer productId);",
"Product getProductById(Integer productID);",
"@Override\n\tpublic Product getProduct(int id) {\n\t\treturn productDao.ge... | [
"0.8147508",
"0.81043136",
"0.8023815",
"0.8023815",
"0.80124956",
"0.80075294",
"0.7972722",
"0.79048795",
"0.7881069",
"0.7829513",
"0.7806604",
"0.77888876",
"0.775981",
"0.77380145",
"0.77324706",
"0.7710116",
"0.76925534",
"0.767413",
"0.76593494",
"0.7658042",
"0.764507... | 0.83813304 | 0 |
Retrieve list of all products in DB | List<Product> getProductsList(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Product> getAllProducts();",
"List<Product> getAllProducts();",
"List<Product> getAllProducts();",
"List<Product> getAllProducts() throws DataBaseException;",
"List<Product> getAllProducts() throws PersistenceException;",
"List<Product> retrieveProducts();",
"public List<Product> getProductList(){... | [
"0.8556116",
"0.8556116",
"0.8556116",
"0.85267895",
"0.8508878",
"0.84575844",
"0.81524545",
"0.81300443",
"0.81060964",
"0.80977184",
"0.80798024",
"0.8068214",
"0.8068214",
"0.8036331",
"0.79382515",
"0.79285485",
"0.79157627",
"0.79157627",
"0.7907194",
"0.79068303",
"0.7... | 0.80452937 | 13 |
Monedas que se quieren convertir Constructor que contiene todos los atributos de la clase. | public ConversionMoneda(String moneda1, String moneda2, double valor){
this.moneda1 = moneda1;
this.moneda2 = moneda2;
this.valor = valor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addConstructors() {\n\t\tthis.rootBindingClass.getConstructor().body.line(\"super({}.class);\\n\", this.name.getTypeWithoutGenerics());\n\t\tGMethod constructor = this.rootBindingClass.getConstructor(this.name.get() + \" value\");\n\t\tconstructor.body.line(\"super({}.class);\", this.name.getTypeWitho... | [
"0.65380573",
"0.6485107",
"0.6254603",
"0.60729474",
"0.5937319",
"0.5915871",
"0.5903977",
"0.58915263",
"0.5849937",
"0.5846825",
"0.58348876",
"0.58111626",
"0.5774923",
"0.5746764",
"0.56839615",
"0.567843",
"0.56698006",
"0.5644264",
"0.5641235",
"0.56272894",
"0.562616... | 0.0 | -1 |
Constructor que contiene los dos tipos de moneda String, String | public ConversionMoneda(String moneda1, String moneda2){
this.moneda1 = moneda1;
this.moneda2 = moneda2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CampoModelo(String valor, String etiqueta, Integer longitud)\n/* 10: */ {\n/* 11:17 */ this.valor = valor;\n/* 12:18 */ this.etiqueta = etiqueta;\n/* 13:19 */ this.longitud = longitud;\n/* 14: */ }",
"public InterrogationMeteoString() {\r\n\t\tthis(null, null, null, null, null);\r\n\t}... | [
"0.6132616",
"0.61098295",
"0.6029333",
"0.5961517",
"0.59281784",
"0.5863467",
"0.58197874",
"0.57334596",
"0.5710338",
"0.5703875",
"0.56902754",
"0.56652224",
"0.5652774",
"0.5634662",
"0.5625524",
"0.5624309",
"0.56141627",
"0.55794877",
"0.55792534",
"0.55789095",
"0.557... | 0.57012105 | 10 |
Check the presence of Define Setup page | public boolean defineSetupPage_state() {
return IsElementVisibleStatus(DefineSetupPageName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetUpPage() {\n return EncodingUtils.testBit(__isset_bitfield, __UPPAGE_ISSET_ID);\n }",
"public boolean checkSetup(){\n return checkSetup(folderName);\n }",
"public void Click_defineSetupPage_Alert() {\r\n\t\tclickOn(SensorConfiguration_Btn);\r\n\t}",
"public static boolean isRequir... | [
"0.69970715",
"0.65146273",
"0.62459886",
"0.6116999",
"0.6114413",
"0.6099891",
"0.5935293",
"0.59255004",
"0.5897859",
"0.5854104",
"0.5854104",
"0.5854104",
"0.5815084",
"0.58019006",
"0.56690687",
"0.5660185",
"0.5660185",
"0.56598955",
"0.5651847",
"0.561999",
"0.5594346... | 0.7178822 | 0 |
Get the Define Setup page Name text | public String get_defineSetupPage_Nametext() {
return FetchText(DefineSetupPageName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String get_defineSetupPage_setupName() {\r\n\t\treturn FetchText(DefineSetup_SetupName_txtBx);\r\n\t}",
"public String get_defineSetupPage_Titletext() {\r\n\t\treturn FetchText(DefineSetupPageTitle);\r\n\t}",
"String getPageName();",
"public String getpagetittle() {\n\t\t\n\t\tString tittle = elementu... | [
"0.85621",
"0.8018295",
"0.6706469",
"0.65186286",
"0.64068675",
"0.6354218",
"0.62921166",
"0.61693877",
"0.60566676",
"0.60274094",
"0.602203",
"0.59960043",
"0.5987846",
"0.5962448",
"0.5957422",
"0.59150076",
"0.5898757",
"0.5891158",
"0.58905464",
"0.5846439",
"0.5838338... | 0.87005574 | 0 |
Get the Define Setup page Title text | public String get_defineSetupPage_Titletext() {
return FetchText(DefineSetupPageTitle);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String get_defineSetupPage_Nametext() {\r\n\t\treturn FetchText(DefineSetupPageName);\r\n\t}",
"public String get_defineSetupPage_setupName() {\r\n\t\treturn FetchText(DefineSetup_SetupName_txtBx);\r\n\t}",
"public final String getTitle() {\r\n return config.title;\r\n }",
"public static Str... | [
"0.75821084",
"0.74588037",
"0.7336569",
"0.7250993",
"0.71429706",
"0.7102151",
"0.7087121",
"0.70856243",
"0.7047527",
"0.704485",
"0.7040088",
"0.7040088",
"0.70346576",
"0.7024367",
"0.7000099",
"0.6996165",
"0.6995691",
"0.6995691",
"0.6995691",
"0.6995691",
"0.6995691",... | 0.8838858 | 0 |
Click the Define Setup page Back button | public void click_defineSetupPage_backBtn() throws InterruptedException {
clickOn(DefineSetup_backBtn);
Thread.sleep(1000);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clickBackButton() {\n\t\tbackButton.click();\n\n\t}",
"public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}",
"public void clickbtnBack() {\n\t\tdriver.findElement(btnBack).click();\n\t}",
"public static void clickBackBtn() {\t\n\t\ttry {\n\t\t\tdriver... | [
"0.80158395",
"0.78766507",
"0.78391916",
"0.782701",
"0.762695",
"0.7568244",
"0.7524993",
"0.7254435",
"0.7173816",
"0.7166345",
"0.7147781",
"0.6995075",
"0.6967651",
"0.69213676",
"0.6921052",
"0.6917557",
"0.6904859",
"0.6874431",
"0.68695796",
"0.6851714",
"0.6789556",
... | 0.8542599 | 0 |
Check the presence of Alert message on clicking the Setup Back Button | public boolean visible_AlertMsg_state() {
WebElement alrtmsg = driver.findElementByName("You are about to lose your changes.Do you want to continue ?");
return IsElementVisibleStatus(alrtmsg);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void checkAlert() {\n try {\n wait(1000);\n driver.switchTo().alert();\n driver.findElement(By.xpath(\"//*[@title='No, thanks']\")).click();\n } catch (Exception e) {\n // Do nothing\n }\n }",
"public static void checkAndClickBackButton()... | [
"0.6860699",
"0.67021936",
"0.65886074",
"0.64509094",
"0.63065475",
"0.62667984",
"0.6244019",
"0.6223655",
"0.6192005",
"0.61727417",
"0.61618024",
"0.61533934",
"0.614639",
"0.61445266",
"0.6131492",
"0.608591",
"0.60855895",
"0.60811716",
"0.6052428",
"0.604921",
"0.60492... | 0.6002764 | 26 |
Click Yes to Alert message | public assetDetailsPage click_YesofAlert_msg() throws InterruptedException, IOException {
WebElement alrtmsg = driver.findElementByName("You are about to lose your changes.Do you want to continue ?");
if (IsElementVisibleStatus(alrtmsg)) {
WebElement alrtmsg_YesBtn = driver.findElementByName("Yes");
clickOn(alrtmsg_YesBtn);
Thread.sleep(1000);
return new assetDetailsPage();
} else {
System.out.println("No Alert message displayed");
return new assetDetailsPage();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void checkAlert() {\n try {\n wait(1000);\n driver.switchTo().alert();\n driver.findElement(By.xpath(\"//*[@title='No, thanks']\")).click();\n } catch (Exception e) {\n // Do nothing\n }\n }",
"public void clickOnYesButton() {\r\n\t\tsafe... | [
"0.7720014",
"0.7499806",
"0.73838776",
"0.73781604",
"0.7351339",
"0.72631115",
"0.7150777",
"0.705588",
"0.70118743",
"0.70041734",
"0.6969763",
"0.690453",
"0.6851753",
"0.68355423",
"0.6833414",
"0.6829998",
"0.6828005",
"0.6820275",
"0.67342675",
"0.67303616",
"0.6729107... | 0.77864325 | 0 |
Click No to Alert message | public void click_NoofAlert_msg() throws InterruptedException {
WebElement alrtmsg = driver.findElementByName("You are about to lose your changes.Do you want to continue ?");
if (IsElementVisibleStatus(alrtmsg)) {
WebElement alrtmsg_NoBtn = driver.findElementByName("No");
clickOn(alrtmsg_NoBtn);
} else {
System.out.println("No Alert message displayed");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void checkAlert() {\n try {\n wait(1000);\n driver.switchTo().alert();\n driver.findElement(By.xpath(\"//*[@title='No, thanks']\")).click();\n } catch (Exception e) {\n // Do nothing\n }\n }",
"public void clickOnNOButton() {\r\n\t\tsafeJ... | [
"0.75572145",
"0.75377315",
"0.7309911",
"0.701489",
"0.67787266",
"0.6761557",
"0.67502224",
"0.67407334",
"0.6607167",
"0.6577292",
"0.6538254",
"0.652502",
"0.6500396",
"0.6496913",
"0.6496121",
"0.6493753",
"0.6490235",
"0.64875185",
"0.64736104",
"0.6459633",
"0.64480734... | 0.80300975 | 0 |
Check the presence of SetupName field in Define Setup page | public boolean visible_SetupNameField() {
return IsElementVisibleStatus(DefineSetup_SetupName_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String get_defineSetupPage_setupName() {\r\n\t\treturn FetchText(DefineSetup_SetupName_txtBx);\r\n\t}",
"public boolean checkSetup(){\n return checkSetup(folderName);\n }",
"public boolean defineSetupPage_state() {\r\n\t\treturn IsElementVisibleStatus(DefineSetupPageName);\r\n\t}",
"public String ... | [
"0.7170382",
"0.64196485",
"0.62718934",
"0.6262028",
"0.6121132",
"0.60235816",
"0.59889996",
"0.5951064",
"0.5925843",
"0.59220624",
"0.5915197",
"0.5844956",
"0.58348906",
"0.57771593",
"0.57578504",
"0.57509077",
"0.5732279",
"0.572645",
"0.5658353",
"0.56463736",
"0.5640... | 0.68179524 | 1 |
Get Setup Name data | public String get_defineSetupPage_setupName() {
return FetchText(DefineSetup_SetupName_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getSetupID();",
"public String get_defineSetupPage_Nametext() {\r\n\t\treturn FetchText(DefineSetupPageName);\r\n\t}",
"public final String getInfo() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\n\t\treturn this.data.getName();\n\t}",
"private static String getName(){\r\n\t\tr... | [
"0.67635655",
"0.6214018",
"0.5996479",
"0.5926813",
"0.57813764",
"0.5776918",
"0.5649986",
"0.5642825",
"0.564196",
"0.5639383",
"0.5626347",
"0.56019163",
"0.55982083",
"0.5528369",
"0.5525035",
"0.551811",
"0.549305",
"0.5485734",
"0.547519",
"0.5458286",
"0.54483503",
... | 0.7150702 | 0 |
Check the presence of Sensor Count field in Define Setup page | public boolean visible_SetupSensorCountField() {
return IsElementVisibleStatus(DefineSetup_Sensordata_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void click_defineSetupPage_SensorCountField() {\r\n\t\tclickOn(DefineSetup_Sensordata_txtBx);\r\n\t}",
"public void clear_defineSetupPage_SensorCount() {\r\n\t\tClearText(DefineSetup_Sensordata_txtBx);\r\n\t}",
"public void enter_defineSetupPage_SensorCount(String sensorCnt) throws InterruptedException ... | [
"0.74523246",
"0.6604591",
"0.645227",
"0.5948586",
"0.5909609",
"0.5857",
"0.5771727",
"0.5738519",
"0.57150644",
"0.57105124",
"0.559805",
"0.5577488",
"0.5493626",
"0.5461475",
"0.54375887",
"0.5432022",
"0.5424064",
"0.5404089",
"0.5390672",
"0.5382917",
"0.537761",
"0.... | 0.7500462 | 0 |
Clear Sensor count data | public void clear_defineSetupPage_SensorCount() {
ClearText(DefineSetup_Sensordata_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clear() {\n count = 0;\n }",
"private void clearData() {}",
"public void reset () {\n if (!this.on) {\n return;\n }\n\n this.currentSensorValue = 0;\n }",
"public void clear()\n {\n count=0;\n }",
"public void clear() {\n _sample.... | [
"0.72444624",
"0.7187311",
"0.71842384",
"0.71208674",
"0.7046408",
"0.70354646",
"0.70279276",
"0.7019356",
"0.7012127",
"0.6950119",
"0.69481224",
"0.68640715",
"0.6777905",
"0.67721564",
"0.6749437",
"0.6741841",
"0.665725",
"0.66213477",
"0.6597693",
"0.6587106",
"0.65801... | 0.76296794 | 0 |
Click Sensor count data field | public void click_defineSetupPage_SensorCountField() {
clickOn(DefineSetup_Sensordata_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getDataCount();",
"int getDataCount();",
"int getDataCount();",
"int getDataCount();",
"int getDataCount();",
"public String get_Sensorcount_text() {\r\n\t\treturn FetchText(DefineSetup_Sensordata_txtBx);\r\n\t}",
"public int getSensorCount() {\n return sensorCount ;\n }",
"public Click... | [
"0.6246923",
"0.6246923",
"0.6246923",
"0.6246923",
"0.6246923",
"0.62197363",
"0.61988133",
"0.61653185",
"0.61543643",
"0.6047365",
"0.59525657",
"0.5945606",
"0.59030235",
"0.5886383",
"0.58816177",
"0.58439964",
"0.58153474",
"0.5784825",
"0.5767847",
"0.5762155",
"0.5761... | 0.75344515 | 0 |
Enter Sensor count data | public void enter_defineSetupPage_SensorCount(String sensorCnt) throws InterruptedException {
click_defineSetupPage_SensorCountField();
clear_defineSetupPage_SensorCount();
enterText(DefineSetup_Sensordata_txtBx, sensorCnt);
Thread.sleep(500);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void click_defineSetupPage_SensorCountField() {\r\n\t\tclickOn(DefineSetup_Sensordata_txtBx);\r\n\t}",
"public int getSensorCount() {\n return sensorCount ;\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == Sensor.TYPE_ACCELER... | [
"0.7148872",
"0.64182335",
"0.6221221",
"0.6175507",
"0.5951245",
"0.5898046",
"0.5839306",
"0.58363223",
"0.5816236",
"0.5801921",
"0.57862175",
"0.5759124",
"0.57434547",
"0.5700993",
"0.56696206",
"0.56527585",
"0.5612581",
"0.56105274",
"0.55944544",
"0.55924636",
"0.5589... | 0.7158132 | 0 |
Get the sensor text | public String get_Sensorcount_text() {
return FetchText(DefineSetup_Sensordata_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSensor()\n {\n return sensor;\n }",
"public String getText(){\n return this.sOut.toString();\n }",
"public String getText() {\n if (Language.isEnglish()) {\n return textEn;\n } else {\n return textFr;\n }\n }",
"Str... | [
"0.679039",
"0.6765722",
"0.661879",
"0.6575728",
"0.65548253",
"0.64966005",
"0.6482235",
"0.6462163",
"0.64260787",
"0.64260787",
"0.64260787",
"0.64169836",
"0.6410073",
"0.6409435",
"0.64087105",
"0.6388897",
"0.63728344",
"0.63471013",
"0.6337259",
"0.6337259",
"0.633555... | 0.71364886 | 0 |
Check the presence of Asset ID field in Define Setup page | public boolean visible_SetupAssetIDField() {
return IsElementVisibleStatus(DefineSetup_AssetID_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean AssetIDEnable() {\r\n\t\t// return IsElementEnabledStatus(DefineSetup_AssetID_txtBx);\r\n\t\t// DefineSetup_AssetID_txtBx.isDisplayed();\r\n\t\t// return DefineSetup_AssetID_txtBx.isDisplayed();\r\n\t\treturn IsElementEnabledStatus(DefineSetup_AssetID_txtBx);\r\n\t}",
"public boolean isSetAssetTra... | [
"0.61557037",
"0.57404023",
"0.5700179",
"0.56356955",
"0.56217307",
"0.54802907",
"0.54700047",
"0.5465983",
"0.54643404",
"0.5434824",
"0.5396095",
"0.53777105",
"0.53615403",
"0.53479093",
"0.5321082",
"0.53185517",
"0.53185517",
"0.5314865",
"0.5314865",
"0.5310627",
"0.5... | 0.70302373 | 0 |
Get the Asset ID text for the Asset ID test field | public String get_AssetID_text() {
return FetchText(DefineSetup_AssetID_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAssetId();",
"private String getTextID(String key) {\n return fieldID.get(key).getText();\n }",
"protected String text() {\n\t\treturn idSet ? String.valueOf(id) : \"\";\n\t}",
"String getText(int id);",
"public String getTxtID() {\n return txtId.getText();\n }",
"pub... | [
"0.6408689",
"0.62148297",
"0.61493236",
"0.61385286",
"0.6090831",
"0.60028726",
"0.577952",
"0.5718119",
"0.5709267",
"0.570828",
"0.5575845",
"0.5575845",
"0.556535",
"0.5454276",
"0.5435714",
"0.54033506",
"0.5394565",
"0.5380831",
"0.5380831",
"0.53462243",
"0.5320101",
... | 0.7856022 | 0 |
Verify the Asset ID Field is enable or not | public boolean AssetIDEnable() {
// return IsElementEnabledStatus(DefineSetup_AssetID_txtBx);
// DefineSetup_AssetID_txtBx.isDisplayed();
// return DefineSetup_AssetID_txtBx.isDisplayed();
return IsElementEnabledStatus(DefineSetup_AssetID_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean visible_SetupAssetIDField() {\r\n\t\treturn IsElementVisibleStatus(DefineSetup_AssetID_txtBx);\r\n\t}",
"boolean hasAdId();",
"private void verificaIdade() {\r\n\t\thasErroIdade(idade.getText());\r\n\t\tisCanSave();\r\n\t}",
"public boolean isEveryIdValid()\n {\n return(idValidatio... | [
"0.7141801",
"0.6192446",
"0.60691977",
"0.5963339",
"0.5941405",
"0.5911952",
"0.58928144",
"0.5851472",
"0.5851472",
"0.5830637",
"0.5830637",
"0.58031964",
"0.5785286",
"0.576296",
"0.5754653",
"0.57167274",
"0.57122475",
"0.5700597",
"0.56910604",
"0.5666836",
"0.5666836"... | 0.6961686 | 1 |
Get text of the Button Bar Alert message | public String get_ButtomBarAlertmsg_txt() {
WebElement alrtmsg = driver.findElementByAccessibilityId("displayMessageTextBlock");
return FetchText(alrtmsg);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAlertText() {\n\t\tAlert popUp = null;\n\t\ttry {\n\t\t\tpopUp = getDriver().switchTo().alert();\n\t\t} catch (NoAlertPresentException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn popUp.getText().trim();\n\t}",
"public String getAlertText() {\n ... | [
"0.73463756",
"0.7265556",
"0.7257031",
"0.72226155",
"0.6944298",
"0.691399",
"0.68593985",
"0.6810674",
"0.6771422",
"0.65755904",
"0.6525866",
"0.64675707",
"0.6459165",
"0.64530057",
"0.6452028",
"0.6354082",
"0.6302137",
"0.629431",
"0.6279779",
"0.62069166",
"0.6139859"... | 0.8106605 | 0 |
Check the presence of SOP field in Define Setup page | public boolean visible_SOPField() {
return IsElementVisibleStatus(DefineSetup_SOP_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isSetSOID();",
"public boolean isSetUpPage() {\n return EncodingUtils.testBit(__isset_bitfield, __UPPAGE_ISSET_ID);\n }",
"boolean isSetInstallmentType();",
"public void testSponsorPaymentPrefConstant() {\n assertEquals(\"SPONSOR_PAYMENT_PREF is incorrect\", UserConstants.SPONSOR_PAYMENT_P... | [
"0.5933445",
"0.572735",
"0.56703085",
"0.5629432",
"0.5629247",
"0.5600682",
"0.55829424",
"0.5486557",
"0.5435625",
"0.5420595",
"0.53970116",
"0.53798074",
"0.53682566",
"0.5363976",
"0.5353331",
"0.5353331",
"0.53201157",
"0.5305142",
"0.5291749",
"0.5271849",
"0.5254449"... | 0.6496141 | 0 |
Get SOP text field data | public String Fetch_sop_text() {
return FetchText(DefineSetup_SOP_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTextFromTextField() {\r\n\t\treturn textField.getText();\r\n\t}",
"public String getText()\n {\n return field.getText();\n }",
"public P getText() {\n return this.slp.getProduction(text);\n }",
"public String getText() {\r\n\t\treturn this.textfield.getText();\r\n\r\n\t}",... | [
"0.6549687",
"0.65036064",
"0.6481544",
"0.64809173",
"0.6467353",
"0.6457342",
"0.6445279",
"0.641235",
"0.63668805",
"0.63668805",
"0.63668805",
"0.63668805",
"0.6333244",
"0.6333244",
"0.6333244",
"0.6333244",
"0.6333244",
"0.6333244",
"0.6333244",
"0.6333244",
"0.63216466... | 0.65300417 | 1 |
Check the presence of Load Description field in Define Setup page | public boolean visible_LoadDescField() {
return IsElementVisibleStatus(DefineSetup_LoadDesc_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void click_defineSetupPage_LoadDescField() {\r\n\t\tclickOn(DefineSetup_LoadDesc_txtBx);\r\n\t}",
"public void enter_defineSetupPage_LoadDesc(String LDdt) {\r\n\t\tclick_defineSetupPage_LoadDescField();\r\n\t\tclear_defineSetupPage_LoadDesc();\r\n\t\tenterText(DefineSetup_LoadDesc_txtBx, LDdt);\r\n\t}",
... | [
"0.70852256",
"0.6688897",
"0.652181",
"0.652181",
"0.652181",
"0.6445897",
"0.6283692",
"0.61711985",
"0.6164423",
"0.61544263",
"0.6147063",
"0.6147063",
"0.6132644",
"0.6130372",
"0.60992724",
"0.59855425",
"0.5955124",
"0.5948966",
"0.58816713",
"0.58118445",
"0.58008957"... | 0.7066356 | 1 |
Click Load Description field | public void click_defineSetupPage_LoadDescField() {
clickOn(DefineSetup_LoadDesc_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void enter_defineSetupPage_LoadDesc(String LDdt) {\r\n\t\tclick_defineSetupPage_LoadDescField();\r\n\t\tclear_defineSetupPage_LoadDesc();\r\n\t\tenterText(DefineSetup_LoadDesc_txtBx, LDdt);\r\n\t}",
"public String getLoadDesc_txt() {\r\n\t\treturn FetchText(DefineSetup_LoadDesc_txtBx);\r\n\t}",
"public ... | [
"0.7116071",
"0.63390994",
"0.6286757",
"0.61880773",
"0.61720985",
"0.608159",
"0.60813487",
"0.60661554",
"0.60661554",
"0.6060251",
"0.6060251",
"0.6060251",
"0.6060251",
"0.6060251",
"0.6060251",
"0.60558295",
"0.6037816",
"0.6023943",
"0.60003567",
"0.60003567",
"0.59935... | 0.8177699 | 0 |
Clear Load Description data field | public void clear_defineSetupPage_LoadDesc() {
ClearText(DefineSetup_LoadDesc_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void remDescription(){\n ((MvwDefinitionDMO) core).remDescription();\n }",
"public void clearDescription() {\r\n\r\n\t\tWebElement descField = McsElement.getElementByXpath(driver,\tDESCRIPTION_TXTAREA);\r\n\t\r\n\t\tdescField.sendKeys(\" \");\r\n\t\t\r\n\t\tdescField.clear();\r\n\t\t\r\n\t\tdesc... | [
"0.739864",
"0.7217951",
"0.71758807",
"0.71351755",
"0.71251976",
"0.7095375",
"0.7052538",
"0.7052538",
"0.6972847",
"0.6918185",
"0.6736807",
"0.6664232",
"0.6626218",
"0.65497065",
"0.6512626",
"0.65023935",
"0.64724314",
"0.64711016",
"0.6460207",
"0.64545405",
"0.642513... | 0.7621553 | 0 |
Enter Load Description data | public void enter_defineSetupPage_LoadDesc(String LDdt) {
click_defineSetupPage_LoadDescField();
clear_defineSetupPage_LoadDesc();
enterText(DefineSetup_LoadDesc_txtBx, LDdt);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setData() {\n\t\t\n\t\tString str = readInternalStorage();\n\t\tString[] arr = str.split(\"--\");\n\t\tLog.v(\"CONSOLE\", arr.length+\" \"+arr);\n\t\t\n\t\tLog.v(\"CONSOLE\", \"path\"+arr[0]+\n\t\t\t\t\" name \"+arr[1]+\n\t\t\t\t\" date \"+arr[2]+\n\t\t\t\t\" desc \"+arr[3]); \n\t\t\n\t\tString desc =... | [
"0.6712549",
"0.6708031",
"0.6011103",
"0.5977893",
"0.5961077",
"0.5897691",
"0.58871496",
"0.584917",
"0.584917",
"0.5838498",
"0.5787399",
"0.5780279",
"0.5780279",
"0.57404184",
"0.5726011",
"0.57144636",
"0.57142663",
"0.5694043",
"0.5694043",
"0.5687973",
"0.568706",
... | 0.7035811 | 0 |
Fetch text from load description field | public String getLoadDesc_txt() {
return FetchText(DefineSetup_LoadDesc_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String retrieveDesc() {\n // Check if there's a valid description.\n String description = _descET.getText().toString();\n if (description == null || description.equals(\"\")) {\n Toast.makeText(AddActivity.this, \"Please enter a description.\", Toast.LENGTH_LONG).show();\n ... | [
"0.66290855",
"0.6484647",
"0.64729184",
"0.6430415",
"0.6411952",
"0.6378495",
"0.6361582",
"0.6358188",
"0.6326278",
"0.6326278",
"0.6326278",
"0.6326278",
"0.6326278",
"0.6326278",
"0.6326278",
"0.6326278",
"0.6326278",
"0.6325006",
"0.6213792",
"0.6213792",
"0.6213792",
... | 0.7179712 | 0 |
Fetch text from reducesensor alert window | public boolean Is_reducesensoralertbox_Visible() {
WebElement alert = driver.findElementByName("Defined number of sensors is less than the configured. "
+ "It will reset the sensor configuration. Do you want to continue?");
return IsElementVisibleStatus(alert);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void getalertText(WebDriver driver)\r\n\t{\n\t\tAlert alert=driver.switchTo().alert();\r\n\t\t\r\n\t\t//title of the alert message equal to driver.switchto().alert().gettext();\r\n\t\talert.getText();\r\n\t}",
"public String alertaObtemTextoEAceita() {\n Alert alerta = getDriver().switchTo().alert(... | [
"0.6753125",
"0.6613937",
"0.655114",
"0.64210474",
"0.6381767",
"0.6284854",
"0.61153805",
"0.61153805",
"0.61153805",
"0.61153805",
"0.61153805",
"0.61153805",
"0.61153805",
"0.611107",
"0.6014699",
"0.599346",
"0.59920746",
"0.59837097",
"0.5976112",
"0.5968791",
"0.596879... | 0.0 | -1 |
Check the presence of comments field in Define Setup page | public boolean visible_Comments_Field() {
return IsElementVisibleStatus(DefineSetup_Cmnts_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void VerifyCommentsField(){\r\n\t\tString countriesComments=\"Spain,France,Italy,Sweden,Germany,Netherland,Denmark,BernardFrance,BernardBelgium\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\... | [
"0.72926813",
"0.72155464",
"0.6896461",
"0.68851775",
"0.6714457",
"0.6330099",
"0.61044025",
"0.6053139",
"0.60423154",
"0.6014856",
"0.60109484",
"0.5978195",
"0.5932503",
"0.5907821",
"0.58939236",
"0.5866207",
"0.5852156",
"0.58158624",
"0.57843065",
"0.5780559",
"0.5722... | 0.66318774 | 5 |
Clear comments data field | public void clear_defineSetupPage_comments() {
ClearText(DefineSetup_Cmnts_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deleteComment() {\n text = null;\n authorName = null;\n timestamp = null;\n }",
"private void clearCommentsCount() {\n \n commentsCount_ = 0;\n }",
"public void clear() {\n mComments.clear();\n notifyDataSetChanged();\n }",
"private void clearDisabl... | [
"0.74259084",
"0.73109347",
"0.70911354",
"0.69625294",
"0.68963313",
"0.68773603",
"0.6824688",
"0.6776535",
"0.6763487",
"0.6762645",
"0.6756003",
"0.6732568",
"0.66322047",
"0.6598633",
"0.6492426",
"0.6408749",
"0.6373148",
"0.6259986",
"0.6240454",
"0.62348884",
"0.62287... | 0.62043184 | 21 |
Fetch comments field data | public String get_defineSetupPage_comments_txtData() {
return FetchText(DefineSetup_Cmnts_txtBx);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void extractDataFromJson(String commentData);",
"public String getComments() {\r\n return this.comments;\r\n }",
"java.lang.String getComments();",
"public String getComments() {\n return _comments;\n }",
"public String getComments() {\n return this.comments;\n }",
"@Overrid... | [
"0.6510594",
"0.63420016",
"0.6318311",
"0.6281695",
"0.62756187",
"0.62398154",
"0.61900085",
"0.6154957",
"0.61317074",
"0.61277837",
"0.6127296",
"0.60838604",
"0.60806483",
"0.606925",
"0.6067647",
"0.6066571",
"0.60481334",
"0.60444987",
"0.603441",
"0.60245425",
"0.6019... | 0.5674766 | 79 |
Check the presence of comments field in Define Setup page | public boolean visible_SensConfig_NxtBtn() {
return IsElementVisibleStatus(SensorConfiguration_Btn);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void VerifyCommentsField(){\r\n\t\tString countriesComments=\"Spain,France,Italy,Sweden,Germany,Netherland,Denmark,BernardFrance,BernardBelgium\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\... | [
"0.72929084",
"0.72159153",
"0.6897202",
"0.6884866",
"0.67153025",
"0.663214",
"0.6330475",
"0.61048",
"0.6054584",
"0.6043719",
"0.6015512",
"0.6012334",
"0.5978843",
"0.59324837",
"0.5906662",
"0.5893989",
"0.5866267",
"0.5852103",
"0.5817255",
"0.5785329",
"0.5781913",
... | 0.0 | -1 |
Click the Next button in the Define Setup page to move to Sensor Config page | public Setup_SensorConfigPage click_defineSetupPage_nxtBtn() throws InterruptedException, IOException {
clickOn(SensorConfiguration_Btn);
Thread.sleep(1000);
return new Setup_SensorConfigPage();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Click_defineSetupPage_Alert() {\r\n\t\tclickOn(SensorConfiguration_Btn);\r\n\t}",
"public void Admin_Configuration()\n\t{\n\t\tAdmin_Configuration.click();\n\t}",
"public void goToNextPage() {\n nextPageButton.click();\n }",
"public static void pushApplySiteSettingsButton()\n\t\n\t{\n//... | [
"0.7860451",
"0.67373925",
"0.62897664",
"0.6088954",
"0.5863088",
"0.57994795",
"0.5772706",
"0.57623637",
"0.57260925",
"0.5685685",
"0.56662726",
"0.5615844",
"0.5588942",
"0.5574373",
"0.5568863",
"0.5557649",
"0.5492978",
"0.5487698",
"0.5459738",
"0.5436325",
"0.5427713... | 0.7899903 | 0 |
Click the Next button in the Define Setup page for alert | public void Click_defineSetupPage_Alert() {
clickOn(SensorConfiguration_Btn);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void clickNextBtn() {\t\n\t\ttry {\n\t\t\tdriver.findElement(By.id(\"nextquest\")).click();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Next button in Q&A submit doesnt work\");\n\t\t}\n\t}",
"public void ClickNext() {\r\n\t\tnext.click();\r\n\t\t\tLog(\"Clicked the \\\"Next\\\" bu... | [
"0.7210413",
"0.7165082",
"0.70893806",
"0.7021885",
"0.67843175",
"0.67380846",
"0.66859716",
"0.6681701",
"0.6647238",
"0.6593263",
"0.65925175",
"0.6580442",
"0.65360487",
"0.65191776",
"0.6449729",
"0.6422403",
"0.6416198",
"0.6413096",
"0.64064825",
"0.6399535",
"0.63815... | 0.75213695 | 0 |
Right click on the Asset Creation page to invoke the bottom apps bar | public void Rt_Click_AstCreation_Buttom_AppBar() {
Actions ac = new Actions(driver);
ac.contextClick().build().perform();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void requestActionBar();",
"@Override\n public void onClick(View v) {\n\n Intent intent;\n intent = new Intent(AppMenu.this, AssetDownload.class);\n startActivity(intent);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) ... | [
"0.61690015",
"0.5989076",
"0.5974199",
"0.58621895",
"0.5856039",
"0.582541",
"0.5820342",
"0.57371736",
"0.5722359",
"0.57064",
"0.5698074",
"0.56911296",
"0.56649345",
"0.56584066",
"0.56065035",
"0.5599306",
"0.5586689",
"0.5568183",
"0.55650395",
"0.5560721",
"0.555738",... | 0.7216611 | 0 |
Verify the presence of Home button in the bottom apps bar | public boolean check_Home_Buttom_AppBar_Presence() {
WebElement bottomMenu_Home_Icon = driver.findElementByAccessibilityId("HomeAppBarButton");
return IsElementVisibleStatus(bottomMenu_Home_Icon);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void pressHomeButton() {\n System.out.println(\"TV is already on the home screen\\n\");\n }",
"public boolean check_Help_Buttom_AppBar_Presence() {\r\n\t\tWebElement bottomMenu_AppHelp_Icon = driver.findElementByAccessibilityId(\"HelpAppBarButton\");\r\n\t\treturn IsElementVisibleStatus(bottomMe... | [
"0.7402514",
"0.7282003",
"0.72231525",
"0.7192961",
"0.7130437",
"0.7128265",
"0.68971354",
"0.6805968",
"0.6766213",
"0.67514175",
"0.67480475",
"0.6596754",
"0.6595836",
"0.6491411",
"0.64483213",
"0.64421606",
"0.6408597",
"0.6357669",
"0.6355579",
"0.6313876",
"0.6306205... | 0.81948 | 0 |
Verify the presence of Apps Help icon/button in the bottom apps bar | public boolean check_Help_Buttom_AppBar_Presence() {
WebElement bottomMenu_AppHelp_Icon = driver.findElementByAccessibilityId("HelpAppBarButton");
return IsElementVisibleStatus(bottomMenu_AppHelp_Icon);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean check_WndsHelp_Buttom_AppBar_Presence() {\r\n\t\tWebElement bottomMenu_WndsHelp_Icon = driver.findElementByAccessibilityId(\"WindowsHelpAppBarButton\");\r\n\t\treturn IsElementVisibleStatus(bottomMenu_WndsHelp_Icon);\r\n\t}",
"public boolean check_About_Buttom_AppBar_Presence() {\r\n\t\tWebElement... | [
"0.8484149",
"0.7711771",
"0.75064814",
"0.70029056",
"0.68428457",
"0.63967776",
"0.6395138",
"0.63770324",
"0.6186798",
"0.6151415",
"0.60792553",
"0.60792553",
"0.605882",
"0.5897117",
"0.5883452",
"0.5869586",
"0.5868853",
"0.5855483",
"0.5834764",
"0.58282715",
"0.581302... | 0.8550099 | 0 |
Verify the presence of WndsHelp Help icon/button in the bottom apps bar | public boolean check_WndsHelp_Buttom_AppBar_Presence() {
WebElement bottomMenu_WndsHelp_Icon = driver.findElementByAccessibilityId("WindowsHelpAppBarButton");
return IsElementVisibleStatus(bottomMenu_WndsHelp_Icon);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean check_Help_Buttom_AppBar_Presence() {\r\n\t\tWebElement bottomMenu_AppHelp_Icon = driver.findElementByAccessibilityId(\"HelpAppBarButton\");\r\n\t\treturn IsElementVisibleStatus(bottomMenu_AppHelp_Icon);\r\n\t}",
"public boolean check_About_Buttom_AppBar_Presence() {\r\n\t\tWebElement bottomMenu_A... | [
"0.83587545",
"0.71528465",
"0.7138533",
"0.6944682",
"0.68471086",
"0.6808403",
"0.67737025",
"0.6490964",
"0.62852323",
"0.616857",
"0.6164833",
"0.6153554",
"0.6133158",
"0.60949886",
"0.6029256",
"0.6005193",
"0.5954605",
"0.5924973",
"0.5919662",
"0.5908586",
"0.5903438"... | 0.851438 | 0 |
Verify the presence of About Help icon/button in the bottom apps bar | public boolean check_About_Buttom_AppBar_Presence() {
WebElement bottomMenu_About_Icon = driver.findElementByAccessibilityId("AboutAppBarButton");
return IsElementVisibleStatus(bottomMenu_About_Icon);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean check_Help_Buttom_AppBar_Presence() {\r\n\t\tWebElement bottomMenu_AppHelp_Icon = driver.findElementByAccessibilityId(\"HelpAppBarButton\");\r\n\t\treturn IsElementVisibleStatus(bottomMenu_AppHelp_Icon);\r\n\t}",
"public boolean check_WndsHelp_Buttom_AppBar_Presence() {\r\n\t\tWebElement bottomMen... | [
"0.8210237",
"0.8098912",
"0.7061197",
"0.67489874",
"0.66563374",
"0.6599681",
"0.6584506",
"0.6526319",
"0.63962984",
"0.63541925",
"0.6177098",
"0.6121179",
"0.61049336",
"0.6073822",
"0.6006711",
"0.59961486",
"0.5974535",
"0.59703916",
"0.59703916",
"0.5952794",
"0.59428... | 0.7821802 | 2 |
Click on the Home icon of the bottom apps bar to move to Main Hub page | public MainHubPage Click_Home_Icon_AppBar() throws InterruptedException, IOException {
Actions ac = new Actions(driver);
ac.contextClick().build().perform();
WebElement bottomMenu_Home_Icon = driver.findElementByAccessibilityId("HomeAppBarButton");
clickOn(bottomMenu_Home_Icon);
Thread.sleep(1000);
WebElement alrtmsg_Yes = driver.findElementByName("Yes");
clickOn(alrtmsg_Yes);
return new MainHubPage();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void pressHomeButton() {\n System.out.println(\"TV is already on the home screen\\n\");\n }",
"public void navigateToHomePage()\n\t {\n\t if(getAdvertisementbtn().isPresent())\n\t getAdvertisementbtn().click();\n\t }",
"public void gotoHome(){ application.gotoHome(); }",
"default public v... | [
"0.71705866",
"0.7106117",
"0.7061985",
"0.6991794",
"0.69348836",
"0.6900449",
"0.68793654",
"0.682374",
"0.6803734",
"0.677741",
"0.6746262",
"0.6745159",
"0.67406434",
"0.6732377",
"0.6709223",
"0.6707587",
"0.6696292",
"0.6655951",
"0.66441023",
"0.65972894",
"0.6553168",... | 0.7166591 | 1 |
Click on the Help icon of the bottom apps bar to move to Main Hub page | public void Click_Help_Icon_AppBar() throws InterruptedException {
Actions ac = new Actions(driver);
ac.contextClick().build().perform();
WebElement bottomMenu_AppHelp_Icon = driver.findElementByAccessibilityId("HelpAppBarButton");
clickOn(bottomMenu_AppHelp_Icon);
Thread.sleep(1000);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void helpPressed() {\n Stage mainStage = (Stage)pane.getScene().getWindow();\n PresentationCtrl.getInstance().showNotification(\"Information\", \"Information\", null,\n \"- Click <Clear> button to clear the history\\n\\n- Click <Refresh> button to refresh the history\" +\n ... | [
"0.7236497",
"0.69247496",
"0.68659306",
"0.6798174",
"0.6777915",
"0.66324496",
"0.6612383",
"0.6608335",
"0.65814376",
"0.6541225",
"0.65231115",
"0.6486363",
"0.6476453",
"0.64636797",
"0.64349",
"0.6418637",
"0.63801134",
"0.63499445",
"0.6324515",
"0.6324081",
"0.6319006... | 0.6862505 | 3 |
Click on the WndsHelp icon of the bottom apps bar | public void Click_WndsHelp_Icon_AppBar() throws InterruptedException {
Actions ac = new Actions(driver);
ac.contextClick().build().perform();
WebElement bottomMenu_WndsHelp_Icon = driver.findElementByAccessibilityId("WindowsHelpAppBarButton");
clickOn(bottomMenu_WndsHelp_Icon);
Thread.sleep(1000);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Click_Help_Icon_AppBar() throws InterruptedException {\r\n\t\tActions ac = new Actions(driver);\r\n\t\tac.contextClick().build().perform();\r\n\r\n\t\tWebElement bottomMenu_AppHelp_Icon = driver.findElementByAccessibilityId(\"HelpAppBarButton\");\r\n\t\tclickOn(bottomMenu_AppHelp_Icon);\r\n\t\tThread.s... | [
"0.79677266",
"0.7221303",
"0.71686584",
"0.70294553",
"0.7000058",
"0.6902958",
"0.6856194",
"0.6781835",
"0.6760227",
"0.6740806",
"0.67053676",
"0.66720784",
"0.66609526",
"0.64483356",
"0.63892484",
"0.63481534",
"0.6316487",
"0.63010484",
"0.6300133",
"0.6294339",
"0.626... | 0.8209565 | 0 |
Verify the presence of "how do you want to open this file" window is displaying | public void check_openfile_window_Presence() throws InterruptedException {
driver.switchTo().activeElement();
WebElement openfile_window = driver.findElementByName("How do you want to open this file?");
Thread.sleep(3000);
// return IsElementVisibleStatus(openfile_window);
WebElement openfile_Adobe = driver.findElementByName("Adobe Reader");
clickOn(openfile_Adobe);
WebElement ConfirmButton_ok = driver.findElementByAccessibilityId("ConfirmButton");
clickOn(ConfirmButton_ok);
driver.switchTo().activeElement();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showInformationAboutBrokenFile(Shell shell) {\n\t\tMessageDialog\n \t.openInformation(\n \t\t shell, \n \t\t \"Info\",\n \t\t \"There was error during test cases generation, make sure selected file is correct!\");\n\t}",
"private void showInformationAboutWrongFile(Shell shell) {\n\t... | [
"0.6685124",
"0.6556222",
"0.63462186",
"0.6344534",
"0.6340558",
"0.6339577",
"0.63201743",
"0.6295132",
"0.61914456",
"0.6116487",
"0.61021996",
"0.6092452",
"0.60323936",
"0.600898",
"0.6007384",
"0.60043305",
"0.5985149",
"0.59806097",
"0.59727836",
"0.59611607",
"0.59055... | 0.7403193 | 0 |
Click on the About icon of the bottom apps bar to invoke the ABout window | public void Click_About_Icon_AppBar() throws InterruptedException {
Actions ac = new Actions(driver);
ac.contextClick().build().perform();
WebElement bottomMenu_About_Icon = driver.findElementByAccessibilityId("AboutAppBarButton");
clickOn(bottomMenu_About_Icon);
Thread.sleep(500);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showAbout() {\n\t\t/* track \"About\" */\n\t\ttracker.trackEvent(\"Listings\", \"Click\", \"About\", 0);\n\n\t\tUri uri = Uri.parse(\"http://static.flipzu.com/about-android.html\");\n\t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n\t\tstartActivity(intent);\n\t}",
"public static void goToAb... | [
"0.70920557",
"0.6826421",
"0.67776734",
"0.6740881",
"0.6737565",
"0.6712496",
"0.6664199",
"0.66393936",
"0.66045964",
"0.6505068",
"0.6435078",
"0.64200836",
"0.64164054",
"0.6395031",
"0.63743746",
"0.63721406",
"0.63561565",
"0.635471",
"0.63225824",
"0.63177735",
"0.631... | 0.71634984 | 0 |
Get the setup define Help context header text on clicking Help icon of the bottom apps bar | public String get_setupdefine_HelpMenu_HdrText() {
WebElement setupdefine_HelpMenu = driver.findElementByAccessibilityId("helpHeader");
return FetchText(setupdefine_HelpMenu);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getHelpText();",
"String getHelpString();",
"Menu getMenuHelp();",
"public String getHelp();",
"public abstract String getHelpInfo();",
"protected String getHelp() {\r\n return UIManager.getInstance().localize(\"renderingHelp\", \"Help description\");\r\n }",
"@Override\n public... | [
"0.7732151",
"0.7408523",
"0.7408132",
"0.7377701",
"0.72994065",
"0.72629434",
"0.7023998",
"0.69944954",
"0.69704497",
"0.6958388",
"0.69533706",
"0.6922172",
"0.68981946",
"0.6875814",
"0.68719536",
"0.68667096",
"0.68658245",
"0.6803242",
"0.6803103",
"0.67951655",
"0.671... | 0.75375664 | 1 |
Verify the presence of About window on clicking the ABout icon in the bottom apps bar | public boolean check_About_wndw_Presence() {
WebElement About_Wndw = driver.findElementByName("About");
return IsElementVisibleStatus(About_Wndw);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean check_About_Buttom_AppBar_Presence() {\r\n\t\tWebElement bottomMenu_About_Icon = driver.findElementByAccessibilityId(\"AboutAppBarButton\");\r\n\t\treturn IsElementVisibleStatus(bottomMenu_About_Icon);\r\n\t}",
"public static void goToAboutWindow()\n {\n AboutWindow aboutWindow = new Abo... | [
"0.727642",
"0.6776582",
"0.66761965",
"0.65758365",
"0.65717506",
"0.64343446",
"0.6386143",
"0.6369946",
"0.6327572",
"0.6304528",
"0.6301913",
"0.6276529",
"0.62572837",
"0.62501895",
"0.6242496",
"0.62003165",
"0.6171252",
"0.6165717",
"0.6140973",
"0.6113423",
"0.6098461... | 0.67292327 | 2 |
Get the Sw version info from the About window on clicking About icon of the bottom apps bar | public String get_SWVersion_About_Text() {
WebElement SWVersion_About_info = driver.findElementByAccessibilityId("SoftwareVersion");
return FetchText(SWVersion_About_info);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getVersionInfo() {\n return getCommonManifestEntry(getJarPathFromClassPath(getAppJarName()),null);\n }",
"public int getUIVersion();",
"public static void showAboutDialog(final AppD app) {\n\n\t\tfinal LocalizationD loc = app.getLocalization();\n\t\tStringBuilder sb = new StringBuilder... | [
"0.65380263",
"0.64761883",
"0.62717885",
"0.62622917",
"0.62114644",
"0.61161536",
"0.5997169",
"0.59663934",
"0.5941157",
"0.59372735",
"0.59282774",
"0.58972126",
"0.5888707",
"0.58786374",
"0.58727944",
"0.58680767",
"0.5866487",
"0.5852294",
"0.5845273",
"0.58124465",
"0... | 0.72894835 | 0 |
TODO Autogenerated method stub | @Override
public Airport createNew()
{
return new Airport();
} | {
"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 |
Set the role of this tier in the parent relation. | public void setRole(String role)
{
_role=role;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setParent(InheritedAccessEnabled newAccess, InheritedAccessEnabled parentAccess,\n Role role) {\n ((Preference) (newAccess)).setVisibleAtRole(role);\n }",
"void setParent(Resource parent)\n {\n this.parent = new ResourceRef(parent, coral);\n if(parent != null)\n... | [
"0.5926329",
"0.5728017",
"0.5721234",
"0.5585409",
"0.5539807",
"0.5487603",
"0.5407792",
"0.539693",
"0.53920925",
"0.538688",
"0.5386082",
"0.5352387",
"0.533349",
"0.5318591",
"0.5318492",
"0.5314134",
"0.5307317",
"0.5299259",
"0.52870345",
"0.5276565",
"0.5266299",
"0... | 0.53845966 | 11 |
/ access modifiers changed from: protected | public void uploadIPCMonitorFaults(String name) {
IHwSysResManager mgr;
if (name == null) {
name = "general";
}
if (HwSysResManagerService.self() != null) {
mgr = HwSysResManagerService.self().getHwSysResManagerService();
} else {
mgr = null;
}
if (mgr != null) {
try {
mgr.recordResourceOverloadStatus(-1, name, 33, this.mRecoverCount, -1, this.mRecoverCount, (Bundle) null);
} catch (RemoteException e) {
Log.e(TAG, "upload IPCTIMEOUT error failed:" + e.getMessage());
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.640... | 0.0 | -1 |
/ access modifiers changed from: protected | public void uploadIPCMonitorFaultToZerohung(String name, int recoverCount) {
int pid;
StringBuilder cmd = new StringBuilder("B,n=system_server");
DefaultZrHungImpl defaultZrHungImpl = this.mAppEyeFwkBlock;
if (defaultZrHungImpl != null && (pid = defaultZrHungImpl.getLockOwnerPid(this.mLock)) > 0) {
cmd.append(",p=");
cmd.append(pid);
}
if (!ZRHung.sendHungEvent((short) ZRHUNG_WP_IPC_OBJECT, cmd.toString(), "MonitorName:" + name + " RecoveryCount:" + recoverCount)) {
Log.e(TAG, " ZRHung.sendHungEvent failed!");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.640... | 0.0 | -1 |
/ access modifiers changed from: protected | public void uploadIPCMonitorFaultToIMonitor(String pkgName, int overloadCount, int timeoutDuration) {
if (Utils.DEBUG) {
Log.d(TAG, "uploadIPCMonitorFaultToIMonitor" + this.mLock);
}
ResourceUtils.uploadBigDataLogToIMonitor(33, pkgName, overloadCount, timeoutDuration);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.640... | 0.0 | -1 |
/ access modifiers changed from: protected | public void uploadIPCMonitorFaultToBigDatainfo(String pkgName, int overloadCount, int recoverCount) {
ResourceRecordStore resourceRecordStore = ResourceRecordStore.getInstance();
if (resourceRecordStore != null) {
if (Utils.DEBUG) {
Log.d(TAG, "uploadIPCMonitorFaultToBigDatainfo" + this.mLock);
}
SomeArgs args = SomeArgs.obtain();
args.arg1 = pkgName;
args.argi1 = overloadCount;
args.argi2 = -1;
args.argi3 = recoverCount;
resourceRecordStore.createAndCheckUploadBigDataInfos(-1, 33, args, null);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.73744047",
"0.7040692",
"0.692117",
"0.69076973",
"0.6844561",
"0.68277687",
"0.68048066",
"0.6581614",
"0.653803",
"0.6500888",
"0.64905626",
"0.64905626",
"0.6471316",
"0.64376974",
"0.64308083",
"0.64308083",
"0.642771",
"0.6424499",
"0.6419003",
"0.64083034",
"0.640539... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) throws Exception {
Initialize initialize = new Initialize();
List<ToDoItems> tasks = initialize.getList();
ToDoData data = ToDoData.getInstance();
data.setToDoItems(tasks);
data.saveToDoItemsToFile();
data.loadToDoItems();
} | {
"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 |
coloca no buffer o datagram para ser processado | public void receive(Message message) {
appReceiver.getBufferReceive().add(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void run (){ //el metodo run pertenece a extend Thread\n //Recibimos los mensajes por el puerto 5000\n try {\n socket = new DatagramSocket(7000);\n while (true){ //que siempre lo haga\n byte[] buffer = new byte[100];\n //empaquetamos el datagrama\n Da... | [
"0.70285827",
"0.687759",
"0.6775846",
"0.66014373",
"0.64631164",
"0.6283504",
"0.6128009",
"0.61065817",
"0.60681814",
"0.60419863",
"0.6037005",
"0.6007525",
"0.59911144",
"0.59841526",
"0.5962853",
"0.59538025",
"0.5939261",
"0.5931795",
"0.5929344",
"0.59057194",
"0.5887... | 0.0 | -1 |
Constructs a TagMatchesKeywordsPredicate that must not be empty | public TagMatchesKeywordsPredicate(List<String> keywords) {
requireNonNull(keywords);
this.keywords = keywords;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void test_containsKeywords_returnsTrue() {\n ContainsKeywordsPredicate predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"wallet\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Nike wallet\").build()));\n\n // One keyword in finder field\n ... | [
"0.7037455",
"0.6268187",
"0.6259343",
"0.6080192",
"0.5665801",
"0.55405337",
"0.550067",
"0.5393763",
"0.53665304",
"0.53572303",
"0.52764577",
"0.52145845",
"0.51548606",
"0.51510566",
"0.5122713",
"0.51194",
"0.51139295",
"0.5108264",
"0.5089527",
"0.5040333",
"0.5010218"... | 0.7178194 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
int n;
Scanner sc = new Scanner(System.in);
System.out.println("Enter your number: ");
n = sc.nextInt();
if(n%2 == 0)
System.out.println(n + " is even");
else
System.out.println(n + " is odd");
} | {
"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 method moves animal in his current direction and then spins him. | public void move() {
this.position.stepForwad();
this.position.spin();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}",
"public void act(){\n // Removing object, if out of the simulated zone\n ... | [
"0.7174958",
"0.6828987",
"0.67431104",
"0.6662261",
"0.66250354",
"0.65537155",
"0.6533164",
"0.6527346",
"0.6526586",
"0.6515202",
"0.64923894",
"0.64779854",
"0.6435102",
"0.64316654",
"0.64089686",
"0.64082706",
"0.63788253",
"0.6377549",
"0.6372203",
"0.63702786",
"0.636... | 0.6408375 | 15 |
/ Perform intercourse with partner that produces a child. TODO: Add position where to spawn | public Animal copulate(Animal partner) {
Animal child = new Animal(this, partner);
this.offspring.add(child);
partner.getOffspring().add(child);
applyCopulationPenalty(this);
applyCopulationPenalty(partner);
return child;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startExecuting() {\n\t\t\tRandom random = this.parentEntity.getRNG();\n\t\t\tdouble d0 = this.parentEntity.posX + (double)((random.nextFloat() * 2.0F - 1.0F) * 16.0F);\n\t\t\tdouble d1 = this.parentEntity.posY + (double)((random.nextFloat() * 2.0F - 1.0F) * 16.0F);\n\t\t\tdouble d2 = this.parentEntity.... | [
"0.5998214",
"0.5941902",
"0.58091664",
"0.5782606",
"0.569501",
"0.56939256",
"0.5621271",
"0.5609059",
"0.5608257",
"0.56018674",
"0.5593061",
"0.5573214",
"0.5563078",
"0.5493799",
"0.5489597",
"0.54474705",
"0.5435832",
"0.53552675",
"0.531204",
"0.529966",
"0.5287636",
... | 0.5047972 | 46 |
/ Applies 25% penalty to current_energy. This function is called when animals are reproducing. | private void applyCopulationPenalty(Animal copulatingAnimal) {
int penalty = (int) ((double) copulatingAnimal.getCurrentEnergy()*0.25);
copulatingAnimal.setCurrentEnergy(copulatingAnimal.getCurrentEnergy() - penalty);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void eat(int newEnergy)\n {\n if(energy+newEnergy > maxEnergy)\n {\n newEnergy = maxEnergy - energy;\n }\n\n energy += newEnergy;\n animalHungry = false;\n //no bo zwierzaczek juz nie jest glodny\n }",
"public void promote() {\r\n\t\tif (exp >= 20... | [
"0.6300497",
"0.6144182",
"0.6066947",
"0.6062684",
"0.6052442",
"0.6016319",
"0.59965056",
"0.5970555",
"0.5939319",
"0.5937185",
"0.59094167",
"0.58999884",
"0.5886225",
"0.5876665",
"0.58577657",
"0.58013725",
"0.5797985",
"0.5792375",
"0.5791489",
"0.57895267",
"0.5783276... | 0.6886596 | 0 |
/ This method moves animal one tile in the direction that the animal is facing. | public void stepForwad() {
switch(this.direction) {
case 0:
this.y += 1;
break;
case 1:
this.x += 1;
this.y += 1;
break;
case 2:
this.x += 1;
break;
case 3:
this.x += 1;
this.y -= 1;
break;
case 4:
this.y -= 1;
break;
case 5:
this.x -= 1;
this.y -= 1;
break;
case 6:
this.x -= 1;
break;
case 7:
this.x -= 1;
this.y += 1;
break;
}
this.x = (this.worldWidth + this.x)%this.worldWidth;
this.y = (this.worldHeight + this.y)%this.worldHeight;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void moveTile()\n {\n int[] moveIndices = null;\n \n int sourceRow = moveIndices[0];\n int sourceCol = moveIndices[1];\n int destRow = moveIndices[2] - 1;\n int destCol = moveIndices[3];\n \n if (sourceRow == 0) \n {\n try\n ... | [
"0.7189935",
"0.7156928",
"0.7034881",
"0.7029834",
"0.7014712",
"0.7011869",
"0.6977014",
"0.695544",
"0.69468623",
"0.6871045",
"0.67981744",
"0.6755135",
"0.6749725",
"0.67487836",
"0.67441005",
"0.6723228",
"0.67167026",
"0.6711542",
"0.66875994",
"0.66837734",
"0.6674736... | 0.64398307 | 50 |
/ This method spins animal based on his genome. | private void spin() {
ArrayList<Integer> sequence = getDna().getSequence();
int randomDirection = sequence.get(new Random().nextInt(sequence.size()));
setDirection((this.direction + randomDirection) % 8);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void animalMove(int x,int y, Living[][] map,int gridLength, int gridWidth){\r\n \r\n boolean age=map[x][y].getAge();\r\n boolean gender=map[x][y].getGender();\r\n boolean checkRight=false;\r\n boolean checkLeft=false;\r\n boolean checkUp=false;\r\n boolean checkDown=false;\r\n boolean up=fa... | [
"0.6070339",
"0.5655813",
"0.5577533",
"0.5564775",
"0.5407035",
"0.540285",
"0.5400689",
"0.53595406",
"0.5327535",
"0.5324375",
"0.5322374",
"0.52971005",
"0.5275618",
"0.5248193",
"0.52364945",
"0.5211939",
"0.52115184",
"0.5206208",
"0.51881164",
"0.5178897",
"0.51627606"... | 0.0 | -1 |
Evaluates the passed node | public boolean evaluate(SDGNode node); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Value evaluate();",
"Result evaluate();",
"private Object evalETree(ETreeNode node) throws FSException{\n Object lVal,rVal;\n\n if ( node == null )\n {\n parseError(\"Malformed expression\");\n // this is never reached, just for readability\n ... | [
"0.6931603",
"0.69047827",
"0.6738239",
"0.66023517",
"0.655281",
"0.655259",
"0.6428301",
"0.6428136",
"0.6418775",
"0.63889396",
"0.6332082",
"0.6310326",
"0.6250558",
"0.62243736",
"0.6217593",
"0.6202523",
"0.615486",
"0.6113009",
"0.61048925",
"0.61031634",
"0.6066873",
... | 0.74911124 | 0 |
Assume name of the columns in the destination size coefficients file that contain the purpose strings is "purpose" and the column that contains the segment strings is "segment" | public ModelStructure(){
dcModelPurposeIndexMap = new HashMap<String,Integer>();
dcModelIndexPurposeMap = new HashMap<Integer,String>();
dcSoaUecIndexMap = new HashMap<String,Integer>();
dcUecIndexMap = new HashMap<String,Integer>();
tourModeChoiceUecIndexMap = new HashMap<String,Integer>();
stopFreqUecIndexMap = new HashMap<String,Integer>();
stopLocUecIndexMap = new HashMap<String,Integer>();
tripModeChoiceUecIndexMap = new HashMap<String,Integer>();
segmentedPurposeIndexMap = new HashMap<String,Integer>();
segmentedIndexPurposeMap = new HashMap<Integer,String>();
primaryPurposeIndexMap = new HashMap<String,Integer>();
primaryIndexPurposeMap = new HashMap<Integer,String>();
primaryPurposeIndexMap.put( "Home", -1 );
primaryPurposeIndexMap.put( "Work", -2 );
primaryPurposeIndexMap.put( WORK_PURPOSE_NAME, WORK_PURPOSE_INDEX );
primaryPurposeIndexMap.put( UNIVERSITY_PURPOSE_NAME, UNIVERSITY_PURPOSE_INDEX );
primaryPurposeIndexMap.put( SCHOOL_PURPOSE_NAME, SCHOOL_PURPOSE_INDEX );
primaryPurposeIndexMap.put( ESCORT_PURPOSE_NAME, ESCORT_PURPOSE_INDEX );
primaryPurposeIndexMap.put( SHOPPING_PURPOSE_NAME, SHOPPING_PURPOSE_INDEX );
primaryPurposeIndexMap.put( OTH_MAINT_PURPOSE_NAME, OTH_MAINT_PURPOSE_INDEX );
primaryPurposeIndexMap.put( EAT_OUT_PURPOSE_NAME, EAT_OUT_PURPOSE_INDEX );
primaryPurposeIndexMap.put( SOCIAL_PURPOSE_NAME, SOCIAL_PURPOSE_INDEX );
primaryPurposeIndexMap.put( OTH_DISCR_PURPOSE_NAME, OTH_DISCR_PURPOSE_INDEX );
primaryPurposeIndexMap.put( AT_WORK_PURPOSE_NAME, AT_WORK_PURPOSE_INDEX );
primaryIndexPurposeMap.put( -1, "Home" );
primaryIndexPurposeMap.put( -2, "Work" );
primaryIndexPurposeMap.put( WORK_PURPOSE_INDEX, WORK_PURPOSE_NAME );
primaryIndexPurposeMap.put( UNIVERSITY_PURPOSE_INDEX, UNIVERSITY_PURPOSE_NAME );
primaryIndexPurposeMap.put( SCHOOL_PURPOSE_INDEX, SCHOOL_PURPOSE_NAME );
primaryIndexPurposeMap.put( ESCORT_PURPOSE_INDEX, ESCORT_PURPOSE_NAME );
primaryIndexPurposeMap.put( SHOPPING_PURPOSE_INDEX, SHOPPING_PURPOSE_NAME );
primaryIndexPurposeMap.put( OTH_MAINT_PURPOSE_INDEX, OTH_MAINT_PURPOSE_NAME );
primaryIndexPurposeMap.put( EAT_OUT_PURPOSE_INDEX, EAT_OUT_PURPOSE_NAME );
primaryIndexPurposeMap.put( SOCIAL_PURPOSE_INDEX, SOCIAL_PURPOSE_NAME );
primaryIndexPurposeMap.put( OTH_DISCR_PURPOSE_INDEX, OTH_DISCR_PURPOSE_NAME );
primaryIndexPurposeMap.put( AT_WORK_PURPOSE_INDEX, AT_WORK_PURPOSE_NAME );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static DoubleMatrixDataset<String, String> parseGeoTables(String fileInput, boolean debug) throws IOException {\n System.out.println(\"\\tNow parsing file: \"+fileInput);\n LinkedHashSet<Integer> desiredColPos = new LinkedHashSet<Integer>();\n \n int columnOffset = 1;\n ... | [
"0.50311583",
"0.50244176",
"0.49360624",
"0.4832346",
"0.47735852",
"0.4760552",
"0.47470543",
"0.47270507",
"0.47055805",
"0.47002903",
"0.46902594",
"0.46843803",
"0.46757138",
"0.46518192",
"0.46278986",
"0.46005777",
"0.4599464",
"0.45912135",
"0.45883963",
"0.4581392",
... | 0.0 | -1 |
a derived class must implement these methods to retrieve purpose names for various personTypes making mandatory tours. | abstract public int getIncomeSegment( int hhIncomeInDollars ); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getPurpose();",
"Object getPurpose();",
"String getPersonality();",
"public String getPurpose() {return purpose;}",
"public PersonType_Tp getPersonType() { return personType; }",
"public String getPurpose() {\n return purpose;\n }",
"public String getType() {\n\t\t\treturn \"... | [
"0.68503314",
"0.67265457",
"0.66074",
"0.6462513",
"0.6274784",
"0.60772645",
"0.60097736",
"0.5867481",
"0.58307105",
"0.5823911",
"0.5815436",
"0.58049786",
"0.5804629",
"0.5804629",
"0.5796363",
"0.5780964",
"0.57706904",
"0.5753868",
"0.57529837",
"0.57454455",
"0.572364... | 0.0 | -1 |
The following are used to navigate the dcSize array | public int getDcSizeArrayCategoryIndexOffset(String category){
if ( category.equalsIgnoreCase( MANDATORY_CATEGORY ) )
return getDcSizeArrayMandatoryCategoryIndexOffset();
else if ( category.equalsIgnoreCase( JOINT_NON_MANDATORY_CATEGORY ) )
return getDcSizeArrayJointCategoryIndexOffset();
else if ( category.equalsIgnoreCase( INDIVIDUAL_NON_MANDATORY_CATEGORY ) )
return getDcSizeArrayIndivNonManCategoryIndexOffset();
else if ( category.equalsIgnoreCase( AT_WORK_CATEGORY ) )
return getDcSizeArrayAtWorkCategoryIndexOffset();
else
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Dimension[] getSizes();",
"public static int size_infos_size_data() {\n return (8 / 8);\n }",
"public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }",
"public String getSize() { \r\n return SIZE[size]; }",
"pu... | [
"0.68749154",
"0.6658364",
"0.6629046",
"0.66248727",
"0.65968734",
"0.64693236",
"0.644535",
"0.64388126",
"0.64347315",
"0.64224076",
"0.63986945",
"0.6339118",
"0.633293",
"0.6325478",
"0.63215774",
"0.6316486",
"0.6314119",
"0.62884897",
"0.6285956",
"0.6278491",
"0.62780... | 0.0 | -1 |
The following are used to navigate the dcSize segments calculated | public int getDcSizeSegmentCategoryIndexOffset(String category){
if ( category.equalsIgnoreCase( MANDATORY_CATEGORY ) )
return getDcSizeSegmentMandatoryCategoryIndexOffset();
else if ( category.equalsIgnoreCase( JOINT_NON_MANDATORY_CATEGORY ) )
return getDcSizeSegmentJointCategoryIndexOffset();
else if ( category.equalsIgnoreCase( INDIVIDUAL_NON_MANDATORY_CATEGORY ) )
return getDcSizeSegmentIndivNonManCategoryIndexOffset();
else if ( category.equalsIgnoreCase( AT_WORK_CATEGORY ) )
return getDcSizeSegmentAtWorkCategoryIndexOffset();
else
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int numberOfSegments() {\n return nOfSegs;\n }",
"public int numberOfSegments() {\n return segments.size();\n }",
"int getNumSegments();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public long size() {\n return segment.size();\n }",
"Dimension[] getS... | [
"0.6303542",
"0.61353225",
"0.6092266",
"0.60821307",
"0.60534644",
"0.5976754",
"0.59532875",
"0.59331346",
"0.59330994",
"0.59140646",
"0.5889106",
"0.58880776",
"0.5879658",
"0.58707047",
"0.58685637",
"0.58285505",
"0.5825075",
"0.57865715",
"0.57784563",
"0.57727903",
"0... | 0.0 | -1 |
determine if the purpose string is a work purpose | public boolean getDcModelPurposeIsWorkPurpose( String purposeName ) {
String purpose = getPurposeString( purposeName );
return purpose.equalsIgnoreCase( workPurposeName );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean getDcModelPurposeIsSchoolPurpose( String purposeName ) {\n String purpose = getPurposeString( purposeName );\n return purpose.equalsIgnoreCase( schoolPurposeName );\n }",
"java.lang.String getPurpose();",
"public void setPurpose(String purpose) {\n this.purpose = purpose;... | [
"0.63798463",
"0.62711054",
"0.6235141",
"0.62054616",
"0.61524004",
"0.61499274",
"0.60488176",
"0.59782356",
"0.58080804",
"0.5718951",
"0.56878495",
"0.5533594",
"0.5491669",
"0.54475266",
"0.54142547",
"0.53882515",
"0.53333026",
"0.5307771",
"0.5275438",
"0.51518667",
"0... | 0.74954486 | 0 |
determine if the purpose string is a university purpose | public boolean getDcModelPurposeIsUniversityPurpose( String purposeName ) {
String purpose = getPurposeString( purposeName );
return purpose.equalsIgnoreCase( universityPurposeName );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean getDcModelPurposeIsSchoolPurpose( String purposeName ) {\n String purpose = getPurposeString( purposeName );\n return purpose.equalsIgnoreCase( schoolPurposeName );\n }",
"private String getPurposeString( String purposeName ) {\n String purpose = \"\";\n int index = ... | [
"0.66472006",
"0.649981",
"0.6084765",
"0.60790944",
"0.60534626",
"0.5998689",
"0.5874109",
"0.5815045",
"0.5763809",
"0.5763281",
"0.57406646",
"0.5710107",
"0.56929487",
"0.5594079",
"0.5580996",
"0.5528982",
"0.55203694",
"0.5490571",
"0.54269946",
"0.53737664",
"0.536709... | 0.7482816 | 0 |
determine if the purpose string is a school purpose | public boolean getDcModelPurposeIsSchoolPurpose( String purposeName ) {
String purpose = getPurposeString( purposeName );
return purpose.equalsIgnoreCase( schoolPurposeName );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean getDcModelPurposeIsUniversityPurpose( String purposeName ) {\n String purpose = getPurposeString( purposeName );\n return purpose.equalsIgnoreCase( universityPurposeName );\n }",
"public boolean getDcModelPurposeIsWorkPurpose( String purposeName ) {\n String purpose = getPu... | [
"0.6965053",
"0.6532651",
"0.645698",
"0.63026077",
"0.6265789",
"0.61480486",
"0.61409897",
"0.60156673",
"0.59364927",
"0.5900014",
"0.57525814",
"0.57291836",
"0.56745315",
"0.5643475",
"0.5625002",
"0.560177",
"0.55801046",
"0.5576905",
"0.55117273",
"0.5505302",
"0.54985... | 0.7451076 | 0 |
determine if the purpose string is a work purpose | private String getPurposeString( String purposeName ) {
String purpose = "";
int index = purposeName.indexOf( '_' );
// if there's no '_', the purposeName has no segments.
if ( index < 0 ) {
purpose = purposeName;
}
// if there is a '_', the purpose is the substring preceding it.
else {
purpose = purposeName.substring(0, index);
}
return purpose;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean getDcModelPurposeIsWorkPurpose( String purposeName ) {\n String purpose = getPurposeString( purposeName );\n return purpose.equalsIgnoreCase( workPurposeName );\n }",
"public boolean getDcModelPurposeIsSchoolPurpose( String purposeName ) {\n String purpose = getPurposeStrin... | [
"0.7495144",
"0.6381352",
"0.6272518",
"0.62372386",
"0.62065995",
"0.61540264",
"0.60505575",
"0.59801537",
"0.5809417",
"0.5720161",
"0.5689662",
"0.5535152",
"0.5491888",
"0.5448281",
"0.54154825",
"0.5389655",
"0.53345853",
"0.5308287",
"0.5277173",
"0.5152641",
"0.511982... | 0.6152518 | 6 |
Checks if the given player is frozen. | public boolean isFrozen(Player player) {
return frozenPlayers.containsKey(player.getUniqueId());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void freezePlayer(Player player) {\r\n\t\tif (!isFrozen(player)) {\r\n\t\t\tstartFreeze(player);\r\n\t\t}\r\n\t}",
"private void startFreeze(Player player) {\r\n\t\tfrozenPlayers.put(player.getUniqueId(), new FrozenPlayerInfo(player.getAllowFlight(), player.isFlying()));\r\n\r\n\t\t// Tell Bukkit that thi... | [
"0.70500743",
"0.62977624",
"0.6255817",
"0.6255817",
"0.6245737",
"0.59598565",
"0.5900147",
"0.5824092",
"0.5764849",
"0.5759465",
"0.57460064",
"0.5740121",
"0.57392305",
"0.5699819",
"0.56619805",
"0.5649412",
"0.56332445",
"0.5616014",
"0.5573051",
"0.5497983",
"0.548297... | 0.7889617 | 0 |
Freezes the given player. If the player is already frozen, nothing happens. | public void freezePlayer(Player player) {
if (!isFrozen(player)) {
startFreeze(player);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void unfreezePlayer(Player player) {\r\n\t\tif (isFrozen(player)) {\r\n\t\t\tendFreeze(player);\r\n\t\t}\r\n\t}",
"private void startFreeze(Player player) {\r\n\t\tfrozenPlayers.put(player.getUniqueId(), new FrozenPlayerInfo(player.getAllowFlight(), player.isFlying()));\r\n\r\n\t\t// Tell Bukkit that this... | [
"0.76615894",
"0.74927133",
"0.7463115",
"0.6762119",
"0.6564899",
"0.65166533",
"0.6429103",
"0.6336131",
"0.62938374",
"0.62212795",
"0.6028589",
"0.601254",
"0.5998193",
"0.5914578",
"0.587987",
"0.5847524",
"0.5847332",
"0.5839926",
"0.58065253",
"0.5805334",
"0.5785096",... | 0.8528703 | 0 |
Unfreezes the given player. If the player not currently frozen, nothing happens. | public void unfreezePlayer(Player player) {
if (isFrozen(player)) {
endFreeze(player);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void endFreeze(Player player) {\r\n\t\tFrozenPlayerInfo info = frozenPlayers.remove(player.getUniqueId());\r\n\r\n\t\t// Again, two packets are sent, though we do not modify them this time.\r\n\t\tplayer.setAllowFlight(info.allowFlight);\r\n\t\tplayer.setFlying(info.isFlying);\r\n\t}",
"public void freez... | [
"0.76028764",
"0.73944",
"0.66032666",
"0.6556436",
"0.6502525",
"0.6466567",
"0.64589256",
"0.63044137",
"0.61924225",
"0.6158216",
"0.6027397",
"0.6019663",
"0.6007943",
"0.59831727",
"0.5907643",
"0.5879855",
"0.5809018",
"0.57893914",
"0.57104176",
"0.5706884",
"0.5658418... | 0.84438634 | 0 |
Internal start freeze logic. Add the player to the frozen players list, then mark them as flying (so that Bukkit doesn't kick them for flying). Finally, resend their position and velocity. | private void startFreeze(Player player) {
frozenPlayers.put(player.getUniqueId(), new FrozenPlayerInfo(player.getAllowFlight(), player.isFlying()));
// Tell Bukkit that this player is flying and shouldn't be effected by gravity.
// The packet that is actually sent is modified in onPacketSending, and
// the client won't receive these exact values.
// However, changing the values also does cause the abilities packet to
// be sent, meaning that it can be edited to have the info we want.
// Sadly, we need to call two methods which means two packets when only
// one packet really is needed, since Bukkit doesn't let one set
// isFlying to true without allowing flight.
player.setAllowFlight(true);
player.setFlying(true);
resendPosition(player);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void freezePlayer(Player player) {\r\n\t\tif (!isFrozen(player)) {\r\n\t\t\tstartFreeze(player);\r\n\t\t}\r\n\t}",
"private void endFreeze(Player player) {\r\n\t\tFrozenPlayerInfo info = frozenPlayers.remove(player.getUniqueId());\r\n\r\n\t\t// Again, two packets are sent, though we do not modify them thi... | [
"0.7566336",
"0.6379604",
"0.6064887",
"0.6019719",
"0.5872153",
"0.5846679",
"0.5740732",
"0.5644578",
"0.5594775",
"0.55691624",
"0.5490543",
"0.5445744",
"0.54452676",
"0.54119384",
"0.54046744",
"0.54028803",
"0.5398561",
"0.5382698",
"0.53781724",
"0.5372515",
"0.5372406... | 0.83752495 | 0 |
Internal freeze end logic. Remove the player from the frozen players list, and revert their flying state. | private void endFreeze(Player player) {
FrozenPlayerInfo info = frozenPlayers.remove(player.getUniqueId());
// Again, two packets are sent, though we do not modify them this time.
player.setAllowFlight(info.allowFlight);
player.setFlying(info.isFlying);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void unfreezePlayer(Player player) {\r\n\t\tif (isFrozen(player)) {\r\n\t\t\tendFreeze(player);\r\n\t\t}\r\n\t}",
"public void freezePlayer(Player player) {\r\n\t\tif (!isFrozen(player)) {\r\n\t\t\tstartFreeze(player);\r\n\t\t}\r\n\t}",
"private void startFreeze(Player player) {\r\n\t\tfrozenPlayers.put... | [
"0.7066886",
"0.6850781",
"0.6578949",
"0.61796325",
"0.6130067",
"0.60942036",
"0.60905397",
"0.60311097",
"0.5959561",
"0.5931025",
"0.58759946",
"0.58502483",
"0.5827453",
"0.5820326",
"0.5798322",
"0.57480365",
"0.573249",
"0.57233834",
"0.5713214",
"0.570386",
"0.5676782... | 0.77438956 | 0 |
Sends a position packet and a velocity packet, with the position packet _only_ effecting position and not rotation. | private void resendPosition(Player player) {
PacketContainer positionPacket = protocolManager.createPacket(PacketType.Play.Server.POSITION);
Location location = player.getLocation();
positionPacket.getDoubles().write(0, location.getX());
positionPacket.getDoubles().write(1, location.getY());
positionPacket.getDoubles().write(2, location.getZ());
positionPacket.getFloat().write(0, 0f); // No change in yaw
positionPacket.getFloat().write(1, 0f); // No change in pitch
getFlagsModifier(positionPacket).write(0, EnumSet.of(PlayerTeleportFlag.X_ROT, PlayerTeleportFlag.Y_ROT)); // Mark pitch and yaw as relative
PacketContainer velocityPacket = protocolManager.createPacket(PacketType.Play.Server.ENTITY_VELOCITY);
velocityPacket.getIntegers().write(0, player.getEntityId());
velocityPacket.getIntegers().write(1, 0).write(2, 0).write(3, 0); // Set velocity to 0,0,0
try {
protocolManager.sendServerPacket(player, positionPacket);
protocolManager.sendServerPacket(player, velocityPacket);
} catch (Exception e) {
throw new RuntimeException("Failed to send position and velocity packets", e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void receivedVelocity(Twist velocity) {\n synchronized(_velocityListeners) {\n if (_velocityListeners.isEmpty()) return;\n }\n \n try {\n // Construct message\n Response resp = new Response(UdpConstan... | [
"0.66150814",
"0.5724261",
"0.56804454",
"0.55657065",
"0.5531663",
"0.5504877",
"0.5500997",
"0.54582596",
"0.5419493",
"0.54046637",
"0.5384236",
"0.53559315",
"0.53431624",
"0.5340276",
"0.5305823",
"0.5305428",
"0.53023934",
"0.53023934",
"0.53023934",
"0.52878684",
"0.52... | 0.6485692 | 1 |
Gets the structure flags structure modifier for the given player position packet. | private StructureModifier<Set<PlayerTeleportFlag>> getFlagsModifier(PacketContainer packet) {
return packet.getModifier().withType(Set.class,
BukkitConverters.getSetConverter(FLAGS_CLASS, EnumWrappers
.getGenericConverter(PlayerTeleportFlag.class)));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public byte getModifier(){\r\n\t\treturn modifiers;\r\n\t}",
"public int getBit(int pos) {\r\n\t\treturn flagBits[pos];\r\n\t\t\r\n\t}",
"public ModifierData getModifier() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new ModifierData(__io__address + 0, __io__block, __io__blockTabl... | [
"0.59603804",
"0.5845852",
"0.56872034",
"0.56872034",
"0.5605786",
"0.55281353",
"0.55076396",
"0.541432",
"0.5382973",
"0.5324967",
"0.5324967",
"0.5312752",
"0.5312752",
"0.5294487",
"0.5294487",
"0.5294487",
"0.5294487",
"0.5294487",
"0.5294487",
"0.52595824",
"0.52591974... | 0.71651936 | 0 |
/ escpially useful for the questions | public Attribute_New(String _name, String _value)
{
name = _name;
List singleAttributList = new ArrayList<String>();
singleAttributList.add(_value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void cajas() {\n\t\t\n\t}",
"public void method_4270() {}",
"protected boolean func_70814_o() { return true; }",
"private void kk12() {\n\n\t}",
"public void mo21792Q() {\n }",
"public void mo38117a() {\n }",
"public static void main(){\n \n \n String question = \"... | [
"0.57956576",
"0.573019",
"0.57299775",
"0.57199514",
"0.56656134",
"0.5611093",
"0.5529102",
"0.54921794",
"0.54537284",
"0.5436177",
"0.54087526",
"0.53966445",
"0.53860694",
"0.5374759",
"0.53710175",
"0.5364082",
"0.5347524",
"0.53352654",
"0.5321349",
"0.53136003",
"0.52... | 0.0 | -1 |
own compare function to display values in option menu in specific order | @Override
public int compareTo(Attribute_New _other)
{
return this.name.compareTo(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void comparisonMenu() {\n comparisonMenuOptions();\n\n try {\n handeComparisonMenuCommands();\n } catch (Exception ex) {\n System.out.println(\"\\nYou must create the array first\\n\");\n }\n }",
"@Test (priority = 1)\n public void sortAlphabeti... | [
"0.6241406",
"0.60392046",
"0.58700746",
"0.5771855",
"0.57623124",
"0.575369",
"0.5737375",
"0.5713393",
"0.57115805",
"0.5710276",
"0.5669022",
"0.5643701",
"0.5601385",
"0.559874",
"0.5576449",
"0.555797",
"0.5547548",
"0.5526558",
"0.54818845",
"0.54726857",
"0.54707986",... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void laysEgg() {
} | {
"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 eggHatches() {
} | {
"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 |
function return index page | @GetMapping("/")
public ModelAndView mv() {
ModelAndView mv = new ModelAndView("index");
return mv;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Result index() {\n Logger.info(\"render top page\");\n return ok(index.render());\n }",
"public Result index() {\n\t\treturn ok(views.html.index.render());\n\t}",
"public Result index() {\n return ok(views.html.index.render());\n }",
"public Result index() {\n return ... | [
"0.7359471",
"0.7202656",
"0.71947336",
"0.71947336",
"0.71947336",
"0.7050677",
"0.7049274",
"0.6819869",
"0.67448163",
"0.67192084",
"0.66992897",
"0.6692842",
"0.66630614",
"0.66630614",
"0.66630614",
"0.665678",
"0.6655672",
"0.6639828",
"0.6639828",
"0.6639828",
"0.66398... | 0.0 | -1 |
function returns Search Result by followers and hashtag | @PostMapping("/tweets")
public List<searchresult> nameList(@RequestParam("keyword") String keyword, HttpSession session) {
SearchParameters params = new SearchParameters(keyword);
SearchResults results = twitter.searchOperations().search(params);
List<Tweet> Searchresult = results.getTweets();
for (Tweet tweet : Searchresult) {
searchresult objResult = new searchresult(0, tweet.getText(), tweet.getProfileImageUrl(),tweet.getFromUser());
searchservice.saveSearchresult(objResult);
}
List<searchresult> searchlist = searchservice.listAll();
return searchlist;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> followersList(String searchStr) {\r\n\t\tList<String> twitterResponseList = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tProperties properties = getProperties();\r\n\t\t\tString apiUrl = properties.getProperty(\"twitter.api.follower.list\") + \"?screen_name=\" + searchStr;\r\n\r\n\t\t\tHttpRe... | [
"0.6271721",
"0.5996206",
"0.5903094",
"0.5762808",
"0.5757181",
"0.57361794",
"0.5663785",
"0.5628312",
"0.5607785",
"0.5509627",
"0.5490368",
"0.5482393",
"0.5468357",
"0.5468169",
"0.5455709",
"0.5411463",
"0.5408319",
"0.53896624",
"0.53068197",
"0.52914727",
"0.52665806"... | 0.0 | -1 |
function which returns followers tweets | @PostMapping("/timeline")
public List<tweets> timelineList() {
List<Tweet> timeline = twitter.timelineOperations().getHomeTimeline();
for (Tweet tweet : timeline) {
tweets objTweets = new tweets(0, tweet.getText(), tweet.getProfileImageUrl(), tweet.getFromUser());
service.saveTweets(objTweets);
}
List<tweets> home = service.listAll();
return home;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<User> getFollowersForUser(User user);",
"public List<String> followersList(String searchStr) {\r\n\t\tList<String> twitterResponseList = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tProperties properties = getProperties();\r\n\t\t\tString apiUrl = properties.getProperty(\"twitter.api.follower.list\") + \"... | [
"0.7265798",
"0.71247673",
"0.69282466",
"0.68315756",
"0.6731518",
"0.6598784",
"0.65626675",
"0.65454847",
"0.6500056",
"0.6492189",
"0.647705",
"0.6446602",
"0.6440065",
"0.6432621",
"0.64325917",
"0.64255273",
"0.6423719",
"0.6389845",
"0.63891697",
"0.62424684",
"0.62198... | 0.0 | -1 |
get row counts to print | public int showCounts() {
return showCount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getRowsCount();",
"public int getTotalRows();",
"public abstract int getNumRows();",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.LoadRowCount[] getRowCounts();",
"public int getNumRows() {\n\t\treturn NUM_ROWS; \n\t}",
"public int getRows();",
"public int getRows();",
"public int ... | [
"0.7715003",
"0.7452723",
"0.7410286",
"0.73354447",
"0.73215276",
"0.7272154",
"0.7272154",
"0.7261204",
"0.72338474",
"0.7200699",
"0.72003627",
"0.72003627",
"0.71977955",
"0.71820515",
"0.71736556",
"0.71673006",
"0.7163674",
"0.715926",
"0.71536857",
"0.71392906",
"0.712... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.