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
Adiciona uma propriedade ao corpo do documento NCL.
public boolean addProperty(Pp property) { if(properties.add(property)){ //Se property existe, atribui este como seu parente if(property != null) property.setParent(this); notifyInserted(NCLElementSets.PROPERTIES, property); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();", "DefinedProperty relAddProperty( long relId, int propertyKey, Object value );", "DefinedProperty nodeAddProperty( long nodeId, int propertyKey, Object value );", "com.exacttarget.wsdl.partnerapi.ObjectDefinition addNewObjectDefinit...
[ "0.5883343", "0.580824", "0.5762142", "0.5658806", "0.55527633", "0.55236036", "0.5495129", "0.5464039", "0.5385044", "0.53760624", "0.534981", "0.5344501", "0.53346634", "0.53160113", "0.53067815", "0.5284688", "0.52734536", "0.52703595", "0.52601135", "0.5238414", "0.523375...
0.0
-1
Remove uma propriedade do corpo do documento NCL.
public boolean removeProperty(String name) { for(Pp property : properties){ if(property.getId().equals(name)) return removeProperty(property); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void relRemoveProperty( long relId, int propertyKey );", "Form removeProperty(String key);", "public CensoCCVnoREMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n ...
[ "0.62214935", "0.6185585", "0.59011817", "0.58837324", "0.5877614", "0.584108", "0.58028895", "0.57918924", "0.5788301", "0.5746555", "0.57187617", "0.571776", "0.56943977", "0.5669682", "0.56617564", "0.565596", "0.5645984", "0.56386536", "0.5633536", "0.5619863", "0.5595032...
0.0
-1
Remove uma propriedade do corpo do documento NCL.
public boolean removeProperty(Pp property) { if(properties.remove(property)){ //Se property existe, retira o seu parentesco if(property != null) property.setParent(null); notifyRemoved(NCLElementSets.PROPERTIES, property); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void relRemoveProperty( long relId, int propertyKey );", "Form removeProperty(String key);", "public CensoCCVnoREMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n ...
[ "0.62214935", "0.6185585", "0.59011817", "0.58837324", "0.5877614", "0.584108", "0.58028895", "0.57918924", "0.5788301", "0.5746555", "0.57187617", "0.571776", "0.56943977", "0.5669682", "0.56617564", "0.565596", "0.5645984", "0.56386536", "0.5633536", "0.5619863", "0.5595032...
0.0
-1
Verifica se o corpo do documento NCL possui uma propriedade.
public boolean hasProperty(String name) { for(Pp property : properties){ if(property.getId().equals(name)) return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAssocProperty();", "boolean hasProperty();", "boolean hasProperty();", "boolean hasProperty();", "public boolean isSetCnsCidadao() {\n return this.cnsCidadao != null;\n }", "boolean hasFkocs();", "boolean hasProofDocument();", "boolean hasProofDocument();", "boolean isSetNcbiea...
[ "0.61828476", "0.5892448", "0.5892448", "0.5892448", "0.58511525", "0.5821944", "0.5783594", "0.5783594", "0.5751288", "0.57496464", "0.57122046", "0.56751907", "0.56617683", "0.5648534", "0.5648534", "0.56479686", "0.56479686", "0.56479686", "0.5644067", "0.563618", "0.56063...
0.0
-1
Verifica se o corpo do documento NCL possui uma propriedade.
public boolean hasProperty(Pp property) { return properties.contains(property); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAssocProperty();", "boolean hasProperty();", "boolean hasProperty();", "boolean hasProperty();", "public boolean isSetCnsCidadao() {\n return this.cnsCidadao != null;\n }", "boolean hasFkocs();", "boolean hasProofDocument();", "boolean hasProofDocument();", "boolean isSetNcbiea...
[ "0.6183947", "0.5892853", "0.5892853", "0.5892853", "0.58508486", "0.5821698", "0.5784681", "0.5784681", "0.57492167", "0.5749075", "0.57135326", "0.56767297", "0.5661377", "0.5649657", "0.5649657", "0.56493926", "0.56493926", "0.56493926", "0.56438476", "0.563706", "0.560695...
0.0
-1
Verifica se o corpo do documento NCL possui alguma propriedade.
public boolean hasProperty() { return !properties.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasFkocs();", "boolean hasProofDocument();", "boolean hasProofDocument();", "boolean isSetNcbieaa();", "public boolean comprobarExistencias(Libro libro){\n return libro.getCantidadCopias() > 0;\n }", "boolean hasDocument();", "boolean hasDocument();", "boolean hasDocument();", "pr...
[ "0.6086042", "0.6030693", "0.6030693", "0.59568805", "0.58595747", "0.5859222", "0.5859222", "0.5859222", "0.5771028", "0.5762319", "0.57294863", "0.5688569", "0.56707156", "0.56549424", "0.56549424", "0.5652502", "0.5616144", "0.5600444", "0.5599284", "0.5587985", "0.5558396...
0.0
-1
Retorna as propriedades do corpo do documento NCL.
public Set<Pp> getProperties() { return properties; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String loadDocumentDetails()\r\n\t{\r\n\t\tsetC_Currency_ID (NO_CURRENCY);\r\n\t\tX_M_Production prod = (X_M_Production)getPO();\r\n\t\tsetDateDoc (prod.getMovementDate());\r\n\t\tsetDateAcct(prod.getMovementDate());\r\n\t\t//\tContained Objects\r\n\t\tp_lines = loadLines(prod);\r\n\t\tif (log.isLoggable...
[ "0.5766222", "0.5720883", "0.5688815", "0.5654617", "0.5642689", "0.563565", "0.55978936", "0.5580445", "0.5569403", "0.55298346", "0.55296487", "0.5526458", "0.5489467", "0.54742956", "0.5454198", "0.5452111", "0.5443199", "0.5429782", "0.54257035", "0.541048", "0.540763", ...
0.0
-1
Adiciona um link ao corpo do documento NCL.
public boolean addLink(L link) { if(links.add(link)){ //Se link existe, atribui este como seu parente if(link != null) link.setParent(this); notifyInserted(NCLElementSets.LINKS, link); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "LINK createLINK();", "Link createLink();", "public void addlink(TparselinksEntity newlink);", "ReferenceLink createReferenceLink();", "public Link add(Link link);", "public IHyperLink attachLink()\n throws OculusException;", "SimpleLink createSimpleLink();", "public Corso(String codice, String nom...
[ "0.66203594", "0.6474783", "0.6382756", "0.63407964", "0.614351", "0.6101021", "0.6048579", "0.6001938", "0.59151095", "0.587786", "0.58709496", "0.5838205", "0.58199257", "0.57224625", "0.57011837", "0.569793", "0.5637472", "0.56044555", "0.5588041", "0.55828327", "0.5568678...
0.5448269
29
Remove um link do corpo do documento NCL.
public boolean removeLink(L link) { if(links.remove(link)){ //Se link existe, retira o seu parentesco if(link != null) link.setParent(null); notifyRemoved(NCLElementSets.LINKS, link); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRemoveLinkComponentDeleteOrphanedFromDoc() {\n\t\tAddressBook adrbook = new AddressBook();\n\t\tDocument doc = new Document(adrbook);\n\t\tAssert.assertSame(doc.findBeansByType(\"org.rapidbeans.test.codegen.AddressBook\").get(0), doc.getRoot());\n\t\tPerson martin = new Person(new String[]...
[ "0.63844246", "0.6307862", "0.6266081", "0.620216", "0.61434054", "0.6080799", "0.59177446", "0.5825936", "0.5786462", "0.5753404", "0.5748706", "0.57368976", "0.5717453", "0.5686689", "0.5669355", "0.56226873", "0.5605044", "0.5599013", "0.5582449", "0.5575303", "0.5567339",...
0.56510526
15
Verifica se o corpo do documento NCL possui um link.
public boolean hasLink(L link) { return links.contains(link); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasLink() {\n return !links.isEmpty();\n }", "public boolean isLink() {\n return linkFlag == LF_LINK;\n }", "private boolean hasLinkToEntidad(Entidadrol entidadrol) {\n\t\tif(entidadrol.getEntidadid() != null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "final vo...
[ "0.63333875", "0.62809014", "0.62700933", "0.6244991", "0.6206479", "0.6170816", "0.61578166", "0.6146063", "0.60940534", "0.6049863", "0.60012645", "0.59490436", "0.5879103", "0.57736003", "0.57646686", "0.5760345", "0.57310337", "0.57038623", "0.5659254", "0.56362665", "0.5...
0.58512443
13
Verifica se o corpo do documento NCL possui algum link.
public boolean hasLink() { return !links.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasLinkToRol(Entidadrol entidadrol) {\n\t\tif(entidadrol.getRolid() != null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasLinkAttached()\n throws OculusException;", "private boolean hasLinkToEntidad(Entidadrol entidadrol) {\n\t\tif(entidadrol.getEntidadid() != nu...
[ "0.58655125", "0.5862014", "0.5816366", "0.5707435", "0.56812954", "0.5680693", "0.5588729", "0.55777687", "0.5576519", "0.55273193", "0.54942805", "0.5480753", "0.5455026", "0.54243153", "0.5419033", "0.54158515", "0.54040194", "0.5352065", "0.53402627", "0.53299606", "0.532...
0.5538846
9
Retorna os links do corpo do documento NCL.
public Set<L> getLinks() { return links; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getLinks();", "protected java.util.Vector _getLinks() {\n\tjava.util.Vector links = new java.util.Vector();\n\tlinks.addElement(getPeopleLink());\n\tlinks.addElement(getChangeLogDetailsesLink());\n\treturn links;\n}", "List<ProductLink> links();", "List<Link> getLinks();", "@Override\n\...
[ "0.66491264", "0.6579265", "0.6433874", "0.6332141", "0.63203037", "0.6170861", "0.6142334", "0.611579", "0.6093976", "0.6058527", "0.6051073", "0.5970211", "0.5952744", "0.59434634", "0.59409976", "0.59360343", "0.59069544", "0.5898516", "0.58657706", "0.58527815", "0.584321...
0.59556925
12
Created by ZingoHotels Tech on 02112018.
public interface InterestContentAPI { @POST("InterestContentMappings") Call<InterestContentMapping> postInterestContent(@Body InterestContentMapping body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bi...
[ "0.6045602", "0.5965437", "0.59176725", "0.58971447", "0.58555037", "0.58385706", "0.5826919", "0.5826919", "0.5814323", "0.5774688", "0.5768832", "0.57427007", "0.5710749", "0.5702756", "0.56836885", "0.5677903", "0.56759125", "0.56759125", "0.56759125", "0.56759125", "0.567...
0.0
-1
Constructs a new XMLEntry that will make the nodes to write to the file.
public XMLEntry(Recordable parent) { this.parent = parent; this.atributes = new HashMap<String, String>(); this.children = new ArrayList<XMLEntry>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createFirstXmlFile(ArrayList<Entry> entityList);", "@Override\n\t\tprotected SLEntry leafNodeFactory(java.nio.ByteBuffer entryStream)\n\t\tthrows\n\t\t\tjava.io.IOException\n\t\t{\n\t\t\treturn new SLEntry(this, entryStream);\n\t\t}", "public void save() {\n int hour = Calendar.getInstance()...
[ "0.5574297", "0.55577224", "0.55051416", "0.5496263", "0.5416725", "0.5302682", "0.5285145", "0.5191641", "0.50919014", "0.507994", "0.5058979", "0.5058753", "0.50501496", "0.5049562", "0.50057405", "0.49943945", "0.49844128", "0.49404913", "0.49355778", "0.49271485", "0.4915...
0.6430851
0
Makes the node from the Document.
public Node makeNode(Document xmlDoc) { Element out = xmlDoc.createElement(this.parent.getHeader()); this.parent.updateSave(); if (this.nodeText != null) { out.setTextContent(nodeText); } this.makeAtributes(out); for (int i = 0; i < this.children.size(); i++) { out.appendChild(this.children.get(i).makeNode(xmlDoc)); } return out; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;", "public DocumentManipulator() {\n\t\ttry {\n\t\t\tthis.document = XMLUtils.buildDocument();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} ca...
[ "0.63973206", "0.61572367", "0.60868883", "0.6045998", "0.59634495", "0.5909197", "0.58688635", "0.585037", "0.57345235", "0.57250065", "0.57141644", "0.5698787", "0.569845", "0.5695769", "0.56612825", "0.56610304", "0.56034327", "0.5575655", "0.5572094", "0.5562724", "0.5562...
0.65857905
0
Pushes BindingSet up to the pipe, pushing null indicates end of data. In case you need to interrupt the tree data flow (when for example just a Slice of data is expected), it is necessary to indicate that no more data are expected down the tree (to stop feeding this pipe) by returning false and also to indicate up the tree that this is the end of data (by pushing null into the parent pipe in the evaluation tree).
public abstract boolean push(BindingSet bs) throws InterruptedException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean push(BindingSet bs) throws InterruptedException {\n if (bs == null) {\n return parent.push(null);\n }\n\t\tif (QueryResults.bindingSetsCompatible(bindings, bs)) {\n // Make sure the provided problemVars are pa...
[ "0.5850237", "0.5076347", "0.5010096", "0.49967736", "0.49839553", "0.49637482", "0.49546736", "0.49506277", "0.49492782", "0.491073", "0.48917124", "0.48848063", "0.4860059", "0.48431826", "0.4839835", "0.48120156", "0.4804452", "0.47954914", "0.47819322", "0.47819322", "0.4...
0.5688607
1
Returns an iterator on the binding set pipe
CloseableIteration<BindingSet, QueryEvaluationException> evaluate(TupleExpr expr, BindingSet bindings) { BindingSetPipeIterator root = new BindingSetPipeIterator(); evaluateTupleExpr(root.pipe, expr, bindings); return root; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterator getBindings() {\r\n\t\treturn bindings == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(bindings.values());\r\n\t}", "public final Iterator iterator() {\n return new SinksIterator(this);\n }", "public Iterator<Item> iterator() {\n return new LinkedBagIter...
[ "0.7200178", "0.6045952", "0.594209", "0.57776964", "0.56614506", "0.565056", "0.5555096", "0.5526934", "0.54813975", "0.54747176", "0.5434892", "0.5412634", "0.5407789", "0.53766507", "0.53623366", "0.5340708", "0.53396904", "0.53325015", "0.5321897", "0.52626723", "0.525155...
0.5910253
3
Handle badly designed left join
@Override public boolean push(BindingSet bs) throws InterruptedException { if (bs == null) { return parent.push(null); } if (QueryResults.bindingSetsCompatible(bindings, bs)) { // Make sure the provided problemVars are part of the returned results // (necessary in case of e.g. LeftJoin and Union arguments) QueryBindingSet extendedResult = null; for (String problemVar : problemVars) { if (!bs.hasBinding(problemVar)) { if (extendedResult == null) { extendedResult = new QueryBindingSet(bs); } extendedResult.addBinding(problemVar, bindings.getValue(problemVar)); } } if (extendedResult != null) { bs = extendedResult; } return parent.push(bs); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test025() throws Throwable {\n String[] stringArray0 = new String[5];\n String string0 = SQLUtil.leftJoin(\"*nT\", stringArray0, \"tYr\", (String) null, stringArray0);\n assertEquals(\"left join tYr as null on *nT.null = null.null and *nT.null = null.null and *...
[ "0.649265", "0.64502", "0.64399606", "0.6398874", "0.63984174", "0.63823813", "0.63571703", "0.6320167", "0.62905514", "0.6243704", "0.6215448", "0.6187867", "0.6157653", "0.61328626", "0.6058148", "0.6043703", "0.59558475", "0.5766283", "0.5738003", "0.57114035", "0.56998134...
0.0
-1
Returns the limit of the current variable bindings before any further projection.
private static long getLimit(QueryModelNode node) { long offset = 0; if (node instanceof Slice) { Slice slice = (Slice) node; if (slice.hasOffset() && slice.hasLimit()) { return slice.getOffset() + slice.getLimit(); } else if (slice.hasLimit()) { return slice.getLimit(); } else if (slice.hasOffset()) { offset = slice.getOffset(); } } QueryModelNode parent = node.getParentNode(); if (parent instanceof Distinct || parent instanceof Reduced || parent instanceof Slice) { long limit = getLimit(parent); if (offset > 0L && limit < Long.MAX_VALUE) { return offset + limit; } else { return limit; } } return Long.MAX_VALUE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int capturedLimit() {\n return this.limit.get();\n }", "public Double getLimit() {\n return limit;\n }", "public double getLimit() {return limit;}", "public Integer getProjlimit() {\n return projlimit;\n }", "public int getLimit() {\n\t\treturn limit;\n\t}", "public i...
[ "0.67771375", "0.65158665", "0.65086055", "0.644522", "0.64186984", "0.64186984", "0.63777864", "0.6369832", "0.634345", "0.63344014", "0.6323273", "0.6323273", "0.6323273", "0.6317", "0.6290363", "0.6264054", "0.62624395", "0.6251857", "0.62303495", "0.61858594", "0.61858594...
0.5589824
51
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.nav_garagiste_crud) { Intent navigation = new Intent(this,ListGaragisteActivity.class); this.startActivity(navigation); } else if (id == R.id.nav_voiture_crud) { Intent navigation = new Intent(this,ListVoitureActivity.class); this.startActivity(navigation); } DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout_start); 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
Creates new form data2
public data2() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ExtraApplyVo register_form2(int app_no) {\n ExtraApplyVo extraApplyVo = registerDao.register_form2(app_no);\n// extraApplyVo.setWayArray(wayArray);\n return extraApplyVo;\n }", "FORM createFORM();", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert ...
[ "0.6083108", "0.6008989", "0.5990668", "0.586525", "0.5649576", "0.5637448", "0.56304526", "0.5563733", "0.5543767", "0.55289555", "0.55163467", "0.5507638", "0.5451123", "0.5427953", "0.5425035", "0.53920275", "0.5375774", "0.53599256", "0.53311104", "0.5324867", "0.52926266...
0.5293164
20
End of variables declaration//GENEND:variables
void setText(String string) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. }
{ "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
System.err.println("loading " + bundleName);
public Module createModule(String bundleName, String moduleTypeName) { Bundle bundle = getBundle(bundleName); if (bundle == null) { return null; } //System.err.println("creating "+bundleName+":"+moduleTypeName); CModule newModule = createCModule(bundleName, moduleTypeName); //System.err.println("done"); return newModule; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getBundleName(){\n return localBundleName;\n }", "public abstract void bundle(Bundle bundle);", "@BundleStart\n public void bundleStart() {\n System.out.println(\"In bundleStart()!\");\n System.setProperty(\"test....
[ "0.6667113", "0.66100067", "0.6601342", "0.6394582", "0.6357865", "0.6344131", "0.6317237", "0.63119197", "0.62404835", "0.62005305", "0.61392426", "0.60688084", "0.6016449", "0.59625256", "0.5931962", "0.5915941", "0.58805984", "0.5870819", "0.5870131", "0.58698577", "0.5865...
0.0
-1
used for xml parameter interpretation
private static Object getNativeFromString(String type, String text) { // could find a way to reuse jna mapping but I didn't managed to :( try { return stringToNatives.get(type).toNative(text); } catch (NullPointerException ex) { System.err.println("problem with type '" + type + "' to interpret '" + text + "'"); throw ex; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getParameterFromX();", "java.lang.String getParameterValue();", "@Override\n public void process(ContentRequest req, XMLWriter xml) throws IOException {\n xml.openElement(\"parameters\", true);\n Enumeration<String> names = req.getParameterNames();\n while (names.hasMoreElements()) {\n ...
[ "0.6755111", "0.6471186", "0.6257266", "0.62560725", "0.6246245", "0.62282336", "0.6197326", "0.61721003", "0.61075944", "0.61075944", "0.61075944", "0.61075944", "0.61075944", "0.61075944", "0.61075944", "0.61075944", "0.61075944", "0.61075944", "0.61075944", "0.60439134", "...
0.0
-1
/ contentType() based deserialization using .as() Here even if response is JSON or XML, RestAssured will handle it automatically.
@Test public void testDeSerializationUsingContentType() { ZebraRequestClassNew reqObj = new ZebraRequestClassNew(); reqObj.setAge(10); reqObj.setWeight(100); reqObj.setHome("India"); ZebraRequestClass respObj = given() .body(reqObj). when() .post("http://www.thomas-bayer.com/restnames/countries.groovy") .as(ZebraRequestClass.class); respObj.setregId(1101); Assert.assertTrue(respObj.getregId() > 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> T deserialize(HttpResponse response, Type returnType) throws PdfFillerAPIException {\n String body;\n if (response.getBody() != null && !response.getBody().isEmpty())\n body = response.getBody();\n else\n body = \"\";\n \n List<String> contentType = response.getHeaders().get(\"C...
[ "0.6222492", "0.60273135", "0.602408", "0.59176266", "0.58367616", "0.5822253", "0.56985754", "0.56577957", "0.5650766", "0.5617286", "0.5486189", "0.5457989", "0.5406539", "0.5338294", "0.5330825", "0.53262573", "0.5312794", "0.53106874", "0.5307347", "0.5306699", "0.5305299...
0.62975883
0
Set an orthographic projection
public void setupView(int near, int far) { mGL.glMatrixMode(GL10.GL_PROJECTION); mGL.glLoadIdentity(); mGL.glOrthof(0, mRenderer.getWidth(), -mRenderer.getHeight(), 0, near, far); // Select a clean model view mGL.glMatrixMode(GL10.GL_MODELVIEW); mGL.glLoadIdentity(); // Rotate world by 180 around x axis so positive y is down mGL.glRotatef(-180, 1, 0, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setOrtho(int width, int height) {\n\t\tglViewport(0, 0, width, height);\n\t\tMatrix.ortho2D(projection, 0, width, 0, height, -1, 1);\n\t}", "protected void renderOrthographics() {\n\t\tthis.enableOrthoMode(true); // set orthographic projection mode\r\n\t\t/*\r\n\t\t * for (each node in orthoQu...
[ "0.64944535", "0.6316785", "0.6297543", "0.60696197", "0.6054994", "0.598456", "0.5893639", "0.577188", "0.56729823", "0.5646991", "0.5623348", "0.56163496", "0.56141853", "0.5584916", "0.55784714", "0.5569652", "0.55435765", "0.53277355", "0.53225666", "0.52713954", "0.52484...
0.5357485
17
Draw each texture batch
public void endSpriteBatch() { for (TextureBatch texBatch : drawOperationPassOrganiser.getPasses()) texBatch.draw(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void render(SpriteBatch batch){\n sprite.draw(batch);\r\n }", "public abstract void render(SpriteBatch batch);", "public void draw() {\r\n\r\n//\t\tif (textures.length > 1) {\r\n//\t\t\tfor (int i = 1; i < textures.length; i++) {\r\n\t\tif (textures.length > 1) {\r\n\t\t\tDrawQuadWithTexture(textures...
[ "0.7161849", "0.7160238", "0.70633364", "0.70594865", "0.7038607", "0.69779664", "0.6927223", "0.6921636", "0.68812156", "0.68021655", "0.6694847", "0.66741365", "0.66707426", "0.6662885", "0.6633274", "0.66279304", "0.6573181", "0.6521693", "0.6461674", "0.64540887", "0.6453...
0.69815254
5
Convert lists to arrays
public void draw() { float[] vertices = new float[mVertices.size()]; for (int i = 0; i < vertices.length; i++) vertices[i] = mVertices.get(i); float[] textureCoords = null; if (mTextureID != 0) { textureCoords = new float[mTextureCoords.size()]; for (int i = 0; i < textureCoords.length; i++) textureCoords[i] = mTextureCoords.get(i); } short[] indices = new short[mIndices.size()]; for (int i = 0; i < indices.length; i++) indices[i] = mIndices.get(i); // Get OpenGL GL10 gl = GameGraphics2D.this.mGL; // Set render state gl.glDisable(GL10.GL_LIGHTING); gl.glEnable(GL10.GL_DEPTH_TEST); gl.glEnable(GL10.GL_BLEND); if (mBlendingMode == BLENDING_MODE.ALPHA) gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA); else if (mBlendingMode == BLENDING_MODE.ADDITIVE) gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE); if (mTextureID != 0) gl.glEnable(GL10.GL_TEXTURE_2D); else gl.glDisable(GL10.GL_TEXTURE_2D); // Draw the batch of textured triangles gl.glColor4f(Color.red(mColour) / 255.0f, Color.green(mColour) / 255.0f, Color.blue(mColour) / 255.0f, Color.alpha(mColour) / 255.0f); if (mTextureID != 0) { gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID); gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(textureCoords)); } gl.glVertexPointer(3, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(vertices)); gl.glDrawElements(GL10.GL_TRIANGLES, indices.length, GL10.GL_UNSIGNED_SHORT, GameGraphics.getShortBuffer(indices)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PyObject[] listtoarray(ArrayList<PyObject> a)\n {\n PyObject[] results = new PyObject[a.size()];\n int iter = 0;\n for (PyObject pt : a) {\n results[iter] = pt;\n iter++;\n }\n return results;\n }", "private static double[] toArray(ArrayList<...
[ "0.72807014", "0.7108775", "0.6789996", "0.65454173", "0.6530665", "0.6441127", "0.6308058", "0.6308058", "0.6308058", "0.62405866", "0.62278104", "0.622707", "0.62153435", "0.616302", "0.6158547", "0.6136672", "0.6053138", "0.6040907", "0.5983088", "0.59707695", "0.59472615"...
0.0
-1
/ / / / / / /
public GridLayoutAnimationController(Animation animation) { /* 71 */ super((Animation)null); throw new RuntimeException("Stub!"); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int rightChild(int i){return 2*i+2;}", "public abstract void b...
[ "0.54567957", "0.53680295", "0.53644985", "0.52577376", "0.52142847", "0.51725817", "0.514088", "0.50868535", "0.5072305", "0.504888", "0.502662", "0.50005764", "0.49740013", "0.4944243", "0.4941118", "0.4937142", "0.49095523", "0.48940238", "0.48719338", "0.48613623", "0.486...
0.0
-1
/ / / / / / / / /
public GridLayoutAnimationController(Animation animation, float columnDelay, float rowDelay) { /* 82 */ super((Animation)null); throw new RuntimeException("Stub!"); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void b...
[ "0.5531016", "0.54378587", "0.52516115", "0.52405924", "0.5151045", "0.5127977", "0.50680465", "0.5066997", "0.50218964", "0.5013022", "0.5007318", "0.50048536", "0.49997565", "0.4994835", "0.49735898", "0.49699947", "0.49680406", "0.49594593", "0.4937881", "0.49361676", "0.4...
0.0
-1
/ / / / / / / / / / / /
public float getColumnDelay() { /* 96 */ throw new RuntimeException("Stub!"); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "int getWidth() {return width;}", "double passer();", "public Integer getWidth()...
[ "0.5528792", "0.54315263", "0.51737124", "0.5150286", "0.5077775", "0.5064908", "0.50597715", "0.5045933", "0.5037415", "0.5019393", "0.50050676", "0.50032693", "0.499702", "0.49949083", "0.49852678", "0.4973753", "0.4970428", "0.49669605", "0.49542087", "0.4945966", "0.49211...
0.0
-1
/ / / / / / / / / / /
public void setColumnDelay(float columnDelay) { /* 109 */ throw new RuntimeException("Stub!"); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "double passer();", "int getWidth() {return width;}", "public void zeichneQuadra...
[ "0.5540745", "0.5444497", "0.5205538", "0.5182055", "0.5094161", "0.50587463", "0.5053648", "0.50452423", "0.50258267", "0.50122976", "0.5012191", "0.50119436", "0.50044477", "0.49989554", "0.49980396", "0.49847832", "0.49795863", "0.49785143", "0.4966902", "0.49588826", "0.4...
0.0
-1
/ / / / / / / / / / / /
public float getRowDelay() { /* 123 */ throw new RuntimeException("Stub!"); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "int getWidth() {return width;}", "double passer();", "public Integer getWidth()...
[ "0.5528792", "0.54315263", "0.51737124", "0.5150286", "0.5077775", "0.5064908", "0.50597715", "0.5045933", "0.5037415", "0.5019393", "0.50050676", "0.50032693", "0.499702", "0.49949083", "0.49852678", "0.4973753", "0.4970428", "0.49669605", "0.49542087", "0.4945966", "0.49211...
0.0
-1
/ / / / / / / / / / /
public void setRowDelay(float rowDelay) { /* 136 */ throw new RuntimeException("Stub!"); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "double passer();", "int getWidth() {return width;}", "public void zeichneQuadra...
[ "0.5540745", "0.5444497", "0.5205538", "0.5182055", "0.5094161", "0.50587463", "0.5053648", "0.50452423", "0.50258267", "0.50122976", "0.5012191", "0.50119436", "0.50044477", "0.49989554", "0.49980396", "0.49847832", "0.49795863", "0.49785143", "0.4966902", "0.49588826", "0.4...
0.0
-1
/ / / / / / / / / / / / / / / /
public int getDirection() { /* 154 */ throw new RuntimeException("Stub!"); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "double passer();", "public Integer getWidth(){return this.width;}", "int getWidth() {return width;}", "public void...
[ "0.5430595", "0.53330356", "0.5092637", "0.50776035", "0.50656015", "0.5061517", "0.50255305", "0.501914", "0.5013608", "0.5012112", "0.50097734", "0.49939048", "0.49924976", "0.49502665", "0.4925594", "0.4921649", "0.49190572", "0.49077547", "0.49070126", "0.49018925", "0.48...
0.0
-1
/ / / / / / / / / / / / / / / /
public void setDirection(int direction) { /* 172 */ throw new RuntimeException("Stub!"); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "double passer();", "public Integer getWidth(){return this.width;}", "int getWidth() {return width;}", "public void...
[ "0.5430595", "0.53330356", "0.5092637", "0.50776035", "0.50656015", "0.5061517", "0.50255305", "0.501914", "0.5013608", "0.5012112", "0.50097734", "0.49939048", "0.49924976", "0.49502665", "0.4925594", "0.4921649", "0.49190572", "0.49077547", "0.49070126", "0.49018925", "0.48...
0.0
-1
/ / / / / / / / / / / / /
public int getDirectionPriority() { /* 187 */ throw new RuntimeException("Stub!"); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "int getWidth() {return width;}", "double passer();", "public abstract void bepaalGrootte();", "public Integer getWidth()...
[ "0.55104524", "0.54136074", "0.51382613", "0.511921", "0.5069645", "0.50632066", "0.5061232", "0.50567037", "0.50560975", "0.50190926", "0.50086707", "0.50070775", "0.49875844", "0.4968691", "0.49646097", "0.4947161", "0.4947018", "0.49441117", "0.49407196", "0.4928466", "0.4...
0.0
-1
/ / / / / / / / / / / / /
public void setDirectionPriority(int directionPriority) { /* 202 */ throw new RuntimeException("Stub!"); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "int getWidth() {return width;}", "double passer();", "public abstract void bepaalGrootte();", "public Integer getWidth()...
[ "0.55104524", "0.54136074", "0.51382613", "0.511921", "0.5069645", "0.50632066", "0.5061232", "0.50567037", "0.50560975", "0.50190926", "0.50086707", "0.50070775", "0.49875844", "0.4968691", "0.49646097", "0.4947161", "0.4947018", "0.49441117", "0.49407196", "0.4928466", "0.4...
0.0
-1
/ / / /
public boolean willOverlap() { /* 208 */ throw new RuntimeException("Stub!"); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) ...
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.4915...
0.0
-1
/ / / /
protected long getDelayForView(View view) { /* 214 */ throw new RuntimeException("Stub!"); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) ...
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.4915...
0.0
-1
/ / / / / / / / / / / /
public AnimationParameters() { /* 279 */ throw new RuntimeException("Stub!"); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "int getWidth() {return width;}", "double passer();", "public Integer getWidth()...
[ "0.5528792", "0.54315263", "0.51737124", "0.5150286", "0.5077775", "0.5064908", "0.50597715", "0.5045933", "0.5037415", "0.5019393", "0.50050676", "0.50032693", "0.499702", "0.49949083", "0.49852678", "0.4973753", "0.4970428", "0.49669605", "0.49542087", "0.4945966", "0.49211...
0.0
-1
Smooth scroll by a Y delta
private void doScrollY(int delta) { if (delta != 0) { if (isSmoothScrollingEnabled()) { smoothScrollBy(0, delta); } else { scrollBy(0, delta); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void scroll(int scrollTop);", "void scrollToY(int y) {\n double adjustedY = (double) y - scrollButtonTotalHeight;\n double percentage = adjustedY / (pastSize.height - scrollButtonTotalHeight);\n int minimum = getScrollBar().getModel().getMinimum();\n int maximum = getScrollBar().getMo...
[ "0.7004452", "0.6879405", "0.6689628", "0.668574", "0.66581035", "0.62215555", "0.62171125", "0.62135446", "0.6084974", "0.6050532", "0.6001413", "0.59819686", "0.5957092", "0.58990794", "0.5895574", "0.58889204", "0.5874218", "0.58635795", "0.5840187", "0.5833826", "0.581960...
0.7189308
0
change the dataDictionary to disallow copying
public static void testConvertIntoCopy_copyDisallowed(MaintenanceDocument document, DataDictionaryService dataDictionaryService) throws Exception { DataDictionary d = dataDictionaryService.getDataDictionary(); Class documentClass = document.getClass(); boolean originalValue = d.getDocumentEntry(documentClass.getName()).getAllowsCopy(); try { d.getDocumentEntry(documentClass.getName()).setAllowsCopy(false); boolean failedAsExpected = false; try { ((Copyable) document).toCopy(); } catch (IllegalStateException e) { failedAsExpected = true; } assertTrue(failedAsExpected); } finally { d.getDocumentEntry(documentClass.getName()).setAllowsCopy(originalValue); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDataUnsafe(Serializable data) { this.data = data; }", "public void setData(LinkedHashMap<Integer, Data> data){\r\n\t\tthis.data = data;\r\n\t}", "public void setData(Map<E, String> data) {\n\t\tthis.data = data;\n\t}", "void setData (Object newData) { /* package access */ \n\t\tdata = newData;...
[ "0.6205426", "0.6171508", "0.60406274", "0.6013492", "0.59546655", "0.59058696", "0.5854386", "0.5827985", "0.5814178", "0.57445765", "0.57437587", "0.57051283", "0.56008846", "0.55930734", "0.55907744", "0.55907744", "0.55835074", "0.5562145", "0.55618614", "0.5549123", "0.5...
0.0
-1
Initializes the variables of this class and the super class. Assign generateUniqueID() to bookID and generateRackID() to rackNo.
public Book(Author[] authors, int copyrightYear, double edition, Genre genre, String title) { super(title); this.authors = authors; this.copyrightYear = copyrightYear; this.edition = edition; this.genre = genre; this.bookID = generateUniqueID(); this.rackNo = generateRackID(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Book() {\n this.title = \"Init\";\n this.author = \"Init\";\n this.bookCategories = new HashSet<>(10);\n }", "public Book () {\n\t\tsuper ();\n\t\t_title = \"\";\n\t\t_text = \"\";\n\t\t_publisher = null;\n\t\t_oid = 0;\n\t\t_author = null;\n\t\t_Isbn = \"\";\n\t}", "public Bo...
[ "0.6412737", "0.6024698", "0.5844969", "0.5820634", "0.57924455", "0.57716036", "0.57253474", "0.5707011", "0.5665228", "0.5652588", "0.56416523", "0.5641132", "0.56199837", "0.55873597", "0.5586084", "0.55701584", "0.55646574", "0.55548346", "0.5545989", "0.5537414", "0.5533...
0.0
-1
Returns an array of Author
public Author[] getAuthors() { return authors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String[] getAuthor();", "public String[] getAuthors() {\n return authors;\n }", "public Author[] createAuthors() {\r\n Author[] authorList = new Author[10];\r\n authorList[0] = createAuthor(\"Daniel\", 1);\r\n authorList[1] = createAuthor(\"Jeremy\", 2);\r\n return authorList;\r\n }", ...
[ "0.82976323", "0.7967743", "0.7834438", "0.7695633", "0.7524993", "0.7459372", "0.7402289", "0.7351347", "0.73191714", "0.72588676", "0.7251155", "0.7192051", "0.7176381", "0.7151304", "0.7074987", "0.68740964", "0.6842911", "0.67274994", "0.6723378", "0.6720282", "0.6699473"...
0.81001794
2
Sets Authors of a book
public void setAuthors(Author[] authors) { this.authors = authors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAuthors(String _authors) { authors = _authors; }", "@Override\n \tpublic void setAuthors(String authors) {\n \t\t// TODO Auto-generated method stub\n \n \t}", "public void setAuthors(String[] authors) {\n this.authors = authors;\n }", "public void setAuthors(ArrayList<String> authors...
[ "0.75673157", "0.75642574", "0.7305499", "0.7104537", "0.68277836", "0.6784027", "0.6773628", "0.67061096", "0.66876704", "0.6686346", "0.6668723", "0.6654458", "0.66366583", "0.66320914", "0.6607751", "0.6568894", "0.6568894", "0.6568894", "0.6568894", "0.6568894", "0.653499...
0.738966
3
Returns the copyright year of the book
public int getCopyrightYear() { return copyrightYear; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCopyrightYear()\r\n\t{\r\n\t\treturn COPYRIGHT_YEAR;\r\n\t}", "public int getDocumentYear();", "int getYear();", "public String getYear() {\n\t\treturn year;\r\n\t}", "public String getYear() {\n\t\treturn year;\n\t}", "public String getYear() {\n\t\treturn year;\n\t}", "public int get...
[ "0.8309612", "0.75051945", "0.74834466", "0.74272496", "0.74131274", "0.74131274", "0.73907125", "0.7370754", "0.73487777", "0.7340585", "0.7340221", "0.733088", "0.733088", "0.733088", "0.7329482", "0.7302148", "0.7302148", "0.727604", "0.7270744", "0.7268057", "0.7259043", ...
0.8275331
2
Sets the copyright year of the book
public void setCopyrightYear(int copyrightYear) { this.copyrightYear = copyrightYear; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Builder addCopyrightYear(String value);", "public void setDocumentYear(int documentYear);", "public void setYear(int _year) { year = _year; }", "public void setYear (int yr) {\n year = yr;\n }", "public void setYear(int year)\r\n\t{\r\n\t\tthis.year = year;\r\n\t}", "public void setYear(int yea...
[ "0.79874885", "0.7830692", "0.7809085", "0.772369", "0.7635869", "0.7635688", "0.7619702", "0.7602247", "0.7578736", "0.7571005", "0.75490814", "0.7508194", "0.75047475", "0.7504591", "0.7504591", "0.7466997", "0.74594164", "0.74524313", "0.74524313", "0.7449082", "0.743955",...
0.8250583
1
Returns edition of the book
public double getEdition() { return edition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookEdition();", "public int getEdition() {\n return edition;\n }", "public int getEdition() {\n\treturn edition;\n}", "public Calendar getEditionDate() {\n\t\treturn editionDate;\n\t}", "public void setBookEdition(java.lang....
[ "0.7638829", "0.7571521", "0.7523536", "0.6906907", "0.6872401", "0.6622257", "0.64900124", "0.6374451", "0.6254064", "0.62318027", "0.6128021", "0.6073802", "0.6015542", "0.6008679", "0.6008679", "0.5947375", "0.57730895", "0.5757034", "0.57291627", "0.56994325", "0.5654111"...
0.74820256
4
Sets edition of the book
public void setEdition(double edition) { this.edition = edition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBookEdition(java.lang.String value);", "public void setEdition(int edition) {\n\tthis.edition = edition;\n}", "@Override\n\tpublic int editBook(bookInfo bookinfo) {\n\t\treturn 0;\n\t}", "private void edit() {\n\n\t}", "public book edit(book editedbook) {\n\t\t\n\t\treturn repository.save(ed...
[ "0.7259165", "0.6676143", "0.66472644", "0.59801376", "0.59705824", "0.59090465", "0.587704", "0.5845819", "0.5732936", "0.57328576", "0.567004", "0.567004", "0.5668893", "0.5660386", "0.56593114", "0.5655385", "0.5645993", "0.56174433", "0.55426055", "0.5493132", "0.5492544"...
0.6271016
4
Returns genre of the book
public Genre getGenre() { return genre; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getGenre()\n {\n return bookGenre;\n }", "public BookType getGenre() {\r\n return genre;\r\n }", "public String getGenre() {\n return genre;\n }", "public String getGenre() {\n return genre;\n }", "public String getGenreString() {\r\n return g...
[ "0.8180793", "0.80959404", "0.7977019", "0.7977019", "0.79758525", "0.7906534", "0.76861185", "0.75189036", "0.7236018", "0.7208696", "0.7157137", "0.71031094", "0.69430566", "0.6929422", "0.6903926", "0.69015354", "0.68718886", "0.67905194", "0.67905194", "0.677372", "0.6690...
0.7726004
7
Sets genre of the book
public void setGenre(Genre genre) { this.genre = genre; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setGenre(int genre) {\n this.genre = genre;\n }", "public void setGenre(String genre)\r\n {\r\n this.genre=genre;\r\n }", "public void setGenre() {\r\n this.genre = genre;\r\n }", "public void setGenre(String genre){\n\t\t//FIXME\n\t\tthis.genre = genre;\n\t}", ...
[ "0.83226067", "0.8304321", "0.8288892", "0.8280425", "0.8267248", "0.77661234", "0.7685851", "0.71157306", "0.7023663", "0.7002985", "0.69848096", "0.69848096", "0.6938555", "0.6866929", "0.68457705", "0.67543054", "0.6736703", "0.6736703", "0.6727591", "0.66937363", "0.66794...
0.83222055
2
This method generates rack identification number to keep the book at a particular location in the library. The rack ID is generated by using the following algorithm. Generate any two random alphabets in uppercase.rackCounter.copyrightYear Then increment the rackCounter. Examples Copyright year RackID 2011 AT.0.2011 2014 PW.1.2104
@Override public String generateRackID() { String newRackID = generateRandomCharacter() +""+ generateRandomCharacter() +"."+ rackCounter +"."+ getCopyrightYear(); this.rackCounter++; return newRackID; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String generateRackID() {\n String randomString = \"\";\n String rackId = \"\";\n for (int i = 0; i < 2; i++) {\n char[] arr = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n int select = new Random().nextInt(arr.length);\n rando...
[ "0.83169776", "0.58656824", "0.58656824", "0.53796726", "0.5356688", "0.53000927", "0.52928793", "0.5206237", "0.5193616", "0.51564306", "0.51491773", "0.5140457", "0.50752383", "0.5067891", "0.50427616", "0.5041185", "0.5006429", "0.49946007", "0.49873245", "0.49806383", "0....
0.83003324
1
This method concatenates LIBRARY_CODE, "_B_", counter and returns it.
@Override public String generateUniqueID() { return LIBRARY_CODE + "_B_" + counter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String generateCode(){\n return \"P\" + repository.getCount();\n }", "public Number getCodeCombinationId() {\n return (Number)getAttributeInternal(CODECOMBINATIONID);\n }", "public void incB() {\n this.countB++;\n }", "public String code() {\r\n return code == null ? ...
[ "0.54504335", "0.48892257", "0.48739743", "0.48541468", "0.4829006", "0.48092023", "0.47920692", "0.4774847", "0.4774311", "0.47696483", "0.47696483", "0.47696483", "0.4763567", "0.47622186", "0.47431618", "0.47353852", "0.471642", "0.4712267", "0.47076058", "0.4707353", "0.4...
0.7174728
1
Method to generate random character.
private char generateRandomCharacter(){ String alphabets = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; Random rand = new Random(); int randomNumber = rand.nextInt(26); return alphabets.charAt(randomNumber); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static char rndChar() {\n\t\tRandom rnd = new Random();\n\t\treturn (char)rnd.nextInt(10);\n\t}", "public static char generateLetter() {\n\t\t\n\t\treturn (char)((int)('A' + Math.random() * ('Z' - 'A' + 1)));\n\t}", "private char getRandomCharacter() {\n Random r = new Random();\n char c ...
[ "0.83119637", "0.8062001", "0.80137897", "0.7864158", "0.7791094", "0.76397085", "0.7575812", "0.7389763", "0.7313268", "0.7121923", "0.70740676", "0.7047098", "0.69422936", "0.6935026", "0.691901", "0.69156885", "0.6900763", "0.68670076", "0.68560123", "0.68543357", "0.68262...
0.84721893
0
Invoke super.toString() and concatenate bookID, rackNo, edition and authors. For Example: Title: THE HUNGER GAMES, Available: false, BookID: NWM_B_1, RackNo: EB.1.2011, Edition: 2.0, Authors: Arml, D. L., Tan, P., Teck, T.
@Override public String toString() { String authorNames=""; for(Author a:authors){ authorNames+=", "+a.toString(); } return super.toString() +", BookID: "+bookID +", RackNo: "+rackNo +", Edition: "+edition +", Authors: "+(authors.length>0?authorNames.substring(2):""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\treturn \"--------------------\" +\n\t\t\t\"\\n ID: \" + this.book_id +\n\t\t\t\"\\n Title: \" + this.title +\n\t\t\t\"\\n Author: \" + this.author +\n\t\t\t\"\\n Year: \" + this.year +\n\t\t\t\"\\n Edition: \" + this.edition +\n\t\t\t\"\\n Publisher: \" + this.publisher +\n\t\t\t\"\\n...
[ "0.7968008", "0.7872416", "0.7780897", "0.7692864", "0.76187277", "0.7570063", "0.7543679", "0.754252", "0.7541643", "0.75002235", "0.7467412", "0.7454235", "0.7422389", "0.7393628", "0.7393245", "0.7326148", "0.72939575", "0.72874534", "0.72657716", "0.7148052", "0.7110583",...
0.7769714
3
You are allowed to include this File in your Download, as i will not change it.
public interface IGregTechDeviceInformation { /** * Is this even a TileEntity which allows GregTech Sensor Kits? * I need things like this Function for MetaTileEntities, you MUST check this!!! * Do not assume that it's a Information returning Device, when it just implements this Interface. */ public boolean isGivingInformation(); /** * Up to 8 Strings can be returned. * Note: If you insert "\\\\" in the String it tries to translate seperate Parts of the String instead of the String as a whole. * @return an Array of Information Strings. Don't return null! */ public String[] getInfoData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isDownloadable() {\n return true;\n }", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "public void download() {\n }", "@Override\n\tpublic void fileDownLoad(HttpServletResponse response, String file_name) {\n\t\t\n\t}", "@SuppressLint(\"NewApi\")\r\n\tpriv...
[ "0.67799", "0.63401395", "0.61106837", "0.60367423", "0.59866977", "0.5954315", "0.5804533", "0.57987505", "0.577228", "0.5749931", "0.57471436", "0.5649247", "0.5644785", "0.5615679", "0.56091577", "0.5605974", "0.5605074", "0.5594684", "0.55867565", "0.55799073", "0.5573484...
0.0
-1
Is this even a TileEntity which allows GregTech Sensor Kits? I need things like this Function for MetaTileEntities, you MUST check this!!! Do not assume that it's a Information returning Device, when it just implements this Interface.
public boolean isGivingInformation();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IGregTechDeviceInformation {\n\t/**\n\t * Is this even a TileEntity which allows GregTech Sensor Kits?\n\t * I need things like this Function for MetaTileEntities, you MUST check this!!!\n\t * Do not assume that it's a Information returning Device, when it just implements this Interface.\n\t */\n\...
[ "0.7624385", "0.6228258", "0.60546756", "0.60324764", "0.602317", "0.59444654", "0.59311706", "0.5927082", "0.5854119", "0.5800055", "0.57862276", "0.5773751", "0.57389694", "0.5724743", "0.570939", "0.57079273", "0.57020503", "0.56871724", "0.56232285", "0.5618072", "0.56045...
0.0
-1
Up to 8 Strings can be returned. Note: If you insert "\\\\" in the String it tries to translate seperate Parts of the String instead of the String as a whole.
public String[] getInfoData();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static java.lang.String m25224a(java.lang.String r7, java.lang.String r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"\";\n r1 = \"\\\\?\";\n r7 = r7.split(r1);\n r1 = r7.length;\n r2 = 1;\n if ...
[ "0.55554736", "0.55449647", "0.54591215", "0.54103106", "0.5396199", "0.53694826", "0.5330149", "0.5306443", "0.5284564", "0.52758443", "0.5253855", "0.5233269", "0.5229318", "0.5213217", "0.5207564", "0.5182187", "0.51741755", "0.51658916", "0.51610506", "0.51587105", "0.513...
0.0
-1
Creates a nQueen problem with only binary constraints. n queens must be placed on a nxn chessboard. The variables can be accessed though the hook name "vars".
@SuppressWarnings("Duplicates") public static Solver makeNQueenWithBinaryConstraints(int n){ Solver solver = new Solver(); IntVar[] vars = new IntVar[n]; for (int i = 0; i < vars.length; i++) { vars[i] = VariableFactory.enumerated("Q_" + i, 1, n, solver); } solver.addHook("vars", vars); for (int i = 0; i < n - 1; i++) { for (int j = i + 1; j < n; j++) { int k = j - i; solver.post(IntConstraintFactory.arithm(vars[i], "!=", vars[j])); solver.post(IntConstraintFactory.arithm(vars[i], "!=", vars[j], "+", -k)); solver.post(IntConstraintFactory.arithm(vars[i], "!=", vars[j], "+", k)); } } return solver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void queenSet() {\n\n boolean[][] boxes = new boolean[4][4];\n // System.out.println(queenPermutation2D(boxes, 4, 0, \"\"));\n System.out.println(queenCombination2D(boxes, 4, 0, \"\"));\n }", "public ArrayList<String[]> solveNQueens(int n) {\n ArrayList<String[]> res=...
[ "0.5870368", "0.585188", "0.5818497", "0.57947046", "0.57538253", "0.57497835", "0.5748025", "0.5730976", "0.5724145", "0.5627157", "0.562103", "0.5617845", "0.5598565", "0.5584065", "0.5572025", "0.55466384", "0.55349666", "0.5517157", "0.54929876", "0.544797", "0.5406325", ...
0.81209064
0
Creates a Costas array problem of size n. Two AllDifferent constraints are used, on achieving AC, the other BC. The variables can be accessed though the hook name "vars" and "vectors".
@SuppressWarnings("Duplicates") public static Solver makeCostasArrays(int n){ Solver solver = new Solver(); IntVar[] vars = VariableFactory.enumeratedArray("v", n, 0, n - 1, solver); IntVar[] vectors = new IntVar[(n*(n-1))/2]; IntVar[][] diff = new IntVar[n][n]; int idx = 0; for (int i = 0; i < n; i++) { for (int j = i+1; j < n; j++) { IntVar k = VariableFactory.enumerated(StringUtils.randomName(), -n, n, solver); solver.post(ICF.arithm(k,"!=",0)); solver.post(IntConstraintFactory.sum(new IntVar[]{vars[i],k},vars[j])); vectors[idx] = VariableFactory.offset(k, 2 * n * (j - i)); diff[i][j] = k; idx++; } } solver.addHook("vars", vars); solver.addHook("vectors", vectors); solver.post(IntConstraintFactory.alldifferent(vars, "AC")); solver.post(IntConstraintFactory.alldifferent(vectors, "BC")); // symmetry-breaking solver.post(ICF.arithm(vars[0],"<",vars[n-1])); return solver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"Duplicates\")\n public static Solver makeNQueenWithBinaryConstraints(int n){\n Solver solver = new Solver();\n IntVar[] vars = new IntVar[n];\n for (int i = 0; i < vars.length; i++) {\n vars[i] = VariableFactory.enumerated(\"Q_\" + i, 1, n, solver);\n }...
[ "0.655952", "0.6025633", "0.57334596", "0.5702172", "0.55039835", "0.5481387", "0.5468625", "0.5440458", "0.54297435", "0.5380632", "0.5368334", "0.531703", "0.53118837", "0.5242405", "0.5234234", "0.52303123", "0.51510113", "0.51439154", "0.5117949", "0.50991327", "0.5090397...
0.83111364
0
Creates a Golomb ruler problem of size m. The variables can be accessed though the hook name "ticks" and "diffs".
@SuppressWarnings("Duplicates") public static Solver makeGolombRuler(int m){ Solver solver = new Solver(); IntVar[] ticks = VariableFactory.enumeratedArray("a", m, 0, ((m < 31) ? (1 << (m + 1)) - 1 : 9999), solver); solver.addHook("ticks", ticks); solver.post(IntConstraintFactory.arithm(ticks[0], "=", 0)); for (int i = 0; i < m - 1; i++) { solver.post(IntConstraintFactory.arithm(ticks[i + 1], ">", ticks[i])); } IntVar[] diffs = VariableFactory.enumeratedArray("d", (m * m - m) / 2, 0, ((m < 31) ? (1 << (m + 1)) - 1 : 9999), solver); solver.addHook("diffs", diffs); IntVar[][] m_diffs = new IntVar[m][m]; for (int k = 0, i = 0; i < m - 1; i++) { for (int j = i + 1; j < m; j++, k++) { // d[k] is m[j]-m[i] and must be at least sum of first j-i integers // <cpru 04/03/12> it is worth adding a constraint instead of a view solver.post(IntConstraintFactory.scalar(new IntVar[]{ticks[j], ticks[i]}, new int[]{1, -1}, diffs[k])); solver.post(IntConstraintFactory.arithm(diffs[k], ">=", (j - i) * (j - i + 1) / 2)); solver.post(IntConstraintFactory.arithm(diffs[k], "-", ticks[m - 1], "<=", -((m - 1 - j + i) * (m - j + i)) / 2)); solver.post(IntConstraintFactory.arithm(diffs[k], "<=", ticks[m - 1], "-", ((m - 1 - j + i) * (m - j + i)) / 2)); m_diffs[i][j] = diffs[k]; } } solver.post(IntConstraintFactory.alldifferent(diffs, "BC")); // break symetries if (m > 2) { solver.post(IntConstraintFactory.arithm(diffs[0], "<", diffs[diffs.length - 1])); } solver.setObjectives(ticks[m-1]); return solver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Millimeter createMillimeter();", "MagLegendre( int nt ) \n {\n nTerms = nt;\n Pcup = new double[ nTerms + 1 ];\n dPcup = new double[ nTerms + 1 ];\n }", "@Override\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\n\t\tint length = cont.getLength();\n\t\tint start = cont.g...
[ "0.5336437", "0.48121625", "0.46698248", "0.45236322", "0.45058465", "0.4496038", "0.44833055", "0.4445906", "0.4432952", "0.44248226", "0.43924814", "0.43823212", "0.43544966", "0.4342381", "0.43299407", "0.43134266", "0.43129432", "0.42877728", "0.4286478", "0.42840993", "0...
0.7556343
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(); jPanel4 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jComboBox1 = new javax.swing.JComboBox<>(); jTextField9 = new javax.swing.JTextField(); jTextField10 = new javax.swing.JTextField(); jTextField11 = new javax.swing.JTextField(); jTextField12 = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jTextField2 = new javax.swing.JTextField(); jButton2 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); jButton4 = new javax.swing.JButton(); jButton5 = new javax.swing.JButton(); jComboBox2 = new javax.swing.JComboBox<>(); jLabel10 = new javax.swing.JLabel(); jTextField3 = new javax.swing.JTextField(); jLabel17 = new javax.swing.JLabel(); jComboBox3 = new javax.swing.JComboBox(); jTextField7 = new javax.swing.JComboBox<>(); jPanel5 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jTextField13 = new javax.swing.JTextField(); jTextField1 = new javax.swing.JTextField(); jLabel16 = new javax.swing.JLabel(); jTextField4 = new javax.swing.JTextField(); jLabel64 = new javax.swing.JLabel(); jLabel15 = new javax.swing.JLabel(); jLabel14 = new javax.swing.JLabel(); jLabel48 = new javax.swing.JLabel(); date = new javax.swing.JLabel(); time = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jSeparator2 = new javax.swing.JSeparator(); jLabel24 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel1.setBackground(new java.awt.Color(0, 0, 0)); jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel4.setBackground(new java.awt.Color(51, 51, 51)); jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12), new java.awt.Color(255, 204, 0))); // NOI18N jPanel4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel1.setForeground(new java.awt.Color(255, 255, 255)); jLabel1.setText("Name:"); jPanel4.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 120, 70, 30)); jLabel3.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel3.setForeground(new java.awt.Color(255, 255, 255)); jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel3.setText("Mobile No:"); jPanel4.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 70, -1, 30)); jLabel4.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel4.setForeground(new java.awt.Color(255, 255, 255)); jLabel4.setText("Customer NIC :"); jPanel4.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 220, 150, 30)); jLabel5.setBackground(new java.awt.Color(255, 255, 255)); jLabel5.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel5.setForeground(new java.awt.Color(255, 255, 255)); jLabel5.setText("Email:"); jPanel4.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 270, -1, 30)); jLabel6.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel6.setForeground(new java.awt.Color(255, 255, 255)); jLabel6.setText("Address:"); jPanel4.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 320, -1, 30)); jLabel7.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel7.setForeground(new java.awt.Color(255, 255, 255)); jLabel7.setText("Customer ID:"); jPanel4.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 170, -1, 30)); jLabel8.setBackground(new java.awt.Color(255, 255, 255)); jLabel8.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel8.setForeground(new java.awt.Color(255, 255, 255)); jLabel8.setText("Customer type:"); jPanel4.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 120, 140, 30)); jComboBox1.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "---", "Silver", "Gold", "Platinum" })); jComboBox1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jComboBox1ActionPerformed(evt); } }); jPanel4.add(jComboBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 120, 150, 30)); jTextField9.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jTextField9.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel4.add(jTextField9, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 220, 190, 30)); jTextField10.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jTextField10.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel4.add(jTextField10, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 270, 300, 30)); jTextField11.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jTextField11.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel4.add(jTextField11, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 320, 450, 30)); jTextField12.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jTextField12.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jTextField12.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField12ActionPerformed(evt); } }); jTextField12.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jTextField12KeyTyped(evt); } }); jPanel4.add(jTextField12, new org.netbeans.lib.awtextra.AbsoluteConstraints(680, 70, 170, 30)); jLabel2.setBackground(new java.awt.Color(0, 102, 102)); jLabel2.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel2.setForeground(new java.awt.Color(255, 255, 255)); jLabel2.setText("L.No :"); jPanel4.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 20, -1, 30)); jLabel9.setForeground(new java.awt.Color(255, 255, 255)); jPanel4.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 20, 30, 30)); jTextField2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jTextField2.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jTextField2.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jTextField2KeyTyped(evt); } }); jPanel4.add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 70, 70, 30)); jButton2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jButton2.setText("Clear"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jPanel4.add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(1120, 250, 120, 30)); jButton3.setFont(new java.awt.Font("Anklepants", 0, 18)); // NOI18N jButton3.setText("Insert"); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); jPanel4.add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(1110, 100, 140, 30)); jButton4.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jButton4.setText("Update Profile"); jButton4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton4ActionPerformed(evt); } }); jPanel4.add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(1120, 150, 120, 30)); jButton5.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jButton5.setText("Delete Profile"); jButton5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton5ActionPerformed(evt); } }); jPanel4.add(jButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(1120, 200, 120, 30)); jComboBox2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jComboBox2.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Mr.", "Mrs." })); jPanel4.add(jComboBox2, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 120, 60, 30)); jLabel10.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N jLabel10.setForeground(new java.awt.Color(255, 255, 255)); jLabel10.setText("/"); jPanel4.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(860, 70, 30, 30)); jTextField3.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jTextField3.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jTextField3.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jTextField3KeyTyped(evt); } }); jPanel4.add(jTextField3, new org.netbeans.lib.awtextra.AbsoluteConstraints(880, 70, 180, 30)); jLabel17.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel17.setForeground(new java.awt.Color(255, 255, 255)); jLabel17.setText("No :"); jPanel4.add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 70, 40, 30)); jPanel4.add(jComboBox3, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 170, 240, 30)); jTextField7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField7ActionPerformed(evt); } }); jPanel4.add(jTextField7, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 122, 240, 30)); jPanel1.add(jPanel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, 1280, 380)); jPanel5.setBackground(new java.awt.Color(51, 51, 51)); jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder("")); jPanel5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null} }, new String [] { "Name", "Mobile No", "Work", "Email", "Address", "Driver", "Customer type" } )); jTable1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jTable1MouseClicked(evt); } }); jScrollPane1.setViewportView(jTable1); jPanel5.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, 1260, 170)); jTextField13.setBackground(new java.awt.Color(51, 51, 51)); jTextField13.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jTextField13.setForeground(new java.awt.Color(255, 255, 255)); jTextField13.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jTextField13.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jTextField13KeyPressed(evt); } public void keyReleased(java.awt.event.KeyEvent evt) { jTextField13KeyReleased(evt); } }); jPanel5.add(jTextField13, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 10, 130, 30)); jTextField1.setBackground(new java.awt.Color(51, 51, 51)); jTextField1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jTextField1.setForeground(new java.awt.Color(255, 255, 255)); jTextField1.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel5.add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(1140, 10, 80, 30)); jLabel16.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel16.setForeground(new java.awt.Color(255, 255, 255)); jLabel16.setText("Name OR CID :"); jPanel5.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 150, 30)); jTextField4.setBackground(new java.awt.Color(51, 51, 51)); jTextField4.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jTextField4.setForeground(new java.awt.Color(255, 255, 255)); jTextField4.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jTextField4.setOpaque(false); jTextField4.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { jTextField4KeyReleased(evt); } public void keyTyped(java.awt.event.KeyEvent evt) { jTextField4KeyTyped(evt); } }); jPanel5.add(jTextField4, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 10, 80, 30)); jLabel64.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel64.setForeground(new java.awt.Color(255, 255, 255)); jLabel64.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagesfor/2-Hot-Printer-icon.png"))); // NOI18N jLabel64.setToolTipText("See All"); jLabel64.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jLabel64MouseClicked(evt); } }); jPanel5.add(jLabel64, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 0, 40, 50)); jLabel15.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel15.setForeground(new java.awt.Color(255, 255, 255)); jLabel15.setText("No :"); jPanel5.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 50, 40, 20)); jLabel14.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel14.setForeground(new java.awt.Color(255, 255, 255)); jLabel14.setText("No :"); jPanel5.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(1090, 10, 40, 30)); jLabel48.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagesfor/Blue-Backup-B-icon(1).png"))); // NOI18N jLabel48.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jLabel48MouseClicked(evt); } }); jPanel5.add(jLabel48, new org.netbeans.lib.awtextra.AbsoluteConstraints(1230, 10, 40, 30)); jPanel1.add(jPanel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 460, 1280, 230)); date.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N date.setForeground(new java.awt.Color(255, 255, 0)); date.setText("date"); jPanel1.add(date, new org.netbeans.lib.awtextra.AbsoluteConstraints(1150, 40, 140, 20)); time.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N time.setForeground(new java.awt.Color(255, 255, 0)); time.setText("time"); jPanel1.add(time, new org.netbeans.lib.awtextra.AbsoluteConstraints(1150, 10, 120, 20)); jLabel11.setFont(new java.awt.Font("Copperplate Gothic Light", 1, 24)); // NOI18N jLabel11.setForeground(new java.awt.Color(255, 255, 255)); jLabel11.setText("CLIENT INFORMATION"); jPanel1.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 340, 30)); jPanel1.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 50, 180, 10)); jLabel24.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagesfor/go_previous_blue.png"))); // NOI18N jLabel24.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jLabel24MouseClicked(evt); } }); jPanel1.add(jLabel24, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 20, 40, 30)); jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagesfor/Apps-Home-icon.png"))); // NOI18N jLabel12.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jLabel12MouseClicked(evt); } }); jPanel1.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(630, 10, 40, 50)); getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1300, 700)); pack(); setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191524", "0.7290383", "0.7290383", "0.7290383", "0.7286656", "0.72480965", "0.72141695", "0.72080517", "0.7195647", "0.7190378", "0.71841127", "0.71591616", "0.71478844", "0.7093131", "0.70816", "0.70577854", "0.6987355", "0.69769996", "0.69551086", "0.69545007", "0.6945...
0.0
-1
Builds the StreetNameField and populates the ComboBox with the names of the Streets within the Level.
private void buildStreetNameField(JPanel panel) { streetNameField = new JComboBox<>(); streetNameField.setName("streetNameField"); Dimension dimension = streetNameField.getPreferredSize(); streetNameField.setPreferredSize(new Dimension(150, dimension.height)); streetNameField.addActionListener(new StreetNameListener(currentRooms, bindingService)); populateStreetNames(); JLabel streetNameLabel = new JLabel(localization.get("StreetName"), JLabel.RIGHT); streetNameLabel.setLabelFor(streetNameField); panel.add(streetNameLabel); panel.add(streetNameField); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void populateStreetNames() {\n streetNameField.removeAllItems();\n streetNameField.addItem(\"\");\n for (Street street : bindingService.getStreets()) {\n streetNameField.addItem(street.getName());\n }\n }", "public void initAddressPanel() {\n\t\n\t\t\n\t\t\n\t\tlb...
[ "0.7146022", "0.56649536", "0.5379182", "0.535151", "0.5331081", "0.52766263", "0.52500296", "0.52238744", "0.5211986", "0.52008903", "0.51660866", "0.5141347", "0.5129877", "0.5114395", "0.50879985", "0.5074107", "0.5065776", "0.50446206", "0.50405896", "0.5023864", "0.50225...
0.74880695
0
Builds the button that starts the StreetEditor.
private void buildAddEditStreetsButton(JPanel panel) { JButton addEditStreetsButton = new JButton(localization.get("EditStreetsLabel")); addEditStreetsButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent event) { StreetEditor editor = new StreetEditor(InfoPanel.this, bindingService); editor.run(); } }); panel.add(addEditStreetsButton); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void buildButton() {\n\t\t\n\t}", "private void buildStreet() {\r\n\t\tbuilt = false;\r\n\t\tbuildPanelRoad.setVisible(false);\r\n\t\tMessage message = new Message(clickedRoad, true, null);\r\n\t\tsendMessage(message);\r\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent ...
[ "0.68875873", "0.63290095", "0.6171832", "0.6097163", "0.60689634", "0.59311867", "0.5903207", "0.57439923", "0.5707905", "0.5694395", "0.5681444", "0.5666096", "0.5633157", "0.56228006", "0.5605752", "0.5571739", "0.55692124", "0.5560797", "0.5558875", "0.5546867", "0.554399...
0.7097426
0
Builds a ColorSelector which allows the user to change the color of one or more Rooms/CellPanels within the Level.
private void buildColorSelector(JPanel panel) { colorChooserButton = new JLabel(); colorChooserButton.setPreferredSize(new Dimension(16, 16)); colorChooserButton.setVerticalAlignment(JLabel.CENTER); colorChooserButton.setBackground(Color.WHITE); colorChooserButton.setOpaque(true); colorChooserButton.setBorder(BorderFactory.createLineBorder(Color.black)); colorChooserButton.addMouseListener(ApplicationFactory.INSTANCE .getNewColorChooserListener(this)); panel.add(colorChooserButton, "wrap"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ColorPanel() {\r\n setLayout(null);\r\n\r\n chooser = new ColorChooserComboBox[8];\r\n chooserLabel = new JLabel[8];\r\n String[][] text = new String[][] {\r\n {\"Hintergrund\", \"Background\"},\r\n {\"...
[ "0.55812204", "0.5350848", "0.52710223", "0.5261833", "0.51684964", "0.5156958", "0.5142219", "0.51362056", "0.5063553", "0.50452167", "0.5019731", "0.50113547", "0.49966794", "0.49714938", "0.49701324", "0.49295878", "0.49195847", "0.48465586", "0.48347533", "0.48255733", "0...
0.6243717
0
Creates the main content panel of the InfoPanel.
private JPanel createContentPanel() { JPanel panel = new JPanel(); panel.setLayout(new MigLayout()); panel.setPreferredSize(new Dimension(400, 300)); panel.setOpaque(true); panel.setBorder(BorderFactory.createTitledBorder( localization.get("AttributesTitle"))); roomNameField = LabeledComponent .textField(localization.get("RoomNameLabel"), new InfoPanelDocListener(this, new SetName())); roomNameField.addToPanel(panel); includeField = LabeledComponent .textField(localization.get("IncludeLabel"), new InfoPanelDocListener(this, new SetInclude())); includeField.addToPanel(panel); inheritField = LabeledComponent .textField(localization.get("InheritLabel"), new InfoPanelDocListener(this, new SetInherit())); inheritField.addToPanel(panel); buildStreetNameField(panel); buildAddEditStreetsButton(panel); buildColorSelector(panel); shortDescriptionField = LabeledComponent .textField(localization.get("ShortDescLabel"), new InfoPanelDocListener(this, new SetShort())); panel.add(shortDescriptionField.getLabel()); panel.add(shortDescriptionField.getComponent(), "span, grow, wrap"); determinateField = LabeledComponent .textField(localization.get("DeterminateLabel"), new InfoPanelDocListener(this, new SetDeterminate())); determinateField.addToPanel(panel); lightField = LabeledComponent .textField(localization.get("LightLabel"), new InfoPanelDocListener(this, new SetLight())); lightField.addToPanel(panel); longDescriptionField = LabeledComponent .textArea(localization.get("LongDescLabel"), new InfoPanelDocListener(this, new SetLong())); panel.add(longDescriptionField.getLabel(), "wrap"); panel.add(longDescriptionField.getComponent(), "span, grow"); return panel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InfoPanel() {\n setPreferredSize(new Dimension(500, 860));\n }", "private void initInfoPanel() {\n\t\t// Info Panel\n\t\tinfoPanel = new JPanel();\n\t\tinfoPanel.setBorder(BorderFactory.createTitledBorder(\"\"));\n\t\t\n\t\t// Current Word Label\n\t\twordString = \"\";\n\t\twordLabel = new JLabel(\" ...
[ "0.7567519", "0.71645737", "0.71619856", "0.7131892", "0.706137", "0.7010541", "0.70091796", "0.69969386", "0.6806491", "0.67917085", "0.6783632", "0.6718359", "0.6691642", "0.6660998", "0.6654927", "0.66363007", "0.6608899", "0.6583901", "0.65749156", "0.65429825", "0.654254...
0.7015279
5
Creates the ExitPanel. It displays whatever Exits are in the Room currently loaded in the InfoPanel.
private JPanel createExitPanel() { JPanel panel = new JPanel(); panel.setLayout(new MigLayout()); panel.setPreferredSize(new Dimension(400, 50)); panel.setOpaque(true); panel.setBorder(BorderFactory.createTitledBorder( localization.get("ExitsTitle"))); return panel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initExitView() {\n exit = new Label(\"Exit Game\");\n exit.setPrefSize(200, 100);\n exit.setFont(Font.font(null, FontWeight.BOLD, 30));\n exit.setTextFill(Color.RED);\n exit.setEffect(getDropShadow());\n }", "public void updateExitPanel(Room room) {\n exi...
[ "0.659835", "0.6464845", "0.5987383", "0.59107935", "0.5863561", "0.56565666", "0.56537294", "0.5646463", "0.5545633", "0.5515332", "0.5474943", "0.5460169", "0.5425847", "0.5420498", "0.54142475", "0.5413004", "0.54125273", "0.54044735", "0.5402026", "0.5395707", "0.53707534...
0.7175384
0
Updates the ExitPanel with the Exits in the passedin Room.
public void updateExitPanel(Room room) { exitPanel.removeAll(); List<Exit> exits = room.getExits(); for (Exit exit : exits) { JLabel exitLabel = new JLabel(exit.getDirection().toString() +", ", JLabel.RIGHT); exitPanel.add(exitLabel, "wrap"); } exitPanel.validate(); exitPanel.repaint(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void update(Room currentRoom) {\n exitsTextArea.setText(\"\");\n for (Room exit : currentRoom.getExits()) {\n exitsTextArea.append(exit.getName() + \"\\n\");\n }\n }", "private void exitProgram() {\n try {\n logic.updateInventory();\n ...
[ "0.6778524", "0.5949523", "0.58685035", "0.5852295", "0.58409995", "0.58409995", "0.58409995", "0.57967204", "0.5785307", "0.57796466", "0.5771691", "0.5704578", "0.5704578", "0.55889744", "0.5587463", "0.5512058", "0.55064493", "0.5496869", "0.5494572", "0.54811007", "0.5480...
0.73825586
0
Populates the street name field. Removes all items already in the field, adds a blank item, then adds a new item for each Street in the Level.
public void populateStreetNames() { streetNameField.removeAllItems(); streetNameField.addItem(""); for (Street street : bindingService.getStreets()) { streetNameField.addItem(street.getName()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStreetName(String streetName) {\r\n this.streetName = streetName;\r\n }", "public void setStreetName(String streetName) \n \t{\n \t\tthis.streetName = streetName;\n \t}", "public void setStreetName(String streetName) {\n this.streetName = streetName;\n }", "public void setN...
[ "0.59182054", "0.5886206", "0.58686084", "0.58052266", "0.57882893", "0.5670058", "0.5636284", "0.5276641", "0.5272836", "0.52580297", "0.52348226", "0.52348226", "0.52165264", "0.51811963", "0.51811963", "0.51795954", "0.5160788", "0.51179147", "0.5097913", "0.50685626", "0....
0.7773899
0
Get the GridBagConstraints for this object.
public GridBagConstraints getConstraints() { GridBagConstraints constraints = new GridBagConstraints(); constraints.weightx = 0.1; constraints.weighty = 0.1; constraints.fill = GridBagConstraints.BOTH; constraints.gridx = 1; constraints.gridy = 1; return constraints; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GridBagConstraints getGridBagConstraints()\n\t{\n\t\tGridBagConstraints gbc = super.getGridBagConstraints();\n\t\tgbc.gridx = 1;\n\t\tgbc.gridy = 3;\n\t\treturn gbc;\n\t}", "protected GridBagConstraints getGbc(int row) {\r\n GridBagConstraints gbc = new GridBagConstraints();\r\n gbc.fill = G...
[ "0.7935089", "0.6479732", "0.6007556", "0.5946865", "0.5777071", "0.5756105", "0.55673105", "0.54618394", "0.5394912", "0.53572977", "0.5347309", "0.5309929", "0.5217963", "0.52146006", "0.51931596", "0.5159905", "0.51435554", "0.5137013", "0.5087146", "0.50685704", "0.503707...
0.7254895
1
Gets the Room at the top of the currentRooms list, i.e. the Room at the first index in the array.
public Room getCurrentRoom() { if(!currentRooms.isEmpty()) { return currentRooms.get(0); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Room getLastRoom(){return this.aLastRooms.pop();}", "public Room getCurrentRoom(){\n\treturn rooms[gx][gy];\n }", "public Room getCurrentRoom ( )\r\n\t{\r\n\t\tif ( currentRow < 0 || currentCol < 0 || \r\n\t\t\t\tcurrentRow >= size || currentCol >= size )\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t...
[ "0.72205716", "0.6961088", "0.68224394", "0.66316825", "0.65453595", "0.6527576", "0.6465468", "0.6444241", "0.644342", "0.6437014", "0.6339929", "0.6294037", "0.62589043", "0.6200112", "0.6165037", "0.60932106", "0.60903895", "0.60903895", "0.60623765", "0.6023501", "0.59831...
0.74485624
0
Returns all currently loaded rooms.
public List<Room> getCurrentRooms() { return currentRooms; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(path = \"/rooms\")\n public List<Room> findAllRooms() {\n return new ArrayList<>(roomService.findAllRooms());\n }", "public List<Room> selectAll() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\treturn session.createCriteria(Room.class).list();\n\n\t}", "@Transactiona...
[ "0.80667436", "0.7926422", "0.7860819", "0.7852372", "0.78371495", "0.7835072", "0.7779247", "0.7747118", "0.7716675", "0.75812197", "0.7578291", "0.7568004", "0.74418616", "0.73431146", "0.7232427", "0.7220979", "0.7181864", "0.7154852", "0.71326494", "0.7077062", "0.7061635...
0.7599507
9
Checks the passedin CellPanel for a connectible Entity. If the Entity is connectible, this method takes the information it needs from the CellPanel before passing the Room on to be loaded into the InfoPanel.
public void load(Cell cell) { // Double-check we're dealing with a Room. if(cell.isConnectible()) { // Get the data we need from the CellPanel. //this.colorChooserButton.setBackground(cellPanel.getBackground()); this.colorChooserButton.setBackground(cell.getColor()); // Load the Room. Room room = (Room)cell.getEntity(); loadRoom(room); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkCollisionTile(Entity entity) {\n\t\t\tint entityLeftX = entity.worldX + entity.collisionArea.x;\n\t\t\tint entityRightX = entity.worldX + entity.collisionArea.x + entity.collisionArea.width;\n\t\t\tint entityUpY = entity.worldY + entity.collisionArea.y;\n\t\t\tint entityDownY = entity.worldY + ent...
[ "0.5285586", "0.5255401", "0.5037283", "0.4981596", "0.4947348", "0.48822394", "0.48775113", "0.48449945", "0.48231494", "0.48133644", "0.48010764", "0.4799779", "0.47898915", "0.47417814", "0.47270408", "0.47239226", "0.46955228", "0.46901694", "0.4671964", "0.46695942", "0....
0.54973465
0
Loads data from the passedin Room into the InfoPanel.
private void loadRoom(Room room) { if(currentRooms.isEmpty()) { // Add the passed-in Room to the list of selected Rooms. this.currentRooms.add(room); // Load the data from the Room into the InfoPanel. this.roomNameField.setText(room.getName()); this.includeField.setText(room.getInclude()); this.inheritField.setText(room.getInherit()); this.streetNameField.setSelectedItem(room.getStreetName()); this.determinateField.setText(room.getDeterminate()); this.lightField.setText(room.getLight()); this.shortDescriptionField.setText(room.getShort()); this.longDescriptionField.setText(room.getLong()); updateExitPanel(room); } else { this.currentRooms.add(room); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onRoomLoad() {\n\n }", "public RoomDetailsUpdate() {\n initComponents();\n initExtraComponents();\n }", "private void load() {\n Uri poiUri = Uri.withAppendedPath(Wheelmap.POIs.CONTENT_URI_POI_ID,\r\n String.valueOf(poiID));\r\n\r\n // Then query for...
[ "0.6392102", "0.6280573", "0.60727066", "0.59673285", "0.5922312", "0.58940953", "0.58915776", "0.5856252", "0.58466953", "0.5835629", "0.5813666", "0.5810618", "0.580882", "0.5788987", "0.57840115", "0.5702107", "0.56886876", "0.5681554", "0.5657146", "0.56493247", "0.563284...
0.7567287
0
Unloads Rooms by clearing the currentRooms List.
public void unload() { this.currentRooms.clear(); // Zero the info panel. this.roomNameField.setText(""); this.includeField.setText(""); this.inheritField.setText(""); this.streetNameField.setSelectedIndex(0); this.determinateField.setText(""); this.lightField.setText(""); this.shortDescriptionField.setText(""); this.longDescriptionField.setText(""); this.exitPanel.removeAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeUnavailableRooms(){\n\t}", "public void resetLastRoom(){this.aLastRooms.clear();}", "public void releaseLeftRooms() {\n if (mAreLeftRoomsSynced) {\n mLeftRoomsStore.clear();\n mAreLeftRoomsSynced = false;\n }\n }", "public void exitAllRooms() {\n\t\tfo...
[ "0.7070469", "0.7037874", "0.6632991", "0.6496831", "0.6301184", "0.61237013", "0.61141044", "0.60578007", "0.60431516", "0.59475666", "0.5941897", "0.5935057", "0.58477384", "0.5828725", "0.5794773", "0.57758224", "0.57497287", "0.5740111", "0.57247245", "0.56887746", "0.568...
0.69242513
2
Log.i(TAG, "URI_0 xmlFileToLayoutsPalette file=" + fileName + ", concatenate=" + concatenate);
public ArrayList<Layout> xmlFileToLayoutsPalette(String fileName, boolean concatenate) { InputStream fis; try { try { fis = mContext.openFileInput(fileName); //Log.i(TAG, "#URI_1 xmlFileToLayoutsPalette START, file=" + fileName + ", concatenate=" + concatenate); } catch (IllegalArgumentException e) { fis = new FileInputStream(new File(fileName)); //Log.i(TAG, "#URI_2 xmlFileToLayoutsPalette START, file=" + fileName + ", concatenate=" + concatenate); } } catch (FileNotFoundException e) { e.printStackTrace(); return null; } return xmlFileToLayoutsPalette(fis, concatenate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Layout> xmlFileToLayoutsPalette(InputStream fis, boolean concatenate) {\n\n ArrayList<Layout> result = null;\n\n Bundle bundle = null;\n ArrayList<Layout> layoutsPalette = null;\n Layout layoutElement = null;\n Stack<Bundle> bundleStack = new Stack<>();\n ...
[ "0.56809485", "0.5115478", "0.50699276", "0.50068843", "0.49564007", "0.49331015", "0.49314904", "0.49311802", "0.49066478", "0.48551452", "0.48406094", "0.48351714", "0.48320693", "0.47822925", "0.47755182", "0.47693077", "0.47687247", "0.4762208", "0.473776", "0.47248083", ...
0.58194524
0
Log.i(TAG, "URI_! xmlFileToLayoutsPalette stream=" + fis + ", concatenate=" + concatenate);
public ArrayList<Layout> xmlFileToLayoutsPalette(InputStream fis, boolean concatenate) { ArrayList<Layout> result = null; Bundle bundle = null; ArrayList<Layout> layoutsPalette = null; Layout layoutElement = null; Stack<Bundle> bundleStack = new Stack<>(); long arrayLong[] = null; float arrayFloat[] = null; String arrayString[] = null; int arrayIndex = 0; boolean needGC = false; mXmlPullParser = Xml.newPullParser(); try { //FileInputStream fis; mXmlPullParser.setInput(fis, null); int eventType = mXmlPullParser.getEventType(); boolean done = false; while (eventType != XmlPullParser.END_DOCUMENT && !done) { String name = null; Bitmap denseIcon = null, ambientIcon = null; if(needGC) { System.gc(); needGC = false; } switch (eventType) { case XmlPullParser.START_DOCUMENT: // bundle = new Bundle(); break; case XmlPullParser.START_TAG: name = mXmlPullParser.getName(); if (name.equalsIgnoreCase(mRootTag)) { String prodid = mXmlPullParser.getAttributeValue(null, ATTR_PRODUCT_ID); if (null == prodid || !prodid.equalsIgnoreCase(productId)) { done = true; } } else if (name.equalsIgnoreCase(LAYOUTS_PALETTE)) { layoutsPalette = new ArrayList<>(); needGC = true; } else if (name.equalsIgnoreCase(LAYOUT)) { // bundleStack.push(bundle); // bundle = new Bundle(); layoutElement = new Layout(); layoutElement.iconAmbientFileName = null; layoutElement.iconDenseFileName = null; denseIcon = null; ambientIcon = null; needGC = true; } else if (name.equalsIgnoreCase(LAYOUT_NAME)) { String lp_name = mXmlPullParser.nextText(); // bundle.putString(name, lp_name); layoutElement.name = lp_name; // } else if (name.equalsIgnoreCase(DENSE_ICON) || name.equalsIgnoreCase(AMBIENT_ICON)) { // String base64gzip = mXmlPullParser.nextText(); // GZIPInputStream zis = new GZIPInputStream(new ByteArrayInputStream(Base64.decode(base64gzip, 0))); // ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream(); // byte[] buffer = new byte[1024]; // int len; while ((len = zis.read(buffer)) != -1) byteBuffer.write(buffer, 0, len); // zis.close(); //// bundle.putByteArray(name, byteBuffer.toByteArray()); // ByteArrayInputStream bais = new ByteArrayInputStream(byteBuffer.toByteArray()); // Bitmap bmp = BitmapFactory.decodeStream(bais); // Bitmap sb = Bitmap.createScaledBitmap(bmp, ACommon.LAYOUT_PALETTE_ICON_SIDE_DIMENSION, // ACommon.LAYOUT_PALETTE_ICON_SIDE_DIMENSION, true); // if (name.equalsIgnoreCase(DENSE_ICON)) { // layoutElement.iconDense = sb; // } else if (name.equalsIgnoreCase(AMBIENT_ICON)) { // layoutElement.iconAmbient = sb; // } // needGC = true; } else if (name.equalsIgnoreCase(DENSE_ICON) || name.equalsIgnoreCase(AMBIENT_ICON)) { String base64gzip = mXmlPullParser.nextText(); GZIPInputStream zis = new GZIPInputStream(new ByteArrayInputStream(Base64.decode(base64gzip, 0))); ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int len; while ((len = zis.read(buffer)) != -1) byteBuffer.write(buffer, 0, len); zis.close(); // bundle.putByteArray(name, byteBuffer.toByteArray()); ByteArrayInputStream bais = new ByteArrayInputStream(byteBuffer.toByteArray()); Bitmap bmp = BitmapFactory.decodeStream(bais); Bitmap sb = Bitmap.createScaledBitmap(bmp, ACommon.LAYOUT_PALETTE_ICON_SIDE_DIMENSION, ACommon.LAYOUT_PALETTE_ICON_SIDE_DIMENSION, true); if (name.equalsIgnoreCase(DENSE_ICON)) { denseIcon = sb; //Log.i(TAG, "#XML, xmlFileToLayoutsPalette, ICON, iconD=" + denseIcon + ", fname=" + layoutElement.iconDenseFileName); if (null != layoutElement.iconDenseFileName) { bmpToFile(denseIcon, layoutElement.iconDenseFileName); denseIcon = null; } } else if (name.equalsIgnoreCase(AMBIENT_ICON)) { ambientIcon = sb; //Log.i(TAG, "#XML, xmlFileToLayoutsPalette, ICON, iconA=" + ambientIcon + ", fname=" + layoutElement.iconAmbientFileName); if (null != layoutElement.iconAmbientFileName) { bmpToFile(ambientIcon, layoutElement.iconAmbientFileName); ambientIcon = null; } } needGC = true; } else if (name.equalsIgnoreCase(DENSE_ICON_FILENAME) || name.equalsIgnoreCase(AMBIENT_ICON_FILENAME)) { String iconFileName = mXmlPullParser.nextText(); if (name.equalsIgnoreCase(DENSE_ICON_FILENAME)) { if (!concatenate) layoutElement.iconDenseFileName = iconFileName; else layoutElement.iconDenseFileName = String.valueOf(System.currentTimeMillis()) + "_D"; //Log.i(TAG, "#XML, xmlFileToLayoutsPalette, FNAME, iconD=" + denseIcon + ", fname=" + layoutElement.iconDenseFileName); if (null != denseIcon) { bmpToFile(denseIcon, layoutElement.iconDenseFileName); denseIcon = null; } } else if (name.equalsIgnoreCase(AMBIENT_ICON_FILENAME)) { if (!concatenate) layoutElement.iconAmbientFileName = iconFileName; else layoutElement.iconAmbientFileName = String.valueOf(System.currentTimeMillis()) + "_A"; //Log.i(TAG, "#XML, xmlFileToLayoutsPalette, FNAME, iconA=" + ambientIcon + ", fname=" + layoutElement.iconAmbientFileName); if (null != ambientIcon) { bmpToFile(ambientIcon, layoutElement.iconAmbientFileName); ambientIcon = null; } } needGC = true; } else if (name.equalsIgnoreCase(WATCH_APPEARANCE)) { // bundleStack.push(bundle); bundle = new Bundle(); } else if (name.equalsIgnoreCase(INSCRIPTION_BUNDLE)) { bundleStack.push(bundle); bundle = new Bundle(); } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_DIRECTION) || name.equalsIgnoreCase(Inscription.CFG_INSCR_BEND) || name.equalsIgnoreCase(Inscription.CFG_INSCR_BURNIN) || name.equalsIgnoreCase(Inscription.CFG_INSCR_ENABLED) || name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTCOLOR) || name.equalsIgnoreCase(Inscription.CFG_INSCR_FX)) { arrayIndex = 0; arrayLong = new long[Inscription.NUM_INSCRIPTIONS]; for (int i = 0; i < Inscription.NUM_INSCRIPTIONS; i++) arrayLong[i] = 0; needGC = true; } else if (name.equalsIgnoreCase(ACommon.CFG_HOUR_MARKS)) { arrayIndex = 0; arrayLong = new long[WatchAppearance.NUM_HOUR_MARKS]; for (int i = 0; i < WatchAppearance.NUM_HOUR_MARKS; i++) arrayLong[i] = WatchAppearance.DEFAULT_HOUR_MARK; //0; needGC = true; } else if (name.equalsIgnoreCase(ACommon.CFG_HOUR_MARKS_RELIEF)) { arrayIndex = 0; arrayLong = new long[WatchAppearance.NUM_HOUR_MARKS]; for (int i = 0; i < WatchAppearance.NUM_HOUR_MARKS; i++) arrayLong[i] = WatchAppearance.DEFAULT_HOUR_MARK_RELIEF; needGC = true; } else if (name.equalsIgnoreCase(LONG_ITEM)) { String value = mXmlPullParser.nextText(); arrayIndex = fromXml(arrayLong, value, arrayIndex); } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_ANGLE) || name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTSIZE) || name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTSCALEX) || name.equalsIgnoreCase(Inscription.CFG_INSCR_RADIUS) || name.equalsIgnoreCase(Inscription.CFG_INSCR_INCLINE)) { arrayIndex = 0; arrayFloat = new float[Inscription.NUM_INSCRIPTIONS]; for(int i=0; i<Inscription.NUM_INSCRIPTIONS; i++) arrayFloat[i] = 0.0f; needGC = true; } else if (name.equalsIgnoreCase(FLOAT_ITEM)) { String value = mXmlPullParser.nextText(); arrayIndex = fromXml(arrayFloat, value, arrayIndex); } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_FONTFAMILY) || name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXT) || name.equalsIgnoreCase(Inscription.CFG_INSCR_FONTSTYLE)) { arrayIndex = 0; arrayString = new String[Inscription.NUM_INSCRIPTIONS]; for(int i=0; i<Inscription.NUM_INSCRIPTIONS; i++) arrayString[i] = ""; needGC = true; } else if (name.equalsIgnoreCase(STRING_ITEM)) { String value = mXmlPullParser.nextText(); arrayIndex = fromXml(arrayString, value, arrayIndex); } else { String value = mXmlPullParser.nextText(); fromXML(bundle, name, value); } break; case XmlPullParser.END_TAG: name = mXmlPullParser.getName(); if (name.equalsIgnoreCase(mRootTag)) { done = true; } else if (name.equalsIgnoreCase(LAYOUTS_PALETTE)) { // bundle.putStringArrayList(LAYOUTS_PALETTE, layoutsPalette); result = layoutsPalette; needGC = true; } else if (name.equalsIgnoreCase(LAYOUT)) { // String base64 = ACommon.serializeBundle(bundle); // layoutsPalette.add(base64); // bundle = bundleStack.pop(); layoutsPalette.add(layoutElement); needGC = true; } else if (name.equalsIgnoreCase(WATCH_APPEARANCE)) { // Bundle poped = bundleStack.pop(); // poped.putBundle(WATCH_APPEARANCE, bundle); // bundle = poped; layoutElement.config = bundle; bundle = null; } else if (name.equalsIgnoreCase(INSCRIPTION_BUNDLE)) { Bundle popped = bundleStack.pop(); popped.putBundle(INSCRIPTION_BUNDLE, bundle); bundle = popped; } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_DIRECTION) || name.equalsIgnoreCase(Inscription.CFG_INSCR_BEND) || name.equalsIgnoreCase(Inscription.CFG_INSCR_BURNIN) || name.equalsIgnoreCase(Inscription.CFG_INSCR_ENABLED) || name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTCOLOR) || name.equalsIgnoreCase(Inscription.CFG_INSCR_FX)) { bundle.putLongArray(name, arrayLong); } else if (name.equalsIgnoreCase(ACommon.CFG_HOUR_MARKS)) { bundle.putLongArray(name, arrayLong); } else if (name.equalsIgnoreCase(ACommon.CFG_HOUR_MARKS_RELIEF)) { bundle.putLongArray(name, arrayLong); } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_ANGLE) || name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTSIZE) || name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXTSCALEX) || name.equalsIgnoreCase(Inscription.CFG_INSCR_RADIUS) || name.equalsIgnoreCase(Inscription.CFG_INSCR_INCLINE)) { bundle.putFloatArray(name, arrayFloat); } else if (name.equalsIgnoreCase(Inscription.CFG_INSCR_FONTFAMILY) || name.equalsIgnoreCase(Inscription.CFG_INSCR_TEXT) || name.equalsIgnoreCase(Inscription.CFG_INSCR_FONTSTYLE)) { bundle.putStringArray(name, arrayString); } break; } // switch eventType = mXmlPullParser.next(); } // while } catch (Exception e) { e.printStackTrace(); result = null; } finally { System.gc(); } // Log.i(TAG, "((( xmlFileToLayoutsPalette STOP, file=" + fileName + // ", elements count=" + ((null==result) ? 0 : result.size()) + ", concatenate=" + concatenate); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void xmlInputStream() {\n inputStream = context.getResources().openRawResource(R.raw.flowers_xml);\n //stringInputStream = convertInputStreamToString(inputStream);\n //System.out.println(\"------------ InputStream ------------\\n\" + stringInputStream);\n //---------------------...
[ "0.5620498", "0.5533194", "0.5486039", "0.52897197", "0.5165067", "0.5156936", "0.5009707", "0.4961929", "0.4948685", "0.48964918", "0.48785537", "0.48730135", "0.48683703", "0.48564482", "0.48558834", "0.4846831", "0.4807251", "0.4785708", "0.47724873", "0.47482702", "0.4739...
0.65155846
0
Creates a type for a java class.
public JavaType(Class c) { underlyingClass = c; // Work out the basic java type based on the underlying class. setBasicType(underlyingClass); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static JavaType createForClass(Class<?> clazz) {\n return new JavaType(clazz);\n }", "Type createType();", "Type createType();", "Type createType();", "HxType createType(final String className);", "private JavaType(Class<?> clazz) {\n this.clazz = clazz;\n }", "private JavaType(String na...
[ "0.79136336", "0.74209774", "0.74209774", "0.74209774", "0.7395033", "0.7366337", "0.7223079", "0.7063198", "0.6862264", "0.6811631", "0.6728048", "0.65842587", "0.65036833", "0.6437176", "0.6379957", "0.6366462", "0.63218826", "0.63073486", "0.62741137", "0.62705064", "0.624...
0.65949154
11
Creates a type for a java class, with the additional possible restriction that instantces of this type must not be allowed to be null.
public JavaType(Class c, boolean notNull) { underlyingClass = c; // Work out the basic java type based on the underlying class. setBasicType(underlyingClass); if (notNull) { restrictions = new LinkedList<TypeRestriction>(); restrictions.add(new NotNullRestriction()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JavaType(Class<?> clazz) {\n this.clazz = clazz;\n }", "public static JavaType createForClass(Class<?> clazz) {\n return new JavaType(clazz);\n }", "private JavaType(String name) {\n this.name = name;\n }", "public org.python.types.Type __new__(org.python.types.Type cls);", "Type create...
[ "0.74178565", "0.7246396", "0.683185", "0.68079895", "0.65974516", "0.65974516", "0.65974516", "0.63964736", "0.6245174", "0.62082666", "0.606423", "0.59970367", "0.5971663", "0.5934693", "0.59140545", "0.5901617", "0.5892563", "0.5882231", "0.58672404", "0.5839871", "0.58184...
0.68464756
2
Creates a type for a java object.
public JavaType(T o) { underlyingClass = (Class<T>) o.getClass(); // Work out the basic java type based on the underlying class. setBasicType(underlyingClass); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Type createType();", "Type createType();", "Type createType();", "private JavaType(String name) {\n this.name = name;\n }", "TypeDefinition createTypeDefinition();", "ObjectTypeDefinition createObjectTypeDefinition();", "HxType createType(final String className);", "NamedType createNamedType();",...
[ "0.7485393", "0.7485393", "0.7485393", "0.6752294", "0.6742057", "0.6708105", "0.6662029", "0.6649401", "0.6593406", "0.65576684", "0.65389603", "0.64851147", "0.6472769", "0.6447205", "0.6405095", "0.62988317", "0.6278961", "0.6257091", "0.6205504", "0.6185471", "0.61702454"...
0.64257336
14
Should return a name that uniquely identifies the type.
public String getName() { return underlyingClass.getName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String typeName();", "public String getTypeName() {\n return type.name();\n }", "public String getTypeName();", "public String getTypeName();", "public abstract String getTypeName();", "public String getName() {\n return type.toString();\n }", "@Override\n public String getName() {\n ...
[ "0.81181985", "0.78771377", "0.78495604", "0.78495604", "0.7753218", "0.7602376", "0.7595874", "0.7513398", "0.7513398", "0.7513398", "0.7513398", "0.75094426", "0.7477915", "0.7465655", "0.7451251", "0.74494207", "0.7402197", "0.73749393", "0.7371118", "0.7325", "0.73128545"...
0.0
-1
Returns the underlying Java class that this is the type for.
public Class<T> getBaseClass() { return underlyingClass; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Class getJavaClass() {\n return _class;\n }", "public Class<?> getJavaClass() {\n return clazz;\n }", "public java.lang.String getJavaClass()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.Si...
[ "0.81413925", "0.78431624", "0.75641984", "0.75000906", "0.7488302", "0.73309785", "0.71820205", "0.708768", "0.7065202", "0.6973355", "0.6927014", "0.68721783", "0.67604107", "0.675047", "0.6743789", "0.6734557", "0.67325634", "0.66498035", "0.6645878", "0.66173685", "0.6559...
0.64391094
32
Should determine how many different values an instance of the implementations type can take on.
public int getNumPossibleValues() { return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getValuesCount();", "@Override\n\tpublic int numClasses() {\n\t\treturn attributes[classIndex].numValues();\n\t}", "@Override\n\tpublic int numValues() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}", "int getRequestedValuesCount();", "public int getValueCount() {\n return value_.size...
[ "0.6756958", "0.6590643", "0.6498218", "0.64748603", "0.63060504", "0.62678987", "0.614459", "0.6136068", "0.6133549", "0.60951835", "0.6080377", "0.6079602", "0.6056898", "0.6023389", "0.6023079", "0.5990848", "0.5986749", "0.5978789", "0.59537953", "0.59463817", "0.5941672"...
0.607399
12
Should return all the different values that an instance of this type can take on.
public Set<T> getAllPossibleValuesSet() throws InfiniteValuesException { throw new InfiniteValuesException("JavaType has infinite values.", null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n List<Value> values();", "Array<Object> getInstanceValues();", "default List<Object> getAttributeValues(T instance) {\n\t\tList<Object> attrValues = new ArrayList<>();\n\t\tfor (Attribute<T, ?> fld : getAttributes()) {\n\t\t\tattrValues.add(fld.getValue(instance));\n\t\t}\n\t\treturn attrValues;\...
[ "0.64944696", "0.6463134", "0.6432827", "0.63936114", "0.62032545", "0.6083949", "0.6062305", "0.6040749", "0.5974229", "0.5928074", "0.5919301", "0.5910011", "0.59089994", "0.5907849", "0.5907849", "0.5902307", "0.5889", "0.58884656", "0.5878802", "0.5868322", "0.5861816", ...
0.55370003
59
Sets the basic type of this type depending on the class.
private void setBasicType(Class c) { if (Boolean.class.equals(c)) { type = BasicTypes.BOOLEAN; } else if (Character.class.equals(c)) { type = BasicTypes.CHARACTER; } else if (Byte.class.equals(c)) { type = BasicTypes.BYTE; } else if (Short.class.equals(c)) { type = BasicTypes.SHORT; } else if (Integer.class.equals(c)) { type = BasicTypes.INTEGER; } else if (Long.class.equals(c)) { type = BasicTypes.LONG; } else if (Float.class.equals(c)) { type = BasicTypes.FLOAT; } else if (Double.class.equals(c)) { type = BasicTypes.DOUBLE; } else { type = BasicTypes.OTHER; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setClassType(String classType);", "public void setBasicType(String basicType) {\n this.basicType = basicType;\n }", "public void setType(Class type) {\n\t this.type = type;\n\t }", "@objid (\"332a71dc-5b01-4699-b13d-7978d6dfd6de\")\n void setBase(GeneralClass value);", "pu...
[ "0.6514695", "0.6384718", "0.62084997", "0.614355", "0.6112659", "0.60680056", "0.5965295", "0.5909067", "0.58627665", "0.58362985", "0.58315367", "0.5823038", "0.58190644", "0.57695323", "0.5756295", "0.57520664", "0.57519555", "0.57460433", "0.5742673", "0.57382834", "0.572...
0.70619357
0
Creates a JTM writer, using "utf8" encoding.
public JTMTopicMapWriter(final OutputStream out, final String baseIRI) throws IOException { this(out, baseIRI, "utf-8"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JTMTopicMapWriter(final OutputStream out, final String baseIRI, final String encoding) throws IOException {\n if (encoding == null) {\n throw new IOException(\"The encoding must not be null\");\n }\n _baseIRI = baseIRI;\n _out = new JSONWriter(out, encoding);\n ...
[ "0.5375606", "0.5220623", "0.51802325", "0.5167729", "0.5150817", "0.50967455", "0.49835745", "0.49363738", "0.48206544", "0.47835508", "0.4766587", "0.4742075", "0.47329518", "0.4710466", "0.4698959", "0.46868098", "0.46363717", "0.46363136", "0.462124", "0.46159655", "0.461...
0.44283894
51
Creates a JTM writer.
public JTMTopicMapWriter(final OutputStream out, final String baseIRI, final String encoding) throws IOException { if (encoding == null) { throw new IOException("The encoding must not be null"); } _baseIRI = baseIRI; _out = new JSONWriter(out, encoding); _out.setPrettify(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Write createWrite();", "private void createWriter() throws IOException {\n if (outputFile.exists()) {\n outputFile.delete();\n }\n FileWriter outFw = null;\n try {\n outFw = new FileWriter(outputFile.getAbsolutePath());\n } catch (IOException e) {\n ...
[ "0.6231714", "0.55262786", "0.5460667", "0.54029995", "0.5395341", "0.53442365", "0.5266567", "0.5263832", "0.5203015", "0.519725", "0.51832277", "0.515254", "0.5142981", "0.50129837", "0.5004556", "0.4991817", "0.49676776", "0.49345845", "0.49217448", "0.49074262", "0.489569...
0.48522305
25
Enables / disables newlines and indentation of the JSON output. (disabled by default)
public void setPrettify(boolean prettify) { _out.setPrettify(prettify); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String toJSONString(int indentFactor) throws JSONException {\n\t\tStringWriter sw = new StringWriter();\n\t\tsynchronized (sw.getBuffer()) {\n\t\t\treturn this.write(sw, indentFactor, 0).toString();\n\t\t}\n\t}", "IParser setPrettyPrint(boolean thePrettyPrint);", "public void setPrettyPrint...
[ "0.5947198", "0.59070677", "0.5893147", "0.58783185", "0.5677007", "0.55406654", "0.5531158", "0.5494215", "0.5452736", "0.5439961", "0.54191446", "0.541905", "0.5404565", "0.532959", "0.52604675", "0.5230731", "0.52105093", "0.517834", "0.5175414", "0.5106346", "0.5086423", ...
0.4888037
44
Returns if newlines and indentation are enabled.
public boolean getPrettify() { return _out.getPrettify(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isNewline() {\n // -- if we need to add indentation, we are on a new line\n return addIndentation;\n }", "public boolean isMultiline() {\n return multiline;\n }", "protected abstract boolean isMultiLine();", "public boolean isWrapStatements()\n {\n return _isWr...
[ "0.747741", "0.6800248", "0.64899623", "0.6216204", "0.62063617", "0.61049503", "0.60624313", "0.605013", "0.6020373", "0.59246445", "0.5877153", "0.5876486", "0.584409", "0.58351856", "0.5808072", "0.578877", "0.56986856", "0.56986856", "0.5689711", "0.5687505", "0.5676027",...
0.5845673
12
Serializes the specified topic. The default name type topic is omitted in case it carries no further characteristics.
private void _writeTopic(final Topic topic) throws IOException { // Ignore the topic if it is the default name type and it has no further // characteristics if (topic.equals(_defaultNameType)) { return; } _out.startObject(); _writeItemIdentifiers(topic); _writeLocators("subject_identifiers", topic.getSubjectIdentifiers()); _writeLocators("subject_locators", topic.getSubjectLocators()); Set<Name> names = topic.getNames(); if (!names.isEmpty()) { _out.key("names"); _out.startArray(); for (Name name: names) { _writeName(name); } _out.endArray(); } Set<Occurrence> occs = topic.getOccurrences(); if (!occs.isEmpty()) { _out.key("occurrences"); _out.startArray(); for (Occurrence occ: occs) { _writeOccurrence(occ); } _out.endArray(); } _out.endObject(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void to(String topic);", "@Override\n\t\t\t\tpublic void addTopic(String topic) {\n\t\t\t\t\t\tsendData(\"<new><name>\" + topic +\"</name></new>\");\n\t\t\t\t}", "public void createTopic(String topic) {\n\n\t}", "public void setTopic(String topic) {\n this.topic = topic;\n }", "public void setTop...
[ "0.6712458", "0.6593944", "0.6516588", "0.6257587", "0.62527996", "0.6158665", "0.6158665", "0.61566937", "0.61259824", "0.6100921", "0.6063634", "0.5981567", "0.5967877", "0.59120196", "0.5901797", "0.58262014", "0.5762824", "0.57242554", "0.5696146", "0.5665405", "0.5645024...
0.75498176
0
Serializes the specified name.
private void _writeName(final Name name) throws IOException { _out.startObject(); _writeReifier(name); _writeItemIdentifiers(name); if (!name.getType().equals(_defaultNameType)) { _writeType(name); } _writeScope(name); _writeKeyValue("value", name.getValue()); Set<Variant> variants = name.getVariants(); if (!variants.isEmpty()) { _out.key("variants"); _out.startArray(); for (Variant variant: variants) { _writeVariant(variant); } _out.endArray(); } _out.endObject(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void serialize(String file_name) {\n\t\t//Saving of object in a file\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(file_name);\n\t\t\tObjectOutputStream out = new ObjectOutputStream(file);\n\t\t\t// Method for serialization of object\n\t\t\tout.writeObject(this.GA);\n\n\t\t\tout.close();\n...
[ "0.6665875", "0.66342986", "0.59949005", "0.5938038", "0.5919492", "0.5918538", "0.5918538", "0.59131896", "0.5892724", "0.58845055", "0.5868817", "0.5865027", "0.58581764", "0.57888496", "0.5783508", "0.5724715", "0.57081413", "0.57020533", "0.5687603", "0.56791705", "0.5652...
0.7358582
0
Serializes the specified variant.
private void _writeVariant(final Variant variant) throws IOException { _out.startObject(); _writeReifier(variant); _writeItemIdentifiers(variant); _writeScope(variant); _writeDatatypeAware(variant); _out.endObject(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setVariantId(final Integer variantId);", "@Generated(value = \"io.vrap.rmf.codegen.rendering.CoreCodeGenerator\", comments = \"https://github.com/commercetools/rmf-codegen\")\n@JsonDeserialize(as = ProductVariantImpl.class)\npublic interface ProductVariant {\n\n /**\n * <p>The product that co...
[ "0.5744507", "0.5642358", "0.55440336", "0.5530658", "0.5503503", "0.54651964", "0.5294507", "0.5282288", "0.5240127", "0.52398485", "0.5231524", "0.52309835", "0.52077436", "0.5203246", "0.5186137", "0.51007736", "0.509404", "0.50101084", "0.49782535", "0.49727535", "0.49403...
0.76232827
0
Serializes the specifed occurrence.
private void _writeOccurrence(final Occurrence occ) throws IOException { _out.startObject(); _writeReifier(occ); _writeItemIdentifiers(occ); _writeType(occ); _writeScope(occ); _writeDatatypeAware(occ); _out.endObject(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String toString() {\n\t\treturn this.getStringEventId()+\"-\"+this.getOccurrenceMark();\n\t}", "@Override\n void onValueWrite(SerializerElem e, Object o) {\n\n }", "public DateTime getOccurrenceTime() { return occurrenceTime; }", "@Override\n\tpublic String toString() {\n\t\treturn ...
[ "0.587821", "0.5074706", "0.50642896", "0.5009794", "0.49246088", "0.47982037", "0.4782908", "0.47795677", "0.47654635", "0.47245413", "0.47239897", "0.4700914", "0.46920207", "0.4688775", "0.4645428", "0.46429524", "0.46131906", "0.46042606", "0.46009246", "0.45848194", "0.4...
0.7235899
0
Writes the value and datatype of an occurrence or variant.
private void _writeDatatypeAware(final DatatypeAware datatyped) throws IOException { final String datatype = datatyped.getDatatype().getReference(); String value = XSD.ANY_URI.equals(datatype) ? datatyped.locatorValue().toExternalForm() : datatyped.getValue(); _writeKeyValue("value", value); if (!XSD.STRING.equals(datatype)) { _writeKeyValue("datatype", datatyped.getDatatype().toExternalForm()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void write (Object val);", "public void _write(org.omg.CORBA.portable.OutputStream ostream)\r\n {\r\n PropositionHelper.write(ostream,value);\r\n }", "public static void write(OutputStream paramOutputStream, ValueMember paramValueMember) {\n/* 153 */ paramOutputStream.write_...
[ "0.68437785", "0.63037884", "0.62536615", "0.62435955", "0.62039834", "0.6166344", "0.6155532", "0.5910408", "0.5879634", "0.5855816", "0.57907045", "0.5772566", "0.5737778", "0.5736015", "0.56428915", "0.56309766", "0.5630895", "0.5628826", "0.5608603", "0.55098593", "0.5466...
0.6195113
5
Serializes the item identifiers of the specified construct.
private void _writeItemIdentifiers(final Construct construct) throws IOException { if (_exportIIds) { _writeLocators("item_identifiers", construct.getItemIdentifiers()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeIDs() {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"temp/ids.ser\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(ids);\n out.close();\n fileOut.close();\n } catch (IOException e) ...
[ "0.5355672", "0.5351521", "0.50354826", "0.50354254", "0.495893", "0.48093835", "0.47594216", "0.47377154", "0.46998033", "0.4624193", "0.45654595", "0.4542129", "0.44829023", "0.44818416", "0.4481166", "0.44352022", "0.44319406", "0.44217345", "0.44172227", "0.44172227", "0....
0.766816
0
Writes a set of locators under the specified name. If the set is empty, this method does nothing.
private void _writeLocators(final String name, final Set<Locator> locators) throws IOException { if (locators.isEmpty()) { return; } _out.key(name); _out.startArray(); for (Locator loc: locators) { _out.value(loc.toExternalForm()); } _out.endArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLookupLocators( LookupLocator[] locs ) throws RemoteException {\n\t\tlog.config(\"set lookup locators\");\n\t\ttry {\n\t\t\tPersistentData data = io.readState();\n\t\t\tdisco.setLocators( locs );\n\t\t\tdata.locators = locs;\n\t\t\tio.writeState( data );\n\t\t} catch( ClassNotFoundException ex ) {\n...
[ "0.5516046", "0.55055034", "0.5359219", "0.49582142", "0.48609623", "0.4851114", "0.46464446", "0.45416835", "0.44633868", "0.4461688", "0.44069764", "0.43646157", "0.43501487", "0.43306562", "0.43176022", "0.43086678", "0.42921072", "0.42706257", "0.42533287", "0.42098284", ...
0.83464867
0
Serializes the specified asssociation.
private void _writeAssociation(final Association assoc) throws IOException { Set<Role> roles = assoc.getRoles(); if (roles.isEmpty()) { return; } _out.startObject(); _writeReifier(assoc); _writeItemIdentifiers(assoc); _writeType(assoc); _writeScope(assoc); _out.key("roles"); _out.startArray(); for (Role role: roles) { _writeRole(role); } _out.endArray(); _out.endObject(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveAsSerialization() {\n try(ObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(new File(\"saves/data.dat\")))){\n os.writeObject(this);\n } catch (FileNotFoundException e){\n System.out.println(\"Could not create file: \" + e.getMessage());\n ...
[ "0.4925794", "0.49002606", "0.48914808", "0.48914808", "0.4889329", "0.48693094", "0.48477167", "0.4809398", "0.48081687", "0.47939077", "0.47816", "0.4762517", "0.47574732", "0.47160593", "0.4693074", "0.46702498", "0.46590757", "0.46510863", "0.4637898", "0.4633624", "0.458...
0.497575
0
Serializes the specified role.
private void _writeRole(final Role role) throws IOException { _out.startObject(); _writeReifier(role); _writeItemIdentifiers(role); _writeType(role); _writeKeyValue("player", _topicRef(role.getPlayer())); _out.endObject(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@XmlAttribute\r\n public String getRole() {\r\n return role;\r\n }", "public void setRole(String role) {\n this.role = role;\n }", "public void setRole(String role) {\n\t\tthis.role = role;\n\t}", "public void setRole(String role) {\r\n\t\tthis.role = role;\r\n\t}", "public void setRole(Stri...
[ "0.67816263", "0.6769554", "0.6764521", "0.6748653", "0.67370415", "0.6679461", "0.6654276", "0.6512882", "0.64891887", "0.6477113", "0.64610505", "0.64291537", "0.64148796", "0.6412029", "0.6394637", "0.638384", "0.6380755", "0.6359028", "0.63582045", "0.63449275", "0.633559...
0.7357718
0
Writes the type of a typed construct.
private void _writeType(final Typed typed) throws IOException { _writeKeyValue("type", _topicRef(typed.getType())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeConcreteType(Class<?> type);", "protected void writeType ()\n {\n stream.println (\" public org.omg.CORBA.TypeCode _type ()\");\n stream.println (\" {\");\n stream.println (\" return \" + helperClass + \".type ();\");\n stream.println (\" }\");\n stream.println ();\n }", "priva...
[ "0.6918902", "0.6646329", "0.6377303", "0.6208161", "0.5903932", "0.5867527", "0.58051604", "0.5723964", "0.5682457", "0.5682457", "0.5682457", "0.5651964", "0.562618", "0.5613116", "0.56054", "0.55978584", "0.5557611", "0.5554433", "0.5549639", "0.5549639", "0.5549639", "0...
0.77129877
0