bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
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);... | 38,803 |
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPrivateKeySpec) return decodeDSSPrivateKey((DSAPrivateKeySpec) keySpec); if (keySpec instanceof RSAPrivateCrtKeySpec) return decodeRSAPrivateKey((RSAPrivateCrtKeySpec) keySpec);... | boolean ok = false; boolean ok = false; protectedboolean ok = false; PrivateKeyboolean ok = false; engineGeneratePrivate(KeySpecboolean ok = false; keySpec)boolean ok = false; boolean ok = false; boolean ok = false; boolean ok = false; boolean ok = false; boolean ok = false; throwsboolean ok = false; InvalidKeySpecExce... | 38,804 |
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);... | 38,805 |
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPrivateKeySpec) return decodeDSSPrivateKey((DSAPrivateKeySpec) keySpec); if (keySpec instanceof RSAPrivateCrtKeySpec) return decodeRSAPrivateKey((RSAPrivateCrtKeySpec) keySpec);... | if (! ok) if (! ok) protectedif (! ok) PrivateKeyif (! ok) engineGeneratePrivate(KeySpecif (! ok) keySpec)if (! ok) if (! ok) if (! ok) if (! ok) if (! ok) if (! ok) throwsif (! ok) InvalidKeySpecExceptionif (! ok) if (! ok) {if (! ok) if (! ok) if (! ok) if (! ok) ifif (! ok) (keySpecif (! ok) instanceofif (! ok) DSAP... | 38,806 |
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);... | 38,807 |
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);... | 38,808 |
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... | 38,809 |
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... | boolean ok = false; boolean ok = false; protectedboolean ok = false; PublicKeyboolean ok = false; engineGeneratePublic(KeySpecboolean ok = false; keySpec)boolean ok = false; boolean ok = false; boolean ok = false; boolean ok = false; boolean ok = false; boolean ok = false; throwsboolean ok = false; InvalidKeySpecExcept... | 38,810 |
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... | 38,811 |
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... | if (! ok) if (! ok) protectedif (! ok) PublicKeyif (! ok) engineGeneratePublic(KeySpecif (! ok) keySpec)if (! ok) if (! ok) if (! ok) if (! ok) if (! ok) if (! ok) throwsif (! ok) InvalidKeySpecExceptionif (! ok) if (! ok) {if (! ok) if (! ok) if (! ok) if (! ok) ifif (! ok) (keySpecif (! ok) instanceofif (! ok) DSAPub... | 38,812 |
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... | 38,813 |
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... | 38,814 |
public void doPass2(BootableHashMap liveVariables) { // TODO Auto-generated method stub } | public void doPass2(BootableHashMap liveVariables) { // TODO Auto-generated method stub } | 38,815 |
public Operand propagate(Variable operand) { // TODO Auto-generated method stub return null; } | public Operand propagate(Variable operand) { // TODO Auto-generated method stub return null; } | 38,816 |
private void checkIndex(int index, int start, int end) { if (index < start || index >= end) throw new IndexOutOfBoundsException("Index < " + start + " || Index >= " + end); } | private void checkIndex(int index, int start, int end) { if (index < start || index >= end) throw new IndexOutOfBoundsException("Index < " + start + " || Index >= " + end); } | 38,817 |
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); } | 38,818 |
public void addActionListener(ActionListener l) { listener.addListener(l); } | public void addActionListener(ActionListener l) { editor.addActionListener(l); } | 38,819 |
public void removeActionListener(ActionListener l) { listener.removeListener(l); } | public void removeActionListener(ActionListener l) { editor.removeActionListener(l); } | 38,820 |
public final ByteOrder getByteOrder() { return ByteOrder.LITTLE_ENDIAN; } | public final ByteOrder getByteOrder() { return ByteOrder.LITTLE_ENDIAN; } | 38,821 |
public final NativeCodeCompiler[] getCompilers() { return compilers; } | public final NativeCodeCompiler[] getCompilers() { return compilers; } | 38,822 |
public final String getName() { return "x86"; } | public final String getName() { return "x86"; } | 38,823 |
public final int getReferenceSize() { return SLOT_SIZE; } | public final int getReferenceSize() { return SLOT_SIZE; } | 38,824 |
public final VmStackReader getStackReader() { return stackReader; } | public final VmStackReader getStackReader() { return stackReader; } | 38,825 |
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... | 38,826 |
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... | 38,827 |
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... | 38,828 |
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... | 38,829 |
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... | 38,830 |
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... | 38,831 |
public PropertyEditorManager() { } | public PropertyEditorManager() { } | 38,832 |
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... | 38,833 |
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... | 38,834 |
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... | 38,835 |
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... | 38,836 |
public static String[] getEditorSearchPath() { return editorSearchPath; } | public static String[] getEditorSearchPath() { return editorSearchPath; } | 38,837 |
public static void registerEditor(Class editedClass, Class editorClass) { editors.put(editedClass, editorClass); } | public static void registerEditor(Class editedClass, Class editorClass) { editors.put(editedClass, editorClass); } | 38,838 |
public static void setEditorSearchPath(String[] editorSearchPath) { synchronized(editorSearchPath) { PropertyEditorManager.editorSearchPath = editorSearchPath; } } | public static void setEditorSearchPath(String[] editorSearchPath) { synchronized(editorSearchPath) { PropertyEditorManager.editorSearchPath = editorSearchPath; } } | 38,839 |
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... | 38,840 |
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); } | 38,841 |
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities... | public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities... | 38,842 |
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... | 38,843 |
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 items... | 38,844 |
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(); } | 38,847 |
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); ... | 38,848 |
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); } | 38,849 |
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); } | 38,850 |
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); ... | 38,851 |
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(); } | 38,853 |
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); Reg... | 38,854 |
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(); ... | 38,855 |
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... | 38,858 |
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... | 38,860 |
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... | 38,861 |
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... | 38,862 |
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; ... | 38,864 |
private ColorChooserComponentFactory() { // TODO } // ColorChooserComponentFactory() | private ColorChooserComponentFactory() { // TODO } // ColorChooserComponentFactory() | 38,866 |
public static AbstractColorChooserPanel[] getDefaultChooserPanels() { return null; // TODO } // getDefaultChooserPanels() | public static AbstractColorChooserPanel[] getDefaultChooserPanels() { return null; // TODO } // getDefaultChooserPanels() | 38,867 |
public static JComponent getPreviewPanel() { return null; // TODO } // getPreviewPanel() | public static JComponent getPreviewPanel() { return null; // TODO } // getPreviewPanel() | 38,868 |
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... | 38,869 |
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... | protectedvoidpaintString(Graphicsg,intx,inty,intwidth,intheight,intamountFull,Insetsb){//FIXME:WedonotsupportverticaltextpaintingbecauseJava2Disneeded//forthis.if(progressBar.getOrientation()==JProgressBar.VERTICAL)return;//Wewanttoplaceintheexactcenterofthebar.Pointplacement=getStringPlacement(g,progressBar.getString(... | 38,870 |
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... | 38,871 |
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,if (progressBar.getOrientation() == JProgressBar.VERTICAL) { AffineTransform rotate = AffineTransform.getRotateInstance(Math.PI / 2); g.setFont(progressBar.getFont().deriveFont(rotate)); } if (progressBar.getOrientation() == JProgressBar.VERT... | 38,872 |
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... | 38,873 |
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... | 38,874 |
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... | 38,875 |
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... | 38,876 |
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... | 38,877 |
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(... | 38,878 |
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... | 38,879 |
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) ... | 38,880 |
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) ... | 38,881 |
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) ... | 38,882 |
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())); } } | 38,883 |
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())); } } | 38,884 |
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())); } } | 38,886 |
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())); } } | 38,887 |
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())); } } | 38,888 |
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... | 38,889 |
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(); ... | 38,890 |
public UDPDatagramSocketImpl(UDPProtocol protocol) { this.protocol = protocol; } | public UDPDatagramSocketImpl(UDPProtocol protocol) { this.protocol = protocol; } | 38,891 |
protected void doBind(int lport, InetAddress laddr) throws SocketException { //Syslog.debug("doBind(" + lport + "," + laddr + ")"); protocol.bind(this); } | protected void doBind(int lport, InetAddress laddr) throws SocketException { //Syslog.debug("doBind(" + lport + "," + laddr + ")"); protocol.bind(this); } | 38,892 |
protected void doClose() { protocol.unbind(this); } | protected void doClose() { protocol.unbind(this); } | 38,893 |
protected void onReceive(DatagramPacket p, SocketBuffer skbuf) throws IOException { final IPv4Header ipHdr = (IPv4Header) skbuf.getNetworkLayerHeader(); final UDPHeader udpHdr = (UDPHeader) skbuf.getTransportLayerHeader(); p.setData(skbuf.toByteArray(), 0, skbuf.getSize()); p.setAddress(ipHdr.getSou... | protected void onReceive(DatagramPacket p, SocketBuffer skbuf) throws IOException { final IPv4Header ipHdr = (IPv4Header) skbuf.getNetworkLayerHeader(); final UDPHeader udpHdr = (UDPHeader) skbuf.getTransportLayerHeader(); p.setData(skbuf.toByteArray(), 0, skbuf.getSize()); p.setAddress(ipHdr.getSou... | 38,894 |
protected void send(DatagramPacket p) throws IOException { //Syslog.debug("UDP-send: " + p); final IPv4Address dstAddress = new IPv4Address(p.getAddress()); final IPv4Header ipHdr; ipHdr = new IPv4Header(getTos(), getTimeToLive(), IPPROTO_UDP, dstAddress, p.getLength() + UDP_HLEN); if (!getLocalAddres... | protected void send(DatagramPacket p) throws IOException { //Syslog.debug("UDP-send: " + p); final IPv4Address dstAddress = new IPv4Address(p.getAddress()); final IPv4Header ipHdr; ipHdr = new IPv4Header(getTos(), getTimeToLive(), IPPROTO_UDP, dstAddress, p.getLength() + UDP_HLEN); if (!getLocalAddres... | 38,895 |
protected void send(DatagramPacket p) throws IOException { //Syslog.debug("UDP-send: " + p); final IPv4Address dstAddress = new IPv4Address(p.getAddress()); final IPv4Header ipHdr; ipHdr = new IPv4Header(getTos(), getTimeToLive(), IPPROTO_UDP, dstAddress, p.getLength() + UDP_HLEN); if (!getLocalAddres... | protected void send(DatagramPacket p) throws IOException { //Syslog.debug("UDP-send: " + p); final IPv4Address dstAddress = new IPv4Address(p.getAddress()); final IPv4Header ipHdr; ipHdr = new IPv4Header(getTos(), getTimeToLive(), IPPROTO_UDP, dstAddress, p.getLength() + UDP_HLEN); if (!getLocalAddres... | 38,896 |
protected void send(DatagramPacket p) throws IOException { //Syslog.debug("UDP-send: " + p); final IPv4Address dstAddress = new IPv4Address(p.getAddress()); final IPv4Header ipHdr; ipHdr = new IPv4Header(getTos(), getTimeToLive(), IPPROTO_UDP, dstAddress, p.getLength() + UDP_HLEN); if (!getLocalAddres... | protected void send(DatagramPacket p) throws IOException { //Syslog.debug("UDP-send: " + p); final IPv4Address dstAddress = new IPv4Address(p.getAddress()); final IPv4Header ipHdr; ipHdr = new IPv4Header(getTos(), getTimeToLive(), IPPROTO_UDP, dstAddress, p.getLength() + UDP_HLEN); if (!getLocalAddres... | 38,897 |
public void setLocalPort(int localPort) { this.localPort = localPort; } | public void setLocalPort(int localPort) { this.localPort = localPort; } | 38,898 |
public RootsIterator(Iterator<String> fileSystemsRoots) { this.fileSystemsRoots = fileSystemsRoots; } | public RootsIterator(Iterator<String> fileSystemsRoots) { this.fileSystemsRoots = fileSystemsRoots; } | 38,900 |
public boolean hasNext() { return fileSystemsRoots.hasNext(); } | public boolean hasNext() { return fileSystemsRoots.hasNext(); } | 38,901 |
public FSEntry next() { final String fs = fileSystemsRoots.next(); return new virtualFSEntry(fs); } | public FSEntry next() { final String fs = fileSystemsRoots.next(); return new virtualFSEntry(fs); } | 38,902 |
public FSAccessRights getAccessRights() { return null; } | public FSAccessRights getAccessRights() { return null; } | 38,903 |
public FSDirectory getDirectory() { return new VirtualRootDirectory(); } | public FSDirectory getDirectory() { return new VirtualRootDirectory(); } | 38,904 |
public FSFile getFile() throws IOException { throw new IOException("This is not a file"); } | public FSFile getFile() throws IOException { throw new IOException("This is not a file"); } | 38,905 |
public FileSystem getFileSystem() { return null; } | public FileSystem getFileSystem() { return null; } | 38,906 |
public long getLastModified() { return 0; } | public long getLastModified() { return 0; } | 38,907 |
public String getName() { return File.separator; } | public String getName() { return File.separator; } | 38,908 |
public FSDirectory getParent() { return null; } | public FSDirectory getParent() { return null; } | 38,909 |
public boolean isDirectory() { return true; } | public boolean isDirectory() { return true; } | 38,910 |
public boolean isDirty() throws IOException { return false; } | public boolean isDirty() throws IOException { return false; } | 38,911 |
public boolean isFile() { return false; } | public boolean isFile() { return false; } | 38,912 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.