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
/ filters is either ArrayList or ArrayList null elts of filters are ignored ret all Profil if filters == null throws KasirException(BAD_RECORD, tableName). possible only if filters = null ret empty Map if (filters = null & table is empty) / all elts of filters = null / filters.isEmpty = true ret Map. never null
public static Map<String,Profil> filterSelectS(Set<? extends Filter<Profil>> filters) throws SQLException, KasirException{ ResultSet rs; if(filters == null) rs = DBSR.takeResultSetByFilterColl(tableName, null, -1, null); else{ //remove null filters / filters with empty asWhereClause, so BAD_RECORD is only detected if filters = null //arg filters isn't modified Set<Filter<Profil>> validFilters = new HashSet<>(); for(Filter<Profil> filter : filters){ if(filter != null && !"".equals(filter.asWhereClause())) validFilters.add(filter); } rs = DBSR.takeResultSetByFilterColl(tableName, null, -1, validFilters); } Map<String,Profil> noIndukProfil = new HashMap<>(DBSR.rowCountRS(rs)); while(rs.next()){ Profil p = Profil.fromResultSet(rs); noIndukProfil.put(p.noInduk, p); } return noIndukProfil; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Map<String, String> getFilters();", "public Hashtable getFilters() {\n // we need to build the hashtable dynamically\n return globalFilterSet.getFilterHash();\n }", "public Map<String, Object> getFilters() {\n if (filters == null) {\n filters = new HashMap<String, Object>();\n }\...
[ "0.5872978", "0.5790802", "0.57215494", "0.5538145", "0.55190027", "0.54828763", "0.5403195", "0.525075", "0.52191013", "0.5208993", "0.5202649", "0.51784915", "0.51269764", "0.50998694", "0.5093167", "0.5040101", "0.5024255", "0.50180197", "0.5004921", "0.49989754", "0.49391...
0.71411777
0
============================UPDATE / flush current states (including noInduk) of profil into db oldNoInduk & profil may not be null. oldNoInduk is the previous val of profil.noInduk throws KasirException(DB_INVALID, profil) if profil.isDBValid = false throws KasirException(ROW_NOT_FOUND, oldNoInduk) if noIndukOld record = not in db throws KasirException(DUPLICATE_PRIMARY_KEY, profil) if profil.noInduk has already existed in db never ret false
public boolean updateNoInduk(String oldNoInduk) throws SQLException, KasirException{ assert oldNoInduk != null; //profil.noInduk is also retrieved to check for noInduk duplication ResultSet rs = DBSR.takeResultSetByString(tableName, noIndukColName, 1, oldNoInduk, noInduk); if(updateResultSetNoInduk(rs, oldNoInduk)){ rs.updateRow(); return true; }else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void rubahDataProduk(){\n loadDataProduk();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n Strin...
[ "0.5678152", "0.5656867", "0.56222147", "0.5589477", "0.5534145", "0.54612327", "0.5367568", "0.53406215", "0.5326056", "0.53137016", "0.53069127", "0.5276088", "0.52491033", "0.5247143", "0.5240805", "0.5238447", "0.5234151", "0.52203375", "0.52200615", "0.5206692", "0.51984...
0.72958267
0
/ flush current states (except noInduk) of profils into db for each profil, if profil.noInduk is changed prior to calling this method then either not finding the record / updating the wrong record 'profils' may not be null null elts of 'profils' are removed, note this removal done directly on the arraylist given as 'profils' throws KasirException(DB_INVALID, Set), Set elts are indexes such that profils.get(index).isDBValid() = false throws KasirException(ROW_NOT_FOUND, Set), Set elts are indexes such that profils.get(index) = not in db ret num of profil successfully flushed ret 1 if profils.isEmpty() = true before null elts removal ret 2 if profils.isEmpty() = true after null elts removal
public static int updateS(ArrayList<Profil> profils) throws SQLException, KasirException{ return DBSR.updateKasirOs(tableName, noIndukColName, profils); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int deleteS(ArrayList<Profil> profils) throws SQLException{ //arraylist because name clash\r\n Set<String> noInduks = new HashSet<>(profils.size());\r\n for(Profil p : profils)\r\n noInduks.add(p.noInduk);\r\n return deleteS(noInduks);\r\n }", "@Before\n\tpublic ...
[ "0.6343067", "0.59872025", "0.51950914", "0.4939079", "0.48989192", "0.4892048", "0.488767", "0.48760957", "0.48713982", "0.4862191", "0.48600942", "0.48427394", "0.48363212", "0.48124495", "0.4805565", "0.4805516", "0.48047337", "0.48008198", "0.47980404", "0.47819078", "0.4...
0.67722493
0
/ noInduk may be null / "", which in this case del the first found bad record throws KasirException(ROW_NOT_FOUND, noInduk)
public static boolean delete(String noInduk) throws SQLException, KasirException{ return DBSR.deleteKasirO(tableName, noIndukColName, false, noInduk); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hapusdata (String nama){\n return data.delete(nama_table, kolom1+\"=\\\"\"+nama+\"\\\"\",null)>0;\n }", "@Override\n\tpublic MahasiswaModel delete(String nik) throws SQLException {\n\t\tdeleteStatement.setString(1, nik);\n\t\tdeleteStatement.executeUpdate();\n\t\treturn null;\n\t}", "p...
[ "0.6215364", "0.61933345", "0.6190195", "0.6173666", "0.6159608", "0.5964568", "0.5914715", "0.5816257", "0.58052236", "0.57402647", "0.57225084", "0.5711547", "0.57105356", "0.56403416", "0.5634166", "0.56225264", "0.558316", "0.5561411", "0.5558883", "0.5548719", "0.5543709...
0.7635772
0
/ del all rows having any elt of noInduks on colName, including null/empty (ie. del all bad records) del all rows if noInduks = null
public static int deleteS(Set<String> noInduks) throws SQLException{ return DBSR.deleteKasirOsByString(tableName, noIndukColName, noInduks); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearData() throws SQLException {\n//Lay chi so dong cuoi cung\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }", "private boolean noRepeatedNumbersInColumns() {\n return !this.hasA...
[ "0.53503823", "0.5062247", "0.50253403", "0.50050664", "0.49758998", "0.49735552", "0.49686682", "0.49658293", "0.49497122", "0.4934264", "0.49269703", "0.49043205", "0.48427108", "0.48372242", "0.48372242", "0.48372242", "0.48259938", "0.48075327", "0.47830445", "0.47763684", ...
0.5258314
1
/ profils may not be null this is equal to deleteProfils(user, pass, Set) where Set contains noInduks of all profils, including bad noInduk
public static int deleteS(ArrayList<Profil> profils) throws SQLException{ //arraylist because name clash Set<String> noInduks = new HashSet<>(profils.size()); for(Profil p : profils) noInduks.add(p.noInduk); return deleteS(noInduks); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void eliminarDeMisPropiedades(Casilla casilla){\n if(esDeMipropiedad(casilla)){\n propiedades.remove(casilla.getTituloPropiedad());\n }\n \n }", "public static int updateS(ArrayList<Profil> profils) throws SQLException, KasirException{\r\n return DBSR.updateKa...
[ "0.57897514", "0.56947875", "0.56208944", "0.55960643", "0.5543353", "0.5532043", "0.5502405", "0.5501645", "0.54886436", "0.5449252", "0.5367919", "0.53403145", "0.5321313", "0.529764", "0.52536887", "0.5249464", "0.5243278", "0.5162653", "0.51512027", "0.51409477", "0.51405...
0.73547417
0
Write your solution here.
public int firstMissing(int[] array) { if (array == null || array.length == 0) { return 1; } int sum = 0; for (int i : array) { if (sum < i - 1) { return i - 1; } sum += i; } return sum + 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateSolution() {\n\t\t// TODO\n\n\t}", "public void solution() {\n\t\t\n\t}", "public void findSolution() {\n\n\t\t// TODO\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(solution());\r\n\t}", "@Override\r\n\tpublic void solve() {\n\t\t\r\n\t}", "public static St...
[ "0.8037806", "0.7603302", "0.6941013", "0.64572173", "0.6352647", "0.6253009", "0.6238112", "0.6234008", "0.62115276", "0.6133971", "0.6109244", "0.6108282", "0.6100399", "0.60993", "0.60886985", "0.6087549", "0.608237", "0.60471874", "0.60441387", "0.6040543", "0.6017895", ...
0.0
-1
Returns the base URL for block calls
private static String getBaseUrl() { return "https://rapidapi.io/connect"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String blockUrlBuild(String pack, String block)\r\n {\r\n return RapidApiConnect.getBaseUrl() + \"/\" + pack + \"/\" + block;\r\n }", "public static String UrlToHit(){\n\t\treturn BaseURL;\n\t}", "private static String getBaseUrl() {\n StringBuilder url = new StringBuilder();\n ...
[ "0.65425843", "0.63204676", "0.6152848", "0.61364937", "0.6039866", "0.59909713", "0.599095", "0.59862673", "0.5967742", "0.5909119", "0.59079593", "0.59063554", "0.58982855", "0.58974993", "0.58789843", "0.5874019", "0.5837537", "0.582815", "0.5822915", "0.5822915", "0.57977...
0.5402383
63
Build a URL for a block call
public static String blockUrlBuild(String pack, String block) { return RapidApiConnect.getBaseUrl() + "/" + pack + "/" + block; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BusMethod(replySignature=\"s\")\n public String GetUrl() throws BusException;", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "String makePlanCommunityUrl();", "private void buildBS60Url() {\n url = \"http://q.lizone.net/index/index/BSline/res/60/label/\" + dataItem....
[ "0.5552498", "0.54068494", "0.5308549", "0.53059995", "0.527467", "0.5264807", "0.5261211", "0.5182557", "0.5177337", "0.5166055", "0.5152351", "0.51517725", "0.51346517", "0.5131232", "0.50928605", "0.50110906", "0.49978602", "0.4968883", "0.49549556", "0.49438578", "0.49345...
0.7378149
0
Updates the status of all the stateful buttons.
private void updateStatus() { if (bold != null) { bold.setDown(basic.isBold()); } if (italic != null) { italic.setDown(basic.isItalic()); } if (underline != null) { underline.setDown(basic.isUnderlined()); } if (subscript != null) { subscript.setDown(basic.isSubscript()); } if (superscript != null) { superscript.setDown(basic.isSuperscript()); } if (strikethrough != null) { strikethrough.setDown(extended.isStrikethrough()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateAllButtons(){\n updateStartButton();\n updateResetButton();\n }", "protected void updateButtonStates()\n\t{\n\t\tboolean isLastStep = isLastStep(currentStep);\n\t\tboolean isFirstStep = isFirstStep(currentStep);\n\t\t// Check whether current step data is valid or not\n\t\tboole...
[ "0.7586765", "0.7460184", "0.74270284", "0.71646196", "0.6920991", "0.68270415", "0.6761935", "0.6761037", "0.66177416", "0.65938556", "0.6529749", "0.6505233", "0.6504149", "0.6495481", "0.6481827", "0.62915367", "0.6278906", "0.6276099", "0.6265322", "0.6250165", "0.623289"...
0.5908906
39
Creates new form SFormDocumentNumberSeries
public SFormDocumentNumberSeries(erp.client.SClientInterface client) { super(client.getFrame(), true); miClient = client; initComponents(); initComponentsExtra(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Series setNumber( int theInteger) {\n\t\tmyNumber = new IntegerDt(theInteger); \n\t\treturn this; \n\t}", "public SeriesInstance setNumber( int theInteger) {\n\t\tmyNumber = new IntegerDt(theInteger); \n\t\treturn this; \n\t}", "public void setDocumentNo (String DocumentNo);", "public void setDocument...
[ "0.57019854", "0.56269664", "0.55016714", "0.55016714", "0.55016714", "0.5379871", "0.53786105", "0.537234", "0.5358055", "0.5354573", "0.5319603", "0.5315575", "0.51768726", "0.51712024", "0.5153952", "0.512598", "0.50921667", "0.5087451", "0.50398797", "0.50342804", "0.5031...
0.6776194
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jbOk = new javax.swing.JButton(); jbCancel = new javax.swing.JButton(); jPanel2 = new javax.swing.JPanel(); jPanel3 = new javax.swing.JPanel(); jlFkCategoryId = new javax.swing.JLabel(); jcbFkCategoryId = new javax.swing.JComboBox(); jlFkClassId = new javax.swing.JLabel(); jcbFkClassId = new javax.swing.JComboBox(); jlFkTypeId = new javax.swing.JLabel(); jcbFkTypeId = new javax.swing.JComboBox(); jlDocNumberSeries = new javax.swing.JLabel(); jtfDocNumberSeries = new javax.swing.JTextField(); jckIsDeleted = new javax.swing.JCheckBox(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Serie de folios de documentos"); setResizable(false); addWindowListener(new java.awt.event.WindowAdapter() { public void windowActivated(java.awt.event.WindowEvent evt) { formWindowActivated(evt); } }); jPanel1.setPreferredSize(new java.awt.Dimension(392, 33)); jPanel1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT)); jbOk.setText("Aceptar"); jbOk.setToolTipText("[Ctrl + Enter]"); jbOk.setPreferredSize(new java.awt.Dimension(75, 23)); jPanel1.add(jbOk); jbCancel.setText("Cancelar"); jbCancel.setToolTipText("[Escape]"); jPanel1.add(jbCancel); getContentPane().add(jPanel1, java.awt.BorderLayout.SOUTH); jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos del registro:")); jPanel2.setLayout(new java.awt.BorderLayout()); jPanel3.setLayout(new java.awt.GridLayout(5, 2, 0, 1)); jlFkCategoryId.setText("Categoría de documento: *"); jPanel3.add(jlFkCategoryId); jcbFkCategoryId.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); jPanel3.add(jcbFkCategoryId); jlFkClassId.setText("Clase de documento: *"); jPanel3.add(jlFkClassId); jcbFkClassId.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); jPanel3.add(jcbFkClassId); jlFkTypeId.setText("Tipo de documento: *"); jPanel3.add(jlFkTypeId); jcbFkTypeId.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); jPanel3.add(jcbFkTypeId); jlDocNumberSeries.setText("Serie para folios de documentos:"); jPanel3.add(jlDocNumberSeries); jtfDocNumberSeries.setText("DOC NUMBER SERIE"); jPanel3.add(jtfDocNumberSeries); jckIsDeleted.setText("Registro eliminado"); jPanel3.add(jckIsDeleted); jPanel2.add(jPanel3, java.awt.BorderLayout.NORTH); getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER); java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); setBounds((screenSize.width-400)/2, (screenSize.height-300)/2, 400, 300); }
{ "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.73208135", "0.7291972", "0.7291972", "0.7291972", "0.7287118", "0.72494483", "0.7214677", "0.72086734", "0.7197058", "0.71912485", "0.7185818", "0.71596724", "0.71489036", "0.7094215", "0.7082007", "0.70579666", "0.6988024", "0.6978225", "0.6955616", "0.6955434", "0.694586...
0.0
-1
End of variables declaration//GENEND:variables
@Override public void formClearRegistry() { throw new UnsupportedOperationException("Not supported yet."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
atributo para impressao da arvore METODOS/ construtor padrao
public ArvoreRB(Node nil){ this.raiz = nil; this.pr = nil; this.aux = nil; this.tamanho = 0; this.print = " "; this.nil=nil; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FiltroMicrorregiao() {\r\n }", "public Alojamiento() {\r\n\t}", "public CrearQuedadaVista() {\n }", "public Regla2(){ /*ESTE ES EL CONSTRUCTOR POR DEFECTO */\r\n\r\n /* TODAS LAS CLASES TIENE EL CONSTRUCTOR POR DEFECTO, A VECES SE CREAN AUTOMATICAMENTE, PERO\r\n PODEMOS CREARLOS NOSOTROS T...
[ "0.67741746", "0.6723177", "0.6697147", "0.6658185", "0.6614747", "0.660311", "0.65982586", "0.6578939", "0.65669256", "0.65628076", "0.65555155", "0.65434206", "0.6530428", "0.651619", "0.64985424", "0.6487467", "0.6481602", "0.64465624", "0.6421061", "0.6403393", "0.6390759...
0.0
-1
construtor com entrada de chave
public ArvoreRB(String n){ this.raiz = new Node(n); this.pr = raiz; this.tamanho = 0; this.print = " "; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Chauffeur() {\r\n\t}", "public ChaCha()\n\t{\n\t\tsuper();\n\t}", "public Chant(){}", "public Coche() {\n super();\n }", "Constructor() {\r\n\t\t \r\n\t }", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "public Carrinho() {\n\t\tsuper();\n\t}", "public Chick() {\n\t}...
[ "0.7125549", "0.68683696", "0.67741495", "0.6670152", "0.65843844", "0.649461", "0.64247465", "0.64087176", "0.63597363", "0.63216734", "0.62780905", "0.6259773", "0.62417614", "0.6224492", "0.61944854", "0.6175897", "0.61645234", "0.6161567", "0.61602336", "0.61229044", "0.6...
0.0
-1
/======================================================================================== Metodo que retorna a raiz da arvore
public Node raiz(){ return this.raiz; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Celda rastrearAPacman() {\n // TODO implement here\n return null;\n }", "public Nodo getRaiz() {\n return raiz;\n }", "Object getROIs();", "public String getRaza() {\r\n return raza;\r\n }", "public String getARo() {\r\n return aRo;\r\n }", "public N...
[ "0.6392349", "0.6237893", "0.62108123", "0.6163004", "0.608848", "0.6070472", "0.6007237", "0.5993652", "0.5786284", "0.5752943", "0.5738579", "0.57359266", "0.57308996", "0.5654757", "0.56503654", "0.5626518", "0.5617035", "0.561094", "0.5578138", "0.5576565", "0.5573009", ...
0.551332
23
/======================================================================================== Metodo que calcula a altura negra /======================================================================================== Metodo de busca de um elemento com chave x na arvore
public Node buscarElemento(String x){ //verifica se a arvore é vazia if (raiz == null){ pos = 0; return raiz; } if(pr == nil){ pr = raiz; } //testa se o no é vazio if(pr == null)return null; //achou o no else if (pr.conteudoNo.equals(x)){ Node aux=pr; pr=raiz; return aux; } //no a esquerda else if((compare(x, pr.conteudoNo)) < 0){ // faz comparação, se palavra menor que nó aux = pr; pr = pr.esq; aux.esq = pr; pos = 1; //posicao indica a insersao na esquerda - valor definido 1(esquerda) e 2(direita) return buscarElemento(x); } else { aux = pr; pr= pr.dir; aux.dir = pr; pos = 2;//posicao indica a insercao na direita - valor definido 1(esquerda) e 2(direita) return buscarElemento(x); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int altura(Arvore no) \n { \n if (no == null) \n return 0; \n else\n { \n /* Calcula a altura de cada subarvore */\n int alturaEsq = altura(no.esquerda); \n int alturaDir = altura(no.direita); \n \n /* usa a al...
[ "0.582012", "0.57230014", "0.57020587", "0.56468785", "0.5633139", "0.55978477", "0.55878896", "0.55660766", "0.5531903", "0.5506889", "0.54605246", "0.5458922", "0.5453668", "0.5385528", "0.53765476", "0.53642833", "0.5340466", "0.52891403", "0.5271735", "0.52548975", "0.524...
0.6554836
0
/======================================================================================== Metodo de insercao de um elemento com chave z na arvore
public void RB_Insert(ArvoreRB A, Node z){ Node y = A.nil; Node x = A.raiz; while (x != A.nil) { y = x; if (z.conteudoNo.compareToIgnoreCase(x.conteudoNo) < 0) { x = x.esq; } else { x = x.dir; } } z.pai = y; if (y == A.nil) { A.raiz = z; } else if (z.conteudoNo.compareToIgnoreCase(y.conteudoNo) < 0) { y.esq = z; } else { y.dir = z; } z.esq = A.nil; z.dir = A.nil; z.cor = "vermelho"; insertFixup(A,z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inserir(Comentario c);", "public void insereFinal(String elemento) {\n No novoNo = new No(elemento, null);\n No temp = ini;\n \n //Caso a lista esteja vazia\n if (temp == null){\n ini = novoNo;\n } else {\n //Caminha ate o ultimo No, den...
[ "0.69179356", "0.67922056", "0.6726946", "0.6690927", "0.64472157", "0.6445441", "0.64437085", "0.64357257", "0.64247185", "0.6403321", "0.6340008", "0.6313056", "0.6303325", "0.6277244", "0.6184416", "0.6152284", "0.61363447", "0.6120668", "0.6083247", "0.6073207", "0.607050...
0.591785
35
/======================================================================================== Metodo de insercao FIXUP
public void insertFixup(ArvoreRB A,Node z){ while ( z.pai.cor == "vermelho"){ if (z.pai == z.pai.pai.esq) { Node y = z.pai.pai.dir; if (y.cor== "vermelho") { z.pai.cor = "preto"; y.cor = "preto"; z.pai.pai.cor = "vermelho"; z = z.pai.pai; } else { if (z == z.pai.dir) { z = z.pai; rotacaoEsq(A,z); } z.pai.cor = "preto"; z.pai.pai.cor = "vermelho"; rotacaoDir(A,z.pai.pai); } }else { if (z.pai == z.pai.pai.dir) { Node y = z.pai.pai.esq; if (y.cor == "vermelho") { z.pai.cor = "preto"; y.cor = "preto"; z.pai.pai.cor = "vermelho"; z = z.pai.pai; } else{ if (z == z.pai.esq) { z = z.pai; rotacaoDir(A,z); } z.pai.cor = "preto"; z.pai.pai.cor = "vermelho"; rotacaoEsq(A,z.pai.pai); } } A.raiz.cor = "preto"; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void creatEmptyFixData() {\n fixInserts.put(ZcSettingConstants.FIX, \"上架费\");\r\n fixInserts.put(ZcSettingConstants.US, new BigDecimal(0));\r\n fixInserts.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n fixInserts.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n fixInserts.put(ZcSetting...
[ "0.64386195", "0.6078991", "0.6039757", "0.5676744", "0.55375236", "0.53969985", "0.53742856", "0.5373011", "0.535833", "0.53412294", "0.52997583", "0.52972096", "0.52748036", "0.52671164", "0.5261917", "0.5259438", "0.52507603", "0.52186537", "0.52021134", "0.5189551", "0.51...
0.0
-1
DomHelper will transparently create HTML fragments when it can. Using HTML fragments instead of DOM can significantly boost performance. Element creation specification parameters may also be strings. If useDom is false, then the string is used as innerHTML. If useDom is true, a string specification results in the creation of a text node. Usage:
public static native void setUseDom(boolean value)/*-{ $wnd.Ext.DomHelper.useDom = value; }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element createDom(String rawHtml) /*-{\r\n\t\t$wnd.Ext.DomHelper.createDom(rawHtml);\r\n\t}-*/;", "public static native Element createDom(DomConfig config) /*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper...
[ "0.59949625", "0.55385745", "0.5523639", "0.5321127", "0.51566535", "0.48719507", "0.4855551", "0.47794154", "0.47607374", "0.4686919", "0.46034443", "0.4528317", "0.45184368", "0.45113182", "0.45020217", "0.4428448", "0.43813083", "0.43807936", "0.43748626", "0.43353233", "0...
0.53232646
3
Creates new Dom element(s) and appends them to the parent element.
public static native ExtElement append(String parentId, String rawHtml)/*-{ var obj = $wnd.Ext.DomHelper.append(parentId, rawHtml, true); return @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement app...
[ "0.6934326", "0.6729311", "0.67151415", "0.6327634", "0.6280155", "0.6107278", "0.5979133", "0.5975948", "0.5969701", "0.5943112", "0.58852", "0.58073974", "0.5792339", "0.57627416", "0.56742066", "0.5657014", "0.5598415", "0.5597287", "0.55729294", "0.5555935", "0.5552436", ...
0.5862157
11
Creates new Dom element(s) and appends them to the parent element.
public static native ExtElement append(String parentId, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); var obj = $wnd.Ext.DomHelper.append(parentId, configJS, true); return @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement app...
[ "0.6934233", "0.6729078", "0.6715031", "0.6327539", "0.6280147", "0.6106647", "0.5980723", "0.59764063", "0.5943057", "0.5886304", "0.58623147", "0.58082926", "0.57934356", "0.57620513", "0.5674498", "0.56594545", "0.5600951", "0.55982137", "0.55730987", "0.55575264", "0.5552...
0.5969781
8
Creates new Dom element(s) and appends them to the parent element.
public static native ExtElement append(Element parent, String rawHtml)/*-{ var obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true); return @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement app...
[ "0.6934233", "0.6729078", "0.6715031", "0.6280147", "0.6106647", "0.5980723", "0.59764063", "0.5969781", "0.5943057", "0.5886304", "0.58623147", "0.58082926", "0.57934356", "0.57620513", "0.5674498", "0.56594545", "0.5600951", "0.55982137", "0.55730987", "0.55575264", "0.5552...
0.6327539
3
Creates new Dom element(s) and appends them to the parent element.
public static native ExtElement append(Element parent, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); var obj = $wnd.Ext.DomHelper.append(parent, configJS, true); return @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement app...
[ "0.6934233", "0.6715031", "0.6327539", "0.6280147", "0.6106647", "0.5980723", "0.59764063", "0.5969781", "0.5943057", "0.5886304", "0.58623147", "0.58082926", "0.57934356", "0.57620513", "0.5674498", "0.56594545", "0.5600951", "0.55982137", "0.55730987", "0.55575264", "0.5552...
0.6729078
1
/// Creates new Dom element(s) and appends them to the parent element.
public static native ExtElement append(ExtElement parent, String rawHtml)/*-{ var obj = $wnd.Ext.DomHelper.append( parent.@com.ait.toolkit.core.client.JsObject::getJsObj()(), rawHtml, true); return @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "Element createElement();", "publi...
[ "0.709294", "0.68977034", "0.68601334", "0.68345076", "0.6507471", "0.64290875", "0.63490385", "0.6272137", "0.61602", "0.6146556", "0.61367315", "0.6130476", "0.60875785", "0.60758954", "0.60305035", "0.5904908", "0.58488846", "0.5794492", "0.57759744", "0.5775967", "0.57427...
0.6097041
12
Creates new Dom element(s) and appends them to the parent element.
public static native ExtElement append(ExtElement parent, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); var obj = $wnd.Ext.DomHelper.append( parent.@com.ait.toolkit.core.client.JsObject::getJsObj()(), configJS, true); return @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement app...
[ "0.6934233", "0.6729078", "0.6715031", "0.6327539", "0.6106647", "0.5980723", "0.59764063", "0.5969781", "0.5943057", "0.5886304", "0.58623147", "0.58082926", "0.57934356", "0.57620513", "0.5674498", "0.56594545", "0.5600951", "0.55982137", "0.55730987", "0.55575264", "0.5552...
0.6280147
4
Creates new Dom element(s) and appends them to the parent element.
public static native ExtElement append(ExtElement parent, ExtElement child)/*-{ var obj = $wnd.Ext.DomHelper .append( parent.@com.ait.toolkit.core.client.JsObject::getJsObj()(), child.@com.ait.toolkit.core.client.JsObject::getJsObj()(), true); return @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement app...
[ "0.6934233", "0.6729078", "0.6327539", "0.6280147", "0.6106647", "0.5980723", "0.59764063", "0.5969781", "0.5943057", "0.5886304", "0.58623147", "0.58082926", "0.57934356", "0.57620513", "0.5674498", "0.56594545", "0.5600951", "0.55982137", "0.55730987", "0.55575264", "0.5552...
0.6715031
2
Creates new Dom element(s) and appends them to the parent element.
public static native ExtElement append(Element parent, Element child)/*-{ var obj = $wnd.Ext.DomHelper.append(parent, child, true); return @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new...
[ "0.6729078", "0.6715031", "0.6327539", "0.6280147", "0.6106647", "0.5980723", "0.59764063", "0.5969781", "0.5943057", "0.5886304", "0.58623147", "0.58082926", "0.57934356", "0.57620513", "0.5674498", "0.56594545", "0.5600951", "0.55982137", "0.55730987", "0.55575264", "0.5552...
0.6934233
0
Applies a style specification to an element.
public static native void applyStyles(Element element, String styles)/*-{ return $wnd.Ext.DomHelper.applyStyles(element, styles); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean doesStyleApply(QName eltName, QName styleName);", "@Override\n\tpublic void visit(OdfElement element) {\n\t\tgetElementStyle(element);\n\t}", "protected void getElementStyle(OdfElement ele) {\n\t\tif(ele.getNodeName().equals(\"text:p\")) {\n\t\t\tString styleName = ((TextPElement) ele).getTextStyleName...
[ "0.64592403", "0.5999907", "0.5736306", "0.57235414", "0.5227696", "0.51778394", "0.5157797", "0.5142496", "0.51166093", "0.50315344", "0.4991569", "0.49079055", "0.48776737", "0.4876826", "0.48598826", "0.48595878", "0.48150173", "0.47990122", "0.47835857", "0.4774672", "0.4...
0.63566774
1
Creates a new Template from the Dom config spec.
public static native Template createTemplate(DomConfig config) /*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); var tpl = $wnd.Ext.DomHelper.createTemplate(configJS); return @com.ait.toolkit.sencha.shared.client.core.Template::instance(Lcom/google/gwt/core/client/JavaScriptObject;)(tpl); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Template makeTemplate() {\n return new Template(\"spamHardGenerated\", \"SPAM HARD\\n$$template_EOO\\n\" + sendedWorld.getText() + \"\\n$$template_EOF\\n$$var_name osef\\n$$var_surname osef\");\n }", "private static Template template(Configuration configuration, TemplateSource templateSource) {...
[ "0.59812945", "0.5938419", "0.5644193", "0.5487949", "0.5427442", "0.5403297", "0.53940576", "0.5308251", "0.5297539", "0.5257304", "0.51751924", "0.51218593", "0.5065268", "0.5059578", "0.5047849", "0.4982573", "0.49812508", "0.49580625", "0.4946262", "0.49433625", "0.490239...
0.6916138
0
Creates new DOM element(s) without inserting them to the document.
public static native Element createDom(DomConfig config) /*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.createDom(configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Element createElement();", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "HTMLElement createHTMLElement();", "protected abstract M createNewElement();", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespac...
[ "0.73177433", "0.67791164", "0.6682571", "0.6568797", "0.6189695", "0.61723447", "0.6147519", "0.6013237", "0.60109156", "0.59619445", "0.5919733", "0.58297294", "0.5786944", "0.5750905", "0.57286024", "0.5714299", "0.5707724", "0.5690428", "0.5690288", "0.5662585", "0.564757...
0.52410394
48
Creates new DOM element(s) without inserting them to the document.
public static native Element createDom(String rawHtml) /*-{ $wnd.Ext.DomHelper.createDom(rawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Element createElement();", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "HTMLElement createHTMLElement();", "protected abstract M createNewElement();", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespac...
[ "0.73177433", "0.67791164", "0.6682571", "0.6568797", "0.6189695", "0.61723447", "0.6147519", "0.6013237", "0.60109156", "0.59619445", "0.5919733", "0.58297294", "0.5786944", "0.5750905", "0.57286024", "0.5714299", "0.5707724", "0.5690428", "0.5690288", "0.5662585", "0.564757...
0.55820316
23
Converts the styles from the given object to text. The styles are CSS style names with their associated value.
public static native String generateStyle(StyleConfig config) /*-{ var configJS = config.@com.ait.toolkit.core.client.JsObject::getJsObj()(); return $wnd.Ext.DomHelper.generateStyle(configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String format(Object object){\n return \"<font\"+(this == NO_COLOR ? \"\" : \" color=#\"+getHexValue())+\">\"+object+\"</font>\";\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getStyle() != null)\n ...
[ "0.6191645", "0.5971326", "0.596327", "0.5886538", "0.5864826", "0.57683414", "0.5692738", "0.5479733", "0.543496", "0.534623", "0.5303871", "0.52823466", "0.5245913", "0.5243227", "0.523543", "0.52255523", "0.5184642", "0.5159944", "0.515852", "0.5139854", "0.5137844", "0....
0.50187194
33
Converts the styles from the given object to text. The styles are CSS style names with their associated value.
public static native JsArrayString generateStyleAsArray(StyleConfig config, JsArrayString buffer) /*-{ var configJS = config.@com.ait.toolkit.core.client.JsObject::getJsObj()(); return $wnd.Ext.DomHelper.generateStyle(configJS, buffer); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String format(Object object){\n return \"<font\"+(this == NO_COLOR ? \"\" : \" color=#\"+getHexValue())+\">\"+object+\"</font>\";\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getStyle() != null)\n ...
[ "0.6192964", "0.5971011", "0.5963636", "0.58859897", "0.5863777", "0.5767775", "0.56915915", "0.54792184", "0.54336977", "0.5345004", "0.5302359", "0.5281142", "0.5245508", "0.5244025", "0.5234758", "0.52258325", "0.51845723", "0.51613885", "0.51576495", "0.5139214", "0.51382...
0.4770911
58
Creates new Dom element(s) and inserts them after the specified element.
public static native Element insertAfter(String id, String rawHtml)/*-{ return $wnd.Ext.DomHelper.insertAfter(id, rawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "public void addAfter(T existing, T element) throws ElementN...
[ "0.7457581", "0.735522", "0.71832824", "0.69462556", "0.6902478", "0.67899746", "0.6748791", "0.64317465", "0.6378556", "0.6296787", "0.6294809", "0.6225522", "0.6203853", "0.620259", "0.616527", "0.61410207", "0.6119651", "0.6036262", "0.6015271", "0.59377986", "0.59277713",...
0.64720786
7
Creates new Dom element(s) and inserts them after the specified element.
public static native Element insertAfter(String id, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.insertAfter(id, configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "public void addAfter(T existing, T element) throws ElementN...
[ "0.7457581", "0.735522", "0.71832824", "0.69462556", "0.6902478", "0.67899746", "0.6748791", "0.64720786", "0.6378556", "0.6296787", "0.6294809", "0.6225522", "0.6203853", "0.620259", "0.616527", "0.61410207", "0.6119651", "0.6036262", "0.6015271", "0.59377986", "0.59277713",...
0.64317465
8
Creates new Dom element(s) and inserts them after the specified element.
public static native Element insertAfter(Element elem, String rawHtml)/*-{ return $wnd.Ext.DomHelper.insertAfter(parent, rawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "public void addAfter(T existing, T element) throws ElementN...
[ "0.74579996", "0.7354908", "0.69467425", "0.6902219", "0.67897624", "0.6748409", "0.6472298", "0.64321613", "0.63796306", "0.6296689", "0.62951934", "0.62261873", "0.6204297", "0.620289", "0.6164831", "0.6141787", "0.61198866", "0.60365486", "0.6015912", "0.5938026", "0.59283...
0.7183496
2
Creates new Dom element(s) and inserts them after the specified element.
public static native Element insertAfter(Element elem, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.insertAfter(parent, configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addAfter(T existing, T element) throws ElementNotFoundException;", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "void addAfter(T target, T element);", "public Node insertAfter(Node node);", ...
[ "0.735522", "0.71832824", "0.69462556", "0.6902478", "0.67899746", "0.6748791", "0.64720786", "0.64317465", "0.6378556", "0.6296787", "0.6294809", "0.6225522", "0.6203853", "0.620259", "0.616527", "0.61410207", "0.6119651", "0.6036262", "0.6015271", "0.59377986", "0.59277713"...
0.7457581
0
Creates new Dom element and inserts them after the specified element.
public static native Element insertAfter(Element elem, Element sibling)/*-{ return $wnd.Ext.DomHelper.insertAfter(elem, sibling); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "public void addAfter(T existing, T element) throws ElementN...
[ "0.75383866", "0.73178416", "0.7295266", "0.69362694", "0.6911988", "0.6765287", "0.6541301", "0.64683455", "0.6451421", "0.641471", "0.6325157", "0.631895", "0.6287249", "0.6239694", "0.61097497", "0.6031763", "0.6025931", "0.5993344", "0.59861416", "0.5983111", "0.5913167",...
0.6799898
5
Creates new Dom element and inserts them before the specified element.
public static native Element insertBefore(String id, String rawHtml)/*-{ return $wnd.Ext.DomHelper.insertBefore(id, rawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public static native Element insertBefore(Element elem, S...
[ "0.78217566", "0.7526047", "0.7320683", "0.72873175", "0.72523785", "0.7233082", "0.69532764", "0.6951995", "0.68649894", "0.6841037", "0.66372705", "0.6602676", "0.65797013", "0.6571963", "0.64921594", "0.64656454", "0.64050865", "0.63280666", "0.63099253", "0.63020676", "0....
0.68494934
9
Creates new Dom element and inserts them before the specified element.
public static native Element insertBefore(String id, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.insertBefore(id, configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public static native Element insertBefore(Element elem, S...
[ "0.782022", "0.75246567", "0.73191994", "0.7284336", "0.7251534", "0.72323215", "0.6952129", "0.69512415", "0.6848284", "0.68383086", "0.66349286", "0.6602596", "0.6577186", "0.6568841", "0.6489855", "0.6466294", "0.6402792", "0.63273275", "0.63074493", "0.63021916", "0.62931...
0.686364
8
Creates new Dom element and inserts them before the specified element.
public static native Element insertBefore(Element elem, String rawHtml)/*-{ return $wnd.Ext.DomHelper.insertBefore(parent, rawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public Node insertBefore(Node node);", "private Node in...
[ "0.78217566", "0.7320683", "0.72873175", "0.72523785", "0.7233082", "0.69532764", "0.6951995", "0.68649894", "0.68494934", "0.6841037", "0.66372705", "0.6602676", "0.65797013", "0.6571963", "0.64921594", "0.64656454", "0.64050865", "0.63280666", "0.63099253", "0.63020676", "0...
0.7526047
1
Creates new Dom element and inserts them before the specified element.
public static native Element insertBefore(Element elem, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.insertBefore(parent, configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public Node insertBefore(Node node);", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "public stat...
[ "0.7526047", "0.7320683", "0.72873175", "0.72523785", "0.7233082", "0.69532764", "0.6951995", "0.68649894", "0.68494934", "0.6841037", "0.66372705", "0.6602676", "0.65797013", "0.6571963", "0.64921594", "0.64656454", "0.64050865", "0.63280666", "0.63099253", "0.63020676", "0....
0.78217566
0
Creates new Dom element and inserts them before the specified element.
public static native Element insertBefore(Element elem, Element sibling)/*-{ return $wnd.Ext.DomHelper.insertBefore(elem, sibling); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public static native Element insertBefore(Element elem, S...
[ "0.78217566", "0.7526047", "0.7320683", "0.72873175", "0.7233082", "0.69532764", "0.6951995", "0.68649894", "0.68494934", "0.6841037", "0.66372705", "0.6602676", "0.65797013", "0.6571963", "0.64921594", "0.64656454", "0.64050865", "0.63280666", "0.63099253", "0.63020676", "0....
0.72523785
4
Creates new Dom element(s) and inserts them as the first child of the parent element.
public static native Element insertFirst(String parentId, String rawHtml)/*-{ return $wnd.Ext.DomHelper.insertFirst(parentId, rawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::g...
[ "0.7410081", "0.7254705", "0.700714", "0.6648105", "0.64541006", "0.64540267", "0.6123723", "0.60421723", "0.60215896", "0.59723073", "0.5963073", "0.590487", "0.5776961", "0.5753304", "0.57476175", "0.5713667", "0.5707972", "0.56843543", "0.5643923", "0.55875015", "0.5571966...
0.6759248
3
Creates new Dom element(s) and inserts them as the first child of the parent element.
public static native Element insertFirst(String parentId, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.insertFirst(parentId, configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::g...
[ "0.7413376", "0.7257513", "0.7009898", "0.67617196", "0.6457774", "0.6453091", "0.61240673", "0.60436726", "0.60229075", "0.59712625", "0.5962262", "0.59038615", "0.5778238", "0.5752311", "0.5745637", "0.5713541", "0.5705264", "0.56832856", "0.5643448", "0.55851644", "0.55739...
0.66505784
4
Creates new Dom element(s) and inserts them as the first child of the parent element.
public static native Element insertFirst(Element parent, String rawHtml)/*-{ return $wnd.Ext.DomHelper.insertFirst(parent, rawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::g...
[ "0.7413376", "0.7257513", "0.67617196", "0.66505784", "0.6457774", "0.6453091", "0.61240673", "0.60436726", "0.60229075", "0.59712625", "0.5962262", "0.59038615", "0.5778238", "0.5752311", "0.5745637", "0.5713541", "0.5705264", "0.56832856", "0.5643448", "0.55851644", "0.5573...
0.7009898
2
Creates new Dom element(s) and inserts them as the first child of the parent element.
public static native Element insertFirst(Element parent, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.insertFirst(parent, configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "public...
[ "0.7413376", "0.7009898", "0.67617196", "0.66505784", "0.6457774", "0.6453091", "0.61240673", "0.60436726", "0.60229075", "0.59712625", "0.5962262", "0.59038615", "0.5778238", "0.5752311", "0.5745637", "0.5713541", "0.5705264", "0.56832856", "0.5643448", "0.55851644", "0.5573...
0.7257513
1
Creates new Dom element(s) and inserts them as the first child of the parent element.
public static native Element insertFirst(Element parent, Element child)/*-{ return $wnd.Ext.DomHelper.insertFirst(parent, child); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, ...
[ "0.7254705", "0.700714", "0.6759248", "0.6648105", "0.64541006", "0.64540267", "0.6123723", "0.60421723", "0.60215896", "0.59723073", "0.5963073", "0.590487", "0.5776961", "0.5753304", "0.57476175", "0.5713667", "0.5707972", "0.56843543", "0.5643923", "0.55875015", "0.5571966...
0.7410081
0
Returns the markup for the passed Element config.
public static native String markup(DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.markup(elem); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> String renderElementMarkup(FormElement<T> element) {\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tif (element.isVisible()) {\n\t\t\tsb.append(renderVisibleElement(element));\n\t\t}\n\t\treturn sb.toString();\n\t}", "public Element getConfig() {\n Element out = new Element(getElementNam...
[ "0.59383416", "0.5824867", "0.58207154", "0.5496328", "0.5482122", "0.54652387", "0.5406261", "0.5362932", "0.5199687", "0.5130057", "0.51227796", "0.5074043", "0.50609505", "0.49344978", "0.4930566", "0.493047", "0.49191177", "0.4914994", "0.49101955", "0.48560235", "0.48547...
0.7891593
0
Creates new Dom element(s) and overwrites the contents of the old element with them.
public static native Element overwrite(String oldId, String newRawHtml)/*-{ return $wnd.Ext.DomHelper.overwrite(oldId, newRawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element overwrite(Element oldElem, Element newElem)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newElem);\r\n\t}-*/;", "public static native Element overwrite(Element oldElem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::...
[ "0.72011256", "0.6594436", "0.6475496", "0.64111286", "0.6141411", "0.59565395", "0.58673596", "0.5838385", "0.58269495", "0.58114874", "0.5768213", "0.5749713", "0.5732488", "0.56561816", "0.5655432", "0.5583912", "0.5576231", "0.55727184", "0.55277413", "0.543726", "0.54127...
0.6396196
4
Creates new Dom element(s) and overwrites the contents of the old element with them.
public static native Element overwrite(String oldId, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.overwrite(oldId, configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element overwrite(Element oldElem, Element newElem)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newElem);\r\n\t}-*/;", "public static native Element overwrite(Element oldElem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::...
[ "0.72011256", "0.6594436", "0.6475496", "0.64111286", "0.6396196", "0.59565395", "0.58673596", "0.5838385", "0.58269495", "0.58114874", "0.5768213", "0.5749713", "0.5732488", "0.56561816", "0.5655432", "0.5583912", "0.5576231", "0.55727184", "0.55277413", "0.543726", "0.54127...
0.6141411
5
Creates new Dom element(s) and overwrites the contents of the old element with them.
public static native Element overwrite(Element oldElem, String newRawHtml)/*-{ return $wnd.Ext.DomHelper.overwrite(oldElem, newRawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element overwrite(Element oldElem, Element newElem)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newElem);\r\n\t}-*/;", "public static native Element overwrite(Element oldElem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::...
[ "0.720307", "0.6595951", "0.641278", "0.63984716", "0.6142927", "0.5956673", "0.58677423", "0.5839994", "0.58285993", "0.58108455", "0.57679856", "0.57510096", "0.5735239", "0.56564605", "0.5656077", "0.5583336", "0.5578871", "0.55726177", "0.5529684", "0.54367864", "0.541356...
0.64777374
2
Creates new Dom element(s) and overwrites the contents of the old element with them.
public static native Element overwrite(Element oldElem, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.overwrite(oldElem, configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element overwrite(Element oldElem, Element newElem)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newElem);\r\n\t}-*/;", "public static native Element overwrite(Element oldElem, String newRawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newRawHtml);\r\n\t}-*/;", "...
[ "0.72011256", "0.6475496", "0.64111286", "0.6396196", "0.6141411", "0.59565395", "0.58673596", "0.5838385", "0.58269495", "0.58114874", "0.5768213", "0.5749713", "0.5732488", "0.56561816", "0.5655432", "0.5583912", "0.5576231", "0.55727184", "0.55277413", "0.543726", "0.54127...
0.6594436
1
Creates new Dom element(s) and overwrites the contents of the old element with them.
public static native Element overwrite(Element oldElem, Element newElem)/*-{ return $wnd.Ext.DomHelper.overwrite(oldElem, newElem); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element overwrite(Element oldElem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, configJS);\r\n\t}-*/;", "public static native Element overwrite(Element oldElem, Str...
[ "0.6594436", "0.6475496", "0.64111286", "0.6396196", "0.6141411", "0.59565395", "0.58673596", "0.5838385", "0.58269495", "0.58114874", "0.5768213", "0.5749713", "0.5732488", "0.56561816", "0.5655432", "0.5583912", "0.5576231", "0.55727184", "0.55277413", "0.543726", "0.541271...
0.72011256
0
Inserts an HTML fragment into the DOM.
public static native String insertHtml(String where, Element el, String html) /*-{ return $wnd.Ext.DomHelper.insertHtml(where, el, html); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert(int index, String fragment);", "@Function DocumentFragment createDocumentFragment();", "public static String insertBlock(String base_html, String delimiter, String block){\r\n delimiter = \"<!--\" + delimiter + \"-->\"; \r\n String[] parts = base_html.split(delimiter);\r...
[ "0.655219", "0.57767254", "0.57510495", "0.57291305", "0.5429791", "0.519389", "0.5121157", "0.51018345", "0.5097502", "0.5085511", "0.5009412", "0.49981752", "0.4992357", "0.4992357", "0.4980106", "0.484694", "0.48378775", "0.48263577", "0.48198202", "0.48091948", "0.4712848...
0.6432973
1
// Method overrides // // Draw the contents of the Fixedpoint iteration demo panel.
public void draw() { super.draw(); k = 0; traceOK = true; // Initialize n, x0, and xn in the control panel. nText.setText(" "); x0Text.setText(" "); xnText.setText(" "); PlotFunction plotFunction = getSelectedPlotFunction(); // Create the fixed-point iteration root finder. finder = new FixedPointRootFinder((Function) plotFunction.getFunction()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String args[])\n {\n Frame test = new Frame();\n FixedPointPanel demo = new FixedPointPanel();\n\n Function function = new Function()\n {\n public float at( float x) { return (float) (x*x + 0.5); }\n// public float at( float x) ...
[ "0.6582966", "0.5937253", "0.5872576", "0.5872576", "0.5872576", "0.5872576", "0.5850877", "0.58118945", "0.5781956", "0.5766978", "0.57257813", "0.57233626", "0.5717216", "0.5715672", "0.57073826", "0.57032275", "0.5615682", "0.5589388", "0.55787396", "0.5573898", "0.5558138...
0.6244976
1
Mouse pressed event handler: Animate the Newton trace. (Callback from the plot panel)
public void mousePressedOnPlot(MouseEvent ev) { if (traceOK) animate(ev.getX()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseDraggedOnPlot(MouseEvent ev)\n {\n if (traceOK) animate(ev.getX());\n }", "void toggleButton_actionPerformed(ActionEvent e) {\n this.togglePlot();\n }", "public void mousePressed(MouseEvent e) {\n\t\tdouble x = e.getX();\n\t\tdouble y = e.getY();\n\t\tswitch (clickTracker) {\n...
[ "0.6959045", "0.6390952", "0.6288426", "0.6246933", "0.6187686", "0.6168197", "0.61177194", "0.6096721", "0.6075902", "0.6062446", "0.60604733", "0.60456914", "0.6040608", "0.6006461", "0.59977776", "0.5988331", "0.5981878", "0.59464777", "0.5941264", "0.5897749", "0.5868152"...
0.7820935
0
Mouse dragged event handler: Animate the Newton trace. (Callback from the plot panel)
public void mouseDraggedOnPlot(MouseEvent ev) { if (traceOK) animate(ev.getX()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseDragged (MouseEvent e) {}", "public void mouseDragged(MouseEvent e) {}", "public void mouseDragged(MouseEvent e){}", "public void mouseDragged( MouseEvent evt ){\n Location x = new Location( evt.getX(), evt.getY() );\n pond.moveAxis(x, canvas);\n\n }", "public void mouseDragged( Mou...
[ "0.6830228", "0.67894065", "0.676974", "0.67566854", "0.6712477", "0.6698323", "0.6695875", "0.6663231", "0.66392726", "0.6597295", "0.6593802", "0.6588278", "0.6575387", "0.65283144", "0.6522456", "0.65190566", "0.6500076", "0.64929605", "0.6484762", "0.64635396", "0.6457361...
0.7891634
0
Notification that a user input error occurred. Disable the Newton trace.
protected void userErrorOccurred() { traceOK = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onErrorOccurred() {\n mUserAwarenessListener.onErrorOccurred(Errors.UNDEFINED);\n\n //start light sensor because eye tracking is not running we don't need light sensor now\n mLightIntensityManager.stopLightMonitoring();\n }", "public void invalid() {\r\n\t\tSystem.out.println(\"Pleas...
[ "0.62679976", "0.62385255", "0.6158652", "0.6053962", "0.60221463", "0.5878992", "0.5823716", "0.57708615", "0.57437885", "0.57343924", "0.5702179", "0.5696705", "0.56855935", "0.56451654", "0.5633564", "0.5633564", "0.559996", "0.55705196", "0.55496144", "0.549013", "0.54842...
0.68631536
0
// Interactive animation // // Animate a fixedpoint iteration trace starting at column c.
private void animate(int c) { // Erase the previous fixed-point iteration trace, if any. if (k > 0) plotLines(cs1, rs1, cs2, rs2, k, Color.red); // Draw a new fixed-point iteration trace. iterate(x0(c)); plotLines(cs1, rs1, cs2, rs2, k, Color.red); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void play(int column);", "public abstract void animation(double seconds);", "public void mo8808a(int i) {\n if (this.f12125b != null) {\n this.f12125b.mo8862c(i);\n }\n if (i == 1) {\n if (this.f12130g != null) {\n this.f12130g.setVisibility(0);\...
[ "0.52327985", "0.50107116", "0.4882087", "0.48601997", "0.4845732", "0.48342156", "0.48255852", "0.48225597", "0.48148206", "0.47849423", "0.4759369", "0.4740534", "0.4698727", "0.46905637", "0.4683305", "0.4660886", "0.46577778", "0.46453747", "0.4638241", "0.46148184", "0.4...
0.7374994
0
Return the starting value x0 at column c.
private float x0(int c) { PlotProperties props = getPlotProperties(); float x0 = props.getXMin() + c*props.getXDelta(); x0Text.setText(Float.toString(x0)); return x0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getStartX();", "public static int getStartXCoordinate(){\n\t\tint x = getThymioStartField_X(); \n\t\t\n\t\tif(x == 0){\n\t\t\n \t}else{\n \t x *= FIELD_HEIGHT;\n \t}\n \t\n\t\treturn x ;\n\t}", "public double getStartX() {\n\treturn v1.getX();\n }", "private double getStartX() {\n\t\tre...
[ "0.6526052", "0.64295936", "0.6411828", "0.63185984", "0.6313321", "0.62641305", "0.62561107", "0.6250003", "0.6241089", "0.6234942", "0.6225662", "0.62133294", "0.6192746", "0.61789745", "0.6178935", "0.6167192", "0.61505854", "0.6136924", "0.6076697", "0.60762596", "0.60754...
0.75627476
0
Iterate to create the graphic trace of fixedpoint iteration starting at x0.
private void iterate(float x0) { // Plot properties. PlotProperties plotProps = getPlotProperties(); int w = plotProps.getWidth(); int h = plotProps.getHeight(); int xAxisRow = plotProps.getXAxisRow(); int yAxisCol = plotProps.getYAxisColumn(); float xMin = plotProps.getXMin(); float yMax = plotProps.getYMax(); float deltaX = plotProps.getXDelta(); float deltaY = plotProps.getYDelta(); float xn; float gn; boolean converged = false; k = 0; finder.reset(x0); // Apply fixed-point iteration. For each iteration, plot // the vertical at xn and the horizontal to the y = x line. do { try { converged = finder.step(); } catch(RootFinder.IterationCountExceededException ex) { iterationLimitExceeded(MAX_ITERS, xnText); return; } catch(RootFinder.PositionUnchangedException ex) { // ignore } xn = finder.getXn(); gn = finder.getGn(); int c, r; // Plot the vertical. The initial vertical is from // (x0, 0) to (x0, g(x0)). Subsequent verticals are // from (xn, xn) to (xn, g(xn)). c = Math.min(Short.MAX_VALUE, Math.max(Short.MIN_VALUE, Math.round((xn - xMin)/deltaX))); cs1[k] = c; rs1[k] = k == 0 ? xAxisRow : rs1[k-1]; cs2[k] = cs1[k]; r = Math.min(Short.MAX_VALUE, Math.max(Short.MIN_VALUE, Math.round((yMax - gn)/deltaY))); rs2[k] = r; ++k; // Plot the horizontal from (xn, g(xn)) to // (g(xn), g(xn)). cs1[k] = cs2[k-1]; rs1[k] = rs2[k-1]; c = Math.min(Short.MAX_VALUE, Math.max(Short.MIN_VALUE, Math.round((gn - xMin)/deltaX))); cs2[k] = c; rs2[k] = rs1[k]; ++k; } while (!converged); // Update the n and xn text controls. nText.setText(Integer.toString(finder.getIterationCount())); xnText.setText(Float.toString(xn)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw()\n {\n super.draw();\n k = 0;\n traceOK = true;\n\n // Initialize n, x0, and xn in the control panel.\n nText.setText(\" \");\n x0Text.setText(\" \");\n xnText.setText(\" \");\n\n PlotFunction plotFunction = getSelectedPlotFunction();\n\n...
[ "0.6171544", "0.59811616", "0.5966115", "0.58958334", "0.5846034", "0.5648952", "0.5614087", "0.55568683", "0.55256796", "0.5525641", "0.54999185", "0.54963225", "0.543733", "0.54165554", "0.5401748", "0.53614664", "0.53338796", "0.52872884", "0.52458376", "0.52357566", "0.52...
0.7142506
0
// Debugging // // Main for debugging.
public static void main(String args[]) { Frame test = new Frame(); FixedPointPanel demo = new FixedPointPanel(); Function function = new Function() { public float at( float x) { return (float) (x*x + 0.5); } // public float at( float x) { return (float) Math.sqrt(x); } }; PlotFunction plotFunction = new PlotFunction(function, -2.25f, 2.25f, -1.25f, 5.25f); FUNCTIONS[0] = plotFunction; /* Function function = new Function() { public float at( float x) { return (float) Math.exp(1/x); } }; PlotFunction plotFunction = new PlotFunction(function, -3.25f, 4.255f, -0.25f, 5.25f); */ test.setTitle("Fixed Point Test"); test.setSize(600, 500); test.setLayout(new BorderLayout()); test.add(demo, BorderLayout.CENTER); test.setVisible(true); demo.chooseFunction(0); demo.draw(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void debug() {\n\n }", "public void debug(String msg);", "public static void debugInfo() { throw Extensions.todo(); }", "public void debug(String message);", "public void debug(String comment);", "private void debug(String str) {\n }", "public abstract void debug(PrintStream console);", ...
[ "0.7729894", "0.6731185", "0.67283857", "0.6719095", "0.6716858", "0.6672792", "0.6607376", "0.65936065", "0.65729344", "0.6515191", "0.65108484", "0.6481813", "0.6465539", "0.6447803", "0.6425741", "0.63998383", "0.638058", "0.63743323", "0.63734037", "0.6362642", "0.6339114...
0.0
-1
Getting the place entered
@Override public void onClick(View v) { String location = etPlace.getText().toString(); if(location==null || location.equals("")){ Toast.makeText(getBaseContext(), "No Place is entered", Toast.LENGTH_SHORT).show(); return; } else if(location!=null && !location.equals("")){ new GeocoderTask().execute(location); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String Get_place() \n {\n\n return place;\n }", "Place getPlace();", "public String getPlace() {\n return place;\n }", "public String getPlace() {\n return place;\n }", "public String getPlace() {\n return place;\n }", "public String getPlace() {\n ret...
[ "0.71617323", "0.688328", "0.682957", "0.682957", "0.682957", "0.682957", "0.68235135", "0.674193", "0.664385", "0.6618593", "0.6592899", "0.6511062", "0.6397234", "0.63478786", "0.6343237", "0.62517697", "0.6241996", "0.62171817", "0.6120335", "0.6020376", "0.60046065", "0...
0.5547146
67
TODO Autogenerated method stub
@Override public void onClick(View v) { putExtra(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onLocationChanged(Location loc) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onStatusChanged(String provider, int status, Bundle extras) { }
{ "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
Check if no view has focus:
private void hideKeyboard() { View view = this.getCurrentFocus(); if (view != null) { InputMethodManager inputManager = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean m36208d(View view) {\n return view != null && view.hasWindowFocus();\n }", "public boolean hasFocus() {\n return hasFocus;\n }", "@Override\r\n\tpublic boolean isFocused() {\n\t\treturn false;\r\n\t}", "boolean hasFocus() {\n\t\t\tif (text == null || text.isDisposed())...
[ "0.752144", "0.71540445", "0.71503836", "0.71252257", "0.6989558", "0.6839896", "0.6835727", "0.68034774", "0.67644054", "0.6644914", "0.65743554", "0.65302986", "0.6448699", "0.643322", "0.6394429", "0.6380685", "0.63306206", "0.6325382", "0.63178706", "0.62391496", "0.62239...
0.0
-1
Creating an instance of Geocoder class
@Override protected List<Address> doInBackground(String... locationName) { Geocoder geocoder = new Geocoder(getBaseContext()); List<Address> addresses = null; try { // Getting a maximum of 3 Address that matches the input text addresses = geocoder.getFromLocationName(locationName[0], 3); } catch (IOException e) { e.printStackTrace(); } return addresses; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GeocodingException() {\n\t}", "public static GeoCoderInterface createGeoCoder(){\n\t\tif (Config.default_geo_api.equals(OSM)){\n\t\t\t//TODO: implement\n\t\t\tDebugger.println(\"GeoFactory - unknown GeoCoderInterface: \" + Config.default_geo_api, 1);\n\t\t\treturn null;\n\t\t}else if (Config.default_geo_a...
[ "0.682636", "0.66641825", "0.65198976", "0.6424532", "0.63989425", "0.61385816", "0.60598373", "0.60001343", "0.59979236", "0.59896755", "0.59627205", "0.5958791", "0.59531915", "0.5951015", "0.5945259", "0.59357035", "0.5933489", "0.5933489", "0.5919816", "0.5911884", "0.589...
0.0
-1
TODO Autogenerated method stub
@Override public List<BookshelfinfoEntity> queryAllBookshelfinfo() { return this.sqlSessionTemplate.selectList("bookshelfinfo.select"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public int updateBookshelfinfo(BookshelfinfoEntity bookshelfinfoEntity) { return this.sqlSessionTemplate.update("bookshelfinfo.update", bookshelfinfoEntity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public int addBookshelfinfo(BookshelfinfoEntity bookshelfinfoEntity) { return this.sqlSessionTemplate.insert("bookshelfinfo.add", bookshelfinfoEntity); }
{ "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
Constructs a new runtime exception.
public InvalidTinyExpressionException() { super("Not Found or Invalid Tiny Expression"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RuntimeMBeanException(RuntimeException paramRuntimeException, String paramString) {\n/* 66 */ super(paramString);\n/* 67 */ this.runtimeException = paramRuntimeException;\n/* */ }", "public NSException() {\n\t\tsuper();\n\t\tthis.exception = new Exception();\n\t}", "public JavaException()\r...
[ "0.68244356", "0.6662815", "0.6639329", "0.655207", "0.65445566", "0.6529871", "0.649653", "0.64456373", "0.6389582", "0.6366226", "0.6337654", "0.63092524", "0.6246431", "0.6182675", "0.61772054", "0.6164842", "0.6133074", "0.6124212", "0.6104694", "0.61026967", "0.60925496"...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904163", "0.7805678", "0.7766155", "0.77271765", "0.7631901", "0.76217514", "0.75843245", "0.7530648", "0.74879694", "0.74575084", "0.74575084", "0.7438342", "0.742121", "0.7402876", "0.7391506", "0.7386729", "0.7379215", "0.73702943", "0.7361895", "0.7355702", "0.7345358...
0.0
-1
Handle navigation view item clicks here.
public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.nav_report) { // Handle the camera action } else if (id == R.id.nav_qanda) { } else if (id == R.id.nav_logout){ System.out.println("확인"); LoginManager.getInstance().logOut(); Intent intent = new Intent(getApplicationContext(), LoginActivity.class); startActivity(intent); finish(); } DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tr...
[ "0.7882029", "0.7235578", "0.6987005", "0.69458413", "0.6917864", "0.6917864", "0.6883472", "0.6875181", "0.68681556", "0.6766498", "0.67418456", "0.67207", "0.6716157", "0.6713947", "0.6698189", "0.66980195", "0.66793925", "0.66624063", "0.66595167", "0.6646381", "0.6641224"...
0.0
-1
TODO Autogenerated method stub
@Override public CoachLoginSuccessInfo getCoachInfoByName(String loginName) { return dao.getCoachInfoByName(loginName); }
{ "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
JAVADOC Method Level Comments
public String myNodeId() { if (nodeId == null) { nodeId = UUID.randomUUID(); LOG.debug("My node id=" + nodeId.toString()); } return nodeId.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void comment() {\n\t\t\n\t}", "@Override\n public void comment(String comment)\n {\n }", "String getDocumentation();", "String getDocumentation();", "@Override\n public String visit(JavadocComment n, Object arg) {\n return null;\n }", "@Override\n protected St...
[ "0.7081584", "0.6908349", "0.6906563", "0.6906563", "0.68394625", "0.6762672", "0.6746507", "0.6638255", "0.65705705", "0.6555034", "0.6555034", "0.6555034", "0.6555034", "0.6555034", "0.6555034", "0.6552297", "0.647397", "0.6454341", "0.6454341", "0.6450465", "0.6450465", ...
0.0
-1
end of main() method Calculating XClosure Method
public static Set<Character> XClosure(FDs fd, Set<Character> x) { Set <Character> closure = new TreeSet<Character>(x); // take a new set object int size0 = 0; while(size0 < closure.size()) // it trues because closure has value of X // which contains intial characters whose closure we have to find ex: BHE { size0 = closure.size(); // left object contains left side of FDs which are keys // so add those attributes which are right side of keys from closure. // call getFDMap() // call keySet() which is in-built method of java // ex: find BHE closure. First it gets keys(which are at left side of FDs) of B, H, E individually or together // Now it adds all attribute from right side. And again check left side of all attributes we get at a first time from a loop // if we get another attributes which is a part of keys then it adds otherwise stops a loop and gives a final answer // Like, BHE closure: first check B into left side and if it is a part of a key then add right side of attributes in closure // B is part of key AB and from it we derives E but E is already in closure so it checks next // then check BE together and add I into closure // then check E and add G into closure // then check GI together and add H into closure // now there are not any other attribute from left side is same as closure so it stops and gives the final answer BHEIG. for( Set<Character> left : fd.getFDMap().keySet()) { if(closure.containsAll(left)) { closure.addAll(fd.getFDMap().get(left)); } } } // end of loop return closure; // return closure }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo57278c();", "void mo57277b();", "void mo67924c();", "public final void cpp() {\n }", "public void mo56167c() {\n }", "void mo80457c();", "public void mo1403c() {\n }", "public void mo21793R() {\n }", "void mo17012c();", "public void mo21792Q() {\n }", "void mo72114c();", ...
[ "0.5760755", "0.56626177", "0.56497276", "0.5635589", "0.56246233", "0.5614012", "0.5577337", "0.5574505", "0.55642754", "0.5550393", "0.55342335", "0.5523079", "0.5510282", "0.5495875", "0.5483002", "0.54779917", "0.5475262", "0.5469157", "0.5468098", "0.5465886", "0.5445133...
0.0
-1
Set the Document Service.
public void setDocumentService(DocumentService documentService) { this.documentService = documentService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDocumentService(DocumentService documentService) {\r\n this.documentService = documentService;\r\n }", "@Override\n public void setLoadService(DocumentStorageService service) {\n this.service = service;\n }", "public void setService(Text newService) {\n service = newSer...
[ "0.8207813", "0.72019804", "0.6881298", "0.6865824", "0.6856563", "0.6778184", "0.6778184", "0.6778184", "0.65922827", "0.65922654", "0.6565076", "0.6455546", "0.64506835", "0.644772", "0.64186585", "0.64186585", "0.64186585", "0.63914216", "0.63760847", "0.63506526", "0.6349...
0.8142885
1
Set the ProtocolBase Action Service.
public void setProtocolActionService(ProtocolActionService protocolActionService) { this.protocolActionService = protocolActionService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setService(AbsYJACommonService yjaService) throws Exception {\n\t\tthis.yjaService = yjaService;\n\t\tthis.yjaService.setInitialInfo(actionModel);\n\t}", "public abstract void setServiceType(String serviceType);", "public abstract void setServiceName(String serviceName);", "@Override\n\tpublic...
[ "0.55832386", "0.5481239", "0.5410429", "0.531512", "0.5273259", "0.52505964", "0.5185817", "0.5174628", "0.51620984", "0.51140696", "0.5112145", "0.5106007", "0.5104994", "0.50964683", "0.50860244", "0.5073514", "0.50637865", "0.5046674", "0.5041258", "0.49951297", "0.499382...
0.7149291
0
Set the Business Object Service.
public void setBusinessObjectService(BusinessObjectService businessObjectService) { this.businessObjectService = businessObjectService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setBusinessObjectService(BusinessObjectService businessObjectService) {\n this.businessObjectService = businessObjectService;\n }", "public void setBusinessObjectService(BusinessObjectService businessObjectService) {\r\n this.businessObjectService = businessObjectServi...
[ "0.8348757", "0.8167264", "0.71954453", "0.7054389", "0.702019", "0.68934524", "0.6817466", "0.66503686", "0.6589954", "0.64286566", "0.6390116", "0.63085234", "0.630327", "0.6294723", "0.6294723", "0.6294723", "0.6289938", "0.6256125", "0.62512916", "0.624012", "0.6231202", ...
0.81135535
2
When a protocol is submitted for review, an action entry must be added to the protocol. This action entry is a history of the major events that have occurred during the life of the protocol. Also, for a submission, a Submission BO must be created. It contains all of the relevant data for a submission: type, checklists, reviewers, etc.
public void submitToIacucForReview(IacucProtocol protocol, IacucProtocolSubmitAction submitAction) throws Exception { /* * The submission is saved first so that its new primary key can be added * to the protocol action entry. */ String prevSubmissionStatus = protocol.getProtocolSubmission().getSubmissionStatusCode(); String submissionTypeCode = protocol.getProtocolSubmission().getSubmissionTypeCode(); IacucProtocolSubmission submission = createProtocolSubmission(protocol, submitAction); /* * If this is an initial submission, then set the initial submission date. */ if (protocol.getInitialSubmissionDate() == null) { protocol.setInitialSubmissionDate(new Date(submission.getSubmissionDate().getTime())); } getIacucProtocolAssignReviewersService().assignReviewers(submission, submitAction.getReviewers()); IacucProtocolAction protocolAction = new IacucProtocolAction(protocol, submission, IacucProtocolActionType.SUBMITTED_TO_IACUC); protocolAction.setComments(SUBMITTED_TO_IACUC); //For the purpose of audit trail protocolAction.setPrevProtocolStatusCode(protocol.getProtocolStatusCode()); protocolAction.setPrevSubmissionStatusCode(prevSubmissionStatus); protocolAction.setSubmissionTypeCode(submissionTypeCode); protocolAction.setCreatedSubmission(true); protocol.getProtocolActions().add(protocolAction); IacucProtocolStatus protocolStatus = new IacucProtocolStatus(); protocolStatus.setProtocolStatusCode(IacucProtocolActionType.SUBMITTED_TO_IACUC); protocolStatus.setDescription(SUBMITTED_TO_IACUC); protocol.setProtocolStatus(protocolStatus); protocol.setProtocolStatusCode(IacucProtocolActionType.SUBMITTED_TO_IACUC); protocolActionService.updateProtocolStatus(protocolAction, protocol); if (submission.getScheduleIdFk() != null) { updateDefaultSchedule(submission); } businessObjectService.delete(protocol.getProtocolDocument().getPessimisticLocks()); protocol.getProtocolDocument().getPessimisticLocks().clear(); documentService.saveDocument(protocol.getProtocolDocument()); protocol.refresh(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected IacucProtocolSubmission createProtocolSubmission(IacucProtocol protocol, IacucProtocolSubmitAction submitAction) {\n IacucProtocolSubmissionBuilder submissionBuilder = new IacucProtocolSubmissionBuilder(protocol, submitAction.getSubmissionTypeCode());\n submissionBuilder.setSubmissionTypeQu...
[ "0.56752175", "0.5558944", "0.518296", "0.50208944", "0.5014295", "0.49078122", "0.4867213", "0.4850453", "0.4803537", "0.4785736", "0.4784007", "0.47696227", "0.47315732", "0.47277743", "0.47187144", "0.4687315", "0.4682378", "0.4677651", "0.46684277", "0.46505728", "0.46017...
0.5571709
1
Create a ProtocolBase Submission.
protected IacucProtocolSubmission createProtocolSubmission(IacucProtocol protocol, IacucProtocolSubmitAction submitAction) { IacucProtocolSubmissionBuilder submissionBuilder = new IacucProtocolSubmissionBuilder(protocol, submitAction.getSubmissionTypeCode()); submissionBuilder.setSubmissionTypeQualifierCode(submitAction.getSubmissionQualifierTypeCode()); submissionBuilder.setProtocolReviewTypeCode(submitAction.getProtocolReviewTypeCode()); setSubmissionStatus(submissionBuilder, submitAction); setCommittee(submissionBuilder, submitAction); setSchedule(submissionBuilder, submitAction); return submissionBuilder.create(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract DankSubmissionRequest build();", "ExpProtocol insertProtocol(@NotNull ExpProtocol baseProtocol, @Nullable List<ExpProtocol> steps, @Nullable Map<String, List<String>> predecessors, User user) throws ExperimentException;", "private static void createSubmission(String[] attributes, int docuID, in...
[ "0.5908602", "0.54306334", "0.5345706", "0.52961516", "0.525248", "0.52495044", "0.51056844", "0.50901216", "0.5081819", "0.500371", "0.49813208", "0.49270067", "0.49228752", "0.48855296", "0.4884805", "0.4878602", "0.48601615", "0.48324305", "0.4829539", "0.48065573", "0.480...
0.7224977
0
Set the submission status.
protected void setSubmissionStatus(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) { // not setting committee during submit in iacuc so need not check that like in irb. submissionBuilder.setSubmissionStatus(IacucProtocolSubmissionStatus.PENDING); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStatus(JobStatus status);", "public void testSetSubmissionStatus() {\n try {\n sub.setSubmissionStatus(null);\n } catch (Exception e) {\n fail(\"Should not throw anything.\");\n }\n }", "@Override\n\tpublic void setJobStatus(int jobStatus) {\n\t\tmod...
[ "0.7293228", "0.6967947", "0.6936256", "0.68302834", "0.6826004", "0.6809234", "0.67957336", "0.67809516", "0.6777023", "0.6758813", "0.67533785", "0.67533785", "0.6747627", "0.6747627", "0.67431474", "0.6740284", "0.6740284", "0.6740284", "0.6740284", "0.67367655", "0.673664...
0.71333915
1
Set committee for the submission.
protected void setCommittee(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) { submissionBuilder.setCommittee(submitAction.getNewCommitteeId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCommittee(List<Professor> list) {\r\n committee = list;\r\n }", "public void addCommitteeMember(Professor p) {\r\n committee.add(p);\r\n }", "@When ( \"I assign representee (.+) for the patient (.+)\" )\n public void hcpAssignTee ( final String tee, final String tive ) {\n...
[ "0.6552587", "0.5699505", "0.5682174", "0.5644578", "0.5590861", "0.5137599", "0.4978819", "0.48985782", "0.48774856", "0.48707092", "0.4865798", "0.48119822", "0.4799101", "0.47529033", "0.47427598", "0.47284788", "0.47190833", "0.47148702", "0.4701083", "0.4697907", "0.4687...
0.74211615
0
Set schedule for the submission.
protected void setSchedule(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) { submissionBuilder.setSchedule(submitAction.getNewScheduleId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setSchedule(java.lang.String schedule);", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "public final void setSchedule(java.util.Date schedule)\n\t{\n\t\tsetSchedule(get...
[ "0.7665371", "0.75039953", "0.7164177", "0.709807", "0.7087025", "0.6860684", "0.68364435", "0.6797201", "0.6669702", "0.66194046", "0.6563811", "0.651514", "0.6340113", "0.6306554", "0.6276736", "0.6215156", "0.60806394", "0.59735847", "0.5932552", "0.5906282", "0.5890398", ...
0.6934721
5
The default constructor. It loads properties from repository into memory if there is any.
public PSBeanProperties() { loadProperties(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void initRepository() {\n deserialize();\n if (flightRepository == null) {\n flightRepository = new FlightRepository();\n }\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private ObjectRepository() {\n\t}", ...
[ "0.7099234", "0.67202", "0.66058445", "0.6554916", "0.6436759", "0.64255977", "0.64182544", "0.63610214", "0.6344213", "0.6305799", "0.61778015", "0.6168118", "0.61091155", "0.6107117", "0.60739183", "0.60557353", "0.6046731", "0.6034666", "0.6008736", "0.5991065", "0.5978873...
0.63893425
7
Loads the properties from file into memory. Do nothing if there is no properties file.
@SuppressWarnings("unchecked") private void loadProperties() { File f = getPropertiesFile(); if (!f.exists()) return; m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void load() {\n\t\ttry {\n\t\t\tfinal FileInputStream fis = new FileInputStream(propertyFile);\n\t\t\tfinal Properties newProperties = new Properties();\n\t\t\tnewProperties.load(fis);\n\t\t\ttimeLastRead = propertyFile.lastModified();\n\t\t\tproperties = newProperties;\n\t\t\tfis.close();\n\t\t} catch (final Exce...
[ "0.80370486", "0.8032012", "0.77031595", "0.7561896", "0.7548645", "0.74837697", "0.7281896", "0.72395587", "0.72131187", "0.7131818", "0.7128367", "0.7093615", "0.70499474", "0.7047157", "0.70417887", "0.7007766", "0.6993818", "0.6986561", "0.6981396", "0.6964518", "0.694303...
0.7979923
2
Saves current properties into the properties file.
private void saveProperties() { PSConfigUtils.saveObjectToFile(m_props, getPropertiesFile()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void save() {\n try {\n FileOutputStream fos = new FileOutputStream(file);\n properties.store(fos, \"Preferences\");\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public static void save...
[ "0.830144", "0.8246427", "0.82045007", "0.80427706", "0.7915705", "0.78601813", "0.7636705", "0.7531519", "0.7419547", "0.73383486", "0.73276377", "0.7301724", "0.72563064", "0.72438586", "0.7166647", "0.7114225", "0.6924636", "0.6880813", "0.68275857", "0.6789528", "0.676901...
0.85157216
0
/ //see base class method for details
@SuppressWarnings("unchecked") public List getList(String name) { Object v = getProperty(name); return (v == null) ? null : (List) v; }
{ "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\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\...
[ "0.69670147", "0.6846433", "0.68144584", "0.6789065", "0.6634276", "0.6634276", "0.65884495", "0.65696484", "0.653439", "0.6527828", "0.64098823", "0.639524", "0.639215", "0.639215", "0.63813776", "0.6326717", "0.6313167", "0.63082933", "0.6299152", "0.6285929", "0.62810576",...
0.0
-1
/ //see base class method for details
@SuppressWarnings("unchecked") public Map getMap(String name) { Object v = getProperty(name); return (v == null) ? null : (Map) v; }
{ "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\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\...
[ "0.69670147", "0.6846433", "0.68144584", "0.6789065", "0.6634276", "0.6634276", "0.65884495", "0.65696484", "0.653439", "0.6527828", "0.64098823", "0.639524", "0.639215", "0.639215", "0.63813776", "0.6326717", "0.6313167", "0.63082933", "0.6299152", "0.6285929", "0.62810576",...
0.0
-1
/ //see base class method for details
public Object getProperty(String name) { return m_props.get(name); }
{ "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\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\...
[ "0.69670147", "0.6846433", "0.68144584", "0.6789065", "0.6634276", "0.6634276", "0.65884495", "0.65696484", "0.653439", "0.6527828", "0.64098823", "0.639524", "0.639215", "0.639215", "0.63813776", "0.6326717", "0.6313167", "0.63082933", "0.6299152", "0.6285929", "0.62810576",...
0.0
-1
/ //see base class method for details
public String getString(String name) { Object v = getProperty(name); return (v == null) ? null : (String) v; }
{ "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\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\...
[ "0.69670147", "0.6846433", "0.68144584", "0.6789065", "0.6634276", "0.6634276", "0.65884495", "0.65696484", "0.653439", "0.6527828", "0.64098823", "0.639524", "0.639215", "0.639215", "0.63813776", "0.6326717", "0.6313167", "0.63082933", "0.6299152", "0.6285929", "0.62810576",...
0.0
-1
/ //see base class method for details
public void save(Map<String, Object> props) { if (props == null) throw new IllegalArgumentException("props may not be null."); m_props.putAll(props); saveProperties(); }
{ "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\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\...
[ "0.69670147", "0.6846433", "0.68144584", "0.6789065", "0.6634276", "0.6634276", "0.65884495", "0.65696484", "0.653439", "0.6527828", "0.64098823", "0.639524", "0.639215", "0.639215", "0.63813776", "0.6326717", "0.6313167", "0.63082933", "0.6299152", "0.6285929", "0.62810576",...
0.0
-1
Gets the properties. This is not exposed through the interface, but can be called directly, e.g., from unit test.
public Map<String, Object> getProperties() { return m_props; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Properties getProperties() { return props; }", "public Properties getProperties() {\n\t\treturn this.properties;\n\t}", "public Hashtable getProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getProperties();\n }", "public Properties getPropert...
[ "0.8336108", "0.8321469", "0.8316204", "0.8264495", "0.82626754", "0.8250307", "0.82410103", "0.8180038", "0.81769556", "0.81444746", "0.8135515", "0.8118921", "0.8113789", "0.80562043", "0.80550027", "0.8038452", "0.80050194", "0.8002203", "0.80017275", "0.79992497", "0.7946...
0.80240726
16
Gets the properties file. This is not exposed through the interface, but can be called directly, e.g., from unit test.
public File getPropertiesFile() { if (m_file != null) return m_file; String path = PSServer.getRxDir() + "/" + PSConfigService.CONFIG_FILE_BASE + "/BeanProperties.xml"; m_file = new File(path); return m_file; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "File getPropertiesFile();", "public File getPropertiesFile() {\n return propertiesFile;\n }", "public String getPropertyFile() {\n return propertyFile;\n }", "public File getPropertyFile() { return propertyFile; }", "public String getPropertyFile()\n\t{\n\t\treturn propertyFile;\n\t}", "pub...
[ "0.85232383", "0.8257259", "0.81351596", "0.80918825", "0.8069219", "0.7774387", "0.7773241", "0.77117336", "0.7627644", "0.7599165", "0.7555719", "0.74579346", "0.74059886", "0.7349626", "0.7220202", "0.72023094", "0.72023094", "0.7194898", "0.7192817", "0.7156232", "0.71243...
0.80033433
5
Constructor function used to initialize the SlideshowEditor JFrame Creates all necessary GUI components and enables them for use
public SlideshowEditor() { // INITIALIZING THE WINDOW try { //set theme for SlideshowEditors UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { e.printStackTrace(); } setTitle("Slideshow Editor"); setLayout(new BorderLayout()); // CREATING THE TIMELINE timeline = Timeline.getInstance(); add(timeline, BorderLayout.EAST); // CREATING THE MEDIA LIBRARIES libraries = new JTabbedPane(); m_ImageLibrary = ImageLibrary.getInstance(timeline, null); //initialize libraries with null since user has not selected a directory JScrollPane spImages = new JScrollPane(m_ImageLibrary); spImages.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); spImages.getVerticalScrollBar().setUnitIncrement(20); libraries.add("Images", spImages); m_AudioLibrary = AudioLibrary.getInstance(timeline, null); JScrollPane spAudio = new JScrollPane(m_AudioLibrary); spAudio.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); spAudio.getVerticalScrollBar().setUnitIncrement(20); libraries.add("Audio", spAudio); libraries.setPreferredSize(new Dimension(1000,750)); add(libraries, BorderLayout.WEST); libraries.setBorder(BorderFactory.createTitledBorder("Media")); libraries.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { timeline.setActivePane(libraries.getSelectedIndex()); //makes sure Timeline tab matches selected library } }); timeline.enablePaneMatch(libraries); // CONFIGURING THE WINDOW JMenuBar topMenu = new JMenuBar(); //create a menu bar for the window setJMenuBar(topMenu); JMenu fileMenu = new JMenu("File"); topMenu.add(fileMenu); JMenuItem newDirectory = new JMenuItem("Set Directory"); //allow user to set directory for Slideshow creation newDirectory.addActionListener(event -> changeDirectory()); newDirectory.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.CTRL_MASK)); //add keyboard shortcut Ctrl + O fileMenu.add(newDirectory); JMenuItem exportSlideshow = new JMenuItem("Export Slideshow"); exportSlideshow.addActionListener(event -> timeline.exportSlideshow(automated)); exportSlideshow.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK)); //add keyboard shortcut Ctrl + S fileMenu.add(exportSlideshow); JMenuItem closeProgram = new JMenuItem("Exit"); //add Exit Program button to File menu closeProgram.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { System.exit(0); } }); fileMenu.add(closeProgram); JMenu settingsMenu = new JMenu("Settings"); topMenu.add(settingsMenu); JMenuItem changeSettings = new JMenuItem("Change Playback Settings"); changeSettings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { if (!settingsPresent) { settingsPresent = true; settingsPopup(); } else settingsFrame.toFront(); } }); settingsMenu.add(changeSettings); JMenu helpMenu = new JMenu("Help"); topMenu.add(helpMenu); JMenuItem tutorial = new JMenuItem("Tutorial"); String tutorialMsg = "<html>Creating a slideshow is easy!<br><ol><li>Open the folder containing the image and audio files you'd like to use. (File -> Set Directory)</li>" + "<li>To add image and audio files to your slideshow, just click \"Add\" under the given image/audio file.</li>" + "<li>To set your slideshow to play back automatically, open the settings window (Settings -> Change Playback Settings) and click the \"Automatic Slideshow\" checkbox. <br>From there, click the \"Submit Changes\" button to save your settings. (To set it back to manual, just do the reverse!)</li>" + "<li>To change the default slide duration of an automatic slideshow, open the settings window and change the value in the \"Default Slide Duration\" textbox. <br>From there, click the \"Submit Changes\" button to save your settings.</li>" + "<li>To change the duration of an individual slide in an automatic slideshow, uncheck the \"Use Default Slide Duration\" at the bottom of the slide item in the Timeline.<br>From there, click the \"Change Duration\" button to the right of the slide duration value and enter a new value.<br>(To set it back to the default slide duration, just recheck the \"Use Default Slide Duration\" checkbox!)</li>" + "<li>To set a transition to play at the beginning of a slide, select a transition type from the \"Transition Type\" dropdown at the top of a slide item.</li>" + "<li>To change the duration of a slide's transition, select a transition duration from the \"Transition Duration\" dropdown at the top of a slide item.<br>(This dropdown will only be enabled if a transition has been set.)</li>" + "<li>To move a slide up/down the timeline, click the \"Move Up/Down\" button at the bottom of a slide item.</li>" + "<li>To remove a slide from your slideshow, click the \"Remove\" button at the bottom on a slide item.</li>" + "<li>Audio items in the Timeline work the same as slide items, except they can't use transitions.</li>" + "<li>To export your slideshow, navigate to File -> Export Slideshow. From there, give your slideshow a name and click save!<br>Your slideshow is now stored in the same folder as your image and audio files.</li></ol>" + "NOTE: The left column of blocks in the \"Timing\" area of the screen, present when creating an automatic slideshow, represents slides. The right column represents audio clips.<br></html>"; tutorial.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { JOptionPane.showMessageDialog(null, tutorialMsg, "Tutorial", JOptionPane.INFORMATION_MESSAGE); } }); helpMenu.add(tutorial); ImageIcon windowIcon = new ImageIcon("images\\SlideshowIcon.png"); // TODO: Uncomment below for JAR //ImageIcon windowIcon = new ImageIcon(getClass().getClassLoader().getResource("SlideshowIcon.png")); Image icon = windowIcon.getImage(); setIconImage(icon); setSize(new Dimension(1500, 750)); setResizable(false); setDefaultCloseOperation(EXIT_ON_CLOSE); pack(); setLocationRelativeTo(null); setVisible(true); String welcomeMsg = "<html><div style='text-align: center;'>Welcome to the greatest slideshow creator ever made.<br>To start creating a slideshow, " + "use the \"File\" menu in the top left corner<br>and select \"Set Directory\" and find the directory containing the images and audio you'd like to work with.<br>" + "This will also be the directory you'll save your slideshow into.<br>Go ahead. Select one. (You know you want to.)</div></html>"; JOptionPane.showMessageDialog(null, welcomeMsg, "Welcome to Slideshow Editor!", JOptionPane.INFORMATION_MESSAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Editor() {\n initComponents();\n this.setTitle(\"Diario “La Otra Perspectiva”\");\n this.setLocationRelativeTo(null);\n }", "public PhotoViewerGUI() {\r\n initComponents();\r\n }", "public FrameDesign() {\n initComponents();\n }", "private void initComponent...
[ "0.73354256", "0.7211274", "0.71689403", "0.71188426", "0.7107017", "0.70955545", "0.7066566", "0.6966782", "0.6966017", "0.69578665", "0.6951518", "0.69429654", "0.6924489", "0.69210535", "0.69171846", "0.69096506", "0.6899177", "0.6875343", "0.6842628", "0.6826885", "0.6825...
0.81065905
0
This function is used to popup the settings panel
private void settingsPopup() { settingsFrame = new JFrame("Slideshow Settings"); JPanel settingsPanel = new JPanel(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // Set initial parameters for grid bag constraints c.gridx = 1; c.gridy = 0; c.weighty = 0.5; c.gridwidth = 3; c.anchor = GridBagConstraints.CENTER; JCheckBox automatedCheckBox = new JCheckBox("Automatic Slideshow"); JLabel slideIntervalLabel = new JLabel("Default Slide Duration (sec): "); JTextField slideIntervalTF = new JTextField(String.valueOf(slideInterval)); slideIntervalTF.setPreferredSize(new Dimension(50,25)); if (automated) //only allow user to set a Slide interval if "Automatic Slideshow" is selected { automatedCheckBox.setSelected(true); slideIntervalTF.setEnabled(true); } else { automatedCheckBox.setSelected(false); slideIntervalTF.setEnabled(false); } automatedCheckBox.addActionListener(new ActionListener() //makes interval field active/inactive as user checks/unchecks the box { @Override public void actionPerformed(ActionEvent e) { if (automatedCheckBox.isSelected()) { slideIntervalTF.setEnabled(true); slideIntervalTF.setText("3.0"); } else { slideIntervalTF.setEnabled(false); slideIntervalTF.setText("0.0"); } } }); JButton submitChanges = new JButton("Submit Changes"); submitChanges.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { automated = automatedCheckBox.isSelected(); try { slideInterval = Double.parseDouble(slideIntervalTF.getText()); if (slideInterval <= 0 && automated) { automated = false; JOptionPane.showMessageDialog(null, "Invalid Slide Interval entered!"); } else if(slideInterval > 0) { timeline.setDefaultSlideDuration(slideInterval); timeline.setSlideDurationVisible(automated); timeline.setTimingVisible(automated); pack(); setLocationRelativeTo(null); settingsPresent = false; settingsFrame.dispose(); } else { automated = false; settingsPresent = false; timeline.setSlideDurationVisible(automated); timeline.setTimingVisible(automated); pack(); setLocationRelativeTo(null); settingsFrame.dispose(); } } catch (Exception ex) { if (automated) { automated = false; JOptionPane.showMessageDialog(null, "Invalid Slide Interval entered!"); } else { settingsPresent = false; settingsFrame.dispose(); } } } }); settingsPanel.add(automatedCheckBox, c); c.gridy = 1; c.gridx = 0; c.gridwidth = 2; settingsPanel.add(slideIntervalLabel, c); c.gridx = 2; c.gridwidth = 2; settingsPanel.add(slideIntervalTF, c); c.gridx = 1; c.gridy = 2; c.gridwidth = 3; settingsPanel.add(submitChanges, c); settingsFrame.add(settingsPanel); //allows user to save new interval by hitting enter slideIntervalTF.addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_ENTER) { submitChanges.doClick(); } } }); settingsFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); settingsFrame.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { settingsPresent = false; } }); ImageIcon windowIcon = new ImageIcon("images\\SlideshowIcon.png"); // TODO: Uncomment below for JAR //ImageIcon windowIcon = new ImageIcon(getClass().getClassLoader().getResource("SlideshowIcon.png")); Image icon = windowIcon.getImage(); settingsFrame.setIconImage(icon); settingsFrame.setSize(new Dimension(290,140)); settingsFrame.setResizable(false); settingsFrame.setLocationRelativeTo(null); settingsFrame.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void openSettingsForm(){\n\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(BaseActivity.this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant the...
[ "0.75086594", "0.73706144", "0.73610705", "0.73462075", "0.72343", "0.71735543", "0.71669984", "0.7148902", "0.7126681", "0.7105022", "0.7086954", "0.70426923", "0.7008543", "0.69175696", "0.6901174", "0.68483806", "0.6841225", "0.6817152", "0.68104273", "0.6782265", "0.67662...
0.6599504
37