bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
protected URL createURL(final FileName name) throws MalformedURLException { return new URL(getName().getURI()); } | protected URL createURL(final FileName name) throws MalformedURLException, FileSystemException, URIException { return new URL(getName().getURI()); } | 1,101,546 |
public void testQuery() { JaninoConnection c = new JaninoConnection(); final int[] r = new int[] {0}; Resource queryContent = JaninoConnectionTest.asResource( "for (int i=0;i<1000000;i++) {" + "set(\"p\", \"value\"+i );" + "next();" + ... | public void testQuery() { JaninoConnection c = new JaninoConnection(MockConnectionParameters.NULL); final int[] r = new int[] {0}; Resource queryContent = JaninoConnectionTest.asResource( "for (int i=0;i<1000000;i++) {" + "set(\"p\", \"value\"+i );" + ... | 1,101,549 |
public void testScript() { JaninoConnection c = new JaninoConnection(); ParametersCallback pc = new ParametersCallback() { public final Object getParameter(final String name) { return name; } }; Resource scriptContent = JaninoConnectionTest.asResource... | public void testScript() { JaninoConnection c = new JaninoConnection(MockConnectionParameters.NULL); ParametersCallback pc = new ParametersCallback() { public final Object getParameter(final String name) { return name; } }; Resource scriptContent = Ja... | 1,101,550 |
protected String[] getBundleLocations() { return new String[]{ localMavenArtifact("org.springframework.osgi", "aopalliance.osgi", "1.0-SNAPSHOT"), localMavenArtifact("org.springframework.osgi", "commons-collections.osgi", "3.2-SNAPSHOT"), localMavenArtifact("org.knopflerfish.... | protected String[] getBundleLocations() { return new String[]{ localMavenArtifact("org.springframework.osgi", "aopalliance.osgi", "1.0-SNAPSHOT"), localMavenArtifact("org.springframework.osgi", "commons-collections.osgi", "3.2-SNAPSHOT"), localMavenArtifact("org.knopflerfish.... | 1,101,552 |
public TreeModel getDefaultConceptTreeModel(Set pathSet, DODDLEProject project) { Concept rootConcept = new VerbConcept(ConceptTreeMaker.DODDLE_CLASS_ROOT_ID, "名詞的概念"); rootConcept.addEnWord("Root Class"); rootConcept.setPrefix(DODDLE.BASE_PREFIX); ConceptTreeNode rootNode = new ConceptT... | public TreeModel getDefaultConceptTreeModel(Set pathSet, DODDLEProject project) { Concept rootConcept = new VerbConcept(ConceptTreeMaker.DODDLE_CLASS_ROOT_ID, "名詞的概念"); rootConcept.addEnWord("Root Class"); rootConcept.setPrefix(DODDLE.BASE_PREFIX); ConceptTreeNode rootNode = new ConceptT... | 1,101,553 |
public TreeModel getTrimmedTreeModel(Set pathSet, DODDLEProject project) { TreeModel treeModel = getDefaultConceptTreeModel(pathSet, project); beforeTrimmingConceptNum = Utils.getAllConcept(treeModel).size(); ConceptTreeNode rootNode = (ConceptTreeNode) treeModel.getRoot(); trimmedConcep... | public TreeModel getTrimmedTreeModel(Set pathSet, DODDLEProject project) { TreeModel treeModel = getDefaultConceptTreeModel(pathSet, project); beforeTrimmingConceptNum = Utils.getAllConcept(treeModel).size(); ConceptTreeNode rootNode = (ConceptTreeNode) treeModel.getRoot(); trimmedConcep... | 1,101,554 |
public TreeModel getTrimmedTreeModel(Set pathSet, DODDLEProject project) { TreeModel treeModel = getDefaultConceptTreeModel(pathSet, project); beforeTrimmingConceptNum = Utils.getAllConcept(treeModel).size(); ConceptTreeNode rootNode = (ConceptTreeNode) treeModel.getRoot(); trimmedConcep... | public TreeModel getTrimmedTreeModel(Set pathSet, DODDLEProject project) { TreeModel treeModel = getDefaultConceptTreeModel(pathSet, project); beforeTrimmingConceptNum = Utils.getAllConcept(treeModel).size(); ConceptTreeNode rootNode = (ConceptTreeNode) treeModel.getRoot(); trimmedConcep... | 1,101,555 |
public Object getObject() throws Exception { return contextFactory.createApplicationContextWithBundleContext(parent, context, new String[]{configLocation.getURL().toString()}, ContextLoaderListener.plugins(), false); } | public Object getObject() throws Exception { return contextFactory.createApplicationContextWithBundleContext(context, new String[]{configLocation.getURL().toString()}, ContextLoaderListener.plugins(), false); } | 1,101,556 |
public ConceptTreePanel(String title, UndefinedWordListPanel panel, DODDLEProject p) { project = p; undefinedWordListPanel = panel; abstractLabelSet = new HashSet<String>(); idConceptMap = new HashMap<String, Concept>(); conceptSameConceptTreeNodeMap = new HashMap<Concept, Set<Con... | public ConceptTreePanel(String title, UndefinedWordListPanel panel, DODDLEProject p) { project = p; undefinedWordListPanel = panel; abstractLabelSet = new HashSet<String>(); idConceptMap = new HashMap<String, Concept>(); conceptSameConceptTreeNodeMap = new HashMap<Concept, Set<Con... | 1,101,557 |
public void doDisAmbiguation() { new Thread() { public void run() { setWordEvalConceptSetMap(getInputWordModelSet()); } }.start(); } | public void doDisAmbiguation() { new Thread() { public void run() { setWordEvalConceptSetMap(getInputWordModelSet()); } }.start(); } | 1,101,558 |
public void doDisAmbiguation() { new Thread() { public void run() { setWordEvalConceptSetMap(getInputWordModelSet()); } }.start(); } | public void doDisAmbiguation() { new Thread() { public void run() { setWordEvalConceptSetMap(getInputWordModelSet()); } }; DODDLE.STATUS_BAR.setSwingWorker(worker); worker.execute(); } | 1,101,559 |
private void removeFromKlass(String klass) { int n = ((Integer)classMap.get(klass)).intValue(); classMap.put(klass, new Integer(n--)); } | private void removeFromKlass(String klass) { int n = ((Integer)classMap.get(klass)).intValue(); classMap.put(klass, new Integer(n--)); } | 1,101,560 |
private static Set<String> getTableColumns(Connection con, ConnectionParameters params, final String tableName) { try { return new HashSet<String>(JdbcUtils.getColumn( con.getMetaData() .getColumns(params.getCatalog(), params.getSchema(), tableName, nu... | private static Set<String> getTableColumns(Connection con, ConnectionParameters params, final String tableName) { try { return new HashSet<String>(getColumn( con.getMetaData() .getColumns(params.getCatalog(), params.getSchema(), tableName, null), ... | 1,101,561 |
private static List<String> getTables(Connection con, ConnectionParameters params) { try { return JdbcUtils.getColumn(con.getMetaData() .getTables(con.getCatalog(), params.getSchema(), null, new String[]{"TABLE"}), 3); } catch (SQLException e) { ... | private static List<String> getTables(Connection con, ConnectionParameters params) { try { return getColumn(con.getMetaData() .getTables(con.getCatalog(), params.getSchema(), null, new String[]{"TABLE"}), 3); } catch (SQLException e) { throw ... | 1,101,562 |
public void intersectPrimitive(Ray r, Instance parent, int primID, IntersectionState state) { // intersect in local space float rd2x = r.dx * r.dx; float rd2y = r.dy * r.dy; float rd2z = r.dz * r.dz; float ro2x = r.ox * r.ox; float ro2y = r.oy * r.oy; float ro2z = r.... | public void intersectPrimitive(Ray r, int primID, IntersectionState state) { // intersect in local space float rd2x = r.dx * r.dx; float rd2y = r.dy * r.dy; float rd2z = r.dz * r.dz; float ro2x = r.ox * r.ox; float ro2y = r.oy * r.oy; float ro2z = r.oz * r.oz; ... | 1,101,563 |
public void intersectPrimitive(Ray r, Instance parent, int primID, IntersectionState state) { // intersect in local space float rd2x = r.dx * r.dx; float rd2y = r.dy * r.dy; float rd2z = r.dz * r.dz; float ro2x = r.ox * r.ox; float ro2y = r.oy * r.oy; float ro2z = r.... | public void intersectPrimitive(Ray r, Instance parent, int primID, IntersectionState state) { // intersect in local space float rd2x = r.dx * r.dx; float rd2y = r.dy * r.dy; float rd2z = r.dz * r.dz; float ro2x = r.ox * r.ox; float ro2y = r.oy * r.oy; float ro2z = r.... | 1,101,564 |
public void prepareShadingState(Instance parent, int primID, ShadingState state) { state.init(); state.getRay().getPoint(state.getPoint()); // get local point Point3 p = parent.transformWorldToObject(state.getPoint()); // compute local normal float deriv = p.x * p.x + p.y *... | public void prepareShadingState(ShadingState state) { state.init(); state.getRay().getPoint(state.getPoint()); // get local point Point3 p = parent.transformWorldToObject(state.getPoint()); // compute local normal float deriv = p.x * p.x + p.y * p.y + p.z * p.z - ri2 - ro2;... | 1,101,565 |
public static void main(final String args[]) { Handler h = new ConsoleHandler(); h.setFormatter(STD_FORMATTER); h.setLevel(Level.INFO); boolean failed = false; List<File> files = new ArrayList<File>(); ConsoleProgressIndicator indicator = new ConsoleProgressIndicator("Scrip... | public static void main(final String args[]) { Handler h = new ConsoleHandler(); h.setFormatter(STD_FORMATTER); h.setLevel(Level.INFO); boolean failed = false; List<File> files = new ArrayList<File>(); ConsoleProgressIndicator indicator = new ConsoleProgressIndicator("Execu... | 1,101,567 |
public SftpOutputStream( final File file ) throws IOException { super( new FileOutputStream( file ) ); this.file = file; } | public SftpOutputStream( final ChannelSftp channel ) { super( new FileOutputStream( file ) ); this.file = file; } | 1,101,568 |
public SftpOutputStream( final File file ) throws IOException { super( new FileOutputStream( file ) ); this.file = file; } | public SftpOutputStream( final File file ) throws IOException { super( new FileOutputStream( file ) ); this.file = file; } | 1,101,569 |
protected void onClose() throws IOException { // TODO - need to delete the file putContent( file ); } | protected void onClose() throws IOException { // TODO - need to delete the file try { final ByteArrayOutputStream outstr = (ByteArrayOutputStream)out; channel.put( new ByteArrayInputStream( outstr.toByteArray() ), getName().getPath() ); } catch ( final SftpException e ) { throw new ... | 1,101,570 |
public SftpFileObject( final FileName name, final SftpFileSystem fileSystem, final TemporaryFileStore tempFileStore ) { super( name, fileSystem ); this.fileSystem = fileSystem; this.tempFileStore = tempFileStore; } | public SftpFileObject( final FileName name, final SftpFileSystem fileSystem, final TemporaryFileStore tempFileStore ) { super( name, fileSystem ); this.fileSystem = fileSystem; this.tempFileStore = tempFileStore; } | 1,101,571 |
public SftpFileObject( final FileName name, final SftpFileSystem fileSystem, final TemporaryFileStore tempFileStore ) { super( name, fileSystem ); this.fileSystem = fileSystem; this.tempFileStore = tempFileStore; } | public SftpFileObject( final FileName name, final SftpFileSystem fileSystem, final TemporaryFileStore tempFileStore ) { super( name, fileSystem ); this.fileSystem = fileSystem; } | 1,101,572 |
protected void doCreateFolder() throws Exception { final ChannelSftp channel = fileSystem.getChannel(); try { final boolean ok = channel.mkdir( getName().getPath() ); if ( !ok ) { throw new FileSystemException( "vfs.provider.sftp/create-folder.... | protected void doCreateFolder() throws Exception { final ChannelSftp channel = fileSystem.getChannel(); try { final boolean ok = channel.mkdir( getName().getPath() ); if ( !ok ) { throw new FileSystemException( "vfs.provider.sftp/create-folder.... | 1,101,573 |
protected void doDelete() throws Exception { final ChannelSftp channel = fileSystem.getChannel(); try { final boolean ok; if ( getType() == FileType.FILE ) { ok = channel.rm( getName().getPath() ); } else { ... | protected void doDelete() throws Exception { final ChannelSftp channel = fileSystem.getChannel(); try { if ( getType() == FileType.FILE ) { ok = channel.rm( getName().getPath() ); } else { ok = c... | 1,101,574 |
protected void doDelete() throws Exception { final ChannelSftp channel = fileSystem.getChannel(); try { final boolean ok; if ( getType() == FileType.FILE ) { ok = channel.rm( getName().getPath() ); } else { ... | protected void doDelete() throws Exception { final ChannelSftp channel = fileSystem.getChannel(); try { final boolean ok; if ( getType() == FileType.FILE ) { channel.rm( getName().getPath() ); } else { ... | 1,101,575 |
protected void doDelete() throws Exception { final ChannelSftp channel = fileSystem.getChannel(); try { final boolean ok; if ( getType() == FileType.FILE ) { ok = channel.rm( getName().getPath() ); } else { ... | protected void doDelete() throws Exception { final ChannelSftp channel = fileSystem.getChannel(); try { final boolean ok; if ( getType() == FileType.FILE ) { ok = channel.rm( getName().getPath() ); } else { ... | 1,101,576 |
protected InputStream doGetInputStream() throws Exception { final ChannelSftp channel = fileSystem.getChannel(); try { // TODO - this is a dud, need to add stream based methods to Jsch // TODO - reuse the cached file // TODO - delete the file on end-of-stream... | protected InputStream doGetInputStream() throws Exception { final ChannelSftp channel = fileSystem.getChannel(); try { // TODO - this is a dud, need to add stream based methods to Jsch // TODO - reuse the cached file // TODO - delete the file on end-of-stream... | 1,101,577 |
protected OutputStream doGetOutputStream() throws Exception { // TODO - this is a dud, need to add stream based methods to Jsch // TODO - reuse the same file for all content operations final File file = tempFileStore.allocateFile( getName().getBaseName() ); return new SftpOutputStream... | protected OutputStream doGetOutputStream() throws Exception { // TODO - this is a dud, need to add stream based methods to Jsch // TODO - reuse the same file for all content operations final File file = tempFileStore.allocateFile( getName().getBaseName() ); return new SftpOutputStream... | 1,101,578 |
protected void doAttach() throws Exception { if (url == null) { url = new URL(getName().getURI()); } } | protected void doAttach() throws Exception { if (url == null) { url = createURL(getName()); } } | 1,101,580 |
public void testClientClassloader() throws Exception { this.serviceFactoryBean.setBundleContext(this.bundleContext); this.serviceFactoryBean.setInterface(MyServiceInterface.class); this.serviceFactoryBean.setBeanName("myBean"); this.serviceFactoryBean.setContextClassloader("client"); String fullFilter = "(&(obj... | public void testClientClassloader() throws Exception { this.serviceFactoryBean.setBundleContext(this.bundleContext); this.serviceFactoryBean.setInterface(MyServiceInterface.class); this.serviceFactoryBean.setBeanName("myBean"); this.serviceFactoryBean.setContextClassloader("client"); String fullFilter = "(&(obj... | 1,101,581 |
public void testClientClassloader() throws Exception { this.serviceFactoryBean.setBundleContext(this.bundleContext); this.serviceFactoryBean.setInterface(MyServiceInterface.class); this.serviceFactoryBean.setBeanName("myBean"); this.serviceFactoryBean.setContextClassloader("client"); String fullFilter = "(&(obj... | public void testClientClassloader() throws Exception { this.serviceFactoryBean.setBundleContext(this.bundleContext); this.serviceFactoryBean.setInterface(MyServiceInterface.class); this.serviceFactoryBean.setBeanName("myBean"); this.serviceFactoryBean.setContextClassloader("client"); String fullFilter = "(&(obj... | 1,101,582 |
public void testGetObjectWithFilterOnly() throws Exception { // OsgiServiceUtils are tested independently in error cases, here we // test the // correct behaviour of the ProxyFactoryBean when OsgiServiceUtils // succesfully // finds the service. this.serviceFactoryBean.setBundleContext(this.bundleContext); this... | public void testGetObjectWithFilterOnly() throws Exception { // OsgiServiceUtils are tested independently in error cases, here we // test the // correct behaviour of the ProxyFactoryBean when OsgiServiceUtils // succesfully // finds the service. this.serviceFactoryBean.setBundleContext(this.bundleContext); this... | 1,101,583 |
public void testGetObjectWithFilterOnly() throws Exception { // OsgiServiceUtils are tested independently in error cases, here we // test the // correct behaviour of the ProxyFactoryBean when OsgiServiceUtils // succesfully // finds the service. this.serviceFactoryBean.setBundleContext(this.bundleContext); this... | public void testGetObjectWithFilterOnly() throws Exception { // OsgiServiceUtils are tested independently in error cases, here we // test the // correct behaviour of the ProxyFactoryBean when OsgiServiceUtils // succesfully // finds the service. this.serviceFactoryBean.setBundleContext(this.bundleContext); this... | 1,101,584 |
public void testServerClassloader() throws Exception { this.serviceFactoryBean.setBundleContext(this.bundleContext); this.serviceFactoryBean.setInterface(MyServiceInterface.class); this.serviceFactoryBean.setBeanName("myBean"); this.serviceFactoryBean.setContextClassloader("service-provider"); String fullFilter ... | public void testServerClassloader() throws Exception { this.serviceFactoryBean.setBundleContext(this.bundleContext); this.serviceFactoryBean.setInterface(MyServiceInterface.class); this.serviceFactoryBean.setBeanName("myBean"); this.serviceFactoryBean.setContextClassloader("service-provider"); String fullFilter ... | 1,101,585 |
public void testServerClassloader() throws Exception { this.serviceFactoryBean.setBundleContext(this.bundleContext); this.serviceFactoryBean.setInterface(MyServiceInterface.class); this.serviceFactoryBean.setBeanName("myBean"); this.serviceFactoryBean.setContextClassloader("service-provider"); String fullFilter ... | public void testServerClassloader() throws Exception { this.serviceFactoryBean.setBundleContext(this.bundleContext); this.serviceFactoryBean.setInterface(MyServiceInterface.class); this.serviceFactoryBean.setBeanName("myBean"); this.serviceFactoryBean.setContextClassloader("service-provider"); String fullFilter ... | 1,101,586 |
public Object getParameter(final String name) { if (StringUtils.isDecimalInt(name)) { try { int ind = Integer.parseInt(name); if (ind >= 0 && ind <= result.groupCount()) { return result.group(ind); } } catch (NumberFormatEx... | public Object getParameter(final String name) { String str = name; if (str != null && str.startsWith(COLUMN_PREFIX)) { str = name.substring(COLUMN_PREFIX.length()); } if (StringUtils.isDecimalInt(str)) { try { int ind = Integer.parseInt(name); if (ind >= 0 && ind <= r... | 1,101,587 |
public Object getParameter(final String name) { if (StringUtils.isDecimalInt(name)) { try { int ind = Integer.parseInt(name); if (ind >= 0 && ind <= result.groupCount()) { return result.group(ind); } } catch (NumberFormatEx... | public Object getParameter(final String name) { if (StringUtils.isDecimalInt(name)) { try { int ind = Integer.parseInt(str); if (ind >= 0 && ind <= result.groupCount()) { return result.group(ind); } } catch (NumberFormatExc... | 1,101,588 |
public static void main(final String args[]) { boolean failed = false; List<File> files = new ArrayList<File>(); ConsoleProgressIndicator indicator = null; for (int i = 0; i < args.length; i++) { if (args[i].startsWith("-h")) { printUsage(); retur... | public static void main(final String args[]) { boolean failed = false; List<File> files = new ArrayList<File>(); ConsoleProgressIndicator indicator = null; for (int i = 0; i < args.length; i++) { if (args[i].startsWith("-h")) { printUsage(); retur... | 1,101,589 |
private static void printUsage() { System.out.println("Usage java " + ScriptsRunner.class.getName() + " [-options] [<file 1> ... <file N>]"); System.out.println("where options include:"); System.out.println(" -sp show execution progress"); System.out.println(" -h displ... | private static void printUsage() { System.out.println("Usage java " + ScriptsRunner.class.getName() + " [-options] [<file 1> ... <file N>]"); System.out.println("where options include:"); System.out.println(" -progress show execution progress"); System.out.println(" -h... | 1,101,590 |
void resolve(BeanFactory beanFactory, boolean isFactory) { bean = beanFactory.getBean(reference); if (isFactory) { try { bean.getClass().getMethod(updateMethod, new Class[]{String.class, Map.class}); } catch (NoSuchMethodException e) { throw (IllegalStateException)new IllegalArgumentException("In... | void resolve(BeanFactory beanFactory, boolean isFactory) { bean = beanFactory.getBean(reference); if (isFactory) { try { bean.getClass().getMethod(updateMethod, new Class[]{String.class, Map.class}); } catch (NoSuchMethodException e) { throw (IllegalStateException)new IllegalArgumentException("In... | 1,101,591 |
void resolve(BeanFactory beanFactory, boolean isFactory) { bean = beanFactory.getBean(reference); if (isFactory) { try { bean.getClass().getMethod(updateMethod, new Class[]{String.class, Map.class}); } catch (NoSuchMethodException e) { throw (IllegalStateException)new IllegalArgumentException("In... | void resolve(BeanFactory beanFactory, boolean isFactory) { bean = beanFactory.getBean(reference); if (isFactory) { try { bean.getClass().getMethod(updateMethod, new Class[]{String.class, Map.class}); } catch (NoSuchMethodException e) { throw (IllegalStateException)new IllegalArgumentException("In... | 1,101,592 |
void resolve(BeanFactory beanFactory, boolean isFactory) { bean = beanFactory.getBean(reference); if (isFactory) { try { bean.getClass().getMethod(updateMethod, new Class[]{String.class, Map.class}); } catch (NoSuchMethodException e) { throw (IllegalStateException)new IllegalArgumentException("In... | void resolve(BeanFactory beanFactory, boolean isFactory) { bean = beanFactory.getBean(reference); if (isFactory) { try { bean.getClass().getMethod(updateMethod, new Class[]{String.class, Map.class}); } catch (NoSuchMethodException e) { throw (IllegalStateException)new IllegalArgumentException("In... | 1,101,593 |
public FileObject createFileSystem( final String scheme, final FileObject file ) throws FileSystemException { // Can't create a layered file system final String message = REZ.getString( "not-layered-fs.error", scheme ); throw new FileSystemException( message ); } | public FileObject createFileSystem( final String scheme, final FileObject file ) throws FileSystemException { // Can't create a layered file system final String message = REZ.getString( "not-layered-fs.error", scheme ); throw new FileSystemException( message ); } | 1,101,594 |
public FileObject findFile( final FileObject baseFile, final String uri ) throws FileSystemException { // Parse the URI ParsedUri parsedUri; try { parsedUri = parseUri( baseFile, uri ); } catch ( FileSystemException exc ) ... | public FileObject findFile( final FileObject baseFile, final String uri ) throws FileSystemException { // Parse the URI ParsedUri parsedUri; try { parsedUri = parseUri( baseFile, uri ); } catch ( FileSystemException exc ) ... | 1,101,595 |
public void testJarCreation() throws Exception { final Manifest mf = new Manifest(); Map entries = mf.getEntries(); Attributes attrs = new Attributes(); attrs.putValue("rocco-ventrella", "winelight"); entries.put("test", attrs); String location = OnTheFlyBundleCreatorTestsTest.class.getName().replace('.', '/') +... | public void testJarCreation() throws Exception { final Manifest mf = new Manifest(); Map entries = mf.getEntries(); Attributes attrs = new Attributes(); attrs.putValue("rocco-ventrella", "winelight"); entries.put("test", attrs); String location = OnTheFlyBundleCreatorTestsTest.class.getName().replace('.', '/') +... | 1,101,596 |
public FtpFileSystem( final FileName rootName, final String hostname, final String username, final String password ) throws FileSystemException { super( rootName, null ); try { client = new FTPClient... | public FtpFileSystem( final FileName rootName, final String hostname, final String username, final String password ) throws FileSystemException { super( rootName, null ); try { client = new FTPClient... | 1,101,597 |
public FtpFileSystem( final FileName rootName, final String hostname, final String username, final String password ) throws FileSystemException { super( rootName, null ); try { client = new FTPClient... | public FtpFileSystem( final FileName rootName, final String hostname, final String username, final String password ) throws FileSystemException { super( rootName, null ); try { client = new FTPClient... | 1,101,598 |
public FtpFileSystem( final FileName rootName, final String hostname, final String username, final String password ) throws FileSystemException { super( rootName, null ); try { client = new FTPClient... | public FtpFileSystem( final FileName rootName, final String hostname, final String username, final String password ) throws FileSystemException { super( rootName, null ); try { client = new FTPClient... | 1,101,599 |
public FtpFileSystem( final FileName rootName, final String hostname, final String username, final String password ) throws FileSystemException { super( rootName, null ); try { client = new FTPClient... | public FtpFileSystem( final FileName rootName, final String hostname, final String username, final String password ) throws FileSystemException { super( rootName, null ); try { client = new FTPClient... | 1,101,600 |
private void closeConnection() { try { // Clean up if ( client.isConnected() ) { client.disconnect(); } } catch ( final IOException e ) { final String message = REZ.getString( "close-connection.error" ); ... | private void closeConnection() { try { // Clean up if ( client.isConnected() ) { client.disconnect(); } } catch ( final IOException e ) { final String message = REZ.getString( "close-connection.error" ); ... | 1,101,601 |
public void testGetServiceProperties() { MockControl bundleContextControl = MockControl.createControl(BundleContext.class); BundleContext mockContext = (BundleContext) bundleContextControl.getMock(); MockControl bundleControl = MockControl.createControl(Bundle.class); Bundle mockBundle = (Bundle) bundleControl.get... | public void testGetServiceProperties() { MockControl bundleContextControl = MockControl.createControl(BundleContext.class); BundleContext mockContext = (BundleContext) bundleContextControl.getMock(); MockControl bundleControl = MockControl.createControl(Bundle.class); Bundle mockBundle = (Bundle) bundleControl.get... | 1,101,602 |
public void testGetServiceProperties() { MockControl bundleContextControl = MockControl.createControl(BundleContext.class); BundleContext mockContext = (BundleContext) bundleContextControl.getMock(); MockControl bundleControl = MockControl.createControl(Bundle.class); Bundle mockBundle = (Bundle) bundleControl.get... | public void testGetServiceProperties() { MockControl bundleContextControl = MockControl.createControl(BundleContext.class); BundleContext mockContext = (BundleContext) bundleContextControl.getMock(); MockControl bundleControl = MockControl.createControl(Bundle.class); Bundle mockBundle = (Bundle) bundleControl.get... | 1,101,603 |
public static final int getType(String desc) { int i; for (i=1;i<value_type_desc.length;i++) { if (value_type_desc[i].equalsIgnoreCase(desc)) { return i; } } return VALUE_TYPE_NONE; } | public int getType() { int i; for (i=1;i<value_type_desc.length;i++) { if (value_type_desc[i].equalsIgnoreCase(desc)) { return i; } } return VALUE_TYPE_NONE; } | 1,101,605 |
public static final int getType(String desc) { int i; for (i=1;i<value_type_desc.length;i++) { if (value_type_desc[i].equalsIgnoreCase(desc)) { return i; } } return VALUE_TYPE_NONE; } | public static final int getType(String desc) { int i; for (i=1;i<value_type_desc.length;i++) { if (value_type_desc[i].equalsIgnoreCase(desc)) { return i; } } return VALUE_TYPE_NONE; } | 1,101,606 |
public static BufferedImage makeImage(byte[] data, int w, int h, int c, boolean interleaved) { return makeImage(data, w, h, c, interleaved, null); } | public static BufferedImage makeImage(byte[] data, int w, int h, int c, boolean interleaved) { return makeImage(data, w, h, c, interleaved, null); } | 1,101,607 |
public static BufferedImage makeImage(byte[] data, int w, int h, int c, boolean interleaved) { return makeImage(data, w, h, c, interleaved, null); } | public static BufferedImage makeImage(byte[] data, int w, int h, int c, boolean interleaved) { return makeImage(data, w, h, c, interleaved, bps, little, null); } | 1,101,608 |
public QName(String namespaceURI, String localPart) { super(namespaceURI, localPart, lookupPrefix(namespaceURI)); } | public QName(String namespaceURI, String localPart) { this.namespaceURI = namespaceURI; this.localPart = localPart; } | 1,101,609 |
public Type createType(Method m, int index) { java.lang.reflect.Type type = index < 0 ? m.getGenericReturnType() : m.getGenericParameterTypes()[index]; try { return new JAXWSType(type); } catch (IllegalJAXWSTypeException e) { throw new RuntimeException(e); } } | public Type createType(Method m, int index) { java.lang.reflect.Type type = index < 0 ? m.getGenericReturnType() : m.getGenericParameterTypes()[index]; try { return new JAXWSType(type); } catch (IllegalJAXWSTypeException e) { throw new RuntimeException(e); } } | 1,101,610 |
public QName getElementName(Method method, int parameterIndex) { String name = "arg" + parameterIndex; Class endpointInterface = method.getDeclaringClass(); String namespace = calculateNamespaceURI(endpointInterface); //let the @WebService annotation customize the target namespace. WebService wsInfo = ... | public QName getElementName(Method method, int parameterIndex) { String name = "arg" + parameterIndex; Class endpointInterface = method.getDeclaringClass(); String namespace = calculateNamespaceURI(endpointInterface); //let the @WebService annotation customize the target namespace. WebService wsInfo = ... | 1,101,611 |
public QName getElementName(Method method, int parameterIndex) { String name = "arg" + parameterIndex; Class endpointInterface = method.getDeclaringClass(); String namespace = calculateNamespaceURI(endpointInterface); //let the @WebService annotation customize the target namespace. WebService wsInfo = ... | public QName getElementName(Method method, int parameterIndex) { String name = "arg" + parameterIndex; Class endpointInterface = method.getDeclaringClass(); String namespace = calculateNamespaceURI(endpointInterface); //let the @WebService annotation customize the target namespace. WebService wsInfo = ... | 1,101,612 |
public QName getElementName(Method method, int parameterIndex) { String name = "arg" + parameterIndex; Class endpointInterface = method.getDeclaringClass(); String namespace = calculateNamespaceURI(endpointInterface); //let the @WebService annotation customize the target namespace. WebService wsInfo = ... | public QName getElementName(Method method, int parameterIndex) { String name = "arg" + parameterIndex; Class endpointInterface = method.getDeclaringClass(); String namespace = calculateNamespaceURI(endpointInterface); //let the @WebService annotation customize the target namespace. WebService wsInfo = ... | 1,101,613 |
public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | 1,101,614 |
public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); if (clazz.isArray()) { this.delegate = new JAXWSType(clazz.getComponentType()); this.collection = true; } else { this.delegate = null;... | 1,101,615 |
public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | 1,101,616 |
public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | 1,101,617 |
public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | 1,101,618 |
public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | 1,101,619 |
public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | 1,101,620 |
public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | 1,101,621 |
public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | public JAXWSType(Type type) throws IllegalJAXWSTypeException { setWriteOuter(false); if (type instanceof Class) { Class clazz = (Class) type; setTypeClass(clazz); this.delegate = new JaxbTypeInternal(clazz); } else if (type instanceof ParameterizedType) { ParameterizedType parameterize... | 1,101,622 |
public void testDelegatingProxyInterfaceOrder() { final Echo echo = ( Echo ) factory.createDelegatingProxy( singletonProvider( beanProvider( EchoImpl.class ) ), Echo.class, DuplicateEcho.class ); final List expected = new LinkedList( Arrays.asList( Echo.class, DuplicateEcho.class ) ); final ... | public void testDelegatingProxyInterfaceOrder() { final Echo echo = ( Echo ) factory.createDelegatingProxy( singletonProvider( beanProvider( EchoImpl.class ) ), Echo.class, DuplicateEcho.class ); final List expected = new LinkedList( Arrays.asList( Echo.class, DuplicateEcho.class ) ); final ... | 1,101,623 |
public SimpleGFFRecord() { this.seqName = null; this.source = null; this.feature = null; this.start = 0; this.end = 0; this.score = 0; this.strand = null; this.frame = 0; this.comment = null; this.groupAttributes = null; } | public SimpleGFFRecord() { this.seqName = null; this.source = null; this.feature = null; this.start = 0; this.end = 0; this.score = 0; this.strand = null; this.frame = 0; this.comment = null; this.groupAttributes = null; } | 1,101,624 |
public Value(String name, int val_type) { clearValue(); newValue(val_type); setName(name); } | public Value() { clearValue(); newValue(val_type); setName(name); } | 1,101,625 |
public Value(String name, int val_type) { clearValue(); newValue(val_type); setName(name); } | public Value(String name, int val_type) { clearValue(); newValue(val_type); setName(name); } | 1,101,626 |
public void setValue(String str) { if (value==null || value.getType()!=VALUE_TYPE_STRING) value = new ValueString(str); else value.setString(str); setNull(str==null); } | public void setValue(String str) { if (value==null || value.getType()!=VALUE_TYPE_STRING) value = new ValueString(str); else value.setString(str); setNull(str==null); } | 1,101,627 |
public static final String addTagValue(String tag, String val) { return addTagValue(tag, val, true); } | public static final String addTagValue(String tag, String val) { StringBuffer value; if (val!=null) { value = new StringBuffer(val); Const.repl(value, "&", "&"); Const.repl(value, "'", "'"); Const.repl(value, "<", "<"); Const.repl(value, ">", ">"); Const.repl(value, "\"", """); } else { value = n... | 1,101,628 |
public long saveStepAttribute(long id_transformation, long id_step, long nr, String code, String value) throws KettleDatabaseException { if (value==null || value.length()==0) return -1L; return saveStepAttribute(code, nr, id_transformation, id_step, 0.0, value); } | public long saveStepAttribute(long id_transformation, long id_step, String code, String value) throws KettleDatabaseException { if (value==null || value.length()==0) return -1L; return saveStepAttribute(code, nr, id_transformation, id_step, 0.0, value); } | 1,101,629 |
public long saveStepAttribute(long id_transformation, long id_step, long nr, String code, String value) throws KettleDatabaseException { if (value==null || value.length()==0) return -1L; return saveStepAttribute(code, nr, id_transformation, id_step, 0.0, value); } | public long saveStepAttribute(long id_transformation, long id_step, long nr, String code, String value) throws KettleDatabaseException { if (value==null || value.length()==0) return -1L; return saveStepAttribute(code, nr, id_transformation, id_step, 0.0, value); } | 1,101,630 |
public BioError(Throwable ex, String message) { this(message, ex); } | public BioError(Throwable ex, String message) { this(message, ex); } | 1,101,631 |
public UnsupportedChromatogramFormatException(String message) { super(message); } | public UnsupportedChromatogramFormatException(String message) { super(message); } | 1,101,632 |
public SmallMap(int size) { super(); mappings = new Object[size * 2]; } | public SmallMap(int size) { super(); mappings = new Object[size * 2]; } | 1,101,633 |
public FeatureHolder filter(FeatureFilter filter) { boolean recurse = FilterUtils.areProperSubset(filter, FeatureFilter.top_level); return filter(filter, recurse); } | public FeatureHolder filter(FeatureFilter filter) { boolean recurse = !FilterUtils.areProperSubset(filter, FeatureFilter.top_level); return filter(filter, recurse); } | 1,101,634 |
public ValueChanger(TagValueListener delegate, ChangeTable changeTable) { super(delegate); this.changeTable = changeTable; } | public ValueChanger(TagValueListener delegate) { super(delegate); this.changeTable = changeTable; } | 1,101,635 |
public ValueChanger(TagValueListener delegate, ChangeTable changeTable) { super(delegate); this.changeTable = changeTable; } | public ValueChanger(TagValueListener delegate, ChangeTable changeTable) { super(delegate); } | 1,101,636 |
public TagDelegator(TagValueListener delegate) { super(delegate); parsers = new SmallMap(); listeners = new SmallMap(); } | public TagDelegator(TagValueListener delegate) { super(delegate); parsers = new SmallMap(); listeners = new SmallMap(); } | 1,101,637 |
public TransMeta(String filename, String name, String arguments[]) { clear(); this.filename = filename; this.name = name; this.arguments = arguments; } | public TransMeta() { clear(); this.filename = filename; this.name = name; this.arguments = arguments; } | 1,101,638 |
public TransMeta(String filename, String name, String arguments[]) { clear(); this.filename = filename; this.name = name; this.arguments = arguments; } | public TransMeta(String filename, String name, String arguments[]) { clear(); this.filename = filename; this.name = name; this.arguments = arguments; } | 1,101,639 |
public SimplePosition(boolean fs, boolean fe, int s, int e, String t) { this.fs = fs; this.fe = fe; this.s = s; this.e = e; this.t = t; } | public SimplePosition(boolean fs, boolean fe, int s, int e, String t) { this.fs = fs; this.fe = fe; this.s = s; this.e = e; this.t = t; } | 1,101,640 |
public RepositoriesDialog(Display disp, int style, int perm[], String toolName) { display = disp; toolsPermissions = perm; steploader = StepLoader.getInstance(); this.toolName = toolName; shell = new Shell(disp, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX | SWT.MIN ); shell.setText("Kettle repositories"); log=LogW... | public RepositoriesDialog(Display disp, int style, int perm[], String toolName) { display = disp; toolsPermissions = perm; steploader = StepLoader.getInstance(); this.toolName = toolName; shell = new Shell(disp, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX | SWT.MIN ); shell.setText("Kettle repositories"); log=LogW... | 1,101,641 |
public StepMeta(LogWriter log, String stepid, String stepname, StepMetaInterface stepMetaInterface) { this(stepid, stepname, stepMetaInterface); } | public StepMeta(String stepid, String stepname, StepMetaInterface stepMetaInterface) { this(stepid, stepname, stepMetaInterface); } | 1,101,642 |
public StepMeta(LogWriter log, String stepid, String stepname, StepMetaInterface stepMetaInterface) { this(stepid, stepname, stepMetaInterface); } | public StepMeta(LogWriter log, String stepid, String stepname, StepMetaInterface stepMetaInterface) { this(stepname, stepMetaInterface); if (this.stepid==null) this.stepid = stepid; } | 1,101,643 |
public static final LogWriter getInstance(String filename, boolean exact, int level) { LogWriter log = findLogWriter(filename); if (log != null) return log; lastLog = new LogWriter(filename, exact, level); logs.put(filename, lastLog); return lastLog; } | public static final LogWriter getInstance() { LogWriter log = findLogWriter(filename); if (log != null) return log; lastLog = new LogWriter(filename, exact, level); logs.put(filename, lastLog); return lastLog; } | 1,101,644 |
public static final LogWriter getInstance(String filename, boolean exact, int level) { LogWriter log = findLogWriter(filename); if (log != null) return log; lastLog = new LogWriter(filename, exact, level); logs.put(filename, lastLog); return lastLog; } | public static final LogWriter getInstance(String filename, boolean exact, int level) { if (lastLog!=null) return lastLog; if (log != null) return log; lastLog = new LogWriter(filename, exact, level); logs.put(filename, lastLog); return lastLog; } | 1,101,645 |
public static final LogWriter getInstance(String filename, boolean exact, int level) { LogWriter log = findLogWriter(filename); if (log != null) return log; lastLog = new LogWriter(filename, exact, level); logs.put(filename, lastLog); return lastLog; } | public static final LogWriter getInstance(String filename, boolean exact, int level) { LogWriter log = findLogWriter(filename); if (log != null) return log; lastLog = new LogWriter(filename, exact, level); logs.put(filename, lastLog); return lastLog; } | 1,101,646 |
public UserInfo(Repository rep, String login, String passwd) throws KettleException { this(rep, login); // Verify the password: if ( getID()<0 || !passwd.equals(getPassword()) ) { throw new KettleException("Incorrect password or login!"); } } | public UserInfo(Repository rep, String login, String passwd) throws KettleException { this(rep, login); // Verify the password: if ( getID()<0 || !passwd.equals(getPassword()) ) { throw new KettleException("Incorrect password or login!"); } } | 1,101,647 |
public UserInfo(Repository rep, String login, String passwd) throws KettleException { this(rep, login); // Verify the password: if ( getID()<0 || !passwd.equals(getPassword()) ) { throw new KettleException("Incorrect password or login!"); } } | public UserInfo(Repository rep, String login, String passwd) throws KettleException { this(rep, login); // Verify the password: if ( getID()<0 || !passwd.equals(getPassword()) ) { throw new KettleException("Incorrect password or login!"); } } | 1,101,648 |
public static final int indexOfString(String lookup, ArrayList array) { if (array==null) return -1; for (int i=0;i<array.size();i++) { String compare = (String)array.get(i); if (lookup.equalsIgnoreCase(compare)) return i; } return -1; } | public static final int indexOfString(String lookup, String array[]) { if (array==null) return -1; for (int i=0;i<array.size();i++) { String compare = (String)array.get(i); if (lookup.equalsIgnoreCase(compare)) return i; } return -1; } | 1,101,649 |
public static final int indexOfString(String lookup, ArrayList array) { if (array==null) return -1; for (int i=0;i<array.size();i++) { String compare = (String)array.get(i); if (lookup.equalsIgnoreCase(compare)) return i; } return -1; } | public static final int indexOfString(String lookup, ArrayList array) { if (array==null) return -1; for (int i=0;i<array.size();i++) { String compare = (String)array.get(i); if (lookup.equalsIgnoreCase(compare)) return i; } return -1; } | 1,101,650 |
public static final int indexOfString(String lookup, ArrayList array) { if (array==null) return -1; for (int i=0;i<array.size();i++) { String compare = (String)array.get(i); if (lookup.equalsIgnoreCase(compare)) return i; } return -1; } | public static final int indexOfString(String lookup, ArrayList array) { if (array==null) return -1; for (int i=0;i<array.size();i++) { String compare = (String)array.get(i); if (lookup.equalsIgnoreCase(compare)) return i; } return -1; } | 1,101,651 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.