bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public static EditorKit createEditorKitForContentType(String type) { return new DefaultEditorKit(); } | public static EditorKit createEditorKitForContentType(String type) { return new PlainEditorKit(); } | 51,148 |
public abstract int getNextVisualPositionFrom(JTextComponent c, int pos, Position.Bias b, int d, Position.Bias[] biasRet) throws BadLocationException; | public abstract int getNextVisualPositionFrom(JTextComponent c, int pos, Position.Bias b, int d, Position.Bias[] biasRet) throws BadLocationException; | 51,149 |
public abstract int getNextVisualPositionFrom(JTextComponent c, int pos, Position.Bias b, int d, Position.Bias[] biasRet) throws BadLocationException; | public abstract int getNextVisualPositionFrom(JTextComponent c, int pos, Position.Bias b, int d, Position.Bias[] biasRet) throws BadLocationException; | 51,150 |
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); ServerManagement.undeployQueue("Queue"); ServerManagement.deployQueue("Queue"); InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (ConnectionFactory)ic.lookup("/Conne... | public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); ServerManagement.undeployQueue("Queue"); ServerManagement.deployQueue("Queue"); InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (ConnectionFactory)ic.lookup("/Conne... | 51,151 |
public void tearDown() throws Exception { ServerManagement.undeployQueue("Queue"); super.tearDown(); } | public void tearDown() throws Exception { ServerManagement.undeployQueue("Queue"); super.tearDown(); } | 51,152 |
public ConnectionState(ConnectionDelegate delegate, String serverId) { super(null, delegate); children = new SyncSet(new HashSet(), new WriterPreferenceReadWriteLock()); resourceManager = ResourceManagerFactory.instance.getResourceManager(serverId); //TODO size should be configurable ... | public ConnectionState(ConnectionDelegate delegate, String serverId, String serverLocatorURI) throws Exception { super(null, delegate); children = new SyncSet(new HashSet(), new WriterPreferenceReadWriteLock()); resourceManager = ResourceManagerFactory.instance.getResourceManager(serverId); ... | 51,153 |
public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line, InlineBlockBox pendingBlockBox) { InlineBlockBox box = new InlineBlockBox(); box.element = content.getElement(); // use the prev_align to calculate the x if (... | public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line, InlineBlockBox pendingBlockBox) { InlineBlockBox box = new InlineBlockBox(); box.element = content.getElement(); // use the prev_align to calculate the x if (... | 51,155 |
public List delivering(Filter filter) { List delivering = new ArrayList(); synchronized (deliveries) { for(Iterator i = deliveries.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); Routable r = d.getReference(); if (filter == null || filte... | public List delivering(Filter filter) { List delivering = new ArrayList(); synchronized (deliveries) { for(Iterator i = deliveries.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); Routable r = d.getReference(); if (filter == null || filte... | 51,156 |
public List undelivered(Filter filter) { if (log.isTraceEnabled()) { log.trace("Getting undelivered unreliable messages"); } List undelivered = new ArrayList(); synchronized(messageRefs) { for(Iterator i = messageRefs.iterator(); i.hasNext(); ) { Rou... | public List undelivered(Filter filter) { if (log.isTraceEnabled()) { log.trace("Getting undelivered unreliable messages"); } List undelivered = new ArrayList(); synchronized(messageRefs) { for(Iterator i = messageRefs.iterator(); i.hasNext(); ) { Rou... | 51,157 |
public synchronized void startService() throws Exception { try { started = true; if (connectorObjectName == null) { throw new IllegalArgumentException("A Connector must be specified for each Connection Factory"); } if (serverPeerObjectN... | public synchronized void startService() throws Exception { try { started = true; if (connectorObjectName == null) { throw new IllegalArgumentException("A Connector must be specified for each Connection Factory"); } if (serverPeerObjectN... | 51,158 |
public synchronized void stopService() throws Exception { try { started = false; connectionFactoryManager.unregisterConnectionFactory(this.getName(), clustered); connectorManager.unregisterConnector(connectorObjectName.getCanonicalName()); log.in... | public synchronized void stopService() throws Exception { try { started = false; connectionFactoryManager.unregisterConnectionFactory(getServiceName().toString(), clustered); connectorManager.unregisterConnector(connectorObjectName.getCanonicalName()); ... | 51,159 |
void unregisterConnectionFactory(String connectionFactoryID) throws Exception; | void unregisterConnectionFactory(String connectionFactoryID) throws Exception; | 51,160 |
private void calcMaxWidthFromLineLength(LayoutContext c, boolean trim) { int last = 0; int current = 0; while ( (current = _text.indexOf(WhitespaceStripper2.EOL, last)) != -1) { String target = _text.substring(last, current); if (trim) { target = tar... | private void calcMaxWidthFromLineLength(LayoutContext c, int cbWidth, boolean trim) { int last = 0; int current = 0; while ( (current = _text.indexOf(WhitespaceStripper2.EOL, last)) != -1) { String target = _text.substring(last, current); if (trim) { ... | 51,161 |
private void calcMaxWidthFromLineLength(LayoutContext c, boolean trim) { int last = 0; int current = 0; while ( (current = _text.indexOf(WhitespaceStripper2.EOL, last)) != -1) { String target = _text.substring(last, current); if (trim) { target = tar... | private void calcMaxWidthFromLineLength(LayoutContext c, boolean trim) { int last = 0; int current = 0; while ( (current = _text.indexOf(WhitespaceStripper2.EOL, last)) != -1) { String target = _text.substring(last, current); if (trim) { target = tar... | 51,162 |
public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); } ... | public void calcMinMaxWidth(LayoutContext c, int cbWidth, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); ... | 51,164 |
public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); } ... | public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getInlineMBP(c, cbWidth) + getTextWidth(c, getText(trimLe... | 51,165 |
public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); } ... | public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); } ... | 51,166 |
public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); } ... | public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); } ... | 51,167 |
public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); } ... | public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); } ... | 51,168 |
public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); } ... | public void calcMinMaxWidth(LayoutContext c, boolean trimLeadingSpace) { if (! _minMaxCalculated) { IdentValue whitespace = getStyle().getWhitespace(); if (whitespace == IdentValue.NOWRAP) { _minWidth = _maxWidth = getTextWidth(c, getText(trimLeadingSpace)); } ... | 51,169 |
private int calcMinWidthFromWordLength( LayoutContext c, boolean trimLeadingSpace, boolean includeWS) { int spaceWidth = getSpaceWidth(c); int last = 0; int current = 0; int maxWidth = 0; int spaceCount = 0; String text = getText(trimLeadingSpace)... | private int calcMinWidthFromWordLength( LayoutContext c, int cbWidth, boolean trimLeadingSpace, boolean includeWS) { int spaceWidth = getSpaceWidth(c); int last = 0; int current = 0; int maxWidth = 0; int spaceCount = 0; String text = getText(trim... | 51,170 |
private int calcMinWidthFromWordLength( LayoutContext c, boolean trimLeadingSpace, boolean includeWS) { int spaceWidth = getSpaceWidth(c); int last = 0; int current = 0; int maxWidth = 0; int spaceCount = 0; String text = getText(trimLeadingSpace)... | private int calcMinWidthFromWordLength( LayoutContext c, boolean trimLeadingSpace, boolean includeWS) { int spaceWidth = getSpaceWidth(c); int last = 0; int current = 0; int maxWidth = 0; int spaceCount = 0; String text = getText(trimLeadingSpace)... | 51,171 |
public boolean contains(int value) { // This only works on a normalized member array. for (int index = 0; index < members.length; index++) { if (value < members[index][0]) return false; else if (value < members[index][1]) return true; } return false; } | public boolean contains(int value) { // This only works on a normalized member array. for (int index = 0; index < members.length; index++) { if (value < members[index][0]) return false; else if (value <= members[index][1]) return true; } return false; } | 51,174 |
public boolean equals(Object obj) { if (! (obj instanceof SetOfIntegerSyntax)) return false; throw new Error("not implemented"); } | public boolean equals(Object obj) { if (! (obj instanceof SetOfIntegerSyntax)) return false; SetOfIntegerSyntax other = (SetOfIntegerSyntax) obj; if (other.members.length != members.length) return false; for (int i = 0; i < members.length; ++i) { if (members[i][0] != other.members[i][0] || members[i][1] !=... | 51,175 |
public int[][] getMembers() { throw new Error("not implemented"); } | public int[][] getMembers() { return (int[][]) members.clone(); } | 51,176 |
public int hashCode() { throw new Error("not implemented"); } | public int hashCode() { int result = 0; for (int i = 0; i < members.length; ++i) result += members[i][0] + members[i][1]; return result; } | 51,177 |
public int next(int x) { throw new Error("not implemented"); } | public int next(int x) { for (int i = 0; i < members.length; ++i) { if (x >= members[i][1]) continue; if (x < members[i][0]) return members[i][0]; return x + 1; } return -1; } | 51,178 |
private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... | private static int[][] normalize(int[][] values, int size) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(... | 51,179 |
private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... | private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... | 51,180 |
private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... | private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; int outIndex = 0; for (int i = 0; i < size; ++i) { // Search the lowest range. int[] range = (int[]) vecMembe... | 51,181 |
private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... | private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... | 51,182 |
private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... | private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... | 51,183 |
private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... | private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... | 51,184 |
private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... | private static int[][] normalize(Vector vecMembers) { // XXX: Perhaps we should merge ranges that overlap. int current = 0; int[][] members = new int[vecMembers.size()][]; while (vecMembers.size() > 0) { // Search the lowest range. int[] range = (int[]) vecMembers.elementAt(0); ... | 51,185 |
public String toString() { throw new Error("not implemented"); } | public String toString() { StringBuilder sb = new StringBuilder(); for (int i = 0; i < members.length; ++i) { if (i > 0) sb.append(','); sb.append(members[i][0]); if (members[i][0] != members[i][1]) { sb.append('-'); sb.append(members[i][1]); } } return sb.toString(); } | 51,186 |
Selector( int pos, Ruleset parent, int axis, String elementName ) { _parent = parent; _axis = axis; _name = elementName; _pos = pos; _specificityB = 0; _specificityC = 0; _specificityD = 0; if ( _name != null ) { _specificityD++; } } | Selector(int pos, Ruleset parent, int axis, String elementName) { _parent = parent; _axis = axis; _name = elementName; _pos = pos; _specificityB = 0; _specificityC = 0; _specificityD = 0; if ( _name != null ) { _specificityD++; } } | 51,187 |
Selector( int pos, Ruleset parent, int axis, String elementName ) { _parent = parent; _axis = axis; _name = elementName; _pos = pos; _specificityB = 0; _specificityC = 0; _specificityD = 0; if ( _name != null ) { _specificityD++; } } | Selector( int pos, Ruleset parent, int axis, String elementName ) { _parent = parent; _axis = axis; _name = elementName; _pos = pos; _specificityB = 0; _specificityC = 0; _specificityD = 0; if (_name != null) { _specificityD++; } } | 51,188 |
public void addAttributeEqualsCondition( String name, String value ) { _specificityC++; addCondition( Condition.createAttributeEqualsCondition( name, value ) ); } | public void addAttributeEqualsCondition(String name, String value) { _specificityC++; addCondition( Condition.createAttributeEqualsCondition( name, value ) ); } | 51,189 |
public void addAttributeEqualsCondition( String name, String value ) { _specificityC++; addCondition( Condition.createAttributeEqualsCondition( name, value ) ); } | public void addAttributeEqualsCondition( String name, String value ) { _specificityC++; addCondition(Condition.createAttributeEqualsCondition(name, value)); } | 51,190 |
public void addAttributeExistsCondition( String name ) { _specificityC++; addCondition( Condition.createAttributeExistsCondition( name ) ); } | public void addAttributeExistsCondition(String name) { _specificityC++; addCondition( Condition.createAttributeExistsCondition( name ) ); } | 51,191 |
public void addAttributeExistsCondition( String name ) { _specificityC++; addCondition( Condition.createAttributeExistsCondition( name ) ); } | public void addAttributeExistsCondition( String name ) { _specificityC++; addCondition(Condition.createAttributeExistsCondition(name)); } | 51,192 |
public void addAttributeMatchesFirstPartCondition( String name, String value ) { _specificityC++; addCondition( Condition.createAttributeMatchesFirstPartCondition( name, value ) ); } | public void addAttributeMatchesFirstPartCondition(String name, String value) { _specificityC++; addCondition( Condition.createAttributeMatchesFirstPartCondition( name, value ) ); } | 51,193 |
public void addAttributeMatchesFirstPartCondition( String name, String value ) { _specificityC++; addCondition( Condition.createAttributeMatchesFirstPartCondition( name, value ) ); } | public void addAttributeMatchesFirstPartCondition( String name, String value ) { _specificityC++; addCondition(Condition.createAttributeMatchesFirstPartCondition(name, value)); } | 51,194 |
public void addAttributeMatchesListCondition( String name, String value ) { _specificityC++; addCondition( Condition.createAttributeMatchesListCondition( name, value ) ); } | public void addAttributeMatchesListCondition(String name, String value) { _specificityC++; addCondition( Condition.createAttributeMatchesListCondition( name, value ) ); } | 51,195 |
public void addAttributeMatchesListCondition( String name, String value ) { _specificityC++; addCondition( Condition.createAttributeMatchesListCondition( name, value ) ); } | public void addAttributeMatchesListCondition( String name, String value ) { _specificityC++; addCondition(Condition.createAttributeMatchesListCondition(name, value)); } | 51,196 |
public void addClassCondition( String className ) { _specificityC++; addCondition( Condition.createClassCondition( className ) ); } | public void addClassCondition(String className) { _specificityC++; addCondition( Condition.createClassCondition( className ) ); } | 51,197 |
public void addClassCondition( String className ) { _specificityC++; addCondition( Condition.createClassCondition( className ) ); } | public void addClassCondition( String className ) { _specificityC++; addCondition(Condition.createClassCondition(className)); } | 51,198 |
private void addCondition( Condition c ) { if ( conditions == null ) { conditions = new java.util.ArrayList(); } conditions.add( c ); } | private void addCondition( Condition c ) { if ( conditions == null ) { conditions = new java.util.ArrayList(); } conditions.add( c ); } | 51,199 |
private void addCondition( Condition c ) { if ( conditions == null ) { conditions = new java.util.ArrayList(); } conditions.add( c ); } | private void addCondition( Condition c ) { if ( conditions == null ) { conditions = new java.util.ArrayList(); } if (_pe != null) { conditions.add(Condition.createUnsupportedCondition()); XRLog.match(Level.WARNING, "Trying to append conditions to pseudoElement " + _pe); } conditions.... | 51,200 |
public void addFirstChildCondition() { _specificityC++; addCondition( Condition.createFirstChildCondition() ); } | public void addFirstChildCondition() { _specificityC++; addCondition(Condition.createFirstChildCondition()); } | 51,201 |
public void addIDCondition( String id ) { _specificityB++; addCondition( Condition.createIDCondition( id ) ); } | public void addIDCondition(String id) { _specificityB++; addCondition( Condition.createIDCondition( id ) ); } | 51,202 |
public void addIDCondition( String id ) { _specificityB++; addCondition( Condition.createIDCondition( id ) ); } | public void addIDCondition( String id ) { _specificityB++; addCondition(Condition.createIDCondition(id)); } | 51,203 |
public void addLangCondition( String lang ) { _specificityC++; addCondition( Condition.createLangCondition( lang ) ); } | public void addLangCondition(String lang) { _specificityC++; addCondition( Condition.createLangCondition( lang ) ); } | 51,204 |
public void addLangCondition( String lang ) { _specificityC++; addCondition( Condition.createLangCondition( lang ) ); } | public void addLangCondition( String lang ) { _specificityC++; addCondition(Condition.createLangCondition(lang)); } | 51,205 |
public void addLinkCondition() { _specificityC++; addCondition( Condition.createLinkCondition() ); } | public void addLinkCondition() { _specificityC++; addCondition(Condition.createLinkCondition()); } | 51,206 |
public void addUnsupportedCondition() { addCondition( Condition.createUnsupportedCondition() ); } | public void addUnsupportedCondition() { addCondition(Condition.createUnsupportedCondition()); } | 51,207 |
public Selector appendChainedSelector( int axis, String elementName ) { if ( _pe != null ) { XRLog.exception( "Trying to append child selectors to pseudoElement " + _pe ); } if ( chainedSelector == null ) { return ( chainedSelector = new Selector( _pos, getSpecificityB(), ... | public Selector appendChainedSelector( int axis, String elementName ) { if ( _pe != null ) { XRLog.exception( "Trying to append child selectors to pseudoElement " + _pe ); } if ( chainedSelector == null ) { return ( chainedSelector = new Selector( _pos, getSpecificityB(), ... | 51,208 |
public Selector appendChainedSelector( int axis, String elementName ) { if ( _pe != null ) { XRLog.exception( "Trying to append child selectors to pseudoElement " + _pe ); } if ( chainedSelector == null ) { return ( chainedSelector = new Selector( _pos, getSpecificityB(), ... | public Selector appendChainedSelector( int axis, String elementName ) { if ( _pe != null ) { XRLog.exception( "Trying to append child selectors to pseudoElement " + _pe ); } if ( chainedSelector == null ) { return ( chainedSelector = new Selector( _pos, getSpecificityB(), ... | 51,209 |
public Selector appendSiblingSelector( int axis, String elementName ) { if ( siblingSelector == null ) { return ( siblingSelector = new Selector( _pos, getSpecificityB(), getSpecificityC(), getSpecificityD(), _parent, axis, elementName ) ); } else { return siblingSelector.appendS... | public Selector appendSiblingSelector( int axis, String elementName ) { if ( siblingSelector == null ) { return ( siblingSelector = new Selector( _pos, getSpecificityB(), getSpecificityC(), getSpecificityD(), _parent, axis, elementName ) ); } else { return siblingSelector.appendS... | 51,210 |
public Selector appendSiblingSelector( int axis, String elementName ) { if ( siblingSelector == null ) { return ( siblingSelector = new Selector( _pos, getSpecificityB(), getSpecificityC(), getSpecificityD(), _parent, axis, elementName ) ); } else { return siblingSelector.appendS... | public Selector appendSiblingSelector( int axis, String elementName ) { if ( siblingSelector == null ) { return ( siblingSelector = new Selector( _pos, getSpecificityB(), getSpecificityC(), getSpecificityD(), _parent, axis, elementName ) ); } else { return siblingSelector.appendS... | 51,211 |
Element getAppropriateSibling( Element e ) { Node sibling = null; switch ( _axis ) { case IMMEDIATE_SIBLING_AXIS: sibling = e.getPreviousSibling(); while ( sibling != null && sibling.getNodeType() != Node.ELEMENT_NODE ) { sibling = sibling.ge... | Element getAppropriateSibling(Element e) { Node sibling = null; switch ( _axis ) { case IMMEDIATE_SIBLING_AXIS: sibling = e.getPreviousSibling(); while ( sibling != null && sibling.getNodeType() != Node.ELEMENT_NODE ) { sibling = sibling.getP... | 51,212 |
Element getAppropriateSibling( Element e ) { Node sibling = null; switch ( _axis ) { case IMMEDIATE_SIBLING_AXIS: sibling = e.getPreviousSibling(); while ( sibling != null && sibling.getNodeType() != Node.ELEMENT_NODE ) { sibling = sibling.ge... | Element getAppropriateSibling( Element e ) { Node sibling = null; switch (_axis) { case IMMEDIATE_SIBLING_AXIS: sibling = e.getPreviousSibling(); while ( sibling != null && sibling.getNodeType() != Node.ELEMENT_NODE ) { sibling = sibling.getP... | 51,213 |
Element getAppropriateSibling( Element e ) { Node sibling = null; switch ( _axis ) { case IMMEDIATE_SIBLING_AXIS: sibling = e.getPreviousSibling(); while ( sibling != null && sibling.getNodeType() != Node.ELEMENT_NODE ) { sibling = sibling.ge... | Element getAppropriateSibling( Element e ) { Node sibling = null; switch ( _axis ) { case IMMEDIATE_SIBLING_AXIS: sibling = e.getPreviousSibling(); while (sibling != null && sibling.getNodeType() != Node.ELEMENT_NODE) { sibling = sibling.getP... | 51,214 |
Element getAppropriateSibling( Element e ) { Node sibling = null; switch ( _axis ) { case IMMEDIATE_SIBLING_AXIS: sibling = e.getPreviousSibling(); while ( sibling != null && sibling.getNodeType() != Node.ELEMENT_NODE ) { sibling = sibling.ge... | Element getAppropriateSibling( Element e ) { Node sibling = null; switch ( _axis ) { case IMMEDIATE_SIBLING_AXIS: sibling = e.getPreviousSibling(); while ( sibling != null && sibling.getNodeType() != Node.ELEMENT_NODE ) { sibling = sibling.ge... | 51,215 |
Element getAppropriateSibling( Element e ) { Node sibling = null; switch ( _axis ) { case IMMEDIATE_SIBLING_AXIS: sibling = e.getPreviousSibling(); while ( sibling != null && sibling.getNodeType() != Node.ELEMENT_NODE ) { sibling = sibling.ge... | Element getAppropriateSibling( Element e ) { Node sibling = null; switch ( _axis ) { case IMMEDIATE_SIBLING_AXIS: sibling = e.getPreviousSibling(); while ( sibling != null && sibling.getNodeType() != Node.ELEMENT_NODE ) { sibling = sibling.ge... | 51,216 |
Element getAppropriateSibling( Element e ) { Node sibling = null; switch ( _axis ) { case IMMEDIATE_SIBLING_AXIS: sibling = e.getPreviousSibling(); while ( sibling != null && sibling.getNodeType() != Node.ELEMENT_NODE ) { sibling = sibling.ge... | Element getAppropriateSibling( Element e ) { Node sibling = null; switch ( _axis ) { case IMMEDIATE_SIBLING_AXIS: sibling = e.getPreviousSibling(); while ( sibling != null && sibling.getNodeType() != Node.ELEMENT_NODE ) { sibling = sibling.ge... | 51,217 |
String getOrder() { if ( chainedSelector != null ) { return chainedSelector.getOrder(); }//only "deepest" value is correct String b = "000" + getSpecificityB(); String c = "000" + getSpecificityC(); String d = "000" + getSpecificityD(); String p = "00000" + _pos;... | String getOrder() { if (chainedSelector != null) { return chainedSelector.getOrder(); }//only "deepest" value is correct String b = "000" + getSpecificityB(); String c = "000" + getSpecificityC(); String d = "000" + getSpecificityD(); String p = "00000" + _pos; ... | 51,218 |
String getOrder() { if ( chainedSelector != null ) { return chainedSelector.getOrder(); }//only "deepest" value is correct String b = "000" + getSpecificityB(); String c = "000" + getSpecificityC(); String d = "000" + getSpecificityD(); String p = "00000" + _pos;... | String getOrder() { if ( chainedSelector != null ) { return chainedSelector.getOrder(); }//only "deepest" value is correct String b = "000" + getSpecificityB(); String c = "000" + getSpecificityC(); String d = "000" + getSpecificityD(); String p = "00000" + _pos;... | 51,219 |
public String getPseudoElement() { //only care about the last in the chain if ( chainedSelector != null ) { return chainedSelector.getPseudoElement(); } else { return _pe; } } | public String getPseudoElement() { //only care about the last in the chain if (chainedSelector != null) { return chainedSelector.getPseudoElement(); } else { return _pe; } } | 51,220 |
public int getSpecificityB() { if ( siblingSelector != null ) { return siblingSelector.getSpecificityB(); } return _specificityB; } | public int getSpecificityB() { if (siblingSelector != null) { return siblingSelector.getSpecificityB(); } return _specificityB; } | 51,221 |
public int getSpecificityC() { if ( siblingSelector != null ) { return siblingSelector.getSpecificityC(); } return _specificityC; } | public int getSpecificityC() { if (siblingSelector != null) { return siblingSelector.getSpecificityC(); } return _specificityC; } | 51,222 |
public int getSpecificityD() { if ( siblingSelector != null ) { return siblingSelector.getSpecificityD(); } return _specificityD; } | public int getSpecificityD() { if (siblingSelector != null) { return siblingSelector.getSpecificityD(); } return _specificityD; } | 51,223 |
public boolean isPseudoClass( int pc ) { return ( ( _pc & pc ) != 0 ); } | public boolean isPseudoClass( int pc ) { return ( ( _pc & pc ) != 0 ); } | 51,224 |
public boolean matches( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matches( sib, attRes ) )... | public boolean matches( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matches( sib, attRes ) )... | 51,225 |
public boolean matches( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matches( sib, attRes ) )... | public boolean matches( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if (!siblingSelector.matches(sib, attRes)) { ... | 51,226 |
public boolean matches( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matches( sib, attRes ) )... | public boolean matches( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matches( sib, attRes ) )... | 51,227 |
public boolean matches( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matches( sib, attRes ) )... | public boolean matches( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matches( sib, attRes ) )... | 51,228 |
public boolean matchesDynamic( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matchesDynamic( s... | public boolean matchesDynamic( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matchesDynamic( s... | 51,229 |
public boolean matchesDynamic( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matchesDynamic( s... | public boolean matchesDynamic( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if (!siblingSelector.matchesDynamic(sib... | 51,230 |
public boolean matchesDynamic( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matchesDynamic( s... | public boolean matchesDynamic( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matchesDynamic( s... | 51,231 |
public boolean matchesDynamic( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matchesDynamic( s... | public boolean matchesDynamic( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matchesDynamic( s... | 51,232 |
public boolean matchesDynamic( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matchesDynamic( s... | public boolean matchesDynamic( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matchesDynamic( s... | 51,233 |
public boolean matchesDynamic( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matchesDynamic( s... | public boolean matchesDynamic( org.w3c.dom.Element e, AttributeResolver attRes ) { if ( siblingSelector != null ) { Element sib = siblingSelector.getAppropriateSibling( e ); if ( sib == null ) { return false; } if ( !siblingSelector.matchesDynamic( s... | 51,234 |
public void setPseudoClass( int pc ) { if ( !isPseudoClass( pc ) ) { _specificityC++; } _pc |= pc; } | public void setPseudoClass( int pc ) { if ( !isPseudoClass( pc ) ) { _specificityC++; } _pc |= pc; } | 51,235 |
public void setPseudoElement( String pseudoElement ) { if ( _pe != null ) { addUnsupportedCondition(); XRLog.exception( "Trying to set more than one pseudo-element" ); } else { _specificityD++; _pe = pseudoElement; } } | public void setPseudoElement( String pseudoElement ) { if ( _pe != null ) { addUnsupportedCondition(); XRLog.exception( "Trying to set more than one pseudo-element" ); } else { _specificityD++; _pe = pseudoElement; } } | 51,236 |
public void setPseudoElement( String pseudoElement ) { if ( _pe != null ) { addUnsupportedCondition(); XRLog.exception( "Trying to set more than one pseudo-element" ); } else { _specificityD++; _pe = pseudoElement; } } | public void setPseudoElement( String pseudoElement ) { if ( _pe != null ) { addUnsupportedCondition(); XRLog.match(Level.WARNING, "Trying to set more than one pseudo-element"); } else { _specificityD++; _pe = pseudoElement; } } | 51,237 |
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... | public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... | 51,238 |
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... | public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... | 51,239 |
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... | public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... | 51,240 |
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... | public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... | 51,241 |
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... | public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... | 51,242 |
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... | public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... | 51,243 |
public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... | public void init() { URL url = null; url = this.getClass().getClassLoader().getResource("images/Stop24.gif"); stop = new AbstractAction("", new ImageIcon(url)) { public void actionPerformed(ActionEvent evt) { // TODO: stop not coded System.out.println("s... | 51,244 |
public void actionPerformed(ActionEvent evt) { try { FileDialog fd = new FileDialog(root.frame, "Open a local file", FileDialog.LOAD); fd.show(); if (fd.getFile() != null) { ... | public void actionPerformed(ActionEvent evt) { try { FileDialog fd = new FileDialog(root.frame, "Open a local file", FileDialog.LOAD); fd.show(); if (fd.getFile() != null) { ... | 51,246 |
public void actionPerformed(ActionEvent evt) { try { SharedContext sharedContext = root.panel.view.getSharedContext(); if (sharedContext.isPrint()) { sharedContext.setPrint(false); sharedContext.setInteractive... | public void actionPerformed(ActionEvent evt) { try { SharedContext sharedContext = root.panel.view.getSharedContext(); if (sharedContext.isPrint()) { sharedContext.setPrint(false); sharedContext.setInteractive... | 51,247 |
protected ReferralException() { super(); } | protected ReferralException() { super(); } | 51,248 |
protected void remove(String messageId, boolean reliable) throws Exception { super.remove(messageId, reliable); if (reliable) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + messageId + " on disk"); } removeMessage(messageId); if (log.i... | protected void remove(String messageId, boolean reliable) throws Exception { super.remove(messageId, reliable); if (reliable) { if (trace) { log.trace("removing (or decrementing reference count) " + messageId + " on disk"); } removeMessage(messageId); if (log.isTraceEnabled()... | 51,250 |
protected void remove(String messageId, boolean reliable) throws Exception { super.remove(messageId, reliable); if (reliable) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + messageId + " on disk"); } removeMessage(messageId); if (log.i... | protected void remove(String messageId, boolean reliable) throws Exception { super.remove(messageId, reliable); if (reliable) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + messageId + " on disk"); } removeMessage(messageId); if (trace... | 51,251 |
public CellView createView(GraphModel model, Object cell) { if(model.isPort(cell)) { WorkflowPort port = (WorkflowPort)cell; if(port.getIndex() == 0) return new CustomPortView(cell); return new PortView(cell); } else if(model.isEdge(cell)) { //return new CustomEdgeView(cell)... | public CellView createView(GraphModel model, Object cell) { if(model.isPort(cell)) { WorkflowPort port = (WorkflowPort)cell; if(port.getIndex() == 0) return new CustomPortView(cell); return new OutsidePortView(cell); } else if(model.isEdge(cell)) { //return new CustomEdgeVie... | 51,252 |
Component acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component mouseEventTarget = null; // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candid... | Component acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component mouseEventTarget = null; // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candid... | 51,253 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.