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
Notifies the turtle's observers that the turtle has changed.
@Override public void notifyAllObservers() { myTurtle.notifyObservers(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTurtleUpdated(AbstractTurtle t)\n {\n // Fire paint event\n this.repaint();\n }", "public void updateTurtleOnView()\n\t{\n\t\t// update turtle info to View\n\t\tsetInfoParamsOfTurtleAndLine();\n\t\t\n\t\tif (this.isVisible() == 1)\n\t\t{\n\t\t\t// make turtle visi...
[ "0.77753365", "0.66415936", "0.6017858", "0.6006258", "0.5948843", "0.59374917", "0.5922741", "0.5884626", "0.58596814", "0.58519727", "0.5805771", "0.5793045", "0.5766591", "0.5729466", "0.5722094", "0.57142603", "0.57078844", "0.56677943", "0.5664126", "0.56604034", "0.5641...
0.74530447
1
Creates new form CadastroDeEmpresa
public CadastroDeEmpresa() { initComponents(); preencherTabela("select * from empresa order by id"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public void carregarCadastro() {\n\n try {\n\n if (codigo != null) {\n\n ClienteDao fdao = new ClienteDao();\n\n cliente = fdao.buscarCodigo(codigo);\n\n } else {\n ...
[ "0.729816", "0.71782535", "0.70170325", "0.68061644", "0.6788415", "0.6667447", "0.6573997", "0.6547248", "0.65434855", "0.6525495", "0.6506535", "0.6506328", "0.6484427", "0.6458931", "0.64523524", "0.644074", "0.6418615", "0.63980365", "0.6383084", "0.6363214", "0.6360747",...
0.71244735
2
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() { jLabel2 = new javax.swing.JLabel(); jTextFieldPesquisar = new javax.swing.JTextField(); jScrollPane1 = new javax.swing.JScrollPane(); jTableEmpresaFornecedora = new javax.swing.JTable(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jTextFieldId = new javax.swing.JTextField(); jLabel6 = new javax.swing.JLabel(); jButtonFechar = new javax.swing.JButton(); jLabel7 = new javax.swing.JLabel(); jTextFieldEmail = new javax.swing.JTextField(); jLabel5 = new javax.swing.JLabel(); jTextFieldContacto = new javax.swing.JTextField(); jButtonNovo = new javax.swing.JButton(); jButtonEditar = new javax.swing.JButton(); jTextFieldLocalizacao = new javax.swing.JTextField(); jButtonCancelar = new javax.swing.JButton(); jButtonExcluir = new javax.swing.JButton(); jButtonSalvar = new javax.swing.JButton(); jTextFieldFornecedora = new javax.swing.JTextField(); jButtonPesquisar = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); getContentPane().setLayout(null); jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel2.setForeground(new java.awt.Color(255, 255, 255)); jLabel2.setText("Cadastro De Empresa Fornecedora"); getContentPane().add(jLabel2); jLabel2.setBounds(0, 10, 330, 40); jTextFieldPesquisar.setBackground(new java.awt.Color(0, 0, 0)); jTextFieldPesquisar.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jTextFieldPesquisar.setForeground(new java.awt.Color(255, 255, 255)); getContentPane().add(jTextFieldPesquisar); jTextFieldPesquisar.setBounds(510, 0, 270, 30); jTableEmpresaFornecedora.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {}, {}, {}, {} }, new String [] { } )); jTableEmpresaFornecedora.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jTableEmpresaFornecedoraMouseClicked(evt); } }); jScrollPane1.setViewportView(jTableEmpresaFornecedora); getContentPane().add(jScrollPane1); jScrollPane1.setBounds(60, 270, 720, 140); jLabel3.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel3.setForeground(new java.awt.Color(255, 255, 255)); jLabel3.setText("Fornecedora"); getContentPane().add(jLabel3); jLabel3.setBounds(60, 120, 100, 30); jLabel4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel4.setForeground(new java.awt.Color(255, 255, 255)); jLabel4.setText("ID"); getContentPane().add(jLabel4); jLabel4.setBounds(60, 70, 20, 30); jTextFieldId.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jTextFieldId.setEnabled(false); getContentPane().add(jTextFieldId); jTextFieldId.setBounds(80, 70, 40, 30); jLabel6.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel6.setForeground(new java.awt.Color(255, 255, 255)); jLabel6.setText("Contacto"); getContentPane().add(jLabel6); jLabel6.setBounds(470, 120, 80, 30); jButtonFechar.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButtonFechar.setText("X"); jButtonFechar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonFecharActionPerformed(evt); } }); getContentPane().add(jButtonFechar); jButtonFechar.setBounds(790, 0, 40, 30); jLabel7.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel7.setForeground(new java.awt.Color(255, 255, 255)); jLabel7.setText("Email"); getContentPane().add(jLabel7); jLabel7.setBounds(470, 190, 80, 30); jTextFieldEmail.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jTextFieldEmail.setEnabled(false); getContentPane().add(jTextFieldEmail); jTextFieldEmail.setBounds(550, 190, 230, 30); jLabel5.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel5.setForeground(new java.awt.Color(255, 255, 255)); jLabel5.setText("Localização"); getContentPane().add(jLabel5); jLabel5.setBounds(60, 190, 90, 30); jTextFieldContacto.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jTextFieldContacto.setEnabled(false); getContentPane().add(jTextFieldContacto); jTextFieldContacto.setBounds(550, 120, 230, 30); jButtonNovo.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButtonNovo.setText("Novo"); jButtonNovo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonNovoActionPerformed(evt); } }); getContentPane().add(jButtonNovo); jButtonNovo.setBounds(60, 240, 80, 23); jButtonEditar.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButtonEditar.setText("Editar"); jButtonEditar.setEnabled(false); jButtonEditar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonEditarActionPerformed(evt); } }); getContentPane().add(jButtonEditar); jButtonEditar.setBounds(280, 240, 90, 23); jTextFieldLocalizacao.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jTextFieldLocalizacao.setEnabled(false); getContentPane().add(jTextFieldLocalizacao); jTextFieldLocalizacao.setBounds(160, 190, 250, 30); jButtonCancelar.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButtonCancelar.setText("Cancelar"); jButtonCancelar.setEnabled(false); jButtonCancelar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonCancelarActionPerformed(evt); } }); getContentPane().add(jButtonCancelar); jButtonCancelar.setBounds(510, 240, 90, 23); jButtonExcluir.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButtonExcluir.setText("Excluir"); jButtonExcluir.setEnabled(false); jButtonExcluir.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonExcluirActionPerformed(evt); } }); getContentPane().add(jButtonExcluir); jButtonExcluir.setBounds(400, 240, 80, 23); jButtonSalvar.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButtonSalvar.setText("Salvar"); jButtonSalvar.setEnabled(false); jButtonSalvar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonSalvarActionPerformed(evt); } }); getContentPane().add(jButtonSalvar); jButtonSalvar.setBounds(160, 240, 90, 23); jTextFieldFornecedora.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jTextFieldFornecedora.setEnabled(false); getContentPane().add(jTextFieldFornecedora); jTextFieldFornecedora.setBounds(160, 120, 250, 30); jButtonPesquisar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ImagemProjecto/search_24px.png"))); // NOI18N jButtonPesquisar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonPesquisarActionPerformed(evt); } }); getContentPane().add(jButtonPesquisar); jButtonPesquisar.setBounds(480, 0, 30, 30); jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ImagemProjecto/FundoParaTodasTelasRegistro.jpg"))); // NOI18N getContentPane().add(jLabel1); jLabel1.setBounds(0, 0, 840, 410); setSize(new java.awt.Dimension(845, 446)); setLocationRelativeTo(null); }
{ "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.73206544", "0.7291311", "0.7291311", "0.7291311", "0.7286492", "0.7249181", "0.7213362", "0.72085494", "0.71965617", "0.7190475", "0.7184897", "0.7159234", "0.71483016", "0.7094075", "0.7081491", "0.70579433", "0.6987627", "0.69776064", "0.69552463", "0.69549114", "0.69453...
0.0
-1
HTML parsing utilities recursively collect nodes that match filter
private static NodeList getNodes(Node n, NodeFilter filter) throws ParserException { NodeList list = new NodeList(); n.collectInto(list, filter); NodeList c = n.getChildren(); if (null != c) { for (NodeIterator e = c.elements(); e.hasMoreNodes();) { e.nextNode().collectInto(list, filter); } } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static List<String> getText(Node n, String filter) throws ParserException\n\t{\n\t\tList<String> strArray = new ArrayList<String>();\n\t\tString parentTag = \"\";\n\t\tTagNode parent = (TagNode) n.getParent();\n\t\tif (parent != null)\n\t\t{\n\t\t\tparentTag = parent.getTagName();\n\t\t}\n\t\tif (n instanc...
[ "0.6025907", "0.5554776", "0.5498049", "0.54585713", "0.542941", "0.5426294", "0.54057837", "0.5273076", "0.52155507", "0.52069354", "0.5166722", "0.5130625", "0.51160985", "0.510389", "0.5088445", "0.5083981", "0.5082831", "0.5050331", "0.5027139", "0.50142026", "0.5005685",...
0.63850105
0
Returns a fully formed url
public static String formURL(String url) { String newurl; if (url.contains("http://") || url.contains("https://")) { newurl = url; } else { newurl = "http://" + url; } return newurl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String url();", "@Override\n public String getUrl() {\n StringBuilder sb = new StringBuilder(baseUrl);\n if (mUrlParams.size() > 0) {\n sb.append(\"?\");\n for (String key : mUrlParams.keySet()) {\n sb.append(key);\n sb.append(\"=\");\n ...
[ "0.71697545", "0.6968472", "0.6960241", "0.6926229", "0.69224", "0.69224", "0.69224", "0.69224", "0.69224", "0.69224", "0.6791271", "0.6756164", "0.6756164", "0.6756164", "0.6756164", "0.6756164", "0.67511874", "0.67511874", "0.6654882", "0.6623269", "0.65963835", "0.658904...
0.6037902
69
Return a list/Array of text strings from a webpage inside tag "filter"
public static List<String> getLinks(String url, NodeFilter filter) throws ParserException { Parser parser = getParser(url); NodeList list = new NodeList(); for (NodeIterator e = parser.elements(); e.hasMoreNodes();) { list.add(getNodes(e.nextNode(), filter)); } List<String> strings = new ArrayList<String>(); for (NodeIterator i = list.elements(); i.hasMoreNodes();) { Node n = i.nextNode(); if (n instanceof LinkTag) { // text String link = ((LinkTag) n).extractLink(); if (!strings.contains(link)) { strings.add(((LinkTag) n).extractLink()); } } } return strings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<String> HTMLStrings(String url, String filter) throws ParserException\n\t{\n\t\tList<String> strings = new ArrayList<String>();\n\t\tParser parser = getParser(url);\n\t\tfor (NodeIterator i = parser.elements(); i.hasMoreNodes();)\n\t\t{\n\t\t\tstrings.addAll(getText(i.nextNode(), filter.toUpperC...
[ "0.7602772", "0.67731565", "0.637029", "0.626846", "0.60541785", "0.58817273", "0.5854474", "0.5852924", "0.5742344", "0.56671953", "0.56547475", "0.5622836", "0.5620824", "0.56089026", "0.55061877", "0.54685444", "0.5456923", "0.5445219", "0.5408328", "0.53989774", "0.539791...
0.6191048
4
Create a node filter
public static NodeFilter makeFilter() { NodeFilter[] fa = new NodeFilter[3]; fa[0] = new HasAttributeFilter("HREF"); fa[1] = new TagNameFilter("A"); fa[2] = new HasParentFilter(new TagNameFilter("H3")); NodeFilter filter = new AndFilter(fa); return filter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNodeFilter (INodeFilter filter);", "public void filterNodes(String filter) {\n\n\n tree_graphs.getChildren().clear();\n populate(universe, filter, this.showNodes, this.showEdges,\n this.showHyperEdges);\n\n\n tree_nodes.getChildren().clear();\n for (INode...
[ "0.7552683", "0.707209", "0.6695975", "0.6579747", "0.64996827", "0.6435909", "0.64338887", "0.63746226", "0.6369636", "0.62641513", "0.6107765", "0.60524505", "0.60016006", "0.5997159", "0.597225", "0.5966522", "0.59472877", "0.592962", "0.58730376", "0.5867088", "0.585783",...
0.76175374
0
Stem a word eliminating stop words from list
public static String stemNSW(String word) { return isNSW(getRoot(word.toLowerCase())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Stem> stem(String word) {\n return stem(word.toCharArray(), word.length());\n }", "String stemOf (String word);", "public List<String> stem(List<String> terms) {\r\n\t\tPaiceHuskStemmer stemmer = null;\r\n\t\ttry {\r\n\t\t\tstemmer = PaiceHuskStemmer.getInstance(SVMClassifier.class.getClassLoad...
[ "0.72643495", "0.70898354", "0.7028978", "0.69251746", "0.68300486", "0.65712386", "0.6539928", "0.65030485", "0.6498164", "0.64688635", "0.64676255", "0.64443", "0.6397395", "0.6382749", "0.6364182", "0.63262385", "0.6299397", "0.6283659", "0.6280013", "0.627231", "0.6244508...
0.5348245
68
give the stem of a word (may not be valid English word)
public static String getRoot(String word) { return (new Stemmer()).stem(word); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String stemOf (String word);", "public static String stem(String word){\n Stemmer s = new Stemmer();\n s.add(word.toCharArray(), word.length());\n s.stem();\n return s.toString();\n }", "public static String stemWord(String word) {\n if (word.matches(\".*\\\\s.*\")) throw ...
[ "0.9048448", "0.84633887", "0.8199963", "0.8100278", "0.7992041", "0.7926847", "0.78391695", "0.7824335", "0.74840677", "0.7435818", "0.72903395", "0.7285246", "0.7154247", "0.71341", "0.7106843", "0.70748085", "0.69815755", "0.6919014", "0.6787782", "0.6748186", "0.6587581",...
0.68937963
18
Return word if is not stop word or empty array if it is
public static String isNSW(String word) { if (sw.contains(word)) { return ""; } return word; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isStopword( char[] word ) {\n\t\t// Return true if the input word is a stopword, or false if not.\n\t\treturn false;\n\t}", "public boolean isStopWord(String word);", "public abstract boolean isStopWord(String term);", "@Override\r\n\t\t\tpublic boolean isStopWord(String term) {\n\t\t\t\tretur...
[ "0.6788198", "0.67150635", "0.6704323", "0.66138744", "0.6354551", "0.6324298", "0.6066612", "0.6030853", "0.5973785", "0.59544045", "0.58498514", "0.57857263", "0.55534476", "0.5541674", "0.5487326", "0.54681766", "0.54673064", "0.5455531", "0.5453371", "0.5427967", "0.54214...
0.0
-1
Get text from google page from a google search term
public static String gsText(String sstring) throws Exception { String res = ""; for (String s : gsUrls(sstring)) { res = res + HTMLText(s) + " "; } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void search() {\n String result = \"<body bgcolor=\\\"black\\\"> \" +\n \"<font color=\\\"#009933\\\"\";\n gs.setQueryString(txtQueury.getText());\n try {\n gsr = gs.doSearch();\n txtCountRes.setText(\"\" + gsr.getEst...
[ "0.64795035", "0.62333274", "0.60719943", "0.5951355", "0.5950939", "0.59503824", "0.5938869", "0.5890151", "0.5812466", "0.5803611", "0.5742979", "0.5730822", "0.5723502", "0.5630703", "0.56289333", "0.5620469", "0.5588915", "0.55515003", "0.5543057", "0.5533863", "0.5533701...
0.49947223
70
recursively process nodes and get text(top level is )
private static List<String> getText(Node n, String filter) throws ParserException { List<String> strArray = new ArrayList<String>(); String parentTag = ""; TagNode parent = (TagNode) n.getParent(); if (parent != null) { parentTag = parent.getTagName(); } if (n instanceof TextNode) { // text TextNode tn = (TextNode) n; System.out.println(parentTag + ":" + tn.getText().trim()); System.out.println(((TagNode) n).getTagName()); if (filter.equals("") || filter.equalsIgnoreCase(parentTag)) { String text = tn.getText().trim(); text = text.replace("&nbsp;", " "); // remove non-breaking spaces if (text.length() > 0 && !text.matches("\\s+")) { strArray.add(text); } } } else { // a tag or remark NodeList nl = n.getChildren(); if (null != nl) { for (NodeIterator ni = nl.elements(); ni.hasMoreNodes();) { strArray.addAll(getText(ni.nextNode(), filter)); } } } return strArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getText(Node node) {\n\t\tStringBuilder text = new StringBuilder();\n\t\t\n\t\ttext.append(node.getText());\n\t\tNode childNode;\n\t\tint size;\n\t\t\n\t\ttry {\n\t\t\tsize = node.numberOfChildren();\n\t\t} catch (NullPointerException e) {\n\t\t\tsize = 0;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i ...
[ "0.68151325", "0.64915633", "0.62951916", "0.6116661", "0.61161095", "0.6058821", "0.5926963", "0.5824181", "0.58007455", "0.57867247", "0.57763886", "0.57668984", "0.5663904", "0.56353885", "0.5634956", "0.5623659", "0.55995315", "0.55976915", "0.5593939", "0.5536236", "0.55...
0.58734673
7
Return links from a url Make sure that the links are fully qualified
public static URL[] HTMLLinks(String url) throws Exception { // Get the links URLConnection conn = (new java.net.URL(url)).openConnection(); conn.setRequestProperty("User-Agent","Mozilla/5.0 ( compatible ) "); conn.setRequestProperty("Accept","*/*"); LinkBean sb = new LinkBean(); sb.setURL(url); sb.setConnection(conn); URL[] outlinks = sb.getLinks(); // make links fully qualified URI baseURI = null; try { baseURI = new URI(url); } catch (Exception e) { logger.error(e.getMessage(), e); return new URL[0]; } // ---- List<URL> fqurls = new ArrayList<URL>(); for (int i = 0; i < outlinks.length; i++) { URL fqurl = null; try { fqurl = baseURI.resolve(outlinks[i].toURI()).toURL(); } catch (Exception e) { logger.error(e.getMessage(), e); } if (fqurl != null) { fqurls.add(fqurl); } } return fqurls.toArray(new URL[fqurls.size()]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Set<String> extracLinks(String url, LinkFilter filter) {\n\n\t\tSet<String> links = new HashSet<String>();\n\t\ttry {\n\t\t\tParser parser = new Parser(url);\n\t\t\tparser.setEncoding(\"UTF-8\");\n\t\t\t// linkFilter filter <a> tag\n\t\t\tNodeClassFilter linkFilter = new NodeClassFilter(LinkTag.class);\n\t...
[ "0.68862736", "0.6884086", "0.6795296", "0.6582272", "0.657377", "0.657377", "0.657377", "0.657377", "0.657377", "0.657377", "0.6544935", "0.65159094", "0.6483376", "0.63816583", "0.6342519", "0.634132", "0.634132", "0.634132", "0.634132", "0.634132", "0.6300335", "0.627453...
0.6968823
0
Return strings from a url
public static String HTMLText(String url) throws Exception { if (!isValidUrl(url)) { return ""; } String outs = ""; StringBean sb = new StringBean(); sb.setLinks(false); sb.setReplaceNonBreakingSpaces(true); sb.setCollapse(false); sb.setURL(url); try { outs = sb.getStrings(); } catch (Exception e) { logger.error(e.getMessage(), e); } return outs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getUrlContents(String theUrl) {\n StringBuilder content = new StringBuilder();\n try {\n URL url = new URL(theUrl);\n URLConnection urlConnection = url.openConnection();\n //reads the response\n BufferedReader br = new BufferedReader(new Inpu...
[ "0.70041543", "0.69423485", "0.6756903", "0.6724505", "0.67241186", "0.666519", "0.666519", "0.666519", "0.666519", "0.666519", "0.6560949", "0.6530612", "0.64890593", "0.6479972", "0.64729637", "0.6472548", "0.64502084", "0.64248157", "0.6413585", "0.6397475", "0.6380055", ...
0.0
-1
returns string from a html string
public static String getText(String html) throws Exception { StringBean sb = new StringBean(); sb.setLinks(false); Parser p = Parser.createParser(html, null); p.visitAllNodesWith(sb); return sb.getStrings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String extractHTML(String str) {\n if (str == null) return \"\";\n StringBuffer ret = new StringBuffer(str.length());\n int start = 0;\n int beginTag = str.indexOf(\"<\");\n int endTag = 0;\n if (beginTag == -1)\n return str;\n \n whi...
[ "0.688584", "0.68661666", "0.68385756", "0.6762138", "0.6533305", "0.65042466", "0.6459568", "0.63537276", "0.621179", "0.61610514", "0.6156638", "0.6154536", "0.6146649", "0.6103492", "0.6088399", "0.6085854", "0.60412693", "0.60403043", "0.60246944", "0.60071486", "0.600369...
0.6497198
6
Return links from a url as a string of space separated urls
public static String HTMLLinkString(String url) throws Exception { URL[] links = HTMLLinks(url); String urls = ""; for (URL link : links) { urls = urls + link.toString() + " "; } return urls.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private @NotNull List<String> getAllLinks(final String text, final String urlStart) {\n List<String> links = new ArrayList<>();\n\n int i = 0;\n while (text.indexOf(urlStart, i) != -1) {\n int linkStart = text.indexOf(urlStart, i);\n int linkEnd = text.indexOf(\" \", linkStart);\n if (linkE...
[ "0.7233344", "0.65389264", "0.64812446", "0.6449452", "0.63866776", "0.63772434", "0.63354087", "0.6243921", "0.6176638", "0.60349566", "0.59860384", "0.5971923", "0.59190136", "0.5918447", "0.5794019", "0.57337433", "0.5729933", "0.56570524", "0.56570524", "0.56570524", "0.5...
0.6507139
2
Return links from a url as a string of space separated urls
public static String HTMLLinkString(String url, String filter) throws Exception { URL[] links = HTMLLinks(url); String urls = ""; for (URL link : links) { String slink = link.toString(); if (slink.contains(filter)) { urls = urls + slink + " "; } } return urls.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private @NotNull List<String> getAllLinks(final String text, final String urlStart) {\n List<String> links = new ArrayList<>();\n\n int i = 0;\n while (text.indexOf(urlStart, i) != -1) {\n int linkStart = text.indexOf(urlStart, i);\n int linkEnd = text.indexOf(\" \", linkStart);\n if (linkE...
[ "0.7233344", "0.65389264", "0.6507139", "0.64812446", "0.6449452", "0.63866776", "0.63772434", "0.63354087", "0.6243921", "0.6176638", "0.60349566", "0.5971923", "0.59190136", "0.5918447", "0.5794019", "0.57337433", "0.5729933", "0.56570524", "0.56570524", "0.56570524", "0.56...
0.59860384
11
Get a list of all the urls upto deep within
public static String HTMLLinkString(String root, int level) throws Exception { String urls = ""; if (0 == level) { return urls; } urls = HTMLLinkString(root); for (String u : urls.split("\\s+")) { urls = urls + " " + HTMLLinkString(u, level - 1); } return urls.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public URL[] getURLs(String mkey) {\n\t\tURL last;\n\t\tint i = 0;\n\t\tArrayList<URL> v = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tlast = getURL(mkey + i);\n\t\t\ti++;\n\t\t\tif (last == null)\n\t\t\t\tbreak;\n\t\t\tv.add(last);\n\t\t}\n\t\tif (v.size() != 0) {\n\t\t\tURL[] path = new URL[v.size()];\n\t\t\tr...
[ "0.60972065", "0.6096285", "0.59923005", "0.59625566", "0.59181637", "0.5880799", "0.5804524", "0.57819045", "0.5771384", "0.5758741", "0.57245725", "0.5688185", "0.56852853", "0.56786543", "0.56292504", "0.5600314", "0.5578238", "0.5571451", "0.54782856", "0.5478029", "0.547...
0.0
-1
Get a list of all the urls upto deep But only the urls that contain the string "filter"
public static String HTMLLinkString(String root, int level, String filter) throws Exception { String urls = ""; if (0 == level) { return urls; } urls = HTMLLinkString(root, filter); for (String u : urls.split("\\s+")) { if (u.contains(filter)) { urls = urls + " " + HTMLLinkString(u, level - 1, filter); } } return urls.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<String> getLinks(String url, NodeFilter filter) throws ParserException\n\t{\n\t\tParser parser = getParser(url);\n\t\tNodeList list = new NodeList();\n\t\tfor (NodeIterator e = parser.elements(); e.hasMoreNodes();)\n\t\t{\n\t\t\tlist.add(getNodes(e.nextNode(), filter));\n\t\t}\n\t\tList<String> ...
[ "0.6413163", "0.63565046", "0.63341975", "0.60217327", "0.58382946", "0.5585502", "0.5482582", "0.54549605", "0.5444126", "0.54388773", "0.53917897", "0.538071", "0.53367376", "0.53296125", "0.53252536", "0.5277917", "0.5274368", "0.52716106", "0.5268732", "0.5260594", "0.525...
0.54536945
8
Return a list/Array of text strings from a webpage inside tag "filter"
public static List<String> HTMLStrings(String url, String filter) throws ParserException { List<String> strings = new ArrayList<String>(); Parser parser = getParser(url); for (NodeIterator i = parser.elements(); i.hasMoreNodes();) { strings.addAll(getText(i.nextNode(), filter.toUpperCase())); } return strings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static List<String> getText(Node n, String filter) throws ParserException\n\t{\n\t\tList<String> strArray = new ArrayList<String>();\n\t\tString parentTag = \"\";\n\t\tTagNode parent = (TagNode) n.getParent();\n\t\tif (parent != null)\n\t\t{\n\t\t\tparentTag = parent.getTagName();\n\t\t}\n\t\tif (n instanc...
[ "0.6773859", "0.63704944", "0.62674373", "0.6191152", "0.60539013", "0.5880216", "0.585339", "0.5852893", "0.57437", "0.5666579", "0.5655659", "0.5622147", "0.5620531", "0.5608445", "0.5506116", "0.5467032", "0.5457709", "0.5444497", "0.54076695", "0.5398431", "0.5398267", ...
0.7602483
0
Return text from a webpage inside tag "filter"
public static String HTMLText(String url, String filter) throws ParserException { String text = ""; List<String> sList; Parser parser = getParser(url); for (NodeIterator i = parser.elements(); i.hasMoreNodes();) { sList = getText(i.nextNode(), filter.toUpperCase()); Iterator<String> it = sList.iterator(); while (it.hasNext()) { text = text + " " + it.next(); } } return text; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<String> HTMLStrings(String url, String filter) throws ParserException\n\t{\n\t\tList<String> strings = new ArrayList<String>();\n\t\tParser parser = getParser(url);\n\t\tfor (NodeIterator i = parser.elements(); i.hasMoreNodes();)\n\t\t{\n\t\t\tstrings.addAll(getText(i.nextNode(), filter.toUpperC...
[ "0.66900146", "0.65211743", "0.6443645", "0.6070411", "0.5997556", "0.58780307", "0.578981", "0.57772946", "0.5736691", "0.56956255", "0.5692208", "0.56407195", "0.5542288", "0.5484454", "0.5480927", "0.5470323", "0.54377174", "0.54007035", "0.5368527", "0.53403956", "0.52593...
0.73260015
0
return words from a url, stemmed and validated
public static List<String> validHtmlStems(String url) { String htmlString = ""; try { htmlString = HTMLText(url); } catch (Exception e) { logger.error(e.getMessage(), e); } List<String> words = getWords(htmlString); List<String> validWords = validStems(words); return validWords; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static List<String> getWord(String urlname) {\n\t\tList<String> returnWord = new ArrayList<String>();\n\t\tBufferedReader reader;\n\t\ttry {\n\t\t\tURL url = new URL(urlname);\n\t\t\tInputStream in = url.openStream();\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\twhile (true) {\n\t\...
[ "0.67863333", "0.63666344", "0.62221", "0.606994", "0.57800704", "0.57320815", "0.56675893", "0.56288785", "0.5592376", "0.5581639", "0.55778867", "0.5545865", "0.55452245", "0.5525585", "0.5492502", "0.5472372", "0.54235905", "0.54176897", "0.5400474", "0.5388019", "0.538065...
0.61839765
3
Return stemmed words from a web page, in our dictionary
public static List<String> validStems(List<String> words) { Stemmer stemmer = new Stemmer(); ArrayList<String> goodWords = new ArrayList<String>(); for (String word : words) { String stem = stemmer.stem(word); if (dictUtils.dict.containsKey(stem)) { goodWords.add(stem); } } return goodWords; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String stemOf (String word);", "public List<Stem> stem(String word) {\n return stem(word.toCharArray(), word.length());\n }", "default String getStem() {\n return meta(\"nlpcraft:nlp:stem\");\n }", "public String Stem( String word )\n {\n // check if we already know the word\n...
[ "0.68486196", "0.64040387", "0.6389563", "0.6352796", "0.62009865", "0.59938693", "0.5975981", "0.59572846", "0.58985823", "0.5860562", "0.5853653", "0.5842977", "0.5817483", "0.5795593", "0.57850343", "0.57793754", "0.5741923", "0.5690128", "0.56633466", "0.5643299", "0.5637...
0.476718
96
return words from a url, stemmed and validated
public static List<String> validHtmlWords(String url) { String htmlString = ""; try { htmlString = HTMLText(url); } catch (Exception e) { logger.error(e.getMessage(), e); } List<String> words = getWords(htmlString); List<String> validWords = validWords(words); return validWords; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static List<String> getWord(String urlname) {\n\t\tList<String> returnWord = new ArrayList<String>();\n\t\tBufferedReader reader;\n\t\ttry {\n\t\t\tURL url = new URL(urlname);\n\t\t\tInputStream in = url.openStream();\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\twhile (true) {\n\t\...
[ "0.67880285", "0.6221993", "0.618436", "0.60698134", "0.57809883", "0.5732128", "0.5668299", "0.5629883", "0.55930114", "0.5582491", "0.55772823", "0.5546449", "0.5545765", "0.5525704", "0.54941535", "0.5472951", "0.5424019", "0.5418643", "0.5401", "0.5388635", "0.5381601", ...
0.6367357
1
Return stemmed words from a web page, in our dictionary
public static List<String> validWords(List<String> words) { Stemmer stemmer = new Stemmer(); List<String> goodWords = new ArrayList<String>(); for (String word : words) { String stem = stemmer.stem(word); if (dictUtils.dict.containsKey(stem)) { goodWords.add(dictUtils.dict.get(stem)); } } return goodWords; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String stemOf (String word);", "public List<Stem> stem(String word) {\n return stem(word.toCharArray(), word.length());\n }", "default String getStem() {\n return meta(\"nlpcraft:nlp:stem\");\n }", "public String Stem( String word )\n {\n // check if we already know the word\n...
[ "0.68486196", "0.64040387", "0.6389563", "0.6352796", "0.62009865", "0.59938693", "0.5975981", "0.59572846", "0.58985823", "0.5860562", "0.5853653", "0.5842977", "0.5817483", "0.5795593", "0.57850343", "0.57793754", "0.5741923", "0.5690128", "0.56633466", "0.5643299", "0.5637...
0.0
-1
get words from string
public static List<String> getWords(String text) { String lower = text.toLowerCase(); String noPunct = lower.replaceAll("\\W", " "); String noNum = noPunct.replaceAll("[0-9]", " "); List<String> words = Arrays.asList(noNum.split("\\s+")); return words; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static ArrayList<String> split_words(String s){\n ArrayList<String> words = new ArrayList<>();\n\n Pattern p = Pattern.compile(\"\\\\w+\");\n Matcher match = p.matcher(s);\n while (match.find()) {\n words.add(match.group());\n }\n return words;\n }", "publi...
[ "0.7576453", "0.75644654", "0.7274428", "0.7202487", "0.7194655", "0.70780814", "0.68960273", "0.6818066", "0.6715524", "0.6570648", "0.654159", "0.65377295", "0.6504272", "0.6489182", "0.64617896", "0.6458131", "0.63064295", "0.6283226", "0.62300086", "0.62128794", "0.603946...
0.6866122
7
Create a parser with the right properties (needed for Google search)
public static Parser getParser(String url) { try { java.net.URLConnection conn = (new java.net.URL(url)).openConnection(); conn.setRequestProperty("User-Agent", "Mozilla"); Parser p = new Parser(conn); return p; } catch (Exception e) { logger.error(e.getMessage(), e); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Parse createParse();", "public PropertyParser()\n\t{\n\t\tthis(System.getProperties());\n\t}", "public Parser() {\n\t\tpopulateMaps();\n\t}", "private Parser () { }", "public PropertyParser(Properties props)\n\t{\n\t\t_props = props;\n\t}", "public Parser() {}", "private TraceParser genParser() throws ...
[ "0.6778426", "0.66801584", "0.6255432", "0.619206", "0.6161975", "0.6066308", "0.6030597", "0.6030072", "0.60114294", "0.5959791", "0.5924954", "0.59217477", "0.58244234", "0.5758834", "0.57482076", "0.57248193", "0.5690822", "0.5678193", "0.5646395", "0.56434655", "0.5639272...
0.0
-1
Stem a string (of words) and return a string of valid english words
public static String stemvString(String raws) { String os = ""; for (String w : raws.split("\\s+")) { os = os + dictUtils.getStemWord(w) + " "; } return os; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String stemOf (String word);", "public static String stem(String word){\n Stemmer s = new Stemmer();\n s.add(word.toCharArray(), word.length());\n s.stem();\n return s.toString();\n }", "private String processWord(String word){\r\n\t\tString lword = word.toLowerCase();\r\n\t\tfor...
[ "0.7561647", "0.7113259", "0.7065553", "0.6898249", "0.6838467", "0.68153393", "0.6782706", "0.6768339", "0.67209077", "0.6708201", "0.6692141", "0.66668594", "0.65237", "0.64206845", "0.6330336", "0.62061036", "0.6156872", "0.604378", "0.60360134", "0.60034376", "0.5968971",...
0.6062637
17
Stem a sentence removing stop words
public static String stemSentNSW(String raw) { String os = ""; for (String w : raw.split("\\s+")) { os = os + dictUtils.stemNSW(w) + " "; } return os; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String preprocessStemAndTokenize(String data) {\n\n\t\tSet<String> transformedSet = new HashSet<String>(); //Set will make sure only unique terms are kept\n\t\tStringBuilder strBuilder = new StringBuilder();\n\t\tTokenizer analyzer = new Tokenizer(Version.LUCENE_30);\n\t\tTokenStream tokenStream = an...
[ "0.7172972", "0.71256495", "0.6716679", "0.66902304", "0.6670179", "0.66263765", "0.6578838", "0.65136003", "0.648235", "0.64246523", "0.63418627", "0.6331426", "0.6318566", "0.62910116", "0.62540936", "0.6250787", "0.62491745", "0.6242411", "0.62312853", "0.6217465", "0.6196...
0.0
-1
For type checking, so the warnings go away//
public static void buildSymTable(CommonTree tree) { ListIterator<?> tmp = tree.getChildren().listIterator(); ArrayList<CommonTree> elements = new ArrayList<CommonTree>(); while (tmp.hasNext()) elements.add((CommonTree) tmp.next()); /* Any type errors found here! */ ListIterator<CommonTree> iter = elements.listIterator();//= tree.getChildren().listIterator(); //end type checking// while(iter.hasNext()) { CommonTree element = iter.next();//this does go here if (element.getChildCount() == 2 && element.getText().equalsIgnoreCase("DECL")){ symTable.insertSymbol(new Symbol(element.getChild(1).getText(),element.getChild(0).getText())); //System.out.println("Left: " + element.getChild(0).getText()); //System.out.println("Right: " + element.getChild(1).getText()); } else if (element.getChildCount() == 1){ //System.out.println("Dest: " + element.getChild(0).getText()); } else if(element.getChildCount() == 0){ continue; } else{ buildSymTable(element); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean checkTypes() {\n\t\treturn false;\n\t}", "public IncorrectType58119e() {\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "protected void typeMismatch(Object obj) {\n\t\ttypeMismatch(obj.toString());\n\t}", "@Override\n\t\tpubl...
[ "0.66470647", "0.5934906", "0.5759758", "0.5716968", "0.5687582", "0.56834775", "0.5666139", "0.5661536", "0.5653797", "0.5653797", "0.5653797", "0.56402636", "0.56402636", "0.56402636", "0.56402636", "0.56402636", "0.56402636", "0.56402636", "0.56402636", "0.56402636", "0.56...
0.0
-1
if function call is called in an assign statement evalExpression of the call will be evaluated by this function
public static Temp evalFunction(CommonTree tree){ LinkedList<Temp> temps = new LinkedList<Temp>(); for (int k=1; k<tree.getChildCount(); k++){ //System.out.println("SDFJSDF:LJSDL:FJSDF"); temps.add(evalExpression((CommonTree) tree.getChild(k))); // ircode.add(new ThreeOpCode()) } ircode.add(new ThreeOpCode("PUSH")); // push the parameters on to the stack for (int i=1; i < tree.getChildCount(); i++){ ircode.add(new ThreeOpCode("PUSH", temps.get(i-1).name)); } // add JSR command ircode.add(new ThreeOpCode("JSR", tree.getChild(0).getText())); // pop parameters off the stack for (int i=1; i < tree.getChildCount(); i++){ ircode.add(new ThreeOpCode("POP")); } // create temperary for return value Temp temp = new Temp(temperaryNum++,tree.getType(),tree.getText()); // pop the return value ircode.add(new ThreeOpCode("POP", temp.name)); return temp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Stmt createAssignment(Assign expr) {\n return createEval(expr);\n }", "@Override\n public void visitAssignment(AssignmentExpression assignmentExpression) {\n assignmentExpression.interpret(context);\n }", "public Object eval (Object expression);", "assign_op getAssign_op();", ...
[ "0.66597915", "0.6601614", "0.64134353", "0.63977915", "0.6353314", "0.6339369", "0.63178325", "0.62484974", "0.6240417", "0.62340975", "0.6197924", "0.6174489", "0.61726516", "0.61318994", "0.6089252", "0.6086018", "0.60633856", "0.6038492", "0.6034738", "0.6002157", "0.5994...
0.0
-1
Recursive function to evaluate an expression, returns temporary variable
public static Temp evalExpression(CommonTree tree){ // leaf node, int/float/id if (tree.getChildCount() == 0){ Temp temp = new Temp(temperaryNum++,tree.getType(),tree.getText()); if (tree.getType() == LittleParser.INTLITERAL){ ircode.add(new ThreeOpCode("STOREI",tree.getText(),temp.getName())); } else if(tree.getType() == LittleParser.FLOATLITERAL){ ircode.add(new ThreeOpCode("STOREF",tree.getText(),temp.getName())); } else{ // look up the variable in the symbol table to set type, use var_name instead of $Tx and recycle $Tx temp.setType(allTables.lookupType(temp.getValue().trim())); temp.setName(tree.getText()); temperaryNum--; } return temp; } // Not a leaf node, evaluate children expressions else{ // test for function call if (tree.getType() == LittleParser.FUNC_CALL){ // add IR for evaluating the function and return temperary for return value // after it has been popped off the stack return evalFunction(tree); } // if (tree.getChild(0).getChildCount() == 0 && tree.getChild(1).getChildCount() == 0){ // if () // } Temp left = evalExpression((CommonTree) tree.getChild(0)); Temp right = evalExpression((CommonTree) tree.getChild(1)); Temp temp = new Temp(temperaryNum++,left.getType(), "EXP"); if (tree.getText().contains("+")){ // add if (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){ ircode.add(new ThreeOpCode("ADDI",left.getName(),right.getName(),temp.getName())); } else if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){ ircode.add(new ThreeOpCode("ADDR",left.getName(),right.getName(),temp.getName())); } //both parameters else if (left.getType() == -1 && right.getType() == -1){ //System.out.println(left.getName() + ": " + left.getType() + " " + right.getName() + ": " + right.getType()); // need to lookup symbol in main and then global to find type int ltype = allTables.lookupType(left.name); int rtype = allTables.lookupType(right.name); if (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){ ircode.add(new ThreeOpCode("ADDI", left.getName(),right.getName(),temp.getName())); } else{ ircode.add(new ThreeOpCode("ADDR", left.getName(),right.getName(),temp.getName())); } } else{ ircode.add(new ThreeOpCode("ADDI",left.getName(),right.getName(),temp.getName())); temp.setType(LittleParser.INTLITERAL); } } else if (tree.getText().contains("-")){ // subtract if (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){ ircode.add(new ThreeOpCode("SUBI",left.getName(),right.getName(),temp.getName())); } else if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){ ircode.add(new ThreeOpCode("SUBR",left.getName(),right.getName(),temp.getName())); } else if (left.getType() == -1 && right.getType() == -1){ //System.out.println(left.getName() + ": " + left.getType() + " " + right.getName() + ": " + right.getType()); // need to lookup symbol in main and then global to find type int ltype = allTables.lookupType(left.name); int rtype = allTables.lookupType(right.name); if (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){ ircode.add(new ThreeOpCode("SUBI", left.getName(),right.getName(),temp.getName())); } else{ ircode.add(new ThreeOpCode("SUBR", left.getName(),right.getName(),temp.getName())); } } else{ ircode.add(new ThreeOpCode("SUBI",left.getName(),right.getName(),temp.getName())); temp.setType(LittleParser.INTLITERAL); } } else if (tree.getText().contains("*")){ // multiply if (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){ //System.out.println("MULTI " + left.getName() + " " + right.getName() + " "+temp.getName()); ircode.add(new ThreeOpCode("MULI",left.getName(),right.getName(),temp.getName())); } else if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){ //System.out.println("MULTF " + left.getName() + " " + right.getName() + " "+temp.getName()); ircode.add(new ThreeOpCode("MULR",left.getName(),right.getName(),temp.getName())); } else if (left.getType() == -1 && right.getType() == -1){ //System.out.println(left.getName() + ": " + left.getType() + " " + right.getName() + ": " + right.getType()); // need to lookup symbol in main and then global to find type int ltype = allTables.lookupType(left.name); int rtype = allTables.lookupType(right.name); if (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){ ircode.add(new ThreeOpCode("MULI", left.getName(),right.getName(),temp.getName())); } else{ ircode.add(new ThreeOpCode("MULR", left.getName(),right.getName(),temp.getName())); } } else{ //System.out.println("MULTI " + left.getName() + " " + right.getName() + " "+temp.getName()); ircode.add(new ThreeOpCode("MULI",left.getName(),right.getName(),temp.getName())); temp.setType(LittleParser.INTLITERAL); } } else{ // divide if (right.getType() == LittleParser.INTLITERAL && left.getType() == LittleParser.FLOATLITERAL){ //System.out.println("DIVI " + left.getName() + " " + right.getName() + " "+temp.getName()); ircode.add(new ThreeOpCode("DIVI",left.getName(),right.getName(),temp.getName())); } else if (right.getType() == LittleParser.FLOATLITERAL || left.getType() == LittleParser.FLOATLITERAL){ //System.out.println("DIVF " + left.getName() + " " + right.getName() + " "+temp.getName()); ircode.add(new ThreeOpCode("DIVR",left.getName(),right.getName(),temp.getName())); } else if (left.getType() == -1 && right.getType() == -1){ //System.out.println(left.getName() + ": " + left.getType() + " " + right.getName() + ": " + right.getType()); // need to lookup symbol in main and then global to find type int ltype = allTables.lookupType(left.name); int rtype = allTables.lookupType(right.name); if (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){ ircode.add(new ThreeOpCode("DIVI", left.getName(),right.getName(),temp.getName())); } else{ ircode.add(new ThreeOpCode("DIVR", left.getName(),right.getName(),temp.getName())); } } else{ //System.out.println("DIVI " + left.getName() + " " + right.getName() + " "+temp.getName()); ircode.add(new ThreeOpCode("DIVI",left.getName(),right.getName(),temp.getName())); temp.setType(LittleParser.INTLITERAL); } } return temp; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "EvaluationResult evalExpression(ValueExp expr) { return evalExpression(expr, true); }", "private String evaluate(String expression) {\n String separators = \"()*+/-\";\n String result;\n // Stack for using in algorithm\n Stack<String> stackOperations = new Stack<String>();\n //...
[ "0.656998", "0.6244814", "0.61827743", "0.6167873", "0.6139244", "0.6115974", "0.6076333", "0.60615057", "0.60203105", "0.596789", "0.5943718", "0.5908623", "0.5896603", "0.5895061", "0.58337945", "0.58087856", "0.58042276", "0.5803706", "0.5797061", "0.5793098", "0.57889384"...
0.6792296
0
prints IR code generated
public static void printIRCode(){ for (int i=0; i < ircode.size(); i++){ System.out.println(";"+ircode.get(i).printCode()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void dumpIR_debug(CodeGenEnv cenv){\n try {\n\n System.out.println(\"--- dump \" + class_.name.str + \"--- IR ----\");\n System.out.println(\"struct_typeRef: \");Thread.sleep(10);\n cenv.DumpIR( struct_typeRef );\n\n\n\n System.out.println(\"\\n---constructor: \"...
[ "0.68460476", "0.64691633", "0.6388171", "0.6358826", "0.63070196", "0.6295262", "0.6255829", "0.6243328", "0.62350994", "0.62350714", "0.6229399", "0.6195792", "0.61915654", "0.6190659", "0.6168702", "0.6159977", "0.6157398", "0.6143124", "0.61399424", "0.6112302", "0.610063...
0.77098286
0
initialize Register Handler if Register Allocation is chosen
public static void generateTiny(boolean regalloc){ RegisterHandler regHand = null; if (regalloc){ regHand = new RegisterHandler(4, allTables); }else{ regHand = new RegisterHandler(0, allTables); } // int to keep track of liveness line within function int liveLine = -1; // cfgraph of the function in use CFGraph liveness = null; // linked list for tiny code generated by the Register Handler LinkedList<String> regcode = null; String fname = "Global"; regHand.setFunctionName(fname); // reserve variables SymbolTable globTable = allTables.getSymbolTable("Global"); ArrayList<Symbol> symbols = globTable.getSymbols(); for (int i=0; i<symbols.size();i++){ if (symbols.get(i).getType().equalsIgnoreCase("string")){ tinycode.add("str " + symbols.get(i).getName() + " " + symbols.get(i).getString()); }else{ tinycode.add("var "+symbols.get(i).getName()); } } // push registers on to stack tinycode.add("push"); tinycode.add("push r0"); tinycode.add("push r1"); tinycode.add("push r2"); tinycode.add("push r3"); tinycode.add("jsr main"); tinycode.add("sys halt"); // ArrayList to keep track of the temporaries in use ArrayList<String> temps = new ArrayList<String>(); // Loop through IR code generating tiny code ListIterator<ThreeOpCode> iter = ircode.listIterator(); while (iter.hasNext()){ ThreeOpCode topcode = iter.next(); //System.out.println(topcode.opcode + topcode.op1); if (topcode.opcode.equals("RET")){ // Function definition (Main only for this step) regHand.setMyRegistersFree(); tinycode.add("unlnk"); tinycode.add("ret"); //create function label // reset the liveness line variable liveLine = -1; } else if (topcode.opcode.equals("POP")){ if (topcode.op1 != null){ tinycode.add("pop r" + regHand.ensure(topcode.op1)); } else { tinycode.add("pop"); } } else if (topcode.opcode.equals("PUSH")){ if (topcode.op1 != null){ tinycode.add("push " + allTables.getTinyVar(fname, topcode.op1)); }else { tinycode.add("push"); } } // catch store instructions, map temperatires to registers or copy op else if (topcode.opcode.equals("READR") || topcode.opcode.equals("READI")){ tinycode.add("sys " + topcode.opcode.toLowerCase() + " " + allTables.getTinyVar(fname,topcode.op1)); } else if (topcode.opcode.contains("JSR")){ // jsr from main, add function calls generated by FunctionTree(main) if (!topcode.op1.contains("main")){ //System.out.println("jsr: " + topcode.op1+" "+ funcTrees.containsKey(topcode.op1.trim())); regHand.setMyRegistersFree(); ArrayList<String>fcall = funcTrees.get("main").generateTinyFunctionCall(funcTrees.get(topcode.op1), funcTrees.get(fname)); for (int i=0; i<fcall.size(); i++){ tinycode.add(fcall.get(i)); } // if (fcall.get(fcall.size()-1) != null){ // int r = regHand.ensure(funcTrees.get(topcode.op1).getReturnValue()); // //tinycode.add(fcall.get(fcall.size()-1).concat(Integer.toString(temps.size()))); // tinycode.add(fcall.get(fcall.size()-1).concat(Integer.toString(r))); // } //temps.add(funcTrees.get(topcode.op1).getReturnValue()); } }// test for conditional branch else if (topcode.opcode.equals("STOREI") || topcode.opcode.equals("STOREF")){ //only one op is memory or stack variable if (topcode.op1.contains("$")){ tinycode.add("move r" + regHand.ensure(topcode.op1) + " " + allTables.getTinyVar(fname, topcode.op2)); }else if (!topcode.op2.equals("$R")){ if (allTables.isGlobal(topcode.op2)){ tinycode.add("move " + topcode.op1 + " " + topcode.op2); }else { tinycode.add("move " + topcode.op1 + " r" + regHand.ensure(topcode.op2)); } } //System.out.println(regHand.ensure(topcode.op1)); //System.out.println(allTables.getTinyVar(fname, topcode.op2)); if (topcode.op2.equals("$R")){ if (!allTables.getTinyVar(fname, topcode.op1).equals("0") ){ tinycode.add("move " + allTables.getTinyVar(fname, topcode.op1) + " r" + regHand.ensure("$S")); }else{ tinycode.add("move " + topcode.op1 + " r" + regHand.ensure("$S")); } tinycode.add("move r" + regHand.ensure("$S") + " $" + Integer.toString(6+allTables.getNumberOfParameters(fname))); } /*String s ="move "; if (!topcode.op1.contains("$")){ LinkedList<String> scode = regHand.ensureStore(topcode.op1); if (scode != null){ // tiny code has been generated to mov op1 into register for (int h=0; h<scode.size(); h++){ tinycode.add(scode.get(h)); } } } s = s.concat("r"+Integer.toString(regHand.ensure(topcode.op1)) + " "); // if second op is a temp (already in a register) set its register to op1s value if (topcode.op2.contains("$")){ regHand.setRegisterVarName(regHand.ensure(topcode.op1), topcode.op2); s = s.concat("r"+ regHand.ensure(topcode.op2)); } else{ }*/ // if (topcode.op1.contains("$")){ //// if (temps.indexOf(topcode.op1) == -1){ // same temperary that is in use //// temps.add(topcode.op1); //// } //// s = s.concat("r"+ temps.indexOf(topcode.op1) +" ");//could mess up if regnum is currently 0 // LinkedList<String> scode = regHand.ensureStore(topcode.op1); // if (scode != null){ // // tiny code has been generated to mov op1 into register // for (int h=0; h<scode.size(); h++){ // tinycode.add(scode.get(h)); // } // } // s = s.concat("r"+Integer.toString(regHand.ensure(topcode.op1)) + " "); // } // didn't find it in symbol tables, number // else if (allTables.getTinyVar(fname,topcode.op1) == "0"){ // s = s.concat(topcode.op1 + " "); // } // else{ // string or global variable matched // LinkedList<String> scode = regHand.ensureStore(topcode.op1); // if (scode != null){ // // tiny code has been generated to mov op1 into register // for (int h=0; h<scode.size(); h++){ // tinycode.add(scode.get(h)); // } // } // s = s.concat(allTables.getTinyVar(fname,topcode.op1) + " "); // } // // op2 // if (topcode.op2.contains("$")){ // //System.out.println(topcode.op2 +"regnum: " + Integer.toString(regnum)); //// if (temps.indexOf(topcode.op2) == -1){ // same temperary that is in use //// temps.add(topcode.op2); //// } //// s = s.concat("r"+ temps.indexOf(topcode.op2)); // LinkedList<String> scode = regHand.ensureStore(topcode.op2); // if (scode != null){ // // tiny code has been generated to mov op1 into register // for (int h=0; h<scode.size(); h++){ // tinycode.add(scode.get(h)); // } // } // s = s.concat("r"+Integer.toString(regHand.ensure(topcode.op2))); // }else{ //variable // LinkedList<String> scode = regHand.ensureStore(topcode.op2); // if (scode != null){ // // tiny code has been generated to mov op1 into register // for (int h=0; h<scode.size(); h++){ // tinycode.add(scode.get(h)); // } // } // s = s.concat("r"+Integer.toString(regHand.ensure(topcode.op2))); // // s = s.concat(allTables.getTinyVar(fname,topcode.op2)); // } } // Catch Write statements else if (topcode.opcode.equals("WRITEI") || topcode.opcode.equals("WRITER")|| topcode.opcode.equals("WRITES")){ tinycode.add("sys " + topcode.opcode.toLowerCase() + " " + allTables.getTinyVar(fname,topcode.op1)); //System.out.println(topcode.op1 + ": "+allTables.getTinyVar(fname,topcode.op1)); }// catch add statements else if (topcode.opcode.contains("ADD") || topcode.opcode.contains("MUL") || topcode.opcode.contains("DIV") || topcode.opcode.contains("SUB")){ // where it was boolean temp1 = topcode.op1.contains("$"); boolean temp2 = topcode.op2.contains("$"); String s = ""; //reg s = topcode.opcode.toLowerCase() + " r" + Integer.toString(regHand.ensure(topcode.op2)) + " r" + Integer.toString(regHand.ensure(topcode.op1)); tinycode.add(s); tinycode.add("move r" + Integer.toString(regHand.ensure(topcode.op1)) + " r" + Integer.toString(regHand.ensure(topcode.op3))); } else if (topcode.opcode.contains("LABEL")){ tinycode.add("label " + topcode.op1); } else if (topcode.opcode.contains("LINK")){ fname = ircode.get(iter.previousIndex()-1).op1; regHand.setFunctionName(fname); tinycode.add("link " + Integer.toString(funcTrees.get(fname).getLink())); //set liveness for the new function // search for function in CFGraphs and set liveness to that function's for (int g = 0; g < cfgraphs.size(); g++){ // found it, set liveness to match the function's liveness if (cfgraphs.get(g).getFname().equals(fname)){ liveness = cfgraphs.get(g); } } }// test for conditional branch else if (topcode.opcode.contains("NE") || topcode.opcode.contains("EQ") || topcode.opcode.contains("GE") || topcode.opcode.contains("LE")){ // compare incremented variable (op1) to the register of op2 tinycode.add("cmpi " + allTables.getTinyVar(fname,topcode.op1) + " r" + regHand.ensure(topcode.op2)); tinycode.add("j".concat(topcode.opcode.toLowerCase()) + " label".concat(topcode.op3.substring(5))); } //Allen TODO unconditional jumps weren't accounted for, but they directly translate else if (topcode.opcode.contains("JUMP")){ tinycode.add("jmp " + topcode.op1); } // if register allocation is enabled update temps to reflect variables in registers if (regalloc && (liveLine > -1) && (liveLine < liveness.getSize())){ // process the next instruction, if register allocation code is needed add to tinycode //System.out.println(topcode.opcode + " "+ircode.get(iter.nextIndex()).opcode); regcode = regHand.processThreeOpCode(ircode.get(iter.nextIndex()),liveness.getLiveness(liveLine)); //System.out.println("regcode: " + regcode); // add the register code to tinycode list, add the return value to list of vals in registers if (regcode != null){ for (int t=0; t<regcode.size()-1; t++){ tinycode.add(regcode.get(t)); } // index in temps is equal to the register the value is assigned to, put the return // in the proper place in temps //temps.set(Integer.parseInt(regcode.get(regcode.size()-1)), ircode.get(iter.nextIndex()).op3); } // temps.clear(); // temps = regHand.getTemps();z } liveLine++; } // add the final return code for the program tinycode.add("unlnk"); tinycode.add("ret"); tinycode.add("end"); //tinycode.add(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void beginRegister() {}", "protected void __register()\n {\n }", "protected void __register()\n {\n }", "public abstract void register();", "private void initRegister() {\n this.register = new TreeMap<>();\n register.put(BillDenomination.ONE, ZERO);\n register.put(Bi...
[ "0.6653703", "0.6491778", "0.6491778", "0.62164897", "0.6213487", "0.62034404", "0.61894315", "0.61554587", "0.61485845", "0.6138956", "0.61273265", "0.60545635", "0.6037054", "0.59940904", "0.5875373", "0.5874374", "0.58471674", "0.58308995", "0.58211154", "0.58199495", "0.5...
0.0
-1
Tree DOTt = tree;
public static void graphTree(CommonTree tree){ DOTTreeGenerator gen = new DOTTreeGenerator(); StringTemplate st = gen.toDOT(tree); String type = "jpg"; GraphViz gv = new GraphViz(); gv.addln(st.toString()); System.out.println("Before"); ImageIcon img = new ImageIcon(gv.getGraph(gv.getDotSource(), type)); System.out.println("After"); int newHeight = 775, newWidth = 1255; /* This is for writing the image to disk*/ File out = new File("graph." + type); // Linux gv.writeGraphToFile( gv.getGraph( gv.getDotSource(), type ), out ); // if (iw > newWidth){ // newHeight = newWidth * ih/iw ; // BufferedImage resizedImg = new BufferedImage(newWidth, newHeight, BufferedImage.TYPE_INT_RGB); // Graphics2D g2 = resizedImg.createGraphics(); // // g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); // g2.drawImage(img.getImage(), 0, 0, newWidth, newHeight, null); // g2.dispose(); // img = new ImageIcon(resizedImg); // } JFrame jf = new JFrame("Abstract Syntax Tree"); jf.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); JLabel photographLabel = new JLabel(); photographLabel.setHorizontalAlignment(JLabel.CENTER); //private Image getScaledImage(Image srcImg, int w, int h){ photographLabel.setIcon(img); JScrollPane scrollPane = new JScrollPane(photographLabel); jf.add(scrollPane, BorderLayout.CENTER); jf.pack(); jf.setSize(newWidth+50, newHeight+50); jf.setResizable(true); jf.setVisible(true); /*end graphical display*/ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tree(){\n root = null;\n }", "TreeNode getTreeNode();", "public void setTree(Tree tree) {\n this.tree = tree;\n }", "public void setTree(MyTree t) {\r\n\t\ttree = t;\r\n\t}", "public MyTree getTree() {\r\n\t\treturn tree;\r\n\t}", "public TernaryTree() {\n root = null;\n\n ...
[ "0.651521", "0.6499429", "0.64721835", "0.63713735", "0.6362542", "0.6309546", "0.62647754", "0.62567335", "0.615262", "0.6075941", "0.60747695", "0.6059355", "0.60488737", "0.6046209", "0.5963573", "0.596295", "0.59573513", "0.59201866", "0.59026235", "0.5891897", "0.5882373...
0.0
-1
get the current GoogleAPIClient
private GoogleApiClient getGoogleApiClient() { if (mGoogleApiClient == null) { //create location service so that we can interact with Geofence mGoogleApiClient = new GoogleApiClient.Builder(mContext) .addApi(LocationServices.API) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .build(); } return mGoogleApiClient; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GoogleApiClient getGoogleApiCLient()\n {\n return googleApiClient;\n }", "protected GoogleApiClient getGoogleApiClient() {\n return mClient;\n }", "private static GoogleApiClient getClient(@NonNull Context context) {\n final String serverClientId = context.getString...
[ "0.75629157", "0.71220213", "0.7038056", "0.69500583", "0.6790438", "0.67715675", "0.67407805", "0.67407805", "0.67235273", "0.65521973", "0.64913034", "0.6376916", "0.6361682", "0.6328295", "0.63215935", "0.63215935", "0.6309933", "0.6304218", "0.6276222", "0.6276222", "0.62...
0.61631095
21
connect to the service
private void requestConnection() { getGoogleApiClient().connect(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void connect() { \t\n \tbindService(IChatService.class, apiConnection);\n }", "public void connect()\n {\n \tLog.d(TAG, \"connect\");\n \t\n \tif(!this.isConnected ) {\n mContext.bindService(new Intent(\"com.google.tungsten.LedService\"), mServiceConnection, \n \t\t...
[ "0.7830792", "0.7178796", "0.7152234", "0.70460075", "0.6940854", "0.69137084", "0.69137084", "0.69137084", "0.6884285", "0.68726873", "0.68637013", "0.6849152", "0.68292826", "0.67931557", "0.6641605", "0.65910226", "0.6494143", "0.6486926", "0.6444951", "0.6434864", "0.6408...
0.0
-1
whenever we add a geofence, we need to connect to the server and add geofence..
public void addGeofences(List<Geofence> geofences) throws UnsupportedOperationException { //save the geofences mGeofenceList = (ArrayList<Geofence>) geofences; // If a request is not already in progress if (!mAddingGeofenceInProgress) { // Toggle the flag and continue to request a connection to Location Service mAddingGeofenceInProgress = true; // Request a connection to Location Services requestConnection(); // If a request is in progress } else { // Throw an exception and stop the request throw new UnsupportedOperationException(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addGeofence(GeofencingRequest request) {\n\n T.t(TripMapsActivity.this, \"addGeofence\");\n if (checkPermission())\n LocationServices.GeofencingApi.addGeofences(\n googleApiClient,\n request,\n createGeofencePendingInten...
[ "0.71093076", "0.69676983", "0.6831948", "0.6789556", "0.667242", "0.6602345", "0.6595952", "0.6484569", "0.6301139", "0.62935245", "0.6228382", "0.61296284", "0.60874766", "0.6083096", "0.60516536", "0.59599656", "0.58913594", "0.5865364", "0.5820707", "0.5799199", "0.579524...
0.67051905
4
read the query from the user into queryString variable call the parseQuery method and pass the queryString variable as a parameter
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"null\")\n\tpublic QueryParameter parseQuery(String queryString) {\n\t\t\n/*\n\t\t * extract the name of the file from the query. File name can be found after the\n\t\t * \"from\" clause.\n\t\t */\n\n\t\t/*\n\t\t * extract the order by fields from the query string. Please note that we will\n\t\t...
[ "0.75526565", "0.7368085", "0.7297899", "0.692372", "0.692372", "0.6773376", "0.6652048", "0.65748405", "0.65305316", "0.65305316", "0.6473788", "0.6467477", "0.6433598", "0.64328516", "0.6261274", "0.6260642", "0.61342627", "0.61199945", "0.60962117", "0.6066988", "0.6066742...
0.0
-1
/ we are creating multiple methods, each of them are responsible for extracting a specific part of the query. However, the problem statement requires us to print all elements of the parsed queries. Hence, to reduce the complexity, we are using the parseQuery() method. From inside this method, we are calling all the methods together, so that we can call this method only from main() method to print the entire output in console
public void parseQuery(String queryString) { // call the methods getSplitStrings(queryString); getFile(queryString); getBaseQuery(queryString); getConditionsPartQuery(queryString); getConditions(queryString); getLogicalOperators(queryString); getFields(queryString); getOrderByFields(queryString); getGroupByFields(queryString); getAggregateFunctions(queryString); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Tuple<String,String> extractQueryAndQueryExecution(String query){\n\t\tString[] elements = query.split(\"--\");\n\t\treturn new Tuple<String,String>(elements[0].trim(), elements[1].trim());\n\t}", "public static void printQuery(String pSPARQLPath, String pServerURL) {\n\t\tSystem.out.println(\"Methode Qu...
[ "0.6225192", "0.61957765", "0.6178199", "0.60419714", "0.6030711", "0.59584826", "0.59260094", "0.59198457", "0.58025664", "0.5749155", "0.57471734", "0.5739476", "0.5715343", "0.56911486", "0.5656975", "0.5641728", "0.56277883", "0.55960107", "0.55788165", "0.5547397", "0.55...
0.62076294
1
TODO Autogenerated method stub
@Override public int existseconds() { return seconds; }
{ "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 String getPrefix() { return getClass().getSimpleName()+":"+prefix; }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
new Thread(new PrintThread1()).start(); new Thread(new PrintThread2()).start();
public static void main(String[] args) { ExecutorService executorService = Executors.newCachedThreadPool(); executorService.execute(() -> { while (count.get() <= 100) { if(flag) { System.out.println("偶数" + count.getAndIncrement()); flag = false; } } }); executorService.execute(() -> { while (count.get() <= 100) { if(!flag) { System.out.println("奇数" + count.getAndIncrement()); flag = true; } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n PrintNumber printNumber = new PrintNumber();\n\n Thread printThread1 = new Thread(printNumber);\n\n Thread printThread2 = new Thread(printNumber);\n\n printThread1.start();\n\n printThread2.start();\n\n }", "public static void mai...
[ "0.7522121", "0.7314232", "0.69284576", "0.66876376", "0.6670946", "0.6657549", "0.6625392", "0.6610653", "0.65735507", "0.648825", "0.646298", "0.646024", "0.64527863", "0.64520943", "0.64518297", "0.6447622", "0.64401644", "0.6410612", "0.63487816", "0.6312904", "0.62956715...
0.0
-1
this function find the allocation place for argument or temporary
Unit findPlace() { if (!availableRegister.isEmpty()) { Unit result = availableRegister.firstElement(); availableRegister.remove(0); return result; } else { int memId = localPos; localPos++; return new UnitMemory(new String("local[" + String.valueOf(memId) + "]"), memId); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Arginfo visit(AllocationExpression n, Arginfo argu) {\n Arginfo _ret=null;\n argu.isreq=0;\n \n int a=prectr++;\n int b=prectr++;\n int c=prectr++;\n int d=prectr++;\n int e=prectr++;\n \n String classname=n.f1.f0.tokenImage;\n HashMap<String,Integer> m...
[ "0.61748487", "0.582936", "0.5749213", "0.54797876", "0.5446843", "0.54367995", "0.5387506", "0.532964", "0.5275198", "0.5251976", "0.5251976", "0.5239962", "0.5223905", "0.52212477", "0.51540184", "0.51404405", "0.5042118", "0.4991924", "0.4945289", "0.4931171", "0.4912354",...
0.56577927
3
if the temporary is existed
public boolean temporaryExist(String temporary) { return temporaryTable.containsKey(temporary); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean isExist() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean isExisting() {\n\t\treturn false;\r\n\t}", "boolean isComponentTempRecordExist(Record inputRecord);", "@SuppressWarnings(\"unchecked\")\n public boolean stillExists(Object obj) {\n \treturn true;\n }...
[ "0.6391675", "0.63325715", "0.63324404", "0.62328386", "0.62173814", "0.6198806", "0.6190232", "0.6190232", "0.611831", "0.6048545", "0.59992605", "0.59866786", "0.5970729", "0.59478915", "0.5881922", "0.58348036", "0.57976145", "0.5750552", "0.5750552", "0.5738876", "0.57363...
0.72398436
0
=========================================================== Constructors =========================================================== This generates a pipeline to output a module's AST as a string.
public RawASTOutputPipeline(CompileEnvironment ce, MathSymbolTableBuilder symbolTable) { super(ce, symbolTable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void genAst();", "public Module build() {\n return new Module(moduleCode, moduleTitle, academicYear, semester,\n students, tags);\n }", "public Node program() {\r\n\r\n this.CheckError(\"PROGRAM\");\r\n\r\n\r\n Node n_program = new Node(\"program\");\r\n n_program....
[ "0.5876741", "0.5491563", "0.53905845", "0.5385771", "0.5374244", "0.5367755", "0.5352901", "0.5336392", "0.5324863", "0.5303741", "0.5265849", "0.5261239", "0.52549976", "0.52339953", "0.52327883", "0.5198612", "0.51882714", "0.51463383", "0.5146307", "0.51113707", "0.500080...
0.5509059
1
Create the item with a quantity
public ItemQuantity(Item item, int quantity) { this.item = item; this.quantity = quantity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Quantity createQuantity();", "void createItem (String name, String description, double price);", "@Override\r\n public void ItemQuantity(int quantity) {\n this.quantity = quantity;\r\n }", "@Override\n\tpublic Item create() {\n\t\tLOGGER.info(\"Shoe Name\");\n\t\tString item_name = util.getString();\n\t...
[ "0.78892535", "0.7436758", "0.7207074", "0.70960045", "0.7060662", "0.6978814", "0.6978814", "0.69748265", "0.6967905", "0.69084734", "0.69084734", "0.69084734", "0.68633974", "0.6855212", "0.68537956", "0.684045", "0.6820315", "0.6820315", "0.68108433", "0.6809594", "0.67916...
0.74239784
2
Get the quantity of the item
public int getQuantity() { return quantity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getQuantity();", "int getQuantity();", "public int getItemQty() {\n return itemQty;\n }", "long getQuantity();", "long getQuantity();", "public int getQuantity();", "public Integer getQuantity() {\r\n return this.quantity;\r\n }", "public int getQuantity() \n\t{\n\t\t...
[ "0.825829", "0.8219336", "0.8216912", "0.81601554", "0.81601554", "0.81390417", "0.81133884", "0.8109856", "0.80921173", "0.8081334", "0.80770123", "0.80500466", "0.80489683", "0.80489683", "0.8019073", "0.80162674", "0.80143", "0.80080307", "0.80080307", "0.80080307", "0.800...
0.79369605
34
boolean doubleCastSucces = false;
private boolean checkIfObjectIsDecimal(Object[] values) { for (Object o : values) { if (o != null) { try { Double.parseDouble(o.toString()); // return true; } catch (NumberFormatException e) { // it's text :) return false; } } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getIsBcast();", "public boolean realAsDouble() {\n return false;\n }", "public boolean isDouble();", "public boolean isOkToConvert()\n {\n return _okToConvert;\n }", "public boolean getCastling() {\n return this.castling;\n }", "@ZenCodeType.Caster\n @ZenCodeType.Method\...
[ "0.605174", "0.6004284", "0.59080803", "0.58850986", "0.57634693", "0.57324815", "0.57162774", "0.5701737", "0.565934", "0.5654111", "0.5643705", "0.56370103", "0.5636743", "0.56209046", "0.5552445", "0.5549967", "0.5549967", "0.5549967", "0.5504154", "0.55008924", "0.5482481...
0.0
-1
Creates a new PlacesAutocompleteTextView with the provided API key and the default history file
public PlacesAutocompleteTextView(@NonNull final Context context, @NonNull final String googleApiKey) { super(context); init(context, null, R.attr.pacv_placesAutoCompleteTextViewStyle, R.style.PACV_Widget_PlacesAutoCompleteTextView, googleApiKey, context.getString(R.string.pacv_default_history_file_name)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PlacesAutocompleteTextView(@NonNull final Context context, @NonNull final String googleApiKey, @NonNull final String historyFileName) {\n super(context);\n\n init(context, null, R.attr.pacv_placesAutoCompleteTextViewStyle, R.style.PACV_Widget_PlacesAutoCompleteTextView, googleApiKey, historyFi...
[ "0.7505572", "0.68047243", "0.6116338", "0.59707147", "0.5961966", "0.53144413", "0.52089846", "0.5155266", "0.5146287", "0.51104957", "0.49928504", "0.49668592", "0.49513608", "0.49053794", "0.48750466", "0.48300004", "0.48119366", "0.480346", "0.47743264", "0.4771943", "0.4...
0.66973126
2
Creates a new PlacesAutocompleteTextView with the provided API key and the provided history file
public PlacesAutocompleteTextView(@NonNull final Context context, @NonNull final String googleApiKey, @NonNull final String historyFileName) { super(context); init(context, null, R.attr.pacv_placesAutoCompleteTextViewStyle, R.style.PACV_Widget_PlacesAutoCompleteTextView, googleApiKey, historyFileName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init(@NonNull final Context context, final AttributeSet attrs, final int defAttr, final int defStyle, final String googleApiKey, final String historyFileName) {\n TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.PlacesAutocompleteTextView, defAttr, defStyle);\n S...
[ "0.6522674", "0.6159893", "0.5727924", "0.5592681", "0.5472349", "0.48723558", "0.48343202", "0.48196432", "0.4789101", "0.4779874", "0.47751775", "0.46244964", "0.46077332", "0.45906076", "0.45848823", "0.45194277", "0.44978976", "0.44912153", "0.4490032", "0.4488626", "0.44...
0.76735675
0
Constructor for layout inflation
public PlacesAutocompleteTextView(final Context context, final AttributeSet attrs) { super(context, attrs); init(context, attrs, R.attr.pacv_placesAutoCompleteTextViewStyle, R.style.PACV_Widget_PlacesAutoCompleteTextView, null, context.getString(R.string.pacv_default_history_file_name)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Layout() {\n }", "public OverlayLayout() {}", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "public Object getLayoutInfo() { return _layoutInfo; }", "public Layout() {\n\n //nao precisa colocar externo, apenas referencia com a linha 0\n for...
[ "0.7471095", "0.64920384", "0.6450008", "0.62913126", "0.623959", "0.6211957", "0.615158", "0.6081251", "0.6071983", "0.60467255", "0.60035366", "0.5995476", "0.5974259", "0.5945845", "0.59099066", "0.5884194", "0.5871841", "0.5866224", "0.5827125", "0.58185697", "0.5799704",...
0.0
-1
Constructor for layout inflation
public PlacesAutocompleteTextView(final Context context, final AttributeSet attrs, final int defAttr) { super(context, attrs, defAttr); init(context, attrs, defAttr, R.style.PACV_Widget_PlacesAutoCompleteTextView, null, context.getString(R.string.pacv_default_history_file_name)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Layout() {\n }", "public OverlayLayout() {}", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "public Object getLayoutInfo() { return _layoutInfo; }", "public Layout() {\n\n //nao precisa colocar externo, apenas referencia com a linha 0\n for...
[ "0.7471095", "0.64920384", "0.6450008", "0.62913126", "0.623959", "0.6211957", "0.615158", "0.6081251", "0.6071983", "0.60467255", "0.60035366", "0.5995476", "0.5974259", "0.5945845", "0.59099066", "0.5884194", "0.5871841", "0.5866224", "0.5827125", "0.58185697", "0.5799704",...
0.0
-1
perform basic initialization of the view by fetching layout attributes and creating the api, etc.
private void init(@NonNull final Context context, final AttributeSet attrs, final int defAttr, final int defStyle, final String googleApiKey, final String historyFileName) { TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.PlacesAutocompleteTextView, defAttr, defStyle); String layoutApiKey = typedArray.getString(R.styleable.PlacesAutocompleteTextView_pacv_googleMapsApiKey); String layoutAdapterClass = typedArray.getString(R.styleable.PlacesAutocompleteTextView_pacv_adapterClass); String layoutHistoryFile = typedArray.getString(R.styleable.PlacesAutocompleteTextView_pacv_historyFile); languageCode = typedArray.getString(R.styleable.PlacesAutocompleteTextView_pacv_languageCode); countryCode = typedArray.getString(R.styleable.PlacesAutocompleteTextView_pacv_countryCode); resultType = AutocompleteResultType.fromEnum(typedArray.getInt(R.styleable.PlacesAutocompleteTextView_pacv_resultType, PlacesApi.DEFAULT_RESULT_TYPE.ordinal())); clearEnabled = typedArray.getBoolean(R.styleable.PlacesAutocompleteTextView_pacv_clearEnabled, false); typedArray.recycle(); final String finalHistoryFileName = historyFileName != null ? historyFileName : layoutHistoryFile; if (!TextUtils.isEmpty(finalHistoryFileName)) { historyManager = DefaultAutocompleteHistoryManager.fromPath(context, finalHistoryFileName); } final String finalApiKey = googleApiKey != null ? googleApiKey : layoutApiKey; if (TextUtils.isEmpty(finalApiKey)) { throw new InflateException("Did not specify googleApiKey!"); } api = new PlacesApiBuilder() .setApiClient(PlacesHttpClientResolver.PLACES_HTTP_CLIENT) .setGoogleApiKey(finalApiKey) .build(); if (languageCode != null) { api.setLanguageCode(languageCode); } if (countryCode != null) { api.setCountryCode(countryCode); } if (layoutAdapterClass != null) { adapter = adapterForClass(context, layoutAdapterClass); } else { adapter = new DefaultAutocompleteAdapter(context, api, resultType, historyManager); } super.setAdapter(adapter); super.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(final AdapterView<?> parent, final View view, final int position, final long id) { Place place = adapter.getItem(position); if (listener != null) { listener.onPlaceSelected(place); } if (historyManager != null) { historyManager.addItemToHistory(place); } } }); this.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { if (clearEnabled) { if (s != null && s.length() > 0) { showClearButton(true); } else { showClearButton(false); } } else { showClearButton(false); } } @Override public void afterTextChanged(Editable s) { } }); super.setDropDownBackgroundResource(R.drawable.pacv_popup_background_white); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void initViews();", "protected abstract void initView();", "public abstract void initViews();", "protected abstract void initializeView();", "private void initViews() {\n\n\t}", "private void viewInit() {\n }", "private void initViews() {\n\n }", "private void initView() {\n\...
[ "0.79081947", "0.7856323", "0.78396547", "0.77582365", "0.7724383", "0.770618", "0.7677563", "0.76667136", "0.7665002", "0.75606096", "0.75606096", "0.7553194", "0.75392836", "0.7531199", "0.75299096", "0.75145423", "0.74331886", "0.7379523", "0.7379523", "0.73452103", "0.734...
0.0
-1
Override the default Clear button image and add your own
public void setImgClearButton(Drawable imgClearButton) { this.imgClearButton = imgClearButton; enableClearButton(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Source(\"images/deleteButton.png\")\n @ImageOptions(flipRtl = true)\n ImageResource removeIcon();", "public void clear() {\n\t\tsetImageResource(R.drawable.barcode);\n\t\tthis.setScaleType(ScaleType.CENTER);\n\t}", "private void clearBtnMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:ev...
[ "0.69703096", "0.6643163", "0.65423733", "0.64930284", "0.6414319", "0.6377092", "0.6372593", "0.6293062", "0.62712276", "0.6258072", "0.62312096", "0.6160257", "0.612617", "0.6076799", "0.6037418", "0.6016164", "0.598814", "0.5987893", "0.59775585", "0.5943667", "0.5917551",...
0.7428202
0
Override the clear listener like what should happen when the X is pressed
public void setOnClearListener(final OnClearListener clearListener) { this.onClearListener = clearListener; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tclear();\r\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n clear();\n\n }", "void onSwipedClear();", "protected void ACTION_ON_CLEAR(ActionEvent arg0) {\n\t\ttextArea_1.setText...
[ "0.7454572", "0.7421146", "0.70146984", "0.6982818", "0.6905737", "0.67842776", "0.66701657", "0.6588089", "0.65875596", "0.65813136", "0.6580684", "0.6579089", "0.65769714", "0.6573286", "0.65561765", "0.654041", "0.65328616", "0.6514183", "0.6496575", "0.64924854", "0.64894...
0.0
-1
Show the the clear button
public void showClearButton(boolean value) { enableClearButton(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addClearButton() {\n\t\t// make the \"clear\" button\n\t\tclearButton = new JButton(\"Clear\");\n\t\tadd (clearButton, SOUTH);\n\t\tclearButton.addActionListener(this);\n\t}", "private void clearBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_clearBtnMouseClicked\n clearFiel...
[ "0.7281341", "0.7153933", "0.70720077", "0.69813", "0.69666994", "0.69527525", "0.69322324", "0.69154245", "0.6898574", "0.6844702", "0.68078226", "0.678894", "0.67814964", "0.6761605", "0.676109", "0.6759873", "0.6727138", "0.671524", "0.670989", "0.670347", "0.6686478", "...
0.7359292
0
fun way to set adapters as layout attributes
private AbstractPlacesAutocompleteAdapter adapterForClass(final Context context, final String adapterClass) { Class<AbstractPlacesAutocompleteAdapter> adapterClazz; try { adapterClazz = (Class<AbstractPlacesAutocompleteAdapter>) Class.forName(adapterClass); } catch (ClassNotFoundException e) { throw new InflateException("Unable to find class for specified adapterClass: " + adapterClass, e); } catch (ClassCastException e) { throw new InflateException(adapterClass + " must inherit from " + AbstractPlacesAutocompleteAdapter.class.getSimpleName(), e); } Constructor<AbstractPlacesAutocompleteAdapter> adapterConstructor; try { adapterConstructor = adapterClazz.getConstructor(Context.class, PlacesApi.class, AutocompleteResultType.class, AutocompleteHistoryManager.class); } catch (NoSuchMethodException e) { throw new InflateException("Unable to find valid constructor with params " + Context.class.getSimpleName() + ", " + PlacesApi.class.getSimpleName() + ", " + AutocompleteResultType.class.getSimpleName() + ", and " + AutocompleteHistoryManager.class.getSimpleName() + " for specified adapterClass: " + adapterClass, e); } try { return adapterConstructor.newInstance(context, api, resultType, historyManager); } catch (InstantiationException e) { throw new InflateException("Unable to instantiate adapter with name " + adapterClass, e); } catch (IllegalAccessException e) { throw new InflateException("Unable to instantiate adapter with name " + adapterClass, e); } catch (InvocationTargetException e) { throw new InflateException("Unable to instantiate adapter with name " + adapterClass, e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "AttributeLayout createAttributeLayout();", "public void configs() {\n adaptadorRecyclerView = new AdaptadorRecyclerView(new ArrayList<>(), this);//configuramos el adaptador; necesitamos implementar interfaz OnItemClickListener y sobreescribir sus metodos\n recyclerView.setLayoutManager(new LinearLa...
[ "0.61113524", "0.60324234", "0.6031596", "0.59027755", "0.58896136", "0.58802587", "0.58533585", "0.5800369", "0.5778607", "0.57524157", "0.5735082", "0.57000893", "0.56470674", "0.5644467", "0.5643828", "0.5643282", "0.56255645", "0.56189364", "0.560965", "0.55875504", "0.55...
0.0
-1
Controls the autocompletion feature.
public void setCompletionEnabled(boolean isEnabled) { completionEnabled = isEnabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAutoComplete(Boolean autoComplete) {\n this.autoComplete = autoComplete;\n }", "void itemSuggested(String autoCompleteString, boolean keepPopupVisible, boolean triggerAction);", "public interface AutoCompleter {\n \n /** Sets the callback that will be notified when items are sele...
[ "0.70306593", "0.6847924", "0.6774721", "0.6753833", "0.6615795", "0.6353897", "0.6310012", "0.6279028", "0.6272024", "0.61863303", "0.61665255", "0.61041147", "0.60921484", "0.59899235", "0.59872305", "0.5929467", "0.592313", "0.5893128", "0.5892637", "0.58925307", "0.586814...
0.54045516
58
Sets the location that will be used for biasing the Place results. The API will favor Places close to the set location when producing results
public void setCurrentLocation(@Nullable final Location currentLocation) { api.setCurrentLocation(currentLocation); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void setLocation(Coord location) {\n this.location = location;\n }", "public void setLocation(String location) {\n inputParameters.Location = location;\n\n }", "public void setLocation(Location location) {\n this.location = location;\n }", "public void setLocation(Location loca...
[ "0.66042936", "0.6364431", "0.6354877", "0.6354877", "0.6354877", "0.63241637", "0.62811273", "0.622308", "0.6216291", "0.6215386", "0.61839134", "0.61341417", "0.6126435", "0.61183214", "0.61132926", "0.61132926", "0.60941386", "0.6079558", "0.6079207", "0.6058788", "0.60554...
0.0
-1
Allows for enabling and disabling location biasing in the Places api.
public void setLocationBiasEnabled(boolean enabled) { api.setLocationBiasEnabled(enabled); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBias(Bias bias) {\n this.bias = bias;\n }", "public void setIsLat(Boolean boo) {\n\t this.isLat = boo;\n }", "private void initLocation() {\n BaiduLocationHolder.OPTION.setLocationMode(LocationClientOption.LocationMode.Hight_Accuracy);\n //可选,默认高精度,设置定位模式,高精度,低功耗,仅设备\n\...
[ "0.5675169", "0.54931176", "0.5462602", "0.544598", "0.53994423", "0.53609926", "0.533004", "0.5318756", "0.531835", "0.52734697", "0.5254004", "0.52373075", "0.52190137", "0.51691014", "0.5168291", "0.5168291", "0.5138707", "0.5138707", "0.5138707", "0.5106856", "0.51062965"...
0.71937555
0
Allows for passing your own implementation of the AutocompleteHistoryManager. This would be if you wanted to provide your own storage mechanism (e.g. sqlite, shared prefs, etc.) for whatever reasoning you'd want.
public void setHistoryManager(@Nullable final AutocompleteHistoryManager historyManager) { this.historyManager = historyManager; adapter.setHistoryManager(historyManager); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IHistoryDaoCallback {\n /**\n * 添加历史的结果\n *\n * @param isSuccess\n */\n void onHistoryAdd(boolean isSuccess);\n\n\n /**\n * 删除历史的结果\n *\n * @param isSuccess\n */\n void onHistoryDel(boolean isSuccess);\n\n\n /**\n * 历史数据加载的结果\n *\n * @para...
[ "0.5545034", "0.54631287", "0.545429", "0.5356335", "0.5338803", "0.5302517", "0.52600306", "0.5242101", "0.5233324", "0.52068955", "0.5032064", "0.5029497", "0.5005518", "0.500276", "0.49967915", "0.49741313", "0.49580023", "0.49488", "0.4945537", "0.49279264", "0.48997983",...
0.62591845
0
Sets the languageCode code used for autocomplete and place details calls. List of supportable codes can be seen in <a href="
public void setLanguageCode(@Nullable String languageCode) { this.languageCode = languageCode; api.setLanguageCode(this.languageCode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setCode(String code);", "public void setLanguageCode(String languageCode) {\r\n this.languageCode = languageCode;\r\n }", "public void setLangCode(String langCode) {\n\t\tthis._langCode = langCode;\n\t}", "public static void setApplicationLanguage(Context context, String code) {\n\t\tResources...
[ "0.65808374", "0.63495725", "0.63433605", "0.632507", "0.6292911", "0.62362343", "0.6219412", "0.6184326", "0.6136146", "0.612766", "0.61117387", "0.6097743", "0.60954434", "0.6071611", "0.6053196", "0.6053196", "0.6053196", "0.6053196", "0.6053196", "0.6053196", "0.5978006",...
0.6264893
5
Sets the country code used for spanning autocomplete calls. List of supportable codes can be seen in <a href="
public void setCountryCode(@Nullable String countryCode) { this.countryCode = countryCode; api.setCountryCode(this.countryCode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCountry(java.lang.CharSequence value) {\n this.country = value;\n }", "private void setCountryCode(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n countryCode_ = value;\n }", "public void setCountryCode(int value) {\r\n\t\tthis.co...
[ "0.71563077", "0.6987658", "0.6832541", "0.678715", "0.67166847", "0.67166847", "0.6642616", "0.6640724", "0.66092396", "0.65963846", "0.6575446", "0.6473659", "0.647001", "0.64633465", "0.6452269", "0.6384789", "0.6321689", "0.6316331", "0.6316331", "0.6316331", "0.6304655",...
0.6449105
15
Copied from TextInputEditText to ensure extract mode hint works
@Override public InputConnection onCreateInputConnection(EditorInfo outAttrs) { final InputConnection ic = super.onCreateInputConnection(outAttrs); if (ic != null && outAttrs.hintText == null) { // If we don't have a hint and our parent is a TextInputLayout, use it's hint for the // EditorInfo. This allows us to display a hint in 'extract mode'. ViewParent parent = getParent(); while (parent instanceof View) { if (parent instanceof TextInputLayout) { outAttrs.hintText = ((TextInputLayout) parent).getHint(); break; } parent = parent.getParent(); } } return ic; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onScreenHint(CharSequence text);", "@Override\n public boolean onTouch (View v, MotionEvent event){\n switch (event.getAction()){\n case MotionEvent.ACTION_DOWN:\n\n //Pressed. Show password\n //mEditPassw.setInputTyp...
[ "0.59350765", "0.5537549", "0.5486613", "0.54632246", "0.544785", "0.5443313", "0.5416759", "0.5349866", "0.53046083", "0.5267884", "0.52445966", "0.52415156", "0.5240768", "0.5222288", "0.5221854", "0.51986", "0.51927054", "0.51752687", "0.5153726", "0.51525027", "0.5149107"...
0.6153947
0
Recalculate the height of the figure depending to its content
public void updateBounds(){ Rectangle bounds = new Rectangle(super.getBounds()); int preferredHeight = 0; for(Object child : getChildren()){ IFigure figure = (IFigure)child; preferredHeight += figure.getPreferredSize().height; } if (preferredHeight == 0) preferredHeight = 200; bounds.setHeight(preferredHeight+20); setBounds(bounds); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getNewHeight();", "public void updateHeight() {\n Rectangle repaintBounds = getBounds();\n parent.getScene().paintImmediately(repaintBounds);\n\n // set new height compute while repainting.\n setBounds(new Rectangle(bounds));\n\n parent.getScene().repaint(repaintBounds);\n setChanged();\...
[ "0.6876335", "0.6814658", "0.6810664", "0.6776672", "0.6680424", "0.66138303", "0.66064173", "0.6600275", "0.6541871", "0.6469317", "0.6469225", "0.6368424", "0.6368424", "0.6368424", "0.6368424", "0.6368424", "0.6368424", "0.63603765", "0.63569504", "0.6354108", "0.6354108",...
0.62509125
45
protected RemoteXBeeDevice scale = null; protected RemoteXBeeDevice redSwitch = null;
public void invoke(String propsFileName) throws Exception { Properties props = getProperties(propsFileName); // new XBeeDevice(port, BAUD_RATE); // String port = props.getProperty("port"); // System.out.println("port = " + port); // System.out.println("Creating localXBee..."); // System.out.println("created local = " + this.local); List<RemoteXBeeDevice> remotes = null; try { this.local = getDevice(props); remotes = getRemotes(props); System.out.println("opened local = " + toString(this.local)); // System.out.println("Local XBee operating mode: " + localXBee.getOperatingMode()); OperatingMode requiredMode = OperatingMode.API; OperatingMode mode = this.local.getOperatingMode(); if (mode != requiredMode) { throw new RuntimeException("this.local is in " + mode + ", not in " + requiredMode); } // Obtain the remote XBee device from the XBee network. System.out.println("Getting network..."); XBeeNetwork network = this.local.getNetwork(); System.out.println("network = " + toString(network)); } catch (XBeeException e) { e.printStackTrace(); this.local.close(); System.err.println("Exception, ending: " + e.getMessage()); System.exit(1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Device() {\n isFaceUp = null;\n isFaceDown = null;\n isCloseProximity = null;\n isDark = null;\n }", "public void setSensorOff() {\n\n }", "private void initDevice() {\n device = new Device();\n device.setManufacture(new Manufacture());\n device.set...
[ "0.5674501", "0.5637098", "0.55564946", "0.5544008", "0.5465524", "0.54451", "0.54205465", "0.54027116", "0.5377526", "0.5360563", "0.534327", "0.5336925", "0.53306013", "0.53215057", "0.53169453", "0.5303584", "0.5295498", "0.52740514", "0.52740514", "0.5242148", "0.5222819"...
0.0
-1
System.out.printf "Sample from %20s = %s is %s\n" System.out.printf("Sample from %20s is %s\n" , remote.getNodeID(), remote.get64BitAddress(), toString(sample));
@Override public void ioSampleReceived(RemoteXBeeDevice remote, IOSample sample) { IOValue value = sample.getDigitalValue(line); invoke(remote, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString() {\n final StringBuilder buffer = new StringBuilder(90);\n InetAddressUtils.formatAddress(buffer, localAddress);\n buffer.append(\"<->\");\n InetAddressUtils.formatAddress(buffer, remoteAddress);\n return buffer.toString();\n }", "publi...
[ "0.6018965", "0.5902846", "0.5893768", "0.57994586", "0.5782679", "0.56222814", "0.55560654", "0.5540888", "0.55245894", "0.5512845", "0.54982513", "0.54869175", "0.54852456", "0.5446627", "0.5442683", "0.54363215", "0.5430385", "0.5413143", "0.5411553", "0.5392056", "0.53908...
0.0
-1
Abstract class for absolutely positioned panel
public UIAPanel(int width, int height, int left, int top) { this.width = width; this.height = height; this.left = left; this.top = top; this.setLayout(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void buildPanelEast() {\n\r\n }", "public void showOPanel(Point p) {\r\n \r\n \t}", "public AWolgonPanel() {\n\n\t\tthis.setMinimumSize(Main.MIN_SIZE);\n\t\tthis.setFocusable(true);\n\t\tthis.setBackground(Color.DARK_GRAY);\n\n\t\t// this zone represents the entire panel\n\t\tnew Zone(this);\n\n\t\t...
[ "0.62223387", "0.61146086", "0.6003886", "0.5991982", "0.596742", "0.5961914", "0.5900088", "0.582444", "0.5745623", "0.57194453", "0.5711384", "0.56557184", "0.5631332", "0.56216687", "0.56216687", "0.56167", "0.5610967", "0.5610967", "0.56054085", "0.5588266", "0.554879", ...
0.5484735
29
Updates the panel's size and location.
public void updateBounds() { this.setBounds(left, top, width, height); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateSize() {\n\t\tint mpVis = (csub.isMorePanelVisible()) ? 1 : 0;\n\t\tint csubAwake = (csub.isAwake()) ? 1 : 0;\n\t\t\n\t\tint height = csubAwake * (CSub.INTERFACE_PANEL_HEIGHT + mpVis * CSub.MORE_PANEL_HEIGHT);\n\t\t\n\t\tsetPreferredSize(new Dimension(csub.getWidth() - 2 * CSub.RESIZE_BORDER_WIDT...
[ "0.7301164", "0.69848543", "0.67608273", "0.67516404", "0.671935", "0.6571398", "0.65672064", "0.64789546", "0.6429007", "0.6427305", "0.6413853", "0.6324643", "0.6317703", "0.6310044", "0.6297332", "0.62910736", "0.6280076", "0.62676376", "0.6262696", "0.62593687", "0.623470...
0.6752384
3
Changes the panel's size
public void changeSize(int width, int height) { this.width = width; this.height = height; updateBounds(); updateChildren(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSize();", "void setSize(Dimension size);", "public void setSize(int newSize);", "public void setSize(int newSize);", "public void updateSize() {\n\t\tint mpVis = (csub.isMorePanelVisible()) ? 1 : 0;\n\t\tint csubAwake = (csub.isAwake()) ? 1 : 0;\n\t\t\n\t\tint height = csubAwake * (CSub.INTE...
[ "0.7713248", "0.7524674", "0.7390342", "0.7390342", "0.73049504", "0.7297247", "0.7287877", "0.72575605", "0.72056866", "0.7194667", "0.71936774", "0.7149212", "0.7099524", "0.7032055", "0.70257044", "0.7003029", "0.69927365", "0.69807076", "0.69569856", "0.69372016", "0.6922...
0.6499295
60
Changes the panel's position
public void changePosition(int width, int height) { this.left = width; this.top = height; updateBounds(); updateChildren(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setPosition(int left)\n\t{\n\t\t_mainPanel.getElement().getStyle().setLeft(left, Style.Unit.PX) ;\n\t}", "public void setNPPosition(IPanel panel, NPPos position){\n positions.put(panel, position);\n\n }", "public void resetHorizontalPanelPosition() {\n setHorizontalPan...
[ "0.7395562", "0.69749296", "0.6810663", "0.678596", "0.6751656", "0.67082906", "0.6695404", "0.6626769", "0.65750843", "0.65096045", "0.6402145", "0.6344753", "0.6344322", "0.6319681", "0.6317821", "0.63031757", "0.6281402", "0.6278042", "0.62746966", "0.62731916", "0.6255042...
0.6206439
26
Returns the panel's width
public int getPanelWidth() { return width; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPanelWidth() {\n\t\treturn this.m_panelWidth;\n\t}", "public int getWidth();", "public int getWidth();", "public int getWidth();", "public double getWidth();", "public double getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();...
[ "0.86050713", "0.7488666", "0.7488666", "0.7488666", "0.7446134", "0.7446134", "0.7412377", "0.7412377", "0.7412377", "0.7412377", "0.7412377", "0.7412377", "0.7412377", "0.7412377", "0.7412377", "0.7412377", "0.7412377", "0.7412377", "0.7412377", "0.7412377", "0.7412377", ...
0.89854383
0
Returns the panel's height
public int getPanelHeight() { return height; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPanelHeight() {\n\t\treturn this.m_panelHeight;\n\t}", "public final int getHeight() {\r\n return (int) size.y();\r\n }", "public double getHeight() {\n return getElement().getHeight();\n }", "public int getMaxPanelHeight() {\n if (!this.mKeyguardBypassController.getB...
[ "0.87397784", "0.75520915", "0.7502565", "0.7497543", "0.7464816", "0.7464816", "0.74500793", "0.7437903", "0.7394972", "0.7394972", "0.7394972", "0.7394972", "0.7394972", "0.7394972", "0.73831093", "0.73716575", "0.73716575", "0.73716575", "0.73716575", "0.73716575", "0.7371...
0.9016781
0
Returns the parent panel. Parent panel needs to be set before. Can also use JPanel's own getPanel method
@Override public UIPanel getParentPanel() { return parentPanel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Component getParentComponent() {\r\n\t\tif (parentComponent == null) {\r\n\t\t\tif (view != null)\r\n\t\t\t\tparentComponent = view.getComponent(parentComponentName);\r\n\t\t}\r\n\t\treturn parentComponent;\r\n\t}", "public JPanel getParent() {\n\t\treturn cardLayoutPanel;\n\t}", "public WidgetParent ge...
[ "0.76246506", "0.74883366", "0.7359235", "0.72566354", "0.71687627", "0.70301974", "0.6954482", "0.6915513", "0.6895365", "0.68926984", "0.68665606", "0.6844011", "0.6795978", "0.6789155", "0.673833", "0.6737217", "0.6653102", "0.66306835", "0.6615263", "0.6615263", "0.661526...
0.83163583
0
Sets the Parent and updtes the bounds
public void setParentPanel(UIPanel parent) { this.parentPanel = parent; updateBounds(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBoundsInParent(Rect bounds) {\n/* 707 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void updateBounds() {\n this.setBounds(left, top, width, height);\n }", "private void setParentBounds() {\n GraphRepresentation baseGraph = graphRepresentationFactory.g...
[ "0.6982732", "0.673993", "0.6637088", "0.6611095", "0.6475084", "0.6445817", "0.6359617", "0.6268874", "0.62309295", "0.62163514", "0.61854756", "0.6178619", "0.6165415", "0.61451447", "0.6135101", "0.6086492", "0.6056791", "0.60019386", "0.59855026", "0.5963434", "0.59374523...
0.61016035
15
Test case number: 0 /Coverage entropy=1.741249801110481
@Test(timeout = 4000) public void test00() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); fBProcedureCall0.clone(); fBProcedureCall0.addParam(0, "|_"); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.getInputParam(3884); fBProcedureCall0.mapOutParamIndexToPosition(966, true); fBProcedureCall0.clone(); fBProcedureCall0.mapOutParamIndexToPosition((-1149), true); int int0 = 191; fBProcedureCall0.getSQL(true); fBProcedureCall0.getSQL(true); fBProcedureCall0.addParam(191, "ybKk4{(bg["); boolean boolean0 = false; fBProcedureParam0.setType((-1149)); fBProcedureCall0.getInputParam(887); // Undeclared exception! fBProcedureCall0.getSQL(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.756469", "0.7488483", "0.7331934", "0.7200102", "0.717041", "0.71671057", "0.7160117", "0.7159563", "0.7129964", "0.7129082", "0.711411", "0.7112587", "0.7106111", "0.70978427", "0.7078783", "0.70185804", "0.70069146", "0.70048887", "0.69888216", "0.69862753", "0.6982817",...
0.0
-1
Test case number: 1 /Coverage entropy=1.8095479945599666
@Test(timeout = 4000) public void test01() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3659, "5"); fBProcedureParam0.setType(883); fBProcedureParam0.setType(883); fBProcedureCall0.getInputParam(883); FBProcedureParam fBProcedureParam1 = new FBProcedureParam(17, "5"); fBProcedureParam1.clone(); FBProcedureParam fBProcedureParam2 = new FBProcedureParam(17, "5"); fBProcedureParam1.setIndex(3659); fBProcedureCall0.addInputParam(fBProcedureParam2); fBProcedureParam0.setType(45); fBProcedureParam1.setType((-587)); fBProcedureParam1.setIndex(3659); fBProcedureCall0.addOutputParam(fBProcedureParam1); fBProcedureCall0.addInputParam(fBProcedureParam0); fBProcedureCall0.getOutputParam(17); fBProcedureCall0.registerOutParam(3659, (-1574)); fBProcedureCall0.addParam(17, "5"); // Undeclared exception! fBProcedureCall0.getInputParam(3659); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.7256584", "0.7133989", "0.692861", "0.6846617", "0.6824709", "0.68186903", "0.68096304", "0.67997074", "0.67970884", "0.67933476", "0.67854816", "0.6773875", "0.67435217", "0.67306185", "0.6697228", "0.66750026", "0.667012", "0.6665625", "0.6618007", "0.66155696", "0.65940...
0.0
-1
Test case number: 2 /Coverage entropy=1.6186859282647967
@Test(timeout = 4000) public void test02() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); fBProcedureCall0.addParam(0, "gZbnc2Y!%jU?C2`8"); fBProcedureCall0.getSQL(true); fBProcedureCall0.getInputParam(137); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(0, "Ouv(!}2Ulje!"); FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(0, " not set and "); fBProcedureParam1.setIndex((-1079)); fBProcedureParam0.setIndex(60); fBProcedureParam1.setIndex(1); fBProcedureParam1.setIndex(9); fBProcedureParam1.setIndex(1861); fBProcedureParam1.setIndex(137); FBProcedureCall fBProcedureCall1 = (FBProcedureCall)fBProcedureCall0.clone(); String string0 = fBProcedureCall0.getSQL(true); // // Unstable assertion: assertEquals("SELECT * FROM null(not set and, null)", string0); FBProcedureParam fBProcedureParam2 = fBProcedureCall1.getInputParam(137); // // Unstable assertion: assertNotSame(fBProcedureParam2, fBProcedureParam1); FBProcedureParam fBProcedureParam3 = fBProcedureCall0.getInputParam(1); // // Unstable assertion: assertEquals(1428, fBProcedureParam3.getType()); // // Unstable assertion: assertTrue(fBProcedureCall0.equals((Object)fBProcedureCall1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.70828366", "0.6921757", "0.67913806", "0.67738783", "0.6644644", "0.66394556", "0.66295284", "0.6587091", "0.65672946", "0.6561772", "0.65484", "0.6544126", "0.6542065", "0.6540406", "0.65383184", "0.6509957", "0.64894354", "0.6439801", "0.64364386", "0.64138705", "0.63849...
0.0
-1
Test case number: 3 /Coverage entropy=1.0609581504393426
@Test(timeout = 4000) public void test03() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); String string0 = "FgZRnc2Yp%jU?C2`8"; FBProcedureParam fBProcedureParam0 = new FBProcedureParam(40, "FgZRnc2Yp%jU?C2`8"); fBProcedureCall0.addOutputParam(fBProcedureParam0); FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(3, "FgZRnc2Yp%jU?C2`8"); fBProcedureParam1.setIndex(3); try { fBProcedureCall0.getSQL(false); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Value of parameter 3 not set and it was not registered as output parameter. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.72268236", "0.71071565", "0.6976917", "0.6847197", "0.6780914", "0.67734814", "0.6768876", "0.6767336", "0.6743019", "0.67328846", "0.6723764", "0.67123586", "0.6705845", "0.66905797", "0.66799974", "0.66714567", "0.6668955", "0.66338176", "0.6621616", "0.66175514", "0.661...
0.0
-1
Test case number: 4 /Coverage entropy=1.8762735844302758
@Test(timeout = 4000) public void test04() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureCall fBProcedureCall1 = new FBProcedureCall(); boolean boolean0 = FBProcedureCall.OLD_CALLABLE_STATEMENT_COMPATIBILITY; FBProcedureParam fBProcedureParam0 = new FBProcedureParam(); fBProcedureCall1.setName("x_l("); FBProcedureCall fBProcedureCall2 = new FBProcedureCall(); FBProcedureCall fBProcedureCall3 = new FBProcedureCall(); FBProcedureCall fBProcedureCall4 = new FBProcedureCall(); FBProcedureCall fBProcedureCall5 = (FBProcedureCall)fBProcedureCall4.clone(); FBProcedureCall fBProcedureCall6 = new FBProcedureCall(); fBProcedureCall5.clone(); fBProcedureCall4.equals(fBProcedureCall1); FBProcedureCall fBProcedureCall7 = new FBProcedureCall(); FBProcedureCall fBProcedureCall8 = (FBProcedureCall)fBProcedureCall7.clone(); fBProcedureCall8.setName("`/t"); fBProcedureParam0.setIndex((-2268)); fBProcedureParam0.setType(33); fBProcedureParam0.setType(33); fBProcedureParam0.setIndex((-1411)); fBProcedureParam0.setIndex((-1411)); fBProcedureParam0.setIndex(11); fBProcedureParam0.setIndex((-465)); fBProcedureCall4.addInputParam(fBProcedureParam0); fBProcedureParam0.setIndex((-884)); fBProcedureParam0.setIndex((-884)); fBProcedureParam0.setIndex(2); fBProcedureCall5.getOutputParam(2); // Undeclared exception! try { fBProcedureCall7.getInputParam((-381)); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // -382 // verifyException("java.util.Vector", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.73320025", "0.71774447", "0.6930283", "0.6915905", "0.6883117", "0.6835855", "0.6803631", "0.67864937", "0.6782319", "0.6762349", "0.6760566", "0.67489934", "0.67252386", "0.67251784", "0.671746", "0.6699885", "0.66956896", "0.6685708", "0.6670492", "0.66139233", "0.659916...
0.0
-1
Test case number: 5 /Coverage entropy=2.0524620908115194
@Test(timeout = 4000) public void test05() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3, "gZbnc2Y!%jU?C2`8"); fBProcedureCall0.addOutputParam(fBProcedureParam0); FBProcedureCall fBProcedureCall1 = new FBProcedureCall(); fBProcedureCall0.getSQL(true); fBProcedureCall0.getSQL(true); FBProcedureParam fBProcedureParam1 = fBProcedureCall1.getOutputParam(3); fBProcedureCall0.getOutputParam(1702); fBProcedureCall0.mapOutParamIndexToPosition(1, true); fBProcedureCall0.getSQL(true); fBProcedureParam0.setType(0); FBProcedureCall fBProcedureCall2 = new FBProcedureCall(); FBProcedureCall fBProcedureCall3 = new FBProcedureCall(); fBProcedureParam1.setIndex((-1083)); fBProcedureParam0.setType((-939)); fBProcedureParam1.setIndex(1); fBProcedureParam0.setIndex(41); fBProcedureParam0.setIndex(3); FBProcedureCall fBProcedureCall4 = new FBProcedureCall(); FBProcedureCall fBProcedureCall5 = (FBProcedureCall)fBProcedureCall1.clone(); FBProcedureCall fBProcedureCall6 = (FBProcedureCall)fBProcedureCall0.clone(); fBProcedureCall3.equals(fBProcedureCall6); fBProcedureCall0.clone(); fBProcedureCall0.mapOutParamIndexToPosition(3, false); fBProcedureCall1.getSQL(true); fBProcedureCall5.getSQL(true); // Undeclared exception! try { fBProcedureCall6.getInputParam((-939)); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // -940 // verifyException("java.util.Vector", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.71648484", "0.7008692", "0.6993446", "0.6864804", "0.68047744", "0.6799332", "0.66903025", "0.6682153", "0.66390276", "0.66306424", "0.6628969", "0.65970975", "0.65897113", "0.6575154", "0.6546383", "0.654392", "0.65351963", "0.65307546", "0.65293753", "0.64882207", "0.647...
0.0
-1
Test case number: 6 /Coverage entropy=1.7964106794082995
@Test(timeout = 4000) public void test06() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(0, "pv$d5I"); fBProcedureCall0.addOutputParam(fBProcedureParam0); FBProcedureCall fBProcedureCall1 = new FBProcedureCall(); fBProcedureCall0.getSQL(false); fBProcedureCall0.getSQL(false); int int0 = (-163); fBProcedureCall1.getOutputParam((-163)); fBProcedureCall0.getOutputParam((-1)); fBProcedureCall1.mapOutParamIndexToPosition((-163), true); fBProcedureCall1.getSQL(false); FBProcedureCall fBProcedureCall2 = new FBProcedureCall(); FBProcedureCall fBProcedureCall3 = new FBProcedureCall(); FBProcedureCall fBProcedureCall4 = new FBProcedureCall(); // Undeclared exception! try { fBProcedureCall4.getInputParam((-291)); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // -292 // verifyException("java.util.Vector", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.74171954", "0.72319865", "0.70222604", "0.69443715", "0.69402987", "0.69255865", "0.68817836", "0.6862787", "0.6846851", "0.6822493", "0.6821813", "0.6809514", "0.6807141", "0.6787549", "0.6780387", "0.6775995", "0.6775344", "0.67467016", "0.67419714", "0.6686276", "0.6663...
0.0
-1
Test case number: 7 /Coverage entropy=1.7558847487169413
@Test(timeout = 4000) public void test07() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3674, "sh"); FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(3674, "sh"); fBProcedureParam0.setType(3674); fBProcedureParam0.setIndex(1); fBProcedureParam0.setType((-587)); fBProcedureParam1.setIndex(2); fBProcedureCall0.addOutputParam(fBProcedureParam0); fBProcedureCall0.addInputParam(fBProcedureParam0); fBProcedureCall0.getOutputParam(1); // Undeclared exception! fBProcedureCall0.registerOutParam(3674, (-1587)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.73587406", "0.71982956", "0.705016", "0.69375086", "0.69193333", "0.69055635", "0.68861204", "0.6831944", "0.68226177", "0.68090373", "0.6808212", "0.6773656", "0.6762201", "0.6759678", "0.6756089", "0.6754245", "0.6737561", "0.6723601", "0.6693418", "0.66920245", "0.66504...
0.0
-1
Test case number: 8 /Coverage entropy=2.141963331773656
@Test(timeout = 4000) public void test08() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); fBProcedureCall0.getSQL(true); fBProcedureCall0.getSQL(true); int int0 = 2696; FBProcedureCall fBProcedureCall1 = (FBProcedureCall)fBProcedureCall0.clone(); fBProcedureCall0.setName("SELECT * FROM null"); fBProcedureCall0.getInputParam(2696); fBProcedureCall0.getInputParams(); fBProcedureCall0.getInputParam(887); fBProcedureCall0.getOutputParams(); fBProcedureCall1.getOutputParams(); fBProcedureCall0.mapOutParamIndexToPosition(2696, true); FBProcedureCall fBProcedureCall2 = new FBProcedureCall(); fBProcedureCall2.mapOutParamIndexToPosition(30, true); FBProcedureCall fBProcedureCall3 = (FBProcedureCall)fBProcedureCall2.clone(); fBProcedureCall0.equals(fBProcedureCall3); try { fBProcedureCall2.mapOutParamIndexToPosition(2696, false); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Specified parameter does not exist. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.7274894", "0.71479666", "0.6944117", "0.68381035", "0.68241566", "0.68107486", "0.6801239", "0.6799317", "0.67780787", "0.6772734", "0.6728505", "0.6725915", "0.6721389", "0.67147994", "0.67137265", "0.6709324", "0.6708531", "0.66672003", "0.6628954", "0.65778893", "0.6558...
0.0
-1
Test case number: 9 /Coverage entropy=0.9184277849930976
@Test(timeout = 4000) public void test09() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); int int0 = 0; String string0 = "sh\\"; int int1 = 3674; fBProcedureCall0.addParam(3674, "sh"); fBProcedureCall0.addParam(3674, "sh"); FBProcedureCall fBProcedureCall1 = (FBProcedureCall)fBProcedureCall0.clone(); fBProcedureCall1.clone(); // Undeclared exception! fBProcedureCall0.clone(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.7271951", "0.7151265", "0.6904689", "0.68190014", "0.6773832", "0.67499965", "0.6733397", "0.6728575", "0.6720711", "0.6714496", "0.66991115", "0.6673672", "0.66591424", "0.6657907", "0.66209334", "0.66093224", "0.6587975", "0.6575196", "0.65674126", "0.65630805", "0.65428...
0.0
-1
Test case number: 10 /Coverage entropy=0.9792376509951506
@Test(timeout = 4000) public void test10() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3, "gZbnc2Y!%jU?C2`8"); fBProcedureCall0.addOutputParam(fBProcedureParam0); fBProcedureCall0.getSQL(true); int int0 = 18; fBProcedureCall0.addParam(18, "gZbnc2Y!%jU?C2`8"); fBProcedureCall0.addParam(3, "5"); // Undeclared exception! try { fBProcedureCall0.getSQL(true); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // Array index out of range: 18 // verifyException("java.util.Vector", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.73620105", "0.72327805", "0.7013115", "0.69190717", "0.691176", "0.69003046", "0.6888397", "0.68306464", "0.68105716", "0.67892057", "0.6785361", "0.67778575", "0.6744679", "0.67107564", "0.66951853", "0.66720545", "0.6649133", "0.662893", "0.66106117", "0.6607842", "0.660...
0.0
-1
Test case number: 11 /Coverage entropy=1.8222296990758422
@Test(timeout = 4000) public void test11() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3, "gZ'bnc2Y!%jU?C2`8"); fBProcedureCall0.addOutputParam(fBProcedureParam0); fBProcedureCall0.getSQL(true); fBProcedureParam0.setValue("SELECT * FROM null(gZ'bnc2Y!%jU?C2`8)"); FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(3, "SELECT * FROM null(gZ'bnc2Y!%jU?C2`8)"); Object object0 = new Object(); fBProcedureParam1.setValue(object0); fBProcedureParam0.setIndex((-2196)); fBProcedureParam1.setIndex((-2196)); fBProcedureParam0.setIndex((-3845)); fBProcedureParam1.setIndex(3); fBProcedureParam0.setType((-2448)); fBProcedureParam0.setIndex((-2196)); fBProcedureParam0.setIndex(1238); fBProcedureParam1.setIndex((-2196)); fBProcedureCall0.registerOutParam(1238, (-4177984)); Object object1 = new Object(); fBProcedureCall0.addOutputParam(fBProcedureParam0); fBProcedureParam0.setIndex((-2954)); assertEquals((-4177984), fBProcedureParam0.getType()); fBProcedureParam1.setIndex((-4177984)); FBProcedureParam fBProcedureParam2 = new FBProcedureParam(); fBProcedureParam2.setIndex((-1441)); FBProcedureParam fBProcedureParam3 = fBProcedureCall0.getOutputParam((-2954)); assertEquals((-4177984), fBProcedureParam3.getType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.72874135", "0.7195678", "0.68919253", "0.6833441", "0.6829216", "0.6824316", "0.6813987", "0.6739156", "0.6730513", "0.6724696", "0.6714322", "0.67143154", "0.6686991", "0.66310585", "0.66291857", "0.6622091", "0.6619624", "0.66022927", "0.66022646", "0.6571491", "0.656420...
0.0
-1
Test case number: 12 /Coverage entropy=1.7910409801239002
@Test(timeout = 4000) public void test12() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = new FBProcedureParam(); fBProcedureCall0.getInputParam(887); int int0 = (-529); fBProcedureParam0.setType((-342)); fBProcedureParam0.setIndex((-342)); fBProcedureCall0.addOutputParam(fBProcedureParam0); fBProcedureParam0.clone(); fBProcedureParam0.setType((-529)); fBProcedureCall0.addOutputParam(fBProcedureParam0); fBProcedureParam0.setType((-342)); fBProcedureCall0.getOutputParams(); fBProcedureCall0.addOutputParam(fBProcedureParam0); fBProcedureCall0.getOutputParams(); fBProcedureCall0.clone(); int int1 = (-2815); fBProcedureParam0.setIndex((-2322)); fBProcedureCall0.addInputParam(fBProcedureParam0); // Undeclared exception! try { fBProcedureCall0.registerOutParam((-2815), 0); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // -2816 // verifyException("java.util.Vector", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.72363645", "0.7148248", "0.6901195", "0.68331647", "0.6828352", "0.6797595", "0.67913336", "0.6774121", "0.6752768", "0.67386144", "0.67326635", "0.6672143", "0.66714543", "0.66672015", "0.6644832", "0.6627734", "0.6618712", "0.660517", "0.66010255", "0.6586688", "0.656326...
0.0
-1
Test case number: 13 /Coverage entropy=1.9261846051086646
@Test(timeout = 4000) public void test13() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3, "gZbnc2Y!%jU?C2`8"); fBProcedureCall0.addOutputParam(fBProcedureParam0); FBProcedureCall fBProcedureCall1 = new FBProcedureCall(); fBProcedureCall0.getSQL(true); fBProcedureCall0.getSQL(true); fBProcedureCall1.getOutputParam(3); fBProcedureCall0.getOutputParam(1702); fBProcedureCall0.mapOutParamIndexToPosition((-1552), true); fBProcedureCall0.getSQL(true); FBProcedureCall fBProcedureCall2 = new FBProcedureCall(); FBProcedureCall fBProcedureCall3 = new FBProcedureCall(); FBProcedureCall fBProcedureCall4 = new FBProcedureCall(); fBProcedureCall3.getInputParam(1702); FBProcedureCall fBProcedureCall5 = new FBProcedureCall(); fBProcedureCall0.addParam(1388, "sel"); FBProcedureCall fBProcedureCall6 = new FBProcedureCall(); try { fBProcedureCall6.registerOutParam(3, 3); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Cannot find parameter with the specified position. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.7427404", "0.7319299", "0.6964743", "0.6957768", "0.6903018", "0.68581873", "0.68558985", "0.6852044", "0.684961", "0.68440753", "0.6821722", "0.68175733", "0.67897946", "0.6782352", "0.67757684", "0.676515", "0.6760402", "0.67551994", "0.67324543", "0.67062527", "0.670313...
0.0
-1
Test case number: 14 /Coverage entropy=1.7777481312745769
@Test(timeout = 4000) public void test14() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3, "FgZRnc2Yp%jU?C2`8"); fBProcedureParam0.setIndex(3); fBProcedureCall0.getSQL(false); fBProcedureParam0.setIndex(2396); fBProcedureParam0.setIndex((-963)); fBProcedureParam0.setType(3); fBProcedureCall0.addInputParam(fBProcedureParam0); fBProcedureParam0.setValue("FgZRnc2Yp%jU?C2`8"); fBProcedureParam0.setIndex(1861); fBProcedureParam0.setIndex(1861); fBProcedureParam0.setIndex(547); fBProcedureParam0.setIndex((-201774161)); fBProcedureParam0.setType(1861); fBProcedureParam0.setIndex(547); fBProcedureParam0.setIndex(1625); fBProcedureParam0.setIndex(1967); fBProcedureParam0.setIndex((-201774161)); fBProcedureCall0.getSQL(false); try { fBProcedureCall0.registerOutParam(1625, 749); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Cannot find parameter with the specified position. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.7412492", "0.72829986", "0.69475794", "0.69470316", "0.6879142", "0.6871046", "0.686858", "0.68649495", "0.68578726", "0.6823186", "0.6812062", "0.67891437", "0.6784554", "0.6783146", "0.6760388", "0.67469865", "0.6734431", "0.6722402", "0.6722292", "0.6684473", "0.6681701...
0.0
-1
Test case number: 15 /Coverage entropy=1.9292801145349803
@Test(timeout = 4000) public void test15() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3, "gZbnc2Y!%jU?C2`8"); fBProcedureCall0.addOutputParam(fBProcedureParam0); FBProcedureCall fBProcedureCall1 = new FBProcedureCall(); fBProcedureCall0.getSQL(true); fBProcedureCall0.getSQL(true); fBProcedureCall0.getOutputParam(1702); fBProcedureCall0.mapOutParamIndexToPosition(1, true); fBProcedureCall0.getSQL(true); FBProcedureCall fBProcedureCall2 = new FBProcedureCall(); FBProcedureCall fBProcedureCall3 = new FBProcedureCall(); fBProcedureCall0.getSQL(true); FBProcedureCall fBProcedureCall4 = new FBProcedureCall(); fBProcedureCall4.getInputParam(1); fBProcedureCall3.addParam(1702, "Keu{9b0D\"p"); FBProcedureCall fBProcedureCall5 = new FBProcedureCall(); try { fBProcedureCall5.registerOutParam(1702, 1); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Cannot find parameter with the specified position. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.72364426", "0.708148", "0.6853718", "0.6826675", "0.68070877", "0.67961633", "0.6761402", "0.6689458", "0.6661792", "0.66563207", "0.6642307", "0.66213155", "0.6600577", "0.6572593", "0.6562744", "0.656082", "0.65539837", "0.65428114", "0.6541887", "0.6534506", "0.65204036...
0.0
-1
Test case number: 16 /Coverage entropy=1.7105383209021394
@Test(timeout = 4000) public void test16() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3, "gZ'bnc2Y!%jU?C2`8"); fBProcedureCall0.addOutputParam(fBProcedureParam0); fBProcedureCall0.getSQL(true); Object object0 = new Object(); fBProcedureParam0.setIndex(3); fBProcedureParam0.setValue(object0); int int0 = (-2196); fBProcedureParam0.setIndex((-2196)); fBProcedureParam0.setIndex((-2196)); fBProcedureParam0.setIndex(3); fBProcedureParam0.setIndex((-5)); fBProcedureParam0.setType((-2196)); fBProcedureParam0.setIndex((-2196)); fBProcedureParam0.setIndex(3); int int1 = (-5276); fBProcedureCall0.addInputParam(fBProcedureParam0); fBProcedureParam0.setIndex((-5276)); int int2 = (-4177984); // Undeclared exception! try { fBProcedureCall0.registerOutParam((-4177984), 707); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // -4177985 // verifyException("java.util.Vector", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.73288584", "0.71874446", "0.6775927", "0.67707586", "0.6748234", "0.6732154", "0.67104244", "0.6705282", "0.66895735", "0.66803175", "0.66591984", "0.66449934", "0.6644586", "0.6635983", "0.6629681", "0.66216487", "0.6565852", "0.6554476", "0.6530511", "0.6521365", "0.6513...
0.0
-1
Test case number: 17 /Coverage entropy=1.8029624676287908
@Test(timeout = 4000) public void test17() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3674, "250"); FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(3674, "oyA6@hY>6JL<<"); fBProcedureParam1.clone(); fBProcedureCall0.addOutputParam(fBProcedureParam1); fBProcedureCall0.addParam(3674, "250"); FBProcedureParam fBProcedureParam2 = new FBProcedureParam(1, "250"); fBProcedureParam2.clone(); fBProcedureParam0.setType(45); fBProcedureParam2.setType((-587)); fBProcedureParam2.setIndex(3674); fBProcedureCall0.addOutputParam(fBProcedureParam2); fBProcedureCall0.addInputParam(fBProcedureParam0); FBProcedureParam fBProcedureParam3 = fBProcedureCall0.getOutputParam(1); assertEquals(0, fBProcedureParam3.getPosition()); fBProcedureCall0.registerOutParam(3674, (-1587)); FBProcedureParam fBProcedureParam4 = fBProcedureCall0.addParam(1, "250"); assertEquals(1, fBProcedureParam4.getPosition()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.73844707", "0.7204018", "0.6938764", "0.688607", "0.68842435", "0.6879664", "0.6850494", "0.682081", "0.6798563", "0.6769417", "0.6769374", "0.6769001", "0.6743627", "0.6741538", "0.67406046", "0.6727369", "0.67162484", "0.67082095", "0.668503", "0.6679153", "0.6671281", ...
0.0
-1
Test case number: 18 /Coverage entropy=1.8496584480669453
@Test(timeout = 4000) public void test18() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3659, "5"); fBProcedureParam0.setType(883); fBProcedureCall0.addParam(3659, "5"); FBProcedureParam fBProcedureParam1 = new FBProcedureParam(17, "5"); FBProcedureParam fBProcedureParam2 = (FBProcedureParam)fBProcedureParam1.clone(); FBProcedureParam fBProcedureParam3 = new FBProcedureParam(); fBProcedureParam1.setIndex(3659); fBProcedureCall0.addInputParam(fBProcedureParam3); fBProcedureParam0.setType(45); fBProcedureParam1.setType((-587)); fBProcedureParam1.setIndex(3659); fBProcedureCall0.addOutputParam(fBProcedureParam1); fBProcedureCall0.addInputParam(fBProcedureParam0); fBProcedureCall0.getOutputParam(17); fBProcedureCall0.registerOutParam(3659, (-1574)); fBProcedureCall0.addParam(17, "5"); FBProcedureParam fBProcedureParam4 = fBProcedureCall0.getInputParam(3659); fBProcedureCall0.addOutputParam(fBProcedureParam4); fBProcedureCall0.addOutputParam(fBProcedureParam2); assertEquals((-1574), fBProcedureParam1.getType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.7465744", "0.73045844", "0.70540315", "0.7013425", "0.6972984", "0.69581765", "0.6939377", "0.69319785", "0.69305557", "0.69286275", "0.6905014", "0.6903396", "0.68921524", "0.6890426", "0.68597084", "0.685103", "0.6829257", "0.68191755", "0.6810653", "0.6792639", "0.67741...
0.0
-1
Test case number: 19 /Coverage entropy=1.6954040984113863
@Test(timeout = 4000) public void test19() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); int int0 = 3; FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3, "gZ'bnc2Y!%jU?C2`8"); fBProcedureCall0.addOutputParam(fBProcedureParam0); fBProcedureCall0.getSQL(true); Object object0 = new Object(); fBProcedureParam0.setValue(object0); int int1 = (-2196); fBProcedureParam0.setIndex((-2196)); fBProcedureParam0.setIndex((-2196)); fBProcedureParam0.setIndex(3); fBProcedureParam0.setIndex((-5)); fBProcedureCall0.getInputParam((-5)); fBProcedureParam0.setType((-2196)); fBProcedureParam0.setIndex((-201774121)); fBProcedureParam0.setIndex(3); fBProcedureCall0.addInputParam(fBProcedureParam0); fBProcedureParam0.setIndex((-5287)); int int2 = 696; // Undeclared exception! try { fBProcedureCall0.registerOutParam((-201774121), 696); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // -201774122 // verifyException("java.util.Vector", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.7296199", "0.7140129", "0.70115954", "0.69443476", "0.6884317", "0.68584746", "0.6836574", "0.6827602", "0.6825562", "0.6819716", "0.6804102", "0.6796639", "0.6783674", "0.67487663", "0.6735238", "0.6731134", "0.6724967", "0.6723444", "0.6694346", "0.6684209", "0.6682616",...
0.0
-1
Test case number: 20 /Coverage entropy=1.7923017099761813
@Test(timeout = 4000) public void test20() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); int int0 = 11; FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(11, "^gZRnc2Y!%jU?C2`8"); fBProcedureCall0.getSQL(false); FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(11, "EXECUTE PROCEDURE null(^gZRnc2Y!%jU?C2`8)"); fBProcedureParam0.setValue("^gZRnc2Y!%jU?C2`8"); fBProcedureParam1.setIndex(11); int int1 = (-1348); fBProcedureParam1.setType((-1348)); fBProcedureParam0.setIndex(11); fBProcedureParam1.setType(11); fBProcedureParam1.setIndex(547); fBProcedureParam1.setIndex((-201774121)); FBProcedureParam fBProcedureParam2 = fBProcedureCall0.getInputParam((-201774121)); fBProcedureParam0.setType(11); fBProcedureParam1.setIndex(547); fBProcedureCall0.addInputParam(fBProcedureParam2); fBProcedureParam1.setIndex(1967); fBProcedureParam1.setIndex((-201774121)); fBProcedureParam0.setValue("EXECUTE PROCEDURE null(^gZRnc2Y!%jU?C2`8)"); try { fBProcedureCall0.registerOutParam(1625, 749); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Cannot find parameter with the specified position. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.74232537", "0.72039926", "0.7013473", "0.7004497", "0.700061", "0.6998691", "0.6975735", "0.6973312", "0.6910475", "0.68690825", "0.685255", "0.6785376", "0.6759719", "0.6757174", "0.6739618", "0.673375", "0.67206895", "0.67160875", "0.6711583", "0.67015076", "0.6698686", ...
0.0
-1
Test case number: 21 /Coverage entropy=1.8089909587099502
@Test(timeout = 4000) public void test21() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(40, "it was not registered as output parameter."); String string0 = "--D"; FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(3674, "--D"); FBProcedureParam fBProcedureParam2 = new FBProcedureParam(40, "it was not registered as output parameter."); fBProcedureParam0.clone(); fBProcedureParam2.setType(31); fBProcedureParam1.setIndex((-587)); fBProcedureCall0.addOutputParam(fBProcedureParam0); fBProcedureCall0.addInputParam(fBProcedureParam2); fBProcedureCall0.getOutputParam((-1)); FBProcedureCall fBProcedureCall1 = new FBProcedureCall(); int int0 = (-201774121); try { fBProcedureCall1.registerOutParam(40, (-201774121)); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Cannot find parameter with the specified position. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.734596", "0.7165189", "0.70119363", "0.6886519", "0.68660945", "0.68567604", "0.6854933", "0.68387", "0.68370116", "0.6831555", "0.68207234", "0.6819839", "0.68181306", "0.67826486", "0.677804", "0.674909", "0.67489016", "0.67355335", "0.6666713", "0.6653919", "0.66509813"...
0.0
-1
Test case number: 22 /Coverage entropy=1.8560362344170938
@Test(timeout = 4000) public void test22() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); String string0 = "it was not registered as output parameter."; FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(1107, "it was not registered as output parameter."); fBProcedureCall0.addOutputParam(fBProcedureParam0); fBProcedureParam0.setType(1107); fBProcedureParam0.setType(1107); fBProcedureParam0.setIndex(1107); fBProcedureParam0.setIndex(1107); fBProcedureCall0.addOutputParam(fBProcedureParam0); FBProcedureParam fBProcedureParam1 = fBProcedureCall0.getOutputParam(2); fBProcedureCall0.addInputParam(fBProcedureParam1); fBProcedureCall0.getOutputParam(1107); try { fBProcedureCall0.registerOutParam(2, 2); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Cannot find parameter with the specified position. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.72909516", "0.7227777", "0.68699604", "0.68175095", "0.68112916", "0.68013847", "0.6787803", "0.6741895", "0.67170864", "0.67018443", "0.66986", "0.6684212", "0.66717666", "0.6656986", "0.6656901", "0.6652304", "0.664189", "0.66170883", "0.6616673", "0.6590721", "0.6587139...
0.0
-1
Test case number: 23 /Coverage entropy=2.0729270415374588
@Test(timeout = 4000) public void test23() throws Throwable { FBProcedureCall fBProcedureCall0 = new FBProcedureCall(); FBProcedureCall fBProcedureCall1 = new FBProcedureCall(); boolean boolean0 = FBProcedureCall.OLD_CALLABLE_STATEMENT_COMPATIBILITY; FBProcedureParam fBProcedureParam0 = new FBProcedureParam(); FBProcedureCall fBProcedureCall2 = new FBProcedureCall(); FBProcedureCall fBProcedureCall3 = new FBProcedureCall(); FBProcedureCall fBProcedureCall4 = new FBProcedureCall(); FBProcedureCall fBProcedureCall5 = (FBProcedureCall)fBProcedureCall4.clone(); FBProcedureCall fBProcedureCall6 = new FBProcedureCall(); fBProcedureCall1.addOutputParam(fBProcedureParam0); FBProcedureCall fBProcedureCall7 = new FBProcedureCall(); fBProcedureCall4.equals(fBProcedureCall1); FBProcedureCall fBProcedureCall8 = new FBProcedureCall(); fBProcedureCall8.clone(); FBProcedureCall fBProcedureCall9 = new FBProcedureCall(); fBProcedureCall9.clone(); fBProcedureCall9.addInputParam(fBProcedureParam0); FBProcedureCall fBProcedureCall10 = new FBProcedureCall(); fBProcedureCall5.addOutputParam(fBProcedureParam0); FBProcedureCall fBProcedureCall11 = new FBProcedureCall(); fBProcedureCall6.addParam(1428, "org.firebirdsl.jbc.FBrocedureCall"); FBProcedureCall fBProcedureCall12 = new FBProcedureCall(); try { fBProcedureCall12.registerOutParam(1428, 1428); fail("Expecting exception: FBSQLException"); } catch(FBSQLException e) { // // Cannot find parameter with the specified position. // verifyException("org.firebirdsql.jdbc.FBProcedureCall", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n as...
[ "0.7340602", "0.7203809", "0.69970167", "0.68821377", "0.6842105", "0.6822528", "0.6801826", "0.6792893", "0.67850786", "0.6782104", "0.6776434", "0.67659044", "0.67618084", "0.6758957", "0.6747799", "0.67426187", "0.6729287", "0.6725072", "0.6682377", "0.6658166", "0.6621201...
0.0
-1