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
Adds the property names for this shape.
protected void addPropNames() { addPropNames("Visible", "X", "Y", "Width", "Height", "Roll", "ScaleX", "ScaleY", "Font", "TextColor", "FillColor", "StrokeColor", "URL"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected final void addPropNames(String ... theNames) { Collections.addAll(getPropertyNames(), theNames); }", "@Override\n\tpublic void addProperty(String name) {\n\t}", "public ArrayList<String> getPropNames()\n {\n return this.prop_names;\n }", "@Override\n public String[] getPropertyName...
[ "0.72144324", "0.7007388", "0.648216", "0.6315881", "0.62461734", "0.6140626", "0.6113325", "0.59769315", "0.58139867", "0.57454705", "0.569243", "0.568594", "0.568594", "0.55990446", "0.55953497", "0.55458105", "0.55453134", "0.55448043", "0.55418336", "0.5523063", "0.551810...
0.7220886
0
Adds given property names to the front of property names list.
protected final void addPropNames(String ... theNames) { Collections.addAll(getPropertyNames(), theNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNames() {}", "public void addNames() {}", "private void addPrevNames(String name){\r\n\t\tif (!prevNames.contains(name)){\r\n\t\t\tprevNames.add(name);\r\n\t\t}\r\n\t}", "public void setPropNames(ArrayList<String> props)\n {\n this.prop_names = props;\n fireTableDataChanged();...
[ "0.56635094", "0.56635094", "0.56472987", "0.55260295", "0.5457618", "0.5447016", "0.5377653", "0.523541", "0.5196804", "0.5174032", "0.51466393", "0.50801873", "0.5023141", "0.50228596", "0.50143975", "0.4985073", "0.49710923", "0.49150884", "0.4910746", "0.48952225", "0.489...
0.7159808
0
Returns a mapped property name.
public String getPropertyNameMapped(String aName) { return aName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPropertyName();", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public String getPropertyName();", "PropertyName getName();", "public String getPropertyName() {\n return this.propertyName;\n }", "public String getPropName() ...
[ "0.7822927", "0.7598169", "0.7562221", "0.75481725", "0.72723466", "0.7235471", "0.72151303", "0.71569014", "0.704486", "0.6897684", "0.68928504", "0.68900144", "0.6788628", "0.6771011", "0.6768782", "0.6763603", "0.67494994", "0.67038715", "0.66971457", "0.6683523", "0.66450...
0.7797019
1
Returns the number of bindings associated with shape.
public int getBindingCount() { List bindings = getBindings(false); return bindings!=null? bindings.size() : 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getAdditionalBindingsCount() {\n return additionalBindings_.size();\n }", "public int shapeCount()\n {\n // return the number of children in the list\n return children.size();\n }", "public int getAdditionalBindingsCount() {\n return instance.getAdditionalBindingsCount()...
[ "0.6779319", "0.6777948", "0.6730024", "0.6513798", "0.64465207", "0.63402283", "0.60905015", "0.6061287", "0.5989683", "0.5928357", "0.58940125", "0.5887913", "0.5881092", "0.58465886", "0.584543", "0.58414245", "0.58254814", "0.5823663", "0.5816877", "0.5811503", "0.5772966...
0.8104929
0
Returns the individual binding at the given index.
public Binding getBinding(int anIndex) { return getBindings(true).get(anIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.api.HttpRule getAdditionalBindings(int index) {\n return instance.getAdditionalBindings(index);\n }", "public com.google.api.HttpRule getAdditionalBindings(int index) {\n return additionalBindings_.get(index);\n }", "IIndexFragmentBinding findBinding(IASTName astName) throws CoreE...
[ "0.65619504", "0.65215254", "0.6462573", "0.61078525", "0.60640293", "0.5996556", "0.59910876", "0.5874622", "0.58086246", "0.5784096", "0.5779396", "0.5773203", "0.5772038", "0.5760139", "0.5750286", "0.5743673", "0.5741656", "0.57401234", "0.57283163", "0.57267374", "0.5720...
0.86278373
0
Returns the list of bindings, with an option to create if missing.
protected List <Binding> getBindings(boolean doCreate) { List <Binding> bindings = (List)get("RibsBindings"); if(bindings==null && doCreate) put("RibsBindings", bindings = new ArrayList()); return bindings; }
{ "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}", "@Nonnull\n SystemScriptBindings getBindings();", "private void addGetChildBindings() {\n\t\tthis.pathBindingClass.addImports(Binding.class, List.class);\n\t\tG...
[ "0.6178678", "0.57654417", "0.5734046", "0.56439644", "0.56439644", "0.55527854", "0.5537067", "0.5509835", "0.5448492", "0.543915", "0.54162645", "0.5393741", "0.5340998", "0.5294087", "0.5294087", "0.5285418", "0.52148706", "0.520901", "0.5207808", "0.5195829", "0.51557904"...
0.7051368
0
Adds the individual binding to the shape's bindings list.
public void addBinding(Binding aBinding) { removeBinding(aBinding.getPropertyName()); // Remove current binding for property name (if it exists) List <Binding> bindings = getBindings(true); // Add binding bindings.add(aBinding); aBinding.setNode(this); // Set binding width to this shape }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addBinding(WbBinding binding)\n {\n _bindingList.add(binding);\n }", "public void add(Binding binding) {\n\tif (values == null) values = new LinkedList();\n\tvalues.add(binding);\n }", "public void addBinding(int binding, ZEPipelineBindType bindType, int arrayCount, String[] shaderStages...
[ "0.75683874", "0.7257143", "0.6843841", "0.64259636", "0.63506526", "0.63252264", "0.60711175", "0.60443616", "0.6015334", "0.60107285", "0.59981567", "0.59839326", "0.5972657", "0.5934111", "0.5934111", "0.59191805", "0.59191805", "0.5871963", "0.5816897", "0.58013", "0.5768...
0.79533505
0
Removes the binding at the given index from shape's bindings list.
public Binding removeBinding(int anIndex) { return getBindings(true).remove(anIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeAdditionalBindings(int index) {\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.remove(index);\n }", "public Builder removeAdditionalBindings(int index) {\n copyOnWrite();\n instance.removeAdditionalBindings(index);\n return this;\n }", "public Builder r...
[ "0.773574", "0.71525836", "0.64618295", "0.6237398", "0.62056494", "0.5933851", "0.5909697", "0.58796626", "0.5856322", "0.5846464", "0.5831945", "0.58292717", "0.5814928", "0.581462", "0.580554", "0.58048475", "0.5774976", "0.57747465", "0.5766228", "0.5762839", "0.5734943",...
0.8494233
0
Returns the individual binding with the given property name.
public Binding getBinding(String aPropertyName) { // Iterate over bindings and return the first that matches given property name for(int i=0, iMax=getBindingCount(); i<iMax; i++) if(getBinding(i).getPropertyName().equals(aPropertyName)) return getBinding(i); return null; // Return null s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object get(String name) {\n\t\tMap<?, ?> bindings = m_bindings.getBindings();\n\t\tif (bindings == null) {\n\t\t\tlog.info(\"get: no bindings!\");\n\t\t\treturn null;\n\t\t}\n\n\t\treturn bindings.get(name);\n\t}", "public Binding getBinding(int anIndex) { return getBindings(true).get(anIndex); }", "Pr...
[ "0.6489929", "0.6303925", "0.6049578", "0.603349", "0.5881659", "0.57206625", "0.56944716", "0.5679992", "0.5666422", "0.56147015", "0.56016153", "0.5549678", "0.5530668", "0.5506761", "0.55001426", "0.5459863", "0.54401034", "0.54399747", "0.5433665", "0.53661364", "0.535907...
0.82327706
0
Removes the binding with given property name.
public boolean removeBinding(String aPropertyName) { // Iterate over binding and remove given binding for(int i=0, iMax=getBindingCount(); i<iMax; i++) if(getBinding(i).getPropertyName().equals(aPropertyName)) { removeBinding(i); return true; } return false; // Return false since binding...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeProperty(String name) {\n HttpSession session = (HttpSession) _currentSession.get();\n if (session != null) {\n session.removeAttribute(name);\n \n // Also remove it from the input parameter list.\n Map inputParameters = (Map) session.getAttribute(\"_inputs\...
[ "0.6881405", "0.6845688", "0.65820116", "0.6576321", "0.651339", "0.64862657", "0.64745307", "0.6465431", "0.6417441", "0.6402996", "0.63850915", "0.6362602", "0.63358516", "0.6319663", "0.6259267", "0.6187719", "0.6156268", "0.6101618", "0.60683894", "0.60680735", "0.5967575...
0.76418
0
Adds a binding for given name and key.
public void addBinding(String aPropName, String aKey) { addBinding(new Binding(aPropName, aKey)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void addNameBinding (String name, Object javaObject)\n\t{\n\t\tm_interpreter.set (name, javaObject);\n\t}", "void addNewBindPath(String path);", "public void addBinding(Binding aBinding)\n{\n removeBinding(aBinding.getPropertyName()); // Remove current binding for property name (if it exists)\...
[ "0.6320495", "0.6245281", "0.6241959", "0.61545897", "0.5949996", "0.59139824", "0.58828735", "0.5847793", "0.57929605", "0.57049865", "0.5688566", "0.56784874", "0.56629", "0.5659056", "0.5657875", "0.5641594", "0.5641594", "0.5637679", "0.56317455", "0.5599703", "0.5562058"...
0.7791169
0
Returns whether given event is enabled.
public boolean isEnabled(UIEvent.Type aType) { return getEventAdapter(true).isEnabled(aType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasEvent();", "boolean hasEnabled();", "boolean eventEnabled(AWTEvent e) {\n return false;\n }", "final public boolean isEnabled() {\n return enabledType!=ENABLED_NONE;\n }", "boolean eventEnabled(AWTEvent e) {\n if (e.id == ActionEvent.ACTION_PERFORMED) {\n if (...
[ "0.7047918", "0.7006053", "0.69601", "0.67669547", "0.67015404", "0.6577374", "0.65424794", "0.65357625", "0.6493938", "0.6489928", "0.6458358", "0.64557403", "0.64555526", "0.6452078", "0.64234036", "0.6363728", "0.63589174", "0.6338515", "0.6329165", "0.63282704", "0.63269"...
0.64978623
8
Sets whether given event is enabled.
public void setEnabled(UIEvent.Type aType, boolean aValue) { getEventAdapter(true).setEnabled(aType, aValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean setEventsEnabled(boolean enabled);", "@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_BOOLEAN, defaultValue = \"False\")\n @SimpleProperty\n public void PressedEventEnabled(boolean enabled) {\n boolean handlerWasNeeded = isHandlerNeeded();\n\n pressedEventEnabled = enabl...
[ "0.79099905", "0.6887478", "0.68465143", "0.6789954", "0.67897826", "0.67513776", "0.67109275", "0.6677259", "0.64238364", "0.64190614", "0.6412184", "0.6400075", "0.63669443", "0.6365262", "0.6325714", "0.6325714", "0.6311586", "0.62829524", "0.62594485", "0.62594485", "0.62...
0.6412103
11
Returns the ShapeEventAdapter for this shape.
public RMShapeEventAdapter getEventAdapter(boolean doCreate) { RMShapeEventAdapter sea = (RMShapeEventAdapter)get("EventAdapter"); if(sea==null && doCreate) put("EventAdapter", sea = new RMShapeEventAdapter(this)); return sea; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected MapShapeAdapter getShapeAdapter() {\r\n return shapeAdapter;\r\n }", "public FireShapes getShape() {\r\n\t\treturn shape;\r\n\t}", "public Shape getShape()\n {\n return Shape.this;\n }", "public AdaptationEvent getAdaptationEvent() {\r\n return event;\r\...
[ "0.69614136", "0.55498636", "0.5462724", "0.5421309", "0.53993183", "0.5314576", "0.5294025", "0.52888197", "0.52669334", "0.52516735", "0.5235702", "0.52305317", "0.5189626", "0.5188754", "0.5145903", "0.5129706", "0.5070893", "0.50502694", "0.5043218", "0.50250965", "0.4947...
0.54837507
2
Standard implementation of Object clone. Null's out shape's parent and children.
public RMShape clone() { // Do normal version, clear parent, LayoutInfoX, clone RSS RMShape clone = (RMShape)super.clone(); clone._parent = null; clone._layoutInfoX = null; clone._rss = RMUtils.clone(_rss); // Clone stroke, fill, effect clone._stroke = null; clone._fill = null; clone._effec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Object clone();", "public abstract Object clone() ;", "Object clone();", "Object clone();", "public abstract Shape clone() throws CloneNotSupportedException;", "public RMShape cloneDeep() { return clone(); }", "public Object clone();", "public Object clone();", "public Object clone...
[ "0.77481997", "0.7726705", "0.7610804", "0.7610804", "0.7604861", "0.7602186", "0.7468176", "0.7468176", "0.7468176", "0.7468176", "0.7426332", "0.73450863", "0.73235375", "0.7311561", "0.72495925", "0.7248783", "0.72460204", "0.7162499", "0.7133695", "0.71100473", "0.7091972...
0.7517485
6
Clones all attributes of this shape with complete clones of its children as well.
public RMShape cloneDeep() { return clone(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RMShape clone()\n{\n // Do normal version, clear parent, LayoutInfoX, clone RSS\n RMShape clone = (RMShape)super.clone();\n clone._parent = null; clone._layoutInfoX = null;\n clone._rss = RMUtils.clone(_rss);\n \n // Clone stroke, fill, effect\n clone._stroke = null; clone._fill = null;...
[ "0.67950743", "0.6098211", "0.60544676", "0.60020983", "0.59541893", "0.5894362", "0.5887722", "0.5796259", "0.5768889", "0.5644431", "0.5643395", "0.5521264", "0.5495947", "0.54928", "0.541585", "0.5409395", "0.5317798", "0.52861595", "0.52773803", "0.52733153", "0.52719104"...
0.64772934
1
Copies basic shape attributes from given RMShape (location, size, fill, stroke, roll, scale, name, url, etc.).
public void copyShape(RMShape aShape) { // Copy bounds setBounds(aShape._x, aShape._y, aShape._width, aShape._height); // Copy roll, scale, skew if(aShape.isRSS()) { setRoll(aShape.getRoll()); setScaleXY(aShape.getScaleX(), aShape.getScaleY()); setSkewXY(aShape.getSkewX(), a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RMShape clone()\n{\n // Do normal version, clear parent, LayoutInfoX, clone RSS\n RMShape clone = (RMShape)super.clone();\n clone._parent = null; clone._layoutInfoX = null;\n clone._rss = RMUtils.clone(_rss);\n \n // Clone stroke, fill, effect\n clone._stroke = null; clone._fill = null;...
[ "0.6821709", "0.64774555", "0.6097823", "0.5901052", "0.58805746", "0.5855638", "0.58227944", "0.58147895", "0.57856554", "0.57691246", "0.576442", "0.5740522", "0.5732775", "0.5717644", "0.56937855", "0.5693315", "0.5684456", "0.5672567", "0.5652314", "0.5637045", "0.5631261...
0.7107066
0
Generate report with report owner.
public RMShape rpgAll(ReportOwner anRptOwner, RMShape aParent) { RMShape clone = rpgShape(anRptOwner, aParent); rpgBindings(anRptOwner, clone); return clone; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Report createReport();", "public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}", "void createReport(Report report);", "public st...
[ "0.7244254", "0.70335674", "0.7016798", "0.6952674", "0.693056", "0.6912266", "0.6898747", "0.6872137", "0.66922975", "0.64615834", "0.6440881", "0.6411764", "0.6377514", "0.6354583", "0.62679935", "0.6253177", "0.62434924", "0.6191068", "0.61342305", "0.60768306", "0.6073872...
0.0
-1
Generate report with report owner.
protected RMShape rpgShape(ReportOwner anRptOwner, RMShape aParent) { return clone(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Report createReport();", "public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}", "void createReport(Report report);", "public st...
[ "0.7244254", "0.70335674", "0.7016798", "0.6952674", "0.693056", "0.6912266", "0.6898747", "0.6872137", "0.66922975", "0.64615834", "0.6440881", "0.6411764", "0.6377514", "0.6354583", "0.62679935", "0.6253177", "0.62434924", "0.6191068", "0.61342305", "0.60768306", "0.6073872...
0.0
-1
Report generation for URL and bindings.
public void rpgBindings(ReportOwner anRptOwner, RMShape aShapeRPG) { // Clone URL if(getURL()!=null && getURL().length()>0 && getURL().indexOf('@')>=0) { RMXString url = new RMXString(getURL()).rpgClone(anRptOwner, null, aShapeRPG, false); aShapeRPG.setURL(url.getText()); } // Clone...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ReservationReportSchema reportUrl();", "public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }", "private void generateReport( Locale locale, LinkcheckModel linkcheckModel )\n {\n ...
[ "0.68079716", "0.6195338", "0.56237876", "0.5487879", "0.54682386", "0.5462614", "0.53878605", "0.5375874", "0.5365481", "0.5300376", "0.5296672", "0.52464014", "0.52346617", "0.5221602", "0.52117974", "0.51959884", "0.51451707", "0.5137624", "0.51353216", "0.5122407", "0.512...
0.0
-1
Visual change notification call before making changes that will require repaint.
public void repaint() { if(_parent!=null) _parent.repaint(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void visualChange();", "private void change() {\n\t\tsetChanged();\n\t\t//NotifyObservers calls on the update-method in the GUI\n\t\tnotifyObservers();\n\t}", "public void requestRepaint() {\n }", "public void paintImmediately() {\n apparatusPanel2.paintDirtyRectanglesImmediately();\n ...
[ "0.741923", "0.74006075", "0.6998503", "0.68687874", "0.68080693", "0.6789164", "0.6620927", "0.6609831", "0.6575009", "0.6552731", "0.6542721", "0.65054333", "0.6487174", "0.64867115", "0.64374083", "0.64369357", "0.6414823", "0.6398481", "0.6398481", "0.63970983", "0.637168...
0.0
-1
Visual change notification call before making changes that will require repaint.
protected void repaint(RMShape aShape) { if(_parent!=null) _parent.repaint(aShape); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void visualChange();", "private void change() {\n\t\tsetChanged();\n\t\t//NotifyObservers calls on the update-method in the GUI\n\t\tnotifyObservers();\n\t}", "public void requestRepaint() {\n }", "public void paintImmediately() {\n apparatusPanel2.paintDirtyRectanglesImmediately();\n ...
[ "0.741923", "0.74006075", "0.6998503", "0.68687874", "0.68080693", "0.6789164", "0.6620927", "0.6609831", "0.6575009", "0.6552731", "0.6542721", "0.65054333", "0.6487174", "0.64867115", "0.64374083", "0.64369357", "0.6414823", "0.6398481", "0.6398481", "0.63970983", "0.637168...
0.0
-1
Editor method indicates whether this shape can be super selected.
public boolean superSelectable() { return getClass()==RMParentShape.class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canSelectionChange() {\n return true;\n }", "public abstract boolean hasSelection();", "public boolean isEditing() { RMShape p = getParent(); return p!=null && p.isEditing(); }", "public boolean forceSelection();", "@Override\n protected boolean calculateEnabled() {\n if...
[ "0.67044604", "0.64538676", "0.6165043", "0.61058927", "0.60629463", "0.596818", "0.5860157", "0.5847155", "0.5761821", "0.57008", "0.5685047", "0.56483483", "0.5633655", "0.5612412", "0.56066656", "0.559461", "0.55806535", "0.55657816", "0.55493593", "0.5511554", "0.5511361"...
0.7155647
0
Returns the "PageBreak" for this shape as defined by shapes that define a page break (currently only RMTable).
public int getPageBreak() { return _parent!=null? _parent.getPageBreak() : 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VTID(12)\n excel.XlPageBreak getType();", "public int getPageBreakPage() { return _parent!=null? _parent.getPageBreakPage() : 0; }", "public int getPageBreakMax() { return _parent!=null? _parent.getPageBreakMax() : 0; }", "@VTID(14)\n excel.XlPageBreakExtent getExtent();", "public int getPageBreakPage...
[ "0.6654313", "0.63536733", "0.6328301", "0.62661487", "0.6155219", "0.60017204", "0.5821572", "0.57150096", "0.5562731", "0.55589664", "0.5535025", "0.55126005", "0.5462269", "0.5451679", "0.5351736", "0.5346491", "0.5325774", "0.53084785", "0.52871317", "0.52614075", "0.5249...
0.6725169
0
Returns the "PageBreakMax" for this shape as defined by shapes that define a page break (currently only RMTable).
public int getPageBreakMax() { return _parent!=null? _parent.getPageBreakMax() : 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPageBreakPageMax() { return _parent!=null? _parent.getPageBreakPageMax() : 0; }", "@SuppressWarnings(\"unused\")\n public String getMaxTab() {\n return max_tab.get();\n }", "@VTID(14)\n excel.XlPageBreakExtent getExtent();", "public Integer getMaxPageSize() {\n return maxP...
[ "0.7100263", "0.5959658", "0.5945745", "0.59445924", "0.5899366", "0.5780515", "0.57683223", "0.5714591", "0.5704993", "0.56934166", "0.56934166", "0.5680958", "0.5677546", "0.56485784", "0.56485784", "0.56485784", "0.5648373", "0.56469226", "0.56399345", "0.5635867", "0.5635...
0.72452796
0
Returns the "PageBreakPage" for this shape, or the page number relative to the last page break, as defined by shapes that define explicit page breaks (currently only RMTable).
public int getPageBreakPage() { return _parent!=null? _parent.getPageBreakPage() : 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPageBreakPageMax() { return _parent!=null? _parent.getPageBreakPageMax() : 0; }", "public int getPageBreakMax() { return _parent!=null? _parent.getPageBreakMax() : 0; }", "public int getPageBreak() { return _parent!=null? _parent.getPageBreak() : 0; }", "@VTID(12)\n excel.XlPageBreak getTyp...
[ "0.67602587", "0.66710526", "0.6623809", "0.64464176", "0.6315834", "0.6226555", "0.6112965", "0.60605395", "0.60277224", "0.5940666", "0.5921201", "0.5921201", "0.5921201", "0.5921201", "0.59073174", "0.59073174", "0.5895329", "0.5884793", "0.58801836", "0.5824487", "0.57876...
0.6690081
1
Returns the "PageBreakPageMax" for this shape, or the max page number relative to the last and next page breaks, as defined by shapes that define explicit page breaks (currently only RMTable).
public int getPageBreakPageMax() { return _parent!=null? _parent.getPageBreakPageMax() : 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPageBreakMax() { return _parent!=null? _parent.getPageBreakMax() : 0; }", "public Integer getMaxPageSize() {\n return maxPageSize;\n }", "@VTID(14)\n excel.XlPageBreakExtent getExtent();", "public int getPageBreakPage() { return _parent!=null? _parent.getPageBreakPage() : 0; }", ...
[ "0.73596126", "0.63153195", "0.6042982", "0.5909369", "0.5879253", "0.58497715", "0.58230466", "0.57849336", "0.5655174", "0.564087", "0.56357664", "0.5623085", "0.5611513", "0.5583896", "0.5554041", "0.5554041", "0.554548", "0.5519456", "0.55054843", "0.55003995", "0.5498428...
0.7428542
0
Toplevel generic shape painting sets transform and opacity then does a paintAll. If a effect is present, has it paint instead of doing paintAll.
public void paint(RMShapePainter aPntr) { // Clone graphics RMShapePainter pntr = aPntr.clone(); // Apply transform for shape if(isRSS()) pntr.transform(getTransform().awt()); else pntr.translate(getX(), getY()); // If shape bounds don't intersect clip bounds, just return Rectangle...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void paintShapeAll(RMShapePainter aPntr)\n{\n // Get graphics\n RMShapePainter pntr = aPntr;\n \n // If clipping, clip to shape\n if(getClipShape()!=null) {\n pntr = pntr.clone();\n pntr.clip(getClipShape());\n }\n \n // Have shape paint only itself\n pntr.sendPa...
[ "0.6493991", "0.61438894", "0.6124701", "0.61008", "0.5901843", "0.58724314", "0.5863683", "0.56942225", "0.56499594", "0.5599721", "0.5585936", "0.55424935", "0.55073446", "0.54997885", "0.54932904", "0.54393816", "0.5420844", "0.5409792", "0.53974134", "0.5391565", "0.53431...
0.6698658
0
Calls paintShape, paintShapeChildren and paintShapeOver.
public void paintShapeAll(RMShapePainter aPntr) { // Get graphics RMShapePainter pntr = aPntr; // If clipping, clip to shape if(getClipShape()!=null) { pntr = pntr.clone(); pntr.clip(getClipShape()); } // Have shape paint only itself pntr.sendPaintShape(this); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void paintShape(RMShapePainter aPntr)\n{\n // If fill/stroke present, have them paint\n if(getFill()!=null)\n getFill().paint(aPntr, this);\n if(getStroke()!=null && !getStrokeOnTop())\n getStroke().paint(aPntr, this);\n}", "public void paintComponenet(){\r\n\t\tfor(DShape ds : shap...
[ "0.71614635", "0.7094713", "0.6995845", "0.6880131", "0.68800026", "0.681294", "0.67111003", "0.66835827", "0.66835827", "0.66835827", "0.6614024", "0.66007155", "0.6596064", "0.65346116", "0.6465991", "0.64455855", "0.64062977", "0.63925546", "0.6372358", "0.6368468", "0.634...
0.7585305
0
Basic shape painting paints shape fill and stroke.
public void paintShape(RMShapePainter aPntr) { // If fill/stroke present, have them paint if(getFill()!=null) getFill().paint(aPntr, this); if(getStroke()!=null && !getStrokeOnTop()) getStroke().paint(aPntr, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void strokeShape(Shape shape);", "public void paint(Graphics2D g){\n g.setColor(color);\n g.fill(shape);\n }", "public abstract void drawFill();", "public void drawShape(Shape shape);", "@Override public void draw(){\n // this take care of applying all styles (colors/stroke)\n ...
[ "0.7714503", "0.7321152", "0.71925193", "0.7184422", "0.7088493", "0.70847017", "0.70744824", "0.6992015", "0.688449", "0.6868349", "0.6743833", "0.6703095", "0.67025846", "0.66988844", "0.6694976", "0.66817564", "0.66811424", "0.6663912", "0.6661423", "0.6653005", "0.6612232...
0.7571901
1
Paints after (on top) of children.
public void paintShapeOver(RMShapePainter aPntr) { if(getStrokeOnTop() && getStroke()!=null) getStroke().paint(aPntr, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void drawChildren() {\n // Set my clipping rectangle\n assert (window != null);\n assert (getScreen() != null);\n Screen screen = getScreen();\n\n // Special case: TStatusBar is drawn by TApplication, not anything\n // else.\n if (this instanceof TStatu...
[ "0.60282606", "0.5969844", "0.56724393", "0.55769455", "0.5526082", "0.5406379", "0.54045", "0.5389046", "0.5360554", "0.53580153", "0.53454864", "0.5333357", "0.52976364", "0.5274772", "0.5221312", "0.52149963", "0.5203094", "0.5192503", "0.514962", "0.5147413", "0.5146966",...
0.0
-1
Returns whether to stroke on top.
public boolean getStrokeOnTop() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override // com.android.server.wm.WindowContainer\n public boolean isOnTop() {\n return true;\n }", "boolean isAlwaysOnTop();", "public boolean isBringToTopEnabled() {\r\n\t\treturn this.bringToTopable;\r\n\t}", "protected boolean mustDrawOutline()\n {\n return this.getAct...
[ "0.6329537", "0.6273177", "0.619358", "0.6165169", "0.6085052", "0.6040786", "0.58518606", "0.57976335", "0.57899296", "0.57541525", "0.5722746", "0.5679212", "0.56671464", "0.55978316", "0.5597609", "0.55948424", "0.5549419", "0.54848105", "0.5444191", "0.5441759", "0.537280...
0.8077144
0
Returns clip shape for shape.
public Shape getClipShape() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Shape getClip()\r\n\t{\r\n\t\treturn _g2.getClip();\r\n\t}", "Shape getShape();", "public Shape getShape();", "public Shape getAreaColision();", "public IRectangleBound getClipBound();", "IShape getShape(String name);", "public abstract void setClip(Shape clip);", "public Shape getShape() { re...
[ "0.74958134", "0.6660794", "0.63354135", "0.6313639", "0.6226308", "0.6189663", "0.61105734", "0.60237956", "0.6010814", "0.5993799", "0.5991636", "0.59881395", "0.5881772", "0.5869654", "0.5849077", "0.5843375", "0.5838816", "0.5829797", "0.582919", "0.5821392", "0.57864285"...
0.72875196
1
Called to update shape anim.
public void animUpdate(PropertyChangeEvent anEvent) { // Return if shape is a new-born if(getAnimator()==null || getAnimator().isNewborn(this) || !getAnimator().isEnabled()) return; // If change is anim property, add record if(isAnimProperty(anEvent.getPropertyName())) addTimelineEntry(anEv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void update() {\n\t\tfor (ShapeBase w : getChildren()) {\n\t\t\tw.update();\n\t\t}\n\t}", "public void animate()\n\t{\n\t\tanimation.read();\n\t}", "@Override\n public void animate() {\n }", "private void updateShapeOffset() {\n int offsetX = scroller.getOffsetX()...
[ "0.7030424", "0.6726252", "0.67087835", "0.6657886", "0.6442613", "0.64001477", "0.63509446", "0.63212293", "0.62859434", "0.6277479", "0.6254243", "0.62539", "0.62339914", "0.6230396", "0.62117004", "0.6195011", "0.6139627", "0.6131241", "0.61282223", "0.61260295", "0.610895...
0.70701253
0
Adds a record to the timeline.
private void addTimelineEntry(String aKey, Object aValue, Object anOldValue) { // Just return if values equal if(RMUtils.equals(aValue, anOldValue)) return; // Get animator and current time RMAnimator animator = getAnimator(); int time = animator.getTime(); int oldTime = animator.getScopeTi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addRecord();", "void addRecord(HistoryRecord record) throws IOException;", "void addItem(DataRecord record);", "public void addRecord(ListGridRecord record) {\r\n\t\tthis.addData(record);\r\n\t}", "public void addRecord(Record record) {\n if (records.add(record)) {\n // if rec...
[ "0.76695013", "0.7389334", "0.702924", "0.69980526", "0.6962304", "0.69089115", "0.6882813", "0.6787635", "0.678738", "0.6776597", "0.66529965", "0.6540194", "0.6524755", "0.6514694", "0.64984053", "0.6468215", "0.6338515", "0.6333081", "0.63270646", "0.6312794", "0.6218382",...
0.0
-1
Returns whether given property name is anim property.
public boolean isAnimProperty(String aPropertyName) { // Declare anim properties String animProps[] = { "X", "Y", "Width", "Height", "Roll", "ScaleX", "ScaleY", "SkewX", "SkewY", "Opacity", "Radius", // Bogus - for RMRectangle "StartAngle", "SweepAngle", // Bogus - for RMOval "Depth", "Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAnimatableProperty() {\n\t\treturn false;\n\t}", "public boolean isSetShowAnimation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(SHOWANIMATION$20) != null;\n }\n }", "public Boolean getAnimate...
[ "0.65405756", "0.6362656", "0.6305927", "0.6268141", "0.62431747", "0.6242089", "0.6219969", "0.62131935", "0.62065977", "0.61416835", "0.614114", "0.6105751", "0.60599554", "0.60491395", "0.600289", "0.59867465", "0.5971283", "0.58789337", "0.581378", "0.57980376", "0.576444...
0.8203852
0
Standard to string implementation (prints class name and shape bounds).
public String toString() { StringBuffer sb = new StringBuffer(getClass().getSimpleName()).append(' '); if(getName()!=null) sb.append(getName()).append(' '); sb.append(getFrame().toString()); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override//overring a library function\n public String toString() {\n return shape + \" \" + name;//toString() is called everytime printing is done\n }", "public String toStringShort() {\n\treturn AbstractFormatter.shape(this);\n}", "public String toString(){\n return \"Neo[\"+getName()+\"]: CRS:\...
[ "0.69996446", "0.68553627", "0.6806402", "0.6670906", "0.66661793", "0.6549311", "0.6466007", "0.6451373", "0.64475894", "0.6396878", "0.6396384", "0.6353597", "0.6328383", "0.6328222", "0.6325234", "0.63094306", "0.6306204", "0.62509626", "0.6212525", "0.6194939", "0.6188376...
0.0
-1
private SewingServiceTracker stc; private ServiceTracker st; / (nonJavadoc)
public void start(BundleContext context) throws Exception { this.context = context; LogManager.setContext(context); log = LogServiceUtil.getLogService(context); // Create the service tracker and run it. stc = ServiceTrackerUtil.openServiceTracker(context, HttpService.class.getName(), this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "interface ISampleStoreForwardClient\n{\n /**\n * Service PID for Spillway service\n */\n public final static String SERVICE_PID = \"com.ge.dspmicro.sample.storeforwardclient\"; //$NON-NLS-1$\n\n /** Required Property key for storeforward name */\n public final static String STOREFORWARD = SERV...
[ "0.623579", "0.60509133", "0.60214335", "0.60154545", "0.60109335", "0.5959703", "0.5927889", "0.5920684", "0.58641195", "0.58261853", "0.5782263", "0.5774121", "0.5744859", "0.5737829", "0.572809", "0.57222486", "0.5718501", "0.5692947", "0.5691742", "0.5688805", "0.5672193"...
0.0
-1
returns the singleton instance of this class.
public static SkinNotAvailable getSkinNotAvailable() { return _INSTANCE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Singleton getInstance( ) {\n return singleton;\n }", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static Singleton getInstance() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}", "public stati...
[ "0.86122155", "0.8531964", "0.8163124", "0.8077955", "0.80347794", "0.8033637", "0.80265135", "0.80203176", "0.8016662", "0.80117553", "0.79906404", "0.7941816", "0.79360515", "0.7918087", "0.7913716", "0.7908758", "0.78825265", "0.787187", "0.78421813", "0.78097504", "0.7801...
0.0
-1
A service interface exposing CRUD methods for making reservations to the campsite.
public interface ReservationsService { /** * Lists reservations 'conflicting' with the given time range. This means that the method will list * all reservations conflicting with the specified start date and/or end date, plus all * reservations contained within the specified range. * <p> * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reservation createReservation();", "public interface ReservationService {\n\n @POST(\"reservations/add\")\n Call<Void> addReservations(@Body Reservation reservation);\n\n @GET(\"reservations/{id}.json\")\n Call<Reservation> getReservation(@Path(\"id\") int id) ;\n\n @PUT(\"reservations/{id}.json\"...
[ "0.7640538", "0.7100174", "0.705186", "0.67643833", "0.67515814", "0.65498847", "0.63044304", "0.63007236", "0.6272632", "0.62688535", "0.6233418", "0.6208401", "0.61686057", "0.61440885", "0.61435735", "0.6140407", "0.61156434", "0.61056626", "0.6075951", "0.60591966", "0.60...
0.7225783
1
Decodes your encoded data to tree.
public TreeNode deserialize(String data) { if (data == null) return null; String[] nodes = data.split(separator); Queue<String> q = new LinkedList<>(); for (String n : nodes) { q.offer(n); } return helper(q); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TreeNode deserialize(String data) {\n byte[] bytes = Base64.getDecoder().decode(data);\n IntBuffer intBuf = ByteBuffer.wrap(bytes)\n .order(ByteOrder.BIG_ENDIAN).asIntBuffer();\n int[] nums = new int[intBuf.remaining()];\n intBuf.get(nums);\n //for (int i = 0; i...
[ "0.6894664", "0.6808548", "0.650279", "0.64891165", "0.64851105", "0.6415433", "0.6362339", "0.63083476", "0.6284537", "0.622987", "0.6213446", "0.6161982", "0.6140804", "0.6133282", "0.6078927", "0.6073399", "0.6069482", "0.6064389", "0.60632867", "0.6053727", "0.60433733", ...
0.6147146
12
1 2 5 3 6 7
private TreeNode helper(Queue<String> q) { String val = q.poll(); if (val.equals(N)) { return null; } TreeNode node = new TreeNode(Integer.valueOf(val)); node.left = helper(q); node.right = helper(q); return node; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getBlockNumbers(int index);", "@Test\n void first() {\n int[] answers = {1,2,3,4,5,1,2,3,4,5};\n int[] first = {1,2,3,4,5};\n int collect = 0;\n for (int i=0; i < answers.length ; i++) {\n if (answers[i] == first[i % 5]) {\n //0 0\n //1 1\n //2 2\n //3 3\n ...
[ "0.57223046", "0.57057196", "0.56938136", "0.56573915", "0.5625419", "0.55881745", "0.55517226", "0.5525678", "0.5525678", "0.55238056", "0.5464598", "0.54640746", "0.54557514", "0.54507494", "0.54486096", "0.54421014", "0.5421163", "0.54100955", "0.53710586", "0.5367503", "0...
0.0
-1
Helper Methods Used for the convert loops to recursive calls This method for iterate to right direction
public void right(int[][] arr,int start,int end,int i){ if(start==end){ return; } else{ System.out.println(arr[i][start]); start++; } right(arr,start,end,i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reverse_Iteratively_Data() throws Exception {\r\n\t\tint left = 0, right = this.size() - 1;\r\n\r\n\t\twhile (left <= right) {\r\n\t\t\tNode leftNode = this.getNodeAt(left);\r\n\t\t\tNode rightNode = this.getNodeAt(right);\r\n\r\n\t\t\tT temp = leftNode.data;\r\n\t\t\tleftNode.data = rightNode.data;\r\...
[ "0.63303894", "0.60181195", "0.57990897", "0.56678617", "0.5629734", "0.56257707", "0.56005377", "0.55815953", "0.5545346", "0.5458954", "0.5443878", "0.5411305", "0.5402509", "0.53998965", "0.5384465", "0.5372977", "0.5337002", "0.5334713", "0.5326848", "0.5308857", "0.53052...
0.52655494
24
This method for iterate to down direction
public void down(int[][] arr,int start,int end,int i){ if(start==end){ return; } else{ System.out.println(arr[start][i]); start++; } down(arr,start,end,i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stepBackward() {\n\t\tposition = backwardPosition();\n\t}", "public Vertex moveDown() {\n for (Edge e : current.outEdges) {\n move(e.to.y == current.y + 1, e);\n }\n return current;\n }", "public void moveDown()\n\t{\n\t\trow--;\n\t}", "public void Down(){\r\n \r\n if...
[ "0.6766972", "0.6766057", "0.65191764", "0.6474156", "0.64544916", "0.6404034", "0.6316834", "0.6286961", "0.62699026", "0.625707", "0.62285525", "0.62155503", "0.62035817", "0.619949", "0.6194049", "0.6168282", "0.615653", "0.61289126", "0.61090845", "0.60868174", "0.6075245...
0.5873069
41
This method for iterate to left direction
public void left(int[][] arr,int start,int end,int i){ if(start==end){ return; } else{ System.out.println(arr[i][start]); start--; } left(arr,start,end,i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Dir moveLeft() {\n\t\t\tint newDir = (this.ordinal() + SIZE - 1) % SIZE;\n\t\t\treturn dirArray[newDir];\n\t\t}", "public void turnLeft() {\r\n setDirection( modulo( myDirection-1, 4 ) );\r\n }", "public Direction left() {\r\n\t\tint newDir = this.index - 1;\r\n\r\n\t\tnewDir = (newDir == 0) ?...
[ "0.71523196", "0.69764936", "0.69341063", "0.6865108", "0.68196106", "0.6626615", "0.662514", "0.6569907", "0.6562719", "0.65504", "0.65395194", "0.6508784", "0.648303", "0.6475734", "0.64429283", "0.6426688", "0.6419337", "0.64157593", "0.63552773", "0.6354368", "0.6351105",...
0.0
-1
This method for iterate to up direction
public void up(int[][] arr,int start,int end,int i){ if(start==end){ return; } else{ System.out.println(arr[start][i]); start--; } up(arr,start,end,i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vertex moveUp() {\n for (Edge e : current.outEdges) {\n move(e.to.y == current.y - 1, e);\n }\n return current;\n }", "public void goUp()\r\n\t{\r\n\t\tthis.Y--;\r\n\t}", "public boolean up() {\r\n if( row <= 0 ) return false;\r\n --row;\r\n return true;\r\n }", ...
[ "0.69527197", "0.68187225", "0.67802685", "0.67598194", "0.6689416", "0.66326964", "0.65203065", "0.64909697", "0.64778316", "0.6476382", "0.6456438", "0.6453512", "0.64087635", "0.63906294", "0.6382688", "0.6374619", "0.6318699", "0.63168246", "0.6288433", "0.6285795", "0.62...
0.580488
68
Printer for the given 2D Array
public void printer(int[][] arr, int xS, int yS, int yL, int xL,int counter) { if (counter == yL * xL) { return; } else { right(arr, xS, yL + 1, xS); down(arr, xS + 1, xL + 1, yL); if (xL >= xS + 1) { left(arr, yL - 1, yS - 1, xL);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printdia(int[][] array){\n\t\tint dim = array.length;\n\n\t for( int k = 0 ; k < dim * 2 ; k++ ) {\n\t for( int j = 0 ; j <= k ; j++ ) {\n\t int i = k - j;\n\t if( i < dim && j < dim ) {\n\t System.out.print( array[i][j] + \" \" );\n\t }\n\t ...
[ "0.7601454", "0.7591306", "0.75407135", "0.73980874", "0.7346088", "0.72854036", "0.725654", "0.71964747", "0.7189404", "0.715876", "0.7144289", "0.7128448", "0.71216875", "0.709004", "0.70439225", "0.70437586", "0.7029444", "0.697296", "0.69484127", "0.69355434", "0.6930702"...
0.0
-1
Helper function for the reverse a String Cover Method for the reverse!
public void reverser(String[] x){ reverse(x, 0, x.length -1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String reverse(String in){\n\t\tString reversed = \"\";\n\t\tfor(int i = in.length() - 1; i >= 0; i--){\n\t\t\treversed += in.charAt(i);\n\t\t}\n\t\treturn reversed;\n\t}", "static void test_reverse() {\n\n System.out.println( \"\\nTESTS for reverse() : \" );\n\n System.out.print( \"Stri...
[ "0.74872804", "0.74017483", "0.72807974", "0.72069114", "0.71802324", "0.71257323", "0.7053806", "0.7000195", "0.69993335", "0.698927", "0.6968398", "0.69443375", "0.6917859", "0.69060546", "0.69060546", "0.68554664", "0.6840395", "0.6794182", "0.67802465", "0.67747086", "0.6...
0.0
-1
Reverse the given String array'
public void reverse(String[] x, int i, int j){ if(i<j){ String tmp = x[i]; x[i] = x[j]; x[j] = tmp; reverse(x, ++i, --j); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String[] reverse(String[] arr) {\n String[] rev = new String[arr.length];\n int k = arr.length - 1; //4 // sondan baslattik reverse yapmak icin\n for (int i = 0; i < arr.length; i++) {\n rev[i] = arr[k];\n k--;\n }\n return rev;\n }", "sta...
[ "0.80189806", "0.7698262", "0.7464842", "0.73775506", "0.7337676", "0.7276535", "0.7180703", "0.71133155", "0.70865655", "0.7013788", "0.69593716", "0.6909284", "0.6862526", "0.68499184", "0.6834611", "0.67780703", "0.67665607", "0.67078954", "0.66948664", "0.66886836", "0.66...
0.66607994
21
Takes a String.Pushes it to a String array.Reverses it and makes it String again!
public void StringReverse(String parameter){ String str=parameter; String[] arr=str.split("\\s+"); for(int i=0;i<arr.length;i++){ arr[i]=arr[i].replaceAll("[^\\w]", ""); } reverser(arr); String output=new String(); for(int i=0;i<arr.length;i++){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reverseString(char[] s) {\n for(int i = 0; i < s.length/2; i++){\n char temp = s[i];\n s[i] = s[s.length-(i+1)];\n s[s.length-(i+1)] = temp;\n \n }\n \n \n }", "@Test\n\tvoid testReverseString() {\n\t\tReverseString tester = n...
[ "0.7358167", "0.7274213", "0.7264654", "0.7255132", "0.7195314", "0.70657", "0.6949401", "0.6907772", "0.6800301", "0.67766386", "0.6753001", "0.67395675", "0.6729305", "0.669155", "0.667531", "0.6665894", "0.66390574", "0.6629023", "0.66040224", "0.6589029", "0.6586575", "...
0.64429134
27
Checks given String is an elfish or not!
public void elfish(String str,int countL,int countE,int countF) { if (str.length() == 0 ) { if((countE>0 &&countF>0 && countL>0)){ System.out.println("This is an elfish word!"); } else{ System.out.println("This is not an elfish word!"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isValid(String word);", "private boolean isStringValid(String s){\n int[] result = getLeftRightCount(s);\n return result[0] == 0 && result[1] == 0;\n }", "private boolean checkInCashe(String s) {\n return true;\n }", "@Override\n\t\tprotected boolean handleIrregulars(String...
[ "0.6381152", "0.6366786", "0.63063973", "0.62986064", "0.6266685", "0.62403786", "0.62179995", "0.62174904", "0.62141794", "0.6205644", "0.6200402", "0.61473423", "0.6120807", "0.61122245", "0.6094861", "0.60927695", "0.608555", "0.6060548", "0.6060548", "0.6055568", "0.60536...
0.0
-1
Constructor is used for call the all methods!
public Recusive_Methods(){ int[][] array = { {1,2,3,4}, {5,6,7,8}, {9,10,11,12}, {13,14,15,16}, {17,18,19,20}, }; printer(array,0,0,array[0].length-1,array.length-1,0); StringReverse("this function writes th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Curso() {\r\n }", "public Methods() { // ini adalah sebuah construktor kosong tidak ada parameternya\n System.out.println(\"Ini adalah Sebuah construktor \");\n }", "private Main() {\n\n super();\n }", "pu...
[ "0.8433648", "0.8148274", "0.74706465", "0.7348061", "0.7304652", "0.72705954", "0.7266199", "0.72626275", "0.7259019", "0.7250779", "0.72329277", "0.7232597", "0.72077954", "0.7189874", "0.7189555", "0.71886873", "0.71871126", "0.718064", "0.7168141", "0.71680856", "0.714290...
0.0
-1
Make all people susceptible to start
public void seedPeopleInfections( Int2ObjectMap<InfectionState> personStates, Int2ObjectMap<IntSet> peopleByLocation ) { IntSet animalKeys = startLocations.getLocationsByPeopleId().keySet(); for (int animalID : animalKeys) { personStates.put(animalID, InfectionSta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void startEating() {\n\t\tthrow new RuntimeException(\"Robot cant eat\");\n\t}", "public void run() {\n Set<Philosopher> disabledPhils = new HashSet<Philosopher>();\r\n // True if last philosopher who tried to eat succeed\r\n boolean wasAttemptSuccessful = false;\r\n ...
[ "0.5986095", "0.5923531", "0.5746691", "0.57215357", "0.5713406", "0.5679763", "0.5645329", "0.5623572", "0.5618687", "0.55456454", "0.5534662", "0.551791", "0.5512744", "0.5475462", "0.5464575", "0.54496056", "0.543872", "0.543738", "0.54296243", "0.5422124", "0.53944427", ...
0.0
-1
init attribute by name and owner. the value must be set later
public Attribute(final String name, final String resourceId) { this.name = name; this.resourceId = resourceId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setOwner(String owner);", "public Builder setOwner(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n owner_ = value;\n onChanged();\n return this;\n }", "public Builder setOwner(com.google.protobuf.ByteString v...
[ "0.64709365", "0.6168612", "0.6168612", "0.6122681", "0.607192", "0.6049511", "0.6031431", "0.6031431", "0.6031431", "0.6031431", "0.60286456", "0.6012878", "0.6012878", "0.59778225", "0.59614706", "0.5928877", "0.5909395", "0.5888477", "0.5837405", "0.58164394", "0.5807058",...
0.0
-1
init attribute by name, value and owner.
public Attribute(final String name, final String resourceId, final Value value) { this(name, resourceId); this.value = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private XmlAttributeInfo (String name, String text, byte kind)\r\n {\r\n _name = name;\r\n switch (kind)\r\n\t{\r\n\tcase _ISATTRIBUTE:\r\n\t // in this case text is an attribute name reference:\r\n\t _value = new XmlTextInfo(text);\r\n\t break;\r\n\r\n\tcase _LITERAL_SYM:\r\n\t // in this case te...
[ "0.5995932", "0.5816179", "0.5781097", "0.57672626", "0.5704101", "0.5686164", "0.5685213", "0.5685213", "0.5538521", "0.5538521", "0.5537125", "0.55342805", "0.5506311", "0.5506064", "0.5479769", "0.5461494", "0.5457978", "0.5457279", "0.54482144", "0.54330504", "0.5422598",...
0.538738
24
ActionListener for "AdminLogin" button
private void setActionListener() { btn_login.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { if(tf_user.getText().equals("admin") && tf_password.getText().equals("utpal")){ PatientTable table...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void btnLogin(ActionEvent e) {\n }", "public void LoginButton() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tUserLoginPage userloginpanel = new UserLoginPage();\n\t\t\t\t\tuserloginpanel.login.addActionListener(new ActionListener() {\n\t\t\t\t\t\t\n\t\...
[ "0.774858", "0.7668827", "0.7639927", "0.76193154", "0.759632", "0.751812", "0.749509", "0.7471926", "0.73695844", "0.7307717", "0.73026043", "0.7236108", "0.72294456", "0.7221028", "0.7195049", "0.71651393", "0.71574837", "0.71315634", "0.71068126", "0.7083196", "0.707626", ...
0.659242
52
ActionListener for "Clear" button
@Override public void actionPerformed(ActionEvent e) { tf_user.setText(""); tf_password.setText(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tthis.jmf.btnClear_actionPerformed(e);\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tclear();\r\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n clear();\n\n ...
[ "0.85959405", "0.8369548", "0.8355475", "0.80318326", "0.7619721", "0.7439028", "0.7395974", "0.7374595", "0.7365141", "0.7335502", "0.7222435", "0.72036695", "0.7116961", "0.7111291", "0.7092522", "0.70788854", "0.7047882", "0.70453554", "0.7042965", "0.703819", "0.7036622",...
0.0
-1
Scrolls to the next solution.
public void nextSolution() { solutionIndex++; if (solutionIndex == solutions.size()) { newSolution(solutions.get(solutionIndex-1)); } else { createObjectDiagram(solutions.get(solutionIndex)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n private void handleMainListPanelScrollDown() {\n mainTaskListPanel.scrollToNext();\n }", "void scroll(int scrollTop);", "@Listen(\"onClick = #scroll\")\n\tpublic void scrollIntoView() {\n\t\ttreeModel.setOpenObjects(treeModel.getRoot().getChildren());\n\t\tTreeitem[] items = tree.getItems(...
[ "0.6530144", "0.6217358", "0.6131592", "0.6130723", "0.6128903", "0.59818673", "0.5978444", "0.5975018", "0.59478027", "0.5930883", "0.5896581", "0.58129084", "0.58126783", "0.58007026", "0.57980627", "0.5766952", "0.575137", "0.57458884", "0.5724121", "0.5723725", "0.5692112...
0.65040284
1
Scrolls to the previous solution.
public void previousSolution() { if (solutionIndex > 0) { solutionIndex--; createObjectDiagram(solutions.get(solutionIndex)); } else { LOG.info(LogMessages.pagingFirst); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void scrollToTop()\n {\n ensureIndexIsVisible(0);\n }", "@FXML\n private void handleMainListPanelScrollUp() {\n mainTaskListPanel.scrollToPrevious();\n }", "void movePrev()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == front) \n\t\t\t{\n\t\t\t\tcursor = null;\n ...
[ "0.6479168", "0.62906563", "0.6201743", "0.6157485", "0.6079445", "0.6071757", "0.6058592", "0.5972112", "0.59196055", "0.5871161", "0.5838886", "0.5833892", "0.5817676", "0.5814408", "0.5801312", "0.5791703", "0.5785814", "0.57719326", "0.57641006", "0.57628363", "0.5747357"...
0.7073108
0
ApplicationContext factory = new ClassPathXmlApplicationContext("config/.xml");
public static void main(String[] args) { ApplicationContext factory = new ClassPathXmlApplicationContext(new String[]{ "config/userservice01.xml", "config/userservice02.xml" }); System.out.println("\n================================================="); User user01 = (User)factory.getBean("user05...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static BeanFactory getBeanFactory() {\n\t\tBeanFactory factory = new ClassPathXmlApplicationContext(\"withauto/beans.xml\");\n\t\treturn factory;\n\t}", "public static void main(String[] args){\n ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext.xml\"...
[ "0.73904794", "0.6737637", "0.6621376", "0.6539924", "0.65192753", "0.6466479", "0.6448297", "0.6369919", "0.6356722", "0.6348369", "0.6332169", "0.63096935", "0.627152", "0.62624365", "0.6231576", "0.62311614", "0.6220719", "0.62201214", "0.617069", "0.61621004", "0.615865",...
0.5836193
37
Get current node at position (can be enclosing class or method)
@Nullable ICodeNodeRef getNodeAt(int position);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node<E> getCursor() {\n if (isCurrent()) { return cursor; }\n else { throw new IllegalStateException(\"There is no current element.\"); }\n }", "Node currentNode();", "public Node getCurrent() {\n return current;\n }", "public int getCurrentNode() {\n\t\treturn currentNode;\...
[ "0.70653814", "0.6967167", "0.6897334", "0.6641008", "0.6479416", "0.6462541", "0.6415756", "0.6402523", "0.63371426", "0.63145703", "0.6283476", "0.6241237", "0.62310797", "0.61807495", "0.61249447", "0.6111826", "0.6101159", "0.6099352", "0.6069925", "0.6069623", "0.6035018...
0.5921824
35
Any definition of class or method below position
@Nullable ICodeNodeRef getNodeBelow(int position);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testInClassDeclaringType2() throws Exception {\n String contents = \n \"class Baz {\\n\" +\n \" def method = {\\n\" +\n \" other\\n\" +\n \" }\\n\" +\n \"}\";\n int start = contents.lastIndexOf(\"other\");\n int end = star...
[ "0.60327756", "0.59564304", "0.5954132", "0.59427494", "0.58347493", "0.5821702", "0.58112615", "0.58015156", "0.57241124", "0.5718157", "0.5717821", "0.5714535", "0.5694096", "0.55753404", "0.5559617", "0.5506193", "0.54943424", "0.54840004", "0.5470047", "0.5467455", "0.545...
0.0
-1
returns the version of the json schema for the partition metadata document.
public String getVersion() { return version; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getSchemaVersion();", "public int getSchemaVersion() {\n return SCHEMA_VERSION;\n }", "public Integer getSchemaVersion() {\n return this.schemaVersion;\n }", "public Integer getSchemaVersion() {\n return this.schemaVersion;\n }", "BigDecimal getLqncoreSchemaVersion();", "pu...
[ "0.70937395", "0.66449976", "0.646169", "0.646169", "0.62367857", "0.6201064", "0.61521757", "0.610642", "0.60434073", "0.58631563", "0.58530474", "0.5834297", "0.58190227", "0.58133894", "0.57895434", "0.57705", "0.57554674", "0.5642185", "0.5621411", "0.5616323", "0.5604999...
0.0
-1
returns the list of all partitions loaded from the partition metadata document.
public List<Partition> getPartitions() { return partitions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CatalogPartitionSpec> listPartitions(ObjectPath tablePath)\n throws TableNotExistException, TableNotPartitionedException, CatalogException;", "public List<PartitionType> getPartitions() {\n\t\t ArrayList<PartitionType> l = new ArrayList<PartitionType>(); \n\t\t l.addAll(new HashSet<PartitionType>...
[ "0.67452556", "0.6647561", "0.6609585", "0.641425", "0.6372348", "0.6296353", "0.6119885", "0.61119777", "0.611193", "0.5902097", "0.58806324", "0.571887", "0.5718315", "0.5710488", "0.56683713", "0.56639415", "0.56639415", "0.56373405", "0.56368667", "0.5595739", "0.559366",...
0.7522808
0
Creates a new instance
public void onListItemClick(ListView l, View v, int position, long id) { // Notify the parent activity of selected item super.onListItemClick(l, v, position, id); mListener.OnRecipeSelected(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Instance createInstance();", "public void create(){}", "private Instantiation(){}", "Reproducible newInstance();", "public Instance() {\n }", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "public void create() {\n...
[ "0.8018133", "0.7496673", "0.7172955", "0.71152836", "0.71128494", "0.7052747", "0.6968327", "0.69200206", "0.690034", "0.68795353", "0.68775845", "0.6778326", "0.6778326", "0.67719525", "0.67559296", "0.6719699", "0.6710143", "0.6705524", "0.6681551", "0.66527045", "0.661363...
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnRecipeSelectionListener { // TODO: Update argument type and name public void OnRecipeSelected(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.73245984", "0.72083515", "0.71344024", "0.7124397", "0.7121651", "0.7015244", "0.69770265", "0.69770265", "0.69770265", "0.6974299", "0.6967729", "0.6966127", "0.69612694", "0.69538033", "0.694325", "0.69331574", "0.69292706", "0.6927241", "0.6923228", "0.69110304", "0.690...
0.0
-1
TODO: Update argument type and name
public void OnRecipeSelected();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic ...
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.599...
0.0
-1
End of TextGrid constructor display various lines, rectangles and ovals
public void paintComponent(Graphics g) { super.paintComponent(g); // call superclass's paint method //this.setBackground(Color.GRAY); // Iterators & misc. variables int i; int j; char tempchar; String tempstring = null; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void drawGrid(){\r\n\r\n\t\tdrawHorizontalLines();\r\n\t\tdrawVerticalLines();\r\n\t}", "public Grid() {\n minorLinesPath = new Path2D.Double();\n majorLinesPath = new Path2D.Double();\n\n minorLinePositions = new double[2][];\n majorLinePositions = new double[2][];\n\n ...
[ "0.6467472", "0.6201932", "0.6110286", "0.60670364", "0.59816694", "0.58260536", "0.5802359", "0.57962847", "0.57904136", "0.5785017", "0.5722957", "0.5720201", "0.5644638", "0.564014", "0.5638641", "0.5610213", "0.5573689", "0.55735654", "0.5558803", "0.55250794", "0.5521017...
0.5488405
25
End of paintComponent class Get window xlength
public int getxlength(){ return numcols*boxsize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int getWidth() {\n\t\treturn windowWidth;\n\t}", "public int getXLength() {\n return xLength;\n }", "@Override\n\tpublic int getWidth() {\n\n\t\treturn ((WorldWindowSWTGLCanvas) slave).getCanvas().getSize().x;\n\t}", "@Override\n public int getWidth() {\n return graphicsEnvi...
[ "0.6774989", "0.67563385", "0.67236185", "0.6706733", "0.6697741", "0.6660094", "0.6490295", "0.64451146", "0.6399895", "0.6381153", "0.6380917", "0.6380917", "0.6380917", "0.6380917", "0.6380917", "0.6380917", "0.6380917", "0.6380917", "0.6380917", "0.6380917", "0.6380917", ...
0.66847485
5
Set the char grid
public void setchargrid(char[][] inchargrid){ this.chargrid = inchargrid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CharGrid(char[][] grid) {\n\t\tthis.grid = grid;\n\t}", "public void setGrid(int x ,int y,char newValue){\n\t\tGrid[x][y] = newValue;\n\t}", "@Override\n public void buildGrid(){\n for(int column=0; column<columns; column++){\n for(int row=0; row<rows; row++){\n grid[...
[ "0.7836956", "0.73548186", "0.68973166", "0.66299146", "0.6560058", "0.65372574", "0.63139415", "0.63135487", "0.62987167", "0.6262917", "0.6243649", "0.62402016", "0.61695087", "0.6132969", "0.60970294", "0.60956484", "0.6093353", "0.60926574", "0.6065267", "0.6044776", "0.6...
0.57565373
45
/ \ Shutdown \
public void fireShutdownEvent(DSMPHandler h) { System.out.println("-----fireShutdownEvent connectionid = " + h.getHandlerId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void sh...
[ "0.838656", "0.838656", "0.838656", "0.838656", "0.838656", "0.838656", "0.838656", "0.838656", "0.838656", "0.838656", "0.838656", "0.838656", "0.838656", "0.838656", "0.838656", "0.838656", "0.838656", "0.82058257", "0.82058257", "0.82058257", "0.82058257", "0.81938756", ...
0.0
-1
/ \ Commands \
public void fireLoginCommandToken(DSMPHandler h, byte flags, byte handle, String token) { if (printdebug && dodebug) { System.out.println("-----fireLoginCommandToken: " + "\n\tflags[" +flags+"] hand["+handle+"]"); System.out.prin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createCommands()\n{\n exitCommand = new Command(\"Exit\", Command.EXIT, 0);\n helpCommand=new Command(\"Help\",Command.HELP, 1);\n backCommand = new Command(\"Back\",Command.BACK, 1);\n}", "public void command() {\n List<String> commands = new ArrayList<>();\n commands...
[ "0.73932683", "0.7254115", "0.7205506", "0.71066374", "0.7015072", "0.70102674", "0.69948924", "0.6915147", "0.6914878", "0.68560076", "0.68450415", "0.684378", "0.6836223", "0.6795245", "0.67736983", "0.67075324", "0.66898936", "0.668735", "0.66862124", "0.6682264", "0.66659...
0.0
-1
/ \ Replies \
public void fireLoginReply(DSMPHandler h, byte flags, byte handle, int loginid, String user, String company, Vector v) { if (printdebug && dodebug) { System.out.println("-----fireLoginReply: " + "\n\tflags[" +flags+...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertReply() {\n\r\n\t}", "public void increseReplyCount() {\n\r\n\t}", "public void deleteReply() {\n\r\n\t}", "public void messageResp(int respId) {\n\r\n\t}", "public void sendReply(String cmd, String reply) {\n if (cmd.equals(\"ACTION_REPLY\")){\n long now = System.curren...
[ "0.6451822", "0.5687578", "0.5638799", "0.55207616", "0.5505678", "0.53770465", "0.5364805", "0.532961", "0.532961", "0.5285747", "0.5283957", "0.5240978", "0.52308595", "0.5227306", "0.52088517", "0.5196721", "0.51793355", "0.51381594", "0.5095191", "0.5078901", "0.5058746",...
0.0
-1
/ \ Events \
public void fireEndMeetingEvent(DSMPHandler h, byte flags, byte handle, int meetingid) { if (printdebug && dodebug) { System.out.println("-----fireEndMeetingEvent: " + "\n\tflags[" +flags+"] hand["+handle+"]"); System.out.println("...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Event () {\n // Nothing to do here.\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onEvent(Object...
[ "0.7277992", "0.70756865", "0.70756865", "0.70543313", "0.70384276", "0.7029674", "0.6960421", "0.6942838", "0.6907837", "0.6858283", "0.68328035", "0.68328035", "0.68328035", "0.68328035", "0.68328035", "0.68313694", "0.6824899", "0.6824899", "0.67747957", "0.674534", "0.673...
0.0
-1
/ \ Checking and Dispatching \
public void dispatchProtocolI(DSMPBaseProto proto, DSMPBaseHandler handlerIn, boolean doDispatch) throws InvalidProtocolException { int meetingid, participa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "public abstract String check() throws Exception;", "@Override\n\tprotected void logic() {\n\n\t}", "@Override public void action() {\n //Do Nothing\n assert(checkRep());\n }", "public void sm...
[ "0.5797444", "0.5797444", "0.55994236", "0.5564377", "0.54880315", "0.5478345", "0.5424519", "0.54003054", "0.5400129", "0.5380487", "0.5340331", "0.53398913", "0.53289926", "0.53272694", "0.5300798", "0.52995706", "0.52917", "0.5271581", "0.5271581", "0.526965", "0.5267007",...
0.0
-1
Create a new child token for each item in list.
public void execute(final ExecutionContext executionContext) throws Exception { // // process action handler arguments // if (foreach == null) { throw new WorkflowException("forEach has not been provided"); } // Collection<?> forEa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createItem(StreamTokenizer st) throws DataFormatException, IOException {\n\t\tboolean debug = false;\n\t\tboolean inComment = false;\n\t\tStringBuffer treebuf = new StringBuffer();\n\t\twhile (true) {\n\t\t\tswitch (st.nextToken()) {\n\t\t\tcase StreamTokenizer.TT_WORD:\n\t\t\t\t// inside a comment. Ignore it...
[ "0.56507194", "0.5486253", "0.5478906", "0.5470942", "0.5355921", "0.53293526", "0.53051674", "0.529086", "0.5275798", "0.5231141", "0.51769894", "0.51570463", "0.51479274", "0.5139377", "0.50973827", "0.50756687", "0.5019773", "0.4990804", "0.497604", "0.4957363", "0.4953653...
0.0
-1
build "for each" collection
private Collection<?> buildForEachCollection(final ExecutionContext executionContext) { String text = foreach.getTextTrim(); if (text != null && text.startsWith("#{")) { return evaluateForEachExpression(executionContext, text); } return (Collection<?>) FieldInstan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Foreach createForeach();", "public Iterable<M> iterateAll();", "Collect getColl();", "protected abstract Collection createCollection();", "default YCollection<T> forEachFun(Consumer<T> consumer) {\n for (T t : this) consumer.accept(t);\n return this;\n }", "private static void iterator()...
[ "0.718921", "0.57540685", "0.5708069", "0.5568053", "0.5472186", "0.5471689", "0.5428076", "0.5400247", "0.5374498", "0.5310962", "0.5204498", "0.51639795", "0.5137918", "0.51298785", "0.5126415", "0.51196796", "0.51070404", "0.51055044", "0.50668776", "0.50578314", "0.499800...
0.6450231
1
Create a token name
protected String getTokenName(Token parent, String transitionName, int loopIndex) { String suffix = "." + loopIndex; if (transitionName == null || transitionName.isEmpty()) { // No transition name int size = (parent.getChildren() != null) ? parent.getChildren().size()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createLabelToken( String name, int id );", "@Override\r\n\tpublic Token createToken() {\n\t\tToken token = new Token();\r\n\t\treturn token;\r\n\t}", "TokenTypes.TokenName getName();", "private void createFunctName() {\n\t\ttry {\n\t\t\tString value = name();\n\t\t\ttoken = new Token(TokenType.FunctName...
[ "0.7503186", "0.70444715", "0.6837197", "0.6809877", "0.6654422", "0.6491998", "0.6474159", "0.64544815", "0.63933444", "0.63713264", "0.635753", "0.6343176", "0.6338541", "0.6322881", "0.6290891", "0.6290891", "0.6290891", "0.6290891", "0.6290891", "0.6290891", "0.628718", ...
0.56490827
70
Sets the list of objects to be iterated over.
public void setForeach(Element foreach) { this.foreach = foreach; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void set(Object[] objects) {\r\n this.objects = objects;\r\n }", "private void setEverything(){\r\n int listLength = propertyList.length -1;\r\n arrayIterator = new ArrayIterator<>(propertyList, listLength+1);\r\n\r\n this.priceTree = new SearchTree<>(new PriceComparator());\r\...
[ "0.65235376", "0.6416109", "0.6302367", "0.619517", "0.60610104", "0.6025479", "0.5994742", "0.594299", "0.5924589", "0.58920807", "0.5829409", "0.5790885", "0.5785277", "0.5771489", "0.57358605", "0.5728675", "0.5718265", "0.571788", "0.5717759", "0.5706906", "0.5668814", ...
0.53196174
61
Set the name of the variable to which the eleements of foreach are assigned.
public void setVar(String var) { this.var = var; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setVariable(Name variable) {\n this.variable = variable;\n }", "public final void setVarName(String varName){\n\t\tthis.varName = varName;\t\n\t}", "public final void setName(final GenericName name) {\n this.value = name.toString();\n final NameSpace scope = name.scope();\n ...
[ "0.624864", "0.62011325", "0.6147744", "0.60982144", "0.6085197", "0.60836095", "0.5977164", "0.59197867", "0.59147227", "0.58966917", "0.57565945", "0.5725616", "0.569031", "0.5656677", "0.56203073", "0.55796766", "0.55796766", "0.55796766", "0.5571091", "0.555476", "0.55527...
0.51739985
84
Use only intermediate transactions
Motivo create(Motivo motivo);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Transaction getCurrentTransaction();", "void readOnlyTransaction();", "void rollback() {\r\n tx.rollback();\r\n tx = new Transaction();\r\n }", "public static void ignoreTransaction() {\n if (active) {\n TransactionAccess.ignore();\n }\n }", "@Override\n public void rollbackTx() {\...
[ "0.6459568", "0.64064604", "0.6257136", "0.6251248", "0.6216716", "0.61883324", "0.60906357", "0.6078962", "0.60405886", "0.601583", "0.59354913", "0.5933812", "0.5903239", "0.5891196", "0.58876294", "0.58846617", "0.5876406", "0.5853591", "0.58479667", "0.5841988", "0.583244...
0.0
-1
Use only intermediate transactions
Motivo update(Motivo update);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Transaction getCurrentTransaction();", "void readOnlyTransaction();", "void rollback() {\r\n tx.rollback();\r\n tx = new Transaction();\r\n }", "public static void ignoreTransaction() {\n if (active) {\n TransactionAccess.ignore();\n }\n }", "@Override\n public void rollbackTx() {\...
[ "0.6459568", "0.64064604", "0.6257136", "0.6251248", "0.6216716", "0.61883324", "0.60906357", "0.6078962", "0.60405886", "0.601583", "0.59354913", "0.5933812", "0.5903239", "0.5891196", "0.58876294", "0.58846617", "0.5876406", "0.5853591", "0.58479667", "0.5841988", "0.583244...
0.0
-1
set the singleton instance
@Override public void start(Stage stage) throws Exception { instance = this; mainStage = stage; HemsProps.init(hemsPropsPath); //decide if data upload mode or normal production if (!IS_DATA_UPLOAD_MODE) { stage.setScene(createScene(loadMainPane())); stage.setTitle(windowTitle); stage.show(); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "synchronized public static void setInstance(SampletypeManager instance)\n {\n singleton = instance;\n }", "private void initInstance() {\n init$Instance(true);\n }", "synchronized public static void setInstance(InstitutionManager instance)\n {\n singleton = instance;\n }", ...
[ "0.7714729", "0.74094415", "0.7332483", "0.7234276", "0.71962744", "0.7107162", "0.6925527", "0.67188203", "0.67060095", "0.66975015", "0.6632751", "0.65706414", "0.65555054", "0.65516317", "0.643906", "0.6421823", "0.64146376", "0.6393991", "0.6386717", "0.6379647", "0.63747...
0.0
-1
/ DATA CREATION ACTIVITY
private void DataCreator() { // Creation of employees Employee emp1 = new Employee("Akos", "Toth", true); Employee emp2 = new Employee("Gabor", "Kovacs", true); Employee emp3 = new Employee("Adam", "Ciceri", true); empRep.save(emp1); empRep.save(emp2); empRep.save(emp3); LOGGER.info("TEST DATA: Employe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "CreationData creationData();", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInst...
[ "0.7275979", "0.71715677", "0.67775214", "0.6671324", "0.66433156", "0.6583348", "0.65830487", "0.6540442", "0.6450596", "0.639477", "0.63820726", "0.63795733", "0.62090373", "0.61770415", "0.6172574", "0.6154452", "0.6137361", "0.61302984", "0.61114323", "0.61092705", "0.605...
0.57522845
88
This constructor creates an instance of the SnackSelectionItem&46;
public SnackSelectionItem(int snackIdentifier, String snackName, int snackPrice, int quantity, boolean isActive, boolean isWarningOn){ this.setSnackIdentifier(snackIdentifier); this.setName(snackName); this.setPrice(snackPrice); this.setState(isActive); this.setItemState(isWarningOn); init(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n public Item() {\n }", "private Item(){}", "public Item()\n {\n super();\n }", "public ItemPro() {\n initComponents();\n comboFill();\n }", "public Item()\r\n {\r\n // Initialize instance variables\r\n \r\n }", "public ...
[ "0.6332544", "0.62965286", "0.6264459", "0.62038296", "0.6177481", "0.61721265", "0.61589664", "0.61589664", "0.61174864", "0.60960376", "0.60960376", "0.6071761", "0.6051939", "0.6045247", "0.6007313", "0.5986333", "0.59498334", "0.59422606", "0.59251165", "0.58863693", "0.5...
0.66373396
0
This method initialize the GUI.
private void init(){ btn.setLabel(name); lbl.setText(""+price+" C"); lbl.setBackground(Color.lightGray); lbl.setFocusable(false); lbl.setPreferredSize(new Dimension(50,24)); setLayout(new GridBagLayout()); add(btn,new GridBagConstraints(0,0,1,1,1.0,0.0, GridBagConstraints.WEST,GridBagConstraints...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initializeGUI() {\n\n\t}", "public GUI() {\n\t\tinitComponents();\n\t}", "public GUI() {\n initComponents();\n }", "public GUI() {\n initComponents();\n }", "private static void initAndShowGUI() {\n }", "public GUI() {\n initComponents();\n this.setVisi...
[ "0.87634444", "0.8471725", "0.84207356", "0.84207356", "0.8297068", "0.8220177", "0.81549007", "0.81549007", "0.81517667", "0.8138325", "0.80246407", "0.79856735", "0.79691845", "0.79651105", "0.79522073", "0.7900094", "0.7895814", "0.7885273", "0.78815895", "0.7879707", "0.7...
0.0
-1
This method attaches a listener to the item.
public void addListener(ActionListener listener){ btn.addActionListener(listener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void addItemListener(ItemListener listener);", "default void addListener(Runnable listener) {\n\t\tthis.getItemListeners().add(listener);\n\t}", "public void addItemListener(ItemListener l) {\r\n\t\tint index = this.itemListeners.indexOf(l);\r\n\t\tif (index==-1) {\r\n\t\t\tthis.itemListeners.a...
[ "0.79275256", "0.7298576", "0.7007321", "0.6663135", "0.65891683", "0.65345556", "0.65196437", "0.6501425", "0.6445932", "0.643928", "0.6431637", "0.64197767", "0.6384243", "0.63166285", "0.6303339", "0.62948054", "0.62584406", "0.62555665", "0.6229665", "0.62258744", "0.6224...
0.0
-1
This method remove the listener from the item.
public void removeListener(ActionListener listener){ btn.removeActionListener(listener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default void removeListener(Runnable listener) {\n\t\tthis.getItemListeners().remove(listener);\n\t}", "@Override\n public void removeListener() {\n this.mListener = null;\n }", "public void removeListener(T listener);", "public void removeListener(GrillEventListener listener);", "public void ...
[ "0.81005114", "0.7712397", "0.7465511", "0.715009", "0.71147174", "0.7089192", "0.7072993", "0.70720184", "0.70406115", "0.70395964", "0.703789", "0.7035316", "0.7005031", "0.69865555", "0.69568783", "0.69516057", "0.69509345", "0.6940097", "0.6923665", "0.68840075", "0.68731...
0.6556619
73
This method sets the snack identifier.
public void setSnackIdentifier(int snackIdentifier) { this.snackIdentifier = snackIdentifier; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setSnId(int value) {\n \n snId_ = value;\n onChanged();\n return this;\n }", "public Builder setSnId(int value) {\n \n snId_ = value;\n onChanged();\n return this;\n }", "public Builder setSnId(int value) {\n \n snId...
[ "0.66500205", "0.66500205", "0.66500205", "0.66500205", "0.6565841", "0.63890654", "0.6342981", "0.6316481", "0.62680745", "0.62086326", "0.61930954", "0.61926186", "0.6123918", "0.6114204", "0.6110471", "0.6110471", "0.60708004", "0.59699655", "0.5969279", "0.5965913", "0.59...
0.7886864
0
This method returns the snack identifier.
public int getSnackIdentifier() { return snackIdentifier; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSnId() {\n return snId_;\n }", "public int getSnId() {\n return snId_;\n }", "public int getSnId() {\n return snId_;\n }", "public int getSnId() {\n return snId_;\n }", "int getSnId();", "int getSnId();", "int getSnId();", "int getSnId();", "public int ...
[ "0.71545464", "0.71545464", "0.71545464", "0.71545464", "0.71487117", "0.71487117", "0.71487117", "0.71487117", "0.7080016", "0.7080016", "0.7080016", "0.7080016", "0.7025923", "0.67131263", "0.66466814", "0.6629086", "0.6629086", "0.65806943", "0.65806943", "0.65769017", "0....
0.8594518
0
This method sets the name on the Snack Selection Item.
public void setName(String name) { this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSelectedName(String s) {\n\t\tuName = s;\n\t}", "public ItemBuilder setName(String name) {\r\n\t\tthis.name = name;\r\n\t\treturn this;\r\n\t}", "@Override\r\n public void setName(String name) {\n }", "@Override\n public void setName(String name) {\n \n }", "public void se...
[ "0.73950404", "0.6930032", "0.67484003", "0.67133343", "0.67113554", "0.66703206", "0.66673", "0.66673", "0.66664743", "0.66664743", "0.6658198", "0.6651124", "0.66494155", "0.66494155", "0.6646907", "0.6631351", "0.66229945", "0.6609154", "0.66069806", "0.6602913", "0.659611...
0.0
-1
This method returns the name of the Snack Selection Item.
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName()\r\n\t{\r\n\t\treturn theItem.getName();\r\n\t}", "public String getName() {\n return item.getName();\n }", "public String getItemName() {\r\n return itemName;\r\n }", "public String getItemName() {\r\n return itemName;\r\n }", "public String getItemName...
[ "0.7239674", "0.71795774", "0.71560526", "0.71560526", "0.71560526", "0.7127389", "0.7119232", "0.7112614", "0.7099903", "0.7099903", "0.7099903", "0.7099903", "0.7099903", "0.70801777", "0.6923132", "0.6639073", "0.6638311", "0.65696913", "0.6557792", "0.64674485", "0.645208...
0.0
-1
This method sets the price on the Snack Selection Item.
public void setPrice(int price) { this.price = price; lbl.setText(price+" C"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }", "public void setPrice(int price) {\r\n this.price = price;\r\n }", "public void setPrice(double price)\n {\n this.price = price;\n }", "public void setPrice(double price) {\r\n this.price = price;...
[ "0.7306219", "0.6991119", "0.69729406", "0.6972445", "0.6972445", "0.6972445", "0.69462746", "0.6941045", "0.69405574", "0.69380665", "0.6933257", "0.6933257", "0.6933257", "0.6933257", "0.6933257", "0.6933257", "0.6933257", "0.6907863", "0.68937653", "0.68838406", "0.6878559...
0.6695129
40
This method returns the price on the Snack Selection Item.
public int getPrice() { return price; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPrice()\r\n\t{\r\n\t\treturn theItem.getPrice();\r\n\t}", "protected Double getItemPrice() {\n return itemPrice;\n }", "protected float getChoicePrice() {\n\t\treturn choiceOption.getPrice();\n\t}", "public float getItemPrice()\n\t{\n\t\treturn itemPrice;\n\t}", "public int getPrice...
[ "0.7409782", "0.7296207", "0.7139328", "0.7104668", "0.69228363", "0.6918596", "0.6914247", "0.6905929", "0.6896303", "0.6871751", "0.6859887", "0.6844159", "0.6836352", "0.68208826", "0.68075836", "0.68069446", "0.678455", "0.678455", "0.6780579", "0.6778122", "0.6778122", ...
0.6570578
89
This method sets the quantity on the Snack Selection Item.
public void setQuantity(int quantity) { this.quantity = quantity; if(this.quantity>0){ this.setItemState(false); } else{ this.setItemState(false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void ItemQuantity(int quantity) {\n this.quantity = quantity;\r\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "public void setQuantity(int value) {\n this.qua...
[ "0.78348595", "0.7638768", "0.7638768", "0.7638768", "0.75118744", "0.75056696", "0.7474351", "0.74359244", "0.7419624", "0.7419624", "0.737252", "0.7314849", "0.72910833", "0.7247934", "0.7247934", "0.71720576", "0.7122013", "0.7110097", "0.7086003", "0.70728576", "0.7035371...
0.7058545
20
This method returns the quantity of the Snack Selection Item.
public int getQuantity() { return quantity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getItemQty() {\n return itemQty;\n }", "@Override\r\n public int getItemQuantity() {\n return this.quantity;\r\n }", "public int getQuantity() {\r\n\t\treturn quantity;\r\n\t}", "public int getQuantity() {\r\n\t\treturn this.quantity;\r\n\t}", "public int getQuantity() \n\t{\n\t\tre...
[ "0.7399217", "0.7268103", "0.7244627", "0.7203325", "0.7192104", "0.70161945", "0.7011098", "0.699631", "0.69901353", "0.6989609", "0.6984571", "0.69751316", "0.69610745", "0.6954697", "0.69446236", "0.69446236", "0.6943789", "0.6943789", "0.6932092", "0.6930241", "0.6930241"...
0.7184889
9
This method activates or deactivates the snack selection item button&46; This method also display "OUT OF STOCK" messages where appropriate.
public void setItemState(boolean isOn){ this.isWarningOn=isOn; btn.setEnabled(!isOn); btn.setBackground(this.getBackground()); wnd.setState(isOn); if (isOn) wnd.setLabel(WarningText); else wnd.setLabel((VariantPointConstants.isvShowLowStock() && quantity <= LowStockThreshold) ? LowStockText : N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onYesButtonClicked() {\n changeAfterClientPick();\n }", "public void selectPressed() {\n\t\tif (edit) {\n\t\t\tdisplayCardHelp = !displayCardHelp;\n\t\t} else {\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_ERROR);\n\t\t}\n\t}", "@FXML\n\tprivate void handleSelectSoldTo() {\...
[ "0.6340197", "0.6068685", "0.59948266", "0.5958157", "0.58649737", "0.5776657", "0.5757134", "0.57088", "0.56317145", "0.55960566", "0.559178", "0.557454", "0.5572949", "0.55681294", "0.55552965", "0.55274975", "0.5526602", "0.5525573", "0.55188924", "0.5508962", "0.5507468",...
0.5868514
4
This method returns the item state of the SnackSelectionItem&46; This method determine whether the warning message is On or Off.
public boolean getItemState(){ return this.isWarningOn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setItemState(boolean isOn){\n\t\tthis.isWarningOn=isOn;\n\t\tbtn.setEnabled(!isOn);\n\t\tbtn.setBackground(this.getBackground());\n\t\twnd.setState(isOn);\n\t\tif (isOn)\n\t\t\twnd.setLabel(WarningText);\n\t\telse \n\t\t\twnd.setLabel((VariantPointConstants.isvShowLowStock() && quantity <= LowStockThre...
[ "0.6083111", "0.56926125", "0.5668805", "0.5563304", "0.5552993", "0.553963", "0.5536314", "0.5518519", "0.54399556", "0.5405548", "0.5398593", "0.53967357", "0.5385413", "0.5384854", "0.5357204", "0.53278536", "0.52756315", "0.5257527", "0.5218558", "0.5203985", "0.5198782",...
0.78166986
0
This method sets the state of the SnackSelectionItem&46;
public void setState(boolean active) { this.isActive=active; btn.setEnabled(active); btn.setBackground(this.getBackground()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSelectedItem(int selectedItem) {\n setSelectedItem(selectedItem, true);\n }", "@Override\n void setupState(TYPE firstItem) {\n currentItem = 0;\n }", "void setStateHolder(@NonNull T selectionStateHolder);", "public void setItemState(boolean isOn){\n\t\tthis.isWarningOn=i...
[ "0.6508593", "0.6379688", "0.6343388", "0.62933046", "0.6280629", "0.6229713", "0.61264586", "0.61195546", "0.6098279", "0.6078482", "0.60715556", "0.60614127", "0.600704", "0.5984329", "0.5923942", "0.59105766", "0.59105766", "0.5878196", "0.58757037", "0.58680135", "0.58361...
0.0
-1
This method returns the state of the SnackSelectionItem&46;
public boolean getState() { return isActive; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private State getState() {\n if (isSelected() && !isArmed()) {\n // normal black tick\n return State.SELECTED;\n } else if (isSelected() && isArmed()) {\n // don't care grey tick\n return State.OTHER;\n ...
[ "0.655347", "0.64593077", "0.6455369", "0.6380498", "0.6380498", "0.6316333", "0.6316333", "0.6299922", "0.6291071", "0.62696725", "0.62696725", "0.62696725", "0.62696725", "0.62696725", "0.62696725", "0.6254531", "0.6254531", "0.62487894", "0.6236308", "0.62236756", "0.62102...
0.0
-1