bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPrivateKeySpec) return decodeDSSPrivateKey((DSAPrivateKeySpec) keySpec); if (keySpec instanceof RSAPrivateCrtKeySpec) return decodeRSAPrivateKey((RSAPrivateCrtKeySpec) keySpec);... | protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPrivateKeySpec) return decodeDSSPrivateKey((DSAPrivateKeySpec) keySpec); if (keySpec instanceof RSAPrivateCrtKeySpec) return decodeRSAPrivateKey((RSAPrivateCrtKeySpec) keySpec);... | 24,304 |
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPrivateKeySpec) return decodeDSSPrivateKey((DSAPrivateKeySpec) keySpec); if (keySpec instanceof RSAPrivateCrtKeySpec) return decodeRSAPrivateKey((RSAPrivateCrtKeySpec) keySpec);... | protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPrivateKeySpec) return decodeDSSPrivateKey((DSAPrivateKeySpec) keySpec); if (keySpec instanceof RSAPrivateCrtKeySpec) return decodeRSAPrivateKey((RSAPrivateCrtKeySpec) keySpec);... | 24,306 |
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPrivateKeySpec) return decodeDSSPrivateKey((DSAPrivateKeySpec) keySpec); if (keySpec instanceof RSAPrivateCrtKeySpec) return decodeRSAPrivateKey((RSAPrivateCrtKeySpec) keySpec);... | protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPrivateKeySpec) return decodeDSSPrivateKey((DSAPrivateKeySpec) keySpec); if (keySpec instanceof RSAPrivateCrtKeySpec) return decodeRSAPrivateKey((RSAPrivateCrtKeySpec) keySpec);... | 24,307 |
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPublicKeySpec) return decodeDSSPublicKey((DSAPublicKeySpec) keySpec); if (keySpec instanceof RSAPublicKeySpec) return decodeRSAPublicKey((RSAPublicKeySpec) keySpec); if (keySpe... | protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPublicKeySpec) return decodeDSSPublicKey((DSAPublicKeySpec) keySpec); if (keySpec instanceof RSAPublicKeySpec) return decodeRSAPublicKey((RSAPublicKeySpec) keySpec); if (keySpe... | 24,308 |
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPublicKeySpec) return decodeDSSPublicKey((DSAPublicKeySpec) keySpec); if (keySpec instanceof RSAPublicKeySpec) return decodeRSAPublicKey((RSAPublicKeySpec) keySpec); if (keySpe... | protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPublicKeySpec) return decodeDSSPublicKey((DSAPublicKeySpec) keySpec); if (keySpec instanceof RSAPublicKeySpec) return decodeRSAPublicKey((RSAPublicKeySpec) keySpec); if (keySpe... | 24,310 |
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPublicKeySpec) return decodeDSSPublicKey((DSAPublicKeySpec) keySpec); if (keySpec instanceof RSAPublicKeySpec) return decodeRSAPublicKey((RSAPublicKeySpec) keySpec); if (keySpe... | protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPublicKeySpec) return decodeDSSPublicKey((DSAPublicKeySpec) keySpec); if (keySpec instanceof RSAPublicKeySpec) return decodeRSAPublicKey((RSAPublicKeySpec) keySpec); if (keySpe... | 24,312 |
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPublicKeySpec) return decodeDSSPublicKey((DSAPublicKeySpec) keySpec); if (keySpec instanceof RSAPublicKeySpec) return decodeRSAPublicKey((RSAPublicKeySpec) keySpec); if (keySpe... | protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPublicKeySpec) return decodeDSSPublicKey((DSAPublicKeySpec) keySpec); if (keySpec instanceof RSAPublicKeySpec) return decodeRSAPublicKey((RSAPublicKeySpec) keySpec); if (keySpe... | 24,313 |
public void doPass2(BootableHashMap liveVariables) { // TODO Auto-generated method stub } | public void doPass2() { phi.simplify(); // TODO Auto-generated method stub } | 24,314 |
public Operand propagate(Variable operand) { // TODO Auto-generated method stub return null; } | public Operand propagate(Variable operand) { // TODO Auto-generated method stub return operand; } | 24,315 |
public void removeTabAt(int index) { checkIndex(index, 0, tabs.size()); Component c = getComponentAt(index); super.remove(c); c.show(); tabs.remove(index); } | public void removeTabAt(int index) { checkIndex(index, 0, tabs.size()); Component c = getComponentAt(index); super.remove(index); c.show(); tabs.remove(index); } | 24,316 |
public void addActionListener(ActionListener l) { listener.addListener(l); } | public void addActionListener(ActionListener l) { editor.addActionListener(l); } | 24,317 |
public void removeActionListener(ActionListener l) { listener.removeListener(l); } | public void removeActionListener(ActionListener l) { editor.removeActionListener(l); } | 24,318 |
protected void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOw... | protected void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOw... | 24,319 |
protected void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOw... | protected void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOw... | 24,320 |
protected void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOw... | protected void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOw... | 24,321 |
protected void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOw... | protected void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOw... | 24,322 |
protected void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOw... | protected void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOw... | 24,323 |
protected void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOw... | protected void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOw... | 24,324 |
public static PropertyEditor findEditor(Class editedClass) { try { Class found = (Class)editors.get(editedClass); if(found != null) { return (PropertyEditor)found.newInstance(); } try { found = Class.forName(editedClass.getName()+"Editor"); registerEditor(editedClass,found); return (PropertyEditor)found.n... | public static PropertyEditor findEditor(Class editedClass) { try { Class found = (Class)editors.get(editedClass); if(found != null) { return (PropertyEditor)found.newInstance(); } try { found = Class.forName(editedClass.getName()+"Editor"); registerEditor(editedClass,found); return (PropertyEditor)found.n... | 24,325 |
public static PropertyEditor findEditor(Class editedClass) { try { Class found = (Class)editors.get(editedClass); if(found != null) { return (PropertyEditor)found.newInstance(); } try { found = Class.forName(editedClass.getName()+"Editor"); registerEditor(editedClass,found); return (PropertyEditor)found.n... | public static PropertyEditor findEditor(Class editedClass) { try { Class found = (Class)editors.get(editedClass); if(found != null) { return (PropertyEditor)found.newInstance(); } try { found = Class.forName(editedClass.getName()+"Editor"); registerEditor(editedClass,found); return (PropertyEditor)found.n... | 24,326 |
public static PropertyEditor findEditor(Class editedClass) { try { Class found = (Class)editors.get(editedClass); if(found != null) { return (PropertyEditor)found.newInstance(); } try { found = Class.forName(editedClass.getName()+"Editor"); registerEditor(editedClass,found); return (PropertyEditor)found.n... | public static PropertyEditor findEditor(Class editedClass) { try { Class found = (Class)editors.get(editedClass); if(found != null) { return (PropertyEditor)found.newInstance(); } try { found = Class.forName(editedClass.getName()+"Editor"); registerEditor(editedClass,found); return (PropertyEditor)found.n... | 24,327 |
public static PropertyEditor findEditor(Class editedClass) { try { Class found = (Class)editors.get(editedClass); if(found != null) { return (PropertyEditor)found.newInstance(); } try { found = Class.forName(editedClass.getName()+"Editor"); registerEditor(editedClass,found); return (PropertyEditor)found.n... | public static PropertyEditor findEditor(Class editedClass) { try { Class found = (Class)editors.get(editedClass); if(found != null) { return (PropertyEditor)found.newInstance(); } try { found = Class.forName(editedClass.getName()+"Editor"); registerEditor(editedClass,found); return (PropertyEditor)found.n... | 24,328 |
private void checkValidInput() { JFormattedTextField ftf = getFormattedTextField(); try { Object newval = stringToValue(ftf.getText()); } catch (ParseException ex) { if (!allowsInvalid) { // roll back the input if invalid edits are not... | private void checkValidInput() { JFormattedTextField ftf = getFormattedTextField(); try { Object newval = stringToValue(ftf.getText()); } catch (ParseException ex) { if (!allowsInvalid) { // roll back the input if invalid edits are not... | 24,329 |
public DynAny create_simple(TypeCode official, TypeCode type) { Streamable holder = holderFactory.createHolder(type); return new gnuDynAny(holder, official, type, this, orb); } | public DynAny create_simple(TypeCode official, TypeCode type) { Streamable holder = HolderLocator.createHolder(type); return new gnuDynAny(holder, official, type, this, orb); } | 24,330 |
public static void classCastFailed(Object object) { if (object == null) { throw new ClassCastException("Object is null"); } else if (false) { final Object[] tib = VmMagic.getTIB(object); if (tib == null) { throw new ClassCastException(object.getClass().g... | public static void classCastFailed(Object object) { if (object == null) { throw new ClassCastException("Object is null"); } else if (true) { final Object[] tib = VmMagic.getTIB(object); if (tib == null) { throw new ClassCastException(object.getClass().ge... | 24,331 |
private final void requestRegister(Register reg, Item it) { X86RegisterPool pool = eContext.getPool(); // check item doesn't already use register if (!it.uses(reg)) { if (!pool.isFree(reg)) { notImplemented(); //TODO: spill register; make sure th... | private final void requestRegister(Register reg, Item it) { X86RegisterPool pool = eContext.getPool(); // check item doesn't already use register if (!it.uses(reg)) { if (!pool.isFree(reg)) { //TODO: spill register; make sure that the stack item... | 24,332 |
public final void visit_areturn() { RefItem i = vstack.popRef(); requestRegister(EAX, i); i.loadTo(eContext, EAX); visit_return(); i.release(eContext); } | public final void visit_areturn() { RefItem i = vstack.popRef(); requestRegister(EAX, i); i.loadTo(eContext, EAX); visit_return(); } | 24,335 |
public final void visit_dastore() { //TODO: port to orp-style vstack.push(eContext); Item val = vstack.popItem(Item.DOUBLE); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); val.release(eContext); idx.release(eContext); ref.release(eContext); ... | public final void visit_dastore() { //TODO: port to orp-style vstack.push(eContext); Item val = vstack.popItem(Item.DOUBLE); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); val.release(eContext); idx.release(eContext); ref.release(eContext); ... | 24,336 |
public final void visit_dcmpg() { //TODO: port to orp-style vstack.push(eContext); visit_dfcmp(true, false); } | public final void visit_dcmpg() { //TODO: port to orp-style visit_dfcmp(true, false); } | 24,337 |
public final void visit_dcmpl() { //TODO: port to orp-style vstack.push(eContext); visit_dfcmp(false, false); } | public final void visit_dcmpl() { //TODO: port to orp-style visit_dfcmp(false, false); } | 24,338 |
private void visit_dfcmp(boolean gt, boolean isfloat) { //TODO: port to orp-style vstack.push(eContext); Item v1 = vstack.popItem(isfloat ? Item.FLOAT : Item.DOUBLE); Item v2 = vstack.popItem(isfloat ? Item.FLOAT : Item.DOUBLE); v1.release(eContext); v2.release(eContext); ... | private void visit_dfcmp(boolean gt, boolean isfloat) { //TODO: port to orp-style vstack.push(eContext); Item v1 = vstack.popItem(isfloat ? Item.FLOAT : Item.DOUBLE); Item v2 = vstack.popItem(isfloat ? Item.FLOAT : Item.DOUBLE); v1.release(eContext); v2.release(eContext); ... | 24,339 |
public final void visit_ireturn() { IntItem v = vstack.popInt(); requestRegister(EAX, v); v.loadTo(eContext, EAX); visit_return(); v.release(eContext); } | public final void visit_ireturn() { IntItem v = vstack.popInt(); requestRegister(EAX, v); v.loadTo(eContext, EAX); visit_return(); } | 24,341 |
public final void visit_iushr() { IntItem shift = vstack.popInt(); requestRegister(ECX, shift); IntItem value = vstack.popInt(); shift.loadToIf(eContext, ~Item.CONSTANT, ECX); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.CONSTAN... | public final void visit_iushr() { IntItem shift = vstack.popInt(); if (shift.getKind() != Item.CONSTANT) { requestRegister(ECX, shift); shift.loadTo(eContext, ECX); } IntItem value = vstack.popInt(); shift.loadToIf(eContext, ~Item.CONSTANT, ECX); value.load(eContext); Regis... | 24,342 |
public final void visit_iushr() { IntItem shift = vstack.popInt(); requestRegister(ECX, shift); IntItem value = vstack.popInt(); shift.loadToIf(eContext, ~Item.CONSTANT, ECX); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.CONSTAN... | public final void visit_iushr() { IntItem shift = vstack.popInt(); requestRegister(ECX, shift); IntItem value = vstack.popInt(); value.load(eContext); Register v = value.getRegister(); if (shift.getKind() == Item.CONSTANT) { int offset = shift.getValue();... | 24,343 |
public final void visit_lushr() { //TODO: port to orp-style vstack.push(eContext); Item v2 = vstack.popItem(Item.LONG); Item v1 = vstack.popItem(Item.LONG); v2.release(eContext); v1.release(eContext); vstack.pushItem(LongItem.createStack()); helper.writePOP(Re... | public final void visit_lushr() { //TODO: port to orp-style vstack.push(eContext); Item v2 = vstack.popItem(Item.LONG); Item v1 = vstack.popItem(Item.LONG); v2.release(eContext); v1.release(eContext); vstack.pushItem(LongItem.createStack()); helper.writePOP(Re... | 24,346 |
private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration enum; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources enum = bundle.getKeys(); while (enum.hasMoreElements()) { key = (String) enum.nextEl... | private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration e; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources enum = bundle.getKeys(); while (enum.hasMoreElements()) { key = (String) enum.nextEleme... | 24,348 |
private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration enum; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources enum = bundle.getKeys(); while (enum.hasMoreElements()) { key = (String) enum.nextEl... | private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration enum; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources enum = bundle.getKeys(); while (enum.hasMoreElements()) { key = (String) enum.nextEl... | 24,349 |
private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration enum; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources enum = bundle.getKeys(); while (enum.hasMoreElements()) { key = (String) enum.nextEl... | private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration enum; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources enum = bundle.getKeys(); while (enum.hasMoreElements()) { key = (String) e.nextEleme... | 24,350 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 24,352 |
public static AbstractColorChooserPanel[] getDefaultChooserPanels() { return null; // TODO } // getDefaultChooserPanels() | public static AbstractColorChooserPanel[] getDefaultChooserPanels() { return null; // TODO } // getDefaultChooserPanels() | 24,354 |
public static JComponent getPreviewPanel() { return null; // TODO } // getPreviewPanel() | public static JComponent getPreviewPanel() { return null; // TODO } // getPreviewPanel() | 24,355 |
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { // FIXME: We do not support vertical text painting because Java2D is needed // for this. if (progressBar.getOrientation() == JProgressBar.VERTICAL) return; // We want t... | protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { // FIXME: We do not support vertical text painting because Java2D is needed // for this. if (progressBar.getOrientation() == JProgressBar.VERTICAL) return; // We want t... | 24,356 |
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { // FIXME: We do not support vertical text painting because Java2D is needed // for this. if (progressBar.getOrientation() == JProgressBar.VERTICAL) return; // We want t... | protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { // FIXME: We do not support vertical text painting because Java2D is needed // for this. if (progressBar.getOrientation() == JProgressBar.VERTICAL) return; // We want t... | 24,357 |
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { // FIXME: We do not support vertical text painting because Java2D is needed // for this. if (progressBar.getOrientation() == JProgressBar.VERTICAL) return; // We want t... | protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { // FIXME: We do not support vertical text painting because Java2D is needed // for this. if (progressBar.getOrientation() == JProgressBar.VERTICAL) return; // We want t... | 24,359 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { // TODO: There is a more efficent solution, but // viewToModel doesn't work properly. Point p = t.modelToView(t.getCaret().getDot()).getLocation(); int c... | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { // TODO: There is a more efficent solution, but // viewToModel doesn't work properly. Point p = t.modelToView(t.getCaret().getDot()).getLocation(); int c... | 24,360 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { Point p = t.modelToView(t.getCaret().getDot()).getLocation(); int cur = t.getCaretPosition(); int y = p.y; int length = t.getDocument().getLength(); wh... | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { Point p = t.modelToView(t.getCaret().getDot()).getLocation(); int cur = t.getCaretPosition(); int y = p.y; int length = t.getDocument().getLength(); wh... | 24,361 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); t.moveCaretPosition(t.getDocument().getLength()); } | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { if (t != null) { Caret c = t.getCaret(); int x = c.getMagicCaretPosition().x; int pos = Utilities.getPositionAbove(t, t.getCaretPosition(), x); if (pos > -1) t.moveCaretPosition(pos); } } catch(B... | 24,362 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); t.moveCaretPosition(0); } | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { if (t != null) { Caret c = t.getCaret(); int x = c.getMagicCaretPosition().x; int pos = Utilities.getPositionBelow(t, t.getCaretPosition(), x); if (pos > -1) t.moveCaretPosition(pos); } } catch(... | 24,363 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { Point p = t.modelToView(t.getCaret().getDot()).getLocation(); int cur = t.getCaretPosition(); int y = p.y; int length = t.getDocument().getLength(); wh... | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { Point p = t.modelToView(t.getCaret().getDot()).getLocation(); int cur = t.getCaretPosition(); int y = p.y; int length = t.getDocument().getLength(); wh... | 24,364 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { try { int pos = t.getSelectionStart(); int len = t.getSelectionEnd() - pos; if (len > 0) ... | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { try { int pos = t.getSelectionStart(); int len = t.getSelectionEnd() - pos; if (len > 0) ... | 24,365 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { try { int pos = t.getSelectionStart(); int len = t.getSelectionEnd() - pos; if (len > 0) ... | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { try { int pos = t.getSelectionStart(); int len = t.getSelectionEnd() - pos; if (len > 0) ... | 24,366 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { try { int pos = t.getSelectionStart(); int len = t.getSelectionEnd() - pos; if (len > 0) ... | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { try { int pos = t.getSelectionStart(); int len = t.getSelectionEnd() - pos; if (len > 0) ... | 24,367 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { t.getCaret().setDot(Math.max(t.getCaret().getDot() - 1, t.getDocument().getStartPosition().getOffset())); } } | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { t.getCaret().setDot(Math.max(t.getCaret().getDot() - 1, t.getDocument().getStartPosition().getOffset())); } } | 24,368 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { t.getCaret().setDot(Math.min(t.getCaret().getDot() + 1, t.getDocument().getEndPosition().getOffset())); } } | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { t.getCaret().setDot(Math.min(t.getCaret().getDot() + 1, t.getDocument().getEndPosition().getOffset())); } } | 24,369 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { t.getCaret().moveDot(Math.max(t.getCaret().getDot() - 1, t.getDocument().getStartPosition().getOffset())); } } | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { t.getCaret().moveDot(Math.max(t.getCaret().getDot() - 1, t.getDocument().getStartPosition().getOffset())); } } | 24,370 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { t.getCaret().moveDot(Math.min(t.getCaret().getDot() + 1, t.getDocument().getEndPosition().getOffset())); } } | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { t.getCaret().moveDot(Math.min(t.getCaret().getDot() + 1, t.getDocument().getEndPosition().getOffset())); } } | 24,371 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { t.getCaret().moveDot(Math.min(t.getCaret().getDot() + 1, t.getDocument().getEndPosition().getOffset())); } } | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { t.getCaret().moveDot(Math.min(t.getCaret().getDot() + 1, t.getDocument().getEndPosition().getOffset())); } } | 24,372 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { // TODO: There is a more efficent solution, but // viewToModel doesn't work properly. Point p = t.modelToView(t.getCaret().getDot()).getLocation(); ... | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { int offs = t.getCaretPosition() - 1; try { // TODO: There is a more efficent solution, but // viewToModel doesn't work properly. Point p = t.mo... | 24,373 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { // TODO: There is a more efficent solution, but // viewToModel doesn't work properly. Point p = t.modelToView(t.getCaret().getDot()).getLocation(); ... | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { // TODO: There is a more efficent solution, but // viewToModel doesn't work properly. Point p = t.modelToView(t.getCaret().getDot()).getLocation(); ... | 24,374 |
private FSEntry getEntry(String path) { try { if(path == null) { return null; } if (File.separator.equals(path)) return new VirtualRoot(); FSEntry entry = entryCache.getEntry(path); if (entry != null) { return entry; } final FSDirectory paren... | private FSEntry getEntry(String path) { try { if(path == null) { return null; } if (File.separator.equals(path)) return new VirtualRoot(); FSEntry entry = entryCache.getEntry(path); if (entry != null) { return entry; } final FSDirectory paren... | 24,375 |
private FSEntry getEntry(String path) { try { if(path == null) { return null; } if (File.separator.equals(path)) return new VirtualRoot(); FSEntry entry = entryCache.getEntry(path); if (entry != null) { return entry; } final FSDirectory paren... | private FSEntry getEntry(String path) { try { if(path == null) { return null; } if (File.separator.equals(path)) return new VirtualRoot(); FSEntry entry = entryCache.getEntry(path); if (entry != null) { return entry; } final FSDirectory paren... | 24,376 |
private FSEntry getEntry(String path) { try { if(path == null) { return null; } if (File.separator.equals(path)) return new VirtualRoot(); FSEntry entry = entryCache.getEntry(path); if (entry != null) { return entry; } final FSDirectory paren... | private FSEntry getEntry(String path) { try { if(path == null) { return null; if (path.length() == 0) { return new VirtualRoot(); } FSEntry entry = entryCache.getEntry(path); if (entry != null) { return entry; } final FSDirectory parentEntry = getParentDirectoryEntry(p... | 24,377 |
private String getParentPath(String path) { if(path == null) { return null; } int idx = path.lastIndexOf(File.separatorChar); return (idx >= 0) ? path.substring(0, idx) : null; } | private String getParentPath(String path) { if(path == null) { return null; } int idx = path.lastIndexOf(File.separatorChar); return (idx >= 0) ? path.substring(0, idx) : null; } | 24,378 |
public static final SSLContext getInstance(String protocol) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(protocol, provs[i]); } catch (NoSuchAlgorithmException i... | public static final SSLContext getInstance(String protocol) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(protocol, provs[i]); } catch (NoSuchAlgorithmException i... | 24,379 |
public static final SSLContext getInstance(String protocol) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(protocol, provs[i]); } catch (NoSuchAlgorithmException i... | public static final SSLContext getInstance(String protocol) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(protocol, p[i]); } catch (NoSuchAlgorithmException ignor... | 24,380 |
public static final SSLContext getInstance(String protocol) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(protocol, provs[i]); } catch (NoSuchAlgorithmException i... | public static final SSLContext getInstance(String protocol) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(protocol, provs[i]); } catch (NoSuchAlgorithmException x... | 24,381 |
public static final SSLContext getInstance(String protocol) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(protocol, provs[i]); } catch (NoSuchAlgorithmException i... | public static final SSLContext getInstance(String protocol) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(protocol, provs[i]); if (lastException != null) throw lastExcep... | 24,382 |
private void sendPicture(ImageConsumer ic) { ic.setHints(ImageConsumer.TOPDOWNLEFTRIGHT); if (props != null) { ic.setProperties(props); } if (pixeli != null) { ic.setPixels(0, 0, width, height, cm, pixeli, offset, scansize); } else { ic.setPixels(0, 0, width, height, cm, pixelb, offset, scansize); } } | private void sendPicture(ImageConsumer ic) { ic.setHints(ImageConsumer.TOPDOWNLEFTRIGHT); if (props != null) { ic.setProperties(props); } if (pixeli != null) { ic.setPixels(0, 0, width, height, cm, pixeli, offset, scansize); } else { ic.setPixels(0, 0, width, height, cm, pixelb, offset, scansize); } } | 24,383 |
public void stateChanged(ChangeEvent e) { // System.err.println(this + ".stateChanged()"); calculatePreferredSize(); getThumbBounds(); scrollbar.repaint(); } | public void stateChanged(ChangeEvent e) { // System.err.println(this + ".stateChanged()"); calculatePreferredSize(); updateThumbRect(); scrollbar.repaint(); } | 24,384 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("o... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); updateThumbRect(); } else if (e.getPropertyName().equals("... | 24,385 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("o... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("o... | 24,386 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("o... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("o... | 24,387 |
public void mouseReleased(MouseEvent e) { scrollTimer.stop(); scrollTimer.setDelay(300); currentMouseX = e.getX(); currentMouseY = e.getY(); int value; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) value = valueForXPosition(currentMouseX); else ... | public void mouseReleased(MouseEvent e) { scrollTimer.stop(); scrollTimer.setDelay(300); currentMouseX = e.getX(); currentMouseY = e.getY(); int value; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) value = valueForXPosition(currentMouseX); else ... | 24,388 |
protected JButton createDecreaseButton(int orientation) { if (decrButton == null) decrButton = new BasicArrowButton(orientation); else ((BasicArrowButton) decrButton).setDirection(orientation); return decrButton; } | protected JButton createDecreaseButton(int orientation) { if (decrButton == null) decrButton = new BasicArrowButton(orientation); else ((BasicArrowButton) decrButton).setDirection(orientation); return decrButton; } | 24,389 |
protected JButton createIncreaseButton(int orientation) { if (incrButton == null) incrButton = new BasicArrowButton(orientation); else ((BasicArrowButton) incrButton).setDirection(orientation); return incrButton; } | protected JButton createIncreaseButton(int orientation) { if (incrButton == null) incrButton = new BasicArrowButton(orientation); else ((BasicArrowButton) incrButton).setDirection(orientation); return incrButton; } | 24,390 |
public Dimension getMaximumSize(JComponent c) { return getPreferredSize(c); } | public Dimension getMaximumSize(JComponent c) { return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); } | 24,391 |
protected Rectangle getThumbBounds() { int max = scrollbar.getMaximum(); int min = scrollbar.getMinimum(); int value = scrollbar.getValue(); int extent = scrollbar.getVisibleAmount(); // System.err.println(this + ".getThumbBounds()"); if (max == min) { thumbRect.x = trackRect.x; thumbRect.y = ... | protected Rectangle getThumbBounds() { int max = scrollbar.getMaximum(); int min = scrollbar.getMinimum(); int value = scrollbar.getValue(); int extent = scrollbar.getVisibleAmount(); // System.err.println(this + ".getThumbBounds()"); if (max == min) { thumbRect.x = trackRect.x; thumbRect.y = ... | 24,392 |
protected Rectangle getTrackBounds() { SwingUtilities.calculateInnerArea(scrollbar, trackRect); if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { trackRect.width -= incrButton.getPreferredSize().getWidth(); trackRect.width -= decrButton.getPreferredSize().getWidth(); trackRect.x += decrButton... | protected Rectangle getTrackBounds() { SwingUtilities.calculateInnerArea(scrollbar, trackRect); if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { trackRect.width -= incrButton.getPreferredSize().getWidth(); trackRect.width -= decrButton.getPreferredSize().getWidth(); trackRect.x += decrButton... | 24,393 |
protected void installComponents() { int orientation = scrollbar.getOrientation(); switch (orientation) { case (JScrollBar.HORIZONTAL): incrButton = createIncreaseButton(EAST); decrButton = createDecreaseButton(WEST); break; default: incrButton = createIncreaseButton(... | protected void installComponents() { int orientation = scrollbar.getOrientation(); switch (orientation) { case (JScrollBar.HORIZONTAL): incrButton = createIncreaseButton(EAST); decrButton = createDecreaseButton(WEST); break; default: incrButton = createIncreaseButton(... | 24,394 |
public void installUI(JComponent c) { super.installUI(c); if (c instanceof JScrollBar) { scrollbar = (JScrollBar) c; trackRect = new Rectangle(); thumbRect = new Rectangle(); scrollTimer = new Timer(300, null); installComponents(); installDefaults(); configureScrollBarColors(); installListeners(); calcula... | public void installUI(JComponent c) { super.installUI(c); if (c instanceof JScrollBar) { scrollbar = (JScrollBar) c; trackRect = new Rectangle(); thumbRect = new Rectangle(); scrollTimer = new Timer(300, null); installComponents(); configureScrollBarColors(); installListeners(); calculatePreferredSize();... | 24,396 |
protected void layoutHScrollbar(JScrollBar sb) { // All we have to do is layout the 2 buttons? Rectangle vr = new Rectangle(); SwingUtilities.calculateInnerArea(scrollbar, vr); // Update the rectangles. getTrackBounds(); getThumbBounds(); Dimension incrDims = incrButton.getPreferredSize(); Di... | protected void layoutHScrollbar(JScrollBar sb) { // All we have to do is layout the 2 buttons? Rectangle vr = new Rectangle(); SwingUtilities.calculateInnerArea(scrollbar, vr); // Update the rectangles. getTrackBounds(); getThumbBounds(); Dimension incrDims = incrButton.getPreferredSize(); Di... | 24,397 |
protected void layoutVScrollbar(JScrollBar sb) { Rectangle vr = new Rectangle(); SwingUtilities.calculateInnerArea(scrollbar, vr); // Update rectangles getTrackBounds(); getThumbBounds(); Dimension incrDims = incrButton.getPreferredSize(); Dimension decrDims = decrButton.getPreferredSize(); d... | protected void layoutVScrollbar(JScrollBar sb) { Rectangle vr = new Rectangle(); SwingUtilities.calculateInnerArea(scrollbar, vr); // Update rectangles getTrackBounds(); getThumbBounds(); Dimension incrDims = incrButton.getPreferredSize(); Dimension decrDims = decrButton.getPreferredSize(); d... | 24,399 |
protected void uninstallComponents() { scrollbar.remove(incrButton); scrollbar.remove(decrButton); incrButton = null; decrButton = null; } | protected void uninstallComponents() { scrollbar.remove(incrButton); scrollbar.remove(decrButton); incrButton = null; decrButton = null; } | 24,401 |
protected void uninstallDefaults() { scrollbar.setForeground(null); scrollbar.setBackground(null); scrollbar.setBorder(null); } | protected void uninstallDefaults() { scrollbar.setForeground(null); scrollbar.setBackground(null); LookAndFeel.uninstallBorder(scrollbar); incrButton = null; decrButton = null; } | 24,402 |
protected void uninstallListeners() { scrollTimer.removeActionListener(scrollListener); scrollbar.getModel().removeChangeListener(modelListener); scrollbar.removePropertyChangeListener(propertyChangeListener); decrButton.removeMouseListener(buttonListener); incrButton.removeMouseListener(buttonListene... | protected void uninstallListeners() { scrollTimer.removeActionListener(scrollListener); scrollbar.getModel().removeChangeListener(modelListener); scrollbar.removePropertyChangeListener(propertyChangeListener); decrButton.removeMouseListener(buttonListener); incrButton.removeMouseListener(buttonListene... | 24,403 |
public void uninstallUI(JComponent c) { uninstallDefaults(); uninstallListeners(); uninstallComponents(); scrollTimer = null; thumbRect = null; trackRect = null; trackColor = null; trackHighlightColor = null; thumbColor = null; thumbHighlightColor = null; thumbDarkShadowColor = null;... | public void uninstallUI(JComponent c) { uninstallDefaults(); uninstallComponents(); scrollTimer = null; thumbRect = null; trackRect = null; trackColor = null; trackHighlightColor = null; thumbColor = null; thumbHighlightColor = null; thumbDarkShadowColor = null; thumbLightShadowC... | 24,404 |
public synchronized boolean contains(Object value) { for (int i = buckets.length - 1; i >= 0; i--) { HashEntry<K, V> e = buckets[i]; while (e != null) { if (value.equals(e.value)) return true; e = e.next; } } // Must throw on null arg... | public synchronized boolean contains(Object value) { for (int i = buckets.length - 1; i >= 0; i--) { HashEntry<K, V> e = buckets[i]; while (e != null) { if (e.value.equals(value)) return true; e = e.next; } } // Must throw on null arg... | 24,406 |
public synchronized boolean contains(Object value) { for (int i = buckets.length - 1; i >= 0; i--) { HashEntry<K, V> e = buckets[i]; while (e != null) { if (value.equals(e.value)) return true; e = e.next; } } // Must throw on null arg... | public synchronized boolean contains(Object value) { for (int i = buckets.length - 1; i >= 0; i--) { HashEntry<K, V> e = buckets[i]; while (e != null) { if (value.equals(e.value)) return true; e = e.next; } } // Must throw on null arg... | 24,407 |
public Iterator<Map.Entry<K, V>> iterator() { return new HashIterator<Map.Entry<K, V>>(ENTRIES); } | public Iterator<Map.Entry<K, V>> iterator() { return new EntryIterator(); } | 24,408 |
HashEntry<K, V> getEntry(Object o) { if (! (o instanceof Map.Entry)) return null; K key = ((Map.Entry<K, V>) o).getKey(); if (key == null) return null; int idx = hash(key); HashEntry<K, V> e = buckets[idx]; while (e != null) { if (o.equals(e)) return e; e = e.n... | HashEntry<K, V> getEntry(Object o) { if (! (o instanceof Map.Entry)) return null; K key = ((Map.Entry<K, V>) o).getKey(); if (key == null) return null; int idx = hash(key); HashEntry<K, V> e = buckets[idx]; while (e != null) { if (e.equals(o)) return e; e = e.n... | 24,409 |
public Iterator<K> iterator() { return new HashIterator<K>(KEYS); } | public Iterator<K> iterator() { return new KeyIterator(); } | 24,410 |
protected void rehash() { HashEntry<K, V>[] oldBuckets = buckets; int newcapacity = (buckets.length * 2) + 1; threshold = (int) (newcapacity * loadFactor); buckets = (HashEntry<K, V>[]) new HashEntry[newcapacity]; for (int i = oldBuckets.length - 1; i >= 0; i--) { HashEntry<K, V> e = oldBu... | protected void rehash() { HashEntry<K, V>[] oldBuckets = buckets; int newcapacity = (buckets.length * 2) + 1; threshold = (int) (newcapacity * loadFactor); buckets = (HashEntry<K, V>[]) new HashEntry[newcapacity]; for (int i = oldBuckets.length - 1; i >= 0; i--) { HashEntry<K, V> e = oldBu... | 24,411 |
public Iterator<V> iterator() { return new HashIterator<V>(VALUES); } | public Iterator<V> iterator() { return new ValueIterator(); } | 24,412 |
private synchronized void writeObject(ObjectOutputStream s) throws IOException { // Write the threshold and loadFactor fields. s.defaultWriteObject(); s.writeInt(buckets.length); s.writeInt(size); // Since we are already synchronized, and entrySet().iterator() // would repeatedly re-lock/release... | private synchronized void writeObject(ObjectOutputStream s) throws IOException { // Write the threshold and loadFactor fields. s.defaultWriteObject(); s.writeInt(buckets.length); s.writeInt(size); // Since we are already synchronized, and entrySet().iterator() // would repeatedly re-lock/release... | 24,413 |
setMaximum(int maximum){} | setMaximum(int maximum){} | 24,414 |
setMinimum(int minimum){} | setMinimum(int minimum){} | 24,415 |
setVisibleAmount(int visibleAmount){} | setVisibleAmount(int visibleAmount){} | 24,416 |
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute( StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag... | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute( StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag... | 24,417 |
void setup() throws Exception { setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setTheAlias(_alias); log.finer("-delete handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" + alias); //$NON-NLS-1$ log.finer(" -storetype=" + storeType); //$NON-NLS-1$ l... | void setup() throws Exception { setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setTheAlias(_alias); log.finer("-delete handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" + alias); //$NON-NLS-1$ log.finer(" -storetype=" + storeType); //$NON-NLS-1$ l... | 24,420 |
public void clearSelection() { index = -1; fireStateChanged(); } | public void clearSelection() { index = -1; fireStateChanged(); } | 24,422 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.